@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
package/dist/common.d.ts
CHANGED
|
@@ -63,3 +63,29 @@ export declare const toPathString: (url: URL) => string;
|
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
65
|
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
66
|
+
/**
|
|
67
|
+
* EMIL AccountService
|
|
68
|
+
* The EMIL AccountService API description
|
|
69
|
+
*
|
|
70
|
+
* The version of the OpenAPI document: 1.0
|
|
71
|
+
*
|
|
72
|
+
*
|
|
73
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
74
|
+
* https://openapi-generator.tech
|
|
75
|
+
* Do not edit the class manually.
|
|
76
|
+
*/
|
|
77
|
+
export interface IStorageConverter<D, SD> {
|
|
78
|
+
toStorageData(data: D): SD;
|
|
79
|
+
fromStorageData(storageData: SD): D;
|
|
80
|
+
}
|
|
81
|
+
export interface IStorage {
|
|
82
|
+
get<T>(key: string, converter?: IStorageConverter<T, any>): T | null;
|
|
83
|
+
set<T>(key: string, value: T, converter?: IStorageConverter<T, any>): void;
|
|
84
|
+
}
|
|
85
|
+
export declare class LocalStorage implements IStorage {
|
|
86
|
+
readonly storage: Storage;
|
|
87
|
+
constructor();
|
|
88
|
+
get<T>(key: string, converter?: IStorageConverter<T, any>): T | null;
|
|
89
|
+
set<T>(key: string, value: T, converter?: IStorageConverter<T, any>): void;
|
|
90
|
+
}
|
|
91
|
+
export declare const defaultStorage: () => IStorage;
|
package/dist/common.js
CHANGED
|
@@ -38,7 +38,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
38
38
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
39
39
|
function step(op) {
|
|
40
40
|
if (f) throw new TypeError("Generator is already executing.");
|
|
41
|
-
while (_) try {
|
|
41
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
42
42
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
43
43
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
44
44
|
switch (op[0]) {
|
|
@@ -60,7 +60,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63
|
-
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
63
|
+
exports.defaultStorage = exports.LocalStorage = exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
64
64
|
var base_1 = require("./base");
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
@@ -241,3 +241,36 @@ var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configu
|
|
|
241
241
|
};
|
|
242
242
|
};
|
|
243
243
|
exports.createRequestFunction = createRequestFunction;
|
|
244
|
+
var LocalStorage = /** @class */ (function () {
|
|
245
|
+
function LocalStorage() {
|
|
246
|
+
this.storage = localStorage;
|
|
247
|
+
}
|
|
248
|
+
LocalStorage.prototype.get = function (key, converter) {
|
|
249
|
+
var jsonValue = this.storage.getItem(key);
|
|
250
|
+
if (jsonValue === null) {
|
|
251
|
+
return null;
|
|
252
|
+
}
|
|
253
|
+
var value = JSON.parse(jsonValue);
|
|
254
|
+
if (converter !== undefined) {
|
|
255
|
+
return converter.fromStorageData(value);
|
|
256
|
+
}
|
|
257
|
+
else {
|
|
258
|
+
return value;
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
LocalStorage.prototype.set = function (key, value, converter) {
|
|
262
|
+
var valueToStore = value;
|
|
263
|
+
if (converter !== undefined) {
|
|
264
|
+
valueToStore = converter.toStorageData(value);
|
|
265
|
+
}
|
|
266
|
+
var jsonValue = JSON.stringify(valueToStore);
|
|
267
|
+
this.storage.setItem(key, jsonValue);
|
|
268
|
+
};
|
|
269
|
+
return LocalStorage;
|
|
270
|
+
}());
|
|
271
|
+
exports.LocalStorage = LocalStorage;
|
|
272
|
+
var _defaultStorage = null;
|
|
273
|
+
var defaultStorage = function () {
|
|
274
|
+
return _defaultStorage || (_defaultStorage = new LocalStorage());
|
|
275
|
+
};
|
|
276
|
+
exports.defaultStorage = defaultStorage;
|
package/dist/configuration.d.ts
CHANGED
|
@@ -68,13 +68,6 @@ export declare class Configuration {
|
|
|
68
68
|
* @type {new () => FormData}
|
|
69
69
|
*/
|
|
70
70
|
formDataCtor?: new () => any;
|
|
71
|
-
/**
|
|
72
|
-
* parameter for automatically refreshing access token for oauth2 security
|
|
73
|
-
*
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof Configuration
|
|
76
|
-
*/
|
|
77
|
-
refreshToken?: string;
|
|
78
71
|
constructor(param?: ConfigurationParameters);
|
|
79
72
|
/**
|
|
80
73
|
* Check if the given MIME is a JSON MIME.
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -27,8 +27,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.BaseAPI = void 0;
|
|
30
|
+
exports.BaseAPI = exports.Environment = void 0;
|
|
31
31
|
var base_1 = require("./base");
|
|
32
|
+
Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return base_1.Environment; } });
|
|
32
33
|
Object.defineProperty(exports, "BaseAPI", { enumerable: true, get: function () { return base_1.BaseAPI; } });
|
|
33
34
|
__exportStar(require("./api"), exports);
|
|
34
35
|
__exportStar(require("./configuration"), exports);
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { PolicyClass } from './policy-class';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -33,6 +34,12 @@ export interface AccountClass {
|
|
|
33
34
|
* @memberof AccountClass
|
|
34
35
|
*/
|
|
35
36
|
'accountNumber': string;
|
|
37
|
+
/**
|
|
38
|
+
* The account\'s title.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AccountClass
|
|
41
|
+
*/
|
|
42
|
+
'title'?: AccountClassTitleEnum;
|
|
36
43
|
/**
|
|
37
44
|
* The account\'s first name.
|
|
38
45
|
* @type {string}
|
|
@@ -86,13 +93,25 @@ export interface AccountClass {
|
|
|
86
93
|
* @type {string}
|
|
87
94
|
* @memberof AccountClass
|
|
88
95
|
*/
|
|
89
|
-
'birthDate'
|
|
96
|
+
'birthDate'?: string;
|
|
90
97
|
/**
|
|
91
98
|
* The account\'s phone number.
|
|
92
99
|
* @type {string}
|
|
93
100
|
* @memberof AccountClass
|
|
94
101
|
*/
|
|
95
102
|
'phone': string;
|
|
103
|
+
/**
|
|
104
|
+
* The type of account, default to person
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof AccountClass
|
|
107
|
+
*/
|
|
108
|
+
'type': string;
|
|
109
|
+
/**
|
|
110
|
+
* The company name of account, required for account type org
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof AccountClass
|
|
113
|
+
*/
|
|
114
|
+
'companyName'?: string;
|
|
96
115
|
/**
|
|
97
116
|
* The account\'s version.
|
|
98
117
|
* @type {number}
|
|
@@ -113,20 +132,27 @@ export interface AccountClass {
|
|
|
113
132
|
'updatedAt': string;
|
|
114
133
|
/**
|
|
115
134
|
* Policies linked to the account.
|
|
116
|
-
* @type {Array<
|
|
135
|
+
* @type {Array<PolicyClass>}
|
|
117
136
|
* @memberof AccountClass
|
|
118
137
|
*/
|
|
119
|
-
'policies': Array<
|
|
138
|
+
'policies': Array<PolicyClass>;
|
|
120
139
|
/**
|
|
121
140
|
* Optional field contain extra information
|
|
122
141
|
* @type {object}
|
|
123
142
|
* @memberof AccountClass
|
|
124
143
|
*/
|
|
125
|
-
'metadata'
|
|
144
|
+
'metadata'?: object;
|
|
126
145
|
/**
|
|
127
146
|
* Optional field contain custom fields
|
|
128
147
|
* @type {object}
|
|
129
148
|
* @memberof AccountClass
|
|
130
149
|
*/
|
|
131
|
-
'customFields'
|
|
150
|
+
'customFields'?: object;
|
|
132
151
|
}
|
|
152
|
+
export declare const AccountClassTitleEnum: {
|
|
153
|
+
readonly Empty: "";
|
|
154
|
+
readonly Dr: "Dr.";
|
|
155
|
+
readonly DrMed: "Dr. med.";
|
|
156
|
+
readonly ProfDrMed: "Prof. Dr. med.";
|
|
157
|
+
};
|
|
158
|
+
export type AccountClassTitleEnum = typeof AccountClassTitleEnum[keyof typeof AccountClassTitleEnum];
|
|
@@ -13,3 +13,10 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AccountClassTitleEnum = void 0;
|
|
17
|
+
exports.AccountClassTitleEnum = {
|
|
18
|
+
Empty: '',
|
|
19
|
+
Dr: 'Dr.',
|
|
20
|
+
DrMed: 'Dr. med.',
|
|
21
|
+
ProfDrMed: 'Prof. Dr. med.'
|
|
22
|
+
};
|
|
@@ -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
|
|
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,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';
|
package/dist/models/index.js
CHANGED
|
@@ -18,9 +18,9 @@ __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);
|
|
23
|
+
__exportStar(require("./policy-class"), exports);
|
|
24
24
|
__exportStar(require("./register-policy-request-dto"), exports);
|
|
25
25
|
__exportStar(require("./update-account-request-dto"), exports);
|
|
26
26
|
__exportStar(require("./update-account-response-class"), exports);
|
|
@@ -0,0 +1,30 @@
|
|
|
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 PolicyClass
|
|
16
|
+
*/
|
|
17
|
+
export interface PolicyClass {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for a policy.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PolicyClass
|
|
22
|
+
*/
|
|
23
|
+
'policyCode': string;
|
|
24
|
+
/**
|
|
25
|
+
* Number used on official documents.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PolicyClass
|
|
28
|
+
*/
|
|
29
|
+
'policyNumber': string;
|
|
30
|
+
}
|
|
@@ -16,61 +16,73 @@
|
|
|
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 holder\'s 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 holder\'s 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
|
|
37
|
+
* The account holder\'s 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 holder\'s 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 holder\'s 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 holder\'s 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 holder\'s 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 holder\'s 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.
|
|
68
74
|
* @type {string}
|
|
69
75
|
* @memberof UpdateAccountRequestDto
|
|
70
76
|
*/
|
|
71
|
-
'
|
|
77
|
+
'type'?: UpdateAccountRequestDtoTypeEnum;
|
|
72
78
|
/**
|
|
73
|
-
* The account\'s
|
|
79
|
+
* The account holder\'s company name (Required for account of type org).
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof UpdateAccountRequestDto
|
|
82
|
+
*/
|
|
83
|
+
'companyName'?: string;
|
|
84
|
+
/**
|
|
85
|
+
* The account holder\'s phone number.
|
|
74
86
|
* @type {string}
|
|
75
87
|
* @memberof UpdateAccountRequestDto
|
|
76
88
|
*/
|
|
@@ -81,6 +93,12 @@ export interface UpdateAccountRequestDto {
|
|
|
81
93
|
* @memberof UpdateAccountRequestDto
|
|
82
94
|
*/
|
|
83
95
|
'accountNumber'?: string;
|
|
96
|
+
/**
|
|
97
|
+
* The account holder\'s date of birth (Required for account of type person).
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof UpdateAccountRequestDto
|
|
100
|
+
*/
|
|
101
|
+
'birthDate': string;
|
|
84
102
|
/**
|
|
85
103
|
* Optional field to enter extra information.
|
|
86
104
|
* @type {object}
|
|
@@ -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/index.ts
CHANGED
package/models/account-class.ts
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { PolicyClass } from './policy-class';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
@@ -38,6 +39,12 @@ export interface AccountClass {
|
|
|
38
39
|
* @memberof AccountClass
|
|
39
40
|
*/
|
|
40
41
|
'accountNumber': string;
|
|
42
|
+
/**
|
|
43
|
+
* The account\'s title.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AccountClass
|
|
46
|
+
*/
|
|
47
|
+
'title'?: AccountClassTitleEnum;
|
|
41
48
|
/**
|
|
42
49
|
* The account\'s first name.
|
|
43
50
|
* @type {string}
|
|
@@ -91,13 +98,25 @@ export interface AccountClass {
|
|
|
91
98
|
* @type {string}
|
|
92
99
|
* @memberof AccountClass
|
|
93
100
|
*/
|
|
94
|
-
'birthDate'
|
|
101
|
+
'birthDate'?: string;
|
|
95
102
|
/**
|
|
96
103
|
* The account\'s phone number.
|
|
97
104
|
* @type {string}
|
|
98
105
|
* @memberof AccountClass
|
|
99
106
|
*/
|
|
100
107
|
'phone': string;
|
|
108
|
+
/**
|
|
109
|
+
* The type of account, default to person
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof AccountClass
|
|
112
|
+
*/
|
|
113
|
+
'type': string;
|
|
114
|
+
/**
|
|
115
|
+
* The company name of account, required for account type org
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof AccountClass
|
|
118
|
+
*/
|
|
119
|
+
'companyName'?: string;
|
|
101
120
|
/**
|
|
102
121
|
* The account\'s version.
|
|
103
122
|
* @type {number}
|
|
@@ -118,21 +137,31 @@ export interface AccountClass {
|
|
|
118
137
|
'updatedAt': string;
|
|
119
138
|
/**
|
|
120
139
|
* Policies linked to the account.
|
|
121
|
-
* @type {Array<
|
|
140
|
+
* @type {Array<PolicyClass>}
|
|
122
141
|
* @memberof AccountClass
|
|
123
142
|
*/
|
|
124
|
-
'policies': Array<
|
|
143
|
+
'policies': Array<PolicyClass>;
|
|
125
144
|
/**
|
|
126
145
|
* Optional field contain extra information
|
|
127
146
|
* @type {object}
|
|
128
147
|
* @memberof AccountClass
|
|
129
148
|
*/
|
|
130
|
-
'metadata'
|
|
149
|
+
'metadata'?: object;
|
|
131
150
|
/**
|
|
132
151
|
* Optional field contain custom fields
|
|
133
152
|
* @type {object}
|
|
134
153
|
* @memberof AccountClass
|
|
135
154
|
*/
|
|
136
|
-
'customFields'
|
|
155
|
+
'customFields'?: object;
|
|
137
156
|
}
|
|
138
157
|
|
|
158
|
+
export const AccountClassTitleEnum = {
|
|
159
|
+
Empty: '',
|
|
160
|
+
Dr: 'Dr.',
|
|
161
|
+
DrMed: 'Dr. med.',
|
|
162
|
+
ProfDrMed: 'Prof. Dr. med.'
|
|
163
|
+
} as const;
|
|
164
|
+
|
|
165
|
+
export type AccountClassTitleEnum = typeof AccountClassTitleEnum[keyof typeof AccountClassTitleEnum];
|
|
166
|
+
|
|
167
|
+
|