@teemill/product-catalog 1.95.3 → 1.96.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.
Files changed (41) hide show
  1. package/.openapi-generator/FILES +11 -0
  2. package/README.md +16 -2
  3. package/api.ts +436 -6
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +271 -3
  8. package/dist/api.js +250 -6
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +271 -3
  16. package/dist/esm/api.js +250 -6
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BulkUpdateMarketplaceListing.md +23 -0
  28. package/docs/BulkUpdateMarketplaceListingProduct.md +33 -0
  29. package/docs/BulkUpdateMarketplaceListingRequest.md +21 -0
  30. package/docs/BulkUpdateMarketplaceListingResponse.md +21 -0
  31. package/docs/BulkUpdatedMarketplaceListing.md +23 -0
  32. package/docs/BulkUpdatedMarketplaceListings.md +23 -0
  33. package/docs/MarketplaceListing.md +35 -0
  34. package/docs/MarketplaceListingFields.md +31 -0
  35. package/docs/MarketplaceListingsResponse.md +20 -0
  36. package/docs/Product.md +2 -0
  37. package/docs/ProductsApi.md +189 -1
  38. package/docs/UpdateMarketplaceListing.md +33 -0
  39. package/docs/UpdateMarketplaceListingRequest.md +21 -0
  40. package/index.ts +1 -1
  41. package/package.json +1 -1
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog
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 product from the GFN Catalog, plus listing information such as title, description and tags.
6
6
  *
7
- * The version of the OpenAPI document: 1.95.3
7
+ * The version of the OpenAPI document: 1.96.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1842,6 +1842,48 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
1842
1842
  options: localVarRequestOptions,
1843
1843
  };
1844
1844
  }),
1845
+ /**
1846
+ * Updates marketplace listing data for multiple products under a single marketplace. Each request carries exactly one marketplace group (see `BulkUpdateMarketplaceListingRequest.marketplace`); send additional requests to update another marketplace code.
1847
+ * @summary Bulk update product marketplaces
1848
+ * @param {string} project What project it is
1849
+ * @param {BulkUpdateMarketplaceListingRequest} bulkUpdateMarketplaceListingRequest Update marketplace listing fields for multiple products for one marketplace only. The `marketplaces` array must contain exactly one item (one `code` and its `products`).
1850
+ * @param {*} [options] Override http request option.
1851
+ * @throws {RequiredError}
1852
+ */
1853
+ bulkUpdateProductMarketplaceListings: (project_1, bulkUpdateMarketplaceListingRequest_1, ...args_1) => __awaiter(this, [project_1, bulkUpdateMarketplaceListingRequest_1, ...args_1], void 0, function* (project, bulkUpdateMarketplaceListingRequest, options = {}) {
1854
+ // verify required parameter 'project' is not null or undefined
1855
+ assertParamExists('bulkUpdateProductMarketplaceListings', 'project', project);
1856
+ // verify required parameter 'bulkUpdateMarketplaceListingRequest' is not null or undefined
1857
+ assertParamExists('bulkUpdateProductMarketplaceListings', 'bulkUpdateMarketplaceListingRequest', bulkUpdateMarketplaceListingRequest);
1858
+ const localVarPath = `/v1/catalog/products/marketplace-listings`;
1859
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1860
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1861
+ let baseOptions;
1862
+ if (configuration) {
1863
+ baseOptions = configuration.baseOptions;
1864
+ }
1865
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1866
+ const localVarHeaderParameter = {};
1867
+ const localVarQueryParameter = {};
1868
+ // authentication session-oauth required
1869
+ // oauth required
1870
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1871
+ // authentication api-key required
1872
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1873
+ if (project !== undefined) {
1874
+ localVarQueryParameter['project'] = project;
1875
+ }
1876
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1877
+ localVarHeaderParameter['Accept'] = 'application/json';
1878
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1879
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1880
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1881
+ localVarRequestOptions.data = serializeDataIfNeeded(bulkUpdateMarketplaceListingRequest, localVarRequestOptions, configuration);
1882
+ return {
1883
+ url: toPathString(localVarUrlObj),
1884
+ options: localVarRequestOptions,
1885
+ };
1886
+ }),
1845
1887
  /**
1846
1888
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
1847
1889
  * @summary Create product
@@ -2015,10 +2057,11 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
2015
2057
  * @param {ExportProductsDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
2016
2058
  * @param {number} [maxRetailPrice] Specify the maximum retail price to filter by. Products will be included so long as either at least one variant or the product itself (in the case of bundles) has a retail price less than or equal to the specified value.
2017
2059
  * @param {number} [minRetailPrice] Specify the minimum retail price to filter by. Products will be included so long as either at least one variant or the product itself (in the case of bundles) has a retail price greater than or equal to the specified value.
2060
+ * @param {string} [marketplaceCode] Export product data in the listing format for the selected marketplace code.
2018
2061
  * @param {*} [options] Override http request option.
2019
2062
  * @throws {RequiredError}
2020
2063
  */
