@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
@@ -41,6 +41,10 @@ export interface UpdateSiteNotificationOperationRequest {
41
41
  *
42
42
  */
43
43
  export declare class SiteApi extends runtime.BaseAPI {
44
+ /**
45
+ * Creates request options for destroySiteNotification without sending the request
46
+ */
47
+ destroySiteNotificationRequestOpts(requestParameters: DestroySiteNotificationRequest): Promise<runtime.RequestOpts>;
44
48
  /**
45
49
  * Auto-generated: destroySiteNotification
46
50
  */
@@ -49,6 +53,10 @@ export declare class SiteApi extends runtime.BaseAPI {
49
53
  * Auto-generated: destroySiteNotification
50
54
  */
51
55
  destroySiteNotification(requestParameters: DestroySiteNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
56
+ /**
57
+ * Creates request options for getAllSite without sending the request
58
+ */
59
+ getAllSiteRequestOpts(requestParameters: GetAllSiteRequest): Promise<runtime.RequestOpts>;
52
60
  /**
53
61
  * Auto-generated: getAllSite
54
62
  */
@@ -57,6 +65,10 @@ export declare class SiteApi extends runtime.BaseAPI {
57
65
  * Auto-generated: getAllSite
58
66
  */
59
67
  getAllSite(requestParameters?: GetAllSiteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SiteLiteResourceArrayResponse>;
68
+ /**
69
+ * Creates request options for indexSite without sending the request
70
+ */
71
+ indexSiteRequestOpts(requestParameters: IndexSiteOperationRequest): Promise<runtime.RequestOpts>;
60
72
  /**
61
73
  * Auto-generated: indexSite
62
74
  */
@@ -65,6 +77,10 @@ export declare class SiteApi extends runtime.BaseAPI {
65
77
  * Auto-generated: indexSite
66
78
  */
67
79
  indexSite(requestParameters?: IndexSiteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSiteListResourceResponse>;
80
+ /**
81
+ * Creates request options for indexSiteNotification without sending the request
82
+ */
83
+ indexSiteNotificationRequestOpts(requestParameters: IndexSiteNotificationOperationRequest): Promise<runtime.RequestOpts>;
68
84
  /**
69
85
  * Auto-generated: indexSiteNotification
70
86
  */
@@ -73,6 +89,10 @@ export declare class SiteApi extends runtime.BaseAPI {
73
89
  * Auto-generated: indexSiteNotification
74
90
  */
75
91
  indexSiteNotification(requestParameters?: IndexSiteNotificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSiteNotificationListResourceResponse>;
92
+ /**
93
+ * Creates request options for showSite without sending the request
94
+ */
95
+ showSiteRequestOpts(requestParameters: ShowSiteRequest): Promise<runtime.RequestOpts>;
76
96
  /**
77
97
  * Auto-generated: showSite
78
98
  */
@@ -81,6 +101,10 @@ export declare class SiteApi extends runtime.BaseAPI {
81
101
  * Auto-generated: showSite
82
102
  */
83
103
  showSite(requestParameters: ShowSiteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SiteResource>;
104
+ /**
105
+ * Creates request options for storeSiteNotification without sending the request
106
+ */
107
+ storeSiteNotificationRequestOpts(requestParameters: StoreSiteNotificationOperationRequest): Promise<runtime.RequestOpts>;
84
108
  /**
85
109
  * Auto-generated: storeSiteNotification
86
110
  */
@@ -89,6 +113,10 @@ export declare class SiteApi extends runtime.BaseAPI {
89
113
  * Auto-generated: storeSiteNotification
90
114
  */
91
115
  storeSiteNotification(requestParameters?: StoreSiteNotificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SiteNotificationResource>;
116
+ /**
117
+ * Creates request options for updateSite without sending the request
118
+ */
119
+ updateSiteRequestOpts(requestParameters: UpdateSiteOperationRequest): Promise<runtime.RequestOpts>;
92
120
  /**
93
121
  * Auto-generated: updateSite
94
122
  */
@@ -97,6 +125,10 @@ export declare class SiteApi extends runtime.BaseAPI {
97
125
  * Auto-generated: updateSite
98
126
  */
99
127
  updateSite(requestParameters: UpdateSiteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SiteResource>;
128
+ /**
129
+ * Creates request options for updateSiteNotification without sending the request
130
+ */
131
+ updateSiteNotificationRequestOpts(requestParameters: UpdateSiteNotificationOperationRequest): Promise<runtime.RequestOpts>;
100
132
  /**
101
133
  * Auto-generated: updateSiteNotification
102
134
  */
@@ -75,29 +75,42 @@ var SiteApi = /** @class */ (function (_super) {
75
75
  function SiteApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
+ /**
79
+ * Creates request options for destroySiteNotification without sending the request
80
+ */
81
+ SiteApi.prototype.destroySiteNotificationRequestOpts = 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['siteNotification'] == null) {
86
+ throw new runtime.RequiredError('siteNotification', 'Required parameter "siteNotification" was null or undefined when calling destroySiteNotification().');
87
+ }
88
+ queryParameters = {};
89
+ headerParameters = {};
90
+ urlPath = "/admin-api/site/notification/{siteNotification}/delete";
91
+ urlPath = urlPath.replace("{".concat("siteNotification", "}"), encodeURIComponent(String(requestParameters['siteNotification'])));
92
+ return [2 /*return*/, {
93
+ path: urlPath,
94
+ method: 'DELETE',
95
+ headers: headerParameters,
96
+ query: queryParameters,
97
+ }];
98
+ });
99
+ });
100
+ };
78
101
  /**
79
102
  * Auto-generated: destroySiteNotification
80
103
  */
81
104
  SiteApi.prototype.destroySiteNotificationRaw = function (requestParameters, initOverrides) {
82
105
  return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, urlPath, response;
106
+ var requestOptions, response;
84
107
  return __generator(this, function (_a) {
85
108
  switch (_a.label) {
86
- case 0:
87
- if (requestParameters['siteNotification'] == null) {
88
- throw new runtime.RequiredError('siteNotification', 'Required parameter "siteNotification" was null or undefined when calling destroySiteNotification().');
89
- }
90
- queryParameters = {};
91
- headerParameters = {};
92
- urlPath = "/admin-api/site/notification/{siteNotification}/delete";
93
- urlPath = urlPath.replace("{".concat("siteNotification", "}"), encodeURIComponent(String(requestParameters['siteNotification'])));
94
- return [4 /*yield*/, this.request({
95
- path: urlPath,
96
- method: 'DELETE',
97
- headers: headerParameters,
98
- query: queryParameters,
99
- }, initOverrides)];
109
+ case 0: return [4 /*yield*/, this.destroySiteNotificationRequestOpts(requestParameters)];
100
110
  case 1:
111
+ requestOptions = _a.sent();
112
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
113
+ case 2:
101
114
  response = _a.sent();
102
115
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
103
116
  }
@@ -121,27 +134,40 @@ var SiteApi = /** @class */ (function (_super) {
121
134
  });
122
135
  });
123
136
  };
137
+ /**
138
+ * Creates request options for getAllSite without sending the request
139
+ */
140
+ SiteApi.prototype.getAllSiteRequestOpts = function (requestParameters) {
141
+ return __awaiter(this, void 0, void 0, function () {
142
+ var queryParameters, headerParameters, urlPath;
143
+ return __generator(this, function (_a) {
144
+ queryParameters = {};
145
+ headerParameters = {};
146
+ headerParameters['Content-Type'] = 'application/json';
147
+ urlPath = "/admin-api/site/all";
148
+ return [2 /*return*/, {
149
+ path: urlPath,
150
+ method: 'POST',
151
+ headers: headerParameters,
152
+ query: queryParameters,
153
+ body: (0, index_1.IndexSiteRequestToJSON)(requestParameters['indexSiteRequest']),
154
+ }];
155
+ });
156
+ });
157
+ };
124
158
  /**
125
159
  * Auto-generated: getAllSite
126
160
  */
127
161
  SiteApi.prototype.getAllSiteRaw = function (requestParameters, initOverrides) {
128
162
  return __awaiter(this, void 0, void 0, function () {
129
- var queryParameters, headerParameters, urlPath, response;
163
+ var requestOptions, response;
130
164
  return __generator(this, function (_a) {
131
165
  switch (_a.label) {
132
- case 0:
133
- queryParameters = {};
134
- headerParameters = {};
135
- headerParameters['Content-Type'] = 'application/json';
136
- urlPath = "/admin-api/site/all";
137
- return [4 /*yield*/, this.request({
138
- path: urlPath,
139
- method: 'POST',
140
- headers: headerParameters,
141
- query: queryParameters,
142
- body: (0, index_1.IndexSiteRequestToJSON)(requestParameters['indexSiteRequest']),
143
- }, initOverrides)];
166
+ case 0: return [4 /*yield*/, this.getAllSiteRequestOpts(requestParameters)];
144
167
  case 1:
168
+ requestOptions = _a.sent();
169
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
170
+ case 2:
145
171
  response = _a.sent();
146
172
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SiteLiteResourceArrayResponseFromJSON)(jsonValue); })];
147
173
  }
@@ -166,27 +192,40 @@ var SiteApi = /** @class */ (function (_super) {
166
192
  });
167
193
  });
168
194
  };
195
+ /**
196
+ * Creates request options for indexSite without sending the request
197
+ */
198
+ SiteApi.prototype.indexSiteRequestOpts = function (requestParameters) {
199
+ return __awaiter(this, void 0, void 0, function () {
200
+ var queryParameters, headerParameters, urlPath;
201
+ return __generator(this, function (_a) {
202
+ queryParameters = {};
203
+ headerParameters = {};
204
+ headerParameters['Content-Type'] = 'application/json';
205
+ urlPath = "/admin-api/site/list";
206
+ return [2 /*return*/, {
207
+ path: urlPath,
208
+ method: 'POST',
209
+ headers: headerParameters,
210
+ query: queryParameters,
211
+ body: (0, index_1.IndexSiteRequestToJSON)(requestParameters['indexSiteRequest']),
212
+ }];
213
+ });
214
+ });
215
+ };
169
216
  /**
170
217
  * Auto-generated: indexSite
171
218
  */
172
219
  SiteApi.prototype.indexSiteRaw = function (requestParameters, initOverrides) {
173
220
  return __awaiter(this, void 0, void 0, function () {
174
- var queryParameters, headerParameters, urlPath, response;
221
+ var requestOptions, response;
175
222
  return __generator(this, function (_a) {
176
223
  switch (_a.label) {
177
- case 0:
178
- queryParameters = {};
179
- headerParameters = {};
180
- headerParameters['Content-Type'] = 'application/json';
181
- urlPath = "/admin-api/site/list";
182
- return [4 /*yield*/, this.request({
183
- path: urlPath,
184
- method: 'POST',
185
- headers: headerParameters,
186
- query: queryParameters,
187
- body: (0, index_1.IndexSiteRequestToJSON)(requestParameters['indexSiteRequest']),
188
- }, initOverrides)];
224
+ case 0: return [4 /*yield*/, this.indexSiteRequestOpts(requestParameters)];
189
225
  case 1:
226
+ requestOptions = _a.sent();
227
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
228
+ case 2:
190
229
  response = _a.sent();
191
230
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedSiteListResourceResponseFromJSON)(jsonValue); })];
192
231
  }
@@ -211,27 +250,40 @@ var SiteApi = /** @class */ (function (_super) {
211
250
  });
212
251
  });
213
252
  };
253
+ /**
254
+ * Creates request options for indexSiteNotification without sending the request
255
+ */
256
+ SiteApi.prototype.indexSiteNotificationRequestOpts = function (requestParameters) {
257
+ return __awaiter(this, void 0, void 0, function () {
258
+ var queryParameters, headerParameters, urlPath;
259
+ return __generator(this, function (_a) {
260
+ queryParameters = {};
261
+ headerParameters = {};
262
+ headerParameters['Content-Type'] = 'application/json';
263
+ urlPath = "/admin-api/site/notification/list";
264
+ return [2 /*return*/, {
265
+ path: urlPath,
266
+ method: 'POST',
267
+ headers: headerParameters,
268
+ query: queryParameters,
269
+ body: (0, index_1.IndexSiteNotificationRequestToJSON)(requestParameters['indexSiteNotificationRequest']),
270
+ }];
271
+ });
272
+ });
273
+ };
214
274
  /**
215
275
  * Auto-generated: indexSiteNotification
216
276
  */
217
277
  SiteApi.prototype.indexSiteNotificationRaw = function (requestParameters, initOverrides) {
218
278
  return __awaiter(this, void 0, void 0, function () {
219
- var queryParameters, headerParameters, urlPath, response;
279
+ var requestOptions, response;
220
280
  return __generator(this, function (_a) {
221
281
  switch (_a.label) {
222
- case 0:
223
- queryParameters = {};
224
- headerParameters = {};
225
- headerParameters['Content-Type'] = 'application/json';
226
- urlPath = "/admin-api/site/notification/list";
227
- return [4 /*yield*/, this.request({
228
- path: urlPath,
229
- method: 'POST',
230
- headers: headerParameters,
231
- query: queryParameters,
232
- body: (0, index_1.IndexSiteNotificationRequestToJSON)(requestParameters['indexSiteNotificationRequest']),
233
- }, initOverrides)];
282
+ case 0: return [4 /*yield*/, this.indexSiteNotificationRequestOpts(requestParameters)];
234
283
  case 1:
284
+ requestOptions = _a.sent();
285
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
286
+ case 2:
235
287
  response = _a.sent();
236
288
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedSiteNotificationListResourceResponseFromJSON)(jsonValue); })];
237
289
  }
@@ -256,29 +308,42 @@ var SiteApi = /** @class */ (function (_super) {
256
308
  });
257
309
  });
258
310
  };
311
+ /**
312
+ * Creates request options for showSite without sending the request
313
+ */
314
+ SiteApi.prototype.showSiteRequestOpts = function (requestParameters) {
315
+ return __awaiter(this, void 0, void 0, function () {
316
+ var queryParameters, headerParameters, urlPath;
317
+ return __generator(this, function (_a) {
318
+ if (requestParameters['site'] == null) {
319
+ throw new runtime.RequiredError('site', 'Required parameter "site" was null or undefined when calling showSite().');
320
+ }
321
+ queryParameters = {};
322
+ headerParameters = {};
323
+ urlPath = "/admin-api/site/{site}";
324
+ urlPath = urlPath.replace("{".concat("site", "}"), encodeURIComponent(String(requestParameters['site'])));
325
+ return [2 /*return*/, {
326
+ path: urlPath,
327
+ method: 'GET',
328
+ headers: headerParameters,
329
+ query: queryParameters,
330
+ }];
331
+ });
332
+ });
333
+ };
259
334
  /**
260
335
  * Auto-generated: showSite
261
336
  */
262
337
  SiteApi.prototype.showSiteRaw = function (requestParameters, initOverrides) {
263
338
  return __awaiter(this, void 0, void 0, function () {
264
- var queryParameters, headerParameters, urlPath, response;
339
+ var requestOptions, response;
265
340
  return __generator(this, function (_a) {
266
341
  switch (_a.label) {
267
- case 0:
268
- if (requestParameters['site'] == null) {
269
- throw new runtime.RequiredError('site', 'Required parameter "site" was null or undefined when calling showSite().');
270
- }
271
- queryParameters = {};
272
- headerParameters = {};
273
- urlPath = "/admin-api/site/{site}";
274
- urlPath = urlPath.replace("{".concat("site", "}"), encodeURIComponent(String(requestParameters['site'])));
275
- return [4 /*yield*/, this.request({
276
- path: urlPath,
277
- method: 'GET',
278
- headers: headerParameters,
279
- query: queryParameters,
280
- }, initOverrides)];
342
+ case 0: return [4 /*yield*/, this.showSiteRequestOpts(requestParameters)];
281
343
  case 1:
344
+ requestOptions = _a.sent();
345
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
346
+ case 2:
282
347
  response = _a.sent();
283
348
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SiteResourceFromJSON)(jsonValue); })];
284
349
  }
@@ -302,27 +367,40 @@ var SiteApi = /** @class */ (function (_super) {
302
367
  });
303
368
  });
304
369
  };
370
+ /**
371
+ * Creates request options for storeSiteNotification without sending the request
372
+ */
373
+ SiteApi.prototype.storeSiteNotificationRequestOpts = function (requestParameters) {
374
+ return __awaiter(this, void 0, void 0, function () {
375
+ var queryParameters, headerParameters, urlPath;
376
+ return __generator(this, function (_a) {
377
+ queryParameters = {};
378
+ headerParameters = {};
379
+ headerParameters['Content-Type'] = 'application/json';
380
+ urlPath = "/admin-api/site/notification/create";
381
+ return [2 /*return*/, {
382
+ path: urlPath,
383
+ method: 'POST',
384
+ headers: headerParameters,
385
+ query: queryParameters,
386
+ body: (0, index_1.StoreSiteNotificationRequestToJSON)(requestParameters['storeSiteNotificationRequest']),
387
+ }];
388
+ });
389
+ });
390
+ };
305
391
  /**
306
392
  * Auto-generated: storeSiteNotification
307
393
  */
308
394
  SiteApi.prototype.storeSiteNotificationRaw = function (requestParameters, initOverrides) {
309
395
  return __awaiter(this, void 0, void 0, function () {
310
- var queryParameters, headerParameters, urlPath, response;
396
+ var requestOptions, response;
311
397
  return __generator(this, function (_a) {
312
398
  switch (_a.label) {
313
- case 0:
314
- queryParameters = {};
315
- headerParameters = {};
316
- headerParameters['Content-Type'] = 'application/json';
317
- urlPath = "/admin-api/site/notification/create";
318
- return [4 /*yield*/, this.request({
319
- path: urlPath,
320
- method: 'POST',
321
- headers: headerParameters,
322
- query: queryParameters,
323
- body: (0, index_1.StoreSiteNotificationRequestToJSON)(requestParameters['storeSiteNotificationRequest']),
324
- }, initOverrides)];
399
+ case 0: return [4 /*yield*/, this.storeSiteNotificationRequestOpts(requestParameters)];
325
400
  case 1:
401
+ requestOptions = _a.sent();
402
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
403
+ case 2:
326
404
  response = _a.sent();
327
405
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SiteNotificationResourceFromJSON)(jsonValue); })];
328
406
  }
@@ -347,31 +425,44 @@ var SiteApi = /** @class */ (function (_super) {
347
425
  });
348
426
  });
349
427
  };
428
+ /**
429
+ * Creates request options for updateSite without sending the request
430
+ */
431
+ SiteApi.prototype.updateSiteRequestOpts = function (requestParameters) {
432
+ return __awaiter(this, void 0, void 0, function () {
433
+ var queryParameters, headerParameters, urlPath;
434
+ return __generator(this, function (_a) {
435
+ if (requestParameters['site'] == null) {
436
+ throw new runtime.RequiredError('site', 'Required parameter "site" was null or undefined when calling updateSite().');
437
+ }
438
+ queryParameters = {};
439
+ headerParameters = {};
440
+ headerParameters['Content-Type'] = 'application/json';
441
+ urlPath = "/admin-api/site/{site}/update";
442
+ urlPath = urlPath.replace("{".concat("site", "}"), encodeURIComponent(String(requestParameters['site'])));
443
+ return [2 /*return*/, {
444
+ path: urlPath,
445
+ method: 'PUT',
446
+ headers: headerParameters,
447
+ query: queryParameters,
448
+ body: (0, index_1.UpdateSiteRequestToJSON)(requestParameters['updateSiteRequest']),
449
+ }];
450
+ });
451
+ });
452
+ };
350
453
  /**
351
454
  * Auto-generated: updateSite
352
455
  */
353
456
  SiteApi.prototype.updateSiteRaw = function (requestParameters, initOverrides) {
354
457
  return __awaiter(this, void 0, void 0, function () {
355
- var queryParameters, headerParameters, urlPath, response;
458
+ var requestOptions, response;
356
459
  return __generator(this, function (_a) {
357
460
  switch (_a.label) {
358
- case 0:
359
- if (requestParameters['site'] == null) {
360
- throw new runtime.RequiredError('site', 'Required parameter "site" was null or undefined when calling updateSite().');
361
- }
362
- queryParameters = {};
363
- headerParameters = {};
364
- headerParameters['Content-Type'] = 'application/json';
365
- urlPath = "/admin-api/site/{site}/update";
366
- urlPath = urlPath.replace("{".concat("site", "}"), encodeURIComponent(String(requestParameters['site'])));
367
- return [4 /*yield*/, this.request({
368
- path: urlPath,
369
- method: 'PUT',
370
- headers: headerParameters,
371
- query: queryParameters,
372
- body: (0, index_1.UpdateSiteRequestToJSON)(requestParameters['updateSiteRequest']),
373
- }, initOverrides)];
461
+ case 0: return [4 /*yield*/, this.updateSiteRequestOpts(requestParameters)];
374
462
  case 1:
463
+ requestOptions = _a.sent();
464
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
465
+ case 2:
375
466
  response = _a.sent();
376
467
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SiteResourceFromJSON)(jsonValue); })];
377
468
  }
@@ -395,31 +486,44 @@ var SiteApi = /** @class */ (function (_super) {
395
486
  });
396
487
  });
397
488
  };
