@emilgroup/public-api-sdk 1.40.1-beta.21 → 1.40.1-beta.23
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 +6 -0
- package/README.md +2 -2
- package/api/address-completions-validations-api.ts +16 -6
- package/api/booking-funnels-api.ts +8 -3
- package/api/documents-api.ts +56 -21
- package/api/health-api.ts +1 -1
- package/api/ibanvalidator-api.ts +8 -3
- package/api/leads-api.ts +64 -24
- package/api/named-ranges-api.ts +8 -3
- package/api/notifications-api.ts +24 -9
- package/api/partners-api.ts +8 -3
- package/api/payments-setup-api.ts +60 -20
- package/api/product-versions-api.ts +32 -12
- package/api/products-api.ts +72 -27
- package/api/withdrawal-requests-api.ts +176 -0
- package/api.ts +2 -0
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/address-completions-validations-api.d.ts +2 -2
- package/dist/api/address-completions-validations-api.js +22 -14
- package/dist/api/booking-funnels-api.d.ts +1 -1
- package/dist/api/booking-funnels-api.js +11 -7
- package/dist/api/documents-api.d.ts +7 -7
- package/dist/api/documents-api.js +93 -53
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/api/ibanvalidator-api.d.ts +1 -1
- package/dist/api/ibanvalidator-api.js +15 -8
- package/dist/api/leads-api.d.ts +8 -8
- package/dist/api/leads-api.js +120 -64
- package/dist/api/named-ranges-api.d.ts +1 -1
- package/dist/api/named-ranges-api.js +11 -7
- package/dist/api/notifications-api.d.ts +3 -3
- package/dist/api/notifications-api.js +45 -24
- package/dist/api/partners-api.d.ts +1 -1
- package/dist/api/partners-api.js +15 -8
- package/dist/api/payments-setup-api.d.ts +4 -4
- package/dist/api/payments-setup-api.js +80 -40
- package/dist/api/product-versions-api.d.ts +4 -4
- package/dist/api/product-versions-api.js +56 -31
- package/dist/api/products-api.d.ts +9 -9
- package/dist/api/products-api.js +119 -68
- package/dist/api/withdrawal-requests-api.d.ts +97 -0
- package/dist/api/withdrawal-requests-api.js +231 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/inline-response400.d.ts +36 -0
- package/dist/models/inline-response400.js +15 -0
- package/dist/models/inline-response401.d.ts +30 -0
- package/dist/models/inline-response401.js +15 -0
- package/dist/models/submit-withdrawal-request-dto.d.ts +30 -0
- package/dist/models/submit-withdrawal-request-dto.js +15 -0
- package/dist/models/submit-withdrawal-request-response-class.d.ts +24 -0
- package/dist/models/submit-withdrawal-request-response-class.js +15 -0
- package/dist/models/withdrawal-request-error-response-class.d.ts +43 -0
- package/dist/models/withdrawal-request-error-response-class.js +22 -0
- package/models/index.ts +5 -0
- package/models/inline-response400.ts +42 -0
- package/models/inline-response401.ts +36 -0
- package/models/submit-withdrawal-request-dto.ts +36 -0
- package/models/submit-withdrawal-request-response-class.ts +30 -0
- package/models/withdrawal-request-error-response-class.ts +52 -0
- package/package.json +2 -2
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil PublicAPI
|
|
6
|
+
* The Emil Public 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.WithdrawalRequestsApi = exports.WithdrawalRequestsApiFactory = exports.WithdrawalRequestsApiFp = exports.WithdrawalRequestsApiAxiosParamCreator = 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
|
+
* WithdrawalRequestsApi - axios parameter creator
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
var WithdrawalRequestsApiAxiosParamCreator = function (configuration) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
* Records the request of a customer to withdraw from a policy. Use it from the withdrawal form of the tenant page, after the customer types the policy number and the policyholder name. The platform checks that the number and the name belong together. A failed check gives one uniform answer, so the response does not show whether a policy number exists. The request needs a policy that is not terminated or withdrawn and that has no open request. A rejected request does not block a new one. The call does not withdraw the policy. A case manager accepts or rejects the request later. The response holds only the time of receipt, in UTC. It holds no policy or customer data. To authenticate, send the public key of the tenant in the Authorization header. Related endpoint: [Create the lead](#/Leads/createLead) uses the same public key. Search terms: withdrawal, revocation, cancellation form, right of withdrawal.
|
|
97
|
+
* @summary Submit a withdrawal request
|
|
98
|
+
* @param {SubmitWithdrawalRequestDto} submitWithdrawalRequestDto
|
|
99
|
+
* @param {string} [authorization] Bearer token. Use the public key of the tenant, for example `Bearer pb_<key>`.
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
submitWithdrawalRequest: function (submitWithdrawalRequestDto, 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, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
+
var _a;
|
|
108
|
+
return __generator(this, function (_b) {
|
|
109
|
+
switch (_b.label) {
|
|
110
|
+
case 0:
|
|
111
|
+
// verify required parameter 'submitWithdrawalRequestDto' is not null or undefined
|
|
112
|
+
(0, common_1.assertParamExists)('submitWithdrawalRequest', 'submitWithdrawalRequestDto', submitWithdrawalRequestDto);
|
|
113
|
+
localVarPath = "/publicapi/v1/withdrawal-requests";
|
|
114
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
|
+
if (configuration) {
|
|
116
|
+
baseOptions = configuration.baseOptions;
|
|
117
|
+
baseAccessToken = configuration.accessToken;
|
|
118
|
+
}
|
|
119
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
120
|
+
localVarHeaderParameter = {};
|
|
121
|
+
localVarQueryParameter = {};
|
|
122
|
+
// authentication bearer required
|
|
123
|
+
// http bearer authentication required
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
+
];
|
|
128
|
+
case 1:
|
|
129
|
+
// authentication bearer required
|
|
130
|
+
// http bearer authentication required
|
|
131
|
+
_b.sent();
|
|
132
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
137
|
+
}
|
|
138
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
139
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
140
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
141
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
142
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(submitWithdrawalRequestDto, localVarRequestOptions, configuration);
|
|
143
|
+
return [2 /*return*/, {
|
|
144
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
145
|
+
options: localVarRequestOptions,
|
|
146
|
+
}];
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
},
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
exports.WithdrawalRequestsApiAxiosParamCreator = WithdrawalRequestsApiAxiosParamCreator;
|
|
154
|
+
/**
|
|
155
|
+
* WithdrawalRequestsApi - functional programming interface
|
|
156
|
+
* @export
|
|
157
|
+
*/
|
|
158
|
+
var WithdrawalRequestsApiFp = function (configuration) {
|
|
159
|
+
var localVarAxiosParamCreator = (0, exports.WithdrawalRequestsApiAxiosParamCreator)(configuration);
|
|
160
|
+
return {
|
|
161
|
+
/**
|
|
162
|
+
* Records the request of a customer to withdraw from a policy. Use it from the withdrawal form of the tenant page, after the customer types the policy number and the policyholder name. The platform checks that the number and the name belong together. A failed check gives one uniform answer, so the response does not show whether a policy number exists. The request needs a policy that is not terminated or withdrawn and that has no open request. A rejected request does not block a new one. The call does not withdraw the policy. A case manager accepts or rejects the request later. The response holds only the time of receipt, in UTC. It holds no policy or customer data. To authenticate, send the public key of the tenant in the Authorization header. Related endpoint: [Create the lead](#/Leads/createLead) uses the same public key. Search terms: withdrawal, revocation, cancellation form, right of withdrawal.
|
|
163
|
+
* @summary Submit a withdrawal request
|
|
164
|
+
* @param {SubmitWithdrawalRequestDto} submitWithdrawalRequestDto
|
|
165
|
+
* @param {string} [authorization] Bearer token. Use the public key of the tenant, for example `Bearer pb_<key>`.
|
|
166
|
+
* @param {*} [options] Override http request option.
|
|
167
|
+
* @throws {RequiredError}
|
|
168
|
+
*/
|
|
169
|
+
submitWithdrawalRequest: function (submitWithdrawalRequestDto, authorization, options) {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
171
|
+
var localVarAxiosArgs;
|
|
172
|
+
return __generator(this, function (_a) {
|
|
173
|
+
switch (_a.label) {
|
|
174
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.submitWithdrawalRequest(submitWithdrawalRequestDto, authorization, options)];
|
|
175
|
+
case 1:
|
|
176
|
+
localVarAxiosArgs = _a.sent();
|
|
177
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
},
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
exports.WithdrawalRequestsApiFp = WithdrawalRequestsApiFp;
|
|
185
|
+
/**
|
|
186
|
+
* WithdrawalRequestsApi - factory interface
|
|
187
|
+
* @export
|
|
188
|
+
*/
|
|
189
|
+
var WithdrawalRequestsApiFactory = function (configuration, basePath, axios) {
|
|
190
|
+
var localVarFp = (0, exports.WithdrawalRequestsApiFp)(configuration);
|
|
191
|
+
return {
|
|
192
|
+
/**
|
|
193
|
+
* Records the request of a customer to withdraw from a policy. Use it from the withdrawal form of the tenant page, after the customer types the policy number and the policyholder name. The platform checks that the number and the name belong together. A failed check gives one uniform answer, so the response does not show whether a policy number exists. The request needs a policy that is not terminated or withdrawn and that has no open request. A rejected request does not block a new one. The call does not withdraw the policy. A case manager accepts or rejects the request later. The response holds only the time of receipt, in UTC. It holds no policy or customer data. To authenticate, send the public key of the tenant in the Authorization header. Related endpoint: [Create the lead](#/Leads/createLead) uses the same public key. Search terms: withdrawal, revocation, cancellation form, right of withdrawal.
|
|
194
|
+
* @summary Submit a withdrawal request
|
|
195
|
+
* @param {SubmitWithdrawalRequestDto} submitWithdrawalRequestDto
|
|
196
|
+
* @param {string} [authorization] Bearer token. Use the public key of the tenant, for example `Bearer pb_<key>`.
|
|
197
|
+
* @param {*} [options] Override http request option.
|
|
198
|
+
* @throws {RequiredError}
|
|
199
|
+
*/
|
|
200
|
+
submitWithdrawalRequest: function (submitWithdrawalRequestDto, authorization, options) {
|
|
201
|
+
return localVarFp.submitWithdrawalRequest(submitWithdrawalRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
202
|
+
},
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
exports.WithdrawalRequestsApiFactory = WithdrawalRequestsApiFactory;
|
|
206
|
+
/**
|
|
207
|
+
* WithdrawalRequestsApi - object-oriented interface
|
|
208
|
+
* @export
|
|
209
|
+
* @class WithdrawalRequestsApi
|
|
210
|
+
* @extends {BaseAPI}
|
|
211
|
+
*/
|
|
212
|
+
var WithdrawalRequestsApi = /** @class */ (function (_super) {
|
|
213
|
+
__extends(WithdrawalRequestsApi, _super);
|
|
214
|
+
function WithdrawalRequestsApi() {
|
|
215
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Records the request of a customer to withdraw from a policy. Use it from the withdrawal form of the tenant page, after the customer types the policy number and the policyholder name. The platform checks that the number and the name belong together. A failed check gives one uniform answer, so the response does not show whether a policy number exists. The request needs a policy that is not terminated or withdrawn and that has no open request. A rejected request does not block a new one. The call does not withdraw the policy. A case manager accepts or rejects the request later. The response holds only the time of receipt, in UTC. It holds no policy or customer data. To authenticate, send the public key of the tenant in the Authorization header. Related endpoint: [Create the lead](#/Leads/createLead) uses the same public key. Search terms: withdrawal, revocation, cancellation form, right of withdrawal.
|
|
219
|
+
* @summary Submit a withdrawal request
|
|
220
|
+
* @param {WithdrawalRequestsApiSubmitWithdrawalRequestRequest} requestParameters Request parameters.
|
|
221
|
+
* @param {*} [options] Override http request option.
|
|
222
|
+
* @throws {RequiredError}
|
|
223
|
+
* @memberof WithdrawalRequestsApi
|
|
224
|
+
*/
|
|
225
|
+
WithdrawalRequestsApi.prototype.submitWithdrawalRequest = function (requestParameters, options) {
|
|
226
|
+
var _this = this;
|
|
227
|
+
return (0, exports.WithdrawalRequestsApiFp)(this.configuration).submitWithdrawalRequest(requestParameters.submitWithdrawalRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
228
|
+
};
|
|
229
|
+
return WithdrawalRequestsApi;
|
|
230
|
+
}(base_1.BaseAPI));
|
|
231
|
+
exports.WithdrawalRequestsApi = WithdrawalRequestsApi;
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -39,3 +39,4 @@ __exportStar(require("./api/partners-api"), exports);
|
|
|
39
39
|
__exportStar(require("./api/payments-setup-api"), exports);
|
|
40
40
|
__exportStar(require("./api/product-versions-api"), exports);
|
|
41
41
|
__exportStar(require("./api/products-api"), exports);
|
|
42
|
+
__exportStar(require("./api/withdrawal-requests-api"), exports);
|
package/dist/base.d.ts
CHANGED
|
@@ -22,9 +22,19 @@ export declare const COLLECTION_FORMATS: {
|
|
|
22
22
|
tsv: string;
|
|
23
23
|
pipes: string;
|
|
24
24
|
};
|
|
25
|
+
export interface SessionClass {
|
|
26
|
+
sub: string;
|
|
27
|
+
username?: string;
|
|
28
|
+
email?: string;
|
|
29
|
+
tenantSlug?: string;
|
|
30
|
+
permissions?: string;
|
|
31
|
+
expiresAt?: number;
|
|
32
|
+
}
|
|
25
33
|
export interface LoginClass {
|
|
26
34
|
accessToken: string;
|
|
27
35
|
permissions: string;
|
|
36
|
+
authMode?: string;
|
|
37
|
+
session?: SessionClass;
|
|
28
38
|
}
|
|
29
39
|
export interface SwitchWorkspaceRequest {
|
|
30
40
|
username: string;
|
|
@@ -33,6 +43,8 @@ export interface SwitchWorkspaceRequest {
|
|
|
33
43
|
export interface SwitchWorkspaceResponseClass {
|
|
34
44
|
accessToken: string;
|
|
35
45
|
permissions: string;
|
|
46
|
+
authMode?: string;
|
|
47
|
+
session?: SessionClass;
|
|
36
48
|
}
|
|
37
49
|
export declare enum Environment {
|
|
38
50
|
Production = "https://apiv2.emil.de",
|
|
@@ -63,6 +75,18 @@ export declare class BaseAPI {
|
|
|
63
75
|
protected configuration: Configuration | undefined;
|
|
64
76
|
private tokenData?;
|
|
65
77
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
78
|
+
private sessionAccount;
|
|
79
|
+
private authBasePath;
|
|
80
|
+
private usesSession;
|
|
81
|
+
private useSessionAuth;
|
|
82
|
+
private useHeaderAuth;
|
|
83
|
+
private applyTokenReply;
|
|
84
|
+
private sessionHeaders;
|
|
85
|
+
private withCurrentAuth;
|
|
86
|
+
private canRetryWithToken;
|
|
87
|
+
private canResend;
|
|
88
|
+
private switchToToken;
|
|
89
|
+
private retryWithToken;
|
|
66
90
|
selectEnvironment(env: Environment): void;
|
|
67
91
|
selectBasePath(path: string): void;
|
|
68
92
|
getPermissions(): Array<string>;
|
|
@@ -72,6 +96,8 @@ export declare class BaseAPI {
|
|
|
72
96
|
private storeTokenData;
|
|
73
97
|
loadTokenData(): void;
|
|
74
98
|
cleanTokenData(): void;
|
|
99
|
+
private ownAccount;
|
|
100
|
+
protected withOwner(options?: AxiosRequestConfig): AxiosRequestConfig;
|
|
75
101
|
private attachInterceptor;
|
|
76
102
|
}
|
|
77
103
|
/**
|