@teemill/product-catalog 1.9.1 → 1.11.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 (160) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +2 -2
  4. package/dist/apis/ProductsApi.d.ts +15 -1
  5. package/dist/apis/ProductsApi.js +226 -355
  6. package/dist/apis/VariantsApi.d.ts +1 -1
  7. package/dist/apis/VariantsApi.js +83 -187
  8. package/dist/esm/apis/ProductsApi.d.ts +107 -0
  9. package/dist/esm/apis/ProductsApi.js +300 -0
  10. package/dist/esm/apis/VariantsApi.d.ts +50 -0
  11. package/dist/esm/apis/VariantsApi.js +127 -0
  12. package/dist/esm/apis/index.d.ts +2 -0
  13. package/dist/esm/apis/index.js +4 -0
  14. package/dist/esm/index.d.ts +3 -0
  15. package/dist/esm/index.js +5 -0
  16. package/dist/esm/models/ApiError.d.ts +37 -0
  17. package/dist/esm/models/ApiError.js +42 -0
  18. package/dist/esm/models/Attribute.d.ts +50 -0
  19. package/dist/esm/models/Attribute.js +49 -0
  20. package/dist/esm/models/AttributeThumbnail.d.ts +46 -0
  21. package/dist/esm/models/AttributeThumbnail.js +48 -0
  22. package/dist/esm/models/CreateProductRequest.d.ts +88 -0
  23. package/dist/esm/models/CreateProductRequest.js +63 -0
  24. package/dist/esm/models/CreateProductRequestAdditionalFilesInner.d.ts +31 -0
  25. package/dist/esm/models/CreateProductRequestAdditionalFilesInner.js +43 -0
  26. package/dist/esm/models/CreateProductRequestImagesInner.d.ts +31 -0
  27. package/dist/esm/models/CreateProductRequestImagesInner.js +38 -0
  28. package/dist/esm/models/CreateProductRequestSeoMetadata.d.ts +31 -0
  29. package/dist/esm/models/CreateProductRequestSeoMetadata.js +38 -0
  30. package/dist/esm/models/CreateProductRequestVariantsInner.d.ts +59 -0
  31. package/dist/esm/models/CreateProductRequestVariantsInner.js +57 -0
  32. package/dist/esm/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +63 -0
  33. package/dist/esm/models/CreateProductRequestVariantsInnerApplicationsInner.js +67 -0
  34. package/dist/esm/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +37 -0
  35. package/dist/esm/models/CreateProductRequestVariantsInnerAttributesInner.js +46 -0
  36. package/dist/esm/models/CreateProductRequestVariantsInnerImagesInner.d.ts +31 -0
  37. package/dist/esm/models/CreateProductRequestVariantsInnerImagesInner.js +43 -0
  38. package/dist/esm/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +37 -0
  39. package/dist/esm/models/CreateProductRequestVariantsInnerRetailPrice.js +46 -0
  40. package/dist/esm/models/CreateProductVariant.d.ts +59 -0
  41. package/dist/esm/models/CreateProductVariant.js +54 -0
  42. package/dist/esm/models/CreateProductVariantApplicationsInner.d.ts +54 -0
  43. package/dist/esm/models/CreateProductVariantApplicationsInner.js +58 -0
  44. package/dist/esm/models/CreateProductVariantAttributesInner.d.ts +37 -0
  45. package/dist/esm/models/CreateProductVariantAttributesInner.js +44 -0
  46. package/dist/esm/models/CreateProductVariantRetailPrice.d.ts +37 -0
  47. package/dist/esm/models/CreateProductVariantRetailPrice.js +44 -0
  48. package/dist/esm/models/Image.d.ts +67 -0
  49. package/dist/esm/models/Image.js +50 -0
  50. package/dist/esm/models/ImportProducts200Response.d.ts +31 -0
  51. package/dist/esm/models/ImportProducts200Response.js +38 -0
  52. package/dist/esm/models/ModelFile.d.ts +31 -0
  53. package/dist/esm/models/ModelFile.js +38 -0
  54. package/dist/esm/models/Price.d.ts +37 -0
  55. package/dist/esm/models/Price.js +40 -0
  56. package/dist/esm/models/Product.d.ts +113 -0
  57. package/dist/esm/models/Product.js +71 -0
  58. package/dist/esm/models/ProductAdditionalFilesInner.d.ts +37 -0
  59. package/dist/esm/models/ProductAdditionalFilesInner.js +40 -0
  60. package/dist/esm/models/ProductsResponse.d.ts +38 -0
  61. package/dist/esm/models/ProductsResponse.js +41 -0
  62. package/dist/esm/models/SeoMetadata.d.ts +31 -0
  63. package/dist/esm/models/SeoMetadata.js +38 -0
  64. package/dist/esm/models/Stock.d.ts +31 -0
  65. package/dist/esm/models/Stock.js +38 -0
  66. package/dist/esm/models/UpdateProductRequest.d.ts +87 -0
  67. package/dist/esm/models/UpdateProductRequest.js +58 -0
  68. package/dist/esm/models/Variant.d.ts +114 -0
  69. package/dist/esm/models/Variant.js +71 -0
  70. package/dist/esm/models/VariantProduct.d.ts +37 -0
  71. package/dist/esm/models/VariantProduct.js +40 -0
  72. package/dist/esm/models/VariantsResponse.d.ts +38 -0
  73. package/dist/esm/models/VariantsResponse.js +41 -0
  74. package/dist/esm/models/index.d.ts +23 -0
  75. package/dist/esm/models/index.js +25 -0
  76. package/dist/esm/runtime.d.ts +187 -0
  77. package/dist/esm/runtime.js +333 -0
  78. package/dist/models/ApiError.d.ts +1 -1
  79. package/dist/models/ApiError.js +1 -1
  80. package/dist/models/Attribute.d.ts +1 -1
  81. package/dist/models/Attribute.js +2 -2
  82. package/dist/models/AttributeThumbnail.d.ts +1 -1
  83. package/dist/models/AttributeThumbnail.js +1 -1
  84. package/dist/models/CreateProductRequest.d.ts +1 -1
  85. package/dist/models/CreateProductRequest.js +4 -4
  86. package/dist/models/CreateProductRequestAdditionalFilesInner.js +2 -2
  87. package/dist/models/CreateProductRequestImagesInner.d.ts +1 -1
  88. package/dist/models/CreateProductRequestImagesInner.js +1 -1
  89. package/dist/models/CreateProductRequestSeoMetadata.d.ts +1 -1
  90. package/dist/models/CreateProductRequestSeoMetadata.js +1 -1
  91. package/dist/models/CreateProductRequestVariantsInner.js +6 -6
  92. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +1 -1
  93. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +1 -1
  94. package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +2 -2
  95. package/dist/models/CreateProductRequestVariantsInnerRetailPrice.js +1 -1
  96. package/dist/models/CreateProductVariant.d.ts +1 -1
  97. package/dist/models/CreateProductVariant.js +5 -5
  98. package/dist/models/CreateProductVariantApplicationsInner.d.ts +2 -11
  99. package/dist/models/CreateProductVariantApplicationsInner.js +2 -10
  100. package/dist/models/CreateProductVariantAttributesInner.d.ts +1 -1
  101. package/dist/models/CreateProductVariantAttributesInner.js +1 -1
  102. package/dist/models/CreateProductVariantRetailPrice.d.ts +1 -1
  103. package/dist/models/CreateProductVariantRetailPrice.js +1 -1
  104. package/dist/models/Image.d.ts +1 -1
  105. package/dist/models/Image.js +1 -1
  106. package/dist/models/ImportProducts200Response.d.ts +1 -1
  107. package/dist/models/ImportProducts200Response.js +1 -1
  108. package/dist/models/ModelFile.d.ts +1 -1
  109. package/dist/models/ModelFile.js +1 -1
  110. package/dist/models/Price.d.ts +1 -1
  111. package/dist/models/Price.js +1 -1
  112. package/dist/models/Product.d.ts +2 -2
  113. package/dist/models/Product.js +5 -5
  114. package/dist/models/ProductAdditionalFilesInner.d.ts +1 -1
  115. package/dist/models/ProductAdditionalFilesInner.js +1 -1
  116. package/dist/models/ProductsResponse.d.ts +1 -1
  117. package/dist/models/ProductsResponse.js +2 -2
  118. package/dist/models/SeoMetadata.d.ts +1 -1
  119. package/dist/models/SeoMetadata.js +1 -1
  120. package/dist/models/Stock.d.ts +1 -1
  121. package/dist/models/Stock.js +1 -1
  122. package/dist/models/UpdateProductRequest.d.ts +1 -1
  123. package/dist/models/UpdateProductRequest.js +3 -3
  124. package/dist/models/Variant.d.ts +2 -2
  125. package/dist/models/Variant.js +6 -6
  126. package/dist/models/VariantProduct.d.ts +1 -1
  127. package/dist/models/VariantProduct.js +1 -1
  128. package/dist/models/VariantsResponse.d.ts +1 -1
  129. package/dist/models/VariantsResponse.js +2 -2
  130. package/dist/runtime.d.ts +1 -1
  131. package/dist/runtime.js +223 -439
  132. package/package.json +4 -2
  133. package/src/apis/ProductsApi.ts +62 -1
  134. package/src/apis/VariantsApi.ts +1 -1
  135. package/src/models/ApiError.ts +1 -1
  136. package/src/models/Attribute.ts +1 -1
  137. package/src/models/AttributeThumbnail.ts +1 -1
  138. package/src/models/CreateProductRequest.ts +1 -1
  139. package/src/models/CreateProductRequestImagesInner.ts +1 -1
  140. package/src/models/CreateProductRequestSeoMetadata.ts +1 -1
  141. package/src/models/CreateProductVariant.ts +1 -1
  142. package/src/models/CreateProductVariantApplicationsInner.ts +2 -12
  143. package/src/models/CreateProductVariantAttributesInner.ts +1 -1
  144. package/src/models/CreateProductVariantRetailPrice.ts +1 -1
  145. package/src/models/Image.ts +1 -1
  146. package/src/models/ImportProducts200Response.ts +1 -1
  147. package/src/models/ModelFile.ts +1 -1
  148. package/src/models/Price.ts +1 -1
  149. package/src/models/Product.ts +2 -2
  150. package/src/models/ProductAdditionalFilesInner.ts +1 -1
  151. package/src/models/ProductsResponse.ts +1 -1
  152. package/src/models/SeoMetadata.ts +1 -1
  153. package/src/models/Stock.ts +1 -1
  154. package/src/models/UpdateProductRequest.ts +1 -1
  155. package/src/models/Variant.ts +2 -2
  156. package/src/models/VariantProduct.ts +1 -1
  157. package/src/models/VariantsResponse.ts +1 -1
  158. package/src/runtime.ts +1 -1
  159. package/tsconfig.esm.json +7 -0
  160. package/tsconfig.json +2 -2
