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/api/base.api.ts +68 -67
- package/components/Complex/TextBlock.vue +2 -0
- package/components/Dialog/Dialog.vue +2 -0
- package/components/Dialog/FamilyDialog.vue +2 -0
- package/components/Form/DynamicForm.vue +1 -0
- package/components/Form/FormData.vue +1 -0
- package/components/Form/ManagerAttachment.vue +1 -0
- package/components/Input/DynamicInput.vue +2 -0
- package/components/Input/FormInput.vue +2 -0
- package/components/Input/PanelInput.vue +1 -0
- package/components/Input/RoundedInput.vue +2 -0
- package/components/Input/RoundedSelect.vue +2 -0
- package/components/Input/SwitchInput.vue +2 -0
- package/components/Input/TextInput.vue +2 -0
- package/components/Layout/Drawer.vue +2 -0
- package/components/Pages/Anketa.vue +1 -0
- package/components/Pages/Auth.vue +2 -0
- package/components/Pages/ContragentForm.vue +1 -0
- package/components/Pages/Documents.vue +1 -0
- package/components/Pages/MemberForm.vue +1 -0
- package/components/Pages/ProductConditions.vue +1 -0
- package/components/Panel/PanelHandler.vue +1 -0
- package/components/Transitions/Animation.vue +2 -0
- package/components/Utilities/Chip.vue +2 -0
- package/composables/classes.ts +35 -34
- package/composables/fields.ts +6 -4
- package/composables/index.ts +2 -1
- package/nuxt.config.ts +0 -1
- package/package.json +1 -1
- package/store/data.store.ts +34 -33
- package/store/member.store.ts +1 -0
- package/types/env.d.ts +2 -2
- package/types/form.ts +71 -74
- package/types/index.ts +883 -885
package/api/base.api.ts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { MemberCodes, Methods } from '../types/enum';
|
|
2
2
|
import { useAxiosInstance } from '../composables/axios';
|
|
3
3
|
import { Value, IDocument } from '../composables/classes';
|
|
4
|
+
import type * as Types from '../types';
|
|
4
5
|
|
|
5
6
|
export class ApiClass {
|
|
6
7
|
private readonly baseURL: string = import.meta.env.VITE_BASE_URL as string;
|
|
7
8
|
private readonly productUrl: string = import.meta.env.VITE_PRODUCT_URL as string;
|
|
8
9
|
|
|
9
|
-
private async axiosCall<T>(config: AxiosRequestLocalConfig): Promise<T> {
|
|
10
|
+
private async axiosCall<T>(config: Types.AxiosRequestLocalConfig): Promise<T> {
|
|
10
11
|
const { data } = await useAxiosInstance(this.baseURL).request<T>(config);
|
|
11
12
|
return data;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
async getProjectConfig() {
|
|
15
|
-
return await this.axiosCall<Utils.ProjectConfig>({
|
|
16
|
+
return await this.axiosCall<Types.Utils.ProjectConfig>({
|
|
16
17
|
method: Methods.GET,
|
|
17
18
|
baseURL: getStrValuePerEnv('gatewayApiUrl'),
|
|
18
19
|
url: `/application/front/${import.meta.env.VITE_PARENT_PRODUCT === 'auletti' ? `auletti-${import.meta.env.VITE_PRODUCT}` : import.meta.env.VITE_PRODUCT}`,
|
|
@@ -178,8 +179,8 @@ export class ApiClass {
|
|
|
178
179
|
});
|
|
179
180
|
}
|
|
180
181
|
|
|
181
|
-
async getContragent(queryData: GetContragentRequest) {
|
|
182
|
-
return await this.axiosCall<GetContragentResponse>({
|
|
182
|
+
async getContragent(queryData: Types.GetContragentRequest) {
|
|
183
|
+
return await this.axiosCall<Types.GetContragentResponse>({
|
|
183
184
|
method: Methods.GET,
|
|
184
185
|
url: `/Ekk/api/Contragentinsis/Contragent?Iin=${queryData.iin}&FirstName=${queryData.firstName}&LastName=${queryData.lastName}&MiddleName=${queryData.middleName}`,
|
|
185
186
|
});
|
|
@@ -193,28 +194,28 @@ export class ApiClass {
|
|
|
193
194
|
}
|
|
194
195
|
|
|
195
196
|
async getQuestionList(surveyType: string, processInstanceId: string | number, insuredId: number | string) {
|
|
196
|
-
return await this.axiosCall<AnketaFirst>({
|
|
197
|
+
return await this.axiosCall<Types.AnketaFirst>({
|
|
197
198
|
method: Methods.GET,
|
|
198
199
|
url: `/${this.productUrl}/api/Application/Anketa/${surveyType}/${processInstanceId}/${insuredId}`,
|
|
199
200
|
});
|
|
200
201
|
}
|
|
201
202
|
|
|
202
203
|
async getClientQuestionList(surveyType: string, processInstanceId: string | number, insuredId: number | string) {
|
|
203
|
-
return await this.axiosCall<AnketaFirst>({
|
|
204
|
+
return await this.axiosCall<Types.AnketaFirst>({
|
|
204
205
|
method: Methods.GET,
|
|
205
206
|
url: `/${this.productUrl}/api/Application/AnketaClient/${surveyType}/${processInstanceId}/${insuredId}`,
|
|
206
207
|
});
|
|
207
208
|
}
|
|
208
209
|
|
|
209
210
|
async getQuestionListSecond(surveyType: string, processInstanceId: string | number, insuredId: number | string) {
|
|
210
|
-
return await this.axiosCall<AnketaSecond[]>({
|
|
211
|
+
return await this.axiosCall<Types.AnketaSecond[]>({
|
|
211
212
|
method: Methods.GET,
|
|
212
213
|
url: `/${this.productUrl}/api/Application/Anketa/${surveyType}/${processInstanceId}/${insuredId}`,
|
|
213
214
|
});
|
|
214
215
|
}
|
|
215
216
|
|
|
216
217
|
async getClientQuestionListSecond(surveyType: string, processInstanceId: string | number, insuredId: number | string) {
|
|
217
|
-
return await this.axiosCall<AnketaSecond[]>({
|
|
218
|
+
return await this.axiosCall<Types.AnketaSecond[]>({
|
|
218
219
|
method: Methods.GET,
|
|
219
220
|
url: `/${this.productUrl}/api/Application/AnketaClient/${surveyType}/${processInstanceId}/${insuredId}`,
|
|
220
221
|
});
|
|
@@ -227,7 +228,7 @@ export class ApiClass {
|
|
|
227
228
|
});
|
|
228
229
|
}
|
|
229
230
|
|
|
230
|
-
async setSurvey(surveyData: AnketaFirst) {
|
|
231
|
+
async setSurvey(surveyData: Types.AnketaFirst) {
|
|
231
232
|
return await this.axiosCall<string>({
|
|
232
233
|
method: Methods.POST,
|
|
233
234
|
data: surveyData,
|
|
@@ -250,14 +251,14 @@ export class ApiClass {
|
|
|
250
251
|
}
|
|
251
252
|
|
|
252
253
|
async getAdditionalInsuranceTermsAnswers(processCode: string | number, questionId: string) {
|
|
253
|
-
return await this.axiosCall<AddCoverAnswer[]>({
|
|
254
|
+
return await this.axiosCall<Types.AddCoverAnswer[]>({
|
|
254
255
|
method: Methods.GET,
|
|
255
256
|
url: `/Arm/api/Dictionary/ProcessCoverTypeSum/${processCode}/${questionId}`,
|
|
256
257
|
});
|
|
257
258
|
}
|
|
258
259
|
|
|
259
260
|
async getProcessCoverTypePeriod(processCode: string | number, questionId: string) {
|
|
260
|
-
return await this.axiosCall<AddCoverAnswer[]>({
|
|
261
|
+
return await this.axiosCall<Types.AddCoverAnswer[]>({
|
|
261
262
|
method: Methods.GET,
|
|
262
263
|
url: `/Arm/api/Dictionary/GetProcessCoverTypePeriod/${processCode}/${questionId}`,
|
|
263
264
|
});
|
|
@@ -278,18 +279,18 @@ export class ApiClass {
|
|
|
278
279
|
}
|
|
279
280
|
|
|
280
281
|
async getContragentById(id: number) {
|
|
281
|
-
return await this.axiosCall<GetContragentResponse>({
|
|
282
|
+
return await this.axiosCall<Types.GetContragentResponse>({
|
|
282
283
|
method: Methods.GET,
|
|
283
284
|
url: `/Ekk/api/Contragentinsis/Contragent?PersonId=${id}`,
|
|
284
285
|
});
|
|
285
286
|
}
|
|
286
287
|
|
|
287
288
|
async saveContragent(data: {
|
|
288
|
-
contragent: ContragentType;
|
|
289
|
-
questionaries: ContragentQuestionaries[];
|
|
290
|
-
contacts: ContragentContacts[];
|
|
291
|
-
documents: ContragentDocuments[];
|
|
292
|
-
addresses: ContragentAddress[];
|
|
289
|
+
contragent: Types.ContragentType;
|
|
290
|
+
questionaries: Types.ContragentQuestionaries[];
|
|
291
|
+
contacts: Types.ContragentContacts[];
|
|
292
|
+
documents: Types.ContragentDocuments[];
|
|
293
|
+
addresses: Types.ContragentAddress[];
|
|
293
294
|
}) {
|
|
294
295
|
return await this.axiosCall<number>({
|
|
295
296
|
method: Methods.POST,
|
|
@@ -317,35 +318,35 @@ export class ApiClass {
|
|
|
317
318
|
}
|
|
318
319
|
|
|
319
320
|
async getContrAgentData(personId: string | number) {
|
|
320
|
-
return await this.axiosCall<ContragentQuestionaries[]>({
|
|
321
|
+
return await this.axiosCall<Types.ContragentQuestionaries[]>({
|
|
321
322
|
method: Methods.GET,
|
|
322
323
|
url: `/Ekk/api/Contragentinsis/Questionaries?PersonId=${personId}`,
|
|
323
324
|
});
|
|
324
325
|
}
|
|
325
326
|
|
|
326
327
|
async getContrAgentContacts(personId: string | number) {
|
|
327
|
-
return await this.axiosCall<ContragentContacts[]>({
|
|
328
|
+
return await this.axiosCall<Types.ContragentContacts[]>({
|
|
328
329
|
method: Methods.GET,
|
|
329
330
|
url: `/Ekk/api/Contragentinsis/Contacts?PersonId=${personId}`,
|
|
330
331
|
});
|
|
331
332
|
}
|
|
332
333
|
|
|
333
334
|
async getContrAgentDocuments(personId: string | number) {
|
|
334
|
-
return await this.axiosCall<ContragentDocuments[]>({
|
|
335
|
+
return await this.axiosCall<Types.ContragentDocuments[]>({
|
|
335
336
|
method: Methods.GET,
|
|
336
337
|
url: `/Ekk/api/Contragentinsis/Documents?PersonId=${personId}`,
|
|
337
338
|
});
|
|
338
339
|
}
|
|
339
340
|
|
|
340
341
|
async getContrAgentAddress(personId: string | number) {
|
|
341
|
-
return await this.axiosCall<ContragentAddress[]>({
|
|
342
|
+
return await this.axiosCall<Types.ContragentAddress[]>({
|
|
342
343
|
method: Methods.GET,
|
|
343
344
|
url: `/Ekk/api/Contragentinsis/Address?PersonId=${personId}`,
|
|
344
345
|
});
|
|
345
346
|
}
|
|
346
347
|
|
|
347
348
|
async getTaskList(data: any) {
|
|
348
|
-
return await this.axiosCall<{ items: TaskListItem[]; totalItems: number }>({
|
|
349
|
+
return await this.axiosCall<{ items: Types.TaskListItem[]; totalItems: number }>({
|
|
349
350
|
method: Methods.POST,
|
|
350
351
|
url: `/Arm/api/Bpm/TaskList`,
|
|
351
352
|
data: data,
|
|
@@ -353,13 +354,13 @@ export class ApiClass {
|
|
|
353
354
|
}
|
|
354
355
|
|
|
355
356
|
async getProcessHistory(id: string) {
|
|
356
|
-
return await this.axiosCall<TaskHistory[]>({
|
|
357
|
+
return await this.axiosCall<Types.TaskHistory[]>({
|
|
357
358
|
method: Methods.GET,
|
|
358
359
|
url: `/Arm/api/Bpm/GetProcessHistory?processInstanceId=${id}`,
|
|
359
360
|
});
|
|
360
361
|
}
|
|
361
362
|
|
|
362
|
-
async registerNumber(data: RegNumberDataType) {
|
|
363
|
+
async registerNumber(data: Types.RegNumberDataType) {
|
|
363
364
|
return await this.axiosCall<string>({
|
|
364
365
|
method: Methods.POST,
|
|
365
366
|
url: `/${this.productUrl}/api/Application/FinCenterRegNumberSave`,
|
|
@@ -367,7 +368,7 @@ export class ApiClass {
|
|
|
367
368
|
});
|
|
368
369
|
}
|
|
369
370
|
|
|
370
|
-
async sendSms(data: SmsDataType) {
|
|
371
|
+
async sendSms(data: Types.SmsDataType) {
|
|
371
372
|
return await this.axiosCall<void>({
|
|
372
373
|
method: Methods.POST,
|
|
373
374
|
url: '/Arm/api/Otp/SmsText',
|
|
@@ -376,13 +377,13 @@ export class ApiClass {
|
|
|
376
377
|
}
|
|
377
378
|
|
|
378
379
|
async getUserGroups() {
|
|
379
|
-
return await this.axiosCall<Item[]>({
|
|
380
|
+
return await this.axiosCall<Types.Item[]>({
|
|
380
381
|
method: Methods.GET,
|
|
381
382
|
url: '/Arm/api/Bpm/TaskGroups',
|
|
382
383
|
});
|
|
383
384
|
}
|
|
384
385
|
|
|
385
|
-
async getOtpStatus(data: OtpDataType) {
|
|
386
|
+
async getOtpStatus(data: Types.OtpDataType) {
|
|
386
387
|
return await this.axiosCall<boolean>({
|
|
387
388
|
method: Methods.POST,
|
|
388
389
|
url: '/Arm/api/Otp/OtpLifeStatus',
|
|
@@ -390,8 +391,8 @@ export class ApiClass {
|
|
|
390
391
|
});
|
|
391
392
|
}
|
|
392
393
|
|
|
393
|
-
async sendOtp(data: OtpDataType) {
|
|
394
|
-
return await this.axiosCall<SendOtpResponse>({
|
|
394
|
+
async sendOtp(data: Types.OtpDataType) {
|
|
395
|
+
return await this.axiosCall<Types.SendOtpResponse>({
|
|
395
396
|
method: Methods.POST,
|
|
396
397
|
url: '/Arm/api/Otp/Get',
|
|
397
398
|
data: data,
|
|
@@ -399,7 +400,7 @@ export class ApiClass {
|
|
|
399
400
|
}
|
|
400
401
|
|
|
401
402
|
async checkOtp(data: { tokenId: string; phoneNumber: string; code: string }) {
|
|
402
|
-
return await this.axiosCall<SendOtpResponse>({
|
|
403
|
+
return await this.axiosCall<Types.SendOtpResponse>({
|
|
403
404
|
method: Methods.POST,
|
|
404
405
|
url: '/Arm/api/Otp/Check',
|
|
405
406
|
data: data,
|
|
@@ -407,7 +408,7 @@ export class ApiClass {
|
|
|
407
408
|
}
|
|
408
409
|
|
|
409
410
|
async getProcessList() {
|
|
410
|
-
return await this.axiosCall<Item[]>({
|
|
411
|
+
return await this.axiosCall<Types.Item[]>({
|
|
411
412
|
method: Methods.GET,
|
|
412
413
|
url: '/Arm/api/Bpm/ProcessList',
|
|
413
414
|
});
|
|
@@ -431,7 +432,7 @@ export class ApiClass {
|
|
|
431
432
|
}
|
|
432
433
|
|
|
433
434
|
async getGovernmentPremiums(id: string) {
|
|
434
|
-
return await this.axiosCall<GovPremiums>({
|
|
435
|
+
return await this.axiosCall<Types.GovPremiums>({
|
|
435
436
|
method: Methods.POST,
|
|
436
437
|
url: `/${this.productUrl}/api/Application/getGovernmentPremiums?processInstanceId=${id} `,
|
|
437
438
|
});
|
|
@@ -444,7 +445,7 @@ export class ApiClass {
|
|
|
444
445
|
});
|
|
445
446
|
}
|
|
446
447
|
|
|
447
|
-
async setApplication(data: SetApplicationRequest) {
|
|
448
|
+
async setApplication(data: Types.SetApplicationRequest) {
|
|
448
449
|
return await this.axiosCall<void>({
|
|
449
450
|
method: Methods.POST,
|
|
450
451
|
url: `/${this.productUrl}/api/Application/SetApplicationData`,
|
|
@@ -471,7 +472,7 @@ export class ApiClass {
|
|
|
471
472
|
});
|
|
472
473
|
}
|
|
473
474
|
|
|
474
|
-
async sendTask(data: SendTask) {
|
|
475
|
+
async sendTask(data: Types.SendTask) {
|
|
475
476
|
return await this.axiosCall<void>({
|
|
476
477
|
method: Methods.POST,
|
|
477
478
|
url: `/${this.productUrl}/api/Application/SendTask`,
|
|
@@ -502,7 +503,7 @@ export class ApiClass {
|
|
|
502
503
|
}
|
|
503
504
|
|
|
504
505
|
async getInvoiceData(processInstanceId: string | number) {
|
|
505
|
-
return await this.axiosCall<EpayResponse>({
|
|
506
|
+
return await this.axiosCall<Types.EpayResponse>({
|
|
506
507
|
method: Methods.GET,
|
|
507
508
|
url: `/Arm/api/Invoice/InvoiceData?processInstanceId=${processInstanceId}`,
|
|
508
509
|
});
|
|
@@ -523,29 +524,29 @@ export class ApiClass {
|
|
|
523
524
|
}
|
|
524
525
|
|
|
525
526
|
async sendToEpay(processInstanceId: string | number) {
|
|
526
|
-
return await this.axiosCall<EpayShortResponse>({
|
|
527
|
+
return await this.axiosCall<Types.EpayShortResponse>({
|
|
527
528
|
method: Methods.POST,
|
|
528
529
|
url: `/Arm/api/Invoice/SendToEpay/${processInstanceId}`,
|
|
529
530
|
});
|
|
530
531
|
}
|
|
531
532
|
|
|
532
|
-
async signDocument(data: SignDataType[]) {
|
|
533
|
-
return await this.axiosCall<SignUrlType[]>({
|
|
533
|
+
async signDocument(data: Types.SignDataType[]) {
|
|
534
|
+
return await this.axiosCall<Types.SignUrlType[]>({
|
|
534
535
|
method: Methods.POST,
|
|
535
536
|
url: '/File/api/Document/SignBts',
|
|
536
537
|
data: data,
|
|
537
538
|
});
|
|
538
539
|
}
|
|
539
540
|
|
|
540
|
-
async signQR(data: SignDataType[]) {
|
|
541
|
-
return await this.axiosCall<ResponseStructure<any>>({
|
|
541
|
+
async signQR(data: Types.SignDataType[]) {
|
|
542
|
+
return await this.axiosCall<Types.ResponseStructure<any>>({
|
|
542
543
|
method: Methods.POST,
|
|
543
544
|
url: '/File/api/Sign/SignQr',
|
|
544
545
|
data: data,
|
|
545
546
|
});
|
|
546
547
|
}
|
|
547
548
|
|
|
548
|
-
async generateDocument(data: SignDataType) {
|
|
549
|
+
async generateDocument(data: Types.SignDataType) {
|
|
549
550
|
return await this.axiosCall<void>({
|
|
550
551
|
method: Methods.POST,
|
|
551
552
|
url: '/File/api/Document/Generate',
|
|
@@ -562,8 +563,8 @@ export class ApiClass {
|
|
|
562
563
|
});
|
|
563
564
|
}
|
|
564
565
|
|
|
565
|
-
async calculateWithoutApplication(data: RecalculationDataType, product: string | undefined | null = this.productUrl) {
|
|
566
|
-
return await this.axiosCall<RecalculationResponseType>({
|
|
566
|
+
async calculateWithoutApplication(data: Types.RecalculationDataType, product: string | undefined | null = this.productUrl) {
|
|
567
|
+
return await this.axiosCall<Types.RecalculationResponseType>({
|
|
567
568
|
method: Methods.POST,
|
|
568
569
|
url: `/${product}/api/Application/Calculate`,
|
|
569
570
|
data: data,
|
|
@@ -571,7 +572,7 @@ export class ApiClass {
|
|
|
571
572
|
}
|
|
572
573
|
|
|
573
574
|
async getDefaultCalculationData(product: string | undefined | null = this.productUrl) {
|
|
574
|
-
return await this.axiosCall<RecalculationDataType>({
|
|
575
|
+
return await this.axiosCall<Types.RecalculationDataType>({
|
|
575
576
|
method: Methods.GET,
|
|
576
577
|
url: `/${product}/api/Application/DefaultCalculatorValues`,
|
|
577
578
|
});
|
|
@@ -585,8 +586,8 @@ export class ApiClass {
|
|
|
585
586
|
});
|
|
586
587
|
}
|
|
587
588
|
|
|
588
|
-
async getValidateClientESBD(data: ESBDValidationType) {
|
|
589
|
-
return await this.axiosCall<ESBDResponseType>({
|
|
589
|
+
async getValidateClientESBD(data: Types.ESBDValidationType) {
|
|
590
|
+
return await this.axiosCall<Types.ESBDResponseType>({
|
|
590
591
|
method: Methods.POST,
|
|
591
592
|
url: '/externalservices/api/ExternalServices/GetValidateClientEsbd',
|
|
592
593
|
data: data,
|
|
@@ -616,16 +617,16 @@ export class ApiClass {
|
|
|
616
617
|
});
|
|
617
618
|
}
|
|
618
619
|
|
|
619
|
-
async getContragentFromGBDFL(data: Api.GBD.Request) {
|
|
620
|
-
return await this.axiosCall<Api.GBD.Response>({
|
|
620
|
+
async getContragentFromGBDFL(data: Types.Api.GBD.Request) {
|
|
621
|
+
return await this.axiosCall<Types.Api.GBD.Response>({
|
|
621
622
|
method: Methods.POST,
|
|
622
623
|
url: '/externalservices/api/ExternalServices/GetGbdflToken',
|
|
623
624
|
data: data,
|
|
624
625
|
});
|
|
625
626
|
}
|
|
626
627
|
|
|
627
|
-
async getFamilyInfo(data: Api.GBD.Request) {
|
|
628
|
-
return await this.axiosCall<Api.GKB.Response>({
|
|
628
|
+
async getFamilyInfo(data: Types.Api.GBD.Request) {
|
|
629
|
+
return await this.axiosCall<Types.Api.GKB.Response>({
|
|
629
630
|
method: Methods.POST,
|
|
630
631
|
url: '/externalservices/api/ExternalServices/GetFamilyInfoToken',
|
|
631
632
|
data: data,
|
|
@@ -633,7 +634,7 @@ export class ApiClass {
|
|
|
633
634
|
}
|
|
634
635
|
|
|
635
636
|
async getKgd(data: { iinBin: string }, timeout: number = 30000) {
|
|
636
|
-
return await this.axiosCall<Api.KGD.Response>({
|
|
637
|
+
return await this.axiosCall<Types.Api.KGD.Response>({
|
|
637
638
|
method: Methods.POST,
|
|
638
639
|
url: '/externalservices/api/ExternalServices/GetKgd',
|
|
639
640
|
data: data,
|
|
@@ -641,7 +642,7 @@ export class ApiClass {
|
|
|
641
642
|
});
|
|
642
643
|
}
|
|
643
644
|
|
|
644
|
-
async getGbdUl(data: Api.GBD.UlRequest) {
|
|
645
|
+
async getGbdUl(data: Types.Api.GBD.UlRequest) {
|
|
645
646
|
return await this.axiosCall({
|
|
646
647
|
method: Methods.POST,
|
|
647
648
|
url: '/integration/api/External/GetGbdUl',
|
|
@@ -668,7 +669,7 @@ export class ApiClass {
|
|
|
668
669
|
});
|
|
669
670
|
}
|
|
670
671
|
|
|
671
|
-
async sendUnderwritingCouncilTask(data: Partial<SendTask>) {
|
|
672
|
+
async sendUnderwritingCouncilTask(data: Partial<Types.SendTask>) {
|
|
672
673
|
return await this.axiosCall<void>({
|
|
673
674
|
method: Methods.POST,
|
|
674
675
|
url: '/Arm/api/UnderwritingCouncil/SendTask',
|
|
@@ -690,7 +691,7 @@ export class ApiClass {
|
|
|
690
691
|
});
|
|
691
692
|
}
|
|
692
693
|
|
|
693
|
-
async setINSISWorkData(data: InsisWorkDataApp) {
|
|
694
|
+
async setINSISWorkData(data: Types.InsisWorkDataApp) {
|
|
694
695
|
return await this.axiosCall({
|
|
695
696
|
method: Methods.POST,
|
|
696
697
|
url: `/Arm/api/Bpm/SetInsisWorkData`,
|
|
@@ -706,7 +707,7 @@ export class ApiClass {
|
|
|
706
707
|
}
|
|
707
708
|
|
|
708
709
|
async searchAgentByName(name: string, branchCode?: string) {
|
|
709
|
-
return await this.axiosCall<AgentData[]>({
|
|
710
|
+
return await this.axiosCall<Types.AgentData[]>({
|
|
710
711
|
method: Methods.GET,
|
|
711
712
|
url: `/Ekk/api/ContragentInsis/Agent${branchCode ? 's' : ''}ByName?${branchCode ? `branchCode=${branchCode}&` : ''}fullName=${name}`,
|
|
712
713
|
});
|
|
@@ -727,14 +728,14 @@ export class ApiClass {
|
|
|
727
728
|
}
|
|
728
729
|
|
|
729
730
|
async getTripInsuranceDaysOptions() {
|
|
730
|
-
return await this.axiosCall<TripInsuranceDaysOptions>({
|
|
731
|
+
return await this.axiosCall<Types.TripInsuranceDaysOptions>({
|
|
731
732
|
method: Methods.GET,
|
|
732
733
|
url: `/${this.productUrl}/api/Application/TripInsuranceDaysOptions`,
|
|
733
734
|
});
|
|
734
735
|
}
|
|
735
736
|
|
|
736
|
-
async getTripInsuredAmount(data: getTripInsuredAmountRequest) {
|
|
737
|
-
return await this.axiosCall<TripInsuranceAmount>({
|
|
737
|
+
async getTripInsuredAmount(data: Types.getTripInsuredAmountRequest) {
|
|
738
|
+
return await this.axiosCall<Types.TripInsuranceAmount>({
|
|
738
739
|
method: Methods.POST,
|
|
739
740
|
url: `/${this.productUrl}/api/Application/InsuranceAmountOptions`,
|
|
740
741
|
data: data,
|
|
@@ -766,7 +767,7 @@ export class ApiClass {
|
|
|
766
767
|
});
|
|
767
768
|
}
|
|
768
769
|
|
|
769
|
-
async getCalculator(data: SetApplicationRequest) {
|
|
770
|
+
async getCalculator(data: Types.SetApplicationRequest) {
|
|
770
771
|
return await this.axiosCall<number>({
|
|
771
772
|
method: Methods.POST,
|
|
772
773
|
url: `/${this.productUrl}/api/Application/Calculator`,
|
|
@@ -974,7 +975,7 @@ export class ApiClass {
|
|
|
974
975
|
}
|
|
975
976
|
|
|
976
977
|
async signXml(data: any) {
|
|
977
|
-
return await this.axiosCall<ResponseStructure<any>>({
|
|
978
|
+
return await this.axiosCall<Types.ResponseStructure<any>>({
|
|
978
979
|
url: `/File/api/Sign/SignXml`,
|
|
979
980
|
method: Methods.POST,
|
|
980
981
|
data: data,
|
|
@@ -982,15 +983,15 @@ export class ApiClass {
|
|
|
982
983
|
}
|
|
983
984
|
|
|
984
985
|
async signBts(data: any) {
|
|
985
|
-
return await this.axiosCall<ResponseStructure<SignUrlType[]>>({
|
|
986
|
+
return await this.axiosCall<Types.ResponseStructure<Types.SignUrlType[]>>({
|
|
986
987
|
url: `/File/api/Sign/SignBts`,
|
|
987
988
|
method: Methods.POST,
|
|
988
989
|
data: data,
|
|
989
990
|
});
|
|
990
991
|
}
|
|
991
992
|
|
|
992
|
-
async generateShortLink(data: Api.GenerateShortLink.Request) {
|
|
993
|
-
return await this.axiosCall<Api.GenerateShortLink.Response>({
|
|
993
|
+
async generateShortLink(data: Types.Api.GenerateShortLink.Request) {
|
|
994
|
+
return await this.axiosCall<Types.Api.GenerateShortLink.Response>({
|
|
994
995
|
url: '/notification/shorteners',
|
|
995
996
|
baseURL: getStrValuePerEnv('gatewayApiUrl'),
|
|
996
997
|
method: Methods.POST,
|
|
@@ -1018,7 +1019,7 @@ export class ApiClass {
|
|
|
1018
1019
|
});
|
|
1019
1020
|
}
|
|
1020
1021
|
|
|
1021
|
-
async getOsrnsToken(data: Api.GBD.Request) {
|
|
1022
|
+
async getOsrnsToken(data: Types.Api.GBD.Request) {
|
|
1022
1023
|
return await this.axiosCall({
|
|
1023
1024
|
method: Methods.POST,
|
|
1024
1025
|
url: '/externalservices/api/ExternalServices/GetOsrnsToken',
|
|
@@ -1067,21 +1068,21 @@ export class ApiClass {
|
|
|
1067
1068
|
}
|
|
1068
1069
|
|
|
1069
1070
|
async getDocumentsByEdsXmlId(edsXmlId: string) {
|
|
1070
|
-
return await this.axiosCall<ResponseStructure<any>>({
|
|
1071
|
+
return await this.axiosCall<Types.ResponseStructure<any>>({
|
|
1071
1072
|
method: Methods.GET,
|
|
1072
1073
|
url: `/File/api/Sign/GetDocumentsByEdsXmlId/${edsXmlId}`,
|
|
1073
1074
|
});
|
|
1074
1075
|
}
|
|
1075
1076
|
|
|
1076
1077
|
async checkSign(id: string) {
|
|
1077
|
-
return await this.axiosCall<SignedState>({
|
|
1078
|
+
return await this.axiosCall<Types.SignedState>({
|
|
1078
1079
|
method: Methods.POST,
|
|
1079
1080
|
url: `/${this.productUrl}/api/Application/CheckSign/${id}`,
|
|
1080
1081
|
});
|
|
1081
1082
|
}
|
|
1082
1083
|
|
|
1083
1084
|
async getWorkPosition(search: string) {
|
|
1084
|
-
return await this.axiosCall<Dicts.WorkPosition[]>({
|
|
1085
|
+
return await this.axiosCall<Types.Dicts.WorkPosition[]>({
|
|
1085
1086
|
method: Methods.POST,
|
|
1086
1087
|
baseURL: getStrValuePerEnv('efoBaseApi'),
|
|
1087
1088
|
url: '/dictionary/Dictionary/WorkPosition',
|
|
@@ -791,6 +791,7 @@
|
|
|
791
791
|
import { Value, DocumentItem, Member } from '../../composables/classes';
|
|
792
792
|
import { uuid } from 'vue-uuid';
|
|
793
793
|
import { StoreMembers, Enums } from '../../types/enum';
|
|
794
|
+
import type { Api, Dicts, ESBDValidationType, FileActions, MultipleMember } from '../../types';
|
|
794
795
|
|
|
795
796
|
export default {
|
|
796
797
|
setup() {
|