hl-core 0.0.9-beta.9 → 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 (75) hide show
  1. package/api/base.api.ts +1110 -0
  2. package/api/index.ts +2 -620
  3. package/api/interceptors.ts +38 -1
  4. package/components/Button/Btn.vue +1 -6
  5. package/components/Complex/MessageBlock.vue +1 -1
  6. package/components/Complex/Page.vue +1 -1
  7. package/components/Complex/TextBlock.vue +25 -0
  8. package/components/Dialog/Dialog.vue +72 -16
  9. package/components/Dialog/FamilyDialog.vue +3 -1
  10. package/components/Form/DynamicForm.vue +101 -0
  11. package/components/Form/FormBlock.vue +12 -3
  12. package/components/Form/FormData.vue +111 -0
  13. package/components/Form/FormSection.vue +3 -3
  14. package/components/Form/FormTextSection.vue +11 -3
  15. package/components/Form/FormToggle.vue +25 -5
  16. package/components/Form/ManagerAttachment.vue +178 -89
  17. package/components/Form/ProductConditionsBlock.vue +59 -6
  18. package/components/Input/Datepicker.vue +43 -7
  19. package/components/Input/DynamicInput.vue +25 -0
  20. package/components/Input/FileInput.vue +25 -5
  21. package/components/Input/FormInput.vue +9 -4
  22. package/components/Input/Monthpicker.vue +34 -0
  23. package/components/Input/PanelInput.vue +6 -1
  24. package/components/Input/RoundedInput.vue +2 -0
  25. package/components/Input/RoundedSelect.vue +9 -2
  26. package/components/Input/SwitchInput.vue +66 -0
  27. package/components/Input/TextInput.vue +162 -0
  28. package/components/Layout/Drawer.vue +18 -4
  29. package/components/Layout/Header.vue +23 -2
  30. package/components/Layout/Loader.vue +2 -1
  31. package/components/Layout/SettingsPanel.vue +24 -11
  32. package/components/Menu/InfoMenu.vue +35 -0
  33. package/components/Menu/MenuNav.vue +25 -3
  34. package/components/Pages/Anketa.vue +255 -65
  35. package/components/Pages/Auth.vue +58 -9
  36. package/components/Pages/ContragentForm.vue +10 -9
  37. package/components/Pages/Documents.vue +267 -30
  38. package/components/Pages/InvoiceInfo.vue +1 -1
  39. package/components/Pages/MemberForm.vue +775 -102
  40. package/components/Pages/ProductAgreement.vue +1 -8
  41. package/components/Pages/ProductConditions.vue +1133 -180
  42. package/components/Panel/PanelHandler.vue +627 -49
  43. package/components/Panel/PanelSelectItem.vue +17 -2
  44. package/components/Panel/RightPanelCloser.vue +7 -0
  45. package/components/Transitions/Animation.vue +30 -0
  46. package/components/Utilities/Chip.vue +2 -0
  47. package/components/Utilities/JsonViewer.vue +2 -2
  48. package/components/Utilities/Qr.vue +44 -0
  49. package/composables/axios.ts +1 -0
  50. package/composables/classes.ts +550 -44
  51. package/composables/constants.ts +126 -6
  52. package/composables/fields.ts +330 -0
  53. package/composables/index.ts +356 -20
  54. package/composables/styles.ts +23 -6
  55. package/configs/pwa.ts +63 -0
  56. package/layouts/clear.vue +21 -0
  57. package/layouts/default.vue +62 -3
  58. package/layouts/full.vue +21 -0
  59. package/locales/ru.json +558 -16
  60. package/nuxt.config.ts +6 -15
  61. package/package.json +38 -39
  62. package/pages/Token.vue +0 -13
  63. package/plugins/head.ts +26 -0
  64. package/plugins/vuetifyPlugin.ts +1 -5
  65. package/store/data.store.ts +1647 -348
  66. package/store/extractStore.ts +17 -0
  67. package/store/form.store.ts +13 -1
  68. package/store/member.store.ts +2 -1
  69. package/store/rules.ts +97 -3
  70. package/store/toast.ts +1 -1
  71. package/tsconfig.json +3 -0
  72. package/types/enum.ts +82 -0
  73. package/types/env.d.ts +2 -0
  74. package/types/form.ts +90 -0
  75. package/types/index.ts +847 -506
