@emilgroup/partner-sdk 1.22.1-beta.16 → 1.22.1-beta.18

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 (176) hide show
  1. package/.openapi-generator/FILES +49 -1
  2. package/README.md +2 -2
  3. package/api/blacklist-api.ts +662 -0
  4. package/api/blacklist-reasons-api.ts +797 -0
  5. package/api/{default-api.ts → health-api.ts} +13 -13
  6. package/api/partner-hierarchies-api.ts +1342 -0
  7. package/api/partner-hierarchy-nodes-api.ts +1178 -0
  8. package/api/partner-hierarchy-types-api.ts +679 -0
  9. package/api/partners-api.ts +12 -12
  10. package/api.ts +12 -2
  11. package/base.ts +1 -0
  12. package/dist/api/blacklist-api.d.ts +375 -0
  13. package/dist/api/blacklist-api.js +629 -0
  14. package/dist/api/blacklist-reasons-api.d.ts +450 -0
  15. package/dist/api/blacklist-reasons-api.js +735 -0
  16. package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
  17. package/dist/api/{default-api.js → health-api.js} +22 -22
  18. package/dist/api/partner-hierarchies-api.d.ts +760 -0
  19. package/dist/api/partner-hierarchies-api.js +1164 -0
  20. package/dist/api/partner-hierarchy-nodes-api.d.ts +663 -0
  21. package/dist/api/partner-hierarchy-nodes-api.js +1043 -0
  22. package/dist/api/partner-hierarchy-types-api.d.ts +385 -0
  23. package/dist/api/partner-hierarchy-types-api.js +636 -0
  24. package/dist/api/partners-api.d.ts +12 -12
  25. package/dist/api/partners-api.js +9 -9
  26. package/dist/api.d.ts +6 -1
  27. package/dist/api.js +6 -1
  28. package/dist/base.d.ts +2 -1
  29. package/dist/base.js +1 -0
  30. package/dist/models/blacklist-item-class.d.ts +78 -0
  31. package/dist/models/blacklist-item-class.js +15 -0
  32. package/dist/models/blacklist-reason-class.d.ts +78 -0
  33. package/dist/models/blacklist-reason-class.js +15 -0
  34. package/dist/models/create-blacklist-item-request-dto.d.ts +36 -0
  35. package/dist/models/create-blacklist-item-request-dto.js +15 -0
  36. package/dist/models/create-blacklist-item-response-class.d.ts +25 -0
  37. package/dist/models/create-blacklist-item-response-class.js +15 -0
  38. package/dist/models/create-blacklist-reason-request-dto.d.ts +36 -0
  39. package/dist/models/create-blacklist-reason-request-dto.js +15 -0
  40. package/dist/models/create-blacklist-reason-response-class.d.ts +25 -0
  41. package/dist/models/create-blacklist-reason-response-class.js +15 -0
  42. package/dist/models/create-partner-hierarchy-node-request-dto.d.ts +42 -0
  43. package/dist/models/create-partner-hierarchy-node-request-dto.js +15 -0
  44. package/dist/models/create-partner-hierarchy-node-response-class.d.ts +25 -0
  45. package/dist/models/create-partner-hierarchy-node-response-class.js +15 -0
  46. package/dist/models/create-partner-hierarchy-request-dto.d.ts +30 -0
  47. package/dist/models/create-partner-hierarchy-request-dto.js +15 -0
  48. package/dist/models/create-partner-hierarchy-response-class.d.ts +25 -0
  49. package/dist/models/create-partner-hierarchy-response-class.js +15 -0
  50. package/dist/models/create-partner-hierarchy-type-request-dto.d.ts +30 -0
  51. package/dist/models/create-partner-hierarchy-type-request-dto.js +15 -0
  52. package/dist/models/create-partner-hierarchy-type-response-class.d.ts +25 -0
  53. package/dist/models/create-partner-hierarchy-type-response-class.js +15 -0
  54. package/dist/models/delete-by-code-response-class.d.ts +24 -0
  55. package/dist/models/delete-by-code-response-class.js +15 -0
  56. package/dist/models/get-blacklist-item-response-class.d.ts +25 -0
  57. package/dist/models/get-blacklist-item-response-class.js +15 -0
  58. package/dist/models/get-blacklist-reason-response-class.d.ts +25 -0
  59. package/dist/models/get-blacklist-reason-response-class.js +15 -0
  60. package/dist/models/get-partner-hierarchy-node-response-class.d.ts +25 -0
  61. package/dist/models/get-partner-hierarchy-node-response-class.js +15 -0
  62. package/dist/models/get-partner-hierarchy-response-class.d.ts +25 -0
  63. package/dist/models/get-partner-hierarchy-response-class.js +15 -0
  64. package/dist/models/get-partner-hierarchy-tree-response-class.d.ts +25 -0
  65. package/dist/models/get-partner-hierarchy-tree-response-class.js +15 -0
  66. package/dist/models/get-partner-hierarchy-type-response-class.d.ts +25 -0
  67. package/dist/models/get-partner-hierarchy-type-response-class.js +15 -0
  68. package/dist/models/index.d.ts +43 -0
  69. package/dist/models/index.js +43 -0
  70. package/dist/models/is-blacklisted-response-class.d.ts +54 -0
  71. package/dist/models/is-blacklisted-response-class.js +15 -0
  72. package/dist/models/list-blacklist-items-response-class.d.ts +43 -0
  73. package/dist/models/list-blacklist-items-response-class.js +15 -0
  74. package/dist/models/list-blacklist-reasons-response-class.d.ts +43 -0
  75. package/dist/models/list-blacklist-reasons-response-class.js +15 -0
  76. package/dist/models/list-partner-hierarchies-response-class.d.ts +43 -0
  77. package/dist/models/list-partner-hierarchies-response-class.js +15 -0
  78. package/dist/models/list-partner-hierarchy-node-history-response-class.d.ts +43 -0
  79. package/dist/models/list-partner-hierarchy-node-history-response-class.js +15 -0
  80. package/dist/models/list-partner-hierarchy-nodes-response-class.d.ts +43 -0
  81. package/dist/models/list-partner-hierarchy-nodes-response-class.js +15 -0
  82. package/dist/models/list-partner-hierarchy-types-response-class.d.ts +43 -0
  83. package/dist/models/list-partner-hierarchy-types-response-class.js +15 -0
  84. package/dist/models/list-partner-relation-class.d.ts +18 -6
  85. package/dist/models/list-partner-relation-types-class.d.ts +18 -6
  86. package/dist/models/list-partner-types-response-class.d.ts +18 -6
  87. package/dist/models/list-partner-versions-response-class.d.ts +18 -6
  88. package/dist/models/list-partners-response-class.d.ts +18 -6
  89. package/dist/models/list-related-partners-response-class.d.ts +18 -6
  90. package/dist/models/list-tags-response-class.d.ts +18 -6
  91. package/dist/models/move-partner-hierarchy-node-request-dto.d.ts +30 -0
  92. package/dist/models/move-partner-hierarchy-node-request-dto.js +15 -0
  93. package/dist/models/move-partner-hierarchy-node-response-class.d.ts +25 -0
  94. package/dist/models/move-partner-hierarchy-node-response-class.js +15 -0
  95. package/dist/models/partner-hierarchy-class.d.ts +78 -0
  96. package/dist/models/partner-hierarchy-class.js +15 -0
  97. package/dist/models/partner-hierarchy-node-class.d.ts +109 -0
  98. package/dist/models/partner-hierarchy-node-class.js +15 -0
  99. package/dist/models/partner-hierarchy-node-history-class.d.ts +97 -0
  100. package/dist/models/partner-hierarchy-node-history-class.js +15 -0
  101. package/dist/models/partner-hierarchy-node-tree-class.d.ts +96 -0
  102. package/dist/models/partner-hierarchy-node-tree-class.js +15 -0
  103. package/dist/models/partner-hierarchy-type-class.d.ts +66 -0
  104. package/dist/models/partner-hierarchy-type-class.js +15 -0
  105. package/dist/models/unassign-partner-hierarchy-node-response-class.d.ts +25 -0
  106. package/dist/models/unassign-partner-hierarchy-node-response-class.js +15 -0
  107. package/dist/models/update-blacklist-reason-request-dto.d.ts +30 -0
  108. package/dist/models/update-blacklist-reason-request-dto.js +15 -0
  109. package/dist/models/update-blacklist-reason-response-class.d.ts +25 -0
  110. package/dist/models/update-blacklist-reason-response-class.js +15 -0
  111. package/dist/models/update-blacklist-reason-status-request-dto.d.ts +24 -0
  112. package/dist/models/update-blacklist-reason-status-request-dto.js +15 -0
  113. package/dist/models/update-partner-hierarchy-node-request-dto.d.ts +30 -0
  114. package/dist/models/update-partner-hierarchy-node-request-dto.js +15 -0
  115. package/dist/models/update-partner-hierarchy-node-response-class.d.ts +25 -0
  116. package/dist/models/update-partner-hierarchy-node-response-class.js +15 -0
  117. package/dist/models/update-partner-hierarchy-request-dto.d.ts +24 -0
  118. package/dist/models/update-partner-hierarchy-request-dto.js +15 -0
  119. package/dist/models/update-partner-hierarchy-response-class.d.ts +25 -0
  120. package/dist/models/update-partner-hierarchy-response-class.js +15 -0
  121. package/dist/models/update-partner-hierarchy-type-request-dto.d.ts +30 -0
  122. package/dist/models/update-partner-hierarchy-type-request-dto.js +15 -0
  123. package/dist/models/update-partner-hierarchy-type-response-class.d.ts +25 -0
  124. package/dist/models/update-partner-hierarchy-type-response-class.js +15 -0
  125. package/models/blacklist-item-class.ts +84 -0
  126. package/models/blacklist-reason-class.ts +84 -0
  127. package/models/create-blacklist-item-request-dto.ts +42 -0
  128. package/models/create-blacklist-item-response-class.ts +31 -0
  129. package/models/create-blacklist-reason-request-dto.ts +42 -0
  130. package/models/create-blacklist-reason-response-class.ts +31 -0
  131. package/models/create-partner-hierarchy-node-request-dto.ts +48 -0
  132. package/models/create-partner-hierarchy-node-response-class.ts +31 -0
  133. package/models/create-partner-hierarchy-request-dto.ts +36 -0
  134. package/models/create-partner-hierarchy-response-class.ts +31 -0
  135. package/models/create-partner-hierarchy-type-request-dto.ts +36 -0
  136. package/models/create-partner-hierarchy-type-response-class.ts +31 -0
  137. package/models/delete-by-code-response-class.ts +30 -0
  138. package/models/get-blacklist-item-response-class.ts +31 -0
  139. package/models/get-blacklist-reason-response-class.ts +31 -0
  140. package/models/get-partner-hierarchy-node-response-class.ts +31 -0
  141. package/models/get-partner-hierarchy-response-class.ts +31 -0
  142. package/models/get-partner-hierarchy-tree-response-class.ts +31 -0
  143. package/models/get-partner-hierarchy-type-response-class.ts +31 -0
  144. package/models/index.ts +43 -0
  145. package/models/is-blacklisted-response-class.ts +60 -0
  146. package/models/list-blacklist-items-response-class.ts +49 -0
  147. package/models/list-blacklist-reasons-response-class.ts +49 -0
  148. package/models/list-partner-hierarchies-response-class.ts +49 -0
  149. package/models/list-partner-hierarchy-node-history-response-class.ts +49 -0
  150. package/models/list-partner-hierarchy-nodes-response-class.ts +49 -0
  151. package/models/list-partner-hierarchy-types-response-class.ts +49 -0
  152. package/models/list-partner-relation-class.ts +18 -6
  153. package/models/list-partner-relation-types-class.ts +18 -6
  154. package/models/list-partner-types-response-class.ts +18 -6
  155. package/models/list-partner-versions-response-class.ts +18 -6
  156. package/models/list-partners-response-class.ts +18 -6
  157. package/models/list-related-partners-response-class.ts +18 -6
  158. package/models/list-tags-response-class.ts +18 -6
  159. package/models/move-partner-hierarchy-node-request-dto.ts +36 -0
  160. package/models/move-partner-hierarchy-node-response-class.ts +31 -0
  161. package/models/partner-hierarchy-class.ts +84 -0
  162. package/models/partner-hierarchy-node-class.ts +115 -0
  163. package/models/partner-hierarchy-node-history-class.ts +103 -0
  164. package/models/partner-hierarchy-node-tree-class.ts +102 -0
  165. package/models/partner-hierarchy-type-class.ts +72 -0
  166. package/models/unassign-partner-hierarchy-node-response-class.ts +31 -0
  167. package/models/update-blacklist-reason-request-dto.ts +36 -0
  168. package/models/update-blacklist-reason-response-class.ts +31 -0
  169. package/models/update-blacklist-reason-status-request-dto.ts +30 -0
  170. package/models/update-partner-hierarchy-node-request-dto.ts +36 -0
  171. package/models/update-partner-hierarchy-node-response-class.ts +31 -0
  172. package/models/update-partner-hierarchy-request-dto.ts +30 -0
  173. package/models/update-partner-hierarchy-response-class.ts +31 -0
  174. package/models/update-partner-hierarchy-type-request-dto.ts +36 -0
  175. package/models/update-partner-hierarchy-type-response-class.ts +31 -0
  176. package/package.json +1 -1
