@emilgroup/claim-sdk-node 1.3.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.
@@ -0,0 +1,120 @@
1
+ /**
2
+ * EMIL ClaimService
3
+ * The EMIL ClaimService 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 UpdateClaimRequestDto
16
+ */
17
+ export interface UpdateClaimRequestDto {
18
+ /**
19
+ * Field to enter the claim title.
20
+ * @type {string}
21
+ * @memberof UpdateClaimRequestDto
22
+ */
23
+ 'title': string;
24
+ /**
25
+ * Unique identifier of the account that the claim belongs to.
26
+ * @type {string}
27
+ * @memberof UpdateClaimRequestDto
28
+ */
29
+ 'accountCode': string;
30
+ /**
31
+ * Field for the policy number that the claim belongs to.
32
+ * @type {string}
33
+ * @memberof UpdateClaimRequestDto
34
+ */
35
+ 'policyNumber': string;
36
+ /**
37
+ * Field for the policy code that the claim belongs to.
38
+ * @type {string}
39
+ * @memberof UpdateClaimRequestDto
40
+ */
41
+ 'policyCode': string;
42
+ /**
43
+ * Unique identifier of the product that the claim is made against
44
+ * @type {number}
45
+ * @memberof UpdateClaimRequestDto
46
+ */
47
+ 'productId': number;
48
+ /**
49
+ * Unique identifier for the specific version of the product
50
+ * @type {number}
51
+ * @memberof UpdateClaimRequestDto
52
+ */
53
+ 'productVersionId': number;
54
+ /**
55
+ * The name of the product
56
+ * @type {string}
57
+ * @memberof UpdateClaimRequestDto
58
+ */
59
+ 'productName': string;
60
+ /**
61
+ * The unique identifier of the insured object that the claim is made for
62
+ * @type {number}
63
+ * @memberof UpdateClaimRequestDto
64
+ */
65
+ 'insuredObjectId': number;
66
+ /**
67
+ * The claim\'s description in 5000 characters.
68
+ * @type {string}
69
+ * @memberof UpdateClaimRequestDto
70
+ */
71
+ 'description': string;
72
+ /**
73
+ * The adjuster of the claim. A claim adjuster investigates insurance claims by interviewing the claimant and witnesses, consulting police and hospital records, and inspecting property damage to determine the extent of the insurance company\'s liability.
74
+ * @type {string}
75
+ * @memberof UpdateClaimRequestDto
76
+ */
77
+ 'adjuster'?: string;
78
+ /**
79
+ * A claim reporter is responsible for submitting this claim to the platform. A claim reporter is not necessarily the same as the policy holder.
80
+ * @type {string}
81
+ * @memberof UpdateClaimRequestDto
82
+ */
83
+ 'reporter': string;
84
+ /**
85
+ * The contact email of the policyholder.
86
+ * @type {string}
87
+ * @memberof UpdateClaimRequestDto
88
+ */
89
+ 'contactEmail'?: string;
90
+ /**
91
+ * The contact phone of the policyholder.
92
+ * @type {string}
93
+ * @memberof UpdateClaimRequestDto
94
+ */
95
+ 'contactPhone'?: string;
96
+ /**
97
+ * The claim\'s damage date.
98
+ * @type {string}
99
+ * @memberof UpdateClaimRequestDto
100
+ */
101
+ 'damageDate': string;
102
+ /**
103
+ * The date on which the claim is reported
104
+ * @type {string}
105
+ * @memberof UpdateClaimRequestDto
106
+ */
107
+ 'notificationDate': string;
108
+ /**
109
+ * Tenant specific custom fields for claims (e.g. IMEI, Serial Number, etc.)
110
+ * @type {object}
111
+ * @memberof UpdateClaimRequestDto
112
+ */
113
+ 'customFields'?: object;
114
+ /**
115
+ *
116
+ * @type {string}
117
+ * @memberof UpdateClaimRequestDto
118
+ */
119
+ 'code'?: string;
120
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL ClaimService
6
+ * The EMIL ClaimService 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="claim-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 ClaimService
5
+ * The EMIL ClaimService 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 { Environment, BaseAPI } from "./base";
17
+ export * from "./api";
18
+ export * from "./configuration";
19
+ export * from "./models";
@@ -0,0 +1,120 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL ClaimService
5
+ * The EMIL ClaimService 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 CreateClaimRequestDto
21
+ */
22
+ export interface CreateClaimRequestDto {
23
+ /**
24
+ * Field to enter the claim title.
25
+ * @type {string}
26
+ * @memberof CreateClaimRequestDto
27
+ */
28
+ 'title': string;
29
+ /**
30
+ * Unique identifier of the account that the claim belongs to.
31
+ * @type {string}
32
+ * @memberof CreateClaimRequestDto
33
+ */
34
+ 'accountCode': string;
35
+ /**
36
+ * Field for the policy number that the claim belongs to.
37
+ * @type {string}
38
+ * @memberof CreateClaimRequestDto
39
+ */
40
+ 'policyNumber': string;
41
+ /**
42
+ * Field for the policy code that the claim belongs to.
43
+ * @type {string}
44
+ * @memberof CreateClaimRequestDto
45
+ */
46
+ 'policyCode': string;
47
+ /**
48
+ * Unique identifier of the product that the claim is made against
49
+ * @type {number}
50
+ * @memberof CreateClaimRequestDto
51
+ */
52
+ 'productId': number;
53
+ /**
54
+ * Unique identifier for the specific version of the product
55
+ * @type {number}
56
+ * @memberof CreateClaimRequestDto
57
+ */
58
+ 'productVersionId': number;
59
+ /**
60
+ * The name of the product
61
+ * @type {string}
62
+ * @memberof CreateClaimRequestDto
63
+ */
64
+ 'productName': string;
65
+ /**
66
+ * The unique identifier of the insured object that the claim is made for
67
+ * @type {number}
68
+ * @memberof CreateClaimRequestDto
69
+ */
70
+ 'insuredObjectId': number;
71
+ /**
72
+ * The claim\'s description in 5000 characters.
73
+ * @type {string}
74
+ * @memberof CreateClaimRequestDto
75
+ */
76
+ 'description': string;
77
+ /**
78
+ * The adjuster of the claim. A claim adjuster investigates insurance claims by interviewing the claimant and witnesses, consulting police and hospital records, and inspecting property damage to determine the extent of the insurance company\'s liability.
79
+ * @type {string}
80
+ * @memberof CreateClaimRequestDto
81
+ */
82
+ 'adjuster'?: string;
83
+ /**
84
+ * A claim reporter is responsible for submitting this claim to the platform. A claim reporter is not necessarily the same as the policy holder.
85
+ * @type {string}
86
+ * @memberof CreateClaimRequestDto
87
+ */
88
+ 'reporter': string;
89
+ /**
90
+ * The contact email of the policyholder.
91
+ * @type {string}
92
+ * @memberof CreateClaimRequestDto
93
+ */
94
+ 'contactEmail'?: string;
95
+ /**
96
+ * The contact phone of the policyholder.
97
+ * @type {string}
98
+ * @memberof CreateClaimRequestDto
99
+ */
100
+ 'contactPhone'?: string;
101
+ /**
102
+ * The claim\'s damage date.
103
+ * @type {string}
104
+ * @memberof CreateClaimRequestDto
105
+ */
106
+ 'damageDate': string;
107
+ /**
108
+ * The date on which the claim is reported
109
+ * @type {string}
110
+ * @memberof CreateClaimRequestDto
111
+ */
112
+ 'notificationDate': string;
113
+ /**
114
+ * Tenant specific custom fields for claims (e.g. IMEI, Serial Number, etc.)
115
+ * @type {object}
116
+ * @memberof CreateClaimRequestDto
117
+ */
118
+ 'customFields'?: object;
119
+ }
120
+
@@ -0,0 +1,2 @@
1
+ export * from './create-claim-request-dto';
2
+ export * from './update-claim-request-dto';
@@ -0,0 +1,126 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL ClaimService
5
+ * The EMIL ClaimService 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 UpdateClaimRequestDto
21
+ */
22
+ export interface UpdateClaimRequestDto {
23
+ /**
24
+ * Field to enter the claim title.
25
+ * @type {string}
26
+ * @memberof UpdateClaimRequestDto
27
+ */
28
+ 'title': string;
29
+ /**
30
+ * Unique identifier of the account that the claim belongs to.
31
+ * @type {string}
32
+ * @memberof UpdateClaimRequestDto
33
+ */
34
+ 'accountCode': string;
35
+ /**
36
+ * Field for the policy number that the claim belongs to.
37
+ * @type {string}
38
+ * @memberof UpdateClaimRequestDto
39
+ */
40
+ 'policyNumber': string;
41
+ /**
42
+ * Field for the policy code that the claim belongs to.
43
+ * @type {string}
44
+ * @memberof UpdateClaimRequestDto
45
+ */
46
+ 'policyCode': string;
47
+ /**
48
+ * Unique identifier of the product that the claim is made against
49
+ * @type {number}
50
+ * @memberof UpdateClaimRequestDto
51
+ */
52
+ 'productId': number;
53
+ /**
54
+ * Unique identifier for the specific version of the product
55
+ * @type {number}
56
+ * @memberof UpdateClaimRequestDto
57
+ */
58
+ 'productVersionId': number;
59
+ /**
60
+ * The name of the product
61
+ * @type {string}
62
+ * @memberof UpdateClaimRequestDto
63
+ */
64
+ 'productName': string;
65
+ /**
66
+ * The unique identifier of the insured object that the claim is made for
67
+ * @type {number}
68
+ * @memberof UpdateClaimRequestDto
69
+ */
70
+ 'insuredObjectId': number;
71
+ /**
72
+ * The claim\'s description in 5000 characters.
73
+ * @type {string}
74
+ * @memberof UpdateClaimRequestDto
75
+ */
76
+ 'description': string;
77
+ /**
78
+ * The adjuster of the claim. A claim adjuster investigates insurance claims by interviewing the claimant and witnesses, consulting police and hospital records, and inspecting property damage to determine the extent of the insurance company\'s liability.
79
+ * @type {string}
80
+ * @memberof UpdateClaimRequestDto
81
+ */
82
+ 'adjuster'?: string;
83
+ /**
84
+ * A claim reporter is responsible for submitting this claim to the platform. A claim reporter is not necessarily the same as the policy holder.
85
+ * @type {string}
86
+ * @memberof UpdateClaimRequestDto
87
+ */
88
+ 'reporter': string;
89
+ /**
90
+ * The contact email of the policyholder.
91
+ * @type {string}
92
+ * @memberof UpdateClaimRequestDto
93
+ */
94
+ 'contactEmail'?: string;
95
+ /**
96
+ * The contact phone of the policyholder.
97
+ * @type {string}
98
+ * @memberof UpdateClaimRequestDto
99
+ */
100
+ 'contactPhone'?: string;
101
+ /**
102
+ * The claim\'s damage date.
103
+ * @type {string}
104
+ * @memberof UpdateClaimRequestDto
105
+ */
106
+ 'damageDate': string;
107
+ /**
108
+ * The date on which the claim is reported
109
+ * @type {string}
110
+ * @memberof UpdateClaimRequestDto
111
+ */
112
+ 'notificationDate': string;
113
+ /**
114
+ * Tenant specific custom fields for claims (e.g. IMEI, Serial Number, etc.)
115
+ * @type {object}
116
+ * @memberof UpdateClaimRequestDto
117
+ */
118
+ 'customFields'?: object;
119
+ /**
120
+ *
121
+ * @type {string}
122
+ * @memberof UpdateClaimRequestDto
123
+ */
124
+ 'code'?: string;
125
+ }
126
+
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@emilgroup/claim-sdk-node",
3
+ "version": "1.3.0",
4
+ "description": "OpenAPI client for @emilgroup/claim-sdk-node",
5
+ "author": "OpenAPI-Generator Contributors",
6
+ "keywords": [
7
+ "axios",
8
+ "typescript",
9
+ "openapi-client",
10
+ "openapi-generator",
11
+ "@emilgroup/claim-sdk-node"
12
+ ],
13
+ "license": "Unlicense",
14
+ "main": "./dist/index.js",
15
+ "typings": "./dist/index.d.ts",
16
+ "scripts": {
17
+ "build": "tsc --outDir dist/",
18
+ "prepare": "npm run build"
19
+ },
20
+ "dependencies": {
21
+ "axios": "^0.27.2",
22
+ "form-data": "^4.0.0",
23
+ "url": "^0.11.0"
24
+ },
25
+ "devDependencies": {
26
+ "@types/node": "^12.11.5",
27
+ "typescript": "^4.0"
28
+ }
29
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "compilerOptions": {
3
+ "declaration": true,
4
+ "target": "ES5",
5
+ "module": "CommonJS",
6
+ "noImplicitAny": true,
7
+ "esModuleInterop": true,
8
+ "outDir": "dist",
9
+ "rootDir": ".",
10
+ "lib": [
11
+ "es6",
12
+ "dom"
13
+ ],
14
+ "typeRoots": [
15
+ "node_modules/@types"
16
+ ]
17
+ },
18
+ "exclude": [
19
+ "dist",
20
+ "node_modules"
21
+ ]
22
+ }