489
+ /**
490
+ * Creates request options for updateSiteNotification without sending the request
491
+ */
492
+ SiteApi.prototype.updateSiteNotificationRequestOpts = function (requestParameters) {
493
+ return __awaiter(this, void 0, void 0, function () {
494
+ var queryParameters, headerParameters, urlPath;
495
+ return __generator(this, function (_a) {
496
+ if (requestParameters['siteNotification'] == null) {
497
+ throw new runtime.RequiredError('siteNotification', 'Required parameter "siteNotification" was null or undefined when calling updateSiteNotification().');
498
+ }
499
+ queryParameters = {};
500
+ headerParameters = {};
501
+ headerParameters['Content-Type'] = 'application/json';
502
+ urlPath = "/admin-api/site/notification/{siteNotification}/update";
503
+ urlPath = urlPath.replace("{".concat("siteNotification", "}"), encodeURIComponent(String(requestParameters['siteNotification'])));
504
+ return [2 /*return*/, {
505
+ path: urlPath,
506
+ method: 'PUT',
507
+ headers: headerParameters,
508
+ query: queryParameters,
509
+ body: (0, index_1.UpdateSiteNotificationRequestToJSON)(requestParameters['updateSiteNotificationRequest']),
510
+ }];
511
+ });
512
+ });
513
+ };
398
514
  /**
399
515
  * Auto-generated: updateSiteNotification
400
516
  */
