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

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 +42 -1
  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/{default-api.ts → health-api.ts} +13 -13
  6. package/api/partner-hierarchies-api.ts +1371 -0
  7. package/api/partner-hierarchy-nodes-api.ts +1400 -0
  8. package/api/partner-hierarchy-types-api.ts +683 -0
  9. package/api/partners-api.ts +119 -12
  10. package/api.ts +8 -2
  11. package/base.ts +1 -0
  12. package/dist/api/blacklist-api.d.ts +4 -4
  13. package/dist/api/blacklist-reasons-api.d.ts +4 -4
  14. package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
  15. package/dist/api/{default-api.js → health-api.js} +22 -22
  16. package/dist/api/partner-hierarchies-api.d.ts +774 -0
  17. package/dist/api/partner-hierarchies-api.js +1175 -0
  18. package/dist/api/partner-hierarchy-nodes-api.d.ts +792 -0
  19. package/dist/api/partner-hierarchy-nodes-api.js +1187 -0
  20. package/dist/api/partner-hierarchy-types-api.d.ts +385 -0
  21. package/dist/api/partner-hierarchy-types-api.js +640 -0
  22. package/dist/api/partners-api.d.ts +69 -12
  23. package/dist/api/partners-api.js +102 -9
  24. package/dist/api.d.ts +4 -1
  25. package/dist/api.js +4 -1
  26. package/dist/base.d.ts +2 -1
  27. package/dist/base.js +1 -0
  28. package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.d.ts +30 -0
  29. package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.js +15 -0
  30. package/dist/models/create-partner-hierarchy-node-request-dto.d.ts +42 -0
  31. package/dist/models/create-partner-hierarchy-node-request-dto.js +15 -0
  32. package/dist/models/create-partner-hierarchy-node-response-class.d.ts +25 -0
  33. package/dist/models/create-partner-hierarchy-node-response-class.js +15 -0
  34. package/dist/models/create-partner-hierarchy-request-dto.d.ts +30 -0
  35. package/dist/models/create-partner-hierarchy-request-dto.js +15 -0
  36. package/dist/models/create-partner-hierarchy-response-class.d.ts +25 -0
  37. package/dist/models/create-partner-hierarchy-response-class.js +15 -0
  38. package/dist/models/create-partner-hierarchy-type-request-dto.d.ts +30 -0
  39. package/dist/models/create-partner-hierarchy-type-request-dto.js +15 -0
  40. package/dist/models/create-partner-hierarchy-type-response-class.d.ts +25 -0
  41. package/dist/models/create-partner-hierarchy-type-response-class.js +15 -0
  42. package/dist/models/delete-by-code-response-class.d.ts +24 -0
  43. package/dist/models/delete-by-code-response-class.js +15 -0
  44. package/dist/models/generate-upload-url-response-class.d.ts +36 -0
  45. package/dist/models/generate-upload-url-response-class.js +15 -0
  46. package/dist/models/get-partner-hierarchy-node-response-class.d.ts +25 -0
  47. package/dist/models/get-partner-hierarchy-node-response-class.js +15 -0
  48. package/dist/models/get-partner-hierarchy-response-class.d.ts +25 -0
  49. package/dist/models/get-partner-hierarchy-response-class.js +15 -0
  50. package/dist/models/get-partner-hierarchy-tree-file-response-class.d.ts +42 -0
  51. package/dist/models/get-partner-hierarchy-tree-file-response-class.js +15 -0
  52. package/dist/models/get-partner-hierarchy-tree-response-class.d.ts +25 -0
  53. package/dist/models/get-partner-hierarchy-tree-response-class.js +15 -0
  54. package/dist/models/get-partner-hierarchy-type-response-class.d.ts +25 -0
  55. package/dist/models/get-partner-hierarchy-type-response-class.js +15 -0
  56. package/dist/models/index.d.ts +38 -0
  57. package/dist/models/index.js +38 -0
  58. package/dist/models/list-blacklist-items-response-class.d.ts +12 -0
  59. package/dist/models/list-partner-hierarchies-response-class.d.ts +43 -0
  60. package/dist/models/list-partner-hierarchies-response-class.js +15 -0
  61. package/dist/models/list-partner-hierarchy-node-history-response-class.d.ts +43 -0
  62. package/dist/models/list-partner-hierarchy-node-history-response-class.js +15 -0
  63. package/dist/models/list-partner-hierarchy-nodes-response-class.d.ts +43 -0
  64. package/dist/models/list-partner-hierarchy-nodes-response-class.js +15 -0
  65. package/dist/models/list-partner-hierarchy-operations-response-class.d.ts +43 -0
  66. package/dist/models/list-partner-hierarchy-operations-response-class.js +15 -0
  67. package/dist/models/list-partner-hierarchy-types-response-class.d.ts +43 -0
  68. package/dist/models/list-partner-hierarchy-types-response-class.js +15 -0
  69. package/dist/models/list-partner-relation-class.d.ts +18 -6
  70. package/dist/models/list-partner-relation-types-class.d.ts +18 -6
  71. package/dist/models/list-partner-types-response-class.d.ts +18 -6
  72. package/dist/models/list-partner-versions-response-class.d.ts +18 -6
  73. package/dist/models/list-partners-response-class.d.ts +18 -6
  74. package/dist/models/list-related-partners-response-class.d.ts +18 -6
  75. package/dist/models/list-tags-response-class.d.ts +18 -6
  76. package/dist/models/move-partner-hierarchy-node-request-dto.d.ts +30 -0
  77. package/dist/models/move-partner-hierarchy-node-request-dto.js +15 -0
  78. package/dist/models/move-partner-hierarchy-node-response-class.d.ts +25 -0
  79. package/dist/models/move-partner-hierarchy-node-response-class.js +15 -0
  80. package/dist/models/partner-hierarchy-async-operation-response-class.d.ts +30 -0
  81. package/dist/models/partner-hierarchy-async-operation-response-class.js +15 -0
  82. package/dist/models/partner-hierarchy-class.d.ts +78 -0
  83. package/dist/models/partner-hierarchy-class.js +15 -0
  84. package/dist/models/partner-hierarchy-node-class.d.ts +109 -0
  85. package/dist/models/partner-hierarchy-node-class.js +15 -0
  86. package/dist/models/partner-hierarchy-node-history-class.d.ts +97 -0
  87. package/dist/models/partner-hierarchy-node-history-class.js +15 -0
  88. package/dist/models/partner-hierarchy-node-tree-class.d.ts +96 -0
  89. package/dist/models/partner-hierarchy-node-tree-class.js +15 -0
  90. package/dist/models/partner-hierarchy-operation-class.d.ts +90 -0
  91. package/dist/models/partner-hierarchy-operation-class.js +15 -0
  92. package/dist/models/partner-hierarchy-type-class.d.ts +66 -0
  93. package/dist/models/partner-hierarchy-type-class.js +15 -0
  94. package/dist/models/unassign-partner-hierarchy-node-response-class.d.ts +25 -0
  95. package/dist/models/unassign-partner-hierarchy-node-response-class.js +15 -0
  96. package/dist/models/update-blacklist-reason-status-request-dto.d.ts +1 -1
  97. package/dist/models/update-partner-hierarchy-node-request-dto.d.ts +30 -0
  98. package/dist/models/update-partner-hierarchy-node-request-dto.js +15 -0
  99. package/dist/models/update-partner-hierarchy-node-response-class.d.ts +25 -0
  100. package/dist/models/update-partner-hierarchy-node-response-class.js +15 -0
  101. package/dist/models/update-partner-hierarchy-request-dto.d.ts +24 -0
  102. package/dist/models/update-partner-hierarchy-request-dto.js +15 -0
  103. package/dist/models/update-partner-hierarchy-response-class.d.ts +25 -0
  104. package/dist/models/update-partner-hierarchy-response-class.js +15 -0
  105. package/dist/models/update-partner-hierarchy-tree-request-body-dto.d.ts +24 -0
  106. package/dist/models/update-partner-hierarchy-tree-request-body-dto.js +15 -0
  107. package/dist/models/update-partner-hierarchy-type-request-dto.d.ts +30 -0
  108. package/dist/models/update-partner-hierarchy-type-request-dto.js +15 -0
  109. package/dist/models/update-partner-hierarchy-type-response-class.d.ts +25 -0
  110. package/dist/models/update-partner-hierarchy-type-response-class.js +15 -0
  111. package/dist/models/validate-partner-request-dto.d.ts +30 -0
  112. package/dist/models/validate-partner-request-dto.js +15 -0
  113. package/dist/models/validate-partner-response-class.d.ts +30 -0
  114. package/dist/models/validate-partner-response-class.js +15 -0
  115. package/models/batch-create-partner-hierarchy-nodes-request-dto.ts +36 -0
  116. package/models/create-partner-hierarchy-node-request-dto.ts +48 -0
  117. package/models/create-partner-hierarchy-node-response-class.ts +31 -0
  118. package/models/create-partner-hierarchy-request-dto.ts +36 -0
  119. package/models/create-partner-hierarchy-response-class.ts +31 -0
  120. package/models/create-partner-hierarchy-type-request-dto.ts +36 -0
  121. package/models/create-partner-hierarchy-type-response-class.ts +31 -0
  122. package/models/delete-by-code-response-class.ts +30 -0
  123. package/models/generate-upload-url-response-class.ts +42 -0
  124. package/models/get-partner-hierarchy-node-response-class.ts +31 -0
  125. package/models/get-partner-hierarchy-response-class.ts +31 -0
  126. package/models/get-partner-hierarchy-tree-file-response-class.ts +48 -0
  127. package/models/get-partner-hierarchy-tree-response-class.ts +31 -0
  128. package/models/get-partner-hierarchy-type-response-class.ts +31 -0
  129. package/models/index.ts +38 -0
  130. package/models/list-blacklist-items-response-class.ts +12 -0
  131. package/models/list-partner-hierarchies-response-class.ts +49 -0
  132. package/models/list-partner-hierarchy-node-history-response-class.ts +49 -0
  133. package/models/list-partner-hierarchy-nodes-response-class.ts +49 -0
  134. package/models/list-partner-hierarchy-operations-response-class.ts +49 -0
  135. package/models/list-partner-hierarchy-types-response-class.ts +49 -0
  136. package/models/list-partner-relation-class.ts +18 -6
  137. package/models/list-partner-relation-types-class.ts +18 -6
  138. package/models/list-partner-types-response-class.ts +18 -6
  139. package/models/list-partner-versions-response-class.ts +18 -6
  140. package/models/list-partners-response-class.ts +18 -6
  141. package/models/list-related-partners-response-class.ts +18 -6
  142. package/models/list-tags-response-class.ts +18 -6
  143. package/models/move-partner-hierarchy-node-request-dto.ts +36 -0
  144. package/models/move-partner-hierarchy-node-response-class.ts +31 -0
  145. package/models/partner-hierarchy-async-operation-response-class.ts +36 -0
  146. package/models/partner-hierarchy-class.ts +84 -0
  147. package/models/partner-hierarchy-node-class.ts +115 -0
  148. package/models/partner-hierarchy-node-history-class.ts +103 -0
  149. package/models/partner-hierarchy-node-tree-class.ts +102 -0
  150. package/models/partner-hierarchy-operation-class.ts +96 -0
  151. package/models/partner-hierarchy-type-class.ts +72 -0
  152. package/models/unassign-partner-hierarchy-node-response-class.ts +31 -0
  153. package/models/update-blacklist-reason-status-request-dto.ts +1 -1
  154. package/models/update-partner-hierarchy-node-request-dto.ts +36 -0
  155. package/models/update-partner-hierarchy-node-response-class.ts +31 -0
  156. package/models/update-partner-hierarchy-request-dto.ts +30 -0
  157. package/models/update-partner-hierarchy-response-class.ts +31 -0
  158. package/models/update-partner-hierarchy-tree-request-body-dto.ts +30 -0
  159. package/models/update-partner-hierarchy-type-request-dto.ts +36 -0
  160. package/models/update-partner-hierarchy-type-response-class.ts +31 -0
  161. package/models/validate-partner-request-dto.ts +36 -0
  162. package/models/validate-partner-response-class.ts +36 -0
  163. package/package.json +1 -1
