@digital8/lighting-illusions-ts-sdk 0.0.979 → 0.0.981

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 (124) hide show
  1. package/.openapi-generator/VERSION +1 -1
  2. package/README.md +3 -3
  3. package/dist/apis/AssetApi.d.ts +16 -0
  4. package/dist/apis/AssetApi.js +110 -58
  5. package/dist/apis/AttributeApi.d.ts +60 -0
  6. package/dist/apis/AttributeApi.js +424 -229
  7. package/dist/apis/DefinitionApi.d.ts +24 -0
  8. package/dist/apis/DefinitionApi.js +164 -86
  9. package/dist/apis/DocumentApi.d.ts +36 -0
  10. package/dist/apis/DocumentApi.js +250 -133
  11. package/dist/apis/ExternalApiLogApi.d.ts +4 -0
  12. package/dist/apis/ExternalApiLogApi.js +26 -13
  13. package/dist/apis/GoogleCategoryApi.d.ts +4 -0
  14. package/dist/apis/GoogleCategoryApi.js +26 -13
  15. package/dist/apis/OverlayTemplateApi.d.ts +48 -0
  16. package/dist/apis/OverlayTemplateApi.js +340 -184
  17. package/dist/apis/ProductApi.d.ts +84 -0
  18. package/dist/apis/ProductApi.js +600 -327
  19. package/dist/apis/ProductCategoryApi.d.ts +52 -0
  20. package/dist/apis/ProductCategoryApi.js +364 -195
  21. package/dist/apis/ProductTypeApi.d.ts +36 -0
  22. package/dist/apis/ProductTypeApi.js +256 -139
  23. package/dist/apis/SiteApi.d.ts +32 -0
  24. package/dist/apis/SiteApi.js +220 -116
  25. package/dist/apis/SupplierApi.d.ts +32 -0
  26. package/dist/apis/SupplierApi.js +234 -130
  27. package/dist/apis/TagApi.d.ts +32 -0
  28. package/dist/apis/TagApi.js +226 -122
  29. package/dist/models/AttachAttributeProductTypeRequest.d.ts +1 -1
  30. package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -1
  31. package/dist/models/AttachProductTypeAttributeRequest.d.ts +1 -1
  32. package/dist/models/DetachAssetableOverlayTemplateRequest.d.ts +1 -1
  33. package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -1
  34. package/dist/models/GetAllAttributeRequest.d.ts +3 -3
  35. package/dist/models/GetAllDefinitionRequest.d.ts +2 -2
  36. package/dist/models/GetAllDocumentRequest.d.ts +3 -3
  37. package/dist/models/GetAllGoogleCategoryRequest.d.ts +2 -2
  38. package/dist/models/GetAllOverlayTemplateRequest.d.ts +3 -3
  39. package/dist/models/GetAllProductCategoryRequest.d.ts +3 -3
  40. package/dist/models/GetAllProductChildRequest.d.ts +3 -3
  41. package/dist/models/GetAllProductRequest.d.ts +3 -3
  42. package/dist/models/GetAllProductTypeRequest.d.ts +3 -3
  43. package/dist/models/GetAllSupplierRequest.d.ts +3 -3
  44. package/dist/models/IndexAttributeRequest.d.ts +3 -3
  45. package/dist/models/IndexAttributeValueRequest.d.ts +3 -3
  46. package/dist/models/IndexDefinitionRequest.d.ts +2 -2
  47. package/dist/models/IndexDocumentRequest.d.ts +3 -3
  48. package/dist/models/IndexExternalApiLogRequest.d.ts +2 -2
  49. package/dist/models/IndexOverlayTemplateRequest.d.ts +3 -3
  50. package/dist/models/IndexProductCategoryRequest.d.ts +3 -3
  51. package/dist/models/IndexProductChildRequest.d.ts +3 -3
  52. package/dist/models/IndexProductRequest.d.ts +3 -3
  53. package/dist/models/IndexProductTypeRequest.d.ts +3 -3
  54. package/dist/models/IndexSiteNotificationRequest.d.ts +2 -2
  55. package/dist/models/IndexSiteRequest.d.ts +2 -2
  56. package/dist/models/IndexSupplierRequest.d.ts +3 -3
  57. package/dist/models/IndexTagRequest.d.ts +3 -3
  58. package/dist/models/PreviewAutomationRulesProductCategoryRequest.d.ts +1 -1
  59. package/dist/models/StoreAssetForAssetableRequest.d.ts +1 -1
  60. package/dist/models/StoreAttributeRequest.d.ts +1 -1
  61. package/dist/models/StoreOverlayTemplateAssetRequest.d.ts +1 -1
  62. package/dist/models/StoreProductCategoryRequest.d.ts +1 -1
  63. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +2 -2
  64. package/dist/models/StoreTagRequest.d.ts +1 -1
  65. package/dist/models/UpdateAttributeRequest.d.ts +1 -1
  66. package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +1 -1
  67. package/dist/models/UpdateProductCategoryRequest.d.ts +1 -1
  68. package/dist/models/UpdateSiteRequest.d.ts +1 -1
  69. package/dist/models/UpdateTagRequest.d.ts +1 -1
  70. package/package.json +1 -1
  71. package/src/apis/AssetApi.ts +48 -16
  72. package/src/apis/AttributeApi.ts +180 -60
  73. package/src/apis/DefinitionApi.ts +72 -24
  74. package/src/apis/DocumentApi.ts +108 -36
  75. package/src/apis/ExternalApiLogApi.ts +12 -4
  76. package/src/apis/GoogleCategoryApi.ts +12 -4
  77. package/src/apis/OverlayTemplateApi.ts +144 -48
  78. package/src/apis/ProductApi.ts +252 -84
  79. package/src/apis/ProductCategoryApi.ts +156 -52
  80. package/src/apis/ProductTypeApi.ts +108 -36
  81. package/src/apis/SiteApi.ts +96 -32
  82. package/src/apis/SupplierApi.ts +96 -32
  83. package/src/apis/TagApi.ts +96 -32
  84. package/src/models/AttachAttributeProductTypeRequest.ts +1 -1
  85. package/src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts +1 -1
  86. package/src/models/AttachProductTypeAttributeRequest.ts +1 -1
  87. package/src/models/DetachAssetableOverlayTemplateRequest.ts +1 -1
  88. package/src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts +1 -1
  89. package/src/models/GetAllAttributeRequest.ts +3 -3
  90. package/src/models/GetAllDefinitionRequest.ts +2 -2
  91. package/src/models/GetAllDocumentRequest.ts +3 -3
  92. package/src/models/GetAllGoogleCategoryRequest.ts +2 -2
  93. package/src/models/GetAllOverlayTemplateRequest.ts +3 -3
  94. package/src/models/GetAllProductCategoryRequest.ts +3 -3
  95. package/src/models/GetAllProductChildRequest.ts +3 -3
  96. package/src/models/GetAllProductRequest.ts +3 -3
  97. package/src/models/GetAllProductTypeRequest.ts +3 -3
  98. package/src/models/GetAllSupplierRequest.ts +3 -3
  99. package/src/models/IndexAttributeRequest.ts +3 -3
  100. package/src/models/IndexAttributeValueRequest.ts +3 -3
  101. package/src/models/IndexDefinitionRequest.ts +2 -2
  102. package/src/models/IndexDocumentRequest.ts +3 -3
  103. package/src/models/IndexExternalApiLogRequest.ts +2 -2
  104. package/src/models/IndexOverlayTemplateRequest.ts +3 -3
  105. package/src/models/IndexProductCategoryRequest.ts +3 -3
  106. package/src/models/IndexProductChildRequest.ts +3 -3
  107. package/src/models/IndexProductRequest.ts +3 -3
  108. package/src/models/IndexProductTypeRequest.ts +3 -3
  109. package/src/models/IndexSiteNotificationRequest.ts +2 -2
  110. package/src/models/IndexSiteRequest.ts +2 -2
  111. package/src/models/IndexSupplierRequest.ts +3 -3
  112. package/src/models/IndexTagRequest.ts +3 -3
  113. package/src/models/PreviewAutomationRulesProductCategoryRequest.ts +1 -1
  114. package/src/models/StoreAssetForAssetableRequest.ts +1 -1
  115. package/src/models/StoreAttributeRequest.ts +1 -1
  116. package/src/models/StoreOverlayTemplateAssetRequest.ts +1 -1
  117. package/src/models/StoreProductCategoryRequest.ts +1 -1
  118. package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +2 -2
  119. package/src/models/StoreTagRequest.ts +1 -1
  120. package/src/models/UpdateAttributeRequest.ts +1 -1
  121. package/src/models/UpdateOverlayTemplateAssetRequest.ts +1 -1
  122. package/src/models/UpdateProductCategoryRequest.ts +1 -1
  123. package/src/models/UpdateSiteRequest.ts +1 -1
  124. package/src/models/UpdateTagRequest.ts +1 -1