401
517
  SiteApi.prototype.updateSiteNotificationRaw = function (requestParameters, initOverrides) {
402
518
  return __awaiter(this, void 0, void 0, function () {
403
- var queryParameters, headerParameters, urlPath, response;
519
+ var requestOptions, response;
404
520
  return __generator(this, function (_a) {
405
521
  switch (_a.label) {
406
- case 0:
407
- if (requestParameters['siteNotification'] == null) {
408
- throw new runtime.RequiredError('siteNotification', 'Required parameter "siteNotification" was null or undefined when calling updateSiteNotification().');
409
- }
410
- queryParameters = {};
411
- headerParameters = {};
412
- headerParameters['Content-Type'] = 'application/json';
413
- urlPath = "/admin-api/site/notification/{siteNotification}/update";
414
- urlPath = urlPath.replace("{".concat("siteNotification", "}"), encodeURIComponent(String(requestParameters['siteNotification'])));
415
- return [4 /*yield*/, this.request({
416
- path: urlPath,
417
- method: 'PUT',
418
- headers: headerParameters,
419
- query: queryParameters,
420
- body: (0, index_1.UpdateSiteNotificationRequestToJSON)(requestParameters['updateSiteNotificationRequest']),
421
- }, initOverrides)];
522
+ case 0: return [4 /*yield*/, this.updateSiteNotificationRequestOpts(requestParameters)];
422
523
  case 1:
524
+ requestOptions = _a.sent();
525
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
526
+ case 2:
423
527
  response = _a.sent();
424
528
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SiteNotificationResourceFromJSON)(jsonValue); })];
425
529
  }
@@ -40,6 +40,10 @@ export interface UpdateSupplierOperationRequest {
40
40
  *
41
41
  */
42
42
  export declare class SupplierApi extends runtime.BaseAPI {
43
+ /**
44
+ * Creates request options for destroySupplier without sending the request
45
+ */
46
+ destroySupplierRequestOpts(requestParameters: DestroySupplierRequest): Promise<runtime.RequestOpts>;
43
47
  /**
44
48
  * Auto-generated: destroySupplier
45
49
  */
@@ -48,6 +52,10 @@ export declare class SupplierApi extends runtime.BaseAPI {
48
52
  * Auto-generated: destroySupplier
49
53
  */
50
54
  destroySupplier(requestParameters: DestroySupplierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
55
+ /**
56
+ * Creates request options for exportSupplier without sending the request
57
+ */
58
+ exportSupplierRequestOpts(requestParameters: ExportSupplierRequest): Promise<runtime.RequestOpts>;
51
59
  /**
52
60
  * Auto-generated: exportSupplier
53
61
  */
@@ -56,6 +64,10 @@ export declare class SupplierApi extends runtime.BaseAPI {
56
64
  * Auto-generated: exportSupplier
57
65
  */
58
66
  exportSupplier(requestParameters?: ExportSupplierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
67
+ /**
68
+ * Creates request options for getAllSupplier without sending the request
69
+ */
70
+ getAllSupplierRequestOpts(requestParameters: GetAllSupplierOperationRequest): Promise<runtime.RequestOpts>;
59
71
  /**
60
72
  * Auto-generated: getAllSupplier
61
73
  */
@@ -64,6 +76,10 @@ export declare class SupplierApi extends runtime.BaseAPI {
64
76
  * Auto-generated: getAllSupplier
65
77
  */
66
78
  getAllSupplier(requestParameters?: GetAllSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupplierLiteResourceArrayResponse>;
79
+ /**
80
+ * Creates request options for importSupplier without sending the request
81
+ */
82
+ importSupplierRequestOpts(requestParameters: ImportSupplierRequest): Promise<runtime.RequestOpts>;
67
83
  /**
68
84
  * Auto-generated: importSupplier
69
85
  */
@@ -72,6 +88,10 @@ export declare class SupplierApi extends runtime.BaseAPI {
72
88
  * Auto-generated: importSupplier
73
89
  */
74
90
  importSupplier(requestParameters: ImportSupplierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
91
+ /**
92
+ * Creates request options for indexSupplier without sending the request
93
+ */
94
+ indexSupplierRequestOpts(requestParameters: IndexSupplierOperationRequest): Promise<runtime.RequestOpts>;
75
95
  /**
76
96
  * Auto-generated: indexSupplier
77
97
  */
@@ -80,6 +100,10 @@ export declare class SupplierApi extends runtime.BaseAPI {
80
100
  * Auto-generated: indexSupplier
81
101
  */
82
102
  indexSupplier(requestParameters?: IndexSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSupplierListResourceResponse>;
103
+ /**
104
+ * Creates request options for showSupplier without sending the request
105
+ */
106
+ showSupplierRequestOpts(requestParameters: ShowSupplierRequest): Promise<runtime.RequestOpts>;
83
107
  /**
84
108
  * Auto-generated: showSupplier
85
109
  */
@@ -88,6 +112,10 @@ export declare class SupplierApi extends runtime.BaseAPI {
88
112
  * Auto-generated: showSupplier
89
113
  */
90
114
  showSupplier(requestParameters: ShowSupplierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupplierResource>;
115
+ /**
116
+ * Creates request options for storeSupplier without sending the request
117
+ */
118
+ storeSupplierRequestOpts(requestParameters: StoreSupplierOperationRequest): Promise<runtime.RequestOpts>;
91
119
  /**
92
120
  * Auto-generated: storeSupplier
93
121
  */
@@ -96,6 +124,10 @@ export declare class SupplierApi extends runtime.BaseAPI {
96
124
  * Auto-generated: storeSupplier
97
125
  */
98
126
  storeSupplier(requestParameters?: StoreSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupplierResource>;
127
+ /**
128
+ * Creates request options for updateSupplier without sending the request
129
+ */
130
+ updateSupplierRequestOpts(requestParameters: UpdateSupplierOperationRequest): Promise<runtime.RequestOpts>;
99
131
  /**
100
132
  * Auto-generated: updateSupplier
101
133
  */