@teemill/product-catalog 1.35.0 → 1.36.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.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Product Catalog API
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 warehouse product, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.35.0
5
+ * The version of the OpenAPI document: 1.36.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -608,22 +608,22 @@ export interface CreateProductRequestVideosInner {
608
608
  export interface CreateProductVariant {
609
609
  /**
610
610
  * Attributes associated to a variant such as Colour and Size.
611
- * @type {Array<CreateProductVariantAttributesInner>}
611
+ * @type {Array<UpdateProductsRequestProductsInnerVariantsInnerAttributesInner>}
612
612
  * @memberof CreateProductVariant
613
613
  */
614
- 'attributes': Array<CreateProductVariantAttributesInner>;
614
+ 'attributes': Array<UpdateProductsRequestProductsInnerVariantsInnerAttributesInner>;
615
615
  /**
616
616
  *
617
- * @type {CreateProductVariantRetailPrice}
617
+ * @type {UpdateProductsRequestProductsInnerVariantsInnerRetailPrice}
618
618
  * @memberof CreateProductVariant
619
619
  */
620
- 'retailPrice': CreateProductVariantRetailPrice;
620
+ 'retailPrice': UpdateProductsRequestProductsInnerVariantsInnerRetailPrice;
621
621
  /**
622
622
  *
623
- * @type {CreateProductVariantSalePrice}
623
+ * @type {UpdateProductsRequestProductsInnerVariantsInnerSalePrice}
624
624
  * @memberof CreateProductVariant
625
625
  */
626
- 'salePrice'?: CreateProductVariantSalePrice;
626
+ 'salePrice'?: UpdateProductsRequestProductsInnerVariantsInnerSalePrice;
627
627
  /**
628
628
  * A custom stock keeping unit for the variant.
629
629
  * @type {string}
@@ -648,6 +648,12 @@ export interface CreateProductVariant {
648
648
  * @memberof CreateProductVariant
649
649
  */
650
650
  'applicationSets'?: Array<string>;
651
+ /**
652
+ * The GTIN (Global Trade Item Number) or EAN (European Article Number) of the variant. Please note that a barcode can only be attached after it\'s been uploaded it via the Barcodes module.
653
+ * @type {string}
654
+ * @memberof CreateProductVariant
655
+ */
656
+ 'gtin'?: string | null;
651
657
  /**
652
658
  * For use with the Shopify integration. Use this to provide a Shopify variant ID to link to an existing Shopify variant rather than creating a new one.
653
659
  * @type {number}
@@ -655,30 +661,6 @@ export interface CreateProductVariant {
655
661
  */
656
662
  'shopifyId'?: number;
657
663
  }
658
- /**
659
- *
660
- * @export
661
- * @interface CreateProductVariantAttributesInner
662
- */
663
- export interface CreateProductVariantAttributesInner {
664
- /**
665
- * Attribute name
666
- * @type {string}
667
- * @memberof CreateProductVariantAttributesInner
668
- */
669
- 'name': CreateProductVariantAttributesInnerNameEnum;
670
- /**
671
- * Attribute value
672
- * @type {string}
673
- * @memberof CreateProductVariantAttributesInner
674
- */
675
- 'value': string;
676
- }
677
- export declare const CreateProductVariantAttributesInnerNameEnum: {
678
- readonly Size: "Size";
679
- readonly Colour: "Colour";
680
- };
681
- export type CreateProductVariantAttributesInnerNameEnum = typeof CreateProductVariantAttributesInnerNameEnum[keyof typeof CreateProductVariantAttributesInnerNameEnum];
682
664
  /**
683
665
  *
684
666
  * @export
@@ -692,52 +674,6 @@ export interface CreateProductVariantImagesInner {
692
674
  */
693
675
  'src'?: string;
694
676
  }
