@emilgroup/partner-sdk-node 1.22.1-beta.13 → 1.22.1-beta.15

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