@emilgroup/account-sdk 1.1.0 → 1.4.1
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 -1
- package/README.md +11 -11
- package/api/accounts-api.ts +54 -40
- package/api.ts +0 -5
- package/base.ts +122 -63
- package/common.ts +61 -0
- package/configuration.ts +0 -8
- package/dist/api/accounts-api.d.ts +46 -37
- package/dist/api/accounts-api.js +32 -26
- package/dist/api.d.ts +0 -4
- package/dist/api.js +0 -6
- package/dist/base.d.ts +10 -6
- package/dist/base.js +103 -61
- package/dist/common.d.ts +26 -0
- package/dist/common.js +35 -2
- package/dist/configuration.d.ts +0 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/models/account-class.d.ts +31 -5
- package/dist/models/account-class.js +7 -0
- package/dist/models/create-account-request-dto.d.ts +41 -11
- package/dist/models/create-account-request-dto.js +11 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/policy-class.d.ts +30 -0
- package/dist/models/update-account-request-dto.d.ts +42 -18
- package/dist/models/update-account-request-dto.js +11 -1
- package/index.ts +1 -1
- package/models/account-class.ts +34 -5
- package/models/create-account-request-dto.ts +42 -10
- package/models/index.ts +1 -1
- package/models/policy-class.ts +36 -0
- package/models/update-account-request-dto.ts +43 -17
- package/package.json +3 -3
- package/dist/models/get-account-request-dto.d.ts +0 -30
- package/models/get-account-request-dto.ts +0 -36
- /package/dist/models/{get-account-request-dto.js → policy-class.js} +0 -0
|
@@ -21,61 +21,79 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export interface CreateAccountRequestDto {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Optional field to enter the honorific title you want to be called.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreateAccountRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'title'?: CreateAccountRequestDtoTitleEnum;
|
|
29
|
+
/**
|
|
30
|
+
* The account\'s holder first name.
|
|
25
31
|
* @type {string}
|
|
26
32
|
* @memberof CreateAccountRequestDto
|
|
27
33
|
*/
|
|
28
34
|
'firstName': string;
|
|
29
35
|
/**
|
|
30
|
-
* The account\'s last name.
|
|
36
|
+
* The account\'s holder last name.
|
|
31
37
|
* @type {string}
|
|
32
38
|
* @memberof CreateAccountRequestDto
|
|
33
39
|
*/
|
|
34
40
|
'lastName': string;
|
|
35
41
|
/**
|
|
36
|
-
* The account\'s email address. It is displayed alongside the account in your dashboard
|
|
42
|
+
* The account\'s holder email address. It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
|
|
37
43
|
* @type {string}
|
|
38
44
|
* @memberof CreateAccountRequestDto
|
|
39
45
|
*/
|
|
40
46
|
'email': string;
|
|
41
47
|
/**
|
|
42
|
-
* The account\'s gender.
|
|
48
|
+
* The account\'s holder gender.
|
|
43
49
|
* @type {string}
|
|
44
50
|
* @memberof CreateAccountRequestDto
|
|
45
51
|
*/
|
|
46
52
|
'gender': CreateAccountRequestDtoGenderEnum;
|
|
47
53
|
/**
|
|
48
|
-
* The account\'s street name.
|
|
54
|
+
* The account\'s holder street name.
|
|
49
55
|
* @type {string}
|
|
50
56
|
* @memberof CreateAccountRequestDto
|
|
51
57
|
*/
|
|
52
58
|
'street': string;
|
|
53
59
|
/**
|
|
54
|
-
* The account\'s ZIP or postal code.
|
|
60
|
+
* The account\'s holder ZIP or postal code.
|
|
55
61
|
* @type {string}
|
|
56
62
|
* @memberof CreateAccountRequestDto
|
|
57
63
|
*/
|
|
58
64
|
'zipCode': string;
|
|
59
65
|
/**
|
|
60
|
-
* The account\'s city, district, suburb, town, or village.
|
|
66
|
+
* The account\'s holder city, district, suburb, town, or village.
|
|
61
67
|
* @type {string}
|
|
62
68
|
* @memberof CreateAccountRequestDto
|
|
63
69
|
*/
|
|
64
70
|
'city': string;
|
|
65
71
|
/**
|
|
66
|
-
* The account\'s house number.
|
|
72
|
+
* The account\'s holder house number.
|
|
67
73
|
* @type {string}
|
|
68
74
|
* @memberof CreateAccountRequestDto
|
|
69
75
|
*/
|
|
70
76
|
'houseNumber': string;
|
|
71
77
|
/**
|
|
72
|
-
*
|
|
78
|
+
* Optional field to enter the type of the account holder.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof CreateAccountRequestDto
|
|
81
|
+
*/
|
|
82
|
+
'type'?: CreateAccountRequestDtoTypeEnum;
|
|
83
|
+
/**
|
|
84
|
+
* The account\'s holder date of birth (Required for account of type person).
|
|
73
85
|
* @type {string}
|
|
74
86
|
* @memberof CreateAccountRequestDto
|
|
75
87
|
*/
|
|
76
88
|
'birthDate': string;
|
|
77
89
|
/**
|
|
78
|
-
* The account\'s
|
|
90
|
+
* The account\'s holder company name (Required for account of type org).
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof CreateAccountRequestDto
|
|
93
|
+
*/
|
|
94
|
+
'companyName'?: string;
|
|
95
|
+
/**
|
|
96
|
+
* The account\'s holder phone number.
|
|
79
97
|
* @type {string}
|
|
80
98
|
* @memberof CreateAccountRequestDto
|
|
81
99
|
*/
|
|
@@ -100,6 +118,14 @@ export interface CreateAccountRequestDto {
|
|
|
100
118
|
'customFields'?: object;
|
|
101
119
|
}
|
|
102
120
|
|
|
121
|
+
export const CreateAccountRequestDtoTitleEnum = {
|
|
122
|
+
Empty: '',
|
|
123
|
+
Dr: 'Dr.',
|
|
124
|
+
DrMed: 'Dr. med.',
|
|
125
|
+
ProfDrMed: 'Prof. Dr. med.'
|
|
126
|
+
} as const;
|
|
127
|
+
|
|
128
|
+
export type CreateAccountRequestDtoTitleEnum = typeof CreateAccountRequestDtoTitleEnum[keyof typeof CreateAccountRequestDtoTitleEnum];
|
|
103
129
|
export const CreateAccountRequestDtoGenderEnum = {
|
|
104
130
|
Male: 'male',
|
|
105
131
|
Female: 'female',
|
|
@@ -107,5 +133,11 @@ export const CreateAccountRequestDtoGenderEnum = {
|
|
|
107
133
|
} as const;
|
|
108
134
|
|
|
109
135
|
export type CreateAccountRequestDtoGenderEnum = typeof CreateAccountRequestDtoGenderEnum[keyof typeof CreateAccountRequestDtoGenderEnum];
|
|
136
|
+
export const CreateAccountRequestDtoTypeEnum = {
|
|
137
|
+
Person: 'person',
|
|
138
|
+
Org: 'org'
|
|
139
|
+
} as const;
|
|
140
|
+
|
|
141
|
+
export type CreateAccountRequestDtoTypeEnum = typeof CreateAccountRequestDtoTypeEnum[keyof typeof CreateAccountRequestDtoTypeEnum];
|
|
110
142
|
|
|
111
143
|
|
package/models/index.ts
CHANGED
|
@@ -2,9 +2,9 @@ export * from './account-class';
|
|
|
2
2
|
export * from './create-account-request-dto';
|
|
3
3
|
export * from './create-account-response-class';
|
|
4
4
|
export * from './delete-request-dto';
|
|
5
|
-
export * from './get-account-request-dto';
|
|
6
5
|
export * from './get-account-response-class';
|
|
7
6
|
export * from './list-accounts-response-class';
|
|
7
|
+
export * from './policy-class';
|
|
8
8
|
export * from './register-policy-request-dto';
|
|
9
9
|
export * from './update-account-request-dto';
|
|
10
10
|
export * from './update-account-response-class';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AccountService
|
|
5
|
+
* The EMIL AccountService 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 PolicyClass
|
|
21
|
+
*/
|
|
22
|
+
export interface PolicyClass {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier for a policy.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof PolicyClass
|
|
27
|
+
*/
|
|
28
|
+
'policyCode': string;
|
|
29
|
+
/**
|
|
30
|
+
* Number used on official documents.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PolicyClass
|
|
33
|
+
*/
|
|
34
|
+
'policyNumber': string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -21,61 +21,73 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export interface UpdateAccountRequestDto {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Optional field to enter the honorific title you want to be called.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof UpdateAccountRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'title'?: UpdateAccountRequestDtoTitleEnum;
|
|
29
|
+
/**
|
|
30
|
+
* The account holder\'s first name.
|
|
25
31
|
* @type {string}
|
|
26
32
|
* @memberof UpdateAccountRequestDto
|
|
27
33
|
*/
|
|
28
34
|
'firstName': string;
|
|
29
35
|
/**
|
|
30
|
-
* The account\'s last name.
|
|
36
|
+
* The account holder\'s last name.
|
|
31
37
|
* @type {string}
|
|
32
38
|
* @memberof UpdateAccountRequestDto
|
|
33
39
|
*/
|
|
34
40
|
'lastName': string;
|
|
35
41
|
/**
|
|
36
|
-
* The account\'s email address. It is displayed alongside the account in your dashboard
|
|
42
|
+
* The account holder\'s email address. It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
|
|
37
43
|
* @type {string}
|
|
38
44
|
* @memberof UpdateAccountRequestDto
|
|
39
45
|
*/
|
|
40
46
|
'email': string;
|
|
41
47
|
/**
|
|
42
|
-
* The account\'s gender.
|
|
48
|
+
* The account holder\'s gender.
|
|
43
49
|
* @type {string}
|
|
44
50
|
* @memberof UpdateAccountRequestDto
|
|
45
51
|
*/
|
|
46
52
|
'gender': UpdateAccountRequestDtoGenderEnum;
|
|
47
53
|
/**
|
|
48
|
-
* The account\'s street name.
|
|
54
|
+
* The account holder\'s street name.
|
|
49
55
|
* @type {string}
|
|
50
56
|
* @memberof UpdateAccountRequestDto
|
|
51
57
|
*/
|
|
52
58
|
'street': string;
|
|
53
59
|
/**
|
|
54
|
-
* The account\'s ZIP or postal code.
|
|
60
|
+
* The account holder\'s ZIP or postal code.
|
|
55
61
|
* @type {string}
|
|
56
62
|
* @memberof UpdateAccountRequestDto
|
|
57
63
|
*/
|
|
58
64
|
'zipCode': string;
|
|
59
65
|
/**
|
|
60
|
-
* The account\'s city, district, suburb, town, or village.
|
|
66
|
+
* The account holder\'s city, district, suburb, town, or village.
|
|
61
67
|
* @type {string}
|
|
62
68
|
* @memberof UpdateAccountRequestDto
|
|
63
69
|
*/
|
|
64
70
|
'city': string;
|
|
65
71
|
/**
|
|
66
|
-
* The account\'s house number.
|
|
72
|
+
* The account holder\'s house number.
|
|
67
73
|
* @type {string}
|
|
68
74
|
* @memberof UpdateAccountRequestDto
|
|
69
75
|
*/
|
|
70
76
|
'houseNumber': string;
|
|
71
77
|
/**
|
|
72
|
-
*
|
|
78
|
+
* Optional field to enter the type of the account holder.
|
|
73
79
|
* @type {string}
|
|
74
80
|
* @memberof UpdateAccountRequestDto
|
|
75
81
|
*/
|
|
76
|
-
'
|
|
82
|
+
'type'?: UpdateAccountRequestDtoTypeEnum;
|
|
77
83
|
/**
|
|
78
|
-
* The account\'s
|
|
84
|
+
* The account holder\'s company name (Required for account of type org).
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof UpdateAccountRequestDto
|
|
87
|
+
*/
|
|
88
|
+
'companyName'?: string;
|
|
89
|
+
/**
|
|
90
|
+
* The account holder\'s phone number.
|
|
79
91
|
* @type {string}
|
|
80
92
|
* @memberof UpdateAccountRequestDto
|
|
81
93
|
*/
|
|
@@ -86,6 +98,12 @@ export interface UpdateAccountRequestDto {
|
|
|
86
98
|
* @memberof UpdateAccountRequestDto
|
|
87
99
|
*/
|
|
88
100
|
'accountNumber'?: string;
|
|
101
|
+
/**
|
|
102
|
+
* The account holder\'s date of birth (Required for account of type person).
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof UpdateAccountRequestDto
|
|
105
|
+
*/
|
|
106
|
+
'birthDate': string;
|
|
89
107
|
/**
|
|
90
108
|
* Optional field to enter extra information.
|
|
91
109
|
* @type {object}
|
|
@@ -98,14 +116,16 @@ export interface UpdateAccountRequestDto {
|
|
|
98
116
|
* @memberof UpdateAccountRequestDto
|
|
99
117
|
*/
|
|
100
118
|
'customFields'?: object;
|
|
101
|
-
/**
|
|
102
|
-
* The account\'s code.
|
|
103
|
-
* @type {string}
|
|
104
|
-
* @memberof UpdateAccountRequestDto
|
|
105
|
-
*/
|
|
106
|
-
'code'?: string;
|
|
107
119
|
}
|
|
108
120
|
|
|
121
|
+
export const UpdateAccountRequestDtoTitleEnum = {
|
|
122
|
+
Empty: '',
|
|
123
|
+
Dr: 'Dr.',
|
|
124
|
+
DrMed: 'Dr. med.',
|
|
125
|
+
ProfDrMed: 'Prof. Dr. med.'
|
|
126
|
+
} as const;
|
|
127
|
+
|
|
128
|
+
export type UpdateAccountRequestDtoTitleEnum = typeof UpdateAccountRequestDtoTitleEnum[keyof typeof UpdateAccountRequestDtoTitleEnum];
|
|
109
129
|
export const UpdateAccountRequestDtoGenderEnum = {
|
|
110
130
|
Male: 'male',
|
|
111
131
|
Female: 'female',
|
|
@@ -113,5 +133,11 @@ export const UpdateAccountRequestDtoGenderEnum = {
|
|
|
113
133
|
} as const;
|
|
114
134
|
|
|
115
135
|
export type UpdateAccountRequestDtoGenderEnum = typeof UpdateAccountRequestDtoGenderEnum[keyof typeof UpdateAccountRequestDtoGenderEnum];
|
|
136
|
+
export const UpdateAccountRequestDtoTypeEnum = {
|
|
137
|
+
Person: 'person',
|
|
138
|
+
Org: 'org'
|
|
139
|
+
} as const;
|
|
140
|
+
|
|
141
|
+
export type UpdateAccountRequestDtoTypeEnum = typeof UpdateAccountRequestDtoTypeEnum[keyof typeof UpdateAccountRequestDtoTypeEnum];
|
|
116
142
|
|
|
117
143
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/account-sdk",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/account-sdk",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"prepare": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"axios": "^0.
|
|
21
|
+
"axios": "^0.27.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
"typescript": "^4.0"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL AccountService
|
|
3
|
-
* The EMIL AccountService 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 GetAccountRequestDto
|
|
16
|
-
*/
|
|
17
|
-
export interface GetAccountRequestDto {
|
|
18
|
-
/**
|
|
19
|
-
* The account\'s code.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof GetAccountRequestDto
|
|
22
|
-
*/
|
|
23
|
-
'code': string;
|
|
24
|
-
/**
|
|
25
|
-
* Use the expand query parameter when you need additional information. The expand query parameter increases the set of fields that appear in the response in addition to the default fields. Expanding resources reduces the number of API calls required to accomplish a task
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof GetAccountRequestDto
|
|
28
|
-
*/
|
|
29
|
-
'expand'?: string;
|
|
30
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL AccountService
|
|
5
|
-
* The EMIL AccountService 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 GetAccountRequestDto
|
|
21
|
-
*/
|
|
22
|
-
export interface GetAccountRequestDto {
|
|
23
|
-
/**
|
|
24
|
-
* The account\'s code.
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof GetAccountRequestDto
|
|
27
|
-
*/
|
|
28
|
-
'code': string;
|
|
29
|
-
/**
|
|
30
|
-
* Use the expand query parameter when you need additional information. The expand query parameter increases the set of fields that appear in the response in addition to the default fields. Expanding resources reduces the number of API calls required to accomplish a task
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof GetAccountRequestDto
|
|
33
|
-
*/
|
|
34
|
-
'expand'?: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
File without changes
|