@emilgroup/partner-sdk-node 1.0.0 → 1.0.1
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/.openapi-generator/FILES +0 -7
- package/README.md +2 -2
- package/api/partner-types-api.ts +10 -24
- package/api/partners-api.ts +10 -24
- package/api.ts +0 -4
- package/base.ts +0 -1
- package/dist/api/partner-types-api.d.ts +7 -16
- package/dist/api/partner-types-api.js +9 -15
- package/dist/api/partners-api.d.ts +7 -16
- package/dist/api/partners-api.js +9 -15
- package/dist/api.d.ts +0 -2
- package/dist/api.js +0 -2
- package/dist/base.js +0 -1
- package/dist/models/index.d.ts +0 -5
- package/dist/models/index.js +0 -5
- package/dist/models/partner-class.d.ts +0 -12
- package/dist/models/update-partner-type-request-dto.d.ts +0 -6
- package/models/index.ts +0 -5
- package/models/partner-class.ts +0 -12
- package/models/update-partner-type-request-dto.ts +0 -6
- package/package.json +1 -4
- package/api/partner-relations-api.ts +0 -349
- package/api/partner-version-api.ts +0 -375
- package/dist/api/partner-relations-api.d.ts +0 -206
- package/dist/api/partner-relations-api.js +0 -352
- package/dist/api/partner-version-api.d.ts +0 -224
- package/dist/api/partner-version-api.js +0 -363
- package/dist/models/get-partner-relation-type-class.d.ts +0 -25
- package/dist/models/get-partner-relation-type-class.js +0 -15
- package/dist/models/get-partner-version-response-class.d.ts +0 -25
- package/dist/models/get-partner-version-response-class.js +0 -15
- package/dist/models/list-partner-relation-types-class.d.ts +0 -31
- package/dist/models/list-partner-relation-types-class.js +0 -15
- package/dist/models/list-partner-versions-response-class.d.ts +0 -25
- package/dist/models/list-partner-versions-response-class.js +0 -15
- package/dist/models/partner-relation-type-class.d.ts +0 -66
- package/dist/models/partner-relation-type-class.js +0 -15
- package/models/get-partner-relation-type-class.ts +0 -31
- package/models/get-partner-version-response-class.ts +0 -31
- package/models/list-partner-relation-types-class.ts +0 -37
- package/models/list-partner-versions-response-class.ts +0 -31
- package/models/partner-relation-type-class.ts +0 -72
package/.openapi-generator/FILES
CHANGED
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
6
|
api/default-api.ts
|
|
7
|
-
api/partner-relations-api.ts
|
|
8
7
|
api/partner-types-api.ts
|
|
9
|
-
api/partner-version-api.ts
|
|
10
8
|
api/partners-api.ts
|
|
11
9
|
base.ts
|
|
12
10
|
common.ts
|
|
@@ -18,19 +16,14 @@ models/create-partner-response-class.ts
|
|
|
18
16
|
models/create-partner-type-request-dto.ts
|
|
19
17
|
models/create-partner-type-response-class.ts
|
|
20
18
|
models/delete-response-class.ts
|
|
21
|
-
models/get-partner-relation-type-class.ts
|
|
22
19
|
models/get-partner-response-class.ts
|
|
23
20
|
models/get-partner-type-response-class.ts
|
|
24
|
-
models/get-partner-version-response-class.ts
|
|
25
21
|
models/index.ts
|
|
26
22
|
models/inline-response200.ts
|
|
27
23
|
models/inline-response503.ts
|
|
28
|
-
models/list-partner-relation-types-class.ts
|
|
29
24
|
models/list-partner-types-response-class.ts
|
|
30
|
-
models/list-partner-versions-response-class.ts
|
|
31
25
|
models/list-partners-response-class.ts
|
|
32
26
|
models/partner-class.ts
|
|
33
|
-
models/partner-relation-type-class.ts
|
|
34
27
|
models/partner-type-class.ts
|
|
35
28
|
models/partner-type-custom-schema-dto.ts
|
|
36
29
|
models/update-partner-request-dto.ts
|
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/partner-sdk-node@1.0.
|
|
20
|
+
npm install @emilgroup/partner-sdk-node@1.0.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/partner-sdk-node@1.0.
|
|
24
|
+
yarn add @emilgroup/partner-sdk-node@1.0.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PartnersApi`.
|
package/api/partner-types-api.ts
CHANGED
|
@@ -186,17 +186,16 @@ export const PartnerTypesApiAxiosParamCreator = function (configuration?: Config
|
|
|
186
186
|
* Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
187
187
|
* @summary List partner-types
|
|
188
188
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
189
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
190
190
|
* @param {any} [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.
|
|
191
191
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
192
192
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
193
193
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
194
194
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
195
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
196
195
|
* @param {*} [options] Override http request option.
|
|
197
196
|
* @throws {RequiredError}
|
|
198
197
|
*/
|
|
199
|
-
listPartnerTypes: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any,
|
|
198
|
+
listPartnerTypes: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
200
199
|
const localVarPath = `/partnerservice/v1/partner-types`;
|
|
201
200
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
202
201
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -239,10 +238,6 @@ export const PartnerTypesApiAxiosParamCreator = function (configuration?: Config
|
|
|
239
238
|
localVarQueryParameter['expand'] = expand;
|
|
240
239
|
}
|
|
241
240
|
|
|
242
|
-
if (filters !== undefined) {
|
|
243
|
-
localVarQueryParameter['filters'] = filters;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
241
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
247
242
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
248
243
|
}
|
|
@@ -360,18 +355,17 @@ export const PartnerTypesApiFp = function(configuration?: Configuration) {
|
|
|
360
355
|
* Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
361
356
|
* @summary List partner-types
|
|
362
357
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
363
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
358
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
364
359
|
* @param {any} [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.
|
|
365
360
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
366
361
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
367
362
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
368
363
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
369
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
370
364
|
* @param {*} [options] Override http request option.
|
|
371
365
|
* @throws {RequiredError}
|
|
372
366
|
*/
|
|
373
|
-
async listPartnerTypes(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any,
|
|
374
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerTypes(authorization, pageSize, pageToken, filter, search, order, expand,
|
|
367
|
+
async listPartnerTypes(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerTypesResponseClass>> {
|
|
368
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerTypes(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
375
369
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
376
370
|
},
|
|
377
371
|
/**
|
|
@@ -435,18 +429,17 @@ export const PartnerTypesApiFactory = function (configuration?: Configuration, b
|
|
|
435
429
|
* Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
436
430
|
* @summary List partner-types
|
|
437
431
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
438
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
432
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
439
433
|
* @param {any} [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.
|
|
440
434
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
441
435
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
442
436
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
443
437
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
444
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
445
438
|
* @param {*} [options] Override http request option.
|
|
446
439
|
* @throws {RequiredError}
|
|
447
440
|
*/
|
|
448
|
-
listPartnerTypes(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any,
|
|
449
|
-
return localVarFp.listPartnerTypes(authorization, pageSize, pageToken, filter, search, order, expand,
|
|
441
|
+
listPartnerTypes(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPartnerTypesResponseClass> {
|
|
442
|
+
return localVarFp.listPartnerTypes(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
450
443
|
},
|
|
451
444
|
/**
|
|
452
445
|
* Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -547,7 +540,7 @@ export interface PartnerTypesApiListPartnerTypesRequest {
|
|
|
547
540
|
readonly authorization?: string
|
|
548
541
|
|
|
549
542
|
/**
|
|
550
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
543
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
551
544
|
* @type {any}
|
|
552
545
|
* @memberof PartnerTypesApiListPartnerTypes
|
|
553
546
|
*/
|
|
@@ -587,13 +580,6 @@ export interface PartnerTypesApiListPartnerTypesRequest {
|
|
|
587
580
|
* @memberof PartnerTypesApiListPartnerTypes
|
|
588
581
|
*/
|
|
589
582
|
readonly expand?: any
|
|
590
|
-
|
|
591
|
-
/**
|
|
592
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
593
|
-
* @type {any}
|
|
594
|
-
* @memberof PartnerTypesApiListPartnerTypes
|
|
595
|
-
*/
|
|
596
|
-
readonly filters?: any
|
|
597
583
|
}
|
|
598
584
|
|
|
599
585
|
/**
|
|
@@ -676,7 +662,7 @@ export class PartnerTypesApi extends BaseAPI {
|
|
|
676
662
|
* @memberof PartnerTypesApi
|
|
677
663
|
*/
|
|
678
664
|
public listPartnerTypes(requestParameters: PartnerTypesApiListPartnerTypesRequest = {}, options?: AxiosRequestConfig) {
|
|
679
|
-
return PartnerTypesApiFp(this.configuration).listPartnerTypes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand,
|
|
665
|
+
return PartnerTypesApiFp(this.configuration).listPartnerTypes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
680
666
|
}
|
|
681
667
|
|
|
682
668
|
/**
|
package/api/partners-api.ts
CHANGED
|
@@ -186,17 +186,16 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
186
186
|
* Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
187
187
|
* @summary List partners
|
|
188
188
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
189
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
190
190
|
* @param {any} [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.
|
|
191
191
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
192
192
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
193
193
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
194
194
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
195
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
196
195
|
* @param {*} [options] Override http request option.
|
|
197
196
|
* @throws {RequiredError}
|
|
198
197
|
*/
|
|
199
|
-
listPartners: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any,
|
|
198
|
+
listPartners: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
200
199
|
const localVarPath = `/partnerservice/v1/partners`;
|
|
201
200
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
202
201
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -239,10 +238,6 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
239
238
|
localVarQueryParameter['expand'] = expand;
|
|
240
239
|
}
|
|
241
240
|
|
|
242
|
-
if (filters !== undefined) {
|
|
243
|
-
localVarQueryParameter['filters'] = filters;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
241
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
247
242
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
248
243
|
}
|
|
@@ -360,18 +355,17 @@ export const PartnersApiFp = function(configuration?: Configuration) {
|
|
|
360
355
|
* Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
361
356
|
* @summary List partners
|
|
362
357
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
363
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
358
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
364
359
|
* @param {any} [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.
|
|
365
360
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
366
361
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
367
362
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
368
363
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
369
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
370
364
|
* @param {*} [options] Override http request option.
|
|
371
365
|
* @throws {RequiredError}
|
|
372
366
|
*/
|
|
373
|
-
async listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any,
|
|
374
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPartners(authorization, pageSize, pageToken, filter, search, order, expand,
|
|
367
|
+
async listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnersResponseClass>> {
|
|
368
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
375
369
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
376
370
|
},
|
|
377
371
|
/**
|
|
@@ -435,18 +429,17 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
|
|
|
435
429
|
* Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
436
430
|
* @summary List partners
|
|
437
431
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
438
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
432
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
439
433
|
* @param {any} [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.
|
|
440
434
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
441
435
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
442
436
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
443
437
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
444
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
445
438
|
* @param {*} [options] Override http request option.
|
|
446
439
|
* @throws {RequiredError}
|
|
447
440
|
*/
|
|
448
|
-
listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any,
|
|
449
|
-
return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand,
|
|
441
|
+
listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPartnersResponseClass> {
|
|
442
|
+
return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
450
443
|
},
|
|
451
444
|
/**
|
|
452
445
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -547,7 +540,7 @@ export interface PartnersApiListPartnersRequest {
|
|
|
547
540
|
readonly authorization?: string
|
|
548
541
|
|
|
549
542
|
/**
|
|
550
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
543
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
551
544
|
* @type {any}
|
|
552
545
|
* @memberof PartnersApiListPartners
|
|
553
546
|
*/
|
|
@@ -587,13 +580,6 @@ export interface PartnersApiListPartnersRequest {
|
|
|
587
580
|
* @memberof PartnersApiListPartners
|
|
588
581
|
*/
|
|
589
582
|
readonly expand?: any
|
|
590
|
-
|
|
591
|
-
/**
|
|
592
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
593
|
-
* @type {any}
|
|
594
|
-
* @memberof PartnersApiListPartners
|
|
595
|
-
*/
|
|
596
|
-
readonly filters?: any
|
|
597
583
|
}
|
|
598
584
|
|
|
599
585
|
/**
|
|
@@ -676,7 +662,7 @@ export class PartnersApi extends BaseAPI {
|
|
|
676
662
|
* @memberof PartnersApi
|
|
677
663
|
*/
|
|
678
664
|
public listPartners(requestParameters: PartnersApiListPartnersRequest = {}, options?: AxiosRequestConfig) {
|
|
679
|
-
return PartnersApiFp(this.configuration).listPartners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand,
|
|
665
|
+
return PartnersApiFp(this.configuration).listPartners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
680
666
|
}
|
|
681
667
|
|
|
682
668
|
/**
|
package/api.ts
CHANGED
|
@@ -21,15 +21,11 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
23
|
import { DefaultApi } from './api';
|
|
24
|
-
import { PartnerRelationsApi } from './api';
|
|
25
24
|
import { PartnerTypesApi } from './api';
|
|
26
|
-
import { PartnerVersionApi } from './api';
|
|
27
25
|
import { PartnersApi } from './api';
|
|
28
26
|
|
|
29
27
|
|
|
30
28
|
export * from './api/default-api';
|
|
31
|
-
export * from './api/partner-relations-api';
|
|
32
29
|
export * from './api/partner-types-api';
|
|
33
|
-
export * from './api/partner-version-api';
|
|
34
30
|
export * from './api/partners-api';
|
|
35
31
|
|
package/base.ts
CHANGED
|
@@ -87,7 +87,6 @@ export class BaseAPI {
|
|
|
87
87
|
if (configuration) {
|
|
88
88
|
this.configuration = configuration;
|
|
89
89
|
this.basePath = configuration.basePath || this.basePath;
|
|
90
|
-
this.configuration.accessToken = this.tokenData.accessToken ? `Bearer ${this.tokenData.accessToken}` : '';
|
|
91
90
|
} else {
|
|
92
91
|
const { accessToken, username } = this.tokenData;
|
|
93
92
|
|
|
@@ -56,17 +56,16 @@ export declare const PartnerTypesApiAxiosParamCreator: (configuration?: Configur
|
|
|
56
56
|
* Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
57
57
|
* @summary List partner-types
|
|
58
58
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
59
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
59
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
60
60
|
* @param {any} [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.
|
|
61
61
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
62
62
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
63
63
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
64
64
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
65
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
66
65
|
* @param {*} [options] Override http request option.
|
|
67
66
|
* @throws {RequiredError}
|
|
68
67
|
*/
|
|
69
|
-
listPartnerTypes: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any,
|
|
68
|
+
listPartnerTypes: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
70
69
|
/**
|
|
71
70
|
* Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
72
71
|
* @summary Update the partner-types
|
|
@@ -115,17 +114,16 @@ export declare const PartnerTypesApiFp: (configuration?: Configuration) => {
|
|
|
115
114
|
* Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
116
115
|
* @summary List partner-types
|
|
117
116
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
118
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
117
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
119
118
|
* @param {any} [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.
|
|
120
119
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
121
120
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
122
121
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
123
122
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
124
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
125
123
|
* @param {*} [options] Override http request option.
|
|
126
124
|
* @throws {RequiredError}
|
|
127
125
|
*/
|
|
128
|
-
listPartnerTypes(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any,
|
|
126
|
+
listPartnerTypes(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerTypesResponseClass>>;
|
|
129
127
|
/**
|
|
130
128
|
* Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
131
129
|
* @summary Update the partner-types
|
|
@@ -174,17 +172,16 @@ export declare const PartnerTypesApiFactory: (configuration?: Configuration, bas
|
|
|
174
172
|
* Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
175
173
|
* @summary List partner-types
|
|
176
174
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
177
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
175
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
178
176
|
* @param {any} [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.
|
|
179
177
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
180
178
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
181
179
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
182
180
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
183
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
184
181
|
* @param {*} [options] Override http request option.
|
|
185
182
|
* @throws {RequiredError}
|
|
186
183
|
*/
|
|
187
|
-
listPartnerTypes(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any,
|
|
184
|
+
listPartnerTypes(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPartnerTypesResponseClass>;
|
|
188
185
|
/**
|
|
189
186
|
* Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
190
187
|
* @summary Update the partner-types
|
|
@@ -272,7 +269,7 @@ export interface PartnerTypesApiListPartnerTypesRequest {
|
|
|
272
269
|
*/
|
|
273
270
|
readonly authorization?: string;
|
|
274
271
|
/**
|
|
275
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
272
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
276
273
|
* @type {any}
|
|
277
274
|
* @memberof PartnerTypesApiListPartnerTypes
|
|
278
275
|
*/
|
|
@@ -307,12 +304,6 @@ export interface PartnerTypesApiListPartnerTypesRequest {
|
|
|
307
304
|
* @memberof PartnerTypesApiListPartnerTypes
|
|
308
305
|
*/
|
|
309
306
|
readonly expand?: any;
|
|
310
|
-
/**
|
|
311
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
312
|
-
* @type {any}
|
|
313
|
-
* @memberof PartnerTypesApiListPartnerTypes
|
|
314
|
-
*/
|
|
315
|
-
readonly filters?: any;
|
|
316
307
|
}
|
|
317
308
|
/**
|
|
318
309
|
* Request parameters for updatePartnerType operation in PartnerTypesApi.
|
|
@@ -245,17 +245,16 @@ var PartnerTypesApiAxiosParamCreator = function (configuration) {
|
|
|
245
245
|
* Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
246
246
|
* @summary List partner-types
|
|
247
247
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
248
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
248
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
249
249
|
* @param {any} [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
250
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
251
251
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
252
252
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
253
253
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
254
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
255
254
|
* @param {*} [options] Override http request option.
|
|
256
255
|
* @throws {RequiredError}
|
|
257
256
|
*/
|
|
258
|
-
listPartnerTypes: function (authorization, pageSize, pageToken, filter, search, order, expand,
|
|
257
|
+
listPartnerTypes: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
259
258
|
if (options === void 0) { options = {}; }
|
|
260
259
|
return __awaiter(_this, void 0, void 0, function () {
|
|
261
260
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -296,9 +295,6 @@ var PartnerTypesApiAxiosParamCreator = function (configuration) {
|
|
|
296
295
|
if (expand !== undefined) {
|
|
297
296
|
localVarQueryParameter['expand'] = expand;
|
|
298
297
|
}
|
|
299
|
-
if (filters !== undefined) {
|
|
300
|
-
localVarQueryParameter['filters'] = filters;
|
|
301
|
-
}
|
|
302
298
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
303
299
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
304
300
|
}
|
|
@@ -444,22 +440,21 @@ var PartnerTypesApiFp = function (configuration) {
|
|
|
444
440
|
* Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
445
441
|
* @summary List partner-types
|
|
446
442
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
447
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
443
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
448
444
|
* @param {any} [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.
|
|
449
445
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
450
446
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
451
447
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
452
448
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
453
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
454
449
|
* @param {*} [options] Override http request option.
|
|
455
450
|
* @throws {RequiredError}
|
|
456
451
|
*/
|
|
457
|
-
listPartnerTypes: function (authorization, pageSize, pageToken, filter, search, order, expand,
|
|
452
|
+
listPartnerTypes: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
458
453
|
return __awaiter(this, void 0, void 0, function () {
|
|
459
454
|
var localVarAxiosArgs;
|
|
460
455
|
return __generator(this, function (_a) {
|
|
461
456
|
switch (_a.label) {
|
|
462
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPartnerTypes(authorization, pageSize, pageToken, filter, search, order, expand,
|
|
457
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPartnerTypes(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
463
458
|
case 1:
|
|
464
459
|
localVarAxiosArgs = _a.sent();
|
|
465
460
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -537,18 +532,17 @@ var PartnerTypesApiFactory = function (configuration, basePath, axios) {
|
|
|
537
532
|
* Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
538
533
|
* @summary List partner-types
|
|
539
534
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
540
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
535
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
541
536
|
* @param {any} [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.
|
|
542
537
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
543
538
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
544
539
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
545
540
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
546
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
547
541
|
* @param {*} [options] Override http request option.
|
|
548
542
|
* @throws {RequiredError}
|
|
549
543
|
*/
|
|
550
|
-
listPartnerTypes: function (authorization, pageSize, pageToken, filter, search, order, expand,
|
|
551
|
-
return localVarFp.listPartnerTypes(authorization, pageSize, pageToken, filter, search, order, expand,
|
|
544
|
+
listPartnerTypes: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
545
|
+
return localVarFp.listPartnerTypes(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
552
546
|
},
|
|
553
547
|
/**
|
|
554
548
|
* Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -623,7 +617,7 @@ var PartnerTypesApi = /** @class */ (function (_super) {
|
|
|
623
617
|
PartnerTypesApi.prototype.listPartnerTypes = function (requestParameters, options) {
|
|
624
618
|
var _this = this;
|
|
625
619
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
626
|
-
return (0, exports.PartnerTypesApiFp)(this.configuration).listPartnerTypes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand,
|
|
620
|
+
return (0, exports.PartnerTypesApiFp)(this.configuration).listPartnerTypes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
627
621
|
};
|
|
628
622
|
/**
|
|
629
623
|
* Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -56,17 +56,16 @@ export declare const PartnersApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
56
56
|
* Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
57
57
|
* @summary List partners
|
|
58
58
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
59
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
59
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
60
60
|
* @param {any} [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.
|
|
61
61
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
62
62
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
63
63
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
64
64
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
65
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
66
65
|
* @param {*} [options] Override http request option.
|
|
67
66
|
* @throws {RequiredError}
|
|
68
67
|
*/
|
|
69
|
-
listPartners: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any,
|
|
68
|
+
listPartners: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
70
69
|
/**
|
|
71
70
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
72
71
|
* @summary Update the partner
|
|
@@ -115,17 +114,16 @@ export declare const PartnersApiFp: (configuration?: Configuration) => {
|
|
|
115
114
|
* Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
116
115
|
* @summary List partners
|
|
117
116
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
118
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
117
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
119
118
|
* @param {any} [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.
|
|
120
119
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
121
120
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
122
121
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
123
122
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
124
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
125
123
|
* @param {*} [options] Override http request option.
|
|
126
124
|
* @throws {RequiredError}
|
|
127
125
|
*/
|
|
128
|
-
listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any,
|
|
126
|
+
listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnersResponseClass>>;
|
|
129
127
|
/**
|
|
130
128
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
131
129
|
* @summary Update the partner
|
|
@@ -174,17 +172,16 @@ export declare const PartnersApiFactory: (configuration?: Configuration, basePat
|
|
|
174
172
|
* Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
175
173
|
* @summary List partners
|
|
176
174
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
177
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
175
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
178
176
|
* @param {any} [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.
|
|
179
177
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
180
178
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
181
179
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
182
180
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
183
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
184
181
|
* @param {*} [options] Override http request option.
|
|
185
182
|
* @throws {RequiredError}
|
|
186
183
|
*/
|
|
187
|
-
listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any,
|
|
184
|
+
listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPartnersResponseClass>;
|
|
188
185
|
/**
|
|
189
186
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
190
187
|
* @summary Update the partner
|
|
@@ -272,7 +269,7 @@ export interface PartnersApiListPartnersRequest {
|
|
|
272
269
|
*/
|
|
273
270
|
readonly authorization?: string;
|
|
274
271
|
/**
|
|
275
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
272
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
276
273
|
* @type {any}
|
|
277
274
|
* @memberof PartnersApiListPartners
|
|
278
275
|
*/
|
|
@@ -307,12 +304,6 @@ export interface PartnersApiListPartnersRequest {
|
|
|
307
304
|
* @memberof PartnersApiListPartners
|
|
308
305
|
*/
|
|
309
306
|
readonly expand?: any;
|
|
310
|
-
/**
|
|
311
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
312
|
-
* @type {any}
|
|
313
|
-
* @memberof PartnersApiListPartners
|
|
314
|
-
*/
|
|
315
|
-
readonly filters?: any;
|
|
316
307
|
}
|
|
317
308
|
/**
|
|
318
309
|
* Request parameters for updatePartner operation in PartnersApi.
|