@emilgroup/partner-sdk 1.22.1-beta.16 → 1.22.1-beta.18
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 +49 -1
- package/README.md +2 -2
- package/api/blacklist-api.ts +662 -0
- package/api/blacklist-reasons-api.ts +797 -0
- package/api/{default-api.ts → health-api.ts} +13 -13
- package/api/partner-hierarchies-api.ts +1342 -0
- package/api/partner-hierarchy-nodes-api.ts +1178 -0
- package/api/partner-hierarchy-types-api.ts +679 -0
- package/api/partners-api.ts +12 -12
- package/api.ts +12 -2
- package/base.ts +1 -0
- package/dist/api/blacklist-api.d.ts +375 -0
- package/dist/api/blacklist-api.js +629 -0
- package/dist/api/blacklist-reasons-api.d.ts +450 -0
- package/dist/api/blacklist-reasons-api.js +735 -0
- package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
- package/dist/api/{default-api.js → health-api.js} +22 -22
- package/dist/api/partner-hierarchies-api.d.ts +760 -0
- package/dist/api/partner-hierarchies-api.js +1164 -0
- package/dist/api/partner-hierarchy-nodes-api.d.ts +663 -0
- package/dist/api/partner-hierarchy-nodes-api.js +1043 -0
- package/dist/api/partner-hierarchy-types-api.d.ts +385 -0
- package/dist/api/partner-hierarchy-types-api.js +636 -0
- package/dist/api/partners-api.d.ts +12 -12
- package/dist/api/partners-api.js +9 -9
- package/dist/api.d.ts +6 -1
- package/dist/api.js +6 -1
- package/dist/base.d.ts +2 -1
- package/dist/base.js +1 -0
- package/dist/models/blacklist-item-class.d.ts +78 -0
- package/dist/models/blacklist-item-class.js +15 -0
- package/dist/models/blacklist-reason-class.d.ts +78 -0
- package/dist/models/blacklist-reason-class.js +15 -0
- package/dist/models/create-blacklist-item-request-dto.d.ts +36 -0
- package/dist/models/create-blacklist-item-request-dto.js +15 -0
- package/dist/models/create-blacklist-item-response-class.d.ts +25 -0
- package/dist/models/create-blacklist-item-response-class.js +15 -0
- package/dist/models/create-blacklist-reason-request-dto.d.ts +36 -0
- package/dist/models/create-blacklist-reason-request-dto.js +15 -0
- package/dist/models/create-blacklist-reason-response-class.d.ts +25 -0
- package/dist/models/create-blacklist-reason-response-class.js +15 -0
- package/dist/models/create-partner-hierarchy-node-request-dto.d.ts +42 -0
- package/dist/models/create-partner-hierarchy-node-request-dto.js +15 -0
- package/dist/models/create-partner-hierarchy-node-response-class.d.ts +25 -0
- package/dist/models/create-partner-hierarchy-node-response-class.js +15 -0
- package/dist/models/create-partner-hierarchy-request-dto.d.ts +30 -0
- package/dist/models/create-partner-hierarchy-request-dto.js +15 -0
- package/dist/models/create-partner-hierarchy-response-class.d.ts +25 -0
- package/dist/models/create-partner-hierarchy-response-class.js +15 -0
- package/dist/models/create-partner-hierarchy-type-request-dto.d.ts +30 -0
- package/dist/models/create-partner-hierarchy-type-request-dto.js +15 -0
- package/dist/models/create-partner-hierarchy-type-response-class.d.ts +25 -0
- package/dist/models/create-partner-hierarchy-type-response-class.js +15 -0
- package/dist/models/delete-by-code-response-class.d.ts +24 -0
- package/dist/models/delete-by-code-response-class.js +15 -0
- package/dist/models/get-blacklist-item-response-class.d.ts +25 -0
- package/dist/models/get-blacklist-item-response-class.js +15 -0
- package/dist/models/get-blacklist-reason-response-class.d.ts +25 -0
- package/dist/models/get-blacklist-reason-response-class.js +15 -0
- package/dist/models/get-partner-hierarchy-node-response-class.d.ts +25 -0
- package/dist/models/get-partner-hierarchy-node-response-class.js +15 -0
- package/dist/models/get-partner-hierarchy-response-class.d.ts +25 -0
- package/dist/models/get-partner-hierarchy-response-class.js +15 -0
- package/dist/models/get-partner-hierarchy-tree-response-class.d.ts +25 -0
- package/dist/models/get-partner-hierarchy-tree-response-class.js +15 -0
- package/dist/models/get-partner-hierarchy-type-response-class.d.ts +25 -0
- package/dist/models/get-partner-hierarchy-type-response-class.js +15 -0
- package/dist/models/index.d.ts +43 -0
- package/dist/models/index.js +43 -0
- package/dist/models/is-blacklisted-response-class.d.ts +54 -0
- package/dist/models/is-blacklisted-response-class.js +15 -0
- package/dist/models/list-blacklist-items-response-class.d.ts +43 -0
- package/dist/models/list-blacklist-items-response-class.js +15 -0
- package/dist/models/list-blacklist-reasons-response-class.d.ts +43 -0
- package/dist/models/list-blacklist-reasons-response-class.js +15 -0
- package/dist/models/list-partner-hierarchies-response-class.d.ts +43 -0
- package/dist/models/list-partner-hierarchies-response-class.js +15 -0
- package/dist/models/list-partner-hierarchy-node-history-response-class.d.ts +43 -0
- package/dist/models/list-partner-hierarchy-node-history-response-class.js +15 -0
- package/dist/models/list-partner-hierarchy-nodes-response-class.d.ts +43 -0
- package/dist/models/list-partner-hierarchy-nodes-response-class.js +15 -0
- package/dist/models/list-partner-hierarchy-types-response-class.d.ts +43 -0
- package/dist/models/list-partner-hierarchy-types-response-class.js +15 -0
- package/dist/models/list-partner-relation-class.d.ts +18 -6
- package/dist/models/list-partner-relation-types-class.d.ts +18 -6
- package/dist/models/list-partner-types-response-class.d.ts +18 -6
- package/dist/models/list-partner-versions-response-class.d.ts +18 -6
- package/dist/models/list-partners-response-class.d.ts +18 -6
- package/dist/models/list-related-partners-response-class.d.ts +18 -6
- package/dist/models/list-tags-response-class.d.ts +18 -6
- package/dist/models/move-partner-hierarchy-node-request-dto.d.ts +30 -0
- package/dist/models/move-partner-hierarchy-node-request-dto.js +15 -0
- package/dist/models/move-partner-hierarchy-node-response-class.d.ts +25 -0
- package/dist/models/move-partner-hierarchy-node-response-class.js +15 -0
- package/dist/models/partner-hierarchy-class.d.ts +78 -0
- package/dist/models/partner-hierarchy-class.js +15 -0
- package/dist/models/partner-hierarchy-node-class.d.ts +109 -0
- package/dist/models/partner-hierarchy-node-class.js +15 -0
- package/dist/models/partner-hierarchy-node-history-class.d.ts +97 -0
- package/dist/models/partner-hierarchy-node-history-class.js +15 -0
- package/dist/models/partner-hierarchy-node-tree-class.d.ts +96 -0
- package/dist/models/partner-hierarchy-node-tree-class.js +15 -0
- package/dist/models/partner-hierarchy-type-class.d.ts +66 -0
- package/dist/models/partner-hierarchy-type-class.js +15 -0
- package/dist/models/unassign-partner-hierarchy-node-response-class.d.ts +25 -0
- package/dist/models/unassign-partner-hierarchy-node-response-class.js +15 -0
- package/dist/models/update-blacklist-reason-request-dto.d.ts +30 -0
- package/dist/models/update-blacklist-reason-request-dto.js +15 -0
- package/dist/models/update-blacklist-reason-response-class.d.ts +25 -0
- package/dist/models/update-blacklist-reason-response-class.js +15 -0
- package/dist/models/update-blacklist-reason-status-request-dto.d.ts +24 -0
- package/dist/models/update-blacklist-reason-status-request-dto.js +15 -0
- package/dist/models/update-partner-hierarchy-node-request-dto.d.ts +30 -0
- package/dist/models/update-partner-hierarchy-node-request-dto.js +15 -0
- package/dist/models/update-partner-hierarchy-node-response-class.d.ts +25 -0
- package/dist/models/update-partner-hierarchy-node-response-class.js +15 -0
- package/dist/models/update-partner-hierarchy-request-dto.d.ts +24 -0
- package/dist/models/update-partner-hierarchy-request-dto.js +15 -0
- package/dist/models/update-partner-hierarchy-response-class.d.ts +25 -0
- package/dist/models/update-partner-hierarchy-response-class.js +15 -0
- package/dist/models/update-partner-hierarchy-type-request-dto.d.ts +30 -0
- package/dist/models/update-partner-hierarchy-type-request-dto.js +15 -0
- package/dist/models/update-partner-hierarchy-type-response-class.d.ts +25 -0
- package/dist/models/update-partner-hierarchy-type-response-class.js +15 -0
- package/models/blacklist-item-class.ts +84 -0
- package/models/blacklist-reason-class.ts +84 -0
- package/models/create-blacklist-item-request-dto.ts +42 -0
- package/models/create-blacklist-item-response-class.ts +31 -0
- package/models/create-blacklist-reason-request-dto.ts +42 -0
- package/models/create-blacklist-reason-response-class.ts +31 -0
- package/models/create-partner-hierarchy-node-request-dto.ts +48 -0
- package/models/create-partner-hierarchy-node-response-class.ts +31 -0
- package/models/create-partner-hierarchy-request-dto.ts +36 -0
- package/models/create-partner-hierarchy-response-class.ts +31 -0
- package/models/create-partner-hierarchy-type-request-dto.ts +36 -0
- package/models/create-partner-hierarchy-type-response-class.ts +31 -0
- package/models/delete-by-code-response-class.ts +30 -0
- package/models/get-blacklist-item-response-class.ts +31 -0
- package/models/get-blacklist-reason-response-class.ts +31 -0
- package/models/get-partner-hierarchy-node-response-class.ts +31 -0
- package/models/get-partner-hierarchy-response-class.ts +31 -0
- package/models/get-partner-hierarchy-tree-response-class.ts +31 -0
- package/models/get-partner-hierarchy-type-response-class.ts +31 -0
- package/models/index.ts +43 -0
- package/models/is-blacklisted-response-class.ts +60 -0
- package/models/list-blacklist-items-response-class.ts +49 -0
- package/models/list-blacklist-reasons-response-class.ts +49 -0
- package/models/list-partner-hierarchies-response-class.ts +49 -0
- package/models/list-partner-hierarchy-node-history-response-class.ts +49 -0
- package/models/list-partner-hierarchy-nodes-response-class.ts +49 -0
- package/models/list-partner-hierarchy-types-response-class.ts +49 -0
- package/models/list-partner-relation-class.ts +18 -6
- package/models/list-partner-relation-types-class.ts +18 -6
- package/models/list-partner-types-response-class.ts +18 -6
- package/models/list-partner-versions-response-class.ts +18 -6
- package/models/list-partners-response-class.ts +18 -6
- package/models/list-related-partners-response-class.ts +18 -6
- package/models/list-tags-response-class.ts +18 -6
- package/models/move-partner-hierarchy-node-request-dto.ts +36 -0
- package/models/move-partner-hierarchy-node-response-class.ts +31 -0
- package/models/partner-hierarchy-class.ts +84 -0
- package/models/partner-hierarchy-node-class.ts +115 -0
- package/models/partner-hierarchy-node-history-class.ts +103 -0
- package/models/partner-hierarchy-node-tree-class.ts +102 -0
- package/models/partner-hierarchy-type-class.ts +72 -0
- package/models/unassign-partner-hierarchy-node-response-class.ts +31 -0
- package/models/update-blacklist-reason-request-dto.ts +36 -0
- package/models/update-blacklist-reason-response-class.ts +31 -0
- package/models/update-blacklist-reason-status-request-dto.ts +30 -0
- package/models/update-partner-hierarchy-node-request-dto.ts +36 -0
- package/models/update-partner-hierarchy-node-response-class.ts +31 -0
- package/models/update-partner-hierarchy-request-dto.ts +30 -0
- package/models/update-partner-hierarchy-response-class.ts +31 -0
- package/models/update-partner-hierarchy-type-request-dto.ts +36 -0
- package/models/update-partner-hierarchy-type-response-class.ts +31 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1178 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL PartnerService
|
|
5
|
+
* The EMIL PartnerService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreatePartnerHierarchyNodeRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreatePartnerHierarchyNodeResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { DeleteByCodeResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { GetPartnerHierarchyNodeResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { ListPartnerHierarchyNodeHistoryResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { ListPartnerHierarchyNodesResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { MovePartnerHierarchyNodeRequestDto } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { MovePartnerHierarchyNodeResponseClass } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
import { UnassignPartnerHierarchyNodeResponseClass } from '../models';
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
import { UpdatePartnerHierarchyNodeRequestDto } from '../models';
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
import { UpdatePartnerHierarchyNodeResponseClass } from '../models';
|
|
45
|
+
/**
|
|
46
|
+
* PartnerHierarchyNodesApi - axios parameter creator
|
|
47
|
+
* @export
|
|
48
|
+
*/
|
|
49
|
+
export const PartnerHierarchyNodesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
50
|
+
return {
|
|
51
|
+
/**
|
|
52
|
+
* Starts batch node creation from an uploaded file and returns the operation status. **Required Permissions** \"partner-management.partners.create\"
|
|
53
|
+
* @summary Create the partner hierarchy nodes batch
|
|
54
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
55
|
+
* @param {*} [options] Override http request option.
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
*/
|
|
58
|
+
batchCreatePartnerHierarchyNodes: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
59
|
+
const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes/batch`;
|
|
60
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
61
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
62
|
+
let baseOptions;
|
|
63
|
+
let baseAccessToken;
|
|
64
|
+
if (configuration) {
|
|
65
|
+
baseOptions = configuration.baseOptions;
|
|
66
|
+
baseAccessToken = configuration.accessToken;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
70
|
+
const localVarHeaderParameter = {} as any;
|
|
71
|
+
const localVarQueryParameter = {} as any;
|
|
72
|
+
|
|
73
|
+
// authentication bearer required
|
|
74
|
+
// http bearer authentication required
|
|
75
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
76
|
+
|
|
77
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
78
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
84
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
85
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
url: toPathString(localVarUrlObj),
|
|
89
|
+
options: localVarRequestOptions,
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
* Creates a node in a partner hierarchy. The node can be placed at the top of the hierarchy or under another node, and it can be created with or without an assigned partner. **Required Permissions** \"partner-management.partners.create\"
|
|
94
|
+
* @summary Create the partner hierarchy node
|
|
95
|
+
* @param {CreatePartnerHierarchyNodeRequestDto} createPartnerHierarchyNodeRequestDto
|
|
96
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
createPartnerHierarchyNode: async (createPartnerHierarchyNodeRequestDto: CreatePartnerHierarchyNodeRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
|
+
// verify required parameter 'createPartnerHierarchyNodeRequestDto' is not null or undefined
|
|
102
|
+
assertParamExists('createPartnerHierarchyNode', 'createPartnerHierarchyNodeRequestDto', createPartnerHierarchyNodeRequestDto)
|
|
103
|
+
const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes`;
|
|
104
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
106
|
+
let baseOptions;
|
|
107
|
+
let baseAccessToken;
|
|
108
|
+
if (configuration) {
|
|
109
|
+
baseOptions = configuration.baseOptions;
|
|
110
|
+
baseAccessToken = configuration.accessToken;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
114
|
+
const localVarHeaderParameter = {} as any;
|
|
115
|
+
const localVarQueryParameter = {} as any;
|
|
116
|
+
|
|
117
|
+
// authentication bearer required
|
|
118
|
+
// http bearer authentication required
|
|
119
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
120
|
+
|
|
121
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
122
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
128
|
+
|
|
129
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
130
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
131
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
132
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPartnerHierarchyNodeRequestDto, localVarRequestOptions, configuration)
|
|
133
|
+
|
|
134
|
+
return {
|
|
135
|
+
url: toPathString(localVarUrlObj),
|
|
136
|
+
options: localVarRequestOptions,
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
/**
|
|
140
|
+
* Deletes a partner hierarchy node. The node must have no children before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
|
|
141
|
+
* @summary Delete the partner hierarchy node
|
|
142
|
+
* @param {string} code
|
|
143
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
deletePartnerHierarchyNode: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
148
|
+
// verify required parameter 'code' is not null or undefined
|
|
149
|
+
assertParamExists('deletePartnerHierarchyNode', 'code', code)
|
|
150
|
+
const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes/{code}`
|
|
151
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
152
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
153
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
154
|
+
let baseOptions;
|
|
155
|
+
let baseAccessToken;
|
|
156
|
+
if (configuration) {
|
|
157
|
+
baseOptions = configuration.baseOptions;
|
|
158
|
+
baseAccessToken = configuration.accessToken;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
162
|
+
const localVarHeaderParameter = {} as any;
|
|
163
|
+
const localVarQueryParameter = {} as any;
|
|
164
|
+
|
|
165
|
+
// authentication bearer required
|
|
166
|
+
// http bearer authentication required
|
|
167
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
168
|
+
|
|
169
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
170
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
176
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
177
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
178
|
+
|
|
179
|
+
return {
|
|
180
|
+
url: toPathString(localVarUrlObj),
|
|
181
|
+
options: localVarRequestOptions,
|
|
182
|
+
};
|
|
183
|
+
},
|
|
184
|
+
/**
|
|
185
|
+
* Returns the details of one partner hierarchy node. Partner and parent node details can be included when needed. **Required Permissions** \"partner-management.partners.view\"
|
|
186
|
+
* @summary Retrieve the partner hierarchy node
|
|
187
|
+
* @param {string} code
|
|
188
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
|
+
* @param {*} [options] Override http request option.
|
|
190
|
+
* @throws {RequiredError}
|
|
191
|
+
*/
|
|
192
|
+
getPartnerHierarchyNode: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
193
|
+
// verify required parameter 'code' is not null or undefined
|
|
194
|
+
assertParamExists('getPartnerHierarchyNode', 'code', code)
|
|
195
|
+
const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes/{code}`
|
|
196
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
197
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
198
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
199
|
+
let baseOptions;
|
|
200
|
+
let baseAccessToken;
|
|
201
|
+
if (configuration) {
|
|
202
|
+
baseOptions = configuration.baseOptions;
|
|
203
|
+
baseAccessToken = configuration.accessToken;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
207
|
+
const localVarHeaderParameter = {} as any;
|
|
208
|
+
const localVarQueryParameter = {} as any;
|
|
209
|
+
|
|
210
|
+
// authentication bearer required
|
|
211
|
+
// http bearer authentication required
|
|
212
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
213
|
+
|
|
214
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
215
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
221
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
222
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
223
|
+
|
|
224
|
+
return {
|
|
225
|
+
url: toPathString(localVarUrlObj),
|
|
226
|
+
options: localVarRequestOptions,
|
|
227
|
+
};
|
|
228
|
+
},
|
|
229
|
+
/**
|
|
230
|
+
* Returns a paginated list of previous versions of partner hierarchy nodes for history review. **Required Permissions** \"partner-management.partners.view\"
|
|
231
|
+
* @summary List partner hierarchy node histories
|
|
232
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
233
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
234
|
+
* @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.
|
|
235
|
+
* @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, validFrom</i>
|
|
236
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
237
|
+
* @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, validFrom, validTo, createdAt</i>
|
|
238
|
+
* @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/> <i>Allowed values: partner<i>
|
|
239
|
+
* @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, validFrom</i>
|
|
240
|
+
* @param {*} [options] Override http request option.
|
|
241
|
+
* @throws {RequiredError}
|
|
242
|
+
*/
|
|
243
|
+
listPartnerHierarchyNodeHistory: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
244
|
+
const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes/histories`;
|
|
245
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
246
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
247
|
+
let baseOptions;
|
|
248
|
+
let baseAccessToken;
|
|
249
|
+
if (configuration) {
|
|
250
|
+
baseOptions = configuration.baseOptions;
|
|
251
|
+
baseAccessToken = configuration.accessToken;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
255
|
+
const localVarHeaderParameter = {} as any;
|
|
256
|
+
const localVarQueryParameter = {} as any;
|
|
257
|
+
|
|
258
|
+
// authentication bearer required
|
|
259
|
+
// http bearer authentication required
|
|
260
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
261
|
+
|
|
262
|
+
if (pageSize !== undefined) {
|
|
263
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
if (pageToken !== undefined) {
|
|
267
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
if (filter !== undefined) {
|
|
271
|
+
localVarQueryParameter['filter'] = filter;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
if (search !== undefined) {
|
|
275
|
+
localVarQueryParameter['search'] = search;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
if (order !== undefined) {
|
|
279
|
+
localVarQueryParameter['order'] = order;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
if (expand !== undefined) {
|
|
283
|
+
localVarQueryParameter['expand'] = expand;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
if (filters !== undefined) {
|
|
287
|
+
localVarQueryParameter['filters'] = filters;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
291
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
297
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
299
|
+
|
|
300
|
+
return {
|
|
301
|
+
url: toPathString(localVarUrlObj),
|
|
302
|
+
options: localVarRequestOptions,
|
|
303
|
+
};
|
|
304
|
+
},
|
|
305
|
+
/**
|
|
306
|
+
* Returns a paginated list of partner hierarchy nodes. **Required Permissions** \"partner-management.partners.view\"
|
|
307
|
+
* @summary List partner hierarchy nodes
|
|
308
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
309
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
310
|
+
* @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.
|
|
311
|
+
* @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, partnerCode, parentNodeCode, roleCode, depth, createdAt, updatedAt</i>
|
|
312
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
313
|
+
* @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, depth, createdAt, updatedAt</i>
|
|
314
|
+
* @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/> <i>Allowed values: partner, parentNode<i>
|
|
315
|
+
* @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, partnerCode, parentNodeCode, roleCode, depth, createdAt, updatedAt</i>
|
|
316
|
+
* @param {*} [options] Override http request option.
|
|
317
|
+
* @throws {RequiredError}
|
|
318
|
+
*/
|
|
319
|
+
listPartnerHierarchyNodes: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
320
|
+
const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes`;
|
|
321
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
322
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
323
|
+
let baseOptions;
|
|
324
|
+
let baseAccessToken;
|
|
325
|
+
if (configuration) {
|
|
326
|
+
baseOptions = configuration.baseOptions;
|
|
327
|
+
baseAccessToken = configuration.accessToken;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
331
|
+
const localVarHeaderParameter = {} as any;
|
|
332
|
+
const localVarQueryParameter = {} as any;
|
|
333
|
+
|
|
334
|
+
// authentication bearer required
|
|
335
|
+
// http bearer authentication required
|
|
336
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
337
|
+
|
|
338
|
+
if (pageSize !== undefined) {
|
|
339
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
if (pageToken !== undefined) {
|
|
343
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
if (filter !== undefined) {
|
|
347
|
+
localVarQueryParameter['filter'] = filter;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
if (search !== undefined) {
|
|
351
|
+
localVarQueryParameter['search'] = search;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
if (order !== undefined) {
|
|
355
|
+
localVarQueryParameter['order'] = order;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
if (expand !== undefined) {
|
|
359
|
+
localVarQueryParameter['expand'] = expand;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
if (filters !== undefined) {
|
|
363
|
+
localVarQueryParameter['filters'] = filters;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
367
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
373
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
374
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
375
|
+
|
|
376
|
+
return {
|
|
377
|
+
url: toPathString(localVarUrlObj),
|
|
378
|
+
options: localVarRequestOptions,
|
|
379
|
+
};
|
|
380
|
+
},
|
|
381
|
+
/**
|
|
382
|
+
* Moves a node under another parent at the same level in the same hierarchy. Any nodes below it move with it. **Required Permissions** \"partner-management.partners.update\"
|
|
383
|
+
* @summary Create the partner hierarchy node move
|
|
384
|
+
* @param {string} code
|
|
385
|
+
* @param {MovePartnerHierarchyNodeRequestDto} movePartnerHierarchyNodeRequestDto
|
|
386
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
387
|
+
* @param {*} [options] Override http request option.
|
|
388
|
+
* @throws {RequiredError}
|
|
389
|
+
*/
|
|
390
|
+
movePartnerHierarchyNode: async (code: string, movePartnerHierarchyNodeRequestDto: MovePartnerHierarchyNodeRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
391
|
+
// verify required parameter 'code' is not null or undefined
|
|
392
|
+
assertParamExists('movePartnerHierarchyNode', 'code', code)
|
|
393
|
+
// verify required parameter 'movePartnerHierarchyNodeRequestDto' is not null or undefined
|
|
394
|
+
assertParamExists('movePartnerHierarchyNode', 'movePartnerHierarchyNodeRequestDto', movePartnerHierarchyNodeRequestDto)
|
|
395
|
+
const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes/{code}/move`
|
|
396
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
397
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
398
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
399
|
+
let baseOptions;
|
|
400
|
+
let baseAccessToken;
|
|
401
|
+
if (configuration) {
|
|
402
|
+
baseOptions = configuration.baseOptions;
|
|
403
|
+
baseAccessToken = configuration.accessToken;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
407
|
+
const localVarHeaderParameter = {} as any;
|
|
408
|
+
const localVarQueryParameter = {} as any;
|
|
409
|
+
|
|
410
|
+
// authentication bearer required
|
|
411
|
+
// http bearer authentication required
|
|
412
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
413
|
+
|
|
414
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
415
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
421
|
+
|
|
422
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
423
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
424
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
425
|
+
localVarRequestOptions.data = serializeDataIfNeeded(movePartnerHierarchyNodeRequestDto, localVarRequestOptions, configuration)
|
|
426
|
+
|
|
427
|
+
return {
|
|
428
|
+
url: toPathString(localVarUrlObj),
|
|
429
|
+
options: localVarRequestOptions,
|
|
430
|
+
};
|
|
431
|
+
},
|
|
432
|
+
/**
|
|
433
|
+
* Removes the partner assigned to a partner hierarchy node while keeping the node in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
434
|
+
* @summary Create the partner hierarchy node unassign
|
|
435
|
+
* @param {string} code
|
|
436
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
437
|
+
* @param {*} [options] Override http request option.
|
|
438
|
+
* @throws {RequiredError}
|
|
439
|
+
*/
|
|
440
|
+
unassignPartnerHierarchyNode: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
441
|
+
// verify required parameter 'code' is not null or undefined
|
|
442
|
+
assertParamExists('unassignPartnerHierarchyNode', 'code', code)
|
|
443
|
+
const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes/{code}/unassign`
|
|
444
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
445
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
446
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
447
|
+
let baseOptions;
|
|
448
|
+
let baseAccessToken;
|
|
449
|
+
if (configuration) {
|
|
450
|
+
baseOptions = configuration.baseOptions;
|
|
451
|
+
baseAccessToken = configuration.accessToken;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
455
|
+
const localVarHeaderParameter = {} as any;
|
|
456
|
+
const localVarQueryParameter = {} as any;
|
|
457
|
+
|
|
458
|
+
// authentication bearer required
|
|
459
|
+
// http bearer authentication required
|
|
460
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
461
|
+
|
|
462
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
463
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
469
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
470
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
471
|
+
|
|
472
|
+
return {
|
|
473
|
+
url: toPathString(localVarUrlObj),
|
|
474
|
+
options: localVarRequestOptions,
|
|
475
|
+
};
|
|
476
|
+
},
|
|
477
|
+
/**
|
|
478
|
+
* Updates a node role or changes the partner assigned to the node. It does not move the node in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
479
|
+
* @summary Update the partner hierarchy node
|
|
480
|
+
* @param {string} code
|
|
481
|
+
* @param {UpdatePartnerHierarchyNodeRequestDto} updatePartnerHierarchyNodeRequestDto
|
|
482
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
483
|
+
* @param {*} [options] Override http request option.
|
|
484
|
+
* @throws {RequiredError}
|
|
485
|
+
*/
|
|
486
|
+
updatePartnerHierarchyNode: async (code: string, updatePartnerHierarchyNodeRequestDto: UpdatePartnerHierarchyNodeRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
487
|
+
// verify required parameter 'code' is not null or undefined
|
|
488
|
+
assertParamExists('updatePartnerHierarchyNode', 'code', code)
|
|
489
|
+
// verify required parameter 'updatePartnerHierarchyNodeRequestDto' is not null or undefined
|
|
490
|
+
assertParamExists('updatePartnerHierarchyNode', 'updatePartnerHierarchyNodeRequestDto', updatePartnerHierarchyNodeRequestDto)
|
|
491
|
+
const localVarPath = `/partnerservice/v1/partner-hierarchy-nodes/{code}`
|
|
492
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
493
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
494
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
495
|
+
let baseOptions;
|
|
496
|
+
let baseAccessToken;
|
|
497
|
+
if (configuration) {
|
|
498
|
+
baseOptions = configuration.baseOptions;
|
|
499
|
+
baseAccessToken = configuration.accessToken;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
503
|
+
const localVarHeaderParameter = {} as any;
|
|
504
|
+
const localVarQueryParameter = {} as any;
|
|
505
|
+
|
|
506
|
+
// authentication bearer required
|
|
507
|
+
// http bearer authentication required
|
|
508
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
509
|
+
|
|
510
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
511
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
517
|
+
|
|
518
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
519
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
520
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
521
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePartnerHierarchyNodeRequestDto, localVarRequestOptions, configuration)
|
|
522
|
+
|
|
523
|
+
return {
|
|
524
|
+
url: toPathString(localVarUrlObj),
|
|
525
|
+
options: localVarRequestOptions,
|
|
526
|
+
};
|
|
527
|
+
},
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* PartnerHierarchyNodesApi - functional programming interface
|
|
533
|
+
* @export
|
|
534
|
+
*/
|
|
535
|
+
export const PartnerHierarchyNodesApiFp = function(configuration?: Configuration) {
|
|
536
|
+
const localVarAxiosParamCreator = PartnerHierarchyNodesApiAxiosParamCreator(configuration)
|
|
537
|
+
return {
|
|
538
|
+
/**
|
|
539
|
+
* Starts batch node creation from an uploaded file and returns the operation status. **Required Permissions** \"partner-management.partners.create\"
|
|
540
|
+
* @summary Create the partner hierarchy nodes batch
|
|
541
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
542
|
+
* @param {*} [options] Override http request option.
|
|
543
|
+
* @throws {RequiredError}
|
|
544
|
+
*/
|
|
545
|
+
async batchCreatePartnerHierarchyNodes(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
546
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.batchCreatePartnerHierarchyNodes(authorization, options);
|
|
547
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
548
|
+
},
|
|
549
|
+
/**
|
|
550
|
+
* Creates a node in a partner hierarchy. The node can be placed at the top of the hierarchy or under another node, and it can be created with or without an assigned partner. **Required Permissions** \"partner-management.partners.create\"
|
|
551
|
+
* @summary Create the partner hierarchy node
|
|
552
|
+
* @param {CreatePartnerHierarchyNodeRequestDto} createPartnerHierarchyNodeRequestDto
|
|
553
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
554
|
+
* @param {*} [options] Override http request option.
|
|
555
|
+
* @throws {RequiredError}
|
|
556
|
+
*/
|
|
557
|
+
async createPartnerHierarchyNode(createPartnerHierarchyNodeRequestDto: CreatePartnerHierarchyNodeRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePartnerHierarchyNodeResponseClass>> {
|
|
558
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPartnerHierarchyNode(createPartnerHierarchyNodeRequestDto, authorization, options);
|
|
559
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
560
|
+
},
|
|
561
|
+
/**
|
|
562
|
+
* Deletes a partner hierarchy node. The node must have no children before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
|
|
563
|
+
* @summary Delete the partner hierarchy node
|
|
564
|
+
* @param {string} code
|
|
565
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
566
|
+
* @param {*} [options] Override http request option.
|
|
567
|
+
* @throws {RequiredError}
|
|
568
|
+
*/
|
|
569
|
+
async deletePartnerHierarchyNode(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteByCodeResponseClass>> {
|
|
570
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePartnerHierarchyNode(code, authorization, options);
|
|
571
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
572
|
+
},
|
|
573
|
+
/**
|
|
574
|
+
* Returns the details of one partner hierarchy node. Partner and parent node details can be included when needed. **Required Permissions** \"partner-management.partners.view\"
|
|
575
|
+
* @summary Retrieve the partner hierarchy node
|
|
576
|
+
* @param {string} code
|
|
577
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
578
|
+
* @param {*} [options] Override http request option.
|
|
579
|
+
* @throws {RequiredError}
|
|
580
|
+
*/
|
|
581
|
+
async getPartnerHierarchyNode(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerHierarchyNodeResponseClass>> {
|
|
582
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPartnerHierarchyNode(code, authorization, options);
|
|
583
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
584
|
+
},
|
|
585
|
+
/**
|
|
586
|
+
* Returns a paginated list of previous versions of partner hierarchy nodes for history review. **Required Permissions** \"partner-management.partners.view\"
|
|
587
|
+
* @summary List partner hierarchy node histories
|
|
588
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
589
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
590
|
+
* @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.
|
|
591
|
+
* @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, validFrom</i>
|
|
592
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
593
|
+
* @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, validFrom, validTo, createdAt</i>
|
|
594
|
+
* @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/> <i>Allowed values: partner<i>
|
|
595
|
+
* @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, validFrom</i>
|
|
596
|
+
* @param {*} [options] Override http request option.
|
|
597
|
+
* @throws {RequiredError}
|
|
598
|
+
*/
|
|
599
|
+
async listPartnerHierarchyNodeHistory(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerHierarchyNodeHistoryResponseClass>> {
|
|
600
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerHierarchyNodeHistory(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
601
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
602
|
+
},
|
|
603
|
+
/**
|
|
604
|
+
* Returns a paginated list of partner hierarchy nodes. **Required Permissions** \"partner-management.partners.view\"
|
|
605
|
+
* @summary List partner hierarchy nodes
|
|
606
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
607
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
608
|
+
* @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.
|
|
609
|
+
* @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, partnerCode, parentNodeCode, roleCode, depth, createdAt, updatedAt</i>
|
|
610
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
611
|
+
* @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, depth, createdAt, updatedAt</i>
|
|
612
|
+
* @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/> <i>Allowed values: partner, parentNode<i>
|
|
613
|
+
* @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, partnerCode, parentNodeCode, roleCode, depth, createdAt, updatedAt</i>
|
|
614
|
+
* @param {*} [options] Override http request option.
|
|
615
|
+
* @throws {RequiredError}
|
|
616
|
+
*/
|
|
617
|
+
async listPartnerHierarchyNodes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerHierarchyNodesResponseClass>> {
|
|
618
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerHierarchyNodes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
619
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
620
|
+
},
|
|
621
|
+
/**
|
|
622
|
+
* Moves a node under another parent at the same level in the same hierarchy. Any nodes below it move with it. **Required Permissions** \"partner-management.partners.update\"
|
|
623
|
+
* @summary Create the partner hierarchy node move
|
|
624
|
+
* @param {string} code
|
|
625
|
+
* @param {MovePartnerHierarchyNodeRequestDto} movePartnerHierarchyNodeRequestDto
|
|
626
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
627
|
+
* @param {*} [options] Override http request option.
|
|
628
|
+
* @throws {RequiredError}
|
|
629
|
+
*/
|
|
630
|
+
async movePartnerHierarchyNode(code: string, movePartnerHierarchyNodeRequestDto: MovePartnerHierarchyNodeRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MovePartnerHierarchyNodeResponseClass>> {
|
|
631
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.movePartnerHierarchyNode(code, movePartnerHierarchyNodeRequestDto, authorization, options);
|
|
632
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
633
|
+
},
|
|
634
|
+
/**
|
|
635
|
+
* Removes the partner assigned to a partner hierarchy node while keeping the node in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
636
|
+
* @summary Create the partner hierarchy node unassign
|
|
637
|
+
* @param {string} code
|
|
638
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
639
|
+
* @param {*} [options] Override http request option.
|
|
640
|
+
* @throws {RequiredError}
|
|
641
|
+
*/
|
|
642
|
+
async unassignPartnerHierarchyNode(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnassignPartnerHierarchyNodeResponseClass>> {
|
|
643
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unassignPartnerHierarchyNode(code, authorization, options);
|
|
644
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
645
|
+
},
|
|
646
|
+
/**
|
|
647
|
+
* Updates a node role or changes the partner assigned to the node. It does not move the node in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
648
|
+
* @summary Update the partner hierarchy node
|
|
649
|
+
* @param {string} code
|
|
650
|
+
* @param {UpdatePartnerHierarchyNodeRequestDto} updatePartnerHierarchyNodeRequestDto
|
|
651
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
652
|
+
* @param {*} [options] Override http request option.
|
|
653
|
+
* @throws {RequiredError}
|
|
654
|
+
*/
|
|
655
|
+
async updatePartnerHierarchyNode(code: string, updatePartnerHierarchyNodeRequestDto: UpdatePartnerHierarchyNodeRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePartnerHierarchyNodeResponseClass>> {
|
|
656
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartnerHierarchyNode(code, updatePartnerHierarchyNodeRequestDto, authorization, options);
|
|
657
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
658
|
+
},
|
|
659
|
+
}
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* PartnerHierarchyNodesApi - factory interface
|
|
664
|
+
* @export
|
|
665
|
+
*/
|
|
666
|
+
export const PartnerHierarchyNodesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
667
|
+
const localVarFp = PartnerHierarchyNodesApiFp(configuration)
|
|
668
|
+
return {
|
|
669
|
+
/**
|
|
670
|
+
* Starts batch node creation from an uploaded file and returns the operation status. **Required Permissions** \"partner-management.partners.create\"
|
|
671
|
+
* @summary Create the partner hierarchy nodes batch
|
|
672
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
673
|
+
* @param {*} [options] Override http request option.
|
|
674
|
+
* @throws {RequiredError}
|
|
675
|
+
*/
|
|
676
|
+
batchCreatePartnerHierarchyNodes(authorization?: string, options?: any): AxiosPromise<void> {
|
|
677
|
+
return localVarFp.batchCreatePartnerHierarchyNodes(authorization, options).then((request) => request(axios, basePath));
|
|
678
|
+
},
|
|
679
|
+
/**
|
|
680
|
+
* Creates a node in a partner hierarchy. The node can be placed at the top of the hierarchy or under another node, and it can be created with or without an assigned partner. **Required Permissions** \"partner-management.partners.create\"
|
|
681
|
+
* @summary Create the partner hierarchy node
|
|
682
|
+
* @param {CreatePartnerHierarchyNodeRequestDto} createPartnerHierarchyNodeRequestDto
|
|
683
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
684
|
+
* @param {*} [options] Override http request option.
|
|
685
|
+
* @throws {RequiredError}
|
|
686
|
+
*/
|
|
687
|
+
createPartnerHierarchyNode(createPartnerHierarchyNodeRequestDto: CreatePartnerHierarchyNodeRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePartnerHierarchyNodeResponseClass> {
|
|
688
|
+
return localVarFp.createPartnerHierarchyNode(createPartnerHierarchyNodeRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
689
|
+
},
|
|
690
|
+
/**
|
|
691
|
+
* Deletes a partner hierarchy node. The node must have no children before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
|
|
692
|
+
* @summary Delete the partner hierarchy node
|
|
693
|
+
* @param {string} code
|
|
694
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
695
|
+
* @param {*} [options] Override http request option.
|
|
696
|
+
* @throws {RequiredError}
|
|
697
|
+
*/
|
|
698
|
+
deletePartnerHierarchyNode(code: string, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass> {
|
|
699
|
+
return localVarFp.deletePartnerHierarchyNode(code, authorization, options).then((request) => request(axios, basePath));
|
|
700
|
+
},
|
|
701
|
+
/**
|
|
702
|
+
* Returns the details of one partner hierarchy node. Partner and parent node details can be included when needed. **Required Permissions** \"partner-management.partners.view\"
|
|
703
|
+
* @summary Retrieve the partner hierarchy node
|
|
704
|
+
* @param {string} code
|
|
705
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
706
|
+
* @param {*} [options] Override http request option.
|
|
707
|
+
* @throws {RequiredError}
|
|
708
|
+
*/
|
|
709
|
+
getPartnerHierarchyNode(code: string, authorization?: string, options?: any): AxiosPromise<GetPartnerHierarchyNodeResponseClass> {
|
|
710
|
+
return localVarFp.getPartnerHierarchyNode(code, authorization, options).then((request) => request(axios, basePath));
|
|
711
|
+
},
|
|
712
|
+
/**
|
|
713
|
+
* Returns a paginated list of previous versions of partner hierarchy nodes for history review. **Required Permissions** \"partner-management.partners.view\"
|
|
714
|
+
* @summary List partner hierarchy node histories
|
|
715
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
716
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
717
|
+
* @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.
|
|
718
|
+
* @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, validFrom</i>
|
|
719
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
720
|
+
* @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, validFrom, validTo, createdAt</i>
|
|
721
|
+
* @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/> <i>Allowed values: partner<i>
|
|
722
|
+
* @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, validFrom</i>
|
|
723
|
+
* @param {*} [options] Override http request option.
|
|
724
|
+
* @throws {RequiredError}
|
|
725
|
+
*/
|
|
726
|
+
listPartnerHierarchyNodeHistory(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerHierarchyNodeHistoryResponseClass> {
|
|
727
|
+
return localVarFp.listPartnerHierarchyNodeHistory(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
728
|
+
},
|
|
729
|
+
/**
|
|
730
|
+
* Returns a paginated list of partner hierarchy nodes. **Required Permissions** \"partner-management.partners.view\"
|
|
731
|
+
* @summary List partner hierarchy nodes
|
|
732
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
733
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
734
|
+
* @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.
|
|
735
|
+
* @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, partnerCode, parentNodeCode, roleCode, depth, createdAt, updatedAt</i>
|
|
736
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
737
|
+
* @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, depth, createdAt, updatedAt</i>
|
|
738
|
+
* @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/> <i>Allowed values: partner, parentNode<i>
|
|
739
|
+
* @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, partnerCode, parentNodeCode, roleCode, depth, createdAt, updatedAt</i>
|
|
740
|
+
* @param {*} [options] Override http request option.
|
|
741
|
+
* @throws {RequiredError}
|
|
742
|
+
*/
|
|
743
|
+
listPartnerHierarchyNodes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerHierarchyNodesResponseClass> {
|
|
744
|
+
return localVarFp.listPartnerHierarchyNodes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
745
|
+
},
|
|
746
|
+
/**
|
|
747
|
+
* Moves a node under another parent at the same level in the same hierarchy. Any nodes below it move with it. **Required Permissions** \"partner-management.partners.update\"
|
|
748
|
+
* @summary Create the partner hierarchy node move
|
|
749
|
+
* @param {string} code
|
|
750
|
+
* @param {MovePartnerHierarchyNodeRequestDto} movePartnerHierarchyNodeRequestDto
|
|
751
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
752
|
+
* @param {*} [options] Override http request option.
|
|
753
|
+
* @throws {RequiredError}
|
|
754
|
+
*/
|
|
755
|
+
movePartnerHierarchyNode(code: string, movePartnerHierarchyNodeRequestDto: MovePartnerHierarchyNodeRequestDto, authorization?: string, options?: any): AxiosPromise<MovePartnerHierarchyNodeResponseClass> {
|
|
756
|
+
return localVarFp.movePartnerHierarchyNode(code, movePartnerHierarchyNodeRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
757
|
+
},
|
|
758
|
+
/**
|
|
759
|
+
* Removes the partner assigned to a partner hierarchy node while keeping the node in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
760
|
+
* @summary Create the partner hierarchy node unassign
|
|
761
|
+
* @param {string} code
|
|
762
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
763
|
+
* @param {*} [options] Override http request option.
|
|
764
|
+
* @throws {RequiredError}
|
|
765
|
+
*/
|
|
766
|
+
unassignPartnerHierarchyNode(code: string, authorization?: string, options?: any): AxiosPromise<UnassignPartnerHierarchyNodeResponseClass> {
|
|
767
|
+
return localVarFp.unassignPartnerHierarchyNode(code, authorization, options).then((request) => request(axios, basePath));
|
|
768
|
+
},
|
|
769
|
+
/**
|
|
770
|
+
* Updates a node role or changes the partner assigned to the node. It does not move the node in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
771
|
+
* @summary Update the partner hierarchy node
|
|
772
|
+
* @param {string} code
|
|
773
|
+
* @param {UpdatePartnerHierarchyNodeRequestDto} updatePartnerHierarchyNodeRequestDto
|
|
774
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
775
|
+
* @param {*} [options] Override http request option.
|
|
776
|
+
* @throws {RequiredError}
|
|
777
|
+
*/
|
|
778
|
+
updatePartnerHierarchyNode(code: string, updatePartnerHierarchyNodeRequestDto: UpdatePartnerHierarchyNodeRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePartnerHierarchyNodeResponseClass> {
|
|
779
|
+
return localVarFp.updatePartnerHierarchyNode(code, updatePartnerHierarchyNodeRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
780
|
+
},
|
|
781
|
+
};
|
|
782
|
+
};
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Request parameters for batchCreatePartnerHierarchyNodes operation in PartnerHierarchyNodesApi.
|
|
786
|
+
* @export
|
|
787
|
+
* @interface PartnerHierarchyNodesApiBatchCreatePartnerHierarchyNodesRequest
|
|
788
|
+
*/
|
|
789
|
+
export interface PartnerHierarchyNodesApiBatchCreatePartnerHierarchyNodesRequest {
|
|
790
|
+
/**
|
|
791
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
792
|
+
* @type {string}
|
|
793
|
+
* @memberof PartnerHierarchyNodesApiBatchCreatePartnerHierarchyNodes
|
|
794
|
+
*/
|
|
795
|
+
readonly authorization?: string
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* Request parameters for createPartnerHierarchyNode operation in PartnerHierarchyNodesApi.
|
|
800
|
+
* @export
|
|
801
|
+
* @interface PartnerHierarchyNodesApiCreatePartnerHierarchyNodeRequest
|
|
802
|
+
*/
|
|
803
|
+
export interface PartnerHierarchyNodesApiCreatePartnerHierarchyNodeRequest {
|
|
804
|
+
/**
|
|
805
|
+
*
|
|
806
|
+
* @type {CreatePartnerHierarchyNodeRequestDto}
|
|
807
|
+
* @memberof PartnerHierarchyNodesApiCreatePartnerHierarchyNode
|
|
808
|
+
*/
|
|
809
|
+
readonly createPartnerHierarchyNodeRequestDto: CreatePartnerHierarchyNodeRequestDto
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
813
|
+
* @type {string}
|
|
814
|
+
* @memberof PartnerHierarchyNodesApiCreatePartnerHierarchyNode
|
|
815
|
+
*/
|
|
816
|
+
readonly authorization?: string
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Request parameters for deletePartnerHierarchyNode operation in PartnerHierarchyNodesApi.
|
|
821
|
+
* @export
|
|
822
|
+
* @interface PartnerHierarchyNodesApiDeletePartnerHierarchyNodeRequest
|
|
823
|
+
*/
|
|
824
|
+
export interface PartnerHierarchyNodesApiDeletePartnerHierarchyNodeRequest {
|
|
825
|
+
/**
|
|
826
|
+
*
|
|
827
|
+
* @type {string}
|
|
828
|
+
* @memberof PartnerHierarchyNodesApiDeletePartnerHierarchyNode
|
|
829
|
+
*/
|
|
830
|
+
readonly code: string
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
834
|
+
* @type {string}
|
|
835
|
+
* @memberof PartnerHierarchyNodesApiDeletePartnerHierarchyNode
|
|
836
|
+
*/
|
|
837
|
+
readonly authorization?: string
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
/**
|
|
841
|
+
* Request parameters for getPartnerHierarchyNode operation in PartnerHierarchyNodesApi.
|
|
842
|
+
* @export
|
|
843
|
+
* @interface PartnerHierarchyNodesApiGetPartnerHierarchyNodeRequest
|
|
844
|
+
*/
|
|
845
|
+
export interface PartnerHierarchyNodesApiGetPartnerHierarchyNodeRequest {
|
|
846
|
+
/**
|
|
847
|
+
*
|
|
848
|
+
* @type {string}
|
|
849
|
+
* @memberof PartnerHierarchyNodesApiGetPartnerHierarchyNode
|
|
850
|
+
*/
|
|
851
|
+
readonly code: string
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
855
|
+
* @type {string}
|
|
856
|
+
* @memberof PartnerHierarchyNodesApiGetPartnerHierarchyNode
|
|
857
|
+
*/
|
|
858
|
+
readonly authorization?: string
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Request parameters for listPartnerHierarchyNodeHistory operation in PartnerHierarchyNodesApi.
|
|
863
|
+
* @export
|
|
864
|
+
* @interface PartnerHierarchyNodesApiListPartnerHierarchyNodeHistoryRequest
|
|
865
|
+
*/
|
|
866
|
+
export interface PartnerHierarchyNodesApiListPartnerHierarchyNodeHistoryRequest {
|
|
867
|
+
/**
|
|
868
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
869
|
+
* @type {string}
|
|
870
|
+
* @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodeHistory
|
|
871
|
+
*/
|
|
872
|
+
readonly authorization?: string
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
876
|
+
* @type {number}
|
|
877
|
+
* @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodeHistory
|
|
878
|
+
*/
|
|
879
|
+
readonly pageSize?: number
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* 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.
|
|
883
|
+
* @type {string}
|
|
884
|
+
* @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodeHistory
|
|
885
|
+
*/
|
|
886
|
+
readonly pageToken?: string
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* 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, validFrom</i>
|
|
890
|
+
* @type {string}
|
|
891
|
+
* @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodeHistory
|
|
892
|
+
*/
|
|
893
|
+
readonly filter?: string
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
897
|
+
* @type {string}
|
|
898
|
+
* @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodeHistory
|
|
899
|
+
*/
|
|
900
|
+
readonly search?: string
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* 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, validFrom, validTo, createdAt</i>
|
|
904
|
+
* @type {string}
|
|
905
|
+
* @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodeHistory
|
|
906
|
+
*/
|
|
907
|
+
readonly order?: string
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* 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/> <i>Allowed values: partner<i>
|
|
911
|
+
* @type {string}
|
|
912
|
+
* @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodeHistory
|
|
913
|
+
*/
|
|
914
|
+
readonly expand?: string
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* 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, validFrom</i>
|
|
918
|
+
* @type {string}
|
|
919
|
+
* @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodeHistory
|
|
920
|
+
*/
|
|
921
|
+
readonly filters?: string
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* Request parameters for listPartnerHierarchyNodes operation in PartnerHierarchyNodesApi.
|
|
926
|
+
* @export
|
|
927
|
+
* @interface PartnerHierarchyNodesApiListPartnerHierarchyNodesRequest
|
|
928
|
+
*/
|
|
929
|
+
export interface PartnerHierarchyNodesApiListPartnerHierarchyNodesRequest {
|
|
930
|
+
/**
|
|
931
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
932
|
+
* @type {string}
|
|
933
|
+
* @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodes
|
|
934
|
+
*/
|
|
935
|
+
readonly authorization?: string
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
939
|
+
* @type {number}
|
|
940
|
+
* @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodes
|
|
941
|
+
*/
|
|
942
|
+
readonly pageSize?: number
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* 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.
|
|
946
|
+
* @type {string}
|
|
947
|
+
* @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodes
|
|
948
|
+
*/
|
|
949
|
+
readonly pageToken?: string
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* 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, partnerCode, parentNodeCode, roleCode, depth, createdAt, updatedAt</i>
|
|
953
|
+
* @type {string}
|
|
954
|
+
* @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodes
|
|
955
|
+
*/
|
|
956
|
+
readonly filter?: string
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
960
|
+
* @type {string}
|
|
961
|
+
* @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodes
|
|
962
|
+
*/
|
|
963
|
+
readonly search?: string
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* 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, depth, createdAt, updatedAt</i>
|
|
967
|
+
* @type {string}
|
|
968
|
+
* @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodes
|
|
969
|
+
*/
|
|
970
|
+
readonly order?: string
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* 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/> <i>Allowed values: partner, parentNode<i>
|
|
974
|
+
* @type {string}
|
|
975
|
+
* @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodes
|
|
976
|
+
*/
|
|
977
|
+
readonly expand?: string
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* 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, partnerCode, parentNodeCode, roleCode, depth, createdAt, updatedAt</i>
|
|
981
|
+
* @type {string}
|
|
982
|
+
* @memberof PartnerHierarchyNodesApiListPartnerHierarchyNodes
|
|
983
|
+
*/
|
|
984
|
+
readonly filters?: string
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* Request parameters for movePartnerHierarchyNode operation in PartnerHierarchyNodesApi.
|
|
989
|
+
* @export
|
|
990
|
+
* @interface PartnerHierarchyNodesApiMovePartnerHierarchyNodeRequest
|
|
991
|
+
*/
|
|
992
|
+
export interface PartnerHierarchyNodesApiMovePartnerHierarchyNodeRequest {
|
|
993
|
+
/**
|
|
994
|
+
*
|
|
995
|
+
* @type {string}
|
|
996
|
+
* @memberof PartnerHierarchyNodesApiMovePartnerHierarchyNode
|
|
997
|
+
*/
|
|
998
|
+
readonly code: string
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
*
|
|
1002
|
+
* @type {MovePartnerHierarchyNodeRequestDto}
|
|
1003
|
+
* @memberof PartnerHierarchyNodesApiMovePartnerHierarchyNode
|
|
1004
|
+
*/
|
|
1005
|
+
readonly movePartnerHierarchyNodeRequestDto: MovePartnerHierarchyNodeRequestDto
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1009
|
+
* @type {string}
|
|
1010
|
+
* @memberof PartnerHierarchyNodesApiMovePartnerHierarchyNode
|
|
1011
|
+
*/
|
|
1012
|
+
readonly authorization?: string
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* Request parameters for unassignPartnerHierarchyNode operation in PartnerHierarchyNodesApi.
|
|
1017
|
+
* @export
|
|
1018
|
+
* @interface PartnerHierarchyNodesApiUnassignPartnerHierarchyNodeRequest
|
|
1019
|
+
*/
|
|
1020
|
+
export interface PartnerHierarchyNodesApiUnassignPartnerHierarchyNodeRequest {
|
|
1021
|
+
/**
|
|
1022
|
+
*
|
|
1023
|
+
* @type {string}
|
|
1024
|
+
* @memberof PartnerHierarchyNodesApiUnassignPartnerHierarchyNode
|
|
1025
|
+
*/
|
|
1026
|
+
readonly code: string
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1030
|
+
* @type {string}
|
|
1031
|
+
* @memberof PartnerHierarchyNodesApiUnassignPartnerHierarchyNode
|
|
1032
|
+
*/
|
|
1033
|
+
readonly authorization?: string
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* Request parameters for updatePartnerHierarchyNode operation in PartnerHierarchyNodesApi.
|
|
1038
|
+
* @export
|
|
1039
|
+
* @interface PartnerHierarchyNodesApiUpdatePartnerHierarchyNodeRequest
|
|
1040
|
+
*/
|
|
1041
|
+
export interface PartnerHierarchyNodesApiUpdatePartnerHierarchyNodeRequest {
|
|
1042
|
+
/**
|
|
1043
|
+
*
|
|
1044
|
+
* @type {string}
|
|
1045
|
+
* @memberof PartnerHierarchyNodesApiUpdatePartnerHierarchyNode
|
|
1046
|
+
*/
|
|
1047
|
+
readonly code: string
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
*
|
|
1051
|
+
* @type {UpdatePartnerHierarchyNodeRequestDto}
|
|
1052
|
+
* @memberof PartnerHierarchyNodesApiUpdatePartnerHierarchyNode
|
|
1053
|
+
*/
|
|
1054
|
+
readonly updatePartnerHierarchyNodeRequestDto: UpdatePartnerHierarchyNodeRequestDto
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1058
|
+
* @type {string}
|
|
1059
|
+
* @memberof PartnerHierarchyNodesApiUpdatePartnerHierarchyNode
|
|
1060
|
+
*/
|
|
1061
|
+
readonly authorization?: string
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* PartnerHierarchyNodesApi - object-oriented interface
|
|
1066
|
+
* @export
|
|
1067
|
+
* @class PartnerHierarchyNodesApi
|
|
1068
|
+
* @extends {BaseAPI}
|
|
1069
|
+
*/
|
|
1070
|
+
export class PartnerHierarchyNodesApi extends BaseAPI {
|
|
1071
|
+
/**
|
|
1072
|
+
* Starts batch node creation from an uploaded file and returns the operation status. **Required Permissions** \"partner-management.partners.create\"
|
|
1073
|
+
* @summary Create the partner hierarchy nodes batch
|
|
1074
|
+
* @param {PartnerHierarchyNodesApiBatchCreatePartnerHierarchyNodesRequest} requestParameters Request parameters.
|
|
1075
|
+
* @param {*} [options] Override http request option.
|
|
1076
|
+
* @throws {RequiredError}
|
|
1077
|
+
* @memberof PartnerHierarchyNodesApi
|
|
1078
|
+
*/
|
|
1079
|
+
public batchCreatePartnerHierarchyNodes(requestParameters: PartnerHierarchyNodesApiBatchCreatePartnerHierarchyNodesRequest = {}, options?: AxiosRequestConfig) {
|
|
1080
|
+
return PartnerHierarchyNodesApiFp(this.configuration).batchCreatePartnerHierarchyNodes(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Creates a node in a partner hierarchy. The node can be placed at the top of the hierarchy or under another node, and it can be created with or without an assigned partner. **Required Permissions** \"partner-management.partners.create\"
|
|
1085
|
+
* @summary Create the partner hierarchy node
|
|
1086
|
+
* @param {PartnerHierarchyNodesApiCreatePartnerHierarchyNodeRequest} requestParameters Request parameters.
|
|
1087
|
+
* @param {*} [options] Override http request option.
|
|
1088
|
+
* @throws {RequiredError}
|
|
1089
|
+
* @memberof PartnerHierarchyNodesApi
|
|
1090
|
+
*/
|
|
1091
|
+
public createPartnerHierarchyNode(requestParameters: PartnerHierarchyNodesApiCreatePartnerHierarchyNodeRequest, options?: AxiosRequestConfig) {
|
|
1092
|
+
return PartnerHierarchyNodesApiFp(this.configuration).createPartnerHierarchyNode(requestParameters.createPartnerHierarchyNodeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* Deletes a partner hierarchy node. The node must have no children before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
|
|
1097
|
+
* @summary Delete the partner hierarchy node
|
|
1098
|
+
* @param {PartnerHierarchyNodesApiDeletePartnerHierarchyNodeRequest} requestParameters Request parameters.
|
|
1099
|
+
* @param {*} [options] Override http request option.
|
|
1100
|
+
* @throws {RequiredError}
|
|
1101
|
+
* @memberof PartnerHierarchyNodesApi
|
|
1102
|
+
*/
|
|
1103
|
+
public deletePartnerHierarchyNode(requestParameters: PartnerHierarchyNodesApiDeletePartnerHierarchyNodeRequest, options?: AxiosRequestConfig) {
|
|
1104
|
+
return PartnerHierarchyNodesApiFp(this.configuration).deletePartnerHierarchyNode(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* Returns the details of one partner hierarchy node. Partner and parent node details can be included when needed. **Required Permissions** \"partner-management.partners.view\"
|
|
1109
|
+
* @summary Retrieve the partner hierarchy node
|
|
1110
|
+
* @param {PartnerHierarchyNodesApiGetPartnerHierarchyNodeRequest} requestParameters Request parameters.
|
|
1111
|
+
* @param {*} [options] Override http request option.
|
|
1112
|
+
* @throws {RequiredError}
|
|
1113
|
+
* @memberof PartnerHierarchyNodesApi
|
|
1114
|
+
*/
|
|
1115
|
+
public getPartnerHierarchyNode(requestParameters: PartnerHierarchyNodesApiGetPartnerHierarchyNodeRequest, options?: AxiosRequestConfig) {
|
|
1116
|
+
return PartnerHierarchyNodesApiFp(this.configuration).getPartnerHierarchyNode(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* Returns a paginated list of previous versions of partner hierarchy nodes for history review. **Required Permissions** \"partner-management.partners.view\"
|
|
1121
|
+
* @summary List partner hierarchy node histories
|
|
1122
|
+
* @param {PartnerHierarchyNodesApiListPartnerHierarchyNodeHistoryRequest} requestParameters Request parameters.
|
|
1123
|
+
* @param {*} [options] Override http request option.
|
|
1124
|
+
* @throws {RequiredError}
|
|
1125
|
+
* @memberof PartnerHierarchyNodesApi
|
|
1126
|
+
*/
|
|
1127
|
+
public listPartnerHierarchyNodeHistory(requestParameters: PartnerHierarchyNodesApiListPartnerHierarchyNodeHistoryRequest = {}, options?: AxiosRequestConfig) {
|
|
1128
|
+
return PartnerHierarchyNodesApiFp(this.configuration).listPartnerHierarchyNodeHistory(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* Returns a paginated list of partner hierarchy nodes. **Required Permissions** \"partner-management.partners.view\"
|
|
1133
|
+
* @summary List partner hierarchy nodes
|
|
1134
|
+
* @param {PartnerHierarchyNodesApiListPartnerHierarchyNodesRequest} requestParameters Request parameters.
|
|
1135
|
+
* @param {*} [options] Override http request option.
|
|
1136
|
+
* @throws {RequiredError}
|
|
1137
|
+
* @memberof PartnerHierarchyNodesApi
|
|
1138
|
+
*/
|
|
1139
|
+
public listPartnerHierarchyNodes(requestParameters: PartnerHierarchyNodesApiListPartnerHierarchyNodesRequest = {}, options?: AxiosRequestConfig) {
|
|
1140
|
+
return PartnerHierarchyNodesApiFp(this.configuration).listPartnerHierarchyNodes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* Moves a node under another parent at the same level in the same hierarchy. Any nodes below it move with it. **Required Permissions** \"partner-management.partners.update\"
|
|
1145
|
+
* @summary Create the partner hierarchy node move
|
|
1146
|
+
* @param {PartnerHierarchyNodesApiMovePartnerHierarchyNodeRequest} requestParameters Request parameters.
|
|
1147
|
+
* @param {*} [options] Override http request option.
|
|
1148
|
+
* @throws {RequiredError}
|
|
1149
|
+
* @memberof PartnerHierarchyNodesApi
|
|
1150
|
+
*/
|
|
1151
|
+
public movePartnerHierarchyNode(requestParameters: PartnerHierarchyNodesApiMovePartnerHierarchyNodeRequest, options?: AxiosRequestConfig) {
|
|
1152
|
+
return PartnerHierarchyNodesApiFp(this.configuration).movePartnerHierarchyNode(requestParameters.code, requestParameters.movePartnerHierarchyNodeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
/**
|
|
1156
|
+
* Removes the partner assigned to a partner hierarchy node while keeping the node in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
1157
|
+
* @summary Create the partner hierarchy node unassign
|
|
1158
|
+
* @param {PartnerHierarchyNodesApiUnassignPartnerHierarchyNodeRequest} requestParameters Request parameters.
|
|
1159
|
+
* @param {*} [options] Override http request option.
|
|
1160
|
+
* @throws {RequiredError}
|
|
1161
|
+
* @memberof PartnerHierarchyNodesApi
|
|
1162
|
+
*/
|
|
1163
|
+
public unassignPartnerHierarchyNode(requestParameters: PartnerHierarchyNodesApiUnassignPartnerHierarchyNodeRequest, options?: AxiosRequestConfig) {
|
|
1164
|
+
return PartnerHierarchyNodesApiFp(this.configuration).unassignPartnerHierarchyNode(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* Updates a node role or changes the partner assigned to the node. It does not move the node in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
1169
|
+
* @summary Update the partner hierarchy node
|
|
1170
|
+
* @param {PartnerHierarchyNodesApiUpdatePartnerHierarchyNodeRequest} requestParameters Request parameters.
|
|
1171
|
+
* @param {*} [options] Override http request option.
|
|
1172
|
+
* @throws {RequiredError}
|
|
1173
|
+
* @memberof PartnerHierarchyNodesApi
|
|
1174
|
+
*/
|
|
1175
|
+
public updatePartnerHierarchyNode(requestParameters: PartnerHierarchyNodesApiUpdatePartnerHierarchyNodeRequest, options?: AxiosRequestConfig) {
|
|
1176
|
+
return PartnerHierarchyNodesApiFp(this.configuration).updatePartnerHierarchyNode(requestParameters.code, requestParameters.updatePartnerHierarchyNodeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1177
|
+
}
|
|
1178
|
+
}
|