@@ -0,0 +1,1043 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL PartnerService
6
+ * The EMIL PartnerService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.PartnerHierarchyNodesApi = exports.PartnerHierarchyNodesApiFactory = exports.PartnerHierarchyNodesApiFp = exports.PartnerHierarchyNodesApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * PartnerHierarchyNodesApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var PartnerHierarchyNodesApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * Starts batch node creation from an uploaded file and returns the operation status. **Required Permissions** \"partner-management.partners.create\"
97
+ * @summary Create the partner hierarchy nodes batch
98
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ batchCreatePartnerHierarchyNodes: function (authorization, options) {
103
+ if (options === void 0) { options = {}; }
104
+ return __awaiter(_this, void 0, void 0, function () {
105
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
106
+ return __generator(this, function (_a) {
107
+ switch (_a.label) {
108
+ case 0:
109
+ localVarPath = "/partnerservice/v1/partner-hierarchy-nodes/batch";
110
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
111
+ if (configuration) {
112
+ baseOptions = configuration.baseOptions;
113
+ baseAccessToken = configuration.accessToken;
114
+ }
115
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
116
+ localVarHeaderParameter = {};
117
+ localVarQueryParameter = {};
118
+ // authentication bearer required
119
+ // http bearer authentication required
120
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
121
+ case 1:
122
+ // authentication bearer required
123
+ // http bearer authentication required
124
+ _a.sent();
125
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
126
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
127
+ }
128
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
129
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
131
+ return [2 /*return*/, {
132
+ url: (0, common_1.toPathString)(localVarUrlObj),
133
+ options: localVarRequestOptions,
134
+ }];
135
+ }
136
+ });
137
+ });
138
+ },
139
+ /**
140
+ * Creates a node in a partner hierarchy. The node can be placed at the top of the hierarchy or under another node, and it can be created with or without an assigned partner. **Required Permissions** \"partner-management.partners.create\"
141
+ * @summary Create the partner hierarchy node
142
+ * @param {CreatePartnerHierarchyNodeRequestDto} createPartnerHierarchyNodeRequestDto
143
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
144
+ * @param {*} [options] Override http request option.
145
+ * @throws {RequiredError}
146
+ */
147
+ createPartnerHierarchyNode: function (createPartnerHierarchyNodeRequestDto, authorization, options) {
148
+ if (options === void 0) { options = {}; }
149
+ return __awaiter(_this, void 0, void 0, function () {
150
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
151
+ return __generator(this, function (_a) {
152
+ switch (_a.label) {
153
+ case 0:
154
+ // verify required parameter 'createPartnerHierarchyNodeRequestDto' is not null or undefined
155
+ (0, common_1.assertParamExists)('createPartnerHierarchyNode', 'createPartnerHierarchyNodeRequestDto', createPartnerHierarchyNodeRequestDto);
156
+ localVarPath = "/partnerservice/v1/partner-hierarchy-nodes";
157
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
158
+ if (configuration) {
159
+ baseOptions = configuration.baseOptions;
160
+ baseAccessToken = configuration.accessToken;
161
+ }
162
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
163
+ localVarHeaderParameter = {};
164
+ localVarQueryParameter = {};
165
+ // authentication bearer required
166
+ // http bearer authentication required
167
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
168
+ case 1:
169
+ // authentication bearer required
170
+ // http bearer authentication required
171
+ _a.sent();
172
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
173
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
174
+ }
175
+ localVarHeaderParameter['Content-Type'] = 'application/json';
176
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
177
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
178
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
179
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPartnerHierarchyNodeRequestDto, localVarRequestOptions, configuration);
180
+ return [2 /*return*/, {
181
+ url: (0, common_1.toPathString)(localVarUrlObj),
182
+ options: localVarRequestOptions,
183
+ }];
184
+ }
185
+ });
186
+ });
187
+ },
188
+ /**
189
+ * Deletes a partner hierarchy node. The node must have no children before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
190
+ * @summary Delete the partner hierarchy node
191
+ * @param {string} code
192
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ deletePartnerHierarchyNode: function (code, authorization, options) {
197
+ if (options === void 0) { options = {}; }
198
+ return __awaiter(_this, void 0, void 0, function () {
199
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
200
+ return __generator(this, function (_a) {
201
+ switch (_a.label) {
202
+ case 0:
203
+ // verify required parameter 'code' is not null or undefined
204
+ (0, common_1.assertParamExists)('deletePartnerHierarchyNode', 'code', code);
205
+ localVarPath = "/partnerservice/v1/partner-hierarchy-nodes/{code}"
206
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
207
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
208
+ if (configuration) {
209
+ baseOptions = configuration.baseOptions;
210
+ baseAccessToken = configuration.accessToken;
211
+ }
212
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
213
+ localVarHeaderParameter = {};
214
+ localVarQueryParameter = {};
215
+ // authentication bearer required
216
+ // http bearer authentication required
217
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
218
+ case 1:
219
+ // authentication bearer required
220
+ // http bearer authentication required
221
+ _a.sent();
222
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
223
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
224
+ }
225
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
226
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
227
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
228
+ return [2 /*return*/, {
229
+ url: (0, common_1.toPathString)(localVarUrlObj),
230
+ options: localVarRequestOptions,
231
+ }];
232
+ }
233
+ });
234
+ });
235
+ },
236
+ /**
237
+ * Returns the details of one partner hierarchy node. Partner and parent node details can be included when needed. **Required Permissions** \"partner-management.partners.view\"
238
+ * @summary Retrieve the partner hierarchy node
239
+ * @param {string} code
240
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
241
+ * @param {*} [options] Override http request option.
242
+ * @throws {RequiredError}
243
+ */
244
+ getPartnerHierarchyNode: function (code, authorization, options) {
245
+ if (options === void 0) { options = {}; }
246
+ return __awaiter(_this, void 0, void 0, function () {
247
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
248
+ return __generator(this, function (_a) {
249
+ switch (_a.label) {
250
+ case 0:
251
+ // verify required parameter 'code' is not null or undefined
252
+ (0, common_1.assertParamExists)('getPartnerHierarchyNode', 'code', code);
253
+ localVarPath = "/partnerservice/v1/partner-hierarchy-nodes/{code}"
254
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
255
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
256
+ if (configuration) {
257
+ baseOptions = configuration.baseOptions;
258
+ baseAccessToken = configuration.accessToken;
259
+ }
260
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
261
+ localVarHeaderParameter = {};
262
+ localVarQueryParameter = {};
263
+ // authentication bearer required
264
+ // http bearer authentication required
265
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
266
+ case 1:
267
+ // authentication bearer required
268
+ // http bearer authentication required
269
+ _a.sent();
270
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
271
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
272
+ }
273
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
274
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
275
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
276
+ return [2 /*return*/, {
277
+ url: (0, common_1.toPathString)(localVarUrlObj),
278
+ options: localVarRequestOptions,
279
+ }];
280
+ }
281
+ });
282
+ });
283
+ },
284
+ /**
285
+ * Returns a paginated list of previous versions of partner hierarchy nodes for history review. **Required Permissions** \"partner-management.partners.view\"
286
+ * @summary List partner hierarchy node histories
287
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
288
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
289
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
290
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, validFrom&lt;/i&gt;
291
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
292
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, validFrom, validTo, createdAt&lt;/i&gt;
293
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partner&lt;i&gt;
294
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, validFrom&lt;/i&gt;
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ listPartnerHierarchyNodeHistory: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
299
+ if (options === void 0) { options = {}; }
300
+ return __awaiter(_this, void 0, void 0, function () {
301
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
302
+ return __generator(this, function (_a) {
303
+ switch (_a.label) {
304
+ case 0:
305
+ localVarPath = "/partnerservice/v1/partner-hierarchy-nodes/histories";
306
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
307
+ if (configuration) {
308
+ baseOptions = configuration.baseOptions;
309
+ baseAccessToken = configuration.accessToken;
310
+ }
311
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
312
+ localVarHeaderParameter = {};
313
+ localVarQueryParameter = {};
314
+ // authentication bearer required
315
+ // http bearer authentication required
316
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
317
+ case 1:
318
+ // authentication bearer required
319
+ // http bearer authentication required
320
+ _a.sent();
321
+ if (pageSize !== undefined) {
322
+ localVarQueryParameter['pageSize'] = pageSize;
323
+ }
324
+ if (pageToken !== undefined) {
325
+ localVarQueryParameter['pageToken'] = pageToken;
326
+ }
327
+ if (filter !== undefined) {
328
+ localVarQueryParameter['filter'] = filter;
329
+ }
330
+ if (search !== undefined) {
331
+ localVarQueryParameter['search'] = search;
332
+ }
333
+ if (order !== undefined) {
334
+ localVarQueryParameter['order'] = order;
335
+ }
336
+ if (expand !== undefined) {
337
+ localVarQueryParameter['expand'] = expand;
338
+ }
339
+ if (filters !== undefined) {
340
+ localVarQueryParameter['filters'] = filters;
341
+ }
342
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
343
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
344
+ }
345
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
346
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
347
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
348
+ return [2 /*return*/, {
349
+ url: (0, common_1.toPathString)(localVarUrlObj),
350
+ options: localVarRequestOptions,
351
+ }];
352
+ }
353
+ });
354
+ });
355
+ },
356
+ /**
357
+ * Returns a paginated list of partner hierarchy nodes. **Required Permissions** \"partner-management.partners.view\"
358
+ * @summary List partner hierarchy nodes
359
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
360
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
361
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
362
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, partnerCode, parentNodeCode, roleCode, depth, createdAt, updatedAt&lt;/i&gt;
363
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
364
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, depth, createdAt, updatedAt&lt;/i&gt;
365
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partner, parentNode&lt;i&gt;
366
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, partnerCode, parentNodeCode, roleCode, depth, createdAt, updatedAt&lt;/i&gt;
367
+ * @param {*} [options] Override http request option.
368
+ * @throws {RequiredError}
369
+ */
370
+ listPartnerHierarchyNodes: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
371
+ if (options === void 0) { options = {}; }
372
+ return __awaiter(_this, void 0, void 0, function () {
373
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
374
+ return __generator(this, function (_a) {
375
+ switch (_a.label) {
376
+ case 0:
377
+ localVarPath = "/partnerservice/v1/partner-hierarchy-nodes";
378
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
379
+ if (configuration) {
380
+ baseOptions = configuration.baseOptions;
381
+ baseAccessToken = configuration.accessToken;
382
+ }
383
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
384
+ localVarHeaderParameter = {};
385
+ localVarQueryParameter = {};
386
+ // authentication bearer required
387
+ // http bearer authentication required
388
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
389
+ case 1:
390
+ // authentication bearer required
391
+ // http bearer authentication required
392
+ _a.sent();
393
+ if (pageSize !== undefined) {
394
+ localVarQueryParameter['pageSize'] = pageSize;
395
+ }
396
+ if (pageToken !== undefined) {
397
+ localVarQueryParameter['pageToken'] = pageToken;
398
+ }
399
+ if (filter !== undefined) {
400
+ localVarQueryParameter['filter'] = filter;
401
+ }
402
+ if (search !== undefined) {
403
+ localVarQueryParameter['search'] = search;
404
+ }
405
+ if (order !== undefined) {
406
+ localVarQueryParameter['order'] = order;
407
+ }
408
+ if (expand !== undefined) {
409
+ localVarQueryParameter['expand'] = expand;
410
+ }
411
+ if (filters !== undefined) {
412
+ localVarQueryParameter['filters'] = filters;
413
+ }
414
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
415
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
416
+ }
417
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
418
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
419
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
420
+ return [2 /*return*/, {
421
+ url: (0, common_1.toPathString)(localVarUrlObj),
422
+ options: localVarRequestOptions,
423
+ }];
424
+ }
425
+ });
426
+ });
427
+ },
428
+ /**
429
+ * Moves a node under another parent at the same level in the same hierarchy. Any nodes below it move with it. **Required Permissions** \"partner-management.partners.update\"
430
+ * @summary Create the partner hierarchy node move
431
+ * @param {string} code
432
+ * @param {MovePartnerHierarchyNodeRequestDto} movePartnerHierarchyNodeRequestDto
433
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
434
+ * @param {*} [options] Override http request option.
435
+ * @throws {RequiredError}
436
+ */
437
+ movePartnerHierarchyNode: function (code, movePartnerHierarchyNodeRequestDto, authorization, options) {
438
+ if (options === void 0) { options = {}; }
439
+ return __awaiter(_this, void 0, void 0, function () {
440
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
441
+ return __generator(this, function (_a) {
442
+ switch (_a.label) {
443
+ case 0:
444
+ // verify required parameter 'code' is not null or undefined
445
+ (0, common_1.assertParamExists)('movePartnerHierarchyNode', 'code', code);
446
+ // verify required parameter 'movePartnerHierarchyNodeRequestDto' is not null or undefined
447
+ (0, common_1.assertParamExists)('movePartnerHierarchyNode', 'movePartnerHierarchyNodeRequestDto', movePartnerHierarchyNodeRequestDto);
448
+ localVarPath = "/partnerservice/v1/partner-hierarchy-nodes/{code}/move"
449
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
450
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
451
+ if (configuration) {
452
+ baseOptions = configuration.baseOptions;
453
+ baseAccessToken = configuration.accessToken;
454
+ }
455
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
456
+ localVarHeaderParameter = {};
457
+ localVarQueryParameter = {};
458
+ // authentication bearer required
459
+ // http bearer authentication required
460
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
461
+ case 1:
462
+ // authentication bearer required
463
+ // http bearer authentication required
464
+ _a.sent();
465
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
466
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
467
+ }
468
+ localVarHeaderParameter['Content-Type'] = 'application/json';
469
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
470
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
471
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
472
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(movePartnerHierarchyNodeRequestDto, localVarRequestOptions, configuration);
473
+ return [2 /*return*/, {
474
+ url: (0, common_1.toPathString)(localVarUrlObj),
475
+ options: localVarRequestOptions,
476
+ }];
477
+ }
478
+ });
479
+ });
480
+ },
481
+ /**
482
+ * Removes the partner assigned to a partner hierarchy node while keeping the node in the tree. **Required Permissions** \"partner-management.partners.update\"
483
+ * @summary Create the partner hierarchy node unassign
484
+ * @param {string} code
485
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
486
+ * @param {*} [options] Override http request option.
487
+ * @throws {RequiredError}
488
+ */
489
+ unassignPartnerHierarchyNode: function (code, authorization, options) {
490
+ if (options === void 0) { options = {}; }
491
+ return __awaiter(_this, void 0, void 0, function () {
492
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
493
+ return __generator(this, function (_a) {
494
+ switch (_a.label) {
495
+ case 0:
496
+ // verify required parameter 'code' is not null or undefined
497
+ (0, common_1.assertParamExists)('unassignPartnerHierarchyNode', 'code', code);
498
+ localVarPath = "/partnerservice/v1/partner-hierarchy-nodes/{code}/unassign"
499
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
500
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
501
+ if (configuration) {
502
+ baseOptions = configuration.baseOptions;
503
+ baseAccessToken = configuration.accessToken;
504
+ }
505
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
506
+ localVarHeaderParameter = {};
507
+ localVarQueryParameter = {};
508
+ // authentication bearer required
509
+ // http bearer authentication required
510
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
511
+ case 1:
512
+ // authentication bearer required
513
+ // http bearer authentication required
514
+ _a.sent();
515
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
516
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
517
+ }
518
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
519
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
520
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
521
+ return [2 /*return*/, {
522
+ url: (0, common_1.toPathString)(localVarUrlObj),
523
+ options: localVarRequestOptions,
524
+ }];
525
+ }
526
+ });
527
+ });
528
+ },
529
+ /**
530
+ * Updates a node role or changes the partner assigned to the node. It does not move the node in the tree. **Required Permissions** \"partner-management.partners.update\"
531
+ * @summary Update the partner hierarchy node
532
+ * @param {string} code
533
+ * @param {UpdatePartnerHierarchyNodeRequestDto} updatePartnerHierarchyNodeRequestDto
534
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
535
+ * @param {*} [options] Override http request option.
536
+ * @throws {RequiredError}
537
+ */
538
+ updatePartnerHierarchyNode: function (code, updatePartnerHierarchyNodeRequestDto, authorization, options) {
539
+ if (options === void 0) { options = {}; }
540
+ return __awaiter(_this, void 0, void 0, function () {
541
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
542
+ return __generator(this, function (_a) {
543
+ switch (_a.label) {
544
+ case 0:
545
+ // verify required parameter 'code' is not null or undefined
546
+ (0, common_1.assertParamExists)('updatePartnerHierarchyNode', 'code', code);
547
+ // verify required parameter 'updatePartnerHierarchyNodeRequestDto' is not null or undefined
548
+ (0, common_1.assertParamExists)('updatePartnerHierarchyNode', 'updatePartnerHierarchyNodeRequestDto', updatePartnerHierarchyNodeRequestDto);
549
+ localVarPath = "/partnerservice/v1/partner-hierarchy-nodes/{code}"
550
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
551
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
552
+ if (configuration) {
553
+ baseOptions = configuration.baseOptions;
554
+ baseAccessToken = configuration.accessToken;
555
+ }
556
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
557
+ localVarHeaderParameter = {};
558
+ localVarQueryParameter = {};
559
+ // authentication bearer required
560
+ // http bearer authentication required
561
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
562
+ case 1:
563
+ // authentication bearer required
564
+ // http bearer authentication required
565
+ _a.sent();
566
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
567
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
568
+ }
569
+ localVarHeaderParameter['Content-Type'] = 'application/json';
570
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
571
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
572
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
573
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePartnerHierarchyNodeRequestDto, localVarRequestOptions, configuration);
574
+ return [2 /*return*/, {
575
+ url: (0, common_1.toPathString)(localVarUrlObj),
576
+ options: localVarRequestOptions,
577
+ }];
578
+ }
579
+ });
580
+ });
581
+ },
582
+ };
583
+ };
584
+ exports.PartnerHierarchyNodesApiAxiosParamCreator = PartnerHierarchyNodesApiAxiosParamCreator;
585
+ /**
586
+ * PartnerHierarchyNodesApi - functional programming interface
587
+ * @export
588
+ */
589
+ var PartnerHierarchyNodesApiFp = function (configuration) {
590
+ var localVarAxiosParamCreator = (0, exports.PartnerHierarchyNodesApiAxiosParamCreator)(configuration);
591
+ return {
592
+ /**
593
+ * Starts batch node creation from an uploaded file and returns the operation status. **Required Permissions** \"partner-management.partners.create\"
594
+ * @summary Create the partner hierarchy nodes batch
595
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
596
+ * @param {*} [options] Override http request option.
597
+ * @throws {RequiredError}
598
+ */
599
+ batchCreatePartnerHierarchyNodes: function (authorization, options) {
600
+ return __awaiter(this, void 0, void 0, function () {
601
+ var localVarAxiosArgs;
602
+ return __generator(this, function (_a) {
603
+ switch (_a.label) {
604
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.batchCreatePartnerHierarchyNodes(authorization, options)];
605
+ case 1:
606
+ localVarAxiosArgs = _a.sent();
607
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
608
+ }
609
+ });
610
+ });
611
+ },
612
+ /**
613
+ * Creates a node in a partner hierarchy. The node can be placed at the top of the hierarchy or under another node, and it can be created with or without an assigned partner. **Required Permissions** \"partner-management.partners.create\"
614
+ * @summary Create the partner hierarchy node
615
+ * @param {CreatePartnerHierarchyNodeRequestDto} createPartnerHierarchyNodeRequestDto
616
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
617
+ * @param {*} [options] Override http request option.
618
+ * @throws {RequiredError}
619
+ */
620
+ createPartnerHierarchyNode: function (createPartnerHierarchyNodeRequestDto, authorization, options) {
621
+ return __awaiter(this, void 0, void 0, function () {
622
+ var localVarAxiosArgs;
623
+ return __generator(this, function (_a) {
624
+ switch (_a.label) {
625
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPartnerHierarchyNode(createPartnerHierarchyNodeRequestDto, authorization, options)];
626
+ case 1:
627
+ localVarAxiosArgs = _a.sent();
628
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
629
+ }
630
+ });
631
+ });
632
+ },
633
+ /**
634
+ * Deletes a partner hierarchy node. The node must have no children before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
635
+ * @summary Delete the partner hierarchy node
636
+ * @param {string} code
637
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ */
641
+ deletePartnerHierarchyNode: function (code, authorization, options) {
642
+ return __awaiter(this, void 0, void 0, function () {
643
+ var localVarAxiosArgs;
644
+ return __generator(this, function (_a) {
645
+ switch (_a.label) {
646
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePartnerHierarchyNode(code, authorization, options)];
647
+ case 1:
648
+ localVarAxiosArgs = _a.sent();
649
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
650
+ }
651
+ });
652
+ });
653
+ },
654
+ /**
655
+ * Returns the details of one partner hierarchy node. Partner and parent node details can be included when needed. **Required Permissions** \"partner-management.partners.view\"
656
+ * @summary Retrieve the partner hierarchy node
657
+ * @param {string} code
658
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
659
+ * @param {*} [options] Override http request option.
660
+ * @throws {RequiredError}
661
+ */
662
+ getPartnerHierarchyNode: function (code, authorization, options) {
663
+ return __awaiter(this, void 0, void 0, function () {
664
+ var localVarAxiosArgs;
665
+ return __generator(this, function (_a) {
666
+ switch (_a.label) {
667
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPartnerHierarchyNode(code, authorization, options)];
668
+ case 1:
669
+ localVarAxiosArgs = _a.sent();
670
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
671
+ }
672
+ });
673
+ });
674
+ },
675
+ /**
676
+ * Returns a paginated list of previous versions of partner hierarchy nodes for history review. **Required Permissions** \"partner-management.partners.view\"
677
+ * @summary List partner hierarchy node histories
678
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
679
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
680
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
681
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, validFrom&lt;/i&gt;
682
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
683
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, validFrom, validTo, createdAt&lt;/i&gt;
684
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partner&lt;i&gt;
685
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, validFrom&lt;/i&gt;
686
+ * @param {*} [options] Override http request option.
687
+ * @throws {RequiredError}
688
+ */
689
+ listPartnerHierarchyNodeHistory: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
690
+ return __awaiter(this, void 0, void 0, function () {
691
+ var localVarAxiosArgs;
692
+ return __generator(this, function (_a) {
693
+ switch (_a.label) {
694
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPartnerHierarchyNodeHistory(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
695
+ case 1:
696
+ localVarAxiosArgs = _a.sent();
697
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
698
+ }
699
+ });
700
+ });
701
+ },
702
+ /**
703
+ * Returns a paginated list of partner hierarchy nodes. **Required Permissions** \"partner-management.partners.view\"
704
+ * @summary List partner hierarchy nodes
705
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
706
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
707
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
708
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, partnerCode, parentNodeCode, roleCode, depth, createdAt, updatedAt&lt;/i&gt;
709
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
710
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, depth, createdAt, updatedAt&lt;/i&gt;
711
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partner, parentNode&lt;i&gt;
712
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, partnerCode, parentNodeCode, roleCode, depth, createdAt, updatedAt&lt;/i&gt;
713
+ * @param {*} [options] Override http request option.
714
+ * @throws {RequiredError}
715
+ */
716
+ listPartnerHierarchyNodes: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
717
+ return __awaiter(this, void 0, void 0, function () {
718
+ var localVarAxiosArgs;
719
+ return __generator(this, function (_a) {
720
+ switch (_a.label) {
721
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPartnerHierarchyNodes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
722
+ case 1:
723
+ localVarAxiosArgs = _a.sent();
724
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
725
+ }
726
+ });
727
+ });
728
+ },
729
+ /**
730
+ * Moves a node under another parent at the same level in the same hierarchy. Any nodes below it move with it. **Required Permissions** \"partner-management.partners.update\"
731
+ * @summary Create the partner hierarchy node move
732
+ * @param {string} code
733
+ * @param {MovePartnerHierarchyNodeRequestDto} movePartnerHierarchyNodeRequestDto
734
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
735
+ * @param {*} [options] Override http request option.
736
+ * @throws {RequiredError}
737
+ */
738
+ movePartnerHierarchyNode: function (code, movePartnerHierarchyNodeRequestDto, authorization, options) {
739
+ return __awaiter(this, void 0, void 0, function () {
740
+ var localVarAxiosArgs;
741
+ return __generator(this, function (_a) {
742
+ switch (_a.label) {
743
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.movePartnerHierarchyNode(code, movePartnerHierarchyNodeRequestDto, authorization, options)];
744
+ case 1:
745
+ localVarAxiosArgs = _a.sent();
746
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
747
+ }
748
+ });
749
+ });
750
+ },
751
+ /**
752
+ * Removes the partner assigned to a partner hierarchy node while keeping the node in the tree. **Required Permissions** \"partner-management.partners.update\"
753
+ * @summary Create the partner hierarchy node unassign
754
+ * @param {string} code
755
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
756
+ * @param {*} [options] Override http request option.
757
+ * @throws {RequiredError}
758
+ */
759
+ unassignPartnerHierarchyNode: function (code, authorization, options) {
760
+ return __awaiter(this, void 0, void 0, function () {
761
+ var localVarAxiosArgs;
762
+ return __generator(this, function (_a) {
763
+ switch (_a.label) {
764
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.unassignPartnerHierarchyNode(code, authorization, options)];
765
+ case 1:
766
+ localVarAxiosArgs = _a.sent();
767
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
768
+ }
769
+ });
770
+ });
771
+ },
772
+ /**
773
+ * Updates a node role or changes the partner assigned to the node. It does not move the node in the tree. **Required Permissions** \"partner-management.partners.update\"
774
+ * @summary Update the partner hierarchy node
775
+ * @param {string} code
776
+ * @param {UpdatePartnerHierarchyNodeRequestDto} updatePartnerHierarchyNodeRequestDto
777
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
778
+ * @param {*} [options] Override http request option.
779
+ * @throws {RequiredError}
780
+ */
781
+ updatePartnerHierarchyNode: function (code, updatePartnerHierarchyNodeRequestDto, authorization, options) {
782
+ return __awaiter(this, void 0, void 0, function () {
783
+ var localVarAxiosArgs;
784
+ return __generator(this, function (_a) {
785
+ switch (_a.label) {
786
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePartnerHierarchyNode(code, updatePartnerHierarchyNodeRequestDto, authorization, options)];
787
+ case 1:
788
+ localVarAxiosArgs = _a.sent();
789
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
790
+ }
791
+ });
792
+ });
793
+ },
794
+ };
795
+ };
796
+ exports.PartnerHierarchyNodesApiFp = PartnerHierarchyNodesApiFp;
797
+ /**
798
+ * PartnerHierarchyNodesApi - factory interface
799
+ * @export
800
+ */
801
+ var PartnerHierarchyNodesApiFactory = function (configuration, basePath, axios) {
802
+ var localVarFp = (0, exports.PartnerHierarchyNodesApiFp)(configuration);
803
+ return {
804
+ /**
805
+ * Starts batch node creation from an uploaded file and returns the operation status. **Required Permissions** \"partner-management.partners.create\"
806
+ * @summary Create the partner hierarchy nodes batch
807
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
808
+ * @param {*} [options] Override http request option.
809
+ * @throws {RequiredError}
810
+ */
811
+ batchCreatePartnerHierarchyNodes: function (authorization, options) {
812
+ return localVarFp.batchCreatePartnerHierarchyNodes(authorization, options).then(function (request) { return request(axios, basePath); });
813
+ },
814
+ /**
815
+ * Creates a node in a partner hierarchy. The node can be placed at the top of the hierarchy or under another node, and it can be created with or without an assigned partner. **Required Permissions** \"partner-management.partners.create\"
816
+ * @summary Create the partner hierarchy node
817
+ * @param {CreatePartnerHierarchyNodeRequestDto} createPartnerHierarchyNodeRequestDto
818
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
819
+ * @param {*} [options] Override http request option.
820
+ * @throws {RequiredError}
821
+ */
822
+ createPartnerHierarchyNode: function (createPartnerHierarchyNodeRequestDto, authorization, options) {
823
+ return localVarFp.createPartnerHierarchyNode(createPartnerHierarchyNodeRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
824
+ },
825
+ /**
826
+ * Deletes a partner hierarchy node. The node must have no children before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
827
+ * @summary Delete the partner hierarchy node
828
+ * @param {string} code
829
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
830
+ * @param {*} [options] Override http request option.
831
+ * @throws {RequiredError}
832
+ */
833
+ deletePartnerHierarchyNode: function (code, authorization, options) {
834
+ return localVarFp.deletePartnerHierarchyNode(code, authorization, options).then(function (request) { return request(axios, basePath); });
835
+ },
836
+ /**
837
+ * Returns the details of one partner hierarchy node. Partner and parent node details can be included when needed. **Required Permissions** \"partner-management.partners.view\"
838
+ * @summary Retrieve the partner hierarchy node
839
+ * @param {string} code
840
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
841
+ * @param {*} [options] Override http request option.
842
+ * @throws {RequiredError}
843
+ */
844
+ getPartnerHierarchyNode: function (code, authorization, options) {
845
+ return localVarFp.getPartnerHierarchyNode(code, authorization, options).then(function (request) { return request(axios, basePath); });
846
+ },
847
+ /**
848
+ * Returns a paginated list of previous versions of partner hierarchy nodes for history review. **Required Permissions** \"partner-management.partners.view\"
849
+ * @summary List partner hierarchy node histories
850
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
851
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
852
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
853
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, validFrom&lt;/i&gt;
854
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
855
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, validFrom, validTo, createdAt&lt;/i&gt;
856
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partner&lt;i&gt;
857
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, validFrom&lt;/i&gt;
858
+ * @param {*} [options] Override http request option.
859
+ * @throws {RequiredError}
860
+ */
861
+ listPartnerHierarchyNodeHistory: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
862
+ return localVarFp.listPartnerHierarchyNodeHistory(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
863
+ },
864
+ /**
865
+ * Returns a paginated list of partner hierarchy nodes. **Required Permissions** \"partner-management.partners.view\"
866
+ * @summary List partner hierarchy nodes
867
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
868
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
869
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
870
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, partnerCode, parentNodeCode, roleCode, depth, createdAt, updatedAt&lt;/i&gt;
871
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
872
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, depth, createdAt, updatedAt&lt;/i&gt;
873
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partner, parentNode&lt;i&gt;
874
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, partnerCode, parentNodeCode, roleCode, depth, createdAt, updatedAt&lt;/i&gt;
875
+ * @param {*} [options] Override http request option.
876
+ * @throws {RequiredError}
877
+ */
878
+ listPartnerHierarchyNodes: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
879
+ return localVarFp.listPartnerHierarchyNodes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
880
+ },
881
+ /**
882
+ * Moves a node under another parent at the same level in the same hierarchy. Any nodes below it move with it. **Required Permissions** \"partner-management.partners.update\"
883
+ * @summary Create the partner hierarchy node move
884
+ * @param {string} code
885
+ * @param {MovePartnerHierarchyNodeRequestDto} movePartnerHierarchyNodeRequestDto
886
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
887
+ * @param {*} [options] Override http request option.
888
+ * @throws {RequiredError}
889
+ */
890
+ movePartnerHierarchyNode: function (code, movePartnerHierarchyNodeRequestDto, authorization, options) {
891
+ return localVarFp.movePartnerHierarchyNode(code, movePartnerHierarchyNodeRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
892
+ },
893
+ /**
894
+ * Removes the partner assigned to a partner hierarchy node while keeping the node in the tree. **Required Permissions** \"partner-management.partners.update\"
895
+ * @summary Create the partner hierarchy node unassign
896
+ * @param {string} code
897
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
898
+ * @param {*} [options] Override http request option.
899
+ * @throws {RequiredError}
900
+ */
901
+ unassignPartnerHierarchyNode: function (code, authorization, options) {
902
+ return localVarFp.unassignPartnerHierarchyNode(code, authorization, options).then(function (request) { return request(axios, basePath); });
903
+ },
904
+ /**
905
+ * Updates a node role or changes the partner assigned to the node. It does not move the node in the tree. **Required Permissions** \"partner-management.partners.update\"
906
+ * @summary Update the partner hierarchy node
907
+ * @param {string} code
908
+ * @param {UpdatePartnerHierarchyNodeRequestDto} updatePartnerHierarchyNodeRequestDto
909
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
910
+ * @param {*} [options] Override http request option.
911
+ * @throws {RequiredError}
912
+ */
913
+ updatePartnerHierarchyNode: function (code, updatePartnerHierarchyNodeRequestDto, authorization, options) {
914
+ return localVarFp.updatePartnerHierarchyNode(code, updatePartnerHierarchyNodeRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
915
+ },
916
+ };
917
+ };
918
+ exports.PartnerHierarchyNodesApiFactory = PartnerHierarchyNodesApiFactory;
919
+ /**
920
+ * PartnerHierarchyNodesApi - object-oriented interface
921
+ * @export
922
+ * @class PartnerHierarchyNodesApi
923
+ * @extends {BaseAPI}
924
+ */
925
+ var PartnerHierarchyNodesApi = /** @class */ (function (_super) {
926
+ __extends(PartnerHierarchyNodesApi, _super);
927
+ function PartnerHierarchyNodesApi() {
928
+ return _super !== null && _super.apply(this, arguments) || this;
929
+ }
930
+ /**
931
+ * Starts batch node creation from an uploaded file and returns the operation status. **Required Permissions** \"partner-management.partners.create\"
932
+ * @summary Create the partner hierarchy nodes batch
933
+ * @param {PartnerHierarchyNodesApiBatchCreatePartnerHierarchyNodesRequest} requestParameters Request parameters.
934
+ * @param {*} [options] Override http request option.
935
+ * @throws {RequiredError}
936
+ * @memberof PartnerHierarchyNodesApi
937
+ */
938
+ PartnerHierarchyNodesApi.prototype.batchCreatePartnerHierarchyNodes = function (requestParameters, options) {
939
+ var _this = this;
940
+ if (requestParameters === void 0) { requestParameters = {}; }
941
+ return (0, exports.PartnerHierarchyNodesApiFp)(this.configuration).batchCreatePartnerHierarchyNodes(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
942
+ };
943
+ /**
944
+ * Creates a node in a partner hierarchy. The node can be placed at the top of the hierarchy or under another node, and it can be created with or without an assigned partner. **Required Permissions** \"partner-management.partners.create\"
945
+ * @summary Create the partner hierarchy node
946
+ * @param {PartnerHierarchyNodesApiCreatePartnerHierarchyNodeRequest} requestParameters Request parameters.
947
+ * @param {*} [options] Override http request option.
948
+ * @throws {RequiredError}
949
+ * @memberof PartnerHierarchyNodesApi
950
+ */
951
+ PartnerHierarchyNodesApi.prototype.createPartnerHierarchyNode = function (requestParameters, options) {
952
+ var _this = this;
953
+ return (0, exports.PartnerHierarchyNodesApiFp)(this.configuration).createPartnerHierarchyNode(requestParameters.createPartnerHierarchyNodeRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
954
+ };
955
+ /**
956
+ * Deletes a partner hierarchy node. The node must have no children before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
957
+ * @summary Delete the partner hierarchy node
958
+ * @param {PartnerHierarchyNodesApiDeletePartnerHierarchyNodeRequest} requestParameters Request parameters.
959
+ * @param {*} [options] Override http request option.
960
+ * @throws {RequiredError}
961
+ * @memberof PartnerHierarchyNodesApi
962
+ */
963
+ PartnerHierarchyNodesApi.prototype.deletePartnerHierarchyNode = function (requestParameters, options) {
964
+ var _this = this;
965
+ return (0, exports.PartnerHierarchyNodesApiFp)(this.configuration).deletePartnerHierarchyNode(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
966
+ };
967
+ /**
968
+ * Returns the details of one partner hierarchy node. Partner and parent node details can be included when needed. **Required Permissions** \"partner-management.partners.view\"
969
+ * @summary Retrieve the partner hierarchy node
970
+ * @param {PartnerHierarchyNodesApiGetPartnerHierarchyNodeRequest} requestParameters Request parameters.
971
+ * @param {*} [options] Override http request option.
972
+ * @throws {RequiredError}
973
+ * @memberof PartnerHierarchyNodesApi
974
+ */
975
+ PartnerHierarchyNodesApi.prototype.getPartnerHierarchyNode = function (requestParameters, options) {
976
+ var _this = this;
977
+ return (0, exports.PartnerHierarchyNodesApiFp)(this.configuration).getPartnerHierarchyNode(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
978
+ };
979
+ /**
980
+ * Returns a paginated list of previous versions of partner hierarchy nodes for history review. **Required Permissions** \"partner-management.partners.view\"
981
+ * @summary List partner hierarchy node histories
982
+ * @param {PartnerHierarchyNodesApiListPartnerHierarchyNodeHistoryRequest} requestParameters Request parameters.
983
+ * @param {*} [options] Override http request option.
984
+ * @throws {RequiredError}
985
+ * @memberof PartnerHierarchyNodesApi
986
+ */
987
+ PartnerHierarchyNodesApi.prototype.listPartnerHierarchyNodeHistory = function (requestParameters, options) {
988
+ var _this = this;
989
+ if (requestParameters === void 0) { requestParameters = {}; }
990
+ return (0, exports.PartnerHierarchyNodesApiFp)(this.configuration).listPartnerHierarchyNodeHistory(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); });
991
+ };
992
+ /**
993
+ * Returns a paginated list of partner hierarchy nodes. **Required Permissions** \"partner-management.partners.view\"
994
+ * @summary List partner hierarchy nodes
995
+ * @param {PartnerHierarchyNodesApiListPartnerHierarchyNodesRequest} requestParameters Request parameters.
996
+ * @param {*} [options] Override http request option.
997
+ * @throws {RequiredError}
998
+ * @memberof PartnerHierarchyNodesApi
999
+ */
1000
+ PartnerHierarchyNodesApi.prototype.listPartnerHierarchyNodes = function (requestParameters, options) {
1001
+ var _this = this;
1002
+ if (requestParameters === void 0) { requestParameters = {}; }
1003
+ return (0, exports.PartnerHierarchyNodesApiFp)(this.configuration).listPartnerHierarchyNodes(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); });
1004
+ };
1005
+ /**
1006
+ * Moves a node under another parent at the same level in the same hierarchy. Any nodes below it move with it. **Required Permissions** \"partner-management.partners.update\"
1007
+ * @summary Create the partner hierarchy node move
1008
+ * @param {PartnerHierarchyNodesApiMovePartnerHierarchyNodeRequest} requestParameters Request parameters.
1009
+ * @param {*} [options] Override http request option.
1010
+ * @throws {RequiredError}
1011
+ * @memberof PartnerHierarchyNodesApi
1012
+ */
1013
+ PartnerHierarchyNodesApi.prototype.movePartnerHierarchyNode = function (requestParameters, options) {
1014
+ var _this = this;
1015
+ return (0, exports.PartnerHierarchyNodesApiFp)(this.configuration).movePartnerHierarchyNode(requestParameters.code, requestParameters.movePartnerHierarchyNodeRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1016
+ };
1017
+ /**
1018
+ * Removes the partner assigned to a partner hierarchy node while keeping the node in the tree. **Required Permissions** \"partner-management.partners.update\"
1019
+ * @summary Create the partner hierarchy node unassign
1020
+ * @param {PartnerHierarchyNodesApiUnassignPartnerHierarchyNodeRequest} requestParameters Request parameters.
1021
+ * @param {*} [options] Override http request option.
1022
+ * @throws {RequiredError}
1023
+ * @memberof PartnerHierarchyNodesApi
1024
+ */
1025
+ PartnerHierarchyNodesApi.prototype.unassignPartnerHierarchyNode = function (requestParameters, options) {
1026
+ var _this = this;
1027
+ return (0, exports.PartnerHierarchyNodesApiFp)(this.configuration).unassignPartnerHierarchyNode(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1028
+ };
1029
+ /**
1030
+ * Updates a node role or changes the partner assigned to the node. It does not move the node in the tree. **Required Permissions** \"partner-management.partners.update\"
1031
+ * @summary Update the partner hierarchy node
1032
+ * @param {PartnerHierarchyNodesApiUpdatePartnerHierarchyNodeRequest} requestParameters Request parameters.
1033
+ * @param {*} [options] Override http request option.
1034
+ * @throws {RequiredError}
1035
+ * @memberof PartnerHierarchyNodesApi
1036
+ */
1037
+ PartnerHierarchyNodesApi.prototype.updatePartnerHierarchyNode = function (requestParameters, options) {
1038
+ var _this = this;
1039
+ return (0, exports.PartnerHierarchyNodesApiFp)(this.configuration).updatePartnerHierarchyNode(requestParameters.code, requestParameters.updatePartnerHierarchyNodeRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1040
+ };
1041
+ return PartnerHierarchyNodesApi;
1042
+ }(base_1.BaseAPI));
1043
+ exports.PartnerHierarchyNodesApi = PartnerHierarchyNodesApi;