@fctc/interface-logic 3.8.2 → 3.8.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/services.js CHANGED
@@ -4836,7 +4836,9 @@ function useViewService() {
4836
4836
  model,
4837
4837
  ids,
4838
4838
  context,
4839
- offset
4839
+ offset,
4840
+ service,
4841
+ xNode
4840
4842
  }) => {
4841
4843
  const jsonData = {
4842
4844
  model,
@@ -4845,11 +4847,17 @@ function useViewService() {
4845
4847
  field: "sequence",
4846
4848
  ...offset > 0 ? { offset } : {}
4847
4849
  };
4848
- return env?.requests.post("/web/dataset/resequence", jsonData, {
4849
- headers: {
4850
- "Content-Type": "application/json"
4851
- }
4852
- });
4850
+ return env?.requests.post(
4851
+ "/web/dataset/resequence",
4852
+ jsonData,
4853
+ {
4854
+ headers: {
4855
+ "Content-Type": "application/json",
4856
+ ...xNode ? { "X-Node": xNode } : {}
4857
+ }
4858
+ },
4859
+ service
4860
+ );
4853
4861
  },
4854
4862
  [env]
4855
4863
  );
package/dist/services.mjs CHANGED
@@ -3014,127 +3014,127 @@ import { useMutation as useMutation39 } from "@tanstack/react-query";
3014
3014
  import { useMutation as useMutation40 } from "@tanstack/react-query";
3015
3015
 
3016
3016
  // src/hooks/view/use-resequence.ts
3017
- import { useQuery as useQuery23 } from "@tanstack/react-query";
3017
+ import { useMutation as useMutation41 } from "@tanstack/react-query";
3018
3018
 
3019
3019
  // src/hooks/view/use-run-action.ts
3020
- import { useMutation as useMutation41 } from "@tanstack/react-query";
3020
+ import { useMutation as useMutation42 } from "@tanstack/react-query";
3021
3021
 
3022
3022
  // src/hooks/view/use-signin-sso.ts
3023
- import { useMutation as useMutation42 } from "@tanstack/react-query";
3023
+ import { useMutation as useMutation43 } from "@tanstack/react-query";
3024
3024
 
3025
3025
  // src/hooks/view/use-verify-2FA.ts
3026
- import { useMutation as useMutation43 } from "@tanstack/react-query";
3026
+ import { useMutation as useMutation44 } from "@tanstack/react-query";
3027
3027
 
3028
3028
  // src/hooks/view/uset-get-2FA-method.ts
3029
- import { useMutation as useMutation44 } from "@tanstack/react-query";
3029
+ import { useMutation as useMutation45 } from "@tanstack/react-query";
3030
3030
 
3031
3031
  // src/hooks/view/use-grant-access.ts
3032
- import { useMutation as useMutation45 } from "@tanstack/react-query";
3032
+ import { useMutation as useMutation46 } from "@tanstack/react-query";
3033
3033
 
3034
3034
  // src/hooks/view/use-remove-totp-setup.ts
3035
- import { useMutation as useMutation46 } from "@tanstack/react-query";
3035
+ import { useMutation as useMutation47 } from "@tanstack/react-query";
3036
3036
 
3037
3037
  // src/hooks/view/use-request-setup-totp.ts
3038
- import { useMutation as useMutation47 } from "@tanstack/react-query";
3038
+ import { useMutation as useMutation48 } from "@tanstack/react-query";
3039
3039
 
3040
3040
  // src/hooks/view/use-settings-web-read-2fa.ts
3041
- import { useMutation as useMutation48 } from "@tanstack/react-query";
3041
+ import { useMutation as useMutation49 } from "@tanstack/react-query";
3042
3042
 
3043
3043
  // src/hooks/view/use-verify-totp.ts
3044
- import { useMutation as useMutation49 } from "@tanstack/react-query";
3044
+ import { useMutation as useMutation50 } from "@tanstack/react-query";
3045
3045
 
3046
3046
  // src/hooks/view/use-get-a-session.ts
3047
- import { useMutation as useMutation50 } from "@tanstack/react-query";
3047
+ import { useMutation as useMutation51 } from "@tanstack/react-query";
3048
3048
 
3049
3049
  // src/hooks/view/use-update-closed-session.ts
3050
- import { useMutation as useMutation51 } from "@tanstack/react-query";
3050
+ import { useMutation as useMutation52 } from "@tanstack/react-query";
3051
3051
 
