@fctc/interface-logic 2.8.9 → 2.9.1
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 +4 -2
- package/dist/constants.d.ts +4 -2
- package/dist/constants.js +2 -0
- package/dist/constants.mjs +2 -0
- package/dist/hooks.d.mts +10 -1
- package/dist/hooks.d.ts +10 -1
- package/dist/hooks.js +64 -5
- package/dist/hooks.mjs +63 -5
- package/dist/provider.d.mts +2 -1
- package/dist/provider.d.ts +2 -1
- package/dist/provider.js +64 -6
- package/dist/provider.mjs +64 -6
- package/dist/services.d.mts +9 -1
- package/dist/services.d.ts +9 -1
- package/dist/services.js +37 -3
- package/dist/services.mjs +37 -3
- package/package.json +90 -90
package/dist/constants.d.mts
CHANGED
|
@@ -22,7 +22,8 @@ declare enum MethodConstants {
|
|
|
22
22
|
GET_ONCHANGE_FIELDS = "get_fields_onchange",
|
|
23
23
|
GET_FIELD_VIEW = "get_fields_view_v2",
|
|
24
24
|
CREATE = "create",
|
|
25
|
-
LOAD_DATA = "load_data"
|
|
25
|
+
LOAD_DATA = "load_data",
|
|
26
|
+
CHECK = "check"
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
declare enum UriConstants {
|
|
@@ -54,7 +55,8 @@ declare enum UriConstants {
|
|
|
54
55
|
TOKEN_BY_CODE = "/token",
|
|
55
56
|
LOGOUT = "/logout",
|
|
56
57
|
CREATE_UPDATE = "/create_update",
|
|
57
|
-
SEARCH_READ = "/search_read"
|
|
58
|
+
SEARCH_READ = "/search_read",
|
|
59
|
+
CREATE_PATH = "/create"
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
declare enum FieldTypeConstants {
|
package/dist/constants.d.ts
CHANGED
|
@@ -22,7 +22,8 @@ declare enum MethodConstants {
|
|
|
22
22
|
GET_ONCHANGE_FIELDS = "get_fields_onchange",
|
|
23
23
|
GET_FIELD_VIEW = "get_fields_view_v2",
|
|
24
24
|
CREATE = "create",
|
|
25
|
-
LOAD_DATA = "load_data"
|
|
25
|
+
LOAD_DATA = "load_data",
|
|
26
|
+
CHECK = "check"
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
declare enum UriConstants {
|
|
@@ -54,7 +55,8 @@ declare enum UriConstants {
|
|
|
54
55
|
TOKEN_BY_CODE = "/token",
|
|
55
56
|
LOGOUT = "/logout",
|
|
56
57
|
CREATE_UPDATE = "/create_update",
|
|
57
|
-
SEARCH_READ = "/search_read"
|
|
58
|
+
SEARCH_READ = "/search_read",
|
|
59
|
+
CREATE_PATH = "/create"
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
declare enum FieldTypeConstants {
|
package/dist/constants.js
CHANGED
|
@@ -64,6 +64,7 @@ var MethodConstants = /* @__PURE__ */ ((MethodConstants2) => {
|
|
|
64
64
|
MethodConstants2["GET_FIELD_VIEW"] = "get_fields_view_v2";
|
|
65
65
|
MethodConstants2["CREATE"] = "create";
|
|
66
66
|
MethodConstants2["LOAD_DATA"] = "load_data";
|
|
67
|
+
MethodConstants2["CHECK"] = "check";
|
|
67
68
|
return MethodConstants2;
|
|
68
69
|
})(MethodConstants || {});
|
|
69
70
|
|
|
@@ -98,6 +99,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
98
99
|
UriConstants2["LOGOUT"] = "/logout";
|
|
99
100
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
100
101
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
102
|
+
UriConstants2["CREATE_PATH"] = "/create";
|
|
101
103
|
return UriConstants2;
|
|
102
104
|
})(UriConstants || {});
|
|
103
105
|
|
package/dist/constants.mjs
CHANGED
|
@@ -26,6 +26,7 @@ var MethodConstants = /* @__PURE__ */ ((MethodConstants2) => {
|
|
|
26
26
|
MethodConstants2["GET_FIELD_VIEW"] = "get_fields_view_v2";
|
|
27
27
|
MethodConstants2["CREATE"] = "create";
|
|
28
28
|
MethodConstants2["LOAD_DATA"] = "load_data";
|
|
29
|
+
MethodConstants2["CHECK"] = "check";
|
|
29
30
|
return MethodConstants2;
|
|
30
31
|
})(MethodConstants || {});
|
|
31
32
|
|
|
@@ -60,6 +61,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
60
61
|
UriConstants2["LOGOUT"] = "/logout";
|
|
61
62
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
62
63
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
64
|
+
UriConstants2["CREATE_PATH"] = "/create";
|
|
63
65
|
return UriConstants2;
|
|
64
66
|
})(UriConstants || {});
|
|
65
67
|
|
package/dist/hooks.d.mts
CHANGED
|
@@ -499,6 +499,15 @@ declare const useAddEntity: () => _tanstack_react_query.UseMutationResult<unknow
|
|
|
499
499
|
values: any;
|
|
500
500
|
service: string;
|
|
501
501
|
xNode: string;
|
|
502
|
+
isCreateEndpoint?: boolean;
|
|
502
503
|
}, unknown>;
|
|
503
504
|
|
|
504
|
-
|
|
505
|
+
declare const useCheckPayment: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
506
|
+
model: string;
|
|
507
|
+
ids: any;
|
|
508
|
+
withContext: any;
|
|
509
|
+
service: string;
|
|
510
|
+
xNode: string;
|
|
511
|
+
}, unknown>;
|
|
512
|
+
|
|
513
|
+
export { useAddEntity, useButton, useChangeStatus, useCheckPayment, 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
|
@@ -499,6 +499,15 @@ declare const useAddEntity: () => _tanstack_react_query.UseMutationResult<unknow
|
|
|
499
499
|
values: any;
|
|
500
500
|
service: string;
|
|
501
501
|
xNode: string;
|
|
502
|
+
isCreateEndpoint?: boolean;
|
|
502
503
|
}, unknown>;
|
|
503
504
|
|
|
504
|
-
|
|
505
|
+
declare const useCheckPayment: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
506
|
+
model: string;
|
|
507
|
+
ids: any;
|
|
508
|
+
withContext: any;
|
|
509
|
+
service: string;
|
|
510
|
+
xNode: string;
|
|
511
|
+
}, unknown>;
|
|
512
|
+
|
|
513
|
+
export { useAddEntity, useButton, useChangeStatus, useCheckPayment, 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
|
@@ -33,6 +33,7 @@ __export(hooks_exports, {
|
|
|
33
33
|
useAddEntity: () => use_add_entity_default,
|
|
34
34
|
useButton: () => use_button_default,
|
|
35
35
|
useChangeStatus: () => use_change_status_default,
|
|
36
|
+
useCheckPayment: () => use_check_payment_default,
|
|
36
37
|
useCreateEntity: () => use_create_entity_default,
|
|
37
38
|
useCreateSession: () => use_create_session_default,
|
|
38
39
|
useDelete: () => use_delete_default,
|
|
@@ -155,6 +156,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
155
156
|
UriConstants2["LOGOUT"] = "/logout";
|
|
156
157
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
157
158
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
159
|
+
UriConstants2["CREATE_PATH"] = "/create";
|
|
158
160
|
return UriConstants2;
|
|
159
161
|
})(UriConstants || {});
|
|
160
162
|
|
|
@@ -4858,14 +4860,15 @@ function useViewService() {
|
|
|
4858
4860
|
model,
|
|
4859
4861
|
values,
|
|
4860
4862
|
xNode,
|
|
4861
|
-
service
|
|
4863
|
+
service,
|
|
4864
|
+
isCreateEndpoint = false
|
|
4862
4865
|
}) => {
|
|
4863
4866
|
const jsonData = {
|
|
4864
4867
|
model,
|
|
4865
4868
|
values
|
|
4866
4869
|
};
|
|
4867
4870
|
return env?.requests.post(
|
|
4868
|
-
"/call" /* CALL_PATH */,
|
|
4871
|
+
isCreateEndpoint ? "/create" /* CREATE_PATH */ : "/call" /* CALL_PATH */,
|
|
4869
4872
|
jsonData,
|
|
4870
4873
|
{
|
|
4871
4874
|
headers: {
|
|
@@ -5125,6 +5128,34 @@ function useViewService() {
|
|
|
5125
5128
|
},
|
|
5126
5129
|
[env]
|
|
5127
5130
|
);
|
|
5131
|
+
const checkPayment = (0, import_react14.useCallback)(
|
|
5132
|
+
({
|
|
5133
|
+
model,
|
|
5134
|
+
ids,
|
|
5135
|
+
withContext,
|
|
5136
|
+
xNode,
|
|
5137
|
+
service
|
|
5138
|
+
}) => {
|
|
5139
|
+
const jsonData = {
|
|
5140
|
+
model,
|
|
5141
|
+
method: "check" /* CHECK */,
|
|
5142
|
+
ids,
|
|
5143
|
+
with_context: withContext
|
|
5144
|
+
};
|
|
5145
|
+
return env?.requests.post(
|
|
5146
|
+
"/call" /* CALL_PATH */,
|
|
5147
|
+
jsonData,
|
|
5148
|
+
{
|
|
5149
|
+
headers: {
|
|
5150
|
+
"Content-Type": "application/json",
|
|
5151
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5152
|
+
}
|
|
5153
|
+
},
|
|
5154
|
+
service
|
|
5155
|
+
);
|
|
5156
|
+
},
|
|
5157
|
+
[env]
|
|
5158
|
+
);
|
|
5128
5159
|
return {
|
|
5129
5160
|
getView,
|
|
5130
5161
|
getMenu,
|
|
@@ -5155,7 +5186,8 @@ function useViewService() {
|
|
|
5155
5186
|
manageOnChange,
|
|
5156
5187
|
getOrderLine,
|
|
5157
5188
|
getProductImage,
|
|
5158
|
-
addEntity
|
|
5189
|
+
addEntity,
|
|
5190
|
+
checkPayment
|
|
5159
5191
|
};
|
|
5160
5192
|
}
|
|
5161
5193
|
|
|
@@ -6859,23 +6891,50 @@ var useAddEntity = () => {
|
|
|
6859
6891
|
model,
|
|
6860
6892
|
values,
|
|
6861
6893
|
xNode,
|
|
6862
|
-
service
|
|
6894
|
+
service,
|
|
6895
|
+
isCreateEndpoint = false
|
|
6863
6896
|
}) => {
|
|
6864
6897
|
return addEntity({
|
|
6865
6898
|
model,
|
|
6866
6899
|
values,
|
|
6867
6900
|
xNode,
|
|
6868
|
-
service
|
|
6901
|
+
service,
|
|
6902
|
+
isCreateEndpoint
|
|
6869
6903
|
});
|
|
6870
6904
|
}
|
|
6871
6905
|
});
|
|
6872
6906
|
};
|
|
6873
6907
|
var use_add_entity_default = useAddEntity;
|
|
6908
|
+
|
|
6909
|
+
// src/hooks/view/use-check-payment.ts
|
|
6910
|
+
var import_react_query86 = require("@tanstack/react-query");
|
|
6911
|
+
var useCheckPayment = () => {
|
|
6912
|
+
const { checkPayment } = useViewService();
|
|
6913
|
+
return (0, import_react_query86.useMutation)({
|
|
6914
|
+
mutationFn: ({
|
|
6915
|
+
model,
|
|
6916
|
+
ids,
|
|
6917
|
+
withContext,
|
|
6918
|
+
xNode,
|
|
6919
|
+
service
|
|
6920
|
+
}) => {
|
|
6921
|
+
return checkPayment({
|
|
6922
|
+
model,
|
|
6923
|
+
ids,
|
|
6924
|
+
withContext,
|
|
6925
|
+
xNode,
|
|
6926
|
+
service
|
|
6927
|
+
});
|
|
6928
|
+
}
|
|
6929
|
+
});
|
|
6930
|
+
};
|
|
6931
|
+
var use_check_payment_default = useCheckPayment;
|
|
6874
6932
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6875
6933
|
0 && (module.exports = {
|
|
6876
6934
|
useAddEntity,
|
|
6877
6935
|
useButton,
|
|
6878
6936
|
useChangeStatus,
|
|
6937
|
+
useCheckPayment,
|
|
6879
6938
|
useCreateEntity,
|
|
6880
6939
|
useCreateSession,
|
|
6881
6940
|
useDelete,
|
package/dist/hooks.mjs
CHANGED
|
@@ -35,6 +35,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
35
35
|
UriConstants2["LOGOUT"] = "/logout";
|
|
36
36
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
37
37
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
38
|
+
UriConstants2["CREATE_PATH"] = "/create";
|
|
38
39
|
return UriConstants2;
|
|
39
40
|
})(UriConstants || {});
|
|
40
41
|
|
|
@@ -4738,14 +4739,15 @@ function useViewService() {
|
|
|
4738
4739
|
model,
|
|
4739
4740
|
values,
|
|
4740
4741
|
xNode,
|
|
4741
|
-
service
|
|
4742
|
+
service,
|
|
4743
|
+
isCreateEndpoint = false
|
|
4742
4744
|
}) => {
|
|
4743
4745
|
const jsonData = {
|
|
4744
4746
|
model,
|
|
4745
4747
|
values
|
|
4746
4748
|
};
|
|
4747
4749
|
return env?.requests.post(
|
|
4748
|
-
"/call" /* CALL_PATH */,
|
|
4750
|
+
isCreateEndpoint ? "/create" /* CREATE_PATH */ : "/call" /* CALL_PATH */,
|
|
4749
4751
|
jsonData,
|
|
4750
4752
|
{
|
|
4751
4753
|
headers: {
|
|
@@ -5005,6 +5007,34 @@ function useViewService() {
|
|
|
5005
5007
|
},
|
|
5006
5008
|
[env]
|
|
5007
5009
|
);
|
|
5010
|
+
const checkPayment = useCallback10(
|
|
5011
|
+
({
|
|
5012
|
+
model,
|
|
5013
|
+
ids,
|
|
5014
|
+
withContext,
|
|
5015
|
+
xNode,
|
|
5016
|
+
service
|
|
5017
|
+
}) => {
|
|
5018
|
+
const jsonData = {
|
|
5019
|
+
model,
|
|
5020
|
+
method: "check" /* CHECK */,
|
|
5021
|
+
ids,
|
|
5022
|
+
with_context: withContext
|
|
5023
|
+
};
|
|
5024
|
+
return env?.requests.post(
|
|
5025
|
+
"/call" /* CALL_PATH */,
|
|
5026
|
+
jsonData,
|
|
5027
|
+
{
|
|
5028
|
+
headers: {
|
|
5029
|
+
"Content-Type": "application/json",
|
|
5030
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5031
|
+
}
|
|
5032
|
+
},
|
|
5033
|
+
service
|
|
5034
|
+
);
|
|
5035
|
+
},
|
|
5036
|
+
[env]
|
|
5037
|
+
);
|
|
5008
5038
|
return {
|
|
5009
5039
|
getView,
|
|
5010
5040
|
getMenu,
|
|
@@ -5035,7 +5065,8 @@ function useViewService() {
|
|
|
5035
5065
|
manageOnChange,
|
|
5036
5066
|
getOrderLine,
|
|
5037
5067
|
getProductImage,
|
|
5038
|
-
addEntity
|
|
5068
|
+
addEntity,
|
|
5069
|
+
checkPayment
|
|
5039
5070
|
};
|
|
5040
5071
|
}
|
|
5041
5072
|
|
|
@@ -6739,22 +6770,49 @@ var useAddEntity = () => {
|
|
|
6739
6770
|
model,
|
|
6740
6771
|
values,
|
|
6741
6772
|
xNode,
|
|
6742
|
-
service
|
|
6773
|
+
service,
|
|
6774
|
+
isCreateEndpoint = false
|
|
6743
6775
|
}) => {
|
|
6744
6776
|
return addEntity({
|
|
6745
6777
|
model,
|
|
6746
6778
|
values,
|
|
6747
6779
|
xNode,
|
|
6748
|
-
service
|
|
6780
|
+
service,
|
|
6781
|
+
isCreateEndpoint
|
|
6749
6782
|
});
|
|
6750
6783
|
}
|
|
6751
6784
|
});
|
|
6752
6785
|
};
|
|
6753
6786
|
var use_add_entity_default = useAddEntity;
|
|
6787
|
+
|
|
6788
|
+
// src/hooks/view/use-check-payment.ts
|
|
6789
|
+
import { useMutation as useMutation64 } from "@tanstack/react-query";
|
|
6790
|
+
var useCheckPayment = () => {
|
|
6791
|
+
const { checkPayment } = useViewService();
|
|
6792
|
+
return useMutation64({
|
|
6793
|
+
mutationFn: ({
|
|
6794
|
+
model,
|
|
6795
|
+
ids,
|
|
6796
|
+
withContext,
|
|
6797
|
+
xNode,
|
|
6798
|
+
service
|
|
6799
|
+
}) => {
|
|
6800
|
+
return checkPayment({
|
|
6801
|
+
model,
|
|
6802
|
+
ids,
|
|
6803
|
+
withContext,
|
|
6804
|
+
xNode,
|
|
6805
|
+
service
|
|
6806
|
+
});
|
|
6807
|
+
}
|
|
6808
|
+
});
|
|
6809
|
+
};
|
|
6810
|
+
var use_check_payment_default = useCheckPayment;
|
|
6754
6811
|
export {
|
|
6755
6812
|
use_add_entity_default as useAddEntity,
|
|
6756
6813
|
use_button_default as useButton,
|
|
6757
6814
|
use_change_status_default as useChangeStatus,
|
|
6815
|
+
use_check_payment_default as useCheckPayment,
|
|
6758
6816
|
use_create_entity_default as useCreateEntity,
|
|
6759
6817
|
use_create_session_default as useCreateSession,
|
|
6760
6818
|
use_delete_default as useDelete,
|
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, useGetProductImage, useAddEntity } 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, useAddEntity, useCheckPayment } from './hooks.mjs';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import './view-type-xxw9OeSR.mjs';
|
|
7
7
|
import './base-model-type-DD8uZnDP.mjs';
|
|
@@ -149,6 +149,7 @@ interface ServiceContextType {
|
|
|
149
149
|
useGetOrderLine: typeof useGetOrderLine;
|
|
150
150
|
useGetProductImage: typeof useGetProductImage;
|
|
151
151
|
useAddEntity: typeof useAddEntity;
|
|
152
|
+
useCheckPayment: typeof useCheckPayment;
|
|
152
153
|
}
|
|
153
154
|
declare const ServiceProvider: ({ children, }: {
|
|
154
155
|
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, useGetProductImage, useAddEntity } 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, useAddEntity, useCheckPayment } from './hooks.js';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import './view-type-xxw9OeSR.js';
|
|
7
7
|
import './base-model-type-DD8uZnDP.js';
|
|
@@ -149,6 +149,7 @@ interface ServiceContextType {
|
|
|
149
149
|
useGetOrderLine: typeof useGetOrderLine;
|
|
150
150
|
useGetProductImage: typeof useGetProductImage;
|
|
151
151
|
useAddEntity: typeof useAddEntity;
|
|
152
|
+
useCheckPayment: typeof useCheckPayment;
|
|
152
153
|
}
|
|
153
154
|
declare const ServiceProvider: ({ children, }: {
|
|
154
155
|
children: React.ReactNode;
|
package/dist/provider.js
CHANGED
|
@@ -728,6 +728,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
728
728
|
UriConstants2["LOGOUT"] = "/logout";
|
|
729
729
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
730
730
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
731
|
+
UriConstants2["CREATE_PATH"] = "/create";
|
|
731
732
|
return UriConstants2;
|
|
732
733
|
})(UriConstants || {});
|
|
733
734
|
|
|
@@ -4790,14 +4791,15 @@ function useViewService() {
|
|
|
4790
4791
|
model,
|
|
4791
4792
|
values,
|
|
4792
4793
|
xNode,
|
|
4793
|
-
service
|
|
4794
|
+
service,
|
|
4795
|
+
isCreateEndpoint = false
|
|
4794
4796
|
}) => {
|
|
4795
4797
|
const jsonData = {
|
|
4796
4798
|
model,
|
|
4797
4799
|
values
|
|
4798
4800
|
};
|
|
4799
4801
|
return env?.requests.post(
|
|
4800
|
-
"/call" /* CALL_PATH */,
|
|
4802
|
+
isCreateEndpoint ? "/create" /* CREATE_PATH */ : "/call" /* CALL_PATH */,
|
|
4801
4803
|
jsonData,
|
|
4802
4804
|
{
|
|
4803
4805
|
headers: {
|
|
@@ -5057,6 +5059,34 @@ function useViewService() {
|
|
|
5057
5059
|
},
|
|
5058
5060
|
[env]
|
|
5059
5061
|
);
|
|
5062
|
+
const checkPayment = (0, import_react10.useCallback)(
|
|
5063
|
+
({
|
|
5064
|
+
model,
|
|
5065
|
+
ids,
|
|
5066
|
+
withContext,
|
|
5067
|
+
xNode,
|
|
5068
|
+
service
|
|
5069
|
+
}) => {
|
|
5070
|
+
const jsonData = {
|
|
5071
|
+
model,
|
|
5072
|
+
method: "check" /* CHECK */,
|
|
5073
|
+
ids,
|
|
5074
|
+
with_context: withContext
|
|
5075
|
+
};
|
|
5076
|
+
return env?.requests.post(
|
|
5077
|
+
"/call" /* CALL_PATH */,
|
|
5078
|
+
jsonData,
|
|
5079
|
+
{
|
|
5080
|
+
headers: {
|
|
5081
|
+
"Content-Type": "application/json",
|
|
5082
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5083
|
+
}
|
|
5084
|
+
},
|
|
5085
|
+
service
|
|
5086
|
+
);
|
|
5087
|
+
},
|
|
5088
|
+
[env]
|
|
5089
|
+
);
|
|
5060
5090
|
return {
|
|
5061
5091
|
getView,
|
|
5062
5092
|
getMenu,
|
|
@@ -5087,7 +5117,8 @@ function useViewService() {
|
|
|
5087
5117
|
manageOnChange,
|
|
5088
5118
|
getOrderLine,
|
|
5089
5119
|
getProductImage,
|
|
5090
|
-
addEntity
|
|
5120
|
+
addEntity,
|
|
5121
|
+
checkPayment
|
|
5091
5122
|
};
|
|
5092
5123
|
}
|
|
5093
5124
|
|
|
@@ -7209,19 +7240,45 @@ var useAddEntity = () => {
|
|
|
7209
7240
|
model,
|
|
7210
7241
|
values,
|
|
7211
7242
|
xNode,
|
|
7212
|
-
service
|
|
7243
|
+
service,
|
|
7244
|
+
isCreateEndpoint = false
|
|
7213
7245
|
}) => {
|
|
7214
7246
|
return addEntity({
|
|
7215
7247
|
model,
|
|
7216
7248
|
values,
|
|
7217
7249
|
xNode,
|
|
7218
|
-
service
|
|
7250
|
+
service,
|
|
7251
|
+
isCreateEndpoint
|
|
7219
7252
|
});
|
|
7220
7253
|
}
|
|
7221
7254
|
});
|
|
7222
7255
|
};
|
|
7223
7256
|
var use_add_entity_default = useAddEntity;
|
|
7224
7257
|
|
|
7258
|
+
// src/hooks/view/use-check-payment.ts
|
|
7259
|
+
var import_react_query86 = require("@tanstack/react-query");
|
|
7260
|
+
var useCheckPayment = () => {
|
|
7261
|
+
const { checkPayment } = useViewService();
|
|
7262
|
+
return (0, import_react_query86.useMutation)({
|
|
7263
|
+
mutationFn: ({
|
|
7264
|
+
model,
|
|
7265
|
+
ids,
|
|
7266
|
+
withContext,
|
|
7267
|
+
xNode,
|
|
7268
|
+
service
|
|
7269
|
+
}) => {
|
|
7270
|
+
return checkPayment({
|
|
7271
|
+
model,
|
|
7272
|
+
ids,
|
|
7273
|
+
withContext,
|
|
7274
|
+
xNode,
|
|
7275
|
+
service
|
|
7276
|
+
});
|
|
7277
|
+
}
|
|
7278
|
+
});
|
|
7279
|
+
};
|
|
7280
|
+
var use_check_payment_default = useCheckPayment;
|
|
7281
|
+
|
|
7225
7282
|
// src/provider/service-provider.tsx
|
|
7226
7283
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
7227
7284
|
var ServiceContext = (0, import_react13.createContext)(null);
|
|
@@ -7313,7 +7370,8 @@ var ServiceProvider = ({
|
|
|
7313
7370
|
useGenSerialNumber: use_gen_serial_number_default,
|
|
7314
7371
|
useGetOrderLine: use_get_order_line_default,
|
|
7315
7372
|
useGetProductImage: use_get_product_image_default,
|
|
7316
|
-
useAddEntity: use_add_entity_default
|
|
7373
|
+
useAddEntity: use_add_entity_default,
|
|
7374
|
+
useCheckPayment: use_check_payment_default
|
|
7317
7375
|
};
|
|
7318
7376
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ServiceContext.Provider, { value: services, children });
|
|
7319
7377
|
};
|
package/dist/provider.mjs
CHANGED
|
@@ -685,6 +685,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
685
685
|
UriConstants2["LOGOUT"] = "/logout";
|
|
686
686
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
687
687
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
688
|
+
UriConstants2["CREATE_PATH"] = "/create";
|
|
688
689
|
return UriConstants2;
|
|
689
690
|
})(UriConstants || {});
|
|
690
691
|
|
|
@@ -4747,14 +4748,15 @@ function useViewService() {
|
|
|
4747
4748
|
model,
|
|
4748
4749
|
values,
|
|
4749
4750
|
xNode,
|
|
4750
|
-
service
|
|
4751
|
+
service,
|
|
4752
|
+
isCreateEndpoint = false
|
|
4751
4753
|
}) => {
|
|
4752
4754
|
const jsonData = {
|
|
4753
4755
|
model,
|
|
4754
4756
|
values
|
|
4755
4757
|
};
|
|
4756
4758
|
return env?.requests.post(
|
|
4757
|
-
"/call" /* CALL_PATH */,
|
|
4759
|
+
isCreateEndpoint ? "/create" /* CREATE_PATH */ : "/call" /* CALL_PATH */,
|
|
4758
4760
|
jsonData,
|
|
4759
4761
|
{
|
|
4760
4762
|
headers: {
|
|
@@ -5014,6 +5016,34 @@ function useViewService() {
|
|
|
5014
5016
|
},
|
|
5015
5017
|
[env]
|
|
5016
5018
|
);
|
|
5019
|
+
const checkPayment = useCallback9(
|
|
5020
|
+
({
|
|
5021
|
+
model,
|
|
5022
|
+
ids,
|
|
5023
|
+
withContext,
|
|
5024
|
+
xNode,
|
|
5025
|
+
service
|
|
5026
|
+
}) => {
|
|
5027
|
+
const jsonData = {
|
|
5028
|
+
model,
|
|
5029
|
+
method: "check" /* CHECK */,
|
|
5030
|
+
ids,
|
|
5031
|
+
with_context: withContext
|
|
5032
|
+
};
|
|
5033
|
+
return env?.requests.post(
|
|
5034
|
+
"/call" /* CALL_PATH */,
|
|
5035
|
+
jsonData,
|
|
5036
|
+
{
|
|
5037
|
+
headers: {
|
|
5038
|
+
"Content-Type": "application/json",
|
|
5039
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5040
|
+
}
|
|
5041
|
+
},
|
|
5042
|
+
service
|
|
5043
|
+
);
|
|
5044
|
+
},
|
|
5045
|
+
[env]
|
|
5046
|
+
);
|
|
5017
5047
|
return {
|
|
5018
5048
|
getView,
|
|
5019
5049
|
getMenu,
|
|
@@ -5044,7 +5074,8 @@ function useViewService() {
|
|
|
5044
5074
|
manageOnChange,
|
|
5045
5075
|
getOrderLine,
|
|
5046
5076
|
getProductImage,
|
|
5047
|
-
addEntity
|
|
5077
|
+
addEntity,
|
|
5078
|
+
checkPayment
|
|
5048
5079
|
};
|
|
5049
5080
|
}
|
|
5050
5081
|
|
|
@@ -7166,19 +7197,45 @@ var useAddEntity = () => {
|
|
|
7166
7197
|
model,
|
|
7167
7198
|
values,
|
|
7168
7199
|
xNode,
|
|
7169
|
-
service
|
|
7200
|
+
service,
|
|
7201
|
+
isCreateEndpoint = false
|
|
7170
7202
|
}) => {
|
|
7171
7203
|
return addEntity({
|
|
7172
7204
|
model,
|
|
7173
7205
|
values,
|
|
7174
7206
|
xNode,
|
|
7175
|
-
service
|
|
7207
|
+
service,
|
|
7208
|
+
isCreateEndpoint
|
|
7176
7209
|
});
|
|
7177
7210
|
}
|
|
7178
7211
|
});
|
|
7179
7212
|
};
|
|
7180
7213
|
var use_add_entity_default = useAddEntity;
|
|
7181
7214
|
|
|
7215
|
+
// src/hooks/view/use-check-payment.ts
|
|
7216
|
+
import { useMutation as useMutation64 } from "@tanstack/react-query";
|
|
7217
|
+
var useCheckPayment = () => {
|
|
7218
|
+
const { checkPayment } = useViewService();
|
|
7219
|
+
return useMutation64({
|
|
7220
|
+
mutationFn: ({
|
|
7221
|
+
model,
|
|
7222
|
+
ids,
|
|
7223
|
+
withContext,
|
|
7224
|
+
xNode,
|
|
7225
|
+
service
|
|
7226
|
+
}) => {
|
|
7227
|
+
return checkPayment({
|
|
7228
|
+
model,
|
|
7229
|
+
ids,
|
|
7230
|
+
withContext,
|
|
7231
|
+
xNode,
|
|
7232
|
+
service
|
|
7233
|
+
});
|
|
7234
|
+
}
|
|
7235
|
+
});
|
|
7236
|
+
};
|
|
7237
|
+
var use_check_payment_default = useCheckPayment;
|
|
7238
|
+
|
|
7182
7239
|
// src/provider/service-provider.tsx
|
|
7183
7240
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
7184
7241
|
var ServiceContext = createContext2(null);
|
|
@@ -7270,7 +7327,8 @@ var ServiceProvider = ({
|
|
|
7270
7327
|
useGenSerialNumber: use_gen_serial_number_default,
|
|
7271
7328
|
useGetOrderLine: use_get_order_line_default,
|
|
7272
7329
|
useGetProductImage: use_get_product_image_default,
|
|
7273
|
-
useAddEntity: use_add_entity_default
|
|
7330
|
+
useAddEntity: use_add_entity_default,
|
|
7331
|
+
useCheckPayment: use_check_payment_default
|
|
7274
7332
|
};
|
|
7275
7333
|
return /* @__PURE__ */ jsx6(ServiceContext.Provider, { value: services, children });
|
|
7276
7334
|
};
|
package/dist/services.d.mts
CHANGED
|
@@ -380,11 +380,19 @@ declare function useViewService(): {
|
|
|
380
380
|
service: string;
|
|
381
381
|
xNode: string;
|
|
382
382
|
}) => any;
|
|
383
|
-
addEntity: ({ model, values, xNode, service, }: {
|
|
383
|
+
addEntity: ({ model, values, xNode, service, isCreateEndpoint, }: {
|
|
384
384
|
model: string;
|
|
385
385
|
values: any;
|
|
386
386
|
service: string;
|
|
387
387
|
xNode: string;
|
|
388
|
+
isCreateEndpoint?: boolean;
|
|
389
|
+
}) => any;
|
|
390
|
+
checkPayment: ({ model, ids, withContext, xNode, service, }: {
|
|
391
|
+
model: string;
|
|
392
|
+
ids: any;
|
|
393
|
+
withContext: any;
|
|
394
|
+
service: string;
|
|
395
|
+
xNode: string;
|
|
388
396
|
}) => any;
|
|
389
397
|
};
|
|
390
398
|
|
package/dist/services.d.ts
CHANGED
|
@@ -380,11 +380,19 @@ declare function useViewService(): {
|
|
|
380
380
|
service: string;
|
|
381
381
|
xNode: string;
|
|
382
382
|
}) => any;
|
|
383
|
-
addEntity: ({ model, values, xNode, service, }: {
|
|
383
|
+
addEntity: ({ model, values, xNode, service, isCreateEndpoint, }: {
|
|
384
384
|
model: string;
|
|
385
385
|
values: any;
|
|
386
386
|
service: string;
|
|
387
387
|
xNode: string;
|
|
388
|
+
isCreateEndpoint?: boolean;
|
|
389
|
+
}) => any;
|
|
390
|
+
checkPayment: ({ model, ids, withContext, xNode, service, }: {
|
|
391
|
+
model: string;
|
|
392
|
+
ids: any;
|
|
393
|
+
withContext: any;
|
|
394
|
+
service: string;
|
|
395
|
+
xNode: string;
|
|
388
396
|
}) => any;
|
|
389
397
|
};
|
|
390
398
|
|
package/dist/services.js
CHANGED
|
@@ -76,6 +76,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
76
76
|
UriConstants2["LOGOUT"] = "/logout";
|
|
77
77
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
78
78
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
79
|
+
UriConstants2["CREATE_PATH"] = "/create";
|
|
79
80
|
return UriConstants2;
|
|
80
81
|
})(UriConstants || {});
|
|
81
82
|
|
|
@@ -3101,6 +3102,9 @@ var import_react_query84 = require("@tanstack/react-query");
|
|
|
3101
3102
|
// src/hooks/view/use-add-entity.ts
|
|
3102
3103
|
var import_react_query85 = require("@tanstack/react-query");
|
|
3103
3104
|
|
|
3105
|
+
// src/hooks/view/use-check-payment.ts
|
|
3106
|
+
var import_react_query86 = require("@tanstack/react-query");
|
|
3107
|
+
|
|
3104
3108
|
// src/provider/service-provider.tsx
|
|
3105
3109
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
3106
3110
|
var ServiceContext = (0, import_react4.createContext)(null);
|
|
@@ -5008,14 +5012,15 @@ function useViewService() {
|
|
|
5008
5012
|
model,
|
|
5009
5013
|
values,
|
|
5010
5014
|
xNode,
|
|
5011
|
-
service
|
|
5015
|
+
service,
|
|
5016
|
+
isCreateEndpoint = false
|
|
5012
5017
|
}) => {
|
|
5013
5018
|
const jsonData = {
|
|
5014
5019
|
model,
|
|
5015
5020
|
values
|
|
5016
5021
|
};
|
|
5017
5022
|
return env?.requests.post(
|
|
5018
|
-
"/call" /* CALL_PATH */,
|
|
5023
|
+
isCreateEndpoint ? "/create" /* CREATE_PATH */ : "/call" /* CALL_PATH */,
|
|
5019
5024
|
jsonData,
|
|
5020
5025
|
{
|
|
5021
5026
|
headers: {
|
|
@@ -5275,6 +5280,34 @@ function useViewService() {
|
|
|
5275
5280
|
},
|
|
5276
5281
|
[env]
|
|
5277
5282
|
);
|
|
5283
|
+
const checkPayment = (0, import_react14.useCallback)(
|
|
5284
|
+
({
|
|
5285
|
+
model,
|
|
5286
|
+
ids,
|
|
5287
|
+
withContext,
|
|
5288
|
+
xNode,
|
|
5289
|
+
service
|
|
5290
|
+
}) => {
|
|
5291
|
+
const jsonData = {
|
|
5292
|
+
model,
|
|
5293
|
+
method: "check" /* CHECK */,
|
|
5294
|
+
ids,
|
|
5295
|
+
with_context: withContext
|
|
5296
|
+
};
|
|
5297
|
+
return env?.requests.post(
|
|
5298
|
+
"/call" /* CALL_PATH */,
|
|
5299
|
+
jsonData,
|
|
5300
|
+
{
|
|
5301
|
+
headers: {
|
|
5302
|
+
"Content-Type": "application/json",
|
|
5303
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5304
|
+
}
|
|
5305
|
+
},
|
|
5306
|
+
service
|
|
5307
|
+
);
|
|
5308
|
+
},
|
|
5309
|
+
[env]
|
|
5310
|
+
);
|
|
5278
5311
|
return {
|
|
5279
5312
|
getView,
|
|
5280
5313
|
getMenu,
|
|
@@ -5305,7 +5338,8 @@ function useViewService() {
|
|
|
5305
5338
|
manageOnChange,
|
|
5306
5339
|
getOrderLine,
|
|
5307
5340
|
getProductImage,
|
|
5308
|
-
addEntity
|
|
5341
|
+
addEntity,
|
|
5342
|
+
checkPayment
|
|
5309
5343
|
};
|
|
5310
5344
|
}
|
|
5311
5345
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/services.mjs
CHANGED
|
@@ -32,6 +32,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
32
32
|
UriConstants2["LOGOUT"] = "/logout";
|
|
33
33
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
34
34
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
35
|
+
UriConstants2["CREATE_PATH"] = "/create";
|
|
35
36
|
return UriConstants2;
|
|
36
37
|
})(UriConstants || {});
|
|
37
38
|
|
|
@@ -3057,6 +3058,9 @@ import { useMutation as useMutation62 } from "@tanstack/react-query";
|
|
|
3057
3058
|
// src/hooks/view/use-add-entity.ts
|
|
3058
3059
|
import { useMutation as useMutation63 } from "@tanstack/react-query";
|
|
3059
3060
|
|
|
3061
|
+
// src/hooks/view/use-check-payment.ts
|
|
3062
|
+
import { useMutation as useMutation64 } from "@tanstack/react-query";
|
|
3063
|
+
|
|
3060
3064
|
// src/provider/service-provider.tsx
|
|
3061
3065
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
3062
3066
|
var ServiceContext = createContext2(null);
|
|
@@ -4964,14 +4968,15 @@ function useViewService() {
|
|
|
4964
4968
|
model,
|
|
4965
4969
|
values,
|
|
4966
4970
|
xNode,
|
|
4967
|
-
service
|
|
4971
|
+
service,
|
|
4972
|
+
isCreateEndpoint = false
|
|
4968
4973
|
}) => {
|
|
4969
4974
|
const jsonData = {
|
|
4970
4975
|
model,
|
|
4971
4976
|
values
|
|
4972
4977
|
};
|
|
4973
4978
|
return env?.requests.post(
|
|
4974
|
-
"/call" /* CALL_PATH */,
|
|
4979
|
+
isCreateEndpoint ? "/create" /* CREATE_PATH */ : "/call" /* CALL_PATH */,
|
|
4975
4980
|
jsonData,
|
|
4976
4981
|
{
|
|
4977
4982
|
headers: {
|
|
@@ -5231,6 +5236,34 @@ function useViewService() {
|
|
|
5231
5236
|
},
|
|
5232
5237
|
[env]
|
|
5233
5238
|
);
|
|
5239
|
+
const checkPayment = useCallback10(
|
|
5240
|
+
({
|
|
5241
|
+
model,
|
|
5242
|
+
ids,
|
|
5243
|
+
withContext,
|
|
5244
|
+
xNode,
|
|
5245
|
+
service
|
|
5246
|
+
}) => {
|
|
5247
|
+
const jsonData = {
|
|
5248
|
+
model,
|
|
5249
|
+
method: "check" /* CHECK */,
|
|
5250
|
+
ids,
|
|
5251
|
+
with_context: withContext
|
|
5252
|
+
};
|
|
5253
|
+
return env?.requests.post(
|
|
5254
|
+
"/call" /* CALL_PATH */,
|
|
5255
|
+
jsonData,
|
|
5256
|
+
{
|
|
5257
|
+
headers: {
|
|
5258
|
+
"Content-Type": "application/json",
|
|
5259
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5260
|
+
}
|
|
5261
|
+
},
|
|
5262
|
+
service
|
|
5263
|
+
);
|
|
5264
|
+
},
|
|
5265
|
+
[env]
|
|
5266
|
+
);
|
|
5234
5267
|
return {
|
|
5235
5268
|
getView,
|
|
5236
5269
|
getMenu,
|
|
@@ -5261,7 +5294,8 @@ function useViewService() {
|
|
|
5261
5294
|
manageOnChange,
|
|
5262
5295
|
getOrderLine,
|
|
5263
5296
|
getProductImage,
|
|
5264
|
-
addEntity
|
|
5297
|
+
addEntity,
|
|
5298
|
+
checkPayment
|
|
5265
5299
|
};
|
|
5266
5300
|
}
|
|
5267
5301
|
export {
|
package/package.json
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/interface-logic",
|
|
3
|
-
"version": "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": "2.9.1",
|
|
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
|
+
}
|