@emilgroup/partner-sdk-node 1.22.1-beta.15 → 1.22.1-beta.17
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-node@1.22.1-beta.
|
|
20
|
+
npm install @emilgroup/partner-sdk-node@1.22.1-beta.17 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/partner-sdk-node@1.22.1-beta.
|
|
24
|
+
yarn add @emilgroup/partner-sdk-node@1.22.1-beta.17
|
|
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
|
// URLSearchParams not necessarily used
|
|
40
50
|
// @ts-ignore
|
|
41
51
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -48,7 +58,7 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
48
58
|
return {
|
|
49
59
|
/**
|
|
50
60
|
* 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\"
|
|
51
|
-
* @summary Create
|
|
61
|
+
* @summary Create a partner hierarchy
|
|
52
62
|
* @param {CreatePartnerHierarchyRequestDto} createPartnerHierarchyRequestDto
|
|
53
63
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
54
64
|
* @param {*} [options] Override http request option.
|
|
@@ -95,7 +105,7 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
95
105
|
},
|
|
96
106
|
/**
|
|
97
107
|
* Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
|
|
98
|
-
* @summary Delete
|
|
108
|
+
* @summary Delete a partner hierarchy
|
|
99
109
|
* @param {string} code Unique identifier for the object.
|
|
100
110
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
101
111
|
* @param {*} [options] Override http request option.
|
|
@@ -139,8 +149,8 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
139
149
|
};
|
|
140
150
|
},
|
|
141
151
|
/**
|
|
142
|
-
* 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\"
|
|
143
|
-
* @summary
|
|
152
|
+
* 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\"
|
|
153
|
+
* @summary Generate a pre-signed upload URL for a partner hierarchy tree file
|
|
144
154
|
* @param {string} code Unique identifier for the object.
|
|
145
155
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
146
156
|
* @param {*} [options] Override http request option.
|
|
@@ -185,7 +195,7 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
185
195
|
},
|
|
186
196
|
/**
|
|
187
197
|
* Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
|
|
188
|
-
* @summary
|
|
198
|
+
* @summary Get a partner hierarchy
|
|
189
199
|
* @param {string} code Unique identifier for the object.
|
|
190
200
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
191
201
|
* @param {*} [options] Override http request option.
|
|
@@ -230,7 +240,7 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
230
240
|
},
|
|
231
241
|
/**
|
|
232
242
|
* 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\"
|
|
233
|
-
* @summary
|
|
243
|
+
* @summary Get part of a partner hierarchy tree
|
|
234
244
|
* @param {string} code Unique identifier for the object.
|
|
235
245
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
236
246
|
* @param {string} [nodeCode] Node to start from. Omit this to start from the top of the hierarchy.
|
|
@@ -296,8 +306,8 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
296
306
|
};
|
|
297
307
|
},
|
|
298
308
|
/**
|
|
299
|
-
* 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\"
|
|
300
|
-
* @summary
|
|
309
|
+
* 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\"
|
|
310
|
+
* @summary Get a partner hierarchy tree file
|
|
301
311
|
* @param {string} code Unique identifier for the object.
|
|
302
312
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
303
313
|
* @param {*} [options] Override http request option.
|
|
@@ -417,8 +427,8 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
417
427
|
};
|
|
418
428
|
},
|
|
419
429
|
/**
|
|
420
|
-
* Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
421
|
-
* @summary List partner hierarchy operations
|
|
430
|
+
* Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
431
|
+
* @summary List partner hierarchy file operations
|
|
422
432
|
* @param {any} code Unique identifier for the object.
|
|
423
433
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
424
434
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -498,7 +508,7 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
498
508
|
},
|
|
499
509
|
/**
|
|
500
510
|
* Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
501
|
-
* @summary Update
|
|
511
|
+
* @summary Update a partner hierarchy
|
|
502
512
|
* @param {string} code Unique identifier for the object.
|
|
503
513
|
* @param {UpdatePartnerHierarchyRequestDto} updatePartnerHierarchyRequestDto
|
|
504
514
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -548,16 +558,19 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
548
558
|
};
|
|
549
559
|
},
|
|
550
560
|
/**
|
|
551
|
-
* Replaces the hierarchy tree
|
|
552
|
-
* @summary
|
|
561
|
+
* Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
|
|
562
|
+
* @summary Replace the partner hierarchy tree from an uploaded file
|
|
553
563
|
* @param {string} code Unique identifier for the object.
|
|
564
|
+
* @param {UpdatePartnerHierarchyTreeRequestBodyDto} updatePartnerHierarchyTreeRequestBodyDto
|
|
554
565
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
555
566
|
* @param {*} [options] Override http request option.
|
|
556
567
|
* @throws {RequiredError}
|
|
557
568
|
*/
|
|
558
|
-
updatePartnerHierarchyTree: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
569
|
+
updatePartnerHierarchyTree: async (code: string, updatePartnerHierarchyTreeRequestBodyDto: UpdatePartnerHierarchyTreeRequestBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
559
570
|
// verify required parameter 'code' is not null or undefined
|
|
560
571
|
assertParamExists('updatePartnerHierarchyTree', 'code', code)
|
|
572
|
+
// verify required parameter 'updatePartnerHierarchyTreeRequestBodyDto' is not null or undefined
|
|
573
|
+
assertParamExists('updatePartnerHierarchyTree', 'updatePartnerHierarchyTreeRequestBodyDto', updatePartnerHierarchyTreeRequestBodyDto)
|
|
561
574
|
const localVarPath = `/partnerservice/v1/partner-hierarchies/{code}/tree`
|
|
562
575
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
563
576
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -583,9 +596,12 @@ export const PartnerHierarchiesApiAxiosParamCreator = function (configuration?:
|
|
|
583
596
|
|
|
584
597
|
|
|
585
598
|
|
|
599
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
600
|
+
|
|
586
601
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
587
602
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
588
603
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
604
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePartnerHierarchyTreeRequestBodyDto, localVarRequestOptions, configuration)
|
|
589
605
|
|
|
590
606
|
return {
|
|
591
607
|
url: toPathString(localVarUrlObj),
|
|
@@ -604,7 +620,7 @@ export const PartnerHierarchiesApiFp = function(configuration?: Configuration) {
|
|
|
604
620
|
return {
|
|
605
621
|
/**
|
|
606
622
|
* 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\"
|
|
607
|
-
* @summary Create
|
|
623
|
+
* @summary Create a partner hierarchy
|
|
608
624
|
* @param {CreatePartnerHierarchyRequestDto} createPartnerHierarchyRequestDto
|
|
609
625
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
610
626
|
* @param {*} [options] Override http request option.
|
|
@@ -616,7 +632,7 @@ export const PartnerHierarchiesApiFp = function(configuration?: Configuration) {
|
|
|
616
632
|
},
|
|
617
633
|
/**
|
|
618
634
|
* Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
|
|
619
|
-
* @summary Delete
|
|
635
|
+
* @summary Delete a partner hierarchy
|
|
620
636
|
* @param {string} code Unique identifier for the object.
|
|
621
637
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
622
638
|
* @param {*} [options] Override http request option.
|
|
@@ -627,20 +643,20 @@ export const PartnerHierarchiesApiFp = function(configuration?: Configuration) {
|
|
|
627
643
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
628
644
|
},
|
|
629
645
|
/**
|
|
630
|
-
* 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\"
|
|
631
|
-
* @summary
|
|
646
|
+
* 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\"
|
|
647
|
+
* @summary Generate a pre-signed upload URL for a partner hierarchy tree file
|
|
632
648
|
* @param {string} code Unique identifier for the object.
|
|
633
649
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
634
650
|
* @param {*} [options] Override http request option.
|
|
635
651
|
* @throws {RequiredError}
|
|
636
652
|
*/
|
|
637
|
-
async generateUploadUrl(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
653
|
+
async generateUploadUrl(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerateUploadUrlResponseClass>> {
|
|
638
654
|
const localVarAxiosArgs = await localVarAxiosParamCreator.generateUploadUrl(code, authorization, options);
|
|
639
655
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
640
656
|
},
|
|
641
657
|
/**
|
|
642
658
|
* Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
|
|
643
|
-
* @summary
|
|
659
|
+
* @summary Get a partner hierarchy
|
|
644
660
|
* @param {string} code Unique identifier for the object.
|
|
645
661
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
646
662
|
* @param {*} [options] Override http request option.
|
|
@@ -652,7 +668,7 @@ export const PartnerHierarchiesApiFp = function(configuration?: Configuration) {
|
|
|
652
668
|
},
|
|
653
669
|
/**
|
|
654
670
|
* 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\"
|
|
655
|
-
* @summary
|
|
671
|
+
* @summary Get part of a partner hierarchy tree
|
|
656
672
|
* @param {string} code Unique identifier for the object.
|
|
657
673
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
658
674
|
* @param {string} [nodeCode] Node to start from. Omit this to start from the top of the hierarchy.
|
|
@@ -667,14 +683,14 @@ export const PartnerHierarchiesApiFp = function(configuration?: Configuration) {
|
|
|
667
683
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
668
684
|
},
|
|
669
685
|
/**
|
|
670
|
-
* 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\"
|
|
671
|
-
* @summary
|
|
686
|
+
* 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\"
|
|
687
|
+
* @summary Get a partner hierarchy tree file
|
|
672
688
|
* @param {string} code Unique identifier for the object.
|
|
673
689
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
674
690
|
* @param {*} [options] Override http request option.
|
|
675
691
|
* @throws {RequiredError}
|
|
676
692
|
*/
|
|
677
|
-
async getPartnerHierarchyTreeFile(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
693
|
+
async getPartnerHierarchyTreeFile(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerHierarchyTreeFileResponseClass>> {
|
|
678
694
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPartnerHierarchyTreeFile(code, authorization, options);
|
|
679
695
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
680
696
|
},
|
|
@@ -697,8 +713,8 @@ export const PartnerHierarchiesApiFp = function(configuration?: Configuration) {
|
|
|
697
713
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
698
714
|
},
|
|
699
715
|
/**
|
|
700
|
-
* Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
701
|
-
* @summary List partner hierarchy operations
|
|
716
|
+
* Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
717
|
+
* @summary List partner hierarchy file operations
|
|
702
718
|
* @param {any} code Unique identifier for the object.
|
|
703
719
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
704
720
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -711,13 +727,13 @@ export const PartnerHierarchiesApiFp = function(configuration?: Configuration) {
|
|
|
711
727
|
* @param {*} [options] Override http request option.
|
|
712
728
|
* @throws {RequiredError}
|
|
713
729
|
*/
|
|
714
|
-
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<
|
|
730
|
+
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>> {
|
|
715
731
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerHierarchyOperations(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
716
732
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
717
733
|
},
|
|
718
734
|
/**
|
|
719
735
|
* Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
720
|
-
* @summary Update
|
|
736
|
+
* @summary Update a partner hierarchy
|
|
721
737
|
* @param {string} code Unique identifier for the object.
|
|
722
738
|
* @param {UpdatePartnerHierarchyRequestDto} updatePartnerHierarchyRequestDto
|
|
723
739
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -729,15 +745,16 @@ export const PartnerHierarchiesApiFp = function(configuration?: Configuration) {
|
|
|
729
745
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
730
746
|
},
|
|
731
747
|
/**
|
|
732
|
-
* Replaces the hierarchy tree
|
|
733
|
-
* @summary
|
|
748
|
+
* Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
|
|
749
|
+
* @summary Replace the partner hierarchy tree from an uploaded file
|
|
734
750
|
* @param {string} code Unique identifier for the object.
|
|
751
|
+
* @param {UpdatePartnerHierarchyTreeRequestBodyDto} updatePartnerHierarchyTreeRequestBodyDto
|
|
735
752
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
736
753
|
* @param {*} [options] Override http request option.
|
|
737
754
|
* @throws {RequiredError}
|
|
738
755
|
*/
|
|
739
|
-
async updatePartnerHierarchyTree(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
740
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartnerHierarchyTree(code, authorization, options);
|
|
756
|
+
async updatePartnerHierarchyTree(code: string, updatePartnerHierarchyTreeRequestBodyDto: UpdatePartnerHierarchyTreeRequestBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerHierarchyAsyncOperationResponseClass>> {
|
|
757
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartnerHierarchyTree(code, updatePartnerHierarchyTreeRequestBodyDto, authorization, options);
|
|
741
758
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
742
759
|
},
|
|
743
760
|
}
|
|
@@ -752,7 +769,7 @@ export const PartnerHierarchiesApiFactory = function (configuration?: Configurat
|
|
|
752
769
|
return {
|
|
753
770
|
/**
|
|
754
771
|
* 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\"
|
|
755
|
-
* @summary Create
|
|
772
|
+
* @summary Create a partner hierarchy
|
|
756
773
|
* @param {CreatePartnerHierarchyRequestDto} createPartnerHierarchyRequestDto
|
|
757
774
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
758
775
|
* @param {*} [options] Override http request option.
|
|
@@ -763,7 +780,7 @@ export const PartnerHierarchiesApiFactory = function (configuration?: Configurat
|
|
|
763
780
|
},
|
|
764
781
|
/**
|
|
765
782
|
* Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
|
|
766
|
-
* @summary Delete
|
|
783
|
+
* @summary Delete a partner hierarchy
|
|
767
784
|
* @param {string} code Unique identifier for the object.
|
|
768
785
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
769
786
|
* @param {*} [options] Override http request option.
|
|
@@ -773,19 +790,19 @@ export const PartnerHierarchiesApiFactory = function (configuration?: Configurat
|
|
|
773
790
|
return localVarFp.deletePartnerHierarchy(code, authorization, options).then((request) => request(axios, basePath));
|
|
774
791
|
},
|
|
775
792
|
/**
|
|
776
|
-
* 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\"
|
|
777
|
-
* @summary
|
|
793
|
+
* 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\"
|
|
794
|
+
* @summary Generate a pre-signed upload URL for a partner hierarchy tree file
|
|
778
795
|
* @param {string} code Unique identifier for the object.
|
|
779
796
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
780
797
|
* @param {*} [options] Override http request option.
|
|
781
798
|
* @throws {RequiredError}
|
|
782
799
|
*/
|
|
783
|
-
generateUploadUrl(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
800
|
+
generateUploadUrl(code: string, authorization?: string, options?: any): AxiosPromise<GenerateUploadUrlResponseClass> {
|
|
784
801
|
return localVarFp.generateUploadUrl(code, authorization, options).then((request) => request(axios, basePath));
|
|
785
802
|
},
|
|
786
803
|
/**
|
|
787
804
|
* Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
|
|
788
|
-
* @summary
|
|
805
|
+
* @summary Get a partner hierarchy
|
|
789
806
|
* @param {string} code Unique identifier for the object.
|
|
790
807
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
791
808
|
* @param {*} [options] Override http request option.
|
|
@@ -796,7 +813,7 @@ export const PartnerHierarchiesApiFactory = function (configuration?: Configurat
|
|
|
796
813
|
},
|
|
797
814
|
/**
|
|
798
815
|
* 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\"
|
|
799
|
-
* @summary
|
|
816
|
+
* @summary Get part of a partner hierarchy tree
|
|
800
817
|
* @param {string} code Unique identifier for the object.
|
|
801
818
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
802
819
|
* @param {string} [nodeCode] Node to start from. Omit this to start from the top of the hierarchy.
|
|
@@ -810,14 +827,14 @@ export const PartnerHierarchiesApiFactory = function (configuration?: Configurat
|
|
|
810
827
|
return localVarFp.getPartnerHierarchyTree(code, authorization, nodeCode, pageSize, pageToken, asOf, options).then((request) => request(axios, basePath));
|
|
811
828
|
},
|
|
812
829
|
/**
|
|
813
|
-
* 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\"
|
|
814
|
-
* @summary
|
|
830
|
+
* 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\"
|
|
831
|
+
* @summary Get a partner hierarchy tree file
|
|
815
832
|
* @param {string} code Unique identifier for the object.
|
|
816
833
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
817
834
|
* @param {*} [options] Override http request option.
|
|
818
835
|
* @throws {RequiredError}
|
|
819
836
|
*/
|
|
820
|
-
getPartnerHierarchyTreeFile(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
837
|
+
getPartnerHierarchyTreeFile(code: string, authorization?: string, options?: any): AxiosPromise<GetPartnerHierarchyTreeFileResponseClass> {
|
|
821
838
|
return localVarFp.getPartnerHierarchyTreeFile(code, authorization, options).then((request) => request(axios, basePath));
|
|
822
839
|
},
|
|
823
840
|
/**
|
|
@@ -838,8 +855,8 @@ export const PartnerHierarchiesApiFactory = function (configuration?: Configurat
|
|
|
838
855
|
return localVarFp.listPartnerHierarchies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
839
856
|
},
|
|
840
857
|
/**
|
|
841
|
-
* Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
842
|
-
* @summary List partner hierarchy operations
|
|
858
|
+
* Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
859
|
+
* @summary List partner hierarchy file operations
|
|
843
860
|
* @param {any} code Unique identifier for the object.
|
|
844
861
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
845
862
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -852,12 +869,12 @@ export const PartnerHierarchiesApiFactory = function (configuration?: Configurat
|
|
|
852
869
|
* @param {*} [options] Override http request option.
|
|
853
870
|
* @throws {RequiredError}
|
|
854
871
|
*/
|
|
855
|
-
listPartnerHierarchyOperations(code: any, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<
|
|
872
|
+
listPartnerHierarchyOperations(code: any, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerHierarchyOperationsResponseClass> {
|
|
856
873
|
return localVarFp.listPartnerHierarchyOperations(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
857
874
|
},
|
|
858
875
|
/**
|
|
859
876
|
* Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
860
|
-
* @summary Update
|
|
877
|
+
* @summary Update a partner hierarchy
|
|
861
878
|
* @param {string} code Unique identifier for the object.
|
|
862
879
|
* @param {UpdatePartnerHierarchyRequestDto} updatePartnerHierarchyRequestDto
|
|
863
880
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -868,15 +885,16 @@ export const PartnerHierarchiesApiFactory = function (configuration?: Configurat
|
|
|
868
885
|
return localVarFp.updatePartnerHierarchy(code, updatePartnerHierarchyRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
869
886
|
},
|
|
870
887
|
/**
|
|
871
|
-
* Replaces the hierarchy tree
|
|
872
|
-
* @summary
|
|
888
|
+
* Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
|
|
889
|
+
* @summary Replace the partner hierarchy tree from an uploaded file
|
|
873
890
|
* @param {string} code Unique identifier for the object.
|
|
891
|
+
* @param {UpdatePartnerHierarchyTreeRequestBodyDto} updatePartnerHierarchyTreeRequestBodyDto
|
|
874
892
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
875
893
|
* @param {*} [options] Override http request option.
|
|
876
894
|
* @throws {RequiredError}
|
|
877
895
|
*/
|
|
878
|
-
updatePartnerHierarchyTree(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
879
|
-
return localVarFp.updatePartnerHierarchyTree(code, authorization, options).then((request) => request(axios, basePath));
|
|
896
|
+
updatePartnerHierarchyTree(code: string, updatePartnerHierarchyTreeRequestBodyDto: UpdatePartnerHierarchyTreeRequestBodyDto, authorization?: string, options?: any): AxiosPromise<PartnerHierarchyAsyncOperationResponseClass> {
|
|
897
|
+
return localVarFp.updatePartnerHierarchyTree(code, updatePartnerHierarchyTreeRequestBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
880
898
|
},
|
|
881
899
|
};
|
|
882
900
|
};
|
|
@@ -1209,6 +1227,13 @@ export interface PartnerHierarchiesApiUpdatePartnerHierarchyTreeRequest {
|
|
|
1209
1227
|
*/
|
|
1210
1228
|
readonly code: string
|
|
1211
1229
|
|
|
1230
|
+
/**
|
|
1231
|
+
*
|
|
1232
|
+
* @type {UpdatePartnerHierarchyTreeRequestBodyDto}
|
|
1233
|
+
* @memberof PartnerHierarchiesApiUpdatePartnerHierarchyTree
|
|
1234
|
+
*/
|
|
1235
|
+
readonly updatePartnerHierarchyTreeRequestBodyDto: UpdatePartnerHierarchyTreeRequestBodyDto
|
|
1236
|
+
|
|
1212
1237
|
/**
|
|
1213
1238
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1214
1239
|
* @type {string}
|
|
@@ -1226,7 +1251,7 @@ export interface PartnerHierarchiesApiUpdatePartnerHierarchyTreeRequest {
|
|
|
1226
1251
|
export class PartnerHierarchiesApi extends BaseAPI {
|
|
1227
1252
|
/**
|
|
1228
1253
|
* 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\"
|
|
1229
|
-
* @summary Create
|
|
1254
|
+
* @summary Create a partner hierarchy
|
|
1230
1255
|
* @param {PartnerHierarchiesApiCreatePartnerHierarchyRequest} requestParameters Request parameters.
|
|
1231
1256
|
* @param {*} [options] Override http request option.
|
|
1232
1257
|
* @throws {RequiredError}
|
|
@@ -1238,7 +1263,7 @@ export class PartnerHierarchiesApi extends BaseAPI {
|
|
|
1238
1263
|
|
|
1239
1264
|
/**
|
|
1240
1265
|
* Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
|
|
1241
|
-
* @summary Delete
|
|
1266
|
+
* @summary Delete a partner hierarchy
|
|
1242
1267
|
* @param {PartnerHierarchiesApiDeletePartnerHierarchyRequest} requestParameters Request parameters.
|
|
1243
1268
|
* @param {*} [options] Override http request option.
|
|
1244
1269
|
* @throws {RequiredError}
|
|
@@ -1249,8 +1274,8 @@ export class PartnerHierarchiesApi extends BaseAPI {
|
|
|
1249
1274
|
}
|
|
1250
1275
|
|
|
1251
1276
|
/**
|
|
1252
|
-
* 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\"
|
|
1253
|
-
* @summary
|
|
1277
|
+
* 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\"
|
|
1278
|
+
* @summary Generate a pre-signed upload URL for a partner hierarchy tree file
|
|
1254
1279
|
* @param {PartnerHierarchiesApiGenerateUploadUrlRequest} requestParameters Request parameters.
|
|
1255
1280
|
* @param {*} [options] Override http request option.
|
|
1256
1281
|
* @throws {RequiredError}
|
|
@@ -1262,7 +1287,7 @@ export class PartnerHierarchiesApi extends BaseAPI {
|
|
|
1262
1287
|
|
|
1263
1288
|
/**
|
|
1264
1289
|
* Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
|
|
1265
|
-
* @summary
|
|
1290
|
+
* @summary Get a partner hierarchy
|
|
1266
1291
|
* @param {PartnerHierarchiesApiGetPartnerHierarchyRequest} requestParameters Request parameters.
|
|
1267
1292
|
* @param {*} [options] Override http request option.
|
|
1268
1293
|
* @throws {RequiredError}
|
|
@@ -1274,7 +1299,7 @@ export class PartnerHierarchiesApi extends BaseAPI {
|
|
|
1274
1299
|
|
|
1275
1300
|
/**
|
|
1276
1301
|
* 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\"
|
|
1277
|
-
* @summary
|
|
1302
|
+
* @summary Get part of a partner hierarchy tree
|
|
1278
1303
|
* @param {PartnerHierarchiesApiGetPartnerHierarchyTreeRequest} requestParameters Request parameters.
|
|
1279
1304
|
* @param {*} [options] Override http request option.
|
|
1280
1305
|
* @throws {RequiredError}
|
|
@@ -1285,8 +1310,8 @@ export class PartnerHierarchiesApi extends BaseAPI {
|
|
|
1285
1310
|
}
|
|
1286
1311
|
|
|
1287
1312
|
/**
|
|
1288
|
-
* 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\"
|
|
1289
|
-
* @summary
|
|
1313
|
+
* 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\"
|
|
1314
|
+
* @summary Get a partner hierarchy tree file
|
|
1290
1315
|
* @param {PartnerHierarchiesApiGetPartnerHierarchyTreeFileRequest} requestParameters Request parameters.
|
|
1291
1316
|
* @param {*} [options] Override http request option.
|
|
1292
1317
|
* @throws {RequiredError}
|
|
@@ -1309,8 +1334,8 @@ export class PartnerHierarchiesApi extends BaseAPI {
|
|
|
1309
1334
|
}
|
|
1310
1335
|
|
|
1311
1336
|
/**
|
|
1312
|
-
* Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
1313
|
-
* @summary List partner hierarchy operations
|
|
1337
|
+
* Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
1338
|
+
* @summary List partner hierarchy file operations
|
|
1314
1339
|
* @param {PartnerHierarchiesApiListPartnerHierarchyOperationsRequest} requestParameters Request parameters.
|
|
1315
1340
|
* @param {*} [options] Override http request option.
|
|
1316
1341
|
* @throws {RequiredError}
|
|
@@ -1322,7 +1347,7 @@ export class PartnerHierarchiesApi extends BaseAPI {
|
|
|
1322
1347
|
|
|
1323
1348
|
/**
|
|
1324
1349
|
* Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
1325
|
-
* @summary Update
|
|
1350
|
+
* @summary Update a partner hierarchy
|
|
1326
1351
|
* @param {PartnerHierarchiesApiUpdatePartnerHierarchyRequest} requestParameters Request parameters.
|
|
1327
1352
|
* @param {*} [options] Override http request option.
|
|
1328
1353
|
* @throws {RequiredError}
|
|
@@ -1333,14 +1358,14 @@ export class PartnerHierarchiesApi extends BaseAPI {
|
|
|
1333
1358
|
}
|
|
1334
1359
|
|
|
1335
1360
|
/**
|
|
1336
|
-
* Replaces the hierarchy tree
|
|
1337
|
-
* @summary
|
|
1361
|
+
* Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
|
|
1362
|
+
* @summary Replace the partner hierarchy tree from an uploaded file
|
|
1338
1363
|
* @param {PartnerHierarchiesApiUpdatePartnerHierarchyTreeRequest} requestParameters Request parameters.
|
|
1339
1364
|
* @param {*} [options] Override http request option.
|
|
1340
1365
|
* @throws {RequiredError}
|
|
1341
1366
|
* @memberof PartnerHierarchiesApi
|
|
1342
1367
|
*/
|
|
1343
1368
|
public updatePartnerHierarchyTree(requestParameters: PartnerHierarchiesApiUpdatePartnerHierarchyTreeRequest, options?: AxiosRequestConfig) {
|
|
1344
|
-
return PartnerHierarchiesApiFp(this.configuration).updatePartnerHierarchyTree(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1369
|
+
return PartnerHierarchiesApiFp(this.configuration).updatePartnerHierarchyTree(requestParameters.code, requestParameters.updatePartnerHierarchyTreeRequestBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1345
1370
|
}
|
|
1346
1371
|
}
|