@emilgroup/partner-sdk 1.22.1-beta.18 → 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.
Files changed (44) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +2 -2
  3. package/api/partner-hierarchies-api.ts +89 -64
  4. package/api/partner-hierarchy-nodes-api.ts +58 -39
  5. package/api/partner-hierarchy-types-api.ts +20 -20
  6. package/dist/api/partner-hierarchies-api.d.ts +79 -65
  7. package/dist/api/partner-hierarchies-api.js +65 -58
  8. package/dist/api/partner-hierarchy-nodes-api.d.ts +47 -36
  9. package/dist/api/partner-hierarchy-nodes-api.js +45 -39
  10. package/dist/api/partner-hierarchy-types-api.d.ts +20 -20
  11. package/dist/api/partner-hierarchy-types-api.js +20 -20
  12. package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.d.ts +30 -0
  13. package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.js +15 -0
  14. package/dist/models/generate-upload-url-response-class.d.ts +36 -0
  15. package/dist/models/generate-upload-url-response-class.js +15 -0
  16. package/dist/models/get-partner-hierarchy-tree-file-response-class.d.ts +42 -0
  17. package/dist/models/get-partner-hierarchy-tree-file-response-class.js +15 -0
  18. package/dist/models/index.d.ts +7 -0
  19. package/dist/models/index.js +7 -0
  20. package/dist/models/list-partner-hierarchy-operations-response-class.d.ts +43 -0
  21. package/dist/models/list-partner-hierarchy-operations-response-class.js +15 -0
  22. package/dist/models/partner-hierarchy-async-operation-response-class.d.ts +30 -0
  23. package/dist/models/partner-hierarchy-async-operation-response-class.js +15 -0
  24. package/dist/models/partner-hierarchy-class.d.ts +1 -1
  25. package/dist/models/partner-hierarchy-node-class.d.ts +4 -4
  26. package/dist/models/partner-hierarchy-node-history-class.d.ts +3 -3
  27. package/dist/models/partner-hierarchy-node-tree-class.d.ts +6 -6
  28. package/dist/models/partner-hierarchy-operation-class.d.ts +90 -0
  29. package/dist/models/partner-hierarchy-operation-class.js +15 -0
  30. package/dist/models/update-partner-hierarchy-tree-request-body-dto.d.ts +24 -0
  31. package/dist/models/update-partner-hierarchy-tree-request-body-dto.js +15 -0
  32. package/models/batch-create-partner-hierarchy-nodes-request-dto.ts +36 -0
  33. package/models/generate-upload-url-response-class.ts +42 -0
  34. package/models/get-partner-hierarchy-tree-file-response-class.ts +48 -0
  35. package/models/index.ts +7 -0
  36. package/models/list-partner-hierarchy-operations-response-class.ts +49 -0
  37. package/models/partner-hierarchy-async-operation-response-class.ts +36 -0
  38. package/models/partner-hierarchy-class.ts +1 -1
  39. package/models/partner-hierarchy-node-class.ts +4 -4
  40. package/models/partner-hierarchy-node-history-class.ts +3 -3
  41. package/models/partner-hierarchy-node-tree-class.ts +6 -6
  42. package/models/partner-hierarchy-operation-class.ts +96 -0
  43. package/models/update-partner-hierarchy-tree-request-body-dto.ts +30 -0
  44. package/package.json +1 -1
