@emilgroup/partner-sdk-node 1.24.0 → 1.24.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) 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 +1170 -0
  7. package/api/partner-hierarchy-nodes-api.ts +1201 -0
  8. package/api/partner-hierarchy-operations-api.ts +367 -0
  9. package/api/partner-hierarchy-types-api.ts +683 -0
  10. package/api/partners-api.ts +211 -12
  11. package/api.ts +10 -2
  12. package/dist/api/blacklist-api.d.ts +4 -4
  13. package/dist/api/blacklist-reasons-api.d.ts +4 -4
  14. package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
  15. package/dist/api/{default-api.js → health-api.js} +22 -22
  16. package/dist/api/partner-hierarchies-api.d.ts +655 -0
  17. package/dist/api/partner-hierarchies-api.js +1041 -0
  18. package/dist/api/partner-hierarchy-nodes-api.d.ts +674 -0
  19. package/dist/api/partner-hierarchy-nodes-api.js +1053 -0
  20. package/dist/api/partner-hierarchy-operations-api.d.ts +215 -0
  21. package/dist/api/partner-hierarchy-operations-api.js +362 -0
  22. package/dist/api/partner-hierarchy-types-api.d.ts +385 -0
  23. package/dist/api/partner-hierarchy-types-api.js +640 -0
  24. package/dist/api/partners-api.d.ts +130 -12
  25. package/dist/api/partners-api.js +143 -9
  26. package/dist/api.d.ts +5 -1
  27. package/dist/api.js +5 -1
  28. package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.d.ts +30 -0
  29. package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.js +15 -0
  30. package/dist/models/create-partner-hierarchy-node-request-dto.d.ts +42 -0
  31. package/dist/models/create-partner-hierarchy-node-request-dto.js +15 -0
  32. package/dist/models/create-partner-hierarchy-node-response-class.d.ts +25 -0
  33. package/dist/models/create-partner-hierarchy-node-response-class.js +15 -0
  34. package/dist/models/create-partner-hierarchy-request-dto.d.ts +30 -0
  35. package/dist/models/create-partner-hierarchy-request-dto.js +15 -0
  36. package/dist/models/create-partner-hierarchy-response-class.d.ts +25 -0
  37. package/dist/models/create-partner-hierarchy-response-class.js +15 -0
  38. package/dist/models/create-partner-hierarchy-type-request-dto.d.ts +30 -0
  39. package/dist/models/create-partner-hierarchy-type-request-dto.js +15 -0
  40. package/dist/models/create-partner-hierarchy-type-response-class.d.ts +25 -0
  41. package/dist/models/create-partner-hierarchy-type-response-class.js +15 -0
  42. package/dist/models/create-partner-request-dto.d.ts +4 -2
  43. package/dist/models/delete-by-code-response-class.d.ts +24 -0
  44. package/dist/models/delete-by-code-response-class.js +15 -0
  45. package/dist/models/generate-upload-url-response-class.d.ts +36 -0
  46. package/dist/models/generate-upload-url-response-class.js +15 -0
  47. package/dist/models/get-partner-hierarchy-node-response-class.d.ts +25 -0
  48. package/dist/models/get-partner-hierarchy-node-response-class.js +15 -0
  49. package/dist/models/get-partner-hierarchy-operation-response-class.d.ts +25 -0
  50. package/dist/models/get-partner-hierarchy-operation-response-class.js +15 -0
  51. package/dist/models/get-partner-hierarchy-response-class.d.ts +25 -0
  52. package/dist/models/get-partner-hierarchy-response-class.js +15 -0
  53. package/dist/models/get-partner-hierarchy-tree-file-response-class.d.ts +60 -0
  54. package/dist/models/get-partner-hierarchy-tree-file-response-class.js +15 -0
  55. package/dist/models/get-partner-hierarchy-tree-response-class.d.ts +25 -0
  56. package/dist/models/get-partner-hierarchy-tree-response-class.js +15 -0
  57. package/dist/models/get-partner-hierarchy-type-response-class.d.ts +25 -0
  58. package/dist/models/get-partner-hierarchy-type-response-class.js +15 -0
  59. package/dist/models/index.d.ts +37 -0
  60. package/dist/models/index.js +37 -0
  61. package/dist/models/list-blacklist-items-response-class.d.ts +12 -0
  62. package/dist/models/list-partner-hierarchies-response-class.d.ts +43 -0
  63. package/dist/models/list-partner-hierarchies-response-class.js +15 -0
  64. package/dist/models/list-partner-hierarchy-node-history-response-class.d.ts +43 -0
  65. package/dist/models/list-partner-hierarchy-node-history-response-class.js +15 -0
  66. package/dist/models/list-partner-hierarchy-nodes-response-class.d.ts +43 -0
  67. package/dist/models/list-partner-hierarchy-nodes-response-class.js +15 -0
  68. package/dist/models/list-partner-hierarchy-operations-response-class.d.ts +43 -0
  69. package/dist/models/list-partner-hierarchy-operations-response-class.js +15 -0
  70. package/dist/models/list-partner-hierarchy-types-response-class.d.ts +43 -0
  71. package/dist/models/list-partner-hierarchy-types-response-class.js +15 -0
  72. package/dist/models/list-partner-relation-class.d.ts +18 -6
  73. package/dist/models/list-partner-relation-types-class.d.ts +18 -6
  74. package/dist/models/list-partner-types-response-class.d.ts +18 -6
  75. package/dist/models/list-partner-versions-response-class.d.ts +18 -6
  76. package/dist/models/list-partners-response-class.d.ts +12 -0
  77. package/dist/models/list-related-partners-response-class.d.ts +18 -6
  78. package/dist/models/list-tags-response-class.d.ts +18 -6
  79. package/dist/models/merge-partners-request-dto.d.ts +4 -2
  80. package/dist/models/move-partner-hierarchy-node-request-dto.d.ts +30 -0
  81. package/dist/models/move-partner-hierarchy-node-request-dto.js +15 -0
  82. package/dist/models/move-partner-hierarchy-node-response-class.d.ts +25 -0
  83. package/dist/models/move-partner-hierarchy-node-response-class.js +15 -0
  84. package/dist/models/partner-class.d.ts +6 -0
  85. package/dist/models/partner-hierarchy-async-operation-response-class.d.ts +30 -0
  86. package/dist/models/partner-hierarchy-async-operation-response-class.js +15 -0
  87. package/dist/models/partner-hierarchy-class.d.ts +72 -0
  88. package/dist/models/partner-hierarchy-class.js +15 -0
  89. package/dist/models/partner-hierarchy-node-class.d.ts +109 -0
  90. package/dist/models/partner-hierarchy-node-class.js +15 -0
  91. package/dist/models/partner-hierarchy-node-history-class.d.ts +97 -0
  92. package/dist/models/partner-hierarchy-node-history-class.js +15 -0
  93. package/dist/models/partner-hierarchy-node-tree-class.d.ts +96 -0
  94. package/dist/models/partner-hierarchy-node-tree-class.js +15 -0
  95. package/dist/models/partner-hierarchy-operation-class.d.ts +110 -0
  96. package/dist/models/partner-hierarchy-operation-class.js +27 -0
  97. package/dist/models/partner-hierarchy-type-class.d.ts +66 -0
  98. package/dist/models/partner-hierarchy-type-class.js +15 -0
  99. package/dist/models/unassign-partner-hierarchy-node-response-class.d.ts +25 -0
  100. package/dist/models/unassign-partner-hierarchy-node-response-class.js +15 -0
  101. package/dist/models/update-blacklist-reason-status-request-dto.d.ts +1 -1
  102. package/dist/models/update-partner-hierarchy-node-request-dto.d.ts +30 -0
  103. package/dist/models/update-partner-hierarchy-node-request-dto.js +15 -0
  104. package/dist/models/update-partner-hierarchy-node-response-class.d.ts +25 -0
  105. package/dist/models/update-partner-hierarchy-node-response-class.js +15 -0
  106. package/dist/models/update-partner-hierarchy-request-dto.d.ts +24 -0
  107. package/dist/models/update-partner-hierarchy-request-dto.js +15 -0
  108. package/dist/models/update-partner-hierarchy-response-class.d.ts +25 -0
  109. package/dist/models/update-partner-hierarchy-response-class.js +15 -0
  110. package/dist/models/update-partner-hierarchy-tree-request-body-dto.d.ts +24 -0
  111. package/dist/models/update-partner-hierarchy-tree-request-body-dto.js +15 -0
  112. package/dist/models/update-partner-hierarchy-type-request-dto.d.ts +30 -0
  113. package/dist/models/update-partner-hierarchy-type-request-dto.js +15 -0
  114. package/dist/models/update-partner-hierarchy-type-response-class.d.ts +25 -0
  115. package/dist/models/update-partner-hierarchy-type-response-class.js +15 -0
  116. package/dist/models/update-partner-request-dto.d.ts +4 -2
  117. package/models/batch-create-partner-hierarchy-nodes-request-dto.ts +36 -0
  118. package/models/create-partner-hierarchy-node-request-dto.ts +48 -0
  119. package/models/create-partner-hierarchy-node-response-class.ts +31 -0
  120. package/models/create-partner-hierarchy-request-dto.ts +36 -0
  121. package/models/create-partner-hierarchy-response-class.ts +31 -0
  122. package/models/create-partner-hierarchy-type-request-dto.ts +36 -0
  123. package/models/create-partner-hierarchy-type-response-class.ts +31 -0
  124. package/models/create-partner-request-dto.ts +2 -2
  125. package/models/delete-by-code-response-class.ts +30 -0
  126. package/models/generate-upload-url-response-class.ts +42 -0
  127. package/models/get-partner-hierarchy-node-response-class.ts +31 -0
  128. package/models/get-partner-hierarchy-operation-response-class.ts +31 -0
  129. package/models/get-partner-hierarchy-response-class.ts +31 -0
  130. package/models/get-partner-hierarchy-tree-file-response-class.ts +66 -0
  131. package/models/get-partner-hierarchy-tree-response-class.ts +31 -0
  132. package/models/get-partner-hierarchy-type-response-class.ts +31 -0
  133. package/models/index.ts +37 -0
  134. package/models/list-blacklist-items-response-class.ts +12 -0
  135. package/models/list-partner-hierarchies-response-class.ts +49 -0
  136. package/models/list-partner-hierarchy-node-history-response-class.ts +49 -0
  137. package/models/list-partner-hierarchy-nodes-response-class.ts +49 -0
  138. package/models/list-partner-hierarchy-operations-response-class.ts +49 -0
  139. package/models/list-partner-hierarchy-types-response-class.ts +49 -0
  140. package/models/list-partner-relation-class.ts +18 -6
  141. package/models/list-partner-relation-types-class.ts +18 -6
  142. package/models/list-partner-types-response-class.ts +18 -6
  143. package/models/list-partner-versions-response-class.ts +18 -6
  144. package/models/list-partners-response-class.ts +12 -0
  145. package/models/list-related-partners-response-class.ts +18 -6
  146. package/models/list-tags-response-class.ts +18 -6
  147. package/models/merge-partners-request-dto.ts +2 -2
  148. package/models/move-partner-hierarchy-node-request-dto.ts +36 -0
  149. package/models/move-partner-hierarchy-node-response-class.ts +31 -0
  150. package/models/partner-class.ts +6 -0
  151. package/models/partner-hierarchy-async-operation-response-class.ts +36 -0
  152. package/models/partner-hierarchy-class.ts +78 -0
  153. package/models/partner-hierarchy-node-class.ts +115 -0
  154. package/models/partner-hierarchy-node-history-class.ts +103 -0
  155. package/models/partner-hierarchy-node-tree-class.ts +102 -0
  156. package/models/partner-hierarchy-operation-class.ts +120 -0
  157. package/models/partner-hierarchy-type-class.ts +72 -0
  158. package/models/unassign-partner-hierarchy-node-response-class.ts +31 -0
  159. package/models/update-blacklist-reason-status-request-dto.ts +1 -1
  160. package/models/update-partner-hierarchy-node-request-dto.ts +36 -0
  161. package/models/update-partner-hierarchy-node-response-class.ts +31 -0
  162. package/models/update-partner-hierarchy-request-dto.ts +30 -0
  163. package/models/update-partner-hierarchy-response-class.ts +31 -0
  164. package/models/update-partner-hierarchy-tree-request-body-dto.ts +30 -0
  165. package/models/update-partner-hierarchy-type-request-dto.ts +36 -0
  166. package/models/update-partner-hierarchy-type-response-class.ts +31 -0
  167. package/models/update-partner-request-dto.ts +2 -2
  168. package/package.json +1 -1
