@fctc/interface-logic 2.0.3 → 2.0.4
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/configs.js +3 -2
- package/dist/configs.mjs +3 -2
- package/dist/environment.js +3 -2
- package/dist/environment.mjs +3 -2
- package/dist/hooks.js +0 -4
- package/dist/hooks.mjs +0 -4
- package/dist/provider.js +3 -6
- package/dist/provider.mjs +3 -6
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/configs.js
CHANGED
|
@@ -2208,10 +2208,11 @@ var sessionStorageUtils = () => {
|
|
|
2208
2208
|
// src/configs/axios-client.ts
|
|
2209
2209
|
var axiosClient = {
|
|
2210
2210
|
init(config) {
|
|
2211
|
+
console.log("config", config);
|
|
2211
2212
|
const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
|
|
2212
2213
|
const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
|
|
2213
2214
|
const db = config?.db;
|
|
2214
|
-
const database = config?.database;
|
|
2215
|
+
const database = config?.config?.database;
|
|
2215
2216
|
let isRefreshing = false;
|
|
2216
2217
|
let failedQueue = [];
|
|
2217
2218
|
const processQueue = (error, token = null) => {
|
|
@@ -2236,7 +2237,7 @@ var axiosClient = {
|
|
|
2236
2237
|
config2.headers["Action-Token"] = actionToken;
|
|
2237
2238
|
}
|
|
2238
2239
|
if (database) {
|
|
2239
|
-
config2.headers["DATABASE"] =
|
|
2240
|
+
config2.headers["DATABASE"] = database;
|
|
2240
2241
|
}
|
|
2241
2242
|
console.log("database", database);
|
|
2242
2243
|
const getToken = useRefreshToken ? localStorage2.getRefreshToken : localStorage2.getAccessToken;
|
package/dist/configs.mjs
CHANGED
|
@@ -2172,10 +2172,11 @@ var sessionStorageUtils = () => {
|
|
|
2172
2172
|
// src/configs/axios-client.ts
|
|
2173
2173
|
var axiosClient = {
|
|
2174
2174
|
init(config) {
|
|
2175
|
+
console.log("config", config);
|
|
2175
2176
|
const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
|
|
2176
2177
|
const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
|
|
2177
2178
|
const db = config?.db;
|
|
2178
|
-
const database = config?.database;
|
|
2179
|
+
const database = config?.config?.database;
|
|
2179
2180
|
let isRefreshing = false;
|
|
2180
2181
|
let failedQueue = [];
|
|
2181
2182
|
const processQueue = (error, token = null) => {
|
|
@@ -2200,7 +2201,7 @@ var axiosClient = {
|
|
|
2200
2201
|
config2.headers["Action-Token"] = actionToken;
|
|
2201
2202
|
}
|
|
2202
2203
|
if (database) {
|
|
2203
|
-
config2.headers["DATABASE"] =
|
|
2204
|
+
config2.headers["DATABASE"] = database;
|
|
2204
2205
|
}
|
|
2205
2206
|
console.log("database", database);
|
|
2206
2207
|
const getToken = useRefreshToken ? localStorage2.getRefreshToken : localStorage2.getAccessToken;
|
package/dist/environment.js
CHANGED
|
@@ -2210,10 +2210,11 @@ var sessionStorageUtils = () => {
|
|
|
2210
2210
|
// src/configs/axios-client.ts
|
|
2211
2211
|
var axiosClient = {
|
|
2212
2212
|
init(config) {
|
|
2213
|
+
console.log("config", config);
|
|
2213
2214
|
const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
|
|
2214
2215
|
const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
|
|
2215
2216
|
const db = config?.db;
|
|
2216
|
-
const database = config?.database;
|
|
2217
|
+
const database = config?.config?.database;
|
|
2217
2218
|
let isRefreshing = false;
|
|
2218
2219
|
let failedQueue = [];
|
|
2219
2220
|
const processQueue = (error, token = null) => {
|
|
@@ -2238,7 +2239,7 @@ var axiosClient = {
|
|
|
2238
2239
|
config2.headers["Action-Token"] = actionToken;
|
|
2239
2240
|
}
|
|
2240
2241
|
if (database) {
|
|
2241
|
-
config2.headers["DATABASE"] =
|
|
2242
|
+
config2.headers["DATABASE"] = database;
|
|
2242
2243
|
}
|
|
2243
2244
|
console.log("database", database);
|
|
2244
2245
|
const getToken = useRefreshToken ? localStorage2.getRefreshToken : localStorage2.getAccessToken;
|
package/dist/environment.mjs
CHANGED
|
@@ -2172,10 +2172,11 @@ var sessionStorageUtils = () => {
|
|
|
2172
2172
|
// src/configs/axios-client.ts
|
|
2173
2173
|
var axiosClient = {
|
|
2174
2174
|
init(config) {
|
|
2175
|
+
console.log("config", config);
|
|
2175
2176
|
const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
|
|
2176
2177
|
const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
|
|
2177
2178
|
const db = config?.db;
|
|
2178
|
-
const database = config?.database;
|
|
2179
|
+
const database = config?.config?.database;
|
|
2179
2180
|
let isRefreshing = false;
|
|
2180
2181
|
let failedQueue = [];
|
|
2181
2182
|
const processQueue = (error, token = null) => {
|
|
@@ -2200,7 +2201,7 @@ var axiosClient = {
|
|
|
2200
2201
|
config2.headers["Action-Token"] = actionToken;
|
|
2201
2202
|
}
|
|
2202
2203
|
if (database) {
|
|
2203
|
-
config2.headers["DATABASE"] =
|
|
2204
|
+
config2.headers["DATABASE"] = database;
|
|
2204
2205
|
}
|
|
2205
2206
|
console.log("database", database);
|
|
2206
2207
|
const getToken = useRefreshToken ? localStorage2.getRefreshToken : localStorage2.getAccessToken;
|
package/dist/hooks.js
CHANGED
|
@@ -5401,7 +5401,6 @@ var useGetActionDetail = ({
|
|
|
5401
5401
|
model,
|
|
5402
5402
|
queryKey
|
|
5403
5403
|
}) => {
|
|
5404
|
-
const { getFormView } = useFormService();
|
|
5405
5404
|
const { getActionDetail } = useViewService();
|
|
5406
5405
|
const data = {
|
|
5407
5406
|
id,
|
|
@@ -5416,9 +5415,6 @@ var useGetActionDetail = ({
|
|
|
5416
5415
|
if (res && res.length > 0) {
|
|
5417
5416
|
return res[0];
|
|
5418
5417
|
}
|
|
5419
|
-
} else {
|
|
5420
|
-
const res = await getFormView({ data });
|
|
5421
|
-
return res;
|
|
5422
5418
|
}
|
|
5423
5419
|
},
|
|
5424
5420
|
enabled,
|
package/dist/hooks.mjs
CHANGED
|
@@ -5298,7 +5298,6 @@ var useGetActionDetail = ({
|
|
|
5298
5298
|
model,
|
|
5299
5299
|
queryKey
|
|
5300
5300
|
}) => {
|
|
5301
|
-
const { getFormView } = useFormService();
|
|
5302
5301
|
const { getActionDetail } = useViewService();
|
|
5303
5302
|
const data = {
|
|
5304
5303
|
id,
|
|
@@ -5313,9 +5312,6 @@ var useGetActionDetail = ({
|
|
|
5313
5312
|
if (res && res.length > 0) {
|
|
5314
5313
|
return res[0];
|
|
5315
5314
|
}
|
|
5316
|
-
} else {
|
|
5317
|
-
const res = await getFormView({ data });
|
|
5318
|
-
return res;
|
|
5319
5315
|
}
|
|
5320
5316
|
},
|
|
5321
5317
|
enabled,
|
package/dist/provider.js
CHANGED
|
@@ -4589,10 +4589,11 @@ var sessionStorageUtils = () => {
|
|
|
4589
4589
|
// src/configs/axios-client.ts
|
|
4590
4590
|
var axiosClient = {
|
|
4591
4591
|
init(config) {
|
|
4592
|
+
console.log("config", config);
|
|
4592
4593
|
const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
|
|
4593
4594
|
const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
|
|
4594
4595
|
const db = config?.db;
|
|
4595
|
-
const database = config?.database;
|
|
4596
|
+
const database = config?.config?.database;
|
|
4596
4597
|
let isRefreshing = false;
|
|
4597
4598
|
let failedQueue = [];
|
|
4598
4599
|
const processQueue = (error, token = null) => {
|
|
@@ -4617,7 +4618,7 @@ var axiosClient = {
|
|
|
4617
4618
|
config2.headers["Action-Token"] = actionToken;
|
|
4618
4619
|
}
|
|
4619
4620
|
if (database) {
|
|
4620
|
-
config2.headers["DATABASE"] =
|
|
4621
|
+
config2.headers["DATABASE"] = database;
|
|
4621
4622
|
}
|
|
4622
4623
|
console.log("database", database);
|
|
4623
4624
|
const getToken = useRefreshToken ? localStorage2.getRefreshToken : localStorage2.getAccessToken;
|
|
@@ -5737,7 +5738,6 @@ var useGetActionDetail = ({
|
|
|
5737
5738
|
model,
|
|
5738
5739
|
queryKey
|
|
5739
5740
|
}) => {
|
|
5740
|
-
const { getFormView } = useFormService();
|
|
5741
5741
|
const { getActionDetail } = useViewService();
|
|
5742
5742
|
const data = {
|
|
5743
5743
|
id,
|
|
@@ -5752,9 +5752,6 @@ var useGetActionDetail = ({
|
|
|
5752
5752
|
if (res && res.length > 0) {
|
|
5753
5753
|
return res[0];
|
|
5754
5754
|
}
|
|
5755
|
-
} else {
|
|
5756
|
-
const res = await getFormView({ data });
|
|
5757
|
-
return res;
|
|
5758
5755
|
}
|
|
5759
5756
|
},
|
|
5760
5757
|
enabled,
|
package/dist/provider.mjs
CHANGED
|
@@ -4546,10 +4546,11 @@ var sessionStorageUtils = () => {
|
|
|
4546
4546
|
// src/configs/axios-client.ts
|
|
4547
4547
|
var axiosClient = {
|
|
4548
4548
|
init(config) {
|
|
4549
|
+
console.log("config", config);
|
|
4549
4550
|
const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
|
|
4550
4551
|
const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
|
|
4551
4552
|
const db = config?.db;
|
|
4552
|
-
const database = config?.database;
|
|
4553
|
+
const database = config?.config?.database;
|
|
4553
4554
|
let isRefreshing = false;
|
|
4554
4555
|
let failedQueue = [];
|
|
4555
4556
|
const processQueue = (error, token = null) => {
|
|
@@ -4574,7 +4575,7 @@ var axiosClient = {
|
|
|
4574
4575
|
config2.headers["Action-Token"] = actionToken;
|
|
4575
4576
|
}
|
|
4576
4577
|
if (database) {
|
|
4577
|
-
config2.headers["DATABASE"] =
|
|
4578
|
+
config2.headers["DATABASE"] = database;
|
|
4578
4579
|
}
|
|
4579
4580
|
console.log("database", database);
|
|
4580
4581
|
const getToken = useRefreshToken ? localStorage2.getRefreshToken : localStorage2.getAccessToken;
|
|
@@ -5694,7 +5695,6 @@ var useGetActionDetail = ({
|
|
|
5694
5695
|
model,
|
|
5695
5696
|
queryKey
|
|
5696
5697
|
}) => {
|
|
5697
|
-
const { getFormView } = useFormService();
|
|
5698
5698
|
const { getActionDetail } = useViewService();
|
|
5699
5699
|
const data = {
|
|
5700
5700
|
id,
|
|
@@ -5709,9 +5709,6 @@ var useGetActionDetail = ({
|
|
|
5709
5709
|
if (res && res.length > 0) {
|
|
5710
5710
|
return res[0];
|
|
5711
5711
|
}
|
|
5712
|
-
} else {
|
|
5713
|
-
const res = await getFormView({ data });
|
|
5714
|
-
return res;
|
|
5715
5712
|
}
|
|
5716
5713
|
},
|
|
5717
5714
|
enabled,
|
package/dist/types.d.mts
CHANGED
package/dist/types.d.ts
CHANGED