@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,69 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Product Catalog API
5
- * Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
6
- *
7
- * The version of the OpenAPI document: 1.10.0
8
- * Contact: hello@teemill.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface ApiError
20
- */
21
- export interface ApiError {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof ApiError
26
- */
27
- code?: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof ApiError
32
- */
33
- message: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the ApiError interface.
38
- */
39
- export function instanceOfApiError(value: object): boolean {
40
- if (!('message' in value)) return false;
41
- return true;
42
- }
43
-
44
- export function ApiErrorFromJSON(json: any): ApiError {
45
- return ApiErrorFromJSONTyped(json, false);
46
- }
47
-
48
- export function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError {
49
- if (json == null) {
50
- return json;
51
- }
52
- return {
53
-
54
- 'code': json['code'] == null ? undefined : json['code'],
55
- 'message': json['message'],
56
- };
57
- }
58
-
59
- export function ApiErrorToJSON(value?: ApiError | null): any {
60
- if (value == null) {
61
- return value;
62
- }
63
- return {
64
-
65
- 'code': value['code'],
66
- 'message': value['message'],
67
- };
68
- }
69
-
@@ -1,93 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Product Catalog API
5
- * Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
6
- *
7
- * The version of the OpenAPI document: 1.10.0
8
- * Contact: hello@teemill.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { AttributeThumbnail } from './AttributeThumbnail';
17
- import {
18
- AttributeThumbnailFromJSON,
19
- AttributeThumbnailFromJSONTyped,
20
- AttributeThumbnailToJSON,
21
- } from './AttributeThumbnail';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface Attribute
27
- */
28
- export interface Attribute {
29
- /**
30
- * Attribute name
31
- * @type {string}
32
- * @memberof Attribute
33
- */
34
- name: string;
35
- /**
36
- * Attribute value
37
- * @type {string}
38
- * @memberof Attribute
39
- */
40
- value: string;
41
- /**
42
- *
43
- * @type {AttributeThumbnail}
44
- * @memberof Attribute
45
- */
46
- thumbnail?: AttributeThumbnail;
47
- /**
48
- * Attribute tags
49
- * @type {Array<string>}
50
- * @memberof Attribute
51
- */
52
- tags?: Array<string>;
53
- }
54
-
55
- /**
56
- * Check if a given object implements the Attribute interface.
57
- */
58
- export function instanceOfAttribute(value: object): boolean {
59
- if (!('name' in value)) return false;
60
- if (!('value' in value)) return false;
61
- return true;
62
- }
63
-
64
- export function AttributeFromJSON(json: any): Attribute {
65
- return AttributeFromJSONTyped(json, false);
66
- }
67
-
68
- export function AttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Attribute {
69
- if (json == null) {
70
- return json;
71
- }
72
- return {
73
-
74
- 'name': json['name'],
75
- 'value': json['value'],
76
- 'thumbnail': json['thumbnail'] == null ? undefined : AttributeThumbnailFromJSON(json['thumbnail']),
77
- 'tags': json['tags'] == null ? undefined : json['tags'],
78
- };
79
- }
80
-
81
- export function AttributeToJSON(value?: Attribute | null): any {
82
- if (value == null) {
83
- return value;
84
- }
85
- return {
86
-
87
- 'name': value['name'],
88
- 'value': value['value'],
89
- 'thumbnail': AttributeThumbnailToJSON(value['thumbnail']),
90
- 'tags': value['tags'],
91
- };
92
- }
93
-
@@ -1,80 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Product Catalog API
5
- * Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
6
- *
7
- * The version of the OpenAPI document: 1.10.0
8
- * Contact: hello@teemill.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- * Attribute thumbnail, intended for interfaces like storefront colour selector.
18
- * @export
19
- * @interface AttributeThumbnail
20
- */
21
- export interface AttributeThumbnail {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof AttributeThumbnail
26
- */
27
- type?: AttributeThumbnailTypeEnum;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof AttributeThumbnail
32
- */
33
- value?: string;
34
- }
35
-
36
-
37
- /**
38
- * @export
39
- */
40
- export const AttributeThumbnailTypeEnum = {
41
- Text: 'text',
42
- Color: 'color',
43
- Image: 'image'
44
- } as const;
45
- export type AttributeThumbnailTypeEnum = typeof AttributeThumbnailTypeEnum[keyof typeof AttributeThumbnailTypeEnum];
46
-
47
-
48
- /**
49
- * Check if a given object implements the AttributeThumbnail interface.
50
- */
51
- export function instanceOfAttributeThumbnail(value: object): boolean {
52
- return true;
53
- }
54
-
55
- export function AttributeThumbnailFromJSON(json: any): AttributeThumbnail {
56
- return AttributeThumbnailFromJSONTyped(json, false);
57
- }
58
-
59
- export function AttributeThumbnailFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeThumbnail {
60
- if (json == null) {
61
- return json;
62
- }
63
- return {
64
-
65
- 'type': json['type'] == null ? undefined : json['type'],
66
- 'value': json['value'] == null ? undefined : json['value'],
67
- };
68
- }
69
-
70
- export function AttributeThumbnailToJSON(value?: AttributeThumbnail | null): any {
71
- if (value == null) {
72
- return value;
73
- }
74
- return {
75
-
76
- 'type': value['type'],
77
- 'value': value['value'],
78
- };
79
- }
80
-
@@ -1,153 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Product Catalog API
5
- * Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
6
- *
7
- * The version of the OpenAPI document: 1.10.0
8
- * Contact: hello@teemill.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { CreateProductRequestImagesInner } from './CreateProductRequestImagesInner';
17
- import {
18
- CreateProductRequestImagesInnerFromJSON,
19
- CreateProductRequestImagesInnerFromJSONTyped,
20
- CreateProductRequestImagesInnerToJSON,
21
- } from './CreateProductRequestImagesInner';
22
- import type { CreateProductRequestSeoMetadata } from './CreateProductRequestSeoMetadata';
23
- import {
24
- CreateProductRequestSeoMetadataFromJSON,
25
- CreateProductRequestSeoMetadataFromJSONTyped,
26
- CreateProductRequestSeoMetadataToJSON,
27
- } from './CreateProductRequestSeoMetadata';
28
- import type { CreateProductVariant } from './CreateProductVariant';
29
- import {
30
- CreateProductVariantFromJSON,
31
- CreateProductVariantFromJSONTyped,
32
- CreateProductVariantToJSON,
33
- } from './CreateProductVariant';
34
-
35
- /**
36
- *
37
- * @export
38
- * @interface CreateProductRequest
39
- */
40
- export interface CreateProductRequest {
41
- /**
42
- * 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.
43
- * @type {string}
44
- * @memberof CreateProductRequest
45
- */
46
- gfnProductRef: string;
47
- /**
48
- * Product title
49
- * @type {string}
50
- * @memberof CreateProductRequest
51
- */
52
- title?: string;
53
- /**
54
- * Product description
55
- * @type {string}
56
- * @memberof CreateProductRequest
57
- */
58
- description?: string;
59
- /**
60
- * Whether the product is enabled upon creation.
61
- * @type {boolean}
62
- * @memberof CreateProductRequest
63
- */
64
- enabled?: boolean;
65
- /**
66
- * A custom URL slug for the product. This must be unique for each product on the project.
67
- * @type {string}
68
- * @memberof CreateProductRequest
69
- */
70
- slug?: string;
71
- /**
72
- *
73
- * @type {CreateProductRequestSeoMetadata}
74
- * @memberof CreateProductRequest
75
- */
76
- seoMetadata?: CreateProductRequestSeoMetadata;
77
- /**
78
- * Additional product tags used for searching and filtering.
79
- * @type {Array<string>}
80
- * @memberof CreateProductRequest
81
- */
82
- tags?: Array<string>;
83
- /**
84
- * Variants
85
- * @type {Array<CreateProductVariant>}
86
- * @memberof CreateProductRequest
87
- */
88
- variants: Array<CreateProductVariant>;
89
- /**
90
- * Images to attach to the product. For example, photos of models using/wearing the product.
91
- * @type {Array<CreateProductRequestImagesInner>}
92
- * @memberof CreateProductRequest
93
- */
94
- images?: Array<CreateProductRequestImagesInner>;
95
- /**
96
- * Additional files to attach to the product. For example, original design files e.g. PSD, AI, etc.
97
- * @type {Array<CreateProductRequestImagesInner>}
98
- * @memberof CreateProductRequest
99
- */
100
- additionalFiles?: Array<CreateProductRequestImagesInner>;
101
- }
102
-
103
- /**
104
- * Check if a given object implements the CreateProductRequest interface.
105
- */
106
- export function instanceOfCreateProductRequest(value: object): boolean {
107
- if (!('gfnProductRef' in value)) return false;
108
- if (!('variants' in value)) return false;
109
- return true;
110
- }
111
-
112
- export function CreateProductRequestFromJSON(json: any): CreateProductRequest {
113
- return CreateProductRequestFromJSONTyped(json, false);
114
- }
115
-
116
- export function CreateProductRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequest {
117
- if (json == null) {
118
- return json;
119
- }
120
- return {
121
-
122
- 'gfnProductRef': json['gfnProductRef'],
123
- 'title': json['title'] == null ? undefined : json['title'],
124
- 'description': json['description'] == null ? undefined : json['description'],
125
- 'enabled': json['enabled'] == null ? undefined : json['enabled'],
126
- 'slug': json['slug'] == null ? undefined : json['slug'],
127
- 'seoMetadata': json['seoMetadata'] == null ? undefined : CreateProductRequestSeoMetadataFromJSON(json['seoMetadata']),
128
- 'tags': json['tags'] == null ? undefined : json['tags'],
129
- 'variants': ((json['variants'] as Array<any>).map(CreateProductVariantFromJSON)),
130
- 'images': json['images'] == null ? undefined : ((json['images'] as Array<any>).map(CreateProductRequestImagesInnerFromJSON)),
131
- 'additionalFiles': json['additionalFiles'] == null ? undefined : ((json['additionalFiles'] as Array<any>).map(CreateProductRequestImagesInnerFromJSON)),
132
- };
133
- }
134
-
135
- export function CreateProductRequestToJSON(value?: CreateProductRequest | null): any {
136
- if (value == null) {
137
- return value;
138
- }
139
- return {
140
-
141
- 'gfnProductRef': value['gfnProductRef'],
142
- 'title': value['title'],
143
- 'description': value['description'],
144
- 'enabled': value['enabled'],
145
- 'slug': value['slug'],
146
- 'seoMetadata': CreateProductRequestSeoMetadataToJSON(value['seoMetadata']),
147
- 'tags': value['tags'],
148
- 'variants': ((value['variants'] as Array<any>).map(CreateProductVariantToJSON)),
149
- 'images': value['images'] == null ? undefined : ((value['images'] as Array<any>).map(CreateProductRequestImagesInnerToJSON)),
150
- 'additionalFiles': value['additionalFiles'] == null ? undefined : ((value['additionalFiles'] as Array<any>).map(CreateProductRequestImagesInnerToJSON)),
151
- };
152
- }
153
-
@@ -1,65 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Product Catalog API
5
- * Manage Teemill Product Catalog For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
- *
7
- * The version of the OpenAPI document: 1.5.0
8
- * Contact: hello@teemill.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { exists, mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface CreateProductRequestAdditionalFilesInner
20
- */
21
- export interface CreateProductRequestAdditionalFilesInner {
22
- /**
23
- * File url
24
- * @type {string}
25
- * @memberof CreateProductRequestAdditionalFilesInner
26
- */
27
- src?: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the CreateProductRequestAdditionalFilesInner interface.
32
- */
33
- export function instanceOfCreateProductRequestAdditionalFilesInner(value: object): boolean {
34
- let isInstance = true;
35
-
36
- return isInstance;
37
- }
38
-
39
- export function CreateProductRequestAdditionalFilesInnerFromJSON(json: any): CreateProductRequestAdditionalFilesInner {
40
- return CreateProductRequestAdditionalFilesInnerFromJSONTyped(json, false);
41
- }
42
-
43
- export function CreateProductRequestAdditionalFilesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestAdditionalFilesInner {
44
- if ((json === undefined) || (json === null)) {
45
- return json;
46
- }
47
- return {
48
-
49
- 'src': !exists(json, 'src') ? undefined : json['src'],
50
- };
51
- }
52
-
53
- export function CreateProductRequestAdditionalFilesInnerToJSON(value?: CreateProductRequestAdditionalFilesInner | null): any {
54
- if (value === undefined) {
55
- return undefined;
56
- }
57
- if (value === null) {
58
- return null;
59
- }
60
- return {
61
-
62
- 'src': value.src,
63
- };
64
- }
65
-
@@ -1,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.10.0
8
- * Contact: hello@teemill.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface CreateProductRequestImagesInner
20
- */
21
- export interface CreateProductRequestImagesInner {
22
- /**
23
- * Publicly available file URL.
24
- * @type {string}
25
- * @memberof CreateProductRequestImagesInner
26
- */
27
- src?: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the CreateProductRequestImagesInner interface.
32
- */
33
- export function instanceOfCreateProductRequestImagesInner(value: object): boolean {
34
- return true;
35
- }
36
-
37
- export function CreateProductRequestImagesInnerFromJSON(json: any): CreateProductRequestImagesInner {
38
- return CreateProductRequestImagesInnerFromJSONTyped(json, false);
39
- }
40
-
41
- export function CreateProductRequestImagesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestImagesInner {
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 CreateProductRequestImagesInnerToJSON(value?: CreateProductRequestImagesInner | null): any {
52
- if (value == null) {
53
- return value;
54
- }
55
- return {
56
-
57
- 'src': value['src'],
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.10.0
8
- * Contact: hello@teemill.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface CreateProductRequestSeoMetadata
20
- */
21
- export interface CreateProductRequestSeoMetadata {
22
- /**
23
- * Meta title for the product. This appears in search engine results and social shares. If not provided, the product title will be used.
24
- * @type {string}
25
- * @memberof CreateProductRequestSeoMetadata
26
- */
27
- title?: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the CreateProductRequestSeoMetadata interface.
32
- */
33
- export function instanceOfCreateProductRequestSeoMetadata(value: object): boolean {
34
- return true;
35
- }
36
-
37
- export function CreateProductRequestSeoMetadataFromJSON(json: any): CreateProductRequestSeoMetadata {
38
- return CreateProductRequestSeoMetadataFromJSONTyped(json, false);
39
- }
40
-
41
- export function CreateProductRequestSeoMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestSeoMetadata {
42
- if (json == null) {
43
- return json;
44
- }
45
- return {
46
-
47
- 'title': json['title'] == null ? undefined : json['title'],
48
- };
49
- }
50
-
51
- export function CreateProductRequestSeoMetadataToJSON(value?: CreateProductRequestSeoMetadata | null): any {
52
- if (value == null) {
53
- return value;
54
- }
55
- return {
56
-
57
- 'title': value['title'],
58
- };
59
- }
60
-