@@ -94,7 +94,7 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
94
94
  return {
95
95
  /**
96
96
  * 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\"
97
- * @summary Create the partner hierarchy
97
+ * @summary Create a partner hierarchy
98
98
  * @param {CreatePartnerHierarchyRequestDto} createPartnerHierarchyRequestDto
99
99
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
100
100
  * @param {*} [options] Override http request option.
@@ -143,7 +143,7 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
143
143
  },
144
144
  /**
145
145
  * Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
146
- * @summary Delete the partner hierarchy
146
+ * @summary Delete a partner hierarchy
147
147
  * @param {string} code Unique identifier for the object.
148
148
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
149
  * @param {*} [options] Override http request option.
@@ -190,8 +190,8 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
190
190
  });
191
191
  },
192
192
  /**
193
- * 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\"
194
- * @summary Create the partner hierarchy upload url
193
+ * 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\"
194
+ * @summary Generate a pre-signed upload URL for a partner hierarchy tree file
195
195
  * @param {string} code Unique identifier for the object.
196
196
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
197
197
  * @param {*} [options] Override http request option.
@@ -239,7 +239,7 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
239
239
  },
240
240
  /**
241
241
  * Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
242
- * @summary Retrieve the partner hierarchy
242
+ * @summary Get a partner hierarchy
243
243
  * @param {string} code Unique identifier for the object.
244
244
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
245
245
  * @param {*} [options] Override http request option.
@@ -287,7 +287,7 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
287
287
  },
288
288
  /**
289
289
  * 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\"
290
- * @summary Retrieve the partner hierarchy tree
290
+ * @summary Get part of a partner hierarchy tree
291
291
  * @param {string} code Unique identifier for the object.
292
292
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
293
293
  * @param {string} [nodeCode] Node to start from. Omit this to start from the top of the hierarchy.
@@ -352,8 +352,8 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
352
352
  });
353
353
  },
354
354
  /**
355
- * 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\"
356
- * @summary Retrieve the partner hierarchy tree file
355
+ * 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\"
356
+ * @summary Get a partner hierarchy tree file
357
357
  * @param {string} code Unique identifier for the object.
358
358
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
359
359
  * @param {*} [options] Override http request option.
@@ -472,8 +472,8 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
472
472
  });
473
473
  },
474
474
  /**
475
- * Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
476
- * @summary List partner hierarchy operations
475
+ * Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
476
+ * @summary List partner hierarchy file operations
477
477
  * @param {any} code Unique identifier for the object.
478
478
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
479
479
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -549,7 +549,7 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
549
549
  },
550
550
  /**
551
551
  * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
552
- * @summary Update the partner hierarchy
552
+ * @summary Update a partner hierarchy
553
553
  * @param {string} code Unique identifier for the object.
554
554
  * @param {UpdatePartnerHierarchyRequestDto} updatePartnerHierarchyRequestDto
555
555
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -601,14 +601,15 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
601
601
  });
602
602
  },
603
603
  /**
604
- * Replaces the hierarchy tree with an uploaded file. **Required Permissions** \"partner-management.partners.update\"
605
- * @summary Update the partner hierarchy tree
604
+ * Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
605
+ * @summary Replace the partner hierarchy tree from an uploaded file
606
606
  * @param {string} code Unique identifier for the object.
607
+ * @param {UpdatePartnerHierarchyTreeRequestBodyDto} updatePartnerHierarchyTreeRequestBodyDto
607
608
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
608
609
  * @param {*} [options] Override http request option.
609
610
  * @throws {RequiredError}
610
611
  */
611
- updatePartnerHierarchyTree: function (code, authorization, options) {
612
+ updatePartnerHierarchyTree: function (code, updatePartnerHierarchyTreeRequestBodyDto, authorization, options) {
612
613
  if (options === void 0) { options = {}; }
613
614
  return __awaiter(_this, void 0, void 0, function () {
614
615
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -617,6 +618,8 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
617
618
  case 0:
618
619
  // verify required parameter 'code' is not null or undefined
619
620
  (0, common_1.assertParamExists)('updatePartnerHierarchyTree', 'code', code);
621
+ // verify required parameter 'updatePartnerHierarchyTreeRequestBodyDto' is not null or undefined
622
+ (0, common_1.assertParamExists)('updatePartnerHierarchyTree', 'updatePartnerHierarchyTreeRequestBodyDto', updatePartnerHierarchyTreeRequestBodyDto);
620
623
  localVarPath = "/partnerservice/v1/partner-hierarchies/{code}/tree"
621
624
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
622
625
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -637,9 +640,11 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
637
640
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
638
641
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
639
642
  }
643
+ localVarHeaderParameter['Content-Type'] = 'application/json';
640
644
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
641
645
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
642
646
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
647
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePartnerHierarchyTreeRequestBodyDto, localVarRequestOptions, configuration);
643
648
  return [2 /*return*/, {
644
649
  url: (0, common_1.toPathString)(localVarUrlObj),
645
650
  options: localVarRequestOptions,
@@ -660,7 +665,7 @@ var PartnerHierarchiesApiFp = function (configuration) {
660
665
  return {
661
666
  /**
662
667
  * 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\"
663
- * @summary Create the partner hierarchy
668
+ * @summary Create a partner hierarchy
664
669
  * @param {CreatePartnerHierarchyRequestDto} createPartnerHierarchyRequestDto
665
670
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
666
671
  * @param {*} [options] Override http request option.
@@ -681,7 +686,7 @@ var PartnerHierarchiesApiFp = function (configuration) {
681
686
  },
682
687
  /**
683
688
  * Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
684
- * @summary Delete the partner hierarchy
689
+ * @summary Delete a partner hierarchy
685
690
  * @param {string} code Unique identifier for the object.
686
691
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
687
692
  * @param {*} [options] Override http request option.
@@ -701,8 +706,8 @@ var PartnerHierarchiesApiFp = function (configuration) {
701
706
  });
702
707
  },
703
708
  /**
704
- * 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\"
705
- * @summary Create the partner hierarchy upload url
709
+ * 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\"
710
+ * @summary Generate a pre-signed upload URL for a partner hierarchy tree file
706
711
  * @param {string} code Unique identifier for the object.
707
712
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
708
713
  * @param {*} [options] Override http request option.
@@ -723,7 +728,7 @@ var PartnerHierarchiesApiFp = function (configuration) {
723
728
  },
724
729
  /**
725
730
  * Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
726
- * @summary Retrieve the partner hierarchy
731
+ * @summary Get a partner hierarchy
727
732
  * @param {string} code Unique identifier for the object.
728
733
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
729
734
  * @param {*} [options] Override http request option.
@@ -744,7 +749,7 @@ var PartnerHierarchiesApiFp = function (configuration) {
744
749
  },
745
750
  /**
746
751
  * 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\"
747
- * @summary Retrieve the partner hierarchy tree
752
+ * @summary Get part of a partner hierarchy tree
748
753
  * @param {string} code Unique identifier for the object.
749
754
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
750
755
  * @param {string} [nodeCode] Node to start from. Omit this to start from the top of the hierarchy.
@@ -768,8 +773,8 @@ var PartnerHierarchiesApiFp = function (configuration) {
768
773
  });
769
774
  },
770
775
  /**
771
- * 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\"
772
- * @summary Retrieve the partner hierarchy tree file
776
+ * 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\"
777
+ * @summary Get a partner hierarchy tree file
773
778
  * @param {string} code Unique identifier for the object.
774
779
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
775
780
  * @param {*} [options] Override http request option.
@@ -816,8 +821,8 @@ var PartnerHierarchiesApiFp = function (configuration) {
816
821
  });
817
822
  },
818
823
  /**
819
- * Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
820
- * @summary List partner hierarchy operations
824
+ * Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
825
+ * @summary List partner hierarchy file operations
821
826
  * @param {any} code Unique identifier for the object.
822
827
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
823
828
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -845,7 +850,7 @@ var PartnerHierarchiesApiFp = function (configuration) {
845
850
  },
846
851
  /**
847
852
  * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
848
- * @summary Update the partner hierarchy
853
+ * @summary Update a partner hierarchy
849
854
  * @param {string} code Unique identifier for the object.
850
855
  * @param {UpdatePartnerHierarchyRequestDto} updatePartnerHierarchyRequestDto
851
856
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -866,19 +871,20 @@ var PartnerHierarchiesApiFp = function (configuration) {
866
871
  });
867
872
  },
868
873
  /**
869
- * Replaces the hierarchy tree with an uploaded file. **Required Permissions** \"partner-management.partners.update\"
870
- * @summary Update the partner hierarchy tree
874
+ * Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
875
+ * @summary Replace the partner hierarchy tree from an uploaded file
871
876
  * @param {string} code Unique identifier for the object.
877
+ * @param {UpdatePartnerHierarchyTreeRequestBodyDto} updatePartnerHierarchyTreeRequestBodyDto
872
878
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
873
879
  * @param {*} [options] Override http request option.
874
880
  * @throws {RequiredError}
875
881
  */
876
- updatePartnerHierarchyTree: function (code, authorization, options) {
882
+ updatePartnerHierarchyTree: function (code, updatePartnerHierarchyTreeRequestBodyDto, authorization, options) {
877
883
  return __awaiter(this, void 0, void 0, function () {
878
884
  var localVarAxiosArgs;
879
885
  return __generator(this, function (_a) {
880
886
  switch (_a.label) {
881
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePartnerHierarchyTree(code, authorization, options)];
887
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePartnerHierarchyTree(code, updatePartnerHierarchyTreeRequestBodyDto, authorization, options)];
882
888
  case 1:
883
889
  localVarAxiosArgs = _a.sent();
884
890
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -898,7 +904,7 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
898
904
  return {
899
905
  /**
900
906
  * 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\"
901
- * @summary Create the partner hierarchy
907
+ * @summary Create a partner hierarchy
902
908
  * @param {CreatePartnerHierarchyRequestDto} createPartnerHierarchyRequestDto
903
909
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
904
910
  * @param {*} [options] Override http request option.
@@ -909,7 +915,7 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
909
915
  },
910
916
  /**
911
917
  * Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
912
- * @summary Delete the partner hierarchy
918
+ * @summary Delete a partner hierarchy
913
919
  * @param {string} code Unique identifier for the object.
914
920
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
915
921
  * @param {*} [options] Override http request option.
@@ -919,8 +925,8 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
919
925
  return localVarFp.deletePartnerHierarchy(code, authorization, options).then(function (request) { return request(axios, basePath); });
920
926
  },
921
927
  /**
922
- * 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\"
923
- * @summary Create the partner hierarchy upload url
928
+ * 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\"
929
+ * @summary Generate a pre-signed upload URL for a partner hierarchy tree file
924
930
  * @param {string} code Unique identifier for the object.
925
931
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
926
932
  * @param {*} [options] Override http request option.
@@ -931,7 +937,7 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
931
937
  },
932
938
  /**
933
939
  * Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
934
- * @summary Retrieve the partner hierarchy
940
+ * @summary Get a partner hierarchy
935
941
  * @param {string} code Unique identifier for the object.
936
942
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
937
943
  * @param {*} [options] Override http request option.
@@ -942,7 +948,7 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
942
948
  },
943
949
  /**
944
950
  * 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\"
945
- * @summary Retrieve the partner hierarchy tree
951
+ * @summary Get part of a partner hierarchy tree
946
952
  * @param {string} code Unique identifier for the object.
947
953
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
948
954
  * @param {string} [nodeCode] Node to start from. Omit this to start from the top of the hierarchy.
@@ -956,8 +962,8 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
956
962
  return localVarFp.getPartnerHierarchyTree(code, authorization, nodeCode, pageSize, pageToken, asOf, options).then(function (request) { return request(axios, basePath); });
957
963
  },
958
964
  /**
959
- * 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\"
960
- * @summary Retrieve the partner hierarchy tree file
965
+ * 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\"
966
+ * @summary Get a partner hierarchy tree file
961
967
  * @param {string} code Unique identifier for the object.
962
968
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
963
969
  * @param {*} [options] Override http request option.
@@ -984,8 +990,8 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
984
990
  return localVarFp.listPartnerHierarchies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
985
991
  },
986
992
  /**
987
- * Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
988
- * @summary List partner hierarchy operations
993
+ * Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
994
+ * @summary List partner hierarchy file operations
989
995
  * @param {any} code Unique identifier for the object.
990
996
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
991
997
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -1003,7 +1009,7 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
1003
1009
  },
1004
1010
  /**
1005
1011
  * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
1006
- * @summary Update the partner hierarchy
1012
+ * @summary Update a partner hierarchy
1007
1013
  * @param {string} code Unique identifier for the object.
1008
1014
  * @param {UpdatePartnerHierarchyRequestDto} updatePartnerHierarchyRequestDto
1009
1015
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -1014,15 +1020,16 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
1014
1020
  return localVarFp.updatePartnerHierarchy(code, updatePartnerHierarchyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1015
1021
  },
1016
1022
  /**
1017
- * Replaces the hierarchy tree with an uploaded file. **Required Permissions** \"partner-management.partners.update\"
1018
- * @summary Update the partner hierarchy tree
1023
+ * Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
1024
+ * @summary Replace the partner hierarchy tree from an uploaded file
1019
1025
  * @param {string} code Unique identifier for the object.
1026
+ * @param {UpdatePartnerHierarchyTreeRequestBodyDto} updatePartnerHierarchyTreeRequestBodyDto
1020
1027
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1021
1028
  * @param {*} [options] Override http request option.
1022
1029
  * @throws {RequiredError}
1023
1030
  */
1024
- updatePartnerHierarchyTree: function (code, authorization, options) {
1025
- return localVarFp.updatePartnerHierarchyTree(code, authorization, options).then(function (request) { return request(axios, basePath); });
1031
+ updatePartnerHierarchyTree: function (code, updatePartnerHierarchyTreeRequestBodyDto, authorization, options) {
1032
+ return localVarFp.updatePartnerHierarchyTree(code, updatePartnerHierarchyTreeRequestBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
1026
1033
  },
1027
1034
  };
1028
1035
  };
@@ -1040,7 +1047,7 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1040
1047
  }
1041
1048
  /**
1042
1049
  * 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\"
1043
- * @summary Create the partner hierarchy
1050
+ * @summary Create a partner hierarchy
1044
1051
  * @param {PartnerHierarchiesApiCreatePartnerHierarchyRequest} requestParameters Request parameters.
1045
1052
  * @param {*} [options] Override http request option.
1046
1053
  * @throws {RequiredError}
@@ -1052,7 +1059,7 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1052
1059
  };
1053
1060
  /**
1054
1061
  * Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
1055
- * @summary Delete the partner hierarchy
1062
+ * @summary Delete a partner hierarchy
1056
1063
  * @param {PartnerHierarchiesApiDeletePartnerHierarchyRequest} requestParameters Request parameters.
1057
1064
  * @param {*} [options] Override http request option.
1058
1065
  * @throws {RequiredError}
@@ -1063,8 +1070,8 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1063
1070
  return (0, exports.PartnerHierarchiesApiFp)(this.configuration).deletePartnerHierarchy(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1064
1071
  };
1065
1072
  /**
1066
- * 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\"
1067
- * @summary Create the partner hierarchy upload url
1073
+ * 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\"
1074
+ * @summary Generate a pre-signed upload URL for a partner hierarchy tree file
1068
1075
  * @param {PartnerHierarchiesApiGenerateUploadUrlRequest} requestParameters Request parameters.
1069
1076
  * @param {*} [options] Override http request option.
1070
1077
  * @throws {RequiredError}
@@ -1076,7 +1083,7 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1076
1083
  };
1077
1084
  /**
1078
1085
  * Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
1079
- * @summary Retrieve the partner hierarchy
1086
+ * @summary Get a partner hierarchy
1080
1087
  * @param {PartnerHierarchiesApiGetPartnerHierarchyRequest} requestParameters Request parameters.
1081
1088
  * @param {*} [options] Override http request option.
1082
1089
  * @throws {RequiredError}
@@ -1088,7 +1095,7 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1088
1095
  };
1089
1096
  /**
1090
1097
  * 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\"
1091
- * @summary Retrieve the partner hierarchy tree
1098
+ * @summary Get part of a partner hierarchy tree
1092
1099
  * @param {PartnerHierarchiesApiGetPartnerHierarchyTreeRequest} requestParameters Request parameters.
1093
1100
  * @param {*} [options] Override http request option.
1094
1101
  * @throws {RequiredError}
@@ -1099,8 +1106,8 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1099
1106
  return (0, exports.PartnerHierarchiesApiFp)(this.configuration).getPartnerHierarchyTree(requestParameters.code, requestParameters.authorization, requestParameters.nodeCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.asOf, options).then(function (request) { return request(_this.axios, _this.basePath); });
1100
1107
  };
1101
1108
  /**
1102
- * 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\"
1103
- * @summary Retrieve the partner hierarchy tree file
1109
+ * 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\"
1110
+ * @summary Get a partner hierarchy tree file
1104
1111
  * @param {PartnerHierarchiesApiGetPartnerHierarchyTreeFileRequest} requestParameters Request parameters.
1105
1112
  * @param {*} [options] Override http request option.
1106
1113
  * @throws {RequiredError}
@@ -1124,8 +1131,8 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1124
1131
  return (0, exports.PartnerHierarchiesApiFp)(this.configuration).listPartnerHierarchies(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1125
1132
  };
1126
1133
  /**
1127
- * Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
1128
- * @summary List partner hierarchy operations
1134
+ * Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
1135
+ * @summary List partner hierarchy file operations
1129
1136
  * @param {PartnerHierarchiesApiListPartnerHierarchyOperationsRequest} requestParameters Request parameters.
1130
1137
  * @param {*} [options] Override http request option.
1131
1138
  * @throws {RequiredError}
@@ -1137,7 +1144,7 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1137
1144
  };
1138
1145
  /**
1139
1146
  * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
1140
- * @summary Update the partner hierarchy
1147
+ * @summary Update a partner hierarchy
1141
1148
  * @param {PartnerHierarchiesApiUpdatePartnerHierarchyRequest} requestParameters Request parameters.
1142
1149
  * @param {*} [options] Override http request option.
1143
1150
  * @throws {RequiredError}
@@ -1148,8 +1155,8 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1148
1155
  return (0, exports.PartnerHierarchiesApiFp)(this.configuration).updatePartnerHierarchy(requestParameters.code, requestParameters.updatePartnerHierarchyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1149
1156
  };
1150
1157
  /**
1151
- * Replaces the hierarchy tree with an uploaded file. **Required Permissions** \"partner-management.partners.update\"
1152
- * @summary Update the partner hierarchy tree
1158
+ * Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
1159
+ * @summary Replace the partner hierarchy tree from an uploaded file
1153
1160
  * @param {PartnerHierarchiesApiUpdatePartnerHierarchyTreeRequest} requestParameters Request parameters.
1154
1161
  * @param {*} [options] Override http request option.
1155
1162
  * @throws {RequiredError}
@@ -1157,7 +1164,7 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1157
1164
  */
1158
1165
  PartnerHierarchiesApi.prototype.updatePartnerHierarchyTree = function (requestParameters, options) {
1159
1166
  var _this = this;
1160
- return (0, exports.PartnerHierarchiesApiFp)(this.configuration).updatePartnerHierarchyTree(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1167
+ return (0, exports.PartnerHierarchiesApiFp)(this.configuration).updatePartnerHierarchyTree(requestParameters.code, requestParameters.updatePartnerHierarchyTreeRequestBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1161
1168
  };
1162
1169
  return PartnerHierarchiesApi;
1163
1170
  }(base_1.BaseAPI));