hl-core 0.0.8-beta.39 → 0.0.8-beta.40
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/api/index.ts +32 -25
- package/components/Form/FormBlock.vue +28 -17
- package/components/Form/ManagerAttachment.vue +1 -1
- package/components/Form/ProductConditionsBlock.vue +3 -1
- package/components/Pages/Anketa.vue +9 -3
- package/components/Pages/MemberForm.vue +32 -34
- package/components/Pages/ProductConditions.vue +14 -14
- package/components/Panel/PanelHandler.vue +3 -3
- package/composables/classes.ts +61 -81
- package/composables/constants.ts +22 -59
- package/composables/index.ts +18 -15
- package/package.json +1 -1
- package/store/{data.store.js → data.store.ts} +813 -765
- package/store/member.store.ts +50 -63
- package/store/{rules.js → rules.ts} +30 -30
- package/types/enum.ts +83 -0
- package/types/index.ts +181 -18
package/types/index.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { RouteLocationNormalizedLoaded, RouteLocationNormalized } from 'vue-router';
|
|
2
|
+
|
|
1
3
|
export {};
|
|
2
4
|
|
|
3
5
|
declare global {
|
|
@@ -5,8 +7,11 @@ declare global {
|
|
|
5
7
|
type Projects = 'aml' | 'baiterek' | 'bolashak' | 'calculator' | 'compliance' | 'efo' | 'gons' | 'halykkazyna' | 'liferenta' | 'lifetrip' | 'lka' | 'mycar';
|
|
6
8
|
type MemberKeys = keyof ReturnType<typeof useFormStore>;
|
|
7
9
|
type MemberFormTypes = 'policyholderForm' | 'insuredForm' | 'beneficiaryForm' | 'beneficialOwnerForm' | 'policyholdersRepresentativeForm' | 'productConditionsForm';
|
|
10
|
+
type SingleMember = 'policyholderForm' | 'policyholdersRepresentativeForm';
|
|
11
|
+
type MultipleMember = 'insuredForm' | 'beneficiaryForm' | 'beneficialOwnerForm';
|
|
8
12
|
type PanelTypes = 'settings' | 'panel';
|
|
9
13
|
type FileActions = 'view' | 'download';
|
|
14
|
+
type RouteType = RouteLocationNormalizedLoaded | RouteLocationNormalized;
|
|
10
15
|
type InputVariants = 'solo' | 'filled' | 'outlined' | 'plain' | 'underlined';
|
|
11
16
|
type InputTypes =
|
|
12
17
|
| 'button'
|
|
@@ -132,9 +137,9 @@ declare global {
|
|
|
132
137
|
definedAnswers: DefinedAnswers;
|
|
133
138
|
defaultAnswer: string;
|
|
134
139
|
questOrder: number;
|
|
135
|
-
answerId:
|
|
140
|
+
answerId: string | null;
|
|
136
141
|
answerName: AnswerName | null;
|
|
137
|
-
answerText:
|
|
142
|
+
answerText: string | null;
|
|
138
143
|
};
|
|
139
144
|
|
|
140
145
|
enum AnswerName {
|
|
@@ -222,9 +227,9 @@ declare global {
|
|
|
222
227
|
gender: number;
|
|
223
228
|
amount: number | null;
|
|
224
229
|
premium: number | null;
|
|
225
|
-
coverPeriod:
|
|
226
|
-
payPeriod:
|
|
227
|
-
indexRateId
|
|
230
|
+
coverPeriod: number;
|
|
231
|
+
payPeriod: number;
|
|
232
|
+
indexRateId?: string | null;
|
|
228
233
|
paymentPeriodId: string;
|
|
229
234
|
addCovers: AddCover[];
|
|
230
235
|
};
|
|
@@ -234,6 +239,9 @@ declare global {
|
|
|
234
239
|
premium: number;
|
|
235
240
|
mainCoverPremium: number;
|
|
236
241
|
addCovers: AddCover[];
|
|
242
|
+
amountInCurrency: number;
|
|
243
|
+
premiumInCurrency: number;
|
|
244
|
+
annuityMonthPay: string | number | null;
|
|
237
245
|
};
|
|
238
246
|
|
|
239
247
|
type AddCover = {
|
|
@@ -261,7 +269,7 @@ declare global {
|
|
|
261
269
|
|
|
262
270
|
type SignDataType = {
|
|
263
271
|
processInstanceId: string;
|
|
264
|
-
name: 'Statement' | 'Agreement';
|
|
272
|
+
name: 'Statement' | 'Agreement' | 'Contract';
|
|
265
273
|
format: 'pdf';
|
|
266
274
|
};
|
|
267
275
|
|
|
@@ -300,7 +308,7 @@ declare global {
|
|
|
300
308
|
};
|
|
301
309
|
|
|
302
310
|
type SendTask = {
|
|
303
|
-
|
|
311
|
+
decision: keyof typeof constants.actions;
|
|
304
312
|
taskId: string;
|
|
305
313
|
comment?: string;
|
|
306
314
|
};
|
|
@@ -319,26 +327,181 @@ declare global {
|
|
|
319
327
|
iin?: string | null;
|
|
320
328
|
};
|
|
321
329
|
|
|
322
|
-
type
|
|
323
|
-
|
|
324
|
-
|
|
330
|
+
type ChipComponent = {
|
|
331
|
+
title: string;
|
|
332
|
+
description?: string;
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
type GetContragentRequest = {
|
|
336
|
+
firstName: string;
|
|
337
|
+
lastName: string;
|
|
338
|
+
middleName: string;
|
|
339
|
+
iin: string;
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
type GetContragentResponse = {
|
|
343
|
+
totalItems: number;
|
|
344
|
+
items: ContragentType[];
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
type ContragentType = {
|
|
348
|
+
id: number;
|
|
349
|
+
type: number;
|
|
350
|
+
iin: string;
|
|
351
|
+
longName: string;
|
|
352
|
+
lastName: string;
|
|
353
|
+
firstName: string;
|
|
354
|
+
middleName: string | null;
|
|
355
|
+
birthDate: string;
|
|
356
|
+
gender: number;
|
|
357
|
+
genderName: string;
|
|
358
|
+
birthPlace: string;
|
|
359
|
+
age: number;
|
|
360
|
+
registrationDate: string;
|
|
361
|
+
verifyType: string;
|
|
362
|
+
verifyDate: string;
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
type ContragentQuestionaries = {
|
|
366
|
+
id: number;
|
|
367
|
+
contragentId: number;
|
|
368
|
+
questId: string;
|
|
369
|
+
questName: string;
|
|
370
|
+
questAnswer: string | null;
|
|
371
|
+
questAnswerName: string | null;
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
type ContragentDocuments = {
|
|
375
|
+
id: number;
|
|
376
|
+
contragentId: number;
|
|
325
377
|
type: string;
|
|
326
|
-
typeName: string;
|
|
327
|
-
serial: string |
|
|
328
|
-
number: string;
|
|
378
|
+
typeName: string | null;
|
|
379
|
+
serial: string | null;
|
|
380
|
+
number: string | null;
|
|
329
381
|
issueDate: string;
|
|
330
382
|
expireDate: string;
|
|
331
383
|
issuerId: number;
|
|
332
|
-
issuerName: string;
|
|
333
|
-
issuerNameRu: string;
|
|
384
|
+
issuerName: string | null;
|
|
385
|
+
issuerNameRu: string | null;
|
|
334
386
|
description: string | null;
|
|
335
387
|
note: string | null;
|
|
336
388
|
verifyType: string;
|
|
337
389
|
verifyDate: string;
|
|
338
390
|
};
|
|
339
391
|
|
|
340
|
-
type
|
|
341
|
-
|
|
342
|
-
|
|
392
|
+
type ContragentAddress = {
|
|
393
|
+
id: number;
|
|
394
|
+
contragentId: number;
|
|
395
|
+
type: string;
|
|
396
|
+
address: string;
|
|
397
|
+
countryCode: string;
|
|
398
|
+
countryName: string;
|
|
399
|
+
stateCode: string;
|
|
400
|
+
stateName: string;
|
|
401
|
+
cityCode: string;
|
|
402
|
+
cityName: string;
|
|
403
|
+
regionCode: string | null;
|
|
404
|
+
regionName: string | null;
|
|
405
|
+
streetName: string;
|
|
406
|
+
blockNumber: string;
|
|
407
|
+
apartmentNumber: string;
|
|
408
|
+
cityTypeId: number | null;
|
|
409
|
+
cityTypeName: string;
|
|
410
|
+
microRaion: string | null;
|
|
411
|
+
kvartal: string | null;
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
type ContragentContacts = {
|
|
415
|
+
id: number;
|
|
416
|
+
contragentId: number;
|
|
417
|
+
type: string;
|
|
418
|
+
typeName: string;
|
|
419
|
+
value: string | null;
|
|
420
|
+
note: string | null;
|
|
421
|
+
primaryFlag: string;
|
|
422
|
+
newValue: string | null;
|
|
423
|
+
verifyType?: string | null;
|
|
424
|
+
verifyDate?: string | null;
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
type AddCoverAnswer = {
|
|
428
|
+
id: string;
|
|
429
|
+
code: string;
|
|
430
|
+
calculatorValue: number;
|
|
431
|
+
nameKz: string;
|
|
432
|
+
nameRu: string;
|
|
433
|
+
isDefault: boolean;
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
type PolicyAppDto = {
|
|
437
|
+
id?: string;
|
|
438
|
+
processInstanceId?: string;
|
|
439
|
+
policyId?: number | null;
|
|
440
|
+
policyNumber?: string | null;
|
|
441
|
+
contractDate?: string;
|
|
442
|
+
contractEndDate?: string;
|
|
443
|
+
amount?: number | null;
|
|
444
|
+
premium?: number | null;
|
|
445
|
+
mainCoverPremium?: number;
|
|
446
|
+
currency?: string;
|
|
447
|
+
isSpokesman?: boolean;
|
|
448
|
+
coverPeriod?: number | null;
|
|
449
|
+
payPeriod?: number | null;
|
|
450
|
+
indexRateId?: string;
|
|
451
|
+
indexRateCode?: string;
|
|
452
|
+
indexRateName?: string;
|
|
453
|
+
paymentPeriodId?: string;
|
|
454
|
+
paymentPeriodName?: string;
|
|
455
|
+
lifeMultiply?: number;
|
|
456
|
+
lifeAdditive?: number;
|
|
457
|
+
adbMultiply?: number;
|
|
458
|
+
adbAdditive?: number;
|
|
459
|
+
disabilityMultiply?: number;
|
|
460
|
+
disabilityAdditive?: number;
|
|
461
|
+
documentSignTypeId?: string;
|
|
462
|
+
documentSignTypeCode?: string;
|
|
463
|
+
documentSignTypeName?: string;
|
|
464
|
+
isDocumentsSigned?: boolean;
|
|
465
|
+
paymentTypeId?: string;
|
|
466
|
+
paymentTypeName?: string;
|
|
467
|
+
isPayed?: boolean;
|
|
468
|
+
underwritingType?: number;
|
|
469
|
+
annualIncome?: number | null;
|
|
470
|
+
calcDirect?: number;
|
|
471
|
+
tariffId?: string;
|
|
472
|
+
tariffName?: string;
|
|
473
|
+
riskGroup?: number;
|
|
474
|
+
riskGroup2?: number;
|
|
475
|
+
lifeMultiplyClient?: number;
|
|
476
|
+
lifeAdditiveClient?: number;
|
|
477
|
+
annuityTypeId?: string;
|
|
478
|
+
annuityTypeName?: string;
|
|
479
|
+
annuityPaymentPeriodId?: string;
|
|
480
|
+
annuityPaymentPeriodName?: string;
|
|
481
|
+
guaranteedPaymentPeriod?: number | null;
|
|
482
|
+
paymentPeriod?: number;
|
|
483
|
+
annuityMonthPay?: number;
|
|
484
|
+
annuityPaymentBeginDate?: string;
|
|
485
|
+
annuityPaymentEndDate?: string;
|
|
486
|
+
amountInCurrency?: number | null;
|
|
487
|
+
premiumInCurrency?: number | null;
|
|
488
|
+
currencyExchangeRate?: number | null;
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
type InsisWorkDataApp = {
|
|
492
|
+
id?: string;
|
|
493
|
+
processInstanceId?: string;
|
|
494
|
+
agentId?: number;
|
|
495
|
+
agentName?: string;
|
|
496
|
+
salesChannel?: string;
|
|
497
|
+
salesChannelName?: string;
|
|
498
|
+
insrType?: number;
|
|
499
|
+
saleChanellPolicy?: string;
|
|
500
|
+
saleChanellPolicyName?: string;
|
|
501
|
+
regionPolicy?: string;
|
|
502
|
+
regionPolicyName?: string;
|
|
503
|
+
managerPolicy?: string;
|
|
504
|
+
managerPolicyName?: string;
|
|
505
|
+
insuranceProgramType?: string;
|
|
343
506
|
};
|
|
344
507
|
}
|