@teemill/product-catalog 1.95.0 → 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.
- package/.openapi-generator/FILES +11 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +16 -2
- package/api.ts +450 -20
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +3 -3
- package/dist/api.d.ts +275 -7
- package/dist/api.js +262 -18
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +3 -3
- package/dist/esm/api.d.ts +275 -7
- package/dist/esm/api.js +262 -18
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +3 -3
- 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/docs/Application.md +1 -1
- package/docs/BulkUpdateMarketplaceListing.md +23 -0
- package/docs/BulkUpdateMarketplaceListingProduct.md +33 -0
- package/docs/BulkUpdateMarketplaceListingRequest.md +21 -0
- package/docs/BulkUpdateMarketplaceListingResponse.md +21 -0
- package/docs/BulkUpdatedMarketplaceListing.md +23 -0
- package/docs/BulkUpdatedMarketplaceListings.md +23 -0
- package/docs/CreateApplication.md +1 -1
- package/docs/MarketplaceListing.md +35 -0
- package/docs/MarketplaceListingFields.md +31 -0
- package/docs/MarketplaceListingsResponse.md +20 -0
- package/docs/Product.md +2 -0
- package/docs/ProductsApi.md +189 -1
- package/docs/UpdateMarketplaceListing.md +33 -0
- package/docs/UpdateMarketplaceListingRequest.md +21 -0
- package/index.ts +1 -1
- package/package.json +2 -2
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.
|
|
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).
|
|
@@ -37,7 +37,7 @@ export const ApplicationTechnologyEnum = {
|
|
|
37
37
|
Dtf: 'dtf',
|
|
38
38
|
Pretreat: 'pretreat',
|
|
39
39
|
MugSublimation: 'mug_sublimation',
|
|
40
|
-
|
|
40
|
+
MiniSublimation: 'mini_sublimation',
|
|
41
41
|
ManualPrint: 'manual_print',
|
|
42
42
|
AdditionalApplication: 'additional_application',
|
|
43
43
|
NotebookSublimation: 'notebook_sublimation',
|
|
@@ -93,7 +93,7 @@ export const CreateApplicationTechnologyEnum = {
|
|
|
93
93
|
Dtf: 'dtf',
|
|
94
94
|
Pretreat: 'pretreat',
|
|
95
95
|
MugSublimation: 'mug_sublimation',
|
|
96
|
-
|
|
96
|
+
MiniSublimation: 'mini_sublimation',
|
|
97
97
|
ManualPrint: 'manual_print',
|
|
98
98
|
AdditionalApplication: 'additional_application',
|
|
99
99
|
NotebookSublimation: 'notebook_sublimation',
|
|
@@ -220,7 +220,7 @@ export const ApplicationGroupsApiAxiosParamCreator = function (configuration) {
|
|
|
220
220
|
// verify required parameter 'applicationGroupId' is not null or undefined
|
|
221
221
|
assertParamExists('deleteApplicationGroup', 'applicationGroupId', applicationGroupId);
|
|
222
222
|
const localVarPath = `/v1/catalog/applications/groups/{applicationGroupId}`
|
|
223
|
-
.replace(
|
|
223
|
+
.replace('{applicationGroupId}', encodeURIComponent(String(applicationGroupId)));
|
|
224
224
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
225
225
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
226
226
|
let baseOptions;
|
|
@@ -261,7 +261,7 @@ export const ApplicationGroupsApiAxiosParamCreator = function (configuration) {
|
|
|
261
261
|
// verify required parameter 'applicationGroupId' is not null or undefined
|
|
262
262
|
assertParamExists('getApplicationGroup', 'applicationGroupId', applicationGroupId);
|
|
263
263
|
const localVarPath = `/v1/catalog/applications/groups/{applicationGroupId}`
|
|
264
|
-
.replace(
|
|
264
|
+
.replace('{applicationGroupId}', encodeURIComponent(String(applicationGroupId)));
|
|
265
265
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
266
266
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
267
267
|
let baseOptions;
|
|
@@ -352,7 +352,7 @@ export const ApplicationGroupsApiAxiosParamCreator = function (configuration) {
|
|
|
352
352
|
// verify required parameter 'applicationGroupId' is not null or undefined
|
|
353
353
|
assertParamExists('updateApplicationGroup', 'applicationGroupId', applicationGroupId);
|
|
354
354
|
const localVarPath = `/v1/catalog/applications/groups/{applicationGroupId}`
|
|
355
|
-
.replace(
|
|
355
|
+
.replace('{applicationGroupId}', encodeURIComponent(String(applicationGroupId)));
|
|
356
356
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
357
357
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
358
358
|
let baseOptions;
|
|
@@ -651,7 +651,7 @@ export const ApplicationSetsApiAxiosParamCreator = function (configuration) {
|
|
|
651
651
|
// verify required parameter 'applicationSetId' is not null or undefined
|
|
652
652
|
assertParamExists('deleteApplicationSet', 'applicationSetId', applicationSetId);
|
|
653
653
|
const localVarPath = `/v1/catalog/applications/sets/{applicationSetId}`
|
|
654
|
-
.replace(
|
|
654
|
+
.replace('{applicationSetId}', encodeURIComponent(String(applicationSetId)));
|
|
655
655
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
656
656
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
657
657
|
let baseOptions;
|
|
@@ -692,7 +692,7 @@ export const ApplicationSetsApiAxiosParamCreator = function (configuration) {
|
|
|
692
692
|
// verify required parameter 'applicationSetId' is not null or undefined
|
|
693
693
|
assertParamExists('getApplicationSet', 'applicationSetId', applicationSetId);
|
|
694
694
|
const localVarPath = `/v1/catalog/applications/sets/{applicationSetId}`
|
|
695
|
-
.replace(
|
|
695
|
+
.replace('{applicationSetId}', encodeURIComponent(String(applicationSetId)));
|
|
696
696
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
697
697
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
698
698
|
let baseOptions;
|
|
@@ -783,7 +783,7 @@ export const ApplicationSetsApiAxiosParamCreator = function (configuration) {
|
|
|
783
783
|
// verify required parameter 'applicationSetId' is not null or undefined
|
|
784
784
|
assertParamExists('updateApplicationSet', 'applicationSetId', applicationSetId);
|
|
785
785
|
const localVarPath = `/v1/catalog/applications/sets/{applicationSetId}`
|
|
786
|
-
.replace(
|
|
786
|
+
.replace('{applicationSetId}', encodeURIComponent(String(applicationSetId)));
|
|
787
787
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
788
788
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
789
789
|
let baseOptions;
|
|
@@ -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
|
|
@@ -1896,7 +1938,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
1896
1938
|
// verify required parameter 'productId' is not null or undefined
|
|
1897
1939
|
assertParamExists('deleteProduct', 'productId', productId);
|
|
1898
1940
|
const localVarPath = `/v1/catalog/products/{productId}`
|
|
1899
|
-
.replace(
|
|
1941
|
+
.replace('{productId}', encodeURIComponent(String(productId)));
|
|
1900
1942
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1901
1943
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1902
1944
|
let baseOptions;
|
|
@@ -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
|
|
@@ -2085,7 +2172,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
2085
2172
|
// verify required parameter 'productId' is not null or undefined
|
|
2086
2173
|
assertParamExists('getProduct', 'productId', productId);
|
|
2087
2174
|
const localVarPath = `/v1/catalog/products/{productId}`
|
|
2088
|
-
.replace(
|
|
2175
|
+
.replace('{productId}', encodeURIComponent(String(productId)));
|
|
2089
2176
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2090
2177
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2091
2178
|
let baseOptions;
|
|
@@ -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
|
|
@@ -2359,7 +2490,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
2359
2490
|
// verify required parameter 'productId' is not null or undefined
|
|
2360
2491
|
assertParamExists('updateProduct', 'productId', productId);
|
|
2361
2492
|
const localVarPath = `/v1/catalog/products/{productId}`
|
|
2362
|
-
.replace(
|
|
2493
|
+
.replace('{productId}', encodeURIComponent(String(productId)));
|
|
2363
2494
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2364
2495
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2365
2496
|
let baseOptions;
|
|
@@ -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
|
|
@@ -2955,7 +3199,7 @@ export const VariantsApiAxiosParamCreator = function (configuration) {
|
|
|
2955
3199
|
// verify required parameter 'variantId' is not null or undefined
|
|
2956
3200
|
assertParamExists('getVariant', 'variantId', variantId);
|
|
2957
3201
|
const localVarPath = `/v1/catalog/variants/{variantId}`
|
|
2958
|
-
.replace(
|
|
3202
|
+
.replace('{variantId}', encodeURIComponent(String(variantId)));
|
|
2959
3203
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2960
3204
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2961
3205
|
let baseOptions;
|
package/dist/esm/base.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.
|
|
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.
|
|
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/esm/common.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.
|
|
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/common.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.
|
|
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.
|
|
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.
|
|
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).
|
|
@@ -34,7 +34,7 @@ export class Configuration {
|
|
|
34
34
|
* @return True if the given MIME is JSON, false otherwise.
|
|
35
35
|
*/
|
|
36
36
|
isJsonMime(mime) {
|
|
37
|
-
const jsonMime =
|
|
38
|
-
return mime !== null &&
|
|
37
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
38
|
+
return mime !== null && jsonMime.test(mime);
|
|
39
39
|
}
|
|
40
40
|
}
|
package/dist/esm/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.
|
|
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.
|
|
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.
|
|
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.
|
|
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).
|
package/docs/Application.md
CHANGED
|
@@ -7,7 +7,7 @@ A design application on a product variant, specifying the technology, placement,
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**id** | **string** | The unique identifier of this application. | [optional] [default to undefined]
|
|
10
|
-
**technology** | **string** | The application technology used for this design application. `mug_sublimation` is deprecated. Use `
|
|
10
|
+
**technology** | **string** | The application technology used for this design application. `mug_sublimation` is deprecated. Use `mini_sublimation` instead. | [default to undefined]
|
|
11
11
|
**placement** | **string** | Placement of the application. Available placements depend on the chosen product and technology. | [default to undefined]
|
|
12
12
|
**additionalInstructions** | **string** | Any additional instructions for the application | [optional] [default to undefined]
|
|
13
13
|
**src** | **string** | Publicly available production print file URL for this application. For raster-only applications, this can also be used directly as the display image. | [optional] [default to undefined]
|
|
@@ -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)
|