@emilgroup/partner-sdk 1.23.1-beta.1 → 1.23.1-beta.2
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 +2 -0
- package/README.md +2 -2
- package/api/partner-hierarchies-api.ts +0 -201
- package/api/partner-hierarchy-operations-api.ts +363 -0
- package/api.ts +2 -0
- package/dist/api/partner-hierarchies-api.d.ts +0 -119
- package/dist/api/partner-hierarchies-api.js +0 -134
- package/dist/api/partner-hierarchy-operations-api.d.ts +215 -0
- package/dist/api/partner-hierarchy-operations-api.js +358 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/get-partner-hierarchy-operation-response-class.d.ts +25 -0
- package/dist/models/get-partner-hierarchy-operation-response-class.js +15 -0
- package/dist/models/get-partner-hierarchy-tree-file-response-class.d.ts +22 -4
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/partner-hierarchy-class.d.ts +0 -6
- package/dist/models/partner-hierarchy-operation-class.d.ts +29 -9
- package/dist/models/partner-hierarchy-operation-class.js +12 -0
- package/models/get-partner-hierarchy-operation-response-class.ts +31 -0
- package/models/get-partner-hierarchy-tree-file-response-class.ts +22 -4
- package/models/index.ts +1 -0
- package/models/partner-hierarchy-class.ts +0 -6
- package/models/partner-hierarchy-operation-class.ts +33 -9
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -8,6 +8,7 @@ api/blacklist-reasons-api.ts
|
|
|
8
8
|
api/health-api.ts
|
|
9
9
|
api/partner-hierarchies-api.ts
|
|
10
10
|
api/partner-hierarchy-nodes-api.ts
|
|
11
|
+
api/partner-hierarchy-operations-api.ts
|
|
11
12
|
api/partner-hierarchy-types-api.ts
|
|
12
13
|
api/partner-invitations-api.ts
|
|
13
14
|
api/partner-relations-api.ts
|
|
@@ -49,6 +50,7 @@ models/generate-upload-url-response-class.ts
|
|
|
49
50
|
models/get-blacklist-item-response-class.ts
|
|
50
51
|
models/get-blacklist-reason-response-class.ts
|
|
51
52
|
models/get-partner-hierarchy-node-response-class.ts
|
|
53
|
+
models/get-partner-hierarchy-operation-response-class.ts
|
|
52
54
|
models/get-partner-hierarchy-response-class.ts
|
|
53
55
|
models/get-partner-hierarchy-tree-file-response-class.ts
|
|
54
56
|
models/get-partner-hierarchy-tree-response-class.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@1.23.1-beta.
|
|
20
|
+
npm install @emilgroup/partner-sdk@1.23.1-beta.2 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/partner-sdk@1.23.1-beta.
|
|
24
|
+
yarn add @emilgroup/partner-sdk@1.23.1-beta.2
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PartnersApi`.
|
|
@@ -37,8 +37,6 @@ import { GetPartnerHierarchyTreeResponseClass } from '../models';
|
|
|
37
37
|
// @ts-ignore
|
|
38
38
|
import { ListPartnerHierarchiesResponseClass } from '../models';
|
|
39
39
|
// @ts-ignore
|
|
40
|
-
import { ListPartnerHierarchyOperationsResponseClass } from '../models';
|
|
41
|
-
// @ts-ignore
|
|
42
40
|
import { PartnerHierarchyAsyncOperationResponseClass } from '../models';
|
|
43
41
|
// @ts-ignore
|
|
44
42
|
import { UpdatePartnerHierarchyRequestDto } from '../models';
|
|
@@ -413,86 +411,6 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
413
411
|
|
|
414
412
|
|
|
415
413
|
|
|
416
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
417
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
418
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
419
|
-
|
|
420
|
-
return {
|
|
421
|
-
url: toPathString(localVarUrlObj),
|
|
422
|
-
options: localVarRequestOptions,
|
|
423
|
-
};
|
|
424
|
-
},
|
|
425
|
-
/**
|
|
426
|
-
* Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
427
|
-
* @summary List partner hierarchy file operations
|
|
428
|
-
* @param {any} code Unique identifier for the object.
|
|
429
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
430
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
431
|
-
* @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.
|
|
432
|
-
* @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, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
433
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
434
|
-
* @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: id, code, name, createdAt, updatedAt</i>
|
|
435
|
-
* @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/>
|
|
436
|
-
* @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, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
437
|
-
* @param {*} [options] Override http request option.
|
|
438
|
-
* @throws {RequiredError}
|
|
439
|
-
*/
|
|
440
|
-
listPartnerHierarchyOperations: async (code: any, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
441
|
-
// verify required parameter 'code' is not null or undefined
|
|
442
|
-
assertParamExists('listPartnerHierarchyOperations', 'code', code)
|
|
443
|
-
const localVarPath = `/partnerservice/v1/partner-hierarchies/{code}/operations`
|
|
444
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
445
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
446
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
447
|
-
let baseOptions;
|
|
448
|
-
let baseAccessToken;
|
|
449
|
-
if (configuration) {
|
|
450
|
-
baseOptions = configuration.baseOptions;
|
|
451
|
-
baseAccessToken = configuration.accessToken;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
455
|
-
const localVarHeaderParameter = {} as any;
|
|
456
|
-
const localVarQueryParameter = {} as any;
|
|
457
|
-
|
|
458
|
-
// authentication bearer required
|
|
459
|
-
// http bearer authentication required
|
|
460
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
461
|
-
|
|
462
|
-
if (pageSize !== undefined) {
|
|
463
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
if (pageToken !== undefined) {
|
|
467
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
if (filter !== undefined) {
|
|
471
|
-
localVarQueryParameter['filter'] = filter;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
if (search !== undefined) {
|
|
475
|
-
localVarQueryParameter['search'] = search;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
if (order !== undefined) {
|
|
479
|
-
localVarQueryParameter['order'] = order;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
if (expand !== undefined) {
|
|
483
|
-
localVarQueryParameter['expand'] = expand;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
if (filters !== undefined) {
|
|
487
|
-
localVarQueryParameter['filters'] = filters;
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
491
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
414
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
497
415
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
498
416
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -708,25 +626,6 @@ export const PartnerHierarchiesApiFp = function(configuration?: Configuration) {
|
|
|
708
626
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerHierarchies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
709
627
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
710
628
|
},
|
|
711
|
-
/**
|
|
712
|
-
* Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
713
|
-
* @summary List partner hierarchy file operations
|
|
714
|
-
* @param {any} code Unique identifier for the object.
|
|
715
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
716
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
717
|
-
* @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.
|
|
718
|
-
* @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, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
719
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
720
|
-
* @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: id, code, name, createdAt, updatedAt</i>
|
|
721
|
-
* @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/>
|
|
722
|
-
* @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, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
723
|
-
* @param {*} [options] Override http request option.
|
|
724
|
-
* @throws {RequiredError}
|
|
725
|
-
*/
|
|
726
|
-
async listPartnerHierarchyOperations(code: any, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerHierarchyOperationsResponseClass>> {
|
|
727
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerHierarchyOperations(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
728
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
729
|
-
},
|
|
730
629
|
/**
|
|
731
630
|
* Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
732
631
|
* @summary Update a partner hierarchy
|
|
@@ -850,24 +749,6 @@ export const PartnerHierarchiesApiFactory = function (configuration?: Configurat
|
|
|
850
749
|
listPartnerHierarchies(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerHierarchiesResponseClass> {
|
|
851
750
|
return localVarFp.listPartnerHierarchies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
852
751
|
},
|
|
853
|
-
/**
|
|
854
|
-
* Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
855
|
-
* @summary List partner hierarchy file operations
|
|
856
|
-
* @param {any} code Unique identifier for the object.
|
|
857
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
858
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
859
|
-
* @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.
|
|
860
|
-
* @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, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
861
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
862
|
-
* @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: id, code, name, createdAt, updatedAt</i>
|
|
863
|
-
* @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/>
|
|
864
|
-
* @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, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
865
|
-
* @param {*} [options] Override http request option.
|
|
866
|
-
* @throws {RequiredError}
|
|
867
|
-
*/
|
|
868
|
-
listPartnerHierarchyOperations(code: any, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerHierarchyOperationsResponseClass> {
|
|
869
|
-
return localVarFp.listPartnerHierarchyOperations(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
870
|
-
},
|
|
871
752
|
/**
|
|
872
753
|
* Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
873
754
|
* @summary Update a partner hierarchy
|
|
@@ -1112,76 +993,6 @@ export interface PartnerHierarchiesApiListPartnerHierarchiesRequest {
|
|
|
1112
993
|
readonly filters?: string
|
|
1113
994
|
}
|
|
1114
995
|
|
|
1115
|
-
/**
|
|
1116
|
-
* Request parameters for listPartnerHierarchyOperations operation in PartnerHierarchiesApi.
|
|
1117
|
-
* @export
|
|
1118
|
-
* @interface PartnerHierarchiesApiListPartnerHierarchyOperationsRequest
|
|
1119
|
-
*/
|
|
1120
|
-
export interface PartnerHierarchiesApiListPartnerHierarchyOperationsRequest {
|
|
1121
|
-
/**
|
|
1122
|
-
* Unique identifier for the object.
|
|
1123
|
-
* @type {any}
|
|
1124
|
-
* @memberof PartnerHierarchiesApiListPartnerHierarchyOperations
|
|
1125
|
-
*/
|
|
1126
|
-
readonly code: any
|
|
1127
|
-
|
|
1128
|
-
/**
|
|
1129
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1130
|
-
* @type {string}
|
|
1131
|
-
* @memberof PartnerHierarchiesApiListPartnerHierarchyOperations
|
|
1132
|
-
*/
|
|
1133
|
-
readonly authorization?: string
|
|
1134
|
-
|
|
1135
|
-
/**
|
|
1136
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1137
|
-
* @type {number}
|
|
1138
|
-
* @memberof PartnerHierarchiesApiListPartnerHierarchyOperations
|
|
1139
|
-
*/
|
|
1140
|
-
readonly pageSize?: number
|
|
1141
|
-
|
|
1142
|
-
/**
|
|
1143
|
-
* 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.
|
|
1144
|
-
* @type {string}
|
|
1145
|
-
* @memberof PartnerHierarchiesApiListPartnerHierarchyOperations
|
|
1146
|
-
*/
|
|
1147
|
-
readonly pageToken?: string
|
|
1148
|
-
|
|
1149
|
-
/**
|
|
1150
|
-
* 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, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
1151
|
-
* @type {string}
|
|
1152
|
-
* @memberof PartnerHierarchiesApiListPartnerHierarchyOperations
|
|
1153
|
-
*/
|
|
1154
|
-
readonly filter?: string
|
|
1155
|
-
|
|
1156
|
-
/**
|
|
1157
|
-
* To search the list by any field, pass search=xxx to fetch the result.
|
|
1158
|
-
* @type {string}
|
|
1159
|
-
* @memberof PartnerHierarchiesApiListPartnerHierarchyOperations
|
|
1160
|
-
*/
|
|
1161
|
-
readonly search?: string
|
|
1162
|
-
|
|
1163
|
-
/**
|
|
1164
|
-
* 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: id, code, name, createdAt, updatedAt</i>
|
|
1165
|
-
* @type {string}
|
|
1166
|
-
* @memberof PartnerHierarchiesApiListPartnerHierarchyOperations
|
|
1167
|
-
*/
|
|
1168
|
-
readonly order?: string
|
|
1169
|
-
|
|
1170
|
-
/**
|
|
1171
|
-
* 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/>
|
|
1172
|
-
* @type {string}
|
|
1173
|
-
* @memberof PartnerHierarchiesApiListPartnerHierarchyOperations
|
|
1174
|
-
*/
|
|
1175
|
-
readonly expand?: string
|
|
1176
|
-
|
|
1177
|
-
/**
|
|
1178
|
-
* 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, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
1179
|
-
* @type {string}
|
|
1180
|
-
* @memberof PartnerHierarchiesApiListPartnerHierarchyOperations
|
|
1181
|
-
*/
|
|
1182
|
-
readonly filters?: string
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
996
|
/**
|
|
1186
997
|
* Request parameters for updatePartnerHierarchy operation in PartnerHierarchiesApi.
|
|
1187
998
|
* @export
|
|
@@ -1329,18 +1140,6 @@ export class PartnerHierarchiesApi extends BaseAPI {
|
|
|
1329
1140
|
return PartnerHierarchiesApiFp(this.configuration).listPartnerHierarchies(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1330
1141
|
}
|
|
1331
1142
|
|
|
1332
|
-
/**
|
|
1333
|
-
* Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
1334
|
-
* @summary List partner hierarchy file operations
|
|
1335
|
-
* @param {PartnerHierarchiesApiListPartnerHierarchyOperationsRequest} requestParameters Request parameters.
|
|
1336
|
-
* @param {*} [options] Override http request option.
|
|
1337
|
-
* @throws {RequiredError}
|
|
1338
|
-
* @memberof PartnerHierarchiesApi
|
|
1339
|
-
*/
|
|
1340
|
-
public listPartnerHierarchyOperations(requestParameters: PartnerHierarchiesApiListPartnerHierarchyOperationsRequest, options?: AxiosRequestConfig) {
|
|
1341
|
-
return PartnerHierarchiesApiFp(this.configuration).listPartnerHierarchyOperations(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
1143
|
/**
|
|
1345
1144
|
* Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
1346
1145
|
* @summary Update a partner hierarchy
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL PartnerService
|
|
5
|
+
* The EMIL PartnerService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { GetPartnerHierarchyOperationResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ListPartnerHierarchyOperationsResponseClass } from '../models';
|
|
27
|
+
/**
|
|
28
|
+
* PartnerHierarchyOperationsApi - axios parameter creator
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const PartnerHierarchyOperationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
* Returns one partner hierarchy background operation by code. Use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
|
|
35
|
+
* @summary Get a partner hierarchy operation
|
|
36
|
+
* @param {string} code
|
|
37
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
38
|
+
* @param {string} [expand]
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
getPartnerHierarchyOperation: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43
|
+
// verify required parameter 'code' is not null or undefined
|
|
44
|
+
assertParamExists('getPartnerHierarchyOperation', 'code', code)
|
|
45
|
+
const localVarPath = `/partnerservice/v1/partner-hierarchy-operations/{code}`
|
|
46
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
47
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
49
|
+
let baseOptions;
|
|
50
|
+
let baseAccessToken;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
baseAccessToken = configuration.accessToken;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
57
|
+
const localVarHeaderParameter = {} as any;
|
|
58
|
+
const localVarQueryParameter = {} as any;
|
|
59
|
+
|
|
60
|
+
// authentication bearer required
|
|
61
|
+
// http bearer authentication required
|
|
62
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
63
|
+
|
|
64
|
+
if (expand !== undefined) {
|
|
65
|
+
localVarQueryParameter['expand'] = expand;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
69
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
url: toPathString(localVarUrlObj),
|
|
80
|
+
options: localVarRequestOptions,
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
* Returns a paginated list of partner hierarchy background operations. Filter by partnerHierarchyCode, type, or status, and use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
|
|
85
|
+
* @summary List partner hierarchy operations
|
|
86
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
87
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
88
|
+
* @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.
|
|
89
|
+
* @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: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
90
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
91
|
+
* @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: id, code, type, status, createdAt, updatedAt</i>
|
|
92
|
+
* @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/>
|
|
93
|
+
* @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: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
94
|
+
* @param {*} [options] Override http request option.
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
*/
|
|
97
|
+
listPartnerHierarchyOperations: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
98
|
+
const localVarPath = `/partnerservice/v1/partner-hierarchy-operations`;
|
|
99
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
100
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
101
|
+
let baseOptions;
|
|
102
|
+
let baseAccessToken;
|
|
103
|
+
if (configuration) {
|
|
104
|
+
baseOptions = configuration.baseOptions;
|
|
105
|
+
baseAccessToken = configuration.accessToken;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
109
|
+
const localVarHeaderParameter = {} as any;
|
|
110
|
+
const localVarQueryParameter = {} as any;
|
|
111
|
+
|
|
112
|
+
// authentication bearer required
|
|
113
|
+
// http bearer authentication required
|
|
114
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
115
|
+
|
|
116
|
+
if (pageSize !== undefined) {
|
|
117
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if (pageToken !== undefined) {
|
|
121
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if (filter !== undefined) {
|
|
125
|
+
localVarQueryParameter['filter'] = filter;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
if (search !== undefined) {
|
|
129
|
+
localVarQueryParameter['search'] = search;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
if (order !== undefined) {
|
|
133
|
+
localVarQueryParameter['order'] = order;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
if (expand !== undefined) {
|
|
137
|
+
localVarQueryParameter['expand'] = expand;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (filters !== undefined) {
|
|
141
|
+
localVarQueryParameter['filters'] = filters;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
145
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
151
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
152
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
153
|
+
|
|
154
|
+
return {
|
|
155
|
+
url: toPathString(localVarUrlObj),
|
|
156
|
+
options: localVarRequestOptions,
|
|
157
|
+
};
|
|
158
|
+
},
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* PartnerHierarchyOperationsApi - functional programming interface
|
|
164
|
+
* @export
|
|
165
|
+
*/
|
|
166
|
+
export const PartnerHierarchyOperationsApiFp = function(configuration?: Configuration) {
|
|
167
|
+
const localVarAxiosParamCreator = PartnerHierarchyOperationsApiAxiosParamCreator(configuration)
|
|
168
|
+
return {
|
|
169
|
+
/**
|
|
170
|
+
* Returns one partner hierarchy background operation by code. Use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
|
|
171
|
+
* @summary Get a partner hierarchy operation
|
|
172
|
+
* @param {string} code
|
|
173
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
174
|
+
* @param {string} [expand]
|
|
175
|
+
* @param {*} [options] Override http request option.
|
|
176
|
+
* @throws {RequiredError}
|
|
177
|
+
*/
|
|
178
|
+
async getPartnerHierarchyOperation(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerHierarchyOperationResponseClass>> {
|
|
179
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPartnerHierarchyOperation(code, authorization, expand, options);
|
|
180
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
181
|
+
},
|
|
182
|
+
/**
|
|
183
|
+
* Returns a paginated list of partner hierarchy background operations. Filter by partnerHierarchyCode, type, or status, and use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
|
|
184
|
+
* @summary List partner hierarchy operations
|
|
185
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
186
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
187
|
+
* @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.
|
|
188
|
+
* @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: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
189
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
190
|
+
* @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: id, code, type, status, createdAt, updatedAt</i>
|
|
191
|
+
* @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/>
|
|
192
|
+
* @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: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
async listPartnerHierarchyOperations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerHierarchyOperationsResponseClass>> {
|
|
197
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerHierarchyOperations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
198
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
199
|
+
},
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* PartnerHierarchyOperationsApi - factory interface
|
|
205
|
+
* @export
|
|
206
|
+
*/
|
|
207
|
+
export const PartnerHierarchyOperationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
208
|
+
const localVarFp = PartnerHierarchyOperationsApiFp(configuration)
|
|
209
|
+
return {
|
|
210
|
+
/**
|
|
211
|
+
* Returns one partner hierarchy background operation by code. Use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
|
|
212
|
+
* @summary Get a partner hierarchy operation
|
|
213
|
+
* @param {string} code
|
|
214
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
215
|
+
* @param {string} [expand]
|
|
216
|
+
* @param {*} [options] Override http request option.
|
|
217
|
+
* @throws {RequiredError}
|
|
218
|
+
*/
|
|
219
|
+
getPartnerHierarchyOperation(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPartnerHierarchyOperationResponseClass> {
|
|
220
|
+
return localVarFp.getPartnerHierarchyOperation(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
221
|
+
},
|
|
222
|
+
/**
|
|
223
|
+
* Returns a paginated list of partner hierarchy background operations. Filter by partnerHierarchyCode, type, or status, and use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
|
|
224
|
+
* @summary List partner hierarchy operations
|
|
225
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
226
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
227
|
+
* @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.
|
|
228
|
+
* @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: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
229
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
230
|
+
* @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: id, code, type, status, createdAt, updatedAt</i>
|
|
231
|
+
* @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/>
|
|
232
|
+
* @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: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
233
|
+
* @param {*} [options] Override http request option.
|
|
234
|
+
* @throws {RequiredError}
|
|
235
|
+
*/
|
|
236
|
+
listPartnerHierarchyOperations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerHierarchyOperationsResponseClass> {
|
|
237
|
+
return localVarFp.listPartnerHierarchyOperations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
238
|
+
},
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Request parameters for getPartnerHierarchyOperation operation in PartnerHierarchyOperationsApi.
|
|
244
|
+
* @export
|
|
245
|
+
* @interface PartnerHierarchyOperationsApiGetPartnerHierarchyOperationRequest
|
|
246
|
+
*/
|
|
247
|
+
export interface PartnerHierarchyOperationsApiGetPartnerHierarchyOperationRequest {
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
* @type {string}
|
|
251
|
+
* @memberof PartnerHierarchyOperationsApiGetPartnerHierarchyOperation
|
|
252
|
+
*/
|
|
253
|
+
readonly code: string
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
257
|
+
* @type {string}
|
|
258
|
+
* @memberof PartnerHierarchyOperationsApiGetPartnerHierarchyOperation
|
|
259
|
+
*/
|
|
260
|
+
readonly authorization?: string
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
*
|
|
264
|
+
* @type {string}
|
|
265
|
+
* @memberof PartnerHierarchyOperationsApiGetPartnerHierarchyOperation
|
|
266
|
+
*/
|
|
267
|
+
readonly expand?: string
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Request parameters for listPartnerHierarchyOperations operation in PartnerHierarchyOperationsApi.
|
|
272
|
+
* @export
|
|
273
|
+
* @interface PartnerHierarchyOperationsApiListPartnerHierarchyOperationsRequest
|
|
274
|
+
*/
|
|
275
|
+
export interface PartnerHierarchyOperationsApiListPartnerHierarchyOperationsRequest {
|
|
276
|
+
/**
|
|
277
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
278
|
+
* @type {string}
|
|
279
|
+
* @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
|
|
280
|
+
*/
|
|
281
|
+
readonly authorization?: string
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
285
|
+
* @type {number}
|
|
286
|
+
* @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
|
|
287
|
+
*/
|
|
288
|
+
readonly pageSize?: number
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* 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.
|
|
292
|
+
* @type {string}
|
|
293
|
+
* @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
|
|
294
|
+
*/
|
|
295
|
+
readonly pageToken?: string
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* 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: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
299
|
+
* @type {string}
|
|
300
|
+
* @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
|
|
301
|
+
*/
|
|
302
|
+
readonly filter?: string
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
306
|
+
* @type {string}
|
|
307
|
+
* @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
|
|
308
|
+
*/
|
|
309
|
+
readonly search?: string
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* 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: id, code, type, status, createdAt, updatedAt</i>
|
|
313
|
+
* @type {string}
|
|
314
|
+
* @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
|
|
315
|
+
*/
|
|
316
|
+
readonly order?: string
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* 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/>
|
|
320
|
+
* @type {string}
|
|
321
|
+
* @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
|
|
322
|
+
*/
|
|
323
|
+
readonly expand?: string
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
327
|
+
* @type {string}
|
|
328
|
+
* @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
|
|
329
|
+
*/
|
|
330
|
+
readonly filters?: string
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* PartnerHierarchyOperationsApi - object-oriented interface
|
|
335
|
+
* @export
|
|
336
|
+
* @class PartnerHierarchyOperationsApi
|
|
337
|
+
* @extends {BaseAPI}
|
|
338
|
+
*/
|
|
339
|
+
export class PartnerHierarchyOperationsApi extends BaseAPI {
|
|
340
|
+
/**
|
|
341
|
+
* Returns one partner hierarchy background operation by code. Use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
|
|
342
|
+
* @summary Get a partner hierarchy operation
|
|
343
|
+
* @param {PartnerHierarchyOperationsApiGetPartnerHierarchyOperationRequest} requestParameters Request parameters.
|
|
344
|
+
* @param {*} [options] Override http request option.
|
|
345
|
+
* @throws {RequiredError}
|
|
346
|
+
* @memberof PartnerHierarchyOperationsApi
|
|
347
|
+
*/
|
|
348
|
+
public getPartnerHierarchyOperation(requestParameters: PartnerHierarchyOperationsApiGetPartnerHierarchyOperationRequest, options?: AxiosRequestConfig) {
|
|
349
|
+
return PartnerHierarchyOperationsApiFp(this.configuration).getPartnerHierarchyOperation(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Returns a paginated list of partner hierarchy background operations. Filter by partnerHierarchyCode, type, or status, and use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
|
|
354
|
+
* @summary List partner hierarchy operations
|
|
355
|
+
* @param {PartnerHierarchyOperationsApiListPartnerHierarchyOperationsRequest} requestParameters Request parameters.
|
|
356
|
+
* @param {*} [options] Override http request option.
|
|
357
|
+
* @throws {RequiredError}
|
|
358
|
+
* @memberof PartnerHierarchyOperationsApi
|
|
359
|
+
*/
|
|
360
|
+
public listPartnerHierarchyOperations(requestParameters: PartnerHierarchyOperationsApiListPartnerHierarchyOperationsRequest = {}, options?: AxiosRequestConfig) {
|
|
361
|
+
return PartnerHierarchyOperationsApiFp(this.configuration).listPartnerHierarchyOperations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
362
|
+
}
|
|
363
|
+
}
|