@emilgroup/partner-sdk 1.22.1-beta.24 → 1.22.1-beta.25

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