hl-core 0.0.10-beta.3 → 0.0.10-beta.31

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