@teemill/product-catalog 1.47.0 → 1.48.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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/product-catalog@1.47.0
1
+ ## @teemill/product-catalog@1.48.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.47.0 --save
39
+ npm install @teemill/product-catalog@1.48.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.47.0
7
+ * The version of the OpenAPI document: 1.48.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -872,6 +872,19 @@ export interface DuplicateProductsRequest {
872
872
  */
873
873
  'projects': Array<string>;
874
874
  }
875
+ /**
876
+ *
877
+ * @export
878
+ * @interface ExportProducts202Response
879
+ */
880
+ export interface ExportProducts202Response {
881
+ /**
882
+ * A message describing the export status
883
+ * @type {string}
884
+ * @memberof ExportProducts202Response
885
+ */
886
+ 'message'?: string;
887
+ }
875
888
  /**
876
889
  * Image description
877
890
  * @export
@@ -2929,6 +2942,50 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
2929
2942
  options: localVarRequestOptions,
2930
2943
  };
2931
2944
  },
2945
+ /**
2946
+ * Export the project\'s products and variants as a CSV file.
2947
+ * @summary Export products
2948
+ * @param {string} project What project it is
2949
+ * @param {*} [options] Override http request option.
2950
+ * @throws {RequiredError}
2951
+ */
2952
+ exportProducts: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2953
+ // verify required parameter 'project' is not null or undefined
2954
+ assertParamExists('exportProducts', 'project', project)
2955
+ const localVarPath = `/v1/catalog/products/export`;
2956
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2957
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2958
+ let baseOptions;
2959
+ if (configuration) {
2960
+ baseOptions = configuration.baseOptions;
2961
+ }
2962
+
2963
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2964
+ const localVarHeaderParameter = {} as any;
2965
+ const localVarQueryParameter = {} as any;
2966
+
2967
+ // authentication session-oauth required
2968
+ // oauth required
2969
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
2970
+
2971
+ // authentication api-key required
2972
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2973
+
2974
+ if (project !== undefined) {
2975
+ localVarQueryParameter['project'] = project;
2976
+ }
2977
+
2978
+
2979
+
2980
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2981
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2982
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2983
+
2984
+ return {
2985
+ url: toPathString(localVarUrlObj),
2986
+ options: localVarRequestOptions,
2987
+ };
2988
+ },
2932
2989
  /**
2933
2990
  * Gets a product by a given ID.
2934
2991
  * @summary Get product
@@ -3301,6 +3358,19 @@ export const ProductsApiFp = function(configuration?: Configuration) {
3301
3358
  const localVarOperationServerBasePath = operationServerMap['ProductsApi.duplicateProducts']?.[localVarOperationServerIndex]?.url;
3302
3359
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3303
3360
  },
3361
+ /**
3362
+ * Export the project\'s products and variants as a CSV file.
3363
+ * @summary Export products
3364
+ * @param {string} project What project it is
3365
+ * @param {*} [options] Override http request option.
3366
+ * @throws {RequiredError}
3367
+ */
3368
+ async exportProducts(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
3369
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportProducts(project, options);
3370
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3371
+ const localVarOperationServerBasePath = operationServerMap['ProductsApi.exportProducts']?.[localVarOperationServerIndex]?.url;
3372
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3373
+ },
3304
3374
  /**
3305
3375
  * Gets a product by a given ID.
3306
3376
  * @summary Get product
@@ -3431,6 +3501,16 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
3431
3501
  duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DuplicateProducts202Response> {
3432
3502
  return localVarFp.duplicateProducts(requestParameters.project, requestParameters.duplicateProductsRequest, options).then((request) => request(axios, basePath));
3433
3503
  },
3504
+ /**
3505
+ * Export the project\'s products and variants as a CSV file.
3506
+ * @summary Export products
3507
+ * @param {ProductsApiExportProductsRequest} requestParameters Request parameters.
3508
+ * @param {*} [options] Override http request option.
3509
+ * @throws {RequiredError}
3510
+ */
3511
+ exportProducts(requestParameters: ProductsApiExportProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
3512
+ return localVarFp.exportProducts(requestParameters.project, options).then((request) => request(axios, basePath));
3513
+ },
3434
3514
  /**
3435
3515
  * Gets a product by a given ID.
3436
3516
  * @summary Get product
@@ -3557,6 +3637,20 @@ export interface ProductsApiDuplicateProductsRequest {
3557
3637
  readonly duplicateProductsRequest?: DuplicateProductsRequest
3558
3638
  }
3559
3639
 
3640
+ /**
3641
+ * Request parameters for exportProducts operation in ProductsApi.
3642
+ * @export
3643
+ * @interface ProductsApiExportProductsRequest
3644
+ */
3645
+ export interface ProductsApiExportProductsRequest {
3646
+ /**
3647
+ * What project it is
3648
+ * @type {string}
3649
+ * @memberof ProductsApiExportProducts
3650
+ */
3651
+ readonly project: string
3652
+ }
3653
+
3560
3654
  /**
3561
3655
  * Request parameters for getProduct operation in ProductsApi.
3562
3656
  * @export
@@ -3768,6 +3862,18 @@ export class ProductsApi extends BaseAPI {
3768
3862
  return ProductsApiFp(this.configuration).duplicateProducts(requestParameters.project, requestParameters.duplicateProductsRequest, options).then((request) => request(this.axios, this.basePath));
3769
3863
  }
3770
3864
 
3865
+ /**
3866
+ * Export the project\'s products and variants as a CSV file.
3867
+ * @summary Export products
3868
+ * @param {ProductsApiExportProductsRequest} requestParameters Request parameters.
3869
+ * @param {*} [options] Override http request option.
3870
+ * @throws {RequiredError}
3871
+ * @memberof ProductsApi
3872
+ */
3873
+ public exportProducts(requestParameters: ProductsApiExportProductsRequest, options?: RawAxiosRequestConfig) {
3874
+ return ProductsApiFp(this.configuration).exportProducts(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
3875
+ }
3876
+
3771
3877
  /**
3772
3878
  * Gets a product by a given ID.
3773
3879
  * @summary Get product
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.47.0
7
+ * The version of the OpenAPI document: 1.48.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.47.0
7
+ * The version of the OpenAPI document: 1.48.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.47.0
7
+ * The version of the OpenAPI document: 1.48.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Product Catalog API
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.47.0
5
+ * The version of the OpenAPI document: 1.48.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -850,6 +850,19 @@ export interface DuplicateProductsRequest {
850
850
  */
851
851
  'projects': Array<string>;
852
852
  }
