@teemill/product-catalog 1.0.2

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.
Files changed (54) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +45 -0
  5. package/dist/apis/ProductsApi.d.ts +49 -0
  6. package/dist/apis/ProductsApi.js +199 -0
  7. package/dist/apis/VariantsApi.d.ts +49 -0
  8. package/dist/apis/VariantsApi.js +199 -0
  9. package/dist/apis/index.d.ts +2 -0
  10. package/dist/apis/index.js +20 -0
  11. package/dist/index.d.ts +3 -0
  12. package/dist/index.js +21 -0
  13. package/dist/models/ApiError.d.ts +37 -0
  14. package/dist/models/ApiError.js +53 -0
  15. package/dist/models/Attribute.d.ts +37 -0
  16. package/dist/models/Attribute.js +52 -0
  17. package/dist/models/Image.d.ts +67 -0
  18. package/dist/models/Image.js +62 -0
  19. package/dist/models/Price.d.ts +37 -0
  20. package/dist/models/Price.js +52 -0
  21. package/dist/models/Product.d.ts +93 -0
  22. package/dist/models/Product.js +73 -0
  23. package/dist/models/ProductsResponse.d.ts +38 -0
  24. package/dist/models/ProductsResponse.js +53 -0
  25. package/dist/models/Stock.d.ts +31 -0
  26. package/dist/models/Stock.js +50 -0
  27. package/dist/models/Variant.d.ts +114 -0
  28. package/dist/models/Variant.js +81 -0
  29. package/dist/models/VariantProduct.d.ts +37 -0
  30. package/dist/models/VariantProduct.js +52 -0
  31. package/dist/models/VariantsResponse.d.ts +38 -0
  32. package/dist/models/VariantsResponse.js +53 -0
  33. package/dist/models/index.d.ts +10 -0
  34. package/dist/models/index.js +28 -0
  35. package/dist/runtime.d.ts +182 -0
  36. package/dist/runtime.js +562 -0
  37. package/package.json +19 -0
  38. package/src/apis/ProductsApi.ts +149 -0
  39. package/src/apis/VariantsApi.ts +149 -0
  40. package/src/apis/index.ts +4 -0
  41. package/src/index.ts +5 -0
  42. package/src/models/ApiError.ts +74 -0
  43. package/src/models/Attribute.ts +73 -0
  44. package/src/models/Image.ts +113 -0
  45. package/src/models/Price.ts +73 -0
  46. package/src/models/Product.ts +159 -0
  47. package/src/models/ProductsResponse.ts +80 -0
  48. package/src/models/Stock.ts +65 -0
  49. package/src/models/Variant.ts +200 -0
  50. package/src/models/VariantProduct.ts +73 -0
  51. package/src/models/VariantsResponse.ts +80 -0
  52. package/src/models/index.ts +12 -0
  53. package/src/runtime.ts +431 -0
  54. package/tsconfig.json +20 -0
@@ -0,0 +1,159 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Product Catalog API
5
+ * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.2
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { Image } from './Image';
17
+ import {
18
+ ImageFromJSON,
19
+ ImageFromJSONTyped,
20
+ ImageToJSON,
21
+ } from './Image';
22
+ import type { Variant } from './Variant';
23
+ import {
24
+ VariantFromJSON,
25
+ VariantFromJSONTyped,
26
+ VariantToJSON,
27
+ } from './Variant';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface Product
33
+ */
34
+ export interface Product {
35
+ /**
36
+ * Unique object identifier
37
+ * @type {string}
38
+ * @memberof Product
39
+ */
40
+ id?: string;
41
+ /**
42
+ * A reference to the resource location
43
+ * @type {string}
44
+ * @memberof Product
45
+ */
46
+ ref?: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof Product
51
+ */
52
+ title: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof Product
57
+ */
58
+ description: string;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof Product
63
+ */
64
+ readonly slug?: string;
65
+ /**
66
+ *
67
+ * @type {Array<string>}
68
+ * @memberof Product
69
+ */
70
+ tags?: Array<string>;
71
+ /**
72
+ *
73
+ * @type {Date}
74
+ * @memberof Product
75
+ */
76
+ createdAt?: Date;
77
+ /**
78
+ *
79
+ * @type {Date}
80
+ * @memberof Product
81
+ */
82
+ updatedAt?: Date;
83
+ /**
84
+ *
85
+ * @type {Date}
86
+ * @memberof Product
87
+ */
88
+ publishedAt?: Date;
89
+ /**
90
+ * Images
91
+ * @type {Array<Image>}
92
+ * @memberof Product
93
+ */
94
+ images?: Array<Image>;
95
+ /**
96
+ * Variants
97
+ * @type {Array<Variant>}
98
+ * @memberof Product
99
+ */
100
+ variants?: Array<Variant>;
101
+ }
102
+
103
+ /**
104
+ * Check if a given object implements the Product interface.
105
+ */
106
+ export function instanceOfProduct(value: object): boolean {
107
+ let isInstance = true;
108
+ isInstance = isInstance && "title" in value;
109
+ isInstance = isInstance && "description" in value;
110
+
111
+ return isInstance;
112
+ }
113
+
114
+ export function ProductFromJSON(json: any): Product {
115
+ return ProductFromJSONTyped(json, false);
116
+ }
117
+
118
+ export function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product {
119
+ if ((json === undefined) || (json === null)) {
120
+ return json;
121
+ }
122
+ return {
123
+
124
+ 'id': !exists(json, 'id') ? undefined : json['id'],
125
+ 'ref': !exists(json, 'ref') ? undefined : json['ref'],
126
+ 'title': json['title'],
127
+ 'description': json['description'],
128
+ 'slug': !exists(json, 'slug') ? undefined : json['slug'],
129
+ 'tags': !exists(json, 'tags') ? undefined : json['tags'],
130
+ 'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
131
+ 'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
132
+ 'publishedAt': !exists(json, 'publishedAt') ? undefined : (new Date(json['publishedAt'])),
133
+ 'images': !exists(json, 'images') ? undefined : ((json['images'] as Array<any>).map(ImageFromJSON)),
134
+ 'variants': !exists(json, 'variants') ? undefined : ((json['variants'] as Array<any>).map(VariantFromJSON)),
135
+ };
136
+ }
137
+
138
+ export function ProductToJSON(value?: Product | null): any {
139
+ if (value === undefined) {
140
+ return undefined;
141
+ }
142
+ if (value === null) {
143
+ return null;
144
+ }
145
+ return {
146
+
147
+ 'id': value.id,
148
+ 'ref': value.ref,
149
+ 'title': value.title,
150
+ 'description': value.description,
151
+ 'tags': value.tags,
152
+ 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
153
+ 'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
154
+ 'publishedAt': value.publishedAt === undefined ? undefined : (value.publishedAt.toISOString()),
155
+ 'images': value.images === undefined ? undefined : ((value.images as Array<any>).map(ImageToJSON)),
156
+ 'variants': value.variants === undefined ? undefined : ((value.variants as Array<any>).map(VariantToJSON)),
157
+ };
158
+ }
159
+
@@ -0,0 +1,80 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Product Catalog API
5
+ * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.2
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { Product } from './Product';
17
+ import {
18
+ ProductFromJSON,
19
+ ProductFromJSONTyped,
20
+ ProductToJSON,
21
+ } from './Product';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ProductsResponse
27
+ */
28
+ export interface ProductsResponse {
29
+ /**
30
+ *
31
+ * @type {Array<Product>}
32
+ * @memberof ProductsResponse
33
+ */
34
+ products?: Array<Product>;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof ProductsResponse
39
+ */
40
+ nextPageToken?: number;
41
+ }
42
+
43
+ /**
44
+ * Check if a given object implements the ProductsResponse interface.
45
+ */
46
+ export function instanceOfProductsResponse(value: object): boolean {
47
+ let isInstance = true;
48
+
49
+ return isInstance;
50
+ }
51
+
52
+ export function ProductsResponseFromJSON(json: any): ProductsResponse {
53
+ return ProductsResponseFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function ProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductsResponse {
57
+ if ((json === undefined) || (json === null)) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'products': !exists(json, 'products') ? undefined : ((json['products'] as Array<any>).map(ProductFromJSON)),
63
+ 'nextPageToken': !exists(json, 'nextPageToken') ? undefined : json['nextPageToken'],
64
+ };
65
+ }
66
+
67
+ export function ProductsResponseToJSON(value?: ProductsResponse | null): any {
68
+ if (value === undefined) {
69
+ return undefined;
70
+ }
71
+ if (value === null) {
72
+ return null;
73
+ }
74
+ return {
75
+
76
+ 'products': value.products === undefined ? undefined : ((value.products as Array<any>).map(ProductToJSON)),
77
+ 'nextPageToken': value.nextPageToken,
78
+ };
79
+ }
80
+
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Product Catalog API
5
+ * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.2
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface Stock
20
+ */
21
+ export interface Stock {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof Stock
26
+ */
27
+ level?: number;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the Stock interface.
32
+ */
33
+ export function instanceOfStock(value: object): boolean {
34
+ let isInstance = true;
35
+
36
+ return isInstance;
37
+ }
38
+
39
+ export function StockFromJSON(json: any): Stock {
40
+ return StockFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function StockFromJSONTyped(json: any, ignoreDiscriminator: boolean): Stock {
44
+ if ((json === undefined) || (json === null)) {
45
+ return json;
46
+ }
47
+ return {
48
+
49
+ 'level': !exists(json, 'level') ? undefined : json['level'],
50
+ };
51
+ }
52
+
53
+ export function StockToJSON(value?: Stock | null): any {
54
+ if (value === undefined) {
55
+ return undefined;
56
+ }
57
+ if (value === null) {
58
+ return null;
59
+ }
60
+ return {
61
+
62
+ 'level': value.level,
63
+ };
64
+ }
65
+
@@ -0,0 +1,200 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Product Catalog API
5
+ * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.2
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { Attribute } from './Attribute';
17
+ import {
18
+ AttributeFromJSON,
19
+ AttributeFromJSONTyped,
20
+ AttributeToJSON,
21
+ } from './Attribute';
22
+ import type { Image } from './Image';
23
+ import {
24
+ ImageFromJSON,
25
+ ImageFromJSONTyped,
26
+ ImageToJSON,
27
+ } from './Image';
28
+ import type { Price } from './Price';
29
+ import {
30
+ PriceFromJSON,
31
+ PriceFromJSONTyped,
32
+ PriceToJSON,
33
+ } from './Price';
34
+ import type { Stock } from './Stock';
35
+ import {
36
+ StockFromJSON,
37
+ StockFromJSONTyped,
38
+ StockToJSON,
39
+ } from './Stock';
40
+ import type { VariantProduct } from './VariantProduct';
41
+ import {
42
+ VariantProductFromJSON,
43
+ VariantProductFromJSONTyped,
44
+ VariantProductToJSON,
45
+ } from './VariantProduct';
46
+
47
+ /**
48
+ *
49
+ * @export
50
+ * @interface Variant
51
+ */
52
+ export interface Variant {
53
+ /**
54
+ * Unique object identifier
55
+ * @type {string}
56
+ * @memberof Variant
57
+ */
58
+ id?: string;
59
+ /**
60
+ * Attributes associated to a variant such as Colour and Size
61
+ * @type {Array<Attribute>}
62
+ * @memberof Variant
63
+ */
64
+ attributes: Array<Attribute>;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof Variant
69
+ */
70
+ sku: string;
71
+ /**
72
+ * A reference to the resource location
73
+ * @type {string}
74
+ * @memberof Variant
75
+ */
76
+ ref?: string;
77
+ /**
78
+ *
79
+ * @type {VariantProduct}
80
+ * @memberof Variant
81
+ */
82
+ product?: VariantProduct;
83
+ /**
84
+ *
85
+ * @type {number}
86
+ * @memberof Variant
87
+ */
88
+ readonly sortOrder?: number;
89
+ /**
90
+ *
91
+ * @type {Price}
92
+ * @memberof Variant
93
+ */
94
+ retailPrice?: Price;
95
+ /**
96
+ *
97
+ * @type {Price}
98
+ * @memberof Variant
99
+ */
100
+ salePrice?: Price;
101
+ /**
102
+ *
103
+ * @type {Price}
104
+ * @memberof Variant
105
+ */
106
+ readonly price?: Price;
107
+ /**
108
+ *
109
+ * @type {Stock}
110
+ * @memberof Variant
111
+ */
112
+ stock?: Stock;
113
+ /**
114
+ *
115
+ * @type {Date}
116
+ * @memberof Variant
117
+ */
118
+ createdAt?: Date;
119
+ /**
120
+ *
121
+ * @type {Date}
122
+ * @memberof Variant
123
+ */
124
+ updatedAt?: Date;
125
+ /**
126
+ *
127
+ * @type {Date}
128
+ * @memberof Variant
129
+ */
130
+ publishedAt?: Date;
131
+ /**
132
+ * Images
133
+ * @type {Array<Image>}
134
+ * @memberof Variant
135
+ */
136
+ images?: Array<Image>;
137
+ }
138
+
139
+ /**
140
+ * Check if a given object implements the Variant interface.
141
+ */
142
+ export function instanceOfVariant(value: object): boolean {
143
+ let isInstance = true;
144
+ isInstance = isInstance && "attributes" in value;
145
+ isInstance = isInstance && "sku" in value;
146
+
147
+ return isInstance;
148
+ }
149
+
150
+ export function VariantFromJSON(json: any): Variant {
151
+ return VariantFromJSONTyped(json, false);
152
+ }
153
+
154
+ export function VariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Variant {
155
+ if ((json === undefined) || (json === null)) {
156
+ return json;
157
+ }
158
+ return {
159
+
160
+ 'id': !exists(json, 'id') ? undefined : json['id'],
161
+ 'attributes': ((json['attributes'] as Array<any>).map(AttributeFromJSON)),
162
+ 'sku': json['sku'],
163
+ 'ref': !exists(json, 'ref') ? undefined : json['ref'],
164
+ 'product': !exists(json, 'product') ? undefined : VariantProductFromJSON(json['product']),
165
+ 'sortOrder': !exists(json, 'sortOrder') ? undefined : json['sortOrder'],
166
+ 'retailPrice': !exists(json, 'retailPrice') ? undefined : PriceFromJSON(json['retailPrice']),
167
+ 'salePrice': !exists(json, 'salePrice') ? undefined : PriceFromJSON(json['salePrice']),
168
+ 'price': !exists(json, 'price') ? undefined : PriceFromJSON(json['price']),
169
+ 'stock': !exists(json, 'stock') ? undefined : StockFromJSON(json['stock']),
170
+ 'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
171
+ 'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
172
+ 'publishedAt': !exists(json, 'publishedAt') ? undefined : (new Date(json['publishedAt'])),
173
+ 'images': !exists(json, 'images') ? undefined : ((json['images'] as Array<any>).map(ImageFromJSON)),
174
+ };
175
+ }
176
+
177
+ export function VariantToJSON(value?: Variant | null): any {
178
+ if (value === undefined) {
179
+ return undefined;
180
+ }
181
+ if (value === null) {
182
+ return null;
183
+ }
184
+ return {
185
+
186
+ 'id': value.id,
187
+ 'attributes': ((value.attributes as Array<any>).map(AttributeToJSON)),
188
+ 'sku': value.sku,
189
+ 'ref': value.ref,
190
+ 'product': VariantProductToJSON(value.product),
191
+ 'retailPrice': PriceToJSON(value.retailPrice),
192
+ 'salePrice': PriceToJSON(value.salePrice),
193
+ 'stock': StockToJSON(value.stock),
194
+ 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
195
+ 'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
196
+ 'publishedAt': value.publishedAt === undefined ? undefined : (value.publishedAt.toISOString()),
197
+ 'images': value.images === undefined ? undefined : ((value.images as Array<any>).map(ImageToJSON)),
198
+ };
199
+ }
200
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Product Catalog API
5
+ * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.2
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface VariantProduct
20
+ */
21
+ export interface VariantProduct {
22
+ /**
23
+ * Unique object identifier
24
+ * @type {string}
25
+ * @memberof VariantProduct
26
+ */
27
+ id?: string;
28
+ /**
29
+ * A reference to the resource location
30
+ * @type {string}
31
+ * @memberof VariantProduct
32
+ */
33
+ ref?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the VariantProduct interface.
38
+ */
39
+ export function instanceOfVariantProduct(value: object): boolean {
40
+ let isInstance = true;
41
+
42
+ return isInstance;
43
+ }
44
+
45
+ export function VariantProductFromJSON(json: any): VariantProduct {
46
+ return VariantProductFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function VariantProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantProduct {
50
+ if ((json === undefined) || (json === null)) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'id': !exists(json, 'id') ? undefined : json['id'],
56
+ 'ref': !exists(json, 'ref') ? undefined : json['ref'],
57
+ };
58
+ }
59
+
60
+ export function VariantProductToJSON(value?: VariantProduct | null): any {
61
+ if (value === undefined) {
62
+ return undefined;
63
+ }
64
+ if (value === null) {
65
+ return null;
66
+ }
67
+ return {
68
+
69
+ 'id': value.id,
70
+ 'ref': value.ref,
71
+ };
72
+ }
73
+
@@ -0,0 +1,80 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Product Catalog API
5
+ * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.2
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { Variant } from './Variant';
17
+ import {
18
+ VariantFromJSON,
19
+ VariantFromJSONTyped,
20
+ VariantToJSON,
21
+ } from './Variant';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface VariantsResponse
27
+ */
28
+ export interface VariantsResponse {
29
+ /**
30
+ *
31
+ * @type {Array<Variant>}
32
+ * @memberof VariantsResponse
33
+ */
34
+ variants?: Array<Variant>;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof VariantsResponse
39
+ */
40
+ nextPageToken?: number;
41
+ }
42
+
43
+ /**
44
+ * Check if a given object implements the VariantsResponse interface.
45
+ */
46
+ export function instanceOfVariantsResponse(value: object): boolean {
47
+ let isInstance = true;
48
+
49
+ return isInstance;
50
+ }
51
+
52
+ export function VariantsResponseFromJSON(json: any): VariantsResponse {
53
+ return VariantsResponseFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function VariantsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantsResponse {
57
+ if ((json === undefined) || (json === null)) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'variants': !exists(json, 'variants') ? undefined : ((json['variants'] as Array<any>).map(VariantFromJSON)),
63
+ 'nextPageToken': !exists(json, 'nextPageToken') ? undefined : json['nextPageToken'],
64
+ };
65
+ }
66
+
67
+ export function VariantsResponseToJSON(value?: VariantsResponse | null): any {
68
+ if (value === undefined) {
69
+ return undefined;
70
+ }
71
+ if (value === null) {
72
+ return null;
73
+ }
74
+ return {
75
+
76
+ 'variants': value.variants === undefined ? undefined : ((value.variants as Array<any>).map(VariantToJSON)),
77
+ 'nextPageToken': value.nextPageToken,
78
+ };
79
+ }
80
+
@@ -0,0 +1,12 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './ApiError';
4
+ export * from './Attribute';
5
+ export * from './Image';
6
+ export * from './Price';
7
+ export * from './Product';
8
+ export * from './ProductsResponse';
9
+ export * from './Stock';
10
+ export * from './Variant';
11
+ export * from './VariantProduct';
12
+ export * from './VariantsResponse';