@fctc/interface-logic 3.7.6 → 3.7.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/hooks.d.mts +1 -0
- package/dist/hooks.d.ts +1 -0
- package/dist/hooks.js +11 -3
- package/dist/hooks.mjs +11 -3
- package/dist/provider.js +11 -3
- package/dist/provider.mjs +11 -3
- package/dist/services.d.mts +2 -1
- package/dist/services.d.ts +2 -1
- package/dist/services.js +7 -1
- package/dist/services.mjs +7 -1
- package/package.json +90 -90
package/dist/hooks.d.mts
CHANGED
|
@@ -526,6 +526,7 @@ declare const useLoadDataPosSession: () => _tanstack_react_query.UseMutationResu
|
|
|
526
526
|
ids: any;
|
|
527
527
|
service?: string;
|
|
528
528
|
xNode?: string;
|
|
529
|
+
withContext?: any;
|
|
529
530
|
}, unknown>;
|
|
530
531
|
|
|
531
532
|
declare const useManageOnChange: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
package/dist/hooks.d.ts
CHANGED
|
@@ -526,6 +526,7 @@ declare const useLoadDataPosSession: () => _tanstack_react_query.UseMutationResu
|
|
|
526
526
|
ids: any;
|
|
527
527
|
service?: string;
|
|
528
528
|
xNode?: string;
|
|
529
|
+
withContext?: any;
|
|
529
530
|
}, unknown>;
|
|
530
531
|
|
|
531
532
|
declare const useManageOnChange: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
package/dist/hooks.js
CHANGED
|
@@ -5282,12 +5282,18 @@ function useViewService() {
|
|
|
5282
5282
|
model,
|
|
5283
5283
|
ids,
|
|
5284
5284
|
xNode,
|
|
5285
|
-
service
|
|
5285
|
+
service,
|
|
5286
|
+
withContext
|
|
5286
5287
|
}) => {
|
|
5287
5288
|
const jsonData = {
|
|
5288
5289
|
model,
|
|
5289
5290
|
method: "load_data" /* LOAD_DATA */,
|
|
5290
5291
|
ids,
|
|
5292
|
+
withContext: withContext ? withContext : {
|
|
5293
|
+
uid: 37,
|
|
5294
|
+
lang: "vi_VN",
|
|
5295
|
+
tz: "Asia/Saigon"
|
|
5296
|
+
},
|
|
5291
5297
|
kwargs: {
|
|
5292
5298
|
models_to_load: [
|
|
5293
5299
|
"pos.config",
|
|
@@ -7625,13 +7631,15 @@ var useLoadDataPosSession = () => {
|
|
|
7625
7631
|
model,
|
|
7626
7632
|
ids,
|
|
7627
7633
|
xNode,
|
|
7628
|
-
service
|
|
7634
|
+
service,
|
|
7635
|
+
withContext
|
|
7629
7636
|
}) => {
|
|
7630
7637
|
return loadDataPosSession({
|
|
7631
7638
|
model,
|
|
7632
7639
|
ids,
|
|
7633
7640
|
xNode,
|
|
7634
|
-
service
|
|
7641
|
+
service,
|
|
7642
|
+
withContext
|
|
7635
7643
|
});
|
|
7636
7644
|
}
|
|
7637
7645
|
});
|
package/dist/hooks.mjs
CHANGED
|
@@ -5142,12 +5142,18 @@ function useViewService() {
|
|
|
5142
5142
|
model,
|
|
5143
5143
|
ids,
|
|
5144
5144
|
xNode,
|
|
5145
|
-
service
|
|
5145
|
+
service,
|
|
5146
|
+
withContext
|
|
5146
5147
|
}) => {
|
|
5147
5148
|
const jsonData = {
|
|
5148
5149
|
model,
|
|
5149
5150
|
method: "load_data" /* LOAD_DATA */,
|
|
5150
5151
|
ids,
|
|
5152
|
+
withContext: withContext ? withContext : {
|
|
5153
|
+
uid: 37,
|
|
5154
|
+
lang: "vi_VN",
|
|
5155
|
+
tz: "Asia/Saigon"
|
|
5156
|
+
},
|
|
5151
5157
|
kwargs: {
|
|
5152
5158
|
models_to_load: [
|
|
5153
5159
|
"pos.config",
|
|
@@ -7485,13 +7491,15 @@ var useLoadDataPosSession = () => {
|
|
|
7485
7491
|
model,
|
|
7486
7492
|
ids,
|
|
7487
7493
|
xNode,
|
|
7488
|
-
service
|
|
7494
|
+
service,
|
|
7495
|
+
withContext
|
|
7489
7496
|
}) => {
|
|
7490
7497
|
return loadDataPosSession({
|
|
7491
7498
|
model,
|
|
7492
7499
|
ids,
|
|
7493
7500
|
xNode,
|
|
7494
|
-
service
|
|
7501
|
+
service,
|
|
7502
|
+
withContext
|
|
7495
7503
|
});
|
|
7496
7504
|
}
|
|
7497
7505
|
});
|
package/dist/provider.js
CHANGED
|
@@ -5271,12 +5271,18 @@ function useViewService() {
|
|
|
5271
5271
|
model,
|
|
5272
5272
|
ids,
|
|
5273
5273
|
xNode,
|
|
5274
|
-
service
|
|
5274
|
+
service,
|
|
5275
|
+
withContext
|
|
5275
5276
|
}) => {
|
|
5276
5277
|
const jsonData = {
|
|
5277
5278
|
model,
|
|
5278
5279
|
method: "load_data" /* LOAD_DATA */,
|
|
5279
5280
|
ids,
|
|
5281
|
+
withContext: withContext ? withContext : {
|
|
5282
|
+
uid: 37,
|
|
5283
|
+
lang: "vi_VN",
|
|
5284
|
+
tz: "Asia/Saigon"
|
|
5285
|
+
},
|
|
5280
5286
|
kwargs: {
|
|
5281
5287
|
models_to_load: [
|
|
5282
5288
|
"pos.config",
|
|
@@ -8004,13 +8010,15 @@ var useLoadDataPosSession = () => {
|
|
|
8004
8010
|
model,
|
|
8005
8011
|
ids,
|
|
8006
8012
|
xNode,
|
|
8007
|
-
service
|
|
8013
|
+
service,
|
|
8014
|
+
withContext
|
|
8008
8015
|
}) => {
|
|
8009
8016
|
return loadDataPosSession({
|
|
8010
8017
|
model,
|
|
8011
8018
|
ids,
|
|
8012
8019
|
xNode,
|
|
8013
|
-
service
|
|
8020
|
+
service,
|
|
8021
|
+
withContext
|
|
8014
8022
|
});
|
|
8015
8023
|
}
|
|
8016
8024
|
});
|
package/dist/provider.mjs
CHANGED
|
@@ -5228,12 +5228,18 @@ function useViewService() {
|
|
|
5228
5228
|
model,
|
|
5229
5229
|
ids,
|
|
5230
5230
|
xNode,
|
|
5231
|
-
service
|
|
5231
|
+
service,
|
|
5232
|
+
withContext
|
|
5232
5233
|
}) => {
|
|
5233
5234
|
const jsonData = {
|
|
5234
5235
|
model,
|
|
5235
5236
|
method: "load_data" /* LOAD_DATA */,
|
|
5236
5237
|
ids,
|
|
5238
|
+
withContext: withContext ? withContext : {
|
|
5239
|
+
uid: 37,
|
|
5240
|
+
lang: "vi_VN",
|
|
5241
|
+
tz: "Asia/Saigon"
|
|
5242
|
+
},
|
|
5237
5243
|
kwargs: {
|
|
5238
5244
|
models_to_load: [
|
|
5239
5245
|
"pos.config",
|
|
@@ -7961,13 +7967,15 @@ var useLoadDataPosSession = () => {
|
|
|
7961
7967
|
model,
|
|
7962
7968
|
ids,
|
|
7963
7969
|
xNode,
|
|
7964
|
-
service
|
|
7970
|
+
service,
|
|
7971
|
+
withContext
|
|
7965
7972
|
}) => {
|
|
7966
7973
|
return loadDataPosSession({
|
|
7967
7974
|
model,
|
|
7968
7975
|
ids,
|
|
7969
7976
|
xNode,
|
|
7970
|
-
service
|
|
7977
|
+
service,
|
|
7978
|
+
withContext
|
|
7971
7979
|
});
|
|
7972
7980
|
}
|
|
7973
7981
|
});
|
package/dist/services.d.mts
CHANGED
|
@@ -392,11 +392,12 @@ declare function useViewService(): {
|
|
|
392
392
|
xNode?: string;
|
|
393
393
|
method: string;
|
|
394
394
|
}) => any;
|
|
395
|
-
loadDataPosSession: ({ model, ids, xNode, service, }: {
|
|
395
|
+
loadDataPosSession: ({ model, ids, xNode, service, withContext, }: {
|
|
396
396
|
model: string;
|
|
397
397
|
ids: any;
|
|
398
398
|
service?: string;
|
|
399
399
|
xNode?: string;
|
|
400
|
+
withContext?: any;
|
|
400
401
|
}) => any;
|
|
401
402
|
manageOnChange: ({ model, ids, args, xNode, service, }: {
|
|
402
403
|
model: string;
|
package/dist/services.d.ts
CHANGED
|
@@ -392,11 +392,12 @@ declare function useViewService(): {
|
|
|
392
392
|
xNode?: string;
|
|
393
393
|
method: string;
|
|
394
394
|
}) => any;
|
|
395
|
-
loadDataPosSession: ({ model, ids, xNode, service, }: {
|
|
395
|
+
loadDataPosSession: ({ model, ids, xNode, service, withContext, }: {
|
|
396
396
|
model: string;
|
|
397
397
|
ids: any;
|
|
398
398
|
service?: string;
|
|
399
399
|
xNode?: string;
|
|
400
|
+
withContext?: any;
|
|
400
401
|
}) => any;
|
|
401
402
|
manageOnChange: ({ model, ids, args, xNode, service, }: {
|
|
402
403
|
model: string;
|
package/dist/services.js
CHANGED
|
@@ -5473,12 +5473,18 @@ function useViewService() {
|
|
|
5473
5473
|
model,
|
|
5474
5474
|
ids,
|
|
5475
5475
|
xNode,
|
|
5476
|
-
service
|
|
5476
|
+
service,
|
|
5477
|
+
withContext
|
|
5477
5478
|
}) => {
|
|
5478
5479
|
const jsonData = {
|
|
5479
5480
|
model,
|
|
5480
5481
|
method: "load_data" /* LOAD_DATA */,
|
|
5481
5482
|
ids,
|
|
5483
|
+
withContext: withContext ? withContext : {
|
|
5484
|
+
uid: 37,
|
|
5485
|
+
lang: "vi_VN",
|
|
5486
|
+
tz: "Asia/Saigon"
|
|
5487
|
+
},
|
|
5482
5488
|
kwargs: {
|
|
5483
5489
|
models_to_load: [
|
|
5484
5490
|
"pos.config",
|
package/dist/services.mjs
CHANGED
|
@@ -5428,12 +5428,18 @@ function useViewService() {
|
|
|
5428
5428
|
model,
|
|
5429
5429
|
ids,
|
|
5430
5430
|
xNode,
|
|
5431
|
-
service
|
|
5431
|
+
service,
|
|
5432
|
+
withContext
|
|
5432
5433
|
}) => {
|
|
5433
5434
|
const jsonData = {
|
|
5434
5435
|
model,
|
|
5435
5436
|
method: "load_data" /* LOAD_DATA */,
|
|
5436
5437
|
ids,
|
|
5438
|
+
withContext: withContext ? withContext : {
|
|
5439
|
+
uid: 37,
|
|
5440
|
+
lang: "vi_VN",
|
|
5441
|
+
tz: "Asia/Saigon"
|
|
5442
|
+
},
|
|
5437
5443
|
kwargs: {
|
|
5438
5444
|
models_to_load: [
|
|
5439
5445
|
"pos.config",
|
package/package.json
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/interface-logic",
|
|
3
|
-
"version": "3.7.
|
|
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.7.7",
|
|
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
|
+
}
|