695
- /**
696
- * Variant retail price including tax.
697
- * @export
698
- * @interface CreateProductVariantRetailPrice
699
- */
700
- export interface CreateProductVariantRetailPrice {
701
- /**
702
- * Price including tax in the specified currency.
703
- * @type {number}
704
- * @memberof CreateProductVariantRetailPrice
705
- */
706
- 'amount': number;
707
- /**
708
- * Currency code for the currency the price is valued in.
709
- * @type {string}
710
- * @memberof CreateProductVariantRetailPrice
711
- */
712
- 'currencyCode': CreateProductVariantRetailPriceCurrencyCodeEnum;
713
- }
714
- export declare const CreateProductVariantRetailPriceCurrencyCodeEnum: {
715
- readonly Gbp: "GBP";
716
- };
717
- export type CreateProductVariantRetailPriceCurrencyCodeEnum = typeof CreateProductVariantRetailPriceCurrencyCodeEnum[keyof typeof CreateProductVariantRetailPriceCurrencyCodeEnum];
718
- /**
719
- * Variant discounted price including tax.
720
- * @export
721
- * @interface CreateProductVariantSalePrice
722
- */
723
- export interface CreateProductVariantSalePrice {
724
- /**
725
- * Sale price including tax in the specified currency.
726
- * @type {number}
727
- * @memberof CreateProductVariantSalePrice
728
- */
729
- 'amount': number;
730
- /**
731
- * Currency code for the currency the sale price is valued in.
732
- * @type {string}
733
- * @memberof CreateProductVariantSalePrice
734
- */
735
- 'currencyCode': CreateProductVariantSalePriceCurrencyCodeEnum;
736
- }
737
- export declare const CreateProductVariantSalePriceCurrencyCodeEnum: {
738
- readonly Gbp: "GBP";
739
- };
740
- export type CreateProductVariantSalePriceCurrencyCodeEnum = typeof CreateProductVariantSalePriceCurrencyCodeEnum[keyof typeof CreateProductVariantSalePriceCurrencyCodeEnum];
741
677
  /**
742
678
  * Image description
743
679
  * @export
@@ -1377,6 +1313,199 @@ export interface UpdateProductRequest {
1377
1313
  */
1378
1314
  'metafields'?: Array<MetaField>;
1379
1315
  }
