@emilgroup/partner-sdk-node 1.22.1-beta.14 → 1.22.1-beta.16

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