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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/.openapi-generator/FILES +42 -1
  2. package/README.md +2 -2
  3. package/api/blacklist-api.ts +3 -3
  4. package/api/blacklist-reasons-api.ts +3 -3
  5. package/api/{default-api.ts → health-api.ts} +13 -13
  6. package/api/partner-hierarchies-api.ts +1170 -0
  7. package/api/partner-hierarchy-nodes-api.ts +1201 -0
  8. package/api/partner-hierarchy-operations-api.ts +367 -0
  9. package/api/partner-hierarchy-types-api.ts +683 -0
  10. package/api/partners-api.ts +211 -12
  11. package/api.ts +10 -2
  12. package/dist/api/blacklist-api.d.ts +4 -4
  13. package/dist/api/blacklist-reasons-api.d.ts +4 -4
  14. package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
  15. package/dist/api/{default-api.js → health-api.js} +22 -22
  16. package/dist/api/partner-hierarchies-api.d.ts +655 -0
  17. package/dist/api/partner-hierarchies-api.js +1041 -0
  18. package/dist/api/partner-hierarchy-nodes-api.d.ts +674 -0
  19. package/dist/api/partner-hierarchy-nodes-api.js +1053 -0
  20. package/dist/api/partner-hierarchy-operations-api.d.ts +215 -0
  21. package/dist/api/partner-hierarchy-operations-api.js +362 -0
  22. package/dist/api/partner-hierarchy-types-api.d.ts +385 -0
  23. package/dist/api/partner-hierarchy-types-api.js +640 -0
  24. package/dist/api/partners-api.d.ts +130 -12
  25. package/dist/api/partners-api.js +143 -9
  26. package/dist/api.d.ts +5 -1
  27. package/dist/api.js +5 -1
  28. package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.d.ts +30 -0
  29. package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.js +15 -0
  30. package/dist/models/create-partner-hierarchy-node-request-dto.d.ts +42 -0
  31. package/dist/models/create-partner-hierarchy-node-request-dto.js +15 -0
  32. package/dist/models/create-partner-hierarchy-node-response-class.d.ts +25 -0
  33. package/dist/models/create-partner-hierarchy-node-response-class.js +15 -0
  34. package/dist/models/create-partner-hierarchy-request-dto.d.ts +30 -0
  35. package/dist/models/create-partner-hierarchy-request-dto.js +15 -0
  36. package/dist/models/create-partner-hierarchy-response-class.d.ts +25 -0
  37. package/dist/models/create-partner-hierarchy-response-class.js +15 -0
  38. package/dist/models/create-partner-hierarchy-type-request-dto.d.ts +30 -0
  39. package/dist/models/create-partner-hierarchy-type-request-dto.js +15 -0
  40. package/dist/models/create-partner-hierarchy-type-response-class.d.ts +25 -0
  41. package/dist/models/create-partner-hierarchy-type-response-class.js +15 -0
  42. package/dist/models/create-partner-request-dto.d.ts +4 -2
  43. package/dist/models/delete-by-code-response-class.d.ts +24 -0
  44. package/dist/models/delete-by-code-response-class.js +15 -0
  45. package/dist/models/generate-upload-url-response-class.d.ts +36 -0
  46. package/dist/models/generate-upload-url-response-class.js +15 -0
  47. package/dist/models/get-partner-hierarchy-node-response-class.d.ts +25 -0
  48. package/dist/models/get-partner-hierarchy-node-response-class.js +15 -0
  49. package/dist/models/get-partner-hierarchy-operation-response-class.d.ts +25 -0
  50. package/dist/models/get-partner-hierarchy-operation-response-class.js +15 -0
  51. package/dist/models/get-partner-hierarchy-response-class.d.ts +25 -0
  52. package/dist/models/get-partner-hierarchy-response-class.js +15 -0
  53. package/dist/models/get-partner-hierarchy-tree-file-response-class.d.ts +60 -0
  54. package/dist/models/get-partner-hierarchy-tree-file-response-class.js +15 -0
  55. package/dist/models/get-partner-hierarchy-tree-response-class.d.ts +25 -0
  56. package/dist/models/get-partner-hierarchy-tree-response-class.js +15 -0
  57. package/dist/models/get-partner-hierarchy-type-response-class.d.ts +25 -0
  58. package/dist/models/get-partner-hierarchy-type-response-class.js +15 -0
  59. package/dist/models/index.d.ts +37 -0
  60. package/dist/models/index.js +37 -0
  61. package/dist/models/list-blacklist-items-response-class.d.ts +12 -0
  62. package/dist/models/list-partner-hierarchies-response-class.d.ts +43 -0
  63. package/dist/models/list-partner-hierarchies-response-class.js +15 -0
  64. package/dist/models/list-partner-hierarchy-node-history-response-class.d.ts +43 -0
  65. package/dist/models/list-partner-hierarchy-node-history-response-class.js +15 -0
  66. package/dist/models/list-partner-hierarchy-nodes-response-class.d.ts +43 -0
  67. package/dist/models/list-partner-hierarchy-nodes-response-class.js +15 -0
  68. package/dist/models/list-partner-hierarchy-operations-response-class.d.ts +43 -0
  69. package/dist/models/list-partner-hierarchy-operations-response-class.js +15 -0
  70. package/dist/models/list-partner-hierarchy-types-response-class.d.ts +43 -0
  71. package/dist/models/list-partner-hierarchy-types-response-class.js +15 -0
  72. package/dist/models/list-partner-relation-class.d.ts +18 -6
  73. package/dist/models/list-partner-relation-types-class.d.ts +18 -6
  74. package/dist/models/list-partner-types-response-class.d.ts +18 -6
  75. package/dist/models/list-partner-versions-response-class.d.ts +18 -6
  76. package/dist/models/list-partners-response-class.d.ts +12 -0
  77. package/dist/models/list-related-partners-response-class.d.ts +18 -6
  78. package/dist/models/list-tags-response-class.d.ts +18 -6
  79. package/dist/models/merge-partners-request-dto.d.ts +4 -2
  80. package/dist/models/move-partner-hierarchy-node-request-dto.d.ts +30 -0
  81. package/dist/models/move-partner-hierarchy-node-request-dto.js +15 -0
  82. package/dist/models/move-partner-hierarchy-node-response-class.d.ts +25 -0
  83. package/dist/models/move-partner-hierarchy-node-response-class.js +15 -0
  84. package/dist/models/partner-class.d.ts +6 -0
  85. package/dist/models/partner-hierarchy-async-operation-response-class.d.ts +30 -0
  86. package/dist/models/partner-hierarchy-async-operation-response-class.js +15 -0
  87. package/dist/models/partner-hierarchy-class.d.ts +72 -0
  88. package/dist/models/partner-hierarchy-class.js +15 -0
  89. package/dist/models/partner-hierarchy-node-class.d.ts +109 -0
  90. package/dist/models/partner-hierarchy-node-class.js +15 -0
  91. package/dist/models/partner-hierarchy-node-history-class.d.ts +97 -0
  92. package/dist/models/partner-hierarchy-node-history-class.js +15 -0
  93. package/dist/models/partner-hierarchy-node-tree-class.d.ts +96 -0
  94. package/dist/models/partner-hierarchy-node-tree-class.js +15 -0
  95. package/dist/models/partner-hierarchy-operation-class.d.ts +110 -0
  96. package/dist/models/partner-hierarchy-operation-class.js +27 -0
  97. package/dist/models/partner-hierarchy-type-class.d.ts +66 -0
  98. package/dist/models/partner-hierarchy-type-class.js +15 -0
  99. package/dist/models/unassign-partner-hierarchy-node-response-class.d.ts +25 -0
  100. package/dist/models/unassign-partner-hierarchy-node-response-class.js +15 -0
  101. package/dist/models/update-blacklist-reason-status-request-dto.d.ts +1 -1
  102. package/dist/models/update-partner-hierarchy-node-request-dto.d.ts +30 -0
  103. package/dist/models/update-partner-hierarchy-node-request-dto.js +15 -0
  104. package/dist/models/update-partner-hierarchy-node-response-class.d.ts +25 -0
  105. package/dist/models/update-partner-hierarchy-node-response-class.js +15 -0
  106. package/dist/models/update-partner-hierarchy-request-dto.d.ts +24 -0
  107. package/dist/models/update-partner-hierarchy-request-dto.js +15 -0
  108. package/dist/models/update-partner-hierarchy-response-class.d.ts +25 -0
  109. package/dist/models/update-partner-hierarchy-response-class.js +15 -0
  110. package/dist/models/update-partner-hierarchy-tree-request-body-dto.d.ts +24 -0
  111. package/dist/models/update-partner-hierarchy-tree-request-body-dto.js +15 -0
  112. package/dist/models/update-partner-hierarchy-type-request-dto.d.ts +30 -0
  113. package/dist/models/update-partner-hierarchy-type-request-dto.js +15 -0
  114. package/dist/models/update-partner-hierarchy-type-response-class.d.ts +25 -0
  115. package/dist/models/update-partner-hierarchy-type-response-class.js +15 -0
  116. package/dist/models/update-partner-request-dto.d.ts +4 -2
  117. package/models/batch-create-partner-hierarchy-nodes-request-dto.ts +36 -0
  118. package/models/create-partner-hierarchy-node-request-dto.ts +48 -0
  119. package/models/create-partner-hierarchy-node-response-class.ts +31 -0
  120. package/models/create-partner-hierarchy-request-dto.ts +36 -0
  121. package/models/create-partner-hierarchy-response-class.ts +31 -0
  122. package/models/create-partner-hierarchy-type-request-dto.ts +36 -0
  123. package/models/create-partner-hierarchy-type-response-class.ts +31 -0
  124. package/models/create-partner-request-dto.ts +2 -2
  125. package/models/delete-by-code-response-class.ts +30 -0
  126. package/models/generate-upload-url-response-class.ts +42 -0
  127. package/models/get-partner-hierarchy-node-response-class.ts +31 -0
  128. package/models/get-partner-hierarchy-operation-response-class.ts +31 -0
  129. package/models/get-partner-hierarchy-response-class.ts +31 -0
  130. package/models/get-partner-hierarchy-tree-file-response-class.ts +66 -0
  131. package/models/get-partner-hierarchy-tree-response-class.ts +31 -0
  132. package/models/get-partner-hierarchy-type-response-class.ts +31 -0
  133. package/models/index.ts +37 -0
  134. package/models/list-blacklist-items-response-class.ts +12 -0
  135. package/models/list-partner-hierarchies-response-class.ts +49 -0
  136. package/models/list-partner-hierarchy-node-history-response-class.ts +49 -0
  137. package/models/list-partner-hierarchy-nodes-response-class.ts +49 -0
  138. package/models/list-partner-hierarchy-operations-response-class.ts +49 -0
  139. package/models/list-partner-hierarchy-types-response-class.ts +49 -0
  140. package/models/list-partner-relation-class.ts +18 -6
  141. package/models/list-partner-relation-types-class.ts +18 -6
  142. package/models/list-partner-types-response-class.ts +18 -6
  143. package/models/list-partner-versions-response-class.ts +18 -6
  144. package/models/list-partners-response-class.ts +12 -0
  145. package/models/list-related-partners-response-class.ts +18 -6
  146. package/models/list-tags-response-class.ts +18 -6
  147. package/models/merge-partners-request-dto.ts +2 -2
  148. package/models/move-partner-hierarchy-node-request-dto.ts +36 -0
  149. package/models/move-partner-hierarchy-node-response-class.ts +31 -0
  150. package/models/partner-class.ts +6 -0
  151. package/models/partner-hierarchy-async-operation-response-class.ts +36 -0
  152. package/models/partner-hierarchy-class.ts +78 -0
  153. package/models/partner-hierarchy-node-class.ts +115 -0
  154. package/models/partner-hierarchy-node-history-class.ts +103 -0
  155. package/models/partner-hierarchy-node-tree-class.ts +102 -0
  156. package/models/partner-hierarchy-operation-class.ts +120 -0
  157. package/models/partner-hierarchy-type-class.ts +72 -0
  158. package/models/unassign-partner-hierarchy-node-response-class.ts +31 -0
  159. package/models/update-blacklist-reason-status-request-dto.ts +1 -1
  160. package/models/update-partner-hierarchy-node-request-dto.ts +36 -0
  161. package/models/update-partner-hierarchy-node-response-class.ts +31 -0
  162. package/models/update-partner-hierarchy-request-dto.ts +30 -0
  163. package/models/update-partner-hierarchy-response-class.ts +31 -0
  164. package/models/update-partner-hierarchy-tree-request-body-dto.ts +30 -0
  165. package/models/update-partner-hierarchy-type-request-dto.ts +36 -0
  166. package/models/update-partner-hierarchy-type-response-class.ts +31 -0
  167. package/models/update-partner-request-dto.ts +2 -2
  168. package/package.json +1 -1