package/types/index.ts CHANGED
@@ -1,521 +1,862 @@
1
- import { RouteLocationNormalizedLoaded, RouteLocationNormalized } from 'vue-router';
2
-
3
- export {};
4
-
5
- declare global {
6
- type EnvModes = 'development' | 'test' | 'vercel' | 'production';
7
- 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
- type MemberKeys = keyof ReturnType<typeof useFormStore>;
23
- type MemberFormTypes = 'policyholderForm' | 'insuredForm' | 'beneficiaryForm' | 'beneficialOwnerForm' | 'policyholdersRepresentativeForm' | 'productConditionsForm';
24
- type SingleMember = 'policyholderForm' | 'policyholdersRepresentativeForm';
25
- type MultipleMember = 'insuredForm' | 'beneficiaryForm' | 'beneficialOwnerForm';
26
- type PanelTypes = 'settings' | 'panel';
27
- type FileActions = 'view' | 'download';
28
- type RouteType = RouteLocationNormalizedLoaded | RouteLocationNormalized;
29
- type InputVariants = 'solo' | 'filled' | 'outlined' | 'plain' | 'underlined';
30
- type InputTypes =
31
- | 'button'
32
- | 'checkbox'
33
- | 'color'
34
- | 'date'
35
- | 'datetime-local'
36
- | 'email'
37
- | 'file'
38
- | 'hidden'
39
- | 'image'
40
- | 'month'
41
- | 'number'
42
- | 'password'
43
- | 'radio'
44
- | 'range'
45
- | 'reset'
46
- | 'search'
47
- | 'submit'
48
- | 'tel'
49
- | 'text'
50
- | 'time'
51
- | 'url'
52
- | 'week';
53
- interface TaskListItem {
54
- addRegNumber: string | number;
55
- applicationTaskId: string;
56
- dateCreated: string;
57
- historyStatus: string;
58
- historyStatusTitle: string;
59
- id: string;
60
- iin: string;
61
- insurerIin: string;
62
- insurerLongName: string;
63
- isTask: boolean | number;
64
- longName: string;
65
- number: string;
66
- processCode: number;
67
- processCodeTitle: string;
68
- status: string;
69
- userId: string;
70
- userName: string;
71
- }
72
- type TaskHistory = {
73
- appointmentDate: string | null;
74
- comment: string | null;
75
- dateCreated: string;
76
- decisionCode: string | null;
77
- decisionNameRu: string | null;
78
- factEndDate: string;
79
- id: string;
80
- number: string;
81
- planEndDate: string;
82
- statusCode: string;
83
- statusTitle: string;
84
- userFullName: string | null;
85
- userId: string | null;
86
- violationText: string | null;
87
- };
88
-
89
- type Item = {
90
- itemCode: string;
91
- itemId: number;
92
- itemName: string;
93
- };
94
-
95
- type GBDFLResponse = {
96
- status: string;
97
- statusName: string;
98
- content: string;
99
- };
100
-
101
- type FamilyInfoGKB = {
102
- infoList: InfoListGKB;
103
- status: string;
104
- statusName: string;
105
- content: null;
106
- };
107
-
108
- type InfoListGKB = {
109
- birthInfos: BirthInfoGKB[];
110
- };
111
-
112
- type BirthInfoGKB = {
113
- actDate?: string;
114
- actNumber?: string;
115
- childBirthDate?: string;
116
- childIIN?: string;
117
- childLifeStatus?: number;
118
- childName?: string;
119
- childPatronymic?: string;
120
- childSurName?: string;
121
- fatherBirthDate?: string;
122
- fatherLifeStatus?: number;
123
- fatherIIN?: string;
124
- fatherName?: string;
125
- fatherPatronymic?: string;
126
- fatherSurName?: string;
127
- marriageActDate?: string;
128
- marriageActNumber?: string;
129
- marriageActPlace?: string;
130
- motherApplication?: number;
131
- motherBirthDate?: string;
132
- motherLifeStatus?: string | null;
133
- motherIIN?: string | null;
134
- motherName?: string | null;
135
- motherPatronymic?: string | null;
136
- motherSurName?: string | null;
137
- zagsCode?: string;
138
- zagsNameKZ?: string;
139
- zagsNameRU?: string;
140
- };
141
-
142
- type AnketaBody = {
143
- first: EachAnketa;
144
- second: any[] | null;
145
- };
146
-
147
- type EachAnketa = {
148
- id: string;
149
- name: string;
150
- answerType: AnswerType;
151
- definedAnswers: DefinedAnswers;
152
- defaultAnswer: string;
153
- questOrder: number;
154
- answerId: string | null;
155
- answerName: AnswerName | null;
156
- answerText: string | null;
157
- };
158
-
159
- enum AnswerName {
160
- Нет = 'Нет',
161
- Да = 'Да',
162
- }
163
-
164
- enum AnswerType {
165
- N = 'N',
166
- T = 'T',
167
- D = 'D',
168
- }
169
-
170
- enum DefinedAnswers {
171
- N = 'N',
172
- Y = 'Y',
173
- }
174
-
175
- type AnketaFirst = {
176
- id: string;
177
- insuredId: string | null;
178
- body: AnketaBody[];
179
- type: 'health' | 'critical';
180
- clientId: string | null;
181
- };
182
-
183
- type AnketaSecond = {
184
- id: string;
185
- name: string;
186
- answerType: AnswerType;
187
- definedAnswers: DefinedAnswers;
188
- defaultAnswer: string | null;
189
- questOrder: number;
190
- answerId: string | null;
191
- answerName: string | null;
192
- answerText: string | null;
193
- };
194
-
195
- type SendOtpResponse = {
196
- tokenId?: string;
197
- errMessage?: string | null;
198
- result?: string | null;
199
- status?: string | number | null;
200
- statusName?: string | null;
201
- };
202
-
203
- type OtpDataType = { iin: string; phoneNumber: string; type: string; processInstanceId?: string | number };
204
-
205
- type StartApplicationType = {
206
- clientId: string | number | null;
207
- iin: string;
208
- longName: string;
209
- processCode: number;
210
- policyId: number;
211
- };
212
-
213
- type ESBDValidationType = {
214
- personType: number;
215
- iin: string;
216
- lastName: string;
217
- firstName: string;
218
- middleName: string;
219
- birthDate: string;
220
- sex: number;
221
- docType: number;
222
- docNumber: string;
223
- docIssuedDate: string;
224
- docIssuedBy: string;
225
- activityKindId: number;
226
- economicsSectorId: number;
227
- resident: number;
228
- countryId: number;
229
- };
230
-
231
- type ESBDResponseType = {
232
- errorCode: number;
233
- errorMsg: string;
234
- esbdClientID: number;
235
- verifiedDate: string;
236
- };
237
-
238
- type RecalculationDataType = {
239
- signDate: string;
240
- birthDate: string;
241
- gender: number;
242
- amount: number | null;
243
- premium: number | null;
244
- coverPeriod: number;
245
- payPeriod: number;
246
- indexRateId?: string | number | null;
247
- paymentPeriodId?: string;
248
- addCovers: AddCover[];
249
- };
250
-
251
- type RecalculationResponseType = {
252
- amount: number;
253
- premium: number;
254
- mainCoverPremium: number;
255
- addCovers: AddCover[];
256
- amountInCurrency: number;
257
- premiumInCurrency: number;
258
- annuityMonthPay: string | number | null;
259
- };
260
-
261
- type AddCover = {
262
- id: string | null;
263
- processInstanceId: string;
264
- coverTypeId: string;
265
- coverTypeName: string;
266
- coverTypeCode: number;
267
- coverSumId: string;
268
- coverSumName: string;
269
- coverSumCode: string;
270
- amount: number;
271
- premium: number;
272
- isMigrate: boolean;
273
- };
274
-
275
- type SignUrlType = {
276
- uri: string;
277
- shortUri: string;
278
- iin: string | null;
279
- longName: string | null;
280
- phoneNumber: string | null;
281
- signed: boolean;
282
- };
283
-
284
- type SignDataType = {
285
- processInstanceId: string;
286
- name: 'Statement' | 'Agreement' | 'Contract';
287
- format: 'pdf';
288
- };
289
-
290
- type SmsDataType = {
291
- processInstanceId: string;
292
- iin: string;
293
- phoneNumber: string;
294
- type: 'SignUrl' | 'PayUrl';
295
- text: string;
296
- };
297
-
298
- type RegNumberDataType = { processInstanceId: string; regNumber: string; date: string };
299
-
300
- type EpayShortResponse = {
301
- id: string;
302
- link: string;
303
- };
1
+ import { Value } from '../composables/classes';
2
+ import type { RouteLocationNormalizedLoaded, RouteLocationNormalized } from 'vue-router';
3
+ import type { AxiosRequestConfig } from 'axios';
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
+ }
304
75
 
