@emilgroup/document-sdk-node 1.11.3-beta.2 → 1.12.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/docx-templates-api.ts +4 -4
- package/api/product-documents-api.ts +12 -210
- package/dist/api/docx-templates-api.d.ts +4 -4
- package/dist/api/product-documents-api.d.ts +8 -126
- package/dist/api/product-documents-api.js +8 -141
- package/dist/models/create-document-request-dto.d.ts +12 -1
- package/dist/models/create-document-request-dto.js +11 -1
- package/dist/models/document-class.d.ts +12 -1
- package/dist/models/document-class.js +11 -1
- package/dist/models/docx-template-class.d.ts +12 -1
- package/dist/models/docx-template-class.js +11 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/product-document-class.d.ts +25 -2
- package/dist/models/product-document-class.js +24 -2
- package/dist/models/upload-docx-template-response-class.d.ts +30 -0
- package/dist/models/upload-docx-template-response-class.js +15 -0
- package/models/create-document-request-dto.ts +13 -1
- package/models/document-class.ts +13 -1
- package/models/docx-template-class.ts +15 -1
- package/models/index.ts +1 -0
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/product-document-class.ts +27 -3
- package/models/upload-docx-template-response-class.ts +36 -0
- package/package.json +2 -2
|
@@ -255,79 +255,6 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
255
255
|
/**
|
|
256
256
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
257
257
|
* @summary List product documents
|
|
258
|
-
* @param {string} productSlug
|
|
259
|
-
* @param {string} [authorization] Bearer Token
|
|
260
|
-
* @param {number} [pageSize] Page size
|
|
261
|
-
* @param {string} [pageToken] Page token
|
|
262
|
-
* @param {string} [filter] List filter
|
|
263
|
-
* @param {string} [search] Search query
|
|
264
|
-
* @param {string} [order] Ordering criteria
|
|
265
|
-
* @param {string} [expand] Extra fields to fetch
|
|
266
|
-
* @param {*} [options] Override http request option.
|
|
267
|
-
* @throws {RequiredError}
|
|
268
|
-
*/
|
|
269
|
-
listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
270
|
-
if (options === void 0) { options = {}; }
|
|
271
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
272
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
273
|
-
return __generator(this, function (_a) {
|
|
274
|
-
switch (_a.label) {
|
|
275
|
-
case 0:
|
|
276
|
-
// verify required parameter 'productSlug' is not null or undefined
|
|
277
|
-
(0, common_1.assertParamExists)('listProductDocuments', 'productSlug', productSlug);
|
|
278
|
-
localVarPath = "/documentservice/v1/documents/product/{productSlug}"
|
|
279
|
-
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
280
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
281
|
-
if (configuration) {
|
|
282
|
-
baseOptions = configuration.baseOptions;
|
|
283
|
-
baseAccessToken = configuration.accessToken;
|
|
284
|
-
}
|
|
285
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
286
|
-
localVarHeaderParameter = {};
|
|
287
|
-
localVarQueryParameter = {};
|
|
288
|
-
// authentication bearer required
|
|
289
|
-
// http bearer authentication required
|
|
290
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
291
|
-
case 1:
|
|
292
|
-
// authentication bearer required
|
|
293
|
-
// http bearer authentication required
|
|
294
|
-
_a.sent();
|
|
295
|
-
if (pageSize !== undefined) {
|
|
296
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
297
|
-
}
|
|
298
|
-
if (pageToken !== undefined) {
|
|
299
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
300
|
-
}
|
|
301
|
-
if (filter !== undefined) {
|
|
302
|
-
localVarQueryParameter['filter'] = filter;
|
|
303
|
-
}
|
|
304
|
-
if (search !== undefined) {
|
|
305
|
-
localVarQueryParameter['search'] = search;
|
|
306
|
-
}
|
|
307
|
-
if (order !== undefined) {
|
|
308
|
-
localVarQueryParameter['order'] = order;
|
|
309
|
-
}
|
|
310
|
-
if (expand !== undefined) {
|
|
311
|
-
localVarQueryParameter['expand'] = expand;
|
|
312
|
-
}
|
|
313
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
314
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
315
|
-
}
|
|
316
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
317
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
318
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
319
|
-
return [2 /*return*/, {
|
|
320
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
321
|
-
options: localVarRequestOptions,
|
|
322
|
-
}];
|
|
323
|
-
}
|
|
324
|
-
});
|
|
325
|
-
});
|
|
326
|
-
},
|
|
327
|
-
/**
|
|
328
|
-
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
329
|
-
* @summary List product documents
|
|
330
|
-
* @param {string} productSlug
|
|
331
258
|
* @param {string} [authorization] Bearer Token
|
|
332
259
|
* @param {number} [pageSize] Page size
|
|
333
260
|
* @param {string} [pageToken] Page token
|
|
@@ -338,17 +265,14 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
338
265
|
* @param {*} [options] Override http request option.
|
|
339
266
|
* @throws {RequiredError}
|
|
340
267
|
*/
|
|
341
|
-
|
|
268
|
+
listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
342
269
|
if (options === void 0) { options = {}; }
|
|
343
270
|
return __awaiter(_this, void 0, void 0, function () {
|
|
344
271
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
345
272
|
return __generator(this, function (_a) {
|
|
346
273
|
switch (_a.label) {
|
|
347
274
|
case 0:
|
|
348
|
-
|
|
349
|
-
(0, common_1.assertParamExists)('listProductDocuments_1', 'productSlug', productSlug);
|
|
350
|
-
localVarPath = "/documentservice/v1/documents/product"
|
|
351
|
-
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
275
|
+
localVarPath = "/documentservice/v1/documents/product";
|
|
352
276
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
353
277
|
if (configuration) {
|
|
354
278
|
baseOptions = configuration.baseOptions;
|
|
@@ -528,34 +452,6 @@ var ProductDocumentsApiFp = function (configuration) {
|
|
|
528
452
|
/**
|
|
529
453
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
530
454
|
* @summary List product documents
|
|
531
|
-
* @param {string} productSlug
|
|
532
|
-
* @param {string} [authorization] Bearer Token
|
|
533
|
-
* @param {number} [pageSize] Page size
|
|
534
|
-
* @param {string} [pageToken] Page token
|
|
535
|
-
* @param {string} [filter] List filter
|
|
536
|
-
* @param {string} [search] Search query
|
|
537
|
-
* @param {string} [order] Ordering criteria
|
|
538
|
-
* @param {string} [expand] Extra fields to fetch
|
|
539
|
-
* @param {*} [options] Override http request option.
|
|
540
|
-
* @throws {RequiredError}
|
|
541
|
-
*/
|
|
542
|
-
listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
543
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
544
|
-
var localVarAxiosArgs;
|
|
545
|
-
return __generator(this, function (_a) {
|
|
546
|
-
switch (_a.label) {
|
|
547
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
548
|
-
case 1:
|
|
549
|
-
localVarAxiosArgs = _a.sent();
|
|
550
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
551
|
-
}
|
|
552
|
-
});
|
|
553
|
-
});
|
|
554
|
-
},
|
|
555
|
-
/**
|
|
556
|
-
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
557
|
-
* @summary List product documents
|
|
558
|
-
* @param {string} productSlug
|
|
559
455
|
* @param {string} [authorization] Bearer Token
|
|
560
456
|
* @param {number} [pageSize] Page size
|
|
561
457
|
* @param {string} [pageToken] Page token
|
|
@@ -566,12 +462,12 @@ var ProductDocumentsApiFp = function (configuration) {
|
|
|
566
462
|
* @param {*} [options] Override http request option.
|
|
567
463
|
* @throws {RequiredError}
|
|
568
464
|
*/
|
|
569
|
-
|
|
465
|
+
listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
570
466
|
return __awaiter(this, void 0, void 0, function () {
|
|
571
467
|
var localVarAxiosArgs;
|
|
572
468
|
return __generator(this, function (_a) {
|
|
573
469
|
switch (_a.label) {
|
|
574
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
470
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
575
471
|
case 1:
|
|
576
472
|
localVarAxiosArgs = _a.sent();
|
|
577
473
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -650,7 +546,6 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
650
546
|
/**
|
|
651
547
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
652
548
|
* @summary List product documents
|
|
653
|
-
* @param {string} productSlug
|
|
654
549
|
* @param {string} [authorization] Bearer Token
|
|
655
550
|
* @param {number} [pageSize] Page size
|
|
656
551
|
* @param {string} [pageToken] Page token
|
|
@@ -661,25 +556,8 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
661
556
|
* @param {*} [options] Override http request option.
|
|
662
557
|
* @throws {RequiredError}
|
|
663
558
|
*/
|
|
664
|
-
listProductDocuments: function (
|
|
665
|
-
return localVarFp.listProductDocuments(
|
|
666
|
-
},
|
|
667
|
-
/**
|
|
668
|
-
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
669
|
-
* @summary List product documents
|
|
670
|
-
* @param {string} productSlug
|
|
671
|
-
* @param {string} [authorization] Bearer Token
|
|
672
|
-
* @param {number} [pageSize] Page size
|
|
673
|
-
* @param {string} [pageToken] Page token
|
|
674
|
-
* @param {string} [filter] List filter
|
|
675
|
-
* @param {string} [search] Search query
|
|
676
|
-
* @param {string} [order] Ordering criteria
|
|
677
|
-
* @param {string} [expand] Extra fields to fetch
|
|
678
|
-
* @param {*} [options] Override http request option.
|
|
679
|
-
* @throws {RequiredError}
|
|
680
|
-
*/
|
|
681
|
-
listProductDocuments_1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
682
|
-
return localVarFp.listProductDocuments_1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
559
|
+
listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
560
|
+
return localVarFp.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
683
561
|
},
|
|
684
562
|
/**
|
|
685
563
|
* Upload a product document.
|
|
@@ -753,19 +631,8 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
|
|
|
753
631
|
*/
|
|
754
632
|
ProductDocumentsApi.prototype.listProductDocuments = function (requestParameters, options) {
|
|
755
633
|
var _this = this;
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
/**
|
|
759
|
-
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
760
|
-
* @summary List product documents
|
|
761
|
-
* @param {ProductDocumentsApiListProductDocuments0Request} requestParameters Request parameters.
|
|
762
|
-
* @param {*} [options] Override http request option.
|
|
763
|
-
* @throws {RequiredError}
|
|
764
|
-
* @memberof ProductDocumentsApi
|
|
765
|
-
*/
|
|
766
|
-
ProductDocumentsApi.prototype.listProductDocuments_1 = function (requestParameters, options) {
|
|
767
|
-
var _this = this;
|
|
768
|
-
return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments_1(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
634
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
635
|
+
return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
769
636
|
};
|
|
770
637
|
/**
|
|
771
638
|
* Upload a product document.
|
|
@@ -32,7 +32,7 @@ export interface CreateDocumentRequestDto {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CreateDocumentRequestDto
|
|
34
34
|
*/
|
|
35
|
-
'entityType':
|
|
35
|
+
'entityType': CreateDocumentRequestDtoEntityTypeEnum;
|
|
36
36
|
/**
|
|
37
37
|
* Specifies the document creation strategy to be used, either synchronous or asynchronous.
|
|
38
38
|
* @type {string}
|
|
@@ -112,6 +112,17 @@ export interface CreateDocumentRequestDto {
|
|
|
112
112
|
*/
|
|
113
113
|
'engine'?: CreateDocumentRequestDtoEngineEnum;
|
|
114
114
|
}
|
|
115
|
+
export declare const CreateDocumentRequestDtoEntityTypeEnum: {
|
|
116
|
+
readonly PolicyApplication: "policy_application";
|
|
117
|
+
readonly PolicyContract: "policy_contract";
|
|
118
|
+
readonly PolicyAddendum: "policy_addendum";
|
|
119
|
+
readonly InitialInvoice: "initial_invoice";
|
|
120
|
+
readonly CorrectionInvoice: "correction_invoice";
|
|
121
|
+
readonly RecurringInvoice: "recurring_invoice";
|
|
122
|
+
readonly SepaMandate: "sepa_mandate";
|
|
123
|
+
readonly Static: "static";
|
|
124
|
+
};
|
|
125
|
+
export type CreateDocumentRequestDtoEntityTypeEnum = typeof CreateDocumentRequestDtoEntityTypeEnum[keyof typeof CreateDocumentRequestDtoEntityTypeEnum];
|
|
115
126
|
export declare const CreateDocumentRequestDtoStrategyEnum: {
|
|
116
127
|
readonly Sync: "Sync";
|
|
117
128
|
readonly Async: "Async";
|
|
@@ -13,7 +13,17 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CreateDocumentRequestDtoEngineEnum = exports.CreateDocumentRequestDtoContentTypeEnum = exports.CreateDocumentRequestDtoRequesterEnum = exports.CreateDocumentRequestDtoStrategyEnum = void 0;
|
|
16
|
+
exports.CreateDocumentRequestDtoEngineEnum = exports.CreateDocumentRequestDtoContentTypeEnum = exports.CreateDocumentRequestDtoRequesterEnum = exports.CreateDocumentRequestDtoStrategyEnum = exports.CreateDocumentRequestDtoEntityTypeEnum = void 0;
|
|
17
|
+
exports.CreateDocumentRequestDtoEntityTypeEnum = {
|
|
18
|
+
PolicyApplication: 'policy_application',
|
|
19
|
+
PolicyContract: 'policy_contract',
|
|
20
|
+
PolicyAddendum: 'policy_addendum',
|
|
21
|
+
InitialInvoice: 'initial_invoice',
|
|
22
|
+
CorrectionInvoice: 'correction_invoice',
|
|
23
|
+
RecurringInvoice: 'recurring_invoice',
|
|
24
|
+
SepaMandate: 'sepa_mandate',
|
|
25
|
+
Static: 'static'
|
|
26
|
+
};
|
|
17
27
|
exports.CreateDocumentRequestDtoStrategyEnum = {
|
|
18
28
|
Sync: 'Sync',
|
|
19
29
|
Async: 'Async'
|
|
@@ -38,7 +38,7 @@ export interface DocumentClass {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof DocumentClass
|
|
40
40
|
*/
|
|
41
|
-
'entityType':
|
|
41
|
+
'entityType': DocumentClassEntityTypeEnum;
|
|
42
42
|
/**
|
|
43
43
|
* Payload used to replace variables in the template.
|
|
44
44
|
* @type {object}
|
|
@@ -118,6 +118,17 @@ export interface DocumentClass {
|
|
|
118
118
|
*/
|
|
119
119
|
'ern': string;
|
|
120
120
|
}
|
|
121
|
+
export declare const DocumentClassEntityTypeEnum: {
|
|
122
|
+
readonly PolicyApplication: "policy_application";
|
|
123
|
+
readonly PolicyContract: "policy_contract";
|
|
124
|
+
readonly PolicyAddendum: "policy_addendum";
|
|
125
|
+
readonly InitialInvoice: "initial_invoice";
|
|
126
|
+
readonly CorrectionInvoice: "correction_invoice";
|
|
127
|
+
readonly RecurringInvoice: "recurring_invoice";
|
|
128
|
+
readonly SepaMandate: "sepa_mandate";
|
|
129
|
+
readonly Static: "static";
|
|
130
|
+
};
|
|
131
|
+
export type DocumentClassEntityTypeEnum = typeof DocumentClassEntityTypeEnum[keyof typeof DocumentClassEntityTypeEnum];
|
|
121
132
|
export declare const DocumentClassRequesterEnum: {
|
|
122
133
|
readonly Accountservice: "accountservice";
|
|
123
134
|
readonly Insuranceservice: "insuranceservice";
|
|
@@ -13,7 +13,17 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.DocumentClassContentTypeEnum = exports.DocumentClassRequesterEnum = void 0;
|
|
16
|
+
exports.DocumentClassContentTypeEnum = exports.DocumentClassRequesterEnum = exports.DocumentClassEntityTypeEnum = void 0;
|
|
17
|
+
exports.DocumentClassEntityTypeEnum = {
|
|
18
|
+
PolicyApplication: 'policy_application',
|
|
19
|
+
PolicyContract: 'policy_contract',
|
|
20
|
+
PolicyAddendum: 'policy_addendum',
|
|
21
|
+
InitialInvoice: 'initial_invoice',
|
|
22
|
+
CorrectionInvoice: 'correction_invoice',
|
|
23
|
+
RecurringInvoice: 'recurring_invoice',
|
|
24
|
+
SepaMandate: 'sepa_mandate',
|
|
25
|
+
Static: 'static'
|
|
26
|
+
};
|
|
17
27
|
exports.DocumentClassRequesterEnum = {
|
|
18
28
|
Accountservice: 'accountservice',
|
|
19
29
|
Insuranceservice: 'insuranceservice',
|
|
@@ -62,7 +62,7 @@ export interface DocxTemplateClass {
|
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof DocxTemplateClass
|
|
64
64
|
*/
|
|
65
|
-
'entityType':
|
|
65
|
+
'entityType': DocxTemplateClassEntityTypeEnum;
|
|
66
66
|
/**
|
|
67
67
|
* Name of the file the end user will see when he downloads it.
|
|
68
68
|
* @type {string}
|
|
@@ -88,3 +88,14 @@ export interface DocxTemplateClass {
|
|
|
88
88
|
*/
|
|
89
89
|
'updatedAt': string;
|
|
90
90
|
}
|
|
91
|
+
export declare const DocxTemplateClassEntityTypeEnum: {
|
|
92
|
+
readonly PolicyApplication: "policy_application";
|
|
93
|
+
readonly PolicyContract: "policy_contract";
|
|
94
|
+
readonly PolicyAddendum: "policy_addendum";
|
|
95
|
+
readonly InitialInvoice: "initial_invoice";
|
|
96
|
+
readonly CorrectionInvoice: "correction_invoice";
|
|
97
|
+
readonly RecurringInvoice: "recurring_invoice";
|
|
98
|
+
readonly SepaMandate: "sepa_mandate";
|
|
99
|
+
readonly Static: "static";
|
|
100
|
+
};
|
|
101
|
+
export type DocxTemplateClassEntityTypeEnum = typeof DocxTemplateClassEntityTypeEnum[keyof typeof DocxTemplateClassEntityTypeEnum];
|
|
@@ -13,3 +13,14 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.DocxTemplateClassEntityTypeEnum = void 0;
|
|
17
|
+
exports.DocxTemplateClassEntityTypeEnum = {
|
|
18
|
+
PolicyApplication: 'policy_application',
|
|
19
|
+
PolicyContract: 'policy_contract',
|
|
20
|
+
PolicyAddendum: 'policy_addendum',
|
|
21
|
+
InitialInvoice: 'initial_invoice',
|
|
22
|
+
CorrectionInvoice: 'correction_invoice',
|
|
23
|
+
RecurringInvoice: 'recurring_invoice',
|
|
24
|
+
SepaMandate: 'sepa_mandate',
|
|
25
|
+
Static: 'static'
|
|
26
|
+
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -57,4 +57,5 @@ export * from './update-html-template-dto';
|
|
|
57
57
|
export * from './update-layout-request-dto';
|
|
58
58
|
export * from './update-layout-response-class';
|
|
59
59
|
export * from './upload-docx-template-request-dto';
|
|
60
|
+
export * from './upload-docx-template-response-class';
|
|
60
61
|
export * from './upload-product-document-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -73,4 +73,5 @@ __exportStar(require("./update-html-template-dto"), exports);
|
|
|
73
73
|
__exportStar(require("./update-layout-request-dto"), exports);
|
|
74
74
|
__exportStar(require("./update-layout-response-class"), exports);
|
|
75
75
|
__exportStar(require("./upload-docx-template-request-dto"), exports);
|
|
76
|
+
__exportStar(require("./upload-docx-template-response-class"), exports);
|
|
76
77
|
__exportStar(require("./upload-product-document-request-dto"), exports);
|
|
@@ -23,32 +23,32 @@ export interface InlineResponse200 {
|
|
|
23
23
|
'status'?: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @type {{ [key: string]: { [key: string]:
|
|
26
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
27
27
|
* @memberof InlineResponse200
|
|
28
28
|
*/
|
|
29
29
|
'info'?: {
|
|
30
30
|
[key: string]: {
|
|
31
|
-
[key: string]:
|
|
31
|
+
[key: string]: string;
|
|
32
32
|
};
|
|
33
33
|
} | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {{ [key: string]: { [key: string]:
|
|
36
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
37
37
|
* @memberof InlineResponse200
|
|
38
38
|
*/
|
|
39
39
|
'error'?: {
|
|
40
40
|
[key: string]: {
|
|
41
|
-
[key: string]:
|
|
41
|
+
[key: string]: string;
|
|
42
42
|
};
|
|
43
43
|
} | null;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
|
-
* @type {{ [key: string]: { [key: string]:
|
|
46
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
47
47
|
* @memberof InlineResponse200
|
|
48
48
|
*/
|
|
49
49
|
'details'?: {
|
|
50
50
|
[key: string]: {
|
|
51
|
-
[key: string]:
|
|
51
|
+
[key: string]: string;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -23,32 +23,32 @@ export interface InlineResponse503 {
|
|
|
23
23
|
'status'?: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @type {{ [key: string]: { [key: string]:
|
|
26
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
27
27
|
* @memberof InlineResponse503
|
|
28
28
|
*/
|
|
29
29
|
'info'?: {
|
|
30
30
|
[key: string]: {
|
|
31
|
-
[key: string]:
|
|
31
|
+
[key: string]: string;
|
|
32
32
|
};
|
|
33
33
|
} | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {{ [key: string]: { [key: string]:
|
|
36
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
37
37
|
* @memberof InlineResponse503
|
|
38
38
|
*/
|
|
39
39
|
'error'?: {
|
|
40
40
|
[key: string]: {
|
|
41
|
-
[key: string]:
|
|
41
|
+
[key: string]: string;
|
|
42
42
|
};
|
|
43
43
|
} | null;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
|
-
* @type {{ [key: string]: { [key: string]:
|
|
46
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
47
47
|
* @memberof InlineResponse503
|
|
48
48
|
*/
|
|
49
49
|
'details'?: {
|
|
50
50
|
[key: string]: {
|
|
51
|
-
[key: string]:
|
|
51
|
+
[key: string]: string;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -64,7 +64,7 @@ export interface ProductDocumentClass {
|
|
|
64
64
|
*/
|
|
65
65
|
's3Key': string;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Type of the document expressed with its file extension.
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof ProductDocumentClass
|
|
70
70
|
*/
|
|
@@ -74,7 +74,7 @@ export interface ProductDocumentClass {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ProductDocumentClass
|
|
76
76
|
*/
|
|
77
|
-
'entityType':
|
|
77
|
+
'entityType': ProductDocumentClassEntityTypeEnum;
|
|
78
78
|
/**
|
|
79
79
|
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
80
80
|
* @type {string}
|
|
@@ -104,8 +104,31 @@ export declare const ProductDocumentClassContentTypeEnum: {
|
|
|
104
104
|
readonly Pdf: "pdf";
|
|
105
105
|
readonly Jpg: "jpg";
|
|
106
106
|
readonly Png: "png";
|
|
107
|
+
readonly Gz: "gz";
|
|
107
108
|
readonly Csv: "csv";
|
|
108
109
|
readonly Doc: "doc";
|
|
109
110
|
readonly Docx: "docx";
|
|
111
|
+
readonly Html: "html";
|
|
112
|
+
readonly Json: "json";
|
|
113
|
+
readonly Xml: "xml";
|
|
114
|
+
readonly Txt: "txt";
|
|
115
|
+
readonly Zip: "zip";
|
|
116
|
+
readonly Tar: "tar";
|
|
117
|
+
readonly Rar: "rar";
|
|
118
|
+
readonly Mp4: "MP4";
|
|
119
|
+
readonly Mov: "MOV";
|
|
120
|
+
readonly Wmv: "WMV";
|
|
121
|
+
readonly Avi: "AVI";
|
|
110
122
|
};
|
|
111
123
|
export type ProductDocumentClassContentTypeEnum = typeof ProductDocumentClassContentTypeEnum[keyof typeof ProductDocumentClassContentTypeEnum];
|
|
124
|
+
export declare const ProductDocumentClassEntityTypeEnum: {
|
|
125
|
+
readonly PolicyApplication: "policy_application";
|
|
126
|
+
readonly PolicyContract: "policy_contract";
|
|
127
|
+
readonly PolicyAddendum: "policy_addendum";
|
|
128
|
+
readonly InitialInvoice: "initial_invoice";
|
|
129
|
+
readonly CorrectionInvoice: "correction_invoice";
|
|
130
|
+
readonly RecurringInvoice: "recurring_invoice";
|
|
131
|
+
readonly SepaMandate: "sepa_mandate";
|
|
132
|
+
readonly Static: "static";
|
|
133
|
+
};
|
|
134
|
+
export type ProductDocumentClassEntityTypeEnum = typeof ProductDocumentClassEntityTypeEnum[keyof typeof ProductDocumentClassEntityTypeEnum];
|
|
@@ -13,12 +13,34 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ProductDocumentClassContentTypeEnum = void 0;
|
|
16
|
+
exports.ProductDocumentClassEntityTypeEnum = exports.ProductDocumentClassContentTypeEnum = void 0;
|
|
17
17
|
exports.ProductDocumentClassContentTypeEnum = {
|
|
18
18
|
Pdf: 'pdf',
|
|
19
19
|
Jpg: 'jpg',
|
|
20
20
|
Png: 'png',
|
|
21
|
+
Gz: 'gz',
|
|
21
22
|
Csv: 'csv',
|
|
22
23
|
Doc: 'doc',
|
|
23
|
-
Docx: 'docx'
|
|
24
|
+
Docx: 'docx',
|
|
25
|
+
Html: 'html',
|
|
26
|
+
Json: 'json',
|
|
27
|
+
Xml: 'xml',
|
|
28
|
+
Txt: 'txt',
|
|
29
|
+
Zip: 'zip',
|
|
30
|
+
Tar: 'tar',
|
|
31
|
+
Rar: 'rar',
|
|
32
|
+
Mp4: 'MP4',
|
|
33
|
+
Mov: 'MOV',
|
|
34
|
+
Wmv: 'WMV',
|
|
35
|
+
Avi: 'AVI'
|
|
36
|
+
};
|
|
37
|
+
exports.ProductDocumentClassEntityTypeEnum = {
|
|
38
|
+
PolicyApplication: 'policy_application',
|
|
39
|
+
PolicyContract: 'policy_contract',
|
|
40
|
+
PolicyAddendum: 'policy_addendum',
|
|
41
|
+
InitialInvoice: 'initial_invoice',
|
|
42
|
+
CorrectionInvoice: 'correction_invoice',
|
|
43
|
+
RecurringInvoice: 'recurring_invoice',
|
|
44
|
+
SepaMandate: 'sepa_mandate',
|
|
45
|
+
Static: 'static'
|
|
24
46
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL DocumentService
|
|
3
|
+
* The EMIL DocumentService 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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UploadDocxTemplateResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface UploadDocxTemplateResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* Pre-signed url for uploading the docx template.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UploadDocxTemplateResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'url': string;
|
|
24
|
+
/**
|
|
25
|
+
* Upload document fields.
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof UploadDocxTemplateResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'fields': object;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
* 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 });
|
|
@@ -37,7 +37,7 @@ export interface CreateDocumentRequestDto {
|
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof CreateDocumentRequestDto
|
|
39
39
|
*/
|
|
40
|
-
'entityType':
|
|
40
|
+
'entityType': CreateDocumentRequestDtoEntityTypeEnum;
|
|
41
41
|
/**
|
|
42
42
|
* Specifies the document creation strategy to be used, either synchronous or asynchronous.
|
|
43
43
|
* @type {string}
|
|
@@ -118,6 +118,18 @@ export interface CreateDocumentRequestDto {
|
|
|
118
118
|
'engine'?: CreateDocumentRequestDtoEngineEnum;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
export const CreateDocumentRequestDtoEntityTypeEnum = {
|
|
122
|
+
PolicyApplication: 'policy_application',
|
|
123
|
+
PolicyContract: 'policy_contract',
|
|
124
|
+
PolicyAddendum: 'policy_addendum',
|
|
125
|
+
InitialInvoice: 'initial_invoice',
|
|
126
|
+
CorrectionInvoice: 'correction_invoice',
|
|
127
|
+
RecurringInvoice: 'recurring_invoice',
|
|
128
|
+
SepaMandate: 'sepa_mandate',
|
|
129
|
+
Static: 'static'
|
|
130
|
+
} as const;
|
|
131
|
+
|
|
132
|
+
export type CreateDocumentRequestDtoEntityTypeEnum = typeof CreateDocumentRequestDtoEntityTypeEnum[keyof typeof CreateDocumentRequestDtoEntityTypeEnum];
|
|
121
133
|
export const CreateDocumentRequestDtoStrategyEnum = {
|
|
122
134
|
Sync: 'Sync',
|
|
123
135
|
Async: 'Async'
|
package/models/document-class.ts
CHANGED
|
@@ -43,7 +43,7 @@ export interface DocumentClass {
|
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof DocumentClass
|
|
45
45
|
*/
|
|
46
|
-
'entityType':
|
|
46
|
+
'entityType': DocumentClassEntityTypeEnum;
|
|
47
47
|
/**
|
|
48
48
|
* Payload used to replace variables in the template.
|
|
49
49
|
* @type {object}
|
|
@@ -124,6 +124,18 @@ export interface DocumentClass {
|
|
|
124
124
|
'ern': string;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
export const DocumentClassEntityTypeEnum = {
|
|
128
|
+
PolicyApplication: 'policy_application',
|
|
129
|
+
PolicyContract: 'policy_contract',
|
|
130
|
+
PolicyAddendum: 'policy_addendum',
|
|
131
|
+
InitialInvoice: 'initial_invoice',
|
|
132
|
+
CorrectionInvoice: 'correction_invoice',
|
|
133
|
+
RecurringInvoice: 'recurring_invoice',
|
|
134
|
+
SepaMandate: 'sepa_mandate',
|
|
135
|
+
Static: 'static'
|
|
136
|
+
} as const;
|
|
137
|
+
|
|
138
|
+
export type DocumentClassEntityTypeEnum = typeof DocumentClassEntityTypeEnum[keyof typeof DocumentClassEntityTypeEnum];
|
|
127
139
|
export const DocumentClassRequesterEnum = {
|
|
128
140
|
Accountservice: 'accountservice',
|
|
129
141
|
Insuranceservice: 'insuranceservice',
|
|
@@ -67,7 +67,7 @@ export interface DocxTemplateClass {
|
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof DocxTemplateClass
|
|
69
69
|
*/
|
|
70
|
-
'entityType':
|
|
70
|
+
'entityType': DocxTemplateClassEntityTypeEnum;
|
|
71
71
|
/**
|
|
72
72
|
* Name of the file the end user will see when he downloads it.
|
|
73
73
|
* @type {string}
|
|
@@ -94,3 +94,17 @@ export interface DocxTemplateClass {
|
|
|
94
94
|
'updatedAt': string;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
export const DocxTemplateClassEntityTypeEnum = {
|
|
98
|
+
PolicyApplication: 'policy_application',
|
|
99
|
+
PolicyContract: 'policy_contract',
|
|
100
|
+
PolicyAddendum: 'policy_addendum',
|
|
101
|
+
InitialInvoice: 'initial_invoice',
|
|
102
|
+
CorrectionInvoice: 'correction_invoice',
|
|
103
|
+
RecurringInvoice: 'recurring_invoice',
|
|
104
|
+
SepaMandate: 'sepa_mandate',
|
|
105
|
+
Static: 'static'
|
|
106
|
+
} as const;
|
|
107
|
+
|
|
108
|
+
export type DocxTemplateClassEntityTypeEnum = typeof DocxTemplateClassEntityTypeEnum[keyof typeof DocxTemplateClassEntityTypeEnum];
|
|
109
|
+
|
|
110
|
+
|