@teemill/product-catalog 1.35.0 → 1.37.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.37.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
+ 'barcode'?: 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
+ 'barcode'?: 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,10 +1603,17 @@ 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
  */
1610
+ 'barcode'?: string | null;
1611
+ /**
1612
+ * Deprecated. Please use `barcode` instead.
1613
+ * @type {string}
1614
+ * @memberof Variant
1615
+ * @deprecated
1616
+ */
1481
1617
  'gtin'?: string | null;
1482
1618
  /**
1483
1619
  * For use with the Shopify integration. The Shopify variant ID that this variant is linked to.
@@ -1971,6 +2107,15 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
1971
2107
  * @throws {RequiredError}
1972
2108
  */
1973
2109
  updateProduct: (project: string, productId: string, updateProductRequest?: UpdateProductRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2110
+ /**
2111
+ * Updates catalog products for the given project.
2112
+ * @summary Update products
2113
+ * @param {string} project What project it is
2114
+ * @param {UpdateProductsRequest} updateProductsRequest Update products in bulk.
2115
+ * @param {*} [options] Override http request option.
2116
+ * @throws {RequiredError}
2117
+ */
2118
+ updateProducts: (project: string, updateProductsRequest: UpdateProductsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1974
2119
  };
1975
2120
  /**
1976
2121
  * ProductsApi - functional programming interface
@@ -2037,6 +2182,15 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
2037
2182
  * @throws {RequiredError}
2038
2183
  */
2039
2184
  updateProduct(project: string, productId: string, updateProductRequest?: UpdateProductRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Product>>;
2185
+ /**
2186
+ * Updates catalog products for the given project.
2187
+ * @summary Update products
2188
+ * @param {string} project What project it is
2189
+ * @param {UpdateProductsRequest} updateProductsRequest Update products in bulk.
2190
+ * @param {*} [options] Override http request option.
2191
+ * @throws {RequiredError}
2192
+ */
2193
+ updateProducts(project: string, updateProductsRequest: UpdateProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
2040
2194
  };
2041
2195
  /**
2042
2196
  * ProductsApi - factory interface
@@ -2091,6 +2245,14 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
2091
2245
  * @throws {RequiredError}
2092
2246
  */
2093
2247
  updateProduct(requestParameters: ProductsApiUpdateProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<Product>;
2248
+ /**
2249
+ * Updates catalog products for the given project.
2250
+ * @summary Update products
2251
+ * @param {ProductsApiUpdateProductsRequest} requestParameters Request parameters.
2252
+ * @param {*} [options] Override http request option.
2253
+ * @throws {RequiredError}
2254
+ */
2255
+ updateProducts(requestParameters: ProductsApiUpdateProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductsResponse>;
2094
2256
  };
2095
2257
  /**
2096
2258
  * Request parameters for createProduct operation in ProductsApi.
@@ -2242,6 +2404,25 @@ export interface ProductsApiUpdateProductRequest {
2242
2404
  */
2243
2405
  readonly updateProductRequest?: UpdateProductRequest;
2244
2406
  }
2407
+ /**
2408
+ * Request parameters for updateProducts operation in ProductsApi.
2409
+ * @export
2410
+ * @interface ProductsApiUpdateProductsRequest
2411
+ */
2412
+ export interface ProductsApiUpdateProductsRequest {
2413
+ /**
2414
+ * What project it is
2415
+ * @type {string}
2416
+ * @memberof ProductsApiUpdateProducts
2417
+ */
2418
+ readonly project: string;
2419
+ /**
2420
+ * Update products in bulk.
2421
+ * @type {UpdateProductsRequest}
2422
+ * @memberof ProductsApiUpdateProducts
2423
+ */
2424
+ readonly updateProductsRequest: UpdateProductsRequest;
2425
+ }
2245
2426
  /**
2246
2427
  * ProductsApi - object-oriented interface
2247
2428
  * @export
@@ -2303,6 +2484,15 @@ export declare class ProductsApi extends BaseAPI {
2303
2484
  * @memberof ProductsApi
2304
2485
  */
2305
2486
  updateProduct(requestParameters: ProductsApiUpdateProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Product, any>>;
2487
+ /**
2488
+ * Updates catalog products for the given project.
2489
+ * @summary Update products
2490
+ * @param {ProductsApiUpdateProductsRequest} requestParameters Request parameters.
2491
+ * @param {*} [options] Override http request option.
2492
+ * @throws {RequiredError}
2493
+ * @memberof ProductsApi
2494
+ */
2495
+ updateProducts(requestParameters: ProductsApiUpdateProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
2306
2496
  }
2307
2497
  /**
2308
2498
  * 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.37.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.37.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.37.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.37.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.37.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.37.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.37.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.37.0/typescript-axios" }) }, param.baseOptions);
27
27
  this.formDataCtor = param.formDataCtor;
28
28
  }
29
29
  /**