Tag AI Generated motifs in admin

This commit is contained in:
Rikard Bartholf
2025-08-21 11:14:20 +02:00
committed by GitHub
parent f4b0109e55
commit a6097b0750
4 changed files with 6 additions and 0 deletions
+1
View File
@@ -563,6 +563,7 @@ export class ProductAPI extends BaseSQLDataSource {
ref2: info.ref2, ref2: info.ref2,
ref3: info.ref3, ref3: info.ref3,
ref4: info.ref4, ref4: info.ref4,
is_ai_generated: info.is_ai_generated,
}) })
.where({ productid: productId }), .where({ productid: productId }),
this.updateProductField(productId, 'artNo', info.artNo), this.updateProductField(productId, 'artNo', info.artNo),
+1
View File
@@ -18,6 +18,7 @@ SELECT products.productid AS id,
products.ref2, products.ref2,
products.ref3, products.ref3,
products.ref4, products.ref4,
products.is_ai_generated,
( (
SELECT json_agg( SELECT json_agg(
json_build_object( json_build_object(
+2
View File
@@ -275,6 +275,7 @@ type Product {
fields: ProductFields fields: ProductFields
orientation: Orientation orientation: Orientation
facets: [Facet] facets: [Facet]
is_ai_generated: Boolean!
""" """
Will be single values return in later release Will be single values return in later release
""" """
@@ -436,6 +437,7 @@ input ProductInfoInput {
printFileWidth: Int! printFileWidth: Int!
printFileHeight: Int! printFileHeight: Int!
printFileDpi: Int! printFileDpi: Int!
is_ai_generated: Boolean!
} }
input ProductBlacklistingInput { input ProductBlacklistingInput {
+2
View File
@@ -21,6 +21,7 @@ export interface ProductInfoInput {
printFileWidth: number; printFileWidth: number;
printFileHeight: number; printFileHeight: number;
printFileDpi: number; printFileDpi: number;
is_ai_generated: boolean;
} }
export interface ProductBlacklistMarketInput { export interface ProductBlacklistMarketInput {
@@ -153,6 +154,7 @@ export interface Product {
type: [ProductType]; type: [ProductType];
fields: ProductFields; fields: ProductFields;
facets: Facet[]; facets: Facet[];
is_ai_generated: boolean;
} }
// TODO: test stock products to see what props can be mandatory // TODO: test stock products to see what props can be mandatory