853
+ /**
854
+ *
855
+ * @export
856
+ * @interface ExportProducts202Response
857
+ */
858
+ export interface ExportProducts202Response {
859
+ /**
860
+ * A message describing the export status
861
+ * @type {string}
862
+ * @memberof ExportProducts202Response
863
+ */
864
+ 'message'?: string;
865
+ }
853
866
  /**
854
867
  * Image description
855
868
  * @export
@@ -2493,6 +2506,14 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
2493
2506
  * @throws {RequiredError}
2494
2507
  */
2495
2508
  duplicateProducts: (project: string, duplicateProductsRequest?: DuplicateProductsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2509
+ /**
2510
+ * Export the project\'s products and variants as a CSV file.
2511
+ * @summary Export products
2512
+ * @param {string} project What project it is
2513
+ * @param {*} [options] Override http request option.
2514
+ * @throws {RequiredError}
2515
+ */
2516
+ exportProducts: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2496
2517
  /**
2497
2518
  * Gets a product by a given ID.
2498
2519
  * @summary Get product
@@ -2586,6 +2607,14 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
2586
2607
  * @throws {RequiredError}
2587
2608
  */
2588
2609
  duplicateProducts(project: string, duplicateProductsRequest?: DuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DuplicateProducts202Response>>;
2610
+ /**
2611
+ * Export the project\'s products and variants as a CSV file.
2612
+ * @summary Export products
2613
+ * @param {string} project What project it is
2614
+ * @param {*} [options] Override http request option.
2615
+ * @throws {RequiredError}
2616
+ */
2617
+ exportProducts(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
2589
2618
  /**
2590
2619
  * Gets a product by a given ID.
2591
2620
  * @summary Get product
@@ -2676,6 +2705,14 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
2676
2705
  * @throws {RequiredError}
2677
2706
  */
2678
2707
  duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DuplicateProducts202Response>;
2708
+ /**
2709
+ * Export the project\'s products and variants as a CSV file.
2710
+ * @summary Export products
2711
+ * @param {ProductsApiExportProductsRequest} requestParameters Request parameters.
2712
+ * @param {*} [options] Override http request option.
2713
+ * @throws {RequiredError}
2714
+ */
2715
+ exportProducts(requestParameters: ProductsApiExportProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
2679
2716
  /**
2680
2717
  * Gets a product by a given ID.
2681
2718
  * @summary Get product
@@ -2782,6 +2819,19 @@ export interface ProductsApiDuplicateProductsRequest {
2782
2819
  */
2783
2820
  readonly duplicateProductsRequest?: DuplicateProductsRequest;
2784
2821
  }
2822
+ /**
2823
+ * Request parameters for exportProducts operation in ProductsApi.
2824
+ * @export
2825
+ * @interface ProductsApiExportProductsRequest
2826
+ */
2827
+ export interface ProductsApiExportProductsRequest {
2828
+ /**
2829
+ * What project it is
2830
+ * @type {string}
2831
+ * @memberof ProductsApiExportProducts
2832
+ */
2833
+ readonly project: string;
2834
+ }
2785
2835
  /**
2786
2836
  * Request parameters for getProduct operation in ProductsApi.
2787
2837
  * @export
@@ -2966,6 +3016,15 @@ export declare class ProductsApi extends BaseAPI {
2966
3016
  * @memberof ProductsApi
2967
3017
  */
2968
3018
  duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DuplicateProducts202Response, any>>;
3019
+ /**
3020
+ * Export the project\'s products and variants as a CSV file.
3021
+ * @summary Export products
3022
+ * @param {ProductsApiExportProductsRequest} requestParameters Request parameters.
3023
+ * @param {*} [options] Override http request option.
3024
+ * @throws {RequiredError}
3025
+ * @memberof ProductsApi
3026
+ */
3027
+ exportProducts(requestParameters: ProductsApiExportProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
2969
3028
  /**
2970
3029
  * Gets a product by a given ID.
2971
3030
  * @summary Get product
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Product Catalog API
6
6
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
7
7
  *
8
- * The version of the OpenAPI document: 1.47.0
8
+ * The version of the OpenAPI document: 1.48.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -648,6 +648,42 @@ const ProductsApiAxiosParamCreator = function (configuration) {
648
648
  options: localVarRequestOptions,
649
649
  };
650
650
  }),
651
+ /**
652
+ * Export the project\'s products and variants as a CSV file.
653
+ * @summary Export products
654
+ * @param {string} project What project it is
655
+ * @param {*} [options] Override http request option.
656
+ * @throws {RequiredError}
657
+ */
658
+ exportProducts: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
659
+ // verify required parameter 'project' is not null or undefined
660
+ (0, common_1.assertParamExists)('exportProducts', 'project', project);
661
+ const localVarPath = `/v1/catalog/products/export`;
662
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
663
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
664
+ let baseOptions;
665
+ if (configuration) {
666
+ baseOptions = configuration.baseOptions;
667
+ }
668
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
669
+ const localVarHeaderParameter = {};
670
+ const localVarQueryParameter = {};
671
+ // authentication session-oauth required
672
+ // oauth required
673
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
674
+ // authentication api-key required
675
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
676
+ if (project !== undefined) {
677
+ localVarQueryParameter['project'] = project;
678
+ }
679
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
680
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
681
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
682
+ return {
683
+ url: (0, common_1.toPathString)(localVarUrlObj),
684
+ options: localVarRequestOptions,
685
+ };
686
+ }),
651
687
  /**
652
688
  * Gets a product by a given ID.
653
689
  * @summary Get product
@@ -971,6 +1007,22 @@ const ProductsApiFp = function (configuration) {
971
1007
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
972
1008
  });
973
1009
  },
1010
+ /**
1011
+ * Export the project\'s products and variants as a CSV file.
1012
+ * @summary Export products
1013
+ * @param {string} project What project it is
1014
+ * @param {*} [options] Override http request option.
1015
+ * @throws {RequiredError}
1016
+ */
1017
+ exportProducts(project, options) {
1018
+ return __awaiter(this, void 0, void 0, function* () {
1019
+ var _a, _b, _c;
1020
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportProducts(project, options);
1021
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1022
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.exportProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1023
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1024
+ });
1025
+ },
974
1026
  /**
975
1027
  * Gets a product by a given ID.
976
1028
  * @summary Get product
@@ -1119,6 +1171,16 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
1119
1171
  duplicateProducts(requestParameters, options) {
1120
1172
  return localVarFp.duplicateProducts(requestParameters.project, requestParameters.duplicateProductsRequest, options).then((request) => request(axios, basePath));
1121
1173
  },
1174
+ /**
1175
+ * Export the project\'s products and variants as a CSV file.
1176
+ * @summary Export products
1177
+ * @param {ProductsApiExportProductsRequest} requestParameters Request parameters.
1178
+ * @param {*} [options] Override http request option.
1179
+ * @throws {RequiredError}
1180
+ */
1181
+ exportProducts(requestParameters, options) {
1182
+ return localVarFp.exportProducts(requestParameters.project, options).then((request) => request(axios, basePath));
1183
+ },
1122
1184
  /**
1123
1185
  * Gets a product by a given ID.
1124
1186
  * @summary Get product
@@ -1222,6 +1284,17 @@ class ProductsApi extends base_1.BaseAPI {
1222
1284
  duplicateProducts(requestParameters, options) {
1223
1285
  return (0, exports.ProductsApiFp)(this.configuration).duplicateProducts(requestParameters.project, requestParameters.duplicateProductsRequest, options).then((request) => request(this.axios, this.basePath));
1224
1286
  }
1287
+ /**
1288
+ * Export the project\'s products and variants as a CSV file.
1289
+ * @summary Export products
1290
+ * @param {ProductsApiExportProductsRequest} requestParameters Request parameters.
1291
+ * @param {*} [options] Override http request option.
1292
+ * @throws {RequiredError}
1293
+ * @memberof ProductsApi
1294
+ */
1295
+ exportProducts(requestParameters, options) {
1296
+ return (0, exports.ProductsApiFp)(this.configuration).exportProducts(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1297
+ }
1225
1298
  /**
1226
1299
  * Gets a product by a given ID.
1227
1300
  * @summary Get product
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Product Catalog API
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.47.0
5
+ * The version of the OpenAPI document: 1.48.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Product Catalog API
6
6
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
7
7
  *
8
- * The version of the OpenAPI document: 1.47.0
8
+ * The version of the OpenAPI document: 1.48.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Product Catalog API
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.47.0
5
+ * The version of the OpenAPI document: 1.48.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Product Catalog API
6
6
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
7
7
  *
8
- * The version of the OpenAPI document: 1.47.0
8
+ * The version of the OpenAPI document: 1.48.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Product Catalog API
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.47.0
5
+ * The version of the OpenAPI document: 1.48.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Product Catalog API
6
6
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
7
7
  *
8
- * The version of the OpenAPI document: 1.47.0
8
+ * The version of the OpenAPI document: 1.48.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.47.0
5
+ * The version of the OpenAPI document: 1.48.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -850,6 +850,19 @@ export interface DuplicateProductsRequest {
850
850
  */
851
851
  'projects': Array<string>;
852
852
  }
853
+ /**
854
+ *
855
+ * @export
856
+ * @interface ExportProducts202Response
857
+ */
858
+ export interface ExportProducts202Response {
859
+ /**
860
+ * A message describing the export status
861
+ * @type {string}
862
+ * @memberof ExportProducts202Response
863
+ */
864
+ 'message'?: string;
865
+ }
853
866
  /**
854
867
  * Image description
855
868
  * @export
@@ -2493,6 +2506,14 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
2493
2506
  * @throws {RequiredError}
2494
2507
  */
2495
2508
  duplicateProducts: (project: string, duplicateProductsRequest?: DuplicateProductsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2509
+ /**
2510
+ * Export the project\'s products and variants as a CSV file.
2511
+ * @summary Export products
2512
+ * @param {string} project What project it is
2513
+ * @param {*} [options] Override http request option.
2514
+ * @throws {RequiredError}
2515
+ */
2516
+ exportProducts: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2496
2517
  /**
2497
2518
  * Gets a product by a given ID.
2498
2519
  * @summary Get product
@@ -2586,6 +2607,14 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
2586
2607
  * @throws {RequiredError}
2587
2608
  */
2588
2609
  duplicateProducts(project: string, duplicateProductsRequest?: DuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DuplicateProducts202Response>>;
2610
+ /**
2611
+ * Export the project\'s products and variants as a CSV file.
2612
+ * @summary Export products
2613
+ * @param {string} project What project it is
2614
+ * @param {*} [options] Override http request option.
2615
+ * @throws {RequiredError}
2616
+ */
2617
+ exportProducts(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
2589
2618
  /**
2590
2619
  * Gets a product by a given ID.
2591
2620
  * @summary Get product
@@ -2676,6 +2705,14 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
2676
2705
  * @throws {RequiredError}
2677
2706
  */
2678
2707
  duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DuplicateProducts202Response>;
2708
+ /**
2709
+ * Export the project\'s products and variants as a CSV file.
2710
+ * @summary Export products
2711
+ * @param {ProductsApiExportProductsRequest} requestParameters Request parameters.
2712
+ * @param {*} [options] Override http request option.
2713
+ * @throws {RequiredError}
2714
+ */
2715
+ exportProducts(requestParameters: ProductsApiExportProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
2679
2716
  /**
2680
2717
  * Gets a product by a given ID.
2681
2718
  * @summary Get product
@@ -2782,6 +2819,19 @@ export interface ProductsApiDuplicateProductsRequest {
2782
2819
  */
2783
2820
  readonly duplicateProductsRequest?: DuplicateProductsRequest;
2784
2821
  }
2822
+ /**
2823
+ * Request parameters for exportProducts operation in ProductsApi.
2824
+ * @export
2825
+ * @interface ProductsApiExportProductsRequest
2826
+ */
2827
+ export interface ProductsApiExportProductsRequest {
2828
+ /**
2829
+ * What project it is
2830
+ * @type {string}
2831
+ * @memberof ProductsApiExportProducts
2832
+ */
2833
+ readonly project: string;
2834
+ }
2785
2835
  /**
2786
2836
  * Request parameters for getProduct operation in ProductsApi.
2787
2837
  * @export
@@ -2966,6 +3016,15 @@ export declare class ProductsApi extends BaseAPI {
2966
3016
  * @memberof ProductsApi
2967
3017
  */
2968
3018
  duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DuplicateProducts202Response, any>>;
3019
+ /**
3020
+ * Export the project\'s products and variants as a CSV file.
3021
+ * @summary Export products
3022
+ * @param {ProductsApiExportProductsRequest} requestParameters Request parameters.
3023
+ * @param {*} [options] Override http request option.
3024
+ * @throws {RequiredError}
3025
+ * @memberof ProductsApi
3026
+ */
3027
+ exportProducts(requestParameters: ProductsApiExportProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
2969
3028
  /**
2970
3029
  * Gets a product by a given ID.
2971
3030
  * @summary Get product
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.47.0
7
+ * The version of the OpenAPI document: 1.48.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -641,6 +641,42 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
641
641
  options: localVarRequestOptions,
642
642
  };
643
643
  }),
644
+ /**
645
+ * Export the project\'s products and variants as a CSV file.
646
+ * @summary Export products
647
+ * @param {string} project What project it is
648
+ * @param {*} [options] Override http request option.
649
+ * @throws {RequiredError}
650
+ */
651
+ exportProducts: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
652
+ // verify required parameter 'project' is not null or undefined
653
+ assertParamExists('exportProducts', 'project', project);
654
+ const localVarPath = `/v1/catalog/products/export`;
655
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
656
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
657
+ let baseOptions;
658
+ if (configuration) {
659
+ baseOptions = configuration.baseOptions;
660
+ }
661
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
662
+ const localVarHeaderParameter = {};
663
+ const localVarQueryParameter = {};
664
+ // authentication session-oauth required
665
+ // oauth required
666
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
667
+ // authentication api-key required
668
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
669
+ if (project !== undefined) {
670
+ localVarQueryParameter['project'] = project;
671
+ }
672
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
673
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
674
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
675
+ return {
676
+ url: toPathString(localVarUrlObj),
677
+ options: localVarRequestOptions,
678
+ };
679
+ }),
644
680
  /**
645
681
  * Gets a product by a given ID.
646
682
  * @summary Get product
@@ -963,6 +999,22 @@ export const ProductsApiFp = function (configuration) {
963
999
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
964
1000
  });
965
1001
  },
1002
+ /**
1003
+ * Export the project\'s products and variants as a CSV file.
1004
+ * @summary Export products
1005
+ * @param {string} project What project it is
1006
+ * @param {*} [options] Override http request option.
1007
+ * @throws {RequiredError}
1008
+ */
1009
+ exportProducts(project, options) {
1010
+ return __awaiter(this, void 0, void 0, function* () {
1011
+ var _a, _b, _c;
1012
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportProducts(project, options);
1013
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1014
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProductsApi.exportProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1015
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1016
+ });
1017
+ },
966
1018
  /**
967
1019
  * Gets a product by a given ID.
968
1020
  * @summary Get product
@@ -1110,6 +1162,16 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
1110
1162
  duplicateProducts(requestParameters, options) {
1111
1163
  return localVarFp.duplicateProducts(requestParameters.project, requestParameters.duplicateProductsRequest, options).then((request) => request(axios, basePath));
1112
1164
  },
1165
+ /**
1166
+ * Export the project\'s products and variants as a CSV file.
1167
+ * @summary Export products
1168
+ * @param {ProductsApiExportProductsRequest} requestParameters Request parameters.
1169
+ * @param {*} [options] Override http request option.
1170
+ * @throws {RequiredError}
1171
+ */
1172
+ exportProducts(requestParameters, options) {
1173
+ return localVarFp.exportProducts(requestParameters.project, options).then((request) => request(axios, basePath));
1174
+ },
1113
1175
  /**
1114
1176
  * Gets a product by a given ID.
1115
1177
  * @summary Get product
@@ -1212,6 +1274,17 @@ export class ProductsApi extends BaseAPI {
1212
1274
  duplicateProducts(requestParameters, options) {
1213
1275
  return ProductsApiFp(this.configuration).duplicateProducts(requestParameters.project, requestParameters.duplicateProductsRequest, options).then((request) => request(this.axios, this.basePath));
1214
1276
  }
1277
+ /**
1278
+ * Export the project\'s products and variants as a CSV file.
1279
+ * @summary Export products
1280
+ * @param {ProductsApiExportProductsRequest} requestParameters Request parameters.
1281
+ * @param {*} [options] Override http request option.
1282
+ * @throws {RequiredError}
1283
+ * @memberof ProductsApi
1284
+ */
1285
+ exportProducts(requestParameters, options) {
1286
+ return ProductsApiFp(this.configuration).exportProducts(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1287
+ }
1215
1288
  /**
1216
1289
  * Gets a product by a given ID.
1217
1290
  * @summary Get product
@@ -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.47.0
5
+ * The version of the OpenAPI document: 1.48.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.47.0
7
+ * The version of the OpenAPI document: 1.48.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.47.0
5
+ * The version of the OpenAPI document: 1.48.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.47.0
7
+ * The version of the OpenAPI document: 1.48.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.47.0
5
+ * The version of the OpenAPI document: 1.48.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.47.0
7
+ * The version of the OpenAPI document: 1.48.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.47.0
5
+ * The version of the OpenAPI document: 1.48.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.47.0
7
+ * The version of the OpenAPI document: 1.48.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.47.0
5
+ * The version of the OpenAPI document: 1.48.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.47.0
8
+ * The version of the OpenAPI document: 1.48.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/index.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.47.0
7
+ * The version of the OpenAPI document: 1.48.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/product-catalog",
3
- "version": "1.47.0",
3
+ "version": "1.48.0",
4
4
  "description": "OpenAPI client for @teemill/product-catalog",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {