@teemill/product-catalog 1.5.0 → 1.6.1

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 (69) hide show
  1. package/.openapi-generator/FILES +2 -1
  2. package/README.md +2 -2
  3. package/dist/apis/ProductsApi.d.ts +4 -4
  4. package/dist/apis/ProductsApi.js +6 -4
  5. package/dist/apis/VariantsApi.d.ts +1 -1
  6. package/dist/apis/VariantsApi.js +1 -1
  7. package/dist/models/ApiError.d.ts +1 -1
  8. package/dist/models/ApiError.js +1 -1
  9. package/dist/models/Attribute.d.ts +1 -1
  10. package/dist/models/Attribute.js +1 -1
  11. package/dist/models/AttributeThumbnail.d.ts +1 -1
  12. package/dist/models/AttributeThumbnail.js +1 -1
  13. package/dist/models/CreateProductRequest.d.ts +4 -4
  14. package/dist/models/CreateProductRequest.js +4 -4
  15. package/dist/models/CreateProductRequestVariantsInner.d.ts +8 -1
  16. package/dist/models/CreateProductRequestVariantsInner.js +4 -1
  17. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +1 -1
  18. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +1 -1
  19. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +1 -1
  20. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +1 -1
  21. package/dist/models/CreateProductRequestVariantsInnerImagesInner.d.ts +31 -0
  22. package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +50 -0
  23. package/dist/models/Image.d.ts +1 -1
  24. package/dist/models/Image.js +1 -1
  25. package/dist/models/ImportProducts200Response.d.ts +31 -0
  26. package/dist/models/ImportProducts200Response.js +50 -0
  27. package/dist/models/Price.d.ts +1 -1
  28. package/dist/models/Price.js +1 -1
  29. package/dist/models/Product.d.ts +1 -1
  30. package/dist/models/Product.js +1 -1
  31. package/dist/models/ProductAdditionalFilesInner.d.ts +1 -1
  32. package/dist/models/ProductAdditionalFilesInner.js +1 -1
  33. package/dist/models/ProductsResponse.d.ts +1 -1
  34. package/dist/models/ProductsResponse.js +1 -1
  35. package/dist/models/Stock.d.ts +1 -1
  36. package/dist/models/Stock.js +1 -1
  37. package/dist/models/Variant.d.ts +1 -1
  38. package/dist/models/Variant.js +1 -1
  39. package/dist/models/VariantProduct.d.ts +1 -1
  40. package/dist/models/VariantProduct.js +1 -1
  41. package/dist/models/VariantsResponse.d.ts +1 -1
  42. package/dist/models/VariantsResponse.js +1 -1
  43. package/dist/models/index.d.ts +2 -1
  44. package/dist/models/index.js +2 -1
  45. package/dist/runtime.d.ts +1 -1
  46. package/dist/runtime.js +1 -1
  47. package/package.json +1 -1
  48. package/src/apis/ProductsApi.ts +10 -5
  49. package/src/apis/VariantsApi.ts +1 -1
  50. package/src/models/ApiError.ts +1 -1
  51. package/src/models/Attribute.ts +1 -1
  52. package/src/models/AttributeThumbnail.ts +1 -1
  53. package/src/models/CreateProductRequest.ts +11 -11
  54. package/src/models/CreateProductRequestVariantsInner.ts +15 -1
  55. package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +1 -1
  56. package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +1 -1
  57. package/src/models/CreateProductRequestVariantsInnerImagesInner.ts +65 -0
  58. package/src/models/Image.ts +1 -1
  59. package/src/models/ImportProducts200Response.ts +65 -0
  60. package/src/models/Price.ts +1 -1
  61. package/src/models/Product.ts +1 -1
  62. package/src/models/ProductAdditionalFilesInner.ts +1 -1
  63. package/src/models/ProductsResponse.ts +1 -1
  64. package/src/models/Stock.ts +1 -1
  65. package/src/models/Variant.ts +1 -1
  66. package/src/models/VariantProduct.ts +1 -1
  67. package/src/models/VariantsResponse.ts +1 -1
  68. package/src/models/index.ts +2 -1
  69. package/src/runtime.ts +1 -1
@@ -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.5.0
8
+ * The version of the OpenAPI document: 1.6.1
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.0
5
+ * The version of the OpenAPI document: 1.6.1
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.5.0
8
+ * The version of the OpenAPI document: 1.6.1
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.0
5
+ * The version of the OpenAPI document: 1.6.1
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.5.0
8
+ * The version of the OpenAPI document: 1.6.1
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.0
5
+ * The version of the OpenAPI document: 1.6.1
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.5.0
8
+ * The version of the OpenAPI document: 1.6.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,11 +2,12 @@ export * from './ApiError';
2
2
  export * from './Attribute';