@@ -75,31 +75,44 @@ var TagApi = /** @class */ (function (_super) {
75
75
  function TagApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
+ /**
79
+ * Creates request options for attachProductChildrenTag without sending the request
80
+ */
81
+ TagApi.prototype.attachProductChildrenTagRequestOpts = function (requestParameters) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, urlPath;
84
+ return __generator(this, function (_a) {
85
+ if (requestParameters['tag'] == null) {
86
+ throw new runtime.RequiredError('tag', 'Required parameter "tag" was null or undefined when calling attachProductChildrenTag().');
87
+ }
88
+ queryParameters = {};
89
+ headerParameters = {};
90
+ headerParameters['Content-Type'] = 'application/json';
91
+ urlPath = "/admin-api/tag/{tag}/attach-product-children";
92
+ urlPath = urlPath.replace("{".concat("tag", "}"), encodeURIComponent(String(requestParameters['tag'])));
93
+ return [2 /*return*/, {
94
+ path: urlPath,
95
+ method: 'POST',
96
+ headers: headerParameters,
97
+ query: queryParameters,
98
+ body: (0, index_1.AttachAccessoriesProductChildRequestToJSON)(requestParameters['attachAccessoriesProductChildRequest']),
99
+ }];
100
+ });
101
+ });
102
+ };
78
103
  /**
79
104
  * Auto-generated: attachProductChildrenTag
80
105
  */