2021
- exportProducts: (project_1, search_1, start_1, end_1, dateFilterType_1, maxRetailPrice_1, minRetailPrice_1, ...args_1) => __awaiter(this, [project_1, search_1, start_1, end_1, dateFilterType_1, maxRetailPrice_1, minRetailPrice_1, ...args_1], void 0, function* (project, search, start, end, dateFilterType, maxRetailPrice, minRetailPrice, options = {}) {
2064
+ exportProducts: (project_1, search_1, start_1, end_1, dateFilterType_1, maxRetailPrice_1, minRetailPrice_1, marketplaceCode_1, ...args_1) => __awaiter(this, [project_1, search_1, start_1, end_1, dateFilterType_1, maxRetailPrice_1, minRetailPrice_1, marketplaceCode_1, ...args_1], void 0, function* (project, search, start, end, dateFilterType, maxRetailPrice, minRetailPrice, marketplaceCode, options = {}) {
2022
2065
  // verify required parameter 'project' is not null or undefined
2023
2066
  assertParamExists('exportProducts', 'project', project);
2024
2067
  const localVarPath = `/v1/catalog/products/export`;
@@ -2061,6 +2104,9 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
2061
2104
  if (minRetailPrice !== undefined) {
2062
2105
  localVarQueryParameter['minRetailPrice'] = minRetailPrice;
2063
2106
  }
2107
+ if (marketplaceCode !== undefined) {
2108
+ localVarQueryParameter['marketplaceCode'] = marketplaceCode;
2109
+ }
2064
2110
  localVarHeaderParameter['Accept'] = 'text/csv; charset=utf-8,application/json';
2065
2111
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2066
2112
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -2070,6 +2116,47 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
2070
2116
  options: localVarRequestOptions,
2071
2117
  };
2072
2118
  }),
2119
+ /**
2120
+ * Gets marketplace listing data for a product.
2121
+ * @summary Get product marketplaces
2122
+ * @param {string} project What project it is
2123
+ * @param {string} productId Product\'s unique identifier
2124
+ * @param {*} [options] Override http request option.
2125
+ * @throws {RequiredError}
2126
+ */
2127
+ getMarketplaceListings: (project_1, productId_1, ...args_1) => __awaiter(this, [project_1, productId_1, ...args_1], void 0, function* (project, productId, options = {}) {
2128
+ // verify required parameter 'project' is not null or undefined
2129
+ assertParamExists('getMarketplaceListings', 'project', project);
2130
+ // verify required parameter 'productId' is not null or undefined
2131
+ assertParamExists('getMarketplaceListings', 'productId', productId);
2132
+ const localVarPath = `/v1/catalog/products/{productId}/marketplace-listings`
2133
+ .replace('{productId}', encodeURIComponent(String(productId)));
2134
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2135
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2136
+ let baseOptions;
2137
+ if (configuration) {
2138
+ baseOptions = configuration.baseOptions;
2139
+ }
2140
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2141
+ const localVarHeaderParameter = {};
2142
+ const localVarQueryParameter = {};
2143
+ // authentication session-oauth required
2144
+ // oauth required
2145
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
2146
+ // authentication api-key required
2147
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2148
+ if (project !== undefined) {
2149
+ localVarQueryParameter['project'] = project;
2150
+ }
2151
+ localVarHeaderParameter['Accept'] = 'application/json';
2152
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2153
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2154
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2155
+ return {
2156
+ url: toPathString(localVarUrlObj),
2157
+ options: localVarRequestOptions,
2158
+ };
2159
+ }),
2073
2160
  /**
2074
2161
  * Gets a product by a given ID.
2075
2162
  * @summary Get product
@@ -2344,6 +2431,50 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
2344
2431
  options: localVarRequestOptions,
2345
2432
  };
2346
2433
  }),
2434
+ /**
2435
+ * Updates marketplace listing data for a product.
2436
+ * @summary Update product marketplaces
2437
+ * @param {string} project What project it is
2438
+ * @param {string} productId Product\'s unique identifier
2439
+ * @param {UpdateMarketplaceListingRequest} [updateMarketplaceListingRequest] The marketplace listing fields to update. Only the fields provided will be modified.
2440
+ * @param {*} [options] Override http request option.
2441
+ * @throws {RequiredError}
2442
+ */
2443
+ updateMarketplaceListings: (project_1, productId_1, updateMarketplaceListingRequest_1, ...args_1) => __awaiter(this, [project_1, productId_1, updateMarketplaceListingRequest_1, ...args_1], void 0, function* (project, productId, updateMarketplaceListingRequest, options = {}) {
2444
+ // verify required parameter 'project' is not null or undefined
2445
+ assertParamExists('updateMarketplaceListings', 'project', project);
2446
+ // verify required parameter 'productId' is not null or undefined
2447
+ assertParamExists('updateMarketplaceListings', 'productId', productId);
2448
+ const localVarPath = `/v1/catalog/products/{productId}/marketplace-listings`
2449
+ .replace('{productId}', encodeURIComponent(String(productId)));
2450
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2451
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2452
+ let baseOptions;
2453
+ if (configuration) {
2454
+ baseOptions = configuration.baseOptions;
2455
+ }
2456
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
2457
+ const localVarHeaderParameter = {};
2458
+ const localVarQueryParameter = {};
2459
+ // authentication session-oauth required
2460
+ // oauth required
2461
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
2462
+ // authentication api-key required
2463
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2464
+ if (project !== undefined) {
2465
+ localVarQueryParameter['project'] = project;
2466
+ }
2467
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2468
+ localVarHeaderParameter['Accept'] = 'application/json';
2469
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2470
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2471
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2472
+ localVarRequestOptions.data = serializeDataIfNeeded(updateMarketplaceListingRequest, localVarRequestOptions, configuration);
2473
+ return {
2474
+ url: toPathString(localVarUrlObj),
2475
+ options: localVarRequestOptions,
2476
+ };
2477
+ }),
2347
2478
  /**
2348
2479
  * Updates a product by a given ID.
2349
2480
  * @summary Update product
@@ -2455,6 +2586,23 @@ export const ProductsApiFp = function (configuration) {
2455
2586
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2456
2587
  });
2457
2588
  },
2589
+ /**
2590
+ * Updates marketplace listing data for multiple products under a single marketplace. Each request carries exactly one marketplace group (see `BulkUpdateMarketplaceListingRequest.marketplace`); send additional requests to update another marketplace code.
2591
+ * @summary Bulk update product marketplaces
2592
+ * @param {string} project What project it is
2593
+ * @param {BulkUpdateMarketplaceListingRequest} bulkUpdateMarketplaceListingRequest Update marketplace listing fields for multiple products for one marketplace only. The `marketplaces` array must contain exactly one item (one `code` and its `products`).
2594
+ * @param {*} [options] Override http request option.
2595
+ * @throws {RequiredError}
2596
+ */
2597
+ bulkUpdateProductMarketplaceListings(project, bulkUpdateMarketplaceListingRequest, options) {
2598
+ return __awaiter(this, void 0, void 0, function* () {
2599
+ var _a, _b, _c;
2600
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkUpdateProductMarketplaceListings(project, bulkUpdateMarketplaceListingRequest, options);
2601
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2602
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProductsApi.bulkUpdateProductMarketplaceListings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2603
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2604
+ });
2605
+ },
2458
2606
  /**
2459
2607
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
2460
2608
  * @summary Create product
@@ -2533,18 +2681,36 @@ export const ProductsApiFp = function (configuration) {
2533
2681
  * @param {ExportProductsDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
2534
2682
  * @param {number} [maxRetailPrice] Specify the maximum retail price to filter by. Products will be included so long as either at least one variant or the product itself (in the case of bundles) has a retail price less than or equal to the specified value.
2535
2683
  * @param {number} [minRetailPrice] Specify the minimum retail price to filter by. Products will be included so long as either at least one variant or the product itself (in the case of bundles) has a retail price greater than or equal to the specified value.
2684
+ * @param {string} [marketplaceCode] Export product data in the listing format for the selected marketplace code.
2536
2685
  * @param {*} [options] Override http request option.
2537
2686
  * @throws {RequiredError}
2538
2687
  */
2539
- exportProducts(project, search, start, end, dateFilterType, maxRetailPrice, minRetailPrice, options) {
2688
+ exportProducts(project, search, start, end, dateFilterType, maxRetailPrice, minRetailPrice, marketplaceCode, options) {
2540
2689
  return __awaiter(this, void 0, void 0, function* () {
2541
2690
  var _a, _b, _c;
2542
- const localVarAxiosArgs = yield localVarAxiosParamCreator.exportProducts(project, search, start, end, dateFilterType, maxRetailPrice, minRetailPrice, options);
2691
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportProducts(project, search, start, end, dateFilterType, maxRetailPrice, minRetailPrice, marketplaceCode, options);
2543
2692
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2544
2693
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProductsApi.exportProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2545
2694
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2546
2695
  });
2547
2696
  },
2697
+ /**
2698
+ * Gets marketplace listing data for a product.
2699
+ * @summary Get product marketplaces
2700
+ * @param {string} project What project it is
2701
+ * @param {string} productId Product\'s unique identifier
2702
+ * @param {*} [options] Override http request option.
2703
+ * @throws {RequiredError}
2704
+ */
2705
+ getMarketplaceListings(project, productId, options) {
2706
+ return __awaiter(this, void 0, void 0, function* () {
2707
+ var _a, _b, _c;
2708
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMarketplaceListings(project, productId, options);
2709
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2710
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProductsApi.getMarketplaceListings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2711
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2712
+ });
2713
+ },
2548
2714
  /**
2549
2715
  * Gets a product by a given ID.
2550
2716
  * @summary Get product
@@ -2637,6 +2803,24 @@ export const ProductsApiFp = function (configuration) {
2637
2803
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2638
2804
  });
2639
2805
  },
2806
+ /**
2807
+ * Updates marketplace listing data for a product.
2808
+ * @summary Update product marketplaces
2809
+ * @param {string} project What project it is
2810
+ * @param {string} productId Product\'s unique identifier
2811
+ * @param {UpdateMarketplaceListingRequest} [updateMarketplaceListingRequest] The marketplace listing fields to update. Only the fields provided will be modified.
2812
+ * @param {*} [options] Override http request option.
2813
+ * @throws {RequiredError}
2814
+ */
2815
+ updateMarketplaceListings(project, productId, updateMarketplaceListingRequest, options) {
2816
+ return __awaiter(this, void 0, void 0, function* () {
2817
+ var _a, _b, _c;
2818
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateMarketplaceListings(project, productId, updateMarketplaceListingRequest, options);
2819
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2820
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProductsApi.updateMarketplaceListings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2821
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2822
+ });
2823
+ },
2640
2824
  /**
2641
2825
  * Updates a product by a given ID.
2642
2826
  * @summary Update product
@@ -2690,6 +2874,16 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
2690
2874
  autoMerchProducts(requestParameters, options) {
2691
2875
  return localVarFp.autoMerchProducts(requestParameters.project, requestParameters.autoMerchProductsRequest, options).then((request) => request(axios, basePath));
2692
2876
  },
2877
+ /**
2878
+ * Updates marketplace listing data for multiple products under a single marketplace. Each request carries exactly one marketplace group (see `BulkUpdateMarketplaceListingRequest.marketplace`); send additional requests to update another marketplace code.
2879
+ * @summary Bulk update product marketplaces
2880
+ * @param {ProductsApiBulkUpdateProductMarketplaceListingsRequest} requestParameters Request parameters.
2881
+ * @param {*} [options] Override http request option.
2882
+ * @throws {RequiredError}
2883
+ */
2884
+ bulkUpdateProductMarketplaceListings(requestParameters, options) {
2885
+ return localVarFp.bulkUpdateProductMarketplaceListings(requestParameters.project, requestParameters.bulkUpdateMarketplaceListingRequest, options).then((request) => request(axios, basePath));
2886
+ },
2693
2887
  /**
2694
2888
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
2695
2889
  * @summary Create product
@@ -2738,7 +2932,17 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
2738
2932
  * @throws {RequiredError}
2739
2933
  */
2740
2934
  exportProducts(requestParameters, options) {
2741
- return localVarFp.exportProducts(requestParameters.project, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, requestParameters.maxRetailPrice, requestParameters.minRetailPrice, options).then((request) => request(axios, basePath));
2935
+ return localVarFp.exportProducts(requestParameters.project, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, requestParameters.maxRetailPrice, requestParameters.minRetailPrice, requestParameters.marketplaceCode, options).then((request) => request(axios, basePath));
2936
+ },
2937
+ /**
2938
+ * Gets marketplace listing data for a product.
2939
+ * @summary Get product marketplaces
2940
+ * @param {ProductsApiGetMarketplaceListingsRequest} requestParameters Request parameters.
2941
+ * @param {*} [options] Override http request option.
2942
+ * @throws {RequiredError}
2943
+ */
2944
+ getMarketplaceListings(requestParameters, options) {
2945
+ return localVarFp.getMarketplaceListings(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
2742
2946
  },
2743
2947
  /**
2744
2948
  * Gets a product by a given ID.
@@ -2780,6 +2984,16 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
2780
2984
  seoOptimiseProducts(requestParameters, options) {
2781
2985
  return localVarFp.seoOptimiseProducts(requestParameters.project, requestParameters.seoOptimiseProductsRequest, options).then((request) => request(axios, basePath));
2782
2986
  },
2987
+ /**
2988
+ * Updates marketplace listing data for a product.
2989
+ * @summary Update product marketplaces
2990
+ * @param {ProductsApiUpdateMarketplaceListingsRequest} requestParameters Request parameters.
2991
+ * @param {*} [options] Override http request option.
2992
+ * @throws {RequiredError}
2993
+ */
2994
+ updateMarketplaceListings(requestParameters, options) {
2995
+ return localVarFp.updateMarketplaceListings(requestParameters.project, requestParameters.productId, requestParameters.updateMarketplaceListingRequest, options).then((request) => request(axios, basePath));
2996
+ },
2783
2997
  /**
2784
2998
  * Updates a product by a given ID.
2785
2999
  * @summary Update product
@@ -2816,6 +3030,16 @@ export class ProductsApi extends BaseAPI {
2816
3030
  autoMerchProducts(requestParameters, options) {
2817
3031
  return ProductsApiFp(this.configuration).autoMerchProducts(requestParameters.project, requestParameters.autoMerchProductsRequest, options).then((request) => request(this.axios, this.basePath));
2818
3032
  }
3033
+ /**
3034
+ * Updates marketplace listing data for multiple products under a single marketplace. Each request carries exactly one marketplace group (see `BulkUpdateMarketplaceListingRequest.marketplace`); send additional requests to update another marketplace code.
3035
+ * @summary Bulk update product marketplaces
3036
+ * @param {ProductsApiBulkUpdateProductMarketplaceListingsRequest} requestParameters Request parameters.
3037
+ * @param {*} [options] Override http request option.
3038
+ * @throws {RequiredError}
3039
+ */
3040
+ bulkUpdateProductMarketplaceListings(requestParameters, options) {
3041
+ return ProductsApiFp(this.configuration).bulkUpdateProductMarketplaceListings(requestParameters.project, requestParameters.bulkUpdateMarketplaceListingRequest, options).then((request) => request(this.axios, this.basePath));
3042
+ }
2819
3043
  /**
2820
3044
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
2821
3045
  * @summary Create product
@@ -2864,7 +3088,17 @@ export class ProductsApi extends BaseAPI {
2864
3088
  * @throws {RequiredError}
2865
3089
  */
2866
3090
  exportProducts(requestParameters, options) {
2867
- return ProductsApiFp(this.configuration).exportProducts(requestParameters.project, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, requestParameters.maxRetailPrice, requestParameters.minRetailPrice, options).then((request) => request(this.axios, this.basePath));
3091
+ return ProductsApiFp(this.configuration).exportProducts(requestParameters.project, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, requestParameters.maxRetailPrice, requestParameters.minRetailPrice, requestParameters.marketplaceCode, options).then((request) => request(this.axios, this.basePath));
3092
+ }
3093
+ /**
3094
+ * Gets marketplace listing data for a product.
3095
+ * @summary Get product marketplaces
3096
+ * @param {ProductsApiGetMarketplaceListingsRequest} requestParameters Request parameters.
3097
+ * @param {*} [options] Override http request option.
3098
+ * @throws {RequiredError}
3099
+ */
3100
+ getMarketplaceListings(requestParameters, options) {
3101
+ return ProductsApiFp(this.configuration).getMarketplaceListings(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
2868
3102
  }
2869
3103
  /**
2870
3104
  * Gets a product by a given ID.
@@ -2906,6 +3140,16 @@ export class ProductsApi extends BaseAPI {
2906
3140
  seoOptimiseProducts(requestParameters, options) {
2907
3141
  return ProductsApiFp(this.configuration).seoOptimiseProducts(requestParameters.project, requestParameters.seoOptimiseProductsRequest, options).then((request) => request(this.axios, this.basePath));
2908
3142
  }
3143
+ /**
3144
+ * Updates marketplace listing data for a product.
3145
+ * @summary Update product marketplaces
3146
+ * @param {ProductsApiUpdateMarketplaceListingsRequest} requestParameters Request parameters.
3147
+ * @param {*} [options] Override http request option.
3148
+ * @throws {RequiredError}
3149
+ */
3150
+ updateMarketplaceListings(requestParameters, options) {
3151
+ return ProductsApiFp(this.configuration).updateMarketplaceListings(requestParameters.project, requestParameters.productId, requestParameters.updateMarketplaceListingRequest, options).then((request) => request(this.axios, this.basePath));
3152
+ }
2909
3153
  /**
2910
3154
  * Updates a product by a given ID.
2911
3155
  * @summary Update product
@@ -2,7 +2,7 @@
2
2
  * Product Catalog
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 product from the GFN Catalog, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.95.3
5
+ * The version of the OpenAPI document: 1.96.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
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 product from the GFN Catalog, plus listing information such as title, description and tags.
6
6
  *
7
- * The version of the OpenAPI document: 1.95.3
7
+ * The version of the OpenAPI document: 1.96.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
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 product from the GFN Catalog, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.95.3
5
+ * The version of the OpenAPI document: 1.96.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
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 product from the GFN Catalog, plus listing information such as title, description and tags.
6
6
  *
7
- * The version of the OpenAPI document: 1.95.3
7
+ * The version of the OpenAPI document: 1.96.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
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 product from the GFN Catalog, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.95.3
5
+ * The version of the OpenAPI document: 1.96.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,7 +3,7 @@
3
3
  * Product Catalog
4
4
  * 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 product from the GFN Catalog, plus listing information such as title, description and tags.
5
5
  *
6
- * The version of the OpenAPI document: 1.95.3
6
+ * The version of the OpenAPI document: 1.96.0
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Product Catalog
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 product from the GFN Catalog, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.95.3
5
+ * The version of the OpenAPI document: 1.96.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
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 product from the GFN Catalog, plus listing information such as title, description and tags.
6
6
  *
7
- * The version of the OpenAPI document: 1.95.3
7
+ * The version of the OpenAPI document: 1.96.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
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 product from the GFN Catalog, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.95.3
5
+ * The version of the OpenAPI document: 1.96.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
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 product from the GFN Catalog, plus listing information such as title, description and tags.
7
7
  *
8
- * The version of the OpenAPI document: 1.95.3
8
+ * The version of the OpenAPI document: 1.96.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,23 @@
1
+ # BulkUpdateMarketplaceListing
2
+
3
+ Product marketplace listing updates grouped by marketplace.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **code** | **string** | The marketplace code to update. | [default to undefined]
10
+ **products** | [**Array<BulkUpdateMarketplaceListingProduct>**](BulkUpdateMarketplaceListingProduct.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { BulkUpdateMarketplaceListing } from '@teemill/product-catalog';
16
+
17
+ const instance: BulkUpdateMarketplaceListing = {
18
+ code,
19
+ products,
20
+ };
21
+ ```
22
+
23
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,33 @@
1
+ # BulkUpdateMarketplaceListingProduct
2
+
3
+ Marketplace listing fields to update for a single product within a marketplace group.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | Unique object identifier | [default to undefined]
10
+ **title** | **string** | | [optional] [default to undefined]
11
+ **description** | **string** | | [optional] [default to undefined]
12
+ **metaTitle** | **string** | | [optional] [default to undefined]
13
+ **metaDescription** | **string** | | [optional] [default to undefined]
14
+ **price** | **number** | | [optional] [default to undefined]
15
+ **images** | [**Array<ImageFile>**](ImageFile.md) | | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { BulkUpdateMarketplaceListingProduct } from '@teemill/product-catalog';
21
+
22
+ const instance: BulkUpdateMarketplaceListingProduct = {
23
+ id,
24
+ title,
25
+ description,
26
+ metaTitle,
27
+ metaDescription,
28
+ price,
29
+ images,
30
+ };
31
+ ```
32
+
33
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,21 @@
1
+ # BulkUpdateMarketplaceListingRequest
2
+
3
+ Listing updates scoped to exactly one marketplace per HTTP request. To change another marketplace, issue another request.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **marketplace** | [**Array<BulkUpdateMarketplaceListing>**](BulkUpdateMarketplaceListing.md) | Must contain exactly one marketplace group (`code` plus the `products` to update). | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { BulkUpdateMarketplaceListingRequest } from '@teemill/product-catalog';
15
+
16
+ const instance: BulkUpdateMarketplaceListingRequest = {
17
+ marketplace,
18
+ };
19
+ ```
20
+
21
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,21 @@
1
+ # BulkUpdateMarketplaceListingResponse
2
+
3
+ Updated marketplace listing data grouped by marketplace.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **marketplaceListings** | [**Array<BulkUpdatedMarketplaceListings>**](BulkUpdatedMarketplaceListings.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { BulkUpdateMarketplaceListingResponse } from '@teemill/product-catalog';
15
+
16
+ const instance: BulkUpdateMarketplaceListingResponse = {
17
+ marketplaceListings,
18
+ };
19
+ ```
20
+
21
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,23 @@
1
+ # BulkUpdatedMarketplaceListing
2
+
3
+ Updated marketplace listing data for a product.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | Unique object identifier | [default to undefined]
10
+ **listing** | [**MarketplaceListingFields**](MarketplaceListingFields.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { BulkUpdatedMarketplaceListing } from '@teemill/product-catalog';
16
+
17
+ const instance: BulkUpdatedMarketplaceListing = {
18
+ id,
19
+ listing,
20
+ };
21
+ ```
22
+
23
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,23 @@
1
+ # BulkUpdatedMarketplaceListings
2
+
3
+ Updated product listings for a marketplace.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **code** | **string** | | [default to undefined]
10
+ **products** | [**Array<BulkUpdatedMarketplaceListing>**](BulkUpdatedMarketplaceListing.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { BulkUpdatedMarketplaceListings } from '@teemill/product-catalog';
16
+
17
+ const instance: BulkUpdatedMarketplaceListings = {
18
+ code,
19
+ products,
20
+ };
21
+ ```
22
+
23
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)