3052
3052
  // src/hooks/view/use-manage-session.ts
3053
- import { useMutation as useMutation52 } from "@tanstack/react-query";
3053
+ import { useMutation as useMutation53 } from "@tanstack/react-query";
3054
3054
 
3055
3055
  // src/hooks/view/use-handle-closing-session.ts
3056
- import { useMutation as useMutation53 } from "@tanstack/react-query";
3056
+ import { useMutation as useMutation54 } from "@tanstack/react-query";
3057
3057
 
3058
3058
  // src/hooks/view/use-create-session.ts
3059
- import { useMutation as useMutation54 } from "@tanstack/react-query";
3059
+ import { useMutation as useMutation55 } from "@tanstack/react-query";
3060
3060
 
3061
3061
  // src/hooks/view/use-get-pos.ts
3062
- import { useMutation as useMutation55 } from "@tanstack/react-query";
3062
+ import { useMutation as useMutation56 } from "@tanstack/react-query";
3063
3063
 
3064
3064
  // src/hooks/view/use-create-entity.ts
3065
- import { useMutation as useMutation56 } from "@tanstack/react-query";
3065
+ import { useMutation as useMutation57 } from "@tanstack/react-query";
3066
3066
 
3067
3067
  // src/hooks/view/use-get-list.ts
3068
- import { useMutation as useMutation57 } from "@tanstack/react-query";
3068
+ import { useMutation as useMutation58 } from "@tanstack/react-query";
3069
3069
 
3070
3070
  // src/hooks/view/use-update-entity.ts
3071
- import { useMutation as useMutation58 } from "@tanstack/react-query";
3071
+ import { useMutation as useMutation59 } from "@tanstack/react-query";
3072
3072
 
3073
3073
  // src/hooks/view/use-delete-entity.ts
3074
- import { useMutation as useMutation59 } from "@tanstack/react-query";
3074
+ import { useMutation as useMutation60 } from "@tanstack/react-query";
3075
3075
 
3076
3076
  // src/hooks/view/use-load-data-pos-session.ts
3077
- import { useMutation as useMutation60 } from "@tanstack/react-query";
3077
+ import { useMutation as useMutation61 } from "@tanstack/react-query";
3078
3078
 
3079
3079
  // src/hooks/view/use-manage-on-change.ts
3080
- import { useMutation as useMutation61 } from "@tanstack/react-query";
3080
+ import { useMutation as useMutation62 } from "@tanstack/react-query";
3081
3081
 
3082
3082
  // src/hooks/view/use-gen-serial-number.ts
3083
- import { useMutation as useMutation62 } from "@tanstack/react-query";
3083
+ import { useMutation as useMutation63 } from "@tanstack/react-query";
3084
3084
 
3085
3085
  // src/hooks/view/use-get-order-line.ts
3086
- import { useMutation as useMutation63 } from "@tanstack/react-query";
3086
+ import { useMutation as useMutation64 } from "@tanstack/react-query";
3087
3087
 
3088
3088
  // src/hooks/view/use-get-product-image.ts
3089
- import { useMutation as useMutation64 } from "@tanstack/react-query";
3089
+ import { useMutation as useMutation65 } from "@tanstack/react-query";
3090
3090
 
3091
3091
  // src/hooks/view/use-add-entity.ts
3092
- import { useMutation as useMutation65 } from "@tanstack/react-query";
3092
+ import { useMutation as useMutation66 } from "@tanstack/react-query";
3093
3093
 
3094
3094
  // src/hooks/view/use-check-payment.ts
3095
- import { useMutation as useMutation66 } from "@tanstack/react-query";
3095
+ import { useMutation as useMutation67 } from "@tanstack/react-query";
3096
3096
 
3097
3097
  // src/hooks/view/use-handle-close-session.ts
3098
- import { useMutation as useMutation67 } from "@tanstack/react-query";
3098
+ import { useMutation as useMutation68 } from "@tanstack/react-query";
3099
3099
 
3100
3100
  // src/hooks/view/use-handle-closing-detail-session.ts
3101
- import { useMutation as useMutation68 } from "@tanstack/react-query";
3101
+ import { useMutation as useMutation69 } from "@tanstack/react-query";
3102
3102
 
3103
3103
  // src/hooks/view/use-create-pos-config.ts
3104
- import { useMutation as useMutation69 } from "@tanstack/react-query";
3104
+ import { useMutation as useMutation70 } from "@tanstack/react-query";
3105
3105
 
3106
3106
  // src/hooks/view/use-search-journal.ts
3107
- import { useMutation as useMutation70 } from "@tanstack/react-query";
3107
+ import { useMutation as useMutation71 } from "@tanstack/react-query";
3108
3108
 
3109
3109
  // src/hooks/view/useGetPreparaionDisplayData.ts
3110
- import { useMutation as useMutation71 } from "@tanstack/react-query";
3110
+ import { useMutation as useMutation72 } from "@tanstack/react-query";
3111
3111
 
3112
3112
  // src/hooks/view/useChangeOrderPreparaionState.ts
3113
- import { useMutation as useMutation72 } from "@tanstack/react-query";
3113
+ import { useMutation as useMutation73 } from "@tanstack/react-query";
3114
3114
 
3115
3115
  // src/hooks/view/use-update-order-status.ts
3116
- import { useMutation as useMutation73 } from "@tanstack/react-query";
3116
+ import { useMutation as useMutation74 } from "@tanstack/react-query";
3117
3117
 
3118
3118
  // src/hooks/view/use-process-order.ts
3119
- import { useMutation as useMutation74 } from "@tanstack/react-query";
3119
+ import { useMutation as useMutation75 } from "@tanstack/react-query";
3120
3120
 
3121
3121
  // src/hooks/view/use-generate-payment-qr-info.ts
3122
- import { useMutation as useMutation75 } from "@tanstack/react-query";
3122
+ import { useMutation as useMutation76 } from "@tanstack/react-query";
3123
3123
 
3124
3124
  // src/hooks/view/use-save-pin-code.ts
3125
- import { useMutation as useMutation76 } from "@tanstack/react-query";
3125
+ import { useMutation as useMutation77 } from "@tanstack/react-query";
3126
3126
 
3127
3127
  // src/hooks/view/use-get-pin-code.ts
3128
- import { useMutation as useMutation77 } from "@tanstack/react-query";
3128
+ import { useMutation as useMutation78 } from "@tanstack/react-query";
3129
3129
 
3130
3130
  // src/hooks/view/use-get-notifications.ts
3131
- import { useQuery as useQuery24 } from "@tanstack/react-query";
3131
+ import { useQuery as useQuery23 } from "@tanstack/react-query";
3132
3132
 
3133
3133
  // src/hooks/chart/use-read-group.ts
3134
- import { useQuery as useQuery25 } from "@tanstack/react-query";
3134
+ import { useQuery as useQuery24 } from "@tanstack/react-query";
3135
3135
 
3136
3136
  // src/hooks/chart/use-get-data-chart.ts
3137
- import { useQuery as useQuery26 } from "@tanstack/react-query";
3137
+ import { useQuery as useQuery25 } from "@tanstack/react-query";
3138
3138
 
3139
3139
  // src/provider/service-provider.tsx
3140
3140
  import { jsx as jsx6 } from "react/jsx-runtime";
@@ -4791,7 +4791,9 @@ function useViewService() {
4791
4791
  model,
4792
4792
  ids,
4793
4793
  context,
4794
- offset
4794
+ offset,
4795
+ service,
4796
+ xNode
4795
4797
  }) => {
4796
4798
  const jsonData = {
4797
4799
  model,
@@ -4800,11 +4802,17 @@ function useViewService() {
4800
4802
  field: "sequence",
4801
4803
  ...offset > 0 ? { offset } : {}
4802
4804
  };
4803
- return env?.requests.post("/web/dataset/resequence", jsonData, {
4804
- headers: {
4805
- "Content-Type": "application/json"
4806
- }
4807
- });
4805
+ return env?.requests.post(
4806
+ "/web/dataset/resequence",
4807
+ jsonData,
4808
+ {
4809
+ headers: {
4810
+ "Content-Type": "application/json",
4811
+ ...xNode ? { "X-Node": xNode } : {}
4812
+ }
4813
+ },
4814
+ service
4815
+ );
4808
4816
  },
4809
4817
  [env]
4810
4818
  );
package/package.json CHANGED
@@ -1,90 +1,90 @@
1
- {
2
- "name": "@fctc/interface-logic",
3
- "version": "3.8.2",
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.8.4",
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
+ }