1316
+ /**
1317
+ *
1318
+ * @export
1319
+ * @interface UpdateProductsRequest
1320
+ */
1321
+ export interface UpdateProductsRequest {
1322
+ /**
1323
+ *
1324
+ * @type {Array<UpdateProductsRequestProductsInner>}
1325
+ * @memberof UpdateProductsRequest
1326
+ */
1327
+ 'products'?: Array<UpdateProductsRequestProductsInner>;
1328
+ }
1329
+ /**
1330
+ *
1331
+ * @export
1332
+ * @interface UpdateProductsRequestProductsInner
1333
+ */
1334
+ export interface UpdateProductsRequestProductsInner {
1335
+ /**
1336
+ * Unique object identifier
1337
+ * @type {string}
1338
+ * @memberof UpdateProductsRequestProductsInner
1339
+ */
1340
+ 'id': string;
1341
+ /**
1342
+ * Product title
1343
+ * @type {string}
1344
+ * @memberof UpdateProductsRequestProductsInner
1345
+ */
1346
+ 'title'?: string;
1347
+ /**
1348
+ * Product description
1349
+ * @type {string}
1350
+ * @memberof UpdateProductsRequestProductsInner
1351
+ */
1352
+ 'description'?: string;
1353
+ /**
1354
+ * Whether the product is enabled.
1355
+ * @type {boolean}
1356
+ * @memberof UpdateProductsRequestProductsInner
1357
+ */
1358
+ 'enabled'?: boolean;
1359
+ /**
1360
+ *
1361
+ * @type {CreateProductRequestSeoMetadata}
1362
+ * @memberof UpdateProductsRequestProductsInner
1363
+ */
1364
+ 'seoMetadata'?: CreateProductRequestSeoMetadata;
1365
+ /**
1366
+ * 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
1367
+ * @type {string}
1368
+ * @memberof UpdateProductsRequestProductsInner
1369
+ */
1370
+ 'targetSearchPhrase'?: string;
1371
+ /**
1372
+ * Synonyms for the target search phrase. **Note:** This field requires the website integration
1373
+ * @type {Array<string>}
1374
+ * @memberof UpdateProductsRequestProductsInner
1375
+ */
1376
+ 'targetSearchPhraseSynonyms'?: Array<string>;
1377
+ /**
1378
+ * Additional product tags used for searching and filtering.
1379
+ * @type {Array<string>}
1380
+ * @memberof UpdateProductsRequestProductsInner
1381
+ */
1382
+ 'tags'?: Array<string>;
1383
+ /**
1384
+ * List of variants to update.
1385
+ * @type {Array<UpdateProductsRequestProductsInnerVariantsInner>}
1386
+ * @memberof UpdateProductsRequestProductsInner
1387
+ */
1388
+ 'variants'?: Array<UpdateProductsRequestProductsInnerVariantsInner>;
1389
+ /**
1390
+ * Whether the product should be included in data feeds that can be provided to Google, Meta etc for advertising.
1391
+ * @type {boolean}
1392
+ * @memberof UpdateProductsRequestProductsInner
1393
+ */
1394
+ 'includeInDataFeeds'?: boolean;
1395
+ /**
1396
+ * For use with the Shopify integration. Use this to provide a Shopify product ID to link to an existing Shopify product rather than creating a new one.
1397
+ * @type {number}
1398
+ * @memberof UpdateProductsRequestProductsInner
1399
+ */
1400
+ 'shopifyId'?: number;
1401
+ }
1402
+ /**
1403
+ *
1404
+ * @export
1405
+ * @interface UpdateProductsRequestProductsInnerVariantsInner
1406
+ */
1407
+ export interface UpdateProductsRequestProductsInnerVariantsInner {
1408
+ /**
1409
+ * Attributes associated to a variant such as Colour and Size.
1410
+ * @type {Array<UpdateProductsRequestProductsInnerVariantsInnerAttributesInner>}
1411
+ * @memberof UpdateProductsRequestProductsInnerVariantsInner
1412
+ */
1413
+ 'attributes': Array<UpdateProductsRequestProductsInnerVariantsInnerAttributesInner>;
1414
+ /**
1415
+ *
1416
+ * @type {UpdateProductsRequestProductsInnerVariantsInnerRetailPrice}
1417
+ * @memberof UpdateProductsRequestProductsInnerVariantsInner
1418
+ */
1419
+ 'retailPrice': UpdateProductsRequestProductsInnerVariantsInnerRetailPrice;
1420
+ /**
1421
+ *
1422
+ * @type {UpdateProductsRequestProductsInnerVariantsInnerSalePrice}
1423
+ * @memberof UpdateProductsRequestProductsInnerVariantsInner
1424
+ */
1425
+ 'salePrice'?: UpdateProductsRequestProductsInnerVariantsInnerSalePrice;
1426
+ /**
1427
+ * The GTIN (Global Trade Item Number) or EAN (European Article Number) of the variant. Please note that a barcode can only be attached after it\'s been uploaded it via the Barcodes module.
1428
+ * @type {string}
1429
+ * @memberof UpdateProductsRequestProductsInnerVariantsInner
1430
+ */
1431
+ 'gtin'?: string | null;
1432
+ /**
1433
+ * For use with the Shopify integration. Use this to provide a Shopify variant ID to link to an existing Shopify variant rather than creating a new one.
1434
+ * @type {number}
1435
+ * @memberof UpdateProductsRequestProductsInnerVariantsInner
1436
+ */
1437
+ 'shopifyId'?: number;
1438
+ }
1439
+ /**
1440
+ *
1441
+ * @export
1442
+ * @interface UpdateProductsRequestProductsInnerVariantsInnerAttributesInner
1443
+ */
1444
+ export interface UpdateProductsRequestProductsInnerVariantsInnerAttributesInner {
1445
+ /**
1446
+ * Attribute name
1447
+ * @type {string}
1448
+ * @memberof UpdateProductsRequestProductsInnerVariantsInnerAttributesInner
1449
+ */
1450
+ 'name': UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum;
1451
+ /**
1452
+ * Attribute value
1453
+ * @type {string}
1454
+ * @memberof UpdateProductsRequestProductsInnerVariantsInnerAttributesInner
1455
+ */
1456
+ 'value': string;
1457
+ }
1458
+ export declare const UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum: {
1459
+ readonly Size: "Size";
1460
+ readonly Colour: "Colour";
1461
+ };
1462
+ export type UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum = typeof UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum[keyof typeof UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum];
1463
+ /**
1464
+ * Variant retail price including tax.
1465
+ * @export
1466
+ * @interface UpdateProductsRequestProductsInnerVariantsInnerRetailPrice
1467
+ */
1468
+ export interface UpdateProductsRequestProductsInnerVariantsInnerRetailPrice {
1469
+ /**
1470
+ * Price including tax in the specified currency.
1471
+ * @type {number}
1472
+ * @memberof UpdateProductsRequestProductsInnerVariantsInnerRetailPrice
1473
+ */
1474
+ 'amount': number;
1475
+ /**
1476
+ * Currency code for the currency the price is valued in.
1477
+ * @type {string}
1478
+ * @memberof UpdateProductsRequestProductsInnerVariantsInnerRetailPrice
1479
+ */
1480
+ 'currencyCode': UpdateProductsRequestProductsInnerVariantsInnerRetailPriceCurrencyCodeEnum;
1481
+ }
1482
+ export declare const UpdateProductsRequestProductsInnerVariantsInnerRetailPriceCurrencyCodeEnum: {
1483
+ readonly Gbp: "GBP";
1484
+ };
1485
+ export type UpdateProductsRequestProductsInnerVariantsInnerRetailPriceCurrencyCodeEnum = typeof UpdateProductsRequestProductsInnerVariantsInnerRetailPriceCurrencyCodeEnum[keyof typeof UpdateProductsRequestProductsInnerVariantsInnerRetailPriceCurrencyCodeEnum];
1486
+ /**
1487
+ * Variant discounted price including tax.
1488
+ * @export
1489
+ * @interface UpdateProductsRequestProductsInnerVariantsInnerSalePrice
1490
+ */
1491
+ export interface UpdateProductsRequestProductsInnerVariantsInnerSalePrice {
1492
+ /**
1493
+ * Sale price including tax in the specified currency.
1494
+ * @type {number}
1495
+ * @memberof UpdateProductsRequestProductsInnerVariantsInnerSalePrice
1496
+ */
1497
+ 'amount': number;
1498
+ /**
1499
+ * Currency code for the currency the sale price is valued in.
1500
+ * @type {string}
1501
+ * @memberof UpdateProductsRequestProductsInnerVariantsInnerSalePrice
1502
+ */
1503
+ 'currencyCode': UpdateProductsRequestProductsInnerVariantsInnerSalePriceCurrencyCodeEnum;
1504
+ }
1505
+ export declare const UpdateProductsRequestProductsInnerVariantsInnerSalePriceCurrencyCodeEnum: {
1506
+ readonly Gbp: "GBP";
1507
+ };
1508
+ export type UpdateProductsRequestProductsInnerVariantsInnerSalePriceCurrencyCodeEnum = typeof UpdateProductsRequestProductsInnerVariantsInnerSalePriceCurrencyCodeEnum[keyof typeof UpdateProductsRequestProductsInnerVariantsInnerSalePriceCurrencyCodeEnum];
1380
1509
  /**
1381
1510
  *
1382
1511
  * @export
@@ -1474,7 +1603,7 @@ export interface Variant {
1474
1603
  */