305
- type EpayResponse = {
306
- id: string;
307
- processInstanceId: string;
308
- createDate: string;
309
- number: number;
310
- phoneNumber: string;
311
- amount: number;
312
- currency: string;
313
- dueDate: string;
314
- transactionId: string;
315
- transactionDate: string;
316
- status: number;
317
- statusName: string;
318
- description: string;
319
- epayHtml: string | null;
320
- epayResponse: string | null;
321
- paymentLink: string;
322
- };
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
+ }
323
140
 
324
- type SendTask = {
325
- decision: keyof typeof constants.actions;
326
- taskId: string;
327
- comment?: string;
328
- };
141
+ export enum AnswerType {
142
+ N = 'N',
143
+ T = 'T',
144
+ D = 'D',
145
+ }
329
146
 
330
- type AgentData = {
331
- agentId?: number | null;
332
- manId?: number;
333
- fullName?: string;
334
- officeId?: number | null;
335
- officeCode?: string | null;
336
- saleChannel?: string;
337
- staffId?: number;
338
- managerName?: string;
339
- mainAgentId?: string | null;
340
- agentNo?: string;
341
- iin?: string | null;
342
- };
147
+ export enum DefinedAnswers {
148
+ N = 'N',
149
+ Y = 'Y',
150
+ D = 'D',
151
+ }
343
152
 
