@teemill/product-catalog 1.10.0 → 1.12.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.
Files changed (135) hide show
  1. package/.openapi-generator/FILES +8 -29
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +3 -3
  4. package/api.ts +1592 -0
  5. package/base.ts +86 -0
  6. package/common.ts +150 -0
  7. package/configuration.ts +110 -0
  8. package/dist/api.d.ts +1120 -0
  9. package/dist/api.js +819 -0
  10. package/dist/base.d.ts +66 -0
  11. package/dist/base.js +65 -0
  12. package/dist/common.d.ts +65 -0
  13. package/dist/common.js +161 -0
  14. package/dist/configuration.d.ts +91 -0
  15. package/dist/configuration.js +43 -0
  16. package/dist/esm/api.d.ts +1120 -0
  17. package/dist/esm/api.js +808 -0
  18. package/dist/esm/base.d.ts +66 -0
  19. package/dist/esm/base.js +60 -0
  20. package/dist/esm/common.d.ts +65 -0
  21. package/dist/esm/common.js +149 -0
  22. package/dist/esm/configuration.d.ts +91 -0
  23. package/dist/esm/configuration.js +39 -0
  24. package/dist/esm/index.d.ts +13 -0
  25. package/dist/esm/index.js +15 -0
  26. package/dist/index.d.ts +13 -3
  27. package/dist/index.js +15 -5
  28. package/git_push.sh +57 -0
  29. package/index.ts +18 -0
  30. package/package.json +18 -4
  31. package/tsconfig.esm.json +7 -0
  32. package/tsconfig.json +4 -6
  33. package/dist/apis/ProductsApi.d.ts +0 -107
  34. package/dist/apis/ProductsApi.js +0 -498
  35. package/dist/apis/VariantsApi.d.ts +0 -50
  36. package/dist/apis/VariantsApi.js +0 -235
  37. package/dist/apis/index.d.ts +0 -2
  38. package/dist/apis/index.js +0 -20
  39. package/dist/models/ApiError.d.ts +0 -37
  40. package/dist/models/ApiError.js +0 -49
  41. package/dist/models/Attribute.d.ts +0 -50
  42. package/dist/models/Attribute.js +0 -56
  43. package/dist/models/AttributeThumbnail.d.ts +0 -46
  44. package/dist/models/AttributeThumbnail.js +0 -55
  45. package/dist/models/CreateProductRequest.d.ts +0 -88
  46. package/dist/models/CreateProductRequest.js +0 -70
  47. package/dist/models/CreateProductRequestAdditionalFilesInner.d.ts +0 -31
  48. package/dist/models/CreateProductRequestAdditionalFilesInner.js +0 -50
  49. package/dist/models/CreateProductRequestImagesInner.d.ts +0 -31
  50. package/dist/models/CreateProductRequestImagesInner.js +0 -45
  51. package/dist/models/CreateProductRequestSeoMetadata.d.ts +0 -31
  52. package/dist/models/CreateProductRequestSeoMetadata.js +0 -45
  53. package/dist/models/CreateProductRequestVariantsInner.d.ts +0 -59
  54. package/dist/models/CreateProductRequestVariantsInner.js +0 -64
  55. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +0 -63
  56. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +0 -74
  57. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +0 -37
  58. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +0 -53
  59. package/dist/models/CreateProductRequestVariantsInnerImagesInner.d.ts +0 -31
  60. package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +0 -50
  61. package/dist/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +0 -37
  62. package/dist/models/CreateProductRequestVariantsInnerRetailPrice.js +0 -53
  63. package/dist/models/CreateProductVariant.d.ts +0 -59
  64. package/dist/models/CreateProductVariant.js +0 -61
  65. package/dist/models/CreateProductVariantApplicationsInner.d.ts +0 -63
  66. package/dist/models/CreateProductVariantApplicationsInner.js +0 -73
  67. package/dist/models/CreateProductVariantAttributesInner.d.ts +0 -37
  68. package/dist/models/CreateProductVariantAttributesInner.js +0 -51
  69. package/dist/models/CreateProductVariantRetailPrice.d.ts +0 -37
  70. package/dist/models/CreateProductVariantRetailPrice.js +0 -51
  71. package/dist/models/Image.d.ts +0 -67
  72. package/dist/models/Image.js +0 -57
  73. package/dist/models/ImportProducts200Response.d.ts +0 -31
  74. package/dist/models/ImportProducts200Response.js +0 -45
  75. package/dist/models/ModelFile.d.ts +0 -31
  76. package/dist/models/ModelFile.js +0 -45
  77. package/dist/models/Price.d.ts +0 -37
  78. package/dist/models/Price.js +0 -47
  79. package/dist/models/Product.d.ts +0 -113
  80. package/dist/models/Product.js +0 -78
  81. package/dist/models/ProductAdditionalFilesInner.d.ts +0 -37
  82. package/dist/models/ProductAdditionalFilesInner.js +0 -47
  83. package/dist/models/ProductsResponse.d.ts +0 -38
  84. package/dist/models/ProductsResponse.js +0 -48
  85. package/dist/models/SeoMetadata.d.ts +0 -31
  86. package/dist/models/SeoMetadata.js +0 -45
  87. package/dist/models/Stock.d.ts +0 -31
  88. package/dist/models/Stock.js +0 -45
  89. package/dist/models/UpdateProductRequest.d.ts +0 -87
  90. package/dist/models/UpdateProductRequest.js +0 -65
  91. package/dist/models/Variant.d.ts +0 -114
  92. package/dist/models/Variant.js +0 -78
  93. package/dist/models/VariantProduct.d.ts +0 -37
  94. package/dist/models/VariantProduct.js +0 -47
  95. package/dist/models/VariantsResponse.d.ts +0 -38
  96. package/dist/models/VariantsResponse.js +0 -48
  97. package/dist/models/index.d.ts +0 -23
  98. package/dist/models/index.js +0 -41
  99. package/dist/runtime.d.ts +0 -187
  100. package/dist/runtime.js +0 -565
  101. package/src/apis/ProductsApi.ts +0 -453
  102. package/src/apis/VariantsApi.ts +0 -186
  103. package/src/apis/index.ts +0 -4
  104. package/src/index.ts +0 -5
  105. package/src/models/ApiError.ts +0 -69
  106. package/src/models/Attribute.ts +0 -93
  107. package/src/models/AttributeThumbnail.ts +0 -80
  108. package/src/models/CreateProductRequest.ts +0 -153
  109. package/src/models/CreateProductRequestAdditionalFilesInner.ts +0 -65
  110. package/src/models/CreateProductRequestImagesInner.ts +0 -60
  111. package/src/models/CreateProductRequestSeoMetadata.ts +0 -60
  112. package/src/models/CreateProductRequestVariantsInner.ts +0 -124
  113. package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +0 -108
  114. package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +0 -75
  115. package/src/models/CreateProductRequestVariantsInnerImagesInner.ts +0 -65
  116. package/src/models/CreateProductRequestVariantsInnerRetailPrice.ts +0 -75
  117. package/src/models/CreateProductVariant.ts +0 -119
  118. package/src/models/CreateProductVariantApplicationsInner.ts +0 -103
  119. package/src/models/CreateProductVariantAttributesInner.ts +0 -70
  120. package/src/models/CreateProductVariantRetailPrice.ts +0 -70
  121. package/src/models/Image.ts +0 -108
  122. package/src/models/ImportProducts200Response.ts +0 -60
  123. package/src/models/ModelFile.ts +0 -60
  124. package/src/models/Price.ts +0 -68
  125. package/src/models/Product.ts +0 -190
  126. package/src/models/ProductAdditionalFilesInner.ts +0 -68
  127. package/src/models/ProductsResponse.ts +0 -75
  128. package/src/models/SeoMetadata.ts +0 -60
  129. package/src/models/Stock.ts +0 -60
  130. package/src/models/UpdateProductRequest.ts +0 -145
  131. package/src/models/Variant.ts +0 -195
  132. package/src/models/VariantProduct.ts +0 -68
  133. package/src/models/VariantsResponse.ts +0 -75
  134. package/src/models/index.ts +0 -25
  135. package/src/runtime.ts +0 -441
