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