1475
1604
  'applications'?: Array<Application>;
1476
1605
  /**
1477
- * Global Trade Item Number
1606
+ * The GTIN (Global Trade Item Number) or EAN (European Article Number) of the variant. Please note that a barcode can only be attached after it\'s been uploaded it via the Barcodes module.
1478
1607
  * @type {string}
1479
1608
  * @memberof Variant
1480
1609
  */
@@ -1971,6 +2100,15 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
1971
2100
  * @throws {RequiredError}
1972
2101
  */
1973
2102
  updateProduct: (project: string, productId: string, updateProductRequest?: UpdateProductRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2103
+ /**
2104
+ * Updates catalog products for the given project.
2105
+ * @summary Update products
2106
+ * @param {string} project What project it is
2107
+ * @param {UpdateProductsRequest} updateProductsRequest Update products in bulk.
2108
+ * @param {*} [options] Override http request option.
2109
+ * @throws {RequiredError}
2110
+ */
2111
+ updateProducts: (project: string, updateProductsRequest: UpdateProductsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1974
2112
  };
1975
2113
  /**
1976
2114
  * ProductsApi - functional programming interface
@@ -2037,6 +2175,15 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
2037
2175
  * @throws {RequiredError}
2038
2176
  */
2039
2177
  updateProduct(project: string, productId: string, updateProductRequest?: UpdateProductRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Product>>;
2178
+ /**
2179
+ * Updates catalog products for the given project.
2180
+ * @summary Update products
2181
+ * @param {string} project What project it is
2182
+ * @param {UpdateProductsRequest} updateProductsRequest Update products in bulk.
2183
+ * @param {*} [options] Override http request option.
2184
+ * @throws {RequiredError}
2185
+ */
2186
+ updateProducts(project: string, updateProductsRequest: UpdateProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
2040
2187
  };
2041
2188
  /**
2042
2189
  * ProductsApi - factory interface
@@ -2091,6 +2238,14 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
2091
2238
  * @throws {RequiredError}
2092
2239
  */
2093
2240
  updateProduct(requestParameters: ProductsApiUpdateProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<Product>;
2241
+ /**
2242
+ * Updates catalog products for the given project.
2243
+ * @summary Update products
2244
+ * @param {ProductsApiUpdateProductsRequest} requestParameters Request parameters.
2245
+ * @param {*} [options] Override http request option.
2246
+ * @throws {RequiredError}
2247
+ */
2248
+ updateProducts(requestParameters: ProductsApiUpdateProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductsResponse>;
2094
2249
  };
2095
2250
  /**
2096
2251
  * Request parameters for createProduct operation in ProductsApi.
@@ -2242,6 +2397,25 @@ export interface ProductsApiUpdateProductRequest {
2242
2397
  */
2243
2398
  readonly updateProductRequest?: UpdateProductRequest;
2244
2399
  }
2400
+ /**
2401
+ * Request parameters for updateProducts operation in ProductsApi.
2402
+ * @export
2403
+ * @interface ProductsApiUpdateProductsRequest
2404
+ */
2405
+ export interface ProductsApiUpdateProductsRequest {
2406
+ /**
2407
+ * What project it is
2408
+ * @type {string}
2409
+ * @memberof ProductsApiUpdateProducts
2410
+ */
2411
+ readonly project: string;
2412
+ /**
2413
+ * Update products in bulk.
2414
+ * @type {UpdateProductsRequest}
2415
+ * @memberof ProductsApiUpdateProducts
2416
+ */
2417
+ readonly updateProductsRequest: UpdateProductsRequest;
2418
+ }
2245
2419
  /**
2246
2420
  * ProductsApi - object-oriented interface
2247
2421
  * @export
@@ -2303,6 +2477,15 @@ export declare class ProductsApi extends BaseAPI {
2303
2477
  * @memberof ProductsApi
2304
2478
  */
2305
2479
  updateProduct(requestParameters: ProductsApiUpdateProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Product, any>>;
2480
+ /**
2481
+ * Updates catalog products for the given project.
2482
+ * @summary Update products
2483
+ * @param {ProductsApiUpdateProductsRequest} requestParameters Request parameters.
2484
+ * @param {*} [options] Override http request option.
2485
+ * @throws {RequiredError}
2486
+ * @memberof ProductsApi
2487
+ */
2488
+ updateProducts(requestParameters: ProductsApiUpdateProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
2306
2489
  }
2307
2490
  /**
2308
2491
  * VariantsApi - axios parameter creator
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Product Catalog API
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 warehouse product, plus listing information such as title, description and tags.
7
7
  *
8
- * The version of the OpenAPI document: 1.35.0
8
+ * The version of the OpenAPI document: 1.36.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.VariantsApi = exports.VariantsApiFactory = exports.VariantsApiFp = exports.VariantsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.ApplicationSetsApi = exports.ApplicationSetsApiFactory = exports.ApplicationSetsApiFp = exports.ApplicationSetsApiAxiosParamCreator = exports.PriceCurrencyCodeEnum = exports.CreateProductVariantSalePriceCurrencyCodeEnum = exports.CreateProductVariantRetailPriceCurrencyCodeEnum = exports.CreateProductVariantAttributesInnerNameEnum = exports.CreateApplicationSetRequestRecordsInnerAttributesInnerThumbnailTypeEnum = exports.CreateApplicationPlacementEnum = exports.CreateApplicationTechnologyEnum = exports.ApplicationPlacementEnum = exports.ApplicationTechnologyEnum = void 0;
25
+ exports.VariantsApi = exports.VariantsApiFactory = exports.VariantsApiFp = exports.VariantsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.ApplicationSetsApi = exports.ApplicationSetsApiFactory = exports.ApplicationSetsApiFp = exports.ApplicationSetsApiAxiosParamCreator = exports.UpdateProductsRequestProductsInnerVariantsInnerSalePriceCurrencyCodeEnum = exports.UpdateProductsRequestProductsInnerVariantsInnerRetailPriceCurrencyCodeEnum = exports.UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum = exports.PriceCurrencyCodeEnum = exports.CreateApplicationSetRequestRecordsInnerAttributesInnerThumbnailTypeEnum = exports.CreateApplicationPlacementEnum = exports.CreateApplicationTechnologyEnum = exports.ApplicationPlacementEnum = exports.ApplicationTechnologyEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -70,17 +70,17 @@ exports.CreateApplicationSetRequestRecordsInnerAttributesInnerThumbnailTypeEnum
70
70
  Color: 'color',
71
71
  Image: 'image'
72
72
  };
73
- exports.CreateProductVariantAttributesInnerNameEnum = {
73
+ exports.PriceCurrencyCodeEnum = {
74
+ Gbp: 'GBP'
75
+ };
76
+ exports.UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum = {
74
77
  Size: 'Size',
75
78
  Colour: 'Colour'
76
79
  };
77
- exports.CreateProductVariantRetailPriceCurrencyCodeEnum = {
78
- Gbp: 'GBP'
79
- };
80
- exports.CreateProductVariantSalePriceCurrencyCodeEnum = {
80
+ exports.UpdateProductsRequestProductsInnerVariantsInnerRetailPriceCurrencyCodeEnum = {
81
81
  Gbp: 'GBP'
82
82
  };
83
- exports.PriceCurrencyCodeEnum = {
83
+ exports.UpdateProductsRequestProductsInnerVariantsInnerSalePriceCurrencyCodeEnum = {
84
84
  Gbp: 'GBP'
85
85
  };
86
86
  /**
@@ -791,6 +791,47 @@ const ProductsApiAxiosParamCreator = function (configuration) {
791
791
  options: localVarRequestOptions,
792
792
  };
793
793
  }),
794
+ /**
795
+ * Updates catalog products for the given project.
796
+ * @summary Update products
797
+ * @param {string} project What project it is
798
+ * @param {UpdateProductsRequest} updateProductsRequest Update products in bulk.
799
+ * @param {*} [options] Override http request option.
800
+ * @throws {RequiredError}
801
+ */
802
+ updateProducts: (project_1, updateProductsRequest_1, ...args_1) => __awaiter(this, [project_1, updateProductsRequest_1, ...args_1], void 0, function* (project, updateProductsRequest, options = {}) {
803
+ // verify required parameter 'project' is not null or undefined
804
+ (0, common_1.assertParamExists)('updateProducts', 'project', project);
805
+ // verify required parameter 'updateProductsRequest' is not null or undefined
806
+ (0, common_1.assertParamExists)('updateProducts', 'updateProductsRequest', updateProductsRequest);
807
+ const localVarPath = `/v1/catalog/products`;
808
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
809
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
810
+ let baseOptions;
811
+ if (configuration) {
812
+ baseOptions = configuration.baseOptions;
813
+ }
814
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
815
+ const localVarHeaderParameter = {};
816
+ const localVarQueryParameter = {};
817
+ // authentication session-oauth required
818
+ // oauth required
819
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
820
+ // authentication api-key required
821
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
822
+ if (project !== undefined) {
823
+ localVarQueryParameter['project'] = project;
824
+ }
825
+ localVarHeaderParameter['Content-Type'] = 'application/json';
826
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
827
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
828
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
829
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProductsRequest, localVarRequestOptions, configuration);
830
+ return {
831
+ url: (0, common_1.toPathString)(localVarUrlObj),
832
+ options: localVarRequestOptions,
833
+ };
834
+ }),
794
835
  };
795
836
  };