81
106
  TagApi.prototype.attachProductChildrenTagRaw = function (requestParameters, initOverrides) {
82
107
  return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, urlPath, response;
108
+ var requestOptions, response;
84
109
  return __generator(this, function (_a) {
85
110
  switch (_a.label) {
86
- case 0:
87
- if (requestParameters['tag'] == null) {
88
- throw new runtime.RequiredError('tag', 'Required parameter "tag" was null or undefined when calling attachProductChildrenTag().');
89
- }
90
- queryParameters = {};
91
- headerParameters = {};
92
- headerParameters['Content-Type'] = 'application/json';
93
- urlPath = "/admin-api/tag/{tag}/attach-product-children";
94
- urlPath = urlPath.replace("{".concat("tag", "}"), encodeURIComponent(String(requestParameters['tag'])));
95
- return [4 /*yield*/, this.request({
96
- path: urlPath,
97
- method: 'POST',
98
- headers: headerParameters,
99
- query: queryParameters,
100
- body: (0, index_1.AttachAccessoriesProductChildRequestToJSON)(requestParameters['attachAccessoriesProductChildRequest']),
101
- }, initOverrides)];
111
+ case 0: return [4 /*yield*/, this.attachProductChildrenTagRequestOpts(requestParameters)];
102
112
  case 1:
113
+ requestOptions = _a.sent();
114
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
115
+ case 2:
103
116
  response = _a.sent();
104
117
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductChildRelationResourceArrayResponseFromJSON)(jsonValue); })];
105
118
  }
@@ -123,29 +136,42 @@ var TagApi = /** @class */ (function (_super) {
123
136
  });
124
137
  });
125
138
  };
139
+ /**
140
+ * Creates request options for destroyTag without sending the request
141
+ */
142
+ TagApi.prototype.destroyTagRequestOpts = function (requestParameters) {
143
+ return __awaiter(this, void 0, void 0, function () {
144
+ var queryParameters, headerParameters, urlPath;
145
+ return __generator(this, function (_a) {
146
+ if (requestParameters['tag'] == null) {
147
+ throw new runtime.RequiredError('tag', 'Required parameter "tag" was null or undefined when calling destroyTag().');
148
+ }
149
+ queryParameters = {};
150
+ headerParameters = {};
151
+ urlPath = "/admin-api/tag/{tag}/delete";
152
+ urlPath = urlPath.replace("{".concat("tag", "}"), encodeURIComponent(String(requestParameters['tag'])));
153
+ return [2 /*return*/, {
154
+ path: urlPath,
155
+ method: 'DELETE',
156
+ headers: headerParameters,
157
+ query: queryParameters,
158
+ }];
159
+ });
160
+ });
161
+ };
126
162
  /**
127
163
  * Auto-generated: destroyTag
128
164
  */