3
3
  export * from './AttributeThumbnail';
4
4
  export * from './CreateProductRequest';
5
- export * from './CreateProductRequestAdditionalFilesInner';
6
5
  export * from './CreateProductRequestVariantsInner';
7
6
  export * from './CreateProductRequestVariantsInnerApplicationsInner';
8
7
  export * from './CreateProductRequestVariantsInnerAttributesInner';
8
+ export * from './CreateProductRequestVariantsInnerImagesInner';
9
9
  export * from './Image';
10
+ export * from './ImportProducts200Response';
10
11
  export * from './Price';
11
12
  export * from './Product';
12
13
  export * from './ProductAdditionalFilesInner';
@@ -20,11 +20,12 @@ __exportStar(require("./ApiError"), exports);
20
20
  __exportStar(require("./Attribute"), exports);
21
21
  __exportStar(require("./AttributeThumbnail"), exports);
22
22
  __exportStar(require("./CreateProductRequest"), exports);
23
- __exportStar(require("./CreateProductRequestAdditionalFilesInner"), exports);
24
23
  __exportStar(require("./CreateProductRequestVariantsInner"), exports);
25
24
  __exportStar(require("./CreateProductRequestVariantsInnerApplicationsInner"), exports);
26
25
  __exportStar(require("./CreateProductRequestVariantsInnerAttributesInner"), exports);
26
+ __exportStar(require("./CreateProductRequestVariantsInnerImagesInner"), exports);
27
27
  __exportStar(require("./Image"), exports);
28
+ __exportStar(require("./ImportProducts200Response"), exports);
28
29
  __exportStar(require("./Price"), exports);
29
30
  __exportStar(require("./Product"), exports);
30
31
  __exportStar(require("./ProductAdditionalFilesInner"), exports);
package/dist/runtime.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.0
5
+ * The version of the OpenAPI document: 1.6.1
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/runtime.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.5.0
8
+ * The version of the OpenAPI document: 1.6.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/product-catalog",
3
- "version": "1.5.0",
3
+ "version": "1.6.1",
4
4
  "description": "OpenAPI client for @teemill/product-catalog",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiError,
19
19
  CreateProductRequest,
20
+ ImportProducts200Response,
20
21
  Product,
21
22
  ProductsResponse,
22
23
  } from '../models/index';
@@ -25,6 +26,8 @@ import {
25
26
  ApiErrorToJSON,
26
27
  CreateProductRequestFromJSON,
27
28
  CreateProductRequestToJSON,
29
+ ImportProducts200ResponseFromJSON,
30
+ ImportProducts200ResponseToJSON,
28
31
  ProductFromJSON,
29
32
  ProductToJSON,
30
33
  ProductsResponseFromJSON,
@@ -254,7 +257,7 @@ export class ProductsApi extends runtime.BaseAPI {
254
257
  * Import products
255
258
  * Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
256
259
  */
257
- async importProductsRaw(requestParameters: ImportProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
260
+ async importProductsRaw(requestParameters: ImportProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImportProducts200Response>> {
258
261
  if (requestParameters.project === null || requestParameters.project === undefined) {
259
262
  throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling importProducts.');
260
263
  }
@@ -286,7 +289,7 @@ export class ProductsApi extends runtime.BaseAPI {
286
289
  body: requestParameters.body as any,
287
290
  }, initOverrides);
288
291
 
289
- return new runtime.VoidApiResponse(response);
292
+ return new runtime.JSONApiResponse(response, (jsonValue) => ImportProducts200ResponseFromJSON(jsonValue));
290
293
  }
291
294
 
292
295
  /**
@@ -297,14 +300,16 @@ export class ProductsApi extends runtime.BaseAPI {
297
300
  project: string,
298
301
  optionalParameters: runtime.OptionalOnly<ImportProductsRequest> = {},
299
302
  initOverrides?: RequestInit | runtime.InitOverrideFunction
300
- ): Promise<void> {
301
- await this.importProductsRaw(
303
+ ): Promise<ImportProducts200Response> {
304
+ const response = await this.importProductsRaw(
302
305
  {
303
306
  project: project,
304
307
  ...optionalParameters,
305
308
  },
306
309
  initOverrides
307
310
  );
311
+
312
+ return await response.value();
308
313
  }
309
314
 
310
315
  }
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,18 +13,18 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
- import type { CreateProductRequestAdditionalFilesInner } from './CreateProductRequestAdditionalFilesInner';
17
- import {
18
- CreateProductRequestAdditionalFilesInnerFromJSON,
19
- CreateProductRequestAdditionalFilesInnerFromJSONTyped,
20
- CreateProductRequestAdditionalFilesInnerToJSON,
21
- } from './CreateProductRequestAdditionalFilesInner';
22
16
  import type { CreateProductRequestVariantsInner } from './CreateProductRequestVariantsInner';
23
17
  import {
24
18
  CreateProductRequestVariantsInnerFromJSON,
25
19
  CreateProductRequestVariantsInnerFromJSONTyped,
26
20
  CreateProductRequestVariantsInnerToJSON,
27
21
  } from './CreateProductRequestVariantsInner';
22
+ import type { CreateProductRequestVariantsInnerImagesInner } from './CreateProductRequestVariantsInnerImagesInner';
23
+ import {
24
+ CreateProductRequestVariantsInnerImagesInnerFromJSON,
25
+ CreateProductRequestVariantsInnerImagesInnerFromJSONTyped,
26
+ CreateProductRequestVariantsInnerImagesInnerToJSON,
27
+ } from './CreateProductRequestVariantsInnerImagesInner';
28
28
 
29
29
  /**
30
30
  *
@@ -76,10 +76,10 @@ export interface CreateProductRequest {
76
76
  variants: Array<CreateProductRequestVariantsInner>;
77
77
  /**
78
78
  * Additional files
79
- * @type {Array<CreateProductRequestAdditionalFilesInner>}
79
+ * @type {Array<CreateProductRequestVariantsInnerImagesInner>}
80
80
  * @memberof CreateProductRequest
81
81
  */
82
- additionalFiles?: Array<CreateProductRequestAdditionalFilesInner>;
82
+ additionalFiles?: Array<CreateProductRequestVariantsInnerImagesInner>;
83
83
  }
84
84
 
85
85
  /**
@@ -110,7 +110,7 @@ export function CreateProductRequestFromJSONTyped(json: any, ignoreDiscriminator
110
110
  'slug': !exists(json, 'slug') ? undefined : json['slug'],
111
111
  'tags': !exists(json, 'tags') ? undefined : json['tags'],
112
112
  'variants': ((json['variants'] as Array<any>).map(CreateProductRequestVariantsInnerFromJSON)),
113
- 'additionalFiles': !exists(json, 'additionalFiles') ? undefined : ((json['additionalFiles'] as Array<any>).map(CreateProductRequestAdditionalFilesInnerFromJSON)),
113
+ 'additionalFiles': !exists(json, 'additionalFiles') ? undefined : ((json['additionalFiles'] as Array<any>).map(CreateProductRequestVariantsInnerImagesInnerFromJSON)),
114
114
  };
115
115
  }
116
116
 
@@ -130,7 +130,7 @@ export function CreateProductRequestToJSON(value?: CreateProductRequest | null):
130
130
  'slug': value.slug,
131
131
  'tags': value.tags,
132
132
  'variants': ((value.variants as Array<any>).map(CreateProductRequestVariantsInnerToJSON)),
133
- 'additionalFiles': value.additionalFiles === undefined ? undefined : ((value.additionalFiles as Array<any>).map(CreateProductRequestAdditionalFilesInnerToJSON)),
133
+ 'additionalFiles': value.additionalFiles === undefined ? undefined : ((value.additionalFiles as Array<any>).map(CreateProductRequestVariantsInnerImagesInnerToJSON)),
134
134
  };
135
135
  }
136
136
 
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -25,6 +25,12 @@ import {
25
25
  CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped,
26
26
  CreateProductRequestVariantsInnerAttributesInnerToJSON,
27
27
  } from './CreateProductRequestVariantsInnerAttributesInner';
28
+ import type { CreateProductRequestVariantsInnerImagesInner } from './CreateProductRequestVariantsInnerImagesInner';
29
+ import {
30
+ CreateProductRequestVariantsInnerImagesInnerFromJSON,
31
+ CreateProductRequestVariantsInnerImagesInnerFromJSONTyped,
32
+ CreateProductRequestVariantsInnerImagesInnerToJSON,
33
+ } from './CreateProductRequestVariantsInnerImagesInner';
28
34
  import type { Price } from './Price';
29
35
  import {
30
36
  PriceFromJSON,
@@ -62,6 +68,12 @@ export interface CreateProductRequestVariantsInner {
62
68
  * @memberof CreateProductRequestVariantsInner
63
69
  */
64
70
  applications?: Array<CreateProductRequestVariantsInnerApplicationsInner>;
71
+ /**
72
+ * Existing images to use as this variant's flat images
73
+ * @type {Array<CreateProductRequestVariantsInnerImagesInner>}
74
+ * @memberof CreateProductRequestVariantsInner
75
+ */
76
+ images?: Array<CreateProductRequestVariantsInnerImagesInner>;
65
77
  }
66
78
 
67
79
  /**
@@ -87,6 +99,7 @@ export function CreateProductRequestVariantsInnerFromJSONTyped(json: any, ignore
87
99
  'retailPrice': !exists(json, 'retailPrice') ? undefined : PriceFromJSON(json['retailPrice']),
88
100
  'sku': !exists(json, 'sku') ? undefined : json['sku'],
89
101
  'applications': !exists(json, 'applications') ? undefined : ((json['applications'] as Array<any>).map(CreateProductRequestVariantsInnerApplicationsInnerFromJSON)),
102
+ 'images': !exists(json, 'images') ? undefined : ((json['images'] as Array<any>).map(CreateProductRequestVariantsInnerImagesInnerFromJSON)),
90
103
  };
91
104
  }
92
105
 
@@ -103,6 +116,7 @@ export function CreateProductRequestVariantsInnerToJSON(value?: CreateProductReq
103
116
  'retailPrice': PriceToJSON(value.retailPrice),
104
117
  'sku': value.sku,
105
118
  'applications': value.applications === undefined ? undefined : ((value.applications as Array<any>).map(CreateProductRequestVariantsInnerApplicationsInnerToJSON)),
119
+ 'images': value.images === undefined ? undefined : ((value.images as Array<any>).map(CreateProductRequestVariantsInnerImagesInnerToJSON)),
106
120
  };
107
121
  }
108
122
 
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.6.1
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 CreateProductRequestVariantsInnerImagesInner
20
+ */
21
+ export interface CreateProductRequestVariantsInnerImagesInner {
22
+ /**
23
+ * File url
24
+ * @type {string}
25
+ * @memberof CreateProductRequestVariantsInnerImagesInner
26
+ */
27
+ src?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the CreateProductRequestVariantsInnerImagesInner interface.
32
+ */
33
+ export function instanceOfCreateProductRequestVariantsInnerImagesInner(value: object): boolean {
34
+ let isInstance = true;
35
+
36
+ return isInstance;
37
+ }
38
+
39
+ export function CreateProductRequestVariantsInnerImagesInnerFromJSON(json: any): CreateProductRequestVariantsInnerImagesInner {
40
+ return CreateProductRequestVariantsInnerImagesInnerFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function CreateProductRequestVariantsInnerImagesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerImagesInner {
44
+ if ((json === undefined) || (json === null)) {
45
+ return json;
46
+ }
47
+ return {
48
+
49
+ 'src': !exists(json, 'src') ? undefined : json['src'],
50
+ };
51
+ }
52
+
53
+ export function CreateProductRequestVariantsInnerImagesInnerToJSON(value?: CreateProductRequestVariantsInnerImagesInner | null): any {
54
+ if (value === undefined) {
55
+ return undefined;
56
+ }
57
+ if (value === null) {
58
+ return null;
59
+ }
60
+ return {
61
+
62
+ 'src': value.src,
63
+ };
64
+ }
65
+
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.6.1
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 ImportProducts200Response
20
+ */
21
+ export interface ImportProducts200Response {
22
+ /**
23
+ * Id of the product import
24
+ * @type {string}
25
+ * @memberof ImportProducts200Response
26
+ */
27
+ importId?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ImportProducts200Response interface.
32
+ */
33
+ export function instanceOfImportProducts200Response(value: object): boolean {
34
+ let isInstance = true;
35
+
36
+ return isInstance;
37
+ }
38
+
39
+ export function ImportProducts200ResponseFromJSON(json: any): ImportProducts200Response {
40
+ return ImportProducts200ResponseFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function ImportProducts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportProducts200Response {
44
+ if ((json === undefined) || (json === null)) {
45
+ return json;
46
+ }
47
+ return {
48
+
49
+ 'importId': !exists(json, 'importId') ? undefined : json['importId'],
50
+ };
51
+ }
52
+
53
+ export function ImportProducts200ResponseToJSON(value?: ImportProducts200Response | null): any {
54
+ if (value === undefined) {
55
+ return undefined;
56
+ }
57
+ if (value === null) {
58
+ return null;
59
+ }
60
+ return {
61
+
62
+ 'importId': value.importId,
63
+ };
64
+ }
65
+
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,11 +4,12 @@ export * from './ApiError';
4
4
  export * from './Attribute';
5
5
  export * from './AttributeThumbnail';
6
6
  export * from './CreateProductRequest';
7
- export * from './CreateProductRequestAdditionalFilesInner';
8
7
  export * from './CreateProductRequestVariantsInner';
9
8
  export * from './CreateProductRequestVariantsInnerApplicationsInner';
10
9
  export * from './CreateProductRequestVariantsInnerAttributesInner';
10
+ export * from './CreateProductRequestVariantsInnerImagesInner';
11
11
  export * from './Image';
12
+ export * from './ImportProducts200Response';
12
13
  export * from './Price';
13
14
  export * from './Product';
14
15
  export * from './ProductAdditionalFilesInner';
package/src/runtime.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Product Catalog API
5
5
  * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).