@digital8/lighting-illusions-ts-sdk 0.0.531 → 0.0.532

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 (96) hide show
  1. package/.openapi-generator/FILES +42 -0
  2. package/README.md +30 -2
  3. package/dist/apis/ProductCategoryApi.d.ts +105 -0
  4. package/dist/apis/ProductCategoryApi.js +445 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/CategoryAutomationComparisonType.d.ts +29 -0
  8. package/dist/models/CategoryAutomationComparisonType.js +55 -0
  9. package/dist/models/CategoryAutomationConditionType.d.ts +25 -0
  10. package/dist/models/CategoryAutomationConditionType.js +51 -0
  11. package/dist/models/CategoryAutomationFieldType.d.ts +30 -0
  12. package/dist/models/CategoryAutomationFieldType.js +56 -0
  13. package/dist/models/CategoryAutomationRuleResource.d.ts +68 -0
  14. package/dist/models/CategoryAutomationRuleResource.js +67 -0
  15. package/dist/models/CategoryAutomationRuleResourceArrayResponse.d.ts +33 -0
  16. package/dist/models/CategoryAutomationRuleResourceArrayResponse.js +50 -0
  17. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  18. package/dist/models/ExternalApiLogResource.js +3 -1
  19. package/dist/models/GetAllProductCategoryRequest.d.ts +115 -0
  20. package/dist/models/GetAllProductCategoryRequest.js +94 -0
  21. package/dist/models/IndexProductCategoryRequest.d.ts +127 -0
  22. package/dist/models/IndexProductCategoryRequest.js +98 -0
  23. package/dist/models/PaginatedProductCategoryListResourceResponse.d.ts +40 -0
  24. package/dist/models/PaginatedProductCategoryListResourceResponse.js +57 -0
  25. package/dist/models/PaginatedProductCategoryResourceResponse.d.ts +40 -0
  26. package/dist/models/PaginatedProductCategoryResourceResponse.js +57 -0
  27. package/dist/models/ProductCategoryHierarchyResource.d.ts +62 -0
  28. package/dist/models/ProductCategoryHierarchyResource.js +69 -0
  29. package/dist/models/ProductCategoryHierarchyResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/ProductCategoryHierarchyResourceArrayResponse.js +50 -0
  31. package/dist/models/ProductCategoryListResource.d.ts +75 -0
  32. package/dist/models/ProductCategoryListResource.js +78 -0
  33. package/dist/models/ProductCategoryListResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/ProductCategoryListResourceArrayResponse.js +50 -0
  35. package/dist/models/ProductCategoryLiteResource.d.ts +38 -0
  36. package/dist/models/ProductCategoryLiteResource.js +53 -0
  37. package/dist/models/ProductCategoryLiteResourceArrayResponse.d.ts +33 -0
  38. package/dist/models/ProductCategoryLiteResourceArrayResponse.js +50 -0
  39. package/dist/models/ProductCategoryResource.d.ts +107 -0
  40. package/dist/models/ProductCategoryResource.js +96 -0
  41. package/dist/models/ProductCategoryResourceArrayResponse.d.ts +33 -0
  42. package/dist/models/ProductCategoryResourceArrayResponse.js +50 -0
  43. package/dist/models/StoreProductCategoryRequest.d.ts +105 -0
  44. package/dist/models/StoreProductCategoryRequest.js +86 -0
  45. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +62 -0
  46. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +63 -0
  47. package/dist/models/UpdateProductCategoryRequest.d.ts +105 -0
  48. package/dist/models/UpdateProductCategoryRequest.js +74 -0
  49. package/dist/models/index.d.ts +20 -0
  50. package/dist/models/index.js +20 -0
  51. package/docs/CategoryAutomationComparisonType.md +32 -0
  52. package/docs/CategoryAutomationConditionType.md +32 -0
  53. package/docs/CategoryAutomationFieldType.md +32 -0
  54. package/docs/CategoryAutomationRuleResource.md +46 -0
  55. package/docs/CategoryAutomationRuleResourceArrayResponse.md +34 -0
  56. package/docs/GetAllProductCategoryRequest.md +52 -0
  57. package/docs/IndexProductCategoryRequest.md +56 -0
  58. package/docs/PaginatedProductCategoryListResourceResponse.md +36 -0
  59. package/docs/PaginatedProductCategoryResourceResponse.md +36 -0
  60. package/docs/ProductCategoryApi.md +534 -0
  61. package/docs/ProductCategoryHierarchyResource.md +44 -0
  62. package/docs/ProductCategoryHierarchyResourceArrayResponse.md +34 -0
  63. package/docs/ProductCategoryListResource.md +48 -0
  64. package/docs/ProductCategoryListResourceArrayResponse.md +34 -0
  65. package/docs/ProductCategoryLiteResource.md +36 -0
  66. package/docs/ProductCategoryLiteResourceArrayResponse.md +34 -0
  67. package/docs/ProductCategoryResource.md +58 -0
  68. package/docs/ProductCategoryResourceArrayResponse.md +34 -0
  69. package/docs/StoreProductCategoryRequest.md +58 -0
  70. package/docs/StoreProductCategoryRequestAutomationRulesInner.md +44 -0
  71. package/docs/UpdateProductCategoryRequest.md +58 -0
  72. package/package.json +1 -1
  73. package/src/apis/ProductCategoryApi.ts +363 -0
  74. package/src/apis/index.ts +1 -0
  75. package/src/models/CategoryAutomationComparisonType.ts +57 -0
  76. package/src/models/CategoryAutomationConditionType.ts +53 -0
  77. package/src/models/CategoryAutomationFieldType.ts +58 -0
  78. package/src/models/CategoryAutomationRuleResource.ts +116 -0
  79. package/src/models/CategoryAutomationRuleResourceArrayResponse.ts +73 -0
  80. package/src/models/ExternalApiLogResource.ts +3 -2
  81. package/src/models/GetAllProductCategoryRequest.ts +171 -0
  82. package/src/models/IndexProductCategoryRequest.ts +187 -0
  83. package/src/models/PaginatedProductCategoryListResourceResponse.ts +90 -0
  84. package/src/models/PaginatedProductCategoryResourceResponse.ts +90 -0
  85. package/src/models/ProductCategoryHierarchyResource.ts +110 -0
  86. package/src/models/ProductCategoryHierarchyResourceArrayResponse.ts +73 -0
  87. package/src/models/ProductCategoryListResource.ts +136 -0
  88. package/src/models/ProductCategoryListResourceArrayResponse.ts +73 -0
  89. package/src/models/ProductCategoryLiteResource.ts +74 -0
  90. package/src/models/ProductCategoryLiteResourceArrayResponse.ts +73 -0
  91. package/src/models/ProductCategoryResource.ts +193 -0
  92. package/src/models/ProductCategoryResourceArrayResponse.ts +73 -0
  93. package/src/models/StoreProductCategoryRequest.ts +175 -0
  94. package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +107 -0
  95. package/src/models/UpdateProductCategoryRequest.ts +169 -0
  96. package/src/models/index.ts +20 -0
