hl-core 0.0.8-beta.4 → 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.
Files changed (61) hide show
  1. package/api/index.ts +117 -44
  2. package/api/interceptors.ts +17 -13
  3. package/components/Button/Btn.vue +1 -1
  4. package/components/Button/ScrollButtons.vue +2 -2
  5. package/components/Complex/Page.vue +1 -1
  6. package/components/Dialog/Dialog.vue +9 -39
  7. package/components/Dialog/FamilyDialog.vue +7 -4
  8. package/components/Form/FormBlock.vue +77 -33
  9. package/components/Form/FormSection.vue +4 -1
  10. package/components/Form/FormToggle.vue +2 -3
  11. package/components/Form/ManagerAttachment.vue +197 -0
  12. package/components/Form/ProductConditionsBlock.vue +60 -10
  13. package/components/Input/Datepicker.vue +6 -2
  14. package/components/Input/FileInput.vue +2 -2
  15. package/components/Input/FormInput.vue +29 -7
  16. package/components/Input/PanelInput.vue +7 -2
  17. package/components/Input/RoundedInput.vue +2 -2
  18. package/components/Input/RoundedSelect.vue +137 -0
  19. package/components/Layout/Drawer.vue +3 -2
  20. package/components/Layout/Header.vue +40 -4
  21. package/components/Layout/Loader.vue +1 -1
  22. package/components/Layout/SettingsPanel.vue +51 -13
  23. package/components/Menu/MenuHover.vue +30 -0
  24. package/components/Menu/MenuNav.vue +29 -13
  25. package/components/Menu/MenuNavItem.vue +6 -3
  26. package/components/Pages/Anketa.vue +51 -33
  27. package/components/Pages/Auth.vue +139 -46
  28. package/components/Pages/Documents.vue +6 -6
  29. package/components/Pages/InvoiceInfo.vue +30 -0
  30. package/components/Pages/MemberForm.vue +533 -292
  31. package/components/Pages/ProductAgreement.vue +4 -2
  32. package/components/Pages/ProductConditions.vue +509 -99
  33. package/components/Panel/PanelHandler.vue +93 -20
  34. package/components/Panel/PanelSelectItem.vue +1 -1
  35. package/components/Utilities/Chip.vue +27 -0
  36. package/components/Utilities/JsonViewer.vue +27 -0
  37. package/composables/axios.ts +1 -1
  38. package/composables/classes.ts +217 -97
  39. package/composables/constants.ts +26 -52
  40. package/composables/index.ts +80 -2
  41. package/composables/styles.ts +8 -3
  42. package/configs/i18n.ts +17 -0
  43. package/layouts/default.vue +6 -6
  44. package/locales/kz.json +585 -0
  45. package/locales/ru.json +587 -0
  46. package/nuxt.config.ts +9 -1
  47. package/package.json +41 -11
  48. package/pages/500.vue +2 -2
  49. package/pages/Token.vue +51 -0
  50. package/plugins/helperFunctionsPlugins.ts +3 -0
  51. package/plugins/storePlugin.ts +0 -1
  52. package/plugins/vuetifyPlugin.ts +8 -1
  53. package/store/data.store.ts +2649 -0
  54. package/store/form.store.ts +1 -1
  55. package/store/member.store.ts +164 -52
  56. package/store/{rules.js → rules.ts} +63 -25
  57. package/types/enum.ts +83 -0
  58. package/types/env.d.ts +10 -0
  59. package/types/index.ts +211 -7
  60. package/store/data.store.js +0 -2508
  61. package/store/messages.ts +0 -434
package/types/index.ts CHANGED
@@ -1,10 +1,17 @@
1
+ import { RouteLocationNormalizedLoaded, RouteLocationNormalized } from 'vue-router';
2
+
1
3
  export {};
2
4
 