@@ -0,0 +1,63 @@
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.8.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 CreateProductRequestVariantsInnerApplicationsInner
16
+ */
17
+ export interface CreateProductRequestVariantsInnerApplicationsInner {
18
+ /**
19
+ * Technology to use for the application.
20
+ * @type {string}
21
+ * @memberof CreateProductRequestVariantsInnerApplicationsInner
22
+ */
23
+ technology: CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum;
24
+ /**
25
+ * Placement of the application. Available placements depend on the chosen product and technology.
26
+ * @type {string}
27
+ * @memberof CreateProductRequestVariantsInnerApplicationsInner
28
+ */
29
+ placement: CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum;
30
+ /**
31
+ * Publicly available design file URL. This will fill the design area of the warehouse product. It will be centered horizontally and aligned to the top of the design area. Accepts PNG and JPEG files.
32
+ * @type {string}
33
+ * @memberof CreateProductRequestVariantsInnerApplicationsInner
34
+ */
35
+ src: string;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum: {
41
+ readonly Dtg: "dtg";
42
+ readonly Embroidery: "embroidery";
43
+ readonly Dtf: "dtf";
44
+ };
45
+ export type CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = typeof CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum[keyof typeof CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum];
46
+ /**
47
+ * @export
48
+ */
49
+ export declare const CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum: {
50
+ readonly Front: "front";
51
+ readonly Back: "back";
52
+ readonly Left: "left";
53
+ readonly Right: "right";
54
+ readonly Neck: "neck";
55
+ };
56
+ export type CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = typeof CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum[keyof typeof CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum];
57
+ /**
58
+ * Check if a given object implements the CreateProductRequestVariantsInnerApplicationsInner interface.
59
+ */
60
+ export declare function instanceOfCreateProductRequestVariantsInnerApplicationsInner(value: object): boolean;
61
+ export declare function CreateProductRequestVariantsInnerApplicationsInnerFromJSON(json: any): CreateProductRequestVariantsInnerApplicationsInner;
62
+ export declare function CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerApplicationsInner;
63
+ export declare function CreateProductRequestVariantsInnerApplicationsInnerToJSON(value?: CreateProductRequestVariantsInnerApplicationsInner | null): any;
@@ -0,0 +1,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Product Catalog API
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
+ *
7
+ * The version of the OpenAPI document: 1.8.0
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
+ * @export
16
+ */
17
+ export const CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = {
18
+ Dtg: 'dtg',
19
+ Embroidery: 'embroidery',
20
+ Dtf: 'dtf'
21
+ };
22
+ /**
23
+ * @export
24
+ */
25
+ export const CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = {
26
+ Front: 'front',
27
+ Back: 'back',
28
+ Left: 'left',
29
+ Right: 'right',
30
+ Neck: 'neck'
31
+ };
32
+ /**
33
+ * Check if a given object implements the CreateProductRequestVariantsInnerApplicationsInner interface.
34
+ */
35
+ export function instanceOfCreateProductRequestVariantsInnerApplicationsInner(value) {
36
+ let isInstance = true;
37
+ isInstance = isInstance && "technology" in value;
38
+ isInstance = isInstance && "placement" in value;
39
+ isInstance = isInstance && "src" in value;
40
+ return isInstance;
41
+ }
42
+ export function CreateProductRequestVariantsInnerApplicationsInnerFromJSON(json) {
43
+ return CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped(json, false);
44
+ }
45
+ export function CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped(json, ignoreDiscriminator) {
46
+ if ((json === undefined) || (json === null)) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'technology': json['technology'],
51
+ 'placement': json['placement'],
52
+ 'src': json['src'],
53
+ };
54
+ }
55
+ export function CreateProductRequestVariantsInnerApplicationsInnerToJSON(value) {
56
+ if (value === undefined) {
57
+ return undefined;
58
+ }
59
+ if (value === null) {
60
+ return null;
61
+ }
62
+ return {
63
+ 'technology': value.technology,
64
+ 'placement': value.placement,
65
+ 'src': value.src,
66
+ };
67
+ }
@@ -0,0 +1,37 @@
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.8.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 CreateProductRequestVariantsInnerAttributesInner
16
+ */
17
+ export interface CreateProductRequestVariantsInnerAttributesInner {
18
+ /**
19
+ * Attribute name
20
+ * @type {string}
21
+ * @memberof CreateProductRequestVariantsInnerAttributesInner
22
+ */
23
+ name: string;
24
+ /**
25
+ * Attribute value
26
+ * @type {string}
27
+ * @memberof CreateProductRequestVariantsInnerAttributesInner
28
+ */
29
+ value: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the CreateProductRequestVariantsInnerAttributesInner interface.
33
+ */
34
+ export declare function instanceOfCreateProductRequestVariantsInnerAttributesInner(value: object): boolean;
35
+ export declare function CreateProductRequestVariantsInnerAttributesInnerFromJSON(json: any): CreateProductRequestVariantsInnerAttributesInner;
36
+ export declare function CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerAttributesInner;
37
+ export declare function CreateProductRequestVariantsInnerAttributesInnerToJSON(value?: CreateProductRequestVariantsInnerAttributesInner | null): any;
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Product Catalog API
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
+ *
7
+ * The version of the OpenAPI document: 1.8.0
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
+ * Check if a given object implements the CreateProductRequestVariantsInnerAttributesInner interface.
16
+ */
17
+ export function instanceOfCreateProductRequestVariantsInnerAttributesInner(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "name" in value;
20
+ isInstance = isInstance && "value" in value;
21
+ return isInstance;
22
+ }
23
+ export function CreateProductRequestVariantsInnerAttributesInnerFromJSON(json) {
24
+ return CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped(json, false);
25
+ }
26
+ export function CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'name': json['name'],
32
+ 'value': json['value'],
33
+ };
34
+ }
35
+ export function CreateProductRequestVariantsInnerAttributesInnerToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'name': value.name,
44
+ 'value': value.value,
45
+ };
46
+ }
@@ -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.8.0
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreateProductRequestVariantsInnerImagesInner
16
+ */
17
+ export interface CreateProductRequestVariantsInnerImagesInner {
18
+ /**
19
+ * Publicly available file URL.
20
+ * @type {string}
21
+ * @memberof CreateProductRequestVariantsInnerImagesInner
22
+ */
23
+ src?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateProductRequestVariantsInnerImagesInner interface.
27
+ */
28
+ export declare function instanceOfCreateProductRequestVariantsInnerImagesInner(value: object): boolean;
29
+ export declare function CreateProductRequestVariantsInnerImagesInnerFromJSON(json: any): CreateProductRequestVariantsInnerImagesInner;
30
+ export declare function CreateProductRequestVariantsInnerImagesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerImagesInner;
31
+ export declare function CreateProductRequestVariantsInnerImagesInnerToJSON(value?: CreateProductRequestVariantsInnerImagesInner | null): any;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Product Catalog API
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
+ *
7
+ * The version of the OpenAPI document: 1.8.0
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
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the CreateProductRequestVariantsInnerImagesInner interface.
17
+ */
18
+ export function instanceOfCreateProductRequestVariantsInnerImagesInner(value) {
19
+ let isInstance = true;
20
+ return isInstance;
21
+ }
22
+ export function CreateProductRequestVariantsInnerImagesInnerFromJSON(json) {
23
+ return CreateProductRequestVariantsInnerImagesInnerFromJSONTyped(json, false);
24
+ }
25
+ export function CreateProductRequestVariantsInnerImagesInnerFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'src': !exists(json, 'src') ? undefined : json['src'],
31
+ };
32
+ }
33
+ export function CreateProductRequestVariantsInnerImagesInnerToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'src': value.src,
42
+ };
43
+ }
@@ -0,0 +1,37 @@
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.8.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
+ * Variant retail price including tax.
14
+ * @export
15
+ * @interface CreateProductRequestVariantsInnerRetailPrice
16
+ */
17
+ export interface CreateProductRequestVariantsInnerRetailPrice {
18
+ /**
19
+ * Price including tax in the specified currency.
20
+ * @type {number}
21
+ * @memberof CreateProductRequestVariantsInnerRetailPrice
22
+ */
23
+ amount: number;
24
+ /**
25
+ * Currency code for the currency the price is valued in.
26
+ * @type {string}
27
+ * @memberof CreateProductRequestVariantsInnerRetailPrice
28
+ */
29
+ currencyCode: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the CreateProductRequestVariantsInnerRetailPrice interface.
33
+ */
34
+ export declare function instanceOfCreateProductRequestVariantsInnerRetailPrice(value: object): boolean;
35
+ export declare function CreateProductRequestVariantsInnerRetailPriceFromJSON(json: any): CreateProductRequestVariantsInnerRetailPrice;
36
+ export declare function CreateProductRequestVariantsInnerRetailPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerRetailPrice;
37
+ export declare function CreateProductRequestVariantsInnerRetailPriceToJSON(value?: CreateProductRequestVariantsInnerRetailPrice | null): any;
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Product Catalog API
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
+ *
7
+ * The version of the OpenAPI document: 1.8.0
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
+ * Check if a given object implements the CreateProductRequestVariantsInnerRetailPrice interface.
16
+ */
17
+ export function instanceOfCreateProductRequestVariantsInnerRetailPrice(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "amount" in value;
20
+ isInstance = isInstance && "currencyCode" in value;
21
+ return isInstance;
22
+ }
23
+ export function CreateProductRequestVariantsInnerRetailPriceFromJSON(json) {
24
+ return CreateProductRequestVariantsInnerRetailPriceFromJSONTyped(json, false);
25
+ }
26
+ export function CreateProductRequestVariantsInnerRetailPriceFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'amount': json['amount'],
32
+ 'currencyCode': json['currencyCode'],
33
+ };
34
+ }
35
+ export function CreateProductRequestVariantsInnerRetailPriceToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'amount': value.amount,
44
+ 'currencyCode': value.currencyCode,
45
+ };
46
+ }
@@ -0,0 +1,59 @@
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.11.1
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
+ import type { CreateProductRequestImagesInner } from './CreateProductRequestImagesInner';
13
+ import type { CreateProductVariantApplicationsInner } from './CreateProductVariantApplicationsInner';
14
+ import type { CreateProductVariantAttributesInner } from './CreateProductVariantAttributesInner';
15
+ import type { CreateProductVariantRetailPrice } from './CreateProductVariantRetailPrice';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CreateProductVariant
20
+ */
21
+ export interface CreateProductVariant {
22
+ /**
23
+ * Attributes associated to a variant such as Colour and Size.
24
+ * @type {Array<CreateProductVariantAttributesInner>}
25
+ * @memberof CreateProductVariant
26
+ */
27
+ attributes: Array<CreateProductVariantAttributesInner>;
28
+ /**
29
+ *
30
+ * @type {CreateProductVariantRetailPrice}
31
+ * @memberof CreateProductVariant
32
+ */
33
+ retailPrice: CreateProductVariantRetailPrice;
34
+ /**
35
+ * A custom stock keeping unit for the variant.
36
+ * @type {string}
37
+ * @memberof CreateProductVariant
38
+ */
39
+ sku?: string;
40
+ /**
41
+ * Design applications. If not provided, the product will be blank.
42
+ * @type {Array<CreateProductVariantApplicationsInner>}
43
+ * @memberof CreateProductVariant
44
+ */
45
+ applications?: Array<CreateProductVariantApplicationsInner>;
46
+ /**
47
+ * Only use if you want to override the main product image. If not provided, mockups will be generated using the design applications and the warehouse product provided. Accepts PNG and JPEG files.
48
+ * @type {Array<CreateProductRequestImagesInner>}
49
+ * @memberof CreateProductVariant
50
+ */
51
+ images?: Array<CreateProductRequestImagesInner>;
52
+ }
53
+ /**
54
+ * Check if a given object implements the CreateProductVariant interface.
55
+ */
56
+ export declare function instanceOfCreateProductVariant(value: object): boolean;
57
+ export declare function CreateProductVariantFromJSON(json: any): CreateProductVariant;
58
+ export declare function CreateProductVariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariant;
59
+ export declare function CreateProductVariantToJSON(value?: CreateProductVariant | null): any;
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Product Catalog API
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
+ *
7
+ * The version of the OpenAPI document: 1.11.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
+ import { CreateProductRequestImagesInnerFromJSON, CreateProductRequestImagesInnerToJSON, } from './CreateProductRequestImagesInner';
15
+ import { CreateProductVariantApplicationsInnerFromJSON, CreateProductVariantApplicationsInnerToJSON, } from './CreateProductVariantApplicationsInner';
16
+ import { CreateProductVariantAttributesInnerFromJSON, CreateProductVariantAttributesInnerToJSON, } from './CreateProductVariantAttributesInner';
17
+ import { CreateProductVariantRetailPriceFromJSON, CreateProductVariantRetailPriceToJSON, } from './CreateProductVariantRetailPrice';
18
+ /**
19
+ * Check if a given object implements the CreateProductVariant interface.
20
+ */
21
+ export function instanceOfCreateProductVariant(value) {
22
+ if (!('attributes' in value))
23
+ return false;
24
+ if (!('retailPrice' in value))
25
+ return false;
26
+ return true;
27
+ }
28
+ export function CreateProductVariantFromJSON(json) {
29
+ return CreateProductVariantFromJSONTyped(json, false);
30
+ }
31
+ export function CreateProductVariantFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'attributes': (json['attributes'].map(CreateProductVariantAttributesInnerFromJSON)),
37
+ 'retailPrice': CreateProductVariantRetailPriceFromJSON(json['retailPrice']),
38
+ 'sku': json['sku'] == null ? undefined : json['sku'],
39
+ 'applications': json['applications'] == null ? undefined : (json['applications'].map(CreateProductVariantApplicationsInnerFromJSON)),
40
+ 'images': json['images'] == null ? undefined : (json['images'].map(CreateProductRequestImagesInnerFromJSON)),
41
+ };
42
+ }
43
+ export function CreateProductVariantToJSON(value) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'attributes': (value['attributes'].map(CreateProductVariantAttributesInnerToJSON)),
49
+ 'retailPrice': CreateProductVariantRetailPriceToJSON(value['retailPrice']),
50
+ 'sku': value['sku'],
51
+ 'applications': value['applications'] == null ? undefined : (value['applications'].map(CreateProductVariantApplicationsInnerToJSON)),
52
+ 'images': value['images'] == null ? undefined : (value['images'].map(CreateProductRequestImagesInnerToJSON)),
53
+ };
54
+ }
@@ -0,0 +1,54 @@
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.11.1
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 CreateProductVariantApplicationsInner
16
+ */
17
+ export interface CreateProductVariantApplicationsInner {
18
+ /**
19
+ * Technology to use for the application.
20
+ * @type {string}
21
+ * @memberof CreateProductVariantApplicationsInner
22
+ */
23
+ technology: string;
24
+ /**
25
+ * Placement of the application. Available placements depend on the chosen product and technology.
26
+ * @type {string}
27
+ * @memberof CreateProductVariantApplicationsInner
28
+ */
29
+ placement: CreateProductVariantApplicationsInnerPlacementEnum;
30
+ /**
31
+ * Publicly available design file URL. This will fill the design area of the warehouse product. It will be centered horizontally and aligned to the top of the design area. Accepts PNG and JPEG files.
32
+ * @type {string}
33
+ * @memberof CreateProductVariantApplicationsInner
34
+ */
35
+ src: string;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const CreateProductVariantApplicationsInnerPlacementEnum: {
41
+ readonly Front: "front";
42
+ readonly Back: "back";
43
+ readonly Left: "left";
44
+ readonly Right: "right";
45
+ readonly Neck: "neck";
46
+ };
47
+ export type CreateProductVariantApplicationsInnerPlacementEnum = typeof CreateProductVariantApplicationsInnerPlacementEnum[keyof typeof CreateProductVariantApplicationsInnerPlacementEnum];
48
+ /**
49
+ * Check if a given object implements the CreateProductVariantApplicationsInner interface.
50
+ */
51
+ export declare function instanceOfCreateProductVariantApplicationsInner(value: object): boolean;
52
+ export declare function CreateProductVariantApplicationsInnerFromJSON(json: any): CreateProductVariantApplicationsInner;
53
+ export declare function CreateProductVariantApplicationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariantApplicationsInner;
54
+ export declare function CreateProductVariantApplicationsInnerToJSON(value?: CreateProductVariantApplicationsInner | null): any;
@@ -0,0 +1,58 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Product Catalog API
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
+ *
7
+ * The version of the OpenAPI document: 1.11.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
+ * @export
16
+ */
17
+ export const CreateProductVariantApplicationsInnerPlacementEnum = {
18
+ Front: 'front',
19
+ Back: 'back',
20
+ Left: 'left',
21
+ Right: 'right',
22
+ Neck: 'neck'
23
+ };
24
+ /**
25
+ * Check if a given object implements the CreateProductVariantApplicationsInner interface.
26
+ */
27
+ export function instanceOfCreateProductVariantApplicationsInner(value) {
28
+ if (!('technology' in value))
29
+ return false;
30
+ if (!('placement' in value))
31
+ return false;
32
+ if (!('src' in value))
33
+ return false;
34
+ return true;
35
+ }
36
+ export function CreateProductVariantApplicationsInnerFromJSON(json) {
37
+ return CreateProductVariantApplicationsInnerFromJSONTyped(json, false);
38
+ }
39
+ export function CreateProductVariantApplicationsInnerFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'technology': json['technology'],
45
+ 'placement': json['placement'],
46
+ 'src': json['src'],
47
+ };
48
+ }
49
+ export function CreateProductVariantApplicationsInnerToJSON(value) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'technology': value['technology'],
55
+ 'placement': value['placement'],
56
+ 'src': value['src'],
57
+ };
58
+ }
@@ -0,0 +1,37 @@
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.11.1
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 CreateProductVariantAttributesInner
16
+ */
17
+ export interface CreateProductVariantAttributesInner {
18
+ /**
19
+ * Attribute name
20
+ * @type {string}
21
+ * @memberof CreateProductVariantAttributesInner
22
+ */
23
+ name: string;
24
+ /**
25
+ * Attribute value
26
+ * @type {string}
27
+ * @memberof CreateProductVariantAttributesInner
28
+ */
29
+ value: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the CreateProductVariantAttributesInner interface.
33
+ */
34
+ export declare function instanceOfCreateProductVariantAttributesInner(value: object): boolean;
35
+ export declare function CreateProductVariantAttributesInnerFromJSON(json: any): CreateProductVariantAttributesInner;
36
+ export declare function CreateProductVariantAttributesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariantAttributesInner;
37
+ export declare function CreateProductVariantAttributesInnerToJSON(value?: CreateProductVariantAttributesInner | null): any;