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