simpleloan_api 1.2.12 → 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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -490,7 +490,7 @@ type Gazprombankm = GazprombankmMeta & GazprombankmFields;
|
|
|
490
490
|
type GazprombankmDictNames = 'MarketType' | 'RealEstateTypeCode' | 'LoanPurpose' | 'SubProgramCode' | 'InsuranceType';
|
|
491
491
|
|
|
492
492
|
type MortgageStages = 'app_create' | 'app_wait' | 'app_ending' | 'app_issued' | 'app_cancel' | 'app_complete_decline' | 'app_complete_accept';
|
|
493
|
-
type MortgageBankNames = 'absolutbank' | 'akbars' | 'alfabankbalance' | 'gazprombankm' | 'rosbankdom' | 'vtbbankm';
|
|
493
|
+
type MortgageBankNames = 'absolutbank' | 'akbars' | 'alfabankbalance' | 'gazprombankm' | 'rosbankdom' | 'vtbbankm' | 'sovcombank';
|
|
494
494
|
type MortgageBankAppStatus = {
|
|
495
495
|
id: number;
|
|
496
496
|
bank: MortgageBankNames;
|
|
@@ -1343,7 +1343,7 @@ declare const useDeleteChatmessage: () => {
|
|
|
1343
1343
|
};
|
|
1344
1344
|
|
|
1345
1345
|
type CustomerUpdate = Partial<CustomerFields> & {
|
|
1346
|
-
id
|
|
1346
|
+
id?: string;
|
|
1347
1347
|
};
|
|
1348
1348
|
/** Получить конечного потребителя по id */
|
|
1349
1349
|
declare const useGetCustomer: () => {
|
package/dist/index.d.ts
CHANGED
|
@@ -490,7 +490,7 @@ type Gazprombankm = GazprombankmMeta & GazprombankmFields;
|
|
|
490
490
|
type GazprombankmDictNames = 'MarketType' | 'RealEstateTypeCode' | 'LoanPurpose' | 'SubProgramCode' | 'InsuranceType';
|
|
491
491
|
|
|
492
492
|
type MortgageStages = 'app_create' | 'app_wait' | 'app_ending' | 'app_issued' | 'app_cancel' | 'app_complete_decline' | 'app_complete_accept';
|
|
493
|
-
type MortgageBankNames = 'absolutbank' | 'akbars' | 'alfabankbalance' | 'gazprombankm' | 'rosbankdom' | 'vtbbankm';
|
|
493
|
+
type MortgageBankNames = 'absolutbank' | 'akbars' | 'alfabankbalance' | 'gazprombankm' | 'rosbankdom' | 'vtbbankm' | 'sovcombank';
|
|
494
494
|
type MortgageBankAppStatus = {
|
|
495
495
|
id: number;
|
|
496
496
|
bank: MortgageBankNames;
|
|
@@ -1343,7 +1343,7 @@ declare const useDeleteChatmessage: () => {
|
|
|
1343
1343
|
};
|
|
1344
1344
|
|
|
1345
1345
|
type CustomerUpdate = Partial<CustomerFields> & {
|
|
1346
|
-
id
|
|
1346
|
+
id?: string;
|
|
1347
1347
|
};
|
|
1348
1348
|
/** Получить конечного потребителя по id */
|
|
1349
1349
|
declare const useGetCustomer: () => {
|
package/dist/index.js
CHANGED
|
@@ -266,6 +266,7 @@ function useFetch(url, clearResponse = false) {
|
|
|
266
266
|
const response = (0, import_vue2.ref)(null);
|
|
267
267
|
const pending = (0, import_vue2.ref)(false);
|
|
268
268
|
const fullUrl = getApiUrl() + url;
|
|
269
|
+
const reloadOnNotAuth = url.includes("check_login") ? false : true;
|
|
269
270
|
function post(params) {
|
|
270
271
|
return __async(this, null, function* () {
|
|
271
272
|
pending.value = true;
|
|
@@ -278,6 +279,9 @@ function useFetch(url, clearResponse = false) {
|
|
|
278
279
|
headers: getHeaders()
|
|
279
280
|
});
|
|
280
281
|
const content = yield getContent(fetchResponse);
|
|
282
|
+
if (reloadOnNotAuth && (content == null ? void 0 : content._code) === 1) {
|
|
283
|
+
location.reload();
|
|
284
|
+
}
|
|
281
285
|
response.value = content;
|
|
282
286
|
} catch (error) {
|
|
283
287
|
response.value = null;
|
package/dist/index.mjs
CHANGED
|
@@ -83,6 +83,7 @@ function useFetch(url, clearResponse = false) {
|
|
|
83
83
|
const response = ref2(null);
|
|
84
84
|
const pending = ref2(false);
|
|
85
85
|
const fullUrl = getApiUrl() + url;
|
|
86
|
+
const reloadOnNotAuth = url.includes("check_login") ? false : true;
|
|
86
87
|
function post(params) {
|
|
87
88
|
return __async(this, null, function* () {
|
|
88
89
|
pending.value = true;
|
|
@@ -95,6 +96,9 @@ function useFetch(url, clearResponse = false) {
|
|
|
95
96
|
headers: getHeaders()
|
|
96
97
|
});
|
|
97
98
|
const content = yield getContent(fetchResponse);
|
|
99
|
+
if (reloadOnNotAuth && (content == null ? void 0 : content._code) === 1) {
|
|
100
|
+
location.reload();
|
|
101
|
+
}
|
|
98
102
|
response.value = content;
|
|
99
103
|
} catch (error) {
|
|
100
104
|
response.value = null;
|