hl-core 0.0.10-beta.2 → 0.0.10-beta.20

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 (42) hide show
  1. package/api/base.api.ts +89 -69
  2. package/components/Complex/TextBlock.vue +2 -0
  3. package/components/Dialog/Dialog.vue +2 -0
  4. package/components/Dialog/FamilyDialog.vue +2 -0
  5. package/components/Form/DigitalDocument.vue +52 -0
  6. package/components/Form/DynamicForm.vue +1 -0
  7. package/components/Form/FormData.vue +1 -0
  8. package/components/Form/ManagerAttachment.vue +1 -0
  9. package/components/Input/DynamicInput.vue +2 -0
  10. package/components/Input/FormInput.vue +2 -0
  11. package/components/Input/OtpInput.vue +25 -0
  12. package/components/Input/PanelInput.vue +1 -0
  13. package/components/Input/RoundedInput.vue +2 -0
  14. package/components/Input/RoundedSelect.vue +2 -0
  15. package/components/Input/SwitchInput.vue +2 -0
  16. package/components/Input/TextInput.vue +2 -0
  17. package/components/Layout/Drawer.vue +2 -0
  18. package/components/Pages/Anketa.vue +1 -0
  19. package/components/Pages/Auth.vue +2 -0
  20. package/components/Pages/ContragentForm.vue +1 -0
  21. package/components/Pages/Documents.vue +236 -5
  22. package/components/Pages/MemberForm.vue +39 -29
  23. package/components/Pages/ProductConditions.vue +10 -2
  24. package/components/Panel/PanelHandler.vue +8 -1
  25. package/components/Transitions/Animation.vue +2 -0
  26. package/components/Utilities/Chip.vue +2 -0
  27. package/components/Utilities/JsonViewer.vue +1 -2
  28. package/composables/classes.ts +74 -41
  29. package/composables/fields.ts +6 -4
  30. package/composables/index.ts +220 -7
  31. package/composables/styles.ts +5 -16
  32. package/configs/pwa.ts +1 -7
  33. package/locales/ru.json +3 -2
  34. package/nuxt.config.ts +10 -13
  35. package/package.json +13 -12
  36. package/plugins/head.ts +1 -1
  37. package/store/data.store.ts +125 -255
  38. package/store/member.store.ts +3 -2
  39. package/tsconfig.json +3 -0
  40. package/types/enum.ts +5 -2
  41. package/types/form.ts +71 -75
  42. package/types/index.ts +852 -882
package/types/index.ts CHANGED
@@ -1,916 +1,886 @@
1
1
  import { Value } from '../composables/classes';
2
+ import type { IDocument } from '../composables/classes';
2
3
  import type { RouteLocationNormalizedLoaded, RouteLocationNormalized } from 'vue-router';
3
4
  import type { AxiosRequestConfig } from 'axios';
