simpleloan_api 1.2.13 → 1.2.14
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/dist/index.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +4 -6
- package/dist/index.mjs +5 -6
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2135,8 +2135,7 @@ declare const useCloneVtbbankm: () => {
|
|
|
2135
2135
|
};
|
|
2136
2136
|
|
|
2137
2137
|
type Mode = 'development' | 'production';
|
|
2138
|
-
declare const lastResponse: vue.Ref<any>;
|
|
2139
2138
|
declare function setMode(newMode: Mode): void;
|
|
2140
2139
|
declare function getMode(): Mode;
|
|
2141
2140
|
|
|
2142
|
-
export { type Absolutbank, type AbsolutbankDictNames, type AbsolutbankFields, type AbsolutbankMeta, type AbsolutbankStages, type Address, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type AlfabankBalance, type AlfabankBalanceOffer, type AlfabankBalanceOfferLoanParameters, type AlfabankBalanceScanState, type AlfabankBalanceStages, type Brokerclient, type Chatmessage, type ChatmessageRoleUserMsg, type ChatmessageThread, type Customer, type CustomerFields, type CustomerMeta, type CustomerUpdate, type Dict, type DictItem, type Gazprombankm, type GazprombankmDictNames, type GazprombankmFields, type GazprombankmMeta, type GazprombankmStages, type Login, type LoginResponse, type MessageUpdateWithGroupId, type MessageUpdateWithSalespointIds, type Mortgage, type MortgageBankApp, type MortgageBankAppStatus, type MortgageBankNames, type MortgageCalculateProgram, type MortgageCommonDictNames, type MortgageDictNames, type MortgageFields, type MortgageMeta, type MortgageProgram, type MortgageProgramsLimits, type MortgageScan, type MortgageScanDoctype, type MortgageStages, type MortgageUpdate, type RosbankDom, type RosbankDomFields, type RosbankDomMeta, type RosbankDomOffer, type RosbankDomStages, type Salespoint, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type Salespointgroup, type Sex, type Sovcombank, type SovcombankFields, type SovcombankMeta, type SovcombankOffer, type SovcombankStages, type UploadB64File, type UploadedFile, type User, type VtbBankmFields, type VtbBankmMeta, type VtbBankmStages, type Vtbbankm, getMode,
|
|
2141
|
+
export { type Absolutbank, type AbsolutbankDictNames, type AbsolutbankFields, type AbsolutbankMeta, type AbsolutbankStages, type Address, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type AlfabankBalance, type AlfabankBalanceOffer, type AlfabankBalanceOfferLoanParameters, type AlfabankBalanceScanState, type AlfabankBalanceStages, type Brokerclient, type Chatmessage, type ChatmessageRoleUserMsg, type ChatmessageThread, type Customer, type CustomerFields, type CustomerMeta, type CustomerUpdate, type Dict, type DictItem, type Gazprombankm, type GazprombankmDictNames, type GazprombankmFields, type GazprombankmMeta, type GazprombankmStages, type Login, type LoginResponse, type MessageUpdateWithGroupId, type MessageUpdateWithSalespointIds, type Mortgage, type MortgageBankApp, type MortgageBankAppStatus, type MortgageBankNames, type MortgageCalculateProgram, type MortgageCommonDictNames, type MortgageDictNames, type MortgageFields, type MortgageMeta, type MortgageProgram, type MortgageProgramsLimits, type MortgageScan, type MortgageScanDoctype, type MortgageStages, type MortgageUpdate, type RosbankDom, type RosbankDomFields, type RosbankDomMeta, type RosbankDomOffer, type RosbankDomStages, type Salespoint, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type Salespointgroup, type Sex, type Sovcombank, type SovcombankFields, type SovcombankMeta, type SovcombankOffer, type SovcombankStages, type UploadB64File, type UploadedFile, type User, type VtbBankmFields, type VtbBankmMeta, type VtbBankmStages, type Vtbbankm, getMode, setMode, usGetMortgageScansList, useAccountCheckLogin, useAccountLogin, useAccountLogout, useAccountLogoutUser, useAccountRegister, useAccountResetPassword, useAccountResetPasswordConfirmNew, useAccountUpdatePassword, useAddGroupUser, useAddStaffBrokerclient, useAddStaffSalespoint, useAskAkbarsPrintforms, useCalculateMortgage, useCancelAbsolutbank, useCancelGazprombankm, useCancelMortgage, useCancelRosbankDom, useCancelSovcombank, useCancelVtbbankm, useCloneAbsolutbank, useCloneAlfabankBalance, useCloneGazprombankm, useCloneMortgage, useCloneRosbankDom, useCloneSalespoint, useCloneSovcombank, useCloneUser, useCloneVtbbankm, useConfirmAbsolutbank, useConfirmRosbankDom, useConfirmSovcombank, useDeleteAbsolutbank, useDeleteAkbars, useDeleteAkbarsDepositScan, useDeleteAlfabankBalance, useDeleteAlfabankBalanceScans, useDeleteBrokerclient, useDeleteChatmessage, useDeleteCustomerList, useDeleteGazprombankm, useDeleteGroupUser, useDeleteMortgage, useDeleteMortgageCustomer, useDeleteMortgageProgram, useDeleteMortgageScan, useDeleteRosbankDom, useDeleteSalespoint, useDeleteSalespointgroup, useDeleteSovcombank, useDeleteStaffBrokerclient, useDeleteStaffSalespoint, useDeleteUser, useDeleteVtbbankm, useGenerateAbsolutbankScansApplications, useGenerateAkbarsScansApplications, useGenerateAlfabankBalanceScansApplications, useGenerateSovcombankScansApplications, useGenerateVtbbankmScansApplications, useGetAbsolutbank, useGetAbsolutbankDict, useGetAbsolutbankList, useGetAbsolutbankPrintforms, useGetAkbars, useGetAkbarsDeposit, useGetAkbarsDepositScanList, useGetAkbarsDict, useGetAkbarsList, useGetAkbarsPrintformList, useGetAlfabankBalance, useGetAlfabankBalanceDict, useGetAlfabankBalanceList, useGetAlfabankBalanceOffer, useGetBrokerclient, useGetBrokerclientList, useGetChatmessageList, useGetChatmessageThreads, useGetCustomer, useGetCustomerList, useGetGazprombankm, useGetGazprombankmDict, useGetGazprombankmList, useGetMortgage, useGetMortgageBankApp, useGetMortgageCommonDictList, useGetMortgageDict, useGetMortgageFieldChoices, useGetMortgageFieldRequired, useGetMortgageLimits, useGetMortgageList, useGetMortgageProgram, useGetMortgageProgramsGroup, useGetMortgageProgramsList, useGetMortgageScansDoctypesList, useGetRosbankDom, useGetRosbankDomDict, useGetRosbankDomList, useGetRosbankDomPrintformsList, useGetSalespoint, useGetSalespointList, useGetSalespointgroup, useGetSalespointgroupList, useGetSovcombank, useGetSovcombankDict, useGetSovcombankFiles, useGetSovcombankList, useGetSovcombankPrintformsList, useGetUser, useGetUserList, useGetVtbbankm, useGetVtbbankmList, useLoanerApprovingAkbarsStatus, usePreapprovalAbsolutbankStatus, usePreapprovalAlfabankBalanceStatus, usePreapprovalRosbankDomStatus, usePreapprovalSovcombankStatus, usePrintMortgageForm, useProcessingAkbars, useReadChatmessage, useRosbankDomOpportunity, useSendAbsolutbank, useSendAbsolutbankScans, useSendAkbars, useSendAkbarsDeposit, useSendAkbarsScans, useSendAlfabankBalance, useSendAlfabankBalanceScans, useSendGazprombankm, useSendGazprombankmScans, useSendMortgage, useSendMortgageScans, useSendRosbankDom, useSendRosbankDomScans, useSendSovcombank, useSendSovcombankScans, useSendVtbbankm, useStatusManuallyAlfabankBalanceScans, useUpdateAbsolutbank, useUpdateAkbars, useUpdateAkbarsDeposit, useUpdateAlfabankBalance, useUpdateBrokerclient, useUpdateChatmessage, useUpdateCustomer, useUpdateGazprombankm, useUpdateManySalespoint, useUpdateManyUser, useUpdateMortgage, useUpdateMortgageCustomer, useUpdateMortgageProgram, useUpdateRosbankDom, useUpdateSalespoint, useUpdateSalespointgroup, useUpdateSovcombank, useUpdateUser, useUpdateVtbbankm, useUploadAkbarsDepositScan, useUploadMortgageScan, useVerifyManuallyAlfabankBalanceScans };
|
package/dist/index.d.ts
CHANGED
|
@@ -2135,8 +2135,7 @@ declare const useCloneVtbbankm: () => {
|
|
|
2135
2135
|
};
|
|
2136
2136
|
|
|
2137
2137
|
type Mode = 'development' | 'production';
|
|
2138
|
-
declare const lastResponse: vue.Ref<any>;
|
|
2139
2138
|
declare function setMode(newMode: Mode): void;
|
|
2140
2139
|
declare function getMode(): Mode;
|
|
2141
2140
|
|
|
2142
|
-
export { type Absolutbank, type AbsolutbankDictNames, type AbsolutbankFields, type AbsolutbankMeta, type AbsolutbankStages, type Address, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type AlfabankBalance, type AlfabankBalanceOffer, type AlfabankBalanceOfferLoanParameters, type AlfabankBalanceScanState, type AlfabankBalanceStages, type Brokerclient, type Chatmessage, type ChatmessageRoleUserMsg, type ChatmessageThread, type Customer, type CustomerFields, type CustomerMeta, type CustomerUpdate, type Dict, type DictItem, type Gazprombankm, type GazprombankmDictNames, type GazprombankmFields, type GazprombankmMeta, type GazprombankmStages, type Login, type LoginResponse, type MessageUpdateWithGroupId, type MessageUpdateWithSalespointIds, type Mortgage, type MortgageBankApp, type MortgageBankAppStatus, type MortgageBankNames, type MortgageCalculateProgram, type MortgageCommonDictNames, type MortgageDictNames, type MortgageFields, type MortgageMeta, type MortgageProgram, type MortgageProgramsLimits, type MortgageScan, type MortgageScanDoctype, type MortgageStages, type MortgageUpdate, type RosbankDom, type RosbankDomFields, type RosbankDomMeta, type RosbankDomOffer, type RosbankDomStages, type Salespoint, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type Salespointgroup, type Sex, type Sovcombank, type SovcombankFields, type SovcombankMeta, type SovcombankOffer, type SovcombankStages, type UploadB64File, type UploadedFile, type User, type VtbBankmFields, type VtbBankmMeta, type VtbBankmStages, type Vtbbankm, getMode,
|
|
2141
|
+
export { type Absolutbank, type AbsolutbankDictNames, type AbsolutbankFields, type AbsolutbankMeta, type AbsolutbankStages, type Address, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type AlfabankBalance, type AlfabankBalanceOffer, type AlfabankBalanceOfferLoanParameters, type AlfabankBalanceScanState, type AlfabankBalanceStages, type Brokerclient, type Chatmessage, type ChatmessageRoleUserMsg, type ChatmessageThread, type Customer, type CustomerFields, type CustomerMeta, type CustomerUpdate, type Dict, type DictItem, type Gazprombankm, type GazprombankmDictNames, type GazprombankmFields, type GazprombankmMeta, type GazprombankmStages, type Login, type LoginResponse, type MessageUpdateWithGroupId, type MessageUpdateWithSalespointIds, type Mortgage, type MortgageBankApp, type MortgageBankAppStatus, type MortgageBankNames, type MortgageCalculateProgram, type MortgageCommonDictNames, type MortgageDictNames, type MortgageFields, type MortgageMeta, type MortgageProgram, type MortgageProgramsLimits, type MortgageScan, type MortgageScanDoctype, type MortgageStages, type MortgageUpdate, type RosbankDom, type RosbankDomFields, type RosbankDomMeta, type RosbankDomOffer, type RosbankDomStages, type Salespoint, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type Salespointgroup, type Sex, type Sovcombank, type SovcombankFields, type SovcombankMeta, type SovcombankOffer, type SovcombankStages, type UploadB64File, type UploadedFile, type User, type VtbBankmFields, type VtbBankmMeta, type VtbBankmStages, type Vtbbankm, getMode, setMode, usGetMortgageScansList, useAccountCheckLogin, useAccountLogin, useAccountLogout, useAccountLogoutUser, useAccountRegister, useAccountResetPassword, useAccountResetPasswordConfirmNew, useAccountUpdatePassword, useAddGroupUser, useAddStaffBrokerclient, useAddStaffSalespoint, useAskAkbarsPrintforms, useCalculateMortgage, useCancelAbsolutbank, useCancelGazprombankm, useCancelMortgage, useCancelRosbankDom, useCancelSovcombank, useCancelVtbbankm, useCloneAbsolutbank, useCloneAlfabankBalance, useCloneGazprombankm, useCloneMortgage, useCloneRosbankDom, useCloneSalespoint, useCloneSovcombank, useCloneUser, useCloneVtbbankm, useConfirmAbsolutbank, useConfirmRosbankDom, useConfirmSovcombank, useDeleteAbsolutbank, useDeleteAkbars, useDeleteAkbarsDepositScan, useDeleteAlfabankBalance, useDeleteAlfabankBalanceScans, useDeleteBrokerclient, useDeleteChatmessage, useDeleteCustomerList, useDeleteGazprombankm, useDeleteGroupUser, useDeleteMortgage, useDeleteMortgageCustomer, useDeleteMortgageProgram, useDeleteMortgageScan, useDeleteRosbankDom, useDeleteSalespoint, useDeleteSalespointgroup, useDeleteSovcombank, useDeleteStaffBrokerclient, useDeleteStaffSalespoint, useDeleteUser, useDeleteVtbbankm, useGenerateAbsolutbankScansApplications, useGenerateAkbarsScansApplications, useGenerateAlfabankBalanceScansApplications, useGenerateSovcombankScansApplications, useGenerateVtbbankmScansApplications, useGetAbsolutbank, useGetAbsolutbankDict, useGetAbsolutbankList, useGetAbsolutbankPrintforms, useGetAkbars, useGetAkbarsDeposit, useGetAkbarsDepositScanList, useGetAkbarsDict, useGetAkbarsList, useGetAkbarsPrintformList, useGetAlfabankBalance, useGetAlfabankBalanceDict, useGetAlfabankBalanceList, useGetAlfabankBalanceOffer, useGetBrokerclient, useGetBrokerclientList, useGetChatmessageList, useGetChatmessageThreads, useGetCustomer, useGetCustomerList, useGetGazprombankm, useGetGazprombankmDict, useGetGazprombankmList, useGetMortgage, useGetMortgageBankApp, useGetMortgageCommonDictList, useGetMortgageDict, useGetMortgageFieldChoices, useGetMortgageFieldRequired, useGetMortgageLimits, useGetMortgageList, useGetMortgageProgram, useGetMortgageProgramsGroup, useGetMortgageProgramsList, useGetMortgageScansDoctypesList, useGetRosbankDom, useGetRosbankDomDict, useGetRosbankDomList, useGetRosbankDomPrintformsList, useGetSalespoint, useGetSalespointList, useGetSalespointgroup, useGetSalespointgroupList, useGetSovcombank, useGetSovcombankDict, useGetSovcombankFiles, useGetSovcombankList, useGetSovcombankPrintformsList, useGetUser, useGetUserList, useGetVtbbankm, useGetVtbbankmList, useLoanerApprovingAkbarsStatus, usePreapprovalAbsolutbankStatus, usePreapprovalAlfabankBalanceStatus, usePreapprovalRosbankDomStatus, usePreapprovalSovcombankStatus, usePrintMortgageForm, useProcessingAkbars, useReadChatmessage, useRosbankDomOpportunity, useSendAbsolutbank, useSendAbsolutbankScans, useSendAkbars, useSendAkbarsDeposit, useSendAkbarsScans, useSendAlfabankBalance, useSendAlfabankBalanceScans, useSendGazprombankm, useSendGazprombankmScans, useSendMortgage, useSendMortgageScans, useSendRosbankDom, useSendRosbankDomScans, useSendSovcombank, useSendSovcombankScans, useSendVtbbankm, useStatusManuallyAlfabankBalanceScans, useUpdateAbsolutbank, useUpdateAkbars, useUpdateAkbarsDeposit, useUpdateAlfabankBalance, useUpdateBrokerclient, useUpdateChatmessage, useUpdateCustomer, useUpdateGazprombankm, useUpdateManySalespoint, useUpdateManyUser, useUpdateMortgage, useUpdateMortgageCustomer, useUpdateMortgageProgram, useUpdateRosbankDom, useUpdateSalespoint, useUpdateSalespointgroup, useUpdateSovcombank, useUpdateUser, useUpdateVtbbankm, useUploadAkbarsDepositScan, useUploadMortgageScan, useVerifyManuallyAlfabankBalanceScans };
|
package/dist/index.js
CHANGED
|
@@ -55,7 +55,6 @@ var __async = (__this, __arguments, generator) => {
|
|
|
55
55
|
var simpleloan_api_exports = {};
|
|
56
56
|
__export(simpleloan_api_exports, {
|
|
57
57
|
getMode: () => getMode,
|
|
58
|
-
lastResponse: () => lastResponse,
|
|
59
58
|
setMode: () => setMode,
|
|
60
59
|
usGetMortgageScansList: () => usGetMortgageScansList,
|
|
61
60
|
useAccountCheckLogin: () => useAccountCheckLogin,
|
|
@@ -225,7 +224,6 @@ var import_vue2 = require("vue");
|
|
|
225
224
|
// src/settings/index.ts
|
|
226
225
|
var import_vue = require("vue");
|
|
227
226
|
var mode = (0, import_vue.ref)("development");
|
|
228
|
-
var lastResponse = (0, import_vue.ref)();
|
|
229
227
|
function setMode(newMode) {
|
|
230
228
|
mode.value = newMode;
|
|
231
229
|
}
|
|
@@ -268,9 +266,7 @@ function useFetch(url, clearResponse = false) {
|
|
|
268
266
|
const response = (0, import_vue2.ref)(null);
|
|
269
267
|
const pending = (0, import_vue2.ref)(false);
|
|
270
268
|
const fullUrl = getApiUrl() + url;
|
|
271
|
-
|
|
272
|
-
lastResponse.value = response2;
|
|
273
|
-
});
|
|
269
|
+
const reloadOnNotAuth = url.includes("check_login") ? false : true;
|
|
274
270
|
function post(params) {
|
|
275
271
|
return __async(this, null, function* () {
|
|
276
272
|
pending.value = true;
|
|
@@ -283,6 +279,9 @@ function useFetch(url, clearResponse = false) {
|
|
|
283
279
|
headers: getHeaders()
|
|
284
280
|
});
|
|
285
281
|
const content = yield getContent(fetchResponse);
|
|
282
|
+
if (reloadOnNotAuth && (content == null ? void 0 : content._code) === 1) {
|
|
283
|
+
location.reload();
|
|
284
|
+
}
|
|
286
285
|
response.value = content;
|
|
287
286
|
} catch (error) {
|
|
288
287
|
response.value = null;
|
|
@@ -502,7 +501,6 @@ var useCloneVtbbankm = () => useFetch(baseUrl15 + "app/clone/");
|
|
|
502
501
|
// Annotate the CommonJS export names for ESM import in node:
|
|
503
502
|
0 && (module.exports = {
|
|
504
503
|
getMode,
|
|
505
|
-
lastResponse,
|
|
506
504
|
setMode,
|
|
507
505
|
usGetMortgageScansList,
|
|
508
506
|
useAccountCheckLogin,
|
package/dist/index.mjs
CHANGED
|
@@ -36,12 +36,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
// src/fetch/index.ts
|
|
39
|
-
import { ref as ref2
|
|
39
|
+
import { ref as ref2 } from "vue";
|
|
40
40
|
|
|
41
41
|
// src/settings/index.ts
|
|
42
42
|
import { ref } from "vue";
|
|
43
43
|
var mode = ref("development");
|
|
44
|
-
var lastResponse = ref();
|
|
45
44
|
function setMode(newMode) {
|
|
46
45
|
mode.value = newMode;
|
|
47
46
|
}
|
|
@@ -84,9 +83,7 @@ function useFetch(url, clearResponse = false) {
|
|
|
84
83
|
const response = ref2(null);
|
|
85
84
|
const pending = ref2(false);
|
|
86
85
|
const fullUrl = getApiUrl() + url;
|
|
87
|
-
|
|
88
|
-
lastResponse.value = response2;
|
|
89
|
-
});
|
|
86
|
+
const reloadOnNotAuth = url.includes("check_login") ? false : true;
|
|
90
87
|
function post(params) {
|
|
91
88
|
return __async(this, null, function* () {
|
|
92
89
|
pending.value = true;
|
|
@@ -99,6 +96,9 @@ function useFetch(url, clearResponse = false) {
|
|
|
99
96
|
headers: getHeaders()
|
|
100
97
|
});
|
|
101
98
|
const content = yield getContent(fetchResponse);
|
|
99
|
+
if (reloadOnNotAuth && (content == null ? void 0 : content._code) === 1) {
|
|
100
|
+
location.reload();
|
|
101
|
+
}
|
|
102
102
|
response.value = content;
|
|
103
103
|
} catch (error) {
|
|
104
104
|
response.value = null;
|
|
@@ -317,7 +317,6 @@ var useCancelVtbbankm = () => useFetch(baseUrl15 + "cancel/");
|
|
|
317
317
|
var useCloneVtbbankm = () => useFetch(baseUrl15 + "app/clone/");
|
|
318
318
|
export {
|
|
319
319
|
getMode,
|
|
320
|
-
lastResponse,
|
|
321
320
|
setMode,
|
|
322
321
|
usGetMortgageScansList,
|
|
323
322
|
useAccountCheckLogin,
|