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/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: null | string;
140
+ answerId: string | null;
136
141
  answerName: AnswerName | null;
137
- answerText: null | string;
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: string;
226
- payPeriod: string;
227
- indexRateId: string;
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
- decicion: keyof typeof constants.actions;
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 UserDocument = {
323
- id: number | null;
324
- contragentId: number | null;
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 | number | null;
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 ChipComponent = {
341
- title: string;
342
- description?: string;
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
  }