796
837
  exports.ProductsApiAxiosParamCreator = ProductsApiAxiosParamCreator;
@@ -909,6 +950,23 @@ const ProductsApiFp = function (configuration) {
909
950
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
910
951
  });
911
952
  },
953
+ /**
954
+ * Updates catalog products for the given project.
955
+ * @summary Update products
956
+ * @param {string} project What project it is
957
+ * @param {UpdateProductsRequest} updateProductsRequest Update products in bulk.
958
+ * @param {*} [options] Override http request option.
959
+ * @throws {RequiredError}
960
+ */
961
+ updateProducts(project, updateProductsRequest, options) {
962
+ return __awaiter(this, void 0, void 0, function* () {
963
+ var _a, _b, _c;
964
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProducts(project, updateProductsRequest, options);
965
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
966
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.updateProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
967
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
968
+ });
969
+ },
912
970
  };
913
971
  };
914
972
  exports.ProductsApiFp = ProductsApiFp;
@@ -979,6 +1037,16 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
979
1037
  updateProduct(requestParameters, options) {
980
1038
  return localVarFp.updateProduct(requestParameters.project, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
981
1039
  },
1040
+ /**
1041
+ * Updates catalog products for the given project.
1042
+ * @summary Update products
1043
+ * @param {ProductsApiUpdateProductsRequest} requestParameters Request parameters.
1044
+ * @param {*} [options] Override http request option.
1045
+ * @throws {RequiredError}
1046
+ */
1047
+ updateProducts(requestParameters, options) {
1048
+ return localVarFp.updateProducts(requestParameters.project, requestParameters.updateProductsRequest, options).then((request) => request(axios, basePath));
1049
+ },
982
1050
  };
