hl-core 0.0.10-beta.1 → 0.0.10-beta.10

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