@@ -0,0 +1,367 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL PartnerService
5
+ * The EMIL PartnerService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { GetPartnerHierarchyOperationResponseClass } from '../models';
25
+ // @ts-ignore
26
+ import { ListPartnerHierarchyOperationsResponseClass } from '../models';
27
+ // URLSearchParams not necessarily used
28
+ // @ts-ignore
29
+ import { URL, URLSearchParams } from 'url';
30
+ const FormData = require('form-data');
31
+ /**
32
+ * PartnerHierarchyOperationsApi - axios parameter creator
33
+ * @export
34
+ */
35
+ export const PartnerHierarchyOperationsApiAxiosParamCreator = function (configuration?: Configuration) {
36
+ return {
37
+ /**
38
+ * Returns one partner hierarchy background operation by code. Use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
39
+ * @summary Get a partner hierarchy operation
40
+ * @param {string} code
41
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
42
+ * @param {string} [expand]
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ getPartnerHierarchyOperation: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47
+ // verify required parameter 'code' is not null or undefined
48
+ assertParamExists('getPartnerHierarchyOperation', 'code', code)
49
+ const localVarPath = `/partnerservice/v1/partner-hierarchy-operations/{code}`
50
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
51
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
53
+ let baseOptions;
54
+ let baseAccessToken;
55
+ if (configuration) {
56
+ baseOptions = configuration.baseOptions;
57
+ baseAccessToken = configuration.accessToken;
58
+ }
59
+
60
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
61
+ const localVarHeaderParameter = {} as any;
62
+ const localVarQueryParameter = {} as any;
63
+
64
+ // authentication bearer required
65
+ // http bearer authentication required
66
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
67
+
68
+ if (expand !== undefined) {
69
+ localVarQueryParameter['expand'] = expand;
70
+ }
71
+
72
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
73
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
74
+ }
75
+
76
+
77
+
78
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
79
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
80
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
81
+
82
+ return {
83
+ url: toPathString(localVarUrlObj),
84
+ options: localVarRequestOptions,
85
+ };
86
+ },
87
+ /**
88
+ * 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\"
89
+ * @summary List partner hierarchy operations
90
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
91
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
92
+ * @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.
93
+ * @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;
94
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
95
+ * @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;
96
+ * @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;
97
+ * @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;
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ listPartnerHierarchyOperations: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
102
+ const localVarPath = `/partnerservice/v1/partner-hierarchy-operations`;
103
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
104
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
105
+ let baseOptions;
106
+ let baseAccessToken;
107
+ if (configuration) {
108
+ baseOptions = configuration.baseOptions;
109
+ baseAccessToken = configuration.accessToken;
110
+ }
111
+
112
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
113
+ const localVarHeaderParameter = {} as any;
114
+ const localVarQueryParameter = {} as any;
115
+
116
+ // authentication bearer required
117
+ // http bearer authentication required
118
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
119
+
120
+ if (pageSize !== undefined) {
121
+ localVarQueryParameter['pageSize'] = pageSize;
122
+ }
123
+
124
+ if (pageToken !== undefined) {
125
+ localVarQueryParameter['pageToken'] = pageToken;
126
+ }
127
+
128
+ if (filter !== undefined) {
129
+ localVarQueryParameter['filter'] = filter;
130
+ }
131
+
132
+ if (search !== undefined) {
133
+ localVarQueryParameter['search'] = search;
134
+ }
135
+
136
+ if (order !== undefined) {
137
+ localVarQueryParameter['order'] = order;
138
+ }
139
+
140
+ if (expand !== undefined) {
141
+ localVarQueryParameter['expand'] = expand;
142
+ }
143
+
144
+ if (filters !== undefined) {
145
+ localVarQueryParameter['filters'] = filters;
146
+ }
147
+
148
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
149
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
150
+ }
151
+
152
+
153
+
154
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
155
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
156
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
157
+
158
+ return {
159
+ url: toPathString(localVarUrlObj),
160
+ options: localVarRequestOptions,
161
+ };
162
+ },
163
+ }
164
+ };
165
+
166
+ /**
167
+ * PartnerHierarchyOperationsApi - functional programming interface
168
+ * @export
169
+ */
170
+ export const PartnerHierarchyOperationsApiFp = function(configuration?: Configuration) {
171
+ const localVarAxiosParamCreator = PartnerHierarchyOperationsApiAxiosParamCreator(configuration)
172
+ return {
173
+ /**
174
+ * Returns one partner hierarchy background operation by code. Use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
175
+ * @summary Get a partner hierarchy operation
176
+ * @param {string} code
177
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
178
+ * @param {string} [expand]
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ async getPartnerHierarchyOperation(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerHierarchyOperationResponseClass>> {
183
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPartnerHierarchyOperation(code, authorization, expand, options);
184
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
185
+ },
186
+ /**
187
+ * 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\"
188
+ * @summary List partner hierarchy operations
189
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
190
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
191
+ * @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.
192
+ * @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;
193
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
194
+ * @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;
195
+ * @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;
196
+ * @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;
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ async 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>> {
201
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerHierarchyOperations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
202
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
203
+ },
204
+ }
205
+ };
206
+
207
+ /**
208
+ * PartnerHierarchyOperationsApi - factory interface
209
+ * @export
210
+ */
211
+ export const PartnerHierarchyOperationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
212
+ const localVarFp = PartnerHierarchyOperationsApiFp(configuration)
213
+ return {
214
+ /**
215
+ * Returns one partner hierarchy background operation by code. Use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
216
+ * @summary Get a partner hierarchy operation
217
+ * @param {string} code
218
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
219
+ * @param {string} [expand]
220
+ * @param {*} [options] Override http request option.
221
+ * @throws {RequiredError}
222
+ */
223
+ getPartnerHierarchyOperation(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPartnerHierarchyOperationResponseClass> {
224
+ return localVarFp.getPartnerHierarchyOperation(code, authorization, expand, options).then((request) => request(axios, basePath));
225
+ },
226
+ /**
227
+ * 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\"
228
+ * @summary List partner hierarchy operations
229
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
230
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
231
+ * @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.
232
+ * @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;
233
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
234
+ * @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;
235
+ * @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;
236
+ * @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;
237
+ * @param {*} [options] Override http request option.
238
+ * @throws {RequiredError}
239
+ */
240
+ listPartnerHierarchyOperations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerHierarchyOperationsResponseClass> {
241
+ return localVarFp.listPartnerHierarchyOperations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
242
+ },
243
+ };
244
+ };
245
+
246
+ /**
247
+ * Request parameters for getPartnerHierarchyOperation operation in PartnerHierarchyOperationsApi.
248
+ * @export
249
+ * @interface PartnerHierarchyOperationsApiGetPartnerHierarchyOperationRequest
250
+ */
251
+ export interface PartnerHierarchyOperationsApiGetPartnerHierarchyOperationRequest {
252
+ /**
253
+ *
254
+ * @type {string}
255
+ * @memberof PartnerHierarchyOperationsApiGetPartnerHierarchyOperation
256
+ */
257
+ readonly code: string
258
+
259
+ /**
260
+ * Bearer Token: provided by the login endpoint under the name accessToken.
261
+ * @type {string}
262
+ * @memberof PartnerHierarchyOperationsApiGetPartnerHierarchyOperation
263
+ */
264
+ readonly authorization?: string
265
+
266
+ /**
267
+ *
268
+ * @type {string}
269
+ * @memberof PartnerHierarchyOperationsApiGetPartnerHierarchyOperation
270
+ */
271
+ readonly expand?: string
272
+ }
273
+
274
+ /**
275
+ * Request parameters for listPartnerHierarchyOperations operation in PartnerHierarchyOperationsApi.
276
+ * @export
277
+ * @interface PartnerHierarchyOperationsApiListPartnerHierarchyOperationsRequest
278
+ */
279
+ export interface PartnerHierarchyOperationsApiListPartnerHierarchyOperationsRequest {
280
+ /**
281
+ * Bearer Token: provided by the login endpoint under the name accessToken.
282
+ * @type {string}
283
+ * @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
284
+ */
285
+ readonly authorization?: string
286
+
287
+ /**
288
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
289
+ * @type {number}
290
+ * @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
291
+ */
292
+ readonly pageSize?: number
293
+
294
+ /**
295
+ * 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.
296
+ * @type {string}
297
+ * @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
298
+ */
299
+ readonly pageToken?: string
300
+
301
+ /**
302
+ * 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;
303
+ * @type {string}
304
+ * @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
305
+ */
306
+ readonly filter?: string
307
+
308
+ /**
309
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
310
+ * @type {string}
311
+ * @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
312
+ */
313
+ readonly search?: string
314
+
315
+ /**
316
+ * 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;
317
+ * @type {string}
318
+ * @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
319
+ */
320
+ readonly order?: string
321
+
322
+ /**
323
+ * 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;
324
+ * @type {string}
325
+ * @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
326
+ */
327
+ readonly expand?: string
328
+
329
+ /**
330
+ * 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;
331
+ * @type {string}
332
+ * @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
333
+ */
334
+ readonly filters?: string
335
+ }
336
+
337
+ /**
338
+ * PartnerHierarchyOperationsApi - object-oriented interface
339
+ * @export
340
+ * @class PartnerHierarchyOperationsApi
341
+ * @extends {BaseAPI}
342
+ */
343
+ export class PartnerHierarchyOperationsApi extends BaseAPI {
344
+ /**
345
+ * Returns one partner hierarchy background operation by code. Use expand=partnerHierarchy to include the hierarchy. **Required Permissions** \"partner-management.partners.view\"
346
+ * @summary Get a partner hierarchy operation
347
+ * @param {PartnerHierarchyOperationsApiGetPartnerHierarchyOperationRequest} requestParameters Request parameters.
348
+ * @param {*} [options] Override http request option.
349
+ * @throws {RequiredError}
350
+ * @memberof PartnerHierarchyOperationsApi
351
+ */
352
+ public getPartnerHierarchyOperation(requestParameters: PartnerHierarchyOperationsApiGetPartnerHierarchyOperationRequest, options?: AxiosRequestConfig) {
353
+ return PartnerHierarchyOperationsApiFp(this.configuration).getPartnerHierarchyOperation(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
354
+ }
355
+
356
+ /**
357
+ * 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\"
358
+ * @summary List partner hierarchy operations
359
+ * @param {PartnerHierarchyOperationsApiListPartnerHierarchyOperationsRequest} requestParameters Request parameters.
360
+ * @param {*} [options] Override http request option.
361
+ * @throws {RequiredError}
362
+ * @memberof PartnerHierarchyOperationsApi
363
+ */
364
+ public listPartnerHierarchyOperations(requestParameters: PartnerHierarchyOperationsApiListPartnerHierarchyOperationsRequest = {}, options?: AxiosRequestConfig) {
365
+ return PartnerHierarchyOperationsApiFp(this.configuration).listPartnerHierarchyOperations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
366
+ }
367
+ }