hl-core 0.0.10-beta.4 → 0.0.10-beta.5

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