@teemill/product-catalog 1.5.0 → 1.6.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 +2 -1
- package/README.md +2 -2
- package/dist/apis/ProductsApi.d.ts +4 -4
- package/dist/apis/ProductsApi.js +6 -4
- package/dist/apis/VariantsApi.d.ts +1 -1
- package/dist/apis/VariantsApi.js +1 -1
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/Attribute.d.ts +1 -1
- package/dist/models/Attribute.js +1 -1
- package/dist/models/AttributeThumbnail.d.ts +1 -1
- package/dist/models/AttributeThumbnail.js +1 -1
- package/dist/models/CreateProductRequest.d.ts +4 -4
- package/dist/models/CreateProductRequest.js +4 -4
- package/dist/models/CreateProductRequestVariantsInner.d.ts +8 -1
- package/dist/models/CreateProductRequestVariantsInner.js +4 -1
- package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +1 -1
- package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +1 -1
- package/dist/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +1 -1
- package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +1 -1
- package/dist/models/CreateProductRequestVariantsInnerImagesInner.d.ts +31 -0
- package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +50 -0
- package/dist/models/Image.d.ts +1 -1
- package/dist/models/Image.js +1 -1
- package/dist/models/ImportProducts200Response.d.ts +31 -0
- package/dist/models/ImportProducts200Response.js +50 -0
- package/dist/models/Price.d.ts +1 -1
- package/dist/models/Price.js +1 -1
- package/dist/models/Product.d.ts +1 -1
- package/dist/models/Product.js +1 -1
- package/dist/models/ProductAdditionalFilesInner.d.ts +1 -1
- package/dist/models/ProductAdditionalFilesInner.js +1 -1
- package/dist/models/ProductsResponse.d.ts +1 -1
- package/dist/models/ProductsResponse.js +1 -1
- package/dist/models/Stock.d.ts +1 -1
- package/dist/models/Stock.js +1 -1
- package/dist/models/Variant.d.ts +1 -1
- package/dist/models/Variant.js +1 -1
- package/dist/models/VariantProduct.d.ts +1 -1
- package/dist/models/VariantProduct.js +1 -1
- package/dist/models/VariantsResponse.d.ts +1 -1
- package/dist/models/VariantsResponse.js +1 -1
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/ProductsApi.ts +10 -5
- package/src/apis/VariantsApi.ts +1 -1
- package/src/models/ApiError.ts +1 -1
- package/src/models/Attribute.ts +1 -1
- package/src/models/AttributeThumbnail.ts +1 -1
- package/src/models/CreateProductRequest.ts +11 -11
- package/src/models/CreateProductRequestVariantsInner.ts +15 -1
- package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +1 -1
- package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +1 -1
- package/src/models/CreateProductRequestVariantsInnerImagesInner.ts +65 -0
- package/src/models/Image.ts +1 -1
- package/src/models/ImportProducts200Response.ts +65 -0
- package/src/models/Price.ts +1 -1
- package/src/models/Product.ts +1 -1
- package/src/models/ProductAdditionalFilesInner.ts +1 -1
- package/src/models/ProductsResponse.ts +1 -1
- package/src/models/Stock.ts +1 -1
- package/src/models/Variant.ts +1 -1
- package/src/models/VariantProduct.ts +1 -1
- package/src/models/VariantsResponse.ts +1 -1
- package/src/models/index.ts +2 -1
- package/src/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -10,11 +10,12 @@ src/models/ApiError.ts
|
|
|
10
10
|
src/models/Attribute.ts
|
|
11
11
|
src/models/AttributeThumbnail.ts
|
|
12
12
|
src/models/CreateProductRequest.ts
|
|
13
|
-
src/models/CreateProductRequestAdditionalFilesInner.ts
|
|
14
13
|
src/models/CreateProductRequestVariantsInner.ts
|
|
15
14
|
src/models/CreateProductRequestVariantsInnerApplicationsInner.ts
|
|
16
15
|
src/models/CreateProductRequestVariantsInnerAttributesInner.ts
|
|
16
|
+
src/models/CreateProductRequestVariantsInnerImagesInner.ts
|
|
17
17
|
src/models/Image.ts
|
|
18
|
+
src/models/ImportProducts200Response.ts
|
|
18
19
|
src/models/Price.ts
|
|
19
20
|
src/models/Product.ts
|
|
20
21
|
src/models/ProductAdditionalFilesInner.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/product-catalog@1.
|
|
1
|
+
## @teemill/product-catalog@1.6.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). 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.6.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.6.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateProductRequest, Product, ProductsResponse } from '../models/index';
|
|
13
|
+
import type { CreateProductRequest, ImportProducts200Response, Product, ProductsResponse } from '../models/index';
|
|
14
14
|
export interface CreateProductOperationRequest {
|
|
15
15
|
project: string;
|
|
16
16
|
createProductRequest?: CreateProductRequest;
|
|
@@ -68,10 +68,10 @@ export declare class ProductsApi extends runtime.BaseAPI {
|
|
|
68
68
|
* Import products
|
|
69
69
|
* Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
|
|
70
70
|
*/
|
|
71
|
-
importProductsRaw(requestParameters: ImportProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
71
|
+
importProductsRaw(requestParameters: ImportProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImportProducts200Response>>;
|
|
72
72
|
/**
|
|
73
73
|
* Import products
|
|
74
74
|
* Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
|
|
75
75
|
*/
|
|
76
|
-
importProducts(project: string, optionalParameters?: runtime.OptionalOnly<ImportProductsRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
76
|
+
importProducts(project: string, optionalParameters?: runtime.OptionalOnly<ImportProductsRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImportProducts200Response>;
|
|
77
77
|
}
|
package/dist/apis/ProductsApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.6.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -333,7 +333,7 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
333
333
|
}, initOverrides)];
|
|
334
334
|
case 3:
|
|
335
335
|
response = _c.sent();
|
|
336
|
-
return [2 /*return*/, new runtime.
|
|
336
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ImportProducts200ResponseFromJSON)(jsonValue); })];
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
339
|
});
|
|
@@ -345,12 +345,14 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
345
345
|
ProductsApi.prototype.importProducts = function (project, optionalParameters, initOverrides) {
|
|
346
346
|
if (optionalParameters === void 0) { optionalParameters = {}; }
|
|
347
347
|
return __awaiter(this, void 0, void 0, function () {
|
|
348
|
+
var response;
|
|
348
349
|
return __generator(this, function (_a) {
|
|
349
350
|
switch (_a.label) {
|
|
350
351
|
case 0: return [4 /*yield*/, this.importProductsRaw(__assign({ project: project }, optionalParameters), initOverrides)];
|
|
351
352
|
case 1:
|
|
352
|
-
_a.sent();
|
|
353
|
-
return [
|
|
353
|
+
response = _a.sent();
|
|
354
|
+
return [4 /*yield*/, response.value()];
|
|
355
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
354
356
|
}
|
|
355
357
|
});
|
|
356
358
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.6.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/VariantsApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.6.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.6.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/ApiError.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.6.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.6.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Attribute.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.6.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.6.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.6.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.6.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { CreateProductRequestAdditionalFilesInner } from './CreateProductRequestAdditionalFilesInner';
|
|
13
12
|
import type { CreateProductRequestVariantsInner } from './CreateProductRequestVariantsInner';
|
|
13
|
+
import type { CreateProductRequestVariantsInnerImagesInner } from './CreateProductRequestVariantsInnerImagesInner';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -61,10 +61,10 @@ export interface CreateProductRequest {
|
|
|
61
61
|
variants: Array<CreateProductRequestVariantsInner>;
|
|
62
62
|
/**
|
|
63
63
|
* Additional files
|
|
64
|
-
* @type {Array<
|
|
64
|
+
* @type {Array<CreateProductRequestVariantsInnerImagesInner>}
|
|
65
65
|
* @memberof CreateProductRequest
|
|
66
66
|
*/
|
|
67
|
-
additionalFiles?: Array<
|
|
67
|
+
additionalFiles?: Array<CreateProductRequestVariantsInnerImagesInner>;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* Check if a given object implements the CreateProductRequest interface.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.6.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CreateProductRequestToJSON = exports.CreateProductRequestFromJSONTyped = exports.CreateProductRequestFromJSON = exports.instanceOfCreateProductRequest = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
-
var CreateProductRequestAdditionalFilesInner_1 = require("./CreateProductRequestAdditionalFilesInner");
|
|
19
18
|
var CreateProductRequestVariantsInner_1 = require("./CreateProductRequestVariantsInner");
|
|
19
|
+
var CreateProductRequestVariantsInnerImagesInner_1 = require("./CreateProductRequestVariantsInnerImagesInner");
|
|
20
20
|
/**
|
|
21
21
|
* Check if a given object implements the CreateProductRequest interface.
|
|
22
22
|
*/
|
|
@@ -43,7 +43,7 @@ function CreateProductRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'slug': !(0, runtime_1.exists)(json, 'slug') ? undefined : json['slug'],
|
|
44
44
|
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
|
|
45
45
|
'variants': (json['variants'].map(CreateProductRequestVariantsInner_1.CreateProductRequestVariantsInnerFromJSON)),
|
|
46
|
-
'additionalFiles': !(0, runtime_1.exists)(json, 'additionalFiles') ? undefined : (json['additionalFiles'].map(
|
|
46
|
+
'additionalFiles': !(0, runtime_1.exists)(json, 'additionalFiles') ? undefined : (json['additionalFiles'].map(CreateProductRequestVariantsInnerImagesInner_1.CreateProductRequestVariantsInnerImagesInnerFromJSON)),
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
exports.CreateProductRequestFromJSONTyped = CreateProductRequestFromJSONTyped;
|
|
@@ -62,7 +62,7 @@ function CreateProductRequestToJSON(value) {
|
|
|
62
62
|
'slug': value.slug,
|
|
63
63
|
'tags': value.tags,
|
|
64
64
|
'variants': (value.variants.map(CreateProductRequestVariantsInner_1.CreateProductRequestVariantsInnerToJSON)),
|
|
65
|
-
'additionalFiles': value.additionalFiles === undefined ? undefined : (value.additionalFiles.map(
|
|
65
|
+
'additionalFiles': value.additionalFiles === undefined ? undefined : (value.additionalFiles.map(CreateProductRequestVariantsInnerImagesInner_1.CreateProductRequestVariantsInnerImagesInnerToJSON)),
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
exports.CreateProductRequestToJSON = CreateProductRequestToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.6.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { CreateProductRequestVariantsInnerApplicationsInner } from './CreateProductRequestVariantsInnerApplicationsInner';
|
|
13
13
|
import type { CreateProductRequestVariantsInnerAttributesInner } from './CreateProductRequestVariantsInnerAttributesInner';
|
|
14
|
+
import type { CreateProductRequestVariantsInnerImagesInner } from './CreateProductRequestVariantsInnerImagesInner';
|
|
14
15
|
import type { Price } from './Price';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
@@ -42,6 +43,12 @@ export interface CreateProductRequestVariantsInner {
|
|
|
42
43
|
* @memberof CreateProductRequestVariantsInner
|
|
43
44
|
*/
|
|
44
45
|
applications?: Array<CreateProductRequestVariantsInnerApplicationsInner>;
|
|
46
|
+
/**
|
|
47
|
+
* Existing images to use as this variant's flat images
|
|
48
|
+
* @type {Array<CreateProductRequestVariantsInnerImagesInner>}
|
|
49
|
+
* @memberof CreateProductRequestVariantsInner
|
|
50
|
+
*/
|
|
51
|
+
images?: Array<CreateProductRequestVariantsInnerImagesInner>;
|
|
45
52
|
}
|
|
46
53
|
/**
|
|
47
54
|
* Check if a given object implements the CreateProductRequestVariantsInner interface.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.6.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,6 +17,7 @@ exports.CreateProductRequestVariantsInnerToJSON = exports.CreateProductRequestVa
|
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
18
|
var CreateProductRequestVariantsInnerApplicationsInner_1 = require("./CreateProductRequestVariantsInnerApplicationsInner");
|
|
19
19
|
var CreateProductRequestVariantsInnerAttributesInner_1 = require("./CreateProductRequestVariantsInnerAttributesInner");
|
|
20
|
+
var CreateProductRequestVariantsInnerImagesInner_1 = require("./CreateProductRequestVariantsInnerImagesInner");
|
|
20
21
|
var Price_1 = require("./Price");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the CreateProductRequestVariantsInner interface.
|
|
@@ -39,6 +40,7 @@ function CreateProductRequestVariantsInnerFromJSONTyped(json, ignoreDiscriminato
|
|
|
39
40
|
'retailPrice': !(0, runtime_1.exists)(json, 'retailPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['retailPrice']),
|
|
40
41
|
'sku': !(0, runtime_1.exists)(json, 'sku') ? undefined : json['sku'],
|
|
41
42
|
'applications': !(0, runtime_1.exists)(json, 'applications') ? undefined : (json['applications'].map(CreateProductRequestVariantsInnerApplicationsInner_1.CreateProductRequestVariantsInnerApplicationsInnerFromJSON)),
|
|
43
|
+
'images': !(0, runtime_1.exists)(json, 'images') ? undefined : (json['images'].map(CreateProductRequestVariantsInnerImagesInner_1.CreateProductRequestVariantsInnerImagesInnerFromJSON)),
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
46
|
exports.CreateProductRequestVariantsInnerFromJSONTyped = CreateProductRequestVariantsInnerFromJSONTyped;
|
|
@@ -54,6 +56,7 @@ function CreateProductRequestVariantsInnerToJSON(value) {
|
|
|
54
56
|
'retailPrice': (0, Price_1.PriceToJSON)(value.retailPrice),
|
|
55
57
|
'sku': value.sku,
|
|
56
58
|
'applications': value.applications === undefined ? undefined : (value.applications.map(CreateProductRequestVariantsInnerApplicationsInner_1.CreateProductRequestVariantsInnerApplicationsInnerToJSON)),
|
|
59
|
+
'images': value.images === undefined ? undefined : (value.images.map(CreateProductRequestVariantsInnerImagesInner_1.CreateProductRequestVariantsInnerImagesInnerToJSON)),
|
|
57
60
|
};
|
|
58
61
|
}
|
|
59
62
|
exports.CreateProductRequestVariantsInnerToJSON = CreateProductRequestVariantsInnerToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.6.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.6.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.6.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.6.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Product Catalog API
|
|
3
|
+
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.6.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateProductRequestVariantsInnerImagesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateProductRequestVariantsInnerImagesInner {
|
|
18
|
+
/**
|
|
19
|
+
* File url
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateProductRequestVariantsInnerImagesInner
|
|
22
|
+
*/
|
|
23
|
+
src?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CreateProductRequestVariantsInnerImagesInner interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCreateProductRequestVariantsInnerImagesInner(value: object): boolean;
|
|
29
|
+
export declare function CreateProductRequestVariantsInnerImagesInnerFromJSON(json: any): CreateProductRequestVariantsInnerImagesInner;
|
|
30
|
+
export declare function CreateProductRequestVariantsInnerImagesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerImagesInner;
|
|
31
|
+
export declare function CreateProductRequestVariantsInnerImagesInnerToJSON(value?: CreateProductRequestVariantsInnerImagesInner | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Product Catalog API
|
|
6
|
+
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.6.0
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateProductRequestVariantsInnerImagesInnerToJSON = exports.CreateProductRequestVariantsInnerImagesInnerFromJSONTyped = exports.CreateProductRequestVariantsInnerImagesInnerFromJSON = exports.instanceOfCreateProductRequestVariantsInnerImagesInner = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the CreateProductRequestVariantsInnerImagesInner interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfCreateProductRequestVariantsInnerImagesInner(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCreateProductRequestVariantsInnerImagesInner = instanceOfCreateProductRequestVariantsInnerImagesInner;
|
|
26
|
+
function CreateProductRequestVariantsInnerImagesInnerFromJSON(json) {
|
|
27
|
+
return CreateProductRequestVariantsInnerImagesInnerFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CreateProductRequestVariantsInnerImagesInnerFromJSON = CreateProductRequestVariantsInnerImagesInnerFromJSON;
|
|
30
|
+
function CreateProductRequestVariantsInnerImagesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'src': !(0, runtime_1.exists)(json, 'src') ? undefined : json['src'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.CreateProductRequestVariantsInnerImagesInnerFromJSONTyped = CreateProductRequestVariantsInnerImagesInnerFromJSONTyped;
|
|
39
|
+
function CreateProductRequestVariantsInnerImagesInnerToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'src': value.src,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.CreateProductRequestVariantsInnerImagesInnerToJSON = CreateProductRequestVariantsInnerImagesInnerToJSON;
|
package/dist/models/Image.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.6.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Image.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.6.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Product Catalog API
|
|
3
|
+
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.6.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ImportProducts200Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ImportProducts200Response {
|
|
18
|
+
/**
|
|
19
|
+
* Id of the product import
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ImportProducts200Response
|
|
22
|
+
*/
|
|
23
|
+
importId?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ImportProducts200Response interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfImportProducts200Response(value: object): boolean;
|
|
29
|
+
export declare function ImportProducts200ResponseFromJSON(json: any): ImportProducts200Response;
|
|
30
|
+
export declare function ImportProducts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportProducts200Response;
|
|
31
|
+
export declare function ImportProducts200ResponseToJSON(value?: ImportProducts200Response | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Product Catalog API
|
|
6
|
+
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.6.0
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ImportProducts200ResponseToJSON = exports.ImportProducts200ResponseFromJSONTyped = exports.ImportProducts200ResponseFromJSON = exports.instanceOfImportProducts200Response = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ImportProducts200Response interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfImportProducts200Response(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfImportProducts200Response = instanceOfImportProducts200Response;
|
|
26
|
+
function ImportProducts200ResponseFromJSON(json) {
|
|
27
|
+
return ImportProducts200ResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.ImportProducts200ResponseFromJSON = ImportProducts200ResponseFromJSON;
|
|
30
|
+
function ImportProducts200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'importId': !(0, runtime_1.exists)(json, 'importId') ? undefined : json['importId'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.ImportProducts200ResponseFromJSONTyped = ImportProducts200ResponseFromJSONTyped;
|
|
39
|
+
function ImportProducts200ResponseToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'importId': value.importId,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.ImportProducts200ResponseToJSON = ImportProducts200ResponseToJSON;
|
package/dist/models/Price.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.6.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Price.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.6.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Product.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.6.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Product.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.6.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.6.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.6.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.6.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.6.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Stock.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.6.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Stock.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.6.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|