@teemill/product-catalog 1.93.1 → 1.95.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Product Catalog
6
6
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
7
7
  *
8
- * The version of the OpenAPI document: 1.93.1
8
+ * The version of the OpenAPI document: 1.95.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.ProductTypesApi = exports.ProductTypesApiFactory = exports.ProductTypesApiFp = exports.ProductTypesApiAxiosParamCreator = exports.ProductCreatorsApi = exports.ProductCreatorsApiFactory = exports.ProductCreatorsApiFp = exports.ProductCreatorsApiAxiosParamCreator = exports.ProductAnalyticsApi = exports.ProductAnalyticsApiFactory = exports.ProductAnalyticsApiFp = exports.ProductAnalyticsApiAxiosParamCreator = exports.ApplicationTechnologiesApi = exports.ApplicationTechnologiesApiFactory = exports.ApplicationTechnologiesApiFp = exports.ApplicationTechnologiesApiAxiosParamCreator = exports.ApplicationSetsApi = exports.ApplicationSetsApiFactory = exports.ApplicationSetsApiFp = exports.ApplicationSetsApiAxiosParamCreator = exports.ApplicationGroupsApi = exports.ApplicationGroupsApiFactory = exports.ApplicationGroupsApiFp = exports.ApplicationGroupsApiAxiosParamCreator = exports.UpdateProductsRequestProductsInnerVariantsInnerSalePriceCurrencyCodeEnum = exports.UpdateProductsRequestProductsInnerVariantsInnerRetailPriceCurrencyCodeEnum = exports.UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum = exports.TextApplicationPropertiesPersonalizationTypeEnum = exports.TextApplicationPropertiesFontStyleEnum = exports.TextApplicationPropertiesFontWeightEnum = exports.SalePriceCurrencyCodeEnum = exports.RequiredPriceCurrencyCodeEnum = exports.RecommendationPriorityEnum = exports.PriceCurrencyCodeEnum = exports.CreateProductVariantAttributesInnerNameEnum = exports.CreateApplicationPropertiesFontStyleEnum = exports.CreateApplicationPropertiesFontWeightEnum = exports.CreateApplicationPlacementEnum = exports.CreateApplicationTechnologyEnum = exports.AttributeThumbnailTypeEnum = exports.ApplicationPropertiesPropertiesFontStyleEnum = exports.ApplicationPropertiesPropertiesFontWeightEnum = exports.ApplicationPropertiesPersonalizationRulesFitEnum = exports.ApplicationPlacementEnum = exports.ApplicationTechnologyEnum = exports.ActionImpactEnum = void 0;
26
- exports.VariantsApi = exports.VariantsApiFactory = exports.VariantsApiFp = exports.VariantsApiAxiosParamCreator = exports.ListProductsDateFilterTypeEnum = exports.ExportProductsDateFilterTypeEnum = void 0;
25
+ exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.ProductTypesApi = exports.ProductTypesApiFactory = exports.ProductTypesApiFp = exports.ProductTypesApiAxiosParamCreator = exports.ProductCreatorsApi = exports.ProductCreatorsApiFactory = exports.ProductCreatorsApiFp = exports.ProductCreatorsApiAxiosParamCreator = exports.ProductAnalyticsApi = exports.ProductAnalyticsApiFactory = exports.ProductAnalyticsApiFp = exports.ProductAnalyticsApiAxiosParamCreator = exports.ApplicationTechnologiesApi = exports.ApplicationTechnologiesApiFactory = exports.ApplicationTechnologiesApiFp = exports.ApplicationTechnologiesApiAxiosParamCreator = exports.ApplicationSetsApi = exports.ApplicationSetsApiFactory = exports.ApplicationSetsApiFp = exports.ApplicationSetsApiAxiosParamCreator = exports.ApplicationGroupsApi = exports.ApplicationGroupsApiFactory = exports.ApplicationGroupsApiFp = exports.ApplicationGroupsApiAxiosParamCreator = exports.UpdateProductsRequestProductsInnerVariantsInnerSalePriceCurrencyCodeEnum = exports.UpdateProductsRequestProductsInnerVariantsInnerRetailPriceCurrencyCodeEnum = exports.UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum = exports.TextApplicationPropertiesPersonalizationTypeEnum = exports.TextApplicationPropertiesFontStyleEnum = exports.TextApplicationPropertiesFontWeightEnum = exports.SalePriceCurrencyCodeEnum = exports.RequiredPriceCurrencyCodeEnum = exports.RecommendationPriorityEnum = exports.PriceCurrencyCodeEnum = exports.CreateProductVariantAttributesInnerNameEnum = exports.CreateApplicationPropertiesFontStyleEnum = exports.CreateApplicationPropertiesFontWeightEnum = exports.CreateApplicationPlacementEnum = exports.CreateApplicationTechnologyEnum = exports.AutoMerchProductsRequestFieldsEnum = exports.AttributeThumbnailTypeEnum = exports.ApplicationPropertiesPropertiesFontStyleEnum = exports.ApplicationPropertiesPropertiesFontWeightEnum = exports.ApplicationPropertiesPersonalizationRulesFitEnum = exports.ApplicationPlacementEnum = exports.ApplicationTechnologyEnum = exports.ActionImpactEnum = void 0;
26
+ exports.VariantsApi = exports.VariantsApiFactory = exports.VariantsApiFp = exports.VariantsApiAxiosParamCreator = exports.ListProductsDateFilterTypeEnum = exports.ExportProductsDateFilterTypeEnum = exports.ProductsApi = void 0;
27
27
  const axios_1 = require("axios");
