@teemill/product-catalog 1.11.1 → 1.13.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 (202) hide show
  1. package/.openapi-generator/FILES +6 -29
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +3 -3
  4. package/api.ts +1598 -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 +1126 -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 +1126 -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 -3
  25. package/dist/esm/index.js +13 -3
  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 +15 -3
  31. package/tsconfig.json +4 -6
  32. package/dist/apis/ProductsApi.d.ts +0 -107
  33. package/dist/apis/ProductsApi.js +0 -304
  34. package/dist/apis/VariantsApi.d.ts +0 -50
  35. package/dist/apis/VariantsApi.js +0 -131
  36. package/dist/apis/index.d.ts +0 -2
  37. package/dist/apis/index.js +0 -20
  38. package/dist/esm/apis/ProductsApi.d.ts +0 -107
  39. package/dist/esm/apis/ProductsApi.js +0 -300
  40. package/dist/esm/apis/VariantsApi.d.ts +0 -50
  41. package/dist/esm/apis/VariantsApi.js +0 -127
  42. package/dist/esm/apis/index.d.ts +0 -2
  43. package/dist/esm/apis/index.js +0 -4
  44. package/dist/esm/models/ApiError.d.ts +0 -37
  45. package/dist/esm/models/ApiError.js +0 -42
  46. package/dist/esm/models/Attribute.d.ts +0 -50
  47. package/dist/esm/models/Attribute.js +0 -49
  48. package/dist/esm/models/AttributeThumbnail.d.ts +0 -46
  49. package/dist/esm/models/AttributeThumbnail.js +0 -48
  50. package/dist/esm/models/CreateProductRequest.d.ts +0 -88
  51. package/dist/esm/models/CreateProductRequest.js +0 -63
  52. package/dist/esm/models/CreateProductRequestAdditionalFilesInner.d.ts +0 -31
  53. package/dist/esm/models/CreateProductRequestAdditionalFilesInner.js +0 -43
  54. package/dist/esm/models/CreateProductRequestImagesInner.d.ts +0 -31
  55. package/dist/esm/models/CreateProductRequestImagesInner.js +0 -38
  56. package/dist/esm/models/CreateProductRequestSeoMetadata.d.ts +0 -31
  57. package/dist/esm/models/CreateProductRequestSeoMetadata.js +0 -38
  58. package/dist/esm/models/CreateProductRequestVariantsInner.d.ts +0 -59
  59. package/dist/esm/models/CreateProductRequestVariantsInner.js +0 -57
  60. package/dist/esm/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +0 -63
  61. package/dist/esm/models/CreateProductRequestVariantsInnerApplicationsInner.js +0 -67
  62. package/dist/esm/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +0 -37
  63. package/dist/esm/models/CreateProductRequestVariantsInnerAttributesInner.js +0 -46
  64. package/dist/esm/models/CreateProductRequestVariantsInnerImagesInner.d.ts +0 -31
  65. package/dist/esm/models/CreateProductRequestVariantsInnerImagesInner.js +0 -43
  66. package/dist/esm/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +0 -37
  67. package/dist/esm/models/CreateProductRequestVariantsInnerRetailPrice.js +0 -46
  68. package/dist/esm/models/CreateProductVariant.d.ts +0 -59
  69. package/dist/esm/models/CreateProductVariant.js +0 -54
  70. package/dist/esm/models/CreateProductVariantApplicationsInner.d.ts +0 -54
  71. package/dist/esm/models/CreateProductVariantApplicationsInner.js +0 -58
  72. package/dist/esm/models/CreateProductVariantAttributesInner.d.ts +0 -37
  73. package/dist/esm/models/CreateProductVariantAttributesInner.js +0 -44
  74. package/dist/esm/models/CreateProductVariantRetailPrice.d.ts +0 -37
  75. package/dist/esm/models/CreateProductVariantRetailPrice.js +0 -44
  76. package/dist/esm/models/Image.d.ts +0 -67
  77. package/dist/esm/models/Image.js +0 -50
  78. package/dist/esm/models/ImportProducts200Response.d.ts +0 -31
  79. package/dist/esm/models/ImportProducts200Response.js +0 -38
  80. package/dist/esm/models/ModelFile.d.ts +0 -31
  81. package/dist/esm/models/ModelFile.js +0 -38
  82. package/dist/esm/models/Price.d.ts +0 -37
  83. package/dist/esm/models/Price.js +0 -40
  84. package/dist/esm/models/Product.d.ts +0 -113
  85. package/dist/esm/models/Product.js +0 -71
  86. package/dist/esm/models/ProductAdditionalFilesInner.d.ts +0 -37
  87. package/dist/esm/models/ProductAdditionalFilesInner.js +0 -40
  88. package/dist/esm/models/ProductsResponse.d.ts +0 -38
  89. package/dist/esm/models/ProductsResponse.js +0 -41
  90. package/dist/esm/models/SeoMetadata.d.ts +0 -31
  91. package/dist/esm/models/SeoMetadata.js +0 -38
  92. package/dist/esm/models/Stock.d.ts +0 -31
  93. package/dist/esm/models/Stock.js +0 -38
  94. package/dist/esm/models/UpdateProductRequest.d.ts +0 -87
  95. package/dist/esm/models/UpdateProductRequest.js +0 -58
  96. package/dist/esm/models/Variant.d.ts +0 -114
  97. package/dist/esm/models/Variant.js +0 -71
  98. package/dist/esm/models/VariantProduct.d.ts +0 -37
  99. package/dist/esm/models/VariantProduct.js +0 -40
  100. package/dist/esm/models/VariantsResponse.d.ts +0 -38
  101. package/dist/esm/models/VariantsResponse.js +0 -41
  102. package/dist/esm/models/index.d.ts +0 -23
  103. package/dist/esm/models/index.js +0 -25
  104. package/dist/esm/runtime.d.ts +0 -187
  105. package/dist/esm/runtime.js +0 -333
  106. package/dist/models/ApiError.d.ts +0 -37
  107. package/dist/models/ApiError.js +0 -49
  108. package/dist/models/Attribute.d.ts +0 -50
  109. package/dist/models/Attribute.js +0 -56
  110. package/dist/models/AttributeThumbnail.d.ts +0 -46
  111. package/dist/models/AttributeThumbnail.js +0 -55
  112. package/dist/models/CreateProductRequest.d.ts +0 -88
  113. package/dist/models/CreateProductRequest.js +0 -70
  114. package/dist/models/CreateProductRequestAdditionalFilesInner.d.ts +0 -31
  115. package/dist/models/CreateProductRequestAdditionalFilesInner.js +0 -50
  116. package/dist/models/CreateProductRequestImagesInner.d.ts +0 -31
  117. package/dist/models/CreateProductRequestImagesInner.js +0 -45
  118. package/dist/models/CreateProductRequestSeoMetadata.d.ts +0 -31
  119. package/dist/models/CreateProductRequestSeoMetadata.js +0 -45
  120. package/dist/models/CreateProductRequestVariantsInner.d.ts +0 -59
  121. package/dist/models/CreateProductRequestVariantsInner.js +0 -64
  122. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +0 -63
  123. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +0 -74
  124. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +0 -37
  125. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +0 -53
  126. package/dist/models/CreateProductRequestVariantsInnerImagesInner.d.ts +0 -31
  127. package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +0 -50
  128. package/dist/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +0 -37
  129. package/dist/models/CreateProductRequestVariantsInnerRetailPrice.js +0 -53
  130. package/dist/models/CreateProductVariant.d.ts +0 -59
  131. package/dist/models/CreateProductVariant.js +0 -61
  132. package/dist/models/CreateProductVariantApplicationsInner.d.ts +0 -54
  133. package/dist/models/CreateProductVariantApplicationsInner.js +0 -65
  134. package/dist/models/CreateProductVariantAttributesInner.d.ts +0 -37
  135. package/dist/models/CreateProductVariantAttributesInner.js +0 -51
  136. package/dist/models/CreateProductVariantRetailPrice.d.ts +0 -37
  137. package/dist/models/CreateProductVariantRetailPrice.js +0 -51
  138. package/dist/models/Image.d.ts +0 -67
  139. package/dist/models/Image.js +0 -57
  140. package/dist/models/ImportProducts200Response.d.ts +0 -31
  141. package/dist/models/ImportProducts200Response.js +0 -45
  142. package/dist/models/ModelFile.d.ts +0 -31
  143. package/dist/models/ModelFile.js +0 -45
  144. package/dist/models/Price.d.ts +0 -37
  145. package/dist/models/Price.js +0 -47
  146. package/dist/models/Product.d.ts +0 -113
  147. package/dist/models/Product.js +0 -78
  148. package/dist/models/ProductAdditionalFilesInner.d.ts +0 -37
  149. package/dist/models/ProductAdditionalFilesInner.js +0 -47
  150. package/dist/models/ProductsResponse.d.ts +0 -38
  151. package/dist/models/ProductsResponse.js +0 -48
  152. package/dist/models/SeoMetadata.d.ts +0 -31
  153. package/dist/models/SeoMetadata.js +0 -45
  154. package/dist/models/Stock.d.ts +0 -31
  155. package/dist/models/Stock.js +0 -45
  156. package/dist/models/UpdateProductRequest.d.ts +0 -87
  157. package/dist/models/UpdateProductRequest.js +0 -65
  158. package/dist/models/Variant.d.ts +0 -114
  159. package/dist/models/Variant.js +0 -78
  160. package/dist/models/VariantProduct.d.ts +0 -37
  161. package/dist/models/VariantProduct.js +0 -47
  162. package/dist/models/VariantsResponse.d.ts +0 -38
  163. package/dist/models/VariantsResponse.js +0 -48
  164. package/dist/models/index.d.ts +0 -23
  165. package/dist/models/index.js +0 -41
  166. package/dist/runtime.d.ts +0 -187
  167. package/dist/runtime.js +0 -349
  168. package/src/apis/ProductsApi.ts +0 -453
  169. package/src/apis/VariantsApi.ts +0 -186
  170. package/src/apis/index.ts +0 -4
  171. package/src/index.ts +0 -5
  172. package/src/models/ApiError.ts +0 -69
  173. package/src/models/Attribute.ts +0 -93
  174. package/src/models/AttributeThumbnail.ts +0 -80
  175. package/src/models/CreateProductRequest.ts +0 -153
  176. package/src/models/CreateProductRequestAdditionalFilesInner.ts +0 -65
  177. package/src/models/CreateProductRequestImagesInner.ts +0 -60
  178. package/src/models/CreateProductRequestSeoMetadata.ts +0 -60
  179. package/src/models/CreateProductRequestVariantsInner.ts +0 -124
  180. package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +0 -108
  181. package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +0 -75
  182. package/src/models/CreateProductRequestVariantsInnerImagesInner.ts +0 -65
  183. package/src/models/CreateProductRequestVariantsInnerRetailPrice.ts +0 -75
  184. package/src/models/CreateProductVariant.ts +0 -119
  185. package/src/models/CreateProductVariantApplicationsInner.ts +0 -93
  186. package/src/models/CreateProductVariantAttributesInner.ts +0 -70
  187. package/src/models/CreateProductVariantRetailPrice.ts +0 -70
  188. package/src/models/Image.ts +0 -108
  189. package/src/models/ImportProducts200Response.ts +0 -60
  190. package/src/models/ModelFile.ts +0 -60
  191. package/src/models/Price.ts +0 -68
  192. package/src/models/Product.ts +0 -190
  193. package/src/models/ProductAdditionalFilesInner.ts +0 -68
  194. package/src/models/ProductsResponse.ts +0 -75
  195. package/src/models/SeoMetadata.ts +0 -60
  196. package/src/models/Stock.ts +0 -60
  197. package/src/models/UpdateProductRequest.ts +0 -145
  198. package/src/models/Variant.ts +0 -195
  199. package/src/models/VariantProduct.ts +0 -68
  200. package/src/models/VariantsResponse.ts +0 -75
  201. package/src/models/index.ts +0 -25
  202. package/src/runtime.ts +0 -441
@@ -1,70 +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.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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface CreateProductVariantAttributesInner
20
- */
21
- export interface CreateProductVariantAttributesInner {
22
- /**
23
- * Attribute name
24
- * @type {string}
25
- * @memberof CreateProductVariantAttributesInner
26
- */
27
- name: string;
28
- /**
29
- * Attribute value
30
- * @type {string}
31
- * @memberof CreateProductVariantAttributesInner
32
- */
33
- value: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the CreateProductVariantAttributesInner interface.
38
- */
39
- export function instanceOfCreateProductVariantAttributesInner(value: object): boolean {
40
- if (!('name' in value)) return false;
41
- if (!('value' in value)) return false;
42
- return true;
43
- }
44
-
45
- export function CreateProductVariantAttributesInnerFromJSON(json: any): CreateProductVariantAttributesInner {
46
- return CreateProductVariantAttributesInnerFromJSONTyped(json, false);
47
- }
48
-
49
- export function CreateProductVariantAttributesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariantAttributesInner {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'name': json['name'],
56
- 'value': json['value'],
57
- };
58
- }
59
-
60
- export function CreateProductVariantAttributesInnerToJSON(value?: CreateProductVariantAttributesInner | null): any {
61
- if (value == null) {
62
- return value;
63
- }
64
- return {
65
-
66
- 'name': value['name'],
67
- 'value': value['value'],
68
- };
69
- }
70
-
@@ -1,70 +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.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
- import { mapValues } from '../runtime';
16
- /**
17
- * Variant retail price including tax.
18
- * @export
19
- * @interface CreateProductVariantRetailPrice
20
- */
21
- export interface CreateProductVariantRetailPrice {
22
- /**
23
- * Price including tax in the specified currency.
24
- * @type {number}
25
- * @memberof CreateProductVariantRetailPrice
26
- */
27
- amount: number;
28
- /**
29
- * Currency code for the currency the price is valued in.
30
- * @type {string}
31
- * @memberof CreateProductVariantRetailPrice
32
- */
33
- currencyCode: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the CreateProductVariantRetailPrice interface.
38
- */
39
- export function instanceOfCreateProductVariantRetailPrice(value: object): boolean {
40
- if (!('amount' in value)) return false;
41
- if (!('currencyCode' in value)) return false;
42
- return true;
43
- }
44
-
45
- export function CreateProductVariantRetailPriceFromJSON(json: any): CreateProductVariantRetailPrice {
46
- return CreateProductVariantRetailPriceFromJSONTyped(json, false);
47
- }
48
-
49
- export function CreateProductVariantRetailPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariantRetailPrice {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'amount': json['amount'],
56
- 'currencyCode': json['currencyCode'],
57
- };
58
- }
59
-
60
- export function CreateProductVariantRetailPriceToJSON(value?: CreateProductVariantRetailPrice | null): any {
61
- if (value == null) {
62
- return value;
63
- }
64
- return {
65
-
66
- 'amount': value['amount'],
67
- 'currencyCode': value['currencyCode'],
68
- };
69
- }
70
-
@@ -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.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
- import { mapValues } from '../runtime';
16
- /**
17
- * Image description
18
- * @export
19
- * @interface Image
20
- */
21
- export interface Image {
22
- /**
23
- * Unique object identifier
24
- * @type {string}
25
- * @memberof Image
26
- */
27
- id?: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof Image
32
- */
33
- src?: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof Image
38
- */
39
- alt?: string;
40
- /**
41
- * List of variant Ids
42
- * @type {Array<string>}
43
- * @memberof Image
44
- */
45
- variantIds?: Array<string>;
46
- /**
47
- *
48
- * @type {number}
49
- * @memberof Image
50
- */
51
- sortOrder?: number;
52
- /**
53
- *
54
- * @type {string}
55
- * @memberof Image
56
- */
57
- createdAt?: string;
58
- /**
59
- *
60
- * @type {string}
61
- * @memberof Image
62
- */
63
- updatedAt?: string;
64
- }
65
-
66
- /**
67
- * Check if a given object implements the Image interface.
68
- */
69
- export function instanceOfImage(value: object): boolean {
70
- return true;
71
- }
72
-
73
- export function ImageFromJSON(json: any): Image {
74
- return ImageFromJSONTyped(json, false);
75
- }
76
-
77
- export function ImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Image {
78
- if (json == null) {
79
- return json;
80
- }
81
- return {
82
-
83
- 'id': json['id'] == null ? undefined : json['id'],
84
- 'src': json['src'] == null ? undefined : json['src'],
85
- 'alt': json['alt'] == null ? undefined : json['alt'],
86
- 'variantIds': json['variantIds'] == null ? undefined : json['variantIds'],
87
- 'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
88
- 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
89
- 'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
90
- };
91
- }
92
-
93
- export function ImageToJSON(value?: Image | null): any {
94
- if (value == null) {
95
- return value;
96
- }
97
- return {
98
-
99
- 'id': value['id'],
100
- 'src': value['src'],
101
- 'alt': value['alt'],
102
- 'variantIds': value['variantIds'],
103
- 'sortOrder': value['sortOrder'],
104
- 'createdAt': value['createdAt'],
105
- 'updatedAt': value['updatedAt'],
106
- };
107
- }
108
-
@@ -1,60 +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.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
- import { 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
- return true;
35
- }
36
-
37
- export function ImportProducts200ResponseFromJSON(json: any): ImportProducts200Response {
38
- return ImportProducts200ResponseFromJSONTyped(json, false);
39
- }
40
-
41
- export function ImportProducts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportProducts200Response {
42
- if (json == null) {
43
- return json;
44
- }
45
- return {
46
-
47
- 'importId': json['importId'] == null ? undefined : json['importId'],
48
- };
49
- }
50
-
51
- export function ImportProducts200ResponseToJSON(value?: ImportProducts200Response | null): any {
52
- if (value == null) {
53
- return value;
54
- }
55
- return {
56
-
57
- 'importId': value['importId'],
58
- };
59
- }
60
-
@@ -1,60 +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.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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface ModelFile
20
- */
21
- export interface ModelFile {
22
- /**
23
- * Publicly available file URL.
24
- * @type {string}
25
- * @memberof ModelFile
26
- */
27
- src?: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the ModelFile interface.
32
- */
33
- export function instanceOfModelFile(value: object): boolean {
34
- return true;
35
- }
36
-
37
- export function ModelFileFromJSON(json: any): ModelFile {
38
- return ModelFileFromJSONTyped(json, false);
39
- }
40
-
41
- export function ModelFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelFile {
42
- if (json == null) {
43
- return json;
44
- }
45
- return {
46
-
47
- 'src': json['src'] == null ? undefined : json['src'],
48
- };
49
- }
50
-
51
- export function ModelFileToJSON(value?: ModelFile | null): any {
52
- if (value == null) {
53
- return value;
54
- }
55
- return {
56
-
57
- 'src': value['src'],
58
- };
59
- }
60
-
@@ -1,68 +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.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
- import { mapValues } from '../runtime';
16
- /**
17
- * Standard price definition that defines the amount, tax rate and currency.
18
- * @export
19
- * @interface Price
20
- */
21
- export interface Price {
22
- /**
23
- * Price including tax in the specified currency.
24
- * @type {number}
25
- * @memberof Price
26
- */
27
- amount?: number;
28
- /**
29
- * Currency code for the currency the price is valued in.
30
- * @type {string}
31
- * @memberof Price
32
- */
33
- currencyCode?: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the Price interface.
38
- */
39
- export function instanceOfPrice(value: object): boolean {
40
- return true;
41
- }
42
-
43
- export function PriceFromJSON(json: any): Price {
44
- return PriceFromJSONTyped(json, false);
45
- }
46
-
47
- export function PriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Price {
48
- if (json == null) {
49
- return json;
50
- }
51
- return {
52
-
53
- 'amount': json['amount'] == null ? undefined : json['amount'],
54
- 'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
55
- };
56
- }
57
-
58
- export function PriceToJSON(value?: Price | null): any {
59
- if (value == null) {
60
- return value;
61
- }
62
- return {
63
-
64
- 'amount': value['amount'],
65
- 'currencyCode': value['currencyCode'],
66
- };
67
- }
68
-
@@ -1,190 +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.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
- import { mapValues } from '../runtime';
16
- import type { Image } from './Image';
17
- import {
18
- ImageFromJSON,
19
- ImageFromJSONTyped,
20
- ImageToJSON,
21
- } from './Image';
22
- import type { ProductAdditionalFilesInner } from './ProductAdditionalFilesInner';
23
- import {
24
- ProductAdditionalFilesInnerFromJSON,
25
- ProductAdditionalFilesInnerFromJSONTyped,
26
- ProductAdditionalFilesInnerToJSON,
27
- } from './ProductAdditionalFilesInner';
28
- import type { SeoMetadata } from './SeoMetadata';
29
- import {
30
- SeoMetadataFromJSON,
31
- SeoMetadataFromJSONTyped,
32
- SeoMetadataToJSON,
33
- } from './SeoMetadata';
34
- import type { Variant } from './Variant';
35
- import {
36
- VariantFromJSON,
37
- VariantFromJSONTyped,
38
- VariantToJSON,
39
- } from './Variant';
40
-
41
- /**
42
- *
43
- * @export
44
- * @interface Product
45
- */
46
- export interface Product {
47
- /**
48
- * Unique object identifier
49
- * @type {string}
50
- * @memberof Product
51
- */
52
- id?: string;
53
- /**
54
- * A reference to the resource location
55
- * @type {string}
56
- * @memberof Product
57
- */
58
- ref?: string;
59
- /**
60
- *
61
- * @type {string}
62
- * @memberof Product
63
- */
64
- title: string;
65
- /**
66
- *
67
- * @type {string}
68
- * @memberof Product
69
- */
70
- description: string;
71
- /**
72
- *
73
- * @type {string}
74
- * @memberof Product
75
- */
76
- readonly slug?: string;
77
- /**
78
- *
79
- * @type {boolean}
80
- * @memberof Product
81
- */
82
- enabled?: boolean;
83
- /**
84
- *
85
- * @type {SeoMetadata}
86
- * @memberof Product
87
- */
88
- seoMetadata?: SeoMetadata;
89
- /**
90
- *
91
- * @type {Array<string>}
92
- * @memberof Product
93
- */
94
- tags?: Array<string>;
95
- /**
96
- *
97
- * @type {Date}
98
- * @memberof Product
99
- */
100
- createdAt?: Date;
101
- /**
102
- *
103
- * @type {Date}
104
- * @memberof Product
105
- */
106
- updatedAt?: Date;
107
- /**
108
- *
109
- * @type {Date}
110
- * @memberof Product
111
- */
112
- publishedAt?: Date;
113
- /**
114
- * Images
115
- * @type {Array<Image>}
116
- * @memberof Product
117
- */
118
- images?: Array<Image>;
119
- /**
120
- * Variants
121
- * @type {Array<Variant>}
122
- * @memberof Product
123
- */
124
- variants?: Array<Variant>;
125
- /**
126
- * Additional files attached to the product.
127
- * @type {Array<ProductAdditionalFilesInner>}
128
- * @memberof Product
129
- */
130
- additionalFiles?: Array<ProductAdditionalFilesInner>;
131
- }
132
-
133
- /**
134
- * Check if a given object implements the Product interface.
135
- */
136
- export function instanceOfProduct(value: object): boolean {
137
- if (!('title' in value)) return false;
138
- if (!('description' in value)) return false;
139
- return true;
140
- }
141
-
142
- export function ProductFromJSON(json: any): Product {
143
- return ProductFromJSONTyped(json, false);
144
- }
145
-
146
- export function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product {
147
- if (json == null) {
148
- return json;
149
- }
150
- return {
151
-
152
- 'id': json['id'] == null ? undefined : json['id'],
153
- 'ref': json['ref'] == null ? undefined : json['ref'],
154
- 'title': json['title'],
155
- 'description': json['description'],
156
- 'slug': json['slug'] == null ? undefined : json['slug'],
157
- 'enabled': json['enabled'] == null ? undefined : json['enabled'],
158
- 'seoMetadata': json['seoMetadata'] == null ? undefined : SeoMetadataFromJSON(json['seoMetadata']),
159
- 'tags': json['tags'] == null ? undefined : json['tags'],
160
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
161
- 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
162
- 'publishedAt': json['publishedAt'] == null ? undefined : (new Date(json['publishedAt'])),
163
- 'images': json['images'] == null ? undefined : ((json['images'] as Array<any>).map(ImageFromJSON)),
164
- 'variants': json['variants'] == null ? undefined : ((json['variants'] as Array<any>).map(VariantFromJSON)),
165
- 'additionalFiles': json['additionalFiles'] == null ? undefined : ((json['additionalFiles'] as Array<any>).map(ProductAdditionalFilesInnerFromJSON)),
166
- };
167
- }
168
-
169
- export function ProductToJSON(value?: Omit<Product, 'slug'> | null): any {
170
- if (value == null) {
171
- return value;
172
- }
173
- return {
174
-
175
- 'id': value['id'],
176
- 'ref': value['ref'],
177
- 'title': value['title'],
178
- 'description': value['description'],
179
- 'enabled': value['enabled'],
180
- 'seoMetadata': SeoMetadataToJSON(value['seoMetadata']),
181
- 'tags': value['tags'],
182
- 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
183
- 'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
184
- 'publishedAt': value['publishedAt'] == null ? undefined : ((value['publishedAt']).toISOString()),
185
- 'images': value['images'] == null ? undefined : ((value['images'] as Array<any>).map(ImageToJSON)),
186
- 'variants': value['variants'] == null ? undefined : ((value['variants'] as Array<any>).map(VariantToJSON)),
187
- 'additionalFiles': value['additionalFiles'] == null ? undefined : ((value['additionalFiles'] as Array<any>).map(ProductAdditionalFilesInnerToJSON)),
188
- };
189
- }
190
-
@@ -1,68 +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.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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface ProductAdditionalFilesInner
20
- */
21
- export interface ProductAdditionalFilesInner {
22
- /**
23
- * Unique object identifier
24
- * @type {string}
25
- * @memberof ProductAdditionalFilesInner
26
- */
27
- id?: string;
28
- /**
29
- * File URL
30
- * @type {string}
31
- * @memberof ProductAdditionalFilesInner
32
- */
33
- src?: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the ProductAdditionalFilesInner interface.
38
- */
39
- export function instanceOfProductAdditionalFilesInner(value: object): boolean {
40
- return true;
41
- }
42
-
43
- export function ProductAdditionalFilesInnerFromJSON(json: any): ProductAdditionalFilesInner {
44
- return ProductAdditionalFilesInnerFromJSONTyped(json, false);
45
- }
46
-
47
- export function ProductAdditionalFilesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAdditionalFilesInner {
48
- if (json == null) {
49
- return json;
50
- }
51
- return {
52
-
53
- 'id': json['id'] == null ? undefined : json['id'],
54
- 'src': json['src'] == null ? undefined : json['src'],
55
- };
56
- }
57
-
58
- export function ProductAdditionalFilesInnerToJSON(value?: ProductAdditionalFilesInner | null): any {
59
- if (value == null) {
60
- return value;
61
- }
62
- return {
63
-
64
- 'id': value['id'],
65
- 'src': value['src'],
66
- };
67
- }
68
-