344
- type ChipComponent = {
345
- title: string;
346
- description?: string;
347
- };
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
+ }
348
258
 
349
- type GetContragentRequest = {
350
- firstName: string;
351
- lastName: string;
352
- middleName: string;
353
- iin: string;
354
- };
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
+ }
355
298
 
356
- type GetContragentResponse = {
357
- totalItems: number;
358
- items: ContragentType[];
359
- };
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
+ }
360
413
 
361
- type ContragentType = {
362
- id: number;
363
- type: number;
364
- iin: string;
365
- longName: string;
366
- lastName: string;
367
- firstName: string;
368
- middleName: string | null;
369
- birthDate: string;
370
- gender: number;
371
- genderName: string;
372
- birthPlace: string;
373
- age: number;
374
- registrationDate: string;
375
- verifyType: string;
376
- verifyDate: string;
377
- };
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
+ }
378
422
 
379
- type ContragentQuestionaries = {
380
- id: number;
381
- contragentId: number;
382
- questId: string;
383
- questName: string;
384
- questAnswer: string | number | null;
385
- questAnswerName: string | null;
386
- };
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
+ }
387
440
 
388
- type ContragentDocuments = {
389
- id: number;
390
- contragentId: number;
391
- type?: string;
392
- typeName: string | null;
393
- serial: string | null;
394
- number: string | null;
395
- issueDate: string;
396
- expireDate: string;
397
- issuerId: number;
398
- issuerName: string | null;
399
- issuerNameRu: string | null;
400
- description: string | null;
401
- note: string | null;
402
- verifyType: string;
403
- verifyDate: string;
404
- };
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
+ }
405
462
 
406
- type ContragentAddress = {
407
- id: number;
408
- contragentId: number;
409
- type?: string;
410
- address?: string;
411
- countryCode?: string | number;
412
- countryName?: string;
413
- stateCode?: string | number;
414
- stateName?: string;
415
- cityCode?: string | number;
416
- cityName?: string;
417
- regionCode?: string | number |null;
418
- regionName?: string | null;
419
- streetName?: string;
420
- blockNumber?: string;
421
- apartmentNumber?: string;
422
- cityTypeId?: number | null;
423
- cityTypeName?: string;
424
- microRaion?: string | null;
425
- kvartal?: string | null;
426
- };
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
+ }
427
475
 
