@fctc/interface-logic 2.8.5 → 2.8.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/constants.d.mts +2 -1
- package/dist/constants.d.ts +2 -1
- package/dist/constants.js +1 -0
- package/dist/constants.mjs +1 -0
- package/dist/hooks.d.mts +12 -1
- package/dist/hooks.d.ts +12 -1
- package/dist/hooks.js +71 -5
- package/dist/hooks.mjs +70 -5
- package/dist/provider.d.mts +2 -1
- package/dist/provider.d.ts +2 -1
- package/dist/provider.js +71 -6
- package/dist/provider.mjs +71 -6
- package/dist/services.d.mts +11 -1
- package/dist/services.d.ts +11 -1
- package/dist/services.js +40 -3
- package/dist/services.mjs +40 -3
- package/package.json +90 -90
package/dist/constants.d.mts
CHANGED
|
@@ -53,7 +53,8 @@ declare enum UriConstants {
|
|
|
53
53
|
GRANT_ACCESS = "/grant-access",
|
|
54
54
|
TOKEN_BY_CODE = "/token",
|
|
55
55
|
LOGOUT = "/logout",
|
|
56
|
-
CREATE_UPDATE = "/create_update"
|
|
56
|
+
CREATE_UPDATE = "/create_update",
|
|
57
|
+
SEARCH_READ = "/search_read"
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
declare enum FieldTypeConstants {
|
package/dist/constants.d.ts
CHANGED
|
@@ -53,7 +53,8 @@ declare enum UriConstants {
|
|
|
53
53
|
GRANT_ACCESS = "/grant-access",
|
|
54
54
|
TOKEN_BY_CODE = "/token",
|
|
55
55
|
LOGOUT = "/logout",
|
|
56
|
-
CREATE_UPDATE = "/create_update"
|
|
56
|
+
CREATE_UPDATE = "/create_update",
|
|
57
|
+
SEARCH_READ = "/search_read"
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
declare enum FieldTypeConstants {
|
package/dist/constants.js
CHANGED
|
@@ -97,6 +97,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
97
97
|
UriConstants2["TOKEN_BY_CODE"] = "/token";
|
|
98
98
|
UriConstants2["LOGOUT"] = "/logout";
|
|
99
99
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
100
|
+
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
100
101
|
return UriConstants2;
|
|
101
102
|
})(UriConstants || {});
|
|
102
103
|
|
package/dist/constants.mjs
CHANGED
|
@@ -59,6 +59,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
59
59
|
UriConstants2["TOKEN_BY_CODE"] = "/token";
|
|
60
60
|
UriConstants2["LOGOUT"] = "/logout";
|
|
61
61
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
62
|
+
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
62
63
|
return UriConstants2;
|
|
63
64
|
})(UriConstants || {});
|
|
64
65
|
|
package/dist/hooks.d.mts
CHANGED
|
@@ -451,6 +451,7 @@ declare const useDeleteEntity: () => _tanstack_react_query.UseMutationResult<unk
|
|
|
451
451
|
ids: any;
|
|
452
452
|
service: string;
|
|
453
453
|
xNode: string;
|
|
454
|
+
method: string;
|
|
454
455
|
}, unknown>;
|
|
455
456
|
|
|
456
457
|
declare const useLoadDataPosSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
@@ -483,4 +484,14 @@ declare const useGetOrderLine: () => _tanstack_react_query.UseMutationResult<unk
|
|
|
483
484
|
xNode: string;
|
|
484
485
|
}, unknown>;
|
|
485
486
|
|
|
486
|
-
|
|
487
|
+
declare const useGetProductImage: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
488
|
+
model: string;
|
|
489
|
+
fields: any;
|
|
490
|
+
limit: number;
|
|
491
|
+
offset: number;
|
|
492
|
+
domain: any;
|
|
493
|
+
service: string;
|
|
494
|
+
xNode: string;
|
|
495
|
+
}, unknown>;
|
|
496
|
+
|
|
497
|
+
export { useButton, useChangeStatus, useCreateEntity, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetOrderLine, useGetPos, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdateClosedSession, useUpdateEntity, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
|
package/dist/hooks.d.ts
CHANGED
|
@@ -451,6 +451,7 @@ declare const useDeleteEntity: () => _tanstack_react_query.UseMutationResult<unk
|
|
|
451
451
|
ids: any;
|
|
452
452
|
service: string;
|
|
453
453
|
xNode: string;
|
|
454
|
+
method: string;
|
|
454
455
|
}, unknown>;
|
|
455
456
|
|
|
456
457
|
declare const useLoadDataPosSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
@@ -483,4 +484,14 @@ declare const useGetOrderLine: () => _tanstack_react_query.UseMutationResult<unk
|
|
|
483
484
|
xNode: string;
|
|
484
485
|
}, unknown>;
|
|
485
486
|
|
|
486
|
-
|
|
487
|
+
declare const useGetProductImage: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
488
|
+
model: string;
|
|
489
|
+
fields: any;
|
|
490
|
+
limit: number;
|
|
491
|
+
offset: number;
|
|
492
|
+
domain: any;
|
|
493
|
+
service: string;
|
|
494
|
+
xNode: string;
|
|
495
|
+
}, unknown>;
|
|
496
|
+
|
|
497
|
+
export { useButton, useChangeStatus, useCreateEntity, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetOrderLine, useGetPos, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdateClosedSession, useUpdateEntity, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
|
package/dist/hooks.js
CHANGED
|
@@ -70,6 +70,7 @@ __export(hooks_exports, {
|
|
|
70
70
|
useGetPos: () => use_get_pos_default,
|
|
71
71
|
useGetPrintReport: () => use_get_print_report_default,
|
|
72
72
|
useGetProGressBar: () => use_get_progress_bar_default,
|
|
73
|
+
useGetProductImage: () => use_get_product_image_default,
|
|
73
74
|
useGetProfile: () => use_get_profile_default,
|
|
74
75
|
useGetProvider: () => use_get_provider_default,
|
|
75
76
|
useGetResequence: () => use_resequence_default,
|
|
@@ -152,6 +153,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
152
153
|
UriConstants2["TOKEN_BY_CODE"] = "/token";
|
|
153
154
|
UriConstants2["LOGOUT"] = "/logout";
|
|
154
155
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
156
|
+
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
155
157
|
return UriConstants2;
|
|
156
158
|
})(UriConstants || {});
|
|
157
159
|
|
|
@@ -4916,12 +4918,13 @@ function useViewService() {
|
|
|
4916
4918
|
model,
|
|
4917
4919
|
ids,
|
|
4918
4920
|
xNode,
|
|
4919
|
-
service
|
|
4921
|
+
service,
|
|
4922
|
+
method
|
|
4920
4923
|
}) => {
|
|
4921
4924
|
const jsonData = {
|
|
4922
4925
|
model,
|
|
4923
4926
|
ids,
|
|
4924
|
-
method
|
|
4927
|
+
method
|
|
4925
4928
|
};
|
|
4926
4929
|
return env?.requests.post(
|
|
4927
4930
|
"/call" /* CALL_PATH */,
|
|
@@ -5065,6 +5068,37 @@ function useViewService() {
|
|
|
5065
5068
|
},
|
|
5066
5069
|
[env]
|
|
5067
5070
|
);
|
|
5071
|
+
const getProductImage = (0, import_react14.useCallback)(
|
|
5072
|
+
({
|
|
5073
|
+
model,
|
|
5074
|
+
fields,
|
|
5075
|
+
limit,
|
|
5076
|
+
offset,
|
|
5077
|
+
domain,
|
|
5078
|
+
xNode,
|
|
5079
|
+
service
|
|
5080
|
+
}) => {
|
|
5081
|
+
const jsonData = {
|
|
5082
|
+
model,
|
|
5083
|
+
fields,
|
|
5084
|
+
limit,
|
|
5085
|
+
offset,
|
|
5086
|
+
domain
|
|
5087
|
+
};
|
|
5088
|
+
return env?.requests.post(
|
|
5089
|
+
"/search_read" /* SEARCH_READ */,
|
|
5090
|
+
jsonData,
|
|
5091
|
+
{
|
|
5092
|
+
headers: {
|
|
5093
|
+
"Content-Type": "application/json",
|
|
5094
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5095
|
+
}
|
|
5096
|
+
},
|
|
5097
|
+
service
|
|
5098
|
+
);
|
|
5099
|
+
},
|
|
5100
|
+
[env]
|
|
5101
|
+
);
|
|
5068
5102
|
return {
|
|
5069
5103
|
getView,
|
|
5070
5104
|
getMenu,
|
|
@@ -5093,7 +5127,8 @@ function useViewService() {
|
|
|
5093
5127
|
deleteEntity,
|
|
5094
5128
|
loadDataPosSession,
|
|
5095
5129
|
manageOnChange,
|
|
5096
|
-
getOrderLine
|
|
5130
|
+
getOrderLine,
|
|
5131
|
+
getProductImage
|
|
5097
5132
|
};
|
|
5098
5133
|
}
|
|
5099
5134
|
|
|
@@ -6653,13 +6688,15 @@ var useDeleteEntity = () => {
|
|
|
6653
6688
|
model,
|
|
6654
6689
|
ids,
|
|
6655
6690
|
xNode,
|
|
6656
|
-
service
|
|
6691
|
+
service,
|
|
6692
|
+
method
|
|
6657
6693
|
}) => {
|
|
6658
6694
|
return deleteEntity({
|
|
6659
6695
|
model,
|
|
6660
6696
|
ids,
|
|
6661
6697
|
xNode,
|
|
6662
|
-
service
|
|
6698
|
+
service,
|
|
6699
|
+
method
|
|
6663
6700
|
});
|
|
6664
6701
|
}
|
|
6665
6702
|
});
|
|
@@ -6757,6 +6794,34 @@ var useGetOrderLine = () => {
|
|
|
6757
6794
|
});
|
|
6758
6795
|
};
|
|
6759
6796
|
var use_get_order_line_default = useGetOrderLine;
|
|
6797
|
+
|
|
6798
|
+
// src/hooks/view/use-get-product-image.ts
|
|
6799
|
+
var import_react_query84 = require("@tanstack/react-query");
|
|
6800
|
+
var useGetProductImage = () => {
|
|
6801
|
+
const { getProductImage } = useViewService();
|
|
6802
|
+
return (0, import_react_query84.useMutation)({
|
|
6803
|
+
mutationFn: ({
|
|
6804
|
+
model,
|
|
6805
|
+
fields,
|
|
6806
|
+
limit,
|
|
6807
|
+
offset,
|
|
6808
|
+
domain,
|
|
6809
|
+
xNode,
|
|
6810
|
+
service
|
|
6811
|
+
}) => {
|
|
6812
|
+
return getProductImage({
|
|
6813
|
+
model,
|
|
6814
|
+
fields,
|
|
6815
|
+
limit,
|
|
6816
|
+
offset,
|
|
6817
|
+
domain,
|
|
6818
|
+
xNode,
|
|
6819
|
+
service
|
|
6820
|
+
});
|
|
6821
|
+
}
|
|
6822
|
+
});
|
|
6823
|
+
};
|
|
6824
|
+
var use_get_product_image_default = useGetProductImage;
|
|
6760
6825
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6761
6826
|
0 && (module.exports = {
|
|
6762
6827
|
useButton,
|
|
@@ -6799,6 +6864,7 @@ var use_get_order_line_default = useGetOrderLine;
|
|
|
6799
6864
|
useGetPos,
|
|
6800
6865
|
useGetPrintReport,
|
|
6801
6866
|
useGetProGressBar,
|
|
6867
|
+
useGetProductImage,
|
|
6802
6868
|
useGetProfile,
|
|
6803
6869
|
useGetProvider,
|
|
6804
6870
|
useGetResequence,
|
package/dist/hooks.mjs
CHANGED
|
@@ -34,6 +34,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
34
34
|
UriConstants2["TOKEN_BY_CODE"] = "/token";
|
|
35
35
|
UriConstants2["LOGOUT"] = "/logout";
|
|
36
36
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
37
|
+
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
37
38
|
return UriConstants2;
|
|
38
39
|
})(UriConstants || {});
|
|
39
40
|
|
|
@@ -4798,12 +4799,13 @@ function useViewService() {
|
|
|
4798
4799
|
model,
|
|
4799
4800
|
ids,
|
|
4800
4801
|
xNode,
|
|
4801
|
-
service
|
|
4802
|
+
service,
|
|
4803
|
+
method
|
|
4802
4804
|
}) => {
|
|
4803
4805
|
const jsonData = {
|
|
4804
4806
|
model,
|
|
4805
4807
|
ids,
|
|
4806
|
-
method
|
|
4808
|
+
method
|
|
4807
4809
|
};
|
|
4808
4810
|
return env?.requests.post(
|
|
4809
4811
|
"/call" /* CALL_PATH */,
|
|
@@ -4947,6 +4949,37 @@ function useViewService() {
|
|
|
4947
4949
|
},
|
|
4948
4950
|
[env]
|
|
4949
4951
|
);
|
|
4952
|
+
const getProductImage = useCallback10(
|
|
4953
|
+
({
|
|
4954
|
+
model,
|
|
4955
|
+
fields,
|
|
4956
|
+
limit,
|
|
4957
|
+
offset,
|
|
4958
|
+
domain,
|
|
4959
|
+
xNode,
|
|
4960
|
+
service
|
|
4961
|
+
}) => {
|
|
4962
|
+
const jsonData = {
|
|
4963
|
+
model,
|
|
4964
|
+
fields,
|
|
4965
|
+
limit,
|
|
4966
|
+
offset,
|
|
4967
|
+
domain
|
|
4968
|
+
};
|
|
4969
|
+
return env?.requests.post(
|
|
4970
|
+
"/search_read" /* SEARCH_READ */,
|
|
4971
|
+
jsonData,
|
|
4972
|
+
{
|
|
4973
|
+
headers: {
|
|
4974
|
+
"Content-Type": "application/json",
|
|
4975
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4976
|
+
}
|
|
4977
|
+
},
|
|
4978
|
+
service
|
|
4979
|
+
);
|
|
4980
|
+
},
|
|
4981
|
+
[env]
|
|
4982
|
+
);
|
|
4950
4983
|
return {
|
|
4951
4984
|
getView,
|
|
4952
4985
|
getMenu,
|
|
@@ -4975,7 +5008,8 @@ function useViewService() {
|
|
|
4975
5008
|
deleteEntity,
|
|
4976
5009
|
loadDataPosSession,
|
|
4977
5010
|
manageOnChange,
|
|
4978
|
-
getOrderLine
|
|
5011
|
+
getOrderLine,
|
|
5012
|
+
getProductImage
|
|
4979
5013
|
};
|
|
4980
5014
|
}
|
|
4981
5015
|
|
|
@@ -6535,13 +6569,15 @@ var useDeleteEntity = () => {
|
|
|
6535
6569
|
model,
|
|
6536
6570
|
ids,
|
|
6537
6571
|
xNode,
|
|
6538
|
-
service
|
|
6572
|
+
service,
|
|
6573
|
+
method
|
|
6539
6574
|
}) => {
|
|
6540
6575
|
return deleteEntity({
|
|
6541
6576
|
model,
|
|
6542
6577
|
ids,
|
|
6543
6578
|
xNode,
|
|
6544
|
-
service
|
|
6579
|
+
service,
|
|
6580
|
+
method
|
|
6545
6581
|
});
|
|
6546
6582
|
}
|
|
6547
6583
|
});
|
|
@@ -6639,6 +6675,34 @@ var useGetOrderLine = () => {
|
|
|
6639
6675
|
});
|
|
6640
6676
|
};
|
|
6641
6677
|
var use_get_order_line_default = useGetOrderLine;
|
|
6678
|
+
|
|
6679
|
+
// src/hooks/view/use-get-product-image.ts
|
|
6680
|
+
import { useMutation as useMutation62 } from "@tanstack/react-query";
|
|
6681
|
+
var useGetProductImage = () => {
|
|
6682
|
+
const { getProductImage } = useViewService();
|
|
6683
|
+
return useMutation62({
|
|
6684
|
+
mutationFn: ({
|
|
6685
|
+
model,
|
|
6686
|
+
fields,
|
|
6687
|
+
limit,
|
|
6688
|
+
offset,
|
|
6689
|
+
domain,
|
|
6690
|
+
xNode,
|
|
6691
|
+
service
|
|
6692
|
+
}) => {
|
|
6693
|
+
return getProductImage({
|
|
6694
|
+
model,
|
|
6695
|
+
fields,
|
|
6696
|
+
limit,
|
|
6697
|
+
offset,
|
|
6698
|
+
domain,
|
|
6699
|
+
xNode,
|
|
6700
|
+
service
|
|
6701
|
+
});
|
|
6702
|
+
}
|
|
6703
|
+
});
|
|
6704
|
+
};
|
|
6705
|
+
var use_get_product_image_default = useGetProductImage;
|
|
6642
6706
|
export {
|
|
6643
6707
|
use_button_default as useButton,
|
|
6644
6708
|
use_change_status_default as useChangeStatus,
|
|
@@ -6680,6 +6744,7 @@ export {
|
|
|
6680
6744
|
use_get_pos_default as useGetPos,
|
|
6681
6745
|
use_get_print_report_default as useGetPrintReport,
|
|
6682
6746
|
use_get_progress_bar_default as useGetProGressBar,
|
|
6747
|
+
use_get_product_image_default as useGetProductImage,
|
|
6683
6748
|
use_get_profile_default as useGetProfile,
|
|
6684
6749
|
use_get_provider_default as useGetProvider,
|
|
6685
6750
|
use_resequence_default as useGetResequence,
|
package/dist/provider.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { L as LocalStorageUtilsType, S as SessionStorageUtilsType } from './session-storage-ARp_lhTD.mjs';
|
|
4
|
-
import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile, useCreateEntity, useGetASession, useCreateSession, useDeleteEntity, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession, useUpdateEntity, useLoadDataPosSession, useManageOnChange, useGenSerialNumber, useGetOrderLine } from './hooks.mjs';
|
|
4
|
+
import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile, useCreateEntity, useGetASession, useCreateSession, useDeleteEntity, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession, useUpdateEntity, useLoadDataPosSession, useManageOnChange, useGenSerialNumber, useGetOrderLine, useGetProductImage } from './hooks.mjs';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import './view-type-xxw9OeSR.mjs';
|
|
7
7
|
import './base-model-type-DD8uZnDP.mjs';
|
|
@@ -147,6 +147,7 @@ interface ServiceContextType {
|
|
|
147
147
|
useManageOnChange: typeof useManageOnChange;
|
|
148
148
|
useGenSerialNumber: typeof useGenSerialNumber;
|
|
149
149
|
useGetOrderLine: typeof useGetOrderLine;
|
|
150
|
+
useGetProductImage: typeof useGetProductImage;
|
|
150
151
|
}
|
|
151
152
|
declare const ServiceProvider: ({ children, }: {
|
|
152
153
|
children: React.ReactNode;
|
package/dist/provider.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { L as LocalStorageUtilsType, S as SessionStorageUtilsType } from './session-storage-ARp_lhTD.js';
|
|
4
|
-
import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile, useCreateEntity, useGetASession, useCreateSession, useDeleteEntity, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession, useUpdateEntity, useLoadDataPosSession, useManageOnChange, useGenSerialNumber, useGetOrderLine } from './hooks.js';
|
|
4
|
+
import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile, useCreateEntity, useGetASession, useCreateSession, useDeleteEntity, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession, useUpdateEntity, useLoadDataPosSession, useManageOnChange, useGenSerialNumber, useGetOrderLine, useGetProductImage } from './hooks.js';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import './view-type-xxw9OeSR.js';
|
|
7
7
|
import './base-model-type-DD8uZnDP.js';
|
|
@@ -147,6 +147,7 @@ interface ServiceContextType {
|
|
|
147
147
|
useManageOnChange: typeof useManageOnChange;
|
|
148
148
|
useGenSerialNumber: typeof useGenSerialNumber;
|
|
149
149
|
useGetOrderLine: typeof useGetOrderLine;
|
|
150
|
+
useGetProductImage: typeof useGetProductImage;
|
|
150
151
|
}
|
|
151
152
|
declare const ServiceProvider: ({ children, }: {
|
|
152
153
|
children: React.ReactNode;
|
package/dist/provider.js
CHANGED
|
@@ -727,6 +727,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
727
727
|
UriConstants2["TOKEN_BY_CODE"] = "/token";
|
|
728
728
|
UriConstants2["LOGOUT"] = "/logout";
|
|
729
729
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
730
|
+
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
730
731
|
return UriConstants2;
|
|
731
732
|
})(UriConstants || {});
|
|
732
733
|
|
|
@@ -4850,12 +4851,13 @@ function useViewService() {
|
|
|
4850
4851
|
model,
|
|
4851
4852
|
ids,
|
|
4852
4853
|
xNode,
|
|
4853
|
-
service
|
|
4854
|
+
service,
|
|
4855
|
+
method
|
|
4854
4856
|
}) => {
|
|
4855
4857
|
const jsonData = {
|
|
4856
4858
|
model,
|
|
4857
4859
|
ids,
|
|
4858
|
-
method
|
|
4860
|
+
method
|
|
4859
4861
|
};
|
|
4860
4862
|
return env?.requests.post(
|
|
4861
4863
|
"/call" /* CALL_PATH */,
|
|
@@ -4999,6 +5001,37 @@ function useViewService() {
|
|
|
4999
5001
|
},
|
|
5000
5002
|
[env]
|
|
5001
5003
|
);
|
|
5004
|
+
const getProductImage = (0, import_react10.useCallback)(
|
|
5005
|
+
({
|
|
5006
|
+
model,
|
|
5007
|
+
fields,
|
|
5008
|
+
limit,
|
|
5009
|
+
offset,
|
|
5010
|
+
domain,
|
|
5011
|
+
xNode,
|
|
5012
|
+
service
|
|
5013
|
+
}) => {
|
|
5014
|
+
const jsonData = {
|
|
5015
|
+
model,
|
|
5016
|
+
fields,
|
|
5017
|
+
limit,
|
|
5018
|
+
offset,
|
|
5019
|
+
domain
|
|
5020
|
+
};
|
|
5021
|
+
return env?.requests.post(
|
|
5022
|
+
"/search_read" /* SEARCH_READ */,
|
|
5023
|
+
jsonData,
|
|
5024
|
+
{
|
|
5025
|
+
headers: {
|
|
5026
|
+
"Content-Type": "application/json",
|
|
5027
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5028
|
+
}
|
|
5029
|
+
},
|
|
5030
|
+
service
|
|
5031
|
+
);
|
|
5032
|
+
},
|
|
5033
|
+
[env]
|
|
5034
|
+
);
|
|
5002
5035
|
return {
|
|
5003
5036
|
getView,
|
|
5004
5037
|
getMenu,
|
|
@@ -5027,7 +5060,8 @@ function useViewService() {
|
|
|
5027
5060
|
deleteEntity,
|
|
5028
5061
|
loadDataPosSession,
|
|
5029
5062
|
manageOnChange,
|
|
5030
|
-
getOrderLine
|
|
5063
|
+
getOrderLine,
|
|
5064
|
+
getProductImage
|
|
5031
5065
|
};
|
|
5032
5066
|
}
|
|
5033
5067
|
|
|
@@ -7005,13 +7039,15 @@ var useDeleteEntity = () => {
|
|
|
7005
7039
|
model,
|
|
7006
7040
|
ids,
|
|
7007
7041
|
xNode,
|
|
7008
|
-
service
|
|
7042
|
+
service,
|
|
7043
|
+
method
|
|
7009
7044
|
}) => {
|
|
7010
7045
|
return deleteEntity({
|
|
7011
7046
|
model,
|
|
7012
7047
|
ids,
|
|
7013
7048
|
xNode,
|
|
7014
|
-
service
|
|
7049
|
+
service,
|
|
7050
|
+
method
|
|
7015
7051
|
});
|
|
7016
7052
|
}
|
|
7017
7053
|
});
|
|
@@ -7110,6 +7146,34 @@ var useGetOrderLine = () => {
|
|
|
7110
7146
|
};
|
|
7111
7147
|
var use_get_order_line_default = useGetOrderLine;
|
|
7112
7148
|
|
|
7149
|
+
// src/hooks/view/use-get-product-image.ts
|
|
7150
|
+
var import_react_query84 = require("@tanstack/react-query");
|
|
7151
|
+
var useGetProductImage = () => {
|
|
7152
|
+
const { getProductImage } = useViewService();
|
|
7153
|
+
return (0, import_react_query84.useMutation)({
|
|
7154
|
+
mutationFn: ({
|
|
7155
|
+
model,
|
|
7156
|
+
fields,
|
|
7157
|
+
limit,
|
|
7158
|
+
offset,
|
|
7159
|
+
domain,
|
|
7160
|
+
xNode,
|
|
7161
|
+
service
|
|
7162
|
+
}) => {
|
|
7163
|
+
return getProductImage({
|
|
7164
|
+
model,
|
|
7165
|
+
fields,
|
|
7166
|
+
limit,
|
|
7167
|
+
offset,
|
|
7168
|
+
domain,
|
|
7169
|
+
xNode,
|
|
7170
|
+
service
|
|
7171
|
+
});
|
|
7172
|
+
}
|
|
7173
|
+
});
|
|
7174
|
+
};
|
|
7175
|
+
var use_get_product_image_default = useGetProductImage;
|
|
7176
|
+
|
|
7113
7177
|
// src/provider/service-provider.tsx
|
|
7114
7178
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
7115
7179
|
var ServiceContext = (0, import_react13.createContext)(null);
|
|
@@ -7199,7 +7263,8 @@ var ServiceProvider = ({
|
|
|
7199
7263
|
useLoadDataPosSession: use_load_data_pos_session_default,
|
|
7200
7264
|
useManageOnChange: use_manage_on_change_default,
|
|
7201
7265
|
useGenSerialNumber: use_gen_serial_number_default,
|
|
7202
|
-
useGetOrderLine: use_get_order_line_default
|
|
7266
|
+
useGetOrderLine: use_get_order_line_default,
|
|
7267
|
+
useGetProductImage: use_get_product_image_default
|
|
7203
7268
|
};
|
|
7204
7269
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ServiceContext.Provider, { value: services, children });
|
|
7205
7270
|
};
|
package/dist/provider.mjs
CHANGED
|
@@ -684,6 +684,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
684
684
|
UriConstants2["TOKEN_BY_CODE"] = "/token";
|
|
685
685
|
UriConstants2["LOGOUT"] = "/logout";
|
|
686
686
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
687
|
+
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
687
688
|
return UriConstants2;
|
|
688
689
|
})(UriConstants || {});
|
|
689
690
|
|
|
@@ -4807,12 +4808,13 @@ function useViewService() {
|
|
|
4807
4808
|
model,
|
|
4808
4809
|
ids,
|
|
4809
4810
|
xNode,
|
|
4810
|
-
service
|
|
4811
|
+
service,
|
|
4812
|
+
method
|
|
4811
4813
|
}) => {
|
|
4812
4814
|
const jsonData = {
|
|
4813
4815
|
model,
|
|
4814
4816
|
ids,
|
|
4815
|
-
method
|
|
4817
|
+
method
|
|
4816
4818
|
};
|
|
4817
4819
|
return env?.requests.post(
|
|
4818
4820
|
"/call" /* CALL_PATH */,
|
|
@@ -4956,6 +4958,37 @@ function useViewService() {
|
|
|
4956
4958
|
},
|
|
4957
4959
|
[env]
|
|
4958
4960
|
);
|
|
4961
|
+
const getProductImage = useCallback9(
|
|
4962
|
+
({
|
|
4963
|
+
model,
|
|
4964
|
+
fields,
|
|
4965
|
+
limit,
|
|
4966
|
+
offset,
|
|
4967
|
+
domain,
|
|
4968
|
+
xNode,
|
|
4969
|
+
service
|
|
4970
|
+
}) => {
|
|
4971
|
+
const jsonData = {
|
|
4972
|
+
model,
|
|
4973
|
+
fields,
|
|
4974
|
+
limit,
|
|
4975
|
+
offset,
|
|
4976
|
+
domain
|
|
4977
|
+
};
|
|
4978
|
+
return env?.requests.post(
|
|
4979
|
+
"/search_read" /* SEARCH_READ */,
|
|
4980
|
+
jsonData,
|
|
4981
|
+
{
|
|
4982
|
+
headers: {
|
|
4983
|
+
"Content-Type": "application/json",
|
|
4984
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4985
|
+
}
|
|
4986
|
+
},
|
|
4987
|
+
service
|
|
4988
|
+
);
|
|
4989
|
+
},
|
|
4990
|
+
[env]
|
|
4991
|
+
);
|
|
4959
4992
|
return {
|
|
4960
4993
|
getView,
|
|
4961
4994
|
getMenu,
|
|
@@ -4984,7 +5017,8 @@ function useViewService() {
|
|
|
4984
5017
|
deleteEntity,
|
|
4985
5018
|
loadDataPosSession,
|
|
4986
5019
|
manageOnChange,
|
|
4987
|
-
getOrderLine
|
|
5020
|
+
getOrderLine,
|
|
5021
|
+
getProductImage
|
|
4988
5022
|
};
|
|
4989
5023
|
}
|
|
4990
5024
|
|
|
@@ -6962,13 +6996,15 @@ var useDeleteEntity = () => {
|
|
|
6962
6996
|
model,
|
|
6963
6997
|
ids,
|
|
6964
6998
|
xNode,
|
|
6965
|
-
service
|
|
6999
|
+
service,
|
|
7000
|
+
method
|
|
6966
7001
|
}) => {
|
|
6967
7002
|
return deleteEntity({
|
|
6968
7003
|
model,
|
|
6969
7004
|
ids,
|
|
6970
7005
|
xNode,
|
|
6971
|
-
service
|
|
7006
|
+
service,
|
|
7007
|
+
method
|
|
6972
7008
|
});
|
|
6973
7009
|
}
|
|
6974
7010
|
});
|
|
@@ -7067,6 +7103,34 @@ var useGetOrderLine = () => {
|
|
|
7067
7103
|
};
|
|
7068
7104
|
var use_get_order_line_default = useGetOrderLine;
|
|
7069
7105
|
|
|
7106
|
+
// src/hooks/view/use-get-product-image.ts
|
|
7107
|
+
import { useMutation as useMutation62 } from "@tanstack/react-query";
|
|
7108
|
+
var useGetProductImage = () => {
|
|
7109
|
+
const { getProductImage } = useViewService();
|
|
7110
|
+
return useMutation62({
|
|
7111
|
+
mutationFn: ({
|
|
7112
|
+
model,
|
|
7113
|
+
fields,
|
|
7114
|
+
limit,
|
|
7115
|
+
offset,
|
|
7116
|
+
domain,
|
|
7117
|
+
xNode,
|
|
7118
|
+
service
|
|
7119
|
+
}) => {
|
|
7120
|
+
return getProductImage({
|
|
7121
|
+
model,
|
|
7122
|
+
fields,
|
|
7123
|
+
limit,
|
|
7124
|
+
offset,
|
|
7125
|
+
domain,
|
|
7126
|
+
xNode,
|
|
7127
|
+
service
|
|
7128
|
+
});
|
|
7129
|
+
}
|
|
7130
|
+
});
|
|
7131
|
+
};
|
|
7132
|
+
var use_get_product_image_default = useGetProductImage;
|
|
7133
|
+
|
|
7070
7134
|
// src/provider/service-provider.tsx
|
|
7071
7135
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
7072
7136
|
var ServiceContext = createContext2(null);
|
|
@@ -7156,7 +7220,8 @@ var ServiceProvider = ({
|
|
|
7156
7220
|
useLoadDataPosSession: use_load_data_pos_session_default,
|
|
7157
7221
|
useManageOnChange: use_manage_on_change_default,
|
|
7158
7222
|
useGenSerialNumber: use_gen_serial_number_default,
|
|
7159
|
-
useGetOrderLine: use_get_order_line_default
|
|
7223
|
+
useGetOrderLine: use_get_order_line_default,
|
|
7224
|
+
useGetProductImage: use_get_product_image_default
|
|
7160
7225
|
};
|
|
7161
7226
|
return /* @__PURE__ */ jsx6(ServiceContext.Provider, { value: services, children });
|
|
7162
7227
|
};
|
package/dist/services.d.mts
CHANGED
|
@@ -344,11 +344,12 @@ declare function useViewService(): {
|
|
|
344
344
|
service: string;
|
|
345
345
|
xNode: string;
|
|
346
346
|
}) => any;
|
|
347
|
-
deleteEntity: ({ model, ids, xNode, service, }: {
|
|
347
|
+
deleteEntity: ({ model, ids, xNode, service, method, }: {
|
|
348
348
|
model: string;
|
|
349
349
|
ids: any;
|
|
350
350
|
service: string;
|
|
351
351
|
xNode: string;
|
|
352
|
+
method: string;
|
|
352
353
|
}) => any;
|
|
353
354
|
loadDataPosSession: ({ model, ids, xNode, service, }: {
|
|
354
355
|
model: string;
|
|
@@ -370,6 +371,15 @@ declare function useViewService(): {
|
|
|
370
371
|
service: string;
|
|
371
372
|
xNode: string;
|
|
372
373
|
}) => any;
|
|
374
|
+
getProductImage: ({ model, fields, limit, offset, domain, xNode, service, }: {
|
|
375
|
+
model: string;
|
|
376
|
+
fields: any;
|
|
377
|
+
limit: number;
|
|
378
|
+
offset: number;
|
|
379
|
+
domain: any;
|
|
380
|
+
service: string;
|
|
381
|
+
xNode: string;
|
|
382
|
+
}) => any;
|
|
373
383
|
};
|
|
374
384
|
|
|
375
385
|
export { useActionService, useAuthService, useCompanyService, useExcelService, useFormService, useKanbanService, useModelService, useUserService, useViewService };
|
package/dist/services.d.ts
CHANGED
|
@@ -344,11 +344,12 @@ declare function useViewService(): {
|
|
|
344
344
|
service: string;
|
|
345
345
|
xNode: string;
|
|
346
346
|
}) => any;
|
|
347
|
-
deleteEntity: ({ model, ids, xNode, service, }: {
|
|
347
|
+
deleteEntity: ({ model, ids, xNode, service, method, }: {
|
|
348
348
|
model: string;
|
|
349
349
|
ids: any;
|
|
350
350
|
service: string;
|
|
351
351
|
xNode: string;
|
|
352
|
+
method: string;
|
|
352
353
|
}) => any;
|
|
353
354
|
loadDataPosSession: ({ model, ids, xNode, service, }: {
|
|
354
355
|
model: string;
|
|
@@ -370,6 +371,15 @@ declare function useViewService(): {
|
|
|
370
371
|
service: string;
|
|
371
372
|
xNode: string;
|
|
372
373
|
}) => any;
|
|
374
|
+
getProductImage: ({ model, fields, limit, offset, domain, xNode, service, }: {
|
|
375
|
+
model: string;
|
|
376
|
+
fields: any;
|
|
377
|
+
limit: number;
|
|
378
|
+
offset: number;
|
|
379
|
+
domain: any;
|
|
380
|
+
service: string;
|
|
381
|
+
xNode: string;
|
|
382
|
+
}) => any;
|
|
373
383
|
};
|
|
374
384
|
|
|
375
385
|
export { useActionService, useAuthService, useCompanyService, useExcelService, useFormService, useKanbanService, useModelService, useUserService, useViewService };
|
package/dist/services.js
CHANGED
|
@@ -75,6 +75,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
75
75
|
UriConstants2["TOKEN_BY_CODE"] = "/token";
|
|
76
76
|
UriConstants2["LOGOUT"] = "/logout";
|
|
77
77
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
78
|
+
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
78
79
|
return UriConstants2;
|
|
79
80
|
})(UriConstants || {});
|
|
80
81
|
|
|
@@ -3094,6 +3095,9 @@ var import_react_query82 = require("@tanstack/react-query");
|
|
|
3094
3095
|
// src/hooks/view/use-get-order-line.ts
|
|
3095
3096
|
var import_react_query83 = require("@tanstack/react-query");
|
|
3096
3097
|
|
|
3098
|
+
// src/hooks/view/use-get-product-image.ts
|
|
3099
|
+
var import_react_query84 = require("@tanstack/react-query");
|
|
3100
|
+
|
|
3097
3101
|
// src/provider/service-provider.tsx
|
|
3098
3102
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
3099
3103
|
var ServiceContext = (0, import_react4.createContext)(null);
|
|
@@ -5062,12 +5066,13 @@ function useViewService() {
|
|
|
5062
5066
|
model,
|
|
5063
5067
|
ids,
|
|
5064
5068
|
xNode,
|
|
5065
|
-
service
|
|
5069
|
+
service,
|
|
5070
|
+
method
|
|
5066
5071
|
}) => {
|
|
5067
5072
|
const jsonData = {
|
|
5068
5073
|
model,
|
|
5069
5074
|
ids,
|
|
5070
|
-
method
|
|
5075
|
+
method
|
|
5071
5076
|
};
|
|
5072
5077
|
return env?.requests.post(
|
|
5073
5078
|
"/call" /* CALL_PATH */,
|
|
@@ -5211,6 +5216,37 @@ function useViewService() {
|
|
|
5211
5216
|
},
|
|
5212
5217
|
[env]
|
|
5213
5218
|
);
|
|
5219
|
+
const getProductImage = (0, import_react14.useCallback)(
|
|
5220
|
+
({
|
|
5221
|
+
model,
|
|
5222
|
+
fields,
|
|
5223
|
+
limit,
|
|
5224
|
+
offset,
|
|
5225
|
+
domain,
|
|
5226
|
+
xNode,
|
|
5227
|
+
service
|
|
5228
|
+
}) => {
|
|
5229
|
+
const jsonData = {
|
|
5230
|
+
model,
|
|
5231
|
+
fields,
|
|
5232
|
+
limit,
|
|
5233
|
+
offset,
|
|
5234
|
+
domain
|
|
5235
|
+
};
|
|
5236
|
+
return env?.requests.post(
|
|
5237
|
+
"/search_read" /* SEARCH_READ */,
|
|
5238
|
+
jsonData,
|
|
5239
|
+
{
|
|
5240
|
+
headers: {
|
|
5241
|
+
"Content-Type": "application/json",
|
|
5242
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5243
|
+
}
|
|
5244
|
+
},
|
|
5245
|
+
service
|
|
5246
|
+
);
|
|
5247
|
+
},
|
|
5248
|
+
[env]
|
|
5249
|
+
);
|
|
5214
5250
|
return {
|
|
5215
5251
|
getView,
|
|
5216
5252
|
getMenu,
|
|
@@ -5239,7 +5275,8 @@ function useViewService() {
|
|
|
5239
5275
|
deleteEntity,
|
|
5240
5276
|
loadDataPosSession,
|
|
5241
5277
|
manageOnChange,
|
|
5242
|
-
getOrderLine
|
|
5278
|
+
getOrderLine,
|
|
5279
|
+
getProductImage
|
|
5243
5280
|
};
|
|
5244
5281
|
}
|
|
5245
5282
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/services.mjs
CHANGED
|
@@ -31,6 +31,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
31
31
|
UriConstants2["TOKEN_BY_CODE"] = "/token";
|
|
32
32
|
UriConstants2["LOGOUT"] = "/logout";
|
|
33
33
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
34
|
+
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
34
35
|
return UriConstants2;
|
|
35
36
|
})(UriConstants || {});
|
|
36
37
|
|
|
@@ -3050,6 +3051,9 @@ import { useMutation as useMutation60 } from "@tanstack/react-query";
|
|
|
3050
3051
|
// src/hooks/view/use-get-order-line.ts
|
|
3051
3052
|
import { useMutation as useMutation61 } from "@tanstack/react-query";
|
|
3052
3053
|
|
|
3054
|
+
// src/hooks/view/use-get-product-image.ts
|
|
3055
|
+
import { useMutation as useMutation62 } from "@tanstack/react-query";
|
|
3056
|
+
|
|
3053
3057
|
// src/provider/service-provider.tsx
|
|
3054
3058
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
3055
3059
|
var ServiceContext = createContext2(null);
|
|
@@ -5018,12 +5022,13 @@ function useViewService() {
|
|
|
5018
5022
|
model,
|
|
5019
5023
|
ids,
|
|
5020
5024
|
xNode,
|
|
5021
|
-
service
|
|
5025
|
+
service,
|
|
5026
|
+
method
|
|
5022
5027
|
}) => {
|
|
5023
5028
|
const jsonData = {
|
|
5024
5029
|
model,
|
|
5025
5030
|
ids,
|
|
5026
|
-
method
|
|
5031
|
+
method
|
|
5027
5032
|
};
|
|
5028
5033
|
return env?.requests.post(
|
|
5029
5034
|
"/call" /* CALL_PATH */,
|
|
@@ -5167,6 +5172,37 @@ function useViewService() {
|
|
|
5167
5172
|
},
|
|
5168
5173
|
[env]
|
|
5169
5174
|
);
|
|
5175
|
+
const getProductImage = useCallback10(
|
|
5176
|
+
({
|
|
5177
|
+
model,
|
|
5178
|
+
fields,
|
|
5179
|
+
limit,
|
|
5180
|
+
offset,
|
|
5181
|
+
domain,
|
|
5182
|
+
xNode,
|
|
5183
|
+
service
|
|
5184
|
+
}) => {
|
|
5185
|
+
const jsonData = {
|
|
5186
|
+
model,
|
|
5187
|
+
fields,
|
|
5188
|
+
limit,
|
|
5189
|
+
offset,
|
|
5190
|
+
domain
|
|
5191
|
+
};
|
|
5192
|
+
return env?.requests.post(
|
|
5193
|
+
"/search_read" /* SEARCH_READ */,
|
|
5194
|
+
jsonData,
|
|
5195
|
+
{
|
|
5196
|
+
headers: {
|
|
5197
|
+
"Content-Type": "application/json",
|
|
5198
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5199
|
+
}
|
|
5200
|
+
},
|
|
5201
|
+
service
|
|
5202
|
+
);
|
|
5203
|
+
},
|
|
5204
|
+
[env]
|
|
5205
|
+
);
|
|
5170
5206
|
return {
|
|
5171
5207
|
getView,
|
|
5172
5208
|
getMenu,
|
|
@@ -5195,7 +5231,8 @@ function useViewService() {
|
|
|
5195
5231
|
deleteEntity,
|
|
5196
5232
|
loadDataPosSession,
|
|
5197
5233
|
manageOnChange,
|
|
5198
|
-
getOrderLine
|
|
5234
|
+
getOrderLine,
|
|
5235
|
+
getProductImage
|
|
5199
5236
|
};
|
|
5200
5237
|
}
|
|
5201
5238
|
export {
|
package/package.json
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/interface-logic",
|
|
3
|
-
"version": "2.8.
|
|
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": "2.8.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
|
+
}
|