@emilgroup/commission-sdk 1.0.0-beta.49 → 1.0.0-beta.51
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@1.0.0-beta.
|
|
20
|
+
npm install @emilgroup/commission-sdk@1.0.0-beta.51 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/commission-sdk@1.0.0-beta.
|
|
24
|
+
yarn add @emilgroup/commission-sdk@1.0.0-beta.51
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CommissionApi`.
|
|
@@ -186,14 +186,17 @@ export const CommissionCandidatesApiAxiosParamCreator = function (configuration?
|
|
|
186
186
|
* Retrieves a list of commission candidates.
|
|
187
187
|
* @summary List commission candidates
|
|
188
188
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
190
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
189
191
|
* @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, createdAt</i>
|
|
190
|
-
* @param {string} [
|
|
192
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
191
193
|
* @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</i>
|
|
192
194
|
* @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/>
|
|
195
|
+
* @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, createdAt</i>
|
|
193
196
|
* @param {*} [options] Override http request option.
|
|
194
197
|
* @throws {RequiredError}
|
|
195
198
|
*/
|
|
196
|
-
listCommissionCandidates: async (authorization?: string, filter?: string,
|
|
199
|
+
listCommissionCandidates: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
197
200
|
const localVarPath = `/commissionservice/v1/commission-candidates`;
|
|
198
201
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
199
202
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -212,12 +215,20 @@ export const CommissionCandidatesApiAxiosParamCreator = function (configuration?
|
|
|
212
215
|
// http bearer authentication required
|
|
213
216
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
214
217
|
|
|
218
|
+
if (pageSize !== undefined) {
|
|
219
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (pageToken !== undefined) {
|
|
223
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
224
|
+
}
|
|
225
|
+
|
|
215
226
|
if (filter !== undefined) {
|
|
216
227
|
localVarQueryParameter['filter'] = filter;
|
|
217
228
|
}
|
|
218
229
|
|
|
219
|
-
if (
|
|
220
|
-
localVarQueryParameter['
|
|
230
|
+
if (search !== undefined) {
|
|
231
|
+
localVarQueryParameter['search'] = search;
|
|
221
232
|
}
|
|
222
233
|
|
|
223
234
|
if (order !== undefined) {
|
|
@@ -228,6 +239,10 @@ export const CommissionCandidatesApiAxiosParamCreator = function (configuration?
|
|
|
228
239
|
localVarQueryParameter['expand'] = expand;
|
|
229
240
|
}
|
|
230
241
|
|
|
242
|
+
if (filters !== undefined) {
|
|
243
|
+
localVarQueryParameter['filters'] = filters;
|
|
244
|
+
}
|
|
245
|
+
|
|
231
246
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
232
247
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
233
248
|
}
|
|
@@ -345,15 +360,18 @@ export const CommissionCandidatesApiFp = function(configuration?: Configuration)
|
|
|
345
360
|
* Retrieves a list of commission candidates.
|
|
346
361
|
* @summary List commission candidates
|
|
347
362
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
363
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
364
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
348
365
|
* @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, createdAt</i>
|
|
349
|
-
* @param {string} [
|
|
366
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
350
367
|
* @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</i>
|
|
351
368
|
* @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/>
|
|
369
|
+
* @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, createdAt</i>
|
|
352
370
|
* @param {*} [options] Override http request option.
|
|
353
371
|
* @throws {RequiredError}
|
|
354
372
|
*/
|
|
355
|
-
async listCommissionCandidates(authorization?: string, filter?: string,
|
|
356
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionCandidates(authorization, filter,
|
|
373
|
+
async listCommissionCandidates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionCandidatesResponseClass>> {
|
|
374
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionCandidates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
357
375
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
358
376
|
},
|
|
359
377
|
/**
|
|
@@ -417,15 +435,18 @@ export const CommissionCandidatesApiFactory = function (configuration?: Configur
|
|
|
417
435
|
* Retrieves a list of commission candidates.
|
|
418
436
|
* @summary List commission candidates
|
|
419
437
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
438
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
439
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
420
440
|
* @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, createdAt</i>
|
|
421
|
-
* @param {string} [
|
|
441
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
422
442
|
* @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</i>
|
|
423
443
|
* @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/>
|
|
444
|
+
* @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, createdAt</i>
|
|
424
445
|
* @param {*} [options] Override http request option.
|
|
425
446
|
* @throws {RequiredError}
|
|
426
447
|
*/
|
|
427
|
-
listCommissionCandidates(authorization?: string, filter?: string,
|
|
428
|
-
return localVarFp.listCommissionCandidates(authorization, filter,
|
|
448
|
+
listCommissionCandidates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionCandidatesResponseClass> {
|
|
449
|
+
return localVarFp.listCommissionCandidates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
429
450
|
},
|
|
430
451
|
/**
|
|
431
452
|
* This will update commission candidate.
|
|
@@ -525,6 +546,20 @@ export interface CommissionCandidatesApiListCommissionCandidatesRequest {
|
|
|
525
546
|
*/
|
|
526
547
|
readonly authorization?: string
|
|
527
548
|
|
|
549
|
+
/**
|
|
550
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
551
|
+
* @type {number}
|
|
552
|
+
* @memberof CommissionCandidatesApiListCommissionCandidates
|
|
553
|
+
*/
|
|
554
|
+
readonly pageSize?: number
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
558
|
+
* @type {string}
|
|
559
|
+
* @memberof CommissionCandidatesApiListCommissionCandidates
|
|
560
|
+
*/
|
|
561
|
+
readonly pageToken?: string
|
|
562
|
+
|
|
528
563
|
/**
|
|
529
564
|
* 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, createdAt</i>
|
|
530
565
|
* @type {string}
|
|
@@ -533,11 +568,11 @@ export interface CommissionCandidatesApiListCommissionCandidatesRequest {
|
|
|
533
568
|
readonly filter?: string
|
|
534
569
|
|
|
535
570
|
/**
|
|
536
|
-
*
|
|
571
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
537
572
|
* @type {string}
|
|
538
573
|
* @memberof CommissionCandidatesApiListCommissionCandidates
|
|
539
574
|
*/
|
|
540
|
-
readonly
|
|
575
|
+
readonly search?: string
|
|
541
576
|
|
|
542
577
|
/**
|
|
543
578
|
* 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</i>
|
|
@@ -552,6 +587,13 @@ export interface CommissionCandidatesApiListCommissionCandidatesRequest {
|
|
|
552
587
|
* @memberof CommissionCandidatesApiListCommissionCandidates
|
|
553
588
|
*/
|
|
554
589
|
readonly expand?: string
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* 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, createdAt</i>
|
|
593
|
+
* @type {string}
|
|
594
|
+
* @memberof CommissionCandidatesApiListCommissionCandidates
|
|
595
|
+
*/
|
|
596
|
+
readonly filters?: string
|
|
555
597
|
}
|
|
556
598
|
|
|
557
599
|
/**
|
|
@@ -634,7 +676,7 @@ export class CommissionCandidatesApi extends BaseAPI {
|
|
|
634
676
|
* @memberof CommissionCandidatesApi
|
|
635
677
|
*/
|
|
636
678
|
public listCommissionCandidates(requestParameters: CommissionCandidatesApiListCommissionCandidatesRequest = {}, options?: AxiosRequestConfig) {
|
|
637
|
-
return CommissionCandidatesApiFp(this.configuration).listCommissionCandidates(requestParameters.authorization, requestParameters.filter, requestParameters.
|
|
679
|
+
return CommissionCandidatesApiFp(this.configuration).listCommissionCandidates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
638
680
|
}
|
|
639
681
|
|
|
640
682
|
/**
|
|
@@ -55,14 +55,17 @@ export declare const CommissionCandidatesApiAxiosParamCreator: (configuration?:
|
|
|
55
55
|
* Retrieves a list of commission candidates.
|
|
56
56
|
* @summary List commission candidates
|
|
57
57
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
58
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
59
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
58
60
|
* @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, createdAt</i>
|
|
59
|
-
* @param {string} [
|
|
61
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
60
62
|
* @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</i>
|
|
61
63
|
* @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/>
|
|
64
|
+
* @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, createdAt</i>
|
|
62
65
|
* @param {*} [options] Override http request option.
|
|
63
66
|
* @throws {RequiredError}
|
|
64
67
|
*/
|
|
65
|
-
listCommissionCandidates: (authorization?: string, filter?: string,
|
|
68
|
+
listCommissionCandidates: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
66
69
|
/**
|
|
67
70
|
* This will update commission candidate.
|
|
68
71
|
* @summary Update the commission candidate
|
|
@@ -111,14 +114,17 @@ export declare const CommissionCandidatesApiFp: (configuration?: Configuration)
|
|
|
111
114
|
* Retrieves a list of commission candidates.
|
|
112
115
|
* @summary List commission candidates
|
|
113
116
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
117
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
118
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
114
119
|
* @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, createdAt</i>
|
|
115
|
-
* @param {string} [
|
|
120
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
116
121
|
* @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</i>
|
|
117
122
|
* @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/>
|
|
123
|
+
* @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, createdAt</i>
|
|
118
124
|
* @param {*} [options] Override http request option.
|
|
119
125
|
* @throws {RequiredError}
|
|
120
126
|
*/
|
|
121
|
-
listCommissionCandidates(authorization?: string, filter?: string,
|
|
127
|
+
listCommissionCandidates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionCandidatesResponseClass>>;
|
|
122
128
|
/**
|
|
123
129
|
* This will update commission candidate.
|
|
124
130
|
* @summary Update the commission candidate
|
|
@@ -167,14 +173,17 @@ export declare const CommissionCandidatesApiFactory: (configuration?: Configurat
|
|
|
167
173
|
* Retrieves a list of commission candidates.
|
|
168
174
|
* @summary List commission candidates
|
|
169
175
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
176
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
177
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
170
178
|
* @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, createdAt</i>
|
|
171
|
-
* @param {string} [
|
|
179
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
172
180
|
* @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</i>
|
|
173
181
|
* @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/>
|
|
182
|
+
* @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, createdAt</i>
|
|
174
183
|
* @param {*} [options] Override http request option.
|
|
175
184
|
* @throws {RequiredError}
|
|
176
185
|
*/
|
|
177
|
-
listCommissionCandidates(authorization?: string, filter?: string,
|
|
186
|
+
listCommissionCandidates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionCandidatesResponseClass>;
|
|
178
187
|
/**
|
|
179
188
|
* This will update commission candidate.
|
|
180
189
|
* @summary Update the commission candidate
|
|
@@ -261,6 +270,18 @@ export interface CommissionCandidatesApiListCommissionCandidatesRequest {
|
|
|
261
270
|
* @memberof CommissionCandidatesApiListCommissionCandidates
|
|
262
271
|
*/
|
|
263
272
|
readonly authorization?: string;
|
|
273
|
+
/**
|
|
274
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
275
|
+
* @type {number}
|
|
276
|
+
* @memberof CommissionCandidatesApiListCommissionCandidates
|
|
277
|
+
*/
|
|
278
|
+
readonly pageSize?: number;
|
|
279
|
+
/**
|
|
280
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
281
|
+
* @type {string}
|
|
282
|
+
* @memberof CommissionCandidatesApiListCommissionCandidates
|
|
283
|
+
*/
|
|
284
|
+
readonly pageToken?: string;
|
|
264
285
|
/**
|
|
265
286
|
* 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, createdAt</i>
|
|
266
287
|
* @type {string}
|
|
@@ -268,11 +289,11 @@ export interface CommissionCandidatesApiListCommissionCandidatesRequest {
|
|
|
268
289
|
*/
|
|
269
290
|
readonly filter?: string;
|
|
270
291
|
/**
|
|
271
|
-
*
|
|
292
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
272
293
|
* @type {string}
|
|
273
294
|
* @memberof CommissionCandidatesApiListCommissionCandidates
|
|
274
295
|
*/
|
|
275
|
-
readonly
|
|
296
|
+
readonly search?: string;
|
|
276
297
|
/**
|
|
277
298
|
* 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</i>
|
|
278
299
|
* @type {string}
|
|
@@ -285,6 +306,12 @@ export interface CommissionCandidatesApiListCommissionCandidatesRequest {
|
|
|
285
306
|
* @memberof CommissionCandidatesApiListCommissionCandidates
|
|
286
307
|
*/
|
|
287
308
|
readonly expand?: string;
|
|
309
|
+
/**
|
|
310
|
+
* 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, createdAt</i>
|
|
311
|
+
* @type {string}
|
|
312
|
+
* @memberof CommissionCandidatesApiListCommissionCandidates
|
|
313
|
+
*/
|
|
314
|
+
readonly filters?: string;
|
|
288
315
|
}
|
|
289
316
|
/**
|
|
290
317
|
* Request parameters for updateCommissionCandidate operation in CommissionCandidatesApi.
|
|
@@ -247,14 +247,17 @@ var CommissionCandidatesApiAxiosParamCreator = function (configuration) {
|
|
|
247
247
|
* Retrieves a list of commission candidates.
|
|
248
248
|
* @summary List commission candidates
|
|
249
249
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
250
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
251
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
250
252
|
* @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, createdAt</i>
|
|
251
|
-
* @param {string} [
|
|
253
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
252
254
|
* @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</i>
|
|
253
255
|
* @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/>
|
|
256
|
+
* @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, createdAt</i>
|
|
254
257
|
* @param {*} [options] Override http request option.
|
|
255
258
|
* @throws {RequiredError}
|
|
256
259
|
*/
|
|
257
|
-
listCommissionCandidates: function (authorization, filter,
|
|
260
|
+
listCommissionCandidates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
258
261
|
if (options === void 0) { options = {}; }
|
|
259
262
|
return __awaiter(_this, void 0, void 0, function () {
|
|
260
263
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -277,11 +280,17 @@ var CommissionCandidatesApiAxiosParamCreator = function (configuration) {
|
|
|
277
280
|
// authentication bearer required
|
|
278
281
|
// http bearer authentication required
|
|
279
282
|
_a.sent();
|
|
283
|
+
if (pageSize !== undefined) {
|
|
284
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
285
|
+
}
|
|
286
|
+
if (pageToken !== undefined) {
|
|
287
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
288
|
+
}
|
|
280
289
|
if (filter !== undefined) {
|
|
281
290
|
localVarQueryParameter['filter'] = filter;
|
|
282
291
|
}
|
|
283
|
-
if (
|
|
284
|
-
localVarQueryParameter['
|
|
292
|
+
if (search !== undefined) {
|
|
293
|
+
localVarQueryParameter['search'] = search;
|
|
285
294
|
}
|
|
286
295
|
if (order !== undefined) {
|
|
287
296
|
localVarQueryParameter['order'] = order;
|
|
@@ -289,6 +298,9 @@ var CommissionCandidatesApiAxiosParamCreator = function (configuration) {
|
|
|
289
298
|
if (expand !== undefined) {
|
|
290
299
|
localVarQueryParameter['expand'] = expand;
|
|
291
300
|
}
|
|
301
|
+
if (filters !== undefined) {
|
|
302
|
+
localVarQueryParameter['filters'] = filters;
|
|
303
|
+
}
|
|
292
304
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
293
305
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
294
306
|
}
|
|
@@ -434,19 +446,22 @@ var CommissionCandidatesApiFp = function (configuration) {
|
|
|
434
446
|
* Retrieves a list of commission candidates.
|
|
435
447
|
* @summary List commission candidates
|
|
436
448
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
449
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
450
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
437
451
|
* @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, createdAt</i>
|
|
438
|
-
* @param {string} [
|
|
452
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
439
453
|
* @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</i>
|
|
440
454
|
* @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/>
|
|
455
|
+
* @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, createdAt</i>
|
|
441
456
|
* @param {*} [options] Override http request option.
|
|
442
457
|
* @throws {RequiredError}
|
|
443
458
|
*/
|
|
444
|
-
listCommissionCandidates: function (authorization, filter,
|
|
459
|
+
listCommissionCandidates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
445
460
|
return __awaiter(this, void 0, void 0, function () {
|
|
446
461
|
var localVarAxiosArgs;
|
|
447
462
|
return __generator(this, function (_a) {
|
|
448
463
|
switch (_a.label) {
|
|
449
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionCandidates(authorization, filter,
|
|
464
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionCandidates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
450
465
|
case 1:
|
|
451
466
|
localVarAxiosArgs = _a.sent();
|
|
452
467
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -524,15 +539,18 @@ var CommissionCandidatesApiFactory = function (configuration, basePath, axios) {
|
|
|
524
539
|
* Retrieves a list of commission candidates.
|
|
525
540
|
* @summary List commission candidates
|
|
526
541
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
542
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
543
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
527
544
|
* @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, createdAt</i>
|
|
528
|
-
* @param {string} [
|
|
545
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
529
546
|
* @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</i>
|
|
530
547
|
* @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/>
|
|
548
|
+
* @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, createdAt</i>
|
|
531
549
|
* @param {*} [options] Override http request option.
|
|
532
550
|
* @throws {RequiredError}
|
|
533
551
|
*/
|
|
534
|
-
listCommissionCandidates: function (authorization, filter,
|
|
535
|
-
return localVarFp.listCommissionCandidates(authorization, filter,
|
|
552
|
+
listCommissionCandidates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
553
|
+
return localVarFp.listCommissionCandidates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
536
554
|
},
|
|
537
555
|
/**
|
|
538
556
|
* This will update commission candidate.
|
|
@@ -607,7 +625,7 @@ var CommissionCandidatesApi = /** @class */ (function (_super) {
|
|
|
607
625
|
CommissionCandidatesApi.prototype.listCommissionCandidates = function (requestParameters, options) {
|
|
608
626
|
var _this = this;
|
|
609
627
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
610
|
-
return (0, exports.CommissionCandidatesApiFp)(this.configuration).listCommissionCandidates(requestParameters.authorization, requestParameters.filter, requestParameters.
|
|
628
|
+
return (0, exports.CommissionCandidatesApiFp)(this.configuration).listCommissionCandidates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
611
629
|
};
|
|
612
630
|
/**
|
|
613
631
|
* This will update commission candidate.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/commission-sdk",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.51",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/commission-sdk",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"axios": "^1.12.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
+
|
|
24
25
|
"typescript": "^4.0"
|
|
25
26
|
}
|
|
26
27
|
}
|