@@ -0,0 +1,655 @@
1
+ /**
2
+ * EMIL PartnerService
3
+ * The EMIL PartnerService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { CreatePartnerHierarchyRequestDto } from '../models';
16
+ import { CreatePartnerHierarchyResponseClass } from '../models';
17
+ import { DeleteByCodeResponseClass } from '../models';
18
+ import { GenerateUploadUrlResponseClass } from '../models';
19
+ import { GetPartnerHierarchyResponseClass } from '../models';
20
+ import { GetPartnerHierarchyTreeFileResponseClass } from '../models';
21
+ import { GetPartnerHierarchyTreeResponseClass } from '../models';
22
+ import { ListPartnerHierarchiesResponseClass } from '../models';
23
+ import { PartnerHierarchyAsyncOperationResponseClass } from '../models';
24
+ import { UpdatePartnerHierarchyRequestDto } from '../models';
25
+ import { UpdatePartnerHierarchyResponseClass } from '../models';
26
+ import { UpdatePartnerHierarchyTreeRequestBodyDto } from '../models';
27
+ /**
28
+ * PartnerHierarchiesApi - axios parameter creator
29
+ * @export
30
+ */
31
+ export declare const PartnerHierarchiesApiAxiosParamCreator: (configuration?: Configuration) => {
32
+ /**
33
+ * 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\"
34
+ * @summary Create a partner hierarchy
35
+ * @param {CreatePartnerHierarchyRequestDto} createPartnerHierarchyRequestDto
36
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ createPartnerHierarchy: (createPartnerHierarchyRequestDto: CreatePartnerHierarchyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
41
+ /**
42
+ * Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
43
+ * @summary Delete a partner hierarchy
44
+ * @param {string} code Unique identifier for the object.
45
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ deletePartnerHierarchy: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
50
+ /**
51
+ * 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\"
52
+ * @summary Generate a pre-signed upload URL for a partner hierarchy tree file
53
+ * @param {string} code Unique identifier for the object.
54
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
55
+ * @param {*} [options] Override http request option.
56
+ * @throws {RequiredError}
57
+ */
58
+ generateUploadUrl: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
59
+ /**
60
+ * Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
61
+ * @summary Get a partner hierarchy
62
+ * @param {string} code Unique identifier for the object.
63
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
64
+ * @param {*} [options] Override http request option.
65
+ * @throws {RequiredError}
66
+ */
67
+ getPartnerHierarchy: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
68
+ /**
69
+ * 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\"
70
+ * @summary Get part of a partner hierarchy tree
71
+ * @param {string} code Unique identifier for the object.
72
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
73
+ * @param {string} [nodeCode] Node to start from. Omit this to start from the top of the hierarchy.
74
+ * @param {number} [pageSize] Maximum number of direct children to return for the selected node. Default is 30 and the maximum is 50.
75
+ * @param {string} [pageToken] Value returned by the previous response when more children are available.
76
+ * @param {string} [asOf] Shows the hierarchy as it was at this time. Omit this to show the current hierarchy.
77
+ * @param {*} [options] Override http request option.
78
+ * @throws {RequiredError}
79
+ */
80
+ getPartnerHierarchyTree: (code: string, authorization?: string, nodeCode?: string, pageSize?: number, pageToken?: string, asOf?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
81
+ /**
82
+ * 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\"
83
+ * @summary Get a partner hierarchy tree file
84
+ * @param {string} code Unique identifier for the object.
85
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ */
89
+ getPartnerHierarchyTreeFile: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
90
+ /**
91
+ * Returns a paginated list of partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
92
+ * @summary List partner hierarchies
93
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
94
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
95
+ * @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.
96
+ * @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;
97
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
98
+ * @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;
99
+ * @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;
100
+ * @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;
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ listPartnerHierarchies: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
105
+ /**
106
+ * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
107
+ * @summary Update a partner hierarchy
108
+ * @param {string} code Unique identifier for the object.
109
+ * @param {UpdatePartnerHierarchyRequestDto} updatePartnerHierarchyRequestDto
110
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
111
+ * @param {*} [options] Override http request option.
112
+ * @throws {RequiredError}
113
+ */
114
+ updatePartnerHierarchy: (code: string, updatePartnerHierarchyRequestDto: UpdatePartnerHierarchyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
115
+ /**
116
+ * Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
117
+ * @summary Replace the partner hierarchy tree from an uploaded file
118
+ * @param {string} code Unique identifier for the object.
119
+ * @param {UpdatePartnerHierarchyTreeRequestBodyDto} updatePartnerHierarchyTreeRequestBodyDto
120
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ */
124
+ updatePartnerHierarchyTree: (code: string, updatePartnerHierarchyTreeRequestBodyDto: UpdatePartnerHierarchyTreeRequestBodyDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
125
+ };
126
+ /**
127
+ * PartnerHierarchiesApi - functional programming interface
128
+ * @export
129
+ */
130
+ export declare const PartnerHierarchiesApiFp: (configuration?: Configuration) => {
131
+ /**
132
+ * 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\"
133
+ * @summary Create a partner hierarchy
134
+ * @param {CreatePartnerHierarchyRequestDto} createPartnerHierarchyRequestDto
135
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ createPartnerHierarchy(createPartnerHierarchyRequestDto: CreatePartnerHierarchyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePartnerHierarchyResponseClass>>;
140
+ /**
141
+ * Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
142
+ * @summary Delete a partner hierarchy
143
+ * @param {string} code Unique identifier for the object.
144
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
145
+ * @param {*} [options] Override http request option.
146
+ * @throws {RequiredError}
147
+ */
148
+ deletePartnerHierarchy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteByCodeResponseClass>>;
149
+ /**
150
+ * 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\"
151
+ * @summary Generate a pre-signed upload URL for a partner hierarchy tree file
152
+ * @param {string} code Unique identifier for the object.
153
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ */
157
+ generateUploadUrl(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerateUploadUrlResponseClass>>;
158
+ /**
159
+ * Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
160
+ * @summary Get a partner hierarchy
161
+ * @param {string} code Unique identifier for the object.
162
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
163
+ * @param {*} [options] Override http request option.
164
+ * @throws {RequiredError}
165
+ */
166
+ getPartnerHierarchy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerHierarchyResponseClass>>;
167
+ /**
168
+ * 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\"
169
+ * @summary Get part of a partner hierarchy tree
170
+ * @param {string} code Unique identifier for the object.
171
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
172
+ * @param {string} [nodeCode] Node to start from. Omit this to start from the top of the hierarchy.
173
+ * @param {number} [pageSize] Maximum number of direct children to return for the selected node. Default is 30 and the maximum is 50.
174
+ * @param {string} [pageToken] Value returned by the previous response when more children are available.
175
+ * @param {string} [asOf] Shows the hierarchy as it was at this time. Omit this to show the current hierarchy.
176
+ * @param {*} [options] Override http request option.
177
+ * @throws {RequiredError}
178
+ */
179
+ getPartnerHierarchyTree(code: string, authorization?: string, nodeCode?: string, pageSize?: number, pageToken?: string, asOf?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerHierarchyTreeResponseClass>>;
180
+ /**
181
+ * 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\"
182
+ * @summary Get a partner hierarchy tree file
183
+ * @param {string} code Unique identifier for the object.
184
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
185
+ * @param {*} [options] Override http request option.
186
+ * @throws {RequiredError}
187
+ */
188
+ getPartnerHierarchyTreeFile(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerHierarchyTreeFileResponseClass>>;
189
+ /**
190
+ * Returns a paginated list of partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
191
+ * @summary List partner hierarchies
192
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
194
+ * @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.
195
+ * @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;
196
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
197
+ * @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;
198
+ * @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;
199
+ * @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;
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ 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>>;
204
+ /**
205
+ * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
206
+ * @summary Update a partner hierarchy
207
+ * @param {string} code Unique identifier for the object.
208
+ * @param {UpdatePartnerHierarchyRequestDto} updatePartnerHierarchyRequestDto
209
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
210
+ * @param {*} [options] Override http request option.
211
+ * @throws {RequiredError}
212
+ */
213
+ updatePartnerHierarchy(code: string, updatePartnerHierarchyRequestDto: UpdatePartnerHierarchyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePartnerHierarchyResponseClass>>;
214
+ /**
215
+ * Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
216
+ * @summary Replace the partner hierarchy tree from an uploaded file
217
+ * @param {string} code Unique identifier for the object.
218
+ * @param {UpdatePartnerHierarchyTreeRequestBodyDto} updatePartnerHierarchyTreeRequestBodyDto
219
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
220
+ * @param {*} [options] Override http request option.
221
+ * @throws {RequiredError}
222
+ */
223
+ updatePartnerHierarchyTree(code: string, updatePartnerHierarchyTreeRequestBodyDto: UpdatePartnerHierarchyTreeRequestBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerHierarchyAsyncOperationResponseClass>>;
224
+ };
225
+ /**
226
+ * PartnerHierarchiesApi - factory interface
227
+ * @export
228
+ */
229
+ export declare const PartnerHierarchiesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
230
+ /**
231
+ * 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\"
232
+ * @summary Create a partner hierarchy
233
+ * @param {CreatePartnerHierarchyRequestDto} createPartnerHierarchyRequestDto
234
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
235
+ * @param {*} [options] Override http request option.
236
+ * @throws {RequiredError}
237
+ */
238
+ createPartnerHierarchy(createPartnerHierarchyRequestDto: CreatePartnerHierarchyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePartnerHierarchyResponseClass>;
239
+ /**
240
+ * Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
241
+ * @summary Delete a partner hierarchy
242
+ * @param {string} code Unique identifier for the object.
243
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
244
+ * @param {*} [options] Override http request option.
245
+ * @throws {RequiredError}
246
+ */
247
+ deletePartnerHierarchy(code: string, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass>;
248
+ /**
249
+ * 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\"
250
+ * @summary Generate a pre-signed upload URL for a partner hierarchy tree file
251
+ * @param {string} code Unique identifier for the object.
252
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
253
+ * @param {*} [options] Override http request option.
254
+ * @throws {RequiredError}
255
+ */
256
+ generateUploadUrl(code: string, authorization?: string, options?: any): AxiosPromise<GenerateUploadUrlResponseClass>;
257
+ /**
258
+ * Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
259
+ * @summary Get a partner hierarchy
260
+ * @param {string} code Unique identifier for the object.
261
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
262
+ * @param {*} [options] Override http request option.
263
+ * @throws {RequiredError}
264
+ */
265
+ getPartnerHierarchy(code: string, authorization?: string, options?: any): AxiosPromise<GetPartnerHierarchyResponseClass>;
266
+ /**
267
+ * 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\"
268
+ * @summary Get part of a partner hierarchy tree
269
+ * @param {string} code Unique identifier for the object.
270
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
271
+ * @param {string} [nodeCode] Node to start from. Omit this to start from the top of the hierarchy.
272
+ * @param {number} [pageSize] Maximum number of direct children to return for the selected node. Default is 30 and the maximum is 50.
273
+ * @param {string} [pageToken] Value returned by the previous response when more children are available.
274
+ * @param {string} [asOf] Shows the hierarchy as it was at this time. Omit this to show the current hierarchy.
275
+ * @param {*} [options] Override http request option.
276
+ * @throws {RequiredError}
277
+ */
278
+ getPartnerHierarchyTree(code: string, authorization?: string, nodeCode?: string, pageSize?: number, pageToken?: string, asOf?: string, options?: any): AxiosPromise<GetPartnerHierarchyTreeResponseClass>;
279
+ /**
280
+ * 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\"
281
+ * @summary Get a partner hierarchy tree file
282
+ * @param {string} code Unique identifier for the object.
283
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
284
+ * @param {*} [options] Override http request option.
285
+ * @throws {RequiredError}
286
+ */
287
+ getPartnerHierarchyTreeFile(code: string, authorization?: string, options?: any): AxiosPromise<GetPartnerHierarchyTreeFileResponseClass>;
288
+ /**
289
+ * Returns a paginated list of partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
290
+ * @summary List partner hierarchies
291
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
292
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
293
+ * @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.
294
+ * @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;
295
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
296
+ * @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;
297
+ * @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;
298
+ * @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;
299
+ * @param {*} [options] Override http request option.
300
+ * @throws {RequiredError}
301
+ */
302
+ listPartnerHierarchies(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerHierarchiesResponseClass>;
303
+ /**
304
+ * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
305
+ * @summary Update a partner hierarchy
306
+ * @param {string} code Unique identifier for the object.
307
+ * @param {UpdatePartnerHierarchyRequestDto} updatePartnerHierarchyRequestDto
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
+ updatePartnerHierarchy(code: string, updatePartnerHierarchyRequestDto: UpdatePartnerHierarchyRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePartnerHierarchyResponseClass>;
313
+ /**
314
+ * Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
315
+ * @summary Replace the partner hierarchy tree from an uploaded file
316
+ * @param {string} code Unique identifier for the object.
317
+ * @param {UpdatePartnerHierarchyTreeRequestBodyDto} updatePartnerHierarchyTreeRequestBodyDto
318
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
319
+ * @param {*} [options] Override http request option.
320
+ * @throws {RequiredError}
321
+ */
322
+ updatePartnerHierarchyTree(code: string, updatePartnerHierarchyTreeRequestBodyDto: UpdatePartnerHierarchyTreeRequestBodyDto, authorization?: string, options?: any): AxiosPromise<PartnerHierarchyAsyncOperationResponseClass>;
323
+ };
324
+ /**
325
+ * Request parameters for createPartnerHierarchy operation in PartnerHierarchiesApi.
326
+ * @export
327
+ * @interface PartnerHierarchiesApiCreatePartnerHierarchyRequest
328
+ */
329
+ export interface PartnerHierarchiesApiCreatePartnerHierarchyRequest {
330
+ /**
331
+ *
332
+ * @type {CreatePartnerHierarchyRequestDto}
333
+ * @memberof PartnerHierarchiesApiCreatePartnerHierarchy
334
+ */
335
+ readonly createPartnerHierarchyRequestDto: CreatePartnerHierarchyRequestDto;
336
+ /**
337
+ * Bearer Token: provided by the login endpoint under the name accessToken.
338
+ * @type {string}
339
+ * @memberof PartnerHierarchiesApiCreatePartnerHierarchy
340
+ */
341
+ readonly authorization?: string;
342
+ }
343
+ /**
344
+ * Request parameters for deletePartnerHierarchy operation in PartnerHierarchiesApi.
345
+ * @export
346
+ * @interface PartnerHierarchiesApiDeletePartnerHierarchyRequest
347
+ */
348
+ export interface PartnerHierarchiesApiDeletePartnerHierarchyRequest {
349
+ /**
350
+ * Unique identifier for the object.
351
+ * @type {string}
352
+ * @memberof PartnerHierarchiesApiDeletePartnerHierarchy
353
+ */
354
+ readonly code: string;
355
+ /**
356
+ * Bearer Token: provided by the login endpoint under the name accessToken.
357
+ * @type {string}
358
+ * @memberof PartnerHierarchiesApiDeletePartnerHierarchy
359
+ */
360
+ readonly authorization?: string;
361
+ }
362
+ /**
363
+ * Request parameters for generateUploadUrl operation in PartnerHierarchiesApi.
364
+ * @export
365
+ * @interface PartnerHierarchiesApiGenerateUploadUrlRequest
366
+ */
367
+ export interface PartnerHierarchiesApiGenerateUploadUrlRequest {
368
+ /**
369
+ * Unique identifier for the object.
370
+ * @type {string}
371
+ * @memberof PartnerHierarchiesApiGenerateUploadUrl
372
+ */
373
+ readonly code: string;
374
+ /**
375
+ * Bearer Token: provided by the login endpoint under the name accessToken.
376
+ * @type {string}
377
+ * @memberof PartnerHierarchiesApiGenerateUploadUrl
378
+ */
379
+ readonly authorization?: string;
380
+ }
381
+ /**
382
+ * Request parameters for getPartnerHierarchy operation in PartnerHierarchiesApi.
383
+ * @export
384
+ * @interface PartnerHierarchiesApiGetPartnerHierarchyRequest
385
+ */
386
+ export interface PartnerHierarchiesApiGetPartnerHierarchyRequest {
387
+ /**
388
+ * Unique identifier for the object.
389
+ * @type {string}
390
+ * @memberof PartnerHierarchiesApiGetPartnerHierarchy
391
+ */
392
+ readonly code: string;
393
+ /**
394
+ * Bearer Token: provided by the login endpoint under the name accessToken.
395
+ * @type {string}
396
+ * @memberof PartnerHierarchiesApiGetPartnerHierarchy
397
+ */
398
+ readonly authorization?: string;
399
+ }
400
+ /**
401
+ * Request parameters for getPartnerHierarchyTree operation in PartnerHierarchiesApi.
402
+ * @export
403
+ * @interface PartnerHierarchiesApiGetPartnerHierarchyTreeRequest
404
+ */
405
+ export interface PartnerHierarchiesApiGetPartnerHierarchyTreeRequest {
406
+ /**
407
+ * Unique identifier for the object.
408
+ * @type {string}
409
+ * @memberof PartnerHierarchiesApiGetPartnerHierarchyTree
410
+ */
411
+ readonly code: string;
412
+ /**
413
+ * Bearer Token: provided by the login endpoint under the name accessToken.
414
+ * @type {string}
415
+ * @memberof PartnerHierarchiesApiGetPartnerHierarchyTree
416
+ */
417
+ readonly authorization?: string;
418
+ /**
419
+ * Node to start from. Omit this to start from the top of the hierarchy.
420
+ * @type {string}
421
+ * @memberof PartnerHierarchiesApiGetPartnerHierarchyTree
422
+ */
423
+ readonly nodeCode?: string;
424
+ /**
425
+ * Maximum number of direct children to return for the selected node. Default is 30 and the maximum is 50.
426
+ * @type {number}
427
+ * @memberof PartnerHierarchiesApiGetPartnerHierarchyTree
428
+ */
429
+ readonly pageSize?: number;
430
+ /**
431
+ * Value returned by the previous response when more children are available.
432
+ * @type {string}
433
+ * @memberof PartnerHierarchiesApiGetPartnerHierarchyTree
434
+ */
435
+ readonly pageToken?: string;
436
+ /**
437
+ * Shows the hierarchy as it was at this time. Omit this to show the current hierarchy.
438
+ * @type {string}
439
+ * @memberof PartnerHierarchiesApiGetPartnerHierarchyTree
440
+ */
441
+ readonly asOf?: string;
442
+ }
443
+ /**
444
+ * Request parameters for getPartnerHierarchyTreeFile operation in PartnerHierarchiesApi.
445
+ * @export
446
+ * @interface PartnerHierarchiesApiGetPartnerHierarchyTreeFileRequest
447
+ */
448
+ export interface PartnerHierarchiesApiGetPartnerHierarchyTreeFileRequest {
449
+ /**
450
+ * Unique identifier for the object.
451
+ * @type {string}
452
+ * @memberof PartnerHierarchiesApiGetPartnerHierarchyTreeFile
453
+ */
454
+ readonly code: string;
455
+ /**
456
+ * Bearer Token: provided by the login endpoint under the name accessToken.
457
+ * @type {string}
458
+ * @memberof PartnerHierarchiesApiGetPartnerHierarchyTreeFile
459
+ */
460
+ readonly authorization?: string;
461
+ }
462
+ /**
463
+ * Request parameters for listPartnerHierarchies operation in PartnerHierarchiesApi.
464
+ * @export
465
+ * @interface PartnerHierarchiesApiListPartnerHierarchiesRequest
466
+ */
467
+ export interface PartnerHierarchiesApiListPartnerHierarchiesRequest {
468
+ /**
469
+ * Bearer Token: provided by the login endpoint under the name accessToken.
470
+ * @type {string}
471
+ * @memberof PartnerHierarchiesApiListPartnerHierarchies
472
+ */
473
+ readonly authorization?: string;
474
+ /**
475
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
476
+ * @type {number}
477
+ * @memberof PartnerHierarchiesApiListPartnerHierarchies
478
+ */
479
+ readonly pageSize?: number;
480
+ /**
481
+ * 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.
482
+ * @type {string}
483
+ * @memberof PartnerHierarchiesApiListPartnerHierarchies
484
+ */
485
+ readonly pageToken?: string;
486
+ /**
487
+ * 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;
488
+ * @type {string}
489
+ * @memberof PartnerHierarchiesApiListPartnerHierarchies
490
+ */
491
+ readonly filter?: string;
492
+ /**
493
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
494
+ * @type {string}
495
+ * @memberof PartnerHierarchiesApiListPartnerHierarchies
496
+ */
497
+ readonly search?: string;
498
+ /**
499
+ * 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;
500
+ * @type {string}
501
+ * @memberof PartnerHierarchiesApiListPartnerHierarchies
502
+ */
503
+ readonly order?: string;
504
+ /**
505
+ * 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;
506
+ * @type {string}
507
+ * @memberof PartnerHierarchiesApiListPartnerHierarchies
508
+ */
509
+ readonly expand?: string;
510
+ /**
511
+ * 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;
512
+ * @type {string}
513
+ * @memberof PartnerHierarchiesApiListPartnerHierarchies
514
+ */
515
+ readonly filters?: string;
516
+ }
517
+ /**
518
+ * Request parameters for updatePartnerHierarchy operation in PartnerHierarchiesApi.
519
+ * @export
520
+ * @interface PartnerHierarchiesApiUpdatePartnerHierarchyRequest
521
+ */
522
+ export interface PartnerHierarchiesApiUpdatePartnerHierarchyRequest {
523
+ /**
524
+ * Unique identifier for the object.
525
+ * @type {string}
526
+ * @memberof PartnerHierarchiesApiUpdatePartnerHierarchy
527
+ */
528
+ readonly code: string;
529
+ /**
530
+ *
531
+ * @type {UpdatePartnerHierarchyRequestDto}
532
+ * @memberof PartnerHierarchiesApiUpdatePartnerHierarchy
533
+ */
534
+ readonly updatePartnerHierarchyRequestDto: UpdatePartnerHierarchyRequestDto;
535
+ /**
536
+ * Bearer Token: provided by the login endpoint under the name accessToken.
537
+ * @type {string}
538
+ * @memberof PartnerHierarchiesApiUpdatePartnerHierarchy
539
+ */
540
+ readonly authorization?: string;
541
+ }
542
+ /**
543
+ * Request parameters for updatePartnerHierarchyTree operation in PartnerHierarchiesApi.
544
+ * @export
545
+ * @interface PartnerHierarchiesApiUpdatePartnerHierarchyTreeRequest
546
+ */
547
+ export interface PartnerHierarchiesApiUpdatePartnerHierarchyTreeRequest {
548
+ /**
549
+ * Unique identifier for the object.
550
+ * @type {string}
551
+ * @memberof PartnerHierarchiesApiUpdatePartnerHierarchyTree
552
+ */
553
+ readonly code: string;
554
+ /**
555
+ *
556
+ * @type {UpdatePartnerHierarchyTreeRequestBodyDto}
557
+ * @memberof PartnerHierarchiesApiUpdatePartnerHierarchyTree
558
+ */
559
+ readonly updatePartnerHierarchyTreeRequestBodyDto: UpdatePartnerHierarchyTreeRequestBodyDto;
560
+ /**
561
+ * Bearer Token: provided by the login endpoint under the name accessToken.
562
+ * @type {string}
563
+ * @memberof PartnerHierarchiesApiUpdatePartnerHierarchyTree
564
+ */
565
+ readonly authorization?: string;
566
+ }
567
+ /**
568
+ * PartnerHierarchiesApi - object-oriented interface
569
+ * @export
570
+ * @class PartnerHierarchiesApi
571
+ * @extends {BaseAPI}
572
+ */
573
+ export declare class PartnerHierarchiesApi extends BaseAPI {
574
+ /**
575
+ * 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\"
576
+ * @summary Create a partner hierarchy
577
+ * @param {PartnerHierarchiesApiCreatePartnerHierarchyRequest} requestParameters Request parameters.
578
+ * @param {*} [options] Override http request option.
579
+ * @throws {RequiredError}
580
+ * @memberof PartnerHierarchiesApi
581
+ */
582
+ createPartnerHierarchy(requestParameters: PartnerHierarchiesApiCreatePartnerHierarchyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePartnerHierarchyResponseClass, any, {}>>;
583
+ /**
584
+ * Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
585
+ * @summary Delete a partner hierarchy
586
+ * @param {PartnerHierarchiesApiDeletePartnerHierarchyRequest} requestParameters Request parameters.
587
+ * @param {*} [options] Override http request option.
588
+ * @throws {RequiredError}
589
+ * @memberof PartnerHierarchiesApi
590
+ */
591
+ deletePartnerHierarchy(requestParameters: PartnerHierarchiesApiDeletePartnerHierarchyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteByCodeResponseClass, any, {}>>;
592
+ /**
593
+ * 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\"
594
+ * @summary Generate a pre-signed upload URL for a partner hierarchy tree file
595
+ * @param {PartnerHierarchiesApiGenerateUploadUrlRequest} requestParameters Request parameters.
596
+ * @param {*} [options] Override http request option.
597
+ * @throws {RequiredError}
598
+ * @memberof PartnerHierarchiesApi
599
+ */
600
+ generateUploadUrl(requestParameters: PartnerHierarchiesApiGenerateUploadUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerateUploadUrlResponseClass, any, {}>>;
601
+ /**
602
+ * Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
603
+ * @summary Get a partner hierarchy
604
+ * @param {PartnerHierarchiesApiGetPartnerHierarchyRequest} requestParameters Request parameters.
605
+ * @param {*} [options] Override http request option.
606
+ * @throws {RequiredError}
607
+ * @memberof PartnerHierarchiesApi
608
+ */
609
+ getPartnerHierarchy(requestParameters: PartnerHierarchiesApiGetPartnerHierarchyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerHierarchyResponseClass, any, {}>>;
610
+ /**
611
+ * 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\"
612
+ * @summary Get part of a partner hierarchy tree
613
+ * @param {PartnerHierarchiesApiGetPartnerHierarchyTreeRequest} requestParameters Request parameters.
614
+ * @param {*} [options] Override http request option.
615
+ * @throws {RequiredError}
616
+ * @memberof PartnerHierarchiesApi
617
+ */
618
+ getPartnerHierarchyTree(requestParameters: PartnerHierarchiesApiGetPartnerHierarchyTreeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerHierarchyTreeResponseClass, any, {}>>;
619
+ /**
620
+ * 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\"
621
+ * @summary Get a partner hierarchy tree file
622
+ * @param {PartnerHierarchiesApiGetPartnerHierarchyTreeFileRequest} requestParameters Request parameters.
623
+ * @param {*} [options] Override http request option.
624
+ * @throws {RequiredError}
625
+ * @memberof PartnerHierarchiesApi
626
+ */
627
+ getPartnerHierarchyTreeFile(requestParameters: PartnerHierarchiesApiGetPartnerHierarchyTreeFileRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerHierarchyTreeFileResponseClass, any, {}>>;
628
+ /**
629
+ * Returns a paginated list of partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
630
+ * @summary List partner hierarchies
631
+ * @param {PartnerHierarchiesApiListPartnerHierarchiesRequest} requestParameters Request parameters.
632
+ * @param {*} [options] Override http request option.
633
+ * @throws {RequiredError}
634
+ * @memberof PartnerHierarchiesApi
635
+ */
636
+ listPartnerHierarchies(requestParameters?: PartnerHierarchiesApiListPartnerHierarchiesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnerHierarchiesResponseClass, any, {}>>;
637
+ /**
638
+ * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
639
+ * @summary Update a partner hierarchy
640
+ * @param {PartnerHierarchiesApiUpdatePartnerHierarchyRequest} requestParameters Request parameters.
641
+ * @param {*} [options] Override http request option.
642
+ * @throws {RequiredError}
643
+ * @memberof PartnerHierarchiesApi
644
+ */
645
+ updatePartnerHierarchy(requestParameters: PartnerHierarchiesApiUpdatePartnerHierarchyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePartnerHierarchyResponseClass, any, {}>>;
646
+ /**
647
+ * Replaces the current partner hierarchy tree using the contents of an uploaded file. **Required Permissions** \"partner-management.partners.update\"
648
+ * @summary Replace the partner hierarchy tree from an uploaded file
649
+ * @param {PartnerHierarchiesApiUpdatePartnerHierarchyTreeRequest} requestParameters Request parameters.
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ * @memberof PartnerHierarchiesApi
653
+ */
654
+ updatePartnerHierarchyTree(requestParameters: PartnerHierarchiesApiUpdatePartnerHierarchyTreeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PartnerHierarchyAsyncOperationResponseClass, any, {}>>;
655
+ }