@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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/product-catalog@1.
|
|
1
|
+
## @teemill/product-catalog@1.36.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/product-catalog@1.
|
|
39
|
+
npm install @teemill/product-catalog@1.36.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
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).
|
|
@@ -629,22 +629,22 @@ export interface CreateProductRequestVideosInner {
|
|
|
629
629
|
export interface CreateProductVariant {
|
|
630
630
|
/**
|
|
631
631
|
* Attributes associated to a variant such as Colour and Size.
|
|
632
|
-
* @type {Array<
|
|
632
|
+
* @type {Array<UpdateProductsRequestProductsInnerVariantsInnerAttributesInner>}
|
|
633
633
|
* @memberof CreateProductVariant
|
|
634
634
|
*/
|
|
635
|
-
'attributes': Array<
|
|
635
|
+
'attributes': Array<UpdateProductsRequestProductsInnerVariantsInnerAttributesInner>;
|
|
636
636
|
/**
|
|
637
637
|
*
|
|
638
|
-
* @type {
|
|
638
|
+
* @type {UpdateProductsRequestProductsInnerVariantsInnerRetailPrice}
|
|
639
639
|
* @memberof CreateProductVariant
|
|
640
640
|
*/
|
|
641
|
-
'retailPrice':
|
|
641
|
+
'retailPrice': UpdateProductsRequestProductsInnerVariantsInnerRetailPrice;
|
|
642
642
|
/**
|
|
643
643
|
*
|
|
644
|
-
* @type {
|
|
644
|
+
* @type {UpdateProductsRequestProductsInnerVariantsInnerSalePrice}
|
|
645
645
|
* @memberof CreateProductVariant
|
|
646
646
|
*/
|
|
647
|
-
'salePrice'?:
|
|
647
|
+
'salePrice'?: UpdateProductsRequestProductsInnerVariantsInnerSalePrice;
|
|
648
648
|
/**
|
|
649
649
|
* A custom stock keeping unit for the variant.
|
|
650
650
|
* @type {string}
|
|
@@ -669,6 +669,12 @@ export interface CreateProductVariant {
|
|
|
669
669
|
* @memberof CreateProductVariant
|
|
670
670
|
*/
|
|
671
671
|
'applicationSets'?: Array<string>;
|
|
672
|
+
/**
|
|
673
|
+
* 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.
|
|
674
|
+
* @type {string}
|
|
675
|
+
* @memberof CreateProductVariant
|
|
676
|
+
*/
|
|
677
|
+
'gtin'?: string | null;
|
|
672
678
|
/**
|
|
673
679
|
* 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.
|
|
674
680
|
* @type {number}
|
|
@@ -676,33 +682,6 @@ export interface CreateProductVariant {
|
|
|
676
682
|
*/
|
|
677
683
|
'shopifyId'?: number;
|
|
678
684
|
}
|
|
679
|
-
/**
|
|
680
|
-
*
|
|
681
|
-
* @export
|
|
682
|
-
* @interface CreateProductVariantAttributesInner
|
|
683
|
-
*/
|
|
684
|
-
export interface CreateProductVariantAttributesInner {
|
|
685
|
-
/**
|
|
686
|
-
* Attribute name
|
|
687
|
-
* @type {string}
|
|
688
|
-
* @memberof CreateProductVariantAttributesInner
|
|
689
|
-
*/
|
|
690
|
-
'name': CreateProductVariantAttributesInnerNameEnum;
|
|
691
|
-
/**
|
|
692
|
-
* Attribute value
|
|
693
|
-
* @type {string}
|
|
694
|
-
* @memberof CreateProductVariantAttributesInner
|
|
695
|
-
*/
|
|
696
|
-
'value': string;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
export const CreateProductVariantAttributesInnerNameEnum = {
|
|
700
|
-
Size: 'Size',
|
|
701
|
-
Colour: 'Colour'
|
|
702
|
-
} as const;
|
|
703
|
-
|
|
704
|
-
export type CreateProductVariantAttributesInnerNameEnum = typeof CreateProductVariantAttributesInnerNameEnum[keyof typeof CreateProductVariantAttributesInnerNameEnum];
|
|
705
|
-
|
|
706
685
|
/**
|
|
707
686
|
*
|
|
708
687
|
* @export
|
|
@@ -716,58 +695,6 @@ export interface CreateProductVariantImagesInner {
|
|
|
716
695
|
*/
|
|
717
696
|
'src'?: string;
|
|
718
697
|
}
|
|
719
|
-
/**
|
|
720
|
-
* Variant retail price including tax.
|
|
721
|
-
* @export
|
|
722
|
-
* @interface CreateProductVariantRetailPrice
|
|
723
|
-
*/
|
|
724
|
-
export interface CreateProductVariantRetailPrice {
|
|
725
|
-
/**
|
|
726
|
-
* Price including tax in the specified currency.
|
|
727
|
-
* @type {number}
|
|
728
|
-
* @memberof CreateProductVariantRetailPrice
|
|
729
|
-
*/
|
|
730
|
-
'amount': number;
|
|
731
|
-
/**
|
|
732
|
-
* Currency code for the currency the price is valued in.
|
|
733
|
-
* @type {string}
|
|
734
|
-
* @memberof CreateProductVariantRetailPrice
|
|
735
|
-
*/
|
|
736
|
-
'currencyCode': CreateProductVariantRetailPriceCurrencyCodeEnum;
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
export const CreateProductVariantRetailPriceCurrencyCodeEnum = {
|
|
740
|
-
Gbp: 'GBP'
|
|
741
|
-
} as const;
|
|
742
|
-
|
|
743
|
-
export type CreateProductVariantRetailPriceCurrencyCodeEnum = typeof CreateProductVariantRetailPriceCurrencyCodeEnum[keyof typeof CreateProductVariantRetailPriceCurrencyCodeEnum];
|
|
744
|
-
|
|
745
|
-
/**
|
|
746
|
-
* Variant discounted price including tax.
|
|
747
|
-
* @export
|
|
748
|
-
* @interface CreateProductVariantSalePrice
|
|
749
|
-
*/
|
|
750
|
-
export interface CreateProductVariantSalePrice {
|
|
751
|
-
/**
|
|
752
|
-
* Sale price including tax in the specified currency.
|
|
753
|
-
* @type {number}
|
|
754
|
-
* @memberof CreateProductVariantSalePrice
|
|
755
|
-
*/
|
|
756
|
-
'amount': number;
|
|
757
|
-
/**
|
|
758
|
-
* Currency code for the currency the sale price is valued in.
|
|
759
|
-
* @type {string}
|
|
760
|
-
* @memberof CreateProductVariantSalePrice
|
|
761
|
-
*/
|
|
762
|
-
'currencyCode': CreateProductVariantSalePriceCurrencyCodeEnum;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
export const CreateProductVariantSalePriceCurrencyCodeEnum = {
|
|
766
|
-
Gbp: 'GBP'
|
|
767
|
-
} as const;
|
|
768
|
-
|
|
769
|
-
export type CreateProductVariantSalePriceCurrencyCodeEnum = typeof CreateProductVariantSalePriceCurrencyCodeEnum[keyof typeof CreateProductVariantSalePriceCurrencyCodeEnum];
|
|
770
|
-
|
|
771
698
|
/**
|
|
772
699
|
* Image description
|
|
773
700
|
* @export
|
|
@@ -1410,6 +1337,208 @@ export interface UpdateProductRequest {
|
|
|
1410
1337
|
*/
|
|
1411
1338
|
'metafields'?: Array<MetaField>;
|
|
1412
1339
|
}
|
|
1340
|
+
/**
|
|
1341
|
+
*
|
|
1342
|
+
* @export
|
|
1343
|
+
* @interface UpdateProductsRequest
|
|
1344
|
+
*/
|
|
1345
|
+
export interface UpdateProductsRequest {
|
|
1346
|
+
/**
|
|
1347
|
+
*
|
|
1348
|
+
* @type {Array<UpdateProductsRequestProductsInner>}
|
|
1349
|
+
* @memberof UpdateProductsRequest
|
|
1350
|
+
*/
|
|
1351
|
+
'products'?: Array<UpdateProductsRequestProductsInner>;
|
|
1352
|
+
}
|
|
1353
|
+
/**
|
|
1354
|
+
*
|
|
1355
|
+
* @export
|
|
1356
|
+
* @interface UpdateProductsRequestProductsInner
|
|
1357
|
+
*/
|
|
1358
|
+
export interface UpdateProductsRequestProductsInner {
|
|
1359
|
+
/**
|
|
1360
|
+
* Unique object identifier
|
|
1361
|
+
* @type {string}
|
|
1362
|
+
* @memberof UpdateProductsRequestProductsInner
|
|
1363
|
+
*/
|
|
1364
|
+
'id': string;
|
|
1365
|
+
/**
|
|
1366
|
+
* Product title
|
|
1367
|
+
* @type {string}
|
|
1368
|
+
* @memberof UpdateProductsRequestProductsInner
|
|
1369
|
+
*/
|
|
1370
|
+
'title'?: string;
|
|
1371
|
+
/**
|
|
1372
|
+
* Product description
|
|
1373
|
+
* @type {string}
|
|
1374
|
+
* @memberof UpdateProductsRequestProductsInner
|
|
1375
|
+
*/
|
|
1376
|
+
'description'?: string;
|
|
1377
|
+
/**
|
|
1378
|
+
* Whether the product is enabled.
|
|
1379
|
+
* @type {boolean}
|
|
1380
|
+
* @memberof UpdateProductsRequestProductsInner
|
|
1381
|
+
*/
|
|
1382
|
+
'enabled'?: boolean;
|
|
1383
|
+
/**
|
|
1384
|
+
*
|
|
1385
|
+
* @type {CreateProductRequestSeoMetadata}
|
|
1386
|
+
* @memberof UpdateProductsRequestProductsInner
|
|
1387
|
+
*/
|
|
1388
|
+
'seoMetadata'?: CreateProductRequestSeoMetadata;
|
|
1389
|
+
/**
|
|
1390
|
+
* 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
|
|
1391
|
+
* @type {string}
|
|
1392
|
+
* @memberof UpdateProductsRequestProductsInner
|
|
1393
|
+
*/
|
|
1394
|
+
'targetSearchPhrase'?: string;
|
|
1395
|
+
/**
|
|
1396
|
+
* Synonyms for the target search phrase. **Note:** This field requires the website integration
|
|
1397
|
+
* @type {Array<string>}
|
|
1398
|
+
* @memberof UpdateProductsRequestProductsInner
|
|
1399
|
+
*/
|
|
1400
|
+
'targetSearchPhraseSynonyms'?: Array<string>;
|
|
1401
|
+
/**
|
|
1402
|
+
* Additional product tags used for searching and filtering.
|
|
1403
|
+
* @type {Array<string>}
|
|
1404
|
+
* @memberof UpdateProductsRequestProductsInner
|
|
1405
|
+
*/
|
|
1406
|
+
'tags'?: Array<string>;
|
|
1407
|
+
/**
|
|
1408
|
+
* List of variants to update.
|
|
1409
|
+
* @type {Array<UpdateProductsRequestProductsInnerVariantsInner>}
|
|
1410
|
+
* @memberof UpdateProductsRequestProductsInner
|
|
1411
|
+
*/
|
|
1412
|
+
'variants'?: Array<UpdateProductsRequestProductsInnerVariantsInner>;
|
|
1413
|
+
/**
|
|
1414
|
+
* Whether the product should be included in data feeds that can be provided to Google, Meta etc for advertising.
|
|
1415
|
+
* @type {boolean}
|
|
1416
|
+
* @memberof UpdateProductsRequestProductsInner
|
|
1417
|
+
*/
|
|
1418
|
+
'includeInDataFeeds'?: boolean;
|
|
1419
|
+
/**
|
|
1420
|
+
* 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.
|
|
1421
|
+
* @type {number}
|
|
1422
|
+
* @memberof UpdateProductsRequestProductsInner
|
|
1423
|
+
*/
|
|
1424
|
+
'shopifyId'?: number;
|
|
1425
|
+
}
|
|
1426
|
+
/**
|
|
1427
|
+
*
|
|
1428
|
+
* @export
|
|
1429
|
+
* @interface UpdateProductsRequestProductsInnerVariantsInner
|
|
1430
|
+
*/
|
|
1431
|
+
export interface UpdateProductsRequestProductsInnerVariantsInner {
|
|
1432
|
+
/**
|
|
1433
|
+
* Attributes associated to a variant such as Colour and Size.
|
|
1434
|
+
* @type {Array<UpdateProductsRequestProductsInnerVariantsInnerAttributesInner>}
|
|
1435
|
+
* @memberof UpdateProductsRequestProductsInnerVariantsInner
|
|
1436
|
+
*/
|
|
1437
|
+
'attributes': Array<UpdateProductsRequestProductsInnerVariantsInnerAttributesInner>;
|
|
1438
|
+
/**
|
|
1439
|
+
*
|
|
1440
|
+
* @type {UpdateProductsRequestProductsInnerVariantsInnerRetailPrice}
|
|
1441
|
+
* @memberof UpdateProductsRequestProductsInnerVariantsInner
|
|
1442
|
+
*/
|
|
1443
|
+
'retailPrice': UpdateProductsRequestProductsInnerVariantsInnerRetailPrice;
|
|
1444
|
+
/**
|
|
1445
|
+
*
|
|
1446
|
+
* @type {UpdateProductsRequestProductsInnerVariantsInnerSalePrice}
|
|
1447
|
+
* @memberof UpdateProductsRequestProductsInnerVariantsInner
|
|
1448
|
+
*/
|
|
1449
|
+
'salePrice'?: UpdateProductsRequestProductsInnerVariantsInnerSalePrice;
|
|
1450
|
+
/**
|
|
1451
|
+
* 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.
|
|
1452
|
+
* @type {string}
|
|
1453
|
+
* @memberof UpdateProductsRequestProductsInnerVariantsInner
|
|
1454
|
+
*/
|
|
1455
|
+
'gtin'?: string | null;
|
|
1456
|
+
/**
|
|
1457
|
+
* 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.
|
|
1458
|
+
* @type {number}
|
|
1459
|
+
* @memberof UpdateProductsRequestProductsInnerVariantsInner
|
|
1460
|
+
*/
|
|
1461
|
+
'shopifyId'?: number;
|
|
1462
|
+
}
|
|
1463
|
+
/**
|
|
1464
|
+
*
|
|
1465
|
+
* @export
|
|
1466
|
+
* @interface UpdateProductsRequestProductsInnerVariantsInnerAttributesInner
|
|
1467
|
+
*/
|
|
1468
|
+
export interface UpdateProductsRequestProductsInnerVariantsInnerAttributesInner {
|
|
1469
|
+
/**
|
|
1470
|
+
* Attribute name
|
|
1471
|
+
* @type {string}
|
|
1472
|
+
* @memberof UpdateProductsRequestProductsInnerVariantsInnerAttributesInner
|
|
1473
|
+
*/
|
|
1474
|
+
'name': UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum;
|
|
1475
|
+
/**
|
|
1476
|
+
* Attribute value
|
|
1477
|
+
* @type {string}
|
|
1478
|
+
* @memberof UpdateProductsRequestProductsInnerVariantsInnerAttributesInner
|
|
1479
|
+
*/
|
|
1480
|
+
'value': string;
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
export const UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum = {
|
|
1484
|
+
Size: 'Size',
|
|
1485
|
+
Colour: 'Colour'
|
|
1486
|
+
} as const;
|
|
1487
|
+
|
|
1488
|
+
export type UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum = typeof UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum[keyof typeof UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum];
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
* Variant retail price including tax.
|
|
1492
|
+
* @export
|
|
1493
|
+
* @interface UpdateProductsRequestProductsInnerVariantsInnerRetailPrice
|
|
1494
|
+
*/
|
|
1495
|
+
export interface UpdateProductsRequestProductsInnerVariantsInnerRetailPrice {
|
|
1496
|
+
/**
|
|
1497
|
+
* Price including tax in the specified currency.
|
|
1498
|
+
* @type {number}
|
|
1499
|
+
* @memberof UpdateProductsRequestProductsInnerVariantsInnerRetailPrice
|
|
1500
|
+
*/
|
|
1501
|
+
'amount': number;
|
|
1502
|
+
/**
|
|
1503
|
+
* Currency code for the currency the price is valued in.
|
|
1504
|
+
* @type {string}
|
|
1505
|
+
* @memberof UpdateProductsRequestProductsInnerVariantsInnerRetailPrice
|
|
1506
|
+
*/
|
|
1507
|
+
'currencyCode': UpdateProductsRequestProductsInnerVariantsInnerRetailPriceCurrencyCodeEnum;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
export const UpdateProductsRequestProductsInnerVariantsInnerRetailPriceCurrencyCodeEnum = {
|
|
1511
|
+
Gbp: 'GBP'
|
|
1512
|
+
} as const;
|
|
1513
|
+
|
|
1514
|
+
export type UpdateProductsRequestProductsInnerVariantsInnerRetailPriceCurrencyCodeEnum = typeof UpdateProductsRequestProductsInnerVariantsInnerRetailPriceCurrencyCodeEnum[keyof typeof UpdateProductsRequestProductsInnerVariantsInnerRetailPriceCurrencyCodeEnum];
|
|
1515
|
+
|
|
1516
|
+
/**
|
|
1517
|
+
* Variant discounted price including tax.
|
|
1518
|
+
* @export
|
|
1519
|
+
* @interface UpdateProductsRequestProductsInnerVariantsInnerSalePrice
|
|
1520
|
+
*/
|
|
1521
|
+
export interface UpdateProductsRequestProductsInnerVariantsInnerSalePrice {
|
|
1522
|
+
/**
|
|
1523
|
+
* Sale price including tax in the specified currency.
|
|
1524
|
+
* @type {number}
|
|
1525
|
+
* @memberof UpdateProductsRequestProductsInnerVariantsInnerSalePrice
|
|
1526
|
+
*/
|
|
1527
|
+
'amount': number;
|
|
1528
|
+
/**
|
|
1529
|
+
* Currency code for the currency the sale price is valued in.
|
|
1530
|
+
* @type {string}
|
|
1531
|
+
* @memberof UpdateProductsRequestProductsInnerVariantsInnerSalePrice
|
|
1532
|
+
*/
|
|
1533
|
+
'currencyCode': UpdateProductsRequestProductsInnerVariantsInnerSalePriceCurrencyCodeEnum;
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
export const UpdateProductsRequestProductsInnerVariantsInnerSalePriceCurrencyCodeEnum = {
|
|
1537
|
+
Gbp: 'GBP'
|
|
1538
|
+
} as const;
|
|
1539
|
+
|
|
1540
|
+
export type UpdateProductsRequestProductsInnerVariantsInnerSalePriceCurrencyCodeEnum = typeof UpdateProductsRequestProductsInnerVariantsInnerSalePriceCurrencyCodeEnum[keyof typeof UpdateProductsRequestProductsInnerVariantsInnerSalePriceCurrencyCodeEnum];
|
|
1541
|
+
|
|
1413
1542
|
/**
|
|
1414
1543
|
*
|
|
1415
1544
|
* @export
|
|
@@ -1507,7 +1636,7 @@ export interface Variant {
|
|
|
1507
1636
|
*/
|
|
1508
1637
|
'applications'?: Array<Application>;
|
|
1509
1638
|
/**
|
|
1510
|
-
* Global Trade Item Number
|
|
1639
|
+
* 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.
|
|
1511
1640
|
* @type {string}
|
|
1512
1641
|
* @memberof Variant
|
|
1513
1642
|
*/
|
|
@@ -2542,6 +2671,56 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2542
2671
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2543
2672
|
localVarRequestOptions.data = serializeDataIfNeeded(updateProductRequest, localVarRequestOptions, configuration)
|
|
2544
2673
|
|
|
2674
|
+
return {
|
|
2675
|
+
url: toPathString(localVarUrlObj),
|
|
2676
|
+
options: localVarRequestOptions,
|
|
2677
|
+
};
|
|
2678
|
+
},
|
|
2679
|
+
/**
|
|
2680
|
+
* Updates catalog products for the given project.
|
|
2681
|
+
* @summary Update products
|
|
2682
|
+
* @param {string} project What project it is
|
|
2683
|
+
* @param {UpdateProductsRequest} updateProductsRequest Update products in bulk.
|
|
2684
|
+
* @param {*} [options] Override http request option.
|
|
2685
|
+
* @throws {RequiredError}
|
|
2686
|
+
*/
|
|
2687
|
+
updateProducts: async (project: string, updateProductsRequest: UpdateProductsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2688
|
+
// verify required parameter 'project' is not null or undefined
|
|
2689
|
+
assertParamExists('updateProducts', 'project', project)
|
|
2690
|
+
// verify required parameter 'updateProductsRequest' is not null or undefined
|
|
2691
|
+
assertParamExists('updateProducts', 'updateProductsRequest', updateProductsRequest)
|
|
2692
|
+
const localVarPath = `/v1/catalog/products`;
|
|
2693
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2694
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2695
|
+
let baseOptions;
|
|
2696
|
+
if (configuration) {
|
|
2697
|
+
baseOptions = configuration.baseOptions;
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2700
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
2701
|
+
const localVarHeaderParameter = {} as any;
|
|
2702
|
+
const localVarQueryParameter = {} as any;
|
|
2703
|
+
|
|
2704
|
+
// authentication session-oauth required
|
|
2705
|
+
// oauth required
|
|
2706
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
2707
|
+
|
|
2708
|
+
// authentication api-key required
|
|
2709
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2710
|
+
|
|
2711
|
+
if (project !== undefined) {
|
|
2712
|
+
localVarQueryParameter['project'] = project;
|
|
2713
|
+
}
|
|
2714
|
+
|
|
2715
|
+
|
|
2716
|
+
|
|
2717
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2718
|
+
|
|
2719
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2720
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2721
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2722
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateProductsRequest, localVarRequestOptions, configuration)
|
|
2723
|
+
|
|
2545
2724
|
return {
|
|
2546
2725
|
url: toPathString(localVarUrlObj),
|
|
2547
2726
|
options: localVarRequestOptions,
|
|
@@ -2647,6 +2826,20 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
2647
2826
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.updateProduct']?.[localVarOperationServerIndex]?.url;
|
|
2648
2827
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2649
2828
|
},
|
|
2829
|
+
/**
|
|
2830
|
+
* Updates catalog products for the given project.
|
|
2831
|
+
* @summary Update products
|
|
2832
|
+
* @param {string} project What project it is
|
|
2833
|
+
* @param {UpdateProductsRequest} updateProductsRequest Update products in bulk.
|
|
2834
|
+
* @param {*} [options] Override http request option.
|
|
2835
|
+
* @throws {RequiredError}
|
|
2836
|
+
*/
|
|
2837
|
+
async updateProducts(project: string, updateProductsRequest: UpdateProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>> {
|
|
2838
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateProducts(project, updateProductsRequest, options);
|
|
2839
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2840
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.updateProducts']?.[localVarOperationServerIndex]?.url;
|
|
2841
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2842
|
+
},
|
|
2650
2843
|
}
|
|
2651
2844
|
};
|
|
2652
2845
|
|
|
@@ -2717,6 +2910,16 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
2717
2910
|
updateProduct(requestParameters: ProductsApiUpdateProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<Product> {
|
|
2718
2911
|
return localVarFp.updateProduct(requestParameters.project, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
|
|
2719
2912
|
},
|
|
2913
|
+
/**
|
|
2914
|
+
* Updates catalog products for the given project.
|
|
2915
|
+
* @summary Update products
|
|
2916
|
+
* @param {ProductsApiUpdateProductsRequest} requestParameters Request parameters.
|
|
2917
|
+
* @param {*} [options] Override http request option.
|
|
2918
|
+
* @throws {RequiredError}
|
|
2919
|
+
*/
|
|
2920
|
+
updateProducts(requestParameters: ProductsApiUpdateProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductsResponse> {
|
|
2921
|
+
return localVarFp.updateProducts(requestParameters.project, requestParameters.updateProductsRequest, options).then((request) => request(axios, basePath));
|
|
2922
|
+
},
|
|
2720
2923
|
};
|
|
2721
2924
|
};
|
|
2722
2925
|
|
|
@@ -2888,6 +3091,27 @@ export interface ProductsApiUpdateProductRequest {
|
|
|
2888
3091
|
readonly updateProductRequest?: UpdateProductRequest
|
|
2889
3092
|
}
|
|
2890
3093
|
|
|
3094
|
+
/**
|
|
3095
|
+
* Request parameters for updateProducts operation in ProductsApi.
|
|
3096
|
+
* @export
|
|
3097
|
+
* @interface ProductsApiUpdateProductsRequest
|
|
3098
|
+
*/
|
|
3099
|
+
export interface ProductsApiUpdateProductsRequest {
|
|
3100
|
+
/**
|
|
3101
|
+
* What project it is
|
|
3102
|
+
* @type {string}
|
|
3103
|
+
* @memberof ProductsApiUpdateProducts
|
|
3104
|
+
*/
|
|
3105
|
+
readonly project: string
|
|
3106
|
+
|
|
3107
|
+
/**
|
|
3108
|
+
* Update products in bulk.
|
|
3109
|
+
* @type {UpdateProductsRequest}
|
|
3110
|
+
* @memberof ProductsApiUpdateProducts
|
|
3111
|
+
*/
|
|
3112
|
+
readonly updateProductsRequest: UpdateProductsRequest
|
|
3113
|
+
}
|
|
3114
|
+
|
|
2891
3115
|
/**
|
|
2892
3116
|
* ProductsApi - object-oriented interface
|
|
2893
3117
|
* @export
|
|
@@ -2966,6 +3190,18 @@ export class ProductsApi extends BaseAPI {
|
|
|
2966
3190
|
public updateProduct(requestParameters: ProductsApiUpdateProductRequest, options?: RawAxiosRequestConfig) {
|
|
2967
3191
|
return ProductsApiFp(this.configuration).updateProduct(requestParameters.project, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2968
3192
|
}
|
|
3193
|
+
|
|
3194
|
+
/**
|
|
3195
|
+
* Updates catalog products for the given project.
|
|
3196
|
+
* @summary Update products
|
|
3197
|
+
* @param {ProductsApiUpdateProductsRequest} requestParameters Request parameters.
|
|
3198
|
+
* @param {*} [options] Override http request option.
|
|
3199
|
+
* @throws {RequiredError}
|
|
3200
|
+
* @memberof ProductsApi
|
|
3201
|
+
*/
|
|
3202
|
+
public updateProducts(requestParameters: ProductsApiUpdateProductsRequest, options?: RawAxiosRequestConfig) {
|
|
3203
|
+
return ProductsApiFp(this.configuration).updateProducts(requestParameters.project, requestParameters.updateProductsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3204
|
+
}
|
|
2969
3205
|
}
|
|
2970
3206
|
|
|
2971
3207
|
|
package/base.ts
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/common.ts
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/configuration.ts
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).
|
|
@@ -92,7 +92,7 @@ export class Configuration {
|
|
|
92
92
|
this.baseOptions = {
|
|
93
93
|
headers: {
|
|
94
94
|
...param.baseOptions?.headers,
|
|
95
|
-
'User-Agent': "OpenAPI-Generator/1.
|
|
95
|
+
'User-Agent': "OpenAPI-Generator/1.36.0/typescript-axios"
|
|
96
96
|
},
|
|
97
97
|
...param.baseOptions
|
|
98
98
|
};
|