@emilgroup/document-sdk-node 1.12.0 → 1.12.2
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 +0 -1
- package/README.md +2 -2
- package/api/docx-templates-api.ts +4 -4
- package/api/product-documents-api.ts +210 -12
- package/dist/api/docx-templates-api.d.ts +4 -4
- package/dist/api/product-documents-api.d.ts +126 -8
- package/dist/api/product-documents-api.js +141 -8
- package/dist/models/create-document-request-dto.d.ts +1 -12
- package/dist/models/create-document-request-dto.js +1 -11
- package/dist/models/document-class.d.ts +1 -12
- package/dist/models/document-class.js +1 -11
- package/dist/models/docx-template-class.d.ts +1 -12
- package/dist/models/docx-template-class.js +0 -11
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- 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 +8 -25
- package/dist/models/product-document-class.js +2 -24
- package/models/create-document-request-dto.ts +1 -13
- package/models/document-class.ts +1 -13
- package/models/docx-template-class.ts +1 -15
- package/models/index.ts +0 -1
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/product-document-class.ts +9 -27
- package/package.json +1 -1
- package/dist/models/upload-docx-template-response-class.d.ts +0 -30
- package/dist/models/upload-docx-template-response-class.js +0 -15
- package/models/upload-docx-template-response-class.ts +0 -36
|
@@ -255,6 +255,79 @@ 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
|
|
258
331
|
* @param {string} [authorization] Bearer Token
|
|
259
332
|
* @param {number} [pageSize] Page size
|
|
260
333
|
* @param {string} [pageToken] Page token
|
|
@@ -265,14 +338,17 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
265
338
|
* @param {*} [options] Override http request option.
|
|
266
339
|
* @throws {RequiredError}
|
|
267
340
|
*/
|
|
268
|
-
|
|
341
|
+
listProductDocuments_1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
269
342
|
if (options === void 0) { options = {}; }
|
|
270
343
|
return __awaiter(_this, void 0, void 0, function () {
|
|
271
344
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
272
345
|
return __generator(this, function (_a) {
|
|
273
346
|
switch (_a.label) {
|
|
274
347
|
case 0:
|
|
275
|
-
|
|
348
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
349
|
+
(0, common_1.assertParamExists)('listProductDocuments_1', 'productSlug', productSlug);
|
|
350
|
+
localVarPath = "/documentservice/v1/documents/product"
|
|
351
|
+
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
276
352
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
277
353
|
if (configuration) {
|
|
278
354
|
baseOptions = configuration.baseOptions;
|
|
@@ -452,6 +528,34 @@ var ProductDocumentsApiFp = function (configuration) {
|
|
|
452
528
|
/**
|
|
453
529
|
* 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.
|
|
454
530
|
* @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
|
|
455
559
|
* @param {string} [authorization] Bearer Token
|
|
456
560
|
* @param {number} [pageSize] Page size
|
|
457
561
|
* @param {string} [pageToken] Page token
|
|
@@ -462,12 +566,12 @@ var ProductDocumentsApiFp = function (configuration) {
|
|
|
462
566
|
* @param {*} [options] Override http request option.
|
|
463
567
|
* @throws {RequiredError}
|
|
464
568
|
*/
|
|
465
|
-
|
|
569
|
+
listProductDocuments_1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
466
570
|
return __awaiter(this, void 0, void 0, function () {
|
|
467
571
|
var localVarAxiosArgs;
|
|
468
572
|
return __generator(this, function (_a) {
|
|
469
573
|
switch (_a.label) {
|
|
470
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
574
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments_1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
471
575
|
case 1:
|
|
472
576
|
localVarAxiosArgs = _a.sent();
|
|
473
577
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -546,6 +650,7 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
546
650
|
/**
|
|
547
651
|
* 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.
|
|
548
652
|
* @summary List product documents
|
|
653
|
+
* @param {string} productSlug
|
|
549
654
|
* @param {string} [authorization] Bearer Token
|
|
550
655
|
* @param {number} [pageSize] Page size
|
|
551
656
|
* @param {string} [pageToken] Page token
|
|
@@ -556,8 +661,25 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
556
661
|
* @param {*} [options] Override http request option.
|
|
557
662
|
* @throws {RequiredError}
|
|
558
663
|
*/
|
|
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); });
|
|
664
|
+
listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
665
|
+
return localVarFp.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
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); });
|
|
561
683
|
},
|
|
562
684
|
/**
|
|
563
685
|
* Upload a product document.
|
|
@@ -631,8 +753,19 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
|
|
|
631
753
|
*/
|
|
632
754
|
ProductDocumentsApi.prototype.listProductDocuments = function (requestParameters, options) {
|
|
633
755
|
var _this = this;
|
|
634
|
-
|
|
635
|
-
|
|
756
|
+
return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments(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); });
|
|
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); });
|
|
636
769
|
};
|
|
637
770
|
/**
|
|
638
771
|
* 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': string;
|
|
36
36
|
/**
|
|
37
37
|
* Specifies the document creation strategy to be used, either synchronous or asynchronous.
|
|
38
38
|
* @type {string}
|
|
@@ -112,17 +112,6 @@ 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];
|
|
126
115
|
export declare const CreateDocumentRequestDtoStrategyEnum: {
|
|
127
116
|
readonly Sync: "Sync";
|
|
128
117
|
readonly Async: "Async";
|
|
@@ -13,17 +13,7 @@
|
|
|
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 =
|
|
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
|
-
};
|
|
16
|
+
exports.CreateDocumentRequestDtoEngineEnum = exports.CreateDocumentRequestDtoContentTypeEnum = exports.CreateDocumentRequestDtoRequesterEnum = exports.CreateDocumentRequestDtoStrategyEnum = void 0;
|
|
27
17
|
exports.CreateDocumentRequestDtoStrategyEnum = {
|
|
28
18
|
Sync: 'Sync',
|
|
29
19
|
Async: 'Async'
|
|
@@ -38,7 +38,7 @@ export interface DocumentClass {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof DocumentClass
|
|
40
40
|
*/
|
|
41
|
-
'entityType':
|
|
41
|
+
'entityType': string;
|
|
42
42
|
/**
|
|
43
43
|
* Payload used to replace variables in the template.
|
|
44
44
|
* @type {object}
|
|
@@ -118,17 +118,6 @@ 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];
|
|
132
121
|
export declare const DocumentClassRequesterEnum: {
|
|
133
122
|
readonly Accountservice: "accountservice";
|
|
134
123
|
readonly Insuranceservice: "insuranceservice";
|
|
@@ -13,17 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.DocumentClassContentTypeEnum = exports.DocumentClassRequesterEnum =
|
|
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
|
-
};
|
|
16
|
+
exports.DocumentClassContentTypeEnum = exports.DocumentClassRequesterEnum = void 0;
|
|
27
17
|
exports.DocumentClassRequesterEnum = {
|
|
28
18
|
Accountservice: 'accountservice',
|
|
29
19
|
Insuranceservice: 'insuranceservice',
|
|
@@ -62,7 +62,7 @@ export interface DocxTemplateClass {
|
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof DocxTemplateClass
|
|
64
64
|
*/
|
|
65
|
-
'entityType':
|
|
65
|
+
'entityType': string;
|
|
66
66
|
/**
|
|
67
67
|
* Name of the file the end user will see when he downloads it.
|
|
68
68
|
* @type {string}
|
|
@@ -88,14 +88,3 @@ 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,14 +13,3 @@
|
|
|
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,5 +57,4 @@ 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';
|
|
61
60
|
export * from './upload-product-document-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -73,5 +73,4 @@ __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);
|
|
77
76
|
__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]: object; }; }}
|
|
27
27
|
* @memberof InlineResponse200
|
|
28
28
|
*/
|
|
29
29
|
'info'?: {
|
|
30
30
|
[key: string]: {
|
|
31
|
-
[key: string]:
|
|
31
|
+
[key: string]: object;
|
|
32
32
|
};
|
|
33
33
|
} | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {{ [key: string]: { [key: string]:
|
|
36
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
37
37
|
* @memberof InlineResponse200
|
|
38
38
|
*/
|
|
39
39
|
'error'?: {
|
|
40
40
|
[key: string]: {
|
|
41
|
-
[key: string]:
|
|
41
|
+
[key: string]: object;
|
|
42
42
|
};
|
|
43
43
|
} | null;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
|
-
* @type {{ [key: string]: { [key: string]:
|
|
46
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
47
47
|
* @memberof InlineResponse200
|
|
48
48
|
*/
|
|
49
49
|
'details'?: {
|
|
50
50
|
[key: string]: {
|
|
51
|
-
[key: string]:
|
|
51
|
+
[key: string]: object;
|
|
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]: object; }; }}
|
|
27
27
|
* @memberof InlineResponse503
|
|
28
28
|
*/
|
|
29
29
|
'info'?: {
|
|
30
30
|
[key: string]: {
|
|
31
|
-
[key: string]:
|
|
31
|
+
[key: string]: object;
|
|
32
32
|
};
|
|
33
33
|
} | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {{ [key: string]: { [key: string]:
|
|
36
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
37
37
|
* @memberof InlineResponse503
|
|
38
38
|
*/
|
|
39
39
|
'error'?: {
|
|
40
40
|
[key: string]: {
|
|
41
|
-
[key: string]:
|
|
41
|
+
[key: string]: object;
|
|
42
42
|
};
|
|
43
43
|
} | null;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
|
-
* @type {{ [key: string]: { [key: string]:
|
|
46
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
47
47
|
* @memberof InlineResponse503
|
|
48
48
|
*/
|
|
49
49
|
'details'?: {
|
|
50
50
|
[key: string]: {
|
|
51
|
-
[key: string]:
|
|
51
|
+
[key: string]: object;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -64,7 +64,7 @@ export interface ProductDocumentClass {
|
|
|
64
64
|
*/
|
|
65
65
|
's3Key': string;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Extension of the file.
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof ProductDocumentClass
|
|
70
70
|
*/
|
|
@@ -74,7 +74,13 @@ export interface ProductDocumentClass {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ProductDocumentClass
|
|
76
76
|
*/
|
|
77
|
-
'entityType':
|
|
77
|
+
'entityType': string;
|
|
78
|
+
/**
|
|
79
|
+
* The file name the end user will see when downloading it.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof ProductDocumentClass
|
|
82
|
+
*/
|
|
83
|
+
'filename': string;
|
|
78
84
|
/**
|
|
79
85
|
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
80
86
|
* @type {string}
|
|
@@ -104,31 +110,8 @@ export declare const ProductDocumentClassContentTypeEnum: {
|
|
|
104
110
|
readonly Pdf: "pdf";
|
|
105
111
|
readonly Jpg: "jpg";
|
|
106
112
|
readonly Png: "png";
|
|
107
|
-
readonly Gz: "gz";
|
|
108
113
|
readonly Csv: "csv";
|
|
109
114
|
readonly Doc: "doc";
|
|
110
115
|
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";
|
|
122
116
|
};
|
|
123
117
|
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,34 +13,12 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.ProductDocumentClassContentTypeEnum = void 0;
|
|
17
17
|
exports.ProductDocumentClassContentTypeEnum = {
|
|
18
18
|
Pdf: 'pdf',
|
|
19
19
|
Jpg: 'jpg',
|
|
20
20
|
Png: 'png',
|
|
21
|
-
Gz: 'gz',
|
|
22
21
|
Csv: 'csv',
|
|
23
22
|
Doc: 'doc',
|
|
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'
|
|
23
|
+
Docx: 'docx'
|
|
46
24
|
};
|
|
@@ -37,7 +37,7 @@ export interface CreateDocumentRequestDto {
|
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof CreateDocumentRequestDto
|
|
39
39
|
*/
|
|
40
|
-
'entityType':
|
|
40
|
+
'entityType': string;
|
|
41
41
|
/**
|
|
42
42
|
* Specifies the document creation strategy to be used, either synchronous or asynchronous.
|
|
43
43
|
* @type {string}
|
|
@@ -118,18 +118,6 @@ 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];
|
|
133
121
|
export const CreateDocumentRequestDtoStrategyEnum = {
|
|
134
122
|
Sync: 'Sync',
|
|
135
123
|
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': string;
|
|
47
47
|
/**
|
|
48
48
|
* Payload used to replace variables in the template.
|
|
49
49
|
* @type {object}
|
|
@@ -124,18 +124,6 @@ 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];
|
|
139
127
|
export const DocumentClassRequesterEnum = {
|
|
140
128
|
Accountservice: 'accountservice',
|
|
141
129
|
Insuranceservice: 'insuranceservice',
|
|
@@ -67,7 +67,7 @@ export interface DocxTemplateClass {
|
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof DocxTemplateClass
|
|
69
69
|
*/
|
|
70
|
-
'entityType':
|
|
70
|
+
'entityType': string;
|
|
71
71
|
/**
|
|
72
72
|
* Name of the file the end user will see when he downloads it.
|
|
73
73
|
* @type {string}
|
|
@@ -94,17 +94,3 @@ 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
|
-
|
package/models/index.ts
CHANGED
|
@@ -57,5 +57,4 @@ 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';
|
|
61
60
|
export * from './upload-product-document-request-dto';
|
|
@@ -28,21 +28,21 @@ export interface InlineResponse200 {
|
|
|
28
28
|
'status'?: string;
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
|
-
* @type {{ [key: string]: { [key: string]:
|
|
31
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
32
32
|
* @memberof InlineResponse200
|
|
33
33
|
*/
|
|
34
|
-
'info'?: { [key: string]: { [key: string]:
|
|
34
|
+
'info'?: { [key: string]: { [key: string]: object; }; } | null;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {{ [key: string]: { [key: string]:
|
|
37
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
38
38
|
* @memberof InlineResponse200
|
|
39
39
|
*/
|
|
40
|
-
'error'?: { [key: string]: { [key: string]:
|
|
40
|
+
'error'?: { [key: string]: { [key: string]: object; }; } | null;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {{ [key: string]: { [key: string]:
|
|
43
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
44
44
|
* @memberof InlineResponse200
|
|
45
45
|
*/
|
|
46
|
-
'details'?: { [key: string]: { [key: string]:
|
|
46
|
+
'details'?: { [key: string]: { [key: string]: object; }; };
|
|
47
47
|
}
|
|
48
48
|
|