@emilgroup/document-sdk-node 1.0.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 +45 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +68 -0
- package/api/document-templates-api.ts +675 -0
- package/api/documents-api.ts +762 -0
- package/api/layouts-api.ts +661 -0
- package/api/searchable-document-owners-api.ts +232 -0
- package/api/searchable-documents-api.ts +180 -0
- package/api.ts +44 -0
- package/base.ts +255 -0
- package/common.ts +138 -0
- package/configuration.ts +109 -0
- package/dist/api/document-templates-api.d.ts +372 -0
- package/dist/api/document-templates-api.js +628 -0
- package/dist/api/documents-api.d.ts +424 -0
- package/dist/api/documents-api.js +723 -0
- package/dist/api/layouts-api.d.ts +363 -0
- package/dist/api/layouts-api.js +622 -0
- package/dist/api/searchable-document-owners-api.d.ts +137 -0
- package/dist/api/searchable-document-owners-api.js +254 -0
- package/dist/api/searchable-documents-api.d.ts +101 -0
- package/dist/api/searchable-documents-api.js +233 -0
- package/dist/api.d.ts +20 -0
- package/dist/api.js +40 -0
- package/dist/base.d.ts +76 -0
- package/dist/base.js +364 -0
- package/dist/common.d.ts +66 -0
- package/dist/common.js +244 -0
- package/dist/configuration.d.ts +90 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +35 -0
- package/dist/models/create-doc-template-request-dto.d.ts +43 -0
- package/dist/models/create-doc-template-request-dto.js +15 -0
- package/dist/models/create-document-request-dto.d.ts +143 -0
- package/dist/models/create-document-request-dto.js +65 -0
- package/dist/models/create-html-template-dto.d.ts +24 -0
- package/dist/models/create-html-template-dto.js +15 -0
- package/dist/models/create-layout-request-dto.d.ts +49 -0
- package/dist/models/create-layout-request-dto.js +15 -0
- package/dist/models/create-presigned-post-request-dto.d.ts +103 -0
- package/dist/models/create-presigned-post-request-dto.js +51 -0
- package/dist/models/create-presigned-post-response-class.d.ts +30 -0
- package/dist/models/create-presigned-post-response-class.js +15 -0
- package/dist/models/delete-layout-request-dto.d.ts +24 -0
- package/dist/models/delete-layout-request-dto.js +15 -0
- package/dist/models/delete-request-dto.d.ts +24 -0
- package/dist/models/delete-request-dto.js +15 -0
- package/dist/models/doc-template-class.d.ts +80 -0
- package/dist/models/doc-template-class.js +15 -0
- package/dist/models/document-class.d.ts +150 -0
- package/dist/models/document-class.js +61 -0
- package/dist/models/download-document-request-dto.d.ts +30 -0
- package/dist/models/download-document-request-dto.js +15 -0
- package/dist/models/get-doc-template-request-dto.d.ts +30 -0
- package/dist/models/get-doc-template-request-dto.js +15 -0
- package/dist/models/get-doc-template-response-class.d.ts +25 -0
- package/dist/models/get-doc-template-response-class.js +15 -0
- package/dist/models/get-document-download-url-response-class.d.ts +24 -0
- package/dist/models/get-document-download-url-response-class.js +15 -0
- package/dist/models/get-layout-request-dto.d.ts +24 -0
- package/dist/models/get-layout-request-dto.js +15 -0
- package/dist/models/get-layout-response-class.d.ts +25 -0
- package/dist/models/get-layout-response-class.js +15 -0
- package/dist/models/html-template-class.d.ts +66 -0
- package/dist/models/html-template-class.js +21 -0
- package/dist/models/index.d.ts +28 -0
- package/dist/models/index.js +44 -0
- package/dist/models/layout-class.d.ts +79 -0
- package/dist/models/layout-class.js +15 -0
- package/dist/models/list-doc-templates-response-class.d.ts +31 -0
- package/dist/models/list-doc-templates-response-class.js +15 -0
- package/dist/models/list-documents-response-class.d.ts +31 -0
- package/dist/models/list-documents-response-class.js +15 -0
- package/dist/models/list-layouts-response-class.d.ts +31 -0
- package/dist/models/list-layouts-response-class.js +15 -0
- package/dist/models/list-request-dto.d.ts +54 -0
- package/dist/models/list-request-dto.js +15 -0
- package/dist/models/list-searchable-document-owners-response-class.d.ts +24 -0
- package/dist/models/list-searchable-document-owners-response-class.js +15 -0
- package/dist/models/list-searchable-documents-request-dto.d.ts +30 -0
- package/dist/models/list-searchable-documents-request-dto.js +15 -0
- package/dist/models/list-searchable-documents-response-class.d.ts +30 -0
- package/dist/models/list-searchable-documents-response-class.js +15 -0
- package/dist/models/update-doc-template-request-dto.d.ts +49 -0
- package/dist/models/update-doc-template-request-dto.js +15 -0
- package/dist/models/update-doc-template-response-class.d.ts +25 -0
- package/dist/models/update-doc-template-response-class.js +15 -0
- package/dist/models/update-document-request-dto.d.ts +48 -0
- package/dist/models/update-document-request-dto.js +15 -0
- package/dist/models/update-layout-request-dto.d.ts +55 -0
- package/dist/models/update-layout-request-dto.js +15 -0
- package/dist/models/update-layout-response-class.d.ts +25 -0
- package/dist/models/update-layout-response-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/create-doc-template-request-dto.ts +49 -0
- package/models/create-document-request-dto.ts +155 -0
- package/models/create-html-template-dto.ts +30 -0
- package/models/create-layout-request-dto.ts +55 -0
- package/models/create-presigned-post-request-dto.ts +113 -0
- package/models/create-presigned-post-response-class.ts +36 -0
- package/models/delete-layout-request-dto.ts +30 -0
- package/models/delete-request-dto.ts +30 -0
- package/models/doc-template-class.ts +86 -0
- package/models/document-class.ts +161 -0
- package/models/download-document-request-dto.ts +36 -0
- package/models/get-doc-template-request-dto.ts +36 -0
- package/models/get-doc-template-response-class.ts +31 -0
- package/models/get-document-download-url-response-class.ts +30 -0
- package/models/get-layout-request-dto.ts +30 -0
- package/models/get-layout-response-class.ts +31 -0
- package/models/html-template-class.ts +75 -0
- package/models/index.ts +28 -0
- package/models/layout-class.ts +85 -0
- package/models/list-doc-templates-response-class.ts +37 -0
- package/models/list-documents-response-class.ts +37 -0
- package/models/list-layouts-response-class.ts +37 -0
- package/models/list-request-dto.ts +60 -0
- package/models/list-searchable-document-owners-response-class.ts +30 -0
- package/models/list-searchable-documents-request-dto.ts +36 -0
- package/models/list-searchable-documents-response-class.ts +36 -0
- package/models/update-doc-template-request-dto.ts +55 -0
- package/models/update-doc-template-response-class.ts +31 -0
- package/models/update-document-request-dto.ts +54 -0
- package/models/update-layout-request-dto.ts +61 -0
- package/models/update-layout-response-class.ts +31 -0
- package/package.json +29 -0
- package/tsconfig.json +22 -0
|
@@ -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
|
+
*
|
|
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 });
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL DocumentService
|
|
3
|
+
* The EMIL DocumentService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { CreateHtmlTemplateDto } from './create-html-template-dto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateDocTemplateRequestDto
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateDocTemplateRequestDto {
|
|
19
|
+
/**
|
|
20
|
+
* Template name
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateDocTemplateRequestDto
|
|
23
|
+
*/
|
|
24
|
+
'name': string;
|
|
25
|
+
/**
|
|
26
|
+
* Template slug
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateDocTemplateRequestDto
|
|
29
|
+
*/
|
|
30
|
+
'slug': string;
|
|
31
|
+
/**
|
|
32
|
+
* Template id
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof UpdateDocTemplateRequestDto
|
|
35
|
+
*/
|
|
36
|
+
'id': number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {CreateHtmlTemplateDto}
|
|
40
|
+
* @memberof UpdateDocTemplateRequestDto
|
|
41
|
+
*/
|
|
42
|
+
'bodyTemplate': CreateHtmlTemplateDto;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof UpdateDocTemplateRequestDto
|
|
47
|
+
*/
|
|
48
|
+
'layoutId': number;
|
|
49
|
+
}
|
|
@@ -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
|
+
*
|
|
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 });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL DocumentService
|
|
3
|
+
* The EMIL DocumentService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { DocTemplateClass } from './doc-template-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateDocTemplateResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateDocTemplateResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Document template
|
|
21
|
+
* @type {DocTemplateClass}
|
|
22
|
+
* @memberof UpdateDocTemplateResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'template': DocTemplateClass;
|
|
25
|
+
}
|
|
@@ -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
|
+
*
|
|
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 });
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL DocumentService
|
|
3
|
+
* The EMIL DocumentService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateDocumentRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateDocumentRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Document description
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateDocumentRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'description'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Policy code
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateDocumentRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'policyCode'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Account code
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateDocumentRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'accountCode'?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Entity id
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof UpdateDocumentRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'entityId'?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Document code
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdateDocumentRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'code': string;
|
|
48
|
+
}
|
|
@@ -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
|
+
*
|
|
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 });
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL DocumentService
|
|
3
|
+
* The EMIL DocumentService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { CreateHtmlTemplateDto } from './create-html-template-dto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateLayoutRequestDto
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateLayoutRequestDto {
|
|
19
|
+
/**
|
|
20
|
+
* Layout name
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateLayoutRequestDto
|
|
23
|
+
*/
|
|
24
|
+
'name': string;
|
|
25
|
+
/**
|
|
26
|
+
* Layout slug
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateLayoutRequestDto
|
|
29
|
+
*/
|
|
30
|
+
'slug': string;
|
|
31
|
+
/**
|
|
32
|
+
* Layout style
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UpdateLayoutRequestDto
|
|
35
|
+
*/
|
|
36
|
+
'style': string;
|
|
37
|
+
/**
|
|
38
|
+
* Layout id
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof UpdateLayoutRequestDto
|
|
41
|
+
*/
|
|
42
|
+
'id': number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {CreateHtmlTemplateDto}
|
|
46
|
+
* @memberof UpdateLayoutRequestDto
|
|
47
|
+
*/
|
|
48
|
+
'headerTemplate': CreateHtmlTemplateDto;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {CreateHtmlTemplateDto}
|
|
52
|
+
* @memberof UpdateLayoutRequestDto
|
|
53
|
+
*/
|
|
54
|
+
'footerTemplate': CreateHtmlTemplateDto;
|
|
55
|
+
}
|
|
@@ -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
|
+
*
|
|
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 });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL DocumentService
|
|
3
|
+
* The EMIL DocumentService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { LayoutClass } from './layout-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateLayoutResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateLayoutResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Layout id
|
|
21
|
+
* @type {LayoutClass}
|
|
22
|
+
* @memberof UpdateLayoutResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'layout': LayoutClass;
|
|
25
|
+
}
|
|
@@ -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
|
+
*
|
|
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 });
|
package/git_push.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id="Emil"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id="document-sdk-node"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note="Minor update"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
package/index.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
*
|
|
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
|
+
export { BaseAPI } from "./base";
|
|
17
|
+
export * from "./api";
|
|
18
|
+
export * from "./configuration";
|
|
19
|
+
export * from "./models";
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
*
|
|
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 { CreateHtmlTemplateDto } from './create-html-template-dto';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateDocTemplateRequestDto
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateDocTemplateRequestDto {
|
|
24
|
+
/**
|
|
25
|
+
* Template name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateDocTemplateRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'name': string;
|
|
30
|
+
/**
|
|
31
|
+
* Template slug
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateDocTemplateRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'slug': string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CreateDocTemplateRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'layoutId': number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {CreateHtmlTemplateDto}
|
|
45
|
+
* @memberof CreateDocTemplateRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'bodyTemplate': CreateHtmlTemplateDto;
|
|
48
|
+
}
|
|
49
|
+
|
|
@@ -0,0 +1,155 @@
|
|
|
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
|
+
*
|
|
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 CreateDocumentRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateDocumentRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. In this case, the template used for this document.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreateDocumentRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'templateSlug': string;
|
|
29
|
+
/**
|
|
30
|
+
* Payload used to replace variables in the template.
|
|
31
|
+
* @type {object}
|
|
32
|
+
* @memberof CreateDocumentRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'payload': object;
|
|
35
|
+
/**
|
|
36
|
+
* Document entity type
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateDocumentRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'entityType': CreateDocumentRequestDtoEntityTypeEnum;
|
|
41
|
+
/**
|
|
42
|
+
* Description of the document. Usually a short summary about the context in which the document is being used.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreateDocumentRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'strategy'?: CreateDocumentRequestDtoStrategyEnum;
|
|
47
|
+
/**
|
|
48
|
+
* Description of the document. Usually a short summary about the context in which the document is being used.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CreateDocumentRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'description': string;
|
|
53
|
+
/**
|
|
54
|
+
* Unique identifier of the policy that the document belongs to
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CreateDocumentRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'policyCode'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Unique identifier of the account that the document belongs to
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof CreateDocumentRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'accountCode'?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Unique identifier referencing the entity on the service the document belongs to.
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof CreateDocumentRequestDto
|
|
69
|
+
*/
|
|
70
|
+
'entityId'?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Identifier of the service that requested the creation of this document.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof CreateDocumentRequestDto
|
|
75
|
+
*/
|
|
76
|
+
'requester': CreateDocumentRequestDtoRequesterEnum;
|
|
77
|
+
/**
|
|
78
|
+
* Metadata can contain extra information that the document would need for specific cases.
|
|
79
|
+
* @type {object}
|
|
80
|
+
* @memberof CreateDocumentRequestDto
|
|
81
|
+
*/
|
|
82
|
+
'metadata'?: object;
|
|
83
|
+
/**
|
|
84
|
+
* Type of the document expressed with its file extension.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof CreateDocumentRequestDto
|
|
87
|
+
*/
|
|
88
|
+
'contentType'?: CreateDocumentRequestDtoContentTypeEnum;
|
|
89
|
+
/**
|
|
90
|
+
* Name of the file the end user will see when he downloads it.
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof CreateDocumentRequestDto
|
|
93
|
+
*/
|
|
94
|
+
'filename'?: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export const CreateDocumentRequestDtoEntityTypeEnum = {
|
|
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 CreateDocumentRequestDtoEntityTypeEnum = typeof CreateDocumentRequestDtoEntityTypeEnum[keyof typeof CreateDocumentRequestDtoEntityTypeEnum];
|
|
109
|
+
export const CreateDocumentRequestDtoStrategyEnum = {
|
|
110
|
+
Sync: 'Sync',
|
|
111
|
+
Async: 'Async'
|
|
112
|
+
} as const;
|
|
113
|
+
|
|
114
|
+
export type CreateDocumentRequestDtoStrategyEnum = typeof CreateDocumentRequestDtoStrategyEnum[keyof typeof CreateDocumentRequestDtoStrategyEnum];
|
|
115
|
+
export const CreateDocumentRequestDtoRequesterEnum = {
|
|
116
|
+
Accountservice: 'accountservice',
|
|
117
|
+
Insuranceservice: 'insuranceservice',
|
|
118
|
+
Billingservice: 'billingservice',
|
|
119
|
+
Tenantservice: 'tenantservice',
|
|
120
|
+
BookingFunnel: 'bookingFunnel',
|
|
121
|
+
Publicapi: 'publicapi',
|
|
122
|
+
Admin: 'admin',
|
|
123
|
+
Claimservice: 'claimservice',
|
|
124
|
+
Customerservice: 'customerservice',
|
|
125
|
+
Notificationservice: 'notificationservice',
|
|
126
|
+
Paymentservice: 'paymentservice',
|
|
127
|
+
Processmanager: 'processmanager',
|
|
128
|
+
Gdvservice: 'gdvservice'
|
|
129
|
+
} as const;
|
|
130
|
+
|
|
131
|
+
export type CreateDocumentRequestDtoRequesterEnum = typeof CreateDocumentRequestDtoRequesterEnum[keyof typeof CreateDocumentRequestDtoRequesterEnum];
|
|
132
|
+
export const CreateDocumentRequestDtoContentTypeEnum = {
|
|
133
|
+
Pdf: 'pdf',
|
|
134
|
+
Jpg: 'jpg',
|
|
135
|
+
Png: 'png',
|
|
136
|
+
Gz: 'gz',
|
|
137
|
+
Csv: 'csv',
|
|
138
|
+
Doc: 'doc',
|
|
139
|
+
Docx: 'docx',
|
|
140
|
+
Html: 'html',
|
|
141
|
+
Json: 'json',
|
|
142
|
+
Xml: 'xml',
|
|
143
|
+
Txt: 'txt',
|
|
144
|
+
Zip: 'zip',
|
|
145
|
+
Tar: 'tar',
|
|
146
|
+
Rar: 'rar',
|
|
147
|
+
Mp4: 'MP4',
|
|
148
|
+
Mov: 'MOV',
|
|
149
|
+
Wmv: 'WMV',
|
|
150
|
+
Avi: 'AVI'
|
|
151
|
+
} as const;
|
|
152
|
+
|
|
153
|
+
export type CreateDocumentRequestDtoContentTypeEnum = typeof CreateDocumentRequestDtoContentTypeEnum[keyof typeof CreateDocumentRequestDtoContentTypeEnum];
|
|
154
|
+
|
|
155
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
*
|
|
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 CreateHtmlTemplateDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateHtmlTemplateDto {
|
|
23
|
+
/**
|
|
24
|
+
* Template draft content
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreateHtmlTemplateDto
|
|
27
|
+
*/
|
|
28
|
+
'draftContent': string;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
*
|
|
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 { CreateHtmlTemplateDto } from './create-html-template-dto';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateLayoutRequestDto
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateLayoutRequestDto {
|
|
24
|
+
/**
|
|
25
|
+
* Layout name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateLayoutRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'name': string;
|
|
30
|
+
/**
|
|
31
|
+
* Layout slug
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateLayoutRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'slug': string;
|
|
36
|
+
/**
|
|
37
|
+
* Layout style
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateLayoutRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'style': string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {CreateHtmlTemplateDto}
|
|
45
|
+
* @memberof CreateLayoutRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'headerTemplate': CreateHtmlTemplateDto;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {CreateHtmlTemplateDto}
|
|
51
|
+
* @memberof CreateLayoutRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'footerTemplate': CreateHtmlTemplateDto;
|
|
54
|
+
}
|
|
55
|
+
|