@emilgroup/account-sdk-node 1.1.0 → 1.3.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 +0 -1
- package/README.md +3 -3
- package/api/accounts-api.ts +4 -4
- package/api.ts +1 -0
- package/base.ts +39 -15
- package/common.ts +61 -0
- package/dist/api/accounts-api.d.ts +4 -4
- package/dist/api/accounts-api.js +5 -5
- package/dist/api.d.ts +2 -1
- package/dist/api.js +1 -0
- package/dist/base.d.ts +2 -5
- package/dist/base.js +40 -16
- package/dist/common.d.ts +26 -0
- package/dist/common.js +35 -2
- package/dist/models/account-class.d.ts +26 -1
- 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 +0 -1
- package/dist/models/index.js +0 -1
- package/dist/models/update-account-request-dto.d.ts +41 -17
- package/dist/models/update-account-request-dto.js +11 -1
- package/models/account-class.ts +29 -1
- package/models/create-account-request-dto.ts +42 -10
- package/models/index.ts +0 -1
- package/models/update-account-request-dto.ts +42 -16
- package/package.json +3 -3
- package/dist/models/get-account-request-dto.d.ts +0 -30
- package/dist/models/get-account-request-dto.js +0 -15
- package/models/get-account-request-dto.ts +0 -36
|
@@ -16,61 +16,79 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface CreateAccountRequestDto {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Optional field to enter the honorific title you want to be called.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateAccountRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'title'?: CreateAccountRequestDtoTitleEnum;
|
|
24
|
+
/**
|
|
25
|
+
* The account\'s holder first name.
|
|
20
26
|
* @type {string}
|
|
21
27
|
* @memberof CreateAccountRequestDto
|
|
22
28
|
*/
|
|
23
29
|
'firstName': string;
|
|
24
30
|
/**
|
|
25
|
-
* The account\'s last name.
|
|
31
|
+
* The account\'s holder last name.
|
|
26
32
|
* @type {string}
|
|
27
33
|
* @memberof CreateAccountRequestDto
|
|
28
34
|
*/
|
|
29
35
|
'lastName': string;
|
|
30
36
|
/**
|
|
31
|
-
* The account\'s email address. It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
|
|
37
|
+
* The account\'s holder email address. It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
|
|
32
38
|
* @type {string}
|
|
33
39
|
* @memberof CreateAccountRequestDto
|
|
34
40
|
*/
|
|
35
41
|
'email': string;
|
|
36
42
|
/**
|
|
37
|
-
* The account\'s gender.
|
|
43
|
+
* The account\'s holder gender.
|
|
38
44
|
* @type {string}
|
|
39
45
|
* @memberof CreateAccountRequestDto
|
|
40
46
|
*/
|
|
41
47
|
'gender': CreateAccountRequestDtoGenderEnum;
|
|
42
48
|
/**
|
|
43
|
-
* The account\'s street name.
|
|
49
|
+
* The account\'s holder street name.
|
|
44
50
|
* @type {string}
|
|
45
51
|
* @memberof CreateAccountRequestDto
|
|
46
52
|
*/
|
|
47
53
|
'street': string;
|
|
48
54
|
/**
|
|
49
|
-
* The account\'s ZIP or postal code.
|
|
55
|
+
* The account\'s holder ZIP or postal code.
|
|
50
56
|
* @type {string}
|
|
51
57
|
* @memberof CreateAccountRequestDto
|
|
52
58
|
*/
|
|
53
59
|
'zipCode': string;
|
|
54
60
|
/**
|
|
55
|
-
* The account\'s city, district, suburb, town, or village.
|
|
61
|
+
* The account\'s holder city, district, suburb, town, or village.
|
|
56
62
|
* @type {string}
|
|
57
63
|
* @memberof CreateAccountRequestDto
|
|
58
64
|
*/
|
|
59
65
|
'city': string;
|
|
60
66
|
/**
|
|
61
|
-
* The account\'s house number.
|
|
67
|
+
* The account\'s holder house number.
|
|
62
68
|
* @type {string}
|
|
63
69
|
* @memberof CreateAccountRequestDto
|
|
64
70
|
*/
|
|
65
71
|
'houseNumber': string;
|
|
66
72
|
/**
|
|
67
|
-
*
|
|
73
|
+
* Optional field to enter the type of the account holder.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof CreateAccountRequestDto
|
|
76
|
+
*/
|
|
77
|
+
'type'?: CreateAccountRequestDtoTypeEnum;
|
|
78
|
+
/**
|
|
79
|
+
* The account\'s holder date of birth (Required for account of type person).
|
|
68
80
|
* @type {string}
|
|
69
81
|
* @memberof CreateAccountRequestDto
|
|
70
82
|
*/
|
|
71
83
|
'birthDate': string;
|
|
72
84
|
/**
|
|
73
|
-
* The account\'s
|
|
85
|
+
* The account\'s holder company name (Required for account of type org).
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof CreateAccountRequestDto
|
|
88
|
+
*/
|
|
89
|
+
'companyName'?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The account\'s holder phone number.
|
|
74
92
|
* @type {string}
|
|
75
93
|
* @memberof CreateAccountRequestDto
|
|
76
94
|
*/
|
|
@@ -94,9 +112,21 @@ export interface CreateAccountRequestDto {
|
|
|
94
112
|
*/
|
|
95
113
|
'customFields'?: object;
|
|
96
114
|
}
|
|
115
|
+
export declare const CreateAccountRequestDtoTitleEnum: {
|
|
116
|
+
readonly Empty: "";
|
|
117
|
+
readonly Dr: "Dr.";
|
|
118
|
+
readonly DrMed: "Dr. med.";
|
|
119
|
+
readonly ProfDrMed: "Prof. Dr. med.";
|
|
120
|
+
};
|
|
121
|
+
export type CreateAccountRequestDtoTitleEnum = typeof CreateAccountRequestDtoTitleEnum[keyof typeof CreateAccountRequestDtoTitleEnum];
|
|
97
122
|
export declare const CreateAccountRequestDtoGenderEnum: {
|
|
98
123
|
readonly Male: "male";
|
|
99
124
|
readonly Female: "female";
|
|
100
125
|
readonly Unspecified: "unspecified";
|
|
101
126
|
};
|
|
102
|
-
export
|
|
127
|
+
export type CreateAccountRequestDtoGenderEnum = typeof CreateAccountRequestDtoGenderEnum[keyof typeof CreateAccountRequestDtoGenderEnum];
|
|
128
|
+
export declare const CreateAccountRequestDtoTypeEnum: {
|
|
129
|
+
readonly Person: "person";
|
|
130
|
+
readonly Org: "org";
|
|
131
|
+
};
|
|
132
|
+
export type CreateAccountRequestDtoTypeEnum = typeof CreateAccountRequestDtoTypeEnum[keyof typeof CreateAccountRequestDtoTypeEnum];
|
|
@@ -13,9 +13,19 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CreateAccountRequestDtoGenderEnum = void 0;
|
|
16
|
+
exports.CreateAccountRequestDtoTypeEnum = exports.CreateAccountRequestDtoGenderEnum = exports.CreateAccountRequestDtoTitleEnum = void 0;
|
|
17
|
+
exports.CreateAccountRequestDtoTitleEnum = {
|
|
18
|
+
Empty: '',
|
|
19
|
+
Dr: 'Dr.',
|
|
20
|
+
DrMed: 'Dr. med.',
|
|
21
|
+
ProfDrMed: 'Prof. Dr. med.'
|
|
22
|
+
};
|
|
17
23
|
exports.CreateAccountRequestDtoGenderEnum = {
|
|
18
24
|
Male: 'male',
|
|
19
25
|
Female: 'female',
|
|
20
26
|
Unspecified: 'unspecified'
|
|
21
27
|
};
|
|
28
|
+
exports.CreateAccountRequestDtoTypeEnum = {
|
|
29
|
+
Person: 'person',
|
|
30
|
+
Org: 'org'
|
|
31
|
+
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ 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';
|
|
8
7
|
export * from './register-policy-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -18,7 +18,6 @@ __exportStar(require("./account-class"), exports);
|
|
|
18
18
|
__exportStar(require("./create-account-request-dto"), exports);
|
|
19
19
|
__exportStar(require("./create-account-response-class"), exports);
|
|
20
20
|
__exportStar(require("./delete-request-dto"), exports);
|
|
21
|
-
__exportStar(require("./get-account-request-dto"), exports);
|
|
22
21
|
__exportStar(require("./get-account-response-class"), exports);
|
|
23
22
|
__exportStar(require("./list-accounts-response-class"), exports);
|
|
24
23
|
__exportStar(require("./register-policy-request-dto"), exports);
|
|
@@ -16,61 +16,79 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface UpdateAccountRequestDto {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Optional field to enter the honorific title you want to be called.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateAccountRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'title'?: UpdateAccountRequestDtoTitleEnum;
|
|
24
|
+
/**
|
|
25
|
+
* The account\'s holder first name.
|
|
20
26
|
* @type {string}
|
|
21
27
|
* @memberof UpdateAccountRequestDto
|
|
22
28
|
*/
|
|
23
29
|
'firstName': string;
|
|
24
30
|
/**
|
|
25
|
-
* The account\'s last name.
|
|
31
|
+
* The account\'s holder last name.
|
|
26
32
|
* @type {string}
|
|
27
33
|
* @memberof UpdateAccountRequestDto
|
|
28
34
|
*/
|
|
29
35
|
'lastName': string;
|
|
30
36
|
/**
|
|
31
|
-
* The account\'s email address. It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
|
|
37
|
+
* The account\'s holder email address. It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
|
|
32
38
|
* @type {string}
|
|
33
39
|
* @memberof UpdateAccountRequestDto
|
|
34
40
|
*/
|
|
35
41
|
'email': string;
|
|
36
42
|
/**
|
|
37
|
-
* The account\'s gender.
|
|
43
|
+
* The account\'s holder gender.
|
|
38
44
|
* @type {string}
|
|
39
45
|
* @memberof UpdateAccountRequestDto
|
|
40
46
|
*/
|
|
41
47
|
'gender': UpdateAccountRequestDtoGenderEnum;
|
|
42
48
|
/**
|
|
43
|
-
* The account\'s street name.
|
|
49
|
+
* The account\'s holder street name.
|
|
44
50
|
* @type {string}
|
|
45
51
|
* @memberof UpdateAccountRequestDto
|
|
46
52
|
*/
|
|
47
53
|
'street': string;
|
|
48
54
|
/**
|
|
49
|
-
* The account\'s ZIP or postal code.
|
|
55
|
+
* The account\'s holder ZIP or postal code.
|
|
50
56
|
* @type {string}
|
|
51
57
|
* @memberof UpdateAccountRequestDto
|
|
52
58
|
*/
|
|
53
59
|
'zipCode': string;
|
|
54
60
|
/**
|
|
55
|
-
* The account\'s city, district, suburb, town, or village.
|
|
61
|
+
* The account\'s holder city, district, suburb, town, or village.
|
|
56
62
|
* @type {string}
|
|
57
63
|
* @memberof UpdateAccountRequestDto
|
|
58
64
|
*/
|
|
59
65
|
'city': string;
|
|
60
66
|
/**
|
|
61
|
-
* The account\'s house number.
|
|
67
|
+
* The account\'s holder house number.
|
|
62
68
|
* @type {string}
|
|
63
69
|
* @memberof UpdateAccountRequestDto
|
|
64
70
|
*/
|
|
65
71
|
'houseNumber': string;
|
|
66
72
|
/**
|
|
67
|
-
*
|
|
73
|
+
* Optional field to enter the type of the account holder.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof UpdateAccountRequestDto
|
|
76
|
+
*/
|
|
77
|
+
'type'?: UpdateAccountRequestDtoTypeEnum;
|
|
78
|
+
/**
|
|
79
|
+
* The account\'s holder date of birth (Required for account of type person).
|
|
68
80
|
* @type {string}
|
|
69
81
|
* @memberof UpdateAccountRequestDto
|
|
70
82
|
*/
|
|
71
83
|
'birthDate': string;
|
|
72
84
|
/**
|
|
73
|
-
* The account\'s
|
|
85
|
+
* The account\'s holder company name (Required for account of type org).
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof UpdateAccountRequestDto
|
|
88
|
+
*/
|
|
89
|
+
'companyName'?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The account\'s holder phone number.
|
|
74
92
|
* @type {string}
|
|
75
93
|
* @memberof UpdateAccountRequestDto
|
|
76
94
|
*/
|
|
@@ -93,16 +111,22 @@ export interface UpdateAccountRequestDto {
|
|
|
93
111
|
* @memberof UpdateAccountRequestDto
|
|
94
112
|
*/
|
|
95
113
|
'customFields'?: object;
|
|
96
|
-
/**
|
|
97
|
-
* The account\'s code.
|
|
98
|
-
* @type {string}
|
|
99
|
-
* @memberof UpdateAccountRequestDto
|
|
100
|
-
*/
|
|
101
|
-
'code'?: string;
|
|
102
114
|
}
|
|
115
|
+
export declare const UpdateAccountRequestDtoTitleEnum: {
|
|
116
|
+
readonly Empty: "";
|
|
117
|
+
readonly Dr: "Dr.";
|
|
118
|
+
readonly DrMed: "Dr. med.";
|
|
119
|
+
readonly ProfDrMed: "Prof. Dr. med.";
|
|
120
|
+
};
|
|
121
|
+
export type UpdateAccountRequestDtoTitleEnum = typeof UpdateAccountRequestDtoTitleEnum[keyof typeof UpdateAccountRequestDtoTitleEnum];
|
|
103
122
|
export declare const UpdateAccountRequestDtoGenderEnum: {
|
|
104
123
|
readonly Male: "male";
|
|
105
124
|
readonly Female: "female";
|
|
106
125
|
readonly Unspecified: "unspecified";
|
|
107
126
|
};
|
|
108
|
-
export
|
|
127
|
+
export type UpdateAccountRequestDtoGenderEnum = typeof UpdateAccountRequestDtoGenderEnum[keyof typeof UpdateAccountRequestDtoGenderEnum];
|
|
128
|
+
export declare const UpdateAccountRequestDtoTypeEnum: {
|
|
129
|
+
readonly Person: "person";
|
|
130
|
+
readonly Org: "org";
|
|
131
|
+
};
|
|
132
|
+
export type UpdateAccountRequestDtoTypeEnum = typeof UpdateAccountRequestDtoTypeEnum[keyof typeof UpdateAccountRequestDtoTypeEnum];
|
|
@@ -13,9 +13,19 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UpdateAccountRequestDtoGenderEnum = void 0;
|
|
16
|
+
exports.UpdateAccountRequestDtoTypeEnum = exports.UpdateAccountRequestDtoGenderEnum = exports.UpdateAccountRequestDtoTitleEnum = void 0;
|
|
17
|
+
exports.UpdateAccountRequestDtoTitleEnum = {
|
|
18
|
+
Empty: '',
|
|
19
|
+
Dr: 'Dr.',
|
|
20
|
+
DrMed: 'Dr. med.',
|
|
21
|
+
ProfDrMed: 'Prof. Dr. med.'
|
|
22
|
+
};
|
|
17
23
|
exports.UpdateAccountRequestDtoGenderEnum = {
|
|
18
24
|
Male: 'male',
|
|
19
25
|
Female: 'female',
|
|
20
26
|
Unspecified: 'unspecified'
|
|
21
27
|
};
|
|
28
|
+
exports.UpdateAccountRequestDtoTypeEnum = {
|
|
29
|
+
Person: 'person',
|
|
30
|
+
Org: 'org'
|
|
31
|
+
};
|
package/models/account-class.ts
CHANGED
|
@@ -38,6 +38,12 @@ export interface AccountClass {
|
|
|
38
38
|
* @memberof AccountClass
|
|
39
39
|
*/
|
|
40
40
|
'accountNumber': string;
|
|
41
|
+
/**
|
|
42
|
+
* The account\'s title.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof AccountClass
|
|
45
|
+
*/
|
|
46
|
+
'title': AccountClassTitleEnum;
|
|
41
47
|
/**
|
|
42
48
|
* The account\'s first name.
|
|
43
49
|
* @type {string}
|
|
@@ -91,13 +97,25 @@ export interface AccountClass {
|
|
|
91
97
|
* @type {string}
|
|
92
98
|
* @memberof AccountClass
|
|
93
99
|
*/
|
|
94
|
-
'birthDate'
|
|
100
|
+
'birthDate'?: string;
|
|
95
101
|
/**
|
|
96
102
|
* The account\'s phone number.
|
|
97
103
|
* @type {string}
|
|
98
104
|
* @memberof AccountClass
|
|
99
105
|
*/
|
|
100
106
|
'phone': string;
|
|
107
|
+
/**
|
|
108
|
+
* The type of account, default to person
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof AccountClass
|
|
111
|
+
*/
|
|
112
|
+
'type': string;
|
|
113
|
+
/**
|
|
114
|
+
* The company name of account, required for account type org
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof AccountClass
|
|
117
|
+
*/
|
|
118
|
+
'companyName'?: string;
|
|
101
119
|
/**
|
|
102
120
|
* The account\'s version.
|
|
103
121
|
* @type {number}
|
|
@@ -136,3 +154,13 @@ export interface AccountClass {
|
|
|
136
154
|
'customFields': object;
|
|
137
155
|
}
|
|
138
156
|
|
|
157
|
+
export const AccountClassTitleEnum = {
|
|
158
|
+
Empty: '',
|
|
159
|
+
Dr: 'Dr.',
|
|
160
|
+
DrMed: 'Dr. med.',
|
|
161
|
+
ProfDrMed: 'Prof. Dr. med.'
|
|
162
|
+
} as const;
|
|
163
|
+
|
|
164
|
+
export type AccountClassTitleEnum = typeof AccountClassTitleEnum[keyof typeof AccountClassTitleEnum];
|
|
165
|
+
|
|
166
|
+
|
|
@@ -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 and can be useful for searching and tracking.
|
|
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,7 +2,6 @@ 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';
|
|
8
7
|
export * from './register-policy-request-dto';
|
|
@@ -21,61 +21,79 @@
|
|
|
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\'s holder 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\'s holder 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 and can be useful for searching and tracking.
|
|
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 UpdateAccountRequestDto
|
|
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 UpdateAccountRequestDto
|
|
45
51
|
*/
|
|
46
52
|
'gender': UpdateAccountRequestDtoGenderEnum;
|
|
47
53
|
/**
|
|
48
|
-
* The account\'s street name.
|
|
54
|
+
* The account\'s holder 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\'s holder 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\'s holder 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\'s holder 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.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof UpdateAccountRequestDto
|
|
81
|
+
*/
|
|
82
|
+
'type'?: UpdateAccountRequestDtoTypeEnum;
|
|
83
|
+
/**
|
|
84
|
+
* The account\'s holder date of birth (Required for account of type person).
|
|
73
85
|
* @type {string}
|
|
74
86
|
* @memberof UpdateAccountRequestDto
|
|
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 UpdateAccountRequestDto
|
|
93
|
+
*/
|
|
94
|
+
'companyName'?: string;
|
|
95
|
+
/**
|
|
96
|
+
* The account\'s holder phone number.
|
|
79
97
|
* @type {string}
|
|
80
98
|
* @memberof UpdateAccountRequestDto
|
|
81
99
|
*/
|
|
@@ -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-node",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/account-sdk-node",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"prepare": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"axios": "^0.
|
|
21
|
+
"axios": "^0.27.2",
|
|
22
22
|
"form-data": "^4.0.0",
|
|
23
23
|
"url": "^0.11.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
|
|
26
|
+
"@types/node": "^12.11.5",
|
|
27
27
|
"typescript": "^4.0"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -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,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* EMIL AccountService
|
|
6
|
-
* The EMIL AccountService 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 });
|