@emilgroup/document-sdk 1.11.0 → 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.
@@ -32,11 +32,13 @@ models/delete-request-dto.ts
32
32
  models/delete-response-class.ts
33
33
  models/doc-template-class.ts
34
34
  models/document-class.ts
35
+ models/docx-template-class.ts
35
36
  models/download-document-request-dto.ts
36
37
  models/get-doc-template-request-dto.ts
37
38
  models/get-doc-template-response-class.ts
38
39
  models/get-document-download-url-response-class.ts
39
40
  models/get-docx-template-download-url-response-class.ts
41
+ models/get-docx-template-response-class.ts
40
42
  models/get-layout-request-dto.ts
41
43
  models/get-layout-response-class.ts
42
44
  models/get-product-document-download-url-response-class.ts
@@ -52,6 +54,7 @@ models/layout-class.ts
52
54
  models/list-doc-template-request-dto.ts
53
55
  models/list-doc-templates-response-class.ts
54
56
  models/list-documents-response-class.ts
57
+ models/list-docx-templates-response-class.ts
55
58
  models/list-layouts-response-class.ts
56
59
  models/list-product-documents-response-class.ts
57
60
  models/list-request-dto.ts
@@ -69,10 +72,12 @@ models/update-doc-template-request-dto.ts
69
72
  models/update-doc-template-response-class.ts
70
73
  models/update-document-request-dto.ts
71
74
  models/update-document-response-class.ts
75
+ models/update-docx-template-response-class.ts
72
76
  models/update-html-template-dto.ts
73
77
  models/update-layout-request-dto.ts
74
78
  models/update-layout-response-class.ts
75
79
  models/upload-docx-template-request-dto.ts
80
+ models/upload-docx-template-response-class.ts
76
81
  models/upload-product-document-request-dto.ts
77
82
  package.json
