@teemill/product-catalog 1.11.1 → 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 (202) hide show
  1. package/.openapi-generator/FILES +7 -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 -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,71 +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
- import { AttributeFromJSON, AttributeToJSON, } from './Attribute';
15
- import { ImageFromJSON, ImageToJSON, } from './Image';
16
- import { PriceFromJSON, PriceToJSON, } from './Price';
17
- import { StockFromJSON, StockToJSON, } from './Stock';
18
- import { VariantProductFromJSON, VariantProductToJSON, } from './VariantProduct';
19
- /**
20
- * Check if a given object implements the Variant interface.
21
- */
22
- export function instanceOfVariant(value) {
23
- if (!('attributes' in value))
24
- return false;
25
- if (!('sku' in value))
26
- return false;
27
- return true;
28
- }
29
- export function VariantFromJSON(json) {
30
- return VariantFromJSONTyped(json, false);
31
- }
32
- export function VariantFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'id': json['id'] == null ? undefined : json['id'],
38
- 'attributes': (json['attributes'].map(AttributeFromJSON)),
39
- 'sku': json['sku'],
40
- 'ref': json['ref'] == null ? undefined : json['ref'],
41
- 'product': json['product'] == null ? undefined : VariantProductFromJSON(json['product']),
42
- 'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
43
- 'retailPrice': json['retailPrice'] == null ? undefined : PriceFromJSON(json['retailPrice']),
44
- 'salePrice': json['salePrice'] == null ? undefined : PriceFromJSON(json['salePrice']),
45
- 'price': json['price'] == null ? undefined : PriceFromJSON(json['price']),
46
- 'stock': json['stock'] == null ? undefined : StockFromJSON(json['stock']),
47
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
48
- 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
49
- 'publishedAt': json['publishedAt'] == null ? undefined : (new Date(json['publishedAt'])),
50
- 'images': json['images'] == null ? undefined : (json['images'].map(ImageFromJSON)),
51
- };
52
- }
53
- export function VariantToJSON(value) {
54
- if (value == null) {
55
- return value;
56
- }
57
- return {
58
- 'id': value['id'],
59
- 'attributes': (value['attributes'].map(AttributeToJSON)),
60
- 'sku': value['sku'],
61
- 'ref': value['ref'],
62
- 'product': VariantProductToJSON(value['product']),
63
- 'retailPrice': PriceToJSON(value['retailPrice']),
64
- 'salePrice': PriceToJSON(value['salePrice']),
65
- 'stock': StockToJSON(value['stock']),
66
- 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
67
- 'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
68
- 'publishedAt': value['publishedAt'] == null ? undefined : ((value['publishedAt']).toISOString()),
69
- 'images': value['images'] == null ? undefined : (value['images'].map(ImageToJSON)),
70
- };
71
- }
@@ -1,37 +0,0 @@
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 VariantProduct
16
- */
17
- export interface VariantProduct {
18
- /**
19
- * Unique object identifier
20
- * @type {string}
21
- * @memberof VariantProduct
22
- */
23
- id?: string;
24
- /**
25
- * A reference to the resource location
26
- * @type {string}
27
- * @memberof VariantProduct
28
- */
29
- ref?: string;
30
- }
31
- /**
32
- * Check if a given object implements the VariantProduct interface.
33
- */
34
- export declare function instanceOfVariantProduct(value: object): boolean;
35
- export declare function VariantProductFromJSON(json: any): VariantProduct;
36
- export declare function VariantProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantProduct;
37
- export declare function VariantProductToJSON(value?: VariantProduct | null): any;
@@ -1,40 +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
- * Check if a given object implements the VariantProduct interface.
16
- */
17
- export function instanceOfVariantProduct(value) {
18
- return true;
19
- }
20
- export function VariantProductFromJSON(json) {
21
- return VariantProductFromJSONTyped(json, false);
22
- }
23
- export function VariantProductFromJSONTyped(json, ignoreDiscriminator) {
24
- if (json == null) {
25
- return json;
26
- }
27
- return {
28
- 'id': json['id'] == null ? undefined : json['id'],
29
- 'ref': json['ref'] == null ? undefined : json['ref'],
30
- };
31
- }
32
- export function VariantProductToJSON(value) {
33
- if (value == null) {
34
- return value;
35
- }
36
- return {
37
- 'id': value['id'],
38
- 'ref': value['ref'],
39
- };
40
- }
@@ -1,38 +0,0 @@
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 { Variant } from './Variant';
13
- /**
14
- *
15
- * @export
16
- * @interface VariantsResponse
17
- */
18
- export interface VariantsResponse {
19
- /**
20
- *
21
- * @type {Array<Variant>}
22
- * @memberof VariantsResponse
23
- */
24
- variants?: Array<Variant>;
25
- /**
26
- *
27
- * @type {number}
28
- * @memberof VariantsResponse
29
- */
30
- nextPageToken?: number;
31
- }
32
- /**
33
- * Check if a given object implements the VariantsResponse interface.
34
- */
35
- export declare function instanceOfVariantsResponse(value: object): boolean;
36
- export declare function VariantsResponseFromJSON(json: any): VariantsResponse;
37
- export declare function VariantsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantsResponse;
38
- export declare function VariantsResponseToJSON(value?: VariantsResponse | null): any;
@@ -1,41 +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
- import { VariantFromJSON, VariantToJSON, } from './Variant';
15
- /**
16
- * Check if a given object implements the VariantsResponse interface.
17
- */
18
- export function instanceOfVariantsResponse(value) {
19
- return true;
20
- }
21
- export function VariantsResponseFromJSON(json) {
22
- return VariantsResponseFromJSONTyped(json, false);
23
- }
24
- export function VariantsResponseFromJSONTyped(json, ignoreDiscriminator) {
25
- if (json == null) {
26
- return json;
27
- }
28
- return {
29
- 'variants': json['variants'] == null ? undefined : (json['variants'].map(VariantFromJSON)),
30
- 'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
31
- };
32
- }
33
- export function VariantsResponseToJSON(value) {
34
- if (value == null) {
35
- return value;
36
- }
37
- return {
38
- 'variants': value['variants'] == null ? undefined : (value['variants'].map(VariantToJSON)),
39
- 'nextPageToken': value['nextPageToken'],
40
- };
41
- }
@@ -1,23 +0,0 @@
1
- export * from './ApiError';
2
- export * from './Attribute';
3
- export * from './AttributeThumbnail';
4
- export * from './CreateProductRequest';
5
- export * from './CreateProductRequestImagesInner';
6
- export * from './CreateProductRequestSeoMetadata';
7
- export * from './CreateProductVariant';
8
- export * from './CreateProductVariantApplicationsInner';
9
- export * from './CreateProductVariantAttributesInner';
10
- export * from './CreateProductVariantRetailPrice';
11
- export * from './Image';
12
- export * from './ImportProducts200Response';
13
- export * from './ModelFile';
14
- export * from './Price';
15
- export * from './Product';
16
- export * from './ProductAdditionalFilesInner';
17
- export * from './ProductsResponse';
18
- export * from './SeoMetadata';
19
- export * from './Stock';
20
- export * from './UpdateProductRequest';
21
- export * from './Variant';
22
- export * from './VariantProduct';
23
- export * from './VariantsResponse';
@@ -1,25 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- export * from './ApiError';
4
- export * from './Attribute';
5
- export * from './AttributeThumbnail';
6
- export * from './CreateProductRequest';
7
- export * from './CreateProductRequestImagesInner';
8
- export * from './CreateProductRequestSeoMetadata';
9
- export * from './CreateProductVariant';
10
- export * from './CreateProductVariantApplicationsInner';
11
- export * from './CreateProductVariantAttributesInner';
12
- export * from './CreateProductVariantRetailPrice';
13
- export * from './Image';
14
- export * from './ImportProducts200Response';
15
- export * from './ModelFile';
16
- export * from './Price';
17
- export * from './Product';
18
- export * from './ProductAdditionalFilesInner';
19
- export * from './ProductsResponse';
20
- export * from './SeoMetadata';
21
- export * from './Stock';
22
- export * from './UpdateProductRequest';
23
- export * from './Variant';
24
- export * from './VariantProduct';
25
- export * from './VariantsResponse';
@@ -1,187 +0,0 @@
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
- export type OptionalProperties<T> = {
13
- [K in keyof T]-?: undefined extends T[K] ? K : never;
14
- }[keyof T];
15
- export type OptionalOnly<T> = Partial<Pick<T, OptionalProperties<T>>>;
16
- export declare const BASE_PATH: string;
17
- export interface ConfigurationParameters {
18
- basePath?: string;
19
- fetchApi?: FetchAPI;
20
- middleware?: Middleware[];
21
- queryParamsStringify?: (params: HTTPQuery) => string;
22
- username?: string;
23
- password?: string;
24
- apiKey?: string | ((name: string) => string);
25
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
26
- headers?: HTTPHeaders;
27
- credentials?: RequestCredentials;
28
- }
29
- export declare class Configuration {
30
- private configuration;
31
- constructor(configuration?: ConfigurationParameters);
32
- set config(configuration: Configuration);
33
- get basePath(): string;
34
- get fetchApi(): FetchAPI | undefined;
35
- get middleware(): Middleware[];
36
- get queryParamsStringify(): (params: HTTPQuery) => string;
37
- get username(): string | undefined;
38
- get password(): string | undefined;
39
- get apiKey(): ((name: string) => string) | undefined;
40
- get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
41
- get headers(): HTTPHeaders | undefined;
42
- get credentials(): RequestCredentials | undefined;
43
- }
44
- export declare const DefaultConfig: Configuration;
45
- /**
46
- * This is the base class for all generated API classes.
47
- */
48
- export declare class BaseAPI {
49
- protected configuration: Configuration;
50
- private static readonly jsonRegex;
51
- private middleware;
52
- constructor(configuration?: Configuration);
53
- isResponseError(error: any): error is ResponseError;
54
- withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
55
- withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
56
- withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
57
- /**
58
- * Check if the given MIME is a JSON MIME.
59
- * JSON MIME examples:
60
- * application/json
61
- * application/json; charset=UTF8
62
- * APPLICATION/JSON
63
- * application/vnd.company+json
64
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
65
- * @return True if the given MIME is JSON, false otherwise.
66
- */
67
- protected isJsonMime(mime: string | null | undefined): boolean;
68
- protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
69
- private createFetchParams;
70
- private fetchApi;
71
- /**
72
- * Create a shallow clone of `this` by constructing a new instance
73
- * and then shallow cloning data members.
74
- */
75
- private clone;
76
- }
77
- export declare class ResponseError extends Error {
78
- response: Response;
79
- name: "ResponseError";
80
- constructor(response: Response, msg?: string);
81
- }
82
- export declare class FetchError extends Error {
83
- cause: Error;
84
- name: "FetchError";
85
- constructor(cause: Error, msg?: string);
86
- }
87
- export declare class RequiredError extends Error {
88
- field: string;
89
- name: "RequiredError";
90
- constructor(field: string, msg?: string);
91
- }
92
- export declare const COLLECTION_FORMATS: {
93
- csv: string;
94
- ssv: string;
95
- tsv: string;
96
- pipes: string;
97
- };
98
- export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
99
- export type Json = any;
100
- export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
101
- export type HTTPHeaders = {
102
- [key: string]: string;
103
- };
104
- export type HTTPQuery = {
105
- [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
106
- };
107
- export type HTTPBody = Json | FormData | URLSearchParams;
108
- export type HTTPRequestInit = {
109
- headers?: HTTPHeaders;
110
- method: HTTPMethod;
111
- credentials?: RequestCredentials;
112
- body?: HTTPBody;
113
- };
114
- export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
115
- export type InitOverrideFunction = (requestContext: {
116
- init: HTTPRequestInit;
117
- context: RequestOpts;
118
- }) => Promise<RequestInit>;
119
- export interface FetchParams {
120
- url: string;
121
- init: RequestInit;
122
- }
123
- export interface RequestOpts {
124
- path: string;
125
- method: HTTPMethod;
126
- headers: HTTPHeaders;
127
- query?: HTTPQuery;
128
- body?: HTTPBody;
129
- }
130
- export declare function exists(json: any, key: string): boolean;
131
- export declare function querystring(params: HTTPQuery, prefix?: string): string;
132
- export declare function mapValues(data: any, fn: (item: any) => any): {};
133
- export declare function canConsumeForm(consumes: Consume[]): boolean;
134
- export interface Consume {
135
- contentType: string;
136
- }
137
- export interface RequestContext {
138
- fetch: FetchAPI;
139
- url: string;
140
- init: RequestInit;
141
- }
142
- export interface ResponseContext {
143
- fetch: FetchAPI;
144
- url: string;
145
- init: RequestInit;
146
- response: Response;
147
- }
148
- export interface ErrorContext {
149
- fetch: FetchAPI;
150
- url: string;
151
- init: RequestInit;
152
- error: unknown;
153
- response?: Response;
154
- }
155
- export interface Middleware {
156
- pre?(context: RequestContext): Promise<FetchParams | void>;
157
- post?(context: ResponseContext): Promise<Response | void>;
158
- onError?(context: ErrorContext): Promise<Response | void>;
159
- }
160
- export interface ApiResponse<T> {
161
- raw: Response;
162
- value(): Promise<T>;
163
- }
164
- export interface ResponseTransformer<T> {
165
- (json: any): T;
166
- }
167
- export declare class JSONApiResponse<T> {
168
- raw: Response;
169
- private transformer;
170
- constructor(raw: Response, transformer?: ResponseTransformer<T>);
171
- value(): Promise<T>;
172
- }
173
- export declare class VoidApiResponse {
174
- raw: Response;
175
- constructor(raw: Response);
176
- value(): Promise<void>;
177
- }
178
- export declare class BlobApiResponse {
179
- raw: Response;
180
- constructor(raw: Response);
181
- value(): Promise<Blob>;
182
- }
183
- export declare class TextApiResponse {
184
- raw: Response;
185
- constructor(raw: Response);
186
- value(): Promise<string>;
187
- }