@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,88 +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.10.0
6
- * Contact: hello@teemill.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { CreateProductRequestImagesInner } from './CreateProductRequestImagesInner';
13
- import type { CreateProductRequestSeoMetadata } from './CreateProductRequestSeoMetadata';
14
- import type { CreateProductVariant } from './CreateProductVariant';
15
- /**
16
- *
17
- * @export
18
- * @interface CreateProductRequest
19
- */
20
- export interface CreateProductRequest {
21
- /**
22
- * Reference to the product in the GFN catalog that will be used as a base for this product. A list of available products for the given project can be obtained from the GFN Catalog API.
23
- * @type {string}
24
- * @memberof CreateProductRequest
25
- */
26
- gfnProductRef: string;
27
- /**
28
- * Product title
29
- * @type {string}
30
- * @memberof CreateProductRequest
31
- */
32
- title?: string;
33
- /**
34
- * Product description
35
- * @type {string}
36
- * @memberof CreateProductRequest
37
- */
38
- description?: string;
39
- /**
40
- * Whether the product is enabled upon creation.
41
- * @type {boolean}
42
- * @memberof CreateProductRequest
43
- */
44
- enabled?: boolean;
45
- /**
46
- * A custom URL slug for the product. This must be unique for each product on the project.
47
- * @type {string}
48
- * @memberof CreateProductRequest
49
- */
50
- slug?: string;
51
- /**
52
- *
53
- * @type {CreateProductRequestSeoMetadata}
54
- * @memberof CreateProductRequest
55
- */
56
- seoMetadata?: CreateProductRequestSeoMetadata;
57
- /**
58
- * Additional product tags used for searching and filtering.
59
- * @type {Array<string>}
60
- * @memberof CreateProductRequest
61
- */
62
- tags?: Array<string>;
63
- /**
64
- * Variants
65
- * @type {Array<CreateProductVariant>}
66
- * @memberof CreateProductRequest
67
- */
68
- variants: Array<CreateProductVariant>;
69
- /**
70
- * Images to attach to the product. For example, photos of models using/wearing the product.
71
- * @type {Array<CreateProductRequestImagesInner>}
72
- * @memberof CreateProductRequest
73
- */
74
- images?: Array<CreateProductRequestImagesInner>;
75
- /**
76
- * Additional files to attach to the product. For example, original design files e.g. PSD, AI, etc.
77
- * @type {Array<CreateProductRequestImagesInner>}
78
- * @memberof CreateProductRequest
79
- */
80
- additionalFiles?: Array<CreateProductRequestImagesInner>;
81
- }
82
- /**
83
- * Check if a given object implements the CreateProductRequest interface.
84
- */
85
- export declare function instanceOfCreateProductRequest(value: object): boolean;
86
- export declare function CreateProductRequestFromJSON(json: any): CreateProductRequest;
87
- export declare function CreateProductRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequest;
88
- export declare function CreateProductRequestToJSON(value?: CreateProductRequest | null): any;
@@ -1,70 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Product Catalog API
6
- * 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.
7
- *
8
- * The version of the OpenAPI document: 1.10.0
9
- * Contact: hello@teemill.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateProductRequestToJSON = exports.CreateProductRequestFromJSONTyped = exports.CreateProductRequestFromJSON = exports.instanceOfCreateProductRequest = void 0;
17
- var CreateProductRequestImagesInner_1 = require("./CreateProductRequestImagesInner");
18
- var CreateProductRequestSeoMetadata_1 = require("./CreateProductRequestSeoMetadata");
19
- var CreateProductVariant_1 = require("./CreateProductVariant");
20
- /**
21
- * Check if a given object implements the CreateProductRequest interface.
22
- */
23
- function instanceOfCreateProductRequest(value) {
24
- if (!('gfnProductRef' in value))
25
- return false;
26
- if (!('variants' in value))
27
- return false;
28
- return true;
29
- }
30
- exports.instanceOfCreateProductRequest = instanceOfCreateProductRequest;
31
- function CreateProductRequestFromJSON(json) {
32
- return CreateProductRequestFromJSONTyped(json, false);
33
- }
34
- exports.CreateProductRequestFromJSON = CreateProductRequestFromJSON;
35
- function CreateProductRequestFromJSONTyped(json, ignoreDiscriminator) {
36
- if (json == null) {
37
- return json;
38
- }
39
- return {
40
- 'gfnProductRef': json['gfnProductRef'],
41
- 'title': json['title'] == null ? undefined : json['title'],
42
- 'description': json['description'] == null ? undefined : json['description'],
43
- 'enabled': json['enabled'] == null ? undefined : json['enabled'],
44
- 'slug': json['slug'] == null ? undefined : json['slug'],
45
- 'seoMetadata': json['seoMetadata'] == null ? undefined : (0, CreateProductRequestSeoMetadata_1.CreateProductRequestSeoMetadataFromJSON)(json['seoMetadata']),
46
- 'tags': json['tags'] == null ? undefined : json['tags'],
47
- 'variants': (json['variants'].map(CreateProductVariant_1.CreateProductVariantFromJSON)),
48
- 'images': json['images'] == null ? undefined : (json['images'].map(CreateProductRequestImagesInner_1.CreateProductRequestImagesInnerFromJSON)),
49
- 'additionalFiles': json['additionalFiles'] == null ? undefined : (json['additionalFiles'].map(CreateProductRequestImagesInner_1.CreateProductRequestImagesInnerFromJSON)),
50
- };
51
- }
52
- exports.CreateProductRequestFromJSONTyped = CreateProductRequestFromJSONTyped;
53
- function CreateProductRequestToJSON(value) {
54
- if (value == null) {
55
- return value;
56
- }
57
- return {
58
- 'gfnProductRef': value['gfnProductRef'],
59
- 'title': value['title'],
60
- 'description': value['description'],
61
- 'enabled': value['enabled'],
62
- 'slug': value['slug'],
63
- 'seoMetadata': (0, CreateProductRequestSeoMetadata_1.CreateProductRequestSeoMetadataToJSON)(value['seoMetadata']),
64
- 'tags': value['tags'],
65
- 'variants': (value['variants'].map(CreateProductVariant_1.CreateProductVariantToJSON)),
66
- 'images': value['images'] == null ? undefined : (value['images'].map(CreateProductRequestImagesInner_1.CreateProductRequestImagesInnerToJSON)),
67
- 'additionalFiles': value['additionalFiles'] == null ? undefined : (value['additionalFiles'].map(CreateProductRequestImagesInner_1.CreateProductRequestImagesInnerToJSON)),
68
- };
69
- }
70
- exports.CreateProductRequestToJSON = CreateProductRequestToJSON;
@@ -1,31 +0,0 @@
1
- /**
2
- * Product Catalog API
3
- * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
- *
5
- * The version of the OpenAPI document: 1.5.0
6
- * Contact: hello@teemill.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface CreateProductRequestAdditionalFilesInner
16
- */
17
- export interface CreateProductRequestAdditionalFilesInner {
18
- /**
19
- * File url
20
- * @type {string}
21
- * @memberof CreateProductRequestAdditionalFilesInner
22
- */
23
- src?: string;
24
- }
25
- /**
26
- * Check if a given object implements the CreateProductRequestAdditionalFilesInner interface.
27
- */
28
- export declare function instanceOfCreateProductRequestAdditionalFilesInner(value: object): boolean;
29
- export declare function CreateProductRequestAdditionalFilesInnerFromJSON(json: any): CreateProductRequestAdditionalFilesInner;
30
- export declare function CreateProductRequestAdditionalFilesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestAdditionalFilesInner;
31
- export declare function CreateProductRequestAdditionalFilesInnerToJSON(value?: CreateProductRequestAdditionalFilesInner | null): any;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Product Catalog API
6
- * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
- *
8
- * The version of the OpenAPI document: 1.5.0
9
- * Contact: hello@teemill.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateProductRequestAdditionalFilesInnerToJSON = exports.CreateProductRequestAdditionalFilesInnerFromJSONTyped = exports.CreateProductRequestAdditionalFilesInnerFromJSON = exports.instanceOfCreateProductRequestAdditionalFilesInner = void 0;
17
- var runtime_1 = require("../runtime");
18
- /**
19
- * Check if a given object implements the CreateProductRequestAdditionalFilesInner interface.
20
- */
21
- function instanceOfCreateProductRequestAdditionalFilesInner(value) {
22
- var isInstance = true;
23
- return isInstance;
24
- }
25
- exports.instanceOfCreateProductRequestAdditionalFilesInner = instanceOfCreateProductRequestAdditionalFilesInner;
26
- function CreateProductRequestAdditionalFilesInnerFromJSON(json) {
27
- return CreateProductRequestAdditionalFilesInnerFromJSONTyped(json, false);
28
- }
29
- exports.CreateProductRequestAdditionalFilesInnerFromJSON = CreateProductRequestAdditionalFilesInnerFromJSON;
30
- function CreateProductRequestAdditionalFilesInnerFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
32
- return json;
33
- }
34
- return {
35
- 'src': !(0, runtime_1.exists)(json, 'src') ? undefined : json['src'],
36
- };
37
- }
38
- exports.CreateProductRequestAdditionalFilesInnerFromJSONTyped = CreateProductRequestAdditionalFilesInnerFromJSONTyped;
39
- function CreateProductRequestAdditionalFilesInnerToJSON(value) {
40
- if (value === undefined) {
41
- return undefined;
42
- }
43
- if (value === null) {
44
- return null;
45
- }
46
- return {
47
- 'src': value.src,
48
- };
49
- }
50
- exports.CreateProductRequestAdditionalFilesInnerToJSON = CreateProductRequestAdditionalFilesInnerToJSON;
@@ -1,31 +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.10.0
6
- * Contact: hello@teemill.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface CreateProductRequestImagesInner
16
- */
17
- export interface CreateProductRequestImagesInner {
18
- /**
19
- * Publicly available file URL.
20
- * @type {string}
21
- * @memberof CreateProductRequestImagesInner
22
- */
23
- src?: string;
24
- }
25
- /**
26
- * Check if a given object implements the CreateProductRequestImagesInner interface.
27
- */
28
- export declare function instanceOfCreateProductRequestImagesInner(value: object): boolean;
29
- export declare function CreateProductRequestImagesInnerFromJSON(json: any): CreateProductRequestImagesInner;
30
- export declare function CreateProductRequestImagesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestImagesInner;
31
- export declare function CreateProductRequestImagesInnerToJSON(value?: CreateProductRequestImagesInner | null): any;
@@ -1,45 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Product Catalog API
6
- * 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.
7
- *
8
- * The version of the OpenAPI document: 1.10.0
9
- * Contact: hello@teemill.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateProductRequestImagesInnerToJSON = exports.CreateProductRequestImagesInnerFromJSONTyped = exports.CreateProductRequestImagesInnerFromJSON = exports.instanceOfCreateProductRequestImagesInner = void 0;
17
- /**
18
- * Check if a given object implements the CreateProductRequestImagesInner interface.
19
- */
20
- function instanceOfCreateProductRequestImagesInner(value) {
21
- return true;
22
- }
23
- exports.instanceOfCreateProductRequestImagesInner = instanceOfCreateProductRequestImagesInner;
24
- function CreateProductRequestImagesInnerFromJSON(json) {
25
- return CreateProductRequestImagesInnerFromJSONTyped(json, false);
26
- }
27
- exports.CreateProductRequestImagesInnerFromJSON = CreateProductRequestImagesInnerFromJSON;
28
- function CreateProductRequestImagesInnerFromJSONTyped(json, ignoreDiscriminator) {
29
- if (json == null) {
30
- return json;
31
- }
32
- return {
33
- 'src': json['src'] == null ? undefined : json['src'],
34
- };
35
- }
36
- exports.CreateProductRequestImagesInnerFromJSONTyped = CreateProductRequestImagesInnerFromJSONTyped;
37
- function CreateProductRequestImagesInnerToJSON(value) {
38
- if (value == null) {
39
- return value;
40
- }
41
- return {
42
- 'src': value['src'],
43
- };
44
- }
45
- exports.CreateProductRequestImagesInnerToJSON = CreateProductRequestImagesInnerToJSON;
@@ -1,31 +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.10.0
6
- * Contact: hello@teemill.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface CreateProductRequestSeoMetadata
16
- */
17
- export interface CreateProductRequestSeoMetadata {
18
- /**
19
- * Meta title for the product. This appears in search engine results and social shares. If not provided, the product title will be used.
20
- * @type {string}
21
- * @memberof CreateProductRequestSeoMetadata
22
- */
23
- title?: string;
24
- }
25
- /**
26
- * Check if a given object implements the CreateProductRequestSeoMetadata interface.
27
- */
28
- export declare function instanceOfCreateProductRequestSeoMetadata(value: object): boolean;
29
- export declare function CreateProductRequestSeoMetadataFromJSON(json: any): CreateProductRequestSeoMetadata;
30
- export declare function CreateProductRequestSeoMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestSeoMetadata;
31
- export declare function CreateProductRequestSeoMetadataToJSON(value?: CreateProductRequestSeoMetadata | null): any;
@@ -1,45 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Product Catalog API
6
- * 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.
7
- *
8
- * The version of the OpenAPI document: 1.10.0
9
- * Contact: hello@teemill.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateProductRequestSeoMetadataToJSON = exports.CreateProductRequestSeoMetadataFromJSONTyped = exports.CreateProductRequestSeoMetadataFromJSON = exports.instanceOfCreateProductRequestSeoMetadata = void 0;
17
- /**
18
- * Check if a given object implements the CreateProductRequestSeoMetadata interface.
19
- */
20
- function instanceOfCreateProductRequestSeoMetadata(value) {
21
- return true;
22
- }
23
- exports.instanceOfCreateProductRequestSeoMetadata = instanceOfCreateProductRequestSeoMetadata;
24
- function CreateProductRequestSeoMetadataFromJSON(json) {
25
- return CreateProductRequestSeoMetadataFromJSONTyped(json, false);
26
- }
27
- exports.CreateProductRequestSeoMetadataFromJSON = CreateProductRequestSeoMetadataFromJSON;
28
- function CreateProductRequestSeoMetadataFromJSONTyped(json, ignoreDiscriminator) {
29
- if (json == null) {
30
- return json;
31
- }
32
- return {
33
- 'title': json['title'] == null ? undefined : json['title'],
34
- };
35
- }
36
- exports.CreateProductRequestSeoMetadataFromJSONTyped = CreateProductRequestSeoMetadataFromJSONTyped;
37
- function CreateProductRequestSeoMetadataToJSON(value) {
38
- if (value == null) {
39
- return value;
40
- }
41
- return {
42
- 'title': value['title'],
43
- };
44
- }
45
- exports.CreateProductRequestSeoMetadataToJSON = CreateProductRequestSeoMetadataToJSON;
@@ -1,59 +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.8.0
6
- * Contact: hello@teemill.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { CreateProductRequestVariantsInnerApplicationsInner } from './CreateProductRequestVariantsInnerApplicationsInner';
13
- import type { CreateProductRequestVariantsInnerAttributesInner } from './CreateProductRequestVariantsInnerAttributesInner';
14
- import type { CreateProductRequestVariantsInnerImagesInner } from './CreateProductRequestVariantsInnerImagesInner';
15
- import type { CreateProductRequestVariantsInnerRetailPrice } from './CreateProductRequestVariantsInnerRetailPrice';
16
- /**
17
- *
18
- * @export
19
- * @interface CreateProductRequestVariantsInner
20
- */
21
- export interface CreateProductRequestVariantsInner {
22
- /**
23
- * Attributes associated to a variant such as Colour and Size.
24
- * @type {Array<CreateProductRequestVariantsInnerAttributesInner>}
25
- * @memberof CreateProductRequestVariantsInner
26
- */
27
- attributes: Array<CreateProductRequestVariantsInnerAttributesInner>;
28
- /**
29
- *
30
- * @type {CreateProductRequestVariantsInnerRetailPrice}
31
- * @memberof CreateProductRequestVariantsInner
32
- */
33
- retailPrice: CreateProductRequestVariantsInnerRetailPrice;
34
- /**
35
- * A custom stock keeping unit for the variant.
36
- * @type {string}
37
- * @memberof CreateProductRequestVariantsInner
38
- */
39
- sku?: string;
40
- /**
41
- * Design applications. If not provided, the product will be blank.
42
- * @type {Array<CreateProductRequestVariantsInnerApplicationsInner>}
43
- * @memberof CreateProductRequestVariantsInner
44
- */
45
- applications?: Array<CreateProductRequestVariantsInnerApplicationsInner>;
46
- /**
47
- * Only use if you want to override the main product image. If not provided, mockups will be generated using the design applications and the warehouse product provided. Accepts PNG and JPEG files.
48
- * @type {Array<CreateProductRequestVariantsInnerImagesInner>}
49
- * @memberof CreateProductRequestVariantsInner
50
- */
51
- images?: Array<CreateProductRequestVariantsInnerImagesInner>;
52
- }
53
- /**
54
- * Check if a given object implements the CreateProductRequestVariantsInner interface.
55
- */
56
- export declare function instanceOfCreateProductRequestVariantsInner(value: object): boolean;
57
- export declare function CreateProductRequestVariantsInnerFromJSON(json: any): CreateProductRequestVariantsInner;
58
- export declare function CreateProductRequestVariantsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInner;
59
- export declare function CreateProductRequestVariantsInnerToJSON(value?: CreateProductRequestVariantsInner | null): any;
@@ -1,64 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Product Catalog API
6
- * 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.
7
- *
8
- * The version of the OpenAPI document: 1.8.0
9
- * Contact: hello@teemill.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateProductRequestVariantsInnerToJSON = exports.CreateProductRequestVariantsInnerFromJSONTyped = exports.CreateProductRequestVariantsInnerFromJSON = exports.instanceOfCreateProductRequestVariantsInner = void 0;
17
- var runtime_1 = require("../runtime");
18
- var CreateProductRequestVariantsInnerApplicationsInner_1 = require("./CreateProductRequestVariantsInnerApplicationsInner");
19
- var CreateProductRequestVariantsInnerAttributesInner_1 = require("./CreateProductRequestVariantsInnerAttributesInner");
20
- var CreateProductRequestVariantsInnerImagesInner_1 = require("./CreateProductRequestVariantsInnerImagesInner");
21
- var CreateProductRequestVariantsInnerRetailPrice_1 = require("./CreateProductRequestVariantsInnerRetailPrice");
22
- /**
23
- * Check if a given object implements the CreateProductRequestVariantsInner interface.
24
- */
25
- function instanceOfCreateProductRequestVariantsInner(value) {
26
- var isInstance = true;
27
- isInstance = isInstance && "attributes" in value;
28
- isInstance = isInstance && "retailPrice" in value;
29
- return isInstance;
30
- }
31
- exports.instanceOfCreateProductRequestVariantsInner = instanceOfCreateProductRequestVariantsInner;
32
- function CreateProductRequestVariantsInnerFromJSON(json) {
33
- return CreateProductRequestVariantsInnerFromJSONTyped(json, false);
34
- }
35
- exports.CreateProductRequestVariantsInnerFromJSON = CreateProductRequestVariantsInnerFromJSON;
36
- function CreateProductRequestVariantsInnerFromJSONTyped(json, ignoreDiscriminator) {
37
- if ((json === undefined) || (json === null)) {
38
- return json;
39
- }
40
- return {
41
- 'attributes': (json['attributes'].map(CreateProductRequestVariantsInnerAttributesInner_1.CreateProductRequestVariantsInnerAttributesInnerFromJSON)),
42
- 'retailPrice': (0, CreateProductRequestVariantsInnerRetailPrice_1.CreateProductRequestVariantsInnerRetailPriceFromJSON)(json['retailPrice']),
43
- 'sku': !(0, runtime_1.exists)(json, 'sku') ? undefined : json['sku'],
44
- 'applications': !(0, runtime_1.exists)(json, 'applications') ? undefined : (json['applications'].map(CreateProductRequestVariantsInnerApplicationsInner_1.CreateProductRequestVariantsInnerApplicationsInnerFromJSON)),
45
- 'images': !(0, runtime_1.exists)(json, 'images') ? undefined : (json['images'].map(CreateProductRequestVariantsInnerImagesInner_1.CreateProductRequestVariantsInnerImagesInnerFromJSON)),
46
- };
47
- }
48
- exports.CreateProductRequestVariantsInnerFromJSONTyped = CreateProductRequestVariantsInnerFromJSONTyped;
49
- function CreateProductRequestVariantsInnerToJSON(value) {
50
- if (value === undefined) {
51
- return undefined;
52
- }
53
- if (value === null) {
54
- return null;
55
- }
56
- return {
57
- 'attributes': (value.attributes.map(CreateProductRequestVariantsInnerAttributesInner_1.CreateProductRequestVariantsInnerAttributesInnerToJSON)),
58
- 'retailPrice': (0, CreateProductRequestVariantsInnerRetailPrice_1.CreateProductRequestVariantsInnerRetailPriceToJSON)(value.retailPrice),
59
- 'sku': value.sku,
60
- 'applications': value.applications === undefined ? undefined : (value.applications.map(CreateProductRequestVariantsInnerApplicationsInner_1.CreateProductRequestVariantsInnerApplicationsInnerToJSON)),
61
- 'images': value.images === undefined ? undefined : (value.images.map(CreateProductRequestVariantsInnerImagesInner_1.CreateProductRequestVariantsInnerImagesInnerToJSON)),
62
- };
63
- }
64
- exports.CreateProductRequestVariantsInnerToJSON = CreateProductRequestVariantsInnerToJSON;
@@ -1,63 +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.8.0
6
- * Contact: hello@teemill.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface CreateProductRequestVariantsInnerApplicationsInner
16
- */
17
- export interface CreateProductRequestVariantsInnerApplicationsInner {
18
- /**
19
- * Technology to use for the application.
20
- * @type {string}
21
- * @memberof CreateProductRequestVariantsInnerApplicationsInner
22
- */
23
- technology: CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum;
24
- /**
25
- * Placement of the application. Available placements depend on the chosen product and technology.
26
- * @type {string}
27
- * @memberof CreateProductRequestVariantsInnerApplicationsInner
28
- */
29
- placement: CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum;
30
- /**
31
- * Publicly available design file URL. This will fill the design area of the warehouse product. It will be centered horizontally and aligned to the top of the design area. Accepts PNG and JPEG files.
32
- * @type {string}
33
- * @memberof CreateProductRequestVariantsInnerApplicationsInner
34
- */
35
- src: string;
36
- }
37
- /**
38
- * @export
39
- */
40
- export declare const CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum: {
41
- readonly Dtg: "dtg";
42
- readonly Embroidery: "embroidery";
43
- readonly Dtf: "dtf";
44
- };
45
- export type CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = typeof CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum[keyof typeof CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum];
46
- /**
47
- * @export
48
- */
49
- export declare const CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum: {
50
- readonly Front: "front";
51
- readonly Back: "back";
52
- readonly Left: "left";
53
- readonly Right: "right";
54
- readonly Neck: "neck";
55
- };
56
- export type CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = typeof CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum[keyof typeof CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum];
57
- /**
58
- * Check if a given object implements the CreateProductRequestVariantsInnerApplicationsInner interface.
59
- */
60
- export declare function instanceOfCreateProductRequestVariantsInnerApplicationsInner(value: object): boolean;
61
- export declare function CreateProductRequestVariantsInnerApplicationsInnerFromJSON(json: any): CreateProductRequestVariantsInnerApplicationsInner;
62
- export declare function CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerApplicationsInner;
63
- export declare function CreateProductRequestVariantsInnerApplicationsInnerToJSON(value?: CreateProductRequestVariantsInnerApplicationsInner | null): any;
@@ -1,74 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Product Catalog API
6
- * 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.
7
- *
8
- * The version of the OpenAPI document: 1.8.0
9
- * Contact: hello@teemill.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateProductRequestVariantsInnerApplicationsInnerToJSON = exports.CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped = exports.CreateProductRequestVariantsInnerApplicationsInnerFromJSON = exports.instanceOfCreateProductRequestVariantsInnerApplicationsInner = exports.CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = exports.CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = void 0;
17
- /**
18
- * @export
19
- */
20
- exports.CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = {
21
- Dtg: 'dtg',
22
- Embroidery: 'embroidery',
23
- Dtf: 'dtf'
24
- };
25
- /**
26
- * @export
27
- */
28
- exports.CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = {
29
- Front: 'front',
30
- Back: 'back',
31
- Left: 'left',
32
- Right: 'right',
33
- Neck: 'neck'
34
- };
35
- /**
36
- * Check if a given object implements the CreateProductRequestVariantsInnerApplicationsInner interface.
37
- */
38
- function instanceOfCreateProductRequestVariantsInnerApplicationsInner(value) {
39
- var isInstance = true;
40
- isInstance = isInstance && "technology" in value;
41
- isInstance = isInstance && "placement" in value;
42
- isInstance = isInstance && "src" in value;
43
- return isInstance;
44
- }
45
- exports.instanceOfCreateProductRequestVariantsInnerApplicationsInner = instanceOfCreateProductRequestVariantsInnerApplicationsInner;
46
- function CreateProductRequestVariantsInnerApplicationsInnerFromJSON(json) {
47
- return CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped(json, false);
48
- }
49
- exports.CreateProductRequestVariantsInnerApplicationsInnerFromJSON = CreateProductRequestVariantsInnerApplicationsInnerFromJSON;
50
- function CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped(json, ignoreDiscriminator) {
51
- if ((json === undefined) || (json === null)) {
52
- return json;
53
- }
54
- return {
55
- 'technology': json['technology'],
56
- 'placement': json['placement'],
57
- 'src': json['src'],
58
- };
59
- }
60
- exports.CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped = CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped;
61
- function CreateProductRequestVariantsInnerApplicationsInnerToJSON(value) {
62
- if (value === undefined) {
63
- return undefined;
64
- }
65
- if (value === null) {
66
- return null;
67
- }
68
- return {
69
- 'technology': value.technology,
70
- 'placement': value.placement,
71
- 'src': value.src,
72
- };
73
- }
74
- exports.CreateProductRequestVariantsInnerApplicationsInnerToJSON = CreateProductRequestVariantsInnerApplicationsInnerToJSON;