@emilgroup/accounting-sdk 1.34.1-beta.84 → 1.34.1-beta.85

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.
Files changed (37) hide show
  1. package/.openapi-generator/FILES +0 -2
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +8 -8
  4. package/api/booking-entries-api.ts +5 -5
  5. package/api/commission-account-mappings-api.ts +8 -8
  6. package/api/financial-accounts-api.ts +5 -5
  7. package/api/financial-transactions-api.ts +2 -2
  8. package/api/health-api.ts +1 -1
  9. package/api/number-ranges-api.ts +4 -4
  10. package/api/personal-accounts-api.ts +4 -4
  11. package/api/product-account-mappings-api.ts +12 -12
  12. package/base.ts +58 -9
  13. package/dist/api/accounting-configs-api.js +8 -8
  14. package/dist/api/booking-entries-api.js +5 -5
  15. package/dist/api/commission-account-mappings-api.js +8 -8
  16. package/dist/api/financial-accounts-api.js +5 -5
  17. package/dist/api/financial-transactions-api.js +2 -2
  18. package/dist/api/health-api.js +1 -1
  19. package/dist/api/number-ranges-api.js +4 -4
  20. package/dist/api/personal-accounts-api.js +4 -4
  21. package/dist/api/product-account-mappings-api.js +12 -12
  22. package/dist/base.d.ts +2 -0
  23. package/dist/base.js +59 -9
  24. package/dist/models/accounting-config-data-class.d.ts +3 -4
  25. package/dist/models/accounting-config-data-dto.d.ts +3 -4
  26. package/dist/models/index.d.ts +0 -2
  27. package/dist/models/index.js +0 -2
  28. package/models/accounting-config-data-class.ts +3 -4
  29. package/models/accounting-config-data-dto.ts +3 -4
  30. package/models/index.ts +0 -2
  31. package/package.json +1 -1
  32. package/dist/models/personal-account-range-class.d.ts +0 -42
  33. package/dist/models/personal-account-range-class.js +0 -21
  34. package/dist/models/personal-account-range-dto.d.ts +0 -42
  35. package/dist/models/personal-account-range-dto.js +0 -21
  36. package/models/personal-account-range-class.ts +0 -51
  37. package/models/personal-account-range-dto.ts +0 -51
package/dist/base.js CHANGED
@@ -117,6 +117,9 @@ var Environment;
117
117
  })(Environment = exports.Environment || (exports.Environment = {}));
118
118
  var _retry_count = 0;
119
119
  var _retry = null;
120
+ // Marks each request with the account (username) of the SDK object that sent it: only SDK objects of that
121
+ // account refresh and resend it, never an object of another account open in the same browser.
122
+ var REQUEST_OWNER = '_emilSdkOwner';
120
123
  function resetRetry() {
121
124
  _retry_count = 0;
122
125
  }