@@ -1,124 +0,0 @@
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
- import { exists, mapValues } from '../runtime';
16
- import type { CreateProductRequestVariantsInnerApplicationsInner } from './CreateProductRequestVariantsInnerApplicationsInner';
17
- import {
18
- CreateProductRequestVariantsInnerApplicationsInnerFromJSON,
19
- CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped,
20
- CreateProductRequestVariantsInnerApplicationsInnerToJSON,
21
- } from './CreateProductRequestVariantsInnerApplicationsInner';
22
- import type { CreateProductRequestVariantsInnerAttributesInner } from './CreateProductRequestVariantsInnerAttributesInner';
23
- import {
24
- CreateProductRequestVariantsInnerAttributesInnerFromJSON,
25
- CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped,
26
- CreateProductRequestVariantsInnerAttributesInnerToJSON,
27
- } from './CreateProductRequestVariantsInnerAttributesInner';
28
- import type { CreateProductRequestVariantsInnerImagesInner } from './CreateProductRequestVariantsInnerImagesInner';
29
- import {
30
- CreateProductRequestVariantsInnerImagesInnerFromJSON,
31
- CreateProductRequestVariantsInnerImagesInnerFromJSONTyped,
32
- CreateProductRequestVariantsInnerImagesInnerToJSON,
33
- } from './CreateProductRequestVariantsInnerImagesInner';
34
- import type { CreateProductRequestVariantsInnerRetailPrice } from './CreateProductRequestVariantsInnerRetailPrice';
35
- import {
36
- CreateProductRequestVariantsInnerRetailPriceFromJSON,
37
- CreateProductRequestVariantsInnerRetailPriceFromJSONTyped,
38
- CreateProductRequestVariantsInnerRetailPriceToJSON,
39
- } from './CreateProductRequestVariantsInnerRetailPrice';
40
-
41
- /**
42
- *
43
- * @export
44
- * @interface CreateProductRequestVariantsInner
45
- */
46
- export interface CreateProductRequestVariantsInner {
47
- /**
48
- * Attributes associated to a variant such as Colour and Size.
49
- * @type {Array<CreateProductRequestVariantsInnerAttributesInner>}
50
- * @memberof CreateProductRequestVariantsInner
51
- */
52
- attributes: Array<CreateProductRequestVariantsInnerAttributesInner>;
53
- /**
54
- *
55
- * @type {CreateProductRequestVariantsInnerRetailPrice}
56
- * @memberof CreateProductRequestVariantsInner
57
- */
58
- retailPrice: CreateProductRequestVariantsInnerRetailPrice;
59
- /**
60
- * A custom stock keeping unit for the variant.
61
- * @type {string}
62
- * @memberof CreateProductRequestVariantsInner
63
- */
64
- sku?: string;
65
- /**
66
- * Design applications. If not provided, the product will be blank.
67
- * @type {Array<CreateProductRequestVariantsInnerApplicationsInner>}
68
- * @memberof CreateProductRequestVariantsInner
69
- */
70
- applications?: Array<CreateProductRequestVariantsInnerApplicationsInner>;
71
- /**
72
- * 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.
73
- * @type {Array<CreateProductRequestVariantsInnerImagesInner>}
74
- * @memberof CreateProductRequestVariantsInner
75
- */
76
- images?: Array<CreateProductRequestVariantsInnerImagesInner>;
77
- }
78
-
79
- /**
80
- * Check if a given object implements the CreateProductRequestVariantsInner interface.
81
- */
82
- export function instanceOfCreateProductRequestVariantsInner(value: object): boolean {
83
- let isInstance = true;
84
- isInstance = isInstance && "attributes" in value;
85
- isInstance = isInstance && "retailPrice" in value;
86
-
87
- return isInstance;
88
- }
89
-
90
- export function CreateProductRequestVariantsInnerFromJSON(json: any): CreateProductRequestVariantsInner {
91
- return CreateProductRequestVariantsInnerFromJSONTyped(json, false);
92
- }
93
-
94
- export function CreateProductRequestVariantsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInner {
95
- if ((json === undefined) || (json === null)) {
96
- return json;
97
- }
98
- return {
99
-
100
- 'attributes': ((json['attributes'] as Array<any>).map(CreateProductRequestVariantsInnerAttributesInnerFromJSON)),
101
- 'retailPrice': CreateProductRequestVariantsInnerRetailPriceFromJSON(json['retailPrice']),
102
- 'sku': !exists(json, 'sku') ? undefined : json['sku'],
103
- 'applications': !exists(json, 'applications') ? undefined : ((json['applications'] as Array<any>).map(CreateProductRequestVariantsInnerApplicationsInnerFromJSON)),
104
- 'images': !exists(json, 'images') ? undefined : ((json['images'] as Array<any>).map(CreateProductRequestVariantsInnerImagesInnerFromJSON)),
105
- };
106
- }
107
-
108
- export function CreateProductRequestVariantsInnerToJSON(value?: CreateProductRequestVariantsInner | null): any {
109
- if (value === undefined) {
110
- return undefined;
111
- }
112
- if (value === null) {
113
- return null;
114
- }
115
- return {
116
-
117
- 'attributes': ((value.attributes as Array<any>).map(CreateProductRequestVariantsInnerAttributesInnerToJSON)),
118
- 'retailPrice': CreateProductRequestVariantsInnerRetailPriceToJSON(value.retailPrice),
119
- 'sku': value.sku,
120
- 'applications': value.applications === undefined ? undefined : ((value.applications as Array<any>).map(CreateProductRequestVariantsInnerApplicationsInnerToJSON)),
121
- 'images': value.images === undefined ? undefined : ((value.images as Array<any>).map(CreateProductRequestVariantsInnerImagesInnerToJSON)),
122
- };
123
- }
124
-
@@ -1,108 +0,0 @@
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
- import { exists, mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface CreateProductRequestVariantsInnerApplicationsInner
20
- */
21
- export interface CreateProductRequestVariantsInnerApplicationsInner {
22
- /**
23
- * Technology to use for the application.
24
- * @type {string}
25
- * @memberof CreateProductRequestVariantsInnerApplicationsInner
26
- */
27
- technology: CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum;
28
- /**
29
- * Placement of the application. Available placements depend on the chosen product and technology.
30
- * @type {string}
31
- * @memberof CreateProductRequestVariantsInnerApplicationsInner
32
- */
33
- placement: CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum;
34
- /**
35
- * 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.
36
- * @type {string}
37
- * @memberof CreateProductRequestVariantsInnerApplicationsInner
38
- */
39
- src: string;
40
- }
41
-
42
-
43
- /**
44
- * @export
45
- */
46
- export const CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = {
47
- Dtg: 'dtg',
48
- Embroidery: 'embroidery',
49
- Dtf: 'dtf'
50
- } as const;
51
- export type CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = typeof CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum[keyof typeof CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum];
52
-
53
- /**
54
- * @export
55
- */
56
- export const CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = {
57
- Front: 'front',
58
- Back: 'back',
59
- Left: 'left',
60
- Right: 'right',
61
- Neck: 'neck'
62
- } as const;
63
- export type CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = typeof CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum[keyof typeof CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum];
64
-
65
-
66
- /**
67
- * Check if a given object implements the CreateProductRequestVariantsInnerApplicationsInner interface.
68
- */
69
- export function instanceOfCreateProductRequestVariantsInnerApplicationsInner(value: object): boolean {
70
- let isInstance = true;
71
- isInstance = isInstance && "technology" in value;
72
- isInstance = isInstance && "placement" in value;
73
- isInstance = isInstance && "src" in value;
74
-
75
- return isInstance;
76
- }
77
-
78
- export function CreateProductRequestVariantsInnerApplicationsInnerFromJSON(json: any): CreateProductRequestVariantsInnerApplicationsInner {
79
- return CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped(json, false);
80
- }
81
-
82
- export function CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerApplicationsInner {
83
- if ((json === undefined) || (json === null)) {
84
- return json;
85
- }
86
- return {
87
-
88
- 'technology': json['technology'],
89
- 'placement': json['placement'],
90
- 'src': json['src'],
91
- };
92
- }
93
-
94
- export function CreateProductRequestVariantsInnerApplicationsInnerToJSON(value?: CreateProductRequestVariantsInnerApplicationsInner | null): any {
95
- if (value === undefined) {
96
- return undefined;
97
- }
98
- if (value === null) {
99
- return null;
100
- }
101
- return {
102
-
103
- 'technology': value.technology,
104
- 'placement': value.placement,
105
- 'src': value.src,
106
- };
107
- }
108
-
@@ -1,75 +0,0 @@
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
- import { exists, mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface CreateProductRequestVariantsInnerAttributesInner
20
- */
21
- export interface CreateProductRequestVariantsInnerAttributesInner {
22
- /**
23
- * Attribute name
24
- * @type {string}
25
- * @memberof CreateProductRequestVariantsInnerAttributesInner
26
- */
27
- name: string;
28
- /**
29
- * Attribute value
30
- * @type {string}
31
- * @memberof CreateProductRequestVariantsInnerAttributesInner
32
- */
33
- value: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the CreateProductRequestVariantsInnerAttributesInner interface.
38
- */
39
- export function instanceOfCreateProductRequestVariantsInnerAttributesInner(value: object): boolean {
40
- let isInstance = true;
41
- isInstance = isInstance && "name" in value;
42
- isInstance = isInstance && "value" in value;
43
-
44
- return isInstance;
45
- }
46
-
47
- export function CreateProductRequestVariantsInnerAttributesInnerFromJSON(json: any): CreateProductRequestVariantsInnerAttributesInner {
48
- return CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped(json, false);
49
- }
50
-
51
- export function CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerAttributesInner {
52
- if ((json === undefined) || (json === null)) {
53
- return json;
54
- }
55
- return {
56
-
57
- 'name': json['name'],
58
- 'value': json['value'],
59
- };
60
- }
61
-
62
- export function CreateProductRequestVariantsInnerAttributesInnerToJSON(value?: CreateProductRequestVariantsInnerAttributesInner | null): any {
63
- if (value === undefined) {
64
- return undefined;
65
- }
66
- if (value === null) {
67
- return null;
68
- }
69
- return {
70
-
71
- 'name': value.name,
72
- 'value': value.value,
73
- };
74
- }
75
-
@@ -1,65 +0,0 @@
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
- import { exists, mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface CreateProductRequestVariantsInnerImagesInner
20
- */
21
- export interface CreateProductRequestVariantsInnerImagesInner {
22
- /**
23
- * Publicly available 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
-
@@ -1,75 +0,0 @@
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
- import { exists, mapValues } from '../runtime';
16
- /**
17
- * Variant retail price including tax.
18
- * @export
19
- * @interface CreateProductRequestVariantsInnerRetailPrice
20
- */
21
- export interface CreateProductRequestVariantsInnerRetailPrice {
22
- /**
23
- * Price including tax in the specified currency.
24
- * @type {number}
25
- * @memberof CreateProductRequestVariantsInnerRetailPrice
26
- */
27
- amount: number;
28
- /**
29
- * Currency code for the currency the price is valued in.
30
- * @type {string}
31
- * @memberof CreateProductRequestVariantsInnerRetailPrice
32
- */
33
- currencyCode: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the CreateProductRequestVariantsInnerRetailPrice interface.
38
- */
39
- export function instanceOfCreateProductRequestVariantsInnerRetailPrice(value: object): boolean {
40
- let isInstance = true;
41
- isInstance = isInstance && "amount" in value;
42
- isInstance = isInstance && "currencyCode" in value;
43
-
44
- return isInstance;
45
- }
46
-
47
- export function CreateProductRequestVariantsInnerRetailPriceFromJSON(json: any): CreateProductRequestVariantsInnerRetailPrice {
48
- return CreateProductRequestVariantsInnerRetailPriceFromJSONTyped(json, false);
49
- }
50
-
51
- export function CreateProductRequestVariantsInnerRetailPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerRetailPrice {
52
- if ((json === undefined) || (json === null)) {
53
- return json;
54
- }
55
- return {
56
-
57
- 'amount': json['amount'],
58
- 'currencyCode': json['currencyCode'],
59
- };
60
- }
61
-
62
- export function CreateProductRequestVariantsInnerRetailPriceToJSON(value?: CreateProductRequestVariantsInnerRetailPrice | null): any {
63
- if (value === undefined) {
64
- return undefined;
65
- }
66
- if (value === null) {
67
- return null;
68
- }
69
- return {
70
-
71
- 'amount': value.amount,
72
- 'currencyCode': value.currencyCode,
73
- };
74
- }
75
-
@@ -1,119 +0,0 @@
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.10.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
- import { mapValues } from '../runtime';
16
- import type { CreateProductRequestImagesInner } from './CreateProductRequestImagesInner';
17
- import {
18
- CreateProductRequestImagesInnerFromJSON,
19
- CreateProductRequestImagesInnerFromJSONTyped,
20
- CreateProductRequestImagesInnerToJSON,
21
- } from './CreateProductRequestImagesInner';
22
- import type { CreateProductVariantApplicationsInner } from './CreateProductVariantApplicationsInner';
23
- import {
24
- CreateProductVariantApplicationsInnerFromJSON,
25
- CreateProductVariantApplicationsInnerFromJSONTyped,
26
- CreateProductVariantApplicationsInnerToJSON,
27
- } from './CreateProductVariantApplicationsInner';
28
- import type { CreateProductVariantAttributesInner } from './CreateProductVariantAttributesInner';
29
- import {
30
- CreateProductVariantAttributesInnerFromJSON,
31
- CreateProductVariantAttributesInnerFromJSONTyped,
32
- CreateProductVariantAttributesInnerToJSON,
33
- } from './CreateProductVariantAttributesInner';
34
- import type { CreateProductVariantRetailPrice } from './CreateProductVariantRetailPrice';
35
- import {
36
- CreateProductVariantRetailPriceFromJSON,
37
- CreateProductVariantRetailPriceFromJSONTyped,
38
- CreateProductVariantRetailPriceToJSON,
39
- } from './CreateProductVariantRetailPrice';
40
-
41
- /**
42
- *
43
- * @export
44
- * @interface CreateProductVariant
45
- */
46
- export interface CreateProductVariant {
47
- /**
48
- * Attributes associated to a variant such as Colour and Size.
49
- * @type {Array<CreateProductVariantAttributesInner>}
50
- * @memberof CreateProductVariant
51
- */
52
- attributes: Array<CreateProductVariantAttributesInner>;
53
- /**
54
- *
55
- * @type {CreateProductVariantRetailPrice}
56
- * @memberof CreateProductVariant
57
- */
58
- retailPrice: CreateProductVariantRetailPrice;
59
- /**
60
- * A custom stock keeping unit for the variant.
61
- * @type {string}
62
- * @memberof CreateProductVariant
63
- */
64
- sku?: string;
65
- /**
66
- * Design applications. If not provided, the product will be blank.
67
- * @type {Array<CreateProductVariantApplicationsInner>}
68
- * @memberof CreateProductVariant
69
- */
70
- applications?: Array<CreateProductVariantApplicationsInner>;
71
- /**
72
- * 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.
73
- * @type {Array<CreateProductRequestImagesInner>}
74
- * @memberof CreateProductVariant
75
- */
76
- images?: Array<CreateProductRequestImagesInner>;
77
- }
78
-
79
- /**
80
- * Check if a given object implements the CreateProductVariant interface.
81
- */
82
- export function instanceOfCreateProductVariant(value: object): boolean {
83
- if (!('attributes' in value)) return false;
84
- if (!('retailPrice' in value)) return false;
85
- return true;
86
- }
87
-
88
- export function CreateProductVariantFromJSON(json: any): CreateProductVariant {
89
- return CreateProductVariantFromJSONTyped(json, false);
90
- }
91
-
92
- export function CreateProductVariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariant {
93
- if (json == null) {
94
- return json;
95
- }
96
- return {
97
-
98
- 'attributes': ((json['attributes'] as Array<any>).map(CreateProductVariantAttributesInnerFromJSON)),
99
- 'retailPrice': CreateProductVariantRetailPriceFromJSON(json['retailPrice']),
100
- 'sku': json['sku'] == null ? undefined : json['sku'],
101
- 'applications': json['applications'] == null ? undefined : ((json['applications'] as Array<any>).map(CreateProductVariantApplicationsInnerFromJSON)),
102
- 'images': json['images'] == null ? undefined : ((json['images'] as Array<any>).map(CreateProductRequestImagesInnerFromJSON)),
103
- };
104
- }
105
-
106
- export function CreateProductVariantToJSON(value?: CreateProductVariant | null): any {
107
- if (value == null) {
108
- return value;
109
- }
110
- return {
111
-
112
- 'attributes': ((value['attributes'] as Array<any>).map(CreateProductVariantAttributesInnerToJSON)),
113
- 'retailPrice': CreateProductVariantRetailPriceToJSON(value['retailPrice']),
114
- 'sku': value['sku'],
115
- 'applications': value['applications'] == null ? undefined : ((value['applications'] as Array<any>).map(CreateProductVariantApplicationsInnerToJSON)),
116
- 'images': value['images'] == null ? undefined : ((value['images'] as Array<any>).map(CreateProductRequestImagesInnerToJSON)),
117
- };
118
- }
119
-
@@ -1,103 +0,0 @@
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.10.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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface CreateProductVariantApplicationsInner
20
- */
21
- export interface CreateProductVariantApplicationsInner {
22
- /**
23
- * Technology to use for the application.
24
- * @type {string}
25
- * @memberof CreateProductVariantApplicationsInner
26
- */
27
- technology: CreateProductVariantApplicationsInnerTechnologyEnum;
28
- /**
29
- * Placement of the application. Available placements depend on the chosen product and technology.
30
- * @type {string}
31
- * @memberof CreateProductVariantApplicationsInner
32
- */
33
- placement: CreateProductVariantApplicationsInnerPlacementEnum;
34
- /**
35
- * 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.
36
- * @type {string}
37
- * @memberof CreateProductVariantApplicationsInner
38
- */
39
- src: string;
40
- }
41
-
42
-
43
- /**
44
- * @export
45
- */
46
- export const CreateProductVariantApplicationsInnerTechnologyEnum = {
47
- Dtg: 'dtg',
48
- Embroidery: 'embroidery',
49
- Dtf: 'dtf'
50
- } as const;
51
- export type CreateProductVariantApplicationsInnerTechnologyEnum = typeof CreateProductVariantApplicationsInnerTechnologyEnum[keyof typeof CreateProductVariantApplicationsInnerTechnologyEnum];
52
-
53
- /**
54
- * @export
55
- */
56
- export const CreateProductVariantApplicationsInnerPlacementEnum = {
57
- Front: 'front',
58
- Back: 'back',
59
- Left: 'left',
60
- Right: 'right',
61
- Neck: 'neck'
62
- } as const;
63
- export type CreateProductVariantApplicationsInnerPlacementEnum = typeof CreateProductVariantApplicationsInnerPlacementEnum[keyof typeof CreateProductVariantApplicationsInnerPlacementEnum];
64
-
65
-
66
- /**
67
- * Check if a given object implements the CreateProductVariantApplicationsInner interface.
68
- */
69
- export function instanceOfCreateProductVariantApplicationsInner(value: object): boolean {
70
- if (!('technology' in value)) return false;
71
- if (!('placement' in value)) return false;
72
- if (!('src' in value)) return false;
73
- return true;
74
- }
75
-
76
- export function CreateProductVariantApplicationsInnerFromJSON(json: any): CreateProductVariantApplicationsInner {
77
- return CreateProductVariantApplicationsInnerFromJSONTyped(json, false);
78
- }
79
-
80
- export function CreateProductVariantApplicationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariantApplicationsInner {
81
- if (json == null) {
82
- return json;
83
- }
84
- return {
85
-
86
- 'technology': json['technology'],
87
- 'placement': json['placement'],
88
- 'src': json['src'],
89
- };
90
- }
91
-
92
- export function CreateProductVariantApplicationsInnerToJSON(value?: CreateProductVariantApplicationsInner | null): any {
93
- if (value == null) {
94
- return value;
95
- }
96
- return {
97
-
98
- 'technology': value['technology'],
99
- 'placement': value['placement'],
100
- 'src': value['src'],
101
- };
102
- }
103
-