@emilgroup/document-sdk-node 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api.ts +0 -5
- package/base.ts +271 -242
- package/common.ts +61 -0
- package/dist/api/document-templates-api.js +1 -1
- package/dist/api/documents-api.js +1 -1
- package/dist/api/layouts-api.js +1 -1
- package/dist/api/searchable-document-owners-api.js +1 -1
- package/dist/api/searchable-documents-api.js +1 -1
- package/dist/api.d.ts +0 -4
- package/dist/api.js +0 -6
- package/dist/base.d.ts +6 -5
- package/dist/base.js +45 -16
- package/dist/common.d.ts +26 -0
- package/dist/common.js +35 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/models/create-document-request-dto.d.ts +4 -4
- package/dist/models/document-class.d.ts +3 -3
- package/dist/models/html-template-class.d.ts +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/dist/models/create-presigned-post-request-dto.d.ts +0 -103
- package/dist/models/create-presigned-post-request-dto.js +0 -51
- package/dist/models/create-presigned-post-response-class.d.ts +0 -30
- package/dist/models/create-presigned-post-response-class.js +0 -15
- package/models/create-presigned-post-request-dto.ts +0 -113
- package/models/create-presigned-post-response-class.ts +0 -36
|
@@ -53,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (_) try {
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
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
58
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
59
|
switch (op[0]) {
|
|
@@ -53,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (_) try {
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
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
58
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
59
|
switch (op[0]) {
|
package/dist/api.d.ts
CHANGED
|
@@ -14,7 +14,3 @@ export * from './api/documents-api';
|
|
|
14
14
|
export * from './api/layouts-api';
|
|
15
15
|
export * from './api/searchable-document-owners-api';
|
|
16
16
|
export * from './api/searchable-documents-api';
|
|
17
|
-
export declare enum Environment {
|
|
18
|
-
Production = "https://apiv2.emil.de",
|
|
19
|
-
Test = "https://apiv2-test.emil.de"
|
|
20
|
-
}
|
package/dist/api.js
CHANGED
|
@@ -27,14 +27,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.Environment = void 0;
|
|
31
30
|
__exportStar(require("./api/document-templates-api"), exports);
|
|
32
31
|
__exportStar(require("./api/documents-api"), exports);
|
|
33
32
|
__exportStar(require("./api/layouts-api"), exports);
|
|
34
33
|
__exportStar(require("./api/searchable-document-owners-api"), exports);
|
|
35
34
|
__exportStar(require("./api/searchable-documents-api"), exports);
|
|
36
|
-
var Environment;
|
|
37
|
-
(function (Environment) {
|
|
38
|
-
Environment["Production"] = "https://apiv2.emil.de";
|
|
39
|
-
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
40
|
-
})(Environment = exports.Environment || (exports.Environment = {}));
|
package/dist/base.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* EMIL
|
|
3
|
-
* The EMIL
|
|
2
|
+
* EMIL DocumentService
|
|
3
|
+
* The EMIL DocumentService API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
6
|
*
|
|
@@ -25,12 +25,13 @@ export declare const COLLECTION_FORMATS: {
|
|
|
25
25
|
export interface LoginClass {
|
|
26
26
|
accessToken: string;
|
|
27
27
|
permissions: Array<string>;
|
|
28
|
-
newPasswordRequired: boolean;
|
|
29
28
|
}
|
|
30
29
|
export declare enum Environment {
|
|
31
30
|
Production = "https://apiv2.emil.de",
|
|
32
|
-
Test = "https://apiv2-test.emil.de"
|
|
31
|
+
Test = "https://apiv2-test.emil.de",
|
|
32
|
+
Development = "https://apiv2-dev.emil.de"
|
|
33
33
|
}
|
|
34
|
+
export declare function resetRetry(): void;
|
|
34
35
|
/**
|
|
35
36
|
*
|
|
36
37
|
* @export
|
|
@@ -58,7 +59,7 @@ export declare class BaseAPI {
|
|
|
58
59
|
private readEnvVariables;
|
|
59
60
|
selectEnvironment(env: Environment): void;
|
|
60
61
|
authorize(username: string, password: string): Promise<void>;
|
|
61
|
-
|
|
62
|
+
refreshTokenInternal(): Promise<string>;
|
|
62
63
|
private extractRefreshToken;
|
|
63
64
|
getConfiguration(): Configuration;
|
|
64
65
|
private attachInterceptor;
|
package/dist/base.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* EMIL
|
|
6
|
-
* The EMIL
|
|
5
|
+
* EMIL DocumentService
|
|
6
|
+
* The EMIL DocumentService API description
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
9
|
*
|
|
@@ -76,7 +76,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
76
76
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
77
77
|
function step(op) {
|
|
78
78
|
if (f) throw new TypeError("Generator is already executing.");
|
|
79
|
-
while (_) try {
|
|
79
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
80
80
|
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;
|
|
81
81
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
82
82
|
switch (op[0]) {
|
|
@@ -101,7 +101,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
101
101
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
102
102
|
};
|
|
103
103
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
104
|
-
exports.RequiredError = exports.BaseAPI = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
104
|
+
exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
105
105
|
var configuration_1 = require("./configuration");
|
|
106
106
|
// Some imports not used depending on template conditions
|
|
107
107
|
// @ts-ignore
|
|
@@ -109,7 +109,7 @@ var axios_1 = __importDefault(require("axios"));
|
|
|
109
109
|
var fs = __importStar(require("fs"));
|
|
110
110
|
var path = __importStar(require("path"));
|
|
111
111
|
var os = __importStar(require("os"));
|
|
112
|
-
exports.BASE_PATH = "
|
|
112
|
+
exports.BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
|
|
113
113
|
var CONFIG_DIRECTORY = '.emil';
|
|
114
114
|
var CONFIG_FILENAME = 'credentials';
|
|
115
115
|
var KEY_USERNAME = 'emil_username';
|
|
@@ -129,7 +129,15 @@ var Environment;
|
|
|
129
129
|
(function (Environment) {
|
|
130
130
|
Environment["Production"] = "https://apiv2.emil.de";
|
|
131
131
|
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
132
|
+
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
132
133
|
})(Environment = exports.Environment || (exports.Environment = {}));
|
|
134
|
+
var _retry_count = 0;
|
|
135
|
+
var _retry = null;
|
|
136
|
+
function resetRetry() {
|
|
137
|
+
_retry_count = 0;
|
|
138
|
+
}
|
|
139
|
+
exports.resetRetry = resetRetry;
|
|
140
|
+
var NETWORK_ERROR_MESSAGE = "Network Error";
|
|
133
141
|
/**
|
|
134
142
|
*
|
|
135
143
|
* @export
|
|
@@ -191,7 +199,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
191
199
|
case 3:
|
|
192
200
|
this.readEnvVariables();
|
|
193
201
|
if (!this.username) {
|
|
194
|
-
console.info("No credentials found in credentials file or environment variables. Either provide some or use \n
|
|
202
|
+
console.info("No credentials found in credentials file or environment variables. Either provide some or use \n authorize() function.");
|
|
195
203
|
}
|
|
196
204
|
return [2 /*return*/];
|
|
197
205
|
}
|
|
@@ -253,16 +261,16 @@ var BaseAPI = /** @class */ (function () {
|
|
|
253
261
|
case 1:
|
|
254
262
|
response = _a.sent();
|
|
255
263
|
accessToken = response.data.accessToken;
|
|
256
|
-
refreshToken = this.extractRefreshToken(response);
|
|
257
264
|
this.configuration.username = username;
|
|
258
265
|
this.configuration.accessToken = "Bearer ".concat(accessToken);
|
|
266
|
+
refreshToken = this.extractRefreshToken(response);
|
|
259
267
|
this.configuration.refreshToken = refreshToken;
|
|
260
268
|
return [2 /*return*/];
|
|
261
269
|
}
|
|
262
270
|
});
|
|
263
271
|
});
|
|
264
272
|
};
|
|
265
|
-
BaseAPI.prototype.
|
|
273
|
+
BaseAPI.prototype.refreshTokenInternal = function () {
|
|
266
274
|
return __awaiter(this, void 0, void 0, function () {
|
|
267
275
|
var _a, username, refreshToken, options, accessToken;
|
|
268
276
|
return __generator(this, function (_b) {
|
|
@@ -305,7 +313,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
305
313
|
axios.interceptors.response.use(function (res) {
|
|
306
314
|
return res;
|
|
307
315
|
}, function (err) { return __awaiter(_this, void 0, void 0, function () {
|
|
308
|
-
var originalConfig, tokenString, accessToken,
|
|
316
|
+
var originalConfig, tokenString, accessToken, _error_1, tokenString, accessToken, _error_2;
|
|
309
317
|
return __generator(this, function (_a) {
|
|
310
318
|
switch (_a.label) {
|
|
311
319
|
case 0:
|
|
@@ -316,15 +324,13 @@ var BaseAPI = /** @class */ (function () {
|
|
|
316
324
|
_a.label = 1;
|
|
317
325
|
case 1:
|
|
318
326
|
_a.trys.push([1, 3, , 4]);
|
|
319
|
-
return [4 /*yield*/, this.
|
|
327
|
+
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
320
328
|
case 2:
|
|
321
329
|
tokenString = _a.sent();
|
|
322
330
|
accessToken = "Bearer ".concat(tokenString);
|
|
323
|
-
|
|
324
|
-
localVarHeaderParameter['Authorization'] = accessToken;
|
|
325
|
-
originalConfig.headers = __assign(__assign({}, originalConfig.headers), localVarHeaderParameter);
|
|
331
|
+
originalConfig.headers['Authorization'] = "Bearer ".concat(accessToken);
|
|
326
332
|
this.configuration.accessToken = accessToken;
|
|
327
|
-
return [2 /*return*/, axios(originalConfig)];
|
|
333
|
+
return [2 /*return*/, axios.request(originalConfig)];
|
|
328
334
|
case 3:
|
|
329
335
|
_error_1 = _a.sent();
|
|
330
336
|
if (_error_1.response && _error_1.response.data) {
|
|
@@ -335,8 +341,31 @@ var BaseAPI = /** @class */ (function () {
|
|
|
335
341
|
if (err.response.status === 403 && err.response.data) {
|
|
336
342
|
return [2 /*return*/, Promise.reject(err.response.data)];
|
|
337
343
|
}
|
|
338
|
-
|
|
339
|
-
case 5:
|
|
344
|
+
return [3 /*break*/, 9];
|
|
345
|
+
case 5:
|
|
346
|
+
if (!(err.message === NETWORK_ERROR_MESSAGE
|
|
347
|
+
&& err.isAxiosError
|
|
348
|
+
&& originalConfig.headers.hasOwnProperty('Authorization')
|
|
349
|
+
&& _retry_count < 4)) return [3 /*break*/, 9];
|
|
350
|
+
_retry_count++;
|
|
351
|
+
_a.label = 6;
|
|
352
|
+
case 6:
|
|
353
|
+
_a.trys.push([6, 8, , 9]);
|
|
354
|
+
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
355
|
+
case 7:
|
|
356
|
+
tokenString = _a.sent();
|
|
357
|
+
accessToken = "Bearer ".concat(tokenString);
|
|
358
|
+
_retry = true;
|
|
359
|
+
originalConfig.headers['Authorization'] = accessToken;
|
|
360
|
+
this.configuration.accessToken = accessToken;
|
|
361
|
+
return [2 /*return*/, axios.request(__assign({}, originalConfig))];
|
|
362
|
+
case 8:
|
|
363
|
+
_error_2 = _a.sent();
|
|
364
|
+
if (_error_2.response && _error_2.response.data) {
|
|
365
|
+
return [2 /*return*/, Promise.reject(_error_2.response.data)];
|
|
366
|
+
}
|
|
367
|
+
return [2 /*return*/, Promise.reject(_error_2)];
|
|
368
|
+
case 9: return [2 /*return*/, Promise.reject(err)];
|
|
340
369
|
}
|
|
341
370
|
});
|
|
342
371
|
}); });
|
package/dist/common.d.ts
CHANGED
|
@@ -64,3 +64,29 @@ export declare const toPathString: (url: URL) => string;
|
|
|
64
64
|
* @export
|
|
65
65
|
*/
|
|
66
66
|
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
67
|
+
/**
|
|
68
|
+
* EMIL DocumentService
|
|
69
|
+
* The EMIL DocumentService API description
|
|
70
|
+
*
|
|
71
|
+
* The version of the OpenAPI document: 1.0
|
|
72
|
+
*
|
|
73
|
+
*
|
|
74
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
75
|
+
* https://openapi-generator.tech
|
|
76
|
+
* Do not edit the class manually.
|
|
77
|
+
*/
|
|
78
|
+
export interface IStorageConverter<D, SD> {
|
|
79
|
+
toStorageData(data: D): SD;
|
|
80
|
+
fromStorageData(storageData: SD): D;
|
|
81
|
+
}
|
|
82
|
+
export interface IStorage {
|
|
83
|
+
get<T>(key: string, converter?: IStorageConverter<T, any>): T | null;
|
|
84
|
+
set<T>(key: string, value: T, converter?: IStorageConverter<T, any>): void;
|
|
85
|
+
}
|
|
86
|
+
export declare class LocalStorage implements IStorage {
|
|
87
|
+
readonly storage: Storage;
|
|
88
|
+
constructor();
|
|
89
|
+
get<T>(key: string, converter?: IStorageConverter<T, any>): T | null;
|
|
90
|
+
set<T>(key: string, value: T, converter?: IStorageConverter<T, any>): void;
|
|
91
|
+
}
|
|
92
|
+
export declare const defaultStorage: () => IStorage;
|
package/dist/common.js
CHANGED
|
@@ -38,7 +38,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
38
38
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
39
39
|
function step(op) {
|
|
40
40
|
if (f) throw new TypeError("Generator is already executing.");
|
|
41
|
-
while (_) try {
|
|
41
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
42
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
43
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
44
44
|
switch (op[0]) {
|
|
@@ -60,7 +60,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63
|
-
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
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
64
|
var base_1 = require("./base");
|
|
65
65
|
var url_1 = require("url");
|
|
66
66
|
/**
|
|
@@ -242,3 +242,36 @@ var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configu
|
|
|
242
242
|
};
|
|
243
243
|
};
|
|
244
244
|
exports.createRequestFunction = createRequestFunction;
|
|
245
|
+
var LocalStorage = /** @class */ (function () {
|
|
246
|
+
function LocalStorage() {
|
|
247
|
+
this.storage = localStorage;
|
|
248
|
+
}
|
|
249
|
+
LocalStorage.prototype.get = function (key, converter) {
|
|
250
|
+
var jsonValue = this.storage.getItem(key);
|
|
251
|
+
if (jsonValue === null) {
|
|
252
|
+
return null;
|
|
253
|
+
}
|
|
254
|
+
var value = JSON.parse(jsonValue);
|
|
255
|
+
if (converter !== undefined) {
|
|
256
|
+
return converter.fromStorageData(value);
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
return value;
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
LocalStorage.prototype.set = function (key, value, converter) {
|
|
263
|
+
var valueToStore = value;
|
|
264
|
+
if (converter !== undefined) {
|
|
265
|
+
valueToStore = converter.toStorageData(value);
|
|
266
|
+
}
|
|
267
|
+
var jsonValue = JSON.stringify(valueToStore);
|
|
268
|
+
this.storage.setItem(key, jsonValue);
|
|
269
|
+
};
|
|
270
|
+
return LocalStorage;
|
|
271
|
+
}());
|
|
272
|
+
exports.LocalStorage = LocalStorage;
|
|
273
|
+
var _defaultStorage = null;
|
|
274
|
+
var defaultStorage = function () {
|
|
275
|
+
return _defaultStorage || (_defaultStorage = new LocalStorage());
|
|
276
|
+
};
|
|
277
|
+
exports.defaultStorage = defaultStorage;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -27,8 +27,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.BaseAPI = void 0;
|
|
30
|
+
exports.BaseAPI = exports.Environment = void 0;
|
|
31
31
|
var base_1 = require("./base");
|
|
32
|
+
Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return base_1.Environment; } });
|
|
32
33
|
Object.defineProperty(exports, "BaseAPI", { enumerable: true, get: function () { return base_1.BaseAPI; } });
|
|
33
34
|
__exportStar(require("./api"), exports);
|
|
34
35
|
__exportStar(require("./configuration"), exports);
|
|
@@ -98,12 +98,12 @@ export declare const CreateDocumentRequestDtoEntityTypeEnum: {
|
|
|
98
98
|
readonly SepaMandate: "sepa_mandate";
|
|
99
99
|
readonly Static: "static";
|
|
100
100
|
};
|
|
101
|
-
export
|
|
101
|
+
export type CreateDocumentRequestDtoEntityTypeEnum = typeof CreateDocumentRequestDtoEntityTypeEnum[keyof typeof CreateDocumentRequestDtoEntityTypeEnum];
|
|
102
102
|
export declare const CreateDocumentRequestDtoStrategyEnum: {
|
|
103
103
|
readonly Sync: "Sync";
|
|
104
104
|
readonly Async: "Async";
|
|
105
105
|
};
|
|
106
|
-
export
|
|
106
|
+
export type CreateDocumentRequestDtoStrategyEnum = typeof CreateDocumentRequestDtoStrategyEnum[keyof typeof CreateDocumentRequestDtoStrategyEnum];
|
|
107
107
|
export declare const CreateDocumentRequestDtoRequesterEnum: {
|
|
108
108
|
readonly Accountservice: "accountservice";
|
|
109
109
|
readonly Insuranceservice: "insuranceservice";
|
|
@@ -119,7 +119,7 @@ export declare const CreateDocumentRequestDtoRequesterEnum: {
|
|
|
119
119
|
readonly Processmanager: "processmanager";
|
|
120
120
|
readonly Gdvservice: "gdvservice";
|
|
121
121
|
};
|
|
122
|
-
export
|
|
122
|
+
export type CreateDocumentRequestDtoRequesterEnum = typeof CreateDocumentRequestDtoRequesterEnum[keyof typeof CreateDocumentRequestDtoRequesterEnum];
|
|
123
123
|
export declare const CreateDocumentRequestDtoContentTypeEnum: {
|
|
124
124
|
readonly Pdf: "pdf";
|
|
125
125
|
readonly Jpg: "jpg";
|
|
@@ -140,4 +140,4 @@ export declare const CreateDocumentRequestDtoContentTypeEnum: {
|
|
|
140
140
|
readonly Wmv: "WMV";
|
|
141
141
|
readonly Avi: "AVI";
|
|
142
142
|
};
|
|
143
|
-
export
|
|
143
|
+
export type CreateDocumentRequestDtoContentTypeEnum = typeof CreateDocumentRequestDtoContentTypeEnum[keyof typeof CreateDocumentRequestDtoContentTypeEnum];
|
|
@@ -110,7 +110,7 @@ export declare const DocumentClassEntityTypeEnum: {
|
|
|
110
110
|
readonly SepaMandate: "sepa_mandate";
|
|
111
111
|
readonly Static: "static";
|
|
112
112
|
};
|
|
113
|
-
export
|
|
113
|
+
export type DocumentClassEntityTypeEnum = typeof DocumentClassEntityTypeEnum[keyof typeof DocumentClassEntityTypeEnum];
|
|
114
114
|
export declare const DocumentClassRequesterEnum: {
|
|
115
115
|
readonly Accountservice: "accountservice";
|
|
116
116
|
readonly Insuranceservice: "insuranceservice";
|
|
@@ -126,7 +126,7 @@ export declare const DocumentClassRequesterEnum: {
|
|
|
126
126
|
readonly Processmanager: "processmanager";
|
|
127
127
|
readonly Gdvservice: "gdvservice";
|
|
128
128
|
};
|
|
129
|
-
export
|
|
129
|
+
export type DocumentClassRequesterEnum = typeof DocumentClassRequesterEnum[keyof typeof DocumentClassRequesterEnum];
|
|
130
130
|
export declare const DocumentClassContentTypeEnum: {
|
|
131
131
|
readonly Pdf: "pdf";
|
|
132
132
|
readonly Jpg: "jpg";
|
|
@@ -147,4 +147,4 @@ export declare const DocumentClassContentTypeEnum: {
|
|
|
147
147
|
readonly Wmv: "WMV";
|
|
148
148
|
readonly Avi: "AVI";
|
|
149
149
|
};
|
|
150
|
-
export
|
|
150
|
+
export type DocumentClassContentTypeEnum = typeof DocumentClassContentTypeEnum[keyof typeof DocumentClassContentTypeEnum];
|
|
@@ -63,4 +63,4 @@ export declare const HtmlTemplateClassTypeEnum: {
|
|
|
63
63
|
readonly Footer: "footer";
|
|
64
64
|
readonly Body: "body";
|
|
65
65
|
};
|
|
66
|
-
export
|
|
66
|
+
export type HtmlTemplateClassTypeEnum = typeof HtmlTemplateClassTypeEnum[keyof typeof HtmlTemplateClassTypeEnum];
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL DocumentService
|
|
3
|
-
* The EMIL DocumentService API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface CreatePresignedPostRequestDto
|
|
16
|
-
*/
|
|
17
|
-
export interface CreatePresignedPostRequestDto {
|
|
18
|
-
/**
|
|
19
|
-
* Document template slug
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CreatePresignedPostRequestDto
|
|
22
|
-
*/
|
|
23
|
-
'templateSlug': string;
|
|
24
|
-
/**
|
|
25
|
-
* Document entity type
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CreatePresignedPostRequestDto
|
|
28
|
-
*/
|
|
29
|
-
'entityType': string;
|
|
30
|
-
/**
|
|
31
|
-
* Document description
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof CreatePresignedPostRequestDto
|
|
34
|
-
*/
|
|
35
|
-
'description': string;
|
|
36
|
-
/**
|
|
37
|
-
* Unique identifier for policy
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof CreatePresignedPostRequestDto
|
|
40
|
-
*/
|
|
41
|
-
'policyCode'?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Unique identifier for account
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof CreatePresignedPostRequestDto
|
|
46
|
-
*/
|
|
47
|
-
'accountCode'?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Document requester
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof CreatePresignedPostRequestDto
|
|
52
|
-
*/
|
|
53
|
-
'requester': CreatePresignedPostRequestDtoRequesterEnum;
|
|
54
|
-
/**
|
|
55
|
-
* Document content type
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof CreatePresignedPostRequestDto
|
|
58
|
-
*/
|
|
59
|
-
'contentType': CreatePresignedPostRequestDtoContentTypeEnum;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof CreatePresignedPostRequestDto
|
|
64
|
-
*/
|
|
65
|
-
'filename': string;
|
|
66
|
-
}
|
|
67
|
-
export declare const CreatePresignedPostRequestDtoRequesterEnum: {
|
|
68
|
-
readonly Accountservice: "accountservice";
|
|
69
|
-
readonly Insuranceservice: "insuranceservice";
|
|
70
|
-
readonly Billingservice: "billingservice";
|
|
71
|
-
readonly Tenantservice: "tenantservice";
|
|
72
|
-
readonly BookingFunnel: "bookingFunnel";
|
|
73
|
-
readonly Publicapi: "publicapi";
|
|
74
|
-
readonly Admin: "admin";
|
|
75
|
-
readonly Claimservice: "claimservice";
|
|
76
|
-
readonly Customerservice: "customerservice";
|
|
77
|
-
readonly Notificationservice: "notificationservice";
|
|
78
|
-
readonly Paymentservice: "paymentservice";
|
|
79
|
-
readonly Processmanager: "processmanager";
|
|
80
|
-
readonly Gdvservice: "gdvservice";
|
|
81
|
-
};
|
|
82
|
-
export declare type CreatePresignedPostRequestDtoRequesterEnum = typeof CreatePresignedPostRequestDtoRequesterEnum[keyof typeof CreatePresignedPostRequestDtoRequesterEnum];
|
|
83
|
-
export declare const CreatePresignedPostRequestDtoContentTypeEnum: {
|
|
84
|
-
readonly Pdf: "pdf";
|
|
85
|
-
readonly Jpg: "jpg";
|
|
86
|
-
readonly Png: "png";
|
|
87
|
-
readonly Gz: "gz";
|
|
88
|
-
readonly Csv: "csv";
|
|
89
|
-
readonly Doc: "doc";
|
|
90
|
-
readonly Docx: "docx";
|
|
91
|
-
readonly Html: "html";
|
|
92
|
-
readonly Json: "json";
|
|
93
|
-
readonly Xml: "xml";
|
|
94
|
-
readonly Txt: "txt";
|
|
95
|
-
readonly Zip: "zip";
|
|
96
|
-
readonly Tar: "tar";
|
|
97
|
-
readonly Rar: "rar";
|
|
98
|
-
readonly Mp4: "MP4";
|
|
99
|
-
readonly Mov: "MOV";
|
|
100
|
-
readonly Wmv: "WMV";
|
|
101
|
-
readonly Avi: "AVI";
|
|
102
|
-
};
|
|
103
|
-
export declare type CreatePresignedPostRequestDtoContentTypeEnum = typeof CreatePresignedPostRequestDtoContentTypeEnum[keyof typeof CreatePresignedPostRequestDtoContentTypeEnum];
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* EMIL DocumentService
|
|
6
|
-
* The EMIL DocumentService API description
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
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.CreatePresignedPostRequestDtoContentTypeEnum = exports.CreatePresignedPostRequestDtoRequesterEnum = void 0;
|
|
17
|
-
exports.CreatePresignedPostRequestDtoRequesterEnum = {
|
|
18
|
-
Accountservice: 'accountservice',
|
|
19
|
-
Insuranceservice: 'insuranceservice',
|
|
20
|
-
Billingservice: 'billingservice',
|
|
21
|
-
Tenantservice: 'tenantservice',
|
|
22
|
-
BookingFunnel: 'bookingFunnel',
|
|
23
|
-
Publicapi: 'publicapi',
|
|
24
|
-
Admin: 'admin',
|
|
25
|
-
Claimservice: 'claimservice',
|
|
26
|
-
Customerservice: 'customerservice',
|
|
27
|
-
Notificationservice: 'notificationservice',
|
|
28
|
-
Paymentservice: 'paymentservice',
|
|
29
|
-
Processmanager: 'processmanager',
|
|
30
|
-
Gdvservice: 'gdvservice'
|
|
31
|
-
};
|
|
32
|
-
exports.CreatePresignedPostRequestDtoContentTypeEnum = {
|
|
33
|
-
Pdf: 'pdf',
|
|
34
|
-
Jpg: 'jpg',
|
|
35
|
-
Png: 'png',
|
|
36
|
-
Gz: 'gz',
|
|
37
|
-
Csv: 'csv',
|
|
38
|
-
Doc: 'doc',
|
|
39
|
-
Docx: 'docx',
|
|
40
|
-
Html: 'html',
|
|
41
|
-
Json: 'json',
|
|
42
|
-
Xml: 'xml',
|
|
43
|
-
Txt: 'txt',
|
|
44
|
-
Zip: 'zip',
|
|
45
|
-
Tar: 'tar',
|
|
46
|
-
Rar: 'rar',
|
|
47
|
-
Mp4: 'MP4',
|
|
48
|
-
Mov: 'MOV',
|
|
49
|
-
Wmv: 'WMV',
|
|
50
|
-
Avi: 'AVI'
|
|
51
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL DocumentService
|
|
3
|
-
* The EMIL DocumentService API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface CreatePresignedPostResponseClass
|
|
16
|
-
*/
|
|
17
|
-
export interface CreatePresignedPostResponseClass {
|
|
18
|
-
/**
|
|
19
|
-
* Upload document fields
|
|
20
|
-
* @type {object}
|
|
21
|
-
* @memberof CreatePresignedPostResponseClass
|
|
22
|
-
*/
|
|
23
|
-
'fields': object;
|
|
24
|
-
/**
|
|
25
|
-
* Pre-signed Url
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CreatePresignedPostResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'url': string;
|
|
30
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* EMIL DocumentService
|
|
6
|
-
* The EMIL DocumentService API description
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
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 });
|