@emilgroup/partner-portal-sdk 1.0.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +49 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +51 -0
- package/api/health-check-api.ts +124 -0
- package/api/intermediary-api.ts +1222 -0
- package/api.ts +29 -0
- package/base.ts +278 -0
- package/common.ts +198 -0
- package/configuration.ts +101 -0
- package/dist/api/health-check-api.d.ts +70 -0
- package/dist/api/health-check-api.js +200 -0
- package/dist/api/intermediary-api.d.ts +704 -0
- package/dist/api/intermediary-api.js +1015 -0
- package/dist/api.d.ts +13 -0
- package/dist/api.js +31 -0
- package/dist/base.d.ts +77 -0
- package/dist/base.js +321 -0
- package/dist/common.d.ts +91 -0
- package/dist/common.js +276 -0
- package/dist/configuration.d.ts +83 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/account-class.d.ts +176 -0
- package/dist/models/account-class.js +22 -0
- package/dist/models/account-policy-class.d.ts +147 -0
- package/dist/models/account-policy-class.js +15 -0
- package/dist/models/create-payment-method-request-dto.d.ts +31 -0
- package/dist/models/create-payment-method-request-dto.js +15 -0
- package/dist/models/create-policy-request-dto.d.ts +55 -0
- package/dist/models/create-policy-request-dto.js +15 -0
- package/dist/models/index.d.ts +34 -0
- package/dist/models/index.js +50 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/insured-object-type-class.d.ts +60 -0
- package/dist/models/insured-object-type-class.js +15 -0
- package/dist/models/invoice-class.d.ts +150 -0
- package/dist/models/invoice-class.js +30 -0
- package/dist/models/invoice-item-class.d.ts +117 -0
- package/dist/models/invoice-item-class.js +24 -0
- package/dist/models/invoice-status-class.d.ts +47 -0
- package/dist/models/invoice-status-class.js +20 -0
- package/dist/models/lead-bank-account-class.d.ts +30 -0
- package/dist/models/lead-bank-account-class.js +15 -0
- package/dist/models/lead-class.d.ts +157 -0
- package/dist/models/lead-class.js +15 -0
- package/dist/models/list-accounts-response-class.d.ts +31 -0
- package/dist/models/list-accounts-response-class.js +15 -0
- package/dist/models/list-leads-response-class.d.ts +43 -0
- package/dist/models/list-leads-response-class.js +15 -0
- package/dist/models/list-partners-response-class.d.ts +31 -0
- package/dist/models/list-partners-response-class.js +15 -0
- package/dist/models/list-policies-response-class.d.ts +43 -0
- package/dist/models/list-policies-response-class.js +15 -0
- package/dist/models/omit-type-class.d.ts +84 -0
- package/dist/models/omit-type-class.js +15 -0
- package/dist/models/partner-class.d.ts +103 -0
- package/dist/models/partner-class.js +15 -0
- package/dist/models/partner-link-class.d.ts +98 -0
- package/dist/models/partner-link-class.js +15 -0
- package/dist/models/partner-role-class.d.ts +72 -0
- package/dist/models/partner-role-class.js +15 -0
- package/dist/models/policy-class.d.ts +147 -0
- package/dist/models/policy-class.js +15 -0
- package/dist/models/policy-object-class.d.ts +84 -0
- package/dist/models/policy-object-class.js +15 -0
- package/dist/models/policy-premium-class.d.ts +61 -0
- package/dist/models/policy-premium-class.js +15 -0
- package/dist/models/policy-premium-item-class.d.ts +67 -0
- package/dist/models/policy-premium-item-class.js +15 -0
- package/dist/models/policy-version-class.d.ts +79 -0
- package/dist/models/policy-version-class.js +15 -0
- package/dist/models/premium-formula-class.d.ts +108 -0
- package/dist/models/premium-formula-class.js +15 -0
- package/dist/models/premium-override-dto.d.ts +55 -0
- package/dist/models/premium-override-dto.js +27 -0
- package/dist/models/premium-override-request-dto.d.ts +25 -0
- package/dist/models/premium-override-request-dto.js +15 -0
- package/dist/models/product-class.d.ts +92 -0
- package/dist/models/product-class.js +15 -0
- package/dist/models/product-version-class.d.ts +73 -0
- package/dist/models/product-version-class.js +22 -0
- package/dist/models/sepa-dto.d.ts +30 -0
- package/dist/models/sepa-dto.js +15 -0
- package/dist/models/tag-class.d.ts +54 -0
- package/dist/models/tag-class.js +15 -0
- package/dist/models/timeslice-class.d.ts +74 -0
- package/dist/models/timeslice-class.js +15 -0
- package/dist/models/uploaded-document-dto.d.ts +24 -0
- package/dist/models/uploaded-document-dto.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/account-class.ts +185 -0
- package/models/account-policy-class.ts +153 -0
- package/models/create-payment-method-request-dto.ts +37 -0
- package/models/create-policy-request-dto.ts +61 -0
- package/models/index.ts +34 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/insured-object-type-class.ts +66 -0
- package/models/invoice-class.ts +160 -0
- package/models/invoice-item-class.ts +126 -0
- package/models/invoice-status-class.ts +56 -0
- package/models/lead-bank-account-class.ts +36 -0
- package/models/lead-class.ts +163 -0
- package/models/list-accounts-response-class.ts +37 -0
- package/models/list-leads-response-class.ts +49 -0
- package/models/list-partners-response-class.ts +37 -0
- package/models/list-policies-response-class.ts +49 -0
- package/models/omit-type-class.ts +90 -0
- package/models/partner-class.ts +109 -0
- package/models/partner-link-class.ts +104 -0
- package/models/partner-role-class.ts +78 -0
- package/models/policy-class.ts +153 -0
- package/models/policy-object-class.ts +90 -0
- package/models/policy-premium-class.ts +67 -0
- package/models/policy-premium-item-class.ts +73 -0
- package/models/policy-version-class.ts +85 -0
- package/models/premium-formula-class.ts +114 -0
- package/models/premium-override-dto.ts +65 -0
- package/models/premium-override-request-dto.ts +31 -0
- package/models/product-class.ts +98 -0
- package/models/product-version-class.ts +82 -0
- package/models/sepa-dto.ts +36 -0
- package/models/tag-class.ts +60 -0
- package/models/timeslice-class.ts +80 -0
- package/models/uploaded-document-dto.ts +30 -0
- package/package.json +26 -0
- package/tsconfig.json +22 -0
package/dist/common.js
ADDED
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL PartnerPortal
|
|
6
|
+
* The EMIL PartnerPortal 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 __assign = (this && this.__assign) || function () {
|
|
16
|
+
__assign = Object.assign || function(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
26
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
27
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
28
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
29
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
30
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
31
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
32
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
36
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
37
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
38
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
39
|
+
function step(op) {
|
|
40
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
41
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
42
|
+
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;
|
|
43
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
44
|
+
switch (op[0]) {
|
|
45
|
+
case 0: case 1: t = op; break;
|
|
46
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
47
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
48
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
49
|
+
default:
|
|
50
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
51
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
52
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
53
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
54
|
+
if (t[2]) _.ops.pop();
|
|
55
|
+
_.trys.pop(); continue;
|
|
56
|
+
}
|
|
57
|
+
op = body.call(thisArg, _);
|
|
58
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
59
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63
|
+
exports.defaultStorage = exports.LocalStorage = exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
64
|
+
var base_1 = require("./base");
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @export
|
|
68
|
+
*/
|
|
69
|
+
exports.DUMMY_BASE_URL = 'https://example.com';
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
* @export
|
|
74
|
+
*/
|
|
75
|
+
var assertParamExists = function (functionName, paramName, paramValue) {
|
|
76
|
+
if (paramValue === null || paramValue === undefined) {
|
|
77
|
+
throw new base_1.RequiredError(paramName, "Required parameter ".concat(paramName, " was null or undefined when calling ").concat(functionName, "."));
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
exports.assertParamExists = assertParamExists;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
var setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
87
|
+
var localVarApiKeyValue, _a;
|
|
88
|
+
return __generator(this, function (_b) {
|
|
89
|
+
switch (_b.label) {
|
|
90
|
+
case 0:
|
|
91
|
+
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
92
|
+
if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
|
|
93
|
+
return [4 /*yield*/, configuration.apiKey(keyParamName)];
|
|
94
|
+
case 1:
|
|
95
|
+
_a = _b.sent();
|
|
96
|
+
return [3 /*break*/, 4];
|
|
97
|
+
case 2: return [4 /*yield*/, configuration.apiKey];
|
|
98
|
+
case 3:
|
|
99
|
+
_a = _b.sent();
|
|
100
|
+
_b.label = 4;
|
|
101
|
+
case 4:
|
|
102
|
+
localVarApiKeyValue = _a;
|
|
103
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
104
|
+
_b.label = 5;
|
|
105
|
+
case 5: return [2 /*return*/];
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
exports.setApiKeyToObject = setApiKeyToObject;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @export
|
|
114
|
+
*/
|
|
115
|
+
var setBasicAuthToObject = function (object, configuration) {
|
|
116
|
+
if (configuration && (configuration.username || configuration.password)) {
|
|
117
|
+
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @export
|
|
124
|
+
*/
|
|
125
|
+
var setBearerAuthToObject = function (object, configuration) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
127
|
+
var accessToken, _a;
|
|
128
|
+
return __generator(this, function (_b) {
|
|
129
|
+
switch (_b.label) {
|
|
130
|
+
case 0:
|
|
131
|
+
if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5];
|
|
132
|
+
if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
|
|
133
|
+
return [4 /*yield*/, configuration.accessToken()];
|
|
134
|
+
case 1:
|
|
135
|
+
_a = _b.sent();
|
|
136
|
+
return [3 /*break*/, 4];
|
|
137
|
+
case 2: return [4 /*yield*/, configuration.accessToken];
|
|
138
|
+
case 3:
|
|
139
|
+
_a = _b.sent();
|
|
140
|
+
_b.label = 4;
|
|
141
|
+
case 4:
|
|
142
|
+
accessToken = _a;
|
|
143
|
+
object["Authorization"] = "Bearer " + accessToken;
|
|
144
|
+
_b.label = 5;
|
|
145
|
+
case 5: return [2 /*return*/];
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @export
|
|
154
|
+
*/
|
|
155
|
+
var setOAuthToObject = function (object, name, scopes, configuration) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
157
|
+
var localVarAccessTokenValue, _a;
|
|
158
|
+
return __generator(this, function (_b) {
|
|
159
|
+
switch (_b.label) {
|
|
160
|
+
case 0:
|
|
161
|
+
if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5];
|
|
162
|
+
if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
|
|
163
|
+
return [4 /*yield*/, configuration.accessToken(name, scopes)];
|
|
164
|
+
case 1:
|
|
165
|
+
_a = _b.sent();
|
|
166
|
+
return [3 /*break*/, 4];
|
|
167
|
+
case 2: return [4 /*yield*/, configuration.accessToken];
|
|
168
|
+
case 3:
|
|
169
|
+
_a = _b.sent();
|
|
170
|
+
_b.label = 4;
|
|
171
|
+
case 4:
|
|
172
|
+
localVarAccessTokenValue = _a;
|
|
173
|
+
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
174
|
+
_b.label = 5;
|
|
175
|
+
case 5: return [2 /*return*/];
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
exports.setOAuthToObject = setOAuthToObject;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @export
|
|
184
|
+
*/
|
|
185
|
+
var setSearchParams = function (url) {
|
|
186
|
+
var objects = [];
|
|
187
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
188
|
+
objects[_i - 1] = arguments[_i];
|
|
189
|
+
}
|
|
190
|
+
var searchParams = new URLSearchParams(url.search);
|
|
191
|
+
for (var _a = 0, objects_1 = objects; _a < objects_1.length; _a++) {
|
|
192
|
+
var object = objects_1[_a];
|
|
193
|
+
for (var key in object) {
|
|
194
|
+
if (Array.isArray(object[key])) {
|
|
195
|
+
searchParams.delete(key);
|
|
196
|
+
for (var _b = 0, _c = object[key]; _b < _c.length; _b++) {
|
|
197
|
+
var item = _c[_b];
|
|
198
|
+
searchParams.append(key, item);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
searchParams.set(key, object[key]);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
url.search = searchParams.toString();
|
|
207
|
+
};
|
|
208
|
+
exports.setSearchParams = setSearchParams;
|
|
209
|
+
/**
|
|
210
|
+
*
|
|
211
|
+
* @export
|
|
212
|
+
*/
|
|
213
|
+
var serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
214
|
+
var nonString = typeof value !== 'string';
|
|
215
|
+
var needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
216
|
+
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
217
|
+
: nonString;
|
|
218
|
+
return needsSerialization
|
|
219
|
+
? JSON.stringify(value !== undefined ? value : {})
|
|
220
|
+
: (value || "");
|
|
221
|
+
};
|
|
222
|
+
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @export
|
|
226
|
+
*/
|
|
227
|
+
var toPathString = function (url) {
|
|
228
|
+
return url.pathname + url.search + url.hash;
|
|
229
|
+
};
|
|
230
|
+
exports.toPathString = toPathString;
|
|
231
|
+
/**
|
|
232
|
+
*
|
|
233
|
+
* @export
|
|
234
|
+
*/
|
|
235
|
+
var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
236
|
+
return function (axios, basePath) {
|
|
237
|
+
if (axios === void 0) { axios = globalAxios; }
|
|
238
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
239
|
+
var axiosRequestArgs = __assign(__assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
|
|
240
|
+
return axios.request(axiosRequestArgs);
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
exports.createRequestFunction = createRequestFunction;
|
|
244
|
+
var LocalStorage = /** @class */ (function () {
|
|
245
|
+
function LocalStorage() {
|
|
246
|
+
this.storage = localStorage;
|
|
247
|
+
}
|
|
248
|
+
LocalStorage.prototype.get = function (key, converter) {
|
|
249
|
+
var jsonValue = this.storage.getItem(key);
|
|
250
|
+
if (jsonValue === null) {
|
|
251
|
+
return null;
|
|
252
|
+
}
|
|
253
|
+
var value = JSON.parse(jsonValue);
|
|
254
|
+
if (converter !== undefined) {
|
|
255
|
+
return converter.fromStorageData(value);
|
|
256
|
+
}
|
|
257
|
+
else {
|
|
258
|
+
return value;
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
LocalStorage.prototype.set = function (key, value, converter) {
|
|
262
|
+
var valueToStore = value;
|
|
263
|
+
if (converter !== undefined) {
|
|
264
|
+
valueToStore = converter.toStorageData(value);
|
|
265
|
+
}
|
|
266
|
+
var jsonValue = JSON.stringify(valueToStore);
|
|
267
|
+
this.storage.setItem(key, jsonValue);
|
|
268
|
+
};
|
|
269
|
+
return LocalStorage;
|
|
270
|
+
}());
|
|
271
|
+
exports.LocalStorage = LocalStorage;
|
|
272
|
+
var _defaultStorage = null;
|
|
273
|
+
var defaultStorage = function () {
|
|
274
|
+
return _defaultStorage || (_defaultStorage = new LocalStorage());
|
|
275
|
+
};
|
|
276
|
+
exports.defaultStorage = defaultStorage;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerPortal
|
|
3
|
+
* The EMIL PartnerPortal API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface ConfigurationParameters {
|
|
13
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
|
+
username?: string;
|
|
15
|
+
password?: string;
|
|
16
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
|
+
basePath?: string;
|
|
18
|
+
baseOptions?: any;
|
|
19
|
+
formDataCtor?: new () => any;
|
|
20
|
+
}
|
|
21
|
+
export declare class Configuration {
|
|
22
|
+
/**
|
|
23
|
+
* parameter for apiKey security
|
|
24
|
+
* @param name security name
|
|
25
|
+
* @memberof Configuration
|
|
26
|
+
*/
|
|
27
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
28
|
+
/**
|
|
29
|
+
* parameter for basic security
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof Configuration
|
|
33
|
+
*/
|
|
34
|
+
username?: string;
|
|
35
|
+
/**
|
|
36
|
+
* parameter for basic security
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Configuration
|
|
40
|
+
*/
|
|
41
|
+
password?: string;
|
|
42
|
+
/**
|
|
43
|
+
* parameter for oauth2 security
|
|
44
|
+
* @param name security name
|
|
45
|
+
* @param scopes oauth2 scope
|
|
46
|
+
* @memberof Configuration
|
|
47
|
+
*/
|
|
48
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
49
|
+
/**
|
|
50
|
+
* override base path
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof Configuration
|
|
54
|
+
*/
|
|
55
|
+
basePath?: string;
|
|
56
|
+
/**
|
|
57
|
+
* base options for axios calls
|
|
58
|
+
*
|
|
59
|
+
* @type {any}
|
|
60
|
+
* @memberof Configuration
|
|
61
|
+
*/
|
|
62
|
+
baseOptions?: any;
|
|
63
|
+
/**
|
|
64
|
+
* The FormData constructor that will be used to create multipart form data
|
|
65
|
+
* requests. You can inject this here so that execution environments that
|
|
66
|
+
* do not support the FormData class can still run the generated client.
|
|
67
|
+
*
|
|
68
|
+
* @type {new () => FormData}
|
|
69
|
+
*/
|
|
70
|
+
formDataCtor?: new () => any;
|
|
71
|
+
constructor(param?: ConfigurationParameters);
|
|
72
|
+
/**
|
|
73
|
+
* Check if the given MIME is a JSON MIME.
|
|
74
|
+
* JSON MIME examples:
|
|
75
|
+
* application/json
|
|
76
|
+
* application/json; charset=UTF8
|
|
77
|
+
* APPLICATION/JSON
|
|
78
|
+
* application/vnd.company+json
|
|
79
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
80
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
81
|
+
*/
|
|
82
|
+
isJsonMime(mime: string): boolean;
|
|
83
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL PartnerPortal
|
|
6
|
+
* The EMIL PartnerPortal 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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.Configuration = void 0;
|
|
17
|
+
var Configuration = /** @class */ (function () {
|
|
18
|
+
function Configuration(param) {
|
|
19
|
+
if (param === void 0) { param = {}; }
|
|
20
|
+
this.apiKey = param.apiKey;
|
|
21
|
+
this.username = param.username;
|
|
22
|
+
this.password = param.password;
|
|
23
|
+
this.accessToken = param.accessToken;
|
|
24
|
+
this.basePath = param.basePath;
|
|
25
|
+
this.baseOptions = param.baseOptions;
|
|
26
|
+
this.formDataCtor = param.formDataCtor;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if the given MIME is a JSON MIME.
|
|
30
|
+
* JSON MIME examples:
|
|
31
|
+
* application/json
|
|
32
|
+
* application/json; charset=UTF8
|
|
33
|
+
* APPLICATION/JSON
|
|
34
|
+
* application/vnd.company+json
|
|
35
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
36
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
37
|
+
*/
|
|
38
|
+
Configuration.prototype.isJsonMime = function (mime) {
|
|
39
|
+
var jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
40
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
41
|
+
};
|
|
42
|
+
return Configuration;
|
|
43
|
+
}());
|
|
44
|
+
exports.Configuration = Configuration;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerPortal
|
|
3
|
+
* The EMIL PartnerPortal API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export { Environment, BaseAPI } from "./base";
|
|
13
|
+
export * from "./api";
|
|
14
|
+
export * from "./configuration";
|
|
15
|
+
export * from "./models";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL PartnerPortal
|
|
6
|
+
* The EMIL PartnerPortal 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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
27
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.BaseAPI = exports.Environment = void 0;
|
|
31
|
+
var base_1 = require("./base");
|
|
32
|
+
Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return base_1.Environment; } });
|
|
33
|
+
Object.defineProperty(exports, "BaseAPI", { enumerable: true, get: function () { return base_1.BaseAPI; } });
|
|
34
|
+
__exportStar(require("./api"), exports);
|
|
35
|
+
__exportStar(require("./configuration"), exports);
|
|
36
|
+
__exportStar(require("./models"), exports);
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerPortal
|
|
3
|
+
* The EMIL PartnerPortal API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AccountPolicyClass } from './account-policy-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AccountClass
|
|
17
|
+
*/
|
|
18
|
+
export interface AccountClass {
|
|
19
|
+
/**
|
|
20
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof AccountClass
|
|
23
|
+
*/
|
|
24
|
+
'id': number;
|
|
25
|
+
/**
|
|
26
|
+
* Unique identifier for the object.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AccountClass
|
|
29
|
+
*/
|
|
30
|
+
'code': string;
|
|
31
|
+
/**
|
|
32
|
+
* Optional field in order to use a specific account number.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AccountClass
|
|
35
|
+
*/
|
|
36
|
+
'accountNumber': string;
|
|
37
|
+
/**
|
|
38
|
+
* The account\'s title.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AccountClass
|
|
41
|
+
*/
|
|
42
|
+
'title'?: AccountClassTitleEnum;
|
|
43
|
+
/**
|
|
44
|
+
* The account\'s first name.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AccountClass
|
|
47
|
+
*/
|
|
48
|
+
'firstName': string;
|
|
49
|
+
/**
|
|
50
|
+
* The account\'s last name.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AccountClass
|
|
53
|
+
*/
|
|
54
|
+
'lastName': string;
|
|
55
|
+
/**
|
|
56
|
+
* The account\'s email address, It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof AccountClass
|
|
59
|
+
*/
|
|
60
|
+
'email': string;
|
|
61
|
+
/**
|
|
62
|
+
* The account\'s gender.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof AccountClass
|
|
65
|
+
*/
|
|
66
|
+
'gender': string;
|
|
67
|
+
/**
|
|
68
|
+
* The account\'s street name.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof AccountClass
|
|
71
|
+
*/
|
|
72
|
+
'street': string;
|
|
73
|
+
/**
|
|
74
|
+
* The account\'s house number.
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof AccountClass
|
|
77
|
+
*/
|
|
78
|
+
'houseNumber': string;
|
|
79
|
+
/**
|
|
80
|
+
* The account\'s ZIP or postal code
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof AccountClass
|
|
83
|
+
*/
|
|
84
|
+
'zipCode': string;
|
|
85
|
+
/**
|
|
86
|
+
* The account\'s city, district, suburb, town, or village.
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof AccountClass
|
|
89
|
+
*/
|
|
90
|
+
'city': string;
|
|
91
|
+
/**
|
|
92
|
+
* The account\'s date of birth. required for account type person
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof AccountClass
|
|
95
|
+
*/
|
|
96
|
+
'birthDate'?: string;
|
|
97
|
+
/**
|
|
98
|
+
* The account\'s phone number.
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof AccountClass
|
|
101
|
+
*/
|
|
102
|
+
'phone'?: string;
|
|
103
|
+
/**
|
|
104
|
+
* The type of account, default to person
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof AccountClass
|
|
107
|
+
*/
|
|
108
|
+
'type': string;
|
|
109
|
+
/**
|
|
110
|
+
* The company name of account, required for account type org
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof AccountClass
|
|
113
|
+
*/
|
|
114
|
+
'companyName'?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The account\'s version.
|
|
117
|
+
* @type {number}
|
|
118
|
+
* @memberof AccountClass
|
|
119
|
+
*/
|
|
120
|
+
'version': number;
|
|
121
|
+
/**
|
|
122
|
+
* Time at which the object was created.
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof AccountClass
|
|
125
|
+
*/
|
|
126
|
+
'createdAt': string;
|
|
127
|
+
/**
|
|
128
|
+
* Time at which the object was updated.
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof AccountClass
|
|
131
|
+
*/
|
|
132
|
+
'updatedAt': string;
|
|
133
|
+
/**
|
|
134
|
+
* Policies linked to the account.
|
|
135
|
+
* @type {Array<AccountPolicyClass>}
|
|
136
|
+
* @memberof AccountClass
|
|
137
|
+
*/
|
|
138
|
+
'policies': Array<AccountPolicyClass>;
|
|
139
|
+
/**
|
|
140
|
+
* Optional field contain extra information.
|
|
141
|
+
* @type {object}
|
|
142
|
+
* @memberof AccountClass
|
|
143
|
+
*/
|
|
144
|
+
'metadata'?: object;
|
|
145
|
+
/**
|
|
146
|
+
* Optional field contain custom fields.
|
|
147
|
+
* @type {object}
|
|
148
|
+
* @memberof AccountClass
|
|
149
|
+
*/
|
|
150
|
+
'customFields'?: object;
|
|
151
|
+
/**
|
|
152
|
+
* Emil Resources Names (ERN) identifies the most specific owner of a resource.
|
|
153
|
+
* @type {string}
|
|
154
|
+
* @memberof AccountClass
|
|
155
|
+
*/
|
|
156
|
+
'ern': string;
|
|
157
|
+
/**
|
|
158
|
+
* Identifier of the user who created the record.
|
|
159
|
+
* @type {string}
|
|
160
|
+
* @memberof AccountClass
|
|
161
|
+
*/
|
|
162
|
+
'createdBy': string;
|
|
163
|
+
/**
|
|
164
|
+
* Identifier of the user who last updated the record.
|
|
165
|
+
* @type {string}
|
|
166
|
+
* @memberof AccountClass
|
|
167
|
+
*/
|
|
168
|
+
'updatedBy': string;
|
|
169
|
+
}
|
|
170
|
+
export declare const AccountClassTitleEnum: {
|
|
171
|
+
readonly Empty: "";
|
|
172
|
+
readonly Dr: "Dr.";
|
|
173
|
+
readonly DrMed: "Dr. med.";
|
|
174
|
+
readonly Prof: "Prof.";
|
|
175
|
+
};
|
|
176
|
+
export type AccountClassTitleEnum = typeof AccountClassTitleEnum[keyof typeof AccountClassTitleEnum];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL PartnerPortal
|
|
6
|
+
* The EMIL PartnerPortal 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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AccountClassTitleEnum = void 0;
|
|
17
|
+
exports.AccountClassTitleEnum = {
|
|
18
|
+
Empty: '',
|
|
19
|
+
Dr: 'Dr.',
|
|
20
|
+
DrMed: 'Dr. med.',
|
|
21
|
+
Prof: 'Prof.'
|
|
22
|
+
};
|