vayu-ts 0.2.7 → 0.2.9
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.
- package/README.md +9 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/openapi/apis/AuthApi.js +1 -1
- package/dist/openapi/apis/ContractsApi.js +4 -4
- package/dist/openapi/apis/CreditsApi.js +3 -3
- package/dist/openapi/apis/CustomersApi.js +7 -7
- package/dist/openapi/apis/EventsApi.js +5 -5
- package/dist/openapi/apis/IntegrationsApi.js +2 -2
- package/dist/openapi/apis/InvoicesApi.js +2 -2
- package/dist/openapi/apis/MetersApi.js +4 -4
- package/dist/openapi/apis/PlansApi.js +3 -3
- package/dist/openapi/apis/ProductConsumptionsApi.js +1 -1
- package/dist/openapi/apis/ReportsApi.js +2 -2
- package/dist/openapi/apis/WebhooksApi.js +1 -1
- package/dist/openapi/configuration.d.ts +2 -8
- package/dist/openapi/index.d.ts +2 -3
- package/dist/openapi/index.js +1 -3
- package/dist/openapi/types/ObservableAPI.d.ts +71 -71
- package/dist/openapi/types/ObservableAPI.js +105 -1085
- package/dist/openapi/types/PromiseAPI.d.ts +71 -71
- package/dist/openapi/types/PromiseAPI.js +70 -771
- package/dist/openapi-v2/apis/AuthenticationApi.js +1 -1
- package/dist/openapi-v2/apis/CustomersApi.js +6 -6
- package/dist/openapi-v2/apis/EntitlementsApi.js +3 -3
- package/dist/openapi-v2/apis/EventsApi.js +4 -4
- package/dist/openapi-v2/apis/InvoicesApi.js +6 -6
- package/dist/openapi-v2/apis/ProductsApi.js +5 -5
- package/dist/openapi-v2/configuration.d.ts +2 -8
- package/dist/openapi-v2/index.d.ts +2 -3
- package/dist/openapi-v2/index.js +1 -3
- package/dist/openapi-v2/types/ObservableAPI.d.ts +51 -51
- package/dist/openapi-v2/types/ObservableAPI.js +75 -775
- package/dist/openapi-v2/types/PromiseAPI.d.ts +51 -51
- package/dist/openapi-v2/types/PromiseAPI.js +50 -551
- package/dist/sdk/clients/CustomersClient.d.ts +1 -0
- package/dist/sdk/clients/CustomersClient.js +3 -0
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PromiseProductsApi = exports.PromiseInvoicesApi = exports.PromiseEventsApi = exports.PromiseEntitlementsApi = exports.PromiseCustomersApi = exports.PromiseAuthenticationApi = void 0;
|
|
4
|
-
const middleware_1 = require("../middleware");
|
|
5
4
|
const ObservableAPI_1 = require("./ObservableAPI");
|
|
6
5
|
class PromiseAuthenticationApi {
|
|
7
6
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
@@ -11,34 +10,14 @@ class PromiseAuthenticationApi {
|
|
|
11
10
|
* @param loginRequest
|
|
12
11
|
*/
|
|
13
12
|
loginWithHttpInfo(loginRequest, _options) {
|
|
14
|
-
|
|
15
|
-
if (_options) {
|
|
16
|
-
observableOptions = {
|
|
17
|
-
baseServer: _options.baseServer,
|
|
18
|
-
httpApi: _options.httpApi,
|
|
19
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
20
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
21
|
-
authMethods: _options.authMethods
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
const result = this.api.loginWithHttpInfo(loginRequest, observableOptions);
|
|
13
|
+
const result = this.api.loginWithHttpInfo(loginRequest, _options);
|
|
25
14
|
return result.toPromise();
|
|
26
15
|
}
|
|
27
16
|
/**
|
|
28
17
|
* @param loginRequest
|
|
29
18
|
*/
|
|
30
19
|
login(loginRequest, _options) {
|
|
31
|
-
|
|
32
|
-
if (_options) {
|
|
33
|
-
observableOptions = {
|
|
34
|
-
baseServer: _options.baseServer,
|
|
35
|
-
httpApi: _options.httpApi,
|
|
36
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
37
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
38
|
-
authMethods: _options.authMethods
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
const result = this.api.login(loginRequest, observableOptions);
|
|
20
|
+
const result = this.api.login(loginRequest, _options);
|
|
42
21
|
return result.toPromise();
|
|
43
22
|
}
|
|
44
23
|
}
|
|
@@ -53,17 +32,7 @@ class PromiseCustomersApi {
|
|
|
53
32
|
* @param aPICreateCustomerPayload - The details of the customer to create.
|
|
54
33
|
*/
|
|
55
34
|
createCustomerWithHttpInfo(aPICreateCustomerPayload, _options) {
|
|
56
|
-
|
|
57
|
-
if (_options) {
|
|
58
|
-
observableOptions = {
|
|
59
|
-
baseServer: _options.baseServer,
|
|
60
|
-
httpApi: _options.httpApi,
|
|
61
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
62
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
63
|
-
authMethods: _options.authMethods
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
const result = this.api.createCustomerWithHttpInfo(aPICreateCustomerPayload, observableOptions);
|
|
35
|
+
const result = this.api.createCustomerWithHttpInfo(aPICreateCustomerPayload, _options);
|
|
67
36
|
return result.toPromise();
|
|
68
37
|
}
|
|
69
38
|
/**
|
|
@@ -71,17 +40,7 @@ class PromiseCustomersApi {
|
|
|
71
40
|
* @param aPICreateCustomerPayload - The details of the customer to create.
|
|
72
41
|
*/
|
|
73
42
|
createCustomer(aPICreateCustomerPayload, _options) {
|
|
74
|
-
|
|
75
|
-
if (_options) {
|
|
76
|
-
observableOptions = {
|
|
77
|
-
baseServer: _options.baseServer,
|
|
78
|
-
httpApi: _options.httpApi,
|
|
79
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
80
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
81
|
-
authMethods: _options.authMethods
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
const result = this.api.createCustomer(aPICreateCustomerPayload, observableOptions);
|
|
43
|
+
const result = this.api.createCustomer(aPICreateCustomerPayload, _options);
|
|
85
44
|
return result.toPromise();
|
|
86
45
|
}
|
|
87
46
|
/**
|
|
@@ -89,17 +48,7 @@ class PromiseCustomersApi {
|
|
|
89
48
|
* @param id - The ID of the customer to delete.
|
|
90
49
|
*/
|
|
91
50
|
deleteCustomerWithHttpInfo(id, _options) {
|
|
92
|
-
|
|
93
|
-
if (_options) {
|
|
94
|
-
observableOptions = {
|
|
95
|
-
baseServer: _options.baseServer,
|
|
96
|
-
httpApi: _options.httpApi,
|
|
97
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
98
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
99
|
-
authMethods: _options.authMethods
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
const result = this.api.deleteCustomerWithHttpInfo(id, observableOptions);
|
|
51
|
+
const result = this.api.deleteCustomerWithHttpInfo(id, _options);
|
|
103
52
|
return result.toPromise();
|
|
104
53
|
}
|
|
105
54
|
/**
|
|
@@ -107,17 +56,7 @@ class PromiseCustomersApi {
|
|
|
107
56
|
* @param id - The ID of the customer to delete.
|
|
108
57
|
*/
|
|
109
58
|
deleteCustomer(id, _options) {
|
|
110
|
-
|
|
111
|
-
if (_options) {
|
|
112
|
-
observableOptions = {
|
|
113
|
-
baseServer: _options.baseServer,
|
|
114
|
-
httpApi: _options.httpApi,
|
|
115
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
116
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
117
|
-
authMethods: _options.authMethods
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
const result = this.api.deleteCustomer(id, observableOptions);
|
|
59
|
+
const result = this.api.deleteCustomer(id, _options);
|
|
121
60
|
return result.toPromise();
|
|
122
61
|
}
|
|
123
62
|
/**
|
|
@@ -125,17 +64,7 @@ class PromiseCustomersApi {
|
|
|
125
64
|
* @param id - The ID of the customer to fetch.
|
|
126
65
|
*/
|
|
127
66
|
getCustomerWithHttpInfo(id, _options) {
|
|
128
|
-
|
|
129
|
-
if (_options) {
|
|
130
|
-
observableOptions = {
|
|
131
|
-
baseServer: _options.baseServer,
|
|
132
|
-
httpApi: _options.httpApi,
|
|
133
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
134
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
135
|
-
authMethods: _options.authMethods
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
const result = this.api.getCustomerWithHttpInfo(id, observableOptions);
|
|
67
|
+
const result = this.api.getCustomerWithHttpInfo(id, _options);
|
|
139
68
|
return result.toPromise();
|
|
140
69
|
}
|
|
141
70
|
/**
|
|
@@ -143,17 +72,7 @@ class PromiseCustomersApi {
|
|
|
143
72
|
* @param id - The ID of the customer to fetch.
|
|
144
73
|
*/
|
|
145
74
|
getCustomer(id, _options) {
|
|
146
|
-
|
|
147
|
-
if (_options) {
|
|
148
|
-
observableOptions = {
|
|
149
|
-
baseServer: _options.baseServer,
|
|
150
|
-
httpApi: _options.httpApi,
|
|
151
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
152
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
153
|
-
authMethods: _options.authMethods
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
const result = this.api.getCustomer(id, observableOptions);
|
|
75
|
+
const result = this.api.getCustomer(id, _options);
|
|
157
76
|
return result.toPromise();
|
|
158
77
|
}
|
|
159
78
|
/**
|
|
@@ -161,17 +80,7 @@ class PromiseCustomersApi {
|
|
|
161
80
|
* @param aPIQueryPayloadAPICustomer - The query filters and pagination options.
|
|
162
81
|
*/
|
|
163
82
|
queryCustomersWithHttpInfo(aPIQueryPayloadAPICustomer, _options) {
|
|
164
|
-
|
|
165
|
-
if (_options) {
|
|
166
|
-
observableOptions = {
|
|
167
|
-
baseServer: _options.baseServer,
|
|
168
|
-
httpApi: _options.httpApi,
|
|
169
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
170
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
171
|
-
authMethods: _options.authMethods
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
const result = this.api.queryCustomersWithHttpInfo(aPIQueryPayloadAPICustomer, observableOptions);
|
|
83
|
+
const result = this.api.queryCustomersWithHttpInfo(aPIQueryPayloadAPICustomer, _options);
|
|
175
84
|
return result.toPromise();
|
|
176
85
|
}
|
|
177
86
|
/**
|
|
@@ -179,17 +88,7 @@ class PromiseCustomersApi {
|
|
|
179
88
|
* @param aPIQueryPayloadAPICustomer - The query filters and pagination options.
|
|
180
89
|
*/
|
|
181
90
|
queryCustomers(aPIQueryPayloadAPICustomer, _options) {
|
|
182
|
-
|
|
183
|
-
if (_options) {
|
|
184
|
-
observableOptions = {
|
|
185
|
-
baseServer: _options.baseServer,
|
|
186
|
-
httpApi: _options.httpApi,
|
|
187
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
188
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
189
|
-
authMethods: _options.authMethods
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
const result = this.api.queryCustomers(aPIQueryPayloadAPICustomer, observableOptions);
|
|
91
|
+
const result = this.api.queryCustomers(aPIQueryPayloadAPICustomer, _options);
|
|
193
92
|
return result.toPromise();
|
|
194
93
|
}
|
|
195
94
|
/**
|
|
@@ -199,17 +98,7 @@ class PromiseCustomersApi {
|
|
|
199
98
|
* @param productId - The ID of the product to revise.
|
|
200
99
|
*/
|
|
201
100
|
updateACustomersProductWithHttpInfo(body, id, productId, _options) {
|
|
202
|
-
|
|
203
|
-
if (_options) {
|
|
204
|
-
observableOptions = {
|
|
205
|
-
baseServer: _options.baseServer,
|
|
206
|
-
httpApi: _options.httpApi,
|
|
207
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
208
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
209
|
-
authMethods: _options.authMethods
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
const result = this.api.updateACustomersProductWithHttpInfo(body, id, productId, observableOptions);
|
|
101
|
+
const result = this.api.updateACustomersProductWithHttpInfo(body, id, productId, _options);
|
|
213
102
|
return result.toPromise();
|
|
214
103
|
}
|
|
215
104
|
/**
|
|
@@ -219,17 +108,7 @@ class PromiseCustomersApi {
|
|
|
219
108
|
* @param productId - The ID of the product to revise.
|
|
220
109
|
*/
|
|
221
110
|
updateACustomersProduct(body, id, productId, _options) {
|
|
222
|
-
|
|
223
|
-
if (_options) {
|
|
224
|
-
observableOptions = {
|
|
225
|
-
baseServer: _options.baseServer,
|
|
226
|
-
httpApi: _options.httpApi,
|
|
227
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
228
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
229
|
-
authMethods: _options.authMethods
|
|
230
|
-
};
|
|
231
|
-
}
|
|
232
|
-
const result = this.api.updateACustomersProduct(body, id, productId, observableOptions);
|
|
111
|
+
const result = this.api.updateACustomersProduct(body, id, productId, _options);
|
|
233
112
|
return result.toPromise();
|
|
234
113
|
}
|
|
235
114
|
/**
|
|
@@ -238,17 +117,7 @@ class PromiseCustomersApi {
|
|
|
238
117
|
* @param id - The ID of the customer to update.
|
|
239
118
|
*/
|
|
240
119
|
updateCustomerWithHttpInfo(aPIUpdateCustomerPayload, id, _options) {
|
|
241
|
-
|
|
242
|
-
if (_options) {
|
|
243
|
-
observableOptions = {
|
|
244
|
-
baseServer: _options.baseServer,
|
|
245
|
-
httpApi: _options.httpApi,
|
|
246
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
247
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
248
|
-
authMethods: _options.authMethods
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
const result = this.api.updateCustomerWithHttpInfo(aPIUpdateCustomerPayload, id, observableOptions);
|
|
120
|
+
const result = this.api.updateCustomerWithHttpInfo(aPIUpdateCustomerPayload, id, _options);
|
|
252
121
|
return result.toPromise();
|
|
253
122
|
}
|
|
254
123
|
/**
|
|
@@ -257,17 +126,7 @@ class PromiseCustomersApi {
|
|
|
257
126
|
* @param id - The ID of the customer to update.
|
|
258
127
|
*/
|
|
259
128
|
updateCustomer(aPIUpdateCustomerPayload, id, _options) {
|
|
260
|
-
|
|
261
|
-
if (_options) {
|
|
262
|
-
observableOptions = {
|
|
263
|
-
baseServer: _options.baseServer,
|
|
264
|
-
httpApi: _options.httpApi,
|
|
265
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
266
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
267
|
-
authMethods: _options.authMethods
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
const result = this.api.updateCustomer(aPIUpdateCustomerPayload, id, observableOptions);
|
|
129
|
+
const result = this.api.updateCustomer(aPIUpdateCustomerPayload, id, _options);
|
|
271
130
|
return result.toPromise();
|
|
272
131
|
}
|
|
273
132
|
}
|
|
@@ -282,17 +141,7 @@ class PromiseEntitlementsApi {
|
|
|
282
141
|
* @param id - The ID of the entitlement to delete.
|
|
283
142
|
*/
|
|
284
143
|
deleteEntitlementWithHttpInfo(id, _options) {
|
|
285
|
-
|
|
286
|
-
if (_options) {
|
|
287
|
-
observableOptions = {
|
|
288
|
-
baseServer: _options.baseServer,
|
|
289
|
-
httpApi: _options.httpApi,
|
|
290
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
291
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
292
|
-
authMethods: _options.authMethods
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
const result = this.api.deleteEntitlementWithHttpInfo(id, observableOptions);
|
|
144
|
+
const result = this.api.deleteEntitlementWithHttpInfo(id, _options);
|
|
296
145
|
return result.toPromise();
|
|
297
146
|
}
|
|
298
147
|
/**
|
|
@@ -300,17 +149,7 @@ class PromiseEntitlementsApi {
|
|
|
300
149
|
* @param id - The ID of the entitlement to delete.
|
|
301
150
|
*/
|
|
302
151
|
deleteEntitlement(id, _options) {
|
|
303
|
-
|
|
304
|
-
if (_options) {
|
|
305
|
-
observableOptions = {
|
|
306
|
-
baseServer: _options.baseServer,
|
|
307
|
-
httpApi: _options.httpApi,
|
|
308
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
309
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
310
|
-
authMethods: _options.authMethods
|
|
311
|
-
};
|
|
312
|
-
}
|
|
313
|
-
const result = this.api.deleteEntitlement(id, observableOptions);
|
|
152
|
+
const result = this.api.deleteEntitlement(id, _options);
|
|
314
153
|
return result.toPromise();
|
|
315
154
|
}
|
|
316
155
|
/**
|
|
@@ -318,17 +157,7 @@ class PromiseEntitlementsApi {
|
|
|
318
157
|
* @param id - The ID of the entitlement to fetch.
|
|
319
158
|
*/
|
|
320
159
|
getEntitlementWithHttpInfo(id, _options) {
|
|
321
|
-
|
|
322
|
-
if (_options) {
|
|
323
|
-
observableOptions = {
|
|
324
|
-
baseServer: _options.baseServer,
|
|
325
|
-
httpApi: _options.httpApi,
|
|
326
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
327
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
328
|
-
authMethods: _options.authMethods
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
const result = this.api.getEntitlementWithHttpInfo(id, observableOptions);
|
|
160
|
+
const result = this.api.getEntitlementWithHttpInfo(id, _options);
|
|
332
161
|
return result.toPromise();
|
|
333
162
|
}
|
|
334
163
|
/**
|
|
@@ -336,17 +165,7 @@ class PromiseEntitlementsApi {
|
|
|
336
165
|
* @param id - The ID of the entitlement to fetch.
|
|
337
166
|
*/
|
|
338
167
|
getEntitlement(id, _options) {
|
|
339
|
-
|
|
340
|
-
if (_options) {
|
|
341
|
-
observableOptions = {
|
|
342
|
-
baseServer: _options.baseServer,
|
|
343
|
-
httpApi: _options.httpApi,
|
|
344
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
345
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
346
|
-
authMethods: _options.authMethods
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
const result = this.api.getEntitlement(id, observableOptions);
|
|
168
|
+
const result = this.api.getEntitlement(id, _options);
|
|
350
169
|
return result.toPromise();
|
|
351
170
|
}
|
|
352
171
|
/**
|
|
@@ -354,17 +173,7 @@ class PromiseEntitlementsApi {
|
|
|
354
173
|
* @param aPIQueryPayloadAPIEntitlement - The query filters and pagination options.
|
|
355
174
|
*/
|
|
356
175
|
queryEntitlementsWithHttpInfo(aPIQueryPayloadAPIEntitlement, _options) {
|
|
357
|
-
|
|
358
|
-
if (_options) {
|
|
359
|
-
observableOptions = {
|
|
360
|
-
baseServer: _options.baseServer,
|
|
361
|
-
httpApi: _options.httpApi,
|
|
362
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
363
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
364
|
-
authMethods: _options.authMethods
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
const result = this.api.queryEntitlementsWithHttpInfo(aPIQueryPayloadAPIEntitlement, observableOptions);
|
|
176
|
+
const result = this.api.queryEntitlementsWithHttpInfo(aPIQueryPayloadAPIEntitlement, _options);
|
|
368
177
|
return result.toPromise();
|
|
369
178
|
}
|
|
370
179
|
/**
|
|
@@ -372,17 +181,7 @@ class PromiseEntitlementsApi {
|
|
|
372
181
|
* @param aPIQueryPayloadAPIEntitlement - The query filters and pagination options.
|
|
373
182
|
*/
|
|
374
183
|
queryEntitlements(aPIQueryPayloadAPIEntitlement, _options) {
|
|
375
|
-
|
|
376
|
-
if (_options) {
|
|
377
|
-
observableOptions = {
|
|
378
|
-
baseServer: _options.baseServer,
|
|
379
|
-
httpApi: _options.httpApi,
|
|
380
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
381
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
382
|
-
authMethods: _options.authMethods
|
|
383
|
-
};
|
|
384
|
-
}
|
|
385
|
-
const result = this.api.queryEntitlements(aPIQueryPayloadAPIEntitlement, observableOptions);
|
|
184
|
+
const result = this.api.queryEntitlements(aPIQueryPayloadAPIEntitlement, _options);
|
|
386
185
|
return result.toPromise();
|
|
387
186
|
}
|
|
388
187
|
}
|
|
@@ -397,17 +196,7 @@ class PromiseEventsApi {
|
|
|
397
196
|
* @param id - The ID of the event to delete.
|
|
398
197
|
*/
|
|
399
198
|
deleteEventWithHttpInfo(id, _options) {
|
|
400
|
-
|
|
401
|
-
if (_options) {
|
|
402
|
-
observableOptions = {
|
|
403
|
-
baseServer: _options.baseServer,
|
|
404
|
-
httpApi: _options.httpApi,
|
|
405
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
406
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
407
|
-
authMethods: _options.authMethods
|
|
408
|
-
};
|
|
409
|
-
}
|
|
410
|
-
const result = this.api.deleteEventWithHttpInfo(id, observableOptions);
|
|
199
|
+
const result = this.api.deleteEventWithHttpInfo(id, _options);
|
|
411
200
|
return result.toPromise();
|
|
412
201
|
}
|
|
413
202
|
/**
|
|
@@ -415,17 +204,7 @@ class PromiseEventsApi {
|
|
|
415
204
|
* @param id - The ID of the event to delete.
|
|
416
205
|
*/
|
|
417
206
|
deleteEvent(id, _options) {
|
|
418
|
-
|
|
419
|
-
if (_options) {
|
|
420
|
-
observableOptions = {
|
|
421
|
-
baseServer: _options.baseServer,
|
|
422
|
-
httpApi: _options.httpApi,
|
|
423
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
424
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
425
|
-
authMethods: _options.authMethods
|
|
426
|
-
};
|
|
427
|
-
}
|
|
428
|
-
const result = this.api.deleteEvent(id, observableOptions);
|
|
207
|
+
const result = this.api.deleteEvent(id, _options);
|
|
429
208
|
return result.toPromise();
|
|
430
209
|
}
|
|
431
210
|
/**
|
|
@@ -433,17 +212,7 @@ class PromiseEventsApi {
|
|
|
433
212
|
* @param id - The ID of the event to fetch.
|
|
434
213
|
*/
|
|
435
214
|
getEventWithHttpInfo(id, _options) {
|
|
436
|
-
|
|
437
|
-
if (_options) {
|
|
438
|
-
observableOptions = {
|
|
439
|
-
baseServer: _options.baseServer,
|
|
440
|
-
httpApi: _options.httpApi,
|
|
441
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
442
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
443
|
-
authMethods: _options.authMethods
|
|
444
|
-
};
|
|
445
|
-
}
|
|
446
|
-
const result = this.api.getEventWithHttpInfo(id, observableOptions);
|
|
215
|
+
const result = this.api.getEventWithHttpInfo(id, _options);
|
|
447
216
|
return result.toPromise();
|
|
448
217
|
}
|
|
449
218
|
/**
|
|
@@ -451,17 +220,7 @@ class PromiseEventsApi {
|
|
|
451
220
|
* @param id - The ID of the event to fetch.
|
|
452
221
|
*/
|
|
453
222
|
getEvent(id, _options) {
|
|
454
|
-
|
|
455
|
-
if (_options) {
|
|
456
|
-
observableOptions = {
|
|
457
|
-
baseServer: _options.baseServer,
|
|
458
|
-
httpApi: _options.httpApi,
|
|
459
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
460
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
461
|
-
authMethods: _options.authMethods
|
|
462
|
-
};
|
|
463
|
-
}
|
|
464
|
-
const result = this.api.getEvent(id, observableOptions);
|
|
223
|
+
const result = this.api.getEvent(id, _options);
|
|
465
224
|
return result.toPromise();
|
|
466
225
|
}
|
|
467
226
|
/**
|
|
@@ -469,17 +228,7 @@ class PromiseEventsApi {
|
|
|
469
228
|
* @param aPIIngestEventPayload - The events to ingest
|
|
470
229
|
*/
|
|
471
230
|
ingestEventToTheSystemWithHttpInfo(aPIIngestEventPayload, _options) {
|
|
472
|
-
|
|
473
|
-
if (_options) {
|
|
474
|
-
observableOptions = {
|
|
475
|
-
baseServer: _options.baseServer,
|
|
476
|
-
httpApi: _options.httpApi,
|
|
477
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
478
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
479
|
-
authMethods: _options.authMethods
|
|
480
|
-
};
|
|
481
|
-
}
|
|
482
|
-
const result = this.api.ingestEventToTheSystemWithHttpInfo(aPIIngestEventPayload, observableOptions);
|
|
231
|
+
const result = this.api.ingestEventToTheSystemWithHttpInfo(aPIIngestEventPayload, _options);
|
|
483
232
|
return result.toPromise();
|
|
484
233
|
}
|
|
485
234
|
/**
|
|
@@ -487,17 +236,7 @@ class PromiseEventsApi {
|
|
|
487
236
|
* @param aPIIngestEventPayload - The events to ingest
|
|
488
237
|
*/
|
|
489
238
|
ingestEventToTheSystem(aPIIngestEventPayload, _options) {
|
|
490
|
-
|
|
491
|
-
if (_options) {
|
|
492
|
-
observableOptions = {
|
|
493
|
-
baseServer: _options.baseServer,
|
|
494
|
-
httpApi: _options.httpApi,
|
|
495
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
496
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
497
|
-
authMethods: _options.authMethods
|
|
498
|
-
};
|
|
499
|
-
}
|
|
500
|
-
const result = this.api.ingestEventToTheSystem(aPIIngestEventPayload, observableOptions);
|
|
239
|
+
const result = this.api.ingestEventToTheSystem(aPIIngestEventPayload, _options);
|
|
501
240
|
return result.toPromise();
|
|
502
241
|
}
|
|
503
242
|
/**
|
|
@@ -505,17 +244,7 @@ class PromiseEventsApi {
|
|
|
505
244
|
* @param aPIQueryPayloadAPIEvent - The query filters and pagination options.
|
|
506
245
|
*/
|
|
507
246
|
queryEventsWithHttpInfo(aPIQueryPayloadAPIEvent, _options) {
|
|
508
|
-
|
|
509
|
-
if (_options) {
|
|
510
|
-
observableOptions = {
|
|
511
|
-
baseServer: _options.baseServer,
|
|
512
|
-
httpApi: _options.httpApi,
|
|
513
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
514
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
515
|
-
authMethods: _options.authMethods
|
|
516
|
-
};
|
|
517
|
-
}
|
|
518
|
-
const result = this.api.queryEventsWithHttpInfo(aPIQueryPayloadAPIEvent, observableOptions);
|
|
247
|
+
const result = this.api.queryEventsWithHttpInfo(aPIQueryPayloadAPIEvent, _options);
|
|
519
248
|
return result.toPromise();
|
|
520
249
|
}
|
|
521
250
|
/**
|
|
@@ -523,17 +252,7 @@ class PromiseEventsApi {
|
|
|
523
252
|
* @param aPIQueryPayloadAPIEvent - The query filters and pagination options.
|
|
524
253
|
*/
|
|
525
254
|
queryEvents(aPIQueryPayloadAPIEvent, _options) {
|
|
526
|
-
|
|
527
|
-
if (_options) {
|
|
528
|
-
observableOptions = {
|
|
529
|
-
baseServer: _options.baseServer,
|
|
530
|
-
httpApi: _options.httpApi,
|
|
531
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
532
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
533
|
-
authMethods: _options.authMethods
|
|
534
|
-
};
|
|
535
|
-
}
|
|
536
|
-
const result = this.api.queryEvents(aPIQueryPayloadAPIEvent, observableOptions);
|
|
255
|
+
const result = this.api.queryEvents(aPIQueryPayloadAPIEvent, _options);
|
|
537
256
|
return result.toPromise();
|
|
538
257
|
}
|
|
539
258
|
}
|
|
@@ -548,17 +267,7 @@ class PromiseInvoicesApi {
|
|
|
548
267
|
* @param id - The ID of the invoice to calculate.
|
|
549
268
|
*/
|
|
550
269
|
calculateInvoiceWithHttpInfo(id, _options) {
|
|
551
|
-
|
|
552
|
-
if (_options) {
|
|
553
|
-
observableOptions = {
|
|
554
|
-
baseServer: _options.baseServer,
|
|
555
|
-
httpApi: _options.httpApi,
|
|
556
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
557
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
558
|
-
authMethods: _options.authMethods
|
|
559
|
-
};
|
|
560
|
-
}
|
|
561
|
-
const result = this.api.calculateInvoiceWithHttpInfo(id, observableOptions);
|
|
270
|
+
const result = this.api.calculateInvoiceWithHttpInfo(id, _options);
|
|
562
271
|
return result.toPromise();
|
|
563
272
|
}
|
|
564
273
|
/**
|
|
@@ -566,17 +275,7 @@ class PromiseInvoicesApi {
|
|
|
566
275
|
* @param id - The ID of the invoice to calculate.
|
|
567
276
|
*/
|
|
568
277
|
calculateInvoice(id, _options) {
|
|
569
|
-
|
|
570
|
-
if (_options) {
|
|
571
|
-
observableOptions = {
|
|
572
|
-
baseServer: _options.baseServer,
|
|
573
|
-
httpApi: _options.httpApi,
|
|
574
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
575
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
576
|
-
authMethods: _options.authMethods
|
|
577
|
-
};
|
|
578
|
-
}
|
|
579
|
-
const result = this.api.calculateInvoice(id, observableOptions);
|
|
278
|
+
const result = this.api.calculateInvoice(id, _options);
|
|
580
279
|
return result.toPromise();
|
|
581
280
|
}
|
|
582
281
|
/**
|
|
@@ -584,17 +283,7 @@ class PromiseInvoicesApi {
|
|
|
584
283
|
* @param aPICreateInvoicePayload - The details of the invoice to create.
|
|
585
284
|
*/
|
|
586
285
|
createInvoiceWithHttpInfo(aPICreateInvoicePayload, _options) {
|
|
587
|
-
|
|
588
|
-
if (_options) {
|
|
589
|
-
observableOptions = {
|
|
590
|
-
baseServer: _options.baseServer,
|
|
591
|
-
httpApi: _options.httpApi,
|
|
592
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
593
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
594
|
-
authMethods: _options.authMethods
|
|
595
|
-
};
|
|
596
|
-
}
|
|
597
|
-
const result = this.api.createInvoiceWithHttpInfo(aPICreateInvoicePayload, observableOptions);
|
|
286
|
+
const result = this.api.createInvoiceWithHttpInfo(aPICreateInvoicePayload, _options);
|
|
598
287
|
return result.toPromise();
|
|
599
288
|
}
|
|
600
289
|
/**
|
|
@@ -602,17 +291,7 @@ class PromiseInvoicesApi {
|
|
|
602
291
|
* @param aPICreateInvoicePayload - The details of the invoice to create.
|
|
603
292
|
*/
|
|
604
293
|
createInvoice(aPICreateInvoicePayload, _options) {
|
|
605
|
-
|
|
606
|
-
if (_options) {
|
|
607
|
-
observableOptions = {
|
|
608
|
-
baseServer: _options.baseServer,
|
|
609
|
-
httpApi: _options.httpApi,
|
|
610
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
611
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
612
|
-
authMethods: _options.authMethods
|
|
613
|
-
};
|
|
614
|
-
}
|
|
615
|
-
const result = this.api.createInvoice(aPICreateInvoicePayload, observableOptions);
|
|
294
|
+
const result = this.api.createInvoice(aPICreateInvoicePayload, _options);
|
|
616
295
|
return result.toPromise();
|
|
617
296
|
}
|
|
618
297
|
/**
|
|
@@ -620,17 +299,7 @@ class PromiseInvoicesApi {
|
|
|
620
299
|
* @param id - The ID of the invoice to delete.
|
|
621
300
|
*/
|
|
622
301
|
deleteInvoiceWithHttpInfo(id, _options) {
|
|
623
|
-
|
|
624
|
-
if (_options) {
|
|
625
|
-
observableOptions = {
|
|
626
|
-
baseServer: _options.baseServer,
|
|
627
|
-
httpApi: _options.httpApi,
|
|
628
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
629
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
630
|
-
authMethods: _options.authMethods
|
|
631
|
-
};
|
|
632
|
-
}
|
|
633
|
-
const result = this.api.deleteInvoiceWithHttpInfo(id, observableOptions);
|
|
302
|
+
const result = this.api.deleteInvoiceWithHttpInfo(id, _options);
|
|
634
303
|
return result.toPromise();
|
|
635
304
|
}
|
|
636
305
|
/**
|
|
@@ -638,17 +307,7 @@ class PromiseInvoicesApi {
|
|
|
638
307
|
* @param id - The ID of the invoice to delete.
|
|
639
308
|
*/
|
|
640
309
|
deleteInvoice(id, _options) {
|
|
641
|
-
|
|
642
|
-
if (_options) {
|
|
643
|
-
observableOptions = {
|
|
644
|
-
baseServer: _options.baseServer,
|
|
645
|
-
httpApi: _options.httpApi,
|
|
646
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
647
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
648
|
-
authMethods: _options.authMethods
|
|
649
|
-
};
|
|
650
|
-
}
|
|
651
|
-
const result = this.api.deleteInvoice(id, observableOptions);
|
|
310
|
+
const result = this.api.deleteInvoice(id, _options);
|
|
652
311
|
return result.toPromise();
|
|
653
312
|
}
|
|
654
313
|
/**
|
|
@@ -656,17 +315,7 @@ class PromiseInvoicesApi {
|
|
|
656
315
|
* @param id - The ID of the invoice to fetch.
|
|
657
316
|
*/
|
|
658
317
|
getInvoiceWithHttpInfo(id, _options) {
|
|
659
|
-
|
|
660
|
-
if (_options) {
|
|
661
|
-
observableOptions = {
|
|
662
|
-
baseServer: _options.baseServer,
|
|
663
|
-
httpApi: _options.httpApi,
|
|
664
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
665
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
666
|
-
authMethods: _options.authMethods
|
|
667
|
-
};
|
|
668
|
-
}
|
|
669
|
-
const result = this.api.getInvoiceWithHttpInfo(id, observableOptions);
|
|
318
|
+
const result = this.api.getInvoiceWithHttpInfo(id, _options);
|
|
670
319
|
return result.toPromise();
|
|
671
320
|
}
|
|
672
321
|
/**
|
|
@@ -674,17 +323,7 @@ class PromiseInvoicesApi {
|
|
|
674
323
|
* @param id - The ID of the invoice to fetch.
|
|
675
324
|
*/
|
|
676
325
|
getInvoice(id, _options) {
|
|
677
|
-
|
|
678
|
-
if (_options) {
|
|
679
|
-
observableOptions = {
|
|
680
|
-
baseServer: _options.baseServer,
|
|
681
|
-
httpApi: _options.httpApi,
|
|
682
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
683
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
684
|
-
authMethods: _options.authMethods
|
|
685
|
-
};
|
|
686
|
-
}
|
|
687
|
-
const result = this.api.getInvoice(id, observableOptions);
|
|
326
|
+
const result = this.api.getInvoice(id, _options);
|
|
688
327
|
return result.toPromise();
|
|
689
328
|
}
|
|
690
329
|
/**
|
|
@@ -692,17 +331,7 @@ class PromiseInvoicesApi {
|
|
|
692
331
|
* @param aPIQueryPayloadAPIInvoice - The query filters and pagination options.
|
|
693
332
|
*/
|
|
694
333
|
queryInvoicesWithHttpInfo(aPIQueryPayloadAPIInvoice, _options) {
|
|
695
|
-
|
|
696
|
-
if (_options) {
|
|
697
|
-
observableOptions = {
|
|
698
|
-
baseServer: _options.baseServer,
|
|
699
|
-
httpApi: _options.httpApi,
|
|
700
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
701
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
702
|
-
authMethods: _options.authMethods
|
|
703
|
-
};
|
|
704
|
-
}
|
|
705
|
-
const result = this.api.queryInvoicesWithHttpInfo(aPIQueryPayloadAPIInvoice, observableOptions);
|
|
334
|
+
const result = this.api.queryInvoicesWithHttpInfo(aPIQueryPayloadAPIInvoice, _options);
|
|
706
335
|
return result.toPromise();
|
|
707
336
|
}
|
|
708
337
|
/**
|
|
@@ -710,17 +339,7 @@ class PromiseInvoicesApi {
|
|
|
710
339
|
* @param aPIQueryPayloadAPIInvoice - The query filters and pagination options.
|
|
711
340
|
*/
|
|
712
341
|
queryInvoices(aPIQueryPayloadAPIInvoice, _options) {
|
|
713
|
-
|
|
714
|
-
if (_options) {
|
|
715
|
-
observableOptions = {
|
|
716
|
-
baseServer: _options.baseServer,
|
|
717
|
-
httpApi: _options.httpApi,
|
|
718
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
719
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
720
|
-
authMethods: _options.authMethods
|
|
721
|
-
};
|
|
722
|
-
}
|
|
723
|
-
const result = this.api.queryInvoices(aPIQueryPayloadAPIInvoice, observableOptions);
|
|
342
|
+
const result = this.api.queryInvoices(aPIQueryPayloadAPIInvoice, _options);
|
|
724
343
|
return result.toPromise();
|
|
725
344
|
}
|
|
726
345
|
/**
|
|
@@ -729,17 +348,7 @@ class PromiseInvoicesApi {
|
|
|
729
348
|
* @param id - The ID of the invoice to update.
|
|
730
349
|
*/
|
|
731
350
|
updateInvoiceWithHttpInfo(aPIUpdateInvoicePayload, id, _options) {
|
|
732
|
-
|
|
733
|
-
if (_options) {
|
|
734
|
-
observableOptions = {
|
|
735
|
-
baseServer: _options.baseServer,
|
|
736
|
-
httpApi: _options.httpApi,
|
|
737
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
738
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
739
|
-
authMethods: _options.authMethods
|
|
740
|
-
};
|
|
741
|
-
}
|
|
742
|
-
const result = this.api.updateInvoiceWithHttpInfo(aPIUpdateInvoicePayload, id, observableOptions);
|
|
351
|
+
const result = this.api.updateInvoiceWithHttpInfo(aPIUpdateInvoicePayload, id, _options);
|
|
743
352
|
return result.toPromise();
|
|
744
353
|
}
|
|
745
354
|
/**
|
|
@@ -748,17 +357,7 @@ class PromiseInvoicesApi {
|
|
|
748
357
|
* @param id - The ID of the invoice to update.
|
|
749
358
|
*/
|
|
750
359
|
updateInvoice(aPIUpdateInvoicePayload, id, _options) {
|
|
751
|
-
|
|
752
|
-
if (_options) {
|
|
753
|
-
observableOptions = {
|
|
754
|
-
baseServer: _options.baseServer,
|
|
755
|
-
httpApi: _options.httpApi,
|
|
756
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
757
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
758
|
-
authMethods: _options.authMethods
|
|
759
|
-
};
|
|
760
|
-
}
|
|
761
|
-
const result = this.api.updateInvoice(aPIUpdateInvoicePayload, id, observableOptions);
|
|
360
|
+
const result = this.api.updateInvoice(aPIUpdateInvoicePayload, id, _options);
|
|
762
361
|
return result.toPromise();
|
|
763
362
|
}
|
|
764
363
|
}
|
|
@@ -773,17 +372,7 @@ class PromiseProductsApi {
|
|
|
773
372
|
* @param aPICreateProductPayload - The details of the product to create.
|
|
774
373
|
*/
|
|
775
374
|
createProductWithHttpInfo(aPICreateProductPayload, _options) {
|
|
776
|
-
|
|
777
|
-
if (_options) {
|
|
778
|
-
observableOptions = {
|
|
779
|
-
baseServer: _options.baseServer,
|
|
780
|
-
httpApi: _options.httpApi,
|
|
781
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
782
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
783
|
-
authMethods: _options.authMethods
|
|
784
|
-
};
|
|
785
|
-
}
|
|
786
|
-
const result = this.api.createProductWithHttpInfo(aPICreateProductPayload, observableOptions);
|
|
375
|
+
const result = this.api.createProductWithHttpInfo(aPICreateProductPayload, _options);
|
|
787
376
|
return result.toPromise();
|
|
788
377
|
}
|
|
789
378
|
/**
|
|
@@ -791,17 +380,7 @@ class PromiseProductsApi {
|
|
|
791
380
|
* @param aPICreateProductPayload - The details of the product to create.
|
|
792
381
|
*/
|
|
793
382
|
createProduct(aPICreateProductPayload, _options) {
|
|
794
|
-
|
|
795
|
-
if (_options) {
|
|
796
|
-
observableOptions = {
|
|
797
|
-
baseServer: _options.baseServer,
|
|
798
|
-
httpApi: _options.httpApi,
|
|
799
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
800
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
801
|
-
authMethods: _options.authMethods
|
|
802
|
-
};
|
|
803
|
-
}
|
|
804
|
-
const result = this.api.createProduct(aPICreateProductPayload, observableOptions);
|
|
383
|
+
const result = this.api.createProduct(aPICreateProductPayload, _options);
|
|
805
384
|
return result.toPromise();
|
|
806
385
|
}
|
|
807
386
|
/**
|
|
@@ -809,17 +388,7 @@ class PromiseProductsApi {
|
|
|
809
388
|
* @param id - The ID of the product to delete.
|
|
810
389
|
*/
|
|
811
390
|
deleteProductWithHttpInfo(id, _options) {
|
|
812
|
-
|
|
813
|
-
if (_options) {
|
|
814
|
-
observableOptions = {
|
|
815
|
-
baseServer: _options.baseServer,
|
|
816
|
-
httpApi: _options.httpApi,
|
|
817
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
818
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
819
|
-
authMethods: _options.authMethods
|
|
820
|
-
};
|
|
821
|
-
}
|
|
822
|
-
const result = this.api.deleteProductWithHttpInfo(id, observableOptions);
|
|
391
|
+
const result = this.api.deleteProductWithHttpInfo(id, _options);
|
|
823
392
|
return result.toPromise();
|
|
824
393
|
}
|
|
825
394
|
/**
|
|
@@ -827,17 +396,7 @@ class PromiseProductsApi {
|
|
|
827
396
|
* @param id - The ID of the product to delete.
|
|
828
397
|
*/
|
|
829
398
|
deleteProduct(id, _options) {
|
|
830
|
-
|
|
831
|
-
if (_options) {
|
|
832
|
-
observableOptions = {
|
|
833
|
-
baseServer: _options.baseServer,
|
|
834
|
-
httpApi: _options.httpApi,
|
|
835
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
836
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
837
|
-
authMethods: _options.authMethods
|
|
838
|
-
};
|
|
839
|
-
}
|
|
840
|
-
const result = this.api.deleteProduct(id, observableOptions);
|
|
399
|
+
const result = this.api.deleteProduct(id, _options);
|
|
841
400
|
return result.toPromise();
|
|
842
401
|
}
|
|
843
402
|
/**
|
|
@@ -845,17 +404,7 @@ class PromiseProductsApi {
|
|
|
845
404
|
* @param id - The ID of the product to fetch.
|
|
846
405
|
*/
|
|
847
406
|
getProductWithHttpInfo(id, _options) {
|
|
848
|
-
|
|
849
|
-
if (_options) {
|
|
850
|
-
observableOptions = {
|
|
851
|
-
baseServer: _options.baseServer,
|
|
852
|
-
httpApi: _options.httpApi,
|
|
853
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
854
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
855
|
-
authMethods: _options.authMethods
|
|
856
|
-
};
|
|
857
|
-
}
|
|
858
|
-
const result = this.api.getProductWithHttpInfo(id, observableOptions);
|
|
407
|
+
const result = this.api.getProductWithHttpInfo(id, _options);
|
|
859
408
|
return result.toPromise();
|
|
860
409
|
}
|
|
861
410
|
/**
|
|
@@ -863,17 +412,7 @@ class PromiseProductsApi {
|
|
|
863
412
|
* @param id - The ID of the product to fetch.
|
|
864
413
|
*/
|
|
865
414
|
getProduct(id, _options) {
|
|
866
|
-
|
|
867
|
-
if (_options) {
|
|
868
|
-
observableOptions = {
|
|
869
|
-
baseServer: _options.baseServer,
|
|
870
|
-
httpApi: _options.httpApi,
|
|
871
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
872
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
873
|
-
authMethods: _options.authMethods
|
|
874
|
-
};
|
|
875
|
-
}
|
|
876
|
-
const result = this.api.getProduct(id, observableOptions);
|
|
415
|
+
const result = this.api.getProduct(id, _options);
|
|
877
416
|
return result.toPromise();
|
|
878
417
|
}
|
|
879
418
|
/**
|
|
@@ -881,17 +420,7 @@ class PromiseProductsApi {
|
|
|
881
420
|
* @param aPIQueryPayloadAPIProduct - The query filters and pagination details.
|
|
882
421
|
*/
|
|
883
422
|
queryProductsWithHttpInfo(aPIQueryPayloadAPIProduct, _options) {
|
|
884
|
-
|
|
885
|
-
if (_options) {
|
|
886
|
-
observableOptions = {
|
|
887
|
-
baseServer: _options.baseServer,
|
|
888
|
-
httpApi: _options.httpApi,
|
|
889
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
890
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
891
|
-
authMethods: _options.authMethods
|
|
892
|
-
};
|
|
893
|
-
}
|
|
894
|
-
const result = this.api.queryProductsWithHttpInfo(aPIQueryPayloadAPIProduct, observableOptions);
|
|
423
|
+
const result = this.api.queryProductsWithHttpInfo(aPIQueryPayloadAPIProduct, _options);
|
|
895
424
|
return result.toPromise();
|
|
896
425
|
}
|
|
897
426
|
/**
|
|
@@ -899,17 +428,7 @@ class PromiseProductsApi {
|
|
|
899
428
|
* @param aPIQueryPayloadAPIProduct - The query filters and pagination details.
|
|
900
429
|
*/
|
|
901
430
|
queryProducts(aPIQueryPayloadAPIProduct, _options) {
|
|
902
|
-
|
|
903
|
-
if (_options) {
|
|
904
|
-
observableOptions = {
|
|
905
|
-
baseServer: _options.baseServer,
|
|
906
|
-
httpApi: _options.httpApi,
|
|
907
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
908
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
909
|
-
authMethods: _options.authMethods
|
|
910
|
-
};
|
|
911
|
-
}
|
|
912
|
-
const result = this.api.queryProducts(aPIQueryPayloadAPIProduct, observableOptions);
|
|
431
|
+
const result = this.api.queryProducts(aPIQueryPayloadAPIProduct, _options);
|
|
913
432
|
return result.toPromise();
|
|
914
433
|
}
|
|
915
434
|
/**
|
|
@@ -918,17 +437,7 @@ class PromiseProductsApi {
|
|
|
918
437
|
* @param id - The ID of the product to update.
|
|
919
438
|
*/
|
|
920
439
|
updateProductWithHttpInfo(aPIUpdateProductPayload, id, _options) {
|
|
921
|
-
|
|
922
|
-
if (_options) {
|
|
923
|
-
observableOptions = {
|
|
924
|
-
baseServer: _options.baseServer,
|
|
925
|
-
httpApi: _options.httpApi,
|
|
926
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
927
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
928
|
-
authMethods: _options.authMethods
|
|
929
|
-
};
|
|
930
|
-
}
|
|
931
|
-
const result = this.api.updateProductWithHttpInfo(aPIUpdateProductPayload, id, observableOptions);
|
|
440
|
+
const result = this.api.updateProductWithHttpInfo(aPIUpdateProductPayload, id, _options);
|
|
932
441
|
return result.toPromise();
|
|
933
442
|
}
|
|
934
443
|
/**
|
|
@@ -937,17 +446,7 @@ class PromiseProductsApi {
|
|
|
937
446
|
* @param id - The ID of the product to update.
|
|
938
447
|
*/
|
|
939
448
|
updateProduct(aPIUpdateProductPayload, id, _options) {
|
|
940
|
-
|
|
941
|
-
if (_options) {
|
|
942
|
-
observableOptions = {
|
|
943
|
-
baseServer: _options.baseServer,
|
|
944
|
-
httpApi: _options.httpApi,
|
|
945
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
946
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
947
|
-
authMethods: _options.authMethods
|
|
948
|
-
};
|
|
949
|
-
}
|
|
950
|
-
const result = this.api.updateProduct(aPIUpdateProductPayload, id, observableOptions);
|
|
449
|
+
const result = this.api.updateProduct(aPIUpdateProductPayload, id, _options);
|
|
951
450
|
return result.toPromise();
|
|
952
451
|
}
|
|
953
452
|
}
|