hl-core 0.0.9-beta.1 → 0.0.9-beta.11

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