hl-core 0.0.9-beta.2 → 0.0.9-beta.21

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 (63) hide show
  1. package/api/base.api.ts +684 -0
  2. package/api/index.ts +2 -620
  3. package/api/interceptors.ts +58 -14
  4. package/components/Button/Btn.vue +3 -3
  5. package/components/Complex/ContentBlock.vue +1 -1
  6. package/components/Complex/MessageBlock.vue +1 -1
  7. package/components/Complex/Page.vue +7 -1
  8. package/components/Complex/WhiteBlock.vue +7 -0
  9. package/components/Dialog/Dialog.vue +2 -2
  10. package/components/Dialog/FamilyDialog.vue +5 -5
  11. package/components/Form/FormBlock.vue +36 -29
  12. package/components/Form/FormSection.vue +2 -2
  13. package/components/Form/FormTextSection.vue +3 -3
  14. package/components/Form/FormToggle.vue +3 -3
  15. package/components/Form/ManagerAttachment.vue +55 -42
  16. package/components/Form/ProductConditionsBlock.vue +73 -20
  17. package/components/Input/EmptyFormField.vue +1 -1
  18. package/components/Input/FileInput.vue +8 -3
  19. package/components/Input/Monthpicker.vue +33 -0
  20. package/components/Input/PanelInput.vue +5 -1
  21. package/components/Input/RoundedEmptyField.vue +5 -0
  22. package/components/Input/RoundedSelect.vue +13 -0
  23. package/components/Layout/Drawer.vue +2 -1
  24. package/components/Layout/Header.vue +1 -1
  25. package/components/Layout/SettingsPanel.vue +5 -9
  26. package/components/List/ListEmpty.vue +1 -1
  27. package/components/Menu/MenuHover.vue +1 -1
  28. package/components/Menu/MenuNav.vue +1 -1
  29. package/components/Menu/MenuNavItem.vue +4 -4
  30. package/components/Pages/Anketa.vue +88 -47
  31. package/components/Pages/Auth.vue +21 -10
  32. package/components/Pages/ContragentForm.vue +505 -0
  33. package/components/Pages/Documents.vue +5 -5
  34. package/components/Pages/InvoiceInfo.vue +2 -2
  35. package/components/Pages/MemberForm.vue +215 -59
  36. package/components/Pages/ProductAgreement.vue +1 -3
  37. package/components/Pages/ProductConditions.vue +677 -151
  38. package/components/Panel/PanelHandler.vue +86 -21
  39. package/components/Panel/PanelSelectItem.vue +18 -3
  40. package/components/Utilities/IconBorder.vue +17 -0
  41. package/composables/axios.ts +1 -1
  42. package/composables/classes.ts +276 -11
  43. package/composables/constants.ts +43 -0
  44. package/composables/index.ts +40 -4
  45. package/composables/styles.ts +20 -10
  46. package/configs/i18n.ts +0 -2
  47. package/layouts/default.vue +5 -2
  48. package/layouts/full.vue +1 -1
  49. package/locales/ru.json +221 -6
  50. package/nuxt.config.ts +1 -1
  51. package/package.json +30 -39
  52. package/pages/500.vue +2 -2
  53. package/pages/Token.vue +1 -0
  54. package/plugins/helperFunctionsPlugins.ts +6 -7
  55. package/plugins/vuetifyPlugin.ts +2 -0
  56. package/store/data.store.ts +561 -226
  57. package/store/form.store.ts +11 -1
  58. package/store/member.store.ts +1 -1
  59. package/store/rules.ts +37 -2
  60. package/types/enum.ts +6 -0
  61. package/types/index.ts +145 -31
  62. package/components/Button/BtnIcon.vue +0 -47
  63. package/locales/kz.json +0 -585
