@emilgroup/commission-sdk-node 1.0.0-beta.5 → 1.0.0-beta.6
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
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/commission-sdk-node@1.0.0-beta.
|
|
20
|
+
npm install @emilgroup/commission-sdk-node@1.0.0-beta.6 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/commission-sdk-node@1.0.0-beta.
|
|
24
|
+
yarn add @emilgroup/commission-sdk-node@1.0.0-beta.6
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CommissionApi`.
|
|
@@ -192,13 +192,12 @@ export const CommissionAgreementProductsApiAxiosParamCreator = function (configu
|
|
|
192
192
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
193
193
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
|
|
194
194
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
|
|
195
|
-
* @param {string} [
|
|
196
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, productSlug, status</i>
|
|
195
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, updatedAt, productSlug, status</i>
|
|
197
196
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: version<i>
|
|
198
197
|
* @param {*} [options] Override http request option.
|
|
199
198
|
* @throws {RequiredError}
|
|
200
199
|
*/
|
|
201
|
-
listCommissionAgreementProducts: async (authorization?: string, filter?: string, filters?: string,
|
|
200
|
+
listCommissionAgreementProducts: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
202
201
|
const localVarPath = `/commissionservice/v1/agreement-products`;
|
|
203
202
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
204
203
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -225,10 +224,6 @@ export const CommissionAgreementProductsApiAxiosParamCreator = function (configu
|
|
|
225
224
|
localVarQueryParameter['filters'] = filters;
|
|
226
225
|
}
|
|
227
226
|
|
|
228
|
-
if (search !== undefined) {
|
|
229
|
-
localVarQueryParameter['search'] = search;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
227
|
if (order !== undefined) {
|
|
233
228
|
localVarQueryParameter['order'] = order;
|
|
234
229
|
}
|
|
@@ -356,14 +351,13 @@ export const CommissionAgreementProductsApiFp = function(configuration?: Configu
|
|
|
356
351
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
357
352
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
|
|
358
353
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
|
|
359
|
-
* @param {string} [
|
|
360
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, productSlug, status</i>
|
|
354
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, updatedAt, productSlug, status</i>
|
|
361
355
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: version<i>
|
|
362
356
|
* @param {*} [options] Override http request option.
|
|
363
357
|
* @throws {RequiredError}
|
|
364
358
|
*/
|
|
365
|
-
async listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string,
|
|
366
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, filter, filters,
|
|
359
|
+
async listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementProductsResponseClass>> {
|
|
360
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, filter, filters, order, expand, options);
|
|
367
361
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
368
362
|
},
|
|
369
363
|
/**
|
|
@@ -429,14 +423,13 @@ export const CommissionAgreementProductsApiFactory = function (configuration?: C
|
|
|
429
423
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
430
424
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
|
|
431
425
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
|
|
432
|
-
* @param {string} [
|
|
433
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, productSlug, status</i>
|
|
426
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, updatedAt, productSlug, status</i>
|
|
434
427
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: version<i>
|
|
435
428
|
* @param {*} [options] Override http request option.
|
|
436
429
|
* @throws {RequiredError}
|
|
437
430
|
*/
|
|
438
|
-
listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string,
|
|
439
|
-
return localVarFp.listCommissionAgreementProducts(authorization, filter, filters,
|
|
431
|
+
listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionAgreementProductsResponseClass> {
|
|
432
|
+
return localVarFp.listCommissionAgreementProducts(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
440
433
|
},
|
|
441
434
|
/**
|
|
442
435
|
* This will update commission agreement product.
|
|
@@ -551,14 +544,7 @@ export interface CommissionAgreementProductsApiListCommissionAgreementProductsRe
|
|
|
551
544
|
readonly filters?: string
|
|
552
545
|
|
|
553
546
|
/**
|
|
554
|
-
*
|
|
555
|
-
* @type {string}
|
|
556
|
-
* @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
|
|
557
|
-
*/
|
|
558
|
-
readonly search?: string
|
|
559
|
-
|
|
560
|
-
/**
|
|
561
|
-
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, productSlug, status</i>
|
|
547
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, updatedAt, productSlug, status</i>
|
|
562
548
|
* @type {string}
|
|
563
549
|
* @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
|
|
564
550
|
*/
|
|
@@ -652,7 +638,7 @@ export class CommissionAgreementProductsApi extends BaseAPI {
|
|
|
652
638
|
* @memberof CommissionAgreementProductsApi
|
|
653
639
|
*/
|
|
654
640
|
public listCommissionAgreementProducts(requestParameters: CommissionAgreementProductsApiListCommissionAgreementProductsRequest = {}, options?: AxiosRequestConfig) {
|
|
655
|
-
return CommissionAgreementProductsApiFp(this.configuration).listCommissionAgreementProducts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.
|
|
641
|
+
return CommissionAgreementProductsApiFp(this.configuration).listCommissionAgreementProducts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
656
642
|
}
|
|
657
643
|
|
|
658
644
|
/**
|
|
@@ -57,13 +57,12 @@ export declare const CommissionAgreementProductsApiAxiosParamCreator: (configura
|
|
|
57
57
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
58
58
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
|
|
59
59
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
|
|
60
|
-
* @param {string} [
|
|
61
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, productSlug, status</i>
|
|
60
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, updatedAt, productSlug, status</i>
|
|
62
61
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: version<i>
|
|
63
62
|
* @param {*} [options] Override http request option.
|
|
64
63
|
* @throws {RequiredError}
|
|
65
64
|
*/
|
|
66
|
-
listCommissionAgreementProducts: (authorization?: string, filter?: string, filters?: string,
|
|
65
|
+
listCommissionAgreementProducts: (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
66
|
/**
|
|
68
67
|
* This will update commission agreement product.
|
|
69
68
|
* @summary Update the commission agreement product
|
|
@@ -114,13 +113,12 @@ export declare const CommissionAgreementProductsApiFp: (configuration?: Configur
|
|
|
114
113
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
115
114
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
|
|
116
115
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
|
|
117
|
-
* @param {string} [
|
|
118
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, productSlug, status</i>
|
|
116
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, updatedAt, productSlug, status</i>
|
|
119
117
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: version<i>
|
|
120
118
|
* @param {*} [options] Override http request option.
|
|
121
119
|
* @throws {RequiredError}
|
|
122
120
|
*/
|
|
123
|
-
listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string,
|
|
121
|
+
listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementProductsResponseClass>>;
|
|
124
122
|
/**
|
|
125
123
|
* This will update commission agreement product.
|
|
126
124
|
* @summary Update the commission agreement product
|
|
@@ -171,13 +169,12 @@ export declare const CommissionAgreementProductsApiFactory: (configuration?: Con
|
|
|
171
169
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
172
170
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
|
|
173
171
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
|
|
174
|
-
* @param {string} [
|
|
175
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, productSlug, status</i>
|
|
172
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, updatedAt, productSlug, status</i>
|
|
176
173
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: version<i>
|
|
177
174
|
* @param {*} [options] Override http request option.
|
|
178
175
|
* @throws {RequiredError}
|
|
179
176
|
*/
|
|
180
|
-
listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string,
|
|
177
|
+
listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionAgreementProductsResponseClass>;
|
|
181
178
|
/**
|
|
182
179
|
* This will update commission agreement product.
|
|
183
180
|
* @summary Update the commission agreement product
|
|
@@ -277,13 +274,7 @@ export interface CommissionAgreementProductsApiListCommissionAgreementProductsRe
|
|
|
277
274
|
*/
|
|
278
275
|
readonly filters?: string;
|
|
279
276
|
/**
|
|
280
|
-
*
|
|
281
|
-
* @type {string}
|
|
282
|
-
* @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
|
|
283
|
-
*/
|
|
284
|
-
readonly search?: string;
|
|
285
|
-
/**
|
|
286
|
-
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, productSlug, status</i>
|
|
277
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, updatedAt, productSlug, status</i>
|
|
287
278
|
* @type {string}
|
|
288
279
|
* @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
|
|
289
280
|
*/
|
|
@@ -253,13 +253,12 @@ var CommissionAgreementProductsApiAxiosParamCreator = function (configuration) {
|
|
|
253
253
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
254
254
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
|
|
255
255
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
|
|
256
|
-
* @param {string} [
|
|
257
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, productSlug, status</i>
|
|
256
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, updatedAt, productSlug, status</i>
|
|
258
257
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: version<i>
|
|
259
258
|
* @param {*} [options] Override http request option.
|
|
260
259
|
* @throws {RequiredError}
|
|
261
260
|
*/
|
|
262
|
-
listCommissionAgreementProducts: function (authorization, filter, filters,
|
|
261
|
+
listCommissionAgreementProducts: function (authorization, filter, filters, order, expand, options) {
|
|
263
262
|
if (options === void 0) { options = {}; }
|
|
264
263
|
return __awaiter(_this, void 0, void 0, function () {
|
|
265
264
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -288,9 +287,6 @@ var CommissionAgreementProductsApiAxiosParamCreator = function (configuration) {
|
|
|
288
287
|
if (filters !== undefined) {
|
|
289
288
|
localVarQueryParameter['filters'] = filters;
|
|
290
289
|
}
|
|
291
|
-
if (search !== undefined) {
|
|
292
|
-
localVarQueryParameter['search'] = search;
|
|
293
|
-
}
|
|
294
290
|
if (order !== undefined) {
|
|
295
291
|
localVarQueryParameter['order'] = order;
|
|
296
292
|
}
|
|
@@ -444,18 +440,17 @@ var CommissionAgreementProductsApiFp = function (configuration) {
|
|
|
444
440
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
445
441
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
|
|
446
442
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
|
|
447
|
-
* @param {string} [
|
|
448
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, productSlug, status</i>
|
|
443
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, updatedAt, productSlug, status</i>
|
|
449
444
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: version<i>
|
|
450
445
|
* @param {*} [options] Override http request option.
|
|
451
446
|
* @throws {RequiredError}
|
|
452
447
|
*/
|
|
453
|
-
listCommissionAgreementProducts: function (authorization, filter, filters,
|
|
448
|
+
listCommissionAgreementProducts: function (authorization, filter, filters, order, expand, options) {
|
|
454
449
|
return __awaiter(this, void 0, void 0, function () {
|
|
455
450
|
var localVarAxiosArgs;
|
|
456
451
|
return __generator(this, function (_a) {
|
|
457
452
|
switch (_a.label) {
|
|
458
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, filter, filters,
|
|
453
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, filter, filters, order, expand, options)];
|
|
459
454
|
case 1:
|
|
460
455
|
localVarAxiosArgs = _a.sent();
|
|
461
456
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -535,14 +530,13 @@ var CommissionAgreementProductsApiFactory = function (configuration, basePath, a
|
|
|
535
530
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
536
531
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
|
|
537
532
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
|
|
538
|
-
* @param {string} [
|
|
539
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, productSlug, status</i>
|
|
533
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, updatedAt, productSlug, status</i>
|
|
540
534
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: version<i>
|
|
541
535
|
* @param {*} [options] Override http request option.
|
|
542
536
|
* @throws {RequiredError}
|
|
543
537
|
*/
|
|
544
|
-
listCommissionAgreementProducts: function (authorization, filter, filters,
|
|
545
|
-
return localVarFp.listCommissionAgreementProducts(authorization, filter, filters,
|
|
538
|
+
listCommissionAgreementProducts: function (authorization, filter, filters, order, expand, options) {
|
|
539
|
+
return localVarFp.listCommissionAgreementProducts(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
546
540
|
},
|
|
547
541
|
/**
|
|
548
542
|
* This will update commission agreement product.
|
|
@@ -617,7 +611,7 @@ var CommissionAgreementProductsApi = /** @class */ (function (_super) {
|
|
|
617
611
|
CommissionAgreementProductsApi.prototype.listCommissionAgreementProducts = function (requestParameters, options) {
|
|
618
612
|
var _this = this;
|
|
619
613
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
620
|
-
return (0, exports.CommissionAgreementProductsApiFp)(this.configuration).listCommissionAgreementProducts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.
|
|
614
|
+
return (0, exports.CommissionAgreementProductsApiFp)(this.configuration).listCommissionAgreementProducts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
621
615
|
};
|
|
622
616
|
/**
|
|
623
617
|
* This will update commission agreement product.
|