@teemill/product-catalog 1.7.0 → 1.9.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 +7 -5
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/ProductsApi.d.ts +18 -2
- package/dist/apis/ProductsApi.js +72 -1
- 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 +10 -14
- package/dist/models/Attribute.d.ts +1 -1
- package/dist/models/Attribute.js +15 -18
- package/dist/models/AttributeThumbnail.d.ts +1 -1
- package/dist/models/AttributeThumbnail.js +9 -14
- package/dist/models/CreateProductRequest.d.ts +13 -7
- package/dist/models/CreateProductRequest.js +30 -31
- package/dist/models/CreateProductRequestImagesInner.d.ts +31 -0
- package/dist/models/CreateProductRequestImagesInner.js +45 -0
- package/dist/models/CreateProductRequestSeoMetadata.d.ts +1 -1
- package/dist/models/CreateProductRequestSeoMetadata.js +7 -12
- package/dist/models/CreateProductRequestVariantsInner.d.ts +1 -1
- package/dist/models/CreateProductRequestVariantsInner.js +1 -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 +1 -1
- package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +1 -1
- package/dist/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +1 -1
- package/dist/models/CreateProductRequestVariantsInnerRetailPrice.js +1 -1
- package/dist/models/CreateProductVariant.d.ts +59 -0
- package/dist/models/CreateProductVariant.js +61 -0
- package/dist/models/CreateProductVariantApplicationsInner.d.ts +63 -0
- package/dist/models/CreateProductVariantApplicationsInner.js +73 -0
- package/dist/models/CreateProductVariantAttributesInner.d.ts +37 -0
- package/dist/models/CreateProductVariantAttributesInner.js +51 -0
- package/dist/models/CreateProductVariantRetailPrice.d.ts +37 -0
- package/dist/models/CreateProductVariantRetailPrice.js +51 -0
- package/dist/models/Image.d.ts +1 -1
- package/dist/models/Image.js +19 -24
- package/dist/models/ImportProducts200Response.d.ts +1 -1
- package/dist/models/ImportProducts200Response.js +7 -12
- package/dist/models/ModelFile.d.ts +31 -0
- package/dist/models/ModelFile.js +45 -0
- package/dist/models/Price.d.ts +1 -1
- package/dist/models/Price.js +9 -14
- package/dist/models/Product.d.ts +1 -1
- package/dist/models/Product.js +32 -35
- package/dist/models/ProductAdditionalFilesInner.d.ts +1 -1
- package/dist/models/ProductAdditionalFilesInner.js +9 -14
- package/dist/models/ProductsResponse.d.ts +1 -1
- package/dist/models/ProductsResponse.js +9 -14
- package/dist/models/SeoMetadata.d.ts +1 -1
- package/dist/models/SeoMetadata.js +7 -12
- package/dist/models/Stock.d.ts +1 -1
- package/dist/models/Stock.js +7 -12
- package/dist/models/UpdateProductRequest.d.ts +87 -0
- package/dist/models/UpdateProductRequest.js +65 -0
- package/dist/models/Variant.d.ts +1 -1
- package/dist/models/Variant.js +33 -36
- package/dist/models/VariantProduct.d.ts +1 -1
- package/dist/models/VariantProduct.js +9 -14
- package/dist/models/VariantsResponse.d.ts +1 -1
- package/dist/models/VariantsResponse.js +9 -14
- package/dist/models/index.d.ts +7 -5
- package/dist/models/index.js +7 -5
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/ProductsApi.ts +78 -1
- package/src/apis/VariantsApi.ts +1 -1
- package/src/models/ApiError.ts +10 -15
- package/src/models/Attribute.ts +14 -19
- package/src/models/AttributeThumbnail.ts +10 -15
- package/src/models/CreateProductRequest.ts +48 -45
- package/src/models/CreateProductRequestImagesInner.ts +60 -0
- package/src/models/CreateProductRequestSeoMetadata.ts +8 -13
- package/src/models/CreateProductRequestVariantsInner.ts +1 -1
- package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +1 -1
- package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +1 -1
- package/src/models/CreateProductRequestVariantsInnerImagesInner.ts +1 -1
- package/src/models/CreateProductRequestVariantsInnerRetailPrice.ts +1 -1
- package/src/models/CreateProductVariant.ts +119 -0
- package/src/models/CreateProductVariantApplicationsInner.ts +103 -0
- package/src/models/CreateProductVariantAttributesInner.ts +70 -0
- package/src/models/CreateProductVariantRetailPrice.ts +70 -0
- package/src/models/Image.ts +20 -25
- package/src/models/ImportProducts200Response.ts +8 -13
- package/src/models/ModelFile.ts +60 -0
- package/src/models/Price.ts +10 -15
- package/src/models/Product.ts +31 -36
- package/src/models/ProductAdditionalFilesInner.ts +10 -15
- package/src/models/ProductsResponse.ts +10 -15
- package/src/models/SeoMetadata.ts +8 -13
- package/src/models/Stock.ts +8 -13
- package/src/models/UpdateProductRequest.ts +145 -0
- package/src/models/Variant.ts +32 -37
- package/src/models/VariantProduct.ts +10 -15
- package/src/models/VariantsResponse.ts +10 -15
- package/src/models/index.ts +7 -5
- package/src/runtime.ts +1 -1
package/dist/models/Image.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.9.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 Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.9.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,13 +14,11 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ImageToJSON = exports.ImageFromJSONTyped = exports.ImageFromJSON = exports.instanceOfImage = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the Image interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfImage(value) {
|
|
22
|
-
|
|
23
|
-
return isInstance;
|
|
21
|
+
return true;
|
|
24
22
|
}
|
|
25
23
|
exports.instanceOfImage = instanceOfImage;
|
|
26
24
|
function ImageFromJSON(json) {
|
|
@@ -28,35 +26,32 @@ function ImageFromJSON(json) {
|
|
|
28
26
|
}
|
|
29
27
|
exports.ImageFromJSON = ImageFromJSON;
|
|
30
28
|
function ImageFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (
|
|
29
|
+
if (json == null) {
|
|
32
30
|
return json;
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
35
|
-
'id':
|
|
36
|
-
'src':
|
|
37
|
-
'alt':
|
|
38
|
-
'variantIds':
|
|
39
|
-
'sortOrder':
|
|
40
|
-
'createdAt':
|
|
41
|
-
'updatedAt':
|
|
33
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
34
|
+
'src': json['src'] == null ? undefined : json['src'],
|
|
35
|
+
'alt': json['alt'] == null ? undefined : json['alt'],
|
|
36
|
+
'variantIds': json['variantIds'] == null ? undefined : json['variantIds'],
|
|
37
|
+
'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
|
|
38
|
+
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
39
|
+
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
42
40
|
};
|
|
43
41
|
}
|
|
44
42
|
exports.ImageFromJSONTyped = ImageFromJSONTyped;
|
|
45
43
|
function ImageToJSON(value) {
|
|
46
|
-
if (value
|
|
47
|
-
return
|
|
48
|
-
}
|
|
49
|
-
if (value === null) {
|
|
50
|
-
return null;
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
51
46
|
}
|
|
52
47
|
return {
|
|
53
|
-
'id': value
|
|
54
|
-
'src': value
|
|
55
|
-
'alt': value
|
|
56
|
-
'variantIds': value
|
|
57
|
-
'sortOrder': value
|
|
58
|
-
'createdAt': value
|
|
59
|
-
'updatedAt': value
|
|
48
|
+
'id': value['id'],
|
|
49
|
+
'src': value['src'],
|
|
50
|
+
'alt': value['alt'],
|
|
51
|
+
'variantIds': value['variantIds'],
|
|
52
|
+
'sortOrder': value['sortOrder'],
|
|
53
|
+
'createdAt': value['createdAt'],
|
|
54
|
+
'updatedAt': value['updatedAt'],
|
|
60
55
|
};
|
|
61
56
|
}
|
|
62
57
|
exports.ImageToJSON = ImageToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.9.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 Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.9.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,13 +14,11 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ImportProducts200ResponseToJSON = exports.ImportProducts200ResponseFromJSONTyped = exports.ImportProducts200ResponseFromJSON = exports.instanceOfImportProducts200Response = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the ImportProducts200Response interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfImportProducts200Response(value) {
|
|
22
|
-
|
|
23
|
-
return isInstance;
|
|
21
|
+
return true;
|
|
24
22
|
}
|
|
25
23
|
exports.instanceOfImportProducts200Response = instanceOfImportProducts200Response;
|
|
26
24
|
function ImportProducts200ResponseFromJSON(json) {
|
|
@@ -28,23 +26,20 @@ function ImportProducts200ResponseFromJSON(json) {
|
|
|
28
26
|
}
|
|
29
27
|
exports.ImportProducts200ResponseFromJSON = ImportProducts200ResponseFromJSON;
|
|
30
28
|
function ImportProducts200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (
|
|
29
|
+
if (json == null) {
|
|
32
30
|
return json;
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
35
|
-
'importId':
|
|
33
|
+
'importId': json['importId'] == null ? undefined : json['importId'],
|
|
36
34
|
};
|
|
37
35
|
}
|
|
38
36
|
exports.ImportProducts200ResponseFromJSONTyped = ImportProducts200ResponseFromJSONTyped;
|
|
39
37
|
function ImportProducts200ResponseToJSON(value) {
|
|
40
|
-
if (value
|
|
41
|
-
return
|
|
42
|
-
}
|
|
43
|
-
if (value === null) {
|
|
44
|
-
return null;
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
45
40
|
}
|
|
46
41
|
return {
|
|
47
|
-
'importId': value
|
|
42
|
+
'importId': value['importId'],
|
|
48
43
|
};
|
|
49
44
|
}
|
|
50
45
|
exports.ImportProducts200ResponseToJSON = ImportProducts200ResponseToJSON;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Product Catalog API
|
|
3
|
+
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.9.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 ModelFile
|
|
16
|
+
*/
|
|
17
|
+
export interface ModelFile {
|
|
18
|
+
/**
|
|
19
|
+
* Publicly available file URL.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ModelFile
|
|
22
|
+
*/
|
|
23
|
+
src?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ModelFile interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfModelFile(value: object): boolean;
|
|
29
|
+
export declare function ModelFileFromJSON(json: any): ModelFile;
|
|
30
|
+
export declare function ModelFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelFile;
|
|
31
|
+
export declare function ModelFileToJSON(value?: ModelFile | null): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Product Catalog API
|
|
6
|
+
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.9.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.ModelFileToJSON = exports.ModelFileFromJSONTyped = exports.ModelFileFromJSON = exports.instanceOfModelFile = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ModelFile interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfModelFile(value) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
exports.instanceOfModelFile = instanceOfModelFile;
|
|
24
|
+
function ModelFileFromJSON(json) {
|
|
25
|
+
return ModelFileFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
exports.ModelFileFromJSON = ModelFileFromJSON;
|
|
28
|
+
function ModelFileFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'src': json['src'] == null ? undefined : json['src'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.ModelFileFromJSONTyped = ModelFileFromJSONTyped;
|
|
37
|
+
function ModelFileToJSON(value) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'src': value['src'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.ModelFileToJSON = ModelFileToJSON;
|
package/dist/models/Price.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.9.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 Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.9.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,13 +14,11 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.PriceToJSON = exports.PriceFromJSONTyped = exports.PriceFromJSON = exports.instanceOfPrice = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the Price interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfPrice(value) {
|
|
22
|
-
|
|
23
|
-
return isInstance;
|
|
21
|
+
return true;
|
|
24
22
|
}
|
|
25
23
|
exports.instanceOfPrice = instanceOfPrice;
|
|
26
24
|
function PriceFromJSON(json) {
|
|
@@ -28,25 +26,22 @@ function PriceFromJSON(json) {
|
|
|
28
26
|
}
|
|
29
27
|
exports.PriceFromJSON = PriceFromJSON;
|
|
30
28
|
function PriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (
|
|
29
|
+
if (json == null) {
|
|
32
30
|
return json;
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
35
|
-
'amount':
|
|
36
|
-
'currencyCode':
|
|
33
|
+
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
34
|
+
'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
|
|
37
35
|
};
|
|
38
36
|
}
|
|
39
37
|
exports.PriceFromJSONTyped = PriceFromJSONTyped;
|
|
40
38
|
function PriceToJSON(value) {
|
|
41
|
-
if (value
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
46
41
|
}
|
|
47
42
|
return {
|
|
48
|
-
'amount': value
|
|
49
|
-
'currencyCode': value
|
|
43
|
+
'amount': value['amount'],
|
|
44
|
+
'currencyCode': value['currencyCode'],
|
|
50
45
|
};
|
|
51
46
|
}
|
|
52
47
|
exports.PriceToJSON = PriceToJSON;
|
package/dist/models/Product.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.9.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 Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.9.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ProductToJSON = exports.ProductFromJSONTyped = exports.ProductFromJSON = exports.instanceOfProduct = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
var Image_1 = require("./Image");
|
|
19
18
|
var ProductAdditionalFilesInner_1 = require("./ProductAdditionalFilesInner");
|
|
20
19
|
var SeoMetadata_1 = require("./SeoMetadata");
|
|
@@ -23,10 +22,11 @@ var Variant_1 = require("./Variant");
|
|
|
23
22
|
* Check if a given object implements the Product interface.
|
|
24
23
|
*/
|
|
25
24
|
function instanceOfProduct(value) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
if (!('title' in value))
|
|
26
|
+
return false;
|
|
27
|
+
if (!('description' in value))
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
30
|
}
|
|
31
31
|
exports.instanceOfProduct = instanceOfProduct;
|
|
32
32
|
function ProductFromJSON(json) {
|
|
@@ -34,46 +34,43 @@ function ProductFromJSON(json) {
|
|
|
34
34
|
}
|
|
35
35
|
exports.ProductFromJSON = ProductFromJSON;
|
|
36
36
|
function ProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (
|
|
37
|
+
if (json == null) {
|
|
38
38
|
return json;
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
|
-
'id':
|
|
42
|
-
'ref':
|
|
41
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
42
|
+
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
43
43
|
'title': json['title'],
|
|
44
44
|
'description': json['description'],
|
|
45
|
-
'slug':
|
|
46
|
-
'seoMetadata':
|
|
47
|
-
'tags':
|
|
48
|
-
'createdAt':
|
|
49
|
-
'updatedAt':
|
|
50
|
-
'publishedAt':
|
|
51
|
-
'images':
|
|
52
|
-
'variants':
|
|
53
|
-
'additionalFiles':
|
|
45
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
46
|
+
'seoMetadata': json['seoMetadata'] == null ? undefined : (0, SeoMetadata_1.SeoMetadataFromJSON)(json['seoMetadata']),
|
|
47
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
48
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
49
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
50
|
+
'publishedAt': json['publishedAt'] == null ? undefined : (new Date(json['publishedAt'])),
|
|
51
|
+
'images': json['images'] == null ? undefined : (json['images'].map(Image_1.ImageFromJSON)),
|
|
52
|
+
'variants': json['variants'] == null ? undefined : (json['variants'].map(Variant_1.VariantFromJSON)),
|
|
53
|
+
'additionalFiles': json['additionalFiles'] == null ? undefined : (json['additionalFiles'].map(ProductAdditionalFilesInner_1.ProductAdditionalFilesInnerFromJSON)),
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
exports.ProductFromJSONTyped = ProductFromJSONTyped;
|
|
57
57
|
function ProductToJSON(value) {
|
|
58
|
-
if (value
|
|
59
|
-
return
|
|
60
|
-
}
|
|
61
|
-
if (value === null) {
|
|
62
|
-
return null;
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
63
60
|
}
|
|
64
61
|
return {
|
|
65
|
-
'id': value
|
|
66
|
-
'ref': value
|
|
67
|
-
'title': value
|
|
68
|
-
'description': value
|
|
69
|
-
'seoMetadata': (0, SeoMetadata_1.SeoMetadataToJSON)(value
|
|
70
|
-
'tags': value
|
|
71
|
-
'createdAt': value
|
|
72
|
-
'updatedAt': value
|
|
73
|
-
'publishedAt': value
|
|
74
|
-
'images': value
|
|
75
|
-
'variants': value
|
|
76
|
-
'additionalFiles': value
|
|
62
|
+
'id': value['id'],
|
|
63
|
+
'ref': value['ref'],
|
|
64
|
+
'title': value['title'],
|
|
65
|
+
'description': value['description'],
|
|
66
|
+
'seoMetadata': (0, SeoMetadata_1.SeoMetadataToJSON)(value['seoMetadata']),
|
|
67
|
+
'tags': value['tags'],
|
|
68
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
69
|
+
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
70
|
+
'publishedAt': value['publishedAt'] == null ? undefined : ((value['publishedAt']).toISOString()),
|
|
71
|
+
'images': value['images'] == null ? undefined : (value['images'].map(Image_1.ImageToJSON)),
|
|
72
|
+
'variants': value['variants'] == null ? undefined : (value['variants'].map(Variant_1.VariantToJSON)),
|
|
73
|
+
'additionalFiles': value['additionalFiles'] == null ? undefined : (value['additionalFiles'].map(ProductAdditionalFilesInner_1.ProductAdditionalFilesInnerToJSON)),
|
|
77
74
|
};
|
|
78
75
|
}
|
|
79
76
|
exports.ProductToJSON = ProductToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.9.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 Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.9.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,13 +14,11 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ProductAdditionalFilesInnerToJSON = exports.ProductAdditionalFilesInnerFromJSONTyped = exports.ProductAdditionalFilesInnerFromJSON = exports.instanceOfProductAdditionalFilesInner = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the ProductAdditionalFilesInner interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfProductAdditionalFilesInner(value) {
|
|
22
|
-
|
|
23
|
-
return isInstance;
|
|
21
|
+
return true;
|
|
24
22
|
}
|
|
25
23
|
exports.instanceOfProductAdditionalFilesInner = instanceOfProductAdditionalFilesInner;
|
|
26
24
|
function ProductAdditionalFilesInnerFromJSON(json) {
|
|
@@ -28,25 +26,22 @@ function ProductAdditionalFilesInnerFromJSON(json) {
|
|
|
28
26
|
}
|
|
29
27
|
exports.ProductAdditionalFilesInnerFromJSON = ProductAdditionalFilesInnerFromJSON;
|
|
30
28
|
function ProductAdditionalFilesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (
|
|
29
|
+
if (json == null) {
|
|
32
30
|
return json;
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
35
|
-
'id':
|
|
36
|
-
'src':
|
|
33
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
34
|
+
'src': json['src'] == null ? undefined : json['src'],
|
|
37
35
|
};
|
|
38
36
|
}
|
|
39
37
|
exports.ProductAdditionalFilesInnerFromJSONTyped = ProductAdditionalFilesInnerFromJSONTyped;
|
|
40
38
|
function ProductAdditionalFilesInnerToJSON(value) {
|
|
41
|
-
if (value
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
46
41
|
}
|
|
47
42
|
return {
|
|
48
|
-
'id': value
|
|
49
|
-
'src': value
|
|
43
|
+
'id': value['id'],
|
|
44
|
+
'src': value['src'],
|
|
50
45
|
};
|
|
51
46
|
}
|
|
52
47
|
exports.ProductAdditionalFilesInnerToJSON = ProductAdditionalFilesInnerToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.9.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 Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.9.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,14 +14,12 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ProductsResponseToJSON = exports.ProductsResponseFromJSONTyped = exports.ProductsResponseFromJSON = exports.instanceOfProductsResponse = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
var Product_1 = require("./Product");
|
|
19
18
|
/**
|
|
20
19
|
* Check if a given object implements the ProductsResponse interface.
|
|
21
20
|
*/
|
|
22
21
|
function instanceOfProductsResponse(value) {
|
|
23
|
-
|
|
24
|
-
return isInstance;
|
|
22
|
+
return true;
|
|
25
23
|
}
|
|
26
24
|
exports.instanceOfProductsResponse = instanceOfProductsResponse;
|
|
27
25
|
function ProductsResponseFromJSON(json) {
|
|
@@ -29,25 +27,22 @@ function ProductsResponseFromJSON(json) {
|
|
|
29
27
|
}
|
|
30
28
|
exports.ProductsResponseFromJSON = ProductsResponseFromJSON;
|
|
31
29
|
function ProductsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
30
|
+
if (json == null) {
|
|
33
31
|
return json;
|
|
34
32
|
}
|
|
35
33
|
return {
|
|
36
|
-
'products':
|
|
37
|
-
'nextPageToken':
|
|
34
|
+
'products': json['products'] == null ? undefined : (json['products'].map(Product_1.ProductFromJSON)),
|
|
35
|
+
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
38
36
|
};
|
|
39
37
|
}
|
|
40
38
|
exports.ProductsResponseFromJSONTyped = ProductsResponseFromJSONTyped;
|
|
41
39
|
function ProductsResponseToJSON(value) {
|
|
42
|
-
if (value
|
|
43
|
-
return
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
47
42
|
}
|
|
48
43
|
return {
|
|
49
|
-
'products': value
|
|
50
|
-
'nextPageToken': value
|
|
44
|
+
'products': value['products'] == null ? undefined : (value['products'].map(Product_1.ProductToJSON)),
|
|
45
|
+
'nextPageToken': value['nextPageToken'],
|
|
51
46
|
};
|
|
52
47
|
}
|
|
53
48
|
exports.ProductsResponseToJSON = ProductsResponseToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.9.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 Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.9.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,13 +14,11 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.SeoMetadataToJSON = exports.SeoMetadataFromJSONTyped = exports.SeoMetadataFromJSON = exports.instanceOfSeoMetadata = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the SeoMetadata interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfSeoMetadata(value) {
|
|
22
|
-
|
|
23
|
-
return isInstance;
|
|
21
|
+
return true;
|
|
24
22
|
}
|
|
25
23
|
exports.instanceOfSeoMetadata = instanceOfSeoMetadata;
|
|
26
24
|
function SeoMetadataFromJSON(json) {
|
|
@@ -28,23 +26,20 @@ function SeoMetadataFromJSON(json) {
|
|
|
28
26
|
}
|
|
29
27
|
exports.SeoMetadataFromJSON = SeoMetadataFromJSON;
|
|
30
28
|
function SeoMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (
|
|
29
|
+
if (json == null) {
|
|
32
30
|
return json;
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
35
|
-
'title':
|
|
33
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
36
34
|
};
|
|
37
35
|
}
|
|
38
36
|
exports.SeoMetadataFromJSONTyped = SeoMetadataFromJSONTyped;
|
|
39
37
|
function SeoMetadataToJSON(value) {
|
|
40
|
-
if (value
|
|
41
|
-
return
|
|
42
|
-
}
|
|
43
|
-
if (value === null) {
|
|
44
|
-
return null;
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
45
40
|
}
|
|
46
41
|
return {
|
|
47
|
-
'title': value
|
|
42
|
+
'title': value['title'],
|
|
48
43
|
};
|
|
49
44
|
}
|
|
50
45
|
exports.SeoMetadataToJSON = SeoMetadataToJSON;
|
package/dist/models/Stock.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.9.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|