129
165
  TagApi.prototype.destroyTagRaw = function (requestParameters, initOverrides) {
130
166
  return __awaiter(this, void 0, void 0, function () {
131
- var queryParameters, headerParameters, urlPath, response;
167
+ var requestOptions, response;
132
168
  return __generator(this, function (_a) {
133
169
  switch (_a.label) {
134
- case 0:
135
- if (requestParameters['tag'] == null) {
136
- throw new runtime.RequiredError('tag', 'Required parameter "tag" was null or undefined when calling destroyTag().');
137
- }
138
- queryParameters = {};
139
- headerParameters = {};
140
- urlPath = "/admin-api/tag/{tag}/delete";
141
- urlPath = urlPath.replace("{".concat("tag", "}"), encodeURIComponent(String(requestParameters['tag'])));
142
- return [4 /*yield*/, this.request({
143
- path: urlPath,
144
- method: 'DELETE',
145
- headers: headerParameters,
146
- query: queryParameters,
147
- }, initOverrides)];
170
+ case 0: return [4 /*yield*/, this.destroyTagRequestOpts(requestParameters)];
148
171
  case 1:
172
+ requestOptions = _a.sent();
173
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
174
+ case 2:
149
175
  response = _a.sent();
150
176
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
151
177
  }
@@ -169,33 +195,46 @@ var TagApi = /** @class */ (function (_super) {
169
195
  });
170
196
  });
171
197
  };
198
+ /**
199
+ * Creates request options for detachProductChildTag without sending the request
200
+ */
201
+ TagApi.prototype.detachProductChildTagRequestOpts = function (requestParameters) {
202
+ return __awaiter(this, void 0, void 0, function () {
203
+ var queryParameters, headerParameters, urlPath;
204
+ return __generator(this, function (_a) {
205
+ if (requestParameters['tag'] == null) {
206
+ throw new runtime.RequiredError('tag', 'Required parameter "tag" was null or undefined when calling detachProductChildTag().');
207
+ }
208
+ if (requestParameters['productChild'] == null) {
209
+ throw new runtime.RequiredError('productChild', 'Required parameter "productChild" was null or undefined when calling detachProductChildTag().');
210
+ }
211
+ queryParameters = {};
212
+ headerParameters = {};
213
+ urlPath = "/admin-api/tag/{tag}/detach-product-child/{productChild}";
214
+ urlPath = urlPath.replace("{".concat("tag", "}"), encodeURIComponent(String(requestParameters['tag'])));
215
+ urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
216
+ return [2 /*return*/, {
217
+ path: urlPath,
218
+ method: 'POST',
219
+ headers: headerParameters,
220
+ query: queryParameters,
221
+ }];
222
+ });
223
+ });
224
+ };
172
225
  /**
173
226
  * Auto-generated: detachProductChildTag
174
227
  */
175
228
  TagApi.prototype.detachProductChildTagRaw = function (requestParameters, initOverrides) {
176
229
  return __awaiter(this, void 0, void 0, function () {
177
- var queryParameters, headerParameters, urlPath, response;
230
+ var requestOptions, response;
178
231
  return __generator(this, function (_a) {
179
232
  switch (_a.label) {
180
- case 0:
181
- if (requestParameters['tag'] == null) {
182
- throw new runtime.RequiredError('tag', 'Required parameter "tag" was null or undefined when calling detachProductChildTag().');
183
- }
184
- if (requestParameters['productChild'] == null) {
185
- throw new runtime.RequiredError('productChild', 'Required parameter "productChild" was null or undefined when calling detachProductChildTag().');
186
- }
187
- queryParameters = {};
188
- headerParameters = {};
189
- urlPath = "/admin-api/tag/{tag}/detach-product-child/{productChild}";
190
- urlPath = urlPath.replace("{".concat("tag", "}"), encodeURIComponent(String(requestParameters['tag'])));
191
- urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
192
- return [4 /*yield*/, this.request({
193
- path: urlPath,
194
- method: 'POST',
195
- headers: headerParameters,
196
- query: queryParameters,
197
- }, initOverrides)];
233
+ case 0: return [4 /*yield*/, this.detachProductChildTagRequestOpts(requestParameters)];
198
234
  case 1:
235
+ requestOptions = _a.sent();
236
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
237
+ case 2:
199
238
  response = _a.sent();
200
239
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductChildRelationResourceArrayResponseFromJSON)(jsonValue); })];
201
240
  }
@@ -219,27 +258,40 @@ var TagApi = /** @class */ (function (_super) {
219
258
  });
220
259
  });
221
260
  };
261
+ /**
262
+ * Creates request options for getAllTag without sending the request
263
+ */
264
+ TagApi.prototype.getAllTagRequestOpts = function (requestParameters) {
265
+ return __awaiter(this, void 0, void 0, function () {
266
+ var queryParameters, headerParameters, urlPath;
267
+ return __generator(this, function (_a) {
268
+ queryParameters = {};
269
+ headerParameters = {};
270
+ headerParameters['Content-Type'] = 'application/json';
271
+ urlPath = "/admin-api/tag/all";
272
+ return [2 /*return*/, {
273
+ path: urlPath,
274
+ method: 'POST',
275
+ headers: headerParameters,
276
+ query: queryParameters,
277
+ body: (0, index_1.IndexTagRequestToJSON)(requestParameters['indexTagRequest']),
278
+ }];
279
+ });
280
+ });
281
+ };
222
282
  /**
223
283
  * Auto-generated: getAllTag
224
284
  */