@@ -0,0 +1,684 @@
1
+ import { MemberCodes, Methods } from '../types/enum';
2
+ import { useAxiosInstance } from '../composables/axios';
3
+ import { Value, IDocument, CountryValue } from '../composables/classes';
4
+
5
+ export class ApiClass {
6
+ private readonly baseURL: string = import.meta.env.VITE_BASE_URL as string;
7
+ private readonly productUrl: string = import.meta.env.VITE_PRODUCT_URL as string;
8
+
9
+ private async axiosCall<T>(config: AxiosRequestLocalConfig): Promise<T> {
10
+ const { data } = await useAxiosInstance(this.baseURL).request<T>(config);
11
+ return data;
12
+ }
13
+
14
+ async loginUser(data: { login: string; password: string; numAttempt: number }) {
15
+ return await this.axiosCall<{ refreshToken: string; accessToken: string }>({
16
+ method: Methods.POST,
17
+ url: '/identity/api/Account/login',
18
+ data: data,
19
+ });
20
+ }
21
+
22
+ async getNewAccessToken({ refreshToken, accessToken }: { refreshToken: string; accessToken: string }) {
23
+ return await this.axiosCall<{ refreshToken: string; accessToken: string }>({
24
+ method: Methods.POST,
25
+ url: '/identity/api/Account/refresh',
26
+ headers: {
27
+ 'X-Refresh-Token': refreshToken,
28
+ 'X-Access-Token': accessToken,
29
+ },
30
+ });
31
+ }
32
+
33
+ async getCountries() {
34
+ return await this.axiosCall<Value[]>({
35
+ method: Methods.GET,
36
+ url: '/Ekk/api/Contragentinsis/DictionaryItems/Country',
37
+ });
38
+ }
39
+
40
+ async getCitizenshipCountries() {
41
+ return await this.axiosCall<Value[]>({
42
+ method: Methods.GET,
43
+ url: '/Ekk/api/Contragentinsis/DictionaryItems/Questionary?filter=500012',
44
+ });
45
+ }
46
+
47
+ async getTaxCountries() {
48
+ return await this.axiosCall<Value[]>({
49
+ method: Methods.GET,
50
+ url: '/Ekk/api/Contragentinsis/DictionaryItems/Questionary?filter=500014',
51
+ });
52
+ }
53
+
54
+ async getAdditionalTaxCountries() {
55
+ return await this.axiosCall<Value[]>({
56
+ method: Methods.GET,
57
+ url: '/Ekk/api/Contragentinsis/DictionaryItems/Questionary?filter=507777',
58
+ });
59
+ }
60
+
61
+ async getStates() {
62
+ return await this.axiosCall<Value[]>({
63
+ method: Methods.GET,
64
+ url: '/Ekk/api/Contragentinsis/DictionaryItems/State',
65
+ });
66
+ }
67
+
68
+ async getRegions() {
69
+ return await this.axiosCall<Value[]>({
70
+ method: Methods.GET,
71
+ url: '/Ekk/api/Contragentinsis/DictionaryItems/Region',
72
+ });
73
+ }
74
+
75
+ async getCities() {
76
+ return await this.axiosCall<Value[]>({
77
+ method: Methods.GET,
78
+ url: '/Ekk/api/Contragentinsis/DictionaryItems/CityVillage',
79
+ });
80
+ }
81
+
82
+ async getLocalityTypes() {
83
+ return await this.axiosCall<Value[]>({
84
+ method: Methods.GET,
85
+ url: '/Ekk/api/Contragentinsis/DictionaryItems/LocalityType',
86
+ });
87
+ }
88
+
89
+ async getDocumentTypes() {
90
+ return await this.axiosCall<Value[]>({
91
+ method: Methods.GET,
92
+ url: '/Ekk/api/Contragentinsis/DictionaryItems/DocumentTypePhys',
93
+ });
94
+ }
95
+
96
+ async getDocumentIssuers() {
97
+ return await this.axiosCall<Value[]>({
98
+ method: Methods.GET,
99
+ url: '/Ekk/api/Contragentinsis/DictionaryItems/DocIssuer',
100
+ });
101
+ }
102
+
103
+ async getResidents() {
104
+ return await this.axiosCall<Value[]>({
105
+ method: Methods.GET,
106
+ url: '/Ekk/api/Contragentinsis/DictionaryItems/Questionary?filter=500011',
107
+ });
108
+ }
109
+
110
+ async getSectorCode() {
111
+ return await this.axiosCall<Value[]>({
112
+ method: Methods.GET,
113
+ url: '/Ekk/api/Contragentinsis/DictionaryItems/Questionary?filter=500003',
114
+ });
115
+ }
116
+
117
+ async getFamilyStatuses() {
118
+ return await this.axiosCall<Value[]>({
119
+ method: Methods.GET,
120
+ url: '/Arm/api/Dictionary/GetDictionaryItems/DicFamilyStatus',
121
+ });
122
+ }
123
+
124
+ async getRelationTypes() {
125
+ return await this.axiosCall<Value[]>({
126
+ method: Methods.GET,
127
+ url: '/Ekk/api/Contragentinsis/DictionaryItems/Relation',
128
+ });
129
+ }
130
+
131
+ async getBanks() {
132
+ return await this.axiosCall<Value[]>({
133
+ method: Methods.GET,
134
+ url: '/Ekk/api/Contragentinsis/DictionaryItems/Bank',
135
+ });
136
+ }
137
+
138
+ async getDicAnnuityTypeList() {
139
+ return await this.axiosCall<Value[]>({
140
+ method: Methods.GET,
141
+ url: '/Arm/api/Dictionary/GetDictionaryItems/DicAnnuityType',
142
+ });
143
+ }
144
+
145
+ async getCurrencies() {
146
+ return await this.axiosCall<{ eur: number; usd: number }>({
147
+ method: Methods.GET,
148
+ url: '/Ekk/api/Currency/GetExchange',
149
+ });
150
+ }
151
+
152
+ async getContragent(queryData: GetContragentRequest) {
153
+ return await this.axiosCall<GetContragentResponse>({
154
+ method: Methods.GET,
155
+ url: `/Ekk/api/Contragentinsis/Contragent?Iin=${queryData.iin}&FirstName=${queryData.firstName}&LastName=${queryData.lastName}&MiddleName=${queryData.middleName}`,
156
+ });
157
+ }
158
+
159
+ async getInsurancePay() {
160
+ return await this.axiosCall<Value[]>({
161
+ method: Methods.GET,
162
+ url: '/Arm/api/Dictionary/GetDictionaryItems/DicBeneficiaryInsurancePay',
163
+ });
164
+ }
165
+
166
+ async getQuestionList(surveyType: string, processInstanceId: string | number, insuredId: number | string) {
167
+ return await this.axiosCall<AnketaFirst>({
168
+ method: Methods.GET,
169
+ url: `/${this.productUrl}/api/Application/Anketa/${surveyType}/${processInstanceId}/${insuredId}`,
170
+ });
171
+ }
172
+
173
+ async getClientQuestionList(surveyType: string, processInstanceId: string | number, insuredId: number | string) {
174
+ return await this.axiosCall<AnketaFirst>({
175
+ method: Methods.GET,
176
+ url: `/${this.productUrl}/api/Application/AnketaClient/${surveyType}/${processInstanceId}/${insuredId}`,
177
+ });
178
+ }
179
+
180
+ async getQuestionListSecond(surveyType: string, processInstanceId: string | number, insuredId: number | string) {
181
+ return await this.axiosCall<AnketaSecond[]>({
182
+ method: Methods.GET,
183
+ url: `/${this.productUrl}/api/Application/Anketa/${surveyType}/${processInstanceId}/${insuredId}`,
184
+ });
185
+ }
186
+
187
+ async getClientQuestionListSecond(surveyType: string, processInstanceId: string | number, insuredId: number | string) {
188
+ return await this.axiosCall<AnketaSecond[]>({
189
+ method: Methods.GET,
190
+ url: `/${this.productUrl}/api/Application/AnketaClient/${surveyType}/${processInstanceId}/${insuredId}`,
191
+ });
192
+ }
193
+
194
+ async definedAnswers(filter: string) {
195
+ return await this.axiosCall({
196
+ method: Methods.GET,
197
+ url: `/Ekk/api/Contragentinsis/DictionaryItems/Questionary?filter=${filter}`,
198
+ });
199
+ }
200
+
201
+ async setSurvey(surveyData: AnketaFirst) {
202
+ return await this.axiosCall<string>({
203
+ method: Methods.POST,
204
+ data: surveyData,
205
+ url: `/${this.productUrl}/api/Application/SetAnketa`,
206
+ });
207
+ }
208
+
209
+ async getQuestionRefs(id: string | number) {
210
+ return await this.axiosCall<Value[]>({
211
+ method: Methods.GET,
212
+ url: `/Ekk/api/Contragentinsis/DictionaryItems/Questionary?filter=${id}`,
213
+ });
214
+ }
215
+
216
+ async getProcessIndexRate(processCode: string | number) {
217
+ return await this.axiosCall({
218
+ method: Methods.GET,
219
+ url: `/Arm/api/Dictionary/ProcessIndexRate/${processCode}`,
220
+ });
221
+ }
222
+
223
+ async getAdditionalInsuranceTermsAnswers(processCode: string | number, questionId: string) {
224
+ return await this.axiosCall<AddCoverAnswer[]>({
225
+ method: Methods.GET,
226
+ url: `/Arm/api/Dictionary/ProcessCoverTypeSum/${processCode}/${questionId}`,
227
+ });
228
+ }
229
+
230
+ async getProcessPaymentPeriod(processCode: string | number) {
231
+ return await this.axiosCall({
232
+ method: Methods.GET,
233
+ url: `/Arm/api/Dictionary/ProcessPaymentPeriod/${processCode}`,
234
+ });
235
+ }
236
+
237
+ async getProcessAnnuityPaymentPeriod(processCode: string | number) {
238
+ return await this.axiosCall({
239
+ method: Methods.GET,
240
+ url: `/Arm/api/Dictionary/ProcessAnnuityPaymentPeriod/${processCode}`,
241
+ });
242
+ }
243
+
244
+ async getContragentById(id: number) {
245
+ return await this.axiosCall<GetContragentResponse>({
246
+ method: Methods.GET,
247
+ url: `/Ekk/api/Contragentinsis/Contragent?PersonId=${id}`,
248
+ });
249
+ }
250
+
251
+ async saveContragent(data: {
252
+ contragent: ContragentType;
253
+ questionaries: ContragentQuestionaries[];
254
+ contacts: ContragentContacts[];
255
+ documents: ContragentDocuments[];
256
+ addresses: ContragentAddress[];
257
+ }) {
258
+ return await this.axiosCall<number>({
259
+ method: Methods.POST,
260
+ url: `/Ekk/api/Contragentinsis/SaveContragent`,
261
+ data: data,
262
+ });
263
+ }
264
+
265
+ async getFile(id: string) {
266
+ return await this.axiosCall({
267
+ method: Methods.GET,
268
+ url: `/File/api/Data/DownloadFile/${id}`,
269
+ responseType: 'arraybuffer',
270
+ headers: {
271
+ 'Content-Type': 'application/pdf',
272
+ },
273
+ });
274
+ }
275
+
276
+ async getDicFileTypeList() {
277
+ return await this.axiosCall<Value[]>({
278
+ method: Methods.GET,
279
+ url: '/Arm/api/Dictionary/GetDictionaryItems/DicFileType',
280
+ });
281
+ }
282
+
283
+ async getContrAgentData(personId: string | number) {
284
+ return await this.axiosCall<ContragentQuestionaries[]>({
285
+ method: Methods.GET,
286
+ url: `/Ekk/api/Contragentinsis/Questionaries?PersonId=${personId}`,
287
+ });
288
+ }
289
+
290
+ async getContrAgentContacts(personId: string | number) {
291
+ return await this.axiosCall<ContragentContacts[]>({
292
+ method: Methods.GET,
293
+ url: `/Ekk/api/Contragentinsis/Contacts?PersonId=${personId}`,
294
+ });
295
+ }
296
+
297
+ async getContrAgentDocuments(personId: string | number) {
298
+ return await this.axiosCall<ContragentDocuments[]>({
299
+ method: Methods.GET,
300
+ url: `/Ekk/api/Contragentinsis/Documents?PersonId=${personId}`,
301
+ });
302
+ }
303
+
304
+ async getContrAgentAddress(personId: string | number) {
305
+ return await this.axiosCall<ContragentAddress[]>({
306
+ method: Methods.GET,
307
+ url: `/Ekk/api/Contragentinsis/Address?PersonId=${personId}`,
308
+ });
309
+ }
310
+
311
+ async getTaskList(data: any) {
312
+ return await this.axiosCall<{ items: TaskListItem[]; totalItems: number }>({
313
+ method: Methods.POST,
314
+ url: `/Arm/api/Bpm/TaskList`,
315
+ data: data,
316
+ });
317
+ }
318
+
319
+ async getProcessHistory(id: string) {
320
+ return await this.axiosCall<TaskHistory[]>({
321
+ method: Methods.GET,
322
+ url: `/Arm/api/Bpm/GetProcessHistory?processInstanceId=${id}`,
323
+ });
324
+ }
325
+
326
+ async registerNumber(data: RegNumberDataType) {
327
+ return await this.axiosCall<string>({
328
+ method: Methods.POST,
329
+ url: `/${this.productUrl}/api/Application/FinCenterRegNumberSave`,
330
+ data: data,
331
+ });
332
+ }
333
+
334
+ async sendSms(data: SmsDataType) {
335
+ return await this.axiosCall<void>({
336
+ method: Methods.POST,
337
+ url: '/Arm/api/Otp/SmsText',
338
+ data: data,
339
+ });
340
+ }
341
+
342
+ async getUserGroups() {
343
+ return await this.axiosCall<Item[]>({
344
+ method: Methods.GET,
345
+ url: '/Arm/api/Bpm/TaskGroups',
346
+ });
347
+ }
348
+
349
+ async getOtpStatus(data: OtpDataType) {
350
+ return await this.axiosCall<boolean>({
351
+ method: Methods.POST,
352
+ url: '/Arm/api/Otp/OtpLifeStatus',
353
+ data: data,
354
+ });
355
+ }
356
+
357
+ async sendOtp(data: OtpDataType) {
358
+ return await this.axiosCall<SendOtpResponse>({
359
+ method: Methods.POST,
360
+ url: '/Arm/api/Otp/Get',
361
+ data: data,
362
+ });
363
+ }
364
+
365
+ async checkOtp(data: { tokenId: string; phoneNumber: string; code: string }) {
366
+ return await this.axiosCall<SendOtpResponse>({
367
+ method: Methods.POST,
368
+ url: '/Arm/api/Otp/Check',
369
+ data: data,
370
+ });
371
+ }
372
+
373
+ async getProcessList() {
374
+ return await this.axiosCall<Item[]>({
375
+ method: Methods.GET,
376
+ url: '/Arm/api/Bpm/ProcessList',
377
+ });
378
+ }
379
+
380
+ async startApplication(data: StartApplicationType) {
381
+ return await this.axiosCall<{
382
+ processInstanceId: string;
383
+ }>({
384
+ method: Methods.POST,
385
+ url: `/${this.productUrl}/api/Application/StartApplication`,
386
+ data: data,
387
+ });
388
+ }
389
+
390
+ async getApplicationData(id: string) {
391
+ return await this.axiosCall<any>({
392
+ method: Methods.GET,
393
+ url: `/${this.productUrl}/api/Application/applicationData?Id=${id} `,
394
+ });
395
+ }
396
+
397
+ async getCalculation(id: string) {
398
+ return await this.axiosCall<number>({
399
+ method: Methods.POST,
400
+ url: `/${this.productUrl}/api/Application/Calculator?processInstanceId=${id}`,
401
+ });
402
+ }
403
+
404
+ async setApplication(data: SetApplicationRequest) {
405
+ return await this.axiosCall<void>({
406
+ method: Methods.POST,
407
+ url: `/${this.productUrl}/api/Application/SetApplicationData`,
408
+ data,
409
+ responseType: 'blob',
410
+ });
411
+ }
412
+
413
+ async deleteFile(data: any) {
414
+ return await this.axiosCall({
415
+ method: Methods.POST,
416
+ url: '/File/api/Data/DeleteFiles',
417
+ data: data,
418
+ });
419
+ }
420
+
421
+ async uploadFiles(data: any) {
422
+ return await this.axiosCall({
423
+ method: Methods.POST,
424
+ url: '/File/api/Data/UploadFiles',
425
+ headers: {
426
+ 'Content-Type': 'multipart/form-data',
427
+ },
428
+ data: data,
429
+ });
430
+ }
431
+
432
+ async sendTask(data: SendTask) {
433
+ return await this.axiosCall<void>({
434
+ method: Methods.POST,
435
+ url: `/${this.productUrl}/api/Application/SendTask`,
436
+ data: data,
437
+ });
438
+ }
439
+
440
+ async checkBeneficiariesInActualPolicy(iin: string) {
441
+ return await this.axiosCall<boolean>({
442
+ method: Methods.GET,
443
+ url: `/${this.productUrl}/api/Application/CheckBeneficiariesInActualPolicy?iin=${iin}`,
444
+ });
445
+ }
446
+
447
+ async setMember(whichMember: keyof typeof MemberCodes, data: any) {
448
+ return await this.axiosCall({
449
+ method: Methods.POST,
450
+ url: `/Arm/api/BpmMembers/Set${whichMember}`,
451
+ data: data,
452
+ });
453
+ }
454
+
455
+ async deleteMember(whichMember: keyof typeof MemberCodes, id: number | string) {
456
+ return await this.axiosCall({
457
+ method: Methods.POST,
458
+ url: `/Arm/api/BpmMembers/Delete${whichMember}/${id}`,
459
+ });
460
+ }
461
+
462
+ async getInvoiceData(processInstanceId: string | number) {
463
+ return await this.axiosCall<EpayResponse>({
464
+ method: Methods.GET,
465
+ url: `/Arm/api/Invoice/InvoiceData?processInstanceId=${processInstanceId}`,
466
+ });
467
+ }
468
+
469
+ async getProcessHistoryLog(historyId: string) {
470
+ return await this.axiosCall({
471
+ method: Methods.GET,
472
+ url: `/Arm/api/Bpm/ProcessHistoryLog/${historyId}`,
473
+ });
474
+ }
475
+
476
+ async createInvoice(processInstanceId: string | number, amount: number | string) {
477
+ return await this.axiosCall<string>({
478
+ method: Methods.POST,
479
+ url: `/Arm/api/Invoice/CreateInvoice/${processInstanceId}/${amount}`,
480
+ });
481
+ }
482
+
483
+ async sendToEpay(processInstanceId: string | number) {
484
+ return await this.axiosCall<EpayShortResponse>({
485
+ method: Methods.POST,
486
+ url: `/Arm/api/Invoice/SendToEpay/${processInstanceId}`,
487
+ });
488
+ }
489
+
490
+ async signDocument(data: SignDataType[]) {
491
+ return await this.axiosCall<SignUrlType[]>({
492
+ method: Methods.POST,
493
+ url: '/File/api/Document/SignBts',
494
+ data: data,
495
+ });
496
+ }
497
+
498
+ async getSignedDocList(data: { processInstanceId: string | number }) {
499
+ return await this.axiosCall<IDocument[]>({
500
+ method: Methods.POST,
501
+ url: '/File/api/Data/List',
502
+ data: data,
503
+ });
504
+ }
505
+
506
+ async calculateWithoutApplication(data: RecalculationDataType, product: string | undefined | null = this.productUrl) {
507
+ return await this.axiosCall<RecalculationResponseType>({
508
+ method: Methods.POST,
509
+ url: `/${product}/api/Application/Calculate`,
510
+ data: data,
511
+ });
512
+ }
513
+
514
+ async getDefaultCalculationData(product: string | undefined | null = this.productUrl) {
515
+ return await this.axiosCall<RecalculationDataType>({
516
+ method: Methods.GET,
517
+ url: `/${product}/api/Application/DefaultCalculatorValues`,
518
+ });
519
+ }
520
+
521
+ async reCalculate(data: any) {
522
+ return await this.axiosCall({
523
+ method: Methods.POST,
524
+ url: `/${this.productUrl}/api/Application/Recalculate`,
525
+ data: data,
526
+ });
527
+ }
528
+
529
+ async getValidateClientESBD(data: ESBDValidationType) {
530
+ return await this.axiosCall<ESBDResponseType>({
531
+ method: Methods.POST,
532
+ url: '/externalservices/api/ExternalServices/GetValidateClientEsbd',
533
+ data: data,
534
+ });
535
+ }
536
+
537
+ async isClaimTask(taskId: string) {
538
+ return await this.axiosCall<boolean>({
539
+ method: Methods.POST,
540
+ url: '/Arm/api/Bpm/IsClaimTask',
541
+ params: { TaskId: taskId },
542
+ });
543
+ }
544
+
545
+ async claimTask(taskId: string) {
546
+ return await this.axiosCall({
547
+ method: Methods.POST,
548
+ url: '/Arm/api/Bpm/ClaimTaskUser',
549
+ params: { TaskId: taskId },
550
+ });
551
+ }
552
+
553
+ async checkIIN(iin: number) {
554
+ return await this.axiosCall<boolean>({
555
+ method: Methods.GET,
556
+ url: `/Arm/api/Bpm/CheckIIN?iin=${iin}`,
557
+ });
558
+ }
559
+
560
+ async getContragentFromGBDFL(data: { iin: string; phoneNumber: string }) {
561
+ return await this.axiosCall<GBDFLResponse>({
562
+ method: Methods.POST,
563
+ url: '/externalservices/api/ExternalServices/GetGbdflToken',
564
+ data: data,
565
+ });
566
+ }
567
+
568
+ async getFamilyInfo(data: { iin: string; phoneNumber: string }) {
569
+ return await this.axiosCall<FamilyInfoGKB>({
570
+ method: Methods.POST,
571
+ url: '/externalservices/api/ExternalServices/GetFamilyInfoToken',
572
+ data: data,
573
+ });
574
+ }
575
+
576
+ async getKgd(data: { iinBin: string }) {
577
+ return await this.axiosCall<KGDResponse>({
578
+ method: Methods.POST,
579
+ url: '/externalservices/api/ExternalServices/GetKgd',
580
+ data: data,
581
+ });
582
+ }
583
+
584
+ async getGbdUl(data: { userName: string; branchName: string; bin: string }) {
585
+ return await this.axiosCall({
586
+ method: Methods.POST,
587
+ url: '/integration/api/External/GetGbdUl',
588
+ data: data,
589
+ });
590
+ }
591
+
592
+ async getProcessTariff(code: number | string = 5) {
593
+ return await this.axiosCall({ method: Methods.GET, url: `/Arm/api/Dictionary/ProcessTariff/${code}` });
594
+ }
595
+
596
+ async setConfirmation(data: any) {
597
+ return await this.axiosCall({
598
+ method: Methods.POST,
599
+ url: '/Arm/api/UnderwritingCouncil/SetConfirmation',
600
+ data: data,
601
+ });
602
+ }
603
+
604
+ async getUnderwritingCouncilData(id: string | number) {
605
+ return await this.axiosCall({
606
+ method: Methods.GET,
607
+ url: `/Arm/api/UnderwritingCouncil/ApplicationData?Id=${id}`,
608
+ });
609
+ }
610
+
611
+ async sendUnderwritingCouncilTask(data: Partial<SendTask>) {
612
+ return await this.axiosCall<void>({
613
+ method: Methods.POST,
614
+ url: '/Arm/api/UnderwritingCouncil/SendTask',
615
+ data: data,
616
+ });
617
+ }
618
+
619
+ async getDictionaryItems(dictName: string) {
620
+ return await this.axiosCall<Value[]>({
621
+ method: Methods.GET,
622
+ url: `/Ekk/api/ContragentInsis/DictionaryItems/${dictName}`,
623
+ });
624
+ }
625
+
626
+ async filterManagerByRegion(dictName: string, filterName: string) {
627
+ return await this.axiosCall<Value[]>({
628
+ method: Methods.GET,
629
+ url: `/Ekk/api/ContragentInsis/DictionaryItems/${dictName}?filter=${filterName}`,
630
+ });
631
+ }
632
+
633
+ async setINSISWorkData(data: InsisWorkDataApp) {
634
+ return await this.axiosCall({
635
+ method: Methods.POST,
636
+ url: `/Arm/api/Bpm/SetInsisWorkData`,
637
+ data: data,
638
+ });
639
+ }
640
+
641
+ async searchAgentByName(name: string) {
642
+ return await this.axiosCall<AgentData[]>({
643
+ method: Methods.GET,
644
+ url: `/Ekk/api/ContragentInsis/AgentByName?fullName=${name}`,
645
+ });
646
+ }
647
+
648
+ async isCourseChanged(processInstanceId: string) {
649
+ return await this.axiosCall<boolean>({
650
+ method: Methods.GET,
651
+ url: `/${this.productUrl}/api/Application/IsCourseChanged?processInstanceId=${processInstanceId}`,
652
+ });
653
+ }
654
+
655
+ async getArmDicts<T>(dict: string) {
656
+ return await this.axiosCall<T>({
657
+ method: Methods.GET,
658
+ url: `/Arm/api/Dictionary/GetDictionaryItems/${dict}`,
659
+ });
660
+ }
661
+
662
+ async getTripInsuranceDaysOptions() {
663
+ return await this.axiosCall<TripInsuranceDaysOptions>({
664
+ method: Methods.GET,
665
+ url: `/${this.productUrl}/api/Application/TripInsuranceDaysOptions`,
666
+ });
667
+ }
668
+
669
+ async getTripInsuredAmount(data: getTripInsuredAmountRequest) {
670
+ return this.axiosCall<TripInsuranceAmount>({
671
+ method: Methods.POST,
672
+ url: `/${this.productUrl}/api/Application/InsuranceAmountOptions`,
673
+ data: data,
674
+ });
675
+ }
676
+
677
+ async getCalculator(data: SetApplicationRequest) {
678
+ return await this.axiosCall<number>({
679
+ method: Methods.POST,
680
+ url: `/${this.productUrl}/api/Application/Calculator`,
681
+ data: data,
682
+ });
683
+ }
684
+ }