@emilgroup/customer-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 +35 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +51 -0
- package/api/customers-api.ts +1284 -0
- package/api.ts +36 -0
- package/base.ts +187 -0
- package/common.ts +139 -0
- package/configuration.ts +118 -0
- package/dist/api/customers-api.d.ts +730 -0
- package/dist/api/customers-api.js +1095 -0
- package/dist/api.d.ts +16 -0
- package/dist/api.js +36 -0
- package/dist/base.d.ts +68 -0
- package/dist/base.js +251 -0
- package/dist/common.d.ts +66 -0
- package/dist/common.js +244 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +45 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +35 -0
- package/dist/models/create-account-request-dto.d.ts +102 -0
- package/dist/models/create-account-request-dto.js +21 -0
- package/dist/models/create-customer-request-dto.d.ts +43 -0
- package/dist/models/create-customer-request-dto.js +15 -0
- package/dist/models/create-customer-response-class.d.ts +24 -0
- package/dist/models/create-customer-response-class.js +15 -0
- package/dist/models/forgot-password-request-dto.d.ts +30 -0
- package/dist/models/forgot-password-request-dto.js +15 -0
- package/dist/models/get-policy-response-class.d.ts +25 -0
- package/dist/models/get-policy-response-class.js +15 -0
- package/dist/models/index.d.ts +21 -0
- package/dist/models/index.js +37 -0
- package/dist/models/invite-class.d.ts +54 -0
- package/dist/models/invite-class.js +15 -0
- package/dist/models/invite-customer-request-dto.d.ts +30 -0
- package/dist/models/invite-customer-request-dto.js +15 -0
- package/dist/models/invite-customer-response-class.d.ts +25 -0
- package/dist/models/invite-customer-response-class.js +15 -0
- package/dist/models/list-invoices-response-class.d.ts +30 -0
- package/dist/models/list-invoices-response-class.js +15 -0
- package/dist/models/list-policies-response-class.d.ts +31 -0
- package/dist/models/list-policies-response-class.js +15 -0
- package/dist/models/login-request-dto.d.ts +36 -0
- package/dist/models/login-request-dto.js +15 -0
- package/dist/models/login-response-class.d.ts +30 -0
- package/dist/models/login-response-class.js +15 -0
- package/dist/models/policy-class.d.ts +55 -0
- package/dist/models/policy-class.js +15 -0
- package/dist/models/policy-object-class.d.ts +30 -0
- package/dist/models/policy-object-class.js +15 -0
- package/dist/models/policy-premium-class.d.ts +43 -0
- package/dist/models/policy-premium-class.js +15 -0
- package/dist/models/policy-premium-item-class.d.ts +36 -0
- package/dist/models/policy-premium-item-class.js +15 -0
- package/dist/models/policy-version-class.d.ts +49 -0
- package/dist/models/policy-version-class.js +15 -0
- package/dist/models/refresh-token-dto.d.ts +30 -0
- package/dist/models/refresh-token-dto.js +15 -0
- package/dist/models/reset-password-by-customer-request-dto.d.ts +36 -0
- package/dist/models/reset-password-by-customer-request-dto.js +15 -0
- package/dist/models/timeslice-class.d.ts +56 -0
- package/dist/models/timeslice-class.js +15 -0
- package/dist/models/verify-customer-invite-response-class.d.ts +36 -0
- package/dist/models/verify-customer-invite-response-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/create-account-request-dto.ts +111 -0
- package/models/create-customer-request-dto.ts +49 -0
- package/models/create-customer-response-class.ts +30 -0
- package/models/forgot-password-request-dto.ts +36 -0
- package/models/get-policy-response-class.ts +31 -0
- package/models/index.ts +21 -0
- package/models/invite-class.ts +60 -0
- package/models/invite-customer-request-dto.ts +36 -0
- package/models/invite-customer-response-class.ts +31 -0
- package/models/list-invoices-response-class.ts +36 -0
- package/models/list-policies-response-class.ts +37 -0
- package/models/login-request-dto.ts +42 -0
- package/models/login-response-class.ts +36 -0
- package/models/policy-class.ts +61 -0
- package/models/policy-object-class.ts +36 -0
- package/models/policy-premium-class.ts +49 -0
- package/models/policy-premium-item-class.ts +42 -0
- package/models/policy-version-class.ts +55 -0
- package/models/refresh-token-dto.ts +36 -0
- package/models/reset-password-by-customer-request-dto.ts +42 -0
- package/models/timeslice-class.ts +62 -0
- package/models/verify-customer-invite-response-class.ts +42 -0
- package/package.json +29 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL CustomerService
|
|
3
|
+
* The EMIL CustomerService 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 { PolicyObjectClass } from './policy-object-class';
|
|
13
|
+
import { PolicyPremiumClass } from './policy-premium-class';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface TimesliceClass
|
|
18
|
+
*/
|
|
19
|
+
export interface TimesliceClass {
|
|
20
|
+
/**
|
|
21
|
+
* Timeslice policy data
|
|
22
|
+
* @type {Array<PolicyObjectClass>}
|
|
23
|
+
* @memberof TimesliceClass
|
|
24
|
+
*/
|
|
25
|
+
'policyObjects': Array<PolicyObjectClass>;
|
|
26
|
+
/**
|
|
27
|
+
* Timeslice validity start
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof TimesliceClass
|
|
30
|
+
*/
|
|
31
|
+
'from': string;
|
|
32
|
+
/**
|
|
33
|
+
* Timeslice validity end
|
|
34
|
+
* @type {object}
|
|
35
|
+
* @memberof TimesliceClass
|
|
36
|
+
*/
|
|
37
|
+
'to': object;
|
|
38
|
+
/**
|
|
39
|
+
* Timeslice premium
|
|
40
|
+
* @type {PolicyPremiumClass}
|
|
41
|
+
* @memberof TimesliceClass
|
|
42
|
+
*/
|
|
43
|
+
'premium': PolicyPremiumClass;
|
|
44
|
+
/**
|
|
45
|
+
* Date created
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof TimesliceClass
|
|
48
|
+
*/
|
|
49
|
+
'createdAt': string;
|
|
50
|
+
/**
|
|
51
|
+
* Date updated
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof TimesliceClass
|
|
54
|
+
*/
|
|
55
|
+
'updatedAt': string;
|
|
56
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL CustomerService
|
|
6
|
+
* The EMIL CustomerService 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,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL CustomerService
|
|
3
|
+
* The EMIL CustomerService 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 VerifyCustomerInviteResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface VerifyCustomerInviteResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* Invite token sent to the customer
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VerifyCustomerInviteResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'inviteToken': string;
|
|
24
|
+
/**
|
|
25
|
+
* Customer\'s email address
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VerifyCustomerInviteResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'email': string;
|
|
30
|
+
/**
|
|
31
|
+
* Tenant\'s unique slug
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof VerifyCustomerInviteResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'tenantSlug': string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL CustomerService
|
|
6
|
+
* The EMIL CustomerService 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="customer-sdk"
|
|
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 CustomerService
|
|
5
|
+
* The EMIL CustomerService 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,111 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CustomerService
|
|
5
|
+
* The EMIL CustomerService 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 CreateAccountRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateAccountRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* The account\'s first name.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreateAccountRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'firstName': string;
|
|
29
|
+
/**
|
|
30
|
+
* The account\'s last name.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateAccountRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'lastName': string;
|
|
35
|
+
/**
|
|
36
|
+
* The account\'s email address. It is displayed alongside the account in the admin dashboard and can be useful for searching and tracking.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateAccountRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'email': string;
|
|
41
|
+
/**
|
|
42
|
+
* The account\'s gender.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreateAccountRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'gender': CreateAccountRequestDtoGenderEnum;
|
|
47
|
+
/**
|
|
48
|
+
* The account\'s street name.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CreateAccountRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'street': string;
|
|
53
|
+
/**
|
|
54
|
+
* The account\'s ZIP or postal code.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CreateAccountRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'zipCode': string;
|
|
59
|
+
/**
|
|
60
|
+
* The account\'s city, district, suburb, town, or village.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof CreateAccountRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'city': string;
|
|
65
|
+
/**
|
|
66
|
+
* The account\'s house number.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof CreateAccountRequestDto
|
|
69
|
+
*/
|
|
70
|
+
'houseNumber': string;
|
|
71
|
+
/**
|
|
72
|
+
* Account\'s birth date.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof CreateAccountRequestDto
|
|
75
|
+
*/
|
|
76
|
+
'birthDate': string;
|
|
77
|
+
/**
|
|
78
|
+
* The account\'s phone number.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof CreateAccountRequestDto
|
|
81
|
+
*/
|
|
82
|
+
'phone': string;
|
|
83
|
+
/**
|
|
84
|
+
* Optional field to enter your own account number.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof CreateAccountRequestDto
|
|
87
|
+
*/
|
|
88
|
+
'accountNumber'?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Optional field to enter extra information.
|
|
91
|
+
* @type {object}
|
|
92
|
+
* @memberof CreateAccountRequestDto
|
|
93
|
+
*/
|
|
94
|
+
'metadata'?: object;
|
|
95
|
+
/**
|
|
96
|
+
* Optional field to add predefined custom fields.
|
|
97
|
+
* @type {object}
|
|
98
|
+
* @memberof CreateAccountRequestDto
|
|
99
|
+
*/
|
|
100
|
+
'customFields'?: object;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export const CreateAccountRequestDtoGenderEnum = {
|
|
104
|
+
Male: 'male',
|
|
105
|
+
Female: 'female',
|
|
106
|
+
Unspecified: 'unspecified'
|
|
107
|
+
} as const;
|
|
108
|
+
|
|
109
|
+
export type CreateAccountRequestDtoGenderEnum = typeof CreateAccountRequestDtoGenderEnum[keyof typeof CreateAccountRequestDtoGenderEnum];
|
|
110
|
+
|
|
111
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CustomerService
|
|
5
|
+
* The EMIL CustomerService 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 { CreateAccountRequestDto } from './create-account-request-dto';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateCustomerRequestDto
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateCustomerRequestDto {
|
|
24
|
+
/**
|
|
25
|
+
* Customer\'s invite token
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateCustomerRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'inviteToken': string;
|
|
30
|
+
/**
|
|
31
|
+
* Customer\'s password
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateCustomerRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'password': string;
|
|
36
|
+
/**
|
|
37
|
+
* If customer accepts end customer license agreement
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof CreateCustomerRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'isEulaAccepted': boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Optional account data
|
|
44
|
+
* @type {CreateAccountRequestDto}
|
|
45
|
+
* @memberof CreateCustomerRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'account'?: CreateAccountRequestDto;
|
|
48
|
+
}
|
|
49
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CustomerService
|
|
5
|
+
* The EMIL CustomerService 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 CreateCustomerResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateCustomerResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* Customer object
|
|
25
|
+
* @type {object}
|
|
26
|
+
* @memberof CreateCustomerResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'customer': object;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CustomerService
|
|
5
|
+
* The EMIL CustomerService 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 ForgotPasswordRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface ForgotPasswordRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* User\'s email address
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof ForgotPasswordRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'email': string;
|
|
29
|
+
/**
|
|
30
|
+
* tenant slug
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ForgotPasswordRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'tenantSlug': string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CustomerService
|
|
5
|
+
* The EMIL CustomerService 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 { PolicyClass } from './policy-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GetPolicyResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface GetPolicyResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Policy
|
|
26
|
+
* @type {PolicyClass}
|
|
27
|
+
* @memberof GetPolicyResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'policy': PolicyClass;
|
|
30
|
+
}
|
|
31
|
+
|
package/models/index.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './create-account-request-dto';
|
|
2
|
+
export * from './create-customer-request-dto';
|
|
3
|
+
export * from './create-customer-response-class';
|
|
4
|
+
export * from './forgot-password-request-dto';
|
|
5
|
+
export * from './get-policy-response-class';
|
|
6
|
+
export * from './invite-class';
|
|
7
|
+
export * from './invite-customer-request-dto';
|
|
8
|
+
export * from './invite-customer-response-class';
|
|
9
|
+
export * from './list-invoices-response-class';
|
|
10
|
+
export * from './list-policies-response-class';
|
|
11
|
+
export * from './login-request-dto';
|
|
12
|
+
export * from './login-response-class';
|
|
13
|
+
export * from './policy-class';
|
|
14
|
+
export * from './policy-object-class';
|
|
15
|
+
export * from './policy-premium-class';
|
|
16
|
+
export * from './policy-premium-item-class';
|
|
17
|
+
export * from './policy-version-class';
|
|
18
|
+
export * from './refresh-token-dto';
|
|
19
|
+
export * from './reset-password-by-customer-request-dto';
|
|
20
|
+
export * from './timeslice-class';
|
|
21
|
+
export * from './verify-customer-invite-response-class';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CustomerService
|
|
5
|
+
* The EMIL CustomerService 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 InviteClass
|
|
21
|
+
*/
|
|
22
|
+
export interface InviteClass {
|
|
23
|
+
/**
|
|
24
|
+
* Invite id
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof InviteClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Email address of the customer
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof InviteClass
|
|
33
|
+
*/
|
|
34
|
+
'email': string;
|
|
35
|
+
/**
|
|
36
|
+
* Account code
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof InviteClass
|
|
39
|
+
*/
|
|
40
|
+
'accountCode': string;
|
|
41
|
+
/**
|
|
42
|
+
* Expiry date
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof InviteClass
|
|
45
|
+
*/
|
|
46
|
+
'expiresOn': string;
|
|
47
|
+
/**
|
|
48
|
+
* Date created
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof InviteClass
|
|
51
|
+
*/
|
|
52
|
+
'createdAt': string;
|
|
53
|
+
/**
|
|
54
|
+
* Date updated
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof InviteClass
|
|
57
|
+
*/
|
|
58
|
+
'updatedAt': string;
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CustomerService
|
|
5
|
+
* The EMIL CustomerService 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 InviteCustomerRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface InviteCustomerRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* User\'s email address
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof InviteCustomerRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'email': string;
|
|
29
|
+
/**
|
|
30
|
+
* Account code
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof InviteCustomerRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'accountCode'?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CustomerService
|
|
5
|
+
* The EMIL CustomerService 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 { InviteClass } from './invite-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface InviteCustomerResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface InviteCustomerResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* invite
|
|
26
|
+
* @type {InviteClass}
|
|
27
|
+
* @memberof InviteCustomerResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'invite': InviteClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CustomerService
|
|
5
|
+
* The EMIL CustomerService 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 ListInvoicesResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface ListInvoicesResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* Invoices list items
|
|
25
|
+
* @type {Array<string>}
|
|
26
|
+
* @memberof ListInvoicesResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'items': Array<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Next page token
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ListInvoicesResponseClass
|
|
33
|
+
*/
|
|
34
|
+
'nextPageToken': string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CustomerService
|
|
5
|
+
* The EMIL CustomerService 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 { PolicyClass } from './policy-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ListPoliciesResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface ListPoliciesResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Policies
|
|
26
|
+
* @type {Array<PolicyClass>}
|
|
27
|
+
* @memberof ListPoliciesResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'items': Array<PolicyClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Next page token
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListPoliciesResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
36
|
+
}
|
|
37
|
+
|