@@ -0,0 +1,445 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ 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;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.ProductCategoryApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var ProductCategoryApi = /** @class */ (function (_super) {
74
+ __extends(ProductCategoryApi, _super);
75
+ function ProductCategoryApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Auto-generated: destroyProductCategory
80
+ */
81
+ ProductCategoryApi.prototype.destroyProductCategoryRaw = function (requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, urlPath, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ if (requestParameters['productCategory'] == null) {
88
+ throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling destroyProductCategory().');
89
+ }
90
+ queryParameters = {};
91
+ headerParameters = {};
92
+ urlPath = "/admin-api/product-category/{productCategory}/delete";
93
+ urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
94
+ return [4 /*yield*/, this.request({
95
+ path: urlPath,
96
+ method: 'DELETE',
97
+ headers: headerParameters,
98
+ query: queryParameters,
99
+ }, initOverrides)];
100
+ case 1:
101
+ response = _a.sent();
102
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
103
+ }
104
+ });
105
+ });
106
+ };
107
+ /**
108
+ * Auto-generated: destroyProductCategory
109
+ */
110
+ ProductCategoryApi.prototype.destroyProductCategory = function (requestParameters, initOverrides) {
111
+ return __awaiter(this, void 0, void 0, function () {
112
+ var response;
113
+ return __generator(this, function (_a) {
114
+ switch (_a.label) {
115
+ case 0: return [4 /*yield*/, this.destroyProductCategoryRaw(requestParameters, initOverrides)];
116
+ case 1:
117
+ response = _a.sent();
118
+ return [4 /*yield*/, response.value()];
119
+ case 2: return [2 /*return*/, _a.sent()];
120
+ }
121
+ });
122
+ });
123
+ };
124
+ /**
125
+ * Auto-generated: getAllProductCategory
126
+ */
127
+ ProductCategoryApi.prototype.getAllProductCategoryRaw = function (requestParameters, initOverrides) {
128
+ return __awaiter(this, void 0, void 0, function () {
129
+ var queryParameters, headerParameters, urlPath, response;
130
+ return __generator(this, function (_a) {
131
+ switch (_a.label) {
132
+ case 0:
133
+ queryParameters = {};
134
+ headerParameters = {};
135
+ headerParameters['Content-Type'] = 'application/json';
136
+ urlPath = "/admin-api/product-category/all";
137
+ return [4 /*yield*/, this.request({
138
+ path: urlPath,
139
+ method: 'POST',
140
+ headers: headerParameters,
141
+ query: queryParameters,
142
+ body: (0, index_1.GetAllProductCategoryRequestToJSON)(requestParameters['getAllProductCategoryRequest']),
143
+ }, initOverrides)];
144
+ case 1:
145
+ response = _a.sent();
146
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductCategoryLiteResourceArrayResponseFromJSON)(jsonValue); })];
147
+ }
148
+ });
149
+ });
150
+ };
151
+ /**
152
+ * Auto-generated: getAllProductCategory
153
+ */
154
+ ProductCategoryApi.prototype.getAllProductCategory = function () {
155
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
156
+ var response;
157
+ if (requestParameters === void 0) { requestParameters = {}; }
158
+ return __generator(this, function (_a) {
159
+ switch (_a.label) {
160
+ case 0: return [4 /*yield*/, this.getAllProductCategoryRaw(requestParameters, initOverrides)];
161
+ case 1:
162
+ response = _a.sent();
163
+ return [4 /*yield*/, response.value()];
164
+ case 2: return [2 /*return*/, _a.sent()];
165
+ }
166
+ });
167
+ });
168
+ };
169
+ /**
170
+ * Auto-generated: getChildrenProductCategory
171
+ */
172
+ ProductCategoryApi.prototype.getChildrenProductCategoryRaw = function (requestParameters, initOverrides) {
173
+ return __awaiter(this, void 0, void 0, function () {
174
+ var queryParameters, headerParameters, urlPath, response;
175
+ return __generator(this, function (_a) {
176
+ switch (_a.label) {
177
+ case 0:
178
+ if (requestParameters['productCategory'] == null) {
179
+ throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling getChildrenProductCategory().');
180
+ }
181
+ queryParameters = {};
182
+ headerParameters = {};
183
+ headerParameters['Content-Type'] = 'application/json';
184
+ urlPath = "/admin-api/product-category/{productCategory}/children";
185
+ urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
186
+ return [4 /*yield*/, this.request({
187
+ path: urlPath,
188
+ method: 'GET',
189
+ headers: headerParameters,
190
+ query: queryParameters,
191
+ body: (0, index_1.IndexProductCategoryRequestToJSON)(requestParameters['indexProductCategoryRequest']),
192
+ }, initOverrides)];
193
+ case 1:
194
+ response = _a.sent();
195
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductCategoryListResourceResponseFromJSON)(jsonValue); })];
196
+ }
197
+ });
198
+ });
199
+ };
200
+ /**
201
+ * Auto-generated: getChildrenProductCategory
202
+ */
203
+ ProductCategoryApi.prototype.getChildrenProductCategory = function (requestParameters, initOverrides) {
204
+ return __awaiter(this, void 0, void 0, function () {
205
+ var response;
206
+ return __generator(this, function (_a) {
207
+ switch (_a.label) {
208
+ case 0: return [4 /*yield*/, this.getChildrenProductCategoryRaw(requestParameters, initOverrides)];
209
+ case 1:
210
+ response = _a.sent();
211
+ return [4 /*yield*/, response.value()];
212
+ case 2: return [2 /*return*/, _a.sent()];
213
+ }
214
+ });
215
+ });
216
+ };
217
+ /**
218
+ * Auto-generated: getHierarchyProductCategory
219
+ */
220
+ ProductCategoryApi.prototype.getHierarchyProductCategoryRaw = function (initOverrides) {
221
+ return __awaiter(this, void 0, void 0, function () {
222
+ var queryParameters, headerParameters, urlPath, response;
223
+ return __generator(this, function (_a) {
224
+ switch (_a.label) {
225
+ case 0:
226
+ queryParameters = {};
227
+ headerParameters = {};
228
+ urlPath = "/admin-api/product-category/hierarchy";
229
+ return [4 /*yield*/, this.request({
230
+ path: urlPath,
231
+ method: 'GET',
232
+ headers: headerParameters,
233
+ query: queryParameters,
234
+ }, initOverrides)];
235
+ case 1:
236
+ response = _a.sent();
237
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductCategoryHierarchyResourceArrayResponseFromJSON)(jsonValue); })];
238
+ }
239
+ });
240
+ });
241
+ };
242
+ /**
243
+ * Auto-generated: getHierarchyProductCategory
244
+ */
245
+ ProductCategoryApi.prototype.getHierarchyProductCategory = function (initOverrides) {
246
+ return __awaiter(this, void 0, void 0, function () {
247
+ var response;
248
+ return __generator(this, function (_a) {
249
+ switch (_a.label) {
250
+ case 0: return [4 /*yield*/, this.getHierarchyProductCategoryRaw(initOverrides)];
251
+ case 1:
252
+ response = _a.sent();
253
+ return [4 /*yield*/, response.value()];
254
+ case 2: return [2 /*return*/, _a.sent()];
255
+ }
256
+ });
257
+ });
258
+ };
259
+ /**
260
+ * Auto-generated: indexProductCategory
261
+ */
262
+ ProductCategoryApi.prototype.indexProductCategoryRaw = function (requestParameters, initOverrides) {
263
+ return __awaiter(this, void 0, void 0, function () {
264
+ var queryParameters, headerParameters, urlPath, response;
265
+ return __generator(this, function (_a) {
266
+ switch (_a.label) {
267
+ case 0:
268
+ queryParameters = {};
269
+ headerParameters = {};
270
+ headerParameters['Content-Type'] = 'application/json';
271
+ urlPath = "/admin-api/product-category/list";
272
+ return [4 /*yield*/, this.request({
273
+ path: urlPath,
274
+ method: 'POST',
275
+ headers: headerParameters,
276
+ query: queryParameters,
277
+ body: (0, index_1.IndexProductCategoryRequestToJSON)(requestParameters['indexProductCategoryRequest']),
278
+ }, initOverrides)];
279
+ case 1:
280
+ response = _a.sent();
281
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductCategoryListResourceResponseFromJSON)(jsonValue); })];
282
+ }
283
+ });
284
+ });
285
+ };
286
+ /**
287
+ * Auto-generated: indexProductCategory
288
+ */
289
+ ProductCategoryApi.prototype.indexProductCategory = function () {
290
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
291
+ var response;
292
+ if (requestParameters === void 0) { requestParameters = {}; }
293
+ return __generator(this, function (_a) {
294
+ switch (_a.label) {
295
+ case 0: return [4 /*yield*/, this.indexProductCategoryRaw(requestParameters, initOverrides)];
296
+ case 1:
297
+ response = _a.sent();
298
+ return [4 /*yield*/, response.value()];
299
+ case 2: return [2 /*return*/, _a.sent()];
300
+ }
301
+ });
302
+ });
303
+ };
304
+ /**
305
+ * Auto-generated: showProductCategory
306
+ */
307
+ ProductCategoryApi.prototype.showProductCategoryRaw = function (requestParameters, initOverrides) {
308
+ return __awaiter(this, void 0, void 0, function () {
309
+ var queryParameters, headerParameters, urlPath, response;
310
+ return __generator(this, function (_a) {
311
+ switch (_a.label) {
312
+ case 0:
313
+ if (requestParameters['productCategory'] == null) {
314
+ throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling showProductCategory().');
315
+ }
316
+ queryParameters = {};
317
+ headerParameters = {};
318
+ urlPath = "/admin-api/product-category/{productCategory}";
319
+ urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
320
+ return [4 /*yield*/, this.request({
321
+ path: urlPath,
322
+ method: 'GET',
323
+ headers: headerParameters,
324
+ query: queryParameters,
325
+ }, initOverrides)];
326
+ case 1:
327
+ response = _a.sent();
328
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductCategoryResourceFromJSON)(jsonValue); })];
329
+ }
330
+ });
331
+ });
332
+ };
333
+ /**
334
+ * Auto-generated: showProductCategory
335
+ */
336
+ ProductCategoryApi.prototype.showProductCategory = function (requestParameters, initOverrides) {
337
+ return __awaiter(this, void 0, void 0, function () {
338
+ var response;
339
+ return __generator(this, function (_a) {
340
+ switch (_a.label) {
341
+ case 0: return [4 /*yield*/, this.showProductCategoryRaw(requestParameters, initOverrides)];
342
+ case 1:
343
+ response = _a.sent();
344
+ return [4 /*yield*/, response.value()];
345
+ case 2: return [2 /*return*/, _a.sent()];
346
+ }
347
+ });
348
+ });
349
+ };
350
+ /**
351
+ * Auto-generated: storeProductCategory
352
+ */
353
+ ProductCategoryApi.prototype.storeProductCategoryRaw = function (requestParameters, initOverrides) {
354
+ return __awaiter(this, void 0, void 0, function () {
355
+ var queryParameters, headerParameters, urlPath, response;
356
+ return __generator(this, function (_a) {
357
+ switch (_a.label) {
358
+ case 0:
359
+ queryParameters = {};
360
+ headerParameters = {};
361
+ headerParameters['Content-Type'] = 'application/json';
362
+ urlPath = "/admin-api/product-category/create";
363
+ return [4 /*yield*/, this.request({
364
+ path: urlPath,
365
+ method: 'POST',
366
+ headers: headerParameters,
367
+ query: queryParameters,
368
+ body: (0, index_1.StoreProductCategoryRequestToJSON)(requestParameters['storeProductCategoryRequest']),
369
+ }, initOverrides)];
370
+ case 1:
371
+ response = _a.sent();
372
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductCategoryResourceFromJSON)(jsonValue); })];
373
+ }
374
+ });
375
+ });
376
+ };
377
+ /**
378
+ * Auto-generated: storeProductCategory
379
+ */
380
+ ProductCategoryApi.prototype.storeProductCategory = function () {
381
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
382
+ var response;
383
+ if (requestParameters === void 0) { requestParameters = {}; }
384
+ return __generator(this, function (_a) {
385
+ switch (_a.label) {
386
+ case 0: return [4 /*yield*/, this.storeProductCategoryRaw(requestParameters, initOverrides)];
387
+ case 1:
388
+ response = _a.sent();
389
+ return [4 /*yield*/, response.value()];
390
+ case 2: return [2 /*return*/, _a.sent()];
391
+ }
392
+ });
393
+ });
394
+ };
395
+ /**
396
+ * Auto-generated: updateProductCategory
397
+ */
398
+ ProductCategoryApi.prototype.updateProductCategoryRaw = function (requestParameters, initOverrides) {
399
+ return __awaiter(this, void 0, void 0, function () {
400
+ var queryParameters, headerParameters, urlPath, response;
401
+ return __generator(this, function (_a) {
402
+ switch (_a.label) {
403
+ case 0:
404
+ if (requestParameters['productCategory'] == null) {
405
+ throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling updateProductCategory().');
406
+ }
407
+ queryParameters = {};
408
+ headerParameters = {};
409
+ headerParameters['Content-Type'] = 'application/json';
410
+ urlPath = "/admin-api/product-category/{productCategory}/update";
411
+ urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
412
+ return [4 /*yield*/, this.request({
413
+ path: urlPath,
414
+ method: 'PUT',
415
+ headers: headerParameters,
416
+ query: queryParameters,
417
+ body: (0, index_1.UpdateProductCategoryRequestToJSON)(requestParameters['updateProductCategoryRequest']),
418
+ }, initOverrides)];
419
+ case 1:
420
+ response = _a.sent();
421
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductCategoryResourceFromJSON)(jsonValue); })];
422
+ }
423
+ });
424
+ });
425
+ };
426
+ /**
427
+ * Auto-generated: updateProductCategory
428
+ */
429
+ ProductCategoryApi.prototype.updateProductCategory = function (requestParameters, initOverrides) {
430
+ return __awaiter(this, void 0, void 0, function () {
431
+ var response;
432
+ return __generator(this, function (_a) {
433
+ switch (_a.label) {
434
+ case 0: return [4 /*yield*/, this.updateProductCategoryRaw(requestParameters, initOverrides)];
435
+ case 1:
436
+ response = _a.sent();
437
+ return [4 /*yield*/, response.value()];
438
+ case 2: return [2 /*return*/, _a.sent()];
439
+ }
440
+ });
441
+ });
442
+ };
443
+ return ProductCategoryApi;
444
+ }(runtime.BaseAPI));
445
+ exports.ProductCategoryApi = ProductCategoryApi;
@@ -5,6 +5,7 @@ export * from './ExternalApiLogApi';
5
5
  export * from './GoogleCategoryApi';
6
6
  export * from './OverlayTemplateApi';
7
7
  export * from './ProductApi';
8
+ export * from './ProductCategoryApi';
8
9
  export * from './ProductChildSiteDetailApi';
9
10
  export * from './ProductTypeApi';
10
11
  export * from './SiteApi';
@@ -23,6 +23,7 @@ __exportStar(require("./ExternalApiLogApi"), exports);
23
23
  __exportStar(require("./GoogleCategoryApi"), exports);
24
24
  __exportStar(require("./OverlayTemplateApi"), exports);
25
25
  __exportStar(require("./ProductApi"), exports);
26
+ __exportStar(require("./ProductCategoryApi"), exports);
26
27
  __exportStar(require("./ProductChildSiteDetailApi"), exports);
27
28
  __exportStar(require("./ProductTypeApi"), exports);
28
29
  __exportStar(require("./SiteApi"), exports);
@@ -0,0 +1,29 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
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
+ */
16
+ export declare const CategoryAutomationComparisonType: {
17
+ readonly Greater: "greater";
18
+ readonly Less: "less";
19
+ readonly Equal: "equal";
20
+ readonly NotEqual: "notEqual";
21
+ readonly Contains: "contains";
22
+ readonly NotContains: "notContains";
23
+ };
24
+ export type CategoryAutomationComparisonType = typeof CategoryAutomationComparisonType[keyof typeof CategoryAutomationComparisonType];
25
+ export declare function instanceOfCategoryAutomationComparisonType(value: any): boolean;
26
+ export declare function CategoryAutomationComparisonTypeFromJSON(json: any): CategoryAutomationComparisonType;
27
+ export declare function CategoryAutomationComparisonTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryAutomationComparisonType;
28
+ export declare function CategoryAutomationComparisonTypeToJSON(value?: CategoryAutomationComparisonType | null): any;
29
+ export declare function CategoryAutomationComparisonTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): CategoryAutomationComparisonType;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
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.CategoryAutomationComparisonType = void 0;
17
+ exports.instanceOfCategoryAutomationComparisonType = instanceOfCategoryAutomationComparisonType;
18
+ exports.CategoryAutomationComparisonTypeFromJSON = CategoryAutomationComparisonTypeFromJSON;
19
+ exports.CategoryAutomationComparisonTypeFromJSONTyped = CategoryAutomationComparisonTypeFromJSONTyped;
20
+ exports.CategoryAutomationComparisonTypeToJSON = CategoryAutomationComparisonTypeToJSON;
21
+ exports.CategoryAutomationComparisonTypeToJSONTyped = CategoryAutomationComparisonTypeToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.CategoryAutomationComparisonType = {
27
+ Greater: 'greater',
28
+ Less: 'less',
29
+ Equal: 'equal',
30
+ NotEqual: 'notEqual',
31
+ Contains: 'contains',
32
+ NotContains: 'notContains'
33
+ };
34
+ function instanceOfCategoryAutomationComparisonType(value) {
35
+ for (var key in exports.CategoryAutomationComparisonType) {
36
+ if (Object.prototype.hasOwnProperty.call(exports.CategoryAutomationComparisonType, key)) {
37
+ if (exports.CategoryAutomationComparisonType[key] === value) {
38
+ return true;
39
+ }
40
+ }
41
+ }
42
+ return false;
43
+ }
44
+ function CategoryAutomationComparisonTypeFromJSON(json) {
45
+ return CategoryAutomationComparisonTypeFromJSONTyped(json, false);
46
+ }
47
+ function CategoryAutomationComparisonTypeFromJSONTyped(json, ignoreDiscriminator) {
48
+ return json;
49
+ }
50
+ function CategoryAutomationComparisonTypeToJSON(value) {
51
+ return value;
52
+ }
53
+ function CategoryAutomationComparisonTypeToJSONTyped(value, ignoreDiscriminator) {
54
+ return value;
55
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
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
+ */
16
+ export declare const CategoryAutomationConditionType: {
17
+ readonly And: "and";
18
+ readonly Or: "or";
19
+ };
20
+ export type CategoryAutomationConditionType = typeof CategoryAutomationConditionType[keyof typeof CategoryAutomationConditionType];
21
+ export declare function instanceOfCategoryAutomationConditionType(value: any): boolean;
22
+ export declare function CategoryAutomationConditionTypeFromJSON(json: any): CategoryAutomationConditionType;
23
+ export declare function CategoryAutomationConditionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryAutomationConditionType;
24
+ export declare function CategoryAutomationConditionTypeToJSON(value?: CategoryAutomationConditionType | null): any;
25
+ export declare function CategoryAutomationConditionTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): CategoryAutomationConditionType;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
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.CategoryAutomationConditionType = void 0;
17
+ exports.instanceOfCategoryAutomationConditionType = instanceOfCategoryAutomationConditionType;
18
+ exports.CategoryAutomationConditionTypeFromJSON = CategoryAutomationConditionTypeFromJSON;
19
+ exports.CategoryAutomationConditionTypeFromJSONTyped = CategoryAutomationConditionTypeFromJSONTyped;
20
+ exports.CategoryAutomationConditionTypeToJSON = CategoryAutomationConditionTypeToJSON;
21
+ exports.CategoryAutomationConditionTypeToJSONTyped = CategoryAutomationConditionTypeToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.CategoryAutomationConditionType = {
27
+ And: 'and',
28
+ Or: 'or'
29
+ };
30
+ function instanceOfCategoryAutomationConditionType(value) {
31
+ for (var key in exports.CategoryAutomationConditionType) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.CategoryAutomationConditionType, key)) {
33
+ if (exports.CategoryAutomationConditionType[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function CategoryAutomationConditionTypeFromJSON(json) {
41
+ return CategoryAutomationConditionTypeFromJSONTyped(json, false);
42
+ }
43
+ function CategoryAutomationConditionTypeFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function CategoryAutomationConditionTypeToJSON(value) {
47
+ return value;
48
+ }
49
+ function CategoryAutomationConditionTypeToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
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
+ */
16
+ export declare const CategoryAutomationFieldType: {
17
+ readonly Price: "price";
18
+ readonly Name: "name";
19
+ readonly VariantName: "variant_name";
20
+ readonly Attribute: "attribute";
21
+ readonly Tag: "tag";
22
+ readonly Supplier: "supplier";
23
+ readonly Label: "label";
24
+ };
25
+ export type CategoryAutomationFieldType = typeof CategoryAutomationFieldType[keyof typeof CategoryAutomationFieldType];
26
+ export declare function instanceOfCategoryAutomationFieldType(value: any): boolean;
27
+ export declare function CategoryAutomationFieldTypeFromJSON(json: any): CategoryAutomationFieldType;
28
+ export declare function CategoryAutomationFieldTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryAutomationFieldType;
29
+ export declare function CategoryAutomationFieldTypeToJSON(value?: CategoryAutomationFieldType | null): any;
30
+ export declare function CategoryAutomationFieldTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): CategoryAutomationFieldType;