@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/README.md +2 -2
- package/api.ts +323 -87
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +261 -78
- package/dist/api.js +87 -8
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +261 -78
- package/dist/esm/api.js +86 -7
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/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.
|
|
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<
|
|
611
|
+
* @type {Array<UpdateProductsRequestProductsInnerVariantsInnerAttributesInner>}
|
|
612
612
|
* @memberof CreateProductVariant
|
|
613
613
|
*/
|
|
614
|
-
'attributes': Array<
|
|
614
|
+
'attributes': Array<UpdateProductsRequestProductsInnerVariantsInnerAttributesInner>;
|
|
615
615
|
/**
|
|
616
616
|
*
|
|
617
|
-
* @type {
|
|
617
|
+
* @type {UpdateProductsRequestProductsInnerVariantsInnerRetailPrice}
|
|
618
618
|
* @memberof CreateProductVariant
|
|
619
619
|
*/
|
|
620
|
-
'retailPrice':
|
|
620
|
+
'retailPrice': UpdateProductsRequestProductsInnerVariantsInnerRetailPrice;
|
|
621
621
|
/**
|
|
622
622
|
*
|
|
623
|
-
* @type {
|
|
623
|
+
* @type {UpdateProductsRequestProductsInnerVariantsInnerSalePrice}
|
|
624
624
|
* @memberof CreateProductVariant
|
|
625
625
|
*/
|
|
626
|
-
'salePrice'?:
|
|
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/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product Catalog API
|
|
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 warehouse product, plus listing information such as title, description and tags.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.36.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -67,17 +67,17 @@ export const CreateApplicationSetRequestRecordsInnerAttributesInnerThumbnailType
|
|
|
67
67
|
Color: 'color',
|
|
68
68
|
Image: 'image'
|
|
69
69
|
};
|
|
70
|
-
export const
|
|
70
|
+
export const PriceCurrencyCodeEnum = {
|
|
71
|
+
Gbp: 'GBP'
|
|
72
|
+
};
|
|
73
|
+
export const UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum = {
|
|
71
74
|
Size: 'Size',
|
|
72
75
|
Colour: 'Colour'
|
|
73
76
|
};
|
|
74
|
-
export const
|
|
75
|
-
Gbp: 'GBP'
|
|
76
|
-
};
|
|
77
|
-
export const CreateProductVariantSalePriceCurrencyCodeEnum = {
|
|
77
|
+
export const UpdateProductsRequestProductsInnerVariantsInnerRetailPriceCurrencyCodeEnum = {
|
|
78
78
|
Gbp: 'GBP'
|
|
79
79
|
};
|
|
80
|
-
export const
|
|
80
|
+
export const UpdateProductsRequestProductsInnerVariantsInnerSalePriceCurrencyCodeEnum = {
|
|
81
81
|
Gbp: 'GBP'
|
|
82
82
|
};
|
|
83
83
|
/**
|
|
@@ -784,6 +784,47 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
784
784
|
options: localVarRequestOptions,
|
|
785
785
|
};
|
|
786
786
|
}),
|
|
787
|
+
/**
|
|
788
|
+
* Updates catalog products for the given project.
|
|
789
|
+
* @summary Update products
|
|
790
|
+
* @param {string} project What project it is
|
|
791
|
+
* @param {UpdateProductsRequest} updateProductsRequest Update products in bulk.
|
|
792
|
+
* @param {*} [options] Override http request option.
|
|
793
|
+
* @throws {RequiredError}
|
|
794
|
+
*/
|
|
795
|
+
updateProducts: (project_1, updateProductsRequest_1, ...args_1) => __awaiter(this, [project_1, updateProductsRequest_1, ...args_1], void 0, function* (project, updateProductsRequest, options = {}) {
|
|
796
|
+
// verify required parameter 'project' is not null or undefined
|
|
797
|
+
assertParamExists('updateProducts', 'project', project);
|
|
798
|
+
// verify required parameter 'updateProductsRequest' is not null or undefined
|
|
799
|
+
assertParamExists('updateProducts', 'updateProductsRequest', updateProductsRequest);
|
|
800
|
+
const localVarPath = `/v1/catalog/products`;
|
|
801
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
802
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
803
|
+
let baseOptions;
|
|
804
|
+
if (configuration) {
|
|
805
|
+
baseOptions = configuration.baseOptions;
|
|
806
|
+
}
|
|
807
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
808
|
+
const localVarHeaderParameter = {};
|
|
809
|
+
const localVarQueryParameter = {};
|
|
810
|
+
// authentication session-oauth required
|
|
811
|
+
// oauth required
|
|
812
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
813
|
+
// authentication api-key required
|
|
814
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
815
|
+
if (project !== undefined) {
|
|
816
|
+
localVarQueryParameter['project'] = project;
|
|
817
|
+
}
|
|
818
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
819
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
820
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
821
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
822
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateProductsRequest, localVarRequestOptions, configuration);
|
|
823
|
+
return {
|
|
824
|
+
url: toPathString(localVarUrlObj),
|
|
825
|
+
options: localVarRequestOptions,
|
|
826
|
+
};
|
|
827
|
+
}),
|
|
787
828
|
};
|
|
788
829
|
};
|
|
789
830
|
/**
|
|
@@ -901,6 +942,23 @@ export const ProductsApiFp = function (configuration) {
|
|
|
901
942
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
902
943
|
});
|
|
903
944
|
},
|
|
945
|
+
/**
|
|
946
|
+
* Updates catalog products for the given project.
|
|
947
|
+
* @summary Update products
|
|
948
|
+
* @param {string} project What project it is
|
|
949
|
+
* @param {UpdateProductsRequest} updateProductsRequest Update products in bulk.
|
|
950
|
+
* @param {*} [options] Override http request option.
|
|
951
|
+
* @throws {RequiredError}
|
|
952
|
+
*/
|
|
953
|
+
updateProducts(project, updateProductsRequest, options) {
|
|
954
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
955
|
+
var _a, _b, _c;
|
|
956
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProducts(project, updateProductsRequest, options);
|
|
957
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
958
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProductsApi.updateProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
959
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
960
|
+
});
|
|
961
|
+
},
|
|
904
962
|
};
|
|
905
963
|
};
|
|
906
964
|
/**
|
|
@@ -970,6 +1028,16 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
970
1028
|
updateProduct(requestParameters, options) {
|
|
971
1029
|
return localVarFp.updateProduct(requestParameters.project, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
|
|
972
1030
|
},
|
|
1031
|
+
/**
|
|
1032
|
+
* Updates catalog products for the given project.
|
|
1033
|
+
* @summary Update products
|
|
1034
|
+
* @param {ProductsApiUpdateProductsRequest} requestParameters Request parameters.
|
|
1035
|
+
* @param {*} [options] Override http request option.
|
|
1036
|
+
* @throws {RequiredError}
|
|
1037
|
+
*/
|
|
1038
|
+
updateProducts(requestParameters, options) {
|
|
1039
|
+
return localVarFp.updateProducts(requestParameters.project, requestParameters.updateProductsRequest, options).then((request) => request(axios, basePath));
|
|
1040
|
+
},
|
|
973
1041
|
};
|
|
974
1042
|
};
|
|
975
1043
|
/**
|
|
@@ -1045,6 +1113,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
1045
1113
|
updateProduct(requestParameters, options) {
|
|
1046
1114
|
return ProductsApiFp(this.configuration).updateProduct(requestParameters.project, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1047
1115
|
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Updates catalog products for the given project.
|
|
1118
|
+
* @summary Update products
|
|
1119
|
+
* @param {ProductsApiUpdateProductsRequest} requestParameters Request parameters.
|
|
1120
|
+
* @param {*} [options] Override http request option.
|
|
1121
|
+
* @throws {RequiredError}
|
|
1122
|
+
* @memberof ProductsApi
|
|
1123
|
+
*/
|
|
1124
|
+
updateProducts(requestParameters, options) {
|
|
1125
|
+
return ProductsApiFp(this.configuration).updateProducts(requestParameters.project, requestParameters.updateProductsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1126
|
+
}
|
|
1048
1127
|
}
|
|
1049
1128
|
/**
|
|
1050
1129
|
* VariantsApi - axios parameter creator
|
package/dist/esm/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.
|
|
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/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product Catalog API
|
|
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 warehouse product, plus listing information such as title, description and tags.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.36.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/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.
|
|
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/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product Catalog API
|
|
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 warehouse product, plus listing information such as title, description and tags.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.36.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 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.
|
|
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).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product Catalog API
|
|
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 warehouse product, plus listing information such as title, description and tags.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.36.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -20,7 +20,7 @@ export class Configuration {
|
|
|
20
20
|
this.accessToken = param.accessToken;
|
|
21
21
|
this.basePath = param.basePath;
|
|
22
22
|
this.serverIndex = param.serverIndex;
|
|
23
|
-
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.
|
|
23
|
+
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);
|
|
24
24
|
this.formDataCtor = param.formDataCtor;
|
|
25
25
|
}
|
|
26
26
|
/**
|
package/dist/esm/index.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.
|
|
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/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product Catalog API
|
|
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 warehouse product, plus listing information such as title, description and tags.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.36.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.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.
|
|
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/index.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.
|
|
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).
|