28
28
  // Some imports not used depending on template conditions
29
29
  // @ts-ignore
@@ -77,6 +77,20 @@ exports.AttributeThumbnailTypeEnum = {
77
77
  Color: 'color',
78
78
  Image: 'image',
79
79
  };
80
+ exports.AutoMerchProductsRequestFieldsEnum = {
81
+ LifestyleImagesAppend: 'lifestyleImages.append',
82
+ LifestyleImagesRemove: 'lifestyleImages.remove',
83
+ ColoursAppend: 'colours.append',
84
+ ColoursRemove: 'colours.remove',
85
+ Title: 'title',
86
+ Description: 'description',
87
+ SeoMetadataTitle: 'seoMetadata.title',
88
+ SeoMetadataDescription: 'seoMetadata.description',
89
+ Tags: 'tags',
90
+ Slug: 'slug',
91
+ Images: 'images',
92
+ TargetSearchPhraseData: 'targetSearchPhraseData',
93
+ };
80
94
  exports.CreateApplicationTechnologyEnum = {
81
95
  Dtg: 'dtg',
82
96
  Embroidery: 'embroidery',
@@ -1816,6 +1830,46 @@ exports.ProductTypesApi = ProductTypesApi;
1816
1830
  */
1817
1831
  const ProductsApiAxiosParamCreator = function (configuration) {
1818
1832
  return {
1833
+ /**
1834
+ * AI auto merchandises products by a set of given IDs. Runs AI SEO optimisation alongside updates to mockups, colours and other merchandising properties.
1835
+ * @summary AI auto merchandise products.
1836
+ * @param {string} project What project it is
1837
+ * @param {AutoMerchProductsRequest} [autoMerchProductsRequest] A set of product IDs to AI auto merchandise.
1838
+ * @param {*} [options] Override http request option.
1839
+ * @throws {RequiredError}
1840
+ */
1841
+ autoMerchProducts: (project_1, autoMerchProductsRequest_1, ...args_1) => __awaiter(this, [project_1, autoMerchProductsRequest_1, ...args_1], void 0, function* (project, autoMerchProductsRequest, options = {}) {
1842
+ // verify required parameter 'project' is not null or undefined
1843
+ (0, common_1.assertParamExists)('autoMerchProducts', 'project', project);
1844
+ const localVarPath = `/v1/catalog/products/auto-merch`;
1845
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1846
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1847
+ let baseOptions;
1848
+ if (configuration) {
1849
+ baseOptions = configuration.baseOptions;
1850
+ }
1851
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1852
+ const localVarHeaderParameter = {};
1853
+ const localVarQueryParameter = {};
1854
+ // authentication session-oauth required
1855
+ // oauth required
1856
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1857
+ // authentication api-key required
1858
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1859
+ if (project !== undefined) {
1860
+ localVarQueryParameter['project'] = project;
1861
+ }
1862
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1863
+ localVarHeaderParameter['Accept'] = 'application/json';
1864
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1865
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1866
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1867
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(autoMerchProductsRequest, localVarRequestOptions, configuration);
1868
+ return {
1869
+ url: (0, common_1.toPathString)(localVarUrlObj),
1870
+ options: localVarRequestOptions,
1871
+ };
1872
+ }),
1819
1873
  /**
1820
1874
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
1821
1875
  * @summary Create product
@@ -2413,6 +2467,23 @@ exports.ProductsApiAxiosParamCreator = ProductsApiAxiosParamCreator;
2413
2467
  const ProductsApiFp = function (configuration) {
2414
2468
  const localVarAxiosParamCreator = (0, exports.ProductsApiAxiosParamCreator)(configuration);
2415
2469
  return {
2470
+ /**
2471
+ * AI auto merchandises products by a set of given IDs. Runs AI SEO optimisation alongside updates to mockups, colours and other merchandising properties.
2472
+ * @summary AI auto merchandise products.
2473
+ * @param {string} project What project it is
2474
+ * @param {AutoMerchProductsRequest} [autoMerchProductsRequest] A set of product IDs to AI auto merchandise.
2475
+ * @param {*} [options] Override http request option.
2476
+ * @throws {RequiredError}
2477
+ */
2478
+ autoMerchProducts(project, autoMerchProductsRequest, options) {
2479
+ return __awaiter(this, void 0, void 0, function* () {
2480
+ var _a, _b, _c;
2481
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.autoMerchProducts(project, autoMerchProductsRequest, options);
2482
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2483
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.autoMerchProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2484
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2485
+ });
2486
+ },
2416
2487
  /**
2417
2488
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
2418
2489
  * @summary Create product
@@ -2639,6 +2710,16 @@ exports.ProductsApiFp = ProductsApiFp;
2639
2710
  const ProductsApiFactory = function (configuration, basePath, axios) {
2640
2711
  const localVarFp = (0, exports.ProductsApiFp)(configuration);
2641
2712
  return {
2713
+ /**
2714
+ * AI auto merchandises products by a set of given IDs. Runs AI SEO optimisation alongside updates to mockups, colours and other merchandising properties.
2715
+ * @summary AI auto merchandise products.
2716
+ * @param {ProductsApiAutoMerchProductsRequest} requestParameters Request parameters.
2717
+ * @param {*} [options] Override http request option.
2718
+ * @throws {RequiredError}
2719
+ */
2720
+ autoMerchProducts(requestParameters, options) {
2721
+ return localVarFp.autoMerchProducts(requestParameters.project, requestParameters.autoMerchProductsRequest, options).then((request) => request(axios, basePath));
2722
+ },
2642
2723
  /**
2643
2724
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
2644
2725
  * @summary Create product
@@ -2756,6 +2837,16 @@ exports.ProductsApiFactory = ProductsApiFactory;
2756
2837
  * ProductsApi - object-oriented interface
2757
2838
  */
2758
2839
  class ProductsApi extends base_1.BaseAPI {
2840
+ /**
2841
+ * AI auto merchandises products by a set of given IDs. Runs AI SEO optimisation alongside updates to mockups, colours and other merchandising properties.
2842
+ * @summary AI auto merchandise products.
2843
+ * @param {ProductsApiAutoMerchProductsRequest} requestParameters Request parameters.
2844
+ * @param {*} [options] Override http request option.
2845
+ * @throws {RequiredError}
2846
+ */
2847
+ autoMerchProducts(requestParameters, options) {
2848
+ return (0, exports.ProductsApiFp)(this.configuration).autoMerchProducts(requestParameters.project, requestParameters.autoMerchProductsRequest, options).then((request) => request(this.axios, this.basePath));
2849
+ }
2759
2850
  /**
2760
2851
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
2761
2852
  * @summary Create product
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Product Catalog
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.93.1
5
+ * The version of the OpenAPI document: 1.95.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Product Catalog
6
6
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
7
7
  *
8
- * The version of the OpenAPI document: 1.93.1
8
+ * The version of the OpenAPI document: 1.95.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Product Catalog
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.93.1
5
+ * The version of the OpenAPI document: 1.95.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Product Catalog
6
6
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
7
7
  *
8
- * The version of the OpenAPI document: 1.93.1
8
+ * The version of the OpenAPI document: 1.95.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Product Catalog
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.93.1
5
+ * The version of the OpenAPI document: 1.95.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog
5
5
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
6
6
  *
7
- * The version of the OpenAPI document: 1.93.1
7
+ * The version of the OpenAPI document: 1.95.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Product Catalog
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.93.1
5
+ * The version of the OpenAPI document: 1.95.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -438,18 +438,21 @@ export interface ApplicationTechnologyIntegrationProduct {
438
438
  */
439
439
  'ref'?: string;
440
440
  }
441
+ /**
442
+ * An attribute associated to a variant such as Colour and Size.
443
+ */
441
444
  export interface Attribute {
442
445
  /**
443
- * Attribute name
446
+ * Variant attribute name
444
447
  */
445
448
  'name': string;
446
449
  /**
447
- * Attribute value
450
+ * Variant attribute value
448
451
  */
449
452
  'value': string;
450
453
  'thumbnail'?: AttributeThumbnail;
451
454
  /**
452
- * Attribute tags
455
+ * Variant attribute tags
453
456
  */
454
457
  'tags'?: Array<string>;
455
458
  }
@@ -470,6 +473,37 @@ export interface Attributes1Inner {
470
473
  'name'?: string;
471
474
  'value'?: string;
472
475
  }
476
+ export interface AutoMerchProducts202Response {
477
+ /**
478
+ * A message describing the auto merchandising status
479
+ */
480
+ 'message'?: string;
481
+ }
482
+ export interface AutoMerchProductsRequest {
483
+ /**
484
+ * A set of product IDs to AI auto merchandise.
485
+ */
486
+ 'ids': Array<string>;
487
+ /**
488
+ * If provided, only the specified fields will be updated. Supports AI SEO field keys (e.g. \"title\", \"targetSearchPhraseData\") and merchandising field keys with an \"append\" or \"remove\" suffix (e.g. \"lifestyleImages.append\", \"colours.remove\").
489
+ */
490
+ 'fields'?: Array<AutoMerchProductsRequestFieldsEnum>;
491
+ }
492
+ export declare const AutoMerchProductsRequestFieldsEnum: {
493
+ readonly LifestyleImagesAppend: "lifestyleImages.append";
494
+ readonly LifestyleImagesRemove: "lifestyleImages.remove";
495
+ readonly ColoursAppend: "colours.append";
496
+ readonly ColoursRemove: "colours.remove";
497
+ readonly Title: "title";
498
+ readonly Description: "description";
499
+ readonly SeoMetadataTitle: "seoMetadata.title";
500
+ readonly SeoMetadataDescription: "seoMetadata.description";
501
+ readonly Tags: "tags";
502
+ readonly Slug: "slug";
503
+ readonly Images: "images";
504
+ readonly TargetSearchPhraseData: "targetSearchPhraseData";
505
+ };
506
+ export type AutoMerchProductsRequestFieldsEnum = typeof AutoMerchProductsRequestFieldsEnum[keyof typeof AutoMerchProductsRequestFieldsEnum];
473
507
  /**
474
508
  * A bundle product that groups multiple items together at a combined price.
475
509
  */
@@ -1228,6 +1262,10 @@ export interface Product {
1228
1262
  'targetSearchPhraseData'?: TargetSearchPhraseData;
1229
1263
  'tags'?: Array<string>;
1230
1264
  'internalTags'?: Array<string>;
1265
+ /**
1266
+ * Attributes associated to a product such as product colours and sizes
1267
+ */
1268
+ 'attributes'?: Array<ProductAttribute>;
1231
1269
  'createdAt'?: string;
1232
1270
  'updatedAt'?: string;
1233
1271
  'publishedAt'?: string;
@@ -1381,6 +1419,36 @@ export interface ProductApplicationSetsInner {
1381
1419
  */
1382
1420
  'name'?: string;
1383
1421
  }
1422
+ export interface ProductAttribute {
1423
+ /**
1424
+ * Attribute name, this can only be \'Colour\' or \'Size\' for now
1425
+ */
1426
+ 'name': string;
1427
+ /**
1428
+ * Attribute values
1429
+ */
1430
+ 'values': Array<ProductAttributeValue1>;
1431
+ }
1432
+ export interface ProductAttributeValue {
1433
+ /**
1434
+ * Position of the value when ordered
1435
+ */
1436
+ 'sortOrder': number;
1437
+ /**
1438
+ * The specific size or colour value. This must match the GFN Catalog API exactly.
1439
+ */
1440
+ 'value': string;
1441
+ }
1442
+ export interface ProductAttributeValue1 {
1443
+ /**
1444
+ * Position of the value when ordered
1445
+ */
1446
+ 'sortOrder': number;
1447
+ /**
1448
+ * Product attribute value
1449
+ */
1450
+ 'value': string;
1451
+ }
1384
1452
  export interface ProductBundleItemsInner {
1385
1453
  /**
1386
1454
  * The unique identifier of the bundle product.
@@ -1873,6 +1941,10 @@ export interface UpdateProductRequest {
1873
1941
  * The brand of the product.
1874
1942
  */
1875
1943
  'brand'?: string | null;
1944
+ /**
1945
+ * Attributes associated to a product such as product colours and sizes. The name and values must match the GFN Catalog API exactly — use the GFN Catalog API to list the product to get the exact strings (casing and spelling must match). If present, any new variant attributes and values must be included in this list.
1946
+ */
1947
+ 'attributes'?: Array<UpdateProductRequestAttributesInner>;
1876
1948
  'seoMetadata'?: UpdateProductsRequestProductsInnerSeoMetadata;
1877
1949
  /**
1878
1950
  * The primary target search phrase for the product that you wish to rank for in search engine results. **Note:** This field requires the website integration
@@ -1952,6 +2024,16 @@ export interface UpdateProductRequest {
1952
2024
  */
1953
2025
  'collections'?: Array<UpdateProductsRequestProductsInnerCollectionsInner>;
1954
2026
  }
2027
+ export interface UpdateProductRequestAttributesInner {
2028
+ /**
2029
+ * Product attribute name, this can only be \'Colour\' or \'Size\' for now
2030
+ */
2031
+ 'name': string;
2032
+ /**
2033
+ * List of product attribute values, each including a sort order and an option value (e.g., \'Black\', \'Blue\', \'XL\', \'XXL\'). Any existing values not included here will be removed, along with any variants that use them. Any new values listed will be added to the product.
2034
+ */
2035
+ 'values': Array<ProductAttributeValue>;
2036
+ }
1955
2037
  export interface UpdateProductRequestBundleItemsInner {
1956
2038
  /**
1957
2039
  * The product UUID to include in the bundle
@@ -3456,6 +3538,15 @@ export declare class ProductTypesApi extends BaseAPI {
3456
3538
  * ProductsApi - axios parameter creator
3457
3539
  */
3458
3540
  export declare const ProductsApiAxiosParamCreator: (configuration?: Configuration) => {
3541
+ /**
3542
+ * AI auto merchandises products by a set of given IDs. Runs AI SEO optimisation alongside updates to mockups, colours and other merchandising properties.
3543
+ * @summary AI auto merchandise products.
3544
+ * @param {string} project What project it is
3545
+ * @param {AutoMerchProductsRequest} [autoMerchProductsRequest] A set of product IDs to AI auto merchandise.
3546
+ * @param {*} [options] Override http request option.
3547
+ * @throws {RequiredError}
3548
+ */
3549
+ autoMerchProducts: (project: string, autoMerchProductsRequest?: AutoMerchProductsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3459
3550
  /**
3460
3551
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
3461
3552
  * @summary Create product
@@ -3590,6 +3681,15 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
3590
3681
  * ProductsApi - functional programming interface
3591
3682
  */
3592
3683
  export declare const ProductsApiFp: (configuration?: Configuration) => {
3684
+ /**
3685
+ * AI auto merchandises products by a set of given IDs. Runs AI SEO optimisation alongside updates to mockups, colours and other merchandising properties.
3686
+ * @summary AI auto merchandise products.
3687
+ * @param {string} project What project it is
3688
+ * @param {AutoMerchProductsRequest} [autoMerchProductsRequest] A set of product IDs to AI auto merchandise.
3689
+ * @param {*} [options] Override http request option.
3690
+ * @throws {RequiredError}
3691
+ */
3692
+ autoMerchProducts(project: string, autoMerchProductsRequest?: AutoMerchProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AutoMerchProducts202Response>>;
3593
3693
  /**
3594
3694
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
3595
3695
  * @summary Create product
@@ -3724,6 +3824,14 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
3724
3824
  * ProductsApi - factory interface
3725
3825
  */
3726
3826
  export declare const ProductsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3827
+ /**
3828
+ * AI auto merchandises products by a set of given IDs. Runs AI SEO optimisation alongside updates to mockups, colours and other merchandising properties.
3829
+ * @summary AI auto merchandise products.
3830
+ * @param {ProductsApiAutoMerchProductsRequest} requestParameters Request parameters.
3831
+ * @param {*} [options] Override http request option.
3832
+ * @throws {RequiredError}
3833
+ */
3834
+ autoMerchProducts(requestParameters: ProductsApiAutoMerchProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AutoMerchProducts202Response>;
3727
3835
  /**
3728
3836
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
3729
3837
  * @summary Create product
@@ -3813,6 +3921,19 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
3813
3921
  */
3814
3922
  updateProducts(requestParameters: ProductsApiUpdateProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductsResponse>;
3815
3923
  };
3924
+ /**
3925
+ * Request parameters for autoMerchProducts operation in ProductsApi.
3926
+ */
3927
+ export interface ProductsApiAutoMerchProductsRequest {
3928
+ /**
3929
+ * What project it is
3930
+ */
3931
+ readonly project: string;
3932
+ /**
3933
+ * A set of product IDs to AI auto merchandise.
3934
+ */
3935
+ readonly autoMerchProductsRequest?: AutoMerchProductsRequest;
3936
+ }
3816
3937
  /**
3817
3938
  * Request parameters for createProduct operation in ProductsApi.
3818
3939
  */
@@ -4080,6 +4201,14 @@ export interface ProductsApiUpdateProductsRequest {
4080
4201
  * ProductsApi - object-oriented interface
4081
4202
  */
4082
4203
  export declare class ProductsApi extends BaseAPI {
4204
+ /**
4205
+ * AI auto merchandises products by a set of given IDs. Runs AI SEO optimisation alongside updates to mockups, colours and other merchandising properties.
4206
+ * @summary AI auto merchandise products.
4207
+ * @param {ProductsApiAutoMerchProductsRequest} requestParameters Request parameters.
4208
+ * @param {*} [options] Override http request option.
4209
+ * @throws {RequiredError}
4210
+ */
4211
+ autoMerchProducts(requestParameters: ProductsApiAutoMerchProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AutoMerchProducts202Response, any, {}>>;
4083
4212
  /**
4084
4213
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
4085
4214
  * @summary Create product
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog
5
5
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
6
6
  *
7
- * The version of the OpenAPI document: 1.93.1
7
+ * The version of the OpenAPI document: 1.95.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -73,6 +73,20 @@ export const AttributeThumbnailTypeEnum = {
73
73
  Color: 'color',
74
74
  Image: 'image',
75
75
  };
76
+ export const AutoMerchProductsRequestFieldsEnum = {
77
+ LifestyleImagesAppend: 'lifestyleImages.append',
78
+ LifestyleImagesRemove: 'lifestyleImages.remove',
79
+ ColoursAppend: 'colours.append',
80
+ ColoursRemove: 'colours.remove',
81
+ Title: 'title',
82
+ Description: 'description',
83
+ SeoMetadataTitle: 'seoMetadata.title',
84
+ SeoMetadataDescription: 'seoMetadata.description',
85
+ Tags: 'tags',
86
+ Slug: 'slug',
87
+ Images: 'images',
88
+ TargetSearchPhraseData: 'targetSearchPhraseData',
89
+ };
76
90
  export const CreateApplicationTechnologyEnum = {
77
91
  Dtg: 'dtg',
78
92
  Embroidery: 'embroidery',
@@ -1788,6 +1802,46 @@ export class ProductTypesApi extends BaseAPI {
1788
1802
  */
1789
1803
  export const ProductsApiAxiosParamCreator = function (configuration) {
1790
1804
  return {
1805
+ /**
1806
+ * AI auto merchandises products by a set of given IDs. Runs AI SEO optimisation alongside updates to mockups, colours and other merchandising properties.
1807
+ * @summary AI auto merchandise products.
1808
+ * @param {string} project What project it is
1809
+ * @param {AutoMerchProductsRequest} [autoMerchProductsRequest] A set of product IDs to AI auto merchandise.
1810
+ * @param {*} [options] Override http request option.
1811
+ * @throws {RequiredError}
1812
+ */
1813
+ autoMerchProducts: (project_1, autoMerchProductsRequest_1, ...args_1) => __awaiter(this, [project_1, autoMerchProductsRequest_1, ...args_1], void 0, function* (project, autoMerchProductsRequest, options = {}) {
1814
+ // verify required parameter 'project' is not null or undefined
1815
+ assertParamExists('autoMerchProducts', 'project', project);
1816
+ const localVarPath = `/v1/catalog/products/auto-merch`;
1817
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1818
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1819
+ let baseOptions;
1820
+ if (configuration) {
1821
+ baseOptions = configuration.baseOptions;
1822
+ }
1823
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1824
+ const localVarHeaderParameter = {};
1825
+ const localVarQueryParameter = {};
1826
+ // authentication session-oauth required
1827
+ // oauth required
1828
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1829
+ // authentication api-key required
1830
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1831
+ if (project !== undefined) {
1832
+ localVarQueryParameter['project'] = project;
1833
+ }
1834
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1835
+ localVarHeaderParameter['Accept'] = 'application/json';
1836
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1837
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1838
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1839
+ localVarRequestOptions.data = serializeDataIfNeeded(autoMerchProductsRequest, localVarRequestOptions, configuration);
1840
+ return {
1841
+ url: toPathString(localVarUrlObj),
1842
+ options: localVarRequestOptions,
1843
+ };
1844
+ }),
1791
1845
  /**
1792
1846
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
1793
1847
  * @summary Create product
@@ -2384,6 +2438,23 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
2384
2438
  export const ProductsApiFp = function (configuration) {
2385
2439
  const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration);
2386
2440
  return {
2441
+ /**
2442
+ * AI auto merchandises products by a set of given IDs. Runs AI SEO optimisation alongside updates to mockups, colours and other merchandising properties.
2443
+ * @summary AI auto merchandise products.
2444
+ * @param {string} project What project it is
2445
+ * @param {AutoMerchProductsRequest} [autoMerchProductsRequest] A set of product IDs to AI auto merchandise.
2446
+ * @param {*} [options] Override http request option.
2447
+ * @throws {RequiredError}
2448
+ */
2449
+ autoMerchProducts(project, autoMerchProductsRequest, options) {
2450
+ return __awaiter(this, void 0, void 0, function* () {
2451
+ var _a, _b, _c;
2452
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.autoMerchProducts(project, autoMerchProductsRequest, options);
2453
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2454
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProductsApi.autoMerchProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2455
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2456
+ });
2457
+ },
2387
2458
  /**
2388
2459
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
2389
2460
  * @summary Create product
@@ -2609,6 +2680,16 @@ export const ProductsApiFp = function (configuration) {
2609
2680
  export const ProductsApiFactory = function (configuration, basePath, axios) {
2610
2681
  const localVarFp = ProductsApiFp(configuration);
2611
2682
  return {
2683
+ /**
2684
+ * AI auto merchandises products by a set of given IDs. Runs AI SEO optimisation alongside updates to mockups, colours and other merchandising properties.
2685
+ * @summary AI auto merchandise products.
2686
+ * @param {ProductsApiAutoMerchProductsRequest} requestParameters Request parameters.
2687
+ * @param {*} [options] Override http request option.
2688
+ * @throws {RequiredError}
2689
+ */
2690
+ autoMerchProducts(requestParameters, options) {
2691
+ return localVarFp.autoMerchProducts(requestParameters.project, requestParameters.autoMerchProductsRequest, options).then((request) => request(axios, basePath));
2692
+ },
2612
2693
  /**
2613
2694
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
2614
2695
  * @summary Create product
@@ -2725,6 +2806,16 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
2725
2806
  * ProductsApi - object-oriented interface
2726
2807
  */
2727
2808
  export class ProductsApi extends BaseAPI {
2809
+ /**
2810
+ * AI auto merchandises products by a set of given IDs. Runs AI SEO optimisation alongside updates to mockups, colours and other merchandising properties.
2811
+ * @summary AI auto merchandise products.
2812
+ * @param {ProductsApiAutoMerchProductsRequest} requestParameters Request parameters.
2813
+ * @param {*} [options] Override http request option.
2814
+ * @throws {RequiredError}
2815
+ */
2816
+ autoMerchProducts(requestParameters, options) {
2817
+ return ProductsApiFp(this.configuration).autoMerchProducts(requestParameters.project, requestParameters.autoMerchProductsRequest, options).then((request) => request(this.axios, this.basePath));
2818
+ }
2728
2819
  /**
2729
2820
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
2730
2821
  * @summary Create product
@@ -2,7 +2,7 @@
2
2
  * Product Catalog
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.93.1
5
+ * The version of the OpenAPI document: 1.95.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog
5
5
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
6
6
  *
7
- * The version of the OpenAPI document: 1.93.1
7
+ * The version of the OpenAPI document: 1.95.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Product Catalog
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.93.1
5
+ * The version of the OpenAPI document: 1.95.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog
5
5
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
6
6
  *
7
- * The version of the OpenAPI document: 1.93.1
7
+ * The version of the OpenAPI document: 1.95.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Product Catalog
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.93.1
5
+ * The version of the OpenAPI document: 1.95.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,7 +3,7 @@
3
3
  * Product Catalog
4
4
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
5
5
  *
6
- * The version of the OpenAPI document: 1.93.1
6
+ * The version of the OpenAPI document: 1.95.0
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Product Catalog
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.93.1
5
+ * The version of the OpenAPI document: 1.95.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).