@emilgroup/partner-sdk 1.22.1-beta.15 → 1.22.1-beta.17
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 +23 -0
- package/README.md +2 -2
- package/api/partner-hierarchies-api.ts +1342 -0
- package/api/partner-hierarchy-nodes-api.ts +1178 -0
- package/api/partners-api.ts +12 -12
- package/api.ts +4 -0
- 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/partners-api.d.ts +12 -12
- package/dist/api/partners-api.js +9 -9
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -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/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/index.d.ts +21 -0
- package/dist/models/index.js +21 -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/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/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-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/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/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/index.ts +21 -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/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/unassign-partner-hierarchy-node-response-class.ts +31 -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/package.json +1 -1
|
@@ -0,0 +1,1164 @@
|
|
|
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.PartnerHierarchiesApi = exports.PartnerHierarchiesApiFactory = exports.PartnerHierarchiesApiFp = exports.PartnerHierarchiesApiAxiosParamCreator = 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
|
+
/**
|
|
89
|
+
* PartnerHierarchiesApi - axios parameter creator
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
var PartnerHierarchiesApiAxiosParamCreator = function (configuration) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
* Creates a partner hierarchy from an existing hierarchy type. The hierarchy starts empty, so nodes can be added after it is created. **Required Permissions** \"partner-management.partners.create\"
|
|
97
|
+
* @summary Create the partner hierarchy
|
|
98
|
+
* @param {CreatePartnerHierarchyRequestDto} createPartnerHierarchyRequestDto
|
|
99
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
createPartnerHierarchy: function (createPartnerHierarchyRequestDto, authorization, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0:
|
|
110
|
+
// verify required parameter 'createPartnerHierarchyRequestDto' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('createPartnerHierarchy', 'createPartnerHierarchyRequestDto', createPartnerHierarchyRequestDto);
|
|
112
|
+
localVarPath = "/partnerservice/v1/partner-hierarchies";
|
|
113
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
|
+
if (configuration) {
|
|
115
|
+
baseOptions = configuration.baseOptions;
|
|
116
|
+
baseAccessToken = configuration.accessToken;
|
|
117
|
+
}
|
|
118
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
119
|
+
localVarHeaderParameter = {};
|
|
120
|
+
localVarQueryParameter = {};
|
|
121
|
+
// authentication bearer required
|
|
122
|
+
// http bearer authentication required
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
124
|
+
case 1:
|
|
125
|
+
// authentication bearer required
|
|
126
|
+
// http bearer authentication required
|
|
127
|
+
_a.sent();
|
|
128
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
130
|
+
}
|
|
131
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPartnerHierarchyRequestDto, localVarRequestOptions, configuration);
|
|
136
|
+
return [2 /*return*/, {
|
|
137
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
138
|
+
options: localVarRequestOptions,
|
|
139
|
+
}];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
},
|
|
144
|
+
/**
|
|
145
|
+
* Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
|
|
146
|
+
* @summary Delete the partner hierarchy
|
|
147
|
+
* @param {string} code Unique identifier for the object.
|
|
148
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
deletePartnerHierarchy: function (code, authorization, options) {
|
|
153
|
+
if (options === void 0) { options = {}; }
|
|
154
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
158
|
+
case 0:
|
|
159
|
+
// verify required parameter 'code' is not null or undefined
|
|
160
|
+
(0, common_1.assertParamExists)('deletePartnerHierarchy', 'code', code);
|
|
161
|
+
localVarPath = "/partnerservice/v1/partner-hierarchies/{code}"
|
|
162
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
163
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
164
|
+
if (configuration) {
|
|
165
|
+
baseOptions = configuration.baseOptions;
|
|
166
|
+
baseAccessToken = configuration.accessToken;
|
|
167
|
+
}
|
|
168
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
169
|
+
localVarHeaderParameter = {};
|
|
170
|
+
localVarQueryParameter = {};
|
|
171
|
+
// authentication bearer required
|
|
172
|
+
// http bearer authentication required
|
|
173
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
174
|
+
case 1:
|
|
175
|
+
// authentication bearer required
|
|
176
|
+
// http bearer authentication required
|
|
177
|
+
_a.sent();
|
|
178
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
179
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
180
|
+
}
|
|
181
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
+
return [2 /*return*/, {
|
|
185
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
186
|
+
options: localVarRequestOptions,
|
|
187
|
+
}];
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
},
|
|
192
|
+
/**
|
|
193
|
+
* Returns a pre-signed upload URL for a hierarchy tree file. Use the uploaded file key for tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.update\"
|
|
194
|
+
* @summary Create the partner hierarchy upload url
|
|
195
|
+
* @param {string} code Unique identifier for the object.
|
|
196
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
197
|
+
* @param {*} [options] Override http request option.
|
|
198
|
+
* @throws {RequiredError}
|
|
199
|
+
*/
|
|
200
|
+
generateUploadUrl: function (code, authorization, options) {
|
|
201
|
+
if (options === void 0) { options = {}; }
|
|
202
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
203
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
204
|
+
return __generator(this, function (_a) {
|
|
205
|
+
switch (_a.label) {
|
|
206
|
+
case 0:
|
|
207
|
+
// verify required parameter 'code' is not null or undefined
|
|
208
|
+
(0, common_1.assertParamExists)('generateUploadUrl', 'code', code);
|
|
209
|
+
localVarPath = "/partnerservice/v1/partner-hierarchies/{code}/upload-url"
|
|
210
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
211
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
212
|
+
if (configuration) {
|
|
213
|
+
baseOptions = configuration.baseOptions;
|
|
214
|
+
baseAccessToken = configuration.accessToken;
|
|
215
|
+
}
|
|
216
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
217
|
+
localVarHeaderParameter = {};
|
|
218
|
+
localVarQueryParameter = {};
|
|
219
|
+
// authentication bearer required
|
|
220
|
+
// http bearer authentication required
|
|
221
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
222
|
+
case 1:
|
|
223
|
+
// authentication bearer required
|
|
224
|
+
// http bearer authentication required
|
|
225
|
+
_a.sent();
|
|
226
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
227
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
228
|
+
}
|
|
229
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
230
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
231
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
232
|
+
return [2 /*return*/, {
|
|
233
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
234
|
+
options: localVarRequestOptions,
|
|
235
|
+
}];
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
},
|
|
240
|
+
/**
|
|
241
|
+
* Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
|
|
242
|
+
* @summary Retrieve the partner hierarchy
|
|
243
|
+
* @param {string} code Unique identifier for the object.
|
|
244
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
245
|
+
* @param {*} [options] Override http request option.
|
|
246
|
+
* @throws {RequiredError}
|
|
247
|
+
*/
|
|
248
|
+
getPartnerHierarchy: function (code, authorization, options) {
|
|
249
|
+
if (options === void 0) { options = {}; }
|
|
250
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
251
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
252
|
+
return __generator(this, function (_a) {
|
|
253
|
+
switch (_a.label) {
|
|
254
|
+
case 0:
|
|
255
|
+
// verify required parameter 'code' is not null or undefined
|
|
256
|
+
(0, common_1.assertParamExists)('getPartnerHierarchy', 'code', code);
|
|
257
|
+
localVarPath = "/partnerservice/v1/partner-hierarchies/{code}"
|
|
258
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
259
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
260
|
+
if (configuration) {
|
|
261
|
+
baseOptions = configuration.baseOptions;
|
|
262
|
+
baseAccessToken = configuration.accessToken;
|
|
263
|
+
}
|
|
264
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
265
|
+
localVarHeaderParameter = {};
|
|
266
|
+
localVarQueryParameter = {};
|
|
267
|
+
// authentication bearer required
|
|
268
|
+
// http bearer authentication required
|
|
269
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
270
|
+
case 1:
|
|
271
|
+
// authentication bearer required
|
|
272
|
+
// http bearer authentication required
|
|
273
|
+
_a.sent();
|
|
274
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
275
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
276
|
+
}
|
|
277
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
278
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
279
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
280
|
+
return [2 /*return*/, {
|
|
281
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
282
|
+
options: localVarRequestOptions,
|
|
283
|
+
}];
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
});
|
|
287
|
+
},
|
|
288
|
+
/**
|
|
289
|
+
* Returns one part of the hierarchy tree: the selected node and its direct children. If no node is selected, it starts from the top of the hierarchy. **Required Permissions** \"partner-management.partners.view\"
|
|
290
|
+
* @summary Retrieve the partner hierarchy tree
|
|
291
|
+
* @param {string} code Unique identifier for the object.
|
|
292
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
293
|
+
* @param {string} [nodeCode] Node to start from. Omit this to start from the top of the hierarchy.
|
|
294
|
+
* @param {number} [pageSize] Maximum number of direct children to return for the selected node. Default is 30 and the maximum is 50.
|
|
295
|
+
* @param {string} [pageToken] Value returned by the previous response when more children are available.
|
|
296
|
+
* @param {string} [asOf] Shows the hierarchy as it was at this time. Omit this to show the current hierarchy.
|
|
297
|
+
* @param {*} [options] Override http request option.
|
|
298
|
+
* @throws {RequiredError}
|
|
299
|
+
*/
|
|
300
|
+
getPartnerHierarchyTree: function (code, authorization, nodeCode, pageSize, pageToken, asOf, options) {
|
|
301
|
+
if (options === void 0) { options = {}; }
|
|
302
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
303
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
304
|
+
return __generator(this, function (_a) {
|
|
305
|
+
switch (_a.label) {
|
|
306
|
+
case 0:
|
|
307
|
+
// verify required parameter 'code' is not null or undefined
|
|
308
|
+
(0, common_1.assertParamExists)('getPartnerHierarchyTree', 'code', code);
|
|
309
|
+
localVarPath = "/partnerservice/v1/partner-hierarchies/{code}/tree"
|
|
310
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
311
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
312
|
+
if (configuration) {
|
|
313
|
+
baseOptions = configuration.baseOptions;
|
|
314
|
+
baseAccessToken = configuration.accessToken;
|
|
315
|
+
}
|
|
316
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
317
|
+
localVarHeaderParameter = {};
|
|
318
|
+
localVarQueryParameter = {};
|
|
319
|
+
// authentication bearer required
|
|
320
|
+
// http bearer authentication required
|
|
321
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
322
|
+
case 1:
|
|
323
|
+
// authentication bearer required
|
|
324
|
+
// http bearer authentication required
|
|
325
|
+
_a.sent();
|
|
326
|
+
if (nodeCode !== undefined) {
|
|
327
|
+
localVarQueryParameter['nodeCode'] = nodeCode;
|
|
328
|
+
}
|
|
329
|
+
if (pageSize !== undefined) {
|
|
330
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
331
|
+
}
|
|
332
|
+
if (pageToken !== undefined) {
|
|
333
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
334
|
+
}
|
|
335
|
+
if (asOf !== undefined) {
|
|
336
|
+
localVarQueryParameter['asOf'] = (asOf instanceof Date) ?
|
|
337
|
+
asOf.toISOString() :
|
|
338
|
+
asOf;
|
|
339
|
+
}
|
|
340
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
341
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
342
|
+
}
|
|
343
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
344
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
345
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
346
|
+
return [2 /*return*/, {
|
|
347
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
348
|
+
options: localVarRequestOptions,
|
|
349
|
+
}];
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
});
|
|
353
|
+
},
|
|
354
|
+
/**
|
|
355
|
+
* Returns a download URL for the full hierarchy tree file. If the file is not ready, it starts a tree file build operation; check the operation status and call this endpoint again when it is done. **Required Permissions** \"partner-management.partners.view\"
|
|
356
|
+
* @summary Retrieve the partner hierarchy tree file
|
|
357
|
+
* @param {string} code Unique identifier for the object.
|
|
358
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
359
|
+
* @param {*} [options] Override http request option.
|
|
360
|
+
* @throws {RequiredError}
|
|
361
|
+
*/
|
|
362
|
+
getPartnerHierarchyTreeFile: function (code, authorization, options) {
|
|
363
|
+
if (options === void 0) { options = {}; }
|
|
364
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
365
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
366
|
+
return __generator(this, function (_a) {
|
|
367
|
+
switch (_a.label) {
|
|
368
|
+
case 0:
|
|
369
|
+
// verify required parameter 'code' is not null or undefined
|
|
370
|
+
(0, common_1.assertParamExists)('getPartnerHierarchyTreeFile', 'code', code);
|
|
371
|
+
localVarPath = "/partnerservice/v1/partner-hierarchies/{code}/tree/file"
|
|
372
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
373
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
374
|
+
if (configuration) {
|
|
375
|
+
baseOptions = configuration.baseOptions;
|
|
376
|
+
baseAccessToken = configuration.accessToken;
|
|
377
|
+
}
|
|
378
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
379
|
+
localVarHeaderParameter = {};
|
|
380
|
+
localVarQueryParameter = {};
|
|
381
|
+
// authentication bearer required
|
|
382
|
+
// http bearer authentication required
|
|
383
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
384
|
+
case 1:
|
|
385
|
+
// authentication bearer required
|
|
386
|
+
// http bearer authentication required
|
|
387
|
+
_a.sent();
|
|
388
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
389
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
390
|
+
}
|
|
391
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
392
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
393
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
394
|
+
return [2 /*return*/, {
|
|
395
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
396
|
+
options: localVarRequestOptions,
|
|
397
|
+
}];
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
});
|
|
401
|
+
},
|
|
402
|
+
/**
|
|
403
|
+
* Returns a paginated list of partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
|
|
404
|
+
* @summary List partner hierarchies
|
|
405
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
406
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
407
|
+
* @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.
|
|
408
|
+
* @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: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
409
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
410
|
+
* @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, name, createdAt, updatedAt</i>
|
|
411
|
+
* @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/>
|
|
412
|
+
* @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: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
413
|
+
* @param {*} [options] Override http request option.
|
|
414
|
+
* @throws {RequiredError}
|
|
415
|
+
*/
|
|
416
|
+
listPartnerHierarchies: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
417
|
+
if (options === void 0) { options = {}; }
|
|
418
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
419
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
420
|
+
return __generator(this, function (_a) {
|
|
421
|
+
switch (_a.label) {
|
|
422
|
+
case 0:
|
|
423
|
+
localVarPath = "/partnerservice/v1/partner-hierarchies";
|
|
424
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
425
|
+
if (configuration) {
|
|
426
|
+
baseOptions = configuration.baseOptions;
|
|
427
|
+
baseAccessToken = configuration.accessToken;
|
|
428
|
+
}
|
|
429
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
430
|
+
localVarHeaderParameter = {};
|
|
431
|
+
localVarQueryParameter = {};
|
|
432
|
+
// authentication bearer required
|
|
433
|
+
// http bearer authentication required
|
|
434
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
435
|
+
case 1:
|
|
436
|
+
// authentication bearer required
|
|
437
|
+
// http bearer authentication required
|
|
438
|
+
_a.sent();
|
|
439
|
+
if (pageSize !== undefined) {
|
|
440
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
441
|
+
}
|
|
442
|
+
if (pageToken !== undefined) {
|
|
443
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
444
|
+
}
|
|
445
|
+
if (filter !== undefined) {
|
|
446
|
+
localVarQueryParameter['filter'] = filter;
|
|
447
|
+
}
|
|
448
|
+
if (search !== undefined) {
|
|
449
|
+
localVarQueryParameter['search'] = search;
|
|
450
|
+
}
|
|
451
|
+
if (order !== undefined) {
|
|
452
|
+
localVarQueryParameter['order'] = order;
|
|
453
|
+
}
|
|
454
|
+
if (expand !== undefined) {
|
|
455
|
+
localVarQueryParameter['expand'] = expand;
|
|
456
|
+
}
|
|
457
|
+
if (filters !== undefined) {
|
|
458
|
+
localVarQueryParameter['filters'] = filters;
|
|
459
|
+
}
|
|
460
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
461
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
462
|
+
}
|
|
463
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
464
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
465
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
466
|
+
return [2 /*return*/, {
|
|
467
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
468
|
+
options: localVarRequestOptions,
|
|
469
|
+
}];
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
});
|
|
473
|
+
},
|
|
474
|
+
/**
|
|
475
|
+
* Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
476
|
+
* @summary List partner hierarchy operations
|
|
477
|
+
* @param {any} code Unique identifier for the object.
|
|
478
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
479
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
480
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
481
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
482
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
483
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, createdAt, updatedAt</i>
|
|
484
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
485
|
+
* @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: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
486
|
+
* @param {*} [options] Override http request option.
|
|
487
|
+
* @throws {RequiredError}
|
|
488
|
+
*/
|
|
489
|
+
listPartnerHierarchyOperations: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
490
|
+
if (options === void 0) { options = {}; }
|
|
491
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
492
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
493
|
+
return __generator(this, function (_a) {
|
|
494
|
+
switch (_a.label) {
|
|
495
|
+
case 0:
|
|
496
|
+
// verify required parameter 'code' is not null or undefined
|
|
497
|
+
(0, common_1.assertParamExists)('listPartnerHierarchyOperations', 'code', code);
|
|
498
|
+
localVarPath = "/partnerservice/v1/partner-hierarchies/{code}/operations"
|
|
499
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
500
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
501
|
+
if (configuration) {
|
|
502
|
+
baseOptions = configuration.baseOptions;
|
|
503
|
+
baseAccessToken = configuration.accessToken;
|
|
504
|
+
}
|
|
505
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
506
|
+
localVarHeaderParameter = {};
|
|
507
|
+
localVarQueryParameter = {};
|
|
508
|
+
// authentication bearer required
|
|
509
|
+
// http bearer authentication required
|
|
510
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
511
|
+
case 1:
|
|
512
|
+
// authentication bearer required
|
|
513
|
+
// http bearer authentication required
|
|
514
|
+
_a.sent();
|
|
515
|
+
if (pageSize !== undefined) {
|
|
516
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
517
|
+
}
|
|
518
|
+
if (pageToken !== undefined) {
|
|
519
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
520
|
+
}
|
|
521
|
+
if (filter !== undefined) {
|
|
522
|
+
localVarQueryParameter['filter'] = filter;
|
|
523
|
+
}
|
|
524
|
+
if (search !== undefined) {
|
|
525
|
+
localVarQueryParameter['search'] = search;
|
|
526
|
+
}
|
|
527
|
+
if (order !== undefined) {
|
|
528
|
+
localVarQueryParameter['order'] = order;
|
|
529
|
+
}
|
|
530
|
+
if (expand !== undefined) {
|
|
531
|
+
localVarQueryParameter['expand'] = expand;
|
|
532
|
+
}
|
|
533
|
+
if (filters !== undefined) {
|
|
534
|
+
localVarQueryParameter['filters'] = filters;
|
|
535
|
+
}
|
|
536
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
537
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
538
|
+
}
|
|
539
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
540
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
541
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
542
|
+
return [2 /*return*/, {
|
|
543
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
544
|
+
options: localVarRequestOptions,
|
|
545
|
+
}];
|
|
546
|
+
}
|
|
547
|
+
});
|
|
548
|
+
});
|
|
549
|
+
},
|
|
550
|
+
/**
|
|
551
|
+
* Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
552
|
+
* @summary Update the partner hierarchy
|
|
553
|
+
* @param {string} code Unique identifier for the object.
|
|
554
|
+
* @param {UpdatePartnerHierarchyRequestDto} updatePartnerHierarchyRequestDto
|
|
555
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
556
|
+
* @param {*} [options] Override http request option.
|
|
557
|
+
* @throws {RequiredError}
|
|
558
|
+
*/
|
|
559
|
+
updatePartnerHierarchy: function (code, updatePartnerHierarchyRequestDto, authorization, options) {
|
|
560
|
+
if (options === void 0) { options = {}; }
|
|
561
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
562
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
563
|
+
return __generator(this, function (_a) {
|
|
564
|
+
switch (_a.label) {
|
|
565
|
+
case 0:
|
|
566
|
+
// verify required parameter 'code' is not null or undefined
|
|
567
|
+
(0, common_1.assertParamExists)('updatePartnerHierarchy', 'code', code);
|
|
568
|
+
// verify required parameter 'updatePartnerHierarchyRequestDto' is not null or undefined
|
|
569
|
+
(0, common_1.assertParamExists)('updatePartnerHierarchy', 'updatePartnerHierarchyRequestDto', updatePartnerHierarchyRequestDto);
|
|
570
|
+
localVarPath = "/partnerservice/v1/partner-hierarchies/{code}"
|
|
571
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
572
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
573
|
+
if (configuration) {
|
|
574
|
+
baseOptions = configuration.baseOptions;
|
|
575
|
+
baseAccessToken = configuration.accessToken;
|
|
576
|
+
}
|
|
577
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
578
|
+
localVarHeaderParameter = {};
|
|
579
|
+
localVarQueryParameter = {};
|
|
580
|
+
// authentication bearer required
|
|
581
|
+
// http bearer authentication required
|
|
582
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
583
|
+
case 1:
|
|
584
|
+
// authentication bearer required
|
|
585
|
+
// http bearer authentication required
|
|
586
|
+
_a.sent();
|
|
587
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
588
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
589
|
+
}
|
|
590
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
591
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
592
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
593
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
594
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePartnerHierarchyRequestDto, localVarRequestOptions, configuration);
|
|
595
|
+
return [2 /*return*/, {
|
|
596
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
597
|
+
options: localVarRequestOptions,
|
|
598
|
+
}];
|
|
599
|
+
}
|
|
600
|
+
});
|
|
601
|
+
});
|
|
602
|
+
},
|
|
603
|
+
/**
|
|
604
|
+
* Replaces the hierarchy tree with an uploaded file. **Required Permissions** \"partner-management.partners.update\"
|
|
605
|
+
* @summary Update the partner hierarchy tree
|
|
606
|
+
* @param {string} code Unique identifier for the object.
|
|
607
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
608
|
+
* @param {*} [options] Override http request option.
|
|
609
|
+
* @throws {RequiredError}
|
|
610
|
+
*/
|
|
611
|
+
updatePartnerHierarchyTree: function (code, authorization, options) {
|
|
612
|
+
if (options === void 0) { options = {}; }
|
|
613
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
614
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
615
|
+
return __generator(this, function (_a) {
|
|
616
|
+
switch (_a.label) {
|
|
617
|
+
case 0:
|
|
618
|
+
// verify required parameter 'code' is not null or undefined
|
|
619
|
+
(0, common_1.assertParamExists)('updatePartnerHierarchyTree', 'code', code);
|
|
620
|
+
localVarPath = "/partnerservice/v1/partner-hierarchies/{code}/tree"
|
|
621
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
622
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
623
|
+
if (configuration) {
|
|
624
|
+
baseOptions = configuration.baseOptions;
|
|
625
|
+
baseAccessToken = configuration.accessToken;
|
|
626
|
+
}
|
|
627
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
628
|
+
localVarHeaderParameter = {};
|
|
629
|
+
localVarQueryParameter = {};
|
|
630
|
+
// authentication bearer required
|
|
631
|
+
// http bearer authentication required
|
|
632
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
633
|
+
case 1:
|
|
634
|
+
// authentication bearer required
|
|
635
|
+
// http bearer authentication required
|
|
636
|
+
_a.sent();
|
|
637
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
638
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
639
|
+
}
|
|
640
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
641
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
642
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
643
|
+
return [2 /*return*/, {
|
|
644
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
645
|
+
options: localVarRequestOptions,
|
|
646
|
+
}];
|
|
647
|
+
}
|
|
648
|
+
});
|
|
649
|
+
});
|
|
650
|
+
},
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
exports.PartnerHierarchiesApiAxiosParamCreator = PartnerHierarchiesApiAxiosParamCreator;
|
|
654
|
+
/**
|
|
655
|
+
* PartnerHierarchiesApi - functional programming interface
|
|
656
|
+
* @export
|
|
657
|
+
*/
|
|
658
|
+
var PartnerHierarchiesApiFp = function (configuration) {
|
|
659
|
+
var localVarAxiosParamCreator = (0, exports.PartnerHierarchiesApiAxiosParamCreator)(configuration);
|
|
660
|
+
return {
|
|
661
|
+
/**
|
|
662
|
+
* Creates a partner hierarchy from an existing hierarchy type. The hierarchy starts empty, so nodes can be added after it is created. **Required Permissions** \"partner-management.partners.create\"
|
|
663
|
+
* @summary Create the partner hierarchy
|
|
664
|
+
* @param {CreatePartnerHierarchyRequestDto} createPartnerHierarchyRequestDto
|
|
665
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
666
|
+
* @param {*} [options] Override http request option.
|
|
667
|
+
* @throws {RequiredError}
|
|
668
|
+
*/
|
|
669
|
+
createPartnerHierarchy: function (createPartnerHierarchyRequestDto, authorization, options) {
|
|
670
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
671
|
+
var localVarAxiosArgs;
|
|
672
|
+
return __generator(this, function (_a) {
|
|
673
|
+
switch (_a.label) {
|
|
674
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPartnerHierarchy(createPartnerHierarchyRequestDto, authorization, options)];
|
|
675
|
+
case 1:
|
|
676
|
+
localVarAxiosArgs = _a.sent();
|
|
677
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
678
|
+
}
|
|
679
|
+
});
|
|
680
|
+
});
|
|
681
|
+
},
|
|
682
|
+
/**
|
|
683
|
+
* Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
|
|
684
|
+
* @summary Delete the partner hierarchy
|
|
685
|
+
* @param {string} code Unique identifier for the object.
|
|
686
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
687
|
+
* @param {*} [options] Override http request option.
|
|
688
|
+
* @throws {RequiredError}
|
|
689
|
+
*/
|
|
690
|
+
deletePartnerHierarchy: function (code, authorization, options) {
|
|
691
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
692
|
+
var localVarAxiosArgs;
|
|
693
|
+
return __generator(this, function (_a) {
|
|
694
|
+
switch (_a.label) {
|
|
695
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePartnerHierarchy(code, authorization, options)];
|
|
696
|
+
case 1:
|
|
697
|
+
localVarAxiosArgs = _a.sent();
|
|
698
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
699
|
+
}
|
|
700
|
+
});
|
|
701
|
+
});
|
|
702
|
+
},
|
|
703
|
+
/**
|
|
704
|
+
* Returns a pre-signed upload URL for a hierarchy tree file. Use the uploaded file key for tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.update\"
|
|
705
|
+
* @summary Create the partner hierarchy upload url
|
|
706
|
+
* @param {string} code Unique identifier for the object.
|
|
707
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
708
|
+
* @param {*} [options] Override http request option.
|
|
709
|
+
* @throws {RequiredError}
|
|
710
|
+
*/
|
|
711
|
+
generateUploadUrl: function (code, authorization, options) {
|
|
712
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
713
|
+
var localVarAxiosArgs;
|
|
714
|
+
return __generator(this, function (_a) {
|
|
715
|
+
switch (_a.label) {
|
|
716
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.generateUploadUrl(code, authorization, options)];
|
|
717
|
+
case 1:
|
|
718
|
+
localVarAxiosArgs = _a.sent();
|
|
719
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
720
|
+
}
|
|
721
|
+
});
|
|
722
|
+
});
|
|
723
|
+
},
|
|
724
|
+
/**
|
|
725
|
+
* Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
|
|
726
|
+
* @summary Retrieve the partner hierarchy
|
|
727
|
+
* @param {string} code Unique identifier for the object.
|
|
728
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
729
|
+
* @param {*} [options] Override http request option.
|
|
730
|
+
* @throws {RequiredError}
|
|
731
|
+
*/
|
|
732
|
+
getPartnerHierarchy: function (code, authorization, options) {
|
|
733
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
734
|
+
var localVarAxiosArgs;
|
|
735
|
+
return __generator(this, function (_a) {
|
|
736
|
+
switch (_a.label) {
|
|
737
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPartnerHierarchy(code, authorization, options)];
|
|
738
|
+
case 1:
|
|
739
|
+
localVarAxiosArgs = _a.sent();
|
|
740
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
741
|
+
}
|
|
742
|
+
});
|
|
743
|
+
});
|
|
744
|
+
},
|
|
745
|
+
/**
|
|
746
|
+
* Returns one part of the hierarchy tree: the selected node and its direct children. If no node is selected, it starts from the top of the hierarchy. **Required Permissions** \"partner-management.partners.view\"
|
|
747
|
+
* @summary Retrieve the partner hierarchy tree
|
|
748
|
+
* @param {string} code Unique identifier for the object.
|
|
749
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
750
|
+
* @param {string} [nodeCode] Node to start from. Omit this to start from the top of the hierarchy.
|
|
751
|
+
* @param {number} [pageSize] Maximum number of direct children to return for the selected node. Default is 30 and the maximum is 50.
|
|
752
|
+
* @param {string} [pageToken] Value returned by the previous response when more children are available.
|
|
753
|
+
* @param {string} [asOf] Shows the hierarchy as it was at this time. Omit this to show the current hierarchy.
|
|
754
|
+
* @param {*} [options] Override http request option.
|
|
755
|
+
* @throws {RequiredError}
|
|
756
|
+
*/
|
|
757
|
+
getPartnerHierarchyTree: function (code, authorization, nodeCode, pageSize, pageToken, asOf, options) {
|
|
758
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
759
|
+
var localVarAxiosArgs;
|
|
760
|
+
return __generator(this, function (_a) {
|
|
761
|
+
switch (_a.label) {
|
|
762
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPartnerHierarchyTree(code, authorization, nodeCode, pageSize, pageToken, asOf, options)];
|
|
763
|
+
case 1:
|
|
764
|
+
localVarAxiosArgs = _a.sent();
|
|
765
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
766
|
+
}
|
|
767
|
+
});
|
|
768
|
+
});
|
|
769
|
+
},
|
|
770
|
+
/**
|
|
771
|
+
* Returns a download URL for the full hierarchy tree file. If the file is not ready, it starts a tree file build operation; check the operation status and call this endpoint again when it is done. **Required Permissions** \"partner-management.partners.view\"
|
|
772
|
+
* @summary Retrieve the partner hierarchy tree file
|
|
773
|
+
* @param {string} code Unique identifier for the object.
|
|
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
|
+
getPartnerHierarchyTreeFile: function (code, authorization, options) {
|
|
779
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
780
|
+
var localVarAxiosArgs;
|
|
781
|
+
return __generator(this, function (_a) {
|
|
782
|
+
switch (_a.label) {
|
|
783
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPartnerHierarchyTreeFile(code, authorization, options)];
|
|
784
|
+
case 1:
|
|
785
|
+
localVarAxiosArgs = _a.sent();
|
|
786
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
787
|
+
}
|
|
788
|
+
});
|
|
789
|
+
});
|
|
790
|
+
},
|
|
791
|
+
/**
|
|
792
|
+
* Returns a paginated list of partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
|
|
793
|
+
* @summary List partner hierarchies
|
|
794
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
795
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
796
|
+
* @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.
|
|
797
|
+
* @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: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
798
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
799
|
+
* @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, name, createdAt, updatedAt</i>
|
|
800
|
+
* @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/>
|
|
801
|
+
* @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: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
802
|
+
* @param {*} [options] Override http request option.
|
|
803
|
+
* @throws {RequiredError}
|
|
804
|
+
*/
|
|
805
|
+
listPartnerHierarchies: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
806
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
807
|
+
var localVarAxiosArgs;
|
|
808
|
+
return __generator(this, function (_a) {
|
|
809
|
+
switch (_a.label) {
|
|
810
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPartnerHierarchies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
811
|
+
case 1:
|
|
812
|
+
localVarAxiosArgs = _a.sent();
|
|
813
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
814
|
+
}
|
|
815
|
+
});
|
|
816
|
+
});
|
|
817
|
+
},
|
|
818
|
+
/**
|
|
819
|
+
* Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
820
|
+
* @summary List partner hierarchy operations
|
|
821
|
+
* @param {any} code Unique identifier for the object.
|
|
822
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
823
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
824
|
+
* @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.
|
|
825
|
+
* @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: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
826
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
827
|
+
* @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, name, createdAt, updatedAt</i>
|
|
828
|
+
* @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/>
|
|
829
|
+
* @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: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
830
|
+
* @param {*} [options] Override http request option.
|
|
831
|
+
* @throws {RequiredError}
|
|
832
|
+
*/
|
|
833
|
+
listPartnerHierarchyOperations: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
834
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
835
|
+
var localVarAxiosArgs;
|
|
836
|
+
return __generator(this, function (_a) {
|
|
837
|
+
switch (_a.label) {
|
|
838
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPartnerHierarchyOperations(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
839
|
+
case 1:
|
|
840
|
+
localVarAxiosArgs = _a.sent();
|
|
841
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
842
|
+
}
|
|
843
|
+
});
|
|
844
|
+
});
|
|
845
|
+
},
|
|
846
|
+
/**
|
|
847
|
+
* Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
848
|
+
* @summary Update the partner hierarchy
|
|
849
|
+
* @param {string} code Unique identifier for the object.
|
|
850
|
+
* @param {UpdatePartnerHierarchyRequestDto} updatePartnerHierarchyRequestDto
|
|
851
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
852
|
+
* @param {*} [options] Override http request option.
|
|
853
|
+
* @throws {RequiredError}
|
|
854
|
+
*/
|
|
855
|
+
updatePartnerHierarchy: function (code, updatePartnerHierarchyRequestDto, authorization, options) {
|
|
856
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
857
|
+
var localVarAxiosArgs;
|
|
858
|
+
return __generator(this, function (_a) {
|
|
859
|
+
switch (_a.label) {
|
|
860
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePartnerHierarchy(code, updatePartnerHierarchyRequestDto, authorization, options)];
|
|
861
|
+
case 1:
|
|
862
|
+
localVarAxiosArgs = _a.sent();
|
|
863
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
864
|
+
}
|
|
865
|
+
});
|
|
866
|
+
});
|
|
867
|
+
},
|
|
868
|
+
/**
|
|
869
|
+
* Replaces the hierarchy tree with an uploaded file. **Required Permissions** \"partner-management.partners.update\"
|
|
870
|
+
* @summary Update the partner hierarchy tree
|
|
871
|
+
* @param {string} code Unique identifier for the object.
|
|
872
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
873
|
+
* @param {*} [options] Override http request option.
|
|
874
|
+
* @throws {RequiredError}
|
|
875
|
+
*/
|
|
876
|
+
updatePartnerHierarchyTree: function (code, authorization, options) {
|
|
877
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
878
|
+
var localVarAxiosArgs;
|
|
879
|
+
return __generator(this, function (_a) {
|
|
880
|
+
switch (_a.label) {
|
|
881
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePartnerHierarchyTree(code, authorization, options)];
|
|
882
|
+
case 1:
|
|
883
|
+
localVarAxiosArgs = _a.sent();
|
|
884
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
885
|
+
}
|
|
886
|
+
});
|
|
887
|
+
});
|
|
888
|
+
},
|
|
889
|
+
};
|
|
890
|
+
};
|
|
891
|
+
exports.PartnerHierarchiesApiFp = PartnerHierarchiesApiFp;
|
|
892
|
+
/**
|
|
893
|
+
* PartnerHierarchiesApi - factory interface
|
|
894
|
+
* @export
|
|
895
|
+
*/
|
|
896
|
+
var PartnerHierarchiesApiFactory = function (configuration, basePath, axios) {
|
|
897
|
+
var localVarFp = (0, exports.PartnerHierarchiesApiFp)(configuration);
|
|
898
|
+
return {
|
|
899
|
+
/**
|
|
900
|
+
* Creates a partner hierarchy from an existing hierarchy type. The hierarchy starts empty, so nodes can be added after it is created. **Required Permissions** \"partner-management.partners.create\"
|
|
901
|
+
* @summary Create the partner hierarchy
|
|
902
|
+
* @param {CreatePartnerHierarchyRequestDto} createPartnerHierarchyRequestDto
|
|
903
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
904
|
+
* @param {*} [options] Override http request option.
|
|
905
|
+
* @throws {RequiredError}
|
|
906
|
+
*/
|
|
907
|
+
createPartnerHierarchy: function (createPartnerHierarchyRequestDto, authorization, options) {
|
|
908
|
+
return localVarFp.createPartnerHierarchy(createPartnerHierarchyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
909
|
+
},
|
|
910
|
+
/**
|
|
911
|
+
* Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
|
|
912
|
+
* @summary Delete the partner hierarchy
|
|
913
|
+
* @param {string} code Unique identifier for the object.
|
|
914
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
915
|
+
* @param {*} [options] Override http request option.
|
|
916
|
+
* @throws {RequiredError}
|
|
917
|
+
*/
|
|
918
|
+
deletePartnerHierarchy: function (code, authorization, options) {
|
|
919
|
+
return localVarFp.deletePartnerHierarchy(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
920
|
+
},
|
|
921
|
+
/**
|
|
922
|
+
* Returns a pre-signed upload URL for a hierarchy tree file. Use the uploaded file key for tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.update\"
|
|
923
|
+
* @summary Create the partner hierarchy upload url
|
|
924
|
+
* @param {string} code Unique identifier for the object.
|
|
925
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
926
|
+
* @param {*} [options] Override http request option.
|
|
927
|
+
* @throws {RequiredError}
|
|
928
|
+
*/
|
|
929
|
+
generateUploadUrl: function (code, authorization, options) {
|
|
930
|
+
return localVarFp.generateUploadUrl(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
931
|
+
},
|
|
932
|
+
/**
|
|
933
|
+
* Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
|
|
934
|
+
* @summary Retrieve the partner hierarchy
|
|
935
|
+
* @param {string} code Unique identifier for the object.
|
|
936
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
937
|
+
* @param {*} [options] Override http request option.
|
|
938
|
+
* @throws {RequiredError}
|
|
939
|
+
*/
|
|
940
|
+
getPartnerHierarchy: function (code, authorization, options) {
|
|
941
|
+
return localVarFp.getPartnerHierarchy(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
942
|
+
},
|
|
943
|
+
/**
|
|
944
|
+
* Returns one part of the hierarchy tree: the selected node and its direct children. If no node is selected, it starts from the top of the hierarchy. **Required Permissions** \"partner-management.partners.view\"
|
|
945
|
+
* @summary Retrieve the partner hierarchy tree
|
|
946
|
+
* @param {string} code Unique identifier for the object.
|
|
947
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
948
|
+
* @param {string} [nodeCode] Node to start from. Omit this to start from the top of the hierarchy.
|
|
949
|
+
* @param {number} [pageSize] Maximum number of direct children to return for the selected node. Default is 30 and the maximum is 50.
|
|
950
|
+
* @param {string} [pageToken] Value returned by the previous response when more children are available.
|
|
951
|
+
* @param {string} [asOf] Shows the hierarchy as it was at this time. Omit this to show the current hierarchy.
|
|
952
|
+
* @param {*} [options] Override http request option.
|
|
953
|
+
* @throws {RequiredError}
|
|
954
|
+
*/
|
|
955
|
+
getPartnerHierarchyTree: function (code, authorization, nodeCode, pageSize, pageToken, asOf, options) {
|
|
956
|
+
return localVarFp.getPartnerHierarchyTree(code, authorization, nodeCode, pageSize, pageToken, asOf, options).then(function (request) { return request(axios, basePath); });
|
|
957
|
+
},
|
|
958
|
+
/**
|
|
959
|
+
* Returns a download URL for the full hierarchy tree file. If the file is not ready, it starts a tree file build operation; check the operation status and call this endpoint again when it is done. **Required Permissions** \"partner-management.partners.view\"
|
|
960
|
+
* @summary Retrieve the partner hierarchy tree file
|
|
961
|
+
* @param {string} code Unique identifier for the object.
|
|
962
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
963
|
+
* @param {*} [options] Override http request option.
|
|
964
|
+
* @throws {RequiredError}
|
|
965
|
+
*/
|
|
966
|
+
getPartnerHierarchyTreeFile: function (code, authorization, options) {
|
|
967
|
+
return localVarFp.getPartnerHierarchyTreeFile(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
968
|
+
},
|
|
969
|
+
/**
|
|
970
|
+
* Returns a paginated list of partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
|
|
971
|
+
* @summary List partner hierarchies
|
|
972
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
973
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
974
|
+
* @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.
|
|
975
|
+
* @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: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
976
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
977
|
+
* @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, name, createdAt, updatedAt</i>
|
|
978
|
+
* @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/>
|
|
979
|
+
* @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: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
980
|
+
* @param {*} [options] Override http request option.
|
|
981
|
+
* @throws {RequiredError}
|
|
982
|
+
*/
|
|
983
|
+
listPartnerHierarchies: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
984
|
+
return localVarFp.listPartnerHierarchies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
985
|
+
},
|
|
986
|
+
/**
|
|
987
|
+
* Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
988
|
+
* @summary List partner hierarchy operations
|
|
989
|
+
* @param {any} code Unique identifier for the object.
|
|
990
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
991
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
992
|
+
* @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.
|
|
993
|
+
* @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: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
994
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
995
|
+
* @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, name, createdAt, updatedAt</i>
|
|
996
|
+
* @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/>
|
|
997
|
+
* @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: id, code, name, partnerHierarchyTypeCode, createdAt, updatedAt</i>
|
|
998
|
+
* @param {*} [options] Override http request option.
|
|
999
|
+
* @throws {RequiredError}
|
|
1000
|
+
*/
|
|
1001
|
+
listPartnerHierarchyOperations: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1002
|
+
return localVarFp.listPartnerHierarchyOperations(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1003
|
+
},
|
|
1004
|
+
/**
|
|
1005
|
+
* Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
1006
|
+
* @summary Update the partner hierarchy
|
|
1007
|
+
* @param {string} code Unique identifier for the object.
|
|
1008
|
+
* @param {UpdatePartnerHierarchyRequestDto} updatePartnerHierarchyRequestDto
|
|
1009
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1010
|
+
* @param {*} [options] Override http request option.
|
|
1011
|
+
* @throws {RequiredError}
|
|
1012
|
+
*/
|
|
1013
|
+
updatePartnerHierarchy: function (code, updatePartnerHierarchyRequestDto, authorization, options) {
|
|
1014
|
+
return localVarFp.updatePartnerHierarchy(code, updatePartnerHierarchyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1015
|
+
},
|
|
1016
|
+
/**
|
|
1017
|
+
* Replaces the hierarchy tree with an uploaded file. **Required Permissions** \"partner-management.partners.update\"
|
|
1018
|
+
* @summary Update the partner hierarchy tree
|
|
1019
|
+
* @param {string} code Unique identifier for the object.
|
|
1020
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1021
|
+
* @param {*} [options] Override http request option.
|
|
1022
|
+
* @throws {RequiredError}
|
|
1023
|
+
*/
|
|
1024
|
+
updatePartnerHierarchyTree: function (code, authorization, options) {
|
|
1025
|
+
return localVarFp.updatePartnerHierarchyTree(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1026
|
+
},
|
|
1027
|
+
};
|
|
1028
|
+
};
|
|
1029
|
+
exports.PartnerHierarchiesApiFactory = PartnerHierarchiesApiFactory;
|
|
1030
|
+
/**
|
|
1031
|
+
* PartnerHierarchiesApi - object-oriented interface
|
|
1032
|
+
* @export
|
|
1033
|
+
* @class PartnerHierarchiesApi
|
|
1034
|
+
* @extends {BaseAPI}
|
|
1035
|
+
*/
|
|
1036
|
+
var PartnerHierarchiesApi = /** @class */ (function (_super) {
|
|
1037
|
+
__extends(PartnerHierarchiesApi, _super);
|
|
1038
|
+
function PartnerHierarchiesApi() {
|
|
1039
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* Creates a partner hierarchy from an existing hierarchy type. The hierarchy starts empty, so nodes can be added after it is created. **Required Permissions** \"partner-management.partners.create\"
|
|
1043
|
+
* @summary Create the partner hierarchy
|
|
1044
|
+
* @param {PartnerHierarchiesApiCreatePartnerHierarchyRequest} requestParameters Request parameters.
|
|
1045
|
+
* @param {*} [options] Override http request option.
|
|
1046
|
+
* @throws {RequiredError}
|
|
1047
|
+
* @memberof PartnerHierarchiesApi
|
|
1048
|
+
*/
|
|
1049
|
+
PartnerHierarchiesApi.prototype.createPartnerHierarchy = function (requestParameters, options) {
|
|
1050
|
+
var _this = this;
|
|
1051
|
+
return (0, exports.PartnerHierarchiesApiFp)(this.configuration).createPartnerHierarchy(requestParameters.createPartnerHierarchyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1052
|
+
};
|
|
1053
|
+
/**
|
|
1054
|
+
* Deletes a partner hierarchy. The hierarchy must have no nodes before it can be deleted. **Required Permissions** \"partner-management.partners.delete\"
|
|
1055
|
+
* @summary Delete the partner hierarchy
|
|
1056
|
+
* @param {PartnerHierarchiesApiDeletePartnerHierarchyRequest} requestParameters Request parameters.
|
|
1057
|
+
* @param {*} [options] Override http request option.
|
|
1058
|
+
* @throws {RequiredError}
|
|
1059
|
+
* @memberof PartnerHierarchiesApi
|
|
1060
|
+
*/
|
|
1061
|
+
PartnerHierarchiesApi.prototype.deletePartnerHierarchy = function (requestParameters, options) {
|
|
1062
|
+
var _this = this;
|
|
1063
|
+
return (0, exports.PartnerHierarchiesApiFp)(this.configuration).deletePartnerHierarchy(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1064
|
+
};
|
|
1065
|
+
/**
|
|
1066
|
+
* Returns a pre-signed upload URL for a hierarchy tree file. Use the uploaded file key for tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.update\"
|
|
1067
|
+
* @summary Create the partner hierarchy upload url
|
|
1068
|
+
* @param {PartnerHierarchiesApiGenerateUploadUrlRequest} requestParameters Request parameters.
|
|
1069
|
+
* @param {*} [options] Override http request option.
|
|
1070
|
+
* @throws {RequiredError}
|
|
1071
|
+
* @memberof PartnerHierarchiesApi
|
|
1072
|
+
*/
|
|
1073
|
+
PartnerHierarchiesApi.prototype.generateUploadUrl = function (requestParameters, options) {
|
|
1074
|
+
var _this = this;
|
|
1075
|
+
return (0, exports.PartnerHierarchiesApiFp)(this.configuration).generateUploadUrl(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1076
|
+
};
|
|
1077
|
+
/**
|
|
1078
|
+
* Returns the details of one partner hierarchy, including its name and hierarchy type. **Required Permissions** \"partner-management.partners.view\"
|
|
1079
|
+
* @summary Retrieve the partner hierarchy
|
|
1080
|
+
* @param {PartnerHierarchiesApiGetPartnerHierarchyRequest} requestParameters Request parameters.
|
|
1081
|
+
* @param {*} [options] Override http request option.
|
|
1082
|
+
* @throws {RequiredError}
|
|
1083
|
+
* @memberof PartnerHierarchiesApi
|
|
1084
|
+
*/
|
|
1085
|
+
PartnerHierarchiesApi.prototype.getPartnerHierarchy = function (requestParameters, options) {
|
|
1086
|
+
var _this = this;
|
|
1087
|
+
return (0, exports.PartnerHierarchiesApiFp)(this.configuration).getPartnerHierarchy(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1088
|
+
};
|
|
1089
|
+
/**
|
|
1090
|
+
* Returns one part of the hierarchy tree: the selected node and its direct children. If no node is selected, it starts from the top of the hierarchy. **Required Permissions** \"partner-management.partners.view\"
|
|
1091
|
+
* @summary Retrieve the partner hierarchy tree
|
|
1092
|
+
* @param {PartnerHierarchiesApiGetPartnerHierarchyTreeRequest} requestParameters Request parameters.
|
|
1093
|
+
* @param {*} [options] Override http request option.
|
|
1094
|
+
* @throws {RequiredError}
|
|
1095
|
+
* @memberof PartnerHierarchiesApi
|
|
1096
|
+
*/
|
|
1097
|
+
PartnerHierarchiesApi.prototype.getPartnerHierarchyTree = function (requestParameters, options) {
|
|
1098
|
+
var _this = this;
|
|
1099
|
+
return (0, exports.PartnerHierarchiesApiFp)(this.configuration).getPartnerHierarchyTree(requestParameters.code, requestParameters.authorization, requestParameters.nodeCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.asOf, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1100
|
+
};
|
|
1101
|
+
/**
|
|
1102
|
+
* Returns a download URL for the full hierarchy tree file. If the file is not ready, it starts a tree file build operation; check the operation status and call this endpoint again when it is done. **Required Permissions** \"partner-management.partners.view\"
|
|
1103
|
+
* @summary Retrieve the partner hierarchy tree file
|
|
1104
|
+
* @param {PartnerHierarchiesApiGetPartnerHierarchyTreeFileRequest} requestParameters Request parameters.
|
|
1105
|
+
* @param {*} [options] Override http request option.
|
|
1106
|
+
* @throws {RequiredError}
|
|
1107
|
+
* @memberof PartnerHierarchiesApi
|
|
1108
|
+
*/
|
|
1109
|
+
PartnerHierarchiesApi.prototype.getPartnerHierarchyTreeFile = function (requestParameters, options) {
|
|
1110
|
+
var _this = this;
|
|
1111
|
+
return (0, exports.PartnerHierarchiesApiFp)(this.configuration).getPartnerHierarchyTreeFile(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1112
|
+
};
|
|
1113
|
+
/**
|
|
1114
|
+
* Returns a paginated list of partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
|
|
1115
|
+
* @summary List partner hierarchies
|
|
1116
|
+
* @param {PartnerHierarchiesApiListPartnerHierarchiesRequest} requestParameters Request parameters.
|
|
1117
|
+
* @param {*} [options] Override http request option.
|
|
1118
|
+
* @throws {RequiredError}
|
|
1119
|
+
* @memberof PartnerHierarchiesApi
|
|
1120
|
+
*/
|
|
1121
|
+
PartnerHierarchiesApi.prototype.listPartnerHierarchies = function (requestParameters, options) {
|
|
1122
|
+
var _this = this;
|
|
1123
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1124
|
+
return (0, exports.PartnerHierarchiesApiFp)(this.configuration).listPartnerHierarchies(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1125
|
+
};
|
|
1126
|
+
/**
|
|
1127
|
+
* Returns long-running file operations for this hierarchy, such as tree replacement or batch node creation. **Required Permissions** \"partner-management.partners.view\"
|
|
1128
|
+
* @summary List partner hierarchy operations
|
|
1129
|
+
* @param {PartnerHierarchiesApiListPartnerHierarchyOperationsRequest} requestParameters Request parameters.
|
|
1130
|
+
* @param {*} [options] Override http request option.
|
|
1131
|
+
* @throws {RequiredError}
|
|
1132
|
+
* @memberof PartnerHierarchiesApi
|
|
1133
|
+
*/
|
|
1134
|
+
PartnerHierarchiesApi.prototype.listPartnerHierarchyOperations = function (requestParameters, options) {
|
|
1135
|
+
var _this = this;
|
|
1136
|
+
return (0, exports.PartnerHierarchiesApiFp)(this.configuration).listPartnerHierarchyOperations(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1137
|
+
};
|
|
1138
|
+
/**
|
|
1139
|
+
* Updates the partner hierarchy details without changing any nodes in the tree. **Required Permissions** \"partner-management.partners.update\"
|
|
1140
|
+
* @summary Update the partner hierarchy
|
|
1141
|
+
* @param {PartnerHierarchiesApiUpdatePartnerHierarchyRequest} requestParameters Request parameters.
|
|
1142
|
+
* @param {*} [options] Override http request option.
|
|
1143
|
+
* @throws {RequiredError}
|
|
1144
|
+
* @memberof PartnerHierarchiesApi
|
|
1145
|
+
*/
|
|
1146
|
+
PartnerHierarchiesApi.prototype.updatePartnerHierarchy = function (requestParameters, options) {
|
|
1147
|
+
var _this = this;
|
|
1148
|
+
return (0, exports.PartnerHierarchiesApiFp)(this.configuration).updatePartnerHierarchy(requestParameters.code, requestParameters.updatePartnerHierarchyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1149
|
+
};
|
|
1150
|
+
/**
|
|
1151
|
+
* Replaces the hierarchy tree with an uploaded file. **Required Permissions** \"partner-management.partners.update\"
|
|
1152
|
+
* @summary Update the partner hierarchy tree
|
|
1153
|
+
* @param {PartnerHierarchiesApiUpdatePartnerHierarchyTreeRequest} requestParameters Request parameters.
|
|
1154
|
+
* @param {*} [options] Override http request option.
|
|
1155
|
+
* @throws {RequiredError}
|
|
1156
|
+
* @memberof PartnerHierarchiesApi
|
|
1157
|
+
*/
|
|
1158
|
+
PartnerHierarchiesApi.prototype.updatePartnerHierarchyTree = function (requestParameters, options) {
|
|
1159
|
+
var _this = this;
|
|
1160
|
+
return (0, exports.PartnerHierarchiesApiFp)(this.configuration).updatePartnerHierarchyTree(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1161
|
+
};
|
|
1162
|
+
return PartnerHierarchiesApi;
|
|
1163
|
+
}(base_1.BaseAPI));
|
|
1164
|
+
exports.PartnerHierarchiesApi = PartnerHierarchiesApi;
|