@@ -194,19 +197,24 @@ var BaseAPI = /** @class */ (function () {
194
197
  this.configuration.accessToken = '';
195
198
  this.configuration.baseOptions = __assign(__assign({}, baseOptions), { withCredentials: true, headers: __assign(__assign({}, headers), (_a = {}, _a[ACCOUNT_HEADER] = this.sessionAccount(), _a)) });
196
199
  };
197
- BaseAPI.prototype.useHeaderAuth = function (accessToken) {
200
+ BaseAPI.prototype.useHeaderAuth = function (accessToken, keepSessionData) {
201
+ if (keepSessionData === void 0) { keepSessionData = false; }
198
202
  this.configuration.accessToken = accessToken ? "Bearer ".concat(accessToken) : '';
199
203
  this.tokenData.accessToken = accessToken;
200
- delete this.tokenData.authMode;
201
- delete this.tokenData.sub;
204
+ // An app without cookieAuth does not own the session fields: its refresh leaves them for the session apps.
205
+ if (!keepSessionData || this.configuration.cookieAuth) {
206
+ delete this.tokenData.authMode;
207
+ delete this.tokenData.sub;
208
+ }
202
209
  if (this.configuration.cookieAuth) {
203
210
  var _a = this.configuration.baseOptions || {}, withCredentials = _a.withCredentials, headers = _a.headers, baseOptions = __rest(_a, ["withCredentials", "headers"]);
204
211
  var _b = headers || {}, _c = ACCOUNT_HEADER, account = _b[_c], otherHeaders = __rest(_b, [typeof _c === "symbol" ? _c : _c + ""]);
205
212
  this.configuration.baseOptions = __assign(__assign({}, baseOptions), { headers: otherHeaders });
206
213
  }
207
214
  };
208
- BaseAPI.prototype.applyTokenReply = function (_a) {
215
+ BaseAPI.prototype.applyTokenReply = function (_a, fromRefresh) {
209
216
  var accessToken = _a.accessToken, authMode = _a.authMode, session = _a.session;
217
+ if (fromRefresh === void 0) { fromRefresh = false; }
210
218
  if (this.configuration.cookieAuth && SESSION_MODES.indexOf(authMode) !== -1 && (session === null || session === void 0 ? void 0 : session.sub)) {
211
219
  this.tokenData.authMode = authMode;
212
220
  this.tokenData.sub = session.sub;
@@ -224,7 +232,7 @@ var BaseAPI = /** @class */ (function () {
224
232
  this.useSessionAuth();
225
233
  }
226
234
  else {
227
- this.useHeaderAuth(accessToken);
235
+ this.useHeaderAuth(accessToken, fromRefresh);
228
236
  }
229
237
  };
230
238
  BaseAPI.prototype.sessionHeaders = function () {
@@ -359,8 +367,35 @@ var BaseAPI = /** @class */ (function () {
359
367
  }
360
368
  refreshTokenAxios = axios_1.default.create();
361
369
  refreshTokenAxios.interceptors.response.use(function (response) {
362
- var permissions = response.data.permissions;
370
+ var _a, _b;
371
+ var _c = response.data, permissions = _c.permissions, accessToken = _c.accessToken, authMode = _c.authMode;
372
+ // Decided before the merge below: newer session data must not keep the new token from this object.
373
+ var onSession = _this.usesSession();
374
+ // Newer data saved for this account (e.g. the session mode the shell saved later) wins over the copy
375
+ // read when the object was made; data of another account or another workspace (sub) is never taken.
376
+ var latest = ((typeof window !== 'undefined' && (0, common_1.defaultStorage)().get(TOKEN_DATA)) || {});
377
+ var ownSub = _this.sessionAccount();
378
+ if (((_a = latest.username) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === username.toLowerCase()
379
+ && (!ownSub || !latest.sub || latest.sub === ownSub)) {
380
+ // A bare reset ({username}, an app's account check) keeps this copy's other fields; any fuller record
381
+ // is the truth, so fields it lacks were removed on purpose (e.g. a rollback) and stay removed.
382
+ var bareReset = Object.keys(latest).every(function (key) { return key === 'username'; });
383
+ _this.tokenData = bareReset ? __assign(__assign({}, _this.tokenData), latest) : __assign({}, latest);
384
+ }
385
+ // The reply is for this account: label it, or an SDK object of another account would take the token.
386
+ if (((_b = _this.tokenData.username) === null || _b === void 0 ? void 0 : _b.toLowerCase()) !== username.toLowerCase()) {
387
+ _this.tokenData.username = username;
388
+ }
363
389
  _this.tokenData.permissions = permissions;
390
+ // Keep the new token for the page's next SDK objects; session data is left as it is.
391
+ if (accessToken && !onSession) {
392
+ _this.tokenData.accessToken = accessToken;
393
+ _this.configuration.accessToken = "Bearer ".concat(accessToken);
394
+ }
395
+ else if (accessToken && authMode === 'both') {
396
+ // Both: this app stays on the session; the token is kept for apps not moved yet.
397
+ _this.tokenData.accessToken = accessToken;
398
+ }
364
399
  _this.storeTokenData(_this.tokenData);
365
400
  return response;
366
401
  });
@@ -395,17 +430,32 @@ var BaseAPI = /** @class */ (function () {
395
430
  BaseAPI.prototype.cleanTokenData = function () {
396
431
  this.storeTokenData(null);
397
432
  };
433
+ BaseAPI.prototype.ownAccount = function () {
434
+ return (this.configuration.username || '').toLowerCase();
435
+ };
436
+ BaseAPI.prototype.withOwner = function (options) {
437
+ var _a;
438
+ // An object without a username cannot refresh itself: its requests stay unmarked, as before.
439
+ if (!this.ownAccount()) {
440
+ return __assign({}, options);
441
+ }
442
+ return __assign(__assign({}, options), (_a = {}, _a[REQUEST_OWNER] = this.ownAccount(), _a));
443
+ };
398
444
  BaseAPI.prototype.attachInterceptor = function (axios) {
399
445
  var _this = this;
400
446
  axios.interceptors.response.use(function (res) {
401
447
  return res;
402
448
  }, function (err) { return __awaiter(_this, void 0, void 0, function () {
403
- var originalConfig, reply, _error_1, reply, _error_2;
449
+ var originalConfig, owner, reply, _error_1, reply, _error_2;
404
450
  var _this = this;
405
451
  return __generator(this, function (_a) {
406
452
  switch (_a.label) {
407
453
  case 0:
408
454
  originalConfig = err.config;
455
+ owner = originalConfig === null || originalConfig === void 0 ? void 0 : originalConfig[REQUEST_OWNER];
456
+ if (owner !== undefined && owner !== this.ownAccount()) {
457
+ return [2 /*return*/, Promise.reject(err)];
458
+ }
409
459
  if (!(err.response && !(err.response instanceof XMLHttpRequest))) return [3 /*break*/, 5];
410
460
  if (!((err.response.status === 401 || err.response.status === 403)
411
461
  && !originalConfig._retry)) return [3 /*break*/, 4];
@@ -417,7 +467,7 @@ var BaseAPI = /** @class */ (function () {
417
467
  case 2:
418
468
  reply = _a.sent();
419
469
  this.tokenData.permissions = reply.permissions;
420
- this.applyTokenReply(reply);
470
+ this.applyTokenReply(reply, true);
421
471
  this.storeTokenData(this.tokenData);
422
472
  if (!this.usesSession()) {
423
473
  return [2 /*return*/, axios(this.withCurrentAuth(originalConfig))];
@@ -459,7 +509,7 @@ var BaseAPI = /** @class */ (function () {
459
509
  reply = _a.sent();
460
510
  this.tokenData.permissions = reply.permissions;
461
511
  _retry = true;
462
- this.applyTokenReply(reply);
512
+ this.applyTokenReply(reply, true);
463
513
  this.storeTokenData(this.tokenData);
464
514
  // The limit is for refreshes that do not help; one that worked starts the count again.
465
515
  // Not awaited, so a failed retry reaches the app as the same axios error as before.
@@ -11,7 +11,6 @@
11
11
  */
12
12
  import { AccountMappingClass } from './account-mapping-class';
13
13
  import { AccountingConfigurationClass } from './accounting-configuration-class';
14
- import { PersonalAccountRangeClass } from './personal-account-range-class';
15
14
  /**
16
15
  *
17
16
  * @export
@@ -37,9 +36,9 @@ export interface AccountingConfigDataClass {
37
36
  */
38
37
  'accountingConfiguration'?: AccountingConfigurationClass;
39
38
  /**
40
- * The personal account number ranges, one per partner group
41
- * @type {Array<PersonalAccountRangeClass>}
39
+ *
40
+ * @type {Array<object>}
42
41
  * @memberof AccountingConfigDataClass
43
42
  */
44
- 'personalAccountRanges'?: Array<PersonalAccountRangeClass>;
43
+ 'personalAccountRanges': Array<object>;
45
44
  }
@@ -11,7 +11,6 @@
11
11
  */
12
12
  import { AccountingConfigDataDtoAccountingConfiguration } from './accounting-config-data-dto-accounting-configuration';
13
13
  import { AccountingConfigDataDtoDefaultAccountMappings } from './accounting-config-data-dto-default-account-mappings';
14
- import { PersonalAccountRangeDto } from './personal-account-range-dto';
15
14
  /**
16
15
  *
17
16
  * @export
@@ -37,9 +36,9 @@ export interface AccountingConfigDataDto {
37
36
  */
38
37
  'accountingConfiguration'?: AccountingConfigDataDtoAccountingConfiguration;
39
38
  /**
40
- * The personal account number ranges: exactly one each for policyholder, risk_carrier and broker
41
- * @type {Array<PersonalAccountRangeDto>}
39
+ *
40
+ * @type {Array<object>}
42
41
  * @memberof AccountingConfigDataDto
43
42
  */
44
- 'personalAccountRanges': Array<PersonalAccountRangeDto>;
43
+ 'personalAccountRanges': Array<object>;
45
44
  }
@@ -50,8 +50,6 @@ export * from './list-products-with-account-mappings-response-class';
50
50
  export * from './number-range-class';
51
51
  export * from './opening-balance-item-dto';
52
52
  export * from './personal-account-class';
53
- export * from './personal-account-range-class';
54
- export * from './personal-account-range-dto';
55
53
  export * from './post-financial-event-request-dto';
56
54
  export * from './post-financial-event-response-class';
57
55
  export * from './premium-item-account-mapping-class';
@@ -66,8 +66,6 @@ __exportStar(require("./list-products-with-account-mappings-response-class"), ex
66
66
  __exportStar(require("./number-range-class"), exports);
67
67
  __exportStar(require("./opening-balance-item-dto"), exports);
68
68
  __exportStar(require("./personal-account-class"), exports);
69
- __exportStar(require("./personal-account-range-class"), exports);
70
- __exportStar(require("./personal-account-range-dto"), exports);
71
69
  __exportStar(require("./post-financial-event-request-dto"), exports);
72
70
  __exportStar(require("./post-financial-event-response-class"), exports);
73
71
  __exportStar(require("./premium-item-account-mapping-class"), exports);
@@ -15,7 +15,6 @@
15
15
 
16
16
  import { AccountMappingClass } from './account-mapping-class';
17
17
  import { AccountingConfigurationClass } from './accounting-configuration-class';
18
- import { PersonalAccountRangeClass } from './personal-account-range-class';
19
18
 
20
19
  /**
21
20
  *
@@ -42,10 +41,10 @@ export interface AccountingConfigDataClass {
42
41
  */
43
42
  'accountingConfiguration'?: AccountingConfigurationClass;
44
43
  /**
45
- * The personal account number ranges, one per partner group
46
- * @type {Array<PersonalAccountRangeClass>}
44
+ *
45
+ * @type {Array<object>}
47
46
  * @memberof AccountingConfigDataClass
48
47
  */
49
- 'personalAccountRanges'?: Array<PersonalAccountRangeClass>;
48
+ 'personalAccountRanges': Array<object>;
50
49
  }
51
50
 
@@ -15,7 +15,6 @@
15
15
 
16
16
  import { AccountingConfigDataDtoAccountingConfiguration } from './accounting-config-data-dto-accounting-configuration';
17
17
  import { AccountingConfigDataDtoDefaultAccountMappings } from './accounting-config-data-dto-default-account-mappings';
18
- import { PersonalAccountRangeDto } from './personal-account-range-dto';
19
18
 
20
19
  /**
21
20
  *
@@ -42,10 +41,10 @@ export interface AccountingConfigDataDto {
42
41
  */
43
42
  'accountingConfiguration'?: AccountingConfigDataDtoAccountingConfiguration;
44
43
  /**
45
- * The personal account number ranges: exactly one each for policyholder, risk_carrier and broker
46
- * @type {Array<PersonalAccountRangeDto>}
44
+ *
45
+ * @type {Array<object>}
47
46
  * @memberof AccountingConfigDataDto
48
47
  */
49
- 'personalAccountRanges': Array<PersonalAccountRangeDto>;
48
+ 'personalAccountRanges': Array<object>;
50
49
  }
51
50
 
package/models/index.ts CHANGED
@@ -50,8 +50,6 @@ export * from './list-products-with-account-mappings-response-class';
50
50
  export * from './number-range-class';
51
51
  export * from './opening-balance-item-dto';
52
52
  export * from './personal-account-class';
53
- export * from './personal-account-range-class';
54
- export * from './personal-account-range-dto';
55
53
  export * from './post-financial-event-request-dto';
56
54
  export * from './post-financial-event-response-class';
57
55
  export * from './premium-item-account-mapping-class';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/accounting-sdk",
3
- "version": "1.34.1-beta.84",
3
+ "version": "1.34.1-beta.85",
4
4
  "description": "OpenAPI client for @emilgroup/accounting-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -1,42 +0,0 @@
1
- /**
2
- * EMIL AccountingService
3
- * The EMIL AccountingService API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
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 PersonalAccountRangeClass
16
- */
17
- export interface PersonalAccountRangeClass {
18
- /**
19
- * The partner group of the range
20
- * @type {string}
21
- * @memberof PersonalAccountRangeClass
22
- */
23
- 'accountType': PersonalAccountRangeClassAccountTypeEnum;
24
- /**
25
- * Start of the range; it belongs to the range
26
- * @type {number}
27
- * @memberof PersonalAccountRangeClass
28
- */
29
- 'minValue': number;
30
- /**
31
- * End of the range; it belongs to the range
32
- * @type {number}
33
- * @memberof PersonalAccountRangeClass
34
- */
35
- 'maxValue': number;
36
- }
37
- export declare const PersonalAccountRangeClassAccountTypeEnum: {
38
- readonly Policyholder: "policyholder";
39
- readonly RiskCarrier: "risk_carrier";
40
- readonly Broker: "broker";
41
- };
42
- export type PersonalAccountRangeClassAccountTypeEnum = typeof PersonalAccountRangeClassAccountTypeEnum[keyof typeof PersonalAccountRangeClassAccountTypeEnum];
@@ -1,21 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL AccountingService
6
- * The EMIL AccountingService API description
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- * Contact: kontakt@emil.de
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 });
16
- exports.PersonalAccountRangeClassAccountTypeEnum = void 0;
17
- exports.PersonalAccountRangeClassAccountTypeEnum = {
18
- Policyholder: 'policyholder',
19
- RiskCarrier: 'risk_carrier',
20
- Broker: 'broker'
21
- };
@@ -1,42 +0,0 @@
1
- /**
2
- * EMIL AccountingService
3
- * The EMIL AccountingService API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
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 PersonalAccountRangeDto
16
- */
17
- export interface PersonalAccountRangeDto {
18
- /**
19
- * The partner group of the range
20
- * @type {string}
21
- * @memberof PersonalAccountRangeDto
22
- */
23
- 'accountType': PersonalAccountRangeDtoAccountTypeEnum;
24
- /**
25
- * Start of the range, at least 1; it belongs to the range. A number or a string of digits.
26
- * @type {number | string}
27
- * @memberof PersonalAccountRangeDto
28
- */
29
- 'minValue': number | string;
30
- /**
31
- * End of the range; it belongs to the range. A number or a string of digits.
32
- * @type {number | string}
33
- * @memberof PersonalAccountRangeDto
34
- */
35
- 'maxValue': number | string;
36
- }
37
- export declare const PersonalAccountRangeDtoAccountTypeEnum: {
38
- readonly Policyholder: "policyholder";
39
- readonly RiskCarrier: "risk_carrier";
40
- readonly Broker: "broker";
41
- };
42
- export type PersonalAccountRangeDtoAccountTypeEnum = typeof PersonalAccountRangeDtoAccountTypeEnum[keyof typeof PersonalAccountRangeDtoAccountTypeEnum];
@@ -1,21 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL AccountingService
6
- * The EMIL AccountingService API description
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- * Contact: kontakt@emil.de
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 });
16
- exports.PersonalAccountRangeDtoAccountTypeEnum = void 0;
17
- exports.PersonalAccountRangeDtoAccountTypeEnum = {
18
- Policyholder: 'policyholder',
19
- RiskCarrier: 'risk_carrier',
20
- Broker: 'broker'
21
- };
@@ -1,51 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL AccountingService
5
- * The EMIL AccountingService API description
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
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 PersonalAccountRangeClass
21
- */
22
- export interface PersonalAccountRangeClass {
23
- /**
24
- * The partner group of the range
25
- * @type {string}
26
- * @memberof PersonalAccountRangeClass
27
- */
28
- 'accountType': PersonalAccountRangeClassAccountTypeEnum;
29
- /**
30
- * Start of the range; it belongs to the range
31
- * @type {number}
32
- * @memberof PersonalAccountRangeClass
33
- */
34
- 'minValue': number;
35
- /**
36
- * End of the range; it belongs to the range
37
- * @type {number}
38
- * @memberof PersonalAccountRangeClass
39
- */
40
- 'maxValue': number;
41
- }
42
-
43
- export const PersonalAccountRangeClassAccountTypeEnum = {
44
- Policyholder: 'policyholder',
45
- RiskCarrier: 'risk_carrier',
46
- Broker: 'broker'
47
- } as const;
48
-
49
- export type PersonalAccountRangeClassAccountTypeEnum = typeof PersonalAccountRangeClassAccountTypeEnum[keyof typeof PersonalAccountRangeClassAccountTypeEnum];
50
-
51
-
@@ -1,51 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL AccountingService
5
- * The EMIL AccountingService API description
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
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 PersonalAccountRangeDto
21
- */
22
- export interface PersonalAccountRangeDto {
23
- /**
24
- * The partner group of the range
25
- * @type {string}
26
- * @memberof PersonalAccountRangeDto
27
- */
28
- 'accountType': PersonalAccountRangeDtoAccountTypeEnum;
29
- /**
30
- * Start of the range, at least 1; it belongs to the range. A number or a string of digits.
31
- * @type {number | string}
32
- * @memberof PersonalAccountRangeDto
33
- */
34
- 'minValue': number | string;
35
- /**
36
- * End of the range; it belongs to the range. A number or a string of digits.
37
- * @type {number | string}
38
- * @memberof PersonalAccountRangeDto
39
- */
40
- 'maxValue': number | string;
41
- }
42
-
43
- export const PersonalAccountRangeDtoAccountTypeEnum = {
44
- Policyholder: 'policyholder',
45
- RiskCarrier: 'risk_carrier',
46
- Broker: 'broker'
47
- } as const;
48
-
49
- export type PersonalAccountRangeDtoAccountTypeEnum = typeof PersonalAccountRangeDtoAccountTypeEnum[keyof typeof PersonalAccountRangeDtoAccountTypeEnum];
50
-
51
-