@emilgroup/partner-sdk 1.23.1-beta.1 → 1.23.1-beta.3

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.
package/api.ts CHANGED
@@ -25,6 +25,7 @@ import { BlacklistReasonsApi } from './api';
25
25
  import { HealthApi } from './api';
26
26
  import { PartnerHierarchiesApi } from './api';
27
27
  import { PartnerHierarchyNodesApi } from './api';
28
+ import { PartnerHierarchyOperationsApi } from './api';
28
29
  import { PartnerHierarchyTypesApi } from './api';
29
30
  import { PartnerInvitationsApi } from './api';
30
31
  import { PartnerRelationsApi } from './api';
@@ -39,6 +40,7 @@ export * from './api/blacklist-reasons-api';
39
40
  export * from './api/health-api';
40
41
  export * from './api/partner-hierarchies-api';
41
42
  export * from './api/partner-hierarchy-nodes-api';
43
+ export * from './api/partner-hierarchy-operations-api';
42
44
  export * from './api/partner-hierarchy-types-api';
43
45
  export * from './api/partner-invitations-api';
44
46
  export * from './api/partner-relations-api';
@@ -20,7 +20,6 @@ import { GetPartnerHierarchyResponseClass } from '../models';
20
20
  import { GetPartnerHierarchyTreeFileResponseClass } from '../models';
21
21
  import { GetPartnerHierarchyTreeResponseClass } from '../models';
22
22
  import { ListPartnerHierarchiesResponseClass } from '../models';
23
- import { ListPartnerHierarchyOperationsResponseClass } from '../models';
24
23
  import { PartnerHierarchyAsyncOperationResponseClass } from '../models';
25
24
  import { UpdatePartnerHierarchyRequestDto } from '../models';
26
25
  import { UpdatePartnerHierarchyResponseClass } from '../models';