4
- import { Methods, Enums } from './enum';
5
-
6
- export {};
7
-
8
- declare global {
9
- type EnvModes = 'development' | 'test' | 'production';
10
- type Projects =
11
- | 'aml'
12
- | 'baiterek'
13
- | 'bolashak'
14
- | 'calculator'
15
- | 'efo'
16
- | 'gons'
17
- | 'halykkazyna'
18
- | 'lifebusiness'
19
- | 'liferenta'
20
- | 'lifetrip'
21
- | 'lka'
22
- | 'mycar'
23
- | 'checkcontract'
24
- | 'checkcontragent'
25
- | 'daskamkorlyk'
26
- | 'amuletlife'
27
- | 'gns'
28
- | 'pensionannuitynew'
29
- | 'dso'
30
- | 'uu'
31
- | 'auletti'
32
- | 'lka-auletti'
33
- | 'prepensionannuity';
34
- type MemberKeys = keyof ReturnType<typeof useFormStore>;
35
- type MemberFormTypes = 'policyholderForm' | 'insuredForm' | 'beneficiaryForm' | 'beneficialOwnerForm' | 'policyholdersRepresentativeForm' | 'productConditionsForm';
36
- type SingleMember = 'policyholderForm' | 'policyholdersRepresentativeForm';
37
- type MultipleMember = 'insuredForm' | 'beneficiaryForm' | 'beneficialOwnerForm';
38
- type PanelTypes = 'settings' | 'panel' | 'rightPanel';
39
- type FileActions = 'view' | 'download';
40
- type RouteType = RouteLocationNormalizedLoaded | RouteLocationNormalized;
41
- type InputVariants = 'solo' | 'filled' | 'outlined' | 'plain' | 'underlined';
42
- type InputTypes =
43
- | 'button'
44
- | 'checkbox'
45
- | 'color'
46
- | 'date'
47
- | 'datetime-local'
48
- | 'email'
49
- | 'file'
50
- | 'hidden'
51
- | 'image'
52
- | 'month'
53
- | 'number'
54
- | 'password'
55
- | 'radio'
56
- | 'range'
57
- | 'reset'
58
- | 'search'
59
- | 'submit'
60
- | 'tel'
61
- | 'text'
62
- | 'time'
63
- | 'url'
64
- | 'week';
65
-
66
- type NestedKeyOf<ObjectType extends object> = {
67
- [Key in keyof ObjectType & (string | number)]: ObjectType[Key] extends object ? `${Key}` | `${Key}.${NestedKeyOf<ObjectType[Key]>}` : Key;
68
- }[keyof ObjectType & (string | number)];
69
-
70
- type FinalNestedKeyOf<ObjectType extends object> = {
71
- [Key in keyof ObjectType & (string | number)]: ObjectType[Key] extends object ? `${Key}.${NestedKeyOf<ObjectType[Key]>}` : Key;
72
- }[keyof ObjectType & (string | number)];
73
-
74
- interface AxiosRequestLocalConfig extends AxiosRequestConfig {
75
- method: Methods | keyof typeof Methods;
76
- }
5
+ import { Methods, CoreEnums, Actions, Statuses } from './enum';
6
+ import type { JwtPayload } from 'jwt-decode';
7
+ export { Methods, CoreEnums, Actions, Statuses };
8
+
9
+ export type EnvModes = 'development' | 'test' | 'production';
10
+ export type Projects =
11
+ | 'aml'
12
+ | 'baiterek'
13
+ | 'bolashak'
14
+ | 'calculator'
15
+ | 'efo'
16
+ | 'gons'
17
+ | 'halykkazyna'
18
+ | 'lifebusiness'
19
+ | 'liferenta'
20
+ | 'lifetrip'
21
+ | 'lka'
22
+ | 'mycar'
23
+ | 'checkcontract'
24
+ | 'checkcontragent'
25
+ | 'daskamkorlyk'
26
+ | 'amuletlife'
27
+ | 'gns'
28
+ | 'pensionannuitynew'
29
+ | 'dso'
30
+ | 'uu'
31
+ | 'auletti'
32
+ | 'lka-auletti'
33
+ | 'prepensionannuity';
34
+ export type MemberKeys = keyof ReturnType<typeof useFormStore>;
35
+ export type MemberFormTypes = 'policyholderForm' | 'insuredForm' | 'beneficiaryForm' | 'beneficialOwnerForm' | 'policyholdersRepresentativeForm' | 'productConditionsForm';
36
+ export type SingleMember = 'policyholderForm' | 'policyholdersRepresentativeForm';
37
+ export type MultipleMember = 'insuredForm' | 'beneficiaryForm' | 'beneficialOwnerForm';
38
+ export type PanelTypes = 'settings' | 'panel' | 'rightPanel';
39
+ export type FileActions = 'view' | 'download';
40
+ export type RouteType = RouteLocationNormalizedLoaded | RouteLocationNormalized;
41
+ export type InputVariants = 'solo' | 'filled' | 'outlined' | 'plain' | 'underlined';
42
+ export type InputTypes =
43
+ | 'button'
44
+ | 'checkbox'
45
+ | 'color'
46
+ | 'date'
47
+ | 'datetime-local'
48
+ | 'email'
49
+ | 'file'
50
+ | 'hidden'
51
+ | 'image'
52
+ | 'month'
53
+ | 'number'
54
+ | 'password'
55
+ | 'radio'
56
+ | 'range'
57
+ | 'reset'
58
+ | 'search'
59
+ | 'submit'
60
+ | 'tel'
61
+ | 'text'
62
+ | 'time'
63
+ | 'url'
64
+ | 'week';
65
+
66
+ export type NestedKeyOf<ObjectType extends object> = {
67
+ [Key in keyof ObjectType & (string | number)]: ObjectType[Key] extends object ? `${Key}` | `${Key}.${NestedKeyOf<ObjectType[Key]>}` : Key;
68
+ }[keyof ObjectType & (string | number)];
69
+
70
+ export type FinalNestedKeyOf<ObjectType extends object> = {
71
+ [Key in keyof ObjectType & (string | number)]: ObjectType[Key] extends object ? `${Key}.${NestedKeyOf<ObjectType[Key]>}` : Key;
72
+ }[keyof ObjectType & (string | number)];
73
+
74
+ export interface AxiosRequestLocalConfig extends AxiosRequestConfig {
75
+ method: Methods | keyof typeof Methods;
76
+ }
77
77
 
78
- interface TaskListItem {
79
- addRegNumber: string | number;
80
- applicationTaskId: string;
81
- dateCreated: string;
82
- historyStatus: string;
83
- historyStatusTitle: string;
84
- id: string;
85
- iin: string;
86
- insurerIin: string;
87
- insurerLongName: string;
88
- isTask: boolean | number;
89
- longName: string;
90
- number: string;
91
- processCode: number;
92
- processCodeTitle: string;
93
- status: string;
94
- userId: string;
95
- userName: string;
96
- level?: string;
97
- }
98
- type TaskHistory = {
99
- appointmentDate: string | null;
100
- comment: string | null;
101
- dateCreated: string;
102
- decisionCode: string | null;
103
- decisionNameRu: string | null;
104
- factEndDate: string;
105
- id: string;
106
- number: string;
107
- planEndDate: string;
108
- statusCode: string;
109
- statusTitle: string;
110
- userFullName: string | null;
111
- userId: string | null;
112
- violationText: string | null;
113
- };
78
+ export interface TaskListItem {
79
+ addRegNumber: string | number;
80
+ applicationTaskId: string;
81
+ dateCreated: string;
82
+ historyStatus: string;
83
+ historyStatusTitle: string;
84
+ id: string;
85
+ iin: string;
86
+ insurerIin: string;
87
+ insurerLongName: string;
88
+ isTask: boolean | number;
89
+ longName: string;
90
+ number: string;
91
+ processCode: number;
92
+ processCodeTitle: string;
93
+ status: string;
94
+ userId: string;
95
+ userName: string;
96
+ level?: string;
97
+ }
98
+ export type TaskHistory = {
99
+ appointmentDate: string | null;
100
+ comment: string | null;
101
+ dateCreated: string;
102
+ decisionCode: string | null;
103
+ decisionNameRu: string | null;
104
+ factEndDate: string;
105
+ id: string;
106
+ number: string;
107
+ planEndDate: string;
108
+ statusCode: string;
109
+ statusTitle: string;
110
+ userFullName: string | null;
111
+ userId: string | null;
112
+ violationText: string | null;
113
+ };
114
+
115
+ export type Item = {
116
+ itemCode: string;
117
+ itemId: number;
118
+ itemName: string;
119
+ };
120
+
121
+ export type AnketaBody = {
122
+ first: EachAnketa;
123
+ second: AnketaSecond[] | null;
124
+ };
125
+
126
+ export type EachAnketa = {
127
+ id: string;
128
+ name: string;
129
+ answerType: AnswerType;
130
+ definedAnswers: DefinedAnswers;
131
+ defaultAnswer: string;
132
+ questOrder: number;
133
+ answerId: string | null;
134
+ answerName: AnswerName | null;
135
+ answerText: string | null;
136
+ };
137
+
138
+ export enum AnswerName {
139
+ Нет = 'Нет',
140
+ Да = 'Да',
141
+ }
114
142
 
115
- type Item = {
116
- itemCode: string;
117
- itemId: number;
118
- itemName: string;
119
- };
143
+ export enum AnswerType {
144
+ N = 'N',
145
+ T = 'T',
146
+ D = 'D',
147
+ }
120
148
 
121
- // Remove
122
- type GBDFLResponse = {
123
- status: string;
124
- statusName: string;
125
- content: string;
126
- };
149
+ export enum DefinedAnswers {
150
+ N = 'N',
151
+ Y = 'Y',
152
+ D = 'D',
153
+ }
127
154
 
128
- // Remove
129
- type FamilyInfoGKB = {
130
- infoList: InfoListGKB;
131
- status: string;
132
- statusName: string;
133
- content: null;
134
- };
155
+ export type AnketaFirst = {
156
+ id: string;
157
+ insuredId: string | null;
158
+ body: AnketaBody[];
159
+ type: 'health' | 'critical';
160
+ clientId: string | null;
161
+ };
162
+
163
+ export type AnketaSecond = {
164
+ id: string;
165
+ name: string;
166
+ answerType: AnswerType;
167
+ definedAnswers: DefinedAnswers;
168
+ defaultAnswer: string | null;
169
+ questOrder: number;
170
+ answerId: string | null;
171
+ answerName: string | null;
172
+ answerText: string | null;
173
+ };
174
+
175
+ export type SendOtpResponse = {
176
+ tokenId?: string;
177
+ errMessage?: string | null;
178
+ result?: string | null;
179
+ status?: string | number | null;
180
+ statusName?: string | null;
181
+ };
182
+
183
+ export type OtpDataType = { iin: string; phoneNumber: string; type: string; processInstanceId?: string | number };
184
+
185
+ export type StartApplicationType = {
186
+ clientId: string | number | null;
187
+ iin: string;
188
+ longName: string;
189
+ processCode: number;
190
+ policyId: number;
191
+ };
192
+
193
+ export type ESBDValidationType = {
194
+ personType: number;
195
+ iin: string;
196
+ lastName: string;
197
+ firstName: string;
198
+ middleName: string;
199
+ birthDate: string;
200
+ sex: number;
201
+ docType: number;
202
+ docNumber: string;
203
+ docIssuedDate: string;
204
+ docIssuedBy: string;
205
+ activityKindId: number;
206
+ economicsSectorId: number;
207
+ resident: number;
208
+ countryId: number;
209
+ };
210
+
211
+ export type ESBDResponseType = {
212
+ errorCode: number;
213
+ errorMsg: string;
214
+ esbdClientID: number;
215
+ verifiedDate: string;
216
+ };
217
+
218
+ export type RecalculationDataType = {
219
+ signDate?: string;
220
+ birthDate?: string;
221
+ gender: number;
222
+ amount: number | null;
223
+ premium: number | null;
224
+ coverPeriod: number;
225
+ payPeriod: number;
226
+ indexRateId?: string | number | null;
227
+ paymentPeriodId?: string;
228
+ addCovers: AddCover[];
229
+ insrCount?: number;
230
+ insTermInMonth?: number;
231
+ insSumType?: number;
232
+ insSumMultiplier?: number;
233
+ fixInsSum?: number | null;
234
+ tariffId?: string | number | null;
235
+ clients?: ClientV2[];
236
+ agentCommission?: number | null;
237
+ processDefinitionFgotId?: any;
238
+ };
239
+
240
+ export interface ClientV2 {
241
+ id: string | number;
242
+ iin: string;
243
+ fullName: string;
244
+ gender: number;
245
+ birthDate: string;
246
+ insSum: number;
247
+ premium?: number;
248
+ premiumWithLoad?: number;
249
+ position?: string;
250
+ lifeMultiply?: number;
251
+ lifeAdditive?: number;
252
+ disabilityMultiply?: number;
253
+ traumaTableMultiple?: number;
254
+ accidentalLifeMultiply?: number;
255
+ accidentalLifeAdditive?: number;
256
+ criticalMultiply?: string;
257
+ criticalAdditive?: string;
258
+ hasAttachedFile?: boolean;
259
+ }
135
260
 
136
- // Remove
137
- type InfoListGKB = {
138
- birthInfos: BirthInfoGKB[];
139
- };
261
+ export type RecalculationResponseType = {
262
+ amount: number;
263
+ premium: number;
264
+ statePremium5?: number;
265
+ statePremium7?: number;
266
+ totalAmount5?: number;
267
+ totalAmount7?: number;
268
+ mainCoverPremium: number;
269
+ addCovers: AddCover[];
270
+ amountInCurrency: number;
271
+ premiumInCurrency: number;
272
+ annuityMonthPay: string | number | null;
273
+ mainPremium?: number;
274
+ clients?: ClientV2[];
275
+ fixInsSum?: number | null;
276
+ agentCommission?: number | null;
277
+ mainInsSum?: number | null;
278
+ mainPremiumWithCommission?: number;
279
+ };
280
+
281
+ export interface AddCover {
282
+ id: string | null;
283
+ processInstanceId: string;
284
+ coverTypeId: string;
285
+ coverTypeName: string;
286
+ coverTypeCode: number;
287
+ coverSumId: string;
288
+ coverSumName: string;
289
+ coverSumCode: string;
290
+ amount: number;
291
+ premium: number;
292
+ isMigrate: boolean;
293
+ coverPeriodId?: string | null;
294
+ coverPeriodName?: string | null;
295
+ coverPeriodCode?: string | null;
296
+ calculatorValue?: number;
297
+ coverTypeNameRu?: string;
298
+ coverTypeNameKz?: string;
299
+ }
140
300
 
141
- // Remove
142
- type BirthInfoGKB = {
143
- actDate?: string;
144
- actNumber?: string;
145
- childBirthDate?: string;
146
- childIIN?: string;
147
- childLifeStatus?: number;
148
- childName?: string;
149
- childPatronymic?: string;
150
- childSurName?: string;
151
- fatherBirthDate?: string;
152
- fatherLifeStatus?: number;
153
- fatherIIN?: string;
154
- fatherName?: string;
155
- fatherPatronymic?: string;
156
- fatherSurName?: string;
157
- marriageActDate?: string;
158
- marriageActNumber?: string;
159
- marriageActPlace?: string;
160
- motherApplication?: number;
161
- motherBirthDate?: string;
162
- motherLifeStatus?: string | null;
163
- motherIIN?: string | null;
164
- motherName?: string | null;
165
- motherPatronymic?: string | null;
166
- motherSurName?: string | null;
167
- zagsCode?: string;
168
- zagsNameKZ?: string;
169
- zagsNameRU?: string;
170
- };
301
+ export type SignUrlType = {
302
+ uri: string;
303
+ shortUri: string;
304
+ iin: string | null;
305
+ longName: string | null;
306
+ phoneNumber: string | null;
307
+ signed: boolean;
308
+ };
309
+
310
+ export type SignDataType = {
311
+ processInstanceId: string;
312
+ name:
313
+ | 'Statement'
314
+ | 'Agreement'
315
+ | 'Contract'
316
+ | 'PA_Contract'
317
+ | 'PA_Statement'
318
+ | 'PA_RefundStatement'
319
+ | 'PA_RefundAgreement'
320
+ | 'PAEnpf_Agreement'
321
+ | 'InvoicePayment'
322
+ | 'RejectOSNS'
323
+ | 'RejectInsuredNotValid';
324
+ format: 'pdf' | 'xml';
325
+ };
326
+
327
+ export type SmsDataType = {
328
+ processInstanceId: string;
329
+ iin: string;
330
+ phoneNumber: string;
331
+ type: 'SignUrl' | 'PayUrl';
332
+ text: string;
333
+ };
334
+
335
+ export type RegNumberDataType = { processInstanceId: string; regNumber: string; date: string };
336
+
337
+ export type EpayShortResponse = {
338
+ id: string;
339
+ link: string;
340
+ };
341
+
342
+ export type EpayResponse = {
343
+ id: string;
344
+ processInstanceId: string;
345
+ createDate: string;
346
+ number: number;
347
+ phoneNumber: string;
348
+ amount: number;
349
+ currency: string;
350
+ dueDate: string;
351
+ transactionId: string;
352
+ transactionDate: string;
353
+ status: number;
354
+ statusName: string;
355
+ description: string;
356
+ epayHtml: string | null;
357
+ epayResponse: string | null;
358
+ paymentLink: string;
359
+ };
360
+
361
+ export type SendTask = {
362
+ decision: keyof typeof constants.actions;
363
+ taskId: string;
364
+ comment?: string;
365
+ };
366
+
367
+ export type AgentData = {
368
+ agentId?: number | null;
369
+ manId?: number;
370
+ fullName?: string;
371
+ officeId?: number | null;
372
+ officeCode?: string | null;
373
+ saleChannel?: string;
374
+ staffId?: number;
375
+ managerName?: string;
376
+ mainAgentId?: string | null;
377
+ agentNo?: string;
378
+ iin?: string | null;
379
+ };
380
+
381
+ export type ChipComponent = {
382
+ title: string;
383
+ description?: string;
384
+ };
385
+
386
+ export type GetContragentRequest = {
387
+ firstName: string;
388
+ lastName: string;
389
+ middleName: string;
390
+ iin: string;
391
+ };
392
+
393
+ export type GetContragentResponse = {
394
+ totalItems: number;
395
+ items: ContragentType[];
396
+ };
397
+
398
+ export interface ContragentType {
399
+ id: number;
400
+ type: number;
401
+ iin: string;
402
+ longName: string;
403
+ lastName: string;
404
+ firstName: string;
405
+ middleName: string | null;
406
+ birthDate: string;
407
+ gender: number;
408
+ genderName: string;
409
+ birthPlace: string;
410
+ age: number;
411
+ registrationDate: string;
412
+ verifyType: string;
413
+ verifyDate: string;
414
+ }
171
415
 
172
- type AnketaBody = {
173
- first: EachAnketa;
174
- second: AnketaSecond[] | null;
175
- };
416
+ export interface ContragentQuestionaries {
417
+ id: number;
418
+ contragentId: number;
419
+ questId: string;
420
+ questName: string;
421
+ questAnswer: string | number | null;
422
+ questAnswerName: string | null;
423
+ }
176
424
 
177
- type EachAnketa = {
178
- id: string;
179
- name: string;
180
- answerType: AnswerType;
181
- definedAnswers: DefinedAnswers;
182
- defaultAnswer: string;
183
- questOrder: number;
184
- answerId: string | null;
185
- answerName: AnswerName | null;
186
- answerText: string | null;
187
- };
425
+ export interface ContragentDocuments {
426
+ id: number;
427
+ contragentId: number;
428
+ type?: string;
429
+ typeName: string | null;
430
+ serial: string | null;
431
+ number: string | null;
432
+ issueDate: string;
433
+ expireDate: string;
434
+ issuerId: number;
435
+ issuerName: string | null;
436
+ issuerNameRu: string | null;
437
+ description: string | null;
438
+ note: string | null;
439
+ verifyType: string;
440
+ verifyDate: string;
441
+ }
188
442
 
189
- enum AnswerName {
190
- Нет = 'Нет',
191
- Да = 'Да',
192
- }
443
+ export interface ContragentAddress {
444
+ id: number;
445
+ contragentId: number;
446
+ type?: string;
447
+ address?: string;
448
+ countryCode?: string | number;
449
+ countryName?: string;
450
+ stateCode?: string | number;
451
+ stateName?: string;
452
+ cityCode?: string | number;
453
+ cityName?: string;
454
+ regionCode?: string | number | null;
455
+ regionName?: string | null;
456
+ streetName?: string;
457
+ blockNumber?: string;
458
+ apartmentNumber?: string;
459
+ cityTypeId?: number | null;
460
+ cityTypeName?: string;
461
+ microRaion?: string | null;
462
+ kvartal?: string | null;
463
+ }
193
464
 
194
- enum AnswerType {
195
- N = 'N',
196
- T = 'T',
197
- D = 'D',
198
- }
465
+ export interface ContragentContacts {
466
+ id: number;
467
+ contragentId: number;
468
+ type: string;
469
+ typeName: string;
470
+ value: string | null;
471
+ note: string | null;
472
+ primaryFlag: string;
473
+ newValue: string | null;
474
+ verifyType?: string | null;
475
+ verifyDate?: string | null;
476
+ }
199
477
 
200
- enum DefinedAnswers {
201
- N = 'N',
202
- Y = 'Y',
203
- D = 'D',
478
+ export type AddCoverAnswer = {
479
+ id: string;
480
+ code: string;
481
+ calculatorValue: number;
482
+ nameKz: string;
483
+ nameRu: string;
484
+ isDefault: boolean;
485
+ };
486
+
487
+ export type PolicyAppDto = {
488
+ id?: string;
489
+ processInstanceId?: string;
490
+ policyId?: number | null;
491
+ policyNumber?: string | null;
492
+ contractDate?: string;
493
+ contractEndDate?: string;
494
+ amount?: number | null;
495
+ premium?: number | null;
496
+ mainCoverPremium?: number;
497
+ currency?: string;
498
+ isSpokesman?: boolean;
499
+ coverPeriod?: number | null;
500
+ payPeriod?: number | null;
501
+ indexRateId?: string | number;
502
+ indexRateCode?: string;
503
+ indexRateName?: string;
504
+ paymentPeriodId?: string | number;
505
+ paymentPeriodName?: string;
506
+ lifeMultiply?: number;
507
+ lifeAdditive?: number;
508
+ adbMultiply?: number;
509
+ adbAdditive?: number;
510
+ disabilityMultiply?: number;
511
+ disabilityAdditive?: number;
512
+ documentSignTypeId?: string;
513
+ documentSignTypeCode?: string;
514
+ documentSignTypeName?: string;
515
+ isDocumentsSigned?: boolean;
516
+ paymentTypeId?: string;
517
+ paymentTypeName?: string;
518
+ isPayed?: boolean;
519
+ underwritingType?: number;
520
+ annualIncome?: number | null;
521
+ calcDirect?: number;
522
+ tariffName?: string;
523
+ riskGroup?: number;
524
+ riskGroup2?: number;
525
+ lifeMultiplyClient?: number;
526
+ lifeAdditiveClient?: number;
527
+ annuityTypeId?: string;
528
+ annuityTypeName?: string;
529
+ annuityPaymentPeriodId?: string;
530
+ annuityPaymentPeriodName?: string;
531
+ guaranteedPaymentPeriod?: number | null;
532
+ paymentPeriod?: number;
533
+ annuityMonthPay?: number;
534
+ annuityPaymentBeginDate?: string;
535
+ annuityPaymentEndDate?: string;
536
+ amountInCurrency?: number | null;
537
+ premiumInCurrency?: number | null;
538
+ currencyExchangeRate?: number | null;
539
+ age?: string | number | null;
540
+ lifeTripCountries?: string[] | null;
541
+ tripPurposeId?: string | number | null;
542
+ insuredAmountId?: string | number | null;
543
+ workTypeId?: string | number | null;
544
+ sportsTypeId?: string | number | null;
545
+ singleTripDays?: string | number | null;
546
+ multipleTripMaxDays?: string | number | null;
547
+ tripInsurancePeriod?: string | number | null;
548
+ startDate?: string | null;
549
+ endDate?: string | null;
550
+ insTermInMonth?: number | null;
551
+ fixInsSum?: number | string | null;
552
+ tariffId?: string | null;
553
+ mainPremium?: number | string | null;
554
+ processDefinitionFgotId?: string | number;
555
+ mainInsSum?: number | null;
556
+ agentCommission?: number | null;
557
+ calcDate?: string;
558
+ };
559
+
560
+ export type InsisWorkDataApp = {
561
+ id?: string;
562
+ processInstanceId?: string;
563
+ agentId?: number;
564
+ agentName?: string;
565
+ salesChannel?: string;
566
+ salesChannelName?: string;
567
+ insrType?: number;
568
+ saleChanellPolicy?: string;
569
+ saleChanellPolicyName?: string;
570
+ regionPolicy?: string;
571
+ regionPolicyName?: string;
572
+ managerPolicy?: string;
573
+ managerPolicyName?: string;
574
+ insuranceProgramType?: string;
575
+ };
576
+
577
+ export type TripInsuranceAmount = {
578
+ amounts: Value[];
579
+ currency: string;
580
+ };
581
+
582
+ export type TripInsuranceDaysOptions = {
583
+ period: {
584
+ '90': string[];
585
+ '180': string[];
586
+ '270': string[];
587
+ '365': string[];
588
+ };
589
+ };
590
+ export type getTripInsuredAmountRequest = {
591
+ tripTypeID: string | number | null;
592
+ countryID: string[];
593
+ };
594
+
595
+ export type SetApplicationRequest = {
596
+ processInstanceId?: string | number | null;
597
+ id?: string | null;
598
+ addCoversDto?: AddCover[];
599
+ insuredAmountId?: string | number | null;
600
+ age?: string | number | null;
601
+ lifeTripCountries?: string[] | null;
602
+ tripPurposeId?: string | number | null;
603
+ workTypeId?: string | number | null;
604
+ sportsTypeId?: string | number | null;
605
+ singleTripDays?: number;
606
+ multipleTripMaxDays?: number;
607
+ tripInsurancePeriod?: number;
608
+ startDate?: string | null;
609
+ endDate?: string | null;
610
+ policyId?: number;
611
+ policyNumber?: string;
612
+ contractDate?: string;
613
+ contractEndDate?: string;
614
+ amount?: number;
615
+ premium?: number;
616
+ mainCoverPremium?: number;
617
+ currency?: string;
618
+ isSpokesman?: boolean;
619
+ coverPeriod?: number;
620
+ payPeriod?: number;
621
+ indexRateId?: string;
622
+ indexRateCode?: string;
623
+ indexRateName?: string;
624
+ paymentPeriodId?: string;
625
+ paymentPeriodName?: string;
626
+ lifeMultiply?: number;
627
+ lifeAdditive?: number;
628
+ adbMultiply?: number;
629
+ adbAdditive?: number;
630
+ disabilityMultiply?: number;
631
+ disabilityAdditive?: number;
632
+ documentSignTypeId?: string;
633
+ documentSignTypeCode?: string;
634
+ documentSignTypeName?: string;
635
+ isDocumentsSigned?: boolean;
636
+ paymentTypeId?: string;
637
+ paymentTypeName?: string;
638
+ isPayed?: boolean;
639
+ underwritingType?: number;
640
+ calcDirect?: number;
641
+ tariffId?: string;
642
+ tariffName?: string;
643
+ riskGroup?: number;
644
+ riskGroup2?: number;
645
+ lifeMultiplyClient?: number;
646
+ lifeAdditiveClient?: number;
647
+ annuityTypeId?: string;
648
+ annuityTypeName?: string;
649
+ annuityPaymentPeriodId?: string;
650
+ annuityPaymentPeriodName?: string;
651
+ guaranteedPaymentPeriod?: number;
652
+ paymentPeriod?: number;
653
+ annuityMonthPay?: number;
654
+ annuityPaymentBeginDate?: string;
655
+ annuityPaymentEndDate?: string;
656
+ calcDate?: string;
657
+ guaranteedPaymentBeginDate?: string;
658
+ guaranteedPaymentEndDate?: string;
659
+ annuityPaymentAmount?: number;
660
+ countPay?: number;
661
+ guaranteedPeriod?: number;
662
+ dateFirstPay?: string;
663
+ effectiveAnnualpercentage?: number;
664
+ factorCurrentValueGP?: number;
665
+ alfa?: number;
666
+ gamma?: number;
667
+ mrpPayment?: number;
668
+ };
669
+
670
+ export type KGDResponse = {
671
+ responseCode: string;
672
+ content: string | null;
673
+ lastName: string;
674
+ firstName: string;
675
+ middleName: string;
676
+ name: string;
677
+ };
678
+
679
+ export type AccidentIncidents = {
680
+ id: string | null;
681
+ processInstanceId: string | null;
682
+ coverTypeId: string | null;
683
+ coverTypeName: string | null;
684
+ coverTypeCode: number | null;
685
+ count: number | string;
686
+ amount: number | string;
687
+ shortDescription: string | null;
688
+ };
689
+
690
+ export type GovPremiums = {
691
+ statePremium5: number | null;
692
+ statePremium7: number | null;
693
+ totalAmount5: number | null;
694
+ totalAmount7: number | null;
695
+ };
696
+
697
+ export type InsuredPolicyType = {
698
+ insSum: number;
699
+ insSumWithLoad: number;
700
+ premium: number;
701
+ premiumWithLoad: number;
702
+ insuredRisk: {
703
+ lifeMultiply: number;
704
+ lifeAdditive: number;
705
+ disabilityMultiply: number;
706
+ disabilityAdditive: number;
707
+ traumaTableMultiple: number;
708
+ accidentalLifeMultiply: number;
709
+ accidentalLifeAdditive: number;
710
+ criticalMultiply: number;
711
+ criticalAdditive: number;
712
+ };
713
+ insuredCoverData: {
714
+ coverTypeEnum: number;
715
+ prmeium: number;
716
+ }[];
717
+ };
718
+
719
+ export type ResponseStructure<T> = { code: 0; message: 'OK'; data: T };
720
+
721
+ export type SignedState = {
722
+ isOnline: boolean;
723
+ signValue: number;
724
+ signName: string;
725
+ code: string;
726
+ };
727
+
728
+ export namespace Base {
729
+ export namespace Document {
730
+ export type Digital = { iin: string; longName: string; digitalDocument: IDocument | null };
204
731
  }
732
+ }
205
733
 
206
- type AnketaFirst = {
207
- id: string;
208
- insuredId: string | null;
209
- body: AnketaBody[];
210
- type: 'health' | 'critical';
211
- clientId: string | null;
212
- };
213
-
214
- type AnketaSecond = {
215
- id: string;
216
- name: string;
217
- answerType: AnswerType;
218
- definedAnswers: DefinedAnswers;
219
- defaultAnswer: string | null;
220
- questOrder: number;
221
- answerId: string | null;
222
- answerName: string | null;
223
- answerText: string | null;
224
- };
225
-
226
- type SendOtpResponse = {
227
- tokenId?: string;
228
- errMessage?: string | null;
229
- result?: string | null;
230
- status?: string | number | null;
231
- statusName?: string | null;
232
- };
233
-
234
- type OtpDataType = { iin: string; phoneNumber: string; type: string; processInstanceId?: string | number };
235
-
236
- type StartApplicationType = {
237
- clientId: string | number | null;
238
- iin: string;
239
- longName: string;
240
- processCode: number;
241
- policyId: number;
734
+ export namespace Utils {
735
+ export type ProjectConfig = {
736
+ version: string;
737
+ buildTime: string;
738
+ isDown: boolean;
242
739
  };
243
-
244
- type ESBDValidationType = {
245
- personType: number;
246
- iin: string;
740
+ export type VuetifyAnimations = 'expand' | 'fab' | 'fade' | 'scale' | 'scroll-x' | 'scroll-y' | 'slide-x' | 'slide-x-r' | 'slide-y' | 'slide-y-r';
741
+ export type LabelSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
742
+ export type VIcon = { mdi?: string; color?: string; bg?: string; size?: 'x-small' | 'small' | 'default' | 'large' | 'x-large' };
743
+ export type JwtToken = JwtPayload & {
247
744
  lastName: string;
248
745
  firstName: string;
249
- middleName: string;
250
- birthDate: string;
251
- sex: number;
252
- docType: number;
253
- docNumber: string;
254
- docIssuedDate: string;
255
- docIssuedBy: string;
256
- activityKindId: number;
257
- economicsSectorId: number;
258
- resident: number;
259
- countryId: number;
260
- };
261
-
262
- type ESBDResponseType = {
263
- errorCode: number;
264
- errorMsg: string;
265
- esbdClientID: number;
266
- verifiedDate: string;
267
- };
268
-
269
- type RecalculationDataType = {
270
- signDate?: string;
271
- birthDate?: string;
272
- gender: number;
273
- amount: number | null;
274
- premium: number | null;
275
- coverPeriod: number;
276
- payPeriod: number;
277
- indexRateId?: string | number | null;
278
- paymentPeriodId?: string;
279
- addCovers: AddCover[];
280
- insrCount?: number;
281
- insTermInMonth?: number;
282
- insSumType?: number;
283
- insSumMultiplier?: number;
284
- fixInsSum?: number | null;
285
- tariffId?: string | number | null;
286
- clients?: ClientV2[];
287
- agentCommission?: number | null;
288
- processDefinitionFgotId?: any;
289
- };
290
-
291
- interface ClientV2 {
292
- id: string | number;
293
- iin: string;
294
- fullName: string;
295
- gender: number;
296
- birthDate: string;
297
- insSum: number;
298
- premium?: number;
299
- premiumWithLoad?: number;
300
- position?: string;
301
- lifeMultiply?: number;
302
- lifeAdditive?: number;
303
- disabilityMultiply?: number;
304
- traumaTableMultiple?: number;
305
- accidentalLifeMultiply?: number;
306
- accidentalLifeAdditive?: number;
307
- criticalMultiply?: string;
308
- criticalAdditive?: string;
309
- hasAttachedFile?: boolean;
310
- }
311
-
312
- type RecalculationResponseType = {
313
- amount: number;
314
- premium: number;
315
- statePremium5?: number;
316
- statePremium7?: number;
317
- totalAmount5?: number;
318
- totalAmount7?: number;
319
- mainCoverPremium: number;
320
- addCovers: AddCover[];
321
- amountInCurrency: number;
322
- premiumInCurrency: number;
323
- annuityMonthPay: string | number | null;
324
- mainPremium?: number;
325
- clients?: ClientV2[];
326
- fixInsSum?: number | null;
327
- agentCommission?: number | null;
328
- mainInsSum?: number | null;
329
- mainPremiumWithCommission?: number;
330
- };
331
-
332
- interface AddCover {
333
- id: string | null;
334
- processInstanceId: string;
335
- coverTypeId: string;
336
- coverTypeName: string;
337
- coverTypeCode: number;
338
- coverSumId: string;
339
- coverSumName: string;
340
- coverSumCode: string;
341
- amount: number;
342
- premium: number;
343
- isMigrate: boolean;
344
- coverPeriodId?: string | null;
345
- coverPeriodName?: string | null;
346
- coverPeriodCode?: string | null;
347
- calculatorValue?: number;
348
- coverTypeNameRu?: string;
349
- coverTypeNameKz?: string;
350
- }
351
-
352
- type SignUrlType = {
353
- uri: string;
354
- shortUri: string;
355
- iin: string | null;
356
- longName: string | null;
357
- phoneNumber: string | null;
358
- signed: boolean;
359
- };
360
-
361
- type SignDataType = {
362
- processInstanceId: string;
363
- name:
364
- | 'Statement'
365
- | 'Agreement'
366
- | 'Contract'
367
- | 'PA_Contract'
368
- | 'PA_Statement'
369
- | 'PA_RefundStatement'
370
- | 'PA_RefundAgreement'
371
- | 'PAEnpf_Agreement'
372
- | 'InvoicePayment'
373
- | 'RejectOSNS'
374
- | 'RejectInsuredNotValid';
375
- format: 'pdf' | 'xml';
376
- };
377
-
378
- type SmsDataType = {
379
- processInstanceId: string;
380
- iin: string;
381
- phoneNumber: string;
382
- type: 'SignUrl' | 'PayUrl';
383
- text: string;
384
- };
385
-
386
- type RegNumberDataType = { processInstanceId: string; regNumber: string; date: string };
387
-
388
- type EpayShortResponse = {
389
- id: string;
390
- link: string;
391
- };
392
-
393
- type EpayResponse = {
394
- id: string;
395
- processInstanceId: string;
396
- createDate: string;
397
- number: number;
398
- phoneNumber: string;
399
- amount: number;
400
- currency: string;
401
- dueDate: string;
402
- transactionId: string;
403
- transactionDate: string;
404
- status: number;
405
- statusName: string;
406
- description: string;
407
- epayHtml: string | null;
408
- epayResponse: string | null;
409
- paymentLink: string;
410
- };
411
-
412
- type SendTask = {
413
- decision: keyof typeof constants.actions;
414
- taskId: string;
415
- comment?: string;
416
- };
417
-
418
- type AgentData = {
419
- agentId?: number | null;
420
- manId?: number;
421
- fullName?: string;
422
- officeId?: number | null;
423
- officeCode?: string | null;
424
- saleChannel?: string;
425
- staffId?: number;
426
- managerName?: string;
427
- mainAgentId?: string | null;
428
- agentNo?: string;
429
- iin?: string | null;
430
- };
431
-
432
- type ChipComponent = {
433
- title: string;
434
- description?: string;
435
- };
436
-
437
- type GetContragentRequest = {
438
- firstName: string;
439
- lastName: string;
440
- middleName: string;
746
+ middleName?: string;
747
+ code: string;
748
+ name?: string;
749
+ branchId: string;
750
+ branchCode: string;
751
+ branchName: string;
752
+ isAdmin: boolean;
441
753
  iin: string;
754
+ phone: string;
755
+ email: string;
756
+ isChangePassword: boolean;
757
+ Permission: string[];
442
758
  };
759
+ }
443
760
 
444
- type GetContragentResponse = {
445
- totalItems: number;
446
- items: ContragentType[];
447
- };
448
-
449
- interface ContragentType {
450
- id: number;
451
- type: number;
452
- iin: string;
453
- longName: string;
454
- lastName: string;
455
- firstName: string;
456
- middleName: string | null;
457
- birthDate: string;
458
- gender: number;
459
- genderName: string;
460
- birthPlace: string;
461
- age: number;
462
- registrationDate: string;
463
- verifyType: string;
464
- verifyDate: string;
465
- }
466
-
467
- interface ContragentQuestionaries {
468
- id: number;
469
- contragentId: number;
470
- questId: string;
471
- questName: string;
472
- questAnswer: string | number | null;
473
- questAnswerName: string | null;
474
- }
475
-
476
- interface ContragentDocuments {
477
- id: number;
478
- contragentId: number;
479
- type?: string;
480
- typeName: string | null;
481
- serial: string | null;
482
- number: string | null;
483
- issueDate: string;
484
- expireDate: string;
485
- issuerId: number;
486
- issuerName: string | null;
487
- issuerNameRu: string | null;
488
- description: string | null;
489
- note: string | null;
490
- verifyType: string;
491
- verifyDate: string;
492
- }
493
-
494
- interface ContragentAddress {
495
- id: number;
496
- contragentId: number;
497
- type?: string;
498
- address?: string;
499
- countryCode?: string | number;
500
- countryName?: string;
501
- stateCode?: string | number;
502
- stateName?: string;
503
- cityCode?: string | number;
504
- cityName?: string;
505
- regionCode?: string | number | null;
506
- regionName?: string | null;
507
- streetName?: string;
508
- blockNumber?: string;
509
- apartmentNumber?: string;
510
- cityTypeId?: number | null;
511
- cityTypeName?: string;
512
- microRaion?: string | null;
513
- kvartal?: string | null;
514
- }
515
-
516
- interface ContragentContacts {
517
- id: number;
518
- contragentId: number;
519
- type: string;
520
- typeName: string;
521
- value: string | null;
522
- note: string | null;
523
- primaryFlag: string;
524
- newValue: string | null;
525
- verifyType?: string | null;
526
- verifyDate?: string | null;
761
+ export namespace Api {
762
+ export namespace GenerateShortLink {
763
+ export type Templates = 'halyk_pay_link_template';
764
+ export type Response = {
765
+ id: string;
766
+ link: string;
767
+ };
768
+ export type Request = { link: string; priority: string; template?: Api.GenerateShortLink.Templates };
527
769
  }
528
-
529
- type AddCoverAnswer = {
530
- id: string;
531
- code: string;
532
- calculatorValue: number;
533
- nameKz: string;
534
- nameRu: string;
535
- isDefault: boolean;
536
- };
537
-
538
- type PolicyAppDto = {
539
- id?: string;
540
- processInstanceId?: string;
541
- policyId?: number | null;
542
- policyNumber?: string | null;
543
- contractDate?: string;
544
- contractEndDate?: string;
545
- amount?: number | null;
546
- premium?: number | null;
547
- mainCoverPremium?: number;
548
- currency?: string;
549
- isSpokesman?: boolean;
550
- coverPeriod?: number | null;
551
- payPeriod?: number | null;
552
- indexRateId?: string | number;
553
- indexRateCode?: string;
554
- indexRateName?: string;
555
- paymentPeriodId?: string | number;
556
- paymentPeriodName?: string;
557
- lifeMultiply?: number;
558
- lifeAdditive?: number;
559
- adbMultiply?: number;
560
- adbAdditive?: number;
561
- disabilityMultiply?: number;
562
- disabilityAdditive?: number;
563
- documentSignTypeId?: string;
564
- documentSignTypeCode?: string;
565
- documentSignTypeName?: string;
566
- isDocumentsSigned?: boolean;
567
- paymentTypeId?: string;
568
- paymentTypeName?: string;
569
- isPayed?: boolean;
570
- underwritingType?: number;
571
- annualIncome?: number | null;
572
- calcDirect?: number;
573
- tariffName?: string;
574
- riskGroup?: number;
575
- riskGroup2?: number;
576
- lifeMultiplyClient?: number;
577
- lifeAdditiveClient?: number;
578
- annuityTypeId?: string;
579
- annuityTypeName?: string;
580
- annuityPaymentPeriodId?: string;
581
- annuityPaymentPeriodName?: string;
582
- guaranteedPaymentPeriod?: number | null;
583
- paymentPeriod?: number;
584
- annuityMonthPay?: number;
585
- annuityPaymentBeginDate?: string;
586
- annuityPaymentEndDate?: string;
587
- amountInCurrency?: number | null;
588
- premiumInCurrency?: number | null;
589
- currencyExchangeRate?: number | null;
590
- age?: string | number | null;
591
- lifeTripCountries?: string[] | null;
592
- tripPurposeId?: string | number | null;
593
- insuredAmountId?: string | number | null;
594
- workTypeId?: string | number | null;
595
- sportsTypeId?: string | number | null;
596
- singleTripDays?: string | number | null;
597
- multipleTripMaxDays?: string | number | null;
598
- tripInsurancePeriod?: string | number | null;
599
- startDate?: string | null;
600
- endDate?: string | null;
601
- insTermInMonth?: number | null;
602
- fixInsSum?: number | string | null;
603
- tariffId?: string | null;
604
- mainPremium?: number | string | null;
605
- processDefinitionFgotId?: string | number;
606
- mainInsSum?: number | null;
607
- agentCommission?: number | null;
608
- calcDate?: string;
609
- };
610
-
611
- type InsisWorkDataApp = {
612
- id?: string;
613
- processInstanceId?: string;
614
- agentId?: number;
615
- agentName?: string;
616
- salesChannel?: string;
617
- salesChannelName?: string;
618
- insrType?: number;
619
- saleChanellPolicy?: string;
620
- saleChanellPolicyName?: string;
621
- regionPolicy?: string;
622
- regionPolicyName?: string;
623
- managerPolicy?: string;
624
- managerPolicyName?: string;
625
- insuranceProgramType?: string;
626
- };
627
-
628
- type TripInsuranceAmount = {
629
- amounts: Value[];
630
- currency: string;
631
- };
632
-
633
- type TripInsuranceDaysOptions = {
634
- period: {
635
- '90': string[];
636
- '180': string[];
637
- '270': string[];
638
- '365': string[];
770
+ export namespace GBD {
771
+ export type Request = {
772
+ iin: string;
773
+ phoneNumber: string;
639
774
  };
640
- };
641
- type getTripInsuredAmountRequest = {
642
- tripTypeID: string | number | null;
643
- countryID: string[];
644
- };
645
-
646
- type SetApplicationRequest = {
647
- processInstanceId?: string | number | null;
648
- id?: string | null;
649
- addCoversDto?: AddCover[];
650
- insuredAmountId?: string | number | null;
651
- age?: string | number | null;
652
- lifeTripCountries?: string[] | null;
653
- tripPurposeId?: string | number | null;
654
- workTypeId?: string | number | null;
655
- sportsTypeId?: string | number | null;
656
- singleTripDays?: number;
657
- multipleTripMaxDays?: number;
658
- tripInsurancePeriod?: number;
659
- startDate?: string | null;
660
- endDate?: string | null;
661
- policyId?: number;
662
- policyNumber?: string;
663
- contractDate?: string;
664
- contractEndDate?: string;
665
- amount?: number;
666
- premium?: number;
667
- mainCoverPremium?: number;
668
- currency?: string;
669
- isSpokesman?: boolean;
670
- coverPeriod?: number;
671
- payPeriod?: number;
672
- indexRateId?: string;
673
- indexRateCode?: string;
674
- indexRateName?: string;
675
- paymentPeriodId?: string;
676
- paymentPeriodName?: string;
677
- lifeMultiply?: number;
678
- lifeAdditive?: number;
679
- adbMultiply?: number;
680
- adbAdditive?: number;
681
- disabilityMultiply?: number;
682
- disabilityAdditive?: number;
683
- documentSignTypeId?: string;
684
- documentSignTypeCode?: string;
685
- documentSignTypeName?: string;
686
- isDocumentsSigned?: boolean;
687
- paymentTypeId?: string;
688
- paymentTypeName?: string;
689
- isPayed?: boolean;
690
- underwritingType?: number;
691
- calcDirect?: number;
692
- tariffId?: string;
693
- tariffName?: string;
694
- riskGroup?: number;
695
- riskGroup2?: number;
696
- lifeMultiplyClient?: number;
697
- lifeAdditiveClient?: number;
698
- annuityTypeId?: string;
699
- annuityTypeName?: string;
700
- annuityPaymentPeriodId?: string;
701
- annuityPaymentPeriodName?: string;
702
- guaranteedPaymentPeriod?: number;
703
- paymentPeriod?: number;
704
- annuityMonthPay?: number;
705
- annuityPaymentBeginDate?: string;
706
- annuityPaymentEndDate?: string;
707
- calcDate?: string;
708
- guaranteedPaymentBeginDate?: string;
709
- guaranteedPaymentEndDate?: string;
710
- annuityPaymentAmount?: number;
711
- countPay?: number;
712
- guaranteedPeriod?: number;
713
- dateFirstPay?: string;
714
- effectiveAnnualpercentage?: number;
715
- factorCurrentValueGP?: number;
716
- alfa?: number;
717
- gamma?: number;
718
- mrpPayment?: number;
719
- };
720
-
721
- type KGDResponse = {
722
- responseCode: string;
723
- content: string | null;
724
- lastName: string;
725
- firstName: string;
726
- middleName: string;
727
- name: string;
728
- };
729
-
730
- type AccidentIncidents = {
731
- id: string | null;
732
- processInstanceId: string | null;
733
- coverTypeId: string | null;
734
- coverTypeName: string | null;
735
- coverTypeCode: number | null;
736
- count: number | string;
737
- amount: number | string;
738
- shortDescription: string | null;
739
- };
740
-
741
- type GovPremiums = {
742
- statePremium5: number | null;
743
- statePremium7: number | null;
744
- totalAmount5: number | null;
745
- totalAmount7: number | null;
746
- };
747
-
748
- type InsuredPolicyType = {
749
- insSum: number;
750
- insSumWithLoad: number;
751
- premium: number;
752
- premiumWithLoad: number;
753
- insuredRisk: {
754
- lifeMultiply: number;
755
- lifeAdditive: number;
756
- disabilityMultiply: number;
757
- disabilityAdditive: number;
758
- traumaTableMultiple: number;
759
- accidentalLifeMultiply: number;
760
- accidentalLifeAdditive: number;
761
- criticalMultiply: number;
762
- criticalAdditive: number;
775
+ export type UlRequest = { userName: string; branchName: string; bin: string };
776
+ export type Response = {
777
+ status: string;
778
+ statusName: string;
779
+ content: string;
763
780
  };
764
- insuredCoverData: {
765
- coverTypeEnum: number;
766
- prmeium: number;
767
- }[];
768
- };
769
-
770
- type ResponseStructure<T> = { code: 0; message: 'OK'; data: T };
771
-
772
- type SignedState = {
773
- isOnline: boolean;
774
- signValue: number;
775
- signName: string;
776
- code: string;
777
- };
778
-
779
- namespace Utils {
780
- type ProjectConfig = {
781
- version: string;
782
- buildTime: string;
783
- isDown: boolean;
781
+ export type Dict = {
782
+ code: string;
783
+ nameRu: string;
784
+ nameKz: string;
785
+ changeDate: string;
784
786
  };
785
- type VuetifyAnimations = 'expand' | 'fab' | 'fade' | 'scale' | 'scroll-x' | 'scroll-y' | 'slide-x' | 'slide-x-r' | 'slide-y' | 'slide-y-r';
786
- type LabelSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
787
- type VIcon = { mdi?: string; color?: string; bg?: string; size?: 'x-small' | 'small' | 'default' | 'large' | 'x-large' };
788
- }
789
-
790
- namespace Api {
791
- namespace GenerateShortLink {
792
- type Templates = 'halyk_pay_link_template';
793
- type Response = {
794
- id: string;
795
- link: string;
796
- };
797
- type Request = { link: string; priority: string; template?: Api.GenerateShortLink.Templates };
798
- }
799
- namespace GBD {
800
- type Request = {
801
- iin: string;
802
- phoneNumber: string;
803
- };
804
- type UlRequest = { userName: string; branchName: string; bin: string };
805
- type Response = {
806
- status: string;
807
- statusName: string;
808
- content: string;
809
- };
810
- type Dict = {
811
- code: string;
812
- nameRu: string;
813
- nameKz: string;
814
- changeDate: string;
815
- };
816
- type Document = {
817
- type: Api.GBD.Dict & { code: Enums.GBD.DocTypes };
787
+ export type Document = {
788
+ type: Api.GBD.Dict & { code: CoreEnums.GBD.DocTypes };
789
+ beginDate: string;
790
+ endDate: string;
791
+ number: string;
792
+ issueOrganization: Api.GBD.Dict;
793
+ status: Api.GBD.Dict;
794
+ surname: string;
795
+ name: string;
796
+ patronymic?: string;
797
+ birthDate: string;
798
+ };
799
+ export type Person = {
800
+ iin: string;
801
+ surname: string;
802
+ name: string;
803
+ patronymic?: string;
804
+ engFirstName: string;
805
+ engSurname: string;
806
+ birthDate: string;
807
+ gender: Api.GBD.Dict;
808
+ nationality: Api.GBD.Dict;
809
+ citizenship: Api.GBD.Dict;
810
+ lifeStatus: Api.GBD.Dict;
811
+ birthPlace: { country: Api.GBD.Dict; district: Api.GBD.Dict; region: Api.GBD.Dict; city: any };
812
+ regAddress: {
813
+ country: Api.GBD.Dict;
814
+ district: Api.GBD.Dict;
815
+ region: Api.GBD.Dict;
816
+ street: string;
817
+ city: string;
818
+ building: string;
819
+ flat: string;
818
820
  beginDate: string;
819
- endDate: string;
820
- number: string;
821
- issueOrganization: Api.GBD.Dict;
822
821
  status: Api.GBD.Dict;
823
- surname: string;
824
- name: string;
825
- patronymic?: string;
826
- birthDate: string;
827
- };
828
- type Person = {
829
- iin: string;
830
- surname: string;
831
- name: string;
832
- patronymic?: string;
833
- engFirstName: string;
834
- engSurname: string;
835
- birthDate: string;
836
- gender: Api.GBD.Dict;
837
- nationality: Api.GBD.Dict;
838
- citizenship: Api.GBD.Dict;
839
- lifeStatus: Api.GBD.Dict;
840
- birthPlace: { country: Api.GBD.Dict; district: Api.GBD.Dict; region: Api.GBD.Dict; city: any };
841
- regAddress: {
842
- country: Api.GBD.Dict;
843
- district: Api.GBD.Dict;
844
- region: Api.GBD.Dict;
845
- street: string;
846
- city: string;
847
- building: string;
848
- flat: string;
849
- beginDate: string;
850
- status: Api.GBD.Dict;
851
- invalidity: Api.GBD.Dict;
852
- arcode: string;
853
- };
854
- documents: {
855
- document: Api.GBD.Document | Api.GBD.Document[];
856
- };
857
- addresses: any;
858
- };
859
- }
860
- namespace GKB {
861
- type Response = {
862
- infoList: Api.GKB.BirthInfoList;
863
- status: string;
864
- statusName: string;
865
- content: null;
866
- };
867
- type BirthInfoList = {
868
- birthInfos: Api.GKB.BirthInfo[];
869
- };
870
- type BirthInfo = {
871
- actDate?: string;
872
- actNumber?: string;
873
- childBirthDate?: string;
874
- childIIN?: string;
875
- childLifeStatus?: number;
876
- childName?: string;
877
- childPatronymic?: string;
878
- childSurName?: string;
879
- fatherBirthDate?: string;
880
- fatherLifeStatus?: number;
881
- fatherIIN?: string;
882
- fatherName?: string;
883
- fatherPatronymic?: string;
884
- fatherSurName?: string;
885
- marriageActDate?: string;
886
- marriageActNumber?: string;
887
- marriageActPlace?: string;
888
- motherApplication?: number;
889
- motherBirthDate?: string;
890
- motherLifeStatus?: string | null;
891
- motherIIN?: string | null;
892
- motherName?: string | null;
893
- motherPatronymic?: string | null;
894
- motherSurName?: string | null;
895
- zagsCode?: string;
896
- zagsNameKZ?: string;
897
- zagsNameRU?: string;
822
+ invalidity: Api.GBD.Dict;
823
+ arcode: string;
898
824
  };
899
- }
900
-
901
- namespace KGD {
902
- type Response = {
903
- responseCode: string;
904
- content: string | null;
905
- lastName: string;
906
- firstName: string;
907
- middleName: string;
908
- name: string;
825
+ documents: {
826
+ document: Api.GBD.Document | Api.GBD.Document[];
909
827
  };
910
- }
828
+ addresses: any;
829
+ };
830
+ }
831
+ export namespace GKB {
832
+ export type Response = {
833
+ infoList: Api.GKB.BirthInfoList;
834
+ status: string;
835
+ statusName: string;
836
+ content: null;
837
+ };
838
+ export type BirthInfoList = {
839
+ birthInfos: Api.GKB.BirthInfo[];
840
+ };
841
+ export type BirthInfo = {
842
+ actDate?: string;
843
+ actNumber?: string;
844
+ childBirthDate?: string;
845
+ childIIN?: string;
846
+ childLifeStatus?: number;
847
+ childName?: string;
848
+ childPatronymic?: string;
849
+ childSurName?: string;
850
+ fatherBirthDate?: string;
851
+ fatherLifeStatus?: number;
852
+ fatherIIN?: string;
853
+ fatherName?: string;
854
+ fatherPatronymic?: string;
855
+ fatherSurName?: string;
856
+ marriageActDate?: string;
857
+ marriageActNumber?: string;
858
+ marriageActPlace?: string;
859
+ motherApplication?: number;
860
+ motherBirthDate?: string;
861
+ motherLifeStatus?: string | null;
862
+ motherIIN?: string | null;
863
+ motherName?: string | null;
864
+ motherPatronymic?: string | null;
865
+ motherSurName?: string | null;
866
+ zagsCode?: string;
867
+ zagsNameKZ?: string;
868
+ zagsNameRU?: string;
869
+ };
911
870
  }
912
871
 
913
- namespace Dicts {
914
- type WorkPosition = { workPositionClassCode: string; workPositionCode: string; workPositionName: string };
872
+ export namespace KGD {
873
+ export type Response = {
874
+ responseCode: string;
875
+ content: string | null;
876
+ lastName: string;
877
+ firstName: string;
878
+ middleName: string;
879
+ name: string;
880
+ };
915
881
  }
916
882
  }
883
+
884
+ export namespace Dicts {
885
+ export type WorkPosition = { workPositionClassCode: string; workPositionCode: string; workPositionName: string };
886
+ }