@emilgroup/partner-sdk-node 1.23.1-beta.0 → 1.23.1-beta.2

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 (32) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/api/partner-hierarchies-api.ts +0 -201
  4. package/api/partner-hierarchy-operations-api.ts +367 -0
  5. package/api/partners-api.ts +4 -4
  6. package/api.ts +2 -0
  7. package/dist/api/partner-hierarchies-api.d.ts +0 -119
  8. package/dist/api/partner-hierarchies-api.js +0 -134
  9. package/dist/api/partner-hierarchy-operations-api.d.ts +215 -0
  10. package/dist/api/partner-hierarchy-operations-api.js +362 -0
  11. package/dist/api/partners-api.d.ts +4 -4
  12. package/dist/api/partners-api.js +4 -4
  13. package/dist/api.d.ts +1 -0
  14. package/dist/api.js +1 -0
  15. package/dist/models/get-partner-hierarchy-operation-response-class.d.ts +25 -0
  16. package/dist/models/get-partner-hierarchy-operation-response-class.js +15 -0
  17. package/dist/models/get-partner-hierarchy-tree-file-response-class.d.ts +22 -4
  18. package/dist/models/index.d.ts +1 -0
  19. package/dist/models/index.js +1 -0
  20. package/dist/models/partner-hierarchy-class.d.ts +0 -6
  21. package/dist/models/partner-hierarchy-operation-class.d.ts +29 -9
  22. package/dist/models/partner-hierarchy-operation-class.js +12 -0
  23. package/dist/models/validate-partner-request-dto.d.ts +21 -3
  24. package/dist/models/validate-partner-response-class.d.ts +1 -1
  25. package/models/get-partner-hierarchy-operation-response-class.ts +31 -0
  26. package/models/get-partner-hierarchy-tree-file-response-class.ts +22 -4
  27. package/models/index.ts +1 -0
  28. package/models/partner-hierarchy-class.ts +0 -6
  29. package/models/partner-hierarchy-operation-class.ts +33 -9
  30. package/models/validate-partner-request-dto.ts +21 -3
  31. package/models/validate-partner-response-class.ts +1 -1
  32. package/package.json +2 -2