428
- type ContragentContacts = {
429
- id: number;
430
- contragentId: number;
431
- type: string;
432
- typeName: string;
433
- value: string | null;
434
- note: string | null;
435
- primaryFlag: string;
436
- newValue: string | null;
437
- verifyType?: string | null;
438
- verifyDate?: string | null;
439
- };
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
+ }
440
736
 
441
- type AddCoverAnswer = {
442
- id: string;
443
- code: string;
444
- calculatorValue: number;
445
- nameKz: string;
446
- nameRu: string;
447
- isDefault: boolean;
448
- };
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 };
745
+ }
746
+ export namespace GBD {
747
+ export type Request = {
748
+ iin: string;
749
+ phoneNumber: string;
750
+ };
751
+ export type UlRequest = { userName: string; branchName: string; bin: string };
752
+ export type Response = {
753
+ status: string;
754
+ statusName: string;
755
+ content: string;
756
+ };
757
+ export type Dict = {
758
+ code: string;
759
+ nameRu: string;
760
+ nameKz: string;
761
+ changeDate: string;
762
+ };
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;
796
+ beginDate: string;
797
+ status: Api.GBD.Dict;
798
+ invalidity: Api.GBD.Dict;
799
+ arcode: string;
800
+ };
801
+ documents: {
802
+ document: Api.GBD.Document | Api.GBD.Document[];
803
+ };
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
+ };
846
+ }
449
847
 
450
- type PolicyAppDto = {
451
- id?: string;
452
- processInstanceId?: string;
453
- policyId?: number | null;
454
- policyNumber?: string | null;
455
- contractDate?: string;
456
- contractEndDate?: string;
457
- amount?: number | null;
458
- premium?: number | null;
459
- mainCoverPremium?: number;
460
- currency?: string;
461
- isSpokesman?: boolean;
462
- coverPeriod?: number | null;
463
- payPeriod?: number | null;
464
- indexRateId?: string | number;
465
- indexRateCode?: string;
466
- indexRateName?: string;
467
- paymentPeriodId?: string | number;
468
- paymentPeriodName?: string;
469
- lifeMultiply?: number;
470
- lifeAdditive?: number;
471
- adbMultiply?: number;
472
- adbAdditive?: number;
473
- disabilityMultiply?: number;
474
- disabilityAdditive?: number;
475
- documentSignTypeId?: string;
476
- documentSignTypeCode?: string;
477
- documentSignTypeName?: string;
478
- isDocumentsSigned?: boolean;
479
- paymentTypeId?: string;
480
- paymentTypeName?: string;
481
- isPayed?: boolean;
482
- underwritingType?: number;
483
- annualIncome?: number | null;
484
- calcDirect?: number;
485
- tariffId?: string;
486
- tariffName?: string;
487
- riskGroup?: number;
488
- riskGroup2?: number;
489
- lifeMultiplyClient?: number;
490
- lifeAdditiveClient?: number;
491
- annuityTypeId?: string;
492
- annuityTypeName?: string;
493
- annuityPaymentPeriodId?: string;
494
- annuityPaymentPeriodName?: string;
495
- guaranteedPaymentPeriod?: number | null;
496
- paymentPeriod?: number;
497
- annuityMonthPay?: number;
498
- annuityPaymentBeginDate?: string;
499
- annuityPaymentEndDate?: string;
500
- amountInCurrency?: number | null;
501
- premiumInCurrency?: number | null;
502
- currencyExchangeRate?: number | null;
503
- };
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
+ };
857
+ }
858
+ }
504
859
 
505
- type InsisWorkDataApp = {
506
- id?: string;
507
- processInstanceId?: string;
508
- agentId?: number;
509
- agentName?: string;
510
- salesChannel?: string;
511
- salesChannelName?: string;
512
- insrType?: number;
513
- saleChanellPolicy?: string;
514
- saleChanellPolicyName?: string;
515
- regionPolicy?: string;
516
- regionPolicyName?: string;
517
- managerPolicy?: string;
518
- managerPolicyName?: string;
519
- insuranceProgramType?: string;
520
- };
860
+ export namespace Dicts {
861
+ export type WorkPosition = { workPositionClassCode: string; workPositionCode: string; workPositionName: string };
521
862
  }