@@ -0,0 +1,1400 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL PartnerService
5
+ * The EMIL PartnerService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { BatchCreatePartnerHierarchyNodesRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreatePartnerHierarchyNodeRequestDto } from '../models';
27
+ // @ts-ignore
28
+ import { CreatePartnerHierarchyNodeResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { DeleteByCodeResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { GetPartnerHierarchyNodeResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { ListPartnerHierarchyNodeHistoryResponseClass } from '../models';
35
+ // @ts-ignore
36
+ import { ListPartnerHierarchyNodesResponseClass } from '../models';
37
+ // @ts-ignore
38
+ import { MovePartnerHierarchyNodeRequestDto } from '../models';
39
+ // @ts-ignore
40
+ import { MovePartnerHierarchyNodeResponseClass } from '../models';
41
+ // @ts-ignore
42
+ import { PartnerHierarchyAsyncOperationResponseClass } from '../models';
43
+ // @ts-ignore
44
+ import { UnassignPartnerHierarchyNodeResponseClass } from '../models';
45
+ // @ts-ignore
46
+ import { UpdatePartnerHierarchyNodeRequestDto } from '../models';
47
+ // @ts-ignore
48
+ import { UpdatePartnerHierarchyNodeResponseClass } from '../models';
49
+ // URLSearchParams not necessarily used
50
+ // @ts-ignore
51
+ import { URL, URLSearchParams } from 'url';
52
+ const FormData = require('form-data');
53
+ /**
54
+ * PartnerHierarchyNodesApi - axios parameter creator
55
+ * @export
56
+ */
57
+ export const PartnerHierarchyNodesApiAxiosParamCreator = function (configuration?: Configuration) {
58
+ return {
59
+ /**
60
+ * Starts batch node creation from an uploaded file and returns the operation status. **Required Permissions** \"partner-management.partners.create\"
61
+ * @summary Batch create partner hierarchy nodes
62
+ * @param {BatchCreatePartnerHierarchyNodesRequestDto} batchCreatePartnerHierarchyNodesRequestDto
63
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
64
+ * @param {*} [options] Override http request option.
65
+ * @throws {RequiredError}
66
+ */
67
+ batchCreatePartnerHierarchyNodes: async (batchCreatePartnerHierarchyNodesRequestDto: BatchCreatePartnerHierarchyNodesRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
68
+ // verify required parameter 'batchCreatePartnerHierarchyNodesRequestDto' is not null or undefined
69
+ assertParamExists('batchCreatePartnerHierarchyNodes', 'batchCreatePartnerHierarchyNodesRequestDto', batchCreatePartnerHierarchyNodesRequestDto)
70
+ const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes/batch`;
71
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
72
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
73
+ let baseOptions;
74
+ let baseAccessToken;
75
+ if (configuration) {
76
+ baseOptions = configuration.baseOptions;
77
+ baseAccessToken = configuration.accessToken;
78
+ }
79
+
80
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
81
+ const localVarHeaderParameter = {} as any;
82
+ const localVarQueryParameter = {} as any;
83
+
84
+ // authentication bearer required
85
+ // http bearer authentication required
86
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
87
+
88
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
89
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
90
+ }
91
+
92
+
93
+
94
+ localVarHeaderParameter['Content-Type'] = 'application/json';
95
+
96
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
97
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
98
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
99
+ localVarRequestOptions.data = serializeDataIfNeeded(batchCreatePartnerHierarchyNodesRequestDto, localVarRequestOptions, configuration)
100
+
101
+ return {
102
+ url: toPathString(localVarUrlObj),
103
+ options: localVarRequestOptions,
104
+ };
105
+ },
106
+ /**
107
+ * 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\"
108
+ * @summary Create a partner hierarchy node
109
+ * @param {CreatePartnerHierarchyNodeRequestDto} createPartnerHierarchyNodeRequestDto
110
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
111
+ * @param {*} [options] Override http request option.
112
+ * @throws {RequiredError}
113
+ */
114
+ createPartnerHierarchyNode: async (createPartnerHierarchyNodeRequestDto: CreatePartnerHierarchyNodeRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
115
+ // verify required parameter 'createPartnerHierarchyNodeRequestDto' is not null or undefined
116
+ assertParamExists('createPartnerHierarchyNode', 'createPartnerHierarchyNodeRequestDto', createPartnerHierarchyNodeRequestDto)
117
+ const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes`;
118
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
119
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
120
+ let baseOptions;
121
+ let baseAccessToken;
122
+ if (configuration) {
123
+ baseOptions = configuration.baseOptions;
124
+ baseAccessToken = configuration.accessToken;
125
+ }
126
+
127
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
128
+ const localVarHeaderParameter = {} as any;
129
+ const localVarQueryParameter = {} as any;
130
+
131
+ // authentication bearer required
132
+ // http bearer authentication required
133
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
134
+
135
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
136
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
+ }
138
+
139
+
140
+
141
+ localVarHeaderParameter['Content-Type'] = 'application/json';
142
+
143
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
144
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
145
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
146
+ localVarRequestOptions.data = serializeDataIfNeeded(createPartnerHierarchyNodeRequestDto, localVarRequestOptions, configuration)
147
+
148
+ return {
149
+ url: toPathString(localVarUrlObj),
150
+ options: localVarRequestOptions,
151
+ };
152
+ },
153
+ /**
154
+ * Deletes a partner hierarchy node. The node must have no children before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
155
+ * @summary Delete a partner hierarchy node
156
+ * @param {string} code
157
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ deletePartnerHierarchyNode: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
162
+ // verify required parameter 'code' is not null or undefined
163
+ assertParamExists('deletePartnerHierarchyNode', 'code', code)
164
+ const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes/{code}`
165
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
166
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
167
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
168
+ let baseOptions;
169
+ let baseAccessToken;
170
+ if (configuration) {
171
+ baseOptions = configuration.baseOptions;
172
+ baseAccessToken = configuration.accessToken;
173
+ }
174
+
175
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
176
+ const localVarHeaderParameter = {} as any;
177
+ const localVarQueryParameter = {} as any;
178
+
179
+ // authentication bearer required
180
+ // http bearer authentication required
181
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
182
+
183
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
184
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
185
+ }
186
+
187
+
188
+
189
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
190
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
191
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
192
+
193
+ return {
194
+ url: toPathString(localVarUrlObj),
195
+ options: localVarRequestOptions,
196
+ };
197
+ },
198
+ /**
199
+ * Returns the details of one partner hierarchy node. Partner and parent node details can be included when needed. **Required Permissions** \"partner-management.partners.view\"
200
+ * @summary Get a partner hierarchy node
201
+ * @param {string} code
202
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ getPartnerHierarchyNode: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
207
+ // verify required parameter 'code' is not null or undefined
208
+ assertParamExists('getPartnerHierarchyNode', 'code', code)
209
+ const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes/{code}`
210
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
211
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
212
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
213
+ let baseOptions;
214
+ let baseAccessToken;
215
+ if (configuration) {
216
+ baseOptions = configuration.baseOptions;
217
+ baseAccessToken = configuration.accessToken;
218
+ }
219
+
220
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
221
+ const localVarHeaderParameter = {} as any;
222
+ const localVarQueryParameter = {} as any;
223
+
224
+ // authentication bearer required
225
+ // http bearer authentication required
226
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
227
+
228
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
229
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
230
+ }
231
+
232
+
233
+
234
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
235
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
236
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
237
+
238
+ return {
239
+ url: toPathString(localVarUrlObj),
240
+ options: localVarRequestOptions,
241
+ };
242
+ },
243
+ /**
244
+ * Returns a flat paginated list of descendant hierarchy nodes for the selected partner. The partner\'s own nodes are not included. **Required Permissions** \"partner-management.partners.view\"
245
+ * @summary List descendant partner hierarchy nodes
246
+ * @param {string} partnerCode Code of the partner used to find descendant hierarchy nodes.
247
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
248
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
249
+ * @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.
250
+ * @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;
251
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
252
+ * @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;
253
+ * @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;
254
+ * @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;
255
+ * @param {*} [options] Override http request option.
256
+ * @throws {RequiredError}
257
+ */
258
+ listDescendantPartnerHierarchyNodes: async (partnerCode: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
259
+ // verify required parameter 'partnerCode' is not null or undefined
260
+ assertParamExists('listDescendantPartnerHierarchyNodes', 'partnerCode', partnerCode)
261
+ const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes/descendants/{partnerCode}`
262
+ .replace(`{${"partnerCode"}}`, encodeURIComponent(String(partnerCode)));
263
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
264
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
265
+ let baseOptions;
266
+ let baseAccessToken;
267
+ if (configuration) {
268
+ baseOptions = configuration.baseOptions;
269
+ baseAccessToken = configuration.accessToken;
270
+ }
271
+
272
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
273
+ const localVarHeaderParameter = {} as any;
274
+ const localVarQueryParameter = {} as any;
275
+
276
+ // authentication bearer required
277
+ // http bearer authentication required
278
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
279
+
280
+ if (pageSize !== undefined) {
281
+ localVarQueryParameter['pageSize'] = pageSize;
282
+ }
283
+
284
+ if (pageToken !== undefined) {
285
+ localVarQueryParameter['pageToken'] = pageToken;
286
+ }
287
+
288
+ if (filter !== undefined) {
289
+ localVarQueryParameter['filter'] = filter;
290
+ }
291
+
292
+ if (search !== undefined) {
293
+ localVarQueryParameter['search'] = search;
294
+ }
295
+
296
+ if (order !== undefined) {
297
+ localVarQueryParameter['order'] = order;
298
+ }
299
+
300
+ if (expand !== undefined) {
301
+ localVarQueryParameter['expand'] = expand;
302
+ }
303
+
304
+ if (filters !== undefined) {
305
+ localVarQueryParameter['filters'] = filters;
306
+ }
307
+
308
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
309
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
310
+ }
311
+
312
+
313
+
314
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
315
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
316
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
317
+
318
+ return {
319
+ url: toPathString(localVarUrlObj),
320
+ options: localVarRequestOptions,
321
+ };
322
+ },
323
+ /**
324
+ * Returns a paginated list of previous versions of partner hierarchy nodes for history review. **Required Permissions** \"partner-management.partners.view\"
325
+ * @summary List partner hierarchy node history
326
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
327
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
328
+ * @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.
329
+ * @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;
330
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
331
+ * @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;
332
+ * @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;
333
+ * @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;
334
+ * @param {*} [options] Override http request option.
335
+ * @throws {RequiredError}
336
+ */
337
+ listPartnerHierarchyNodeHistory: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
338
+ const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes/histories`;
339
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
340
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
341
+ let baseOptions;
342
+ let baseAccessToken;
343
+ if (configuration) {
344
+ baseOptions = configuration.baseOptions;
345
+ baseAccessToken = configuration.accessToken;
346
+ }
347
+
348
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
349
+ const localVarHeaderParameter = {} as any;
350
+ const localVarQueryParameter = {} as any;
351
+
352
+ // authentication bearer required
353
+ // http bearer authentication required
354
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
355
+
356
+ if (pageSize !== undefined) {
357
+ localVarQueryParameter['pageSize'] = pageSize;
358
+ }
359
+
360
+ if (pageToken !== undefined) {
361
+ localVarQueryParameter['pageToken'] = pageToken;
362
+ }
363
+
364
+ if (filter !== undefined) {
365
+ localVarQueryParameter['filter'] = filter;
366
+ }
367
+
368
+ if (search !== undefined) {
369
+ localVarQueryParameter['search'] = search;
370
+ }
371
+
372
+ if (order !== undefined) {
373
+ localVarQueryParameter['order'] = order;
374
+ }
375
+
376
+ if (expand !== undefined) {
377
+ localVarQueryParameter['expand'] = expand;
378
+ }
379
+
380
+ if (filters !== undefined) {
381
+ localVarQueryParameter['filters'] = filters;
382
+ }
383
+
384
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
385
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
386
+ }
387
+
388
+
389
+
390
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
391
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
392
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
393
+
394
+ return {
395
+ url: toPathString(localVarUrlObj),
396
+ options: localVarRequestOptions,
397
+ };
398
+ },
399
+ /**
400
+ * Returns a paginated list of partner hierarchy nodes. **Required Permissions** \"partner-management.partners.view\"
401
+ * @summary List partner hierarchy nodes
402
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
403
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
404
+ * @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.
405
+ * @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;
406
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
407
+ * @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;
408
+ * @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;
409
+ * @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;
410
+ * @param {*} [options] Override http request option.
411
+ * @throws {RequiredError}
412
+ */
413
+ listPartnerHierarchyNodes: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
414
+ const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes`;
415
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
416
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
417
+ let baseOptions;
418
+ let baseAccessToken;
419
+ if (configuration) {
420
+ baseOptions = configuration.baseOptions;
421
+ baseAccessToken = configuration.accessToken;
422
+ }
423
+
424
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
425
+ const localVarHeaderParameter = {} as any;
426
+ const localVarQueryParameter = {} as any;
427
+
428
+ // authentication bearer required
429
+ // http bearer authentication required
430
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
431
+
432
+ if (pageSize !== undefined) {
433
+ localVarQueryParameter['pageSize'] = pageSize;
434
+ }
435
+
436
+ if (pageToken !== undefined) {
437
+ localVarQueryParameter['pageToken'] = pageToken;
438
+ }
439
+
440
+ if (filter !== undefined) {
441
+ localVarQueryParameter['filter'] = filter;
442
+ }
443
+
444
+ if (search !== undefined) {
445
+ localVarQueryParameter['search'] = search;
446
+ }
447
+
448
+ if (order !== undefined) {
449
+ localVarQueryParameter['order'] = order;
450
+ }
451
+
452
+ if (expand !== undefined) {
453
+ localVarQueryParameter['expand'] = expand;
454
+ }
455
+
456
+ if (filters !== undefined) {
457
+ localVarQueryParameter['filters'] = filters;
458
+ }
459
+
460
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
461
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
462
+ }
463
+
464
+
465
+
466
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
467
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
468
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
469
+
470
+ return {
471
+ url: toPathString(localVarUrlObj),
472
+ options: localVarRequestOptions,
473
+ };
474
+ },
475
+ /**
476
+ * 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\"
477
+ * @summary Move a partner hierarchy node to a new parent
478
+ * @param {string} code
479
+ * @param {MovePartnerHierarchyNodeRequestDto} movePartnerHierarchyNodeRequestDto
480
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
481
+ * @param {*} [options] Override http request option.
482
+ * @throws {RequiredError}
483
+ */
484
+ movePartnerHierarchyNode: async (code: string, movePartnerHierarchyNodeRequestDto: MovePartnerHierarchyNodeRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
485
+ // verify required parameter 'code' is not null or undefined
486
+ assertParamExists('movePartnerHierarchyNode', 'code', code)
487
+ // verify required parameter 'movePartnerHierarchyNodeRequestDto' is not null or undefined
488
+ assertParamExists('movePartnerHierarchyNode', 'movePartnerHierarchyNodeRequestDto', movePartnerHierarchyNodeRequestDto)
489
+ const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes/{code}/move`
490
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
491
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
492
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
493
+ let baseOptions;
494
+ let baseAccessToken;
495
+ if (configuration) {
496
+ baseOptions = configuration.baseOptions;
497
+ baseAccessToken = configuration.accessToken;
498
+ }
499
+
500
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
501
+ const localVarHeaderParameter = {} as any;
502
+ const localVarQueryParameter = {} as any;
503
+
504
+ // authentication bearer required
505
+ // http bearer authentication required
506
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
507
+
508
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
509
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
510
+ }
511
+
512
+
513
+
514
+ localVarHeaderParameter['Content-Type'] = 'application/json';
515
+
516
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
517
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
518
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
519
+ localVarRequestOptions.data = serializeDataIfNeeded(movePartnerHierarchyNodeRequestDto, localVarRequestOptions, configuration)
520
+
521
+ return {
522
+ url: toPathString(localVarUrlObj),
523
+ options: localVarRequestOptions,
524
+ };
525
+ },
526
+ /**
527
+ * Removes the partner assigned to a partner hierarchy node while keeping the node in the tree. **Required Permissions** \"partner-management.partners.update\"
528
+ * @summary Unassign a partner from a partner hierarchy node
529
+ * @param {string} code
530
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
531
+ * @param {*} [options] Override http request option.
532
+ * @throws {RequiredError}
533
+ */
534
+ unassignPartnerHierarchyNode: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
535
+ // verify required parameter 'code' is not null or undefined
536
+ assertParamExists('unassignPartnerHierarchyNode', 'code', code)
537
+ const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes/{code}/unassign`
538
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
539
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
540
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
541
+ let baseOptions;
542
+ let baseAccessToken;
543
+ if (configuration) {
544
+ baseOptions = configuration.baseOptions;
545
+ baseAccessToken = configuration.accessToken;
546
+ }
547
+
548
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
549
+ const localVarHeaderParameter = {} as any;
550
+ const localVarQueryParameter = {} as any;
551
+
552
+ // authentication bearer required
553
+ // http bearer authentication required
554
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
555
+
556
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
557
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
558
+ }
559
+
560
+
561
+
562
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
563
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
564
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
565
+
566
+ return {
567
+ url: toPathString(localVarUrlObj),
568
+ options: localVarRequestOptions,
569
+ };
570
+ },
571
+ /**
572
+ * 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\"
573
+ * @summary Update a partner hierarchy node
574
+ * @param {string} code
575
+ * @param {UpdatePartnerHierarchyNodeRequestDto} updatePartnerHierarchyNodeRequestDto
576
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
577
+ * @param {*} [options] Override http request option.
578
+ * @throws {RequiredError}
579
+ */
580
+ updatePartnerHierarchyNode: async (code: string, updatePartnerHierarchyNodeRequestDto: UpdatePartnerHierarchyNodeRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
581
+ // verify required parameter 'code' is not null or undefined
582
+ assertParamExists('updatePartnerHierarchyNode', 'code', code)
583
+ // verify required parameter 'updatePartnerHierarchyNodeRequestDto' is not null or undefined
584
+ assertParamExists('updatePartnerHierarchyNode', 'updatePartnerHierarchyNodeRequestDto', updatePartnerHierarchyNodeRequestDto)
585
+ const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes/{code}`
586
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
587
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
588
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
589
+ let baseOptions;
590
+ let baseAccessToken;
591
+ if (configuration) {
592
+ baseOptions = configuration.baseOptions;
593
+ baseAccessToken = configuration.accessToken;
594
+ }
595
+
596
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
597
+ const localVarHeaderParameter = {} as any;
598
+ const localVarQueryParameter = {} as any;
599
+
600
+ // authentication bearer required
601
+ // http bearer authentication required
602
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
603
+
604
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
605
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
606
+ }
607
+
608
+
609
+
610
+ localVarHeaderParameter['Content-Type'] = 'application/json';
611
+
612
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
613
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
614
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
615
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePartnerHierarchyNodeRequestDto, localVarRequestOptions, configuration)
616
+
617
+ return {
618
+ url: toPathString(localVarUrlObj),
619
+ options: localVarRequestOptions,
620
+ };
621
+ },
622
+ }
623
+ };
624
+
625
+ /**
626
+ * PartnerHierarchyNodesApi - functional programming interface
627
+ * @export
628
+ */
629
+ export const PartnerHierarchyNodesApiFp = function(configuration?: Configuration) {
630
+ const localVarAxiosParamCreator = PartnerHierarchyNodesApiAxiosParamCreator(configuration)
631
+ return {
632
+ /**
633
+ * Starts batch node creation from an uploaded file and returns the operation status. **Required Permissions** \"partner-management.partners.create\"
634
+ * @summary Batch create partner hierarchy nodes
635
+ * @param {BatchCreatePartnerHierarchyNodesRequestDto} batchCreatePartnerHierarchyNodesRequestDto
636
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
637
+ * @param {*} [options] Override http request option.
638
+ * @throws {RequiredError}
639
+ */
640
+ async batchCreatePartnerHierarchyNodes(batchCreatePartnerHierarchyNodesRequestDto: BatchCreatePartnerHierarchyNodesRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerHierarchyAsyncOperationResponseClass>> {
641
+ const localVarAxiosArgs = await localVarAxiosParamCreator.batchCreatePartnerHierarchyNodes(batchCreatePartnerHierarchyNodesRequestDto, authorization, options);
642
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
643
+ },
644
+ /**
645
+ * 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\"
646
+ * @summary Create a partner hierarchy node
647
+ * @param {CreatePartnerHierarchyNodeRequestDto} createPartnerHierarchyNodeRequestDto
648
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
649
+ * @param {*} [options] Override http request option.
650
+ * @throws {RequiredError}
651
+ */
652
+ async createPartnerHierarchyNode(createPartnerHierarchyNodeRequestDto: CreatePartnerHierarchyNodeRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePartnerHierarchyNodeResponseClass>> {
653
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPartnerHierarchyNode(createPartnerHierarchyNodeRequestDto, authorization, options);
654
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
655
+ },
656
+ /**
657
+ * Deletes a partner hierarchy node. The node must have no children before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
658
+ * @summary Delete a partner hierarchy node
659
+ * @param {string} code
660
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
661
+ * @param {*} [options] Override http request option.
662
+ * @throws {RequiredError}
663
+ */
664
+ async deletePartnerHierarchyNode(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteByCodeResponseClass>> {
665
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deletePartnerHierarchyNode(code, authorization, options);
666
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
667
+ },
668
+ /**
669
+ * Returns the details of one partner hierarchy node. Partner and parent node details can be included when needed. **Required Permissions** \"partner-management.partners.view\"
670
+ * @summary Get a partner hierarchy node
671
+ * @param {string} code
672
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
673
+ * @param {*} [options] Override http request option.
674
+ * @throws {RequiredError}
675
+ */
676
+ async getPartnerHierarchyNode(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerHierarchyNodeResponseClass>> {
677
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPartnerHierarchyNode(code, authorization, options);
678
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
679
+ },
680
+ /**
681
+ * Returns a flat paginated list of descendant hierarchy nodes for the selected partner. The partner\'s own nodes are not included. **Required Permissions** \"partner-management.partners.view\"
682
+ * @summary List descendant partner hierarchy nodes
683
+ * @param {string} partnerCode Code of the partner used to find descendant hierarchy nodes.
684
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
685
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
686
+ * @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.
687
+ * @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;
688
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
689
+ * @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;
690
+ * @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;
691
+ * @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;
692
+ * @param {*} [options] Override http request option.
693
+ * @throws {RequiredError}
694
+ */
695
+ async listDescendantPartnerHierarchyNodes(partnerCode: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerHierarchyNodesResponseClass>> {
696
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDescendantPartnerHierarchyNodes(partnerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
697
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
698
+ },
699
+ /**
700
+ * Returns a paginated list of previous versions of partner hierarchy nodes for history review. **Required Permissions** \"partner-management.partners.view\"
701
+ * @summary List partner hierarchy node history
702
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
703
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
704
+ * @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.
705
+ * @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;
706
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
707
+ * @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;
708
+ * @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;
709
+ * @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;
710
+ * @param {*} [options] Override http request option.
711
+ * @throws {RequiredError}
712
+ */
713
+ async listPartnerHierarchyNodeHistory(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerHierarchyNodeHistoryResponseClass>> {
714
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerHierarchyNodeHistory(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
715
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
716
+ },
717
+ /**
718
+ * Returns a paginated list of partner hierarchy nodes. **Required Permissions** \"partner-management.partners.view\"
719
+ * @summary List partner hierarchy nodes
720
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
721
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
722
+ * @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.
723
+ * @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;
724
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
725
+ * @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;
726
+ * @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;
727
+ * @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;
728
+ * @param {*} [options] Override http request option.
729
+ * @throws {RequiredError}
730
+ */
731
+ async listPartnerHierarchyNodes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerHierarchyNodesResponseClass>> {
732
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerHierarchyNodes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
733
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
734
+ },
735
+ /**
736
+ * 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\"
737
+ * @summary Move a partner hierarchy node to a new parent
738
+ * @param {string} code
739
+ * @param {MovePartnerHierarchyNodeRequestDto} movePartnerHierarchyNodeRequestDto
740
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
741
+ * @param {*} [options] Override http request option.
742
+ * @throws {RequiredError}
743
+ */
744
+ async movePartnerHierarchyNode(code: string, movePartnerHierarchyNodeRequestDto: MovePartnerHierarchyNodeRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MovePartnerHierarchyNodeResponseClass>> {
745
+ const localVarAxiosArgs = await localVarAxiosParamCreator.movePartnerHierarchyNode(code, movePartnerHierarchyNodeRequestDto, authorization, options);
746
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
747
+ },
748
+ /**
749
+ * Removes the partner assigned to a partner hierarchy node while keeping the node in the tree. **Required Permissions** \"partner-management.partners.update\"
750
+ * @summary Unassign a partner from a partner hierarchy node
751
+ * @param {string} code
752
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
753
+ * @param {*} [options] Override http request option.
754
+ * @throws {RequiredError}
755
+ */
756
+ async unassignPartnerHierarchyNode(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnassignPartnerHierarchyNodeResponseClass>> {
757
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unassignPartnerHierarchyNode(code, authorization, options);
758
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
759
+ },
760
+ /**
761
+ * 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\"
762
+ * @summary Update a partner hierarchy node
763
+ * @param {string} code
764
+ * @param {UpdatePartnerHierarchyNodeRequestDto} updatePartnerHierarchyNodeRequestDto
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
+ async updatePartnerHierarchyNode(code: string, updatePartnerHierarchyNodeRequestDto: UpdatePartnerHierarchyNodeRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePartnerHierarchyNodeResponseClass>> {
770
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartnerHierarchyNode(code, updatePartnerHierarchyNodeRequestDto, authorization, options);
771
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
772
+ },
773
+ }
774
+ };
775
+
776
+ /**
777
+ * PartnerHierarchyNodesApi - factory interface
778
+ * @export
779
+ */
780
+ export const PartnerHierarchyNodesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
781
+ const localVarFp = PartnerHierarchyNodesApiFp(configuration)
782
+ return {
783
+ /**
784
+ * Starts batch node creation from an uploaded file and returns the operation status. **Required Permissions** \"partner-management.partners.create\"
785
+ * @summary Batch create partner hierarchy nodes
786
+ * @param {BatchCreatePartnerHierarchyNodesRequestDto} batchCreatePartnerHierarchyNodesRequestDto
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
+ batchCreatePartnerHierarchyNodes(batchCreatePartnerHierarchyNodesRequestDto: BatchCreatePartnerHierarchyNodesRequestDto, authorization?: string, options?: any): AxiosPromise<PartnerHierarchyAsyncOperationResponseClass> {
792
+ return localVarFp.batchCreatePartnerHierarchyNodes(batchCreatePartnerHierarchyNodesRequestDto, authorization, options).then((request) => request(axios, basePath));
793
+ },
794
+ /**
795
+ * 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\"
796
+ * @summary Create a partner hierarchy node
797
+ * @param {CreatePartnerHierarchyNodeRequestDto} createPartnerHierarchyNodeRequestDto
798
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
799
+ * @param {*} [options] Override http request option.
800
+ * @throws {RequiredError}
801
+ */
802
+ createPartnerHierarchyNode(createPartnerHierarchyNodeRequestDto: CreatePartnerHierarchyNodeRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePartnerHierarchyNodeResponseClass> {
803
+ return localVarFp.createPartnerHierarchyNode(createPartnerHierarchyNodeRequestDto, authorization, options).then((request) => request(axios, basePath));
804
+ },
805
+ /**
806
+ * Deletes a partner hierarchy node. The node must have no children before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
807
+ * @summary Delete a partner hierarchy node
808
+ * @param {string} code
809
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
810
+ * @param {*} [options] Override http request option.
811
+ * @throws {RequiredError}
812
+ */
813
+ deletePartnerHierarchyNode(code: string, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass> {
814
+ return localVarFp.deletePartnerHierarchyNode(code, authorization, options).then((request) => request(axios, basePath));
815
+ },
816
+ /**
817
+ * Returns the details of one partner hierarchy node. Partner and parent node details can be included when needed. **Required Permissions** \"partner-management.partners.view\"
818
+ * @summary Get a partner hierarchy node
819
+ * @param {string} code
820
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
821
+ * @param {*} [options] Override http request option.
822
+ * @throws {RequiredError}
823
+ */
824
+ getPartnerHierarchyNode(code: string, authorization?: string, options?: any): AxiosPromise<GetPartnerHierarchyNodeResponseClass> {
825
+ return localVarFp.getPartnerHierarchyNode(code, authorization, options).then((request) => request(axios, basePath));
826
+ },
827
+ /**
828
+ * Returns a flat paginated list of descendant hierarchy nodes for the selected partner. The partner\'s own nodes are not included. **Required Permissions** \"partner-management.partners.view\"
829
+ * @summary List descendant partner hierarchy nodes
830
+ * @param {string} partnerCode Code of the partner used to find descendant hierarchy nodes.
831
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
832
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
833
+ * @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.
834
+ * @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;
835
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
836
+ * @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;
837
+ * @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;
838
+ * @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;
839
+ * @param {*} [options] Override http request option.
840
+ * @throws {RequiredError}
841
+ */
842
+ listDescendantPartnerHierarchyNodes(partnerCode: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerHierarchyNodesResponseClass> {
843
+ return localVarFp.listDescendantPartnerHierarchyNodes(partnerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
844
+ },
845
+ /**
846
+ * Returns a paginated list of previous versions of partner hierarchy nodes for history review. **Required Permissions** \"partner-management.partners.view\"
847
+ * @summary List partner hierarchy node history
848
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
849
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
850
+ * @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.
851
+ * @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;
852
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
853
+ * @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;
854
+ * @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;
855
+ * @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;
856
+ * @param {*} [options] Override http request option.
857
+ * @throws {RequiredError}
858
+ */
859
+ listPartnerHierarchyNodeHistory(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerHierarchyNodeHistoryResponseClass> {
860
+ return localVarFp.listPartnerHierarchyNodeHistory(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
861
+ },
862
+ /**
863
+ * Returns a paginated list of partner hierarchy nodes. **Required Permissions** \"partner-management.partners.view\"
864
+ * @summary List partner hierarchy nodes
865
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
866
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
867
+ * @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.
868
+ * @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;
869
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
870
+ * @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;
871
+ * @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;
872
+ * @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;
873
+ * @param {*} [options] Override http request option.
874
+ * @throws {RequiredError}
875
+ */
876
+ listPartnerHierarchyNodes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerHierarchyNodesResponseClass> {
877
+ return localVarFp.listPartnerHierarchyNodes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
878
+ },
879
+ /**
880
+ * 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\"
881
+ * @summary Move a partner hierarchy node to a new parent
882
+ * @param {string} code
883
+ * @param {MovePartnerHierarchyNodeRequestDto} movePartnerHierarchyNodeRequestDto
884
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
885
+ * @param {*} [options] Override http request option.
886
+ * @throws {RequiredError}
887
+ */
888
+ movePartnerHierarchyNode(code: string, movePartnerHierarchyNodeRequestDto: MovePartnerHierarchyNodeRequestDto, authorization?: string, options?: any): AxiosPromise<MovePartnerHierarchyNodeResponseClass> {
889
+ return localVarFp.movePartnerHierarchyNode(code, movePartnerHierarchyNodeRequestDto, authorization, options).then((request) => request(axios, basePath));
890
+ },
891
+ /**
892
+ * Removes the partner assigned to a partner hierarchy node while keeping the node in the tree. **Required Permissions** \"partner-management.partners.update\"
893
+ * @summary Unassign a partner from a partner hierarchy node
894
+ * @param {string} code
895
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
896
+ * @param {*} [options] Override http request option.
897
+ * @throws {RequiredError}
898
+ */
899
+ unassignPartnerHierarchyNode(code: string, authorization?: string, options?: any): AxiosPromise<UnassignPartnerHierarchyNodeResponseClass> {
900
+ return localVarFp.unassignPartnerHierarchyNode(code, authorization, options).then((request) => request(axios, basePath));
901
+ },
902
+ /**
903
+ * 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\"
904
+ * @summary Update a partner hierarchy node
905
+ * @param {string} code
906
+ * @param {UpdatePartnerHierarchyNodeRequestDto} updatePartnerHierarchyNodeRequestDto
907
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
908
+ * @param {*} [options] Override http request option.
909
+ * @throws {RequiredError}
910
+ */
911
+ updatePartnerHierarchyNode(code: string, updatePartnerHierarchyNodeRequestDto: UpdatePartnerHierarchyNodeRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePartnerHierarchyNodeResponseClass> {
912
+ return localVarFp.updatePartnerHierarchyNode(code, updatePartnerHierarchyNodeRequestDto, authorization, options).then((request) => request(axios, basePath));
913
+ },
914
+ };
915
+ };
916
+
917
+ /**
918
+ * Request parameters for batchCreatePartnerHierarchyNodes operation in PartnerHierarchyNodesApi.
919
+ * @export
920
+ * @interface PartnerHierarchyNodesApiBatchCreatePartnerHierarchyNodesRequest
921
+ */
922
+ export interface PartnerHierarchyNodesApiBatchCreatePartnerHierarchyNodesRequest {
923
+ /**
924
+ *
925
+ * @type {BatchCreatePartnerHierarchyNodesRequestDto}
926
+ * @memberof PartnerHierarchyNodesApiBatchCreatePartnerHierarchyNodes
927
+ */
928
+ readonly batchCreatePartnerHierarchyNodesRequestDto: BatchCreatePartnerHierarchyNodesRequestDto
929
+
930
+ /**
931
+ * Bearer Token: provided by the login endpoint under the name accessToken.
932
+ * @type {string}
933
+ * @memberof PartnerHierarchyNodesApiBatchCreatePartnerHierarchyNodes
934
+ */
935
+ readonly authorization?: string
936
+ }
937
+
938
+ /**
939
+ * Request parameters for createPartnerHierarchyNode operation in PartnerHierarchyNodesApi.
940
+ * @export
941
+ * @interface PartnerHierarchyNodesApiCreatePartnerHierarchyNodeRequest
942
+ */
943
+ export interface PartnerHierarchyNodesApiCreatePartnerHierarchyNodeRequest {
944
+ /**
945
+ *
946
+ * @type {CreatePartnerHierarchyNodeRequestDto}
947
+ * @memberof PartnerHierarchyNodesApiCreatePartnerHierarchyNode
948
+ */
949
+ readonly createPartnerHierarchyNodeRequestDto: CreatePartnerHierarchyNodeRequestDto
950
+
951
+ /**
952
+ * Bearer Token: provided by the login endpoint under the name accessToken.
953
+ * @type {string}
954
+ * @memberof PartnerHierarchyNodesApiCreatePartnerHierarchyNode
955
+ */
956
+ readonly authorization?: string
957
+ }
958
+
959
+ /**
960
+ * Request parameters for deletePartnerHierarchyNode operation in PartnerHierarchyNodesApi.
961
+ * @export
962
+ * @interface PartnerHierarchyNodesApiDeletePartnerHierarchyNodeRequest
963
+ */
964
+ export interface PartnerHierarchyNodesApiDeletePartnerHierarchyNodeRequest {
965
+ /**
966
+ *
967
+ * @type {string}
968
+ * @memberof PartnerHierarchyNodesApiDeletePartnerHierarchyNode
969
+ */
970
+ readonly code: string
971
+
972
+ /**
973
+ * Bearer Token: provided by the login endpoint under the name accessToken.
974
+ * @type {string}
975
+ * @memberof PartnerHierarchyNodesApiDeletePartnerHierarchyNode
976
+ */
977
+ readonly authorization?: string
978
+ }
979
+
980
+ /**
981
+ * Request parameters for getPartnerHierarchyNode operation in PartnerHierarchyNodesApi.
982
+ * @export
983
+ * @interface PartnerHierarchyNodesApiGetPartnerHierarchyNodeRequest
984
+ */
985
+ export interface PartnerHierarchyNodesApiGetPartnerHierarchyNodeRequest {
986
+ /**
987
+ *
988
+ * @type {string}
989
+ * @memberof PartnerHierarchyNodesApiGetPartnerHierarchyNode
990
+ */
991
+ readonly code: string
992
+
993
+ /**
994
+ * Bearer Token: provided by the login endpoint under the name accessToken.
995
+ * @type {string}
996
+ * @memberof PartnerHierarchyNodesApiGetPartnerHierarchyNode
997
+ */
998
+ readonly authorization?: string
999
+ }
1000
+
1001
+ /**
1002
+ * Request parameters for listDescendantPartnerHierarchyNodes operation in PartnerHierarchyNodesApi.
1003
+ * @export
1004
+ * @interface PartnerHierarchyNodesApiListDescendantPartnerHierarchyNodesRequest
1005
+ */
1006
+ export interface PartnerHierarchyNodesApiListDescendantPartnerHierarchyNodesRequest {
1007
+ /**
1008
+ * Code of the partner used to find descendant hierarchy nodes.
1009
+ * @type {string}
1010
+ * @memberof PartnerHierarchyNodesApiListDescendantPartnerHierarchyNodes
1011
+ */
1012
+ readonly partnerCode: string
1013
+
1014
+ /**
1015
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1016
+ * @type {string}
1017
+ * @memberof PartnerHierarchyNodesApiListDescendantPartnerHierarchyNodes
1018
+ */
1019
+ readonly authorization?: string
1020
+
1021
+ /**
1022
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1023
+ * @type {number}
1024
+ * @memberof PartnerHierarchyNodesApiListDescendantPartnerHierarchyNodes
1025
+ */
1026
+ readonly pageSize?: number
1027
+
1028
+ /**
1029
+ * 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.
1030
+ * @type {string}
1031
+ * @memberof PartnerHierarchyNodesApiListDescendantPartnerHierarchyNodes
1032
+ */
1033
+ readonly pageToken?: string
1034
+
1035
+ /**
1036
+ * 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;
1037
+ * @type {string}
1038
+ * @memberof PartnerHierarchyNodesApiListDescendantPartnerHierarchyNodes
1039
+ */
1040
+ readonly filter?: string
1041
+
1042
+ /**
1043
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1044
+ * @type {string}
1045
+ * @memberof PartnerHierarchyNodesApiListDescendantPartnerHierarchyNodes
1046
+ */
1047
+ readonly search?: string
1048
+
1049
+ /**
1050
+ * 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;
1051
+ * @type {string}
1052
+ * @memberof PartnerHierarchyNodesApiListDescendantPartnerHierarchyNodes
1053
+ */
1054
+ readonly order?: string
1055
+
1056
+ /**
1057
+ * 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;
1058
+ * @type {string}
1059
+ * @memberof PartnerHierarchyNodesApiListDescendantPartnerHierarchyNodes
1060
+ */
1061
+ readonly expand?: string
1062
+
1063
+ /**
1064
+ * 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;
1065
+ * @type {string}
1066
+ * @memberof PartnerHierarchyNodesApiListDescendantPartnerHierarchyNodes
1067
+ */
1068
+ readonly filters?: string
1069
+ }
1070
+
1071
+ /**
1072
+ * Request parameters for listPartnerHierarchyNodeHistory operation in PartnerHierarchyNodesApi.
1073
+ * @export
1074
+ * @interface PartnerHierarchyNodesApiListPartnerHierarchyNodeHistoryRequest
1075
+ */
1076
+ export interface PartnerHierarchyNodesApiListPartnerHierarchyNodeHistoryRequest {
1077
+ /**
1078
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1079
+ * @type {string}
1080
+ * @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodeHistory
1081
+ */
1082
+ readonly authorization?: string
1083
+
1084
+ /**
1085
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1086
+ * @type {number}
1087
+ * @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodeHistory
1088
+ */
1089
+ readonly pageSize?: number
1090
+
1091
+ /**
1092
+ * 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.
1093
+ * @type {string}
1094
+ * @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodeHistory
1095
+ */
1096
+ readonly pageToken?: string
1097
+
1098
+ /**
1099
+ * 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;
1100
+ * @type {string}
1101
+ * @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodeHistory
1102
+ */
1103
+ readonly filter?: string
1104
+
1105
+ /**
1106
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1107
+ * @type {string}
1108
+ * @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodeHistory
1109
+ */
1110
+ readonly search?: string
1111
+
1112
+ /**
1113
+ * 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;
1114
+ * @type {string}
1115
+ * @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodeHistory
1116
+ */
1117
+ readonly order?: string
1118
+
1119
+ /**
1120
+ * 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;
1121
+ * @type {string}
1122
+ * @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodeHistory
1123
+ */
1124
+ readonly expand?: string
1125
+
1126
+ /**
1127
+ * 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;
1128
+ * @type {string}
1129
+ * @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodeHistory
1130
+ */
1131
+ readonly filters?: string
1132
+ }
1133
+
1134
+ /**
1135
+ * Request parameters for listPartnerHierarchyNodes operation in PartnerHierarchyNodesApi.
1136
+ * @export
1137
+ * @interface PartnerHierarchyNodesApiListPartnerHierarchyNodesRequest
1138
+ */
1139
+ export interface PartnerHierarchyNodesApiListPartnerHierarchyNodesRequest {
1140
+ /**
1141
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1142
+ * @type {string}
1143
+ * @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodes
1144
+ */
1145
+ readonly authorization?: string
1146
+
1147
+ /**
1148
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1149
+ * @type {number}
1150
+ * @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodes
1151
+ */
1152
+ readonly pageSize?: number
1153
+
1154
+ /**
1155
+ * 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.
1156
+ * @type {string}
1157
+ * @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodes
1158
+ */
1159
+ readonly pageToken?: string
1160
+
1161
+ /**
1162
+ * 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;
1163
+ * @type {string}
1164
+ * @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodes
1165
+ */
1166
+ readonly filter?: string
1167
+
1168
+ /**
1169
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1170
+ * @type {string}
1171
+ * @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodes
1172
+ */
1173
+ readonly search?: string
1174
+
1175
+ /**
1176
+ * 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;
1177
+ * @type {string}
1178
+ * @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodes
1179
+ */
1180
+ readonly order?: string
1181
+
1182
+ /**
1183
+ * 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;
1184
+ * @type {string}
1185
+ * @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodes
1186
+ */
1187
+ readonly expand?: string
1188
+
1189
+ /**
1190
+ * 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;
1191
+ * @type {string}
1192
+ * @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodes
1193
+ */
1194
+ readonly filters?: string
1195
+ }
1196
+
1197
+ /**
1198
+ * Request parameters for movePartnerHierarchyNode operation in PartnerHierarchyNodesApi.
1199
+ * @export
1200
+ * @interface PartnerHierarchyNodesApiMovePartnerHierarchyNodeRequest
1201
+ */
1202
+ export interface PartnerHierarchyNodesApiMovePartnerHierarchyNodeRequest {
1203
+ /**
1204
+ *
1205
+ * @type {string}
1206
+ * @memberof PartnerHierarchyNodesApiMovePartnerHierarchyNode
1207
+ */
1208
+ readonly code: string
1209
+
1210
+ /**
1211
+ *
1212
+ * @type {MovePartnerHierarchyNodeRequestDto}
1213
+ * @memberof PartnerHierarchyNodesApiMovePartnerHierarchyNode
1214
+ */
1215
+ readonly movePartnerHierarchyNodeRequestDto: MovePartnerHierarchyNodeRequestDto
1216
+
1217
+ /**
1218
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1219
+ * @type {string}
1220
+ * @memberof PartnerHierarchyNodesApiMovePartnerHierarchyNode
1221
+ */
1222
+ readonly authorization?: string
1223
+ }
1224
+
1225
+ /**
1226
+ * Request parameters for unassignPartnerHierarchyNode operation in PartnerHierarchyNodesApi.
1227
+ * @export
1228
+ * @interface PartnerHierarchyNodesApiUnassignPartnerHierarchyNodeRequest
1229
+ */
1230
+ export interface PartnerHierarchyNodesApiUnassignPartnerHierarchyNodeRequest {
1231
+ /**
1232
+ *
1233
+ * @type {string}
1234
+ * @memberof PartnerHierarchyNodesApiUnassignPartnerHierarchyNode
1235
+ */
1236
+ readonly code: string
1237
+
1238
+ /**
1239
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1240
+ * @type {string}
1241
+ * @memberof PartnerHierarchyNodesApiUnassignPartnerHierarchyNode
1242
+ */
1243
+ readonly authorization?: string
1244
+ }
1245
+
1246
+ /**
1247
+ * Request parameters for updatePartnerHierarchyNode operation in PartnerHierarchyNodesApi.
1248
+ * @export
1249
+ * @interface PartnerHierarchyNodesApiUpdatePartnerHierarchyNodeRequest
1250
+ */
1251
+ export interface PartnerHierarchyNodesApiUpdatePartnerHierarchyNodeRequest {
1252
+ /**
1253
+ *
1254
+ * @type {string}
1255
+ * @memberof PartnerHierarchyNodesApiUpdatePartnerHierarchyNode
1256
+ */
1257
+ readonly code: string
1258
+
1259
+ /**
1260
+ *
1261
+ * @type {UpdatePartnerHierarchyNodeRequestDto}
1262
+ * @memberof PartnerHierarchyNodesApiUpdatePartnerHierarchyNode
1263
+ */
1264
+ readonly updatePartnerHierarchyNodeRequestDto: UpdatePartnerHierarchyNodeRequestDto
1265
+
1266
+ /**
1267
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1268
+ * @type {string}
1269
+ * @memberof PartnerHierarchyNodesApiUpdatePartnerHierarchyNode
1270
+ */
1271
+ readonly authorization?: string
1272
+ }
1273
+
1274
+ /**
1275
+ * PartnerHierarchyNodesApi - object-oriented interface
1276
+ * @export
1277
+ * @class PartnerHierarchyNodesApi
1278
+ * @extends {BaseAPI}
1279
+ */
1280
+ export class PartnerHierarchyNodesApi extends BaseAPI {
1281
+ /**
1282
+ * Starts batch node creation from an uploaded file and returns the operation status. **Required Permissions** \"partner-management.partners.create\"
1283
+ * @summary Batch create partner hierarchy nodes
1284
+ * @param {PartnerHierarchyNodesApiBatchCreatePartnerHierarchyNodesRequest} requestParameters Request parameters.
1285
+ * @param {*} [options] Override http request option.
1286
+ * @throws {RequiredError}
1287
+ * @memberof PartnerHierarchyNodesApi
1288
+ */
1289
+ public batchCreatePartnerHierarchyNodes(requestParameters: PartnerHierarchyNodesApiBatchCreatePartnerHierarchyNodesRequest, options?: AxiosRequestConfig) {
1290
+ return PartnerHierarchyNodesApiFp(this.configuration).batchCreatePartnerHierarchyNodes(requestParameters.batchCreatePartnerHierarchyNodesRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1291
+ }
1292
+
1293
+ /**
1294
+ * 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\"
1295
+ * @summary Create a partner hierarchy node
1296
+ * @param {PartnerHierarchyNodesApiCreatePartnerHierarchyNodeRequest} requestParameters Request parameters.
1297
+ * @param {*} [options] Override http request option.
1298
+ * @throws {RequiredError}
1299
+ * @memberof PartnerHierarchyNodesApi
1300
+ */
1301
+ public createPartnerHierarchyNode(requestParameters: PartnerHierarchyNodesApiCreatePartnerHierarchyNodeRequest, options?: AxiosRequestConfig) {
1302
+ return PartnerHierarchyNodesApiFp(this.configuration).createPartnerHierarchyNode(requestParameters.createPartnerHierarchyNodeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1303
+ }
1304
+
1305
+ /**
1306
+ * Deletes a partner hierarchy node. The node must have no children before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
1307
+ * @summary Delete a partner hierarchy node
1308
+ * @param {PartnerHierarchyNodesApiDeletePartnerHierarchyNodeRequest} requestParameters Request parameters.
1309
+ * @param {*} [options] Override http request option.
1310
+ * @throws {RequiredError}
1311
+ * @memberof PartnerHierarchyNodesApi
1312
+ */
1313
+ public deletePartnerHierarchyNode(requestParameters: PartnerHierarchyNodesApiDeletePartnerHierarchyNodeRequest, options?: AxiosRequestConfig) {
1314
+ return PartnerHierarchyNodesApiFp(this.configuration).deletePartnerHierarchyNode(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1315
+ }
1316
+
1317
+ /**
1318
+ * Returns the details of one partner hierarchy node. Partner and parent node details can be included when needed. **Required Permissions** \"partner-management.partners.view\"
1319
+ * @summary Get a partner hierarchy node
1320
+ * @param {PartnerHierarchyNodesApiGetPartnerHierarchyNodeRequest} requestParameters Request parameters.
1321
+ * @param {*} [options] Override http request option.
1322
+ * @throws {RequiredError}
1323
+ * @memberof PartnerHierarchyNodesApi
1324
+ */
1325
+ public getPartnerHierarchyNode(requestParameters: PartnerHierarchyNodesApiGetPartnerHierarchyNodeRequest, options?: AxiosRequestConfig) {
1326
+ return PartnerHierarchyNodesApiFp(this.configuration).getPartnerHierarchyNode(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1327
+ }
1328
+
1329
+ /**
1330
+ * Returns a flat paginated list of descendant hierarchy nodes for the selected partner. The partner\'s own nodes are not included. **Required Permissions** \"partner-management.partners.view\"
1331
+ * @summary List descendant partner hierarchy nodes
1332
+ * @param {PartnerHierarchyNodesApiListDescendantPartnerHierarchyNodesRequest} requestParameters Request parameters.
1333
+ * @param {*} [options] Override http request option.
1334
+ * @throws {RequiredError}
1335
+ * @memberof PartnerHierarchyNodesApi
1336
+ */
1337
+ public listDescendantPartnerHierarchyNodes(requestParameters: PartnerHierarchyNodesApiListDescendantPartnerHierarchyNodesRequest, options?: AxiosRequestConfig) {
1338
+ return PartnerHierarchyNodesApiFp(this.configuration).listDescendantPartnerHierarchyNodes(requestParameters.partnerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1339
+ }
1340
+
1341
+ /**
1342
+ * Returns a paginated list of previous versions of partner hierarchy nodes for history review. **Required Permissions** \"partner-management.partners.view\"
1343
+ * @summary List partner hierarchy node history
1344
+ * @param {PartnerHierarchyNodesApiListPartnerHierarchyNodeHistoryRequest} requestParameters Request parameters.
1345
+ * @param {*} [options] Override http request option.
1346
+ * @throws {RequiredError}
1347
+ * @memberof PartnerHierarchyNodesApi
1348
+ */
1349
+ public listPartnerHierarchyNodeHistory(requestParameters: PartnerHierarchyNodesApiListPartnerHierarchyNodeHistoryRequest = {}, options?: AxiosRequestConfig) {
1350
+ return PartnerHierarchyNodesApiFp(this.configuration).listPartnerHierarchyNodeHistory(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1351
+ }
1352
+
1353
+ /**
1354
+ * Returns a paginated list of partner hierarchy nodes. **Required Permissions** \"partner-management.partners.view\"
1355
+ * @summary List partner hierarchy nodes
1356
+ * @param {PartnerHierarchyNodesApiListPartnerHierarchyNodesRequest} requestParameters Request parameters.
1357
+ * @param {*} [options] Override http request option.
1358
+ * @throws {RequiredError}
1359
+ * @memberof PartnerHierarchyNodesApi
1360
+ */
1361
+ public listPartnerHierarchyNodes(requestParameters: PartnerHierarchyNodesApiListPartnerHierarchyNodesRequest = {}, options?: AxiosRequestConfig) {
1362
+ return PartnerHierarchyNodesApiFp(this.configuration).listPartnerHierarchyNodes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1363
+ }
1364
+
1365
+ /**
1366
+ * 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\"
1367
+ * @summary Move a partner hierarchy node to a new parent
1368
+ * @param {PartnerHierarchyNodesApiMovePartnerHierarchyNodeRequest} requestParameters Request parameters.
1369
+ * @param {*} [options] Override http request option.
1370
+ * @throws {RequiredError}
1371
+ * @memberof PartnerHierarchyNodesApi
1372
+ */
1373
+ public movePartnerHierarchyNode(requestParameters: PartnerHierarchyNodesApiMovePartnerHierarchyNodeRequest, options?: AxiosRequestConfig) {
1374
+ return PartnerHierarchyNodesApiFp(this.configuration).movePartnerHierarchyNode(requestParameters.code, requestParameters.movePartnerHierarchyNodeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1375
+ }
1376
+
1377
+ /**
1378
+ * Removes the partner assigned to a partner hierarchy node while keeping the node in the tree. **Required Permissions** \"partner-management.partners.update\"
1379
+ * @summary Unassign a partner from a partner hierarchy node
1380
+ * @param {PartnerHierarchyNodesApiUnassignPartnerHierarchyNodeRequest} requestParameters Request parameters.
1381
+ * @param {*} [options] Override http request option.
1382
+ * @throws {RequiredError}
1383
+ * @memberof PartnerHierarchyNodesApi
1384
+ */
1385
+ public unassignPartnerHierarchyNode(requestParameters: PartnerHierarchyNodesApiUnassignPartnerHierarchyNodeRequest, options?: AxiosRequestConfig) {
1386
+ return PartnerHierarchyNodesApiFp(this.configuration).unassignPartnerHierarchyNode(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1387
+ }
1388
+
1389
+ /**
1390
+ * 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\"
1391
+ * @summary Update a partner hierarchy node
1392
+ * @param {PartnerHierarchyNodesApiUpdatePartnerHierarchyNodeRequest} requestParameters Request parameters.
1393
+ * @param {*} [options] Override http request option.
1394
+ * @throws {RequiredError}
1395
+ * @memberof PartnerHierarchyNodesApi
1396
+ */
1397
+ public updatePartnerHierarchyNode(requestParameters: PartnerHierarchyNodesApiUpdatePartnerHierarchyNodeRequest, options?: AxiosRequestConfig) {
1398
+ return PartnerHierarchyNodesApiFp(this.configuration).updatePartnerHierarchyNode(requestParameters.code, requestParameters.updatePartnerHierarchyNodeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1399
+ }
1400
+ }