hl-core 0.0.8 → 0.0.9-beta.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.
Files changed (63) hide show
  1. package/api/index.ts +142 -101
  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/MessageBlock.vue +26 -0
  6. package/components/Complex/Page.vue +1 -1
  7. package/components/Dialog/Dialog.vue +9 -39
  8. package/components/Dialog/FamilyDialog.vue +7 -4
  9. package/components/Form/FormBlock.vue +90 -42
  10. package/components/Form/FormSection.vue +4 -1
  11. package/components/Form/FormToggle.vue +1 -2
  12. package/components/Form/ManagerAttachment.vue +197 -0
  13. package/components/Form/ProductConditionsBlock.vue +68 -14
  14. package/components/Input/Datepicker.vue +45 -0
  15. package/components/Input/FileInput.vue +2 -3
  16. package/components/Input/FormInput.vue +31 -7
  17. package/components/Input/PanelInput.vue +7 -2
  18. package/components/Input/RoundedInput.vue +2 -2
  19. package/components/Input/RoundedSelect.vue +137 -0
  20. package/components/Layout/Drawer.vue +4 -2
  21. package/components/Layout/Header.vue +40 -4
  22. package/components/Layout/Loader.vue +1 -1
  23. package/components/Layout/SettingsPanel.vue +51 -13
  24. package/components/Menu/MenuHover.vue +30 -0
  25. package/components/Menu/MenuNav.vue +29 -13
  26. package/components/Menu/MenuNavItem.vue +6 -3
  27. package/components/Pages/Anketa.vue +59 -33
  28. package/components/Pages/Auth.vue +139 -46
  29. package/components/Pages/Documents.vue +7 -7
  30. package/components/Pages/InvoiceInfo.vue +30 -0
  31. package/components/Pages/MemberForm.vue +544 -293
  32. package/components/Pages/ProductAgreement.vue +4 -2
  33. package/components/Pages/ProductConditions.vue +673 -75
  34. package/components/Panel/PanelHandler.vue +304 -0
  35. package/components/Panel/PanelSelectItem.vue +1 -1
  36. package/components/Transitions/SlideTransition.vue +5 -0
  37. package/components/Utilities/Chip.vue +27 -0
  38. package/components/Utilities/JsonViewer.vue +27 -0
  39. package/composables/axios.ts +1 -1
  40. package/composables/classes.ts +223 -101
  41. package/composables/constants.ts +26 -51
  42. package/composables/index.ts +80 -2
  43. package/composables/styles.ts +15 -3
  44. package/configs/i18n.ts +17 -0
  45. package/layouts/default.vue +6 -6
  46. package/locales/kz.json +585 -0
  47. package/locales/ru.json +587 -0
  48. package/nuxt.config.ts +13 -1
  49. package/package.json +43 -11
  50. package/pages/500.vue +2 -2
  51. package/pages/Token.vue +51 -0
  52. package/plugins/helperFunctionsPlugins.ts +6 -0
  53. package/plugins/storePlugin.ts +0 -1
  54. package/plugins/vuetifyPlugin.ts +8 -1
  55. package/store/data.store.ts +2649 -0
  56. package/store/form.store.ts +1 -1
  57. package/store/member.store.ts +164 -52
  58. package/store/{rules.js → rules.ts} +65 -34
  59. package/types/enum.ts +83 -0
  60. package/types/env.d.ts +10 -0
  61. package/types/index.ts +262 -5
  62. package/store/data.store.js +0 -2482
  63. package/store/messages.ts +0 -429
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 = {
@@ -247,4 +257,251 @@ declare global {
247
257
  premium: number;
248
258
  isMigrate: boolean;
249
259
  };
260
+
261
+ type SignUrlType = {
262
+ uri: string;
263
+ shortUri: string;
264
+ iin: string | null;
265
+ longName: string | null;
266
+ phoneNumber: string | null;
267
+ signed: boolean;
268
+ };
269
+
270
+ type SignDataType = {
271
+ processInstanceId: string;
272
+ name: 'Statement' | 'Agreement' | 'Contract';
273
+ format: 'pdf';
274
+ };
275
+
276
+ type SmsDataType = {
277
+ processInstanceId: string;
278
+ iin: string;
279
+ phoneNumber: string;
280
+ type: 'SignUrl' | 'PayUrl';
281
+ text: string;
282
+ };
283
+
284
+ type RegNumberDataType = { processInstanceId: string; regNumber: string; date: string };
285
+
286
+ type EpayShortResponse = {
287
+ id: string;
288
+ link: string;
289
+ };
290
+
291
+ type EpayResponse = {
292
+ id: string;
293
+ processInstanceId: string;
294
+ createDate: string;
295
+ number: number;
296
+ phoneNumber: string;
297
+ amount: number;
298
+ currency: string;
299
+ dueDate: string;
300
+ transactionId: string;
301
+ transactionDate: string;
302
+ status: number;
303
+ statusName: string;
304
+ description: string;
305
+ epayHtml: string | null;
306
+ epayResponse: string | null;
307
+ paymentLink: string;
308
+ };
309
+
310
+ type SendTask = {
311
+ decision: keyof typeof constants.actions;
312
+ taskId: string;
313
+ comment?: string;
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
+ };
250
507
  }