@teemill/product-catalog 1.34.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 +348 -82
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +8 -2
- package/dist/api.d.ts +286 -73
- 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 +3 -2
- package/dist/esm/api.d.ts +286 -73
- 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 +3 -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/configuration.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).
|
|
@@ -16,13 +16,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.Configuration = void 0;
|
|
17
17
|
class Configuration {
|
|
18
18
|
constructor(param = {}) {
|
|
19
|
+
var _a;
|
|
19
20
|
this.apiKey = param.apiKey;
|
|
20
21
|
this.username = param.username;
|
|
21
22
|
this.password = param.password;
|
|
22
23
|
this.accessToken = param.accessToken;
|
|
23
24
|
this.basePath = param.basePath;
|
|
24
25
|
this.serverIndex = param.serverIndex;
|
|
25
|
-
this.baseOptions = 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);
|
|
26
27
|
this.formDataCtor = param.formDataCtor;
|
|
27
28
|
}
|
|
28
29
|
/**
|
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).
|
|
@@ -523,6 +523,12 @@ export interface CreateProductRequest {
|
|
|
523
523
|
* @memberof CreateProductRequest
|
|
524
524
|
*/
|
|
525
525
|
'includeInDataFeeds'?: boolean;
|
|
526
|
+
/**
|
|
527
|
+
* 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.
|
|
528
|
+
* @type {number}
|
|
529
|
+
* @memberof CreateProductRequest
|
|
530
|
+
*/
|
|
531
|
+
'shopifyId'?: number;
|
|
526
532
|
/**
|
|
527
533
|
* Key/value pairs that can be used to store additional information about the product
|
|
528
534
|
* @type {Array<MetaField>}
|
|
@@ -602,22 +608,22 @@ export interface CreateProductRequestVideosInner {
|
|
|
602
608
|
export interface CreateProductVariant {
|
|
603
609
|
/**
|
|
604
610
|
* Attributes associated to a variant such as Colour and Size.
|
|
605
|
-
* @type {Array<
|
|
611
|
+
* @type {Array<UpdateProductsRequestProductsInnerVariantsInnerAttributesInner>}
|
|
606
612
|
* @memberof CreateProductVariant
|
|
607
613
|
*/
|
|
608
|
-
'attributes': Array<
|
|
614
|
+
'attributes': Array<UpdateProductsRequestProductsInnerVariantsInnerAttributesInner>;
|
|
609
615
|
/**
|
|
610
616
|
*
|
|
611
|
-
* @type {
|
|
617
|
+
* @type {UpdateProductsRequestProductsInnerVariantsInnerRetailPrice}
|
|
612
618
|
* @memberof CreateProductVariant
|
|
613
619
|
*/
|
|
614
|
-
'retailPrice':
|
|
620
|
+
'retailPrice': UpdateProductsRequestProductsInnerVariantsInnerRetailPrice;
|
|
615
621
|
/**
|
|
616
622
|
*
|
|
617
|
-
* @type {
|
|
623
|
+
* @type {UpdateProductsRequestProductsInnerVariantsInnerSalePrice}
|
|
618
624
|
* @memberof CreateProductVariant
|
|
619
625
|
*/
|
|
620
|
-
'salePrice'?:
|
|
626
|
+
'salePrice'?: UpdateProductsRequestProductsInnerVariantsInnerSalePrice;
|
|
621
627
|
/**
|
|
622
628
|
* A custom stock keeping unit for the variant.
|
|
623
629
|
* @type {string}
|
|
@@ -642,31 +648,19 @@ export interface CreateProductVariant {
|
|
|
642
648
|
* @memberof CreateProductVariant
|
|
643
649
|
*/
|
|
644
650
|
'applicationSets'?: Array<string>;
|
|
645
|
-
}
|
|
646
|
-
/**
|
|
647
|
-
*
|
|
648
|
-
* @export
|
|
649
|
-
* @interface CreateProductVariantAttributesInner
|
|
650
|
-
*/
|
|
651
|
-
export interface CreateProductVariantAttributesInner {
|
|
652
651
|
/**
|
|
653
|
-
*
|
|
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.
|
|
654
653
|
* @type {string}
|
|
655
|
-
* @memberof
|
|
654
|
+
* @memberof CreateProductVariant
|
|
656
655
|
*/
|
|
657
|
-
'
|
|
656
|
+
'gtin'?: string | null;
|
|
658
657
|
/**
|
|
659
|
-
*
|
|
660
|
-
* @type {
|
|
661
|
-
* @memberof
|
|
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.
|
|
659
|
+
* @type {number}
|
|
660
|
+
* @memberof CreateProductVariant
|
|
662
661
|
*/
|
|
663
|
-
'
|
|
662
|
+
'shopifyId'?: number;
|
|
664
663
|
}
|
|
665
|
-
export declare const CreateProductVariantAttributesInnerNameEnum: {
|
|
666
|
-
readonly Size: "Size";
|
|
667
|
-
readonly Colour: "Colour";
|
|
668
|
-
};
|
|
669
|
-
export type CreateProductVariantAttributesInnerNameEnum = typeof CreateProductVariantAttributesInnerNameEnum[keyof typeof CreateProductVariantAttributesInnerNameEnum];
|
|
670
664
|
/**
|
|
671
665
|
*
|
|
672
666
|
* @export
|
|
@@ -680,52 +674,6 @@ export interface CreateProductVariantImagesInner {
|
|
|
680
674
|
*/
|
|
681
675
|
'src'?: string;
|
|
682
676
|
}
|
|
683
|
-
/**
|
|
684
|
-
* Variant retail price including tax.
|
|
685
|
-
* @export
|
|
686
|
-
* @interface CreateProductVariantRetailPrice
|
|
687
|
-
*/
|
|
688
|
-
export interface CreateProductVariantRetailPrice {
|
|
689
|
-
/**
|
|
690
|
-
* Price including tax in the specified currency.
|
|
691
|
-
* @type {number}
|
|
692
|
-
* @memberof CreateProductVariantRetailPrice
|
|
693
|
-
*/
|
|
694
|
-
'amount': number;
|
|
695
|
-
/**
|
|
696
|
-
* Currency code for the currency the price is valued in.
|
|
697
|
-
* @type {string}
|
|
698
|
-
* @memberof CreateProductVariantRetailPrice
|
|
699
|
-
*/
|
|
700
|
-
'currencyCode': CreateProductVariantRetailPriceCurrencyCodeEnum;
|
|
701
|
-
}
|
|
702
|
-
export declare const CreateProductVariantRetailPriceCurrencyCodeEnum: {
|
|
703
|
-
readonly Gbp: "GBP";
|
|
704
|
-
};
|
|
705
|
-
export type CreateProductVariantRetailPriceCurrencyCodeEnum = typeof CreateProductVariantRetailPriceCurrencyCodeEnum[keyof typeof CreateProductVariantRetailPriceCurrencyCodeEnum];
|
|
706
|
-
/**
|
|
707
|
-
* Variant discounted price including tax.
|
|
708
|
-
* @export
|
|
709
|
-
* @interface CreateProductVariantSalePrice
|
|
710
|
-
*/
|
|
711
|
-
export interface CreateProductVariantSalePrice {
|
|
712
|
-
/**
|
|
713
|
-
* Sale price including tax in the specified currency.
|
|
714
|
-
* @type {number}
|
|
715
|
-
* @memberof CreateProductVariantSalePrice
|
|
716
|
-
*/
|
|
717
|
-
'amount': number;
|
|
718
|
-
/**
|
|
719
|
-
* Currency code for the currency the sale price is valued in.
|
|
720
|
-
* @type {string}
|
|
721
|
-
* @memberof CreateProductVariantSalePrice
|
|
722
|
-
*/
|
|
723
|
-
'currencyCode': CreateProductVariantSalePriceCurrencyCodeEnum;
|
|
724
|
-
}
|
|
725
|
-
export declare const CreateProductVariantSalePriceCurrencyCodeEnum: {
|
|
726
|
-
readonly Gbp: "GBP";
|
|
727
|
-
};
|
|
728
|
-
export type CreateProductVariantSalePriceCurrencyCodeEnum = typeof CreateProductVariantSalePriceCurrencyCodeEnum[keyof typeof CreateProductVariantSalePriceCurrencyCodeEnum];
|
|
729
677
|
/**
|
|
730
678
|
* Image description
|
|
731
679
|
* @export
|
|
@@ -1011,6 +959,12 @@ export interface Product {
|
|
|
1011
959
|
* @memberof Product
|
|
1012
960
|
*/
|
|
1013
961
|
'includeInDataFeeds'?: boolean;
|
|
962
|
+
/**
|
|
963
|
+
* For use with the Shopify integration. The Shopify product ID that this product is linked to.
|
|
964
|
+
* @type {number}
|
|
965
|
+
* @memberof Product
|
|
966
|
+
*/
|
|
967
|
+
'shopifyId'?: number;
|
|
1014
968
|
/**
|
|
1015
969
|
*
|
|
1016
970
|
* @type {ProductWarehouseProduct}
|
|
@@ -1346,6 +1300,12 @@ export interface UpdateProductRequest {
|
|
|
1346
1300
|
* @memberof UpdateProductRequest
|
|
1347
1301
|
*/
|
|
1348
1302
|
'includeInDataFeeds'?: boolean;
|
|
1303
|
+
/**
|
|
1304
|
+
* 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.
|
|
1305
|
+
* @type {number}
|
|
1306
|
+
* @memberof UpdateProductRequest
|
|
1307
|
+
*/
|
|
1308
|
+
'shopifyId'?: number;
|
|
1349
1309
|
/**
|
|
1350
1310
|
* Key/value pairs that can be used to store additional information about the product
|
|
1351
1311
|
* @type {Array<MetaField>}
|
|
@@ -1353,6 +1313,199 @@ export interface UpdateProductRequest {
|
|
|
1353
1313
|
*/
|
|
1354
1314
|
'metafields'?: Array<MetaField>;
|
|
1355
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];
|
|
1356
1509
|
/**
|
|
1357
1510
|
*
|
|
1358
1511
|
* @export
|
|
@@ -1450,11 +1603,17 @@ export interface Variant {
|
|
|
1450
1603
|
*/
|
|
1451
1604
|
'applications'?: Array<Application>;
|
|
1452
1605
|
/**
|
|
1453
|
-
* 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.
|
|
1454
1607
|
* @type {string}
|
|
1455
1608
|
* @memberof Variant
|
|
1456
1609
|
*/
|
|
1457
1610
|
'gtin'?: string | null;
|
|
1611
|
+
/**
|
|
1612
|
+
* For use with the Shopify integration. The Shopify variant ID that this variant is linked to.
|
|
1613
|
+
* @type {number}
|
|
1614
|
+
* @memberof Variant
|
|
1615
|
+
*/
|
|
1616
|
+
'shopifyId'?: number;
|
|
1458
1617
|
/**
|
|
1459
1618
|
* Key/value pairs that can be used to store additional information about the variant
|
|
1460
1619
|
* @type {Array<MetaField>}
|
|
@@ -1941,6 +2100,15 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
1941
2100
|
* @throws {RequiredError}
|
|
1942
2101
|
*/
|
|
1943
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>;
|
|
1944
2112
|
};
|
|
1945
2113
|
/**
|
|
1946
2114
|
* ProductsApi - functional programming interface
|
|
@@ -2007,6 +2175,15 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
2007
2175
|
* @throws {RequiredError}
|
|
2008
2176
|
*/
|
|
2009
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>>;
|
|
2010
2187
|
};
|
|
2011
2188
|
/**
|
|
2012
2189
|
* ProductsApi - factory interface
|
|
@@ -2061,6 +2238,14 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
2061
2238
|
* @throws {RequiredError}
|
|
2062
2239
|
*/
|
|
2063
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>;
|
|
2064
2249
|
};
|
|
2065
2250
|
/**
|
|
2066
2251
|
* Request parameters for createProduct operation in ProductsApi.
|
|
@@ -2212,6 +2397,25 @@ export interface ProductsApiUpdateProductRequest {
|
|
|
2212
2397
|
*/
|
|
2213
2398
|
readonly updateProductRequest?: UpdateProductRequest;
|
|
2214
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
|
+
}
|
|
2215
2419
|
/**
|
|
2216
2420
|
* ProductsApi - object-oriented interface
|
|
2217
2421
|
* @export
|
|
@@ -2273,6 +2477,15 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
2273
2477
|
* @memberof ProductsApi
|
|
2274
2478
|
*/
|
|
2275
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>>;
|
|
2276
2489
|
}
|
|
2277
2490
|
/**
|
|
2278
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).
|