983
1051
  };
984
1052
  exports.ProductsApiFactory = ProductsApiFactory;
@@ -1055,6 +1123,17 @@ class ProductsApi extends base_1.BaseAPI {
1055
1123
  updateProduct(requestParameters, options) {
1056
1124
  return (0, exports.ProductsApiFp)(this.configuration).updateProduct(requestParameters.project, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
1057
1125
  }
1126
+ /**
1127
+ * Updates catalog products for the given project.
1128
+ * @summary Update products
1129
+ * @param {ProductsApiUpdateProductsRequest} requestParameters Request parameters.
1130
+ * @param {*} [options] Override http request option.
1131
+ * @throws {RequiredError}
1132
+ * @memberof ProductsApi
1133
+ */
1134
+ updateProducts(requestParameters, options) {
1135
+ return (0, exports.ProductsApiFp)(this.configuration).updateProducts(requestParameters.project, requestParameters.updateProductsRequest, options).then((request) => request(this.axios, this.basePath));
1136
+ }
1058
1137
  }
1059
1138
  exports.ProductsApi = ProductsApi;
1060
1139
  /**
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Product Catalog API
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 warehouse product, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.35.0
5
+ * The version of the OpenAPI document: 1.36.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 API
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 warehouse product, plus listing information such as title, description and tags.
7
7
  *
8
- * The version of the OpenAPI document: 1.35.0
8
+ * The version of the OpenAPI document: 1.36.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 API
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 warehouse product, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.35.0
5
+ * The version of the OpenAPI document: 1.36.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 API
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 warehouse product, plus listing information such as title, description and tags.
7
7
  *
8
- * The version of the OpenAPI document: 1.35.0
8
+ * The version of the OpenAPI document: 1.36.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 API
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 warehouse product, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.35.0
5
+ * The version of the OpenAPI document: 1.36.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Product Catalog API
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 warehouse product, plus listing information such as title, description and tags.
7
7
  *
8
- * The version of the OpenAPI document: 1.35.0
8
+ * The version of the OpenAPI document: 1.36.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,7 +23,7 @@ class Configuration {
23
23
  this.accessToken = param.accessToken;
24
24
  this.basePath = param.basePath;
25
25
  this.serverIndex = param.serverIndex;
26
- this.baseOptions = Object.assign({ headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': "OpenAPI-Generator/1.35.0/typescript-axios" }) }, param.baseOptions);
26
+ this.baseOptions = Object.assign({ headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': "OpenAPI-Generator/1.36.0/typescript-axios" }) }, param.baseOptions);
27
27
  this.formDataCtor = param.formDataCtor;
28
28
  }
29
29
  /**