78
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.11.0 --save
20
+ npm install @emilgroup/document-sdk@1.12.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/document-sdk@1.11.0
24
+ yarn add @emilgroup/document-sdk@1.12.0
25
25
  ```
26
26
 
27
27
  And then you can import `DocumentsApi`.
@@ -25,9 +25,17 @@ import { DeleteResponseClass } from '../models';
25
25
  // @ts-ignore
26
26
  import { GetDocxTemplateDownloadUrlResponseClass } from '../models';
27
27
  // @ts-ignore
28
+ import { GetDocxTemplateResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListDocxTemplatesResponseClass } from '../models';
31
+ // @ts-ignore
28
32
  import { SharedUpdateDocxTemplateRequestDto } from '../models';
29
33
  // @ts-ignore
34
+ import { UpdateDocxTemplateResponseClass } from '../models';
35
+ // @ts-ignore
30
36
  import { UploadDocxTemplateRequestDto } from '../models';
37
+ // @ts-ignore
38
+ import { UploadDocxTemplateResponseClass } from '../models';
31
39
  /**
32
40
  * DocxTemplatesApi - axios parameter creator
33
41
  * @export
@@ -380,7 +388,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
380
388
  * @param {*} [options] Override http request option.
381
389
  * @throws {RequiredError}
382
390
  */
383
- async getDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
391
+ async getDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocxTemplateResponseClass>> {
384
392
  const localVarAxiosArgs = await localVarAxiosParamCreator.getDocxTemplate(code, authorization, options);
385
393
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
386
394
  },
@@ -397,7 +405,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
397
405
  * @param {*} [options] Override http request option.
398
406
  * @throws {RequiredError}
399
407
  */
400
- async listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
408
+ async listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocxTemplatesResponseClass>> {
401
409
  const localVarAxiosArgs = await localVarAxiosParamCreator.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options);
402
410
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
403
411
  },
@@ -410,7 +418,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
410
418
  * @param {*} [options] Override http request option.
411
419
  * @throws {RequiredError}
412
420
  */
413
- async updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
421
+ async updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateDocxTemplateResponseClass>> {
414
422
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateDocxTemplate(code, sharedUpdateDocxTemplateRequestDto, authorization, options);
415
423
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
416
424
  },
@@ -422,7 +430,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
422
430
  * @param {*} [options] Override http request option.
423
431
  * @throws {RequiredError}
424
432
  */
425
- async uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
433
+ async uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadDocxTemplateResponseClass>> {
426
434
  const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options);
427
435
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
428
436
  },
@@ -466,7 +474,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
466
474
  * @param {*} [options] Override http request option.
467
475
  * @throws {RequiredError}
468
476
  */
469
- getDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<object> {
477
+ getDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<GetDocxTemplateResponseClass> {
470
478
  return localVarFp.getDocxTemplate(code, authorization, options).then((request) => request(axios, basePath));
471
479
  },
472
480
  /**
@@ -482,7 +490,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
482
490
  * @param {*} [options] Override http request option.
483
491
  * @throws {RequiredError}
484
492
  */
485
- listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<object> {
493
+ listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocxTemplatesResponseClass> {
486
494
  return localVarFp.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
487
495
  },
488
496
  /**
@@ -494,7 +502,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
494
502
  * @param {*} [options] Override http request option.
495
503
  * @throws {RequiredError}
496
504
  */
497
- updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
505
+ updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateDocxTemplateResponseClass> {
498
506
  return localVarFp.updateDocxTemplate(code, sharedUpdateDocxTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
499
507
  },
500
508
  /**
@@ -505,7 +513,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
505
513
  * @param {*} [options] Override http request option.
506
514
  * @throws {RequiredError}
507
515
  */
508
- uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
516
+ uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<UploadDocxTemplateResponseClass> {
509
517
  return localVarFp.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
510
518
  },
511
519
  };
@@ -0,0 +1,110 @@
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 DocxTemplateClass
21
+ */
22
+ export interface DocxTemplateClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof DocxTemplateClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier for the object.
31
+ * @type {string}
32
+ * @memberof DocxTemplateClass
33
+ */
34
+ 'code': string;
35
+ /**
36
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
37
+ * @type {string}
38
+ * @memberof DocxTemplateClass
39
+ */
40
+ 'slug': string;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof DocxTemplateClass
45
+ */
46
+ 'productVersionId': number;
47
+ /**
48
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
49
+ * @type {string}
50
+ * @memberof DocxTemplateClass
51
+ */
52
+ 'productSlug': string;
53
+ /**
54
+ * Description of the document. Usually a short summary about the context in which the document is being used.
55
+ * @type {string}
56
+ * @memberof DocxTemplateClass
57
+ */
58
+ 'description': string;
59
+ /**
60
+ * The unique key used by Amazon Simple Storage Service (S3).
61
+ * @type {string}
62
+ * @memberof DocxTemplateClass
63
+ */
64
+ 's3Key': string;
65
+ /**
66
+ * Document entity type.
67
+ * @type {string}
68
+ * @memberof DocxTemplateClass
69
+ */
70
+ 'entityType': DocxTemplateClassEntityTypeEnum;
71
+ /**
72
+ * Name of the file the end user will see when he downloads it.
73
+ * @type {string}
74
+ * @memberof DocxTemplateClass
75
+ */
76
+ 'filename': string;
77
+ /**
78
+ * Version number of the template, incremented each time a new version is uploaded.
79
+ * @type {number}
80
+ * @memberof DocxTemplateClass
81
+ */
82
+ 'versionNumber': number;
83
+ /**
84
+ * Time at which the object was created.
85
+ * @type {string}
86
+ * @memberof DocxTemplateClass
87
+ */
88
+ 'createdAt': string;
89
+ /**
90
+ * Time at which the object was updated.
91
+ * @type {string}
92
+ * @memberof DocxTemplateClass
93
+ */
94
+ 'updatedAt': string;
95
+ }
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
+
@@ -0,0 +1,31 @@
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
+ import { DocxTemplateClass } from './docx-template-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface GetDocxTemplateResponseClass
22
+ */
23
+ export interface GetDocxTemplateResponseClass {
24
+ /**
25
+ * Docx Template
26
+ * @type {DocxTemplateClass}
27
+ * @memberof GetDocxTemplateResponseClass
28
+ */
29
+ 'docxTemplate': DocxTemplateClass;
30
+ }
31
+
package/models/index.ts CHANGED
@@ -13,11 +13,13 @@ export * from './delete-request-dto';
13
13
  export * from './delete-response-class';
14
14
  export * from './doc-template-class';
15
15
  export * from './document-class';
16
+ export * from './docx-template-class';
16
17
  export * from './download-document-request-dto';
17
18
  export * from './get-doc-template-request-dto';
18
19
  export * from './get-doc-template-response-class';
19
20
  export * from './get-document-download-url-response-class';
20
21
  export * from './get-docx-template-download-url-response-class';
22
+ export * from './get-docx-template-response-class';
21
23
  export * from './get-layout-request-dto';
22
24
  export * from './get-layout-response-class';
23
25
  export * from './get-product-document-download-url-response-class';
@@ -32,6 +34,7 @@ export * from './layout-class';
32
34
  export * from './list-doc-template-request-dto';
33
35
  export * from './list-doc-templates-response-class';
34
36
  export * from './list-documents-response-class';
37
+ export * from './list-docx-templates-response-class';
35
38
  export * from './list-layouts-response-class';
36
39
  export * from './list-product-documents-response-class';
37
40
  export * from './list-request-dto';
@@ -49,8 +52,10 @@ export * from './update-doc-template-request-dto';
49
52
  export * from './update-doc-template-response-class';
50
53
  export * from './update-document-request-dto';
51
54
  export * from './update-document-response-class';
55
+ export * from './update-docx-template-response-class';
52
56
  export * from './update-html-template-dto';
53
57
  export * from './update-layout-request-dto';
54
58
  export * from './update-layout-response-class';
55
59
  export * from './upload-docx-template-request-dto';
60
+ export * from './upload-docx-template-response-class';
56
61
  export * from './upload-product-document-request-dto';
@@ -0,0 +1,37 @@
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
+ import { DocxTemplateClass } from './docx-template-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListDocxTemplatesResponseClass
22
+ */
23
+ export interface ListDocxTemplatesResponseClass {
24
+ /**
25
+ * The list of docx templates.
26
+ * @type {Array<DocxTemplateClass>}
27
+ * @memberof ListDocxTemplatesResponseClass
28
+ */
29
+ 'items': Array<DocxTemplateClass>;
30
+ /**
31
+ * Next page token.
32
+ * @type {string}
33
+ * @memberof ListDocxTemplatesResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ }
37
+
@@ -0,0 +1,31 @@
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
+ import { DocxTemplateClass } from './docx-template-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface UpdateDocxTemplateResponseClass
22
+ */
23
+ export interface UpdateDocxTemplateResponseClass {
24
+ /**
25
+ * Document
26
+ * @type {DocxTemplateClass}
27
+ * @memberof UpdateDocxTemplateResponseClass
28
+ */
29
+ 'docxTemplate': DocxTemplateClass;
30
+ }
31
+
@@ -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
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/document-sdk",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "OpenAPI client for @emilgroup/document-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [