@emilgroup/partner-sdk-node 1.23.1-beta.6 → 1.24.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.
- package/.openapi-generator/FILES +1 -42
- package/README.md +2 -2
- package/api/blacklist-api.ts +3 -3
- package/api/blacklist-reasons-api.ts +3 -3
- package/api/{health-api.ts → default-api.ts} +13 -13
- package/api/partners-api.ts +12 -211
- package/api.ts +2 -10
- package/dist/api/blacklist-api.d.ts +4 -4
- package/dist/api/blacklist-reasons-api.d.ts +4 -4
- package/dist/api/{health-api.d.ts → default-api.d.ts} +10 -10
- package/dist/api/{health-api.js → default-api.js} +22 -22
- package/dist/api/partners-api.d.ts +12 -130
- package/dist/api/partners-api.js +9 -143
- package/dist/api.d.ts +1 -5
- package/dist/api.js +1 -5
- package/dist/models/index.d.ts +0 -37
- package/dist/models/index.js +0 -37
- package/dist/models/list-blacklist-items-response-class.d.ts +0 -12
- package/dist/models/list-partner-relation-class.d.ts +6 -18
- package/dist/models/list-partner-relation-types-class.d.ts +6 -18
- package/dist/models/list-partner-types-response-class.d.ts +6 -18
- package/dist/models/list-partner-versions-response-class.d.ts +6 -18
- package/dist/models/list-partners-response-class.d.ts +0 -12
- package/dist/models/list-related-partners-response-class.d.ts +6 -18
- package/dist/models/list-tags-response-class.d.ts +6 -18
- package/dist/models/partner-class.d.ts +0 -6
- package/dist/models/update-blacklist-reason-status-request-dto.d.ts +1 -1
- package/models/index.ts +0 -37
- package/models/list-blacklist-items-response-class.ts +0 -12
- package/models/list-partner-relation-class.ts +6 -18
- package/models/list-partner-relation-types-class.ts +6 -18
- package/models/list-partner-types-response-class.ts +6 -18
- package/models/list-partner-versions-response-class.ts +6 -18
- package/models/list-partners-response-class.ts +0 -12
- package/models/list-related-partners-response-class.ts +6 -18
- package/models/list-tags-response-class.ts +6 -18
- package/models/partner-class.ts +0 -6
- package/models/update-blacklist-reason-status-request-dto.ts +1 -1
- package/package.json +1 -1
- package/api/partner-hierarchies-api.ts +0 -1170
- package/api/partner-hierarchy-nodes-api.ts +0 -1201
- package/api/partner-hierarchy-operations-api.ts +0 -367
- package/api/partner-hierarchy-types-api.ts +0 -683
- package/dist/api/partner-hierarchies-api.d.ts +0 -655
- package/dist/api/partner-hierarchies-api.js +0 -1041
- package/dist/api/partner-hierarchy-nodes-api.d.ts +0 -674
- package/dist/api/partner-hierarchy-nodes-api.js +0 -1053
- package/dist/api/partner-hierarchy-operations-api.d.ts +0 -215
- package/dist/api/partner-hierarchy-operations-api.js +0 -362
- package/dist/api/partner-hierarchy-types-api.d.ts +0 -385
- package/dist/api/partner-hierarchy-types-api.js +0 -640
- package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.d.ts +0 -30
- package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.js +0 -15
- package/dist/models/create-partner-hierarchy-node-request-dto.d.ts +0 -42
- package/dist/models/create-partner-hierarchy-node-request-dto.js +0 -15
- package/dist/models/create-partner-hierarchy-node-response-class.d.ts +0 -25
- package/dist/models/create-partner-hierarchy-node-response-class.js +0 -15
- package/dist/models/create-partner-hierarchy-request-dto.d.ts +0 -30
- package/dist/models/create-partner-hierarchy-request-dto.js +0 -15
- package/dist/models/create-partner-hierarchy-response-class.d.ts +0 -25
- package/dist/models/create-partner-hierarchy-response-class.js +0 -15
- package/dist/models/create-partner-hierarchy-type-request-dto.d.ts +0 -30
- package/dist/models/create-partner-hierarchy-type-request-dto.js +0 -15
- package/dist/models/create-partner-hierarchy-type-response-class.d.ts +0 -25
- package/dist/models/create-partner-hierarchy-type-response-class.js +0 -15
- package/dist/models/delete-by-code-response-class.d.ts +0 -24
- package/dist/models/delete-by-code-response-class.js +0 -15
- package/dist/models/generate-upload-url-response-class.d.ts +0 -36
- package/dist/models/generate-upload-url-response-class.js +0 -15
- package/dist/models/get-partner-hierarchy-node-response-class.d.ts +0 -25
- package/dist/models/get-partner-hierarchy-node-response-class.js +0 -15
- package/dist/models/get-partner-hierarchy-operation-response-class.d.ts +0 -25
- package/dist/models/get-partner-hierarchy-operation-response-class.js +0 -15
- package/dist/models/get-partner-hierarchy-response-class.d.ts +0 -25
- package/dist/models/get-partner-hierarchy-response-class.js +0 -15
- package/dist/models/get-partner-hierarchy-tree-file-response-class.d.ts +0 -60
- package/dist/models/get-partner-hierarchy-tree-file-response-class.js +0 -15
- package/dist/models/get-partner-hierarchy-tree-response-class.d.ts +0 -25
- package/dist/models/get-partner-hierarchy-tree-response-class.js +0 -15
- package/dist/models/get-partner-hierarchy-type-response-class.d.ts +0 -25
- package/dist/models/get-partner-hierarchy-type-response-class.js +0 -15
- package/dist/models/list-partner-hierarchies-response-class.d.ts +0 -43
- package/dist/models/list-partner-hierarchies-response-class.js +0 -15
- package/dist/models/list-partner-hierarchy-node-history-response-class.d.ts +0 -43
- package/dist/models/list-partner-hierarchy-node-history-response-class.js +0 -15
- package/dist/models/list-partner-hierarchy-nodes-response-class.d.ts +0 -43
- package/dist/models/list-partner-hierarchy-nodes-response-class.js +0 -15
- package/dist/models/list-partner-hierarchy-operations-response-class.d.ts +0 -43
- package/dist/models/list-partner-hierarchy-operations-response-class.js +0 -15
- package/dist/models/list-partner-hierarchy-types-response-class.d.ts +0 -43
- package/dist/models/list-partner-hierarchy-types-response-class.js +0 -15
- package/dist/models/move-partner-hierarchy-node-request-dto.d.ts +0 -30
- package/dist/models/move-partner-hierarchy-node-request-dto.js +0 -15
- package/dist/models/move-partner-hierarchy-node-response-class.d.ts +0 -25
- package/dist/models/move-partner-hierarchy-node-response-class.js +0 -15
- package/dist/models/partner-hierarchy-async-operation-response-class.d.ts +0 -30
- package/dist/models/partner-hierarchy-async-operation-response-class.js +0 -15
- package/dist/models/partner-hierarchy-class.d.ts +0 -72
- package/dist/models/partner-hierarchy-class.js +0 -15
- package/dist/models/partner-hierarchy-node-class.d.ts +0 -109
- package/dist/models/partner-hierarchy-node-class.js +0 -15
- package/dist/models/partner-hierarchy-node-history-class.d.ts +0 -97
- package/dist/models/partner-hierarchy-node-history-class.js +0 -15
- package/dist/models/partner-hierarchy-node-tree-class.d.ts +0 -96
- package/dist/models/partner-hierarchy-node-tree-class.js +0 -15
- package/dist/models/partner-hierarchy-operation-class.d.ts +0 -110
- package/dist/models/partner-hierarchy-operation-class.js +0 -27
- package/dist/models/partner-hierarchy-type-class.d.ts +0 -66
- package/dist/models/partner-hierarchy-type-class.js +0 -15
- package/dist/models/unassign-partner-hierarchy-node-response-class.d.ts +0 -25
- package/dist/models/unassign-partner-hierarchy-node-response-class.js +0 -15
- package/dist/models/update-partner-hierarchy-node-request-dto.d.ts +0 -30
- package/dist/models/update-partner-hierarchy-node-request-dto.js +0 -15
- package/dist/models/update-partner-hierarchy-node-response-class.d.ts +0 -25
- package/dist/models/update-partner-hierarchy-node-response-class.js +0 -15
- package/dist/models/update-partner-hierarchy-request-dto.d.ts +0 -24
- package/dist/models/update-partner-hierarchy-request-dto.js +0 -15
- package/dist/models/update-partner-hierarchy-response-class.d.ts +0 -25
- package/dist/models/update-partner-hierarchy-response-class.js +0 -15
- package/dist/models/update-partner-hierarchy-tree-request-body-dto.d.ts +0 -24
- package/dist/models/update-partner-hierarchy-tree-request-body-dto.js +0 -15
- package/dist/models/update-partner-hierarchy-type-request-dto.d.ts +0 -30
- package/dist/models/update-partner-hierarchy-type-request-dto.js +0 -15
- package/dist/models/update-partner-hierarchy-type-response-class.d.ts +0 -25
- package/dist/models/update-partner-hierarchy-type-response-class.js +0 -15
- package/models/batch-create-partner-hierarchy-nodes-request-dto.ts +0 -36
- package/models/create-partner-hierarchy-node-request-dto.ts +0 -48
- package/models/create-partner-hierarchy-node-response-class.ts +0 -31
- package/models/create-partner-hierarchy-request-dto.ts +0 -36
- package/models/create-partner-hierarchy-response-class.ts +0 -31
- package/models/create-partner-hierarchy-type-request-dto.ts +0 -36
- package/models/create-partner-hierarchy-type-response-class.ts +0 -31
- package/models/delete-by-code-response-class.ts +0 -30
- package/models/generate-upload-url-response-class.ts +0 -42
- package/models/get-partner-hierarchy-node-response-class.ts +0 -31
- package/models/get-partner-hierarchy-operation-response-class.ts +0 -31
- package/models/get-partner-hierarchy-response-class.ts +0 -31
- package/models/get-partner-hierarchy-tree-file-response-class.ts +0 -66
- package/models/get-partner-hierarchy-tree-response-class.ts +0 -31
- package/models/get-partner-hierarchy-type-response-class.ts +0 -31
- package/models/list-partner-hierarchies-response-class.ts +0 -49
- package/models/list-partner-hierarchy-node-history-response-class.ts +0 -49
- package/models/list-partner-hierarchy-nodes-response-class.ts +0 -49
- package/models/list-partner-hierarchy-operations-response-class.ts +0 -49
- package/models/list-partner-hierarchy-types-response-class.ts +0 -49
- package/models/move-partner-hierarchy-node-request-dto.ts +0 -36
- package/models/move-partner-hierarchy-node-response-class.ts +0 -31
- package/models/partner-hierarchy-async-operation-response-class.ts +0 -36
- package/models/partner-hierarchy-class.ts +0 -78
- package/models/partner-hierarchy-node-class.ts +0 -115
- package/models/partner-hierarchy-node-history-class.ts +0 -103
- package/models/partner-hierarchy-node-tree-class.ts +0 -102
- package/models/partner-hierarchy-operation-class.ts +0 -120
- package/models/partner-hierarchy-type-class.ts +0 -72
- package/models/unassign-partner-hierarchy-node-response-class.ts +0 -31
- package/models/update-partner-hierarchy-node-request-dto.ts +0 -36
- package/models/update-partner-hierarchy-node-response-class.ts +0 -31
- package/models/update-partner-hierarchy-request-dto.ts +0 -30
- package/models/update-partner-hierarchy-response-class.ts +0 -31
- package/models/update-partner-hierarchy-tree-request-body-dto.ts +0 -30
- package/models/update-partner-hierarchy-type-request-dto.ts +0 -36
- package/models/update-partner-hierarchy-type-response-class.ts +0 -31
|
@@ -1,215 +0,0 @@
|
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
39
|
-
* @param {string} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, code, type, status, createdAt, updatedAt</i>
|
|
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.<br/> <br/>
|
|
42
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
70
|
-
* @param {string} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, code, type, status, createdAt, updatedAt</i>
|
|
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.<br/> <br/>
|
|
73
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
101
|
-
* @param {string} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, code, type, status, createdAt, updatedAt</i>
|
|
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.<br/> <br/>
|
|
104
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
161
|
-
* @type {string}
|
|
162
|
-
* @memberof PartnerHierarchyOperationsApiListPartnerHierarchyOperations
|
|
163
|
-
*/
|
|
164
|
-
readonly filter?: string;
|
|
165
|
-
/**
|
|
166
|
-
* To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, code, type, status, createdAt, updatedAt</i>
|
|
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.<br/> <br/>
|
|
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.<br/> <br/> <i>Allowed values: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
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
|
-
}
|
|
@@ -1,362 +0,0 @@
|
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
158
|
-
* @param {string} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, code, type, status, createdAt, updatedAt</i>
|
|
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.<br/> <br/>
|
|
161
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
262
|
-
* @param {string} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, code, type, status, createdAt, updatedAt</i>
|
|
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.<br/> <br/>
|
|
265
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
311
|
-
* @param {string} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, code, type, status, createdAt, updatedAt</i>
|
|
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.<br/> <br/>
|
|
314
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, partnerHierarchyCode, type, status, createdAt</i>
|
|
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;
|