@teemill/product-catalog 1.33.1 → 1.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +108 -108
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +67 -67
- package/dist/api.js +72 -72
- 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 +1 -1
- package/dist/esm/api.d.ts +67 -67
- package/dist/esm/api.js +72 -72
- 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 +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/product-catalog@1.
|
|
1
|
+
## @teemill/product-catalog@1.34.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/product-catalog@1.
|
|
39
|
+
npm install @teemill/product-catalog@1.34.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product Catalog API
|
|
5
5
|
* Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.34.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2349,21 +2349,17 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2349
2349
|
};
|
|
2350
2350
|
},
|
|
2351
2351
|
/**
|
|
2352
|
-
*
|
|
2353
|
-
* @summary
|
|
2352
|
+
* Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
|
|
2353
|
+
* @summary Import products
|
|
2354
2354
|
* @param {string} project What project it is
|
|
2355
|
-
* @param {
|
|
2356
|
-
* @param {string} [search] Search query string to filter results. Supports field-specific filters like \'enabled:true\', \'uuid:<id>\', \'name:\"product name\"\', and \'tag:\"tag name\"\'. Multiple filters can be combined with spaces and commas.
|
|
2357
|
-
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
2358
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2359
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
2355
|
+
* @param {string} [body] A data URL of a CSV file containing data for one or more products.
|
|
2360
2356
|
* @param {*} [options] Override http request option.
|
|
2361
2357
|
* @throws {RequiredError}
|
|
2362
2358
|
*/
|
|
2363
|
-
|
|
2359
|
+
importProducts: async (project: string, body?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2364
2360
|
// verify required parameter 'project' is not null or undefined
|
|
2365
|
-
assertParamExists('
|
|
2366
|
-
const localVarPath = `/v1/catalog/products`;
|
|
2361
|
+
assertParamExists('importProducts', 'project', project)
|
|
2362
|
+
const localVarPath = `/v1/catalog/products/import`;
|
|
2367
2363
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2368
2364
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2369
2365
|
let baseOptions;
|
|
@@ -2371,7 +2367,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2371
2367
|
baseOptions = configuration.baseOptions;
|
|
2372
2368
|
}
|
|
2373
2369
|
|
|
2374
|
-
const localVarRequestOptions = { method: '
|
|
2370
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2375
2371
|
const localVarHeaderParameter = {} as any;
|
|
2376
2372
|
const localVarQueryParameter = {} as any;
|
|
2377
2373
|
|
|
@@ -2386,31 +2382,14 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2386
2382
|
localVarQueryParameter['project'] = project;
|
|
2387
2383
|
}
|
|
2388
2384
|
|
|
2389
|
-
if (pageToken !== undefined) {
|
|
2390
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
2391
|
-
}
|
|
2392
|
-
|
|
2393
|
-
if (search !== undefined) {
|
|
2394
|
-
localVarQueryParameter['search'] = search;
|
|
2395
|
-
}
|
|
2396
|
-
|
|
2397
|
-
if (sortBy) {
|
|
2398
|
-
localVarQueryParameter['sortBy'] = sortBy;
|
|
2399
|
-
}
|
|
2400
|
-
|
|
2401
|
-
if (pageSize !== undefined) {
|
|
2402
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
2403
|
-
}
|
|
2404
|
-
|
|
2405
|
-
if (fields !== undefined) {
|
|
2406
|
-
localVarQueryParameter['fields'] = fields;
|
|
2407
|
-
}
|
|
2408
|
-
|
|
2409
2385
|
|
|
2410
2386
|
|
|
2387
|
+
localVarHeaderParameter['Content-Type'] = 'text/csv';
|
|
2388
|
+
|
|
2411
2389
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2412
2390
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2413
2391
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2392
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
2414
2393
|
|
|
2415
2394
|
return {
|
|
2416
2395
|
url: toPathString(localVarUrlObj),
|
|
@@ -2418,17 +2397,21 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2418
2397
|
};
|
|
2419
2398
|
},
|
|
2420
2399
|
/**
|
|
2421
|
-
*
|
|
2422
|
-
* @summary
|
|
2400
|
+
* Lists all store listing products attached to the given project.
|
|
2401
|
+
* @summary List products
|
|
2423
2402
|
* @param {string} project What project it is
|
|
2424
|
-
* @param {
|
|
2403
|
+
* @param {number} [pageToken] Page reference token
|
|
2404
|
+
* @param {string} [search] Search query string to filter results. Supports field-specific filters like \'enabled:true\', \'uuid:<id>\', \'name:\"product name\"\', and \'tag:\"tag name\"\'. Multiple filters can be combined with spaces and commas.
|
|
2405
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
2406
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2407
|
+
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
2425
2408
|
* @param {*} [options] Override http request option.
|
|
2426
2409
|
* @throws {RequiredError}
|
|
2427
2410
|
*/
|
|
2428
|
-
|
|
2411
|
+
listProducts: async (project: string, pageToken?: number, search?: string, sortBy?: Array<string>, pageSize?: number, fields?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2429
2412
|
// verify required parameter 'project' is not null or undefined
|
|
2430
|
-
assertParamExists('
|
|
2431
|
-
const localVarPath = `/v1/catalog/products
|
|
2413
|
+
assertParamExists('listProducts', 'project', project)
|
|
2414
|
+
const localVarPath = `/v1/catalog/products`;
|
|
2432
2415
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2433
2416
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2434
2417
|
let baseOptions;
|
|
@@ -2436,7 +2419,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2436
2419
|
baseOptions = configuration.baseOptions;
|
|
2437
2420
|
}
|
|
2438
2421
|
|
|
2439
|
-
const localVarRequestOptions = { method: '
|
|
2422
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2440
2423
|
const localVarHeaderParameter = {} as any;
|
|
2441
2424
|
const localVarQueryParameter = {} as any;
|
|
2442
2425
|
|
|
@@ -2451,14 +2434,31 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2451
2434
|
localVarQueryParameter['project'] = project;
|
|
2452
2435
|
}
|
|
2453
2436
|
|
|
2437
|
+
if (pageToken !== undefined) {
|
|
2438
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
2439
|
+
}
|
|
2454
2440
|
|
|
2455
|
-
|
|
2456
|
-
|
|
2441
|
+
if (search !== undefined) {
|
|
2442
|
+
localVarQueryParameter['search'] = search;
|
|
2443
|
+
}
|
|
2457
2444
|
|
|
2445
|
+
if (sortBy) {
|
|
2446
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
if (pageSize !== undefined) {
|
|
2450
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
if (fields !== undefined) {
|
|
2454
|
+
localVarQueryParameter['fields'] = fields;
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2457
|
+
|
|
2458
|
+
|
|
2458
2459
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2459
2460
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2460
2461
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2461
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
2462
2462
|
|
|
2463
2463
|
return {
|
|
2464
2464
|
url: toPathString(localVarUrlObj),
|
|
@@ -2571,35 +2571,35 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
2571
2571
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2572
2572
|
},
|
|
2573
2573
|
/**
|
|
2574
|
-
*
|
|
2575
|
-
* @summary
|
|
2574
|
+
* Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
|
|
2575
|
+
* @summary Import products
|
|
2576
2576
|
* @param {string} project What project it is
|
|
2577
|
-
* @param {
|
|
2578
|
-
* @param {string} [search] Search query string to filter results. Supports field-specific filters like \'enabled:true\', \'uuid:<id>\', \'name:\"product name\"\', and \'tag:\"tag name\"\'. Multiple filters can be combined with spaces and commas.
|
|
2579
|
-
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
2580
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2581
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
2577
|
+
* @param {string} [body] A data URL of a CSV file containing data for one or more products.
|
|
2582
2578
|
* @param {*} [options] Override http request option.
|
|
2583
2579
|
* @throws {RequiredError}
|
|
2584
2580
|
*/
|
|
2585
|
-
async
|
|
2586
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2581
|
+
async importProducts(project: string, body?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImportProducts200Response>> {
|
|
2582
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.importProducts(project, body, options);
|
|
2587
2583
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2588
|
-
const localVarOperationServerBasePath = operationServerMap['ProductsApi.
|
|
2584
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.importProducts']?.[localVarOperationServerIndex]?.url;
|
|
2589
2585
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2590
2586
|
},
|
|
2591
2587
|
/**
|
|
2592
|
-
*
|
|
2593
|
-
* @summary
|
|
2588
|
+
* Lists all store listing products attached to the given project.
|
|
2589
|
+
* @summary List products
|
|
2594
2590
|
* @param {string} project What project it is
|
|
2595
|
-
* @param {
|
|
2591
|
+
* @param {number} [pageToken] Page reference token
|
|
2592
|
+
* @param {string} [search] Search query string to filter results. Supports field-specific filters like \'enabled:true\', \'uuid:<id>\', \'name:\"product name\"\', and \'tag:\"tag name\"\'. Multiple filters can be combined with spaces and commas.
|
|
2593
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
2594
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2595
|
+
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
2596
2596
|
* @param {*} [options] Override http request option.
|
|
2597
2597
|
* @throws {RequiredError}
|
|
2598
2598
|
*/
|
|
2599
|
-
async
|
|
2600
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2599
|
+
async listProducts(project: string, pageToken?: number, search?: string, sortBy?: Array<string>, pageSize?: number, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>> {
|
|
2600
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(project, pageToken, search, sortBy, pageSize, fields, options);
|
|
2601
2601
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2602
|
-
const localVarOperationServerBasePath = operationServerMap['ProductsApi.
|
|
2602
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.listProducts']?.[localVarOperationServerIndex]?.url;
|
|
2603
2603
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2604
2604
|
},
|
|
2605
2605
|
/**
|
|
@@ -2657,16 +2657,6 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
2657
2657
|
getProduct(requestParameters: ProductsApiGetProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<Product> {
|
|
2658
2658
|
return localVarFp.getProduct(requestParameters.project, requestParameters.productId, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
2659
2659
|
},
|
|
2660
|
-
/**
|
|
2661
|
-
* Lists all enabled store listing products attached to the given project.
|
|
2662
|
-
* @summary List products
|
|
2663
|
-
* @param {ProductsApiGetProductsRequest} requestParameters Request parameters.
|
|
2664
|
-
* @param {*} [options] Override http request option.
|
|
2665
|
-
* @throws {RequiredError}
|
|
2666
|
-
*/
|
|
2667
|
-
getProducts(requestParameters: ProductsApiGetProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductsResponse> {
|
|
2668
|
-
return localVarFp.getProducts(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.sortBy, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
2669
|
-
},
|
|
2670
2660
|
/**
|
|
2671
2661
|
* Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
|
|
2672
2662
|
* @summary Import products
|
|
@@ -2677,6 +2667,16 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
2677
2667
|
importProducts(requestParameters: ProductsApiImportProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImportProducts200Response> {
|
|
2678
2668
|
return localVarFp.importProducts(requestParameters.project, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
2679
2669
|
},
|
|
2670
|
+
/**
|
|
2671
|
+
* Lists all store listing products attached to the given project.
|
|
2672
|
+
* @summary List products
|
|
2673
|
+
* @param {ProductsApiListProductsRequest} requestParameters Request parameters.
|
|
2674
|
+
* @param {*} [options] Override http request option.
|
|
2675
|
+
* @throws {RequiredError}
|
|
2676
|
+
*/
|
|
2677
|
+
listProducts(requestParameters: ProductsApiListProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductsResponse> {
|
|
2678
|
+
return localVarFp.listProducts(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.sortBy, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
2679
|
+
},
|
|
2680
2680
|
/**
|
|
2681
2681
|
* Updates a product by a given ID.
|
|
2682
2682
|
* @summary Update product
|
|
@@ -2761,75 +2761,75 @@ export interface ProductsApiGetProductRequest {
|
|
|
2761
2761
|
}
|
|
2762
2762
|
|
|
2763
2763
|
/**
|
|
2764
|
-
* Request parameters for
|
|
2764
|
+
* Request parameters for importProducts operation in ProductsApi.
|
|
2765
2765
|
* @export
|
|
2766
|
-
* @interface
|
|
2766
|
+
* @interface ProductsApiImportProductsRequest
|
|
2767
2767
|
*/
|
|
2768
|
-
export interface
|
|
2768
|
+
export interface ProductsApiImportProductsRequest {
|
|
2769
2769
|
/**
|
|
2770
2770
|
* What project it is
|
|
2771
2771
|
* @type {string}
|
|
2772
|
-
* @memberof
|
|
2772
|
+
* @memberof ProductsApiImportProducts
|
|
2773
|
+
*/
|
|
2774
|
+
readonly project: string
|
|
2775
|
+
|
|
2776
|
+
/**
|
|
2777
|
+
* A data URL of a CSV file containing data for one or more products.
|
|
2778
|
+
* @type {string}
|
|
2779
|
+
* @memberof ProductsApiImportProducts
|
|
2780
|
+
*/
|
|
2781
|
+
readonly body?: string
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
/**
|
|
2785
|
+
* Request parameters for listProducts operation in ProductsApi.
|
|
2786
|
+
* @export
|
|
2787
|
+
* @interface ProductsApiListProductsRequest
|
|
2788
|
+
*/
|
|
2789
|
+
export interface ProductsApiListProductsRequest {
|
|
2790
|
+
/**
|
|
2791
|
+
* What project it is
|
|
2792
|
+
* @type {string}
|
|
2793
|
+
* @memberof ProductsApiListProducts
|
|
2773
2794
|
*/
|
|
2774
2795
|
readonly project: string
|
|
2775
2796
|
|
|
2776
2797
|
/**
|
|
2777
2798
|
* Page reference token
|
|
2778
2799
|
* @type {number}
|
|
2779
|
-
* @memberof
|
|
2800
|
+
* @memberof ProductsApiListProducts
|
|
2780
2801
|
*/
|
|
2781
2802
|
readonly pageToken?: number
|
|
2782
2803
|
|
|
2783
2804
|
/**
|
|
2784
2805
|
* Search query string to filter results. Supports field-specific filters like \'enabled:true\', \'uuid:<id>\', \'name:\"product name\"\', and \'tag:\"tag name\"\'. Multiple filters can be combined with spaces and commas.
|
|
2785
2806
|
* @type {string}
|
|
2786
|
-
* @memberof
|
|
2807
|
+
* @memberof ProductsApiListProducts
|
|
2787
2808
|
*/
|
|
2788
2809
|
readonly search?: string
|
|
2789
2810
|
|
|
2790
2811
|
/**
|
|
2791
2812
|
* An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
2792
2813
|
* @type {Array<string>}
|
|
2793
|
-
* @memberof
|
|
2814
|
+
* @memberof ProductsApiListProducts
|
|
2794
2815
|
*/
|
|
2795
2816
|
readonly sortBy?: Array<string>
|
|
2796
2817
|
|
|
2797
2818
|
/**
|
|
2798
2819
|
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2799
2820
|
* @type {number}
|
|
2800
|
-
* @memberof
|
|
2821
|
+
* @memberof ProductsApiListProducts
|
|
2801
2822
|
*/
|
|
2802
2823
|
readonly pageSize?: number
|
|
2803
2824
|
|
|
2804
2825
|
/**
|
|
2805
2826
|
* Filter response fields to only include a subset of the resource.
|
|
2806
2827
|
* @type {string}
|
|
2807
|
-
* @memberof
|
|
2828
|
+
* @memberof ProductsApiListProducts
|
|
2808
2829
|
*/
|
|
2809
2830
|
readonly fields?: string
|
|
2810
2831
|
}
|
|
2811
2832
|
|
|
2812
|
-
/**
|
|
2813
|
-
* Request parameters for importProducts operation in ProductsApi.
|
|
2814
|
-
* @export
|
|
2815
|
-
* @interface ProductsApiImportProductsRequest
|
|
2816
|
-
*/
|
|
2817
|
-
export interface ProductsApiImportProductsRequest {
|
|
2818
|
-
/**
|
|
2819
|
-
* What project it is
|
|
2820
|
-
* @type {string}
|
|
2821
|
-
* @memberof ProductsApiImportProducts
|
|
2822
|
-
*/
|
|
2823
|
-
readonly project: string
|
|
2824
|
-
|
|
2825
|
-
/**
|
|
2826
|
-
* A data URL of a CSV file containing data for one or more products.
|
|
2827
|
-
* @type {string}
|
|
2828
|
-
* @memberof ProductsApiImportProducts
|
|
2829
|
-
*/
|
|
2830
|
-
readonly body?: string
|
|
2831
|
-
}
|
|
2832
|
-
|
|
2833
2833
|
/**
|
|
2834
2834
|
* Request parameters for updateProduct operation in ProductsApi.
|
|
2835
2835
|
* @export
|
|
@@ -2902,27 +2902,27 @@ export class ProductsApi extends BaseAPI {
|
|
|
2902
2902
|
}
|
|
2903
2903
|
|
|
2904
2904
|
/**
|
|
2905
|
-
*
|
|
2906
|
-
* @summary
|
|
2907
|
-
* @param {
|
|
2905
|
+
* Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
|
|
2906
|
+
* @summary Import products
|
|
2907
|
+
* @param {ProductsApiImportProductsRequest} requestParameters Request parameters.
|
|
2908
2908
|
* @param {*} [options] Override http request option.
|
|
2909
2909
|
* @throws {RequiredError}
|
|
2910
2910
|
* @memberof ProductsApi
|
|
2911
2911
|
*/
|
|
2912
|
-
public
|
|
2913
|
-
return ProductsApiFp(this.configuration).
|
|
2912
|
+
public importProducts(requestParameters: ProductsApiImportProductsRequest, options?: RawAxiosRequestConfig) {
|
|
2913
|
+
return ProductsApiFp(this.configuration).importProducts(requestParameters.project, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
2914
2914
|
}
|
|
2915
2915
|
|
|
2916
2916
|
/**
|
|
2917
|
-
*
|
|
2918
|
-
* @summary
|
|
2919
|
-
* @param {
|
|
2917
|
+
* Lists all store listing products attached to the given project.
|
|
2918
|
+
* @summary List products
|
|
2919
|
+
* @param {ProductsApiListProductsRequest} requestParameters Request parameters.
|
|
2920
2920
|
* @param {*} [options] Override http request option.
|
|
2921
2921
|
* @throws {RequiredError}
|
|
2922
2922
|
* @memberof ProductsApi
|
|
2923
2923
|
*/
|
|
2924
|
-
public
|
|
2925
|
-
return ProductsApiFp(this.configuration).
|
|
2924
|
+
public listProducts(requestParameters: ProductsApiListProductsRequest, options?: RawAxiosRequestConfig) {
|
|
2925
|
+
return ProductsApiFp(this.configuration).listProducts(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.sortBy, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
2926
2926
|
}
|
|
2927
2927
|
|
|
2928
2928
|
/**
|
package/base.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product Catalog API
|
|
5
5
|
* Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.34.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product Catalog API
|
|
5
5
|
* Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.34.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product Catalog API
|
|
5
5
|
* Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.34.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|