@emilgroup/partner-sdk 1.23.0 → 1.23.1-beta.1

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