@emilgroup/document-sdk 1.11.1 → 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 +4 -4
- 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/product-document-class.ts +13 -1
- package/models/upload-docx-template-response-class.ts +36 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -77,6 +77,7 @@ models/update-html-template-dto.ts
|
|
|
77
77
|
models/update-layout-request-dto.ts
|
|
78
78
|
models/update-layout-response-class.ts
|
|
79
79
|
models/upload-docx-template-request-dto.ts
|
|
80
|
+
models/upload-docx-template-response-class.ts
|
|
80
81
|
models/upload-product-document-request-dto.ts
|
|
81
82
|
package.json
|
|
82
83
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/document-sdk@1.
|
|
20
|
+
npm install @emilgroup/document-sdk@1.12.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/document-sdk@1.
|
|
24
|
+
yarn add @emilgroup/document-sdk@1.12.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
|
@@ -21,8 +21,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import { CreatePresignedPostResponseClass } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
24
|
import { DeleteResponseClass } from '../models';
|
|
27
25
|
// @ts-ignore
|
|
28
26
|
import { GetDocxTemplateDownloadUrlResponseClass } from '../models';
|
|
@@ -36,6 +34,8 @@ import { SharedUpdateDocxTemplateRequestDto } from '../models';
|
|
|
36
34
|
import { UpdateDocxTemplateResponseClass } from '../models';
|
|
37
35
|
// @ts-ignore
|
|
38
36
|
import { UploadDocxTemplateRequestDto } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { UploadDocxTemplateResponseClass } from '../models';
|
|
39
39
|
/**
|
|
40
40
|
* DocxTemplatesApi - axios parameter creator
|
|
41
41
|
* @export
|
|
@@ -430,7 +430,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
430
430
|
* @param {*} [options] Override http request option.
|
|
431
431
|
* @throws {RequiredError}
|
|
432
432
|
*/
|
|
433
|
-
async uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
433
|
+
async uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadDocxTemplateResponseClass>> {
|
|
434
434
|
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options);
|
|
435
435
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
436
436
|
},
|
|
@@ -513,7 +513,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
513
513
|
* @param {*} [options] Override http request option.
|
|
514
514
|
* @throws {RequiredError}
|
|
515
515
|
*/
|
|
516
|
-
uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
516
|
+
uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<UploadDocxTemplateResponseClass> {
|
|
517
517
|
return localVarFp.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
518
518
|
},
|
|
519
519
|
};
|
|
@@ -21,14 +21,14 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import { CreatePresignedPostResponseClass } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
24
|
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
27
25
|
// @ts-ignore
|
|
28
26
|
import { GetProductDocumentResponseClass } from '../models';
|
|
29
27
|
// @ts-ignore
|
|
30
28
|
import { ListProductDocumentsResponseClass } from '../models';
|
|
31
29
|
// @ts-ignore
|
|
30
|
+
import { ProductDocumentClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
32
|
import { UploadProductDocumentRequestDto } from '../models';
|
|
33
33
|
/**
|
|
34
34
|
* ProductDocumentsApi - axios parameter creator
|
|
@@ -380,7 +380,7 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
380
380
|
* @param {*} [options] Override http request option.
|
|
381
381
|
* @throws {RequiredError}
|
|
382
382
|
*/
|
|
383
|
-
async uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
383
|
+
async uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductDocumentClass>> {
|
|
384
384
|
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadProductDocument(productSlug, uploadProductDocumentRequestDto, authorization, options);
|
|
385
385
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
386
386
|
},
|
|
@@ -455,7 +455,7 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
455
455
|
* @param {*} [options] Override http request option.
|
|
456
456
|
* @throws {RequiredError}
|
|
457
457
|
*/
|
|
458
|
-
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
458
|
+
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<ProductDocumentClass> {
|
|
459
459
|
return localVarFp.uploadProductDocument(productSlug, uploadProductDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
460
460
|
},
|
|
461
461
|
};
|
|
@@ -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
|
+
|
package/models/index.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';
|
|
@@ -79,7 +79,7 @@ export interface ProductDocumentClass {
|
|
|
79
79
|
* @type {string}
|
|
80
80
|
* @memberof ProductDocumentClass
|
|
81
81
|
*/
|
|
82
|
-
'entityType':
|
|
82
|
+
'entityType': ProductDocumentClassEntityTypeEnum;
|
|
83
83
|
/**
|
|
84
84
|
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
85
85
|
* @type {string}
|
|
@@ -128,5 +128,17 @@ export const ProductDocumentClassContentTypeEnum = {
|
|
|
128
128
|
} as const;
|
|
129
129
|
|
|
130
130
|
export type ProductDocumentClassContentTypeEnum = typeof ProductDocumentClassContentTypeEnum[keyof typeof ProductDocumentClassContentTypeEnum];
|
|
131
|
+
export const ProductDocumentClassEntityTypeEnum = {
|
|
132
|
+
PolicyApplication: 'policy_application',
|
|
133
|
+
PolicyContract: 'policy_contract',
|
|
134
|
+
PolicyAddendum: 'policy_addendum',
|
|
135
|
+
InitialInvoice: 'initial_invoice',
|
|
136
|
+
CorrectionInvoice: 'correction_invoice',
|
|
137
|
+
RecurringInvoice: 'recurring_invoice',
|
|
138
|
+
SepaMandate: 'sepa_mandate',
|
|
139
|
+
Static: 'static'
|
|
140
|
+
} as const;
|
|
141
|
+
|
|
142
|
+
export type ProductDocumentClassEntityTypeEnum = typeof ProductDocumentClassEntityTypeEnum[keyof typeof ProductDocumentClassEntityTypeEnum];
|
|
131
143
|
|
|
132
144
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL DocumentService
|
|
5
|
+
* The EMIL DocumentService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface UploadDocxTemplateResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface UploadDocxTemplateResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* Pre-signed url for uploading the docx template.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof UploadDocxTemplateResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'url': string;
|
|
29
|
+
/**
|
|
30
|
+
* Upload document fields.
|
|
31
|
+
* @type {object}
|
|
32
|
+
* @memberof UploadDocxTemplateResponseClass
|
|
33
|
+
*/
|
|
34
|
+
'fields': object;
|
|
35
|
+
}
|
|
36
|
+
|