@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,50 +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 * as runtime from '../runtime';
13
- import type { Variant, VariantsResponse } from '../models/index';
14
- export interface GetVariantRequest {
15
- project: string;
16
- variantId: string;
17
- fields?: string;
18
- }
19
- export interface ListVariantsRequest {
20
- project: string;
21
- search?: string;
22
- pageToken?: number;
23
- pageSize?: number;
24
- fields?: string;
25
- }
26
- /**
27
- *
28
- */
29
- export declare class VariantsApi extends runtime.BaseAPI {
30
- /**
31
- * Gets a variant by a given ID.
32
- * Get variant
33
- */
34
- getVariantRaw(requestParameters: GetVariantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Variant>>;
35
- /**
36
- * Gets a variant by a given ID.
37
- * Get variant
38
- */
39
- getVariant(project: string, variantId: string, optionalParameters?: runtime.OptionalOnly<GetVariantRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Variant>;
40
- /**
41
- * Lists all variants that belong to enabled products attached to the given project.
42
- * List variants
43
- */
44
- listVariantsRaw(requestParameters: ListVariantsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VariantsResponse>>;
45
- /**
46
- * Lists all variants that belong to enabled products attached to the given project.
47
- * List variants
48
- */
49
- listVariants(project: string, optionalParameters?: runtime.OptionalOnly<ListVariantsRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VariantsResponse>;
50
- }
@@ -1,235 +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
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __assign = (this && this.__assign) || function () {
31
- __assign = Object.assign || function(t) {
32
- for (var s, i = 1, n = arguments.length; i < n; i++) {
33
- s = arguments[i];
34
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
- t[p] = s[p];
36
- }
37
- return t;
38
- };
39
- return __assign.apply(this, arguments);
40
- };
41
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
- return new (P || (P = Promise))(function (resolve, reject) {
44
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
- step((generator = generator.apply(thisArg, _arguments || [])).next());
48
- });
49
- };
50
- var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
- function verb(n) { return function (v) { return step([n, v]); }; }
54
- function step(op) {
55
- if (f) throw new TypeError("Generator is already executing.");
56
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
- if (y = 0, t) op = [op[0] & 2, t.value];
59
- switch (op[0]) {
60
- case 0: case 1: t = op; break;
61
- case 4: _.label++; return { value: op[1], done: false };
62
- case 5: _.label++; y = op[1]; op = [0]; continue;
63
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
- default:
65
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
- if (t[2]) _.ops.pop();
70
- _.trys.pop(); continue;
71
- }
72
- op = body.call(thisArg, _);
73
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
- }
76
- };
77
- Object.defineProperty(exports, "__esModule", { value: true });
78
- exports.VariantsApi = void 0;
79
- var runtime = require("../runtime");
80
- var index_1 = require("../models/index");
81
- /**
82
- *
83
- */
84
- var VariantsApi = /** @class */ (function (_super) {
85
- __extends(VariantsApi, _super);
86
- function VariantsApi() {
87
- return _super !== null && _super.apply(this, arguments) || this;
88
- }
89
- /**
90
- * Gets a variant by a given ID.
91
- * Get variant
92
- */
93
- VariantsApi.prototype.getVariantRaw = function (requestParameters, initOverrides) {
94
- return __awaiter(this, void 0, void 0, function () {
95
- var queryParameters, headerParameters, _a, _b, response;
96
- return __generator(this, function (_c) {
97
- switch (_c.label) {
98
- case 0:
99
- if (requestParameters.project === null || requestParameters.project === undefined) {
100
- throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getVariant.');
101
- }
102
- if (requestParameters.variantId === null || requestParameters.variantId === undefined) {
103
- throw new runtime.RequiredError('variantId', 'Required parameter requestParameters.variantId was null or undefined when calling getVariant.');
104
- }
105
- queryParameters = {};
106
- if (requestParameters.project !== undefined) {
107
- queryParameters['project'] = requestParameters.project;
108
- }
109
- if (requestParameters.fields !== undefined) {
110
- queryParameters['fields'] = requestParameters.fields;
111
- }
112
- headerParameters = {};
113
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
114
- // oauth required
115
- _a = headerParameters;
116
- _b = "Authorization";
117
- return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
118
- case 1:
119
- // oauth required
120
- _a[_b] = _c.sent();
121
- _c.label = 2;
122
- case 2:
123
- if (this.configuration && this.configuration.apiKey) {
124
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
125
- }
126
- return [4 /*yield*/, this.request({
127
- path: "/v1/catalog/variants/{variantId}".replace("{".concat("variantId", "}"), encodeURIComponent(String(requestParameters.variantId))),
128
- method: 'GET',
129
- headers: headerParameters,
130
- query: queryParameters,
131
- }, initOverrides)];
132
- case 3:
133
- response = _c.sent();
134
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.VariantFromJSON)(jsonValue); })];
135
- }
136
- });
137
- });
138
- };
139
- /**
140
- * Gets a variant by a given ID.
141
- * Get variant
142
- */
143
- VariantsApi.prototype.getVariant = function (project, variantId, optionalParameters, initOverrides) {
144
- if (optionalParameters === void 0) { optionalParameters = {}; }
145
- return __awaiter(this, void 0, void 0, function () {
146
- var response;
147
- return __generator(this, function (_a) {
148
- switch (_a.label) {
149
- case 0: return [4 /*yield*/, this.getVariantRaw(__assign({ project: project, variantId: variantId }, optionalParameters), initOverrides)];
150
- case 1:
151
- response = _a.sent();
152
- return [4 /*yield*/, response.value()];
153
- case 2: return [2 /*return*/, _a.sent()];
154
- }
155
- });
156
- });
157
- };
158
- /**
159
- * Lists all variants that belong to enabled products attached to the given project.
160
- * List variants
161
- */
162
- VariantsApi.prototype.listVariantsRaw = function (requestParameters, initOverrides) {
163
- return __awaiter(this, void 0, void 0, function () {
164
- var queryParameters, headerParameters, _a, _b, response;
165
- return __generator(this, function (_c) {
166
- switch (_c.label) {
167
- case 0:
168
- if (requestParameters.project === null || requestParameters.project === undefined) {
169
- throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling listVariants.');
170
- }
171
- queryParameters = {};
172
- if (requestParameters.project !== undefined) {
173
- queryParameters['project'] = requestParameters.project;
174
- }
175
- if (requestParameters.search !== undefined) {
176
- queryParameters['search'] = requestParameters.search;
177
- }
178
- if (requestParameters.pageToken !== undefined) {
179
- queryParameters['pageToken'] = requestParameters.pageToken;
180
- }
181
- if (requestParameters.pageSize !== undefined) {
182
- queryParameters['pageSize'] = requestParameters.pageSize;
183
- }
184
- if (requestParameters.fields !== undefined) {
185
- queryParameters['fields'] = requestParameters.fields;
186
- }
187
- headerParameters = {};
188
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
189
- // oauth required
190
- _a = headerParameters;
191
- _b = "Authorization";
192
- return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
193
- case 1:
194
- // oauth required
195
- _a[_b] = _c.sent();
196
- _c.label = 2;
197
- case 2:
198
- if (this.configuration && this.configuration.apiKey) {
199
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
200
- }
201
- return [4 /*yield*/, this.request({
202
- path: "/v1/catalog/variants",
203
- method: 'GET',
204
- headers: headerParameters,
205
- query: queryParameters,
206
- }, initOverrides)];
207
- case 3:
208
- response = _c.sent();
209
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.VariantsResponseFromJSON)(jsonValue); })];
210
- }
211
- });
212
- });
213
- };
214
- /**
215
- * Lists all variants that belong to enabled products attached to the given project.
216
- * List variants
217
- */
218
- VariantsApi.prototype.listVariants = function (project, optionalParameters, initOverrides) {
219
- if (optionalParameters === void 0) { optionalParameters = {}; }
220
- return __awaiter(this, void 0, void 0, function () {
221
- var response;
222
- return __generator(this, function (_a) {
223
- switch (_a.label) {
224
- case 0: return [4 /*yield*/, this.listVariantsRaw(__assign({ project: project }, optionalParameters), initOverrides)];
225
- case 1:
226
- response = _a.sent();
227
- return [4 /*yield*/, response.value()];
228
- case 2: return [2 /*return*/, _a.sent()];
229
- }
230
- });
231
- });
232
- };
233
- return VariantsApi;
234
- }(runtime.BaseAPI));
235
- exports.VariantsApi = VariantsApi;
@@ -1,2 +0,0 @@
1
- export * from './ProductsApi';
2
- export * from './VariantsApi';
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- /* tslint:disable */
18
- /* eslint-disable */
19
- __exportStar(require("./ProductsApi"), exports);
20
- __exportStar(require("./VariantsApi"), exports);
@@ -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.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 ApiError
16
- */
17
- export interface ApiError {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof ApiError
22
- */
23
- code?: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof ApiError
28
- */
29
- message: string;
30
- }
31
- /**
32
- * Check if a given object implements the ApiError interface.
33
- */
34
- export declare function instanceOfApiError(value: object): boolean;
35
- export declare function ApiErrorFromJSON(json: any): ApiError;
36
- export declare function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError;
37
- export declare function ApiErrorToJSON(value?: ApiError | null): any;
@@ -1,49 +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.ApiErrorToJSON = exports.ApiErrorFromJSONTyped = exports.ApiErrorFromJSON = exports.instanceOfApiError = void 0;
17
- /**
18
- * Check if a given object implements the ApiError interface.
19
- */
20
- function instanceOfApiError(value) {
21
- if (!('message' in value))
22
- return false;
23
- return true;
24
- }
25
- exports.instanceOfApiError = instanceOfApiError;
26
- function ApiErrorFromJSON(json) {
27
- return ApiErrorFromJSONTyped(json, false);
28
- }
29
- exports.ApiErrorFromJSON = ApiErrorFromJSON;
30
- function ApiErrorFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'code': json['code'] == null ? undefined : json['code'],
36
- 'message': json['message'],
37
- };
38
- }
39
- exports.ApiErrorFromJSONTyped = ApiErrorFromJSONTyped;
40
- function ApiErrorToJSON(value) {
41
- if (value == null) {
42
- return value;
43
- }
44
- return {
45
- 'code': value['code'],
46
- 'message': value['message'],
47
- };
48
- }
49
- exports.ApiErrorToJSON = ApiErrorToJSON;
@@ -1,50 +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 { AttributeThumbnail } from './AttributeThumbnail';
13
- /**
14
- *
15
- * @export
16
- * @interface Attribute
17
- */
18
- export interface Attribute {
19
- /**
20
- * Attribute name
21
- * @type {string}
22
- * @memberof Attribute
23
- */
24
- name: string;
25
- /**
26
- * Attribute value
27
- * @type {string}
28
- * @memberof Attribute
29
- */
30
- value: string;
31
- /**
32
- *
33
- * @type {AttributeThumbnail}
34
- * @memberof Attribute
35
- */
36
- thumbnail?: AttributeThumbnail;
37
- /**
38
- * Attribute tags
39
- * @type {Array<string>}
40
- * @memberof Attribute
41
- */
42
- tags?: Array<string>;
43
- }
44
- /**
45
- * Check if a given object implements the Attribute interface.
46
- */
47
- export declare function instanceOfAttribute(value: object): boolean;
48
- export declare function AttributeFromJSON(json: any): Attribute;
49
- export declare function AttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Attribute;
50
- export declare function AttributeToJSON(value?: Attribute | null): any;
@@ -1,56 +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.AttributeToJSON = exports.AttributeFromJSONTyped = exports.AttributeFromJSON = exports.instanceOfAttribute = void 0;
17
- var AttributeThumbnail_1 = require("./AttributeThumbnail");
18
- /**
19
- * Check if a given object implements the Attribute interface.
20
- */
21
- function instanceOfAttribute(value) {
22
- if (!('name' in value))
23
- return false;
24
- if (!('value' in value))
25
- return false;
26
- return true;
27
- }
28
- exports.instanceOfAttribute = instanceOfAttribute;
29
- function AttributeFromJSON(json) {
30
- return AttributeFromJSONTyped(json, false);
31
- }
32
- exports.AttributeFromJSON = AttributeFromJSON;
33
- function AttributeFromJSONTyped(json, ignoreDiscriminator) {
34
- if (json == null) {
35
- return json;
36
- }
37
- return {
38
- 'name': json['name'],
39
- 'value': json['value'],
40
- 'thumbnail': json['thumbnail'] == null ? undefined : (0, AttributeThumbnail_1.AttributeThumbnailFromJSON)(json['thumbnail']),
41
- 'tags': json['tags'] == null ? undefined : json['tags'],
42
- };
43
- }
44
- exports.AttributeFromJSONTyped = AttributeFromJSONTyped;
45
- function AttributeToJSON(value) {
46
- if (value == null) {
47
- return value;
48
- }
49
- return {
50
- 'name': value['name'],
51
- 'value': value['value'],
52
- 'thumbnail': (0, AttributeThumbnail_1.AttributeThumbnailToJSON)(value['thumbnail']),
53
- 'tags': value['tags'],
54
- };
55
- }
56
- exports.AttributeToJSON = AttributeToJSON;
@@ -1,46 +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
- * Attribute thumbnail, intended for interfaces like storefront colour selector.
14
- * @export
15
- * @interface AttributeThumbnail
16
- */
17
- export interface AttributeThumbnail {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof AttributeThumbnail
22
- */
23
- type?: AttributeThumbnailTypeEnum;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof AttributeThumbnail
28
- */
29
- value?: string;
30
- }
31
- /**
32
- * @export
33
- */
34
- export declare const AttributeThumbnailTypeEnum: {
35
- readonly Text: "text";
36
- readonly Color: "color";
37
- readonly Image: "image";
38
- };
39
- export type AttributeThumbnailTypeEnum = typeof AttributeThumbnailTypeEnum[keyof typeof AttributeThumbnailTypeEnum];
40
- /**
41
- * Check if a given object implements the AttributeThumbnail interface.
42
- */
43
- export declare function instanceOfAttributeThumbnail(value: object): boolean;
44
- export declare function AttributeThumbnailFromJSON(json: any): AttributeThumbnail;
45
- export declare function AttributeThumbnailFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeThumbnail;
46
- export declare function AttributeThumbnailToJSON(value?: AttributeThumbnail | null): any;
@@ -1,55 +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.AttributeThumbnailToJSON = exports.AttributeThumbnailFromJSONTyped = exports.AttributeThumbnailFromJSON = exports.instanceOfAttributeThumbnail = exports.AttributeThumbnailTypeEnum = void 0;
17
- /**
18
- * @export
19
- */
20
- exports.AttributeThumbnailTypeEnum = {
21
- Text: 'text',
22
- Color: 'color',
23
- Image: 'image'
24
- };
25
- /**
26
- * Check if a given object implements the AttributeThumbnail interface.
27
- */
28
- function instanceOfAttributeThumbnail(value) {
29
- return true;
30
- }
31
- exports.instanceOfAttributeThumbnail = instanceOfAttributeThumbnail;
32
- function AttributeThumbnailFromJSON(json) {
33
- return AttributeThumbnailFromJSONTyped(json, false);
34
- }
35
- exports.AttributeThumbnailFromJSON = AttributeThumbnailFromJSON;
36
- function AttributeThumbnailFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'type': json['type'] == null ? undefined : json['type'],
42
- 'value': json['value'] == null ? undefined : json['value'],
43
- };
44
- }
45
- exports.AttributeThumbnailFromJSONTyped = AttributeThumbnailFromJSONTyped;
46
- function AttributeThumbnailToJSON(value) {
47
- if (value == null) {
48
- return value;
49
- }
50
- return {
51
- 'type': value['type'],
52
- 'value': value['value'],
53
- };
54
- }
55
- exports.AttributeThumbnailToJSON = AttributeThumbnailToJSON;