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

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 +221 -195
  2. package/components/Complex/TextBlock.vue +2 -0
  3. package/components/Dialog/Dialog.vue +7 -1
  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 +2 -4
  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 +4 -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 +165 -166
  19. package/components/Pages/Auth.vue +2 -0
  20. package/components/Pages/ContragentForm.vue +1 -0
  21. package/components/Pages/Documents.vue +237 -6
  22. package/components/Pages/MemberForm.vue +204 -56
  23. package/components/Pages/ProductConditions.vue +153 -74
  24. package/components/Panel/PanelHandler.vue +231 -105
  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 +102 -41
  29. package/composables/fields.ts +6 -4
  30. package/composables/index.ts +220 -7
  31. package/composables/styles.ts +8 -24
  32. package/configs/pwa.ts +1 -7
  33. package/locales/ru.json +11 -4
  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 +235 -357
  38. package/store/member.store.ts +3 -2
  39. package/tsconfig.json +3 -0
  40. package/types/enum.ts +17 -2
  41. package/types/form.ts +71 -75
  42. package/types/index.ts +889 -877
package/types/index.ts CHANGED
@@ -1,916 +1,928 @@
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
+ birthDate?: string;
392
+ };
393
+
394
+ export type GetContragentResponse = {
395
+ totalItems: number;
396
+ items: ContragentType[];
397
+ };
398
+
399
+ export interface ContragentType {
400
+ id: number;
401
+ type: number;
402
+ iin: string;
403
+ longName: string;
404
+ lastName: string;
405
+ firstName: string;
406
+ middleName: string | null;
407
+ birthDate: string;
408
+ gender: number;
409
+ genderName: string;
410
+ birthPlace: string;
411
+ age: number;
412
+ registrationDate: string;
413
+ verifyType: string;
414
+ verifyDate: string;
415
+ }
171
416
 
172
- type AnketaBody = {
173
- first: EachAnketa;
174
- second: AnketaSecond[] | null;
175
- };
417
+ export interface ContragentQuestionaries {
418
+ id: number;
419
+ contragentId: number;
420
+ questId: string;
421
+ questName: string;
422
+ questAnswer: string | number | null;
423
+ questAnswerName: string | null;
424
+ }
176
425
 
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
- };
426
+ export interface ContragentDocuments {
427
+ id: number;
428
+ contragentId: number;
429
+ type?: string;
430
+ typeName: string | null;
431
+ serial: string | null;
432
+ number: string | null;
433
+ issueDate: string;
434
+ expireDate: string;
435
+ issuerId: number;
436
+ issuerName: string | null;
437
+ issuerNameRu: string | null;
438
+ description: string | null;
439
+ note: string | null;
440
+ verifyType: string;
441
+ verifyDate: string;
442
+ }
188
443
 
189
- enum AnswerName {
190
- Нет = 'Нет',
191
- Да = 'Да',
192
- }
444
+ export interface ContragentAddress {
445
+ id: number;
446
+ contragentId: number;
447
+ type?: string;
448
+ address?: string;
449
+ countryCode?: string | number;
450
+ countryName?: string;
451
+ stateCode?: string | number;
452
+ stateName?: string;
453
+ cityCode?: string | number;
454
+ cityName?: string;
455
+ regionCode?: string | number | null;
456
+ regionName?: string | null;
457
+ streetName?: string;
458
+ blockNumber?: string;
459
+ apartmentNumber?: string;
460
+ cityTypeId?: number | null;
461
+ cityTypeName?: string;
462
+ microRaion?: string | null;
463
+ kvartal?: string | null;
464
+ }
193
465
 
194
- enum AnswerType {
195
- N = 'N',
196
- T = 'T',
197
- D = 'D',
198
- }
466
+ export interface ContragentContacts {
467
+ id: number;
468
+ contragentId: number;
469
+ type: string;
470
+ typeName: string;
471
+ value: string | null;
472
+ note: string | null;
473
+ primaryFlag: string;
474
+ newValue: string | null;
475
+ verifyType?: string | null;
476
+ verifyDate?: string | null;
477
+ }
199
478
 
