@emilgroup/partner-sdk-node 1.23.1-beta.7 → 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 (171) 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/base.ts +1 -0
  13. package/dist/api/blacklist-api.d.ts +4 -4
  14. package/dist/api/blacklist-reasons-api.d.ts +4 -4
  15. package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
  16. package/dist/api/{default-api.js → health-api.js} +22 -22
  17. package/dist/api/partner-hierarchies-api.d.ts +655 -0
  18. package/dist/api/partner-hierarchies-api.js +1041 -0
  19. package/dist/api/partner-hierarchy-nodes-api.d.ts +674 -0
  20. package/dist/api/partner-hierarchy-nodes-api.js +1053 -0
  21. package/dist/api/partner-hierarchy-operations-api.d.ts +215 -0
  22. package/dist/api/partner-hierarchy-operations-api.js +362 -0
  23. package/dist/api/partner-hierarchy-types-api.d.ts +385 -0
  24. package/dist/api/partner-hierarchy-types-api.js +640 -0
  25. package/dist/api/partners-api.d.ts +130 -12
  26. package/dist/api/partners-api.js +143 -9
  27. package/dist/api.d.ts +5 -1
  28. package/dist/api.js +5 -1
  29. package/dist/base.d.ts +2 -1
  30. package/dist/base.js +1 -0
  31. package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.d.ts +30 -0
  32. package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.js +15 -0
  33. package/dist/models/create-partner-hierarchy-node-request-dto.d.ts +42 -0
  34. package/dist/models/create-partner-hierarchy-node-request-dto.js +15 -0
  35. package/dist/models/create-partner-hierarchy-node-response-class.d.ts +25 -0
  36. package/dist/models/create-partner-hierarchy-node-response-class.js +15 -0
  37. package/dist/models/create-partner-hierarchy-request-dto.d.ts +30 -0
  38. package/dist/models/create-partner-hierarchy-request-dto.js +15 -0
  39. package/dist/models/create-partner-hierarchy-response-class.d.ts +25 -0
  40. package/dist/models/create-partner-hierarchy-response-class.js +15 -0
  41. package/dist/models/create-partner-hierarchy-type-request-dto.d.ts +30 -0
  42. package/dist/models/create-partner-hierarchy-type-request-dto.js +15 -0
  43. package/dist/models/create-partner-hierarchy-type-response-class.d.ts +25 -0
  44. package/dist/models/create-partner-hierarchy-type-response-class.js +15 -0
  45. package/dist/models/create-partner-request-dto.d.ts +4 -2
  46. package/dist/models/delete-by-code-response-class.d.ts +24 -0
  47. package/dist/models/delete-by-code-response-class.js +15 -0
  48. package/dist/models/generate-upload-url-response-class.d.ts +36 -0
  49. package/dist/models/generate-upload-url-response-class.js +15 -0
  50. package/dist/models/get-partner-hierarchy-node-response-class.d.ts +25 -0
  51. package/dist/models/get-partner-hierarchy-node-response-class.js +15 -0
  52. package/dist/models/get-partner-hierarchy-operation-response-class.d.ts +25 -0
  53. package/dist/models/get-partner-hierarchy-operation-response-class.js +15 -0
  54. package/dist/models/get-partner-hierarchy-response-class.d.ts +25 -0
  55. package/dist/models/get-partner-hierarchy-response-class.js +15 -0
  56. package/dist/models/get-partner-hierarchy-tree-file-response-class.d.ts +60 -0
  57. package/dist/models/get-partner-hierarchy-tree-file-response-class.js +15 -0
  58. package/dist/models/get-partner-hierarchy-tree-response-class.d.ts +25 -0
  59. package/dist/models/get-partner-hierarchy-tree-response-class.js +15 -0
  60. package/dist/models/get-partner-hierarchy-type-response-class.d.ts +25 -0
  61. package/dist/models/get-partner-hierarchy-type-response-class.js +15 -0
  62. package/dist/models/index.d.ts +37 -0
  63. package/dist/models/index.js +37 -0
  64. package/dist/models/list-blacklist-items-response-class.d.ts +12 -0
  65. package/dist/models/list-partner-hierarchies-response-class.d.ts +43 -0
  66. package/dist/models/list-partner-hierarchies-response-class.js +15 -0
  67. package/dist/models/list-partner-hierarchy-node-history-response-class.d.ts +43 -0
  68. package/dist/models/list-partner-hierarchy-node-history-response-class.js +15 -0
  69. package/dist/models/list-partner-hierarchy-nodes-response-class.d.ts +43 -0
  70. package/dist/models/list-partner-hierarchy-nodes-response-class.js +15 -0
  71. package/dist/models/list-partner-hierarchy-operations-response-class.d.ts +43 -0
  72. package/dist/models/list-partner-hierarchy-operations-response-class.js +15 -0
  73. package/dist/models/list-partner-hierarchy-types-response-class.d.ts +43 -0
  74. package/dist/models/list-partner-hierarchy-types-response-class.js +15 -0
  75. package/dist/models/list-partner-relation-class.d.ts +18 -6
  76. package/dist/models/list-partner-relation-types-class.d.ts +18 -6
  77. package/dist/models/list-partner-types-response-class.d.ts +18 -6
  78. package/dist/models/list-partner-versions-response-class.d.ts +18 -6
  79. package/dist/models/list-partners-response-class.d.ts +12 -0
  80. package/dist/models/list-related-partners-response-class.d.ts +18 -6
  81. package/dist/models/list-tags-response-class.d.ts +18 -6
  82. package/dist/models/merge-partners-request-dto.d.ts +4 -2
  83. package/dist/models/move-partner-hierarchy-node-request-dto.d.ts +30 -0
  84. package/dist/models/move-partner-hierarchy-node-request-dto.js +15 -0
  85. package/dist/models/move-partner-hierarchy-node-response-class.d.ts +25 -0
  86. package/dist/models/move-partner-hierarchy-node-response-class.js +15 -0
  87. package/dist/models/partner-class.d.ts +6 -0
  88. package/dist/models/partner-hierarchy-async-operation-response-class.d.ts +30 -0
  89. package/dist/models/partner-hierarchy-async-operation-response-class.js +15 -0
  90. package/dist/models/partner-hierarchy-class.d.ts +72 -0
  91. package/dist/models/partner-hierarchy-class.js +15 -0
  92. package/dist/models/partner-hierarchy-node-class.d.ts +109 -0
  93. package/dist/models/partner-hierarchy-node-class.js +15 -0
  94. package/dist/models/partner-hierarchy-node-history-class.d.ts +97 -0
  95. package/dist/models/partner-hierarchy-node-history-class.js +15 -0
  96. package/dist/models/partner-hierarchy-node-tree-class.d.ts +96 -0
  97. package/dist/models/partner-hierarchy-node-tree-class.js +15 -0
  98. package/dist/models/partner-hierarchy-operation-class.d.ts +110 -0
  99. package/dist/models/partner-hierarchy-operation-class.js +27 -0
  100. package/dist/models/partner-hierarchy-type-class.d.ts +66 -0
  101. package/dist/models/partner-hierarchy-type-class.js +15 -0
  102. package/dist/models/unassign-partner-hierarchy-node-response-class.d.ts +25 -0
  103. package/dist/models/unassign-partner-hierarchy-node-response-class.js +15 -0
  104. package/dist/models/update-blacklist-reason-status-request-dto.d.ts +1 -1
  105. package/dist/models/update-partner-hierarchy-node-request-dto.d.ts +30 -0
  106. package/dist/models/update-partner-hierarchy-node-request-dto.js +15 -0
  107. package/dist/models/update-partner-hierarchy-node-response-class.d.ts +25 -0
  108. package/dist/models/update-partner-hierarchy-node-response-class.js +15 -0
  109. package/dist/models/update-partner-hierarchy-request-dto.d.ts +24 -0
  110. package/dist/models/update-partner-hierarchy-request-dto.js +15 -0
  111. package/dist/models/update-partner-hierarchy-response-class.d.ts +25 -0
  112. package/dist/models/update-partner-hierarchy-response-class.js +15 -0
  113. package/dist/models/update-partner-hierarchy-tree-request-body-dto.d.ts +24 -0
  114. package/dist/models/update-partner-hierarchy-tree-request-body-dto.js +15 -0
  115. package/dist/models/update-partner-hierarchy-type-request-dto.d.ts +30 -0
  116. package/dist/models/update-partner-hierarchy-type-request-dto.js +15 -0
  117. package/dist/models/update-partner-hierarchy-type-response-class.d.ts +25 -0
  118. package/dist/models/update-partner-hierarchy-type-response-class.js +15 -0
  119. package/dist/models/update-partner-request-dto.d.ts +4 -2
  120. package/models/batch-create-partner-hierarchy-nodes-request-dto.ts +36 -0
  121. package/models/create-partner-hierarchy-node-request-dto.ts +48 -0
  122. package/models/create-partner-hierarchy-node-response-class.ts +31 -0
  123. package/models/create-partner-hierarchy-request-dto.ts +36 -0
  124. package/models/create-partner-hierarchy-response-class.ts +31 -0
  125. package/models/create-partner-hierarchy-type-request-dto.ts +36 -0
  126. package/models/create-partner-hierarchy-type-response-class.ts +31 -0
  127. package/models/create-partner-request-dto.ts +2 -2
  128. package/models/delete-by-code-response-class.ts +30 -0
  129. package/models/generate-upload-url-response-class.ts +42 -0
  130. package/models/get-partner-hierarchy-node-response-class.ts +31 -0
  131. package/models/get-partner-hierarchy-operation-response-class.ts +31 -0
  132. package/models/get-partner-hierarchy-response-class.ts +31 -0
  133. package/models/get-partner-hierarchy-tree-file-response-class.ts +66 -0
  134. package/models/get-partner-hierarchy-tree-response-class.ts +31 -0
  135. package/models/get-partner-hierarchy-type-response-class.ts +31 -0
  136. package/models/index.ts +37 -0
  137. package/models/list-blacklist-items-response-class.ts +12 -0
  138. package/models/list-partner-hierarchies-response-class.ts +49 -0
  139. package/models/list-partner-hierarchy-node-history-response-class.ts +49 -0
  140. package/models/list-partner-hierarchy-nodes-response-class.ts +49 -0
  141. package/models/list-partner-hierarchy-operations-response-class.ts +49 -0
  142. package/models/list-partner-hierarchy-types-response-class.ts +49 -0
  143. package/models/list-partner-relation-class.ts +18 -6
  144. package/models/list-partner-relation-types-class.ts +18 -6
  145. package/models/list-partner-types-response-class.ts +18 -6
  146. package/models/list-partner-versions-response-class.ts +18 -6
  147. package/models/list-partners-response-class.ts +12 -0
  148. package/models/list-related-partners-response-class.ts +18 -6
  149. package/models/list-tags-response-class.ts +18 -6
  150. package/models/merge-partners-request-dto.ts +2 -2
  151. package/models/move-partner-hierarchy-node-request-dto.ts +36 -0
  152. package/models/move-partner-hierarchy-node-response-class.ts +31 -0
  153. package/models/partner-class.ts +6 -0
  154. package/models/partner-hierarchy-async-operation-response-class.ts +36 -0
  155. package/models/partner-hierarchy-class.ts +78 -0
  156. package/models/partner-hierarchy-node-class.ts +115 -0
  157. package/models/partner-hierarchy-node-history-class.ts +103 -0
  158. package/models/partner-hierarchy-node-tree-class.ts +102 -0
  159. package/models/partner-hierarchy-operation-class.ts +120 -0
  160. package/models/partner-hierarchy-type-class.ts +72 -0
  161. package/models/unassign-partner-hierarchy-node-response-class.ts +31 -0
  162. package/models/update-blacklist-reason-status-request-dto.ts +1 -1
  163. package/models/update-partner-hierarchy-node-request-dto.ts +36 -0
  164. package/models/update-partner-hierarchy-node-response-class.ts +31 -0
  165. package/models/update-partner-hierarchy-request-dto.ts +30 -0
  166. package/models/update-partner-hierarchy-response-class.ts +31 -0
  167. package/models/update-partner-hierarchy-tree-request-body-dto.ts +30 -0
  168. package/models/update-partner-hierarchy-type-request-dto.ts +36 -0
  169. package/models/update-partner-hierarchy-type-response-class.ts +31 -0
  170. package/models/update-partner-request-dto.ts +2 -2
  171. package/package.json +2 -2