225
285
  TagApi.prototype.getAllTagRaw = function (requestParameters, initOverrides) {
226
286
  return __awaiter(this, void 0, void 0, function () {
227
- var queryParameters, headerParameters, urlPath, response;
287
+ var requestOptions, response;
228
288
  return __generator(this, function (_a) {
229
289
  switch (_a.label) {
230
- case 0:
231
- queryParameters = {};
232
- headerParameters = {};
233
- headerParameters['Content-Type'] = 'application/json';
234
- urlPath = "/admin-api/tag/all";
235
- return [4 /*yield*/, this.request({
236
- path: urlPath,
237
- method: 'POST',
238
- headers: headerParameters,
239
- query: queryParameters,
240
- body: (0, index_1.IndexTagRequestToJSON)(requestParameters['indexTagRequest']),
241
- }, initOverrides)];
290
+ case 0: return [4 /*yield*/, this.getAllTagRequestOpts(requestParameters)];
242
291
  case 1:
292
+ requestOptions = _a.sent();
293
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
294
+ case 2:
243
295
  response = _a.sent();
244
296
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TagLiteResourceArrayResponseFromJSON)(jsonValue); })];
245
297
  }
@@ -264,27 +316,40 @@ var TagApi = /** @class */ (function (_super) {
264
316
  });
265
317
  });
266
318
  };
319
+ /**
320
+ * Creates request options for indexTag without sending the request
321
+ */
322
+ TagApi.prototype.indexTagRequestOpts = function (requestParameters) {
323
+ return __awaiter(this, void 0, void 0, function () {
324
+ var queryParameters, headerParameters, urlPath;
325
+ return __generator(this, function (_a) {
326
+ queryParameters = {};
327
+ headerParameters = {};
328
+ headerParameters['Content-Type'] = 'application/json';
329
+ urlPath = "/admin-api/tag/list";
330
+ return [2 /*return*/, {
331
+ path: urlPath,
332
+ method: 'POST',
333
+ headers: headerParameters,
334
+ query: queryParameters,
335
+ body: (0, index_1.IndexTagRequestToJSON)(requestParameters['indexTagRequest']),
336
+ }];
337
+ });
338
+ });
339
+ };
267
340
  /**
268
341
  * Auto-generated: indexTag
269
342
  */
270
343
  TagApi.prototype.indexTagRaw = function (requestParameters, initOverrides) {
271
344
  return __awaiter(this, void 0, void 0, function () {
272
- var queryParameters, headerParameters, urlPath, response;
345
+ var requestOptions, response;
273
346
  return __generator(this, function (_a) {
274
347
  switch (_a.label) {
275
- case 0:
276
- queryParameters = {};
277
- headerParameters = {};
278
- headerParameters['Content-Type'] = 'application/json';
279
- urlPath = "/admin-api/tag/list";
280
- return [4 /*yield*/, this.request({
281
- path: urlPath,
282
- method: 'POST',
283
- headers: headerParameters,
284
- query: queryParameters,
285
- body: (0, index_1.IndexTagRequestToJSON)(requestParameters['indexTagRequest']),
286
- }, initOverrides)];
348
+ case 0: return [4 /*yield*/, this.indexTagRequestOpts(requestParameters)];
287
349
  case 1:
350
+ requestOptions = _a.sent();
351
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
352
+ case 2:
288
353
  response = _a.sent();
289
354
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedTagListResourceResponseFromJSON)(jsonValue); })];
290
355
  }
@@ -309,29 +374,42 @@ var TagApi = /** @class */ (function (_super) {
309
374
  });
310
375
  });
311
376
  };
377
+ /**
378
+ * Creates request options for showTag without sending the request
379
+ */
380
+ TagApi.prototype.showTagRequestOpts = function (requestParameters) {
381
+ return __awaiter(this, void 0, void 0, function () {
382
+ var queryParameters, headerParameters, urlPath;
383
+ return __generator(this, function (_a) {
384
+ if (requestParameters['tag'] == null) {
385
+ throw new runtime.RequiredError('tag', 'Required parameter "tag" was null or undefined when calling showTag().');
386
+ }
387
+ queryParameters = {};
388
+ headerParameters = {};
389
+ urlPath = "/admin-api/tag/{tag}";
390
+ urlPath = urlPath.replace("{".concat("tag", "}"), encodeURIComponent(String(requestParameters['tag'])));
391
+ return [2 /*return*/, {
392
+ path: urlPath,
393
+ method: 'GET',
394
+ headers: headerParameters,
395
+ query: queryParameters,
396
+ }];
397
+ });
398
+ });
399
+ };
312
400
  /**
313
401
  * Auto-generated: showTag
314
402
  */
315
403
  TagApi.prototype.showTagRaw = function (requestParameters, initOverrides) {
316
404
  return __awaiter(this, void 0, void 0, function () {
317
- var queryParameters, headerParameters, urlPath, response;
405
+ var requestOptions, response;
318
406
  return __generator(this, function (_a) {
319
407
  switch (_a.label) {
320
- case 0:
321
- if (requestParameters['tag'] == null) {
322
- throw new runtime.RequiredError('tag', 'Required parameter "tag" was null or undefined when calling showTag().');
323
- }
324
- queryParameters = {};
325
- headerParameters = {};
326
- urlPath = "/admin-api/tag/{tag}";
327
- urlPath = urlPath.replace("{".concat("tag", "}"), encodeURIComponent(String(requestParameters['tag'])));
328
- return [4 /*yield*/, this.request({
329
- path: urlPath,
330
- method: 'GET',
331
- headers: headerParameters,
332
- query: queryParameters,
333
- }, initOverrides)];
408
+ case 0: return [4 /*yield*/, this.showTagRequestOpts(requestParameters)];
334
409
  case 1:
410
+ requestOptions = _a.sent();
411
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
412
+ case 2:
335
413
  response = _a.sent();
336
414
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TagResourceFromJSON)(jsonValue); })];
337
415
  }
@@ -355,27 +433,40 @@ var TagApi = /** @class */ (function (_super) {
355
433
  });
356
434
  });
357
435
  };
436
+ /**
437
+ * Creates request options for storeTag without sending the request
438
+ */
439
+ TagApi.prototype.storeTagRequestOpts = function (requestParameters) {
440
+ return __awaiter(this, void 0, void 0, function () {
441
+ var queryParameters, headerParameters, urlPath;
442
+ return __generator(this, function (_a) {
443
+ queryParameters = {};
444
+ headerParameters = {};
445
+ headerParameters['Content-Type'] = 'application/json';
446
+ urlPath = "/admin-api/tag/create";
447
+ return [2 /*return*/, {
448
+ path: urlPath,
449
+ method: 'POST',
450
+ headers: headerParameters,
451
+ query: queryParameters,
452
+ body: (0, index_1.StoreTagRequestToJSON)(requestParameters['storeTagRequest']),
453
+ }];
454
+ });
455
+ });
456
+ };
358
457
  /**
359
458
  * Auto-generated: storeTag
360
459
  */
361
460
  TagApi.prototype.storeTagRaw = function (requestParameters, initOverrides) {
362
461
  return __awaiter(this, void 0, void 0, function () {
363
- var queryParameters, headerParameters, urlPath, response;
462
+ var requestOptions, response;
364
463
  return __generator(this, function (_a) {
365
464
  switch (_a.label) {
366
- case 0:
367
- queryParameters = {};
368
- headerParameters = {};
369
- headerParameters['Content-Type'] = 'application/json';
370
- urlPath = "/admin-api/tag/create";
371
- return [4 /*yield*/, this.request({
372
- path: urlPath,
373
- method: 'POST',
374
- headers: headerParameters,
375
- query: queryParameters,
376
- body: (0, index_1.StoreTagRequestToJSON)(requestParameters['storeTagRequest']),
377
- }, initOverrides)];
465
+ case 0: return [4 /*yield*/, this.storeTagRequestOpts(requestParameters)];
378
466
  case 1:
467
+ requestOptions = _a.sent();
468
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
469
+ case 2:
379
470
  response = _a.sent();
380
471
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TagResourceFromJSON)(jsonValue); })];
381
472
  }
@@ -400,31 +491,44 @@ var TagApi = /** @class */ (function (_super) {
400
491
  });
401
492
  });
402
493
  };
494
+ /**
495
+ * Creates request options for updateTag without sending the request
496
+ */
497
+ TagApi.prototype.updateTagRequestOpts = function (requestParameters) {
498
+ return __awaiter(this, void 0, void 0, function () {
499
+ var queryParameters, headerParameters, urlPath;
500
+ return __generator(this, function (_a) {
501
+ if (requestParameters['tag'] == null) {
502
+ throw new runtime.RequiredError('tag', 'Required parameter "tag" was null or undefined when calling updateTag().');
503
+ }
504
+ queryParameters = {};
505
+ headerParameters = {};
506
+ headerParameters['Content-Type'] = 'application/json';
507
+ urlPath = "/admin-api/tag/{tag}/update";
508
+ urlPath = urlPath.replace("{".concat("tag", "}"), encodeURIComponent(String(requestParameters['tag'])));
509
+ return [2 /*return*/, {
510
+ path: urlPath,
511
+ method: 'PUT',
512
+ headers: headerParameters,
513
+ query: queryParameters,
514
+ body: (0, index_1.UpdateTagRequestToJSON)(requestParameters['updateTagRequest']),
515
+ }];
516
+ });
517
+ });
518
+ };
403
519
  /**
404
520
  * Auto-generated: updateTag
405
521
  */