@@ -103,22 +102,6 @@ export declare const PartnerHierarchiesApiAxiosParamCreator: (configuration?: Co
103
102
  * @throws {RequiredError}
104
103
  */
105
104
  listPartnerHierarchies: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
106
- /**
107
- * Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
108
- * @summary List partner hierarchy file operations
109
- * @param {any} code Unique identifier for the object.
110
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
111
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
112
- * @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.
113
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt&lt;/i&gt;
114
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
115
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, createdAt, updatedAt&lt;/i&gt;
116
- * @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;
117
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt&lt;/i&gt;
118
- * @param {*} [options] Override http request option.
119
- * @throws {RequiredError}
120
- */
121
- listPartnerHierarchyOperations: (code: any, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
122
105
  /**
123
106
  * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
124
107
  * @summary Update a partner hierarchy
@@ -218,22 +201,6 @@ export declare const PartnerHierarchiesApiFp: (configuration?: Configuration) =>
218
201
  * @throws {RequiredError}
219
202
  */
220
203
  listPartnerHierarchies(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerHierarchiesResponseClass>>;
221
- /**
222
- * Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
223
- * @summary List partner hierarchy file operations
224
- * @param {any} code Unique identifier for the object.
225
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
226
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
227
- * @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.
228
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt&lt;/i&gt;
229
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
230
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, createdAt, updatedAt&lt;/i&gt;
231
- * @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;
232
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt&lt;/i&gt;
233
- * @param {*} [options] Override http request option.
234
- * @throws {RequiredError}
235
- */
236
- listPartnerHierarchyOperations(code: any, 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>>;
237
204
  /**
238
205
  * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
239
206
  * @summary Update a partner hierarchy
@@ -333,22 +300,6 @@ export declare const PartnerHierarchiesApiFactory: (configuration?: Configuratio
333
300
  * @throws {RequiredError}
334
301
  */
335
302
  listPartnerHierarchies(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerHierarchiesResponseClass>;
336
- /**
337
- * Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
338
- * @summary List partner hierarchy file operations
339
- * @param {any} code Unique identifier for the object.
340
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
341
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
342
- * @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.
343
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt&lt;/i&gt;
344
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
345
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, createdAt, updatedAt&lt;/i&gt;
346
- * @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;
347
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt&lt;/i&gt;
348
- * @param {*} [options] Override http request option.
349
- * @throws {RequiredError}
350
- */
351
- listPartnerHierarchyOperations(code: any, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerHierarchyOperationsResponseClass>;
352
303
  /**
353
304
  * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
354
305
  * @summary Update a partner hierarchy
@@ -563,67 +514,6 @@ export interface PartnerHierarchiesApiListPartnerHierarchiesRequest {
563
514
  */
564
515
  readonly filters?: string;
565
516
  }
566
- /**
567
- * Request parameters for listPartnerHierarchyOperations operation in PartnerHierarchiesApi.
568
- * @export
569
- * @interface PartnerHierarchiesApiListPartnerHierarchyOperationsRequest
570
- */
571
- export interface PartnerHierarchiesApiListPartnerHierarchyOperationsRequest {
572
- /**
573
- * Unique identifier for the object.
574
- * @type {any}
575
- * @memberof PartnerHierarchiesApiListPartnerHierarchyOperations
576
- */
577
- readonly code: any;
578
- /**
579
- * Bearer Token: provided by the login endpoint under the name accessToken.
580
- * @type {string}
581
- * @memberof PartnerHierarchiesApiListPartnerHierarchyOperations
582
- */
583
- readonly authorization?: string;
584
- /**
585
- * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
586
- * @type {number}
587
- * @memberof PartnerHierarchiesApiListPartnerHierarchyOperations
588
- */
589
- readonly pageSize?: number;
590
- /**
591
- * 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.
592
- * @type {string}
593
- * @memberof PartnerHierarchiesApiListPartnerHierarchyOperations
594
- */
595
- readonly pageToken?: string;
596
- /**
597
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt&lt;/i&gt;
598
- * @type {string}
599
- * @memberof PartnerHierarchiesApiListPartnerHierarchyOperations
600
- */
601
- readonly filter?: string;
602
- /**
603
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
604
- * @type {string}
605
- * @memberof PartnerHierarchiesApiListPartnerHierarchyOperations
606
- */
607
- readonly search?: string;
608
- /**
609
- * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, createdAt, updatedAt&lt;/i&gt;
610
- * @type {string}
611
- * @memberof PartnerHierarchiesApiListPartnerHierarchyOperations
612
- */
613
- readonly order?: string;
614
- /**
615
- * 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;
616
- * @type {string}
617
- * @memberof PartnerHierarchiesApiListPartnerHierarchyOperations
618
- */
619
- readonly expand?: string;
620
- /**
621
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt&lt;/i&gt;
622
- * @type {string}
623
- * @memberof PartnerHierarchiesApiListPartnerHierarchyOperations
624
- */
625
- readonly filters?: string;
626
- }
627
517
  /**
628
518
  * Request parameters for updatePartnerHierarchy operation in PartnerHierarchiesApi.
629
519
  * @export
@@ -744,15 +634,6 @@ export declare class PartnerHierarchiesApi extends BaseAPI {
744
634
  * @memberof PartnerHierarchiesApi
745
635
  */
746
636
  listPartnerHierarchies(requestParameters?: PartnerHierarchiesApiListPartnerHierarchiesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnerHierarchiesResponseClass, any, {}>>;
747
- /**
748
- * Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
749
- * @summary List partner hierarchy file operations
750
- * @param {PartnerHierarchiesApiListPartnerHierarchyOperationsRequest} requestParameters Request parameters.
751
- * @param {*} [options] Override http request option.
752
- * @throws {RequiredError}
753
- * @memberof PartnerHierarchiesApi
754
- */
755
- listPartnerHierarchyOperations(requestParameters: PartnerHierarchiesApiListPartnerHierarchyOperationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnerHierarchyOperationsResponseClass, any, {}>>;
756
637
  /**
757
638
  * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
758
639
  * @summary Update a partner hierarchy
@@ -471,82 +471,6 @@ var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
471
471
  });
472
472
  });
473
473
  },
474
- /**
475
- * Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
476
- * @summary List partner hierarchy file operations
477
- * @param {any} code Unique identifier for the object.
478
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
479
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
480
- * @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.
481
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt&lt;/i&gt;
482
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
483
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, createdAt, updatedAt&lt;/i&gt;
484
- * @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;
485
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt&lt;/i&gt;
486
- * @param {*} [options] Override http request option.
487
- * @throws {RequiredError}
488
- */
489
- listPartnerHierarchyOperations: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
490
- if (options === void 0) { options = {}; }
491
- return __awaiter(_this, void 0, void 0, function () {
492
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
493
- return __generator(this, function (_a) {
494
- switch (_a.label) {
495
- case 0:
496
- // verify required parameter 'code' is not null or undefined
497
- (0, common_1.assertParamExists)('listPartnerHierarchyOperations', 'code', code);
498
- localVarPath = "/partnerservice/v1/partner-hierarchies/{code}/operations"
499
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
500
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
501
- if (configuration) {
502
- baseOptions = configuration.baseOptions;
503
- baseAccessToken = configuration.accessToken;
504
- }
505
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
506
- localVarHeaderParameter = {};
507
- localVarQueryParameter = {};
508
- // authentication bearer required
509
- // http bearer authentication required
510
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
511
- case 1:
512
- // authentication bearer required
513
- // http bearer authentication required
514
- _a.sent();
515
- if (pageSize !== undefined) {
516
- localVarQueryParameter['pageSize'] = pageSize;
517
- }
518
- if (pageToken !== undefined) {
519
- localVarQueryParameter['pageToken'] = pageToken;
520
- }
521
- if (filter !== undefined) {
522
- localVarQueryParameter['filter'] = filter;
523
- }
524
- if (search !== undefined) {
525
- localVarQueryParameter['search'] = search;
526
- }
527
- if (order !== undefined) {
528
- localVarQueryParameter['order'] = order;
529
- }
530
- if (expand !== undefined) {
531
- localVarQueryParameter['expand'] = expand;
532
- }
533
- if (filters !== undefined) {
534
- localVarQueryParameter['filters'] = filters;
535
- }
536
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
537
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
538
- }
539
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
540
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
541
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
542
- return [2 /*return*/, {
543
- url: (0, common_1.toPathString)(localVarUrlObj),
544
- options: localVarRequestOptions,
545
- }];
546
- }
547
- });
548
- });
549
- },
550
474
  /**
551
475
  * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
552
476
  * @summary Update a partner hierarchy
@@ -820,34 +744,6 @@ var PartnerHierarchiesApiFp = function (configuration) {
820
744
  });
821
745
  });
822
746
  },
823
- /**
824
- * Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
825
- * @summary List partner hierarchy file operations
826
- * @param {any} code Unique identifier for the object.
827
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
828
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
829
- * @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.
830
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt&lt;/i&gt;
831
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
832
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, createdAt, updatedAt&lt;/i&gt;
833
- * @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;
834
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt&lt;/i&gt;
835
- * @param {*} [options] Override http request option.
836
- * @throws {RequiredError}
837
- */
838
- listPartnerHierarchyOperations: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
839
- return __awaiter(this, void 0, void 0, function () {
840
- var localVarAxiosArgs;
841
- return __generator(this, function (_a) {
842
- switch (_a.label) {
843
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPartnerHierarchyOperations(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
844
- case 1:
845
- localVarAxiosArgs = _a.sent();
846
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
847
- }
848
- });
849
- });
850
- },
851
747
  /**
852
748
  * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
853
749
  * @summary Update a partner hierarchy
@@ -989,24 +885,6 @@ var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
989
885
  listPartnerHierarchies: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
990
886
  return localVarFp.listPartnerHierarchies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
991
887
  },
992
- /**
993
- * Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
994
- * @summary List partner hierarchy file operations
995
- * @param {any} code Unique identifier for the object.
996
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
997
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
998
- * @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.
999
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt&lt;/i&gt;
1000
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1001
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, createdAt, updatedAt&lt;/i&gt;
1002
- * @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;
1003
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt&lt;/i&gt;
1004
- * @param {*} [options] Override http request option.
1005
- * @throws {RequiredError}
1006
- */
1007
- listPartnerHierarchyOperations: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1008
- return localVarFp.listPartnerHierarchyOperations(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1009
- },
1010
888
  /**
1011
889
  * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
1012
890
  * @summary Update a partner hierarchy
@@ -1130,18 +1008,6 @@ var PartnerHierarchiesApi = /** @class */ (function (_super) {
1130
1008
  if (requestParameters === void 0) { requestParameters = {}; }
1131
1009
  return (0, exports.PartnerHierarchiesApiFp)(this.configuration).listPartnerHierarchies(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); });
1132
1010
  };
1133
- /**
1134
- * Returns long-running file operations for this partner hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
1135
- * @summary List partner hierarchy file operations
1136
- * @param {PartnerHierarchiesApiListPartnerHierarchyOperationsRequest} requestParameters Request parameters.
1137
- * @param {*} [options] Override http request option.
1138
- * @throws {RequiredError}
1139
- * @memberof PartnerHierarchiesApi
1140
- */
1141
- PartnerHierarchiesApi.prototype.listPartnerHierarchyOperations = function (requestParameters, options) {
1142
- var _this = this;
1143
- return (0, exports.PartnerHierarchiesApiFp)(this.configuration).listPartnerHierarchyOperations(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1144
- };
1145
1011
  /**
1146
1012
  * Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
1147
1013
  * @summary Update a partner hierarchy
@@ -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
+ }