hl-core 0.0.10-beta.6 → 0.0.10-beta.60
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 +357 -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 +343 -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 +108 -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 +45 -2
- package/types/index.ts +115 -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,30 @@ 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',
|
|
95
111
|
USNSACCINS = 'USNSACCINS',
|
|
96
112
|
Dsuio = 'Dsuio',
|
|
97
|
-
|
|
113
|
+
HEADDSO = 'HEADDSO',
|
|
114
|
+
SettlementLosses = 'SettlementLosses',
|
|
115
|
+
HeadSettlementLosses = 'HeadSettlementLosses',
|
|
98
116
|
DsoDirector = 'DsoDirector',
|
|
117
|
+
Archivist = 'Archivist',
|
|
99
118
|
AccountantDirector = 'AccountantDirector',
|
|
119
|
+
ManagerAuletti = 'ManagerAuletti',
|
|
120
|
+
HeadOfDso = 'HeadOfDso',
|
|
121
|
+
URSP = 'URSP',
|
|
122
|
+
ExecutorGPH = 'ExecutorGPH',
|
|
123
|
+
DsuioOrv = 'DsuioOrv',
|
|
124
|
+
UKP = 'UKP',
|
|
125
|
+
DpDirector = 'DpDirector',
|
|
126
|
+
Security = 'Security',
|
|
127
|
+
URAP = 'URAP',
|
|
128
|
+
TravelAgent = 'TravelAgent',
|
|
129
|
+
HR = 'HR',
|
|
130
|
+
NotAccumulativeSanctionerUSNS = 'NotAccumulativeSanctionerUSNS',
|
|
131
|
+
ReInsurer = 'ReInsurer',
|
|
100
132
|
}
|
|
101
133
|
|
|
102
134
|
export enum Statuses {
|
|
@@ -120,8 +152,10 @@ export enum Statuses {
|
|
|
120
152
|
ControllerDpForm = 'ControllerDpForm',
|
|
121
153
|
ActuaryForm = 'ActuaryForm',
|
|
122
154
|
DsoUsnsForm = 'DsoUsnsForm',
|
|
155
|
+
JuristForm = 'JuristForm',
|
|
123
156
|
AccountantForm = 'AccountantForm',
|
|
124
157
|
HeadManagerForm = 'HeadManagerForm',
|
|
158
|
+
DeferredContract = 'DeferredContract',
|
|
125
159
|
}
|
|
126
160
|
|
|
127
161
|
export enum MemberCodes {
|
|
@@ -145,7 +179,7 @@ export enum Methods {
|
|
|
145
179
|
POST = 'POST',
|
|
146
180
|
}
|
|
147
181
|
|
|
148
|
-
export namespace
|
|
182
|
+
export namespace CoreEnums {
|
|
149
183
|
export namespace GBD {
|
|
150
184
|
export enum DocTypes {
|
|
151
185
|
'PS' = '001',
|
|
@@ -161,4 +195,13 @@ export namespace Enums {
|
|
|
161
195
|
'SBI' = 'SBI',
|
|
162
196
|
}
|
|
163
197
|
}
|
|
198
|
+
export namespace Sign {
|
|
199
|
+
export enum Types {
|
|
200
|
+
electronic = 1,
|
|
201
|
+
scans = 2,
|
|
202
|
+
qr = 3,
|
|
203
|
+
qrXml = 5,
|
|
204
|
+
nclayer = 6,
|
|
205
|
+
}
|
|
206
|
+
}
|
|
164
207
|
}
|
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';
|
|
@@ -133,8 +142,8 @@ export type EachAnketa = {
|
|
|
133
142
|
};
|
|
134
143
|
|
|
135
144
|
export enum AnswerName {
|
|
136
|
-
|
|
137
|
-
|
|
145
|
+
'Жоқ/Нет' = 'Жоқ/Нет',
|
|
146
|
+
'Иә/Да' = 'Иә/Да',
|
|
138
147
|
}
|
|
139
148
|
|
|
140
149
|
export enum AnswerType {
|
|
@@ -253,6 +262,11 @@ export interface ClientV2 {
|
|
|
253
262
|
criticalMultiply?: string;
|
|
254
263
|
criticalAdditive?: string;
|
|
255
264
|
hasAttachedFile?: boolean;
|
|
265
|
+
insrBeginDate?: string;
|
|
266
|
+
insrEndDate?: string;
|
|
267
|
+
economySectorCode?: Value;
|
|
268
|
+
resident?: Value;
|
|
269
|
+
tableNumber?: string;
|
|
256
270
|
}
|
|
257
271
|
|
|
258
272
|
export type RecalculationResponseType = {
|
|
@@ -283,6 +297,7 @@ export interface AddCover {
|
|
|
283
297
|
coverTypeCode: number;
|
|
284
298
|
coverSumId: string;
|
|
285
299
|
coverSumName: string;
|
|
300
|
+
coverSumNameKz: string;
|
|
286
301
|
coverSumCode: string;
|
|
287
302
|
amount: number;
|
|
288
303
|
premium: number;
|
|
@@ -385,6 +400,7 @@ export type GetContragentRequest = {
|
|
|
385
400
|
lastName: string;
|
|
386
401
|
middleName: string;
|
|
387
402
|
iin: string;
|
|
403
|
+
birthDate?: string;
|
|
388
404
|
};
|
|
389
405
|
|
|
390
406
|
export type GetContragentResponse = {
|
|
@@ -408,6 +424,8 @@ export interface ContragentType {
|
|
|
408
424
|
registrationDate: string;
|
|
409
425
|
verifyType: string;
|
|
410
426
|
verifyDate: string;
|
|
427
|
+
notes?: string;
|
|
428
|
+
organorganisationStartDate?: string;
|
|
411
429
|
}
|
|
412
430
|
|
|
413
431
|
export interface ContragentQuestionaries {
|
|
@@ -431,6 +449,9 @@ export interface ContragentDocuments {
|
|
|
431
449
|
issuerId: number;
|
|
432
450
|
issuerName: string | null;
|
|
433
451
|
issuerNameRu: string | null;
|
|
452
|
+
issuerOtherName?: string;
|
|
453
|
+
issuerOtherNameOrig?: string;
|
|
454
|
+
issuerOtherNameRu?: string;
|
|
434
455
|
description: string | null;
|
|
435
456
|
note: string | null;
|
|
436
457
|
verifyType: string;
|
|
@@ -552,6 +573,7 @@ export type PolicyAppDto = {
|
|
|
552
573
|
mainInsSum?: number | null;
|
|
553
574
|
agentCommission?: number | null;
|
|
554
575
|
calcDate?: string;
|
|
576
|
+
mainPremiumWithCommission?: number;
|
|
555
577
|
};
|
|
556
578
|
|
|
557
579
|
export type InsisWorkDataApp = {
|
|
@@ -568,6 +590,8 @@ export type InsisWorkDataApp = {
|
|
|
568
590
|
regionPolicyName?: string;
|
|
569
591
|
managerPolicy?: string;
|
|
570
592
|
managerPolicyName?: string;
|
|
593
|
+
executorGPH?: string;
|
|
594
|
+
executorGPHName?: string;
|
|
571
595
|
insuranceProgramType?: string;
|
|
572
596
|
};
|
|
573
597
|
|
|
@@ -722,6 +746,34 @@ export type SignedState = {
|
|
|
722
746
|
code: string;
|
|
723
747
|
};
|
|
724
748
|
|
|
749
|
+
export type GetContractByBinResponse = {
|
|
750
|
+
bin: string;
|
|
751
|
+
fullName: string;
|
|
752
|
+
insrBegin: string;
|
|
753
|
+
insrEnd: string;
|
|
754
|
+
policyNo: string;
|
|
755
|
+
policyId: string;
|
|
756
|
+
status: string;
|
|
757
|
+
};
|
|
758
|
+
|
|
759
|
+
export type ParentPolicyDto = {
|
|
760
|
+
contractId: number;
|
|
761
|
+
contractInsrBegin: string;
|
|
762
|
+
contractInsrEnd: string;
|
|
763
|
+
contractNumber: string;
|
|
764
|
+
};
|
|
765
|
+
|
|
766
|
+
export namespace Base {
|
|
767
|
+
export namespace Document {
|
|
768
|
+
export type Digital = { iin: string; longName: string; digitalDocument: IDocument | null };
|
|
769
|
+
export type IssuerOther = Value & {
|
|
770
|
+
issuerOtherName?: string;
|
|
771
|
+
issuerOtherNameOrig?: string;
|
|
772
|
+
issuerOtherNameRu?: string;
|
|
773
|
+
};
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
|
|
725
777
|
export namespace Utils {
|
|
726
778
|
export type ProjectConfig = {
|
|
727
779
|
version: string;
|
|
@@ -731,6 +783,22 @@ export namespace Utils {
|
|
|
731
783
|
export type VuetifyAnimations = 'expand' | 'fab' | 'fade' | 'scale' | 'scroll-x' | 'scroll-y' | 'slide-x' | 'slide-x-r' | 'slide-y' | 'slide-y-r';
|
|
732
784
|
export type LabelSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
|
|
733
785
|
export type VIcon = { mdi?: string; color?: string; bg?: string; size?: 'x-small' | 'small' | 'default' | 'large' | 'x-large' };
|
|
786
|
+
export type JwtToken = JwtPayload & {
|
|
787
|
+
lastName: string;
|
|
788
|
+
firstName: string;
|
|
789
|
+
middleName?: string;
|
|
790
|
+
code: string;
|
|
791
|
+
name?: string;
|
|
792
|
+
branchId: string;
|
|
793
|
+
branchCode: string;
|
|
794
|
+
branchName: string;
|
|
795
|
+
isAdmin: boolean;
|
|
796
|
+
iin: string;
|
|
797
|
+
phone: string;
|
|
798
|
+
email: string;
|
|
799
|
+
isChangePassword: boolean;
|
|
800
|
+
Permission: string[];
|
|
801
|
+
};
|
|
734
802
|
}
|
|
735
803
|
|
|
736
804
|
export namespace Api {
|
|
@@ -760,7 +828,7 @@ export namespace Api {
|
|
|
760
828
|
changeDate: string;
|
|
761
829
|
};
|
|
762
830
|
export type Document = {
|
|
763
|
-
type: Api.GBD.Dict & { code:
|
|
831
|
+
type: Api.GBD.Dict & { code: CoreEnums.GBD.DocTypes };
|
|
764
832
|
beginDate: string;
|
|
765
833
|
endDate: string;
|
|
766
834
|
number: string;
|
|
@@ -841,6 +909,7 @@ export namespace Api {
|
|
|
841
909
|
zagsCode?: string;
|
|
842
910
|
zagsNameKZ?: string;
|
|
843
911
|
zagsNameRU?: string;
|
|
912
|
+
childGender?: number;
|
|
844
913
|
};
|
|
845
914
|
}
|
|
846
915
|
|
|
@@ -854,6 +923,47 @@ export namespace Api {
|
|
|
854
923
|
name: string;
|
|
855
924
|
};
|
|
856
925
|
}
|
|
926
|
+
|
|
927
|
+
export namespace Sign {
|
|
928
|
+
export namespace New {
|
|
929
|
+
export type Request = {
|
|
930
|
+
taskId: string;
|
|
931
|
+
};
|
|
932
|
+
export type Type = {
|
|
933
|
+
documentSignType: string;
|
|
934
|
+
documentSignTypeName: string;
|
|
935
|
+
documentSignTypeValue: number;
|
|
936
|
+
};
|
|
937
|
+
export type FileDatas = {
|
|
938
|
+
fileName: string;
|
|
939
|
+
fileType: number;
|
|
940
|
+
orderFile: number;
|
|
941
|
+
isSigned: boolean;
|
|
942
|
+
signTypes: Api.Sign.New.Type[];
|
|
943
|
+
};
|
|
944
|
+
export type GeneralResponse = {
|
|
945
|
+
contragentId?: string | null;
|
|
946
|
+
contragentType?: number;
|
|
947
|
+
fileDatas?: FileDatas[];
|
|
948
|
+
iin?: string | null;
|
|
949
|
+
longName?: string | null;
|
|
950
|
+
personId?: number;
|
|
951
|
+
signType?: number | null;
|
|
952
|
+
signatureDocumentGroupId?: string | null;
|
|
953
|
+
taskId: string;
|
|
954
|
+
};
|
|
955
|
+
export type Response = {
|
|
956
|
+
edsXmlId: string | null;
|
|
957
|
+
iin: string | null;
|
|
958
|
+
longName: string | null;
|
|
959
|
+
phoneNumber: string | null;
|
|
960
|
+
shortUri: string | null;
|
|
961
|
+
signIds: { id: string; fileType: string }[];
|
|
962
|
+
signatureDocumentGroupId: string | null;
|
|
963
|
+
uri: string | null;
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
}
|
|
857
967
|
}
|
|
858
968
|
|
|
859
969
|
export namespace Dicts {
|