@fctc/interface-logic 3.0.4 → 3.0.5
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 +20 -2
- package/dist/hooks.d.ts +20 -2
- package/dist/hooks.js +123 -9
- package/dist/hooks.mjs +121 -9
- package/dist/provider.d.mts +3 -1
- package/dist/provider.d.ts +3 -1
- package/dist/provider.js +122 -10
- package/dist/provider.mjs +122 -10
- package/dist/services.d.mts +15 -1
- package/dist/services.d.ts +15 -1
- package/dist/services.js +75 -7
- package/dist/services.mjs +75 -7
- package/package.json +1 -1
package/dist/constants.d.mts
CHANGED
package/dist/constants.d.ts
CHANGED
package/dist/constants.js
CHANGED
|
@@ -65,6 +65,7 @@ var MethodConstants = /* @__PURE__ */ ((MethodConstants2) => {
|
|
|
65
65
|
MethodConstants2["CREATE"] = "create";
|
|
66
66
|
MethodConstants2["LOAD_DATA"] = "load_data";
|
|
67
67
|
MethodConstants2["CHECK"] = "check";
|
|
68
|
+
MethodConstants2["GET_CLOSING_CONTROL_DATA"] = "get_closing_control_data";
|
|
68
69
|
return MethodConstants2;
|
|
69
70
|
})(MethodConstants || {});
|
|
70
71
|
|
package/dist/constants.mjs
CHANGED
|
@@ -27,6 +27,7 @@ var MethodConstants = /* @__PURE__ */ ((MethodConstants2) => {
|
|
|
27
27
|
MethodConstants2["CREATE"] = "create";
|
|
28
28
|
MethodConstants2["LOAD_DATA"] = "load_data";
|
|
29
29
|
MethodConstants2["CHECK"] = "check";
|
|
30
|
+
MethodConstants2["GET_CLOSING_CONTROL_DATA"] = "get_closing_control_data";
|
|
30
31
|
return MethodConstants2;
|
|
31
32
|
})(MethodConstants || {});
|
|
32
33
|
|
package/dist/hooks.d.mts
CHANGED
|
@@ -42,7 +42,9 @@ declare const useValidateActionToken: () => _tanstack_react_query.UseMutationRes
|
|
|
42
42
|
actionToken: string;
|
|
43
43
|
}, unknown>;
|
|
44
44
|
|
|
45
|
-
declare const useGetCompanyInfo: (
|
|
45
|
+
declare const useGetCompanyInfo: ({ service }: {
|
|
46
|
+
service?: string;
|
|
47
|
+
}) => _tanstack_react_query.UseMutationResult<any, Error, number, unknown>;
|
|
46
48
|
|
|
47
49
|
declare const useGetCurrentCompany: ({ service }: {
|
|
48
50
|
service?: string;
|
|
@@ -526,4 +528,20 @@ declare const useCheckPayment: () => _tanstack_react_query.UseMutationResult<unk
|
|
|
526
528
|
xNode: string;
|
|
527
529
|
}, unknown>;
|
|
528
530
|
|
|
529
|
-
|
|
531
|
+
declare const useGetDataCloseSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
532
|
+
model: string;
|
|
533
|
+
ids: any;
|
|
534
|
+
service: string;
|
|
535
|
+
xNode: string;
|
|
536
|
+
}, unknown>;
|
|
537
|
+
|
|
538
|
+
declare const useGetDetailEntity: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
539
|
+
model: string;
|
|
540
|
+
ids: any;
|
|
541
|
+
method: string;
|
|
542
|
+
service: string;
|
|
543
|
+
xNode: string;
|
|
544
|
+
kwargs: any;
|
|
545
|
+
}, unknown>;
|
|
546
|
+
|
|
547
|
+
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, useGetDataCloseSession, useGetDetail, useGetDetailEntity, 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
|
@@ -42,7 +42,9 @@ declare const useValidateActionToken: () => _tanstack_react_query.UseMutationRes
|
|
|
42
42
|
actionToken: string;
|
|
43
43
|
}, unknown>;
|
|
44
44
|
|
|
45
|
-
declare const useGetCompanyInfo: (
|
|
45
|
+
declare const useGetCompanyInfo: ({ service }: {
|
|
46
|
+
service?: string;
|
|
47
|
+
}) => _tanstack_react_query.UseMutationResult<any, Error, number, unknown>;
|
|
46
48
|
|
|
47
49
|
declare const useGetCurrentCompany: ({ service }: {
|
|
48
50
|
service?: string;
|
|
@@ -526,4 +528,20 @@ declare const useCheckPayment: () => _tanstack_react_query.UseMutationResult<unk
|
|
|
526
528
|
xNode: string;
|
|
527
529
|
}, unknown>;
|
|
528
530
|
|
|
529
|
-
|
|
531
|
+
declare const useGetDataCloseSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
532
|
+
model: string;
|
|
533
|
+
ids: any;
|
|
534
|
+
service: string;
|
|
535
|
+
xNode: string;
|
|
536
|
+
}, unknown>;
|
|
537
|
+
|
|
538
|
+
declare const useGetDetailEntity: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
539
|
+
model: string;
|
|
540
|
+
ids: any;
|
|
541
|
+
method: string;
|
|
542
|
+
service: string;
|
|
543
|
+
xNode: string;
|
|
544
|
+
kwargs: any;
|
|
545
|
+
}, unknown>;
|
|
546
|
+
|
|
547
|
+
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, useGetDataCloseSession, useGetDetail, useGetDetailEntity, 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
|
@@ -56,7 +56,9 @@ __export(hooks_exports, {
|
|
|
56
56
|
useGetConversionRate: () => use_get_conversion_rate_default,
|
|
57
57
|
useGetCurrency: () => use_get_currency_default,
|
|
58
58
|
useGetCurrentCompany: () => use_get_current_company_default,
|
|
59
|
+
useGetDataCloseSession: () => use_get_data_close_session_default,
|
|
59
60
|
useGetDetail: () => use_get_detail_default,
|
|
61
|
+
useGetDetailEntity: () => use_get_detail_entity_default,
|
|
60
62
|
useGetFieldExport: () => use_get_field_export_default,
|
|
61
63
|
useGetFieldOnChange: () => use_get_field_onchange_default,
|
|
62
64
|
useGetFileExcel: () => use_get_file_excel_default,
|
|
@@ -3402,7 +3404,7 @@ function useCompanyService() {
|
|
|
3402
3404
|
[env]
|
|
3403
3405
|
);
|
|
3404
3406
|
const getInfoCompany = (0, import_react8.useCallback)(
|
|
3405
|
-
async (id) => {
|
|
3407
|
+
async (id, service) => {
|
|
3406
3408
|
const jsonData = {
|
|
3407
3409
|
ids: [id],
|
|
3408
3410
|
model: "res.company" /* COMPANY */,
|
|
@@ -3417,11 +3419,16 @@ function useCompanyService() {
|
|
|
3417
3419
|
}
|
|
3418
3420
|
}
|
|
3419
3421
|
};
|
|
3420
|
-
return await env.requests.post(
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3422
|
+
return await env.requests.post(
|
|
3423
|
+
"/call" /* CALL_PATH */,
|
|
3424
|
+
jsonData,
|
|
3425
|
+
{
|
|
3426
|
+
headers: {
|
|
3427
|
+
"Content-Type": "application/json"
|
|
3428
|
+
}
|
|
3429
|
+
},
|
|
3430
|
+
service
|
|
3431
|
+
);
|
|
3425
3432
|
},
|
|
3426
3433
|
[env]
|
|
3427
3434
|
);
|
|
@@ -5224,6 +5231,61 @@ function useViewService() {
|
|
|
5224
5231
|
},
|
|
5225
5232
|
[env]
|
|
5226
5233
|
);
|
|
5234
|
+
const getDataCloseSession = (0, import_react14.useCallback)(
|
|
5235
|
+
({
|
|
5236
|
+
model,
|
|
5237
|
+
ids,
|
|
5238
|
+
xNode,
|
|
5239
|
+
service
|
|
5240
|
+
}) => {
|
|
5241
|
+
const jsonData = {
|
|
5242
|
+
model,
|
|
5243
|
+
ids,
|
|
5244
|
+
method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
|
|
5245
|
+
};
|
|
5246
|
+
return env?.requests.post(
|
|
5247
|
+
"/call" /* CALL_PATH */,
|
|
5248
|
+
jsonData,
|
|
5249
|
+
{
|
|
5250
|
+
headers: {
|
|
5251
|
+
"Content-Type": "application/json",
|
|
5252
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5253
|
+
}
|
|
5254
|
+
},
|
|
5255
|
+
service
|
|
5256
|
+
);
|
|
5257
|
+
},
|
|
5258
|
+
[env]
|
|
5259
|
+
);
|
|
5260
|
+
const getDetailEntity = (0, import_react14.useCallback)(
|
|
5261
|
+
({
|
|
5262
|
+
model,
|
|
5263
|
+
ids,
|
|
5264
|
+
method,
|
|
5265
|
+
xNode,
|
|
5266
|
+
service,
|
|
5267
|
+
kwargs
|
|
5268
|
+
}) => {
|
|
5269
|
+
const jsonData = {
|
|
5270
|
+
model,
|
|
5271
|
+
ids,
|
|
5272
|
+
method,
|
|
5273
|
+
kwargs
|
|
5274
|
+
};
|
|
5275
|
+
return env?.requests.post(
|
|
5276
|
+
"/call" /* CALL_PATH */,
|
|
5277
|
+
jsonData,
|
|
5278
|
+
{
|
|
5279
|
+
headers: {
|
|
5280
|
+
"Content-Type": "application/json",
|
|
5281
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5282
|
+
}
|
|
5283
|
+
},
|
|
5284
|
+
service
|
|
5285
|
+
);
|
|
5286
|
+
},
|
|
5287
|
+
[env]
|
|
5288
|
+
);
|
|
5227
5289
|
return {
|
|
5228
5290
|
getView,
|
|
5229
5291
|
getMenu,
|
|
@@ -5255,7 +5317,9 @@ function useViewService() {
|
|
|
5255
5317
|
getOrderLine,
|
|
5256
5318
|
getProductImage,
|
|
5257
5319
|
addEntity,
|
|
5258
|
-
checkPayment
|
|
5320
|
+
checkPayment,
|
|
5321
|
+
getDataCloseSession,
|
|
5322
|
+
getDetailEntity
|
|
5259
5323
|
};
|
|
5260
5324
|
}
|
|
5261
5325
|
|
|
@@ -5416,10 +5480,10 @@ var use_validate_action_token_default = useValidateActionToken;
|
|
|
5416
5480
|
|
|
5417
5481
|
// src/hooks/company/use-get-company-info.ts
|
|
5418
5482
|
var import_react_query15 = require("@tanstack/react-query");
|
|
5419
|
-
var useGetCompanyInfo = () => {
|
|
5483
|
+
var useGetCompanyInfo = ({ service }) => {
|
|
5420
5484
|
const { getInfoCompany } = useCompanyService();
|
|
5421
5485
|
return (0, import_react_query15.useMutation)({
|
|
5422
|
-
mutationFn: (id) => getInfoCompany(id)
|
|
5486
|
+
mutationFn: (id) => getInfoCompany(id, service)
|
|
5423
5487
|
});
|
|
5424
5488
|
};
|
|
5425
5489
|
var use_get_company_info_default = useGetCompanyInfo;
|
|
@@ -7031,6 +7095,54 @@ var useCheckPayment = () => {
|
|
|
7031
7095
|
});
|
|
7032
7096
|
};
|
|
7033
7097
|
var use_check_payment_default = useCheckPayment;
|
|
7098
|
+
|
|
7099
|
+
// src/hooks/view/use-get-data-close-session.ts
|
|
7100
|
+
var import_react_query87 = require("@tanstack/react-query");
|
|
7101
|
+
var useGetDataCloseSession = () => {
|
|
7102
|
+
const { getDataCloseSession } = useViewService();
|
|
7103
|
+
return (0, import_react_query87.useMutation)({
|
|
7104
|
+
mutationFn: ({
|
|
7105
|
+
model,
|
|
7106
|
+
ids,
|
|
7107
|
+
xNode,
|
|
7108
|
+
service
|
|
7109
|
+
}) => {
|
|
7110
|
+
return getDataCloseSession({
|
|
7111
|
+
model,
|
|
7112
|
+
ids,
|
|
7113
|
+
xNode,
|
|
7114
|
+
service
|
|
7115
|
+
});
|
|
7116
|
+
}
|
|
7117
|
+
});
|
|
7118
|
+
};
|
|
7119
|
+
var use_get_data_close_session_default = useGetDataCloseSession;
|
|
7120
|
+
|
|
7121
|
+
// src/hooks/view/use-get-detail-entity.ts
|
|
7122
|
+
var import_react_query88 = require("@tanstack/react-query");
|
|
7123
|
+
var useGetDetailEntity = () => {
|
|
7124
|
+
const { getDetailEntity } = useViewService();
|
|
7125
|
+
return (0, import_react_query88.useMutation)({
|
|
7126
|
+
mutationFn: ({
|
|
7127
|
+
model,
|
|
7128
|
+
ids,
|
|
7129
|
+
method,
|
|
7130
|
+
xNode,
|
|
7131
|
+
service,
|
|
7132
|
+
kwargs
|
|
7133
|
+
}) => {
|
|
7134
|
+
return getDetailEntity({
|
|
7135
|
+
model,
|
|
7136
|
+
ids,
|
|
7137
|
+
method,
|
|
7138
|
+
xNode,
|
|
7139
|
+
service,
|
|
7140
|
+
kwargs
|
|
7141
|
+
});
|
|
7142
|
+
}
|
|
7143
|
+
});
|
|
7144
|
+
};
|
|
7145
|
+
var use_get_detail_entity_default = useGetDetailEntity;
|
|
7034
7146
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7035
7147
|
0 && (module.exports = {
|
|
7036
7148
|
useAddEntity,
|
|
@@ -7059,7 +7171,9 @@ var use_check_payment_default = useCheckPayment;
|
|
|
7059
7171
|
useGetConversionRate,
|
|
7060
7172
|
useGetCurrency,
|
|
7061
7173
|
useGetCurrentCompany,
|
|
7174
|
+
useGetDataCloseSession,
|
|
7062
7175
|
useGetDetail,
|
|
7176
|
+
useGetDetailEntity,
|
|
7063
7177
|
useGetFieldExport,
|
|
7064
7178
|
useGetFieldOnChange,
|
|
7065
7179
|
useGetFileExcel,
|
package/dist/hooks.mjs
CHANGED
|
@@ -3281,7 +3281,7 @@ function useCompanyService() {
|
|
|
3281
3281
|
[env]
|
|
3282
3282
|
);
|
|
3283
3283
|
const getInfoCompany = useCallback4(
|
|
3284
|
-
async (id) => {
|
|
3284
|
+
async (id, service) => {
|
|
3285
3285
|
const jsonData = {
|
|
3286
3286
|
ids: [id],
|
|
3287
3287
|
model: "res.company" /* COMPANY */,
|
|
@@ -3296,11 +3296,16 @@ function useCompanyService() {
|
|
|
3296
3296
|
}
|
|
3297
3297
|
}
|
|
3298
3298
|
};
|
|
3299
|
-
return await env.requests.post(
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3299
|
+
return await env.requests.post(
|
|
3300
|
+
"/call" /* CALL_PATH */,
|
|
3301
|
+
jsonData,
|
|
3302
|
+
{
|
|
3303
|
+
headers: {
|
|
3304
|
+
"Content-Type": "application/json"
|
|
3305
|
+
}
|
|
3306
|
+
},
|
|
3307
|
+
service
|
|
3308
|
+
);
|
|
3304
3309
|
},
|
|
3305
3310
|
[env]
|
|
3306
3311
|
);
|
|
@@ -5103,6 +5108,61 @@ function useViewService() {
|
|
|
5103
5108
|
},
|
|
5104
5109
|
[env]
|
|
5105
5110
|
);
|
|
5111
|
+
const getDataCloseSession = useCallback10(
|
|
5112
|
+
({
|
|
5113
|
+
model,
|
|
5114
|
+
ids,
|
|
5115
|
+
xNode,
|
|
5116
|
+
service
|
|
5117
|
+
}) => {
|
|
5118
|
+
const jsonData = {
|
|
5119
|
+
model,
|
|
5120
|
+
ids,
|
|
5121
|
+
method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
|
|
5122
|
+
};
|
|
5123
|
+
return env?.requests.post(
|
|
5124
|
+
"/call" /* CALL_PATH */,
|
|
5125
|
+
jsonData,
|
|
5126
|
+
{
|
|
5127
|
+
headers: {
|
|
5128
|
+
"Content-Type": "application/json",
|
|
5129
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5130
|
+
}
|
|
5131
|
+
},
|
|
5132
|
+
service
|
|
5133
|
+
);
|
|
5134
|
+
},
|
|
5135
|
+
[env]
|
|
5136
|
+
);
|
|
5137
|
+
const getDetailEntity = useCallback10(
|
|
5138
|
+
({
|
|
5139
|
+
model,
|
|
5140
|
+
ids,
|
|
5141
|
+
method,
|
|
5142
|
+
xNode,
|
|
5143
|
+
service,
|
|
5144
|
+
kwargs
|
|
5145
|
+
}) => {
|
|
5146
|
+
const jsonData = {
|
|
5147
|
+
model,
|
|
5148
|
+
ids,
|
|
5149
|
+
method,
|
|
5150
|
+
kwargs
|
|
5151
|
+
};
|
|
5152
|
+
return env?.requests.post(
|
|
5153
|
+
"/call" /* CALL_PATH */,
|
|
5154
|
+
jsonData,
|
|
5155
|
+
{
|
|
5156
|
+
headers: {
|
|
5157
|
+
"Content-Type": "application/json",
|
|
5158
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5159
|
+
}
|
|
5160
|
+
},
|
|
5161
|
+
service
|
|
5162
|
+
);
|
|
5163
|
+
},
|
|
5164
|
+
[env]
|
|
5165
|
+
);
|
|
5106
5166
|
return {
|
|
5107
5167
|
getView,
|
|
5108
5168
|
getMenu,
|
|
@@ -5134,7 +5194,9 @@ function useViewService() {
|
|
|
5134
5194
|
getOrderLine,
|
|
5135
5195
|
getProductImage,
|
|
5136
5196
|
addEntity,
|
|
5137
|
-
checkPayment
|
|
5197
|
+
checkPayment,
|
|
5198
|
+
getDataCloseSession,
|
|
5199
|
+
getDetailEntity
|
|
5138
5200
|
};
|
|
5139
5201
|
}
|
|
5140
5202
|
|
|
@@ -5295,10 +5357,10 @@ var use_validate_action_token_default = useValidateActionToken;
|
|
|
5295
5357
|
|
|
5296
5358
|
// src/hooks/company/use-get-company-info.ts
|
|
5297
5359
|
import { useMutation as useMutation13 } from "@tanstack/react-query";
|
|
5298
|
-
var useGetCompanyInfo = () => {
|
|
5360
|
+
var useGetCompanyInfo = ({ service }) => {
|
|
5299
5361
|
const { getInfoCompany } = useCompanyService();
|
|
5300
5362
|
return useMutation13({
|
|
5301
|
-
mutationFn: (id) => getInfoCompany(id)
|
|
5363
|
+
mutationFn: (id) => getInfoCompany(id, service)
|
|
5302
5364
|
});
|
|
5303
5365
|
};
|
|
5304
5366
|
var use_get_company_info_default = useGetCompanyInfo;
|
|
@@ -6910,6 +6972,54 @@ var useCheckPayment = () => {
|
|
|
6910
6972
|
});
|
|
6911
6973
|
};
|
|
6912
6974
|
var use_check_payment_default = useCheckPayment;
|
|
6975
|
+
|
|
6976
|
+
// src/hooks/view/use-get-data-close-session.ts
|
|
6977
|
+
import { useMutation as useMutation65 } from "@tanstack/react-query";
|
|
6978
|
+
var useGetDataCloseSession = () => {
|
|
6979
|
+
const { getDataCloseSession } = useViewService();
|
|
6980
|
+
return useMutation65({
|
|
6981
|
+
mutationFn: ({
|
|
6982
|
+
model,
|
|
6983
|
+
ids,
|
|
6984
|
+
xNode,
|
|
6985
|
+
service
|
|
6986
|
+
}) => {
|
|
6987
|
+
return getDataCloseSession({
|
|
6988
|
+
model,
|
|
6989
|
+
ids,
|
|
6990
|
+
xNode,
|
|
6991
|
+
service
|
|
6992
|
+
});
|
|
6993
|
+
}
|
|
6994
|
+
});
|
|
6995
|
+
};
|
|
6996
|
+
var use_get_data_close_session_default = useGetDataCloseSession;
|
|
6997
|
+
|
|
6998
|
+
// src/hooks/view/use-get-detail-entity.ts
|
|
6999
|
+
import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
7000
|
+
var useGetDetailEntity = () => {
|
|
7001
|
+
const { getDetailEntity } = useViewService();
|
|
7002
|
+
return useMutation66({
|
|
7003
|
+
mutationFn: ({
|
|
7004
|
+
model,
|
|
7005
|
+
ids,
|
|
7006
|
+
method,
|
|
7007
|
+
xNode,
|
|
7008
|
+
service,
|
|
7009
|
+
kwargs
|
|
7010
|
+
}) => {
|
|
7011
|
+
return getDetailEntity({
|
|
7012
|
+
model,
|
|
7013
|
+
ids,
|
|
7014
|
+
method,
|
|
7015
|
+
xNode,
|
|
7016
|
+
service,
|
|
7017
|
+
kwargs
|
|
7018
|
+
});
|
|
7019
|
+
}
|
|
7020
|
+
});
|
|
7021
|
+
};
|
|
7022
|
+
var use_get_detail_entity_default = useGetDetailEntity;
|
|
6913
7023
|
export {
|
|
6914
7024
|
use_add_entity_default as useAddEntity,
|
|
6915
7025
|
use_button_default as useButton,
|
|
@@ -6937,7 +7047,9 @@ export {
|
|
|
6937
7047
|
use_get_conversion_rate_default as useGetConversionRate,
|
|
6938
7048
|
use_get_currency_default as useGetCurrency,
|
|
6939
7049
|
use_get_current_company_default as useGetCurrentCompany,
|
|
7050
|
+
use_get_data_close_session_default as useGetDataCloseSession,
|
|
6940
7051
|
use_get_detail_default as useGetDetail,
|
|
7052
|
+
use_get_detail_entity_default as useGetDetailEntity,
|
|
6941
7053
|
use_get_field_export_default as useGetFieldExport,
|
|
6942
7054
|
use_get_field_onchange_default as useGetFieldOnChange,
|
|
6943
7055
|
use_get_file_excel_default as useGetFileExcel,
|
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 } from './local-storage-BPvoMGYJ.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';
|
|
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, useGetDataCloseSession, useGetDetailEntity } from './hooks.mjs';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import './view-type-xxw9OeSR.mjs';
|
|
7
7
|
import './base-model-type-DD8uZnDP.mjs';
|
|
@@ -151,6 +151,8 @@ interface ServiceContextType {
|
|
|
151
151
|
useGetProductImage: typeof useGetProductImage;
|
|
152
152
|
useAddEntity: typeof useAddEntity;
|
|
153
153
|
useCheckPayment: typeof useCheckPayment;
|
|
154
|
+
useGetDataCloseSession: typeof useGetDataCloseSession;
|
|
155
|
+
useGetDetailEntity: typeof useGetDetailEntity;
|
|
154
156
|
}
|
|
155
157
|
declare const ServiceProvider: ({ children, }: {
|
|
156
158
|
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 } from './local-storage-BPvoMGYJ.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';
|
|
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, useGetDataCloseSession, useGetDetailEntity } from './hooks.js';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import './view-type-xxw9OeSR.js';
|
|
7
7
|
import './base-model-type-DD8uZnDP.js';
|
|
@@ -151,6 +151,8 @@ interface ServiceContextType {
|
|
|
151
151
|
useGetProductImage: typeof useGetProductImage;
|
|
152
152
|
useAddEntity: typeof useAddEntity;
|
|
153
153
|
useCheckPayment: typeof useCheckPayment;
|
|
154
|
+
useGetDataCloseSession: typeof useGetDataCloseSession;
|
|
155
|
+
useGetDetailEntity: typeof useGetDetailEntity;
|
|
154
156
|
}
|
|
155
157
|
declare const ServiceProvider: ({ children, }: {
|
|
156
158
|
children: React.ReactNode;
|
package/dist/provider.js
CHANGED
|
@@ -3401,7 +3401,7 @@ function useCompanyService() {
|
|
|
3401
3401
|
[env]
|
|
3402
3402
|
);
|
|
3403
3403
|
const getInfoCompany = (0, import_react4.useCallback)(
|
|
3404
|
-
async (id) => {
|
|
3404
|
+
async (id, service) => {
|
|
3405
3405
|
const jsonData = {
|
|
3406
3406
|
ids: [id],
|
|
3407
3407
|
model: "res.company" /* COMPANY */,
|
|
@@ -3416,11 +3416,16 @@ function useCompanyService() {
|
|
|
3416
3416
|
}
|
|
3417
3417
|
}
|
|
3418
3418
|
};
|
|
3419
|
-
return await env.requests.post(
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3419
|
+
return await env.requests.post(
|
|
3420
|
+
"/call" /* CALL_PATH */,
|
|
3421
|
+
jsonData,
|
|
3422
|
+
{
|
|
3423
|
+
headers: {
|
|
3424
|
+
"Content-Type": "application/json"
|
|
3425
|
+
}
|
|
3426
|
+
},
|
|
3427
|
+
service
|
|
3428
|
+
);
|
|
3424
3429
|
},
|
|
3425
3430
|
[env]
|
|
3426
3431
|
);
|
|
@@ -5223,6 +5228,61 @@ function useViewService() {
|
|
|
5223
5228
|
},
|
|
5224
5229
|
[env]
|
|
5225
5230
|
);
|
|
5231
|
+
const getDataCloseSession = (0, import_react10.useCallback)(
|
|
5232
|
+
({
|
|
5233
|
+
model,
|
|
5234
|
+
ids,
|
|
5235
|
+
xNode,
|
|
5236
|
+
service
|
|
5237
|
+
}) => {
|
|
5238
|
+
const jsonData = {
|
|
5239
|
+
model,
|
|
5240
|
+
ids,
|
|
5241
|
+
method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
|
|
5242
|
+
};
|
|
5243
|
+
return env?.requests.post(
|
|
5244
|
+
"/call" /* CALL_PATH */,
|
|
5245
|
+
jsonData,
|
|
5246
|
+
{
|
|
5247
|
+
headers: {
|
|
5248
|
+
"Content-Type": "application/json",
|
|
5249
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5250
|
+
}
|
|
5251
|
+
},
|
|
5252
|
+
service
|
|
5253
|
+
);
|
|
5254
|
+
},
|
|
5255
|
+
[env]
|
|
5256
|
+
);
|
|
5257
|
+
const getDetailEntity = (0, import_react10.useCallback)(
|
|
5258
|
+
({
|
|
5259
|
+
model,
|
|
5260
|
+
ids,
|
|
5261
|
+
method,
|
|
5262
|
+
xNode,
|
|
5263
|
+
service,
|
|
5264
|
+
kwargs
|
|
5265
|
+
}) => {
|
|
5266
|
+
const jsonData = {
|
|
5267
|
+
model,
|
|
5268
|
+
ids,
|
|
5269
|
+
method,
|
|
5270
|
+
kwargs
|
|
5271
|
+
};
|
|
5272
|
+
return env?.requests.post(
|
|
5273
|
+
"/call" /* CALL_PATH */,
|
|
5274
|
+
jsonData,
|
|
5275
|
+
{
|
|
5276
|
+
headers: {
|
|
5277
|
+
"Content-Type": "application/json",
|
|
5278
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5279
|
+
}
|
|
5280
|
+
},
|
|
5281
|
+
service
|
|
5282
|
+
);
|
|
5283
|
+
},
|
|
5284
|
+
[env]
|
|
5285
|
+
);
|
|
5226
5286
|
return {
|
|
5227
5287
|
getView,
|
|
5228
5288
|
getMenu,
|
|
@@ -5254,7 +5314,9 @@ function useViewService() {
|
|
|
5254
5314
|
getOrderLine,
|
|
5255
5315
|
getProductImage,
|
|
5256
5316
|
addEntity,
|
|
5257
|
-
checkPayment
|
|
5317
|
+
checkPayment,
|
|
5318
|
+
getDataCloseSession,
|
|
5319
|
+
getDetailEntity
|
|
5258
5320
|
};
|
|
5259
5321
|
}
|
|
5260
5322
|
|
|
@@ -5797,10 +5859,10 @@ var use_validate_action_token_default = useValidateActionToken;
|
|
|
5797
5859
|
|
|
5798
5860
|
// src/hooks/company/use-get-company-info.ts
|
|
5799
5861
|
var import_react_query15 = require("@tanstack/react-query");
|
|
5800
|
-
var useGetCompanyInfo = () => {
|
|
5862
|
+
var useGetCompanyInfo = ({ service }) => {
|
|
5801
5863
|
const { getInfoCompany } = useCompanyService();
|
|
5802
5864
|
return (0, import_react_query15.useMutation)({
|
|
5803
|
-
mutationFn: (id) => getInfoCompany(id)
|
|
5865
|
+
mutationFn: (id) => getInfoCompany(id, service)
|
|
5804
5866
|
});
|
|
5805
5867
|
};
|
|
5806
5868
|
var use_get_company_info_default = useGetCompanyInfo;
|
|
@@ -7413,6 +7475,54 @@ var useCheckPayment = () => {
|
|
|
7413
7475
|
};
|
|
7414
7476
|
var use_check_payment_default = useCheckPayment;
|
|
7415
7477
|
|
|
7478
|
+
// src/hooks/view/use-get-data-close-session.ts
|
|
7479
|
+
var import_react_query87 = require("@tanstack/react-query");
|
|
7480
|
+
var useGetDataCloseSession = () => {
|
|
7481
|
+
const { getDataCloseSession } = useViewService();
|
|
7482
|
+
return (0, import_react_query87.useMutation)({
|
|
7483
|
+
mutationFn: ({
|
|
7484
|
+
model,
|
|
7485
|
+
ids,
|
|
7486
|
+
xNode,
|
|
7487
|
+
service
|
|
7488
|
+
}) => {
|
|
7489
|
+
return getDataCloseSession({
|
|
7490
|
+
model,
|
|
7491
|
+
ids,
|
|
7492
|
+
xNode,
|
|
7493
|
+
service
|
|
7494
|
+
});
|
|
7495
|
+
}
|
|
7496
|
+
});
|
|
7497
|
+
};
|
|
7498
|
+
var use_get_data_close_session_default = useGetDataCloseSession;
|
|
7499
|
+
|
|
7500
|
+
// src/hooks/view/use-get-detail-entity.ts
|
|
7501
|
+
var import_react_query88 = require("@tanstack/react-query");
|
|
7502
|
+
var useGetDetailEntity = () => {
|
|
7503
|
+
const { getDetailEntity } = useViewService();
|
|
7504
|
+
return (0, import_react_query88.useMutation)({
|
|
7505
|
+
mutationFn: ({
|
|
7506
|
+
model,
|
|
7507
|
+
ids,
|
|
7508
|
+
method,
|
|
7509
|
+
xNode,
|
|
7510
|
+
service,
|
|
7511
|
+
kwargs
|
|
7512
|
+
}) => {
|
|
7513
|
+
return getDetailEntity({
|
|
7514
|
+
model,
|
|
7515
|
+
ids,
|
|
7516
|
+
method,
|
|
7517
|
+
xNode,
|
|
7518
|
+
service,
|
|
7519
|
+
kwargs
|
|
7520
|
+
});
|
|
7521
|
+
}
|
|
7522
|
+
});
|
|
7523
|
+
};
|
|
7524
|
+
var use_get_detail_entity_default = useGetDetailEntity;
|
|
7525
|
+
|
|
7416
7526
|
// src/provider/service-provider.tsx
|
|
7417
7527
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
7418
7528
|
var ServiceContext = (0, import_react13.createContext)(null);
|
|
@@ -7505,7 +7615,9 @@ var ServiceProvider = ({
|
|
|
7505
7615
|
useGetOrderLine: use_get_order_line_default,
|
|
7506
7616
|
useGetProductImage: use_get_product_image_default,
|
|
7507
7617
|
useAddEntity: use_add_entity_default,
|
|
7508
|
-
useCheckPayment: use_check_payment_default
|
|
7618
|
+
useCheckPayment: use_check_payment_default,
|
|
7619
|
+
useGetDataCloseSession: use_get_data_close_session_default,
|
|
7620
|
+
useGetDetailEntity: use_get_detail_entity_default
|
|
7509
7621
|
};
|
|
7510
7622
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ServiceContext.Provider, { value: services, children });
|
|
7511
7623
|
};
|
package/dist/provider.mjs
CHANGED
|
@@ -3358,7 +3358,7 @@ function useCompanyService() {
|
|
|
3358
3358
|
[env]
|
|
3359
3359
|
);
|
|
3360
3360
|
const getInfoCompany = useCallback3(
|
|
3361
|
-
async (id) => {
|
|
3361
|
+
async (id, service) => {
|
|
3362
3362
|
const jsonData = {
|
|
3363
3363
|
ids: [id],
|
|
3364
3364
|
model: "res.company" /* COMPANY */,
|
|
@@ -3373,11 +3373,16 @@ function useCompanyService() {
|
|
|
3373
3373
|
}
|
|
3374
3374
|
}
|
|
3375
3375
|
};
|
|
3376
|
-
return await env.requests.post(
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3376
|
+
return await env.requests.post(
|
|
3377
|
+
"/call" /* CALL_PATH */,
|
|
3378
|
+
jsonData,
|
|
3379
|
+
{
|
|
3380
|
+
headers: {
|
|
3381
|
+
"Content-Type": "application/json"
|
|
3382
|
+
}
|
|
3383
|
+
},
|
|
3384
|
+
service
|
|
3385
|
+
);
|
|
3381
3386
|
},
|
|
3382
3387
|
[env]
|
|
3383
3388
|
);
|
|
@@ -5180,6 +5185,61 @@ function useViewService() {
|
|
|
5180
5185
|
},
|
|
5181
5186
|
[env]
|
|
5182
5187
|
);
|
|
5188
|
+
const getDataCloseSession = useCallback9(
|
|
5189
|
+
({
|
|
5190
|
+
model,
|
|
5191
|
+
ids,
|
|
5192
|
+
xNode,
|
|
5193
|
+
service
|
|
5194
|
+
}) => {
|
|
5195
|
+
const jsonData = {
|
|
5196
|
+
model,
|
|
5197
|
+
ids,
|
|
5198
|
+
method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
|
|
5199
|
+
};
|
|
5200
|
+
return env?.requests.post(
|
|
5201
|
+
"/call" /* CALL_PATH */,
|
|
5202
|
+
jsonData,
|
|
5203
|
+
{
|
|
5204
|
+
headers: {
|
|
5205
|
+
"Content-Type": "application/json",
|
|
5206
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5207
|
+
}
|
|
5208
|
+
},
|
|
5209
|
+
service
|
|
5210
|
+
);
|
|
5211
|
+
},
|
|
5212
|
+
[env]
|
|
5213
|
+
);
|
|
5214
|
+
const getDetailEntity = useCallback9(
|
|
5215
|
+
({
|
|
5216
|
+
model,
|
|
5217
|
+
ids,
|
|
5218
|
+
method,
|
|
5219
|
+
xNode,
|
|
5220
|
+
service,
|
|
5221
|
+
kwargs
|
|
5222
|
+
}) => {
|
|
5223
|
+
const jsonData = {
|
|
5224
|
+
model,
|
|
5225
|
+
ids,
|
|
5226
|
+
method,
|
|
5227
|
+
kwargs
|
|
5228
|
+
};
|
|
5229
|
+
return env?.requests.post(
|
|
5230
|
+
"/call" /* CALL_PATH */,
|
|
5231
|
+
jsonData,
|
|
5232
|
+
{
|
|
5233
|
+
headers: {
|
|
5234
|
+
"Content-Type": "application/json",
|
|
5235
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5236
|
+
}
|
|
5237
|
+
},
|
|
5238
|
+
service
|
|
5239
|
+
);
|
|
5240
|
+
},
|
|
5241
|
+
[env]
|
|
5242
|
+
);
|
|
5183
5243
|
return {
|
|
5184
5244
|
getView,
|
|
5185
5245
|
getMenu,
|
|
@@ -5211,7 +5271,9 @@ function useViewService() {
|
|
|
5211
5271
|
getOrderLine,
|
|
5212
5272
|
getProductImage,
|
|
5213
5273
|
addEntity,
|
|
5214
|
-
checkPayment
|
|
5274
|
+
checkPayment,
|
|
5275
|
+
getDataCloseSession,
|
|
5276
|
+
getDetailEntity
|
|
5215
5277
|
};
|
|
5216
5278
|
}
|
|
5217
5279
|
|
|
@@ -5754,10 +5816,10 @@ var use_validate_action_token_default = useValidateActionToken;
|
|
|
5754
5816
|
|
|
5755
5817
|
// src/hooks/company/use-get-company-info.ts
|
|
5756
5818
|
import { useMutation as useMutation13 } from "@tanstack/react-query";
|
|
5757
|
-
var useGetCompanyInfo = () => {
|
|
5819
|
+
var useGetCompanyInfo = ({ service }) => {
|
|
5758
5820
|
const { getInfoCompany } = useCompanyService();
|
|
5759
5821
|
return useMutation13({
|
|
5760
|
-
mutationFn: (id) => getInfoCompany(id)
|
|
5822
|
+
mutationFn: (id) => getInfoCompany(id, service)
|
|
5761
5823
|
});
|
|
5762
5824
|
};
|
|
5763
5825
|
var use_get_company_info_default = useGetCompanyInfo;
|
|
@@ -7370,6 +7432,54 @@ var useCheckPayment = () => {
|
|
|
7370
7432
|
};
|
|
7371
7433
|
var use_check_payment_default = useCheckPayment;
|
|
7372
7434
|
|
|
7435
|
+
// src/hooks/view/use-get-data-close-session.ts
|
|
7436
|
+
import { useMutation as useMutation65 } from "@tanstack/react-query";
|
|
7437
|
+
var useGetDataCloseSession = () => {
|
|
7438
|
+
const { getDataCloseSession } = useViewService();
|
|
7439
|
+
return useMutation65({
|
|
7440
|
+
mutationFn: ({
|
|
7441
|
+
model,
|
|
7442
|
+
ids,
|
|
7443
|
+
xNode,
|
|
7444
|
+
service
|
|
7445
|
+
}) => {
|
|
7446
|
+
return getDataCloseSession({
|
|
7447
|
+
model,
|
|
7448
|
+
ids,
|
|
7449
|
+
xNode,
|
|
7450
|
+
service
|
|
7451
|
+
});
|
|
7452
|
+
}
|
|
7453
|
+
});
|
|
7454
|
+
};
|
|
7455
|
+
var use_get_data_close_session_default = useGetDataCloseSession;
|
|
7456
|
+
|
|
7457
|
+
// src/hooks/view/use-get-detail-entity.ts
|
|
7458
|
+
import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
7459
|
+
var useGetDetailEntity = () => {
|
|
7460
|
+
const { getDetailEntity } = useViewService();
|
|
7461
|
+
return useMutation66({
|
|
7462
|
+
mutationFn: ({
|
|
7463
|
+
model,
|
|
7464
|
+
ids,
|
|
7465
|
+
method,
|
|
7466
|
+
xNode,
|
|
7467
|
+
service,
|
|
7468
|
+
kwargs
|
|
7469
|
+
}) => {
|
|
7470
|
+
return getDetailEntity({
|
|
7471
|
+
model,
|
|
7472
|
+
ids,
|
|
7473
|
+
method,
|
|
7474
|
+
xNode,
|
|
7475
|
+
service,
|
|
7476
|
+
kwargs
|
|
7477
|
+
});
|
|
7478
|
+
}
|
|
7479
|
+
});
|
|
7480
|
+
};
|
|
7481
|
+
var use_get_detail_entity_default = useGetDetailEntity;
|
|
7482
|
+
|
|
7373
7483
|
// src/provider/service-provider.tsx
|
|
7374
7484
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
7375
7485
|
var ServiceContext = createContext2(null);
|
|
@@ -7462,7 +7572,9 @@ var ServiceProvider = ({
|
|
|
7462
7572
|
useGetOrderLine: use_get_order_line_default,
|
|
7463
7573
|
useGetProductImage: use_get_product_image_default,
|
|
7464
7574
|
useAddEntity: use_add_entity_default,
|
|
7465
|
-
useCheckPayment: use_check_payment_default
|
|
7575
|
+
useCheckPayment: use_check_payment_default,
|
|
7576
|
+
useGetDataCloseSession: use_get_data_close_session_default,
|
|
7577
|
+
useGetDetailEntity: use_get_detail_entity_default
|
|
7466
7578
|
};
|
|
7467
7579
|
return /* @__PURE__ */ jsx6(ServiceContext.Provider, { value: services, children });
|
|
7468
7580
|
};
|
package/dist/services.d.mts
CHANGED
|
@@ -80,7 +80,7 @@ declare function useAuthService(): {
|
|
|
80
80
|
|
|
81
81
|
declare function useCompanyService(): {
|
|
82
82
|
getCurrentCompany: (service?: string) => Promise<any>;
|
|
83
|
-
getInfoCompany: (id: number) => Promise<any>;
|
|
83
|
+
getInfoCompany: (id: number, service: any) => Promise<any>;
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
declare function useExcelService(): {
|
|
@@ -408,6 +408,20 @@ declare function useViewService(): {
|
|
|
408
408
|
service: string;
|
|
409
409
|
xNode: string;
|
|
410
410
|
}) => any;
|
|
411
|
+
getDataCloseSession: ({ model, ids, xNode, service, }: {
|
|
412
|
+
model: string;
|
|
413
|
+
ids: any;
|
|
414
|
+
service: string;
|
|
415
|
+
xNode: string;
|
|
416
|
+
}) => any;
|
|
417
|
+
getDetailEntity: ({ model, ids, method, xNode, service, kwargs, }: {
|
|
418
|
+
model: string;
|
|
419
|
+
ids: any;
|
|
420
|
+
method: string;
|
|
421
|
+
service: string;
|
|
422
|
+
xNode: string;
|
|
423
|
+
kwargs: any;
|
|
424
|
+
}) => any;
|
|
411
425
|
};
|
|
412
426
|
|
|
413
427
|
export { useActionService, useAuthService, useCompanyService, useExcelService, useFormService, useKanbanService, useModelService, useUserService, useViewService };
|
package/dist/services.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ declare function useAuthService(): {
|
|
|
80
80
|
|
|
81
81
|
declare function useCompanyService(): {
|
|
82
82
|
getCurrentCompany: (service?: string) => Promise<any>;
|
|
83
|
-
getInfoCompany: (id: number) => Promise<any>;
|
|
83
|
+
getInfoCompany: (id: number, service: any) => Promise<any>;
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
declare function useExcelService(): {
|
|
@@ -408,6 +408,20 @@ declare function useViewService(): {
|
|
|
408
408
|
service: string;
|
|
409
409
|
xNode: string;
|
|
410
410
|
}) => any;
|
|
411
|
+
getDataCloseSession: ({ model, ids, xNode, service, }: {
|
|
412
|
+
model: string;
|
|
413
|
+
ids: any;
|
|
414
|
+
service: string;
|
|
415
|
+
xNode: string;
|
|
416
|
+
}) => any;
|
|
417
|
+
getDetailEntity: ({ model, ids, method, xNode, service, kwargs, }: {
|
|
418
|
+
model: string;
|
|
419
|
+
ids: any;
|
|
420
|
+
method: string;
|
|
421
|
+
service: string;
|
|
422
|
+
xNode: string;
|
|
423
|
+
kwargs: any;
|
|
424
|
+
}) => any;
|
|
411
425
|
};
|
|
412
426
|
|
|
413
427
|
export { useActionService, useAuthService, useCompanyService, useExcelService, useFormService, useKanbanService, useModelService, useUserService, useViewService };
|
package/dist/services.js
CHANGED
|
@@ -3105,6 +3105,12 @@ var import_react_query85 = require("@tanstack/react-query");
|
|
|
3105
3105
|
// src/hooks/view/use-check-payment.ts
|
|
3106
3106
|
var import_react_query86 = require("@tanstack/react-query");
|
|
3107
3107
|
|
|
3108
|
+
// src/hooks/view/use-get-data-close-session.ts
|
|
3109
|
+
var import_react_query87 = require("@tanstack/react-query");
|
|
3110
|
+
|
|
3111
|
+
// src/hooks/view/use-get-detail-entity.ts
|
|
3112
|
+
var import_react_query88 = require("@tanstack/react-query");
|
|
3113
|
+
|
|
3108
3114
|
// src/provider/service-provider.tsx
|
|
3109
3115
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
3110
3116
|
var ServiceContext = (0, import_react4.createContext)(null);
|
|
@@ -3554,7 +3560,7 @@ function useCompanyService() {
|
|
|
3554
3560
|
[env]
|
|
3555
3561
|
);
|
|
3556
3562
|
const getInfoCompany = (0, import_react8.useCallback)(
|
|
3557
|
-
async (id) => {
|
|
3563
|
+
async (id, service) => {
|
|
3558
3564
|
const jsonData = {
|
|
3559
3565
|
ids: [id],
|
|
3560
3566
|
model: "res.company" /* COMPANY */,
|
|
@@ -3569,11 +3575,16 @@ function useCompanyService() {
|
|
|
3569
3575
|
}
|
|
3570
3576
|
}
|
|
3571
3577
|
};
|
|
3572
|
-
return await env.requests.post(
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3578
|
+
return await env.requests.post(
|
|
3579
|
+
"/call" /* CALL_PATH */,
|
|
3580
|
+
jsonData,
|
|
3581
|
+
{
|
|
3582
|
+
headers: {
|
|
3583
|
+
"Content-Type": "application/json"
|
|
3584
|
+
}
|
|
3585
|
+
},
|
|
3586
|
+
service
|
|
3587
|
+
);
|
|
3577
3588
|
},
|
|
3578
3589
|
[env]
|
|
3579
3590
|
);
|
|
@@ -5376,6 +5387,61 @@ function useViewService() {
|
|
|
5376
5387
|
},
|
|
5377
5388
|
[env]
|
|
5378
5389
|
);
|
|
5390
|
+
const getDataCloseSession = (0, import_react14.useCallback)(
|
|
5391
|
+
({
|
|
5392
|
+
model,
|
|
5393
|
+
ids,
|
|
5394
|
+
xNode,
|
|
5395
|
+
service
|
|
5396
|
+
}) => {
|
|
5397
|
+
const jsonData = {
|
|
5398
|
+
model,
|
|
5399
|
+
ids,
|
|
5400
|
+
method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
|
|
5401
|
+
};
|
|
5402
|
+
return env?.requests.post(
|
|
5403
|
+
"/call" /* CALL_PATH */,
|
|
5404
|
+
jsonData,
|
|
5405
|
+
{
|
|
5406
|
+
headers: {
|
|
5407
|
+
"Content-Type": "application/json",
|
|
5408
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5409
|
+
}
|
|
5410
|
+
},
|
|
5411
|
+
service
|
|
5412
|
+
);
|
|
5413
|
+
},
|
|
5414
|
+
[env]
|
|
5415
|
+
);
|
|
5416
|
+
const getDetailEntity = (0, import_react14.useCallback)(
|
|
5417
|
+
({
|
|
5418
|
+
model,
|
|
5419
|
+
ids,
|
|
5420
|
+
method,
|
|
5421
|
+
xNode,
|
|
5422
|
+
service,
|
|
5423
|
+
kwargs
|
|
5424
|
+
}) => {
|
|
5425
|
+
const jsonData = {
|
|
5426
|
+
model,
|
|
5427
|
+
ids,
|
|
5428
|
+
method,
|
|
5429
|
+
kwargs
|
|
5430
|
+
};
|
|
5431
|
+
return env?.requests.post(
|
|
5432
|
+
"/call" /* CALL_PATH */,
|
|
5433
|
+
jsonData,
|
|
5434
|
+
{
|
|
5435
|
+
headers: {
|
|
5436
|
+
"Content-Type": "application/json",
|
|
5437
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5438
|
+
}
|
|
5439
|
+
},
|
|
5440
|
+
service
|
|
5441
|
+
);
|
|
5442
|
+
},
|
|
5443
|
+
[env]
|
|
5444
|
+
);
|
|
5379
5445
|
return {
|
|
5380
5446
|
getView,
|
|
5381
5447
|
getMenu,
|
|
@@ -5407,7 +5473,9 @@ function useViewService() {
|
|
|
5407
5473
|
getOrderLine,
|
|
5408
5474
|
getProductImage,
|
|
5409
5475
|
addEntity,
|
|
5410
|
-
checkPayment
|
|
5476
|
+
checkPayment,
|
|
5477
|
+
getDataCloseSession,
|
|
5478
|
+
getDetailEntity
|
|
5411
5479
|
};
|
|
5412
5480
|
}
|
|
5413
5481
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/services.mjs
CHANGED
|
@@ -3061,6 +3061,12 @@ import { useMutation as useMutation63 } from "@tanstack/react-query";
|
|
|
3061
3061
|
// src/hooks/view/use-check-payment.ts
|
|
3062
3062
|
import { useMutation as useMutation64 } from "@tanstack/react-query";
|
|
3063
3063
|
|
|
3064
|
+
// src/hooks/view/use-get-data-close-session.ts
|
|
3065
|
+
import { useMutation as useMutation65 } from "@tanstack/react-query";
|
|
3066
|
+
|
|
3067
|
+
// src/hooks/view/use-get-detail-entity.ts
|
|
3068
|
+
import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
3069
|
+
|
|
3064
3070
|
// src/provider/service-provider.tsx
|
|
3065
3071
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
3066
3072
|
var ServiceContext = createContext2(null);
|
|
@@ -3510,7 +3516,7 @@ function useCompanyService() {
|
|
|
3510
3516
|
[env]
|
|
3511
3517
|
);
|
|
3512
3518
|
const getInfoCompany = useCallback4(
|
|
3513
|
-
async (id) => {
|
|
3519
|
+
async (id, service) => {
|
|
3514
3520
|
const jsonData = {
|
|
3515
3521
|
ids: [id],
|
|
3516
3522
|
model: "res.company" /* COMPANY */,
|
|
@@ -3525,11 +3531,16 @@ function useCompanyService() {
|
|
|
3525
3531
|
}
|
|
3526
3532
|
}
|
|
3527
3533
|
};
|
|
3528
|
-
return await env.requests.post(
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3534
|
+
return await env.requests.post(
|
|
3535
|
+
"/call" /* CALL_PATH */,
|
|
3536
|
+
jsonData,
|
|
3537
|
+
{
|
|
3538
|
+
headers: {
|
|
3539
|
+
"Content-Type": "application/json"
|
|
3540
|
+
}
|
|
3541
|
+
},
|
|
3542
|
+
service
|
|
3543
|
+
);
|
|
3533
3544
|
},
|
|
3534
3545
|
[env]
|
|
3535
3546
|
);
|
|
@@ -5332,6 +5343,61 @@ function useViewService() {
|
|
|
5332
5343
|
},
|
|
5333
5344
|
[env]
|
|
5334
5345
|
);
|
|
5346
|
+
const getDataCloseSession = useCallback10(
|
|
5347
|
+
({
|
|
5348
|
+
model,
|
|
5349
|
+
ids,
|
|
5350
|
+
xNode,
|
|
5351
|
+
service
|
|
5352
|
+
}) => {
|
|
5353
|
+
const jsonData = {
|
|
5354
|
+
model,
|
|
5355
|
+
ids,
|
|
5356
|
+
method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
|
|
5357
|
+
};
|
|
5358
|
+
return env?.requests.post(
|
|
5359
|
+
"/call" /* CALL_PATH */,
|
|
5360
|
+
jsonData,
|
|
5361
|
+
{
|
|
5362
|
+
headers: {
|
|
5363
|
+
"Content-Type": "application/json",
|
|
5364
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5365
|
+
}
|
|
5366
|
+
},
|
|
5367
|
+
service
|
|
5368
|
+
);
|
|
5369
|
+
},
|
|
5370
|
+
[env]
|
|
5371
|
+
);
|
|
5372
|
+
const getDetailEntity = useCallback10(
|
|
5373
|
+
({
|
|
5374
|
+
model,
|
|
5375
|
+
ids,
|
|
5376
|
+
method,
|
|
5377
|
+
xNode,
|
|
5378
|
+
service,
|
|
5379
|
+
kwargs
|
|
5380
|
+
}) => {
|
|
5381
|
+
const jsonData = {
|
|
5382
|
+
model,
|
|
5383
|
+
ids,
|
|
5384
|
+
method,
|
|
5385
|
+
kwargs
|
|
5386
|
+
};
|
|
5387
|
+
return env?.requests.post(
|
|
5388
|
+
"/call" /* CALL_PATH */,
|
|
5389
|
+
jsonData,
|
|
5390
|
+
{
|
|
5391
|
+
headers: {
|
|
5392
|
+
"Content-Type": "application/json",
|
|
5393
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5394
|
+
}
|
|
5395
|
+
},
|
|
5396
|
+
service
|
|
5397
|
+
);
|
|
5398
|
+
},
|
|
5399
|
+
[env]
|
|
5400
|
+
);
|
|
5335
5401
|
return {
|
|
5336
5402
|
getView,
|
|
5337
5403
|
getMenu,
|
|
@@ -5363,7 +5429,9 @@ function useViewService() {
|
|
|
5363
5429
|
getOrderLine,
|
|
5364
5430
|
getProductImage,
|
|
5365
5431
|
addEntity,
|
|
5366
|
-
checkPayment
|
|
5432
|
+
checkPayment,
|
|
5433
|
+
getDataCloseSession,
|
|
5434
|
+
getDetailEntity
|
|
5367
5435
|
};
|
|
5368
5436
|
}
|
|
5369
5437
|
export {
|