@emilgroup/partner-sdk 1.22.1-beta.17 → 1.22.1-beta.19
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 +7 -0
- package/README.md +2 -2
- package/api/partner-hierarchies-api.ts +89 -64
- package/api/partner-hierarchy-nodes-api.ts +58 -39
- package/api/partner-hierarchy-types-api.ts +20 -20
- package/dist/api/partner-hierarchies-api.d.ts +79 -65
- package/dist/api/partner-hierarchies-api.js +65 -58
- package/dist/api/partner-hierarchy-nodes-api.d.ts +47 -36
- package/dist/api/partner-hierarchy-nodes-api.js +45 -39
- package/dist/api/partner-hierarchy-types-api.d.ts +20 -20
- package/dist/api/partner-hierarchy-types-api.js +20 -20
- package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.d.ts +30 -0
- package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.js +15 -0
- package/dist/models/generate-upload-url-response-class.d.ts +36 -0
- package/dist/models/generate-upload-url-response-class.js +15 -0
- package/dist/models/get-partner-hierarchy-tree-file-response-class.d.ts +42 -0
- package/dist/models/get-partner-hierarchy-tree-file-response-class.js +15 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/models/list-partner-hierarchy-operations-response-class.d.ts +43 -0
- package/dist/models/list-partner-hierarchy-operations-response-class.js +15 -0
- package/dist/models/partner-hierarchy-async-operation-response-class.d.ts +30 -0
- package/dist/models/partner-hierarchy-async-operation-response-class.js +15 -0
- package/dist/models/partner-hierarchy-class.d.ts +1 -1
- package/dist/models/partner-hierarchy-node-class.d.ts +4 -4
- package/dist/models/partner-hierarchy-node-history-class.d.ts +3 -3
- package/dist/models/partner-hierarchy-node-tree-class.d.ts +6 -6
- package/dist/models/partner-hierarchy-operation-class.d.ts +90 -0
- package/dist/models/partner-hierarchy-operation-class.js +15 -0
- package/dist/models/update-partner-hierarchy-tree-request-body-dto.d.ts +24 -0
- package/dist/models/update-partner-hierarchy-tree-request-body-dto.js +15 -0
- package/models/batch-create-partner-hierarchy-nodes-request-dto.ts +36 -0
- package/models/generate-upload-url-response-class.ts +42 -0
- package/models/get-partner-hierarchy-tree-file-response-class.ts +48 -0
- package/models/index.ts +7 -0
- package/models/list-partner-hierarchy-operations-response-class.ts +49 -0
- package/models/partner-hierarchy-async-operation-response-class.ts +36 -0
- package/models/partner-hierarchy-class.ts +1 -1
- package/models/partner-hierarchy-node-class.ts +4 -4
- package/models/partner-hierarchy-node-history-class.ts +3 -3
- package/models/partner-hierarchy-node-tree-class.ts +6 -6
- package/models/partner-hierarchy-operation-class.ts +96 -0
- package/models/update-partner-hierarchy-tree-request-body-dto.ts +30 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -20,6 +20,7 @@ common.ts
|
|
|
20
20
|
configuration.ts
|
|
21
21
|
git_push.sh
|
|
22
22
|
index.ts
|
|
23
|
+
models/batch-create-partner-hierarchy-nodes-request-dto.ts
|
|
23
24
|
models/blacklist-item-class.ts
|
|
24
25
|
models/blacklist-reason-class.ts
|
|
25
26
|
models/create-blacklist-item-request-dto.ts
|
|
@@ -44,10 +45,12 @@ models/create-tag-request-dto.ts
|
|
|
44
45
|
models/create-tag-response-class.ts
|
|
45
46
|
models/delete-by-code-response-class.ts
|
|
46
47
|
models/delete-response-class.ts
|
|
48
|
+
models/generate-upload-url-response-class.ts
|
|
47
49
|
models/get-blacklist-item-response-class.ts
|
|
48
50
|
models/get-blacklist-reason-response-class.ts
|
|
49
51
|
models/get-partner-hierarchy-node-response-class.ts
|
|
50
52
|
models/get-partner-hierarchy-response-class.ts
|
|
53
|
+
models/get-partner-hierarchy-tree-file-response-class.ts
|
|
51
54
|
models/get-partner-hierarchy-tree-response-class.ts
|
|
52
55
|
models/get-partner-hierarchy-type-response-class.ts
|
|
53
56
|
models/get-partner-relation-class.ts
|
|
@@ -69,6 +72,7 @@ models/list-blacklist-reasons-response-class.ts
|
|
|
69
72
|
models/list-partner-hierarchies-response-class.ts
|
|
70
73
|
models/list-partner-hierarchy-node-history-response-class.ts
|
|
71
74
|
models/list-partner-hierarchy-nodes-response-class.ts
|
|
75
|
+
models/list-partner-hierarchy-operations-response-class.ts
|
|
72
76
|
models/list-partner-hierarchy-types-response-class.ts
|
|
73
77
|
models/list-partner-relation-class.ts
|
|
74
78
|
models/list-partner-relation-types-class.ts
|
|
@@ -84,10 +88,12 @@ models/merge-partners-response-class.ts
|
|
|
84
88
|
models/move-partner-hierarchy-node-request-dto.ts
|
|
85
89
|
models/move-partner-hierarchy-node-response-class.ts
|
|
86
90
|
models/partner-class.ts
|
|
91
|
+
models/partner-hierarchy-async-operation-response-class.ts
|
|
87
92
|
models/partner-hierarchy-class.ts
|
|
88
93
|
models/partner-hierarchy-node-class.ts
|
|
89
94
|
models/partner-hierarchy-node-history-class.ts
|
|
90
95
|
models/partner-hierarchy-node-tree-class.ts
|
|
96
|
+
models/partner-hierarchy-operation-class.ts
|
|
91
97
|
models/partner-hierarchy-type-class.ts
|
|
92
98
|
models/partner-relation-class.ts
|
|
93
99
|
models/partner-relation-type-class.ts
|
|
@@ -106,6 +112,7 @@ models/update-partner-hierarchy-node-request-dto.ts
|
|
|
106
112
|
models/update-partner-hierarchy-node-response-class.ts
|
|
107
113
|
models/update-partner-hierarchy-request-dto.ts
|
|
108
114
|
models/update-partner-hierarchy-response-class.ts
|
|
115
|
+
models/update-partner-hierarchy-tree-request-body-dto.ts
|
|
109
116
|
models/update-partner-hierarchy-type-request-dto.ts
|
|
110
117
|
models/update-partner-hierarchy-type-response-class.ts
|
|
111
118
|
models/update-partner-relation-request-dto-rest.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.22.1-beta.
|
|
20
|
+
npm install @emilgroup/partner-sdk@1.22.1-beta.19 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/partner-sdk@1.22.1-beta.
|
|
24
|
+
yarn add @emilgroup/partner-sdk@1.22.1-beta.19
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PartnersApi`.
|
|
@@ -27,15 +27,25 @@ import { CreatePartnerHierarchyResponseClass } from '../models';
|
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { DeleteByCodeResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
|
+
import { GenerateUploadUrlResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
30
32
|
import { GetPartnerHierarchyResponseClass } from '../models';
|
|
31
33
|
// @ts-ignore
|
|
34
|
+
import { GetPartnerHierarchyTreeFileResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
32
36
|
import { GetPartnerHierarchyTreeResponseClass } from '../models';
|
|
33
37
|
// @ts-ignore
|
|
34
38
|
import { ListPartnerHierarchiesResponseClass } from '../models';
|
|
35
39
|
// @ts-ignore
|
|
40
|
+
import { ListPartnerHierarchyOperationsResponseClass } from '../models';
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
import { PartnerHierarchyAsyncOperationResponseClass } from '../models';
|
|
43
|
+
// @ts-ignore
|
|
36
44
|
import { UpdatePartnerHierarchyRequestDto } from '../models';
|
|
37
45
|
// @ts-ignore
|
|
38
46
|
import { UpdatePartnerHierarchyResponseClass } from '../models';
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
import { UpdatePartnerHierarchyTreeRequestBodyDto } from '../models';
|
|
39
49
|
/**
|
|
40
50
|
* PartnerHierarchiesApi - axios parameter creator
|
|
41
51
|
* @export
|
|
@@ -44,7 +54,7 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
44
54
|
return {
|
|
45
55
|
/**
|
|
46
56
|
* Creates a partner hierarchy from an existing hierarchy type. The hierarchy starts empty, so nodes can be added after it is created. **Required Permissions** \"partner-management.partners.create\"
|
|
47
|
-
* @summary Create
|
|
57
|
+
* @summary Create a partner hierarchy
|
|
48
58
|
* @param {CreatePartnerHierarchyRequestDto} createPartnerHierarchyRequestDto
|
|
49
59
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
50
60
|
* @param {*} [options] Override http request option.
|
|
@@ -91,7 +101,7 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
91
101
|
},
|
|
92
102
|
/**
|
|
93
103
|
* Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
|
|
94
|
-
* @summary Delete
|
|
104
|
+
* @summary Delete a partner hierarchy
|
|
95
105
|
* @param {string} code Unique identifier for the object.
|
|
96
106
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
97
107
|
* @param {*} [options] Override http request option.
|
|
@@ -135,8 +145,8 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
135
145
|
};
|
|
136
146
|
},
|
|
137
147
|
/**
|
|
138
|
-
* Returns a pre-signed upload URL for a hierarchy tree file. Use the uploaded file key for tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.update\"
|
|
139
|
-
* @summary
|
|
148
|
+
* Returns a pre-signed upload URL for a partner hierarchy tree file. Use the uploaded file key for tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.update\"
|
|
149
|
+
* @summary Generate a pre-signed upload URL for a partner hierarchy tree file
|
|
140
150
|
* @param {string} code Unique identifier for the object.
|
|
141
151
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
142
152
|
* @param {*} [options] Override http request option.
|
|
@@ -181,7 +191,7 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
181
191
|
},
|
|
182
192
|
/**
|
|
183
193
|
* Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
|
|
184
|
-
* @summary
|
|
194
|
+
* @summary Get a partner hierarchy
|
|
185
195
|
* @param {string} code Unique identifier for the object.
|
|
186
196
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
187
197
|
* @param {*} [options] Override http request option.
|
|
@@ -226,7 +236,7 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
226
236
|
},
|
|
227
237
|
/**
|
|
228
238
|
* Returns one part of the hierarchy tree: the selected node and its direct children. If no node is selected, it starts from the top of the hierarchy. **Required Permissions** \"partner-management.partners.view\"
|
|
229
|
-
* @summary
|
|
239
|
+
* @summary Get part of a partner hierarchy tree
|
|
230
240
|
* @param {string} code Unique identifier for the object.
|
|
231
241
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
232
242
|
* @param {string} [nodeCode] Node to start from. Omit this to start from the top of the hierarchy.
|
|
@@ -292,8 +302,8 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
292
302
|
};
|
|
293
303
|
},
|
|
294
304
|
/**
|
|
295
|
-
* Returns a download URL for the full hierarchy tree file. If the file is not ready, it starts a tree file build operation; check the operation status and call this endpoint again when it is done. **Required Permissions** \"partner-management.partners.view\"
|
|
296
|
-
* @summary
|
|
305
|
+
* Returns a download URL for the full partner hierarchy tree file. If the file is not ready, it starts a tree file build operation; check the operation status and call this endpoint again when it is done. **Required Permissions** \"partner-management.partners.view\"
|
|
306
|
+
* @summary Get a partner hierarchy tree file
|
|
297
307
|
* @param {string} code Unique identifier for the object.
|
|
298
308
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
299
309
|
* @param {*} [options] Override http request option.
|
|
@@ -413,8 +423,8 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
413
423
|
};
|
|
414
424
|
},
|
|
415
425
|
/**
|
|
416
|
-
* Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
417
|
-
* @summary List partner hierarchy operations
|
|
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
|
|
418
428
|
* @param {any} code Unique identifier for the object.
|
|
419
429
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
420
430
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -494,7 +504,7 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
494
504
|
},
|
|
495
505
|
/**
|
|
496
506
|
* Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
497
|
-
* @summary Update
|
|
507
|
+
* @summary Update a partner hierarchy
|
|
498
508
|
* @param {string} code Unique identifier for the object.
|
|
499
509
|
* @param {UpdatePartnerHierarchyRequestDto} updatePartnerHierarchyRequestDto
|
|
500
510
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -544,16 +554,19 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
544
554
|
};
|
|
545
555
|
},
|
|
546
556
|
/**
|
|
547
|
-
* Replaces the hierarchy tree
|
|
548
|
-
* @summary
|
|
557
|
+
* Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
|
|
558
|
+
* @summary Replace the partner hierarchy tree from an uploaded file
|
|
549
559
|
* @param {string} code Unique identifier for the object.
|
|
560
|
+
* @param {UpdatePartnerHierarchyTreeRequestBodyDto} updatePartnerHierarchyTreeRequestBodyDto
|
|
550
561
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
551
562
|
* @param {*} [options] Override http request option.
|
|
552
563
|
* @throws {RequiredError}
|
|
553
564
|
*/
|
|
554
|
-
updatePartnerHierarchyTree: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
565
|
+
updatePartnerHierarchyTree: async (code: string, updatePartnerHierarchyTreeRequestBodyDto: UpdatePartnerHierarchyTreeRequestBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
555
566
|
// verify required parameter 'code' is not null or undefined
|
|
556
567
|
assertParamExists('updatePartnerHierarchyTree', 'code', code)
|
|
568
|
+
// verify required parameter 'updatePartnerHierarchyTreeRequestBodyDto' is not null or undefined
|
|
569
|
+
assertParamExists('updatePartnerHierarchyTree', 'updatePartnerHierarchyTreeRequestBodyDto', updatePartnerHierarchyTreeRequestBodyDto)
|
|
557
570
|
const localVarPath = `/partnerservice/v1/partner-hierarchies/{code}/tree`
|
|
558
571
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
559
572
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -579,9 +592,12 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
579
592
|
|
|
580
593
|
|
|
581
594
|
|
|
595
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
596
|
+
|
|
582
597
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
583
598
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
584
599
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
600
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePartnerHierarchyTreeRequestBodyDto, localVarRequestOptions, configuration)
|
|
585
601
|
|
|
586
602
|
return {
|
|
587
603
|
url: toPathString(localVarUrlObj),
|
|
@@ -600,7 +616,7 @@ export const PartnerHierarchiesApiFp = function(configuration?: Configuration) {
|
|
|
600
616
|
return {
|
|
601
617
|
/**
|
|
602
618
|
* Creates a partner hierarchy from an existing hierarchy type. The hierarchy starts empty, so nodes can be added after it is created. **Required Permissions** \"partner-management.partners.create\"
|
|
603
|
-
* @summary Create
|
|
619
|
+
* @summary Create a partner hierarchy
|
|
604
620
|
* @param {CreatePartnerHierarchyRequestDto} createPartnerHierarchyRequestDto
|
|
605
621
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
606
622
|
* @param {*} [options] Override http request option.
|
|
@@ -612,7 +628,7 @@ export const PartnerHierarchiesApiFp = function(configuration?: Configuration) {
|
|
|
612
628
|
},
|
|
613
629
|
/**
|
|
614
630
|
* Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
|
|
615
|
-
* @summary Delete
|
|
631
|
+
* @summary Delete a partner hierarchy
|
|
616
632
|
* @param {string} code Unique identifier for the object.
|
|
617
633
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
618
634
|
* @param {*} [options] Override http request option.
|
|
@@ -623,20 +639,20 @@ export const PartnerHierarchiesApiFp = function(configuration?: Configuration) {
|
|
|
623
639
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
624
640
|
},
|
|
625
641
|
/**
|
|
626
|
-
* Returns a pre-signed upload URL for a hierarchy tree file. Use the uploaded file key for tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.update\"
|
|
627
|
-
* @summary
|
|
642
|
+
* Returns a pre-signed upload URL for a partner hierarchy tree file. Use the uploaded file key for tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.update\"
|
|
643
|
+
* @summary Generate a pre-signed upload URL for a partner hierarchy tree file
|
|
628
644
|
* @param {string} code Unique identifier for the object.
|
|
629
645
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
630
646
|
* @param {*} [options] Override http request option.
|
|
631
647
|
* @throws {RequiredError}
|
|
632
648
|
*/
|
|
633
|
-
async generateUploadUrl(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
649
|
+
async generateUploadUrl(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerateUploadUrlResponseClass>> {
|
|
634
650
|
const localVarAxiosArgs = await localVarAxiosParamCreator.generateUploadUrl(code, authorization, options);
|
|
635
651
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
636
652
|
},
|
|
637
653
|
/**
|
|
638
654
|
* Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
|
|
639
|
-
* @summary
|
|
655
|
+
* @summary Get a partner hierarchy
|
|
640
656
|
* @param {string} code Unique identifier for the object.
|
|
641
657
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
642
658
|
* @param {*} [options] Override http request option.
|
|
@@ -648,7 +664,7 @@ export const PartnerHierarchiesApiFp = function(configuration?: Configuration) {
|
|
|
648
664
|
},
|
|
649
665
|
/**
|
|
650
666
|
* Returns one part of the hierarchy tree: the selected node and its direct children. If no node is selected, it starts from the top of the hierarchy. **Required Permissions** \"partner-management.partners.view\"
|
|
651
|
-
* @summary
|
|
667
|
+
* @summary Get part of a partner hierarchy tree
|
|
652
668
|
* @param {string} code Unique identifier for the object.
|
|
653
669
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
654
670
|
* @param {string} [nodeCode] Node to start from. Omit this to start from the top of the hierarchy.
|
|
@@ -663,14 +679,14 @@ export const PartnerHierarchiesApiFp = function(configuration?: Configuration) {
|
|
|
663
679
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
664
680
|
},
|
|
665
681
|
/**
|
|
666
|
-
* Returns a download URL for the full hierarchy tree file. If the file is not ready, it starts a tree file build operation; check the operation status and call this endpoint again when it is done. **Required Permissions** \"partner-management.partners.view\"
|
|
667
|
-
* @summary
|
|
682
|
+
* Returns a download URL for the full partner hierarchy tree file. If the file is not ready, it starts a tree file build operation; check the operation status and call this endpoint again when it is done. **Required Permissions** \"partner-management.partners.view\"
|
|
683
|
+
* @summary Get a partner hierarchy tree file
|
|
668
684
|
* @param {string} code Unique identifier for the object.
|
|
669
685
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
670
686
|
* @param {*} [options] Override http request option.
|
|
671
687
|
* @throws {RequiredError}
|
|
672
688
|
*/
|
|
673
|
-
async getPartnerHierarchyTreeFile(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
689
|
+
async getPartnerHierarchyTreeFile(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerHierarchyTreeFileResponseClass>> {
|
|
674
690
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPartnerHierarchyTreeFile(code, authorization, options);
|
|
675
691
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
676
692
|
},
|
|
@@ -693,8 +709,8 @@ export const PartnerHierarchiesApiFp = function(configuration?: Configuration) {
|
|
|
693
709
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
694
710
|
},
|
|
695
711
|
/**
|
|
696
|
-
* Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
697
|
-
* @summary List partner hierarchy operations
|
|
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
|
|
698
714
|
* @param {any} code Unique identifier for the object.
|
|
699
715
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
700
716
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -707,13 +723,13 @@ export const PartnerHierarchiesApiFp = function(configuration?: Configuration) {
|
|
|
707
723
|
* @param {*} [options] Override http request option.
|
|
708
724
|
* @throws {RequiredError}
|
|
709
725
|
*/
|
|
710
|
-
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<
|
|
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>> {
|
|
711
727
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerHierarchyOperations(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
712
728
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
713
729
|
},
|
|
714
730
|
/**
|
|
715
731
|
* Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
716
|
-
* @summary Update
|
|
732
|
+
* @summary Update a partner hierarchy
|
|
717
733
|
* @param {string} code Unique identifier for the object.
|
|
718
734
|
* @param {UpdatePartnerHierarchyRequestDto} updatePartnerHierarchyRequestDto
|
|
719
735
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -725,15 +741,16 @@ export const PartnerHierarchiesApiFp = function(configuration?: Configuration) {
|
|
|
725
741
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
726
742
|
},
|
|
727
743
|
/**
|
|
728
|
-
* Replaces the hierarchy tree
|
|
729
|
-
* @summary
|
|
744
|
+
* Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
|
|
745
|
+
* @summary Replace the partner hierarchy tree from an uploaded file
|
|
730
746
|
* @param {string} code Unique identifier for the object.
|
|
747
|
+
* @param {UpdatePartnerHierarchyTreeRequestBodyDto} updatePartnerHierarchyTreeRequestBodyDto
|
|
731
748
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
732
749
|
* @param {*} [options] Override http request option.
|
|
733
750
|
* @throws {RequiredError}
|
|
734
751
|
*/
|
|
735
|
-
async updatePartnerHierarchyTree(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
736
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartnerHierarchyTree(code, authorization, options);
|
|
752
|
+
async updatePartnerHierarchyTree(code: string, updatePartnerHierarchyTreeRequestBodyDto: UpdatePartnerHierarchyTreeRequestBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerHierarchyAsyncOperationResponseClass>> {
|
|
753
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartnerHierarchyTree(code, updatePartnerHierarchyTreeRequestBodyDto, authorization, options);
|
|
737
754
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
738
755
|
},
|
|
739
756
|
}
|
|
@@ -748,7 +765,7 @@ export const PartnerHierarchiesApiFactory = function (configuration?: Configurat
|
|
|
748
765
|
return {
|
|
749
766
|
/**
|
|
750
767
|
* Creates a partner hierarchy from an existing hierarchy type. The hierarchy starts empty, so nodes can be added after it is created. **Required Permissions** \"partner-management.partners.create\"
|
|
751
|
-
* @summary Create
|
|
768
|
+
* @summary Create a partner hierarchy
|
|
752
769
|
* @param {CreatePartnerHierarchyRequestDto} createPartnerHierarchyRequestDto
|
|
753
770
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
754
771
|
* @param {*} [options] Override http request option.
|
|
@@ -759,7 +776,7 @@ export const PartnerHierarchiesApiFactory = function (configuration?: Configurat
|
|
|
759
776
|
},
|
|
760
777
|
/**
|
|
761
778
|
* Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
|
|
762
|
-
* @summary Delete
|
|
779
|
+
* @summary Delete a partner hierarchy
|
|
763
780
|
* @param {string} code Unique identifier for the object.
|
|
764
781
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
765
782
|
* @param {*} [options] Override http request option.
|
|
@@ -769,19 +786,19 @@ export const PartnerHierarchiesApiFactory = function (configuration?: Configurat
|
|
|
769
786
|
return localVarFp.deletePartnerHierarchy(code, authorization, options).then((request) => request(axios, basePath));
|
|
770
787
|
},
|
|
771
788
|
/**
|
|
772
|
-
* Returns a pre-signed upload URL for a hierarchy tree file. Use the uploaded file key for tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.update\"
|
|
773
|
-
* @summary
|
|
789
|
+
* Returns a pre-signed upload URL for a partner hierarchy tree file. Use the uploaded file key for tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.update\"
|
|
790
|
+
* @summary Generate a pre-signed upload URL for a partner hierarchy tree file
|
|
774
791
|
* @param {string} code Unique identifier for the object.
|
|
775
792
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
776
793
|
* @param {*} [options] Override http request option.
|
|
777
794
|
* @throws {RequiredError}
|
|
778
795
|
*/
|
|
779
|
-
generateUploadUrl(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
796
|
+
generateUploadUrl(code: string, authorization?: string, options?: any): AxiosPromise<GenerateUploadUrlResponseClass> {
|
|
780
797
|
return localVarFp.generateUploadUrl(code, authorization, options).then((request) => request(axios, basePath));
|
|
781
798
|
},
|
|
782
799
|
/**
|
|
783
800
|
* Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
|
|
784
|
-
* @summary
|
|
801
|
+
* @summary Get a partner hierarchy
|
|
785
802
|
* @param {string} code Unique identifier for the object.
|
|
786
803
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
787
804
|
* @param {*} [options] Override http request option.
|
|
@@ -792,7 +809,7 @@ export const PartnerHierarchiesApiFactory = function (configuration?: Configurat
|
|
|
792
809
|
},
|
|
793
810
|
/**
|
|
794
811
|
* Returns one part of the hierarchy tree: the selected node and its direct children. If no node is selected, it starts from the top of the hierarchy. **Required Permissions** \"partner-management.partners.view\"
|
|
795
|
-
* @summary
|
|
812
|
+
* @summary Get part of a partner hierarchy tree
|
|
796
813
|
* @param {string} code Unique identifier for the object.
|
|
797
814
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
798
815
|
* @param {string} [nodeCode] Node to start from. Omit this to start from the top of the hierarchy.
|
|
@@ -806,14 +823,14 @@ export const PartnerHierarchiesApiFactory = function (configuration?: Configurat
|
|
|
806
823
|
return localVarFp.getPartnerHierarchyTree(code, authorization, nodeCode, pageSize, pageToken, asOf, options).then((request) => request(axios, basePath));
|
|
807
824
|
},
|
|
808
825
|
/**
|
|
809
|
-
* Returns a download URL for the full hierarchy tree file. If the file is not ready, it starts a tree file build operation; check the operation status and call this endpoint again when it is done. **Required Permissions** \"partner-management.partners.view\"
|
|
810
|
-
* @summary
|
|
826
|
+
* Returns a download URL for the full partner hierarchy tree file. If the file is not ready, it starts a tree file build operation; check the operation status and call this endpoint again when it is done. **Required Permissions** \"partner-management.partners.view\"
|
|
827
|
+
* @summary Get a partner hierarchy tree file
|
|
811
828
|
* @param {string} code Unique identifier for the object.
|
|
812
829
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
813
830
|
* @param {*} [options] Override http request option.
|
|
814
831
|
* @throws {RequiredError}
|
|
815
832
|
*/
|
|
816
|
-
getPartnerHierarchyTreeFile(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
833
|
+
getPartnerHierarchyTreeFile(code: string, authorization?: string, options?: any): AxiosPromise<GetPartnerHierarchyTreeFileResponseClass> {
|
|
817
834
|
return localVarFp.getPartnerHierarchyTreeFile(code, authorization, options).then((request) => request(axios, basePath));
|
|
818
835
|
},
|
|
819
836
|
/**
|
|
@@ -834,8 +851,8 @@ export const PartnerHierarchiesApiFactory = function (configuration?: Configurat
|
|
|
834
851
|
return localVarFp.listPartnerHierarchies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
835
852
|
},
|
|
836
853
|
/**
|
|
837
|
-
* Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
838
|
-
* @summary List partner hierarchy operations
|
|
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
|
|
839
856
|
* @param {any} code Unique identifier for the object.
|
|
840
857
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
841
858
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -848,12 +865,12 @@ export const PartnerHierarchiesApiFactory = function (configuration?: Configurat
|
|
|
848
865
|
* @param {*} [options] Override http request option.
|
|
849
866
|
* @throws {RequiredError}
|
|
850
867
|
*/
|
|
851
|
-
listPartnerHierarchyOperations(code: any, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<
|
|
868
|
+
listPartnerHierarchyOperations(code: any, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerHierarchyOperationsResponseClass> {
|
|
852
869
|
return localVarFp.listPartnerHierarchyOperations(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
853
870
|
},
|
|
854
871
|
/**
|
|
855
872
|
* Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
856
|
-
* @summary Update
|
|
873
|
+
* @summary Update a partner hierarchy
|
|
857
874
|
* @param {string} code Unique identifier for the object.
|
|
858
875
|
* @param {UpdatePartnerHierarchyRequestDto} updatePartnerHierarchyRequestDto
|
|
859
876
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -864,15 +881,16 @@ export const PartnerHierarchiesApiFactory = function (configuration?: Configurat
|
|
|
864
881
|
return localVarFp.updatePartnerHierarchy(code, updatePartnerHierarchyRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
865
882
|
},
|
|
866
883
|
/**
|
|
867
|
-
* Replaces the hierarchy tree
|
|
868
|
-
* @summary
|
|
884
|
+
* Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
|
|
885
|
+
* @summary Replace the partner hierarchy tree from an uploaded file
|
|
869
886
|
* @param {string} code Unique identifier for the object.
|
|
887
|
+
* @param {UpdatePartnerHierarchyTreeRequestBodyDto} updatePartnerHierarchyTreeRequestBodyDto
|
|
870
888
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
871
889
|
* @param {*} [options] Override http request option.
|
|
872
890
|
* @throws {RequiredError}
|
|
873
891
|
*/
|
|
874
|
-
updatePartnerHierarchyTree(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
875
|
-
return localVarFp.updatePartnerHierarchyTree(code, authorization, options).then((request) => request(axios, basePath));
|
|
892
|
+
updatePartnerHierarchyTree(code: string, updatePartnerHierarchyTreeRequestBodyDto: UpdatePartnerHierarchyTreeRequestBodyDto, authorization?: string, options?: any): AxiosPromise<PartnerHierarchyAsyncOperationResponseClass> {
|
|
893
|
+
return localVarFp.updatePartnerHierarchyTree(code, updatePartnerHierarchyTreeRequestBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
876
894
|
},
|
|
877
895
|
};
|
|
878
896
|
};
|
|
@@ -1205,6 +1223,13 @@ export interface PartnerHierarchiesApiUpdatePartnerHierarchyTreeRequest {
|
|
|
1205
1223
|
*/
|
|
1206
1224
|
readonly code: string
|
|
1207
1225
|
|
|
1226
|
+
/**
|
|
1227
|
+
*
|
|
1228
|
+
* @type {UpdatePartnerHierarchyTreeRequestBodyDto}
|
|
1229
|
+
* @memberof PartnerHierarchiesApiUpdatePartnerHierarchyTree
|
|
1230
|
+
*/
|
|
1231
|
+
readonly updatePartnerHierarchyTreeRequestBodyDto: UpdatePartnerHierarchyTreeRequestBodyDto
|
|
1232
|
+
|
|
1208
1233
|
/**
|
|
1209
1234
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1210
1235
|
* @type {string}
|
|
@@ -1222,7 +1247,7 @@ export interface PartnerHierarchiesApiUpdatePartnerHierarchyTreeRequest {
|
|
|
1222
1247
|
export class PartnerHierarchiesApi extends BaseAPI {
|
|
1223
1248
|
/**
|
|
1224
1249
|
* Creates a partner hierarchy from an existing hierarchy type. The hierarchy starts empty, so nodes can be added after it is created. **Required Permissions** \"partner-management.partners.create\"
|
|
1225
|
-
* @summary Create
|
|
1250
|
+
* @summary Create a partner hierarchy
|
|
1226
1251
|
* @param {PartnerHierarchiesApiCreatePartnerHierarchyRequest} requestParameters Request parameters.
|
|
1227
1252
|
* @param {*} [options] Override http request option.
|
|
1228
1253
|
* @throws {RequiredError}
|
|
@@ -1234,7 +1259,7 @@ export class PartnerHierarchiesApi extends BaseAPI {
|
|
|
1234
1259
|
|
|
1235
1260
|
/**
|
|
1236
1261
|
* Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
|
|
1237
|
-
* @summary Delete
|
|
1262
|
+
* @summary Delete a partner hierarchy
|
|
1238
1263
|
* @param {PartnerHierarchiesApiDeletePartnerHierarchyRequest} requestParameters Request parameters.
|
|
1239
1264
|
* @param {*} [options] Override http request option.
|
|
1240
1265
|
* @throws {RequiredError}
|
|
@@ -1245,8 +1270,8 @@ export class PartnerHierarchiesApi extends BaseAPI {
|
|
|
1245
1270
|
}
|
|
1246
1271
|
|
|
1247
1272
|
/**
|
|
1248
|
-
* Returns a pre-signed upload URL for a hierarchy tree file. Use the uploaded file key for tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.update\"
|
|
1249
|
-
* @summary
|
|
1273
|
+
* Returns a pre-signed upload URL for a partner hierarchy tree file. Use the uploaded file key for tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.update\"
|
|
1274
|
+
* @summary Generate a pre-signed upload URL for a partner hierarchy tree file
|
|
1250
1275
|
* @param {PartnerHierarchiesApiGenerateUploadUrlRequest} requestParameters Request parameters.
|
|
1251
1276
|
* @param {*} [options] Override http request option.
|
|
1252
1277
|
* @throws {RequiredError}
|
|
@@ -1258,7 +1283,7 @@ export class PartnerHierarchiesApi extends BaseAPI {
|
|
|
1258
1283
|
|
|
1259
1284
|
/**
|
|
1260
1285
|
* Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
|
|
1261
|
-
* @summary
|
|
1286
|
+
* @summary Get a partner hierarchy
|
|
1262
1287
|
* @param {PartnerHierarchiesApiGetPartnerHierarchyRequest} requestParameters Request parameters.
|
|
1263
1288
|
* @param {*} [options] Override http request option.
|
|
1264
1289
|
* @throws {RequiredError}
|
|
@@ -1270,7 +1295,7 @@ export class PartnerHierarchiesApi extends BaseAPI {
|
|
|
1270
1295
|
|
|
1271
1296
|
/**
|
|
1272
1297
|
* Returns one part of the hierarchy tree: the selected node and its direct children. If no node is selected, it starts from the top of the hierarchy. **Required Permissions** \"partner-management.partners.view\"
|
|
1273
|
-
* @summary
|
|
1298
|
+
* @summary Get part of a partner hierarchy tree
|
|
1274
1299
|
* @param {PartnerHierarchiesApiGetPartnerHierarchyTreeRequest} requestParameters Request parameters.
|
|
1275
1300
|
* @param {*} [options] Override http request option.
|
|
1276
1301
|
* @throws {RequiredError}
|
|
@@ -1281,8 +1306,8 @@ export class PartnerHierarchiesApi extends BaseAPI {
|
|
|
1281
1306
|
}
|
|
1282
1307
|
|
|
1283
1308
|
/**
|
|
1284
|
-
* Returns a download URL for the full hierarchy tree file. If the file is not ready, it starts a tree file build operation; check the operation status and call this endpoint again when it is done. **Required Permissions** \"partner-management.partners.view\"
|
|
1285
|
-
* @summary
|
|
1309
|
+
* Returns a download URL for the full partner hierarchy tree file. If the file is not ready, it starts a tree file build operation; check the operation status and call this endpoint again when it is done. **Required Permissions** \"partner-management.partners.view\"
|
|
1310
|
+
* @summary Get a partner hierarchy tree file
|
|
1286
1311
|
* @param {PartnerHierarchiesApiGetPartnerHierarchyTreeFileRequest} requestParameters Request parameters.
|
|
1287
1312
|
* @param {*} [options] Override http request option.
|
|
1288
1313
|
* @throws {RequiredError}
|
|
@@ -1305,8 +1330,8 @@ export class PartnerHierarchiesApi extends BaseAPI {
|
|
|
1305
1330
|
}
|
|
1306
1331
|
|
|
1307
1332
|
/**
|
|
1308
|
-
* Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
1309
|
-
* @summary List partner hierarchy operations
|
|
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
|
|
1310
1335
|
* @param {PartnerHierarchiesApiListPartnerHierarchyOperationsRequest} requestParameters Request parameters.
|
|
1311
1336
|
* @param {*} [options] Override http request option.
|
|
1312
1337
|
* @throws {RequiredError}
|
|
@@ -1318,7 +1343,7 @@ export class PartnerHierarchiesApi extends BaseAPI {
|
|
|
1318
1343
|
|
|
1319
1344
|
/**
|
|
1320
1345
|
* Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
1321
|
-
* @summary Update
|
|
1346
|
+
* @summary Update a partner hierarchy
|
|
1322
1347
|
* @param {PartnerHierarchiesApiUpdatePartnerHierarchyRequest} requestParameters Request parameters.
|
|
1323
1348
|
* @param {*} [options] Override http request option.
|
|
1324
1349
|
* @throws {RequiredError}
|
|
@@ -1329,14 +1354,14 @@ export class PartnerHierarchiesApi extends BaseAPI {
|
|
|
1329
1354
|
}
|
|
1330
1355
|
|
|
1331
1356
|
/**
|
|
1332
|
-
* Replaces the hierarchy tree
|
|
1333
|
-
* @summary
|
|
1357
|
+
* Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
|
|
1358
|
+
* @summary Replace the partner hierarchy tree from an uploaded file
|
|
1334
1359
|
* @param {PartnerHierarchiesApiUpdatePartnerHierarchyTreeRequest} requestParameters Request parameters.
|
|
1335
1360
|
* @param {*} [options] Override http request option.
|
|
1336
1361
|
* @throws {RequiredError}
|
|
1337
1362
|
* @memberof PartnerHierarchiesApi
|
|
1338
1363
|
*/
|
|
1339
1364
|
public updatePartnerHierarchyTree(requestParameters: PartnerHierarchiesApiUpdatePartnerHierarchyTreeRequest, options?: AxiosRequestConfig) {
|
|
1340
|
-
return PartnerHierarchiesApiFp(this.configuration).updatePartnerHierarchyTree(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1365
|
+
return PartnerHierarchiesApiFp(this.configuration).updatePartnerHierarchyTree(requestParameters.code, requestParameters.updatePartnerHierarchyTreeRequestBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1341
1366
|
}
|
|
1342
1367
|
}
|