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

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