@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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product Catalog API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.9.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -37,9 +37,7 @@ export interface VariantProduct {
|
|
|
37
37
|
* Check if a given object implements the VariantProduct interface.
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfVariantProduct(value: object): boolean {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return isInstance;
|
|
40
|
+
return true;
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
export function VariantProductFromJSON(json: any): VariantProduct {
|
|
@@ -47,27 +45,24 @@ export function VariantProductFromJSON(json: any): VariantProduct {
|
|
|
47
45
|
}
|
|
48
46
|
|
|
49
47
|
export function VariantProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantProduct {
|
|
50
|
-
if (
|
|
48
|
+
if (json == null) {
|
|
51
49
|
return json;
|
|
52
50
|
}
|
|
53
51
|
return {
|
|
54
52
|
|
|
55
|
-
'id':
|
|
56
|
-
'ref':
|
|
53
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
54
|
+
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
57
55
|
};
|
|
58
56
|
}
|
|
59
57
|
|
|
60
58
|
export function VariantProductToJSON(value?: VariantProduct | null): any {
|
|
61
|
-
if (value
|
|
62
|
-
return
|
|
63
|
-
}
|
|
64
|
-
if (value === null) {
|
|
65
|
-
return null;
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
66
61
|
}
|
|
67
62
|
return {
|
|
68
63
|
|
|
69
|
-
'id': value
|
|
70
|
-
'ref': value
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'ref': value['ref'],
|
|
71
66
|
};
|
|
72
67
|
}
|
|
73
68
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product Catalog API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.9.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
import type { Variant } from './Variant';
|
|
17
17
|
import {
|
|
18
18
|
VariantFromJSON,
|
|
@@ -44,9 +44,7 @@ export interface VariantsResponse {
|
|
|
44
44
|
* Check if a given object implements the VariantsResponse interface.
|
|
45
45
|
*/
|
|
46
46
|
export function instanceOfVariantsResponse(value: object): boolean {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return isInstance;
|
|
47
|
+
return true;
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
export function VariantsResponseFromJSON(json: any): VariantsResponse {
|
|
@@ -54,27 +52,24 @@ export function VariantsResponseFromJSON(json: any): VariantsResponse {
|
|
|
54
52
|
}
|
|
55
53
|
|
|
56
54
|
export function VariantsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantsResponse {
|
|
57
|
-
if (
|
|
55
|
+
if (json == null) {
|
|
58
56
|
return json;
|
|
59
57
|
}
|
|
60
58
|
return {
|
|
61
59
|
|
|
62
|
-
'variants':
|
|
63
|
-
'nextPageToken':
|
|
60
|
+
'variants': json['variants'] == null ? undefined : ((json['variants'] as Array<any>).map(VariantFromJSON)),
|
|
61
|
+
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
64
62
|
};
|
|
65
63
|
}
|
|
66
64
|
|
|
67
65
|
export function VariantsResponseToJSON(value?: VariantsResponse | null): any {
|
|
68
|
-
if (value
|
|
69
|
-
return
|
|
70
|
-
}
|
|
71
|
-
if (value === null) {
|
|
72
|
-
return null;
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
73
68
|
}
|
|
74
69
|
return {
|
|
75
70
|
|
|
76
|
-
'variants': value
|
|
77
|
-
'nextPageToken': value
|
|
71
|
+
'variants': value['variants'] == null ? undefined : ((value['variants'] as Array<any>).map(VariantToJSON)),
|
|
72
|
+
'nextPageToken': value['nextPageToken'],
|
|
78
73
|
};
|
|
79
74
|
}
|
|
80
75
|
|
package/src/models/index.ts
CHANGED
|
@@ -4,20 +4,22 @@ export * from './ApiError';
|
|
|
4
4
|
export * from './Attribute';
|
|
5
5
|
export * from './AttributeThumbnail';
|
|
6
6
|
export * from './CreateProductRequest';
|
|
7
|
+
export * from './CreateProductRequestImagesInner';
|
|
7
8
|
export * from './CreateProductRequestSeoMetadata';
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './CreateProductRequestVariantsInnerRetailPrice';
|
|
9
|
+
export * from './CreateProductVariant';
|
|
10
|
+
export * from './CreateProductVariantApplicationsInner';
|
|
11
|
+
export * from './CreateProductVariantAttributesInner';
|
|
12
|
+
export * from './CreateProductVariantRetailPrice';
|
|
13
13
|
export * from './Image';
|
|
14
14
|
export * from './ImportProducts200Response';
|
|
15
|
+
export * from './ModelFile';
|
|
15
16
|
export * from './Price';
|
|
16
17
|
export * from './Product';
|
|
17
18
|
export * from './ProductAdditionalFilesInner';
|
|
18
19
|
export * from './ProductsResponse';
|
|
19
20
|
export * from './SeoMetadata';
|
|
20
21
|
export * from './Stock';
|
|
22
|
+
export * from './UpdateProductRequest';
|
|
21
23
|
export * from './Variant';
|
|
22
24
|
export * from './VariantProduct';
|
|
23
25
|
export * from './VariantsResponse';
|
package/src/runtime.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product Catalog API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.9.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|