hl-core 0.0.10-beta.6 → 0.0.10-beta.61
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/README.md +0 -2
- package/api/base.api.ts +361 -137
- package/api/interceptors.ts +3 -5
- package/components/Dialog/Dialog.vue +5 -1
- package/components/Dialog/FamilyDialog.vue +15 -4
- package/components/Form/DigitalDocument.vue +52 -0
- package/components/Form/FormSource.vue +30 -0
- package/components/Form/ManagerAttachment.vue +60 -11
- package/components/Form/ProductConditionsBlock.vue +12 -6
- package/components/Input/Datepicker.vue +5 -0
- package/components/Input/FileInput.vue +1 -1
- package/components/Input/FormInput.vue +7 -0
- package/components/Input/OtpInput.vue +25 -0
- package/components/Input/RoundedInput.vue +2 -0
- package/components/Input/RoundedSelect.vue +2 -0
- package/components/Input/TextAreaField.vue +71 -0
- package/components/Menu/MenuNav.vue +2 -1
- package/components/Pages/Anketa.vue +207 -176
- package/components/Pages/ContragentForm.vue +1 -1
- package/components/Pages/Documents.vue +486 -64
- package/components/Pages/MemberForm.vue +424 -182
- package/components/Pages/ProductConditions.vue +1180 -257
- package/components/Panel/PanelHandler.vue +319 -125
- package/components/Utilities/Chip.vue +1 -1
- package/components/Utilities/JsonViewer.vue +1 -2
- package/composables/classes.ts +125 -21
- package/composables/constants.ts +166 -1
- package/composables/index.ts +345 -9
- package/composables/styles.ts +8 -24
- package/configs/i18n.ts +2 -0
- package/configs/pwa.ts +1 -7
- package/layouts/clear.vue +1 -1
- package/layouts/default.vue +1 -1
- package/layouts/full.vue +1 -1
- package/locales/kz.json +1236 -0
- package/locales/ru.json +109 -20
- package/nuxt.config.ts +8 -6
- package/package.json +12 -12
- package/plugins/head.ts +7 -1
- package/plugins/helperFunctionsPlugins.ts +1 -0
- package/store/data.store.ts +948 -527
- package/store/member.store.ts +17 -6
- package/store/rules.ts +54 -3
- package/types/enum.ts +46 -2
- package/types/index.ts +126 -5
package/store/member.store.ts
CHANGED
|
@@ -62,7 +62,7 @@ export const useMemberStore = defineStore('members', {
|
|
|
62
62
|
}
|
|
63
63
|
return false;
|
|
64
64
|
},
|
|
65
|
-
getMemberFromStore(whichForm: keyof typeof StoreMembers, whichIndex?: number): Member | null {
|
|
65
|
+
getMemberFromStore(whichForm: keyof typeof StoreMembers | 'slaveInsuredForm', whichIndex?: number): Member | null {
|
|
66
66
|
switch (whichForm) {
|
|
67
67
|
case this.formStore.policyholderFormKey:
|
|
68
68
|
return this.formStore.policyholderForm;
|
|
@@ -70,6 +70,8 @@ export const useMemberStore = defineStore('members', {
|
|
|
70
70
|
return this.formStore.policyholdersRepresentativeForm;
|
|
71
71
|
case this.formStore.insuredFormKey:
|
|
72
72
|
return this.formStore.insuredForm[whichIndex!];
|
|
73
|
+
case 'slaveInsuredForm':
|
|
74
|
+
return this.formStore.slaveInsuredForm;
|
|
73
75
|
case this.formStore.beneficiaryFormKey:
|
|
74
76
|
return this.formStore.beneficiaryForm[whichIndex!];
|
|
75
77
|
case this.formStore.beneficialOwnerFormKey:
|
|
@@ -78,8 +80,11 @@ export const useMemberStore = defineStore('members', {
|
|
|
78
80
|
return null;
|
|
79
81
|
}
|
|
80
82
|
},
|
|
81
|
-
getMemberFromApplication(whichForm: keyof typeof StoreMembers, whichIndex?: number) {
|
|
82
|
-
const id =
|
|
83
|
+
getMemberFromApplication(whichForm: keyof typeof StoreMembers | 'slaveInsuredForm', whichIndex?: number) {
|
|
84
|
+
const id =
|
|
85
|
+
whichForm !== 'policyholderForm' && whichForm !== 'policyholdersRepresentativeForm' && whichForm !== 'slaveInsuredForm'
|
|
86
|
+
? this.formStore[whichForm][whichIndex!]?.id
|
|
87
|
+
: this.formStore[whichForm]?.id;
|
|
83
88
|
switch (whichForm) {
|
|
84
89
|
case this.formStore.policyholderFormKey:
|
|
85
90
|
return this.formStore.applicationData.clientApp;
|
|
@@ -89,6 +94,10 @@ export const useMemberStore = defineStore('members', {
|
|
|
89
94
|
const inStore = this.formStore.applicationData.insuredApp.find((member: any) => member.insisId === id);
|
|
90
95
|
return !!inStore ? inStore : false;
|
|
91
96
|
}
|
|
97
|
+
case 'slaveInsuredForm': {
|
|
98
|
+
const inStore = this.formStore.applicationData.slave.insuredApp[0];
|
|
99
|
+
return !!inStore ? inStore : false;
|
|
100
|
+
}
|
|
92
101
|
case this.formStore.beneficiaryFormKey: {
|
|
93
102
|
const inStore = this.formStore.applicationData.beneficiaryApp.find((member: any) => member.insisId === id);
|
|
94
103
|
return !!inStore ? inStore : false;
|
|
@@ -99,12 +108,14 @@ export const useMemberStore = defineStore('members', {
|
|
|
99
108
|
}
|
|
100
109
|
}
|
|
101
110
|
},
|
|
102
|
-
getMemberCode(whichForm: keyof typeof StoreMembers) {
|
|
111
|
+
getMemberCode(whichForm: keyof typeof StoreMembers | 'slaveInsuredForm') {
|
|
103
112
|
switch (whichForm) {
|
|
104
113
|
case this.formStore.policyholderFormKey:
|
|
105
114
|
return MemberCodes.Client;
|
|
106
115
|
case this.formStore.insuredFormKey:
|
|
107
116
|
return MemberCodes.Insured;
|
|
117
|
+
case 'slaveInsuredForm':
|
|
118
|
+
return MemberCodes.Insured;
|
|
108
119
|
case this.formStore.beneficiaryFormKey:
|
|
109
120
|
return MemberCodes.Beneficiary;
|
|
110
121
|
case this.formStore.beneficialOwnerFormKey:
|
|
@@ -308,11 +319,11 @@ export const useMemberStore = defineStore('members', {
|
|
|
308
319
|
// TODO Доработать и менять значение hasAgreement.value => true
|
|
309
320
|
this.dataStore.showToaster(otpResponse.status !== 2 ? 'error' : 'success', otpResponse.statusName, 3000);
|
|
310
321
|
if (otpResponse.status === 2) {
|
|
311
|
-
member.otpCode =
|
|
322
|
+
member.otpCode = '';
|
|
312
323
|
return true;
|
|
313
324
|
}
|
|
314
325
|
if (otpResponse.status === 4 || otpResponse.status === 5) {
|
|
315
|
-
member.otpCode =
|
|
326
|
+
member.otpCode = '';
|
|
316
327
|
member.otpTokenId = null;
|
|
317
328
|
return false;
|
|
318
329
|
}
|
package/store/rules.ts
CHANGED
|
@@ -6,8 +6,10 @@ const t = i18n.t;
|
|
|
6
6
|
export const rules = {
|
|
7
7
|
recalculationMultiply: [(v: any) => (v !== null && v !== '' && v >= 100) || t('toaster.valueShouldBeHigher', { text: '100' })],
|
|
8
8
|
recalculationMultiplyBetween: [(v: any) => (v !== null && v !== '' && v >= 100 && v <= 200) || t('toaster.recalculationMultiplyBetween', { floor: '100', ceil: '200' })],
|
|
9
|
+
recalculationMultiplyBetween50And200: [(v: any) => (v !== null && v !== '' && v >= 50 && v <= 200) || t('toaster.recalculationMultiplyBetween', { floor: '50', ceil: '200' })],
|
|
9
10
|
recalculationAdditive: [(v: any) => (v !== null && v !== '' && v <= 100 && v >= 0) || t('toaster.valueShouldBeBetween', { floor: '0', ceil: '100' })],
|
|
10
11
|
required: [(v: any) => !!v || t('rules.required')],
|
|
12
|
+
notEmpty: [(v: any) => (v !== null && v !== undefined && v !== '') || t('rules.required')],
|
|
11
13
|
notZero: [(v: any) => Number(v) !== 0 || 'Не может быть равно нулю'],
|
|
12
14
|
iik: [(v: any) => v.length === 20 || t('rules.iik')],
|
|
13
15
|
agentCommission: [(v: any) => v <= 50 || t('rules.agentCommission')],
|
|
@@ -53,6 +55,7 @@ export const rules = {
|
|
|
53
55
|
cyrillic: [(v: any) => v === null || /^[\u0400-\u04FF -]+$/.test(v) || t('rules.cyrillic')],
|
|
54
56
|
latin: [(v: any) => v === null || /^[a-zA-Z]+$/.test(v) || t('rules.latin')],
|
|
55
57
|
latinAndNumber: [(v: any) => v === null || /^[0-9a-zA-Z]+$/.test(v) || t('rules.latinAndNumber')],
|
|
58
|
+
latinNumberSymbol: [(v: any) => v === null || /^[0-9a-zA-Z-/]+$/.test(v) || t('rules.latinNumberSymbol')],
|
|
56
59
|
cyrillicNonRequired: [
|
|
57
60
|
(v: any) => {
|
|
58
61
|
if (!v) return true;
|
|
@@ -85,8 +88,8 @@ export const rules = {
|
|
|
85
88
|
ageExceeds80ByDate: [(v: any) => Math.abs(new Date(Date.now() - new Date(formatDate(v)!).getTime()).getUTCFullYear() - 1970) <= 80 || t('rules.ageExceeds80')],
|
|
86
89
|
sums: [
|
|
87
90
|
(v: any) => {
|
|
88
|
-
let str = v.replace(/\s/g, '');
|
|
89
|
-
if (/^[0-9]+$/.test(str)) {
|
|
91
|
+
let str = String(v ?? '').replace(/\s/g, '');
|
|
92
|
+
if (!str || /^[0-9]+$/.test(str)) {
|
|
90
93
|
return true;
|
|
91
94
|
}
|
|
92
95
|
return t('rules.sums');
|
|
@@ -225,7 +228,7 @@ export const rules = {
|
|
|
225
228
|
},
|
|
226
229
|
],
|
|
227
230
|
policyholderAgeLimit: [(v: any) => v >= 18 || t('rules.policyholderAgeLimit')],
|
|
228
|
-
beneficiaryAgeLimit: [(v: any) => v
|
|
231
|
+
beneficiaryAgeLimit: [(v: any) => v < 15 || t('rules.beneficiaryAgeLimit')],
|
|
229
232
|
dateInPast: [
|
|
230
233
|
(v: any) => {
|
|
231
234
|
const givenDate = new Date(formatDate(v)!);
|
|
@@ -248,6 +251,24 @@ export const rules = {
|
|
|
248
251
|
}
|
|
249
252
|
},
|
|
250
253
|
],
|
|
254
|
+
checkPastOrToday: [
|
|
255
|
+
(v: any) => {
|
|
256
|
+
const today = new Date();
|
|
257
|
+
today.setHours(0, 0, 0, 0);
|
|
258
|
+
const selectedDate = new Date(formatDate(v)!);
|
|
259
|
+
selectedDate.setHours(0, 0, 0, 0);
|
|
260
|
+
return selectedDate <= today || t('rules.checkDate');
|
|
261
|
+
},
|
|
262
|
+
],
|
|
263
|
+
checkTodayOrFuture: [
|
|
264
|
+
(v: any) => {
|
|
265
|
+
const today = new Date();
|
|
266
|
+
today.setHours(0, 0, 0, 0);
|
|
267
|
+
const selectedDate = new Date(formatDate(v)!);
|
|
268
|
+
selectedDate.setHours(0, 0, 0, 0);
|
|
269
|
+
return selectedDate >= today || t('rules.checkDate');
|
|
270
|
+
},
|
|
271
|
+
],
|
|
251
272
|
twoDayBeforeTodayDate: [
|
|
252
273
|
(v: any) => {
|
|
253
274
|
const now = new Date();
|
|
@@ -271,6 +292,18 @@ export const rules = {
|
|
|
271
292
|
}
|
|
272
293
|
},
|
|
273
294
|
],
|
|
295
|
+
checkPastDate: [
|
|
296
|
+
(v: any) => {
|
|
297
|
+
let today = new Date();
|
|
298
|
+
const yourDate = new Date(formatDate(v)!);
|
|
299
|
+
today.setHours(0, 0, 0, 0);
|
|
300
|
+
if (yourDate >= today) {
|
|
301
|
+
return true;
|
|
302
|
+
} else {
|
|
303
|
+
return t('rules.checkDate');
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
],
|
|
274
307
|
fileRequired: [(v: any) => !!v || t('rules.fileRequired'), (v: any) => (v && v.length > 0) || t('rules.fileRequired')],
|
|
275
308
|
guaranteedPeriodLimit(v: any, termAnnuityPayments: any) {
|
|
276
309
|
if (Number(v) > Number(termAnnuityPayments)) {
|
|
@@ -284,4 +317,22 @@ export const rules = {
|
|
|
284
317
|
}
|
|
285
318
|
return true;
|
|
286
319
|
},
|
|
320
|
+
lengthLimit(v: any, limit: number) {
|
|
321
|
+
if (!!v && typeof v === 'string' && v.length <= limit) {
|
|
322
|
+
return true;
|
|
323
|
+
}
|
|
324
|
+
return t('rules.lengthLimit', { len: limit });
|
|
325
|
+
},
|
|
326
|
+
validateAfterContractDate(v: any, date: any) {
|
|
327
|
+
const parseDate = (str: string): Date => {
|
|
328
|
+
const [day, month, year] = str.split('.');
|
|
329
|
+
return new Date(Number(year), Number(month) - 1, Number(day));
|
|
330
|
+
};
|
|
331
|
+
const inputDate = parseDate(v);
|
|
332
|
+
const limitDate = parseDate(date);
|
|
333
|
+
if (inputDate < limitDate) {
|
|
334
|
+
return t('rules.validateAfterContractDate');
|
|
335
|
+
}
|
|
336
|
+
return true;
|
|
337
|
+
},
|
|
287
338
|
};
|
package/types/enum.ts
CHANGED
|
@@ -51,6 +51,18 @@ export enum Actions {
|
|
|
51
51
|
|
|
52
52
|
payed = 'payed',
|
|
53
53
|
payedCustom = 'payedCustom',
|
|
54
|
+
|
|
55
|
+
rejectDocument = 'rejectDocument',
|
|
56
|
+
rejectDocumentCustom = 'rejectDocumentCustom',
|
|
57
|
+
|
|
58
|
+
recalc = 'recalc',
|
|
59
|
+
recalcCustom = 'recalcCustom',
|
|
60
|
+
|
|
61
|
+
annulment = 'annulment',
|
|
62
|
+
annulmentCustom = 'annulmentCustom',
|
|
63
|
+
|
|
64
|
+
otrs = 'otrs',
|
|
65
|
+
otrsCustom = 'otrsCustom',
|
|
54
66
|
}
|
|
55
67
|
|
|
56
68
|
export enum PostActions {
|
|
@@ -60,6 +72,7 @@ export enum PostActions {
|
|
|
60
72
|
applicationCreated = 'applicationCreated',
|
|
61
73
|
clipboard = 'clipboard',
|
|
62
74
|
toHomePage = 'toHomePage',
|
|
75
|
+
toHistory = 'toHistory',
|
|
63
76
|
toStatementHistory = 'toStatementHistory',
|
|
64
77
|
toAuth = 'toAuth',
|
|
65
78
|
DOMevent = 'DOMevent',
|
|
@@ -67,6 +80,7 @@ export enum PostActions {
|
|
|
67
80
|
Error500 = 'Error500',
|
|
68
81
|
iframeLoaded = 'iframeLoaded',
|
|
69
82
|
goToProject = 'goToProject',
|
|
83
|
+
openLinkBlank = 'openLinkBlank',
|
|
70
84
|
}
|
|
71
85
|
|
|
72
86
|
export enum Roles {
|
|
@@ -79,6 +93,7 @@ export enum Roles {
|
|
|
79
93
|
Compliance = 'Compliance',
|
|
80
94
|
AgentMycar = 'AgentMycar',
|
|
81
95
|
Analyst = 'Analyst',
|
|
96
|
+
Auditor = 'Auditor',
|
|
82
97
|
UPK = 'UPK',
|
|
83
98
|
URP = 'URP',
|
|
84
99
|
FinCenter = 'FinCenter',
|
|
@@ -90,13 +105,31 @@ export enum Roles {
|
|
|
90
105
|
HeadManager = 'HeadManager',
|
|
91
106
|
AgentAuletti = 'AgentAuletti',
|
|
92
107
|
USNS = 'USNS',
|
|
108
|
+
USNSsanctioner = 'USNSsanctioner',
|
|
93
109
|
Accountant = 'Accountant',
|
|
94
110
|
BranchDirector = 'BranchDirector',
|
|
111
|
+
RegionDirector = 'RegionDirector',
|
|
95
112
|
USNSACCINS = 'USNSACCINS',
|
|
96
113
|
Dsuio = 'Dsuio',
|
|
97
|
-
|
|
114
|
+
HEADDSO = 'HEADDSO',
|
|
115
|
+
SettlementLosses = 'SettlementLosses',
|
|
116
|
+
HeadSettlementLosses = 'HeadSettlementLosses',
|
|
98
117
|
DsoDirector = 'DsoDirector',
|
|
118
|
+
Archivist = 'Archivist',
|
|
99
119
|
AccountantDirector = 'AccountantDirector',
|
|
120
|
+
ManagerAuletti = 'ManagerAuletti',
|
|
121
|
+
HeadOfDso = 'HeadOfDso',
|
|
122
|
+
URSP = 'URSP',
|
|
123
|
+
ExecutorGPH = 'ExecutorGPH',
|
|
124
|
+
DsuioOrv = 'DsuioOrv',
|
|
125
|
+
UKP = 'UKP',
|
|
126
|
+
DpDirector = 'DpDirector',
|
|
127
|
+
Security = 'Security',
|
|
128
|
+
URAP = 'URAP',
|
|
129
|
+
TravelAgent = 'TravelAgent',
|
|
130
|
+
HR = 'HR',
|
|
131
|
+
NotAccumulativeSanctionerUSNS = 'NotAccumulativeSanctionerUSNS',
|
|
132
|
+
ReInsurer = 'ReInsurer',
|
|
100
133
|
}
|
|
101
134
|
|
|
102
135
|
export enum Statuses {
|
|
@@ -120,8 +153,10 @@ export enum Statuses {
|
|
|
120
153
|
ControllerDpForm = 'ControllerDpForm',
|
|
121
154
|
ActuaryForm = 'ActuaryForm',
|
|
122
155
|
DsoUsnsForm = 'DsoUsnsForm',
|
|
156
|
+
JuristForm = 'JuristForm',
|
|
123
157
|
AccountantForm = 'AccountantForm',
|
|
124
158
|
HeadManagerForm = 'HeadManagerForm',
|
|
159
|
+
DeferredContract = 'DeferredContract',
|
|
125
160
|
}
|
|
126
161
|
|
|
127
162
|
export enum MemberCodes {
|
|
@@ -145,7 +180,7 @@ export enum Methods {
|
|
|
145
180
|
POST = 'POST',
|
|
146
181
|
}
|
|
147
182
|
|
|
148
|
-
export namespace
|
|
183
|
+
export namespace CoreEnums {
|
|
149
184
|
export namespace GBD {
|
|
150
185
|
export enum DocTypes {
|
|
151
186
|
'PS' = '001',
|
|
@@ -161,4 +196,13 @@ export namespace Enums {
|
|
|
161
196
|
'SBI' = 'SBI',
|
|
162
197
|
}
|
|
163
198
|
}
|
|
199
|
+
export namespace Sign {
|
|
200
|
+
export enum Types {
|
|
201
|
+
electronic = 1,
|
|
202
|
+
scans = 2,
|
|
203
|
+
qr = 3,
|
|
204
|
+
qrXml = 5,
|
|
205
|
+
nclayer = 6,
|
|
206
|
+
}
|
|
207
|
+
}
|
|
164
208
|
}
|
package/types/index.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Value } from '../composables/classes';
|
|
2
|
+
import type { IDocument } from '../composables/classes';
|
|
2
3
|
import type { RouteLocationNormalizedLoaded, RouteLocationNormalized } from 'vue-router';
|
|
3
4
|
import type { AxiosRequestConfig } from 'axios';
|
|
4
|
-
import { Methods,
|
|
5
|
+
import { Methods, CoreEnums, Actions, Statuses } from './enum';
|
|
6
|
+
import type { JwtPayload } from 'jwt-decode';
|
|
7
|
+
export { Methods, CoreEnums, Actions, Statuses };
|
|
5
8
|
|
|
6
9
|
export type EnvModes = 'development' | 'test' | 'production';
|
|
7
10
|
export type Projects =
|
|
@@ -25,9 +28,15 @@ export type Projects =
|
|
|
25
28
|
| 'pensionannuitynew'
|
|
26
29
|
| 'dso'
|
|
27
30
|
| 'uu'
|
|
31
|
+
| 'reinsurance'
|
|
32
|
+
| 'reporting'
|
|
28
33
|
| 'auletti'
|
|
29
34
|
| 'lka-auletti'
|
|
30
|
-
| 'prepensionannuity'
|
|
35
|
+
| 'prepensionannuity'
|
|
36
|
+
| 'balam'
|
|
37
|
+
| 'borrower'
|
|
38
|
+
| 'criticalillness'
|
|
39
|
+
| 'tumar';
|
|
31
40
|
export type MemberKeys = keyof ReturnType<typeof useFormStore>;
|
|
32
41
|
export type MemberFormTypes = 'policyholderForm' | 'insuredForm' | 'beneficiaryForm' | 'beneficialOwnerForm' | 'policyholdersRepresentativeForm' | 'productConditionsForm';
|
|
33
42
|
export type SingleMember = 'policyholderForm' | 'policyholdersRepresentativeForm';
|
|
@@ -115,6 +124,17 @@ export type Item = {
|
|
|
115
124
|
itemName: string;
|
|
116
125
|
};
|
|
117
126
|
|
|
127
|
+
export type BpmMenuItem = {
|
|
128
|
+
itemCode: string;
|
|
129
|
+
nameRu: string;
|
|
130
|
+
nameKz: string | null;
|
|
131
|
+
descrition: string;
|
|
132
|
+
order: number;
|
|
133
|
+
path: string | null;
|
|
134
|
+
icon: string | null;
|
|
135
|
+
hasChildren: boolean;
|
|
136
|
+
};
|
|
137
|
+
|
|
118
138
|
export type AnketaBody = {
|
|
119
139
|
first: EachAnketa;
|
|
120
140
|
second: AnketaSecond[] | null;
|
|
@@ -133,8 +153,8 @@ export type EachAnketa = {
|
|
|
133
153
|
};
|
|
134
154
|
|
|
135
155
|
export enum AnswerName {
|
|
136
|
-
|
|
137
|
-
|
|
156
|
+
'Жоқ/Нет' = 'Жоқ/Нет',
|
|
157
|
+
'Иә/Да' = 'Иә/Да',
|
|
138
158
|
}
|
|
139
159
|
|
|
140
160
|
export enum AnswerType {
|
|
@@ -253,6 +273,11 @@ export interface ClientV2 {
|
|
|
253
273
|
criticalMultiply?: string;
|
|
254
274
|
criticalAdditive?: string;
|
|
255
275
|
hasAttachedFile?: boolean;
|
|
276
|
+
insrBeginDate?: string;
|
|
277
|
+
insrEndDate?: string;
|
|
278
|
+
economySectorCode?: Value;
|
|
279
|
+
resident?: Value;
|
|
280
|
+
tableNumber?: string;
|
|
256
281
|
}
|
|
257
282
|
|
|
258
283
|
export type RecalculationResponseType = {
|
|
@@ -283,6 +308,7 @@ export interface AddCover {
|
|
|
283
308
|
coverTypeCode: number;
|
|
284
309
|
coverSumId: string;
|
|
285
310
|
coverSumName: string;
|
|
311
|
+
coverSumNameKz: string;
|
|
286
312
|
coverSumCode: string;
|
|
287
313
|
amount: number;
|
|
288
314
|
premium: number;
|
|
@@ -385,6 +411,7 @@ export type GetContragentRequest = {
|
|
|
385
411
|
lastName: string;
|
|
386
412
|
middleName: string;
|
|
387
413
|
iin: string;
|
|
414
|
+
birthDate?: string;
|
|
388
415
|
};
|
|
389
416
|
|
|
390
417
|
export type GetContragentResponse = {
|
|
@@ -408,6 +435,8 @@ export interface ContragentType {
|
|
|
408
435
|
registrationDate: string;
|
|
409
436
|
verifyType: string;
|
|
410
437
|
verifyDate: string;
|
|
438
|
+
notes?: string;
|
|
439
|
+
organorganisationStartDate?: string;
|
|
411
440
|
}
|
|
412
441
|
|
|
413
442
|
export interface ContragentQuestionaries {
|
|
@@ -431,6 +460,9 @@ export interface ContragentDocuments {
|
|
|
431
460
|
issuerId: number;
|
|
432
461
|
issuerName: string | null;
|
|
433
462
|
issuerNameRu: string | null;
|
|
463
|
+
issuerOtherName?: string;
|
|
464
|
+
issuerOtherNameOrig?: string;
|
|
465
|
+
issuerOtherNameRu?: string;
|
|
434
466
|
description: string | null;
|
|
435
467
|
note: string | null;
|
|
436
468
|
verifyType: string;
|
|
@@ -552,6 +584,7 @@ export type PolicyAppDto = {
|
|
|
552
584
|
mainInsSum?: number | null;
|
|
553
585
|
agentCommission?: number | null;
|
|
554
586
|
calcDate?: string;
|
|
587
|
+
mainPremiumWithCommission?: number;
|
|
555
588
|
};
|
|
556
589
|
|
|
557
590
|
export type InsisWorkDataApp = {
|
|
@@ -568,6 +601,8 @@ export type InsisWorkDataApp = {
|
|
|
568
601
|
regionPolicyName?: string;
|
|
569
602
|
managerPolicy?: string;
|
|
570
603
|
managerPolicyName?: string;
|
|
604
|
+
executorGPH?: string;
|
|
605
|
+
executorGPHName?: string;
|
|
571
606
|
insuranceProgramType?: string;
|
|
572
607
|
};
|
|
573
608
|
|
|
@@ -722,6 +757,34 @@ export type SignedState = {
|
|
|
722
757
|
code: string;
|
|
723
758
|
};
|
|
724
759
|
|
|
760
|
+
export type GetContractByBinResponse = {
|
|
761
|
+
bin: string;
|
|
762
|
+
fullName: string;
|
|
763
|
+
insrBegin: string;
|
|
764
|
+
insrEnd: string;
|
|
765
|
+
policyNo: string;
|
|
766
|
+
policyId: string;
|
|
767
|
+
status: string;
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
export type ParentPolicyDto = {
|
|
771
|
+
contractId: number;
|
|
772
|
+
contractInsrBegin: string;
|
|
773
|
+
contractInsrEnd: string;
|
|
774
|
+
contractNumber: string;
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
export namespace Base {
|
|
778
|
+
export namespace Document {
|
|
779
|
+
export type Digital = { iin: string; longName: string; digitalDocument: IDocument | null };
|
|
780
|
+
export type IssuerOther = Value & {
|
|
781
|
+
issuerOtherName?: string;
|
|
782
|
+
issuerOtherNameOrig?: string;
|
|
783
|
+
issuerOtherNameRu?: string;
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
|
|
725
788
|
export namespace Utils {
|
|
726
789
|
export type ProjectConfig = {
|
|
727
790
|
version: string;
|
|
@@ -731,6 +794,22 @@ export namespace Utils {
|
|
|
731
794
|
export type VuetifyAnimations = 'expand' | 'fab' | 'fade' | 'scale' | 'scroll-x' | 'scroll-y' | 'slide-x' | 'slide-x-r' | 'slide-y' | 'slide-y-r';
|
|
732
795
|
export type LabelSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
|
|
733
796
|
export type VIcon = { mdi?: string; color?: string; bg?: string; size?: 'x-small' | 'small' | 'default' | 'large' | 'x-large' };
|
|
797
|
+
export type JwtToken = JwtPayload & {
|
|
798
|
+
lastName: string;
|
|
799
|
+
firstName: string;
|
|
800
|
+
middleName?: string;
|
|
801
|
+
code: string;
|
|
802
|
+
name?: string;
|
|
803
|
+
branchId: string;
|
|
804
|
+
branchCode: string;
|
|
805
|
+
branchName: string;
|
|
806
|
+
isAdmin: boolean;
|
|
807
|
+
iin: string;
|
|
808
|
+
phone: string;
|
|
809
|
+
email: string;
|
|
810
|
+
isChangePassword: boolean;
|
|
811
|
+
Permission: string[];
|
|
812
|
+
};
|
|
734
813
|
}
|
|
735
814
|
|
|
736
815
|
export namespace Api {
|
|
@@ -760,7 +839,7 @@ export namespace Api {
|
|
|
760
839
|
changeDate: string;
|
|
761
840
|
};
|
|
762
841
|
export type Document = {
|
|
763
|
-
type: Api.GBD.Dict & { code:
|
|
842
|
+
type: Api.GBD.Dict & { code: CoreEnums.GBD.DocTypes };
|
|
764
843
|
beginDate: string;
|
|
765
844
|
endDate: string;
|
|
766
845
|
number: string;
|
|
@@ -841,6 +920,7 @@ export namespace Api {
|
|
|
841
920
|
zagsCode?: string;
|
|
842
921
|
zagsNameKZ?: string;
|
|
843
922
|
zagsNameRU?: string;
|
|
923
|
+
childGender?: number;
|
|
844
924
|
};
|
|
845
925
|
}
|
|
846
926
|
|
|
@@ -854,6 +934,47 @@ export namespace Api {
|
|
|
854
934
|
name: string;
|
|
855
935
|
};
|
|
856
936
|
}
|
|
937
|
+
|
|
938
|
+
export namespace Sign {
|
|
939
|
+
export namespace New {
|
|
940
|
+
export type Request = {
|
|
941
|
+
taskId: string;
|
|
942
|
+
};
|
|
943
|
+
export type Type = {
|
|
944
|
+
documentSignType: string;
|
|
945
|
+
documentSignTypeName: string;
|
|
946
|
+
documentSignTypeValue: number;
|
|
947
|
+
};
|
|
948
|
+
export type FileDatas = {
|
|
949
|
+
fileName: string;
|
|
950
|
+
fileType: number;
|
|
951
|
+
orderFile: number;
|
|
952
|
+
isSigned: boolean;
|
|
953
|
+
signTypes: Api.Sign.New.Type[];
|
|
954
|
+
};
|
|
955
|
+
export type GeneralResponse = {
|
|
956
|
+
contragentId?: string | null;
|
|
957
|
+
contragentType?: number;
|
|
958
|
+
fileDatas?: FileDatas[];
|
|
959
|
+
iin?: string | null;
|
|
960
|
+
longName?: string | null;
|
|
961
|
+
personId?: number;
|
|
962
|
+
signType?: number | null;
|
|
963
|
+
signatureDocumentGroupId?: string | null;
|
|
964
|
+
taskId: string;
|
|
965
|
+
};
|
|
966
|
+
export type Response = {
|
|
967
|
+
edsXmlId: string | null;
|
|
968
|
+
iin: string | null;
|
|
969
|
+
longName: string | null;
|
|
970
|
+
phoneNumber: string | null;
|
|
971
|
+
shortUri: string | null;
|
|
972
|
+
signIds: { id: string; fileType: string }[];
|
|
973
|
+
signatureDocumentGroupId: string | null;
|
|
974
|
+
uri: string | null;
|
|
975
|
+
};
|
|
976
|
+
}
|
|
977
|
+
}
|
|
857
978
|
}
|
|
858
979
|
|
|
859
980
|
export namespace Dicts {
|