@emilgroup/partner-sdk-node 1.23.0 → 1.23.1-beta.0

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