@emilgroup/partner-sdk 1.24.0 → 1.24.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 (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 +1166 -0
  7. package/api/partner-hierarchy-nodes-api.ts +1197 -0
  8. package/api/partner-hierarchy-operations-api.ts +363 -0
  9. package/api/partner-hierarchy-types-api.ts +679 -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 +1037 -0
  18. package/dist/api/partner-hierarchy-nodes-api.d.ts +674 -0
  19. package/dist/api/partner-hierarchy-nodes-api.js +1049 -0
  20. package/dist/api/partner-hierarchy-operations-api.d.ts +215 -0
  21. package/dist/api/partner-hierarchy-operations-api.js +358 -0
  22. package/dist/api/partner-hierarchy-types-api.d.ts +385 -0
  23. package/dist/api/partner-hierarchy-types-api.js +636 -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
@@ -85,11 +85,11 @@ export declare const PartnersApiAxiosParamCreator: (configuration?: Configuratio
85
85
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
86
86
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
87
87
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
88
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode</i>
88
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
89
89
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
90
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels</i>
90
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount</i>
91
91
  * @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.<br/> <br/> <i>Allowed values: partnerType, tags, partnerTagLabels<i>
92
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode</i>
92
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
93
93
  * @param {*} [options] Override http request option.
94
94
  * @throws {RequiredError}
95
95
  */
@@ -110,6 +110,22 @@ export declare const PartnersApiAxiosParamCreator: (configuration?: Configuratio
110
110
  * @throws {RequiredError}
111
111
  */
112
112
  listRelationsForPartner: (code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
113
+ /**
114
+ * Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
115
+ * @summary List sub-partners
116
+ * @param {string} code Unique identifier for the object.
117
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
118
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
119
+ * @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.
120
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
121
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
122
+ * @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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
123
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerType, tags, partnerTagLabels&lt;i&gt;
124
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
125
+ * @param {*} [options] Override http request option.
126
+ * @throws {RequiredError}
127
+ */
128
+ listSubPartners: (code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
113
129
  /**
114
130
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\", \"partner-management.partners.delete\"
115
131
  * @summary Update the partner
@@ -207,11 +223,11 @@ export declare const PartnersApiFp: (configuration?: Configuration) => {
207
223
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
208
224
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
209
225
  * @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.
210
- * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode&lt;/i&gt;
226
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
211
227
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
212
- * @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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels&lt;/i&gt;
228
+ * @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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
213
229
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerType, tags, partnerTagLabels&lt;i&gt;
214
- * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode&lt;/i&gt;
230
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
215
231
  * @param {*} [options] Override http request option.
216
232
  * @throws {RequiredError}
217
233
  */
@@ -232,6 +248,22 @@ export declare const PartnersApiFp: (configuration?: Configuration) => {
232
248
  * @throws {RequiredError}
233
249
  */
234
250
  listRelationsForPartner(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRelatedPartnersResponseClass>>;
251
+ /**
252
+ * Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
253
+ * @summary List sub-partners
254
+ * @param {string} code Unique identifier for the object.
255
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
256
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
257
+ * @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.
258
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
259
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
260
+ * @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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
261
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerType, tags, partnerTagLabels&lt;i&gt;
262
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ listSubPartners(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnersResponseClass>>;
235
267
  /**
236
268
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\", \"partner-management.partners.delete\"
237
269
  * @summary Update the partner
@@ -329,11 +361,11 @@ export declare const PartnersApiFactory: (configuration?: Configuration, basePat
329
361
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
330
362
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
331
363
  * @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.
332
- * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode&lt;/i&gt;
364
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
333
365
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
334
- * @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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels&lt;/i&gt;
366
+ * @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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
335
367
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerType, tags, partnerTagLabels&lt;i&gt;
336
- * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode&lt;/i&gt;
368
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
337
369
  * @param {*} [options] Override http request option.
338
370
  * @throws {RequiredError}
339
371
  */
@@ -354,6 +386,22 @@ export declare const PartnersApiFactory: (configuration?: Configuration, basePat
354
386
  * @throws {RequiredError}
355
387
  */
356
388
  listRelationsForPartner(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRelatedPartnersResponseClass>;
389
+ /**
390
+ * Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
391
+ * @summary List sub-partners
392
+ * @param {string} code Unique identifier for the object.
393
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
394
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
395
+ * @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.
396
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
397
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
398
+ * @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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
399
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerType, tags, partnerTagLabels&lt;i&gt;
400
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
401
+ * @param {*} [options] Override http request option.
402
+ * @throws {RequiredError}
403
+ */
404
+ listSubPartners(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnersResponseClass>;
357
405
  /**
358
406
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\", \"partner-management.partners.delete\"
359
407
  * @summary Update the partner
@@ -520,7 +568,7 @@ export interface PartnersApiListPartnersRequest {
520
568
  */
521
569
  readonly pageToken?: string;
522
570
  /**
523
- * 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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode&lt;/i&gt;
571
+ * 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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
524
572
  * @type {string}
525
573
  * @memberof PartnersApiListPartners
526
574
  */
@@ -532,7 +580,7 @@ export interface PartnersApiListPartnersRequest {
532
580
  */
533
581
  readonly search?: string;
534
582
  /**
535
- * 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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels&lt;/i&gt;
583
+ * 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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
536
584
  * @type {string}
537
585
  * @memberof PartnersApiListPartners
538
586
  */
@@ -544,7 +592,7 @@ export interface PartnersApiListPartnersRequest {
544
592
  */
545
593
  readonly expand?: string;
546
594
  /**
547
- * 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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode&lt;/i&gt;
595
+ * 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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
548
596
  * @type {string}
549
597
  * @memberof PartnersApiListPartners
550
598
  */
@@ -611,6 +659,67 @@ export interface PartnersApiListRelationsForPartnerRequest {
611
659
  */
612
660
  readonly filters?: string;
613
661
  }
662
+ /**
663
+ * Request parameters for listSubPartners operation in PartnersApi.
664
+ * @export
665
+ * @interface PartnersApiListSubPartnersRequest
666
+ */
667
+ export interface PartnersApiListSubPartnersRequest {
668
+ /**
669
+ * Unique identifier for the object.
670
+ * @type {string}
671
+ * @memberof PartnersApiListSubPartners
672
+ */
673
+ readonly code: string;
674
+ /**
675
+ * Bearer Token: provided by the login endpoint under the name accessToken.
676
+ * @type {string}
677
+ * @memberof PartnersApiListSubPartners
678
+ */
679
+ readonly authorization?: string;
680
+ /**
681
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
682
+ * @type {number}
683
+ * @memberof PartnersApiListSubPartners
684
+ */
685
+ readonly pageSize?: number;
686
+ /**
687
+ * 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.
688
+ * @type {string}
689
+ * @memberof PartnersApiListSubPartners
690
+ */
691
+ readonly pageToken?: string;
692
+ /**
693
+ * 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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
694
+ * @type {string}
695
+ * @memberof PartnersApiListSubPartners
696
+ */
697
+ readonly filter?: string;
698
+ /**
699
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
700
+ * @type {string}
701
+ * @memberof PartnersApiListSubPartners
702
+ */
703
+ readonly search?: string;
704
+ /**
705
+ * 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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
706
+ * @type {string}
707
+ * @memberof PartnersApiListSubPartners
708
+ */
709
+ readonly order?: string;
710
+ /**
711
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerType, tags, partnerTagLabels&lt;i&gt;
712
+ * @type {string}
713
+ * @memberof PartnersApiListSubPartners
714
+ */
715
+ readonly expand?: string;
716
+ /**
717
+ * 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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
718
+ * @type {string}
719
+ * @memberof PartnersApiListSubPartners
720
+ */
721
+ readonly filters?: string;
722
+ }
614
723
  /**
615
724
  * Request parameters for mergePartners operation in PartnersApi.
616
725
  * @export
@@ -775,6 +884,15 @@ export declare class PartnersApi extends BaseAPI {
775
884
  * @memberof PartnersApi
776
885
  */
777
886
  listRelationsForPartner(requestParameters: PartnersApiListRelationsForPartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRelatedPartnersResponseClass, any, {}>>;
887
+ /**
888
+ * Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
889
+ * @summary List sub-partners
890
+ * @param {PartnersApiListSubPartnersRequest} requestParameters Request parameters.
891
+ * @param {*} [options] Override http request option.
892
+ * @throws {RequiredError}
893
+ * @memberof PartnersApi
894
+ */
895
+ listSubPartners(requestParameters: PartnersApiListSubPartnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnersResponseClass, any, {}>>;
778
896
  /**
779
897
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\", \"partner-management.partners.delete\"
780
898
  * @summary Update the partner
@@ -344,11 +344,11 @@ var PartnersApiAxiosParamCreator = function (configuration) {
344
344
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
345
345
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
346
346
  * @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.
347
- * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode&lt;/i&gt;
347
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
348
348
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
349
- * @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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels&lt;/i&gt;
349
+ * @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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
350
350
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerType, tags, partnerTagLabels&lt;i&gt;
351
- * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode&lt;/i&gt;
351
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
352
352
  * @param {*} [options] Override http request option.
353
353
  * @throws {RequiredError}
354
354
  */
@@ -486,6 +486,82 @@ var PartnersApiAxiosParamCreator = function (configuration) {
486
486
  });
487
487
  });
488
488
  },
489
+ /**
490
+ * Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
491
+ * @summary List sub-partners
492
+ * @param {string} code Unique identifier for the object.
493
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
494
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
495
+ * @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.
496
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
497
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
498
+ * @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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
499
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerType, tags, partnerTagLabels&lt;i&gt;
500
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
501
+ * @param {*} [options] Override http request option.
502
+ * @throws {RequiredError}
503
+ */
504
+ listSubPartners: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
505
+ if (options === void 0) { options = {}; }
506
+ return __awaiter(_this, void 0, void 0, function () {
507
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
508
+ return __generator(this, function (_a) {
509
+ switch (_a.label) {
510
+ case 0:
511
+ // verify required parameter 'code' is not null or undefined
512
+ (0, common_1.assertParamExists)('listSubPartners', 'code', code);
513
+ localVarPath = "/partnerservice/v1/partners/{code}/sub-partners"
514
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
515
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
516
+ if (configuration) {
517
+ baseOptions = configuration.baseOptions;
518
+ baseAccessToken = configuration.accessToken;
519
+ }
520
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
521
+ localVarHeaderParameter = {};
522
+ localVarQueryParameter = {};
523
+ // authentication bearer required
524
+ // http bearer authentication required
525
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
526
+ case 1:
527
+ // authentication bearer required
528
+ // http bearer authentication required
529
+ _a.sent();
530
+ if (pageSize !== undefined) {
531
+ localVarQueryParameter['pageSize'] = pageSize;
532
+ }
533
+ if (pageToken !== undefined) {
534
+ localVarQueryParameter['pageToken'] = pageToken;
535
+ }
536
+ if (filter !== undefined) {
537
+ localVarQueryParameter['filter'] = filter;
538
+ }
539
+ if (search !== undefined) {
540
+ localVarQueryParameter['search'] = search;
541
+ }
542
+ if (order !== undefined) {
543
+ localVarQueryParameter['order'] = order;
544
+ }
545
+ if (expand !== undefined) {
546
+ localVarQueryParameter['expand'] = expand;
547
+ }
548
+ if (filters !== undefined) {
549
+ localVarQueryParameter['filters'] = filters;
550
+ }
551
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
552
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
553
+ }
554
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
555
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
556
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
557
+ return [2 /*return*/, {
558
+ url: (0, common_1.toPathString)(localVarUrlObj),
559
+ options: localVarRequestOptions,
560
+ }];
561
+ }
562
+ });
563
+ });
564
+ },
489
565
  /**
490
566
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\", \"partner-management.partners.delete\"
491
567
  * @summary Update the partner
@@ -816,11 +892,11 @@ var PartnersApiFp = function (configuration) {
816
892
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
817
893
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
818
894
  * @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.
819
- * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode&lt;/i&gt;
895
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
820
896
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
821
- * @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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels&lt;/i&gt;
897
+ * @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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
822
898
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerType, tags, partnerTagLabels&lt;i&gt;
823
- * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode&lt;/i&gt;
899
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
824
900
  * @param {*} [options] Override http request option.
825
901
  * @throws {RequiredError}
826
902
  */
@@ -865,6 +941,34 @@ var PartnersApiFp = function (configuration) {
865
941
  });
866
942
  });
867
943
  },
944
+ /**
945
+ * Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
946
+ * @summary List sub-partners
947
+ * @param {string} code Unique identifier for the object.
948
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
949
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
950
+ * @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.
951
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
952
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
953
+ * @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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
954
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerType, tags, partnerTagLabels&lt;i&gt;
955
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
956
+ * @param {*} [options] Override http request option.
957
+ * @throws {RequiredError}
958
+ */
959
+ listSubPartners: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
960
+ return __awaiter(this, void 0, void 0, function () {
961
+ var localVarAxiosArgs;
962
+ return __generator(this, function (_a) {
963
+ switch (_a.label) {
964
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSubPartners(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
965
+ case 1:
966
+ localVarAxiosArgs = _a.sent();
967
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
968
+ }
969
+ });
970
+ });
971
+ },
868
972
  /**
869
973
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\", \"partner-management.partners.delete\"
870
974
  * @summary Update the partner
@@ -1024,11 +1128,11 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
1024
1128
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1025
1129
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1026
1130
  * @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.
1027
- * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode&lt;/i&gt;
1131
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
1028
1132
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1029
- * @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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels&lt;/i&gt;
1133
+ * @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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
1030
1134
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerType, tags, partnerTagLabels&lt;i&gt;
1031
- * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode&lt;/i&gt;
1135
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
1032
1136
  * @param {*} [options] Override http request option.
1033
1137
  * @throws {RequiredError}
1034
1138
  */
@@ -1053,6 +1157,24 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
1053
1157
  listRelationsForPartner: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1054
1158
  return localVarFp.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1055
1159
  },
1160
+ /**
1161
+ * Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
1162
+ * @summary List sub-partners
1163
+ * @param {string} code Unique identifier for the object.
1164
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1165
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1166
+ * @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.
1167
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
1168
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1169
+ * @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, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
1170
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerType, tags, partnerTagLabels&lt;i&gt;
1171
+ * @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, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
1172
+ * @param {*} [options] Override http request option.
1173
+ * @throws {RequiredError}
1174
+ */
1175
+ listSubPartners: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1176
+ return localVarFp.listSubPartners(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1177
+ },
1056
1178
  /**
1057
1179
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\", \"partner-management.partners.delete\"
1058
1180
  * @summary Update the partner
@@ -1199,6 +1321,18 @@ var PartnersApi = /** @class */ (function (_super) {
1199
1321
  var _this = this;
1200
1322
  return (0, exports.PartnersApiFp)(this.configuration).listRelationsForPartner(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1201
1323
  };
1324
+ /**
1325
+ * Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
1326
+ * @summary List sub-partners
1327
+ * @param {PartnersApiListSubPartnersRequest} requestParameters Request parameters.
1328
+ * @param {*} [options] Override http request option.
1329
+ * @throws {RequiredError}
1330
+ * @memberof PartnersApi
1331
+ */
1332
+ PartnersApi.prototype.listSubPartners = function (requestParameters, options) {
1333
+ var _this = this;
1334
+ return (0, exports.PartnersApiFp)(this.configuration).listSubPartners(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1335
+ };
1202
1336
  /**
1203
1337
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\", \"partner-management.partners.delete\"
1204
1338
  * @summary Update the partner
package/dist/api.d.ts CHANGED
@@ -11,7 +11,11 @@
11
11
  */
12
12
  export * from './api/blacklist-api';
13
13
  export * from './api/blacklist-reasons-api';
14
- export * from './api/default-api';
14
+ export * from './api/health-api';
15
+ export * from './api/partner-hierarchies-api';
16
+ export * from './api/partner-hierarchy-nodes-api';
17
+ export * from './api/partner-hierarchy-operations-api';
18
+ export * from './api/partner-hierarchy-types-api';
15
19
  export * from './api/partner-invitations-api';
16
20
  export * from './api/partner-relations-api';
17
21
  export * from './api/partner-tags-api';
package/dist/api.js CHANGED
@@ -29,7 +29,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/blacklist-api"), exports);
31
31
  __exportStar(require("./api/blacklist-reasons-api"), exports);
32
- __exportStar(require("./api/default-api"), exports);
32
+ __exportStar(require("./api/health-api"), exports);
33
+ __exportStar(require("./api/partner-hierarchies-api"), exports);
34
+ __exportStar(require("./api/partner-hierarchy-nodes-api"), exports);
35
+ __exportStar(require("./api/partner-hierarchy-operations-api"), exports);
36
+ __exportStar(require("./api/partner-hierarchy-types-api"), exports);
33
37
  __exportStar(require("./api/partner-invitations-api"), exports);
34
38
  __exportStar(require("./api/partner-relations-api"), exports);
35
39
  __exportStar(require("./api/partner-tags-api"), exports);
@@ -0,0 +1,30 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface BatchCreatePartnerHierarchyNodesRequestDto
16
+ */
17
+ export interface BatchCreatePartnerHierarchyNodesRequestDto {
18
+ /**
19
+ * Code of the hierarchy that will receive the uploaded nodes.
20
+ * @type {string}
21
+ * @memberof BatchCreatePartnerHierarchyNodesRequestDto
22
+ */
23
+ 'partnerHierarchyCode': string;
24
+ /**
25
+ * S3 object key returned by the upload URL endpoint after the batch node file is uploaded.
26
+ * @type {string}
27
+ * @memberof BatchCreatePartnerHierarchyNodesRequestDto
28
+ */
29
+ 's3Key': string;
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL PartnerService
6
+ * The EMIL PartnerService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,42 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreatePartnerHierarchyNodeRequestDto
16
+ */
17
+ export interface CreatePartnerHierarchyNodeRequestDto {
18
+ /**
19
+ * Code of the hierarchy this node belongs to.
20
+ * @type {string}
21
+ * @memberof CreatePartnerHierarchyNodeRequestDto
22
+ */
23
+ 'partnerHierarchyCode': string;
24
+ /**
25
+ * Partner code to assign to the new node. Omit to create a vacant hierarchy position.
26
+ * @type {string}
27
+ * @memberof CreatePartnerHierarchyNodeRequestDto
28
+ */
29
+ 'partnerCode'?: string;
30
+ /**
31
+ * Role code for this hierarchy position. It must be allowed by the hierarchy type at the resolved depth.
32
+ * @type {string}
33
+ * @memberof CreatePartnerHierarchyNodeRequestDto
34
+ */
35
+ 'roleCode': string;
36
+ /**
37
+ * Parent node code. Omit when creating the hierarchy root node.
38
+ * @type {string}
39
+ * @memberof CreatePartnerHierarchyNodeRequestDto
40
+ */
41
+ 'parentNodeCode'?: string;
42
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL PartnerService
6
+ * The EMIL PartnerService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });