@emilgroup/partner-sdk-node 1.22.1-beta.16 → 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.
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
@@ -98,7 +98,7 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
98
98
  return {
99
99
  /**
100
100
  * 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\"
101
- * @summary Create the partner hierarchy
101
+ * @summary Create a partner hierarchy
102
102
  * @param {CreatePartnerHierarchyRequestDto} createPartnerHierarchyRequestDto
103
103
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
104
  * @param {*} [options] Override http request option.
@@ -147,7 +147,7 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
147
147
  },
148
148
  /**
149
149
  * Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
150
- * @summary Delete the partner hierarchy
150
+ * @summary Delete a partner hierarchy
151
151
  * @param {string} code Unique identifier for the object.
152
152
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
153
  * @param {*} [options] Override http request option.
@@ -194,8 +194,8 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
194
194
  });
195
195
  },
196
196
  /**
197
- * 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\"
198
- * @summary Create the partner hierarchy upload url
197
+ * 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\"
198
+ * @summary Generate a pre-signed upload URL for a partner hierarchy tree file
199
199
  * @param {string} code Unique identifier for the object.
200
200
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
201
201
  * @param {*} [options] Override http request option.
@@ -243,7 +243,7 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
243
243
  },
244
244
  /**
245
245
  * Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
246
- * @summary Retrieve the partner hierarchy
246
+ * @summary Get a partner hierarchy
247
247
  * @param {string} code Unique identifier for the object.
248
248
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
249
249
  * @param {*} [options] Override http request option.
@@ -291,7 +291,7 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
291
291
  },
292
292
  /**
293
293
  * 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\"
294
- * @summary Retrieve the partner hierarchy tree
294
+ * @summary Get part of a partner hierarchy tree
295
295
  * @param {string} code Unique identifier for the object.
296
296
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
297
297
  * @param {string} [nodeCode] Node to start from. Omit this to start from the top of the hierarchy.
@@ -356,8 +356,8 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
356
356
  });
357
357
  },
358
358
  /**
359
- * 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\"
360
- * @summary Retrieve the partner hierarchy tree file
359
+ * 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\"
360
+ * @summary Get a partner hierarchy tree file
361
361
  * @param {string} code Unique identifier for the object.
362
362
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
363
363
  * @param {*} [options] Override http request option.
@@ -476,8 +476,8 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
476
476
  });
477
477
  },
478
478
  /**
479
- * Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
480
- * @summary List partner hierarchy operations
479
+ * Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
480
+ * @summary List partner hierarchy file operations
481
481
  * @param {any} code Unique identifier for the object.
482
482
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
483
483
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -553,7 +553,7 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
553
553
  },
554
554
  /**
555
555
  * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
556
- * @summary Update the partner hierarchy
556
+ * @summary Update a partner hierarchy
557
557
  * @param {string} code Unique identifier for the object.
558
558
  * @param {UpdatePartnerHierarchyRequestDto} updatePartnerHierarchyRequestDto
559
559
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -605,14 +605,15 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
605
605
  });
606
606
  },
607
607
  /**
608
- * Replaces the hierarchy tree with an uploaded file. **Required Permissions** \"partner-management.partners.update\"
609
- * @summary Update the partner hierarchy tree
608
+ * Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
609
+ * @summary Replace the partner hierarchy tree from an uploaded file
610
610
  * @param {string} code Unique identifier for the object.
611
+ * @param {UpdatePartnerHierarchyTreeRequestBodyDto} updatePartnerHierarchyTreeRequestBodyDto
611
612
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
612
613
  * @param {*} [options] Override http request option.
613
614
  * @throws {RequiredError}
614
615
  */
615
- updatePartnerHierarchyTree: function (code, authorization, options) {
616
+ updatePartnerHierarchyTree: function (code, updatePartnerHierarchyTreeRequestBodyDto, authorization, options) {
616
617
  if (options === void 0) { options = {}; }
617
618
  return __awaiter(_this, void 0, void 0, function () {
618
619
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -621,6 +622,8 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
621
622
  case 0:
622
623
  // verify required parameter 'code' is not null or undefined
623
624
  (0, common_1.assertParamExists)('updatePartnerHierarchyTree', 'code', code);
625
+ // verify required parameter 'updatePartnerHierarchyTreeRequestBodyDto' is not null or undefined
626
+ (0, common_1.assertParamExists)('updatePartnerHierarchyTree', 'updatePartnerHierarchyTreeRequestBodyDto', updatePartnerHierarchyTreeRequestBodyDto);
624
627
  localVarPath = "/partnerservice/v1/partner-hierarchies/{code}/tree"
625
628
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
626
629
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -641,9 +644,11 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
641
644
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
642
645
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
643
646
  }
647
+ localVarHeaderParameter['Content-Type'] = 'application/json';
644
648
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
645
649
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
646
650
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
651
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePartnerHierarchyTreeRequestBodyDto, localVarRequestOptions, configuration);
647
652
  return [2 /*return*/, {
648
653
  url: (0, common_1.toPathString)(localVarUrlObj),
649
654
  options: localVarRequestOptions,
@@ -664,7 +669,7 @@ var PartnerHierarchiesApiFp = function (configuration) {
664
669
  return {
665
670
  /**
666
671
  * 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\"
667
- * @summary Create the partner hierarchy
672
+ * @summary Create a partner hierarchy
668
673
  * @param {CreatePartnerHierarchyRequestDto} createPartnerHierarchyRequestDto
669
674
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
670
675
  * @param {*} [options] Override http request option.
@@ -685,7 +690,7 @@ var PartnerHierarchiesApiFp = function (configuration) {
685
690
  },
686
691
  /**
687
692
  * Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
688
- * @summary Delete the partner hierarchy
693
+ * @summary Delete a partner hierarchy
689
694
  * @param {string} code Unique identifier for the object.
690
695
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
691
696
  * @param {*} [options] Override http request option.
@@ -705,8 +710,8 @@ var PartnerHierarchiesApiFp = function (configuration) {
705
710
  });
706
711
  },
707
712
  /**
708
- * 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\"
709
- * @summary Create the partner hierarchy upload url
713
+ * 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\"
714
+ * @summary Generate a pre-signed upload URL for a partner hierarchy tree file
710
715
  * @param {string} code Unique identifier for the object.
711
716
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
712
717
  * @param {*} [options] Override http request option.
@@ -727,7 +732,7 @@ var PartnerHierarchiesApiFp = function (configuration) {
727
732
  },
728
733
  /**
729
734
  * Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
730
- * @summary Retrieve the partner hierarchy
735
+ * @summary Get a partner hierarchy
731
736
  * @param {string} code Unique identifier for the object.
732
737
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
733
738
  * @param {*} [options] Override http request option.
@@ -748,7 +753,7 @@ var PartnerHierarchiesApiFp = function (configuration) {
748
753
  },
749
754
  /**
750
755
  * 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\"
751
- * @summary Retrieve the partner hierarchy tree
756
+ * @summary Get part of a partner hierarchy tree
752
757
  * @param {string} code Unique identifier for the object.
753
758
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
754
759
  * @param {string} [nodeCode] Node to start from. Omit this to start from the top of the hierarchy.
@@ -772,8 +777,8 @@ var PartnerHierarchiesApiFp = function (configuration) {
772
777
  });
773
778
  },
774
779
  /**
775
- * 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\"
776
- * @summary Retrieve the partner hierarchy tree file
780
+ * 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\"
781
+ * @summary Get a partner hierarchy tree file
777
782
  * @param {string} code Unique identifier for the object.
778
783
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
779
784
  * @param {*} [options] Override http request option.
@@ -820,8 +825,8 @@ var PartnerHierarchiesApiFp = function (configuration) {
820
825
  });
821
826
  },
822
827
  /**
823
- * Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
824
- * @summary List partner hierarchy operations
828
+ * Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
829
+ * @summary List partner hierarchy file operations
825
830
  * @param {any} code Unique identifier for the object.
826
831
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
827
832
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -849,7 +854,7 @@ var PartnerHierarchiesApiFp = function (configuration) {
849
854
  },
850
855
  /**
851
856
  * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
852
- * @summary Update the partner hierarchy
857
+ * @summary Update a partner hierarchy
853
858
  * @param {string} code Unique identifier for the object.
854
859
  * @param {UpdatePartnerHierarchyRequestDto} updatePartnerHierarchyRequestDto
855
860
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -870,19 +875,20 @@ var PartnerHierarchiesApiFp = function (configuration) {
870
875
  });
871
876
  },
872
877
  /**
873
- * Replaces the hierarchy tree with an uploaded file. **Required Permissions** \"partner-management.partners.update\"
874
- * @summary Update the partner hierarchy tree
878
+ * Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
879
+ * @summary Replace the partner hierarchy tree from an uploaded file
875
880
  * @param {string} code Unique identifier for the object.
881
+ * @param {UpdatePartnerHierarchyTreeRequestBodyDto} updatePartnerHierarchyTreeRequestBodyDto
876
882
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
877
883
  * @param {*} [options] Override http request option.
878
884
  * @throws {RequiredError}
879
885
  */
880
- updatePartnerHierarchyTree: function (code, authorization, options) {
886
+ updatePartnerHierarchyTree: function (code, updatePartnerHierarchyTreeRequestBodyDto, authorization, options) {
881
887
  return __awaiter(this, void 0, void 0, function () {
882
888
  var localVarAxiosArgs;
883
889
  return __generator(this, function (_a) {
884
890
  switch (_a.label) {
885
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePartnerHierarchyTree(code, authorization, options)];
891
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePartnerHierarchyTree(code, updatePartnerHierarchyTreeRequestBodyDto, authorization, options)];
886
892
  case 1:
887
893
  localVarAxiosArgs = _a.sent();
888
894
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -902,7 +908,7 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
902
908
  return {
903
909
  /**
904
910
  * 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\"
905
- * @summary Create the partner hierarchy
911
+ * @summary Create a partner hierarchy
906
912
  * @param {CreatePartnerHierarchyRequestDto} createPartnerHierarchyRequestDto
907
913
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
908
914
  * @param {*} [options] Override http request option.
@@ -913,7 +919,7 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
913
919
  },
914
920
  /**
915
921
  * Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
916
- * @summary Delete the partner hierarchy
922
+ * @summary Delete a partner hierarchy
917
923
  * @param {string} code Unique identifier for the object.
918
924
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
919
925
  * @param {*} [options] Override http request option.
@@ -923,8 +929,8 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
923
929
  return localVarFp.deletePartnerHierarchy(code, authorization, options).then(function (request) { return request(axios, basePath); });
924
930
  },
925
931
  /**
926
- * 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\"
927
- * @summary Create the partner hierarchy upload url
932
+ * 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\"
933
+ * @summary Generate a pre-signed upload URL for a partner hierarchy tree file
928
934
  * @param {string} code Unique identifier for the object.
929
935
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
930
936
  * @param {*} [options] Override http request option.
@@ -935,7 +941,7 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
935
941
  },
936
942
  /**
937
943
  * Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
938
- * @summary Retrieve the partner hierarchy
944
+ * @summary Get a partner hierarchy
939
945
  * @param {string} code Unique identifier for the object.
940
946
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
941
947
  * @param {*} [options] Override http request option.
@@ -946,7 +952,7 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
946
952
  },
947
953
  /**
948
954
  * 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\"
949
- * @summary Retrieve the partner hierarchy tree
955
+ * @summary Get part of a partner hierarchy tree
950
956
  * @param {string} code Unique identifier for the object.
951
957
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
952
958
  * @param {string} [nodeCode] Node to start from. Omit this to start from the top of the hierarchy.
@@ -960,8 +966,8 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
960
966
  return localVarFp.getPartnerHierarchyTree(code, authorization, nodeCode, pageSize, pageToken, asOf, options).then(function (request) { return request(axios, basePath); });
961
967
  },
962
968
  /**
963
- * 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\"
964
- * @summary Retrieve the partner hierarchy tree file
969
+ * 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\"
970
+ * @summary Get a partner hierarchy tree file
965
971
  * @param {string} code Unique identifier for the object.
966
972
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
967
973
  * @param {*} [options] Override http request option.
@@ -988,8 +994,8 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
988
994
  return localVarFp.listPartnerHierarchies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
989
995
  },
990
996
  /**
991
- * Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
992
- * @summary List partner hierarchy operations
997
+ * Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
998
+ * @summary List partner hierarchy file operations
993
999
  * @param {any} code Unique identifier for the object.
994
1000
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
995
1001
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -1007,7 +1013,7 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
1007
1013
  },
1008
1014
  /**
1009
1015
  * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
1010
- * @summary Update the partner hierarchy
1016
+ * @summary Update a partner hierarchy
1011
1017
  * @param {string} code Unique identifier for the object.
1012
1018
  * @param {UpdatePartnerHierarchyRequestDto} updatePartnerHierarchyRequestDto
1013
1019
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -1018,15 +1024,16 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
1018
1024
  return localVarFp.updatePartnerHierarchy(code, updatePartnerHierarchyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1019
1025
  },
1020
1026
  /**
1021
- * Replaces the hierarchy tree with an uploaded file. **Required Permissions** \"partner-management.partners.update\"
1022
- * @summary Update the partner hierarchy tree
1027
+ * Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
1028
+ * @summary Replace the partner hierarchy tree from an uploaded file
1023
1029
  * @param {string} code Unique identifier for the object.
1030
+ * @param {UpdatePartnerHierarchyTreeRequestBodyDto} updatePartnerHierarchyTreeRequestBodyDto
1024
1031
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1025
1032
  * @param {*} [options] Override http request option.
1026
1033
  * @throws {RequiredError}
1027
1034
  */
1028
- updatePartnerHierarchyTree: function (code, authorization, options) {
1029
- return localVarFp.updatePartnerHierarchyTree(code, authorization, options).then(function (request) { return request(axios, basePath); });
1035
+ updatePartnerHierarchyTree: function (code, updatePartnerHierarchyTreeRequestBodyDto, authorization, options) {
1036
+ return localVarFp.updatePartnerHierarchyTree(code, updatePartnerHierarchyTreeRequestBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
1030
1037
  },
1031
1038
  };
1032
1039
  };
@@ -1044,7 +1051,7 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1044
1051
  }
1045
1052
  /**
1046
1053
  * 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\"
1047
- * @summary Create the partner hierarchy
1054
+ * @summary Create a partner hierarchy
1048
1055
  * @param {PartnerHierarchiesApiCreatePartnerHierarchyRequest} requestParameters Request parameters.
1049
1056
  * @param {*} [options] Override http request option.
1050
1057
  * @throws {RequiredError}
@@ -1056,7 +1063,7 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1056
1063
  };
1057
1064
  /**
1058
1065
  * Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
1059
- * @summary Delete the partner hierarchy
1066
+ * @summary Delete a partner hierarchy
1060
1067
  * @param {PartnerHierarchiesApiDeletePartnerHierarchyRequest} requestParameters Request parameters.
1061
1068
  * @param {*} [options] Override http request option.
1062
1069
  * @throws {RequiredError}
@@ -1067,8 +1074,8 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1067
1074
  return (0, exports.PartnerHierarchiesApiFp)(this.configuration).deletePartnerHierarchy(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1068
1075
  };
1069
1076
  /**
1070
- * 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\"
1071
- * @summary Create the partner hierarchy upload url
1077
+ * 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\"
1078
+ * @summary Generate a pre-signed upload URL for a partner hierarchy tree file
1072
1079
  * @param {PartnerHierarchiesApiGenerateUploadUrlRequest} requestParameters Request parameters.
1073
1080
  * @param {*} [options] Override http request option.
1074
1081
  * @throws {RequiredError}
@@ -1080,7 +1087,7 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1080
1087
  };
1081
1088
  /**
1082
1089
  * Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
1083
- * @summary Retrieve the partner hierarchy
1090
+ * @summary Get a partner hierarchy
1084
1091
  * @param {PartnerHierarchiesApiGetPartnerHierarchyRequest} requestParameters Request parameters.
1085
1092
  * @param {*} [options] Override http request option.
1086
1093
  * @throws {RequiredError}
@@ -1092,7 +1099,7 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1092
1099
  };
1093
1100
  /**
1094
1101
  * 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\"
1095
- * @summary Retrieve the partner hierarchy tree
1102
+ * @summary Get part of a partner hierarchy tree
1096
1103
  * @param {PartnerHierarchiesApiGetPartnerHierarchyTreeRequest} requestParameters Request parameters.
1097
1104
  * @param {*} [options] Override http request option.
1098
1105
  * @throws {RequiredError}
@@ -1103,8 +1110,8 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1103
1110
  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); });
1104
1111
  };
1105
1112
  /**
1106
- * 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\"
1107
- * @summary Retrieve the partner hierarchy tree file
1113
+ * 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\"
1114
+ * @summary Get a partner hierarchy tree file
1108
1115
  * @param {PartnerHierarchiesApiGetPartnerHierarchyTreeFileRequest} requestParameters Request parameters.
1109
1116
  * @param {*} [options] Override http request option.
1110
1117
  * @throws {RequiredError}
@@ -1128,8 +1135,8 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1128
1135
  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); });
1129
1136
  };
1130
1137
  /**
1131
- * Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
1132
- * @summary List partner hierarchy operations
1138
+ * Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
1139
+ * @summary List partner hierarchy file operations
1133
1140
  * @param {PartnerHierarchiesApiListPartnerHierarchyOperationsRequest} requestParameters Request parameters.
1134
1141
  * @param {*} [options] Override http request option.
1135
1142
  * @throws {RequiredError}
@@ -1141,7 +1148,7 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1141
1148
  };
1142
1149
  /**
1143
1150
  * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
1144
- * @summary Update the partner hierarchy
1151
+ * @summary Update a partner hierarchy
1145
1152
  * @param {PartnerHierarchiesApiUpdatePartnerHierarchyRequest} requestParameters Request parameters.
1146
1153
  * @param {*} [options] Override http request option.
1147
1154
  * @throws {RequiredError}
@@ -1152,8 +1159,8 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1152
1159
  return (0, exports.PartnerHierarchiesApiFp)(this.configuration).updatePartnerHierarchy(requestParameters.code, requestParameters.updatePartnerHierarchyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1153
1160
  };
1154
1161
  /**
1155
- * Replaces the hierarchy tree with an uploaded file. **Required Permissions** \"partner-management.partners.update\"
1156
- * @summary Update the partner hierarchy tree
1162
+ * Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
1163
+ * @summary Replace the partner hierarchy tree from an uploaded file
1157
1164
  * @param {PartnerHierarchiesApiUpdatePartnerHierarchyTreeRequest} requestParameters Request parameters.
1158
1165
  * @param {*} [options] Override http request option.
1159
1166
  * @throws {RequiredError}
@@ -1161,7 +1168,7 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1161
1168
  */
1162
1169
  PartnerHierarchiesApi.prototype.updatePartnerHierarchyTree = function (requestParameters, options) {
1163
1170
  var _this = this;
1164
- return (0, exports.PartnerHierarchiesApiFp)(this.configuration).updatePartnerHierarchyTree(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1171
+ return (0, exports.PartnerHierarchiesApiFp)(this.configuration).updatePartnerHierarchyTree(requestParameters.code, requestParameters.updatePartnerHierarchyTreeRequestBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1165
1172
  };
1166
1173
  return PartnerHierarchiesApi;
1167
1174
  }(base_1.BaseAPI));