@@ -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;
@@ -157,7 +157,7 @@ export declare const PartnersApiAxiosParamCreator: (configuration?: Configuratio
157
157
  */
158
158
  updatePartner: (code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
159
159
  /**
160
- * Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
160
+ * Validates a partner identity by partnerNumber and optional field values. All provided fields must match (AND logic). If no validation fields are provided, the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
161
161
  * @summary Validate a partner
162
162
  * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
163
163
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -295,7 +295,7 @@ export declare const PartnersApiFp: (configuration?: Configuration) => {
295
295
  */
296
296
  updatePartner(code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePartnerResponseClass>>;
297
297
  /**
298
- * Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
298
+ * Validates a partner identity by partnerNumber and optional field values. All provided fields must match (AND logic). If no validation fields are provided, the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
299
299
  * @summary Validate a partner
300
300
  * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
301
301
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -433,7 +433,7 @@ export declare const PartnersApiFactory: (configuration?: Configuration, basePat
433
433
  */
434
434
  updatePartner(code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePartnerResponseClass>;
435
435
  /**
436
- * Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
436
+ * Validates a partner identity by partnerNumber and optional field values. All provided fields must match (AND logic). If no validation fields are provided, the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
437
437
  * @summary Validate a partner
438
438
  * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
439
439
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -921,7 +921,7 @@ export declare class PartnersApi extends BaseAPI {
921
921
  */
922
922
  updatePartner(requestParameters: PartnersApiUpdatePartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePartnerResponseClass, any, {}>>;
923
923
  /**
924
- * Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
924
+ * Validates a partner identity by partnerNumber and optional field values. All provided fields must match (AND logic). If no validation fields are provided, the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
925
925
  * @summary Validate a partner
926
926
  * @param {PartnersApiValidatePartnerRequest} requestParameters Request parameters.
927
927
  * @param {*} [options] Override http request option.
@@ -726,7 +726,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
726
726
  });
727
727
  },
728
728
  /**
729
- * Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
729
+ * Validates a partner identity by partnerNumber and optional field values. All provided fields must match (AND logic). If no validation fields are provided, the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
730
730
  * @summary Validate a partner
731
731
  * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
732
732
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -1040,7 +1040,7 @@ var PartnersApiFp = function (configuration) {
1040
1040
  });
1041
1041
  },
1042
1042
  /**
1043
- * Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
1043
+ * Validates a partner identity by partnerNumber and optional field values. All provided fields must match (AND logic). If no validation fields are provided, the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
1044
1044
  * @summary Validate a partner
1045
1045
  * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
1046
1046
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -1216,7 +1216,7 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
1216
1216
  return localVarFp.updatePartner(code, updatePartnerRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1217
1217
  },
1218
1218
  /**
1219
- * Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
1219
+ * Validates a partner identity by partnerNumber and optional field values. All provided fields must match (AND logic). If no validation fields are provided, the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
1220
1220
  * @summary Validate a partner
1221
1221
  * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
1222
1222
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -1374,7 +1374,7 @@ var PartnersApi = /** @class */ (function (_super) {
1374
1374
  return (0, exports.PartnersApiFp)(this.configuration).updatePartner(requestParameters.code, requestParameters.updatePartnerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1375
1375
  };
1376
1376
  /**
1377
- * Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
1377
+ * Validates a partner identity by partnerNumber and optional field values. All provided fields must match (AND logic). If no validation fields are provided, the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
1378
1378
  * @summary Validate a partner
1379
1379
  * @param {PartnersApiValidatePartnerRequest} requestParameters Request parameters.
1380
1380
  * @param {*} [options] Override http request option.
package/dist/api.d.ts CHANGED
@@ -14,6 +14,7 @@ export * from './api/blacklist-reasons-api';
14
14
  export * from './api/health-api';
15
15
  export * from './api/partner-hierarchies-api';
16
16
  export * from './api/partner-hierarchy-nodes-api';
17
+ export * from './api/partner-hierarchy-operations-api';
17
18
  export * from './api/partner-hierarchy-types-api';
18
19
  export * from './api/partner-invitations-api';
19
20
  export * from './api/partner-relations-api';
package/dist/api.js CHANGED
@@ -32,6 +32,7 @@ __exportStar(require("./api/blacklist-reasons-api"), exports);
32
32
  __exportStar(require("./api/health-api"), exports);
33
33
  __exportStar(require("./api/partner-hierarchies-api"), exports);
34
34
  __exportStar(require("./api/partner-hierarchy-nodes-api"), exports);
35
+ __exportStar(require("./api/partner-hierarchy-operations-api"), exports);
35
36
  __exportStar(require("./api/partner-hierarchy-types-api"), exports);
36
37
  __exportStar(require("./api/partner-invitations-api"), exports);
37
38
  __exportStar(require("./api/partner-relations-api"), exports);
@@ -0,0 +1,25 @@
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 { PartnerHierarchyOperationClass } from './partner-hierarchy-operation-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetPartnerHierarchyOperationResponseClass
17
+ */
18
+ export interface GetPartnerHierarchyOperationResponseClass {
19
+ /**
20
+ * The partner hierarchy operation response.
21
+ * @type {PartnerHierarchyOperationClass}
22
+ * @memberof GetPartnerHierarchyOperationResponseClass
23
+ */
24
+ 'operation': PartnerHierarchyOperationClass;
25
+ }
@@ -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 });
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface GetPartnerHierarchyTreeFileResponseClass {
18
18
  /**
19
- * Download URL for the hierarchy tree file. Empty while the file is still being built.
19
+ * Download URL for the latest available hierarchy tree file.
20
20
  * @type {string}
21
21
  * @memberof GetPartnerHierarchyTreeFileResponseClass
22
22
  */
@@ -28,15 +28,33 @@ export interface GetPartnerHierarchyTreeFileResponseClass {
28
28
  */
29
29
  'expiresAt'?: string;
30
30
  /**
31
- * Operation code returned when the tree file is being built instead of immediately available.
31
+ * Operation code returned when a data operation is active or a tree-file build is pending or processing.
32
32
  * @type {string}
33
33
  * @memberof GetPartnerHierarchyTreeFileResponseClass
34
34
  */
35
35
  'operationCode'?: string;
36
36
  /**
37
- * Current tree file build status when a download URL is not ready yet.
37
+ * Status of operationCode when a data operation or tree-file build is in progress.
38
38
  * @type {string}
39
39
  * @memberof GetPartnerHierarchyTreeFileResponseClass
40
40
  */
41
- 'status'?: string;
41
+ 'operationStatus'?: string;
42
+ /**
43
+ * Type of operationCode.
44
+ * @type {string}
45
+ * @memberof GetPartnerHierarchyTreeFileResponseClass
46
+ */
47
+ 'operationType'?: string;
48
+ /**
49
+ * Hierarchy version represented by the returned tree file.
50
+ * @type {number}
51
+ * @memberof GetPartnerHierarchyTreeFileResponseClass
52
+ */
53
+ 'treeFileVersion'?: number;
54
+ /**
55
+ * True only when the returned file is older than the current hierarchy version.
56
+ * @type {boolean}
57
+ * @memberof GetPartnerHierarchyTreeFileResponseClass
58
+ */
59
+ 'isTreeFileOutdated'?: boolean;
42
60
  }
@@ -27,6 +27,7 @@ export * from './generate-upload-url-response-class';
27
27
  export * from './get-blacklist-item-response-class';
28
28
  export * from './get-blacklist-reason-response-class';
29
29
  export * from './get-partner-hierarchy-node-response-class';
30
+ export * from './get-partner-hierarchy-operation-response-class';
30
31
  export * from './get-partner-hierarchy-response-class';
31
32
  export * from './get-partner-hierarchy-tree-file-response-class';
32
33
  export * from './get-partner-hierarchy-tree-response-class';
@@ -43,6 +43,7 @@ __exportStar(require("./generate-upload-url-response-class"), exports);
43
43
  __exportStar(require("./get-blacklist-item-response-class"), exports);
44
44
  __exportStar(require("./get-blacklist-reason-response-class"), exports);
45
45
  __exportStar(require("./get-partner-hierarchy-node-response-class"), exports);
46
+ __exportStar(require("./get-partner-hierarchy-operation-response-class"), exports);
46
47
  __exportStar(require("./get-partner-hierarchy-response-class"), exports);
47
48
  __exportStar(require("./get-partner-hierarchy-tree-file-response-class"), exports);
48
49
  __exportStar(require("./get-partner-hierarchy-tree-response-class"), exports);
@@ -39,12 +39,6 @@ export interface PartnerHierarchyClass {
39
39
  * @memberof PartnerHierarchyClass
40
40
  */
41
41
  'partnerHierarchyTypeCode': string;
42
- /**
43
- * Whether the cached hierarchy tree needs a refresh.
44
- * @type {boolean}
45
- * @memberof PartnerHierarchyClass
46
- */
47
- 'isTreeStale': boolean;
48
42
  /**
49
43
  * Processing reference, if the hierarchy is currently locked.
50
44
  * @type {string}