3
5
  declare global {
6
+ type EnvModes = 'development' | 'test' | 'vercel' | 'production';
7
+ type Projects = 'aml' | 'baiterek' | 'bolashak' | 'calculator' | 'compliance' | 'efo' | 'gons' | 'halykkazyna' | 'liferenta' | 'lifetrip' | 'lka' | 'mycar';
4
8
  type MemberKeys = keyof ReturnType<typeof useFormStore>;
5
9
  type MemberFormTypes = 'policyholderForm' | 'insuredForm' | 'beneficiaryForm' | 'beneficialOwnerForm' | 'policyholdersRepresentativeForm' | 'productConditionsForm';
10
+ type SingleMember = 'policyholderForm' | 'policyholdersRepresentativeForm';
11
+ type MultipleMember = 'insuredForm' | 'beneficiaryForm' | 'beneficialOwnerForm';
6
12
  type PanelTypes = 'settings' | 'panel';
7
13
  type FileActions = 'view' | 'download';
14
+ type RouteType = RouteLocationNormalizedLoaded | RouteLocationNormalized;
8
15
  type InputVariants = 'solo' | 'filled' | 'outlined' | 'plain' | 'underlined';
9
16
  type InputTypes =
10
17
  | 'button'
@@ -130,9 +137,9 @@ declare global {
130
137
  definedAnswers: DefinedAnswers;
131
138
  defaultAnswer: string;
132
139
  questOrder: number;
133
- answerId: null | string;
140
+ answerId: string | null;
134
141
  answerName: AnswerName | null;
135
- answerText: null | string;
142
+ answerText: string | null;
136
143
  };
137
144
 
138
145
  enum AnswerName {
@@ -220,9 +227,9 @@ declare global {
220
227
  gender: number;
221
228
  amount: number | null;
222
229
  premium: number | null;
223
- coverPeriod: string;
224
- payPeriod: string;
225
- indexRateId: string;
230
+ coverPeriod: number;
231
+ payPeriod: number;
232
+ indexRateId?: string | null;
226
233
  paymentPeriodId: string;
227
234
  addCovers: AddCover[];
228
235
  };
@@ -232,6 +239,9 @@ declare global {
232
239
  premium: number;
233
240
  mainCoverPremium: number;
234
241
  addCovers: AddCover[];
242
+ amountInCurrency: number;
243
+ premiumInCurrency: number;
244
+ annuityMonthPay: string | number | null;
235
245
  };
236
246
 
237
247
  type AddCover = {
@@ -259,7 +269,7 @@ declare global {
259
269
 
260
270
  type SignDataType = {
261
271
  processInstanceId: string;
262
- name: 'Statement' | 'Agreement';
272
+ name: 'Statement' | 'Agreement' | 'Contract';
263
273
  format: 'pdf';
264
274
  };
265
275
 
@@ -271,6 +281,8 @@ declare global {
271
281
  text: string;
272
282
  };
273
283
 
284
+ type RegNumberDataType = { processInstanceId: string; regNumber: string; date: string };
285
+
274
286
  type EpayShortResponse = {
275
287
  id: string;
276
288
  link: string;
@@ -296,8 +308,200 @@ declare global {
296
308
  };
297
309
 
298
310
  type SendTask = {
299
- decicion: keyof typeof constants.actions;
311
+ decision: keyof typeof constants.actions;
300
312
  taskId: string;
301
313
  comment?: string;
302
314
  };
315
+
316
+ type AgentData = {
317
+ agentId?: number | null;
318
+ manId?: number;
319
+ fullName?: string;
320
+ officeId?: number | null;
321
+ officeCode?: string | null;
322
+ saleChannel?: string;
323
+ staffId?: number;
324
+ managerName?: string;
325
+ mainAgentId?: string | null;
326
+ agentNo?: string;
327
+ iin?: string | null;
328
+ };
329
+
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;
377
+ type: string;
378
+ typeName: string | null;
379
+ serial: string | null;
380
+ number: string | null;
381
+ issueDate: string;
382
+ expireDate: string;
383
+ issuerId: number;
384
+ issuerName: string | null;
385
+ issuerNameRu: string | null;
386
+ description: string | null;
387
+ note: string | null;
388
+ verifyType: string;
389
+ verifyDate: string;
390
+ };
391
+
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;
506
+ };
303
507
  }