simpleloan_api 1.1.6 → 1.1.7
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 -5
- package/dist/index.d.ts +2 -5
- package/dist/index.js +2 -17
- package/dist/index.mjs +2 -14
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -456,7 +456,7 @@ declare const useGenerateAkbarsScansApplications: () => {
|
|
|
456
456
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
457
457
|
pending: vue.Ref<boolean>;
|
|
458
458
|
post(params?: PostParams<{
|
|
459
|
-
|
|
459
|
+
mortgageapp_id: number;
|
|
460
460
|
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
461
461
|
};
|
|
462
462
|
/** Отправка сканов заявки Ак Барс Банка */
|
|
@@ -732,8 +732,5 @@ declare const useUpdateManyUser: () => {
|
|
|
732
732
|
type Mode = 'development' | 'production';
|
|
733
733
|
declare function setMode(newMode: Mode): void;
|
|
734
734
|
declare function getMode(): Mode;
|
|
735
|
-
declare function setToken(newToken: string): void;
|
|
736
|
-
declare function removeToken(): void;
|
|
737
|
-
declare function getToken(): string | null;
|
|
738
735
|
|
|
739
|
-
export { type Address, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type Brokerclient, type Dict, type DictItem, type Login, type LoginResponse, type Mortgage, type MortgageBankAppStatus, type MortgageBankNames, type MortgageStages, type Salespoint, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type Sex, type UploadB64File, type User, getMode,
|
|
736
|
+
export { type Address, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type Brokerclient, type Dict, type DictItem, type Login, type LoginResponse, type Mortgage, type MortgageBankAppStatus, type MortgageBankNames, type MortgageStages, type Salespoint, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type Sex, type UploadB64File, type User, getMode, setMode, useAccountCheckLogin, useAccountLogin, useAccountLogout, useAccountLogoutUser, useAccountRegister, useAccountResetPassword, useAccountResetPasswordConfirmNew, useAccountUpdatePassword, useAddGroupUser, useAddStaffBrokerclient, useAddStaffSalespoint, useAskAkbarsPrintforms, useCloneSalespoint, useCloneUser, useDeleteAkbars, useDeleteAkbarsDepositeScan, useDeleteBrokerclient, useDeleteGroupUser, useDeleteSalespoint, useDeleteStaffBrokerclient, useDeleteStaffSalespoint, useDeleteUser, useGenerateAkbarsScansApplications, useGetAkbars, useGetAkbarsDeposite, useGetAkbarsDepositeScanList, useGetAkbarsDictList, useGetAkbarsList, useGetAkbarsPrintformList, useGetBrokerclient, useGetBrokerclientList, useGetSalespoint, useGetSalespointList, useGetUser, useGetUserList, useLoanerApprovingAkbarsStatus, useProcessingAkbars, useSendAkbars, useSendAkbarsDeposite, useSendAkbarsScans, useUpdateAkbars, useUpdateAkbarsDeposite, useUpdateBrokerclient, useUpdateManySalespoint, useUpdateManyUser, useUpdateSalespoint, useUpdateUser, useUploadAkbarsDepositeScan };
|
package/dist/index.d.ts
CHANGED
|
@@ -456,7 +456,7 @@ declare const useGenerateAkbarsScansApplications: () => {
|
|
|
456
456
|
response: vue.Ref<ApiResponse<Akbars> | null>;
|
|
457
457
|
pending: vue.Ref<boolean>;
|
|
458
458
|
post(params?: PostParams<{
|
|
459
|
-
|
|
459
|
+
mortgageapp_id: number;
|
|
460
460
|
}> | undefined): Promise<ApiResponse<Akbars> | null>;
|
|
461
461
|
};
|
|
462
462
|
/** Отправка сканов заявки Ак Барс Банка */
|
|
@@ -732,8 +732,5 @@ declare const useUpdateManyUser: () => {
|
|
|
732
732
|
type Mode = 'development' | 'production';
|
|
733
733
|
declare function setMode(newMode: Mode): void;
|
|
734
734
|
declare function getMode(): Mode;
|
|
735
|
-
declare function setToken(newToken: string): void;
|
|
736
|
-
declare function removeToken(): void;
|
|
737
|
-
declare function getToken(): string | null;
|
|
738
735
|
|
|
739
|
-
export { type Address, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type Brokerclient, type Dict, type DictItem, type Login, type LoginResponse, type Mortgage, type MortgageBankAppStatus, type MortgageBankNames, type MortgageStages, type Salespoint, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type Sex, type UploadB64File, type User, getMode,
|
|
736
|
+
export { type Address, type Akbars, type AkbarsDeposit, type AkbarsDepositScan, type AkbarsDictNames, type AkbarsOffer, type AkbarsPrintform, type AkbarsStages, type Brokerclient, type Dict, type DictItem, type Login, type LoginResponse, type Mortgage, type MortgageBankAppStatus, type MortgageBankNames, type MortgageStages, type Salespoint, type SalespointCreditType, type SalespointInsuranceMode, type SalespointNotificationMode, type Sex, type UploadB64File, type User, getMode, setMode, useAccountCheckLogin, useAccountLogin, useAccountLogout, useAccountLogoutUser, useAccountRegister, useAccountResetPassword, useAccountResetPasswordConfirmNew, useAccountUpdatePassword, useAddGroupUser, useAddStaffBrokerclient, useAddStaffSalespoint, useAskAkbarsPrintforms, useCloneSalespoint, useCloneUser, useDeleteAkbars, useDeleteAkbarsDepositeScan, useDeleteBrokerclient, useDeleteGroupUser, useDeleteSalespoint, useDeleteStaffBrokerclient, useDeleteStaffSalespoint, useDeleteUser, useGenerateAkbarsScansApplications, useGetAkbars, useGetAkbarsDeposite, useGetAkbarsDepositeScanList, useGetAkbarsDictList, useGetAkbarsList, useGetAkbarsPrintformList, useGetBrokerclient, useGetBrokerclientList, useGetSalespoint, useGetSalespointList, useGetUser, useGetUserList, useLoanerApprovingAkbarsStatus, useProcessingAkbars, useSendAkbars, useSendAkbarsDeposite, useSendAkbarsScans, useUpdateAkbars, useUpdateAkbarsDeposite, useUpdateBrokerclient, useUpdateManySalespoint, useUpdateManyUser, useUpdateSalespoint, useUpdateUser, useUploadAkbarsDepositeScan };
|
package/dist/index.js
CHANGED
|
@@ -41,10 +41,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
41
41
|
var simpleloan_api_exports = {};
|
|
42
42
|
__export(simpleloan_api_exports, {
|
|
43
43
|
getMode: () => getMode,
|
|
44
|
-
getToken: () => getToken,
|
|
45
|
-
removeToken: () => removeToken,
|
|
46
44
|
setMode: () => setMode,
|
|
47
|
-
setToken: () => setToken,
|
|
48
45
|
useAccountCheckLogin: () => useAccountCheckLogin,
|
|
49
46
|
useAccountLogin: () => useAccountLogin,
|
|
50
47
|
useAccountLogout: () => useAccountLogout,
|
|
@@ -101,7 +98,6 @@ var import_vue2 = require("vue");
|
|
|
101
98
|
|
|
102
99
|
// src/settings/index.ts
|
|
103
100
|
var import_vue = require("vue");
|
|
104
|
-
var token = null;
|
|
105
101
|
var mode = (0, import_vue.ref)("development");
|
|
106
102
|
function setMode(newMode) {
|
|
107
103
|
mode.value = newMode;
|
|
@@ -109,15 +105,6 @@ function setMode(newMode) {
|
|
|
109
105
|
function getMode() {
|
|
110
106
|
return mode.value;
|
|
111
107
|
}
|
|
112
|
-
function setToken(newToken) {
|
|
113
|
-
token = newToken;
|
|
114
|
-
}
|
|
115
|
-
function removeToken() {
|
|
116
|
-
token = null;
|
|
117
|
-
}
|
|
118
|
-
function getToken() {
|
|
119
|
-
return token;
|
|
120
|
-
}
|
|
121
108
|
|
|
122
109
|
// src/fetch/index.ts
|
|
123
110
|
function getContent(response) {
|
|
@@ -145,10 +132,11 @@ function getApiUrl() {
|
|
|
145
132
|
return getMode() === "production" ? "https://portal.simpleloan.ru/api/v1" : "https://slb.medv.ru/api/v1/";
|
|
146
133
|
}
|
|
147
134
|
function getBody(params) {
|
|
135
|
+
console.log("token", localStorage.getItem("token"));
|
|
148
136
|
return JSON.stringify({
|
|
149
137
|
_data: params.body || void 0,
|
|
150
138
|
_searchParams: params.search || void 0,
|
|
151
|
-
_token:
|
|
139
|
+
_token: localStorage.getItem("token") || void 0
|
|
152
140
|
});
|
|
153
141
|
}
|
|
154
142
|
function useFetch(url, clearResponse) {
|
|
@@ -244,10 +232,7 @@ var useUpdateManyUser = () => useFetch(baseUrl5 + "update_many/");
|
|
|
244
232
|
// Annotate the CommonJS export names for ESM import in node:
|
|
245
233
|
0 && (module.exports = {
|
|
246
234
|
getMode,
|
|
247
|
-
getToken,
|
|
248
|
-
removeToken,
|
|
249
235
|
setMode,
|
|
250
|
-
setToken,
|
|
251
236
|
useAccountCheckLogin,
|
|
252
237
|
useAccountLogin,
|
|
253
238
|
useAccountLogout,
|
package/dist/index.mjs
CHANGED
|
@@ -24,7 +24,6 @@ import { ref as ref2 } from "vue";
|
|
|
24
24
|
|
|
25
25
|
// src/settings/index.ts
|
|
26
26
|
import { ref } from "vue";
|
|
27
|
-
var token = null;
|
|
28
27
|
var mode = ref("development");
|
|
29
28
|
function setMode(newMode) {
|
|
30
29
|
mode.value = newMode;
|
|
@@ -32,15 +31,6 @@ function setMode(newMode) {
|
|
|
32
31
|
function getMode() {
|
|
33
32
|
return mode.value;
|
|
34
33
|
}
|
|
35
|
-
function setToken(newToken) {
|
|
36
|
-
token = newToken;
|
|
37
|
-
}
|
|
38
|
-
function removeToken() {
|
|
39
|
-
token = null;
|
|
40
|
-
}
|
|
41
|
-
function getToken() {
|
|
42
|
-
return token;
|
|
43
|
-
}
|
|
44
34
|
|
|
45
35
|
// src/fetch/index.ts
|
|
46
36
|
function getContent(response) {
|
|
@@ -68,10 +58,11 @@ function getApiUrl() {
|
|
|
68
58
|
return getMode() === "production" ? "https://portal.simpleloan.ru/api/v1" : "https://slb.medv.ru/api/v1/";
|
|
69
59
|
}
|
|
70
60
|
function getBody(params) {
|
|
61
|
+
console.log("token", localStorage.getItem("token"));
|
|
71
62
|
return JSON.stringify({
|
|
72
63
|
_data: params.body || void 0,
|
|
73
64
|
_searchParams: params.search || void 0,
|
|
74
|
-
_token:
|
|
65
|
+
_token: localStorage.getItem("token") || void 0
|
|
75
66
|
});
|
|
76
67
|
}
|
|
77
68
|
function useFetch(url, clearResponse) {
|
|
@@ -166,10 +157,7 @@ var useDeleteGroupUser = () => useFetch(baseUrl5 + "delete_group/");
|
|
|
166
157
|
var useUpdateManyUser = () => useFetch(baseUrl5 + "update_many/");
|
|
167
158
|
export {
|
|
168
159
|
getMode,
|
|
169
|
-
getToken,
|
|
170
|
-
removeToken,
|
|
171
160
|
setMode,
|
|
172
|
-
setToken,
|
|
173
161
|
useAccountCheckLogin,
|
|
174
162
|
useAccountLogin,
|
|
175
163
|
useAccountLogout,
|