200
- enum DefinedAnswers {
201
- N = 'N',
202
- Y = 'Y',
203
- D = 'D',
479
+ export type AddCoverAnswer = {
480
+ id: string;
481
+ code: string;
482
+ calculatorValue: number;
483
+ nameKz: string;
484
+ nameRu: string;
485
+ isDefault: boolean;
486
+ };
487
+
488
+ export type PolicyAppDto = {
489
+ id?: string;
490
+ processInstanceId?: string;
491
+ policyId?: number | null;
492
+ policyNumber?: string | null;
493
+ contractDate?: string;
494
+ contractEndDate?: string;
495
+ amount?: number | null;
496
+ premium?: number | null;
497
+ mainCoverPremium?: number;
498
+ currency?: string;
499
+ isSpokesman?: boolean;
500
+ coverPeriod?: number | null;
501
+ payPeriod?: number | null;
502
+ indexRateId?: string | number;
503
+ indexRateCode?: string;
504
+ indexRateName?: string;
505
+ paymentPeriodId?: string | number;
506
+ paymentPeriodName?: string;
507
+ lifeMultiply?: number;
508
+ lifeAdditive?: number;
509
+ adbMultiply?: number;
510
+ adbAdditive?: number;
511
+ disabilityMultiply?: number;
512
+ disabilityAdditive?: number;
513
+ documentSignTypeId?: string;
514
+ documentSignTypeCode?: string;
515
+ documentSignTypeName?: string;
516
+ isDocumentsSigned?: boolean;
517
+ paymentTypeId?: string;
518
+ paymentTypeName?: string;
519
+ isPayed?: boolean;
520
+ underwritingType?: number;
521
+ annualIncome?: number | null;
522
+ calcDirect?: number;
523
+ tariffName?: string;
524
+ riskGroup?: number;
525
+ riskGroup2?: number;
526
+ lifeMultiplyClient?: number;
527
+ lifeAdditiveClient?: number;
528
+ annuityTypeId?: string;
529
+ annuityTypeName?: string;
530
+ annuityPaymentPeriodId?: string;
531
+ annuityPaymentPeriodName?: string;
532
+ guaranteedPaymentPeriod?: number | null;
533
+ paymentPeriod?: number;
534
+ annuityMonthPay?: number;
535
+ annuityPaymentBeginDate?: string;
536
+ annuityPaymentEndDate?: string;
537
+ amountInCurrency?: number | null;
538
+ premiumInCurrency?: number | null;
539
+ currencyExchangeRate?: number | null;
540
+ age?: string | number | null;
541
+ lifeTripCountries?: string[] | null;
542
+ tripPurposeId?: string | number | null;
543
+ insuredAmountId?: string | number | null;
544
+ workTypeId?: string | number | null;
545
+ sportsTypeId?: string | number | null;
546
+ singleTripDays?: string | number | null;
547
+ multipleTripMaxDays?: string | number | null;
548
+ tripInsurancePeriod?: string | number | null;
549
+ startDate?: string | null;
550
+ endDate?: string | null;
551
+ insTermInMonth?: number | null;
552
+ fixInsSum?: number | string | null;
553
+ tariffId?: string | null;
554
+ mainPremium?: number | string | null;
555
+ processDefinitionFgotId?: string | number;
556
+ mainInsSum?: number | null;
557
+ agentCommission?: number | null;
558
+ calcDate?: string;
559
+ };
560
+
561
+ export type InsisWorkDataApp = {
562
+ id?: string;
563
+ processInstanceId?: string;
564
+ agentId?: number;
565
+ agentName?: string;
566
+ salesChannel?: string;
567
+ salesChannelName?: string;
568
+ insrType?: number;
569
+ saleChanellPolicy?: string;
570
+ saleChanellPolicyName?: string;
571
+ regionPolicy?: string;
572
+ regionPolicyName?: string;
573
+ managerPolicy?: string;
574
+ managerPolicyName?: string;
575
+ insuranceProgramType?: string;
576
+ };
577
+
578
+ export type TripInsuranceAmount = {
579
+ amounts: Value[];
580
+ currency: string;
581
+ };
582
+
583
+ export type TripInsuranceDaysOptions = {
584
+ period: {
585
+ '90': string[];
586
+ '180': string[];
587
+ '270': string[];
588
+ '365': string[];
589
+ };
590
+ };
591
+ export type getTripInsuredAmountRequest = {
592
+ tripTypeID: string | number | null;
593
+ countryID: string[];
594
+ };
595
+
596
+ export type SetApplicationRequest = {
597
+ processInstanceId?: string | number | null;
598
+ id?: string | null;
599
+ addCoversDto?: AddCover[];
600
+ insuredAmountId?: string | number | null;
601
+ age?: string | number | null;
602
+ lifeTripCountries?: string[] | null;
603
+ tripPurposeId?: string | number | null;
604
+ workTypeId?: string | number | null;
605
+ sportsTypeId?: string | number | null;
606
+ singleTripDays?: number;
607
+ multipleTripMaxDays?: number;
608
+ tripInsurancePeriod?: number;
609
+ startDate?: string | null;
610
+ endDate?: string | null;
611
+ policyId?: number;
612
+ policyNumber?: string;
613
+ contractDate?: string;
614
+ contractEndDate?: string;
615
+ amount?: number;
616
+ premium?: number;
617
+ mainCoverPremium?: number;
618
+ currency?: string;
619
+ isSpokesman?: boolean;
620
+ coverPeriod?: number;
621
+ payPeriod?: number;
622
+ indexRateId?: string;
623
+ indexRateCode?: string;
624
+ indexRateName?: string;
625
+ paymentPeriodId?: string;
626
+ paymentPeriodName?: string;
627
+ lifeMultiply?: number;
628
+ lifeAdditive?: number;
629
+ adbMultiply?: number;
630
+ adbAdditive?: number;
631
+ disabilityMultiply?: number;
632
+ disabilityAdditive?: number;
633
+ documentSignTypeId?: string;
634
+ documentSignTypeCode?: string;
635
+ documentSignTypeName?: string;
636
+ isDocumentsSigned?: boolean;
637
+ paymentTypeId?: string;
638
+ paymentTypeName?: string;
639
+ isPayed?: boolean;
640
+ underwritingType?: number;
641
+ calcDirect?: number;
642
+ tariffId?: string;
643
+ tariffName?: string;
644
+ riskGroup?: number;
645
+ riskGroup2?: number;
646
+ lifeMultiplyClient?: number;
647
+ lifeAdditiveClient?: number;
648
+ annuityTypeId?: string;
649
+ annuityTypeName?: string;
650
+ annuityPaymentPeriodId?: string;
651
+ annuityPaymentPeriodName?: string;
652
+ guaranteedPaymentPeriod?: number;
653
+ paymentPeriod?: number;
654
+ annuityMonthPay?: number;
655
+ annuityPaymentBeginDate?: string;
656
+ annuityPaymentEndDate?: string;
657
+ calcDate?: string;
658
+ guaranteedPaymentBeginDate?: string;
659
+ guaranteedPaymentEndDate?: string;
660
+ annuityPaymentAmount?: number;
661
+ countPay?: number;
662
+ guaranteedPeriod?: number;
663
+ dateFirstPay?: string;
664
+ effectiveAnnualpercentage?: number;
665
+ factorCurrentValueGP?: number;
666
+ alfa?: number;
667
+ gamma?: number;
668
+ mrpPayment?: number;
669
+ };
670
+
671
+ export type KGDResponse = {
672
+ responseCode: string;
673
+ content: string | null;
674
+ lastName: string;
675
+ firstName: string;
676
+ middleName: string;
677
+ name: string;
678
+ };
679
+
680
+ export type AccidentIncidents = {
681
+ id: string | null;
682
+ processInstanceId: string | null;
683
+ coverTypeId: string | null;
684
+ coverTypeName: string | null;
685
+ coverTypeCode: number | null;
686
+ count: number | string;
687
+ amount: number | string;
688
+ shortDescription: string | null;
689
+ };
690
+
691
+ export type GovPremiums = {
692
+ statePremium5: number | null;
693
+ statePremium7: number | null;
694
+ totalAmount5: number | null;
695
+ totalAmount7: number | null;
696
+ };
697
+
698
+ export type InsuredPolicyType = {
699
+ insSum: number;
700
+ insSumWithLoad: number;
701
+ premium: number;
702
+ premiumWithLoad: number;
703
+ insuredRisk: {
704
+ lifeMultiply: number;
705
+ lifeAdditive: number;
706
+ disabilityMultiply: number;
707
+ disabilityAdditive: number;
708
+ traumaTableMultiple: number;
709
+ accidentalLifeMultiply: number;
710
+ accidentalLifeAdditive: number;
711
+ criticalMultiply: number;
712
+ criticalAdditive: number;
713
+ };
714
+ insuredCoverData: {
715
+ coverTypeEnum: number;
716
+ prmeium: number;
717
+ }[];
718
+ };
719
+
720
+ export type ResponseStructure<T> = { code: 0; message: 'OK'; data: T };
721
+
722
+ export type SignedState = {
723
+ isOnline: boolean;
724
+ signValue: number;
725
+ signName: string;
726
+ code: string;
727
+ };
728
+
729
+ export namespace Base {
730
+ export namespace Document {
731
+ export type Digital = { iin: string; longName: string; digitalDocument: IDocument | null };
204
732
  }
733
+ }
205
734
 
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;
735
+ export namespace Utils {
736
+ export type ProjectConfig = {
737
+ version: string;
738
+ buildTime: string;
739
+ isDown: boolean;
242
740
  };
243
-
244
- type ESBDValidationType = {
245
- personType: number;
246
- iin: string;
741
+ export type VuetifyAnimations = 'expand' | 'fab' | 'fade' | 'scale' | 'scroll-x' | 'scroll-y' | 'slide-x' | 'slide-x-r' | 'slide-y' | 'slide-y-r';
742
+ export type LabelSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
743
+ export type VIcon = { mdi?: string; color?: string; bg?: string; size?: 'x-small' | 'small' | 'default' | 'large' | 'x-large' };
744
+ export type JwtToken = JwtPayload & {
247
745
  lastName: string;
248
746
  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;
747
+ middleName?: string;
748
+ code: string;
749
+ name?: string;
750
+ branchId: string;
751
+ branchCode: string;
752
+ branchName: string;
753
+ isAdmin: boolean;
441
754
  iin: string;
755
+ phone: string;
756
+ email: string;
757
+ isChangePassword: boolean;
758
+ Permission: string[];
442
759
  };
760
+ }
443
761
 
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;
762
+ export namespace Api {
763
+ export namespace GenerateShortLink {
764
+ export type Templates = 'halyk_pay_link_template';
765
+ export type Response = {
766
+ id: string;
767
+ link: string;
768
+ };
769
+ export type Request = { link: string; priority: string; template?: Api.GenerateShortLink.Templates };
514
770
  }
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;
771
+ export namespace GBD {
772
+ export type Request = {
773
+ iin: string;
774
+ phoneNumber: string;
775
+ };
776
+ export type UlRequest = { userName: string; branchName: string; bin: string };
777
+ export type Response = {
778
+ status: string;
779
+ statusName: string;
780
+ content: string;
781
+ };
782
+ export type Dict = {
783
+ code: string;
784
+ nameRu: string;
785
+ nameKz: string;
786
+ changeDate: string;
787
+ };
788
+ export type Document = {
789
+ type: Api.GBD.Dict & { code: CoreEnums.GBD.DocTypes };
790
+ beginDate: string;
791
+ endDate: string;
792
+ number: string;
793
+ issueOrganization: Api.GBD.Dict;
794
+ status: Api.GBD.Dict;
795
+ surname: string;
796
+ name: string;
797
+ patronymic?: string;
798
+ birthDate: string;
799
+ };
800
+ export type Person = {
801
+ iin: string;
802
+ surname: string;
803
+ name: string;
804
+ patronymic?: string;
805
+ engFirstName: string;
806
+ engSurname: string;
807
+ birthDate: string;
808
+ gender: Api.GBD.Dict;
809
+ nationality: Api.GBD.Dict;
810
+ citizenship: Api.GBD.Dict;
811
+ lifeStatus: Api.GBD.Dict;
812
+ birthPlace: { country: Api.GBD.Dict; district: Api.GBD.Dict; region: Api.GBD.Dict; city: any };
813
+ regAddress: {
814
+ country: Api.GBD.Dict;
815
+ district: Api.GBD.Dict;
816
+ region: Api.GBD.Dict;
817
+ street: string;
818
+ city: string;
819
+ building: string;
820
+ flat: string;
821
+ beginDate: string;
822
+ status: Api.GBD.Dict;
823
+ invalidity: Api.GBD.Dict;
824
+ arcode: string;
825
+ };
826
+ documents: {
827
+ document: Api.GBD.Document | Api.GBD.Document[];
828
+ };
829
+ addresses: any;
830
+ };
527
831
  }
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[];
832
+ export namespace GKB {
833
+ export type Response = {
834
+ infoList: Api.GKB.BirthInfoList;
835
+ status: string;
836
+ statusName: string;
837
+ content: null;
639
838
  };
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;
839
+ export type BirthInfoList = {
840
+ birthInfos: Api.GKB.BirthInfo[];
763
841
  };
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
- };
842
+ export type BirthInfo = {
843
+ actDate?: string;
844
+ actNumber?: string;
845
+ childBirthDate?: string;
846
+ childIIN?: string;
847
+ childLifeStatus?: number;
848
+ childName?: string;
849
+ childPatronymic?: string;
850
+ childSurName?: string;
851
+ fatherBirthDate?: string;
852
+ fatherLifeStatus?: number;
853
+ fatherIIN?: string;
854
+ fatherName?: string;
855
+ fatherPatronymic?: string;
856
+ fatherSurName?: string;
857
+ marriageActDate?: string;
858
+ marriageActNumber?: string;
859
+ marriageActPlace?: string;
860
+ motherApplication?: number;
861
+ motherBirthDate?: string;
862
+ motherLifeStatus?: string | null;
863
+ motherIIN?: string | null;
864
+ motherName?: string | null;
865
+ motherPatronymic?: string | null;
866
+ motherSurName?: string | null;
867
+ zagsCode?: string;
868
+ zagsNameKZ?: string;
869
+ zagsNameRU?: string;
870
+ };
871
+ }
778
872
 
779
- namespace Utils {
780
- type ProjectConfig = {
781
- version: string;
782
- buildTime: string;
783
- isDown: boolean;
873
+ export namespace KGD {
874
+ export type Response = {
875
+ responseCode: string;
876
+ content: string | null;
877
+ lastName: string;
878
+ firstName: string;
879
+ middleName: string;
880
+ name: string;
784
881
  };
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
882
  }
789
883
 
790
- namespace Api {
791
- namespace GenerateShortLink {
792
- type Templates = 'halyk_pay_link_template';
793
- type Response = {
794
- id: string;
795
- link: string;
884
+ export namespace Sign {
885
+ export namespace New {
886
+ export type Request = {
887
+ taskId: string;
796
888
  };
797
- type Request = { link: string; priority: string; template?: Api.GenerateShortLink.Templates };
798
- }
799
- namespace GBD {
800
- type Request = {
801
- iin: string;
802
- phoneNumber: string;
889
+ export type Type = {
890
+ documentSignType: string;
891
+ documentSignTypeName: string;
892
+ documentSignTypeValue: number;
803
893
  };
804
- type UlRequest = { userName: string; branchName: string; bin: string };
805
- type Response = {
806
- status: string;
807
- statusName: string;
808
- content: string;
894
+ export type FileDatas = {
895
+ fileName: string;
896
+ fileType: number;
897
+ orderFile: number;
898
+ isSigned: boolean;
899
+ signTypes: Api.Sign.New.Type[];
809
900
  };
810
- type Dict = {
811
- code: string;
812
- nameRu: string;
813
- nameKz: string;
814
- changeDate: string;
901
+ export type GeneralResponse = {
902
+ contragentId?: string | null;
903
+ contragentType?: number;
904
+ fileDatas?: FileDatas[];
905
+ iin?: string | null;
906
+ longName?: string | null;
907
+ personId?: number;
908
+ signType?: number | null;
909
+ signatureDocumentGroupId?: string | null;
910
+ taskId: string;
815
911
  };
816
- type Document = {
817
- type: Api.GBD.Dict & { code: Enums.GBD.DocTypes };
818
- beginDate: string;
819
- endDate: string;
820
- number: string;
821
- issueOrganization: Api.GBD.Dict;
822
- 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;
898
- };
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;
912
+ export type Response = {
913
+ edsXmlId: string | null;
914
+ iin: string | null;
915
+ longName: string | null;
916
+ phoneNumber: string | null;
917
+ shortUri: string | null;
918
+ signIds: { id: string; fileType: string }[];
919
+ signatureDocumentGroupId: string | null;
920
+ uri: string | null;
909
921
  };
910
922
  }
911
923
  }
924
+ }
912
925
 
913
- namespace Dicts {
914
- type WorkPosition = { workPositionClassCode: string; workPositionCode: string; workPositionName: string };
915
- }
926
+ export namespace Dicts {
927
+ export type WorkPosition = { workPositionClassCode: string; workPositionCode: string; workPositionName: string };
916
928
  }