@emilgroup/account-sdk-node 1.3.0 → 1.3.2

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.
@@ -13,7 +13,6 @@ models/account-class.ts
13
13
  models/create-account-request-dto.ts
14
14
  models/create-account-response-class.ts
15
15
  models/delete-request-dto.ts
16
- models/get-account-request-dto.ts
17
16
  models/get-account-response-class.ts
18
17
  models/index.ts
19
18
  models/list-accounts-response-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/account-sdk-node@1.3.0 --save
20
+ npm install @emilgroup/account-sdk-node@1.3.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/account-sdk-node@1.3.0
24
+ yarn add @emilgroup/account-sdk-node@1.3.1
25
25
  ```
26
26
 
27
27
  And then you can import `AccountsApi`.
@@ -185,7 +185,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
185
185
  };
186
186
  },
187
187
  /**
188
- * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
188
+ * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
189
189
  * @summary List accounts
190
190
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
191
191
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -349,7 +349,7 @@ export const AccountsApiFp = function(configuration?: Configuration) {
349
349
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
350
350
  },
351
351
  /**
352
- * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
352
+ * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
353
353
  * @summary List accounts
354
354
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
355
355
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -422,7 +422,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
422
422
  return localVarFp.getAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
423
423
  },
424
424
  /**
425
- * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
425
+ * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
426
426
  * @summary List accounts
427
427
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
428
428
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -642,7 +642,7 @@ export class AccountsApi extends BaseAPI {
642
642
  }
643
643
 
644
644
  /**
645
- * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
645
+ * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
646
646
  * @summary List accounts
647
647
  * @param {AccountsApiListAccountsRequest} requestParameters Request parameters.
648
648
  * @param {*} [options] Override http request option.
package/api.ts CHANGED
@@ -29,9 +29,3 @@ import { AccountsApi } from './api';
29
29
 
30
30
  export * from './api/accounts-api';
31
31
 
32
-
33
- export enum Environment {
34
- Production = 'https://apiv2.emil.de',
35
- Test = 'https://apiv2-test.emil.de',
36
- Development = 'https://apiv2-dev.emil.de',
37
- }
package/base.ts CHANGED
@@ -21,7 +21,7 @@ import * as fs from 'fs';
21
21
  import * as path from 'path';
22
22
  import * as os from 'os';
23
23
 
24
- export const BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
24
+ export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
25
25
  const CONFIG_DIRECTORY = '.emil';
26
26
  const CONFIG_FILENAME = 'credentials';
27
27
  const KEY_USERNAME = 'emil_username';
@@ -47,6 +47,7 @@ export interface LoginClass {
47
47
  export enum Environment {
48
48
  Production = 'https://apiv2.emil.de',
49
49
  Test = 'https://apiv2-test.emil.de',
50
+ Development = 'https://apiv2-dev.emil.de',
50
51
  }
51
52
 
52
53
  let _retry_count = 0
@@ -52,7 +52,7 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
52
52
  */
53
53
  getAccount: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
54
54
  /**
55
- * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
55
+ * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
56
56
  * @summary List accounts
57
57
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
58
58
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -109,7 +109,7 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
109
109
  */
110
110
  getAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountResponseClass>>;
111
111
  /**
112
- * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
112
+ * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
113
113
  * @summary List accounts
114
114
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
115
115
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -166,7 +166,7 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
166
166
  */
167
167
  getAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetAccountResponseClass>;
168
168
  /**
169
- * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
169
+ * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
170
170
  * @summary List accounts
171
171
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
172
172
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -355,7 +355,7 @@ export declare class AccountsApi extends BaseAPI {
355
355
  */
356
356
  getAccount(requestParameters: AccountsApiGetAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountResponseClass, any>>;
357
357
  /**
358
- * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
358
+ * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
359
359
  * @summary List accounts
360
360
  * @param {AccountsApiListAccountsRequest} requestParameters Request parameters.
361
361
  * @param {*} [options] Override http request option.
@@ -246,7 +246,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
246
246
  });
247
247
  },
248
248
  /**
249
- * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
249
+ * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
250
250
  * @summary List accounts
251
251
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
252
252
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -437,7 +437,7 @@ var AccountsApiFp = function (configuration) {
437
437
  });
438
438
  },
439
439
  /**
440
- * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
440
+ * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
441
441
  * @summary List accounts
442
442
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
443
443
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -528,7 +528,7 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
528
528
  return localVarFp.getAccount(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
529
529
  },
530
530
  /**
531
- * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
531
+ * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
532
532
  * @summary List accounts
533
533
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
534
534
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -605,7 +605,7 @@ var AccountsApi = /** @class */ (function (_super) {
605
605
  return (0, exports.AccountsApiFp)(this.configuration).getAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
606
606
  };
607
607
  /**
608
- * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
608
+ * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
609
609
  * @summary List accounts
610
610
  * @param {AccountsApiListAccountsRequest} requestParameters Request parameters.
611
611
  * @param {*} [options] Override http request option.
package/dist/api.d.ts CHANGED
@@ -10,8 +10,3 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export * from './api/accounts-api';
13
- export declare enum Environment {
14
- Production = "https://apiv2.emil.de",
15
- Test = "https://apiv2-test.emil.de",
16
- Development = "https://apiv2-dev.emil.de"
17
- }
package/dist/api.js CHANGED
@@ -27,11 +27,4 @@ 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.Environment = void 0;
31
30
  __exportStar(require("./api/accounts-api"), exports);
32
- var Environment;
33
- (function (Environment) {
34
- Environment["Production"] = "https://apiv2.emil.de";
35
- Environment["Test"] = "https://apiv2-test.emil.de";
36
- Environment["Development"] = "https://apiv2-dev.emil.de";
37
- })(Environment = exports.Environment || (exports.Environment = {}));
package/dist/base.d.ts CHANGED
@@ -28,7 +28,8 @@ export interface LoginClass {
28
28
  }
29
29
  export declare enum Environment {
30
30
  Production = "https://apiv2.emil.de",
31
- Test = "https://apiv2-test.emil.de"
31
+ Test = "https://apiv2-test.emil.de",
32
+ Development = "https://apiv2-dev.emil.de"
32
33
  }
33
34
  export declare function resetRetry(): void;
34
35
  /**
package/dist/base.js CHANGED
@@ -109,7 +109,7 @@ var axios_1 = __importDefault(require("axios"));
109
109
  var fs = __importStar(require("fs"));
110
110
  var path = __importStar(require("path"));
111
111
  var os = __importStar(require("os"));
112
- exports.BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
112
+ exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
113
113
  var CONFIG_DIRECTORY = '.emil';
114
114
  var CONFIG_FILENAME = 'credentials';
115
115
  var KEY_USERNAME = 'emil_username';
@@ -129,6 +129,7 @@ var Environment;
129
129
  (function (Environment) {
130
130
  Environment["Production"] = "https://apiv2.emil.de";
131
131
  Environment["Test"] = "https://apiv2-test.emil.de";
132
+ Environment["Development"] = "https://apiv2-dev.emil.de";
132
133
  })(Environment = exports.Environment || (exports.Environment = {}));
133
134
  var _retry_count = 0;
134
135
  var _retry = null;
@@ -33,6 +33,12 @@ export interface AccountClass {
33
33
  * @memberof AccountClass
34
34
  */
35
35
  'accountNumber': string;
36
+ /**
37
+ * The account\'s title.
38
+ * @type {string}
39
+ * @memberof AccountClass
40
+ */
41
+ 'title': AccountClassTitleEnum;
36
42
  /**
37
43
  * The account\'s first name.
38
44
  * @type {string}
@@ -86,13 +92,25 @@ export interface AccountClass {
86
92
  * @type {string}
87
93
  * @memberof AccountClass
88
94
  */
89
- 'birthDate': string;
95
+ 'birthDate'?: string;
90
96
  /**
91
97
  * The account\'s phone number.
92
98
  * @type {string}
93
99
  * @memberof AccountClass
94
100
  */
95
101
  'phone': string;
102
+ /**
103
+ * The type of account, default to person
104
+ * @type {string}
105
+ * @memberof AccountClass
106
+ */
107
+ 'type': string;
108
+ /**
109
+ * The company name of account, required for account type org
110
+ * @type {string}
111
+ * @memberof AccountClass
112
+ */
113
+ 'companyName'?: string;
96
114
  /**
97
115
  * The account\'s version.
98
116
  * @type {number}
@@ -122,11 +140,18 @@ export interface AccountClass {
122
140
  * @type {object}
123
141
  * @memberof AccountClass
124
142
  */
125
- 'metadata'?: object;
143
+ 'metadata': object;
126
144
  /**
127
145
  * Optional field contain custom fields
128
146
  * @type {object}
129
147
  * @memberof AccountClass
130
148
  */
131
- 'customFields'?: object;
149
+ 'customFields': object;
132
150
  }
151
+ export declare const AccountClassTitleEnum: {
152
+ readonly Empty: "";
153
+ readonly Dr: "Dr.";
154
+ readonly DrMed: "Dr. med.";
155
+ readonly ProfDrMed: "Prof. Dr. med.";
156
+ };
157
+ 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
- * The account\'s first name.
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
- * Account\'s birth date.
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 phone number.
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
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
+ };
@@ -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';
@@ -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
- * The account\'s first name.
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
- * Account\'s birth date.
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 phone number.
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
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
+ };
@@ -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': string;
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}
@@ -127,12 +145,22 @@ export interface AccountClass {
127
145
  * @type {object}
128
146
  * @memberof AccountClass
129
147
  */
130
- 'metadata'?: object;
148
+ 'metadata': object;
131
149
  /**
132
150
  * Optional field contain custom fields
133
151
  * @type {object}
134
152
  * @memberof AccountClass
135
153
  */
136
- 'customFields'?: object;
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
- * The account\'s first name.
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
- * Account\'s birth date.
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 phone number.
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
- * The account\'s first name.
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
- * Account\'s birth date.
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 phone number.
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.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "OpenAPI client for @emilgroup/account-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -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 });
@@ -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
-