@emilgroup/partner-sdk-node 1.22.1-beta.21 → 1.22.1-beta.22

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