406
522
  TagApi.prototype.updateTagRaw = function (requestParameters, initOverrides) {
407
523
  return __awaiter(this, void 0, void 0, function () {
408
- var queryParameters, headerParameters, urlPath, response;
524
+ var requestOptions, response;
409
525
  return __generator(this, function (_a) {
410
526
  switch (_a.label) {
411
- case 0:
412
- if (requestParameters['tag'] == null) {
413
- throw new runtime.RequiredError('tag', 'Required parameter "tag" was null or undefined when calling updateTag().');
414
- }
415
- queryParameters = {};
416
- headerParameters = {};
417
- headerParameters['Content-Type'] = 'application/json';
418
- urlPath = "/admin-api/tag/{tag}/update";
419
- urlPath = urlPath.replace("{".concat("tag", "}"), encodeURIComponent(String(requestParameters['tag'])));
420
- return [4 /*yield*/, this.request({
421
- path: urlPath,
422
- method: 'PUT',
423
- headers: headerParameters,
424
- query: queryParameters,
425
- body: (0, index_1.UpdateTagRequestToJSON)(requestParameters['updateTagRequest']),
426
- }, initOverrides)];
527
+ case 0: return [4 /*yield*/, this.updateTagRequestOpts(requestParameters)];
427
528
  case 1:
529
+ requestOptions = _a.sent();
530
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
531
+ case 2:
428
532
  response = _a.sent();
429
533
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TagResourceFromJSON)(jsonValue); })];
430
534
  }
@@ -23,7 +23,7 @@ export interface AttachAttributeProductTypeRequest {
23
23
  attributeId: number;
24
24
  /**
25
25
  *
26
- * @type {string}
26
+ * @type {AttachAttributeProductTypeRequestFieldTypeEnum}
27
27
  * @memberof AttachAttributeProductTypeRequest
28
28
  */
29
29
  fieldType: AttachAttributeProductTypeRequestFieldTypeEnum;
@@ -17,7 +17,7 @@
17
17
  export interface AttachDocumentablesDocumentRequestDocumentablesInner {
18
18
  /**
19
19
  *
20
- * @type {string}
20
+ * @type {AttachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum}
21
21
  * @memberof AttachDocumentablesDocumentRequestDocumentablesInner
22
22
  */
23
23
  documentableType: AttachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum;
@@ -23,7 +23,7 @@ export interface AttachProductTypeAttributeRequest {
23
23
  productTypeId: number;
24
24
  /**
25
25
  *
26
- * @type {string}
26
+ * @type {AttachProductTypeAttributeRequestFieldTypeEnum}
27
27
  * @memberof AttachProductTypeAttributeRequest
28
28
  */
29
29
  fieldType: AttachProductTypeAttributeRequestFieldTypeEnum;
@@ -23,7 +23,7 @@ export interface DetachAssetableOverlayTemplateRequest {
23
23
  relatedId: number;
24
24
  /**
25
25
  *
26
- * @type {string}
26
+ * @type {DetachAssetableOverlayTemplateRequestRelatedTypeEnum}
27
27
  * @memberof DetachAssetableOverlayTemplateRequest
28
28
  */
29
29
  relatedType: DetachAssetableOverlayTemplateRequestRelatedTypeEnum;
@@ -17,7 +17,7 @@
17
17
  export interface DetachDocumentablesDocumentRequestDocumentablesInner {
18
18
  /**
19
19
  *
20
- * @type {string}
20
+ * @type {DetachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum}
21
21
  * @memberof DetachDocumentablesDocumentRequestDocumentablesInner
22
22
  */
23
23
  documentableType: DetachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum;
@@ -23,13 +23,13 @@ export interface GetAllAttributeRequest {
23
23
  search?: string;
24
24
  /**
25
25
  *
26
- * @type {string}
26
+ * @type {GetAllAttributeRequestSortByEnum}
27
27
  * @memberof GetAllAttributeRequest
28
28
  */
29
29
  sortBy?: GetAllAttributeRequestSortByEnum;
30
30
  /**
31
31
  *
32
- * @type {string}
32
+ * @type {GetAllAttributeRequestSortDirectionEnum}
33
33
  * @memberof GetAllAttributeRequest
34
34
  */
35
35
  sortDirection?: GetAllAttributeRequestSortDirectionEnum;
@@ -41,7 +41,7 @@ export interface GetAllAttributeRequest {
41
41
  relatedId?: number;
42
42
  /**
43
43
  *
44
- * @type {string}
44
+ * @type {GetAllAttributeRequestRelatedTypeEnum}
45
45
  * @memberof GetAllAttributeRequest
46
46
  */
47
47
  relatedType?: GetAllAttributeRequestRelatedTypeEnum;
@@ -23,13 +23,13 @@ export interface GetAllDefinitionRequest {
23
23
  search?: string;
24
24
  /**
25
25
  *
26
- * @type {string}
26
+ * @type {GetAllDefinitionRequestSortByEnum}
27
27
  * @memberof GetAllDefinitionRequest
28
28
  */
29
29
  sortBy?: GetAllDefinitionRequestSortByEnum;
30
30
  /**
31
31
  *
32
- * @type {string}
32
+ * @type {GetAllDefinitionRequestSortDirectionEnum}
33
33
  * @memberof GetAllDefinitionRequest
34
34
  */
35
35
  sortDirection?: GetAllDefinitionRequestSortDirectionEnum;
@@ -23,13 +23,13 @@ export interface GetAllDocumentRequest {
23
23
  search?: string;
24
24
  /**
25
25
  *
26
- * @type {string}
26
+ * @type {GetAllDocumentRequestSortByEnum}
27
27
  * @memberof GetAllDocumentRequest
28
28
  */
29
29
  sortBy?: GetAllDocumentRequestSortByEnum;
30
30
  /**
31
31
  *
32
- * @type {string}
32
+ * @type {GetAllDocumentRequestSortDirectionEnum}
33
33
  * @memberof GetAllDocumentRequest
34
34
  */
35
35
  sortDirection?: GetAllDocumentRequestSortDirectionEnum;
@@ -41,7 +41,7 @@ export interface GetAllDocumentRequest {
41
41
  relatedId?: number;
42
42
  /**
43
43
  *
44
- * @type {string}
44
+ * @type {GetAllDocumentRequestRelatedTypeEnum}
45
45
  * @memberof GetAllDocumentRequest
46
46
  */
47
47
  relatedType?: GetAllDocumentRequestRelatedTypeEnum;
@@ -23,13 +23,13 @@ export interface GetAllGoogleCategoryRequest {
23
23
  search?: string;
24
24
  /**
25
25
  *
26
- * @type {string}
26
+ * @type {GetAllGoogleCategoryRequestSortByEnum}
27
27
  * @memberof GetAllGoogleCategoryRequest
28
28
  */
29
29
  sortBy?: GetAllGoogleCategoryRequestSortByEnum;
30
30
  /**
31
31
  *
32
- * @type {string}
32
+ * @type {GetAllGoogleCategoryRequestSortDirectionEnum}
33
33
  * @memberof GetAllGoogleCategoryRequest
34
34
  */
35
35
  sortDirection?: GetAllGoogleCategoryRequestSortDirectionEnum;
@@ -23,13 +23,13 @@ export interface GetAllOverlayTemplateRequest {
23
23
  search?: string;
24
24
  /**
25
25
  *
26
- * @type {string}
26
+ * @type {GetAllOverlayTemplateRequestSortByEnum}
27
27
  * @memberof GetAllOverlayTemplateRequest
28
28
  */
29
29
  sortBy?: GetAllOverlayTemplateRequestSortByEnum;
30
30
  /**
31
31
  *
32
- * @type {string}
32
+ * @type {GetAllOverlayTemplateRequestSortDirectionEnum}
33
33
  * @memberof GetAllOverlayTemplateRequest
34
34
  */
35
35
  sortDirection?: GetAllOverlayTemplateRequestSortDirectionEnum;
@@ -41,7 +41,7 @@ export interface GetAllOverlayTemplateRequest {
41
41
  relatedId?: number;
42
42
  /**
43
43
  *
44
- * @type {string}
44
+ * @type {GetAllOverlayTemplateRequestRelatedTypeEnum}
45
45
  * @memberof GetAllOverlayTemplateRequest
46
46
  */
47
47
  relatedType?: GetAllOverlayTemplateRequestRelatedTypeEnum;
@@ -23,13 +23,13 @@ export interface GetAllProductCategoryRequest {
23
23
  search?: string;
24
24
  /**
25
25
  *
26
- * @type {string}
26
+ * @type {GetAllProductCategoryRequestSortByEnum}
27
27
  * @memberof GetAllProductCategoryRequest
28
28
  */
29
29
  sortBy?: GetAllProductCategoryRequestSortByEnum;
30
30
  /**
31
31
  *
32
- * @type {string}
32
+ * @type {GetAllProductCategoryRequestSortDirectionEnum}
33
33
  * @memberof GetAllProductCategoryRequest
34
34
  */
35
35
  sortDirection?: GetAllProductCategoryRequestSortDirectionEnum;
@@ -41,7 +41,7 @@ export interface GetAllProductCategoryRequest {
41
41
  relatedId?: number;
42
42
  /**
43
43
  *
44
- * @type {string}
44
+ * @type {GetAllProductCategoryRequestRelatedTypeEnum}
45
45
  * @memberof GetAllProductCategoryRequest
46
46
  */
47
47
  relatedType?: GetAllProductCategoryRequestRelatedTypeEnum;