@@ -0,0 +1,215 @@
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 { GetPartnerHierarchyOperationResponseClass } from '../models';
16
+ import { ListPartnerHierarchyOperationsResponseClass } from '../models';
17
+ /**
18
+ * PartnerHierarchyOperationsApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const PartnerHierarchyOperationsApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ * Returns one partner hierarchy background operation by code. Use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
24
+ * @summary Get a partner hierarchy operation
25
+ * @param {string} code
26
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
27
+ * @param {string} [expand]
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ getPartnerHierarchyOperation: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
+ /**
33
+ * Returns a paginated list of partner hierarchy background operations. Filter by partnerHierarchyCode, type, or status, and use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
34
+ * @summary List partner hierarchy operations
35
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
36
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
37
+ * @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.
38
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, type, status, createdAt&lt;/i&gt;
39
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
40
+ * @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, type, status, createdAt, updatedAt&lt;/i&gt;
41
+ * @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;
42
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, type, status, createdAt&lt;/i&gt;
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ listPartnerHierarchyOperations: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
+ };
48
+ /**
49
+ * PartnerHierarchyOperationsApi - functional programming interface
50
+ * @export
51
+ */
52
+ export declare const PartnerHierarchyOperationsApiFp: (configuration?: Configuration) => {
53
+ /**
54
+ * Returns one partner hierarchy background operation by code. Use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
55
+ * @summary Get a partner hierarchy operation
56
+ * @param {string} code
57
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
58
+ * @param {string} [expand]
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ getPartnerHierarchyOperation(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerHierarchyOperationResponseClass>>;
63
+ /**
64
+ * Returns a paginated list of partner hierarchy background operations. Filter by partnerHierarchyCode, type, or status, and use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
65
+ * @summary List partner hierarchy operations
66
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
67
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
68
+ * @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.
69
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, type, status, createdAt&lt;/i&gt;
70
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
71
+ * @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, type, status, createdAt, updatedAt&lt;/i&gt;
72
+ * @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;
73
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, type, status, createdAt&lt;/i&gt;
74
+ * @param {*} [options] Override http request option.
75
+ * @throws {RequiredError}
76
+ */
77
+ listPartnerHierarchyOperations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerHierarchyOperationsResponseClass>>;
78
+ };
79
+ /**
80
+ * PartnerHierarchyOperationsApi - factory interface
81
+ * @export
82
+ */
83
+ export declare const PartnerHierarchyOperationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
84
+ /**
85
+ * Returns one partner hierarchy background operation by code. Use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
86
+ * @summary Get a partner hierarchy operation
87
+ * @param {string} code
88
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
89
+ * @param {string} [expand]
90
+ * @param {*} [options] Override http request option.
91
+ * @throws {RequiredError}
92
+ */
93
+ getPartnerHierarchyOperation(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPartnerHierarchyOperationResponseClass>;
94
+ /**
95
+ * Returns a paginated list of partner hierarchy background operations. Filter by partnerHierarchyCode, type, or status, and use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
96
+ * @summary List partner hierarchy operations
97
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
98
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
99
+ * @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.
100
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, type, status, createdAt&lt;/i&gt;
101
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
102
+ * @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, type, status, createdAt, updatedAt&lt;/i&gt;
103
+ * @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;
104
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, type, status, createdAt&lt;/i&gt;
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ listPartnerHierarchyOperations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerHierarchyOperationsResponseClass>;
109
+ };
110
+ /**
111
+ * Request parameters for getPartnerHierarchyOperation operation in PartnerHierarchyOperationsApi.
112
+ * @export
113
+ * @interface PartnerHierarchyOperationsApiGetPartnerHierarchyOperationRequest
114
+ */
115
+ export interface PartnerHierarchyOperationsApiGetPartnerHierarchyOperationRequest {
116
+ /**
117
+ *
118
+ * @type {string}
119
+ * @memberof PartnerHierarchyOperationsApiGetPartnerHierarchyOperation
120
+ */
121
+ readonly code: string;
122
+ /**
123
+ * Bearer Token: provided by the login endpoint under the name accessToken.
124
+ * @type {string}
125
+ * @memberof PartnerHierarchyOperationsApiGetPartnerHierarchyOperation
126
+ */
127
+ readonly authorization?: string;
128
+ /**
129
+ *
130
+ * @type {string}
131
+ * @memberof PartnerHierarchyOperationsApiGetPartnerHierarchyOperation
132
+ */
133
+ readonly expand?: string;
134
+ }
135
+ /**
136
+ * Request parameters for listPartnerHierarchyOperations operation in PartnerHierarchyOperationsApi.
137
+ * @export
138
+ * @interface PartnerHierarchyOperationsApiListPartnerHierarchyOperationsRequest
139
+ */
140
+ export interface PartnerHierarchyOperationsApiListPartnerHierarchyOperationsRequest {
141
+ /**
142
+ * Bearer Token: provided by the login endpoint under the name accessToken.
143
+ * @type {string}
144
+ * @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
145
+ */
146
+ readonly authorization?: string;
147
+ /**
148
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
149
+ * @type {number}
150
+ * @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
151
+ */
152
+ readonly pageSize?: number;
153
+ /**
154
+ * 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.
155
+ * @type {string}
156
+ * @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
157
+ */
158
+ readonly pageToken?: string;
159
+ /**
160
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, type, status, createdAt&lt;/i&gt;
161
+ * @type {string}
162
+ * @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
163
+ */
164
+ readonly filter?: string;
165
+ /**
166
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
167
+ * @type {string}
168
+ * @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
169
+ */
170
+ readonly search?: string;
171
+ /**
172
+ * 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, type, status, createdAt, updatedAt&lt;/i&gt;
173
+ * @type {string}
174
+ * @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
175
+ */
176
+ readonly order?: string;
177
+ /**
178
+ * 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;
179
+ * @type {string}
180
+ * @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
181
+ */
182
+ readonly expand?: string;
183
+ /**
184
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, type, status, createdAt&lt;/i&gt;
185
+ * @type {string}
186
+ * @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
187
+ */
188
+ readonly filters?: string;
189
+ }
190
+ /**
191
+ * PartnerHierarchyOperationsApi - object-oriented interface
192
+ * @export
193
+ * @class PartnerHierarchyOperationsApi
194
+ * @extends {BaseAPI}
195
+ */
196
+ export declare class PartnerHierarchyOperationsApi extends BaseAPI {
197
+ /**
198
+ * Returns one partner hierarchy background operation by code. Use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
199
+ * @summary Get a partner hierarchy operation
200
+ * @param {PartnerHierarchyOperationsApiGetPartnerHierarchyOperationRequest} requestParameters Request parameters.
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ * @memberof PartnerHierarchyOperationsApi
204
+ */
205
+ getPartnerHierarchyOperation(requestParameters: PartnerHierarchyOperationsApiGetPartnerHierarchyOperationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerHierarchyOperationResponseClass, any, {}>>;
206
+ /**
207
+ * Returns a paginated list of partner hierarchy background operations. Filter by partnerHierarchyCode, type, or status, and use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
208
+ * @summary List partner hierarchy operations
209
+ * @param {PartnerHierarchyOperationsApiListPartnerHierarchyOperationsRequest} requestParameters Request parameters.
210
+ * @param {*} [options] Override http request option.
211
+ * @throws {RequiredError}
212
+ * @memberof PartnerHierarchyOperationsApi
213
+ */
214
+ listPartnerHierarchyOperations(requestParameters?: PartnerHierarchyOperationsApiListPartnerHierarchyOperationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnerHierarchyOperationsResponseClass, any, {}>>;
215
+ }
@@ -0,0 +1,362 @@
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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.PartnerHierarchyOperationsApi = exports.PartnerHierarchyOperationsApiFactory = exports.PartnerHierarchyOperationsApiFp = exports.PartnerHierarchyOperationsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * PartnerHierarchyOperationsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var PartnerHierarchyOperationsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Returns one partner hierarchy background operation by code. Use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
101
+ * @summary Get a partner hierarchy operation
102
+ * @param {string} code
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
+ * @param {string} [expand]
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ getPartnerHierarchyOperation: function (code, authorization, expand, options) {
109
+ if (options === void 0) { options = {}; }
110
+ return __awaiter(_this, void 0, void 0, function () {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ // verify required parameter 'code' is not null or undefined
116
+ (0, common_1.assertParamExists)('getPartnerHierarchyOperation', 'code', code);
117
+ localVarPath = "/partnerservice/v1/partner-hierarchy-operations/{code}"
118
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
119
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
120
+ if (configuration) {
121
+ baseOptions = configuration.baseOptions;
122
+ baseAccessToken = configuration.accessToken;
123
+ }
124
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
125
+ localVarHeaderParameter = {};
126
+ localVarQueryParameter = {};
127
+ // authentication bearer required
128
+ // http bearer authentication required
129
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
130
+ case 1:
131
+ // authentication bearer required
132
+ // http bearer authentication required
133
+ _a.sent();
134
+ if (expand !== undefined) {
135
+ localVarQueryParameter['expand'] = expand;
136
+ }
137
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
138
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
139
+ }
140
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ return [2 /*return*/, {
144
+ url: (0, common_1.toPathString)(localVarUrlObj),
145
+ options: localVarRequestOptions,
146
+ }];
147
+ }
148
+ });
149
+ });
150
+ },
151
+ /**
152
+ * Returns a paginated list of partner hierarchy background operations. Filter by partnerHierarchyCode, type, or status, and use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
153
+ * @summary List partner hierarchy operations
154
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
155
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
156
+ * @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.
157
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, type, status, createdAt&lt;/i&gt;
158
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
159
+ * @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, type, status, createdAt, updatedAt&lt;/i&gt;
160
+ * @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;
161
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, type, status, createdAt&lt;/i&gt;
162
+ * @param {*} [options] Override http request option.
163
+ * @throws {RequiredError}
164
+ */
165
+ listPartnerHierarchyOperations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
166
+ if (options === void 0) { options = {}; }
167
+ return __awaiter(_this, void 0, void 0, function () {
168
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
169
+ return __generator(this, function (_a) {
170
+ switch (_a.label) {
171
+ case 0:
172
+ localVarPath = "/partnerservice/v1/partner-hierarchy-operations";
173
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
174
+ if (configuration) {
175
+ baseOptions = configuration.baseOptions;
176
+ baseAccessToken = configuration.accessToken;
177
+ }
178
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
179
+ localVarHeaderParameter = {};
180
+ localVarQueryParameter = {};
181
+ // authentication bearer required
182
+ // http bearer authentication required
183
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
184
+ case 1:
185
+ // authentication bearer required
186
+ // http bearer authentication required
187
+ _a.sent();
188
+ if (pageSize !== undefined) {
189
+ localVarQueryParameter['pageSize'] = pageSize;
190
+ }
191
+ if (pageToken !== undefined) {
192
+ localVarQueryParameter['pageToken'] = pageToken;
193
+ }
194
+ if (filter !== undefined) {
195
+ localVarQueryParameter['filter'] = filter;
196
+ }
197
+ if (search !== undefined) {
198
+ localVarQueryParameter['search'] = search;
199
+ }
200
+ if (order !== undefined) {
201
+ localVarQueryParameter['order'] = order;
202
+ }
203
+ if (expand !== undefined) {
204
+ localVarQueryParameter['expand'] = expand;
205
+ }
206
+ if (filters !== undefined) {
207
+ localVarQueryParameter['filters'] = filters;
208
+ }
209
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
210
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
211
+ }
212
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
213
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
214
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
215
+ return [2 /*return*/, {
216
+ url: (0, common_1.toPathString)(localVarUrlObj),
217
+ options: localVarRequestOptions,
218
+ }];
219
+ }
220
+ });
221
+ });
222
+ },
223
+ };
224
+ };
225
+ exports.PartnerHierarchyOperationsApiAxiosParamCreator = PartnerHierarchyOperationsApiAxiosParamCreator;
226
+ /**
227
+ * PartnerHierarchyOperationsApi - functional programming interface
228
+ * @export
229
+ */
230
+ var PartnerHierarchyOperationsApiFp = function (configuration) {
231
+ var localVarAxiosParamCreator = (0, exports.PartnerHierarchyOperationsApiAxiosParamCreator)(configuration);
232
+ return {
233
+ /**
234
+ * Returns one partner hierarchy background operation by code. Use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
235
+ * @summary Get a partner hierarchy operation
236
+ * @param {string} code
237
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
238
+ * @param {string} [expand]
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ */
242
+ getPartnerHierarchyOperation: function (code, authorization, expand, options) {
243
+ return __awaiter(this, void 0, void 0, function () {
244
+ var localVarAxiosArgs;
245
+ return __generator(this, function (_a) {
246
+ switch (_a.label) {
247
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPartnerHierarchyOperation(code, authorization, expand, options)];
248
+ case 1:
249
+ localVarAxiosArgs = _a.sent();
250
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
251
+ }
252
+ });
253
+ });
254
+ },
255
+ /**
256
+ * Returns a paginated list of partner hierarchy background operations. Filter by partnerHierarchyCode, type, or status, and use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
257
+ * @summary List partner hierarchy operations
258
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
259
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
260
+ * @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.
261
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, type, status, createdAt&lt;/i&gt;
262
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
263
+ * @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, type, status, createdAt, updatedAt&lt;/i&gt;
264
+ * @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;
265
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, type, status, createdAt&lt;/i&gt;
266
+ * @param {*} [options] Override http request option.
267
+ * @throws {RequiredError}
268
+ */
269
+ listPartnerHierarchyOperations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
270
+ return __awaiter(this, void 0, void 0, function () {
271
+ var localVarAxiosArgs;
272
+ return __generator(this, function (_a) {
273
+ switch (_a.label) {
274
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPartnerHierarchyOperations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
275
+ case 1:
276
+ localVarAxiosArgs = _a.sent();
277
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
278
+ }
279
+ });
280
+ });
281
+ },
282
+ };
283
+ };
284
+ exports.PartnerHierarchyOperationsApiFp = PartnerHierarchyOperationsApiFp;
285
+ /**
286
+ * PartnerHierarchyOperationsApi - factory interface
287
+ * @export
288
+ */
289
+ var PartnerHierarchyOperationsApiFactory = function (configuration, basePath, axios) {
290
+ var localVarFp = (0, exports.PartnerHierarchyOperationsApiFp)(configuration);
291
+ return {
292
+ /**
293
+ * Returns one partner hierarchy background operation by code. Use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
294
+ * @summary Get a partner hierarchy operation
295
+ * @param {string} code
296
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
297
+ * @param {string} [expand]
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ getPartnerHierarchyOperation: function (code, authorization, expand, options) {
302
+ return localVarFp.getPartnerHierarchyOperation(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
303
+ },
304
+ /**
305
+ * Returns a paginated list of partner hierarchy background operations. Filter by partnerHierarchyCode, type, or status, and use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
306
+ * @summary List partner hierarchy operations
307
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
308
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
309
+ * @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.
310
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, type, status, createdAt&lt;/i&gt;
311
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
312
+ * @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, type, status, createdAt, updatedAt&lt;/i&gt;
313
+ * @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;
314
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, partnerHierarchyCode, type, status, createdAt&lt;/i&gt;
315
+ * @param {*} [options] Override http request option.
316
+ * @throws {RequiredError}
317
+ */
318
+ listPartnerHierarchyOperations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
319
+ return localVarFp.listPartnerHierarchyOperations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
320
+ },
321
+ };
322
+ };
323
+ exports.PartnerHierarchyOperationsApiFactory = PartnerHierarchyOperationsApiFactory;
324
+ /**
325
+ * PartnerHierarchyOperationsApi - object-oriented interface
326
+ * @export
327
+ * @class PartnerHierarchyOperationsApi
328
+ * @extends {BaseAPI}
329
+ */
330
+ var PartnerHierarchyOperationsApi = /** @class */ (function (_super) {
331
+ __extends(PartnerHierarchyOperationsApi, _super);
332
+ function PartnerHierarchyOperationsApi() {
333
+ return _super !== null && _super.apply(this, arguments) || this;
334
+ }
335
+ /**
336
+ * Returns one partner hierarchy background operation by code. Use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
337
+ * @summary Get a partner hierarchy operation
338
+ * @param {PartnerHierarchyOperationsApiGetPartnerHierarchyOperationRequest} requestParameters Request parameters.
339
+ * @param {*} [options] Override http request option.
340
+ * @throws {RequiredError}
341
+ * @memberof PartnerHierarchyOperationsApi
342
+ */
343
+ PartnerHierarchyOperationsApi.prototype.getPartnerHierarchyOperation = function (requestParameters, options) {
344
+ var _this = this;
345
+ return (0, exports.PartnerHierarchyOperationsApiFp)(this.configuration).getPartnerHierarchyOperation(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
346
+ };
347
+ /**
348
+ * Returns a paginated list of partner hierarchy background operations. Filter by partnerHierarchyCode, type, or status, and use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
349
+ * @summary List partner hierarchy operations
350
+ * @param {PartnerHierarchyOperationsApiListPartnerHierarchyOperationsRequest} requestParameters Request parameters.
351
+ * @param {*} [options] Override http request option.
352
+ * @throws {RequiredError}
353
+ * @memberof PartnerHierarchyOperationsApi
354
+ */
355
+ PartnerHierarchyOperationsApi.prototype.listPartnerHierarchyOperations = function (requestParameters, options) {
356
+ var _this = this;
357
+ if (requestParameters === void 0) { requestParameters = {}; }
358
+ return (0, exports.PartnerHierarchyOperationsApiFp)(this.configuration).listPartnerHierarchyOperations(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); });
359
+ };
360
+ return PartnerHierarchyOperationsApi;
361
+ }(base_1.BaseAPI));
362
+ exports.PartnerHierarchyOperationsApi = PartnerHierarchyOperationsApi;