@fctc/interface-logic 3.7.8 → 3.7.10
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 +2 -1
- package/dist/hooks.d.ts +2 -1
- package/dist/hooks.js +9 -48
- package/dist/hooks.mjs +9 -48
- package/dist/provider.js +9 -48
- package/dist/provider.mjs +9 -48
- package/dist/services.d.mts +2 -1
- package/dist/services.d.ts +2 -1
- package/dist/services.js +3 -44
- package/dist/services.mjs +3 -44
- package/package.json +90 -90
package/dist/hooks.d.mts
CHANGED
|
@@ -527,6 +527,7 @@ declare const useLoadDataPosSession: () => _tanstack_react_query.UseMutationResu
|
|
|
527
527
|
service?: string;
|
|
528
528
|
xNode?: string;
|
|
529
529
|
withContext?: any;
|
|
530
|
+
modelsToLoad?: any;
|
|
530
531
|
}, unknown>;
|
|
531
532
|
|
|
532
533
|
declare const useManageOnChange: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
@@ -670,6 +671,6 @@ declare const useGetNotifications: ({ service, xNode, body, queryKey, enabled, }
|
|
|
670
671
|
|
|
671
672
|
declare const useReadGroup: (services?: string, xNode?: any, body?: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
672
673
|
|
|
673
|
-
declare const useGetDataChart: (services?: string, xNode?: any, body?: any, enabled?: boolean, path?: string, method?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
674
|
+
declare const useGetDataChart: (services?: string, xNode?: any, body?: any, enabled?: boolean, path?: string, method?: string, queryKey?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
674
675
|
|
|
675
676
|
export { useAddEntity, useButton, useChangeOrderPreparationState as useChangeOrderPreparaionState, useChangeStatus, useCheckPayment, useCreateEntity, useCreatePosConfig, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDataChart, useGetDetail, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetNotifications, useGetOrderLine, useGetPinCode, useGetPos, useGetPreparationDisplayData, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetTenantMapping, useGetThreadData, useGetThreadMessages, useGetToken, useGetUser, useGetView, useGrantAccess, useHandleCloseSession, useHandleClosingDetailSession, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useProcessOrder, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSavePinCode, useSearchJournal, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdateClosedSession, useUpdateEntity, useUpdateOrderStatus, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
|
package/dist/hooks.d.ts
CHANGED
|
@@ -527,6 +527,7 @@ declare const useLoadDataPosSession: () => _tanstack_react_query.UseMutationResu
|
|
|
527
527
|
service?: string;
|
|
528
528
|
xNode?: string;
|
|
529
529
|
withContext?: any;
|
|
530
|
+
modelsToLoad?: any;
|
|
530
531
|
}, unknown>;
|
|
531
532
|
|
|
532
533
|
declare const useManageOnChange: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
@@ -670,6 +671,6 @@ declare const useGetNotifications: ({ service, xNode, body, queryKey, enabled, }
|
|
|
670
671
|
|
|
671
672
|
declare const useReadGroup: (services?: string, xNode?: any, body?: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
672
673
|
|
|
673
|
-
declare const useGetDataChart: (services?: string, xNode?: any, body?: any, enabled?: boolean, path?: string, method?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
674
|
+
declare const useGetDataChart: (services?: string, xNode?: any, body?: any, enabled?: boolean, path?: string, method?: string, queryKey?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
674
675
|
|
|
675
676
|
export { useAddEntity, useButton, useChangeOrderPreparationState as useChangeOrderPreparaionState, useChangeStatus, useCheckPayment, useCreateEntity, useCreatePosConfig, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDataChart, useGetDetail, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetNotifications, useGetOrderLine, useGetPinCode, useGetPos, useGetPreparationDisplayData, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetTenantMapping, useGetThreadData, useGetThreadMessages, useGetToken, useGetUser, useGetView, useGrantAccess, useHandleCloseSession, useHandleClosingDetailSession, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useProcessOrder, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSavePinCode, useSearchJournal, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdateClosedSession, useUpdateEntity, useUpdateOrderStatus, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
|
package/dist/hooks.js
CHANGED
|
@@ -5283,7 +5283,8 @@ function useViewService() {
|
|
|
5283
5283
|
ids,
|
|
5284
5284
|
xNode,
|
|
5285
5285
|
service,
|
|
5286
|
-
withContext
|
|
5286
|
+
withContext,
|
|
5287
|
+
modelsToLoad = []
|
|
5287
5288
|
}) => {
|
|
5288
5289
|
const jsonData = {
|
|
5289
5290
|
model,
|
|
@@ -5295,49 +5296,7 @@ function useViewService() {
|
|
|
5295
5296
|
tz: "Asia/Saigon"
|
|
5296
5297
|
},
|
|
5297
5298
|
kwargs: {
|
|
5298
|
-
models_to_load:
|
|
5299
|
-
"pos.config",
|
|
5300
|
-
"pos.order",
|
|
5301
|
-
"pos.order.line",
|
|
5302
|
-
"pos.pack.operation.lot",
|
|
5303
|
-
"pos.payment",
|
|
5304
|
-
"pos.payment.method",
|
|
5305
|
-
"pos.printer",
|
|
5306
|
-
"pos.category",
|
|
5307
|
-
"pos.bill",
|
|
5308
|
-
"res.company",
|
|
5309
|
-
"account.tax",
|
|
5310
|
-
"account.tax.group",
|
|
5311
|
-
"product.product",
|
|
5312
|
-
"product.attribute",
|
|
5313
|
-
"product.attribute.custom.value",
|
|
5314
|
-
"product.template.attribute.line",
|
|
5315
|
-
"product.template.attribute.value",
|
|
5316
|
-
"product.combo",
|
|
5317
|
-
"product.combo.item",
|
|
5318
|
-
"product.packaging",
|
|
5319
|
-
"res.users",
|
|
5320
|
-
"res.partner",
|
|
5321
|
-
"decimal.precision",
|
|
5322
|
-
"uom.uom",
|
|
5323
|
-
"uom.category",
|
|
5324
|
-
"res.country",
|
|
5325
|
-
"res.country.state",
|
|
5326
|
-
"res.lang",
|
|
5327
|
-
"product.pricelist",
|
|
5328
|
-
"product.pricelist.item",
|
|
5329
|
-
"product.category",
|
|
5330
|
-
"account.cash.rounding",
|
|
5331
|
-
"account.fiscal.position",
|
|
5332
|
-
"account.fiscal.position.tax",
|
|
5333
|
-
"stock.picking.type",
|
|
5334
|
-
"res.currency",
|
|
5335
|
-
"pos.note",
|
|
5336
|
-
"ir.ui.view",
|
|
5337
|
-
"product.tag",
|
|
5338
|
-
"ir.module.module",
|
|
5339
|
-
"pos_preparation_display.display"
|
|
5340
|
-
]
|
|
5299
|
+
models_to_load: modelsToLoad
|
|
5341
5300
|
}
|
|
5342
5301
|
};
|
|
5343
5302
|
return env?.requests.post(
|
|
@@ -7632,14 +7591,16 @@ var useLoadDataPosSession = () => {
|
|
|
7632
7591
|
ids,
|
|
7633
7592
|
xNode,
|
|
7634
7593
|
service,
|
|
7635
|
-
withContext
|
|
7594
|
+
withContext,
|
|
7595
|
+
modelsToLoad
|
|
7636
7596
|
}) => {
|
|
7637
7597
|
return loadDataPosSession({
|
|
7638
7598
|
model,
|
|
7639
7599
|
ids,
|
|
7640
7600
|
xNode,
|
|
7641
7601
|
service,
|
|
7642
|
-
withContext
|
|
7602
|
+
withContext,
|
|
7603
|
+
modelsToLoad
|
|
7643
7604
|
});
|
|
7644
7605
|
}
|
|
7645
7606
|
});
|
|
@@ -8082,10 +8043,10 @@ var use_read_group_default = useReadGroup;
|
|
|
8082
8043
|
|
|
8083
8044
|
// src/hooks/chart/use-get-data-chart.ts
|
|
8084
8045
|
var import_react_query105 = require("@tanstack/react-query");
|
|
8085
|
-
var useGetDataChart = (services, xNode, body, enabled, path, method) => {
|
|
8046
|
+
var useGetDataChart = (services, xNode, body, enabled, path, method, queryKey) => {
|
|
8086
8047
|
const { getDataChart } = useDashboardService();
|
|
8087
8048
|
return (0, import_react_query105.useQuery)({
|
|
8088
|
-
queryKey: [
|
|
8049
|
+
queryKey: [queryKey],
|
|
8089
8050
|
queryFn: () => getDataChart({
|
|
8090
8051
|
service: services,
|
|
8091
8052
|
xNode,
|
package/dist/hooks.mjs
CHANGED
|
@@ -5143,7 +5143,8 @@ function useViewService() {
|
|
|
5143
5143
|
ids,
|
|
5144
5144
|
xNode,
|
|
5145
5145
|
service,
|
|
5146
|
-
withContext
|
|
5146
|
+
withContext,
|
|
5147
|
+
modelsToLoad = []
|
|
5147
5148
|
}) => {
|
|
5148
5149
|
const jsonData = {
|
|
5149
5150
|
model,
|
|
@@ -5155,49 +5156,7 @@ function useViewService() {
|
|
|
5155
5156
|
tz: "Asia/Saigon"
|
|
5156
5157
|
},
|
|
5157
5158
|
kwargs: {
|
|
5158
|
-
models_to_load:
|
|
5159
|
-
"pos.config",
|
|
5160
|
-
"pos.order",
|
|
5161
|
-
"pos.order.line",
|
|
5162
|
-
"pos.pack.operation.lot",
|
|
5163
|
-
"pos.payment",
|
|
5164
|
-
"pos.payment.method",
|
|
5165
|
-
"pos.printer",
|
|
5166
|
-
"pos.category",
|
|
5167
|
-
"pos.bill",
|
|
5168
|
-
"res.company",
|
|
5169
|
-
"account.tax",
|
|
5170
|
-
"account.tax.group",
|
|
5171
|
-
"product.product",
|
|
5172
|
-
"product.attribute",
|
|
5173
|
-
"product.attribute.custom.value",
|
|
5174
|
-
"product.template.attribute.line",
|
|
5175
|
-
"product.template.attribute.value",
|
|
5176
|
-
"product.combo",
|
|
5177
|
-
"product.combo.item",
|
|
5178
|
-
"product.packaging",
|
|
5179
|
-
"res.users",
|
|
5180
|
-
"res.partner",
|
|
5181
|
-
"decimal.precision",
|
|
5182
|
-
"uom.uom",
|
|
5183
|
-
"uom.category",
|
|
5184
|
-
"res.country",
|
|
5185
|
-
"res.country.state",
|
|
5186
|
-
"res.lang",
|
|
5187
|
-
"product.pricelist",
|
|
5188
|
-
"product.pricelist.item",
|
|
5189
|
-
"product.category",
|
|
5190
|
-
"account.cash.rounding",
|
|
5191
|
-
"account.fiscal.position",
|
|
5192
|
-
"account.fiscal.position.tax",
|
|
5193
|
-
"stock.picking.type",
|
|
5194
|
-
"res.currency",
|
|
5195
|
-
"pos.note",
|
|
5196
|
-
"ir.ui.view",
|
|
5197
|
-
"product.tag",
|
|
5198
|
-
"ir.module.module",
|
|
5199
|
-
"pos_preparation_display.display"
|
|
5200
|
-
]
|
|
5159
|
+
models_to_load: modelsToLoad
|
|
5201
5160
|
}
|
|
5202
5161
|
};
|
|
5203
5162
|
return env?.requests.post(
|
|
@@ -7492,14 +7451,16 @@ var useLoadDataPosSession = () => {
|
|
|
7492
7451
|
ids,
|
|
7493
7452
|
xNode,
|
|
7494
7453
|
service,
|
|
7495
|
-
withContext
|
|
7454
|
+
withContext,
|
|
7455
|
+
modelsToLoad
|
|
7496
7456
|
}) => {
|
|
7497
7457
|
return loadDataPosSession({
|
|
7498
7458
|
model,
|
|
7499
7459
|
ids,
|
|
7500
7460
|
xNode,
|
|
7501
7461
|
service,
|
|
7502
|
-
withContext
|
|
7462
|
+
withContext,
|
|
7463
|
+
modelsToLoad
|
|
7503
7464
|
});
|
|
7504
7465
|
}
|
|
7505
7466
|
});
|
|
@@ -7942,10 +7903,10 @@ var use_read_group_default = useReadGroup;
|
|
|
7942
7903
|
|
|
7943
7904
|
// src/hooks/chart/use-get-data-chart.ts
|
|
7944
7905
|
import { useQuery as useQuery26 } from "@tanstack/react-query";
|
|
7945
|
-
var useGetDataChart = (services, xNode, body, enabled, path, method) => {
|
|
7906
|
+
var useGetDataChart = (services, xNode, body, enabled, path, method, queryKey) => {
|
|
7946
7907
|
const { getDataChart } = useDashboardService();
|
|
7947
7908
|
return useQuery26({
|
|
7948
|
-
queryKey: [
|
|
7909
|
+
queryKey: [queryKey],
|
|
7949
7910
|
queryFn: () => getDataChart({
|
|
7950
7911
|
service: services,
|
|
7951
7912
|
xNode,
|
package/dist/provider.js
CHANGED
|
@@ -5272,7 +5272,8 @@ function useViewService() {
|
|
|
5272
5272
|
ids,
|
|
5273
5273
|
xNode,
|
|
5274
5274
|
service,
|
|
5275
|
-
withContext
|
|
5275
|
+
withContext,
|
|
5276
|
+
modelsToLoad = []
|
|
5276
5277
|
}) => {
|
|
5277
5278
|
const jsonData = {
|
|
5278
5279
|
model,
|
|
@@ -5284,49 +5285,7 @@ function useViewService() {
|
|
|
5284
5285
|
tz: "Asia/Saigon"
|
|
5285
5286
|
},
|
|
5286
5287
|
kwargs: {
|
|
5287
|
-
models_to_load:
|
|
5288
|
-
"pos.config",
|
|
5289
|
-
"pos.order",
|
|
5290
|
-
"pos.order.line",
|
|
5291
|
-
"pos.pack.operation.lot",
|
|
5292
|
-
"pos.payment",
|
|
5293
|
-
"pos.payment.method",
|
|
5294
|
-
"pos.printer",
|
|
5295
|
-
"pos.category",
|
|
5296
|
-
"pos.bill",
|
|
5297
|
-
"res.company",
|
|
5298
|
-
"account.tax",
|
|
5299
|
-
"account.tax.group",
|
|
5300
|
-
"product.product",
|
|
5301
|
-
"product.attribute",
|
|
5302
|
-
"product.attribute.custom.value",
|
|
5303
|
-
"product.template.attribute.line",
|
|
5304
|
-
"product.template.attribute.value",
|
|
5305
|
-
"product.combo",
|
|
5306
|
-
"product.combo.item",
|
|
5307
|
-
"product.packaging",
|
|
5308
|
-
"res.users",
|
|
5309
|
-
"res.partner",
|
|
5310
|
-
"decimal.precision",
|
|
5311
|
-
"uom.uom",
|
|
5312
|
-
"uom.category",
|
|
5313
|
-
"res.country",
|
|
5314
|
-
"res.country.state",
|
|
5315
|
-
"res.lang",
|
|
5316
|
-
"product.pricelist",
|
|
5317
|
-
"product.pricelist.item",
|
|
5318
|
-
"product.category",
|
|
5319
|
-
"account.cash.rounding",
|
|
5320
|
-
"account.fiscal.position",
|
|
5321
|
-
"account.fiscal.position.tax",
|
|
5322
|
-
"stock.picking.type",
|
|
5323
|
-
"res.currency",
|
|
5324
|
-
"pos.note",
|
|
5325
|
-
"ir.ui.view",
|
|
5326
|
-
"product.tag",
|
|
5327
|
-
"ir.module.module",
|
|
5328
|
-
"pos_preparation_display.display"
|
|
5329
|
-
]
|
|
5288
|
+
models_to_load: modelsToLoad
|
|
5330
5289
|
}
|
|
5331
5290
|
};
|
|
5332
5291
|
return env?.requests.post(
|
|
@@ -8011,14 +7970,16 @@ var useLoadDataPosSession = () => {
|
|
|
8011
7970
|
ids,
|
|
8012
7971
|
xNode,
|
|
8013
7972
|
service,
|
|
8014
|
-
withContext
|
|
7973
|
+
withContext,
|
|
7974
|
+
modelsToLoad
|
|
8015
7975
|
}) => {
|
|
8016
7976
|
return loadDataPosSession({
|
|
8017
7977
|
model,
|
|
8018
7978
|
ids,
|
|
8019
7979
|
xNode,
|
|
8020
7980
|
service,
|
|
8021
|
-
withContext
|
|
7981
|
+
withContext,
|
|
7982
|
+
modelsToLoad
|
|
8022
7983
|
});
|
|
8023
7984
|
}
|
|
8024
7985
|
});
|
|
@@ -8461,10 +8422,10 @@ var use_read_group_default = useReadGroup;
|
|
|
8461
8422
|
|
|
8462
8423
|
// src/hooks/chart/use-get-data-chart.ts
|
|
8463
8424
|
var import_react_query105 = require("@tanstack/react-query");
|
|
8464
|
-
var useGetDataChart = (services, xNode, body, enabled, path, method) => {
|
|
8425
|
+
var useGetDataChart = (services, xNode, body, enabled, path, method, queryKey) => {
|
|
8465
8426
|
const { getDataChart } = useDashboardService();
|
|
8466
8427
|
return (0, import_react_query105.useQuery)({
|
|
8467
|
-
queryKey: [
|
|
8428
|
+
queryKey: [queryKey],
|
|
8468
8429
|
queryFn: () => getDataChart({
|
|
8469
8430
|
service: services,
|
|
8470
8431
|
xNode,
|
package/dist/provider.mjs
CHANGED
|
@@ -5229,7 +5229,8 @@ function useViewService() {
|
|
|
5229
5229
|
ids,
|
|
5230
5230
|
xNode,
|
|
5231
5231
|
service,
|
|
5232
|
-
withContext
|
|
5232
|
+
withContext,
|
|
5233
|
+
modelsToLoad = []
|
|
5233
5234
|
}) => {
|
|
5234
5235
|
const jsonData = {
|
|
5235
5236
|
model,
|
|
@@ -5241,49 +5242,7 @@ function useViewService() {
|
|
|
5241
5242
|
tz: "Asia/Saigon"
|
|
5242
5243
|
},
|
|
5243
5244
|
kwargs: {
|
|
5244
|
-
models_to_load:
|
|
5245
|
-
"pos.config",
|
|
5246
|
-
"pos.order",
|
|
5247
|
-
"pos.order.line",
|
|
5248
|
-
"pos.pack.operation.lot",
|
|
5249
|
-
"pos.payment",
|
|
5250
|
-
"pos.payment.method",
|
|
5251
|
-
"pos.printer",
|
|
5252
|
-
"pos.category",
|
|
5253
|
-
"pos.bill",
|
|
5254
|
-
"res.company",
|
|
5255
|
-
"account.tax",
|
|
5256
|
-
"account.tax.group",
|
|
5257
|
-
"product.product",
|
|
5258
|
-
"product.attribute",
|
|
5259
|
-
"product.attribute.custom.value",
|
|
5260
|
-
"product.template.attribute.line",
|
|
5261
|
-
"product.template.attribute.value",
|
|
5262
|
-
"product.combo",
|
|
5263
|
-
"product.combo.item",
|
|
5264
|
-
"product.packaging",
|
|
5265
|
-
"res.users",
|
|
5266
|
-
"res.partner",
|
|
5267
|
-
"decimal.precision",
|
|
5268
|
-
"uom.uom",
|
|
5269
|
-
"uom.category",
|
|
5270
|
-
"res.country",
|
|
5271
|
-
"res.country.state",
|
|
5272
|
-
"res.lang",
|
|
5273
|
-
"product.pricelist",
|
|
5274
|
-
"product.pricelist.item",
|
|
5275
|
-
"product.category",
|
|
5276
|
-
"account.cash.rounding",
|
|
5277
|
-
"account.fiscal.position",
|
|
5278
|
-
"account.fiscal.position.tax",
|
|
5279
|
-
"stock.picking.type",
|
|
5280
|
-
"res.currency",
|
|
5281
|
-
"pos.note",
|
|
5282
|
-
"ir.ui.view",
|
|
5283
|
-
"product.tag",
|
|
5284
|
-
"ir.module.module",
|
|
5285
|
-
"pos_preparation_display.display"
|
|
5286
|
-
]
|
|
5245
|
+
models_to_load: modelsToLoad
|
|
5287
5246
|
}
|
|
5288
5247
|
};
|
|
5289
5248
|
return env?.requests.post(
|
|
@@ -7968,14 +7927,16 @@ var useLoadDataPosSession = () => {
|
|
|
7968
7927
|
ids,
|
|
7969
7928
|
xNode,
|
|
7970
7929
|
service,
|
|
7971
|
-
withContext
|
|
7930
|
+
withContext,
|
|
7931
|
+
modelsToLoad
|
|
7972
7932
|
}) => {
|
|
7973
7933
|
return loadDataPosSession({
|
|
7974
7934
|
model,
|
|
7975
7935
|
ids,
|
|
7976
7936
|
xNode,
|
|
7977
7937
|
service,
|
|
7978
|
-
withContext
|
|
7938
|
+
withContext,
|
|
7939
|
+
modelsToLoad
|
|
7979
7940
|
});
|
|
7980
7941
|
}
|
|
7981
7942
|
});
|
|
@@ -8418,10 +8379,10 @@ var use_read_group_default = useReadGroup;
|
|
|
8418
8379
|
|
|
8419
8380
|
// src/hooks/chart/use-get-data-chart.ts
|
|
8420
8381
|
import { useQuery as useQuery26 } from "@tanstack/react-query";
|
|
8421
|
-
var useGetDataChart = (services, xNode, body, enabled, path, method) => {
|
|
8382
|
+
var useGetDataChart = (services, xNode, body, enabled, path, method, queryKey) => {
|
|
8422
8383
|
const { getDataChart } = useDashboardService();
|
|
8423
8384
|
return useQuery26({
|
|
8424
|
-
queryKey: [
|
|
8385
|
+
queryKey: [queryKey],
|
|
8425
8386
|
queryFn: () => getDataChart({
|
|
8426
8387
|
service: services,
|
|
8427
8388
|
xNode,
|
package/dist/services.d.mts
CHANGED
|
@@ -392,12 +392,13 @@ declare function useViewService(): {
|
|
|
392
392
|
xNode?: string;
|
|
393
393
|
method: string;
|
|
394
394
|
}) => any;
|
|
395
|
-
loadDataPosSession: ({ model, ids, xNode, service, withContext, }: {
|
|
395
|
+
loadDataPosSession: ({ model, ids, xNode, service, withContext, modelsToLoad, }: {
|
|
396
396
|
model: string;
|
|
397
397
|
ids: any;
|
|
398
398
|
service?: string;
|
|
399
399
|
xNode?: string;
|
|
400
400
|
withContext?: any;
|
|
401
|
+
modelsToLoad?: any;
|
|
401
402
|
}) => any;
|
|
402
403
|
manageOnChange: ({ model, ids, args, xNode, service, }: {
|
|
403
404
|
model: string;
|
package/dist/services.d.ts
CHANGED
|
@@ -392,12 +392,13 @@ declare function useViewService(): {
|
|
|
392
392
|
xNode?: string;
|
|
393
393
|
method: string;
|
|
394
394
|
}) => any;
|
|
395
|
-
loadDataPosSession: ({ model, ids, xNode, service, withContext, }: {
|
|
395
|
+
loadDataPosSession: ({ model, ids, xNode, service, withContext, modelsToLoad, }: {
|
|
396
396
|
model: string;
|
|
397
397
|
ids: any;
|
|
398
398
|
service?: string;
|
|
399
399
|
xNode?: string;
|
|
400
400
|
withContext?: any;
|
|
401
|
+
modelsToLoad?: any;
|
|
401
402
|
}) => any;
|
|
402
403
|
manageOnChange: ({ model, ids, args, xNode, service, }: {
|
|
403
404
|
model: string;
|
package/dist/services.js
CHANGED
|
@@ -5474,7 +5474,8 @@ function useViewService() {
|
|
|
5474
5474
|
ids,
|
|
5475
5475
|
xNode,
|
|
5476
5476
|
service,
|
|
5477
|
-
withContext
|
|
5477
|
+
withContext,
|
|
5478
|
+
modelsToLoad = []
|
|
5478
5479
|
}) => {
|
|
5479
5480
|
const jsonData = {
|
|
5480
5481
|
model,
|
|
@@ -5486,49 +5487,7 @@ function useViewService() {
|
|
|
5486
5487
|
tz: "Asia/Saigon"
|
|
5487
5488
|
},
|
|
5488
5489
|
kwargs: {
|
|
5489
|
-
models_to_load:
|
|
5490
|
-
"pos.config",
|
|
5491
|
-
"pos.order",
|
|
5492
|
-
"pos.order.line",
|
|
5493
|
-
"pos.pack.operation.lot",
|
|
5494
|
-
"pos.payment",
|
|
5495
|
-
"pos.payment.method",
|
|
5496
|
-
"pos.printer",
|
|
5497
|
-
"pos.category",
|
|
5498
|
-
"pos.bill",
|
|
5499
|
-
"res.company",
|
|
5500
|
-
"account.tax",
|
|
5501
|
-
"account.tax.group",
|
|
5502
|
-
"product.product",
|
|
5503
|
-
"product.attribute",
|
|
5504
|
-
"product.attribute.custom.value",
|
|
5505
|
-
"product.template.attribute.line",
|
|
5506
|
-
"product.template.attribute.value",
|
|
5507
|
-
"product.combo",
|
|
5508
|
-
"product.combo.item",
|
|
5509
|
-
"product.packaging",
|
|
5510
|
-
"res.users",
|
|
5511
|
-
"res.partner",
|
|
5512
|
-
"decimal.precision",
|
|
5513
|
-
"uom.uom",
|
|
5514
|
-
"uom.category",
|
|
5515
|
-
"res.country",
|
|
5516
|
-
"res.country.state",
|
|
5517
|
-
"res.lang",
|
|
5518
|
-
"product.pricelist",
|
|
5519
|
-
"product.pricelist.item",
|
|
5520
|
-
"product.category",
|
|
5521
|
-
"account.cash.rounding",
|
|
5522
|
-
"account.fiscal.position",
|
|
5523
|
-
"account.fiscal.position.tax",
|
|
5524
|
-
"stock.picking.type",
|
|
5525
|
-
"res.currency",
|
|
5526
|
-
"pos.note",
|
|
5527
|
-
"ir.ui.view",
|
|
5528
|
-
"product.tag",
|
|
5529
|
-
"ir.module.module",
|
|
5530
|
-
"pos_preparation_display.display"
|
|
5531
|
-
]
|
|
5490
|
+
models_to_load: modelsToLoad
|
|
5532
5491
|
}
|
|
5533
5492
|
};
|
|
5534
5493
|
return env?.requests.post(
|
package/dist/services.mjs
CHANGED
|
@@ -5429,7 +5429,8 @@ function useViewService() {
|
|
|
5429
5429
|
ids,
|
|
5430
5430
|
xNode,
|
|
5431
5431
|
service,
|
|
5432
|
-
withContext
|
|
5432
|
+
withContext,
|
|
5433
|
+
modelsToLoad = []
|
|
5433
5434
|
}) => {
|
|
5434
5435
|
const jsonData = {
|
|
5435
5436
|
model,
|
|
@@ -5441,49 +5442,7 @@ function useViewService() {
|
|
|
5441
5442
|
tz: "Asia/Saigon"
|
|
5442
5443
|
},
|
|
5443
5444
|
kwargs: {
|
|
5444
|
-
models_to_load:
|
|
5445
|
-
"pos.config",
|
|
5446
|
-
"pos.order",
|
|
5447
|
-
"pos.order.line",
|
|
5448
|
-
"pos.pack.operation.lot",
|
|
5449
|
-
"pos.payment",
|
|
5450
|
-
"pos.payment.method",
|
|
5451
|
-
"pos.printer",
|
|
5452
|
-
"pos.category",
|
|
5453
|
-
"pos.bill",
|
|
5454
|
-
"res.company",
|
|
5455
|
-
"account.tax",
|
|
5456
|
-
"account.tax.group",
|
|
5457
|
-
"product.product",
|
|
5458
|
-
"product.attribute",
|
|
5459
|
-
"product.attribute.custom.value",
|
|
5460
|
-
"product.template.attribute.line",
|
|
5461
|
-
"product.template.attribute.value",
|
|
5462
|
-
"product.combo",
|
|
5463
|
-
"product.combo.item",
|
|
5464
|
-
"product.packaging",
|
|
5465
|
-
"res.users",
|
|
5466
|
-
"res.partner",
|
|
5467
|
-
"decimal.precision",
|
|
5468
|
-
"uom.uom",
|
|
5469
|
-
"uom.category",
|
|
5470
|
-
"res.country",
|
|
5471
|
-
"res.country.state",
|
|
5472
|
-
"res.lang",
|
|
5473
|
-
"product.pricelist",
|
|
5474
|
-
"product.pricelist.item",
|
|
5475
|
-
"product.category",
|
|
5476
|
-
"account.cash.rounding",
|
|
5477
|
-
"account.fiscal.position",
|
|
5478
|
-
"account.fiscal.position.tax",
|
|
5479
|
-
"stock.picking.type",
|
|
5480
|
-
"res.currency",
|
|
5481
|
-
"pos.note",
|
|
5482
|
-
"ir.ui.view",
|
|
5483
|
-
"product.tag",
|
|
5484
|
-
"ir.module.module",
|
|
5485
|
-
"pos_preparation_display.display"
|
|
5486
|
-
]
|
|
5445
|
+
models_to_load: modelsToLoad
|
|
5487
5446
|
}
|
|
5488
5447
|
};
|
|
5489
5448
|
return env?.requests.post(
|
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.10",
|
|
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
|
+
}
|