@fctc/interface-logic 3.6.1 → 3.6.3
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 +1 -1
- package/dist/configs.mjs +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/environment.js +1 -1
- package/dist/environment.mjs +1 -1
- package/dist/hooks.js +2 -2
- package/dist/hooks.mjs +2 -2
- package/dist/provider.js +3 -3
- package/dist/provider.mjs +3 -3
- package/dist/services.js +2 -2
- package/dist/services.mjs +2 -2
- package/package.json +90 -90
package/dist/configs.js
CHANGED
|
@@ -2367,7 +2367,7 @@ var axiosClient = {
|
|
|
2367
2367
|
processQueue(null, data.access_token);
|
|
2368
2368
|
resolve(instance.request(originalRequest));
|
|
2369
2369
|
}).catch(async (err) => {
|
|
2370
|
-
if (err && (err?.error_code === "AUTHEN_FAIL" || err?.error_code === "TOKEN_EXPIRED" || err?.error_code === "TOKEN_INCORRECT" || err?.code === "
|
|
2370
|
+
if (err && (err?.error_code === "AUTHEN_FAIL" || err?.error_code === "TOKEN_EXPIRED" || err?.error_code === "TOKEN_INCORRECT" || err?.code === "ERR_2FA_006")) {
|
|
2371
2371
|
await clearAuthToken();
|
|
2372
2372
|
}
|
|
2373
2373
|
if (err && err.response) {
|
package/dist/configs.mjs
CHANGED
|
@@ -2331,7 +2331,7 @@ var axiosClient = {
|
|
|
2331
2331
|
processQueue(null, data.access_token);
|
|
2332
2332
|
resolve(instance.request(originalRequest));
|
|
2333
2333
|
}).catch(async (err) => {
|
|
2334
|
-
if (err && (err?.error_code === "AUTHEN_FAIL" || err?.error_code === "TOKEN_EXPIRED" || err?.error_code === "TOKEN_INCORRECT" || err?.code === "
|
|
2334
|
+
if (err && (err?.error_code === "AUTHEN_FAIL" || err?.error_code === "TOKEN_EXPIRED" || err?.error_code === "TOKEN_INCORRECT" || err?.code === "ERR_2FA_006")) {
|
|
2335
2335
|
await clearAuthToken();
|
|
2336
2336
|
}
|
|
2337
2337
|
if (err && err.response) {
|
package/dist/constants.d.mts
CHANGED
package/dist/constants.d.ts
CHANGED
package/dist/constants.js
CHANGED
|
@@ -113,7 +113,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
113
113
|
UriConstants2["POS_DEVICE_PIN"] = "/pos_device/pin";
|
|
114
114
|
UriConstants2["GET_PIN_CODE"] = "/pos_device/get_pin_code";
|
|
115
115
|
UriConstants2["READ_GROUP"] = "/read_group";
|
|
116
|
-
UriConstants2["GET_NOTIFICATION"] = "/mail";
|
|
116
|
+
UriConstants2["GET_NOTIFICATION"] = "/mail/data";
|
|
117
117
|
return UriConstants2;
|
|
118
118
|
})(UriConstants || {});
|
|
119
119
|
|
package/dist/constants.mjs
CHANGED
|
@@ -75,7 +75,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
75
75
|
UriConstants2["POS_DEVICE_PIN"] = "/pos_device/pin";
|
|
76
76
|
UriConstants2["GET_PIN_CODE"] = "/pos_device/get_pin_code";
|
|
77
77
|
UriConstants2["READ_GROUP"] = "/read_group";
|
|
78
|
-
UriConstants2["GET_NOTIFICATION"] = "/mail";
|
|
78
|
+
UriConstants2["GET_NOTIFICATION"] = "/mail/data";
|
|
79
79
|
return UriConstants2;
|
|
80
80
|
})(UriConstants || {});
|
|
81
81
|
|
package/dist/environment.js
CHANGED
|
@@ -2369,7 +2369,7 @@ var axiosClient = {
|
|
|
2369
2369
|
processQueue(null, data.access_token);
|
|
2370
2370
|
resolve(instance.request(originalRequest));
|
|
2371
2371
|
}).catch(async (err) => {
|
|
2372
|
-
if (err && (err?.error_code === "AUTHEN_FAIL" || err?.error_code === "TOKEN_EXPIRED" || err?.error_code === "TOKEN_INCORRECT" || err?.code === "
|
|
2372
|
+
if (err && (err?.error_code === "AUTHEN_FAIL" || err?.error_code === "TOKEN_EXPIRED" || err?.error_code === "TOKEN_INCORRECT" || err?.code === "ERR_2FA_006")) {
|
|
2373
2373
|
await clearAuthToken();
|
|
2374
2374
|
}
|
|
2375
2375
|
if (err && err.response) {
|
package/dist/environment.mjs
CHANGED
|
@@ -2331,7 +2331,7 @@ var axiosClient = {
|
|
|
2331
2331
|
processQueue(null, data.access_token);
|
|
2332
2332
|
resolve(instance.request(originalRequest));
|
|
2333
2333
|
}).catch(async (err) => {
|
|
2334
|
-
if (err && (err?.error_code === "AUTHEN_FAIL" || err?.error_code === "TOKEN_EXPIRED" || err?.error_code === "TOKEN_INCORRECT" || err?.code === "
|
|
2334
|
+
if (err && (err?.error_code === "AUTHEN_FAIL" || err?.error_code === "TOKEN_EXPIRED" || err?.error_code === "TOKEN_INCORRECT" || err?.code === "ERR_2FA_006")) {
|
|
2335
2335
|
await clearAuthToken();
|
|
2336
2336
|
}
|
|
2337
2337
|
if (err && err.response) {
|
package/dist/hooks.js
CHANGED
|
@@ -184,7 +184,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
184
184
|
UriConstants2["POS_DEVICE_PIN"] = "/pos_device/pin";
|
|
185
185
|
UriConstants2["GET_PIN_CODE"] = "/pos_device/get_pin_code";
|
|
186
186
|
UriConstants2["READ_GROUP"] = "/read_group";
|
|
187
|
-
UriConstants2["GET_NOTIFICATION"] = "/mail";
|
|
187
|
+
UriConstants2["GET_NOTIFICATION"] = "/mail/data";
|
|
188
188
|
return UriConstants2;
|
|
189
189
|
})(UriConstants || {});
|
|
190
190
|
|
|
@@ -5725,7 +5725,7 @@ function useViewService() {
|
|
|
5725
5725
|
body
|
|
5726
5726
|
}) => {
|
|
5727
5727
|
return env?.requests?.post(
|
|
5728
|
-
`${"/mail" /* GET_NOTIFICATION */}
|
|
5728
|
+
`${"/mail/data" /* GET_NOTIFICATION */}`,
|
|
5729
5729
|
body,
|
|
5730
5730
|
{
|
|
5731
5731
|
headers: {
|
package/dist/hooks.mjs
CHANGED
|
@@ -45,7 +45,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
45
45
|
UriConstants2["POS_DEVICE_PIN"] = "/pos_device/pin";
|
|
46
46
|
UriConstants2["GET_PIN_CODE"] = "/pos_device/get_pin_code";
|
|
47
47
|
UriConstants2["READ_GROUP"] = "/read_group";
|
|
48
|
-
UriConstants2["GET_NOTIFICATION"] = "/mail";
|
|
48
|
+
UriConstants2["GET_NOTIFICATION"] = "/mail/data";
|
|
49
49
|
return UriConstants2;
|
|
50
50
|
})(UriConstants || {});
|
|
51
51
|
|
|
@@ -5586,7 +5586,7 @@ function useViewService() {
|
|
|
5586
5586
|
body
|
|
5587
5587
|
}) => {
|
|
5588
5588
|
return env?.requests?.post(
|
|
5589
|
-
`${"/mail" /* GET_NOTIFICATION */}
|
|
5589
|
+
`${"/mail/data" /* GET_NOTIFICATION */}`,
|
|
5590
5590
|
body,
|
|
5591
5591
|
{
|
|
5592
5592
|
headers: {
|
package/dist/provider.js
CHANGED
|
@@ -738,7 +738,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
738
738
|
UriConstants2["POS_DEVICE_PIN"] = "/pos_device/pin";
|
|
739
739
|
UriConstants2["GET_PIN_CODE"] = "/pos_device/get_pin_code";
|
|
740
740
|
UriConstants2["READ_GROUP"] = "/read_group";
|
|
741
|
-
UriConstants2["GET_NOTIFICATION"] = "/mail";
|
|
741
|
+
UriConstants2["GET_NOTIFICATION"] = "/mail/data";
|
|
742
742
|
return UriConstants2;
|
|
743
743
|
})(UriConstants || {});
|
|
744
744
|
|
|
@@ -5715,7 +5715,7 @@ function useViewService() {
|
|
|
5715
5715
|
body
|
|
5716
5716
|
}) => {
|
|
5717
5717
|
return env?.requests?.post(
|
|
5718
|
-
`${"/mail" /* GET_NOTIFICATION */}
|
|
5718
|
+
`${"/mail/data" /* GET_NOTIFICATION */}`,
|
|
5719
5719
|
body,
|
|
5720
5720
|
{
|
|
5721
5721
|
headers: {
|
|
@@ -5955,7 +5955,7 @@ var axiosClient = {
|
|
|
5955
5955
|
processQueue(null, data.access_token);
|
|
5956
5956
|
resolve(instance.request(originalRequest));
|
|
5957
5957
|
}).catch(async (err) => {
|
|
5958
|
-
if (err && (err?.error_code === "AUTHEN_FAIL" || err?.error_code === "TOKEN_EXPIRED" || err?.error_code === "TOKEN_INCORRECT" || err?.code === "
|
|
5958
|
+
if (err && (err?.error_code === "AUTHEN_FAIL" || err?.error_code === "TOKEN_EXPIRED" || err?.error_code === "TOKEN_INCORRECT" || err?.code === "ERR_2FA_006")) {
|
|
5959
5959
|
await clearAuthToken();
|
|
5960
5960
|
}
|
|
5961
5961
|
if (err && err.response) {
|
package/dist/provider.mjs
CHANGED
|
@@ -695,7 +695,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
695
695
|
UriConstants2["POS_DEVICE_PIN"] = "/pos_device/pin";
|
|
696
696
|
UriConstants2["GET_PIN_CODE"] = "/pos_device/get_pin_code";
|
|
697
697
|
UriConstants2["READ_GROUP"] = "/read_group";
|
|
698
|
-
UriConstants2["GET_NOTIFICATION"] = "/mail";
|
|
698
|
+
UriConstants2["GET_NOTIFICATION"] = "/mail/data";
|
|
699
699
|
return UriConstants2;
|
|
700
700
|
})(UriConstants || {});
|
|
701
701
|
|
|
@@ -5672,7 +5672,7 @@ function useViewService() {
|
|
|
5672
5672
|
body
|
|
5673
5673
|
}) => {
|
|
5674
5674
|
return env?.requests?.post(
|
|
5675
|
-
`${"/mail" /* GET_NOTIFICATION */}
|
|
5675
|
+
`${"/mail/data" /* GET_NOTIFICATION */}`,
|
|
5676
5676
|
body,
|
|
5677
5677
|
{
|
|
5678
5678
|
headers: {
|
|
@@ -5912,7 +5912,7 @@ var axiosClient = {
|
|
|
5912
5912
|
processQueue(null, data.access_token);
|
|
5913
5913
|
resolve(instance.request(originalRequest));
|
|
5914
5914
|
}).catch(async (err) => {
|
|
5915
|
-
if (err && (err?.error_code === "AUTHEN_FAIL" || err?.error_code === "TOKEN_EXPIRED" || err?.error_code === "TOKEN_INCORRECT" || err?.code === "
|
|
5915
|
+
if (err && (err?.error_code === "AUTHEN_FAIL" || err?.error_code === "TOKEN_EXPIRED" || err?.error_code === "TOKEN_INCORRECT" || err?.code === "ERR_2FA_006")) {
|
|
5916
5916
|
await clearAuthToken();
|
|
5917
5917
|
}
|
|
5918
5918
|
if (err && err.response) {
|
package/dist/services.js
CHANGED
|
@@ -87,7 +87,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
87
87
|
UriConstants2["POS_DEVICE_PIN"] = "/pos_device/pin";
|
|
88
88
|
UriConstants2["GET_PIN_CODE"] = "/pos_device/get_pin_code";
|
|
89
89
|
UriConstants2["READ_GROUP"] = "/read_group";
|
|
90
|
-
UriConstants2["GET_NOTIFICATION"] = "/mail";
|
|
90
|
+
UriConstants2["GET_NOTIFICATION"] = "/mail/data";
|
|
91
91
|
return UriConstants2;
|
|
92
92
|
})(UriConstants || {});
|
|
93
93
|
|
|
@@ -5914,7 +5914,7 @@ function useViewService() {
|
|
|
5914
5914
|
body
|
|
5915
5915
|
}) => {
|
|
5916
5916
|
return env?.requests?.post(
|
|
5917
|
-
`${"/mail" /* GET_NOTIFICATION */}
|
|
5917
|
+
`${"/mail/data" /* GET_NOTIFICATION */}`,
|
|
5918
5918
|
body,
|
|
5919
5919
|
{
|
|
5920
5920
|
headers: {
|
package/dist/services.mjs
CHANGED
|
@@ -42,7 +42,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
42
42
|
UriConstants2["POS_DEVICE_PIN"] = "/pos_device/pin";
|
|
43
43
|
UriConstants2["GET_PIN_CODE"] = "/pos_device/get_pin_code";
|
|
44
44
|
UriConstants2["READ_GROUP"] = "/read_group";
|
|
45
|
-
UriConstants2["GET_NOTIFICATION"] = "/mail";
|
|
45
|
+
UriConstants2["GET_NOTIFICATION"] = "/mail/data";
|
|
46
46
|
return UriConstants2;
|
|
47
47
|
})(UriConstants || {});
|
|
48
48
|
|
|
@@ -5869,7 +5869,7 @@ function useViewService() {
|
|
|
5869
5869
|
body
|
|
5870
5870
|
}) => {
|
|
5871
5871
|
return env?.requests?.post(
|
|
5872
|
-
`${"/mail" /* GET_NOTIFICATION */}
|
|
5872
|
+
`${"/mail/data" /* GET_NOTIFICATION */}`,
|
|
5873
5873
|
body,
|
|
5874
5874
|
{
|
|
5875
5875
|
headers: {
|
package/package.json
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/interface-logic",
|
|
3
|
-
"version": "3.6.
|
|
4
|
-
"types": "dist/index.d.ts",
|
|
5
|
-
"main": "dist/index.cjs",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.cjs"
|
|
12
|
-
},
|
|
13
|
-
"./configs": {
|
|
14
|
-
"types": "./dist/configs.d.ts",
|
|
15
|
-
"import": "./dist/configs.mjs",
|
|
16
|
-
"require": "./dist/configs.cjs"
|
|
17
|
-
},
|
|
18
|
-
"./constants": {
|
|
19
|
-
"types": "./dist/constants.d.ts",
|
|
20
|
-
"import": "./dist/constants.mjs",
|
|
21
|
-
"require": "./dist/constants.cjs"
|
|
22
|
-
},
|
|
23
|
-
"./environment": {
|
|
24
|
-
"types": "./dist/environment.d.ts",
|
|
25
|
-
"import": "./dist/environment.mjs",
|
|
26
|
-
"require": "./dist/environment.cjs"
|
|
27
|
-
},
|
|
28
|
-
"./hooks": {
|
|
29
|
-
"types": "./dist/hooks.d.ts",
|
|
30
|
-
"import": "./dist/hooks.mjs",
|
|
31
|
-
"require": "./dist/hooks.cjs"
|
|
32
|
-
},
|
|
33
|
-
"./provider": {
|
|
34
|
-
"types": "./dist/provider.d.ts",
|
|
35
|
-
"import": "./dist/provider.mjs",
|
|
36
|
-
"require": "./dist/provider.cjs"
|
|
37
|
-
},
|
|
38
|
-
"./services": {
|
|
39
|
-
"types": "./dist/services.d.ts",
|
|
40
|
-
"import": "./dist/services.mjs",
|
|
41
|
-
"require": "./dist/services.cjs"
|
|
42
|
-
},
|
|
43
|
-
"./store": {
|
|
44
|
-
"types": "./dist/store.d.ts",
|
|
45
|
-
"import": "./dist/store.mjs",
|
|
46
|
-
"require": "./dist/store.cjs"
|
|
47
|
-
},
|
|
48
|
-
"./utils": {
|
|
49
|
-
"types": "./dist/utils.d.ts",
|
|
50
|
-
"import": "./dist/utils.mjs",
|
|
51
|
-
"require": "./dist/utils.cjs"
|
|
52
|
-
},
|
|
53
|
-
"./types": {
|
|
54
|
-
"types": "./dist/types.d.ts",
|
|
55
|
-
"import": "./dist/types.mjs",
|
|
56
|
-
"require": "./dist/types.cjs"
|
|
57
|
-
},
|
|
58
|
-
"./models": {
|
|
59
|
-
"types": "./dist/models.d.ts",
|
|
60
|
-
"import": "./dist/models.mjs",
|
|
61
|
-
"require": "./dist/models.cjs"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"files": [
|
|
65
|
-
"dist"
|
|
66
|
-
],
|
|
67
|
-
"scripts": {
|
|
68
|
-
"build": "tsup",
|
|
69
|
-
"test": "jest"
|
|
70
|
-
},
|
|
71
|
-
"peerDependencies": {
|
|
72
|
-
"react": "18.0.0",
|
|
73
|
-
"@tanstack/react-query": "^5.83.0"
|
|
74
|
-
},
|
|
75
|
-
"dependencies": {
|
|
76
|
-
"@reduxjs/toolkit": "^2.8.2",
|
|
77
|
-
"@tanstack/react-query": "^5.83.0",
|
|
78
|
-
"axios": "^1.11.0",
|
|
79
|
-
"moment": "^2.30.1",
|
|
80
|
-
"react-redux": "^9.2.0"
|
|
81
|
-
},
|
|
82
|
-
"devDependencies": {
|
|
83
|
-
"@types/react": "^18.3.1",
|
|
84
|
-
"react": "18.0.0",
|
|
85
|
-
"jest": "^29.7.0",
|
|
86
|
-
"tsup": "^8.0.0",
|
|
87
|
-
"typescript": "^5.8.2"
|
|
88
|
-
},
|
|
89
|
-
"packageManager": "yarn@1.22.0"
|
|
90
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fctc/interface-logic",
|
|
3
|
+
"version": "3.6.3",
|
|
4
|
+
"types": "dist/index.d.ts",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./configs": {
|
|
14
|
+
"types": "./dist/configs.d.ts",
|
|
15
|
+
"import": "./dist/configs.mjs",
|
|
16
|
+
"require": "./dist/configs.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./constants": {
|
|
19
|
+
"types": "./dist/constants.d.ts",
|
|
20
|
+
"import": "./dist/constants.mjs",
|
|
21
|
+
"require": "./dist/constants.cjs"
|
|
22
|
+
},
|
|
23
|
+
"./environment": {
|
|
24
|
+
"types": "./dist/environment.d.ts",
|
|
25
|
+
"import": "./dist/environment.mjs",
|
|
26
|
+
"require": "./dist/environment.cjs"
|
|
27
|
+
},
|
|
28
|
+
"./hooks": {
|
|
29
|
+
"types": "./dist/hooks.d.ts",
|
|
30
|
+
"import": "./dist/hooks.mjs",
|
|
31
|
+
"require": "./dist/hooks.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./provider": {
|
|
34
|
+
"types": "./dist/provider.d.ts",
|
|
35
|
+
"import": "./dist/provider.mjs",
|
|
36
|
+
"require": "./dist/provider.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./services": {
|
|
39
|
+
"types": "./dist/services.d.ts",
|
|
40
|
+
"import": "./dist/services.mjs",
|
|
41
|
+
"require": "./dist/services.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./store": {
|
|
44
|
+
"types": "./dist/store.d.ts",
|
|
45
|
+
"import": "./dist/store.mjs",
|
|
46
|
+
"require": "./dist/store.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./utils": {
|
|
49
|
+
"types": "./dist/utils.d.ts",
|
|
50
|
+
"import": "./dist/utils.mjs",
|
|
51
|
+
"require": "./dist/utils.cjs"
|
|
52
|
+
},
|
|
53
|
+
"./types": {
|
|
54
|
+
"types": "./dist/types.d.ts",
|
|
55
|
+
"import": "./dist/types.mjs",
|
|
56
|
+
"require": "./dist/types.cjs"
|
|
57
|
+
},
|
|
58
|
+
"./models": {
|
|
59
|
+
"types": "./dist/models.d.ts",
|
|
60
|
+
"import": "./dist/models.mjs",
|
|
61
|
+
"require": "./dist/models.cjs"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"files": [
|
|
65
|
+
"dist"
|
|
66
|
+
],
|
|
67
|
+
"scripts": {
|
|
68
|
+
"build": "tsup",
|
|
69
|
+
"test": "jest"
|
|
70
|
+
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"react": "18.0.0",
|
|
73
|
+
"@tanstack/react-query": "^5.83.0"
|
|
74
|
+
},
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"@reduxjs/toolkit": "^2.8.2",
|
|
77
|
+
"@tanstack/react-query": "^5.83.0",
|
|
78
|
+
"axios": "^1.11.0",
|
|
79
|
+
"moment": "^2.30.1",
|
|
80
|
+
"react-redux": "^9.2.0"
|
|
81
|
+
},
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
"@types/react": "^18.3.1",
|
|
84
|
+
"react": "18.0.0",
|
|
85
|
+
"jest": "^29.7.0",
|
|
86
|
+
"tsup": "^8.0.0",
|
|
87
|
+
"typescript": "^5.8.2"
|
|
88
|
+
},
|
|
89
|
+
"packageManager": "yarn@1.22.0"
|
|
90
|
+
}
|