@fctc/interface-logic 5.0.9 → 5.1.2
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/chunk-4NLKHYBY.js +131 -0
- package/dist/chunk-6LSKTACC.js +687 -0
- package/dist/chunk-B432GFRR.mjs +606 -0
- package/dist/chunk-BPJZ3QRN.mjs +3025 -0
- package/dist/chunk-BZYCE2VA.js +301 -0
- package/dist/chunk-FDVY2DBI.mjs +127 -0
- package/dist/chunk-GGNOJ77I.js +2 -0
- package/dist/chunk-H2VMULTO.mjs +6161 -0
- package/dist/chunk-IUYYGSEL.js +321 -0
- package/dist/chunk-IVXH2HOR.js +6321 -0
- package/dist/chunk-JDXUTKMX.js +3065 -0
- package/dist/chunk-JNLBHOL4.mjs +284 -0
- package/dist/chunk-MJEZ4MMQ.mjs +315 -0
- package/dist/chunk-WAXGOBY2.mjs +1 -0
- package/dist/chunk-XA7EW3ZX.mjs +114 -0
- package/dist/chunk-YKB32DSB.js +116 -0
- package/dist/configs.js +7 -2577
- package/dist/configs.mjs +3 -2545
- package/dist/constants.d.mts +4 -16
- package/dist/constants.d.ts +4 -16
- package/dist/constants.js +65 -355
- package/dist/constants.mjs +1 -318
- package/dist/environment.js +16 -2704
- package/dist/environment.mjs +4 -2670
- package/dist/hooks.d.mts +19 -89
- package/dist/hooks.d.ts +19 -89
- package/dist/hooks.js +557 -10358
- package/dist/hooks.mjs +6 -10177
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1179 -12592
- package/dist/index.mjs +8 -12256
- package/dist/models.js +7 -143
- package/dist/models.mjs +2 -120
- package/dist/provider.d.mts +2 -14
- package/dist/provider.d.ts +2 -14
- package/dist/provider.js +37 -10907
- package/dist/provider.mjs +6 -10875
- package/dist/services.d.mts +18 -103
- package/dist/services.d.ts +18 -103
- package/dist/services.js +40 -8121
- package/dist/services.mjs +6 -8089
- package/dist/store.js +320 -817
- package/dist/store.mjs +1 -717
- package/dist/types.js +3 -17
- package/dist/types.mjs +1 -0
- package/dist/utils.js +134 -3094
- package/dist/utils.mjs +2 -3030
- package/package.json +93 -92
package/dist/models.js
CHANGED
|
@@ -1,147 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkYKB32DSB_js = require('./chunk-YKB32DSB.js');
|
|
4
|
+
require('./chunk-BZYCE2VA.js');
|
|
19
5
|
|
|
20
|
-
// src/models.ts
|
|
21
|
-
var models_exports = {};
|
|
22
|
-
__export(models_exports, {
|
|
23
|
-
BaseModel: () => BaseModel
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(models_exports);
|
|
26
6
|
|
|
27
|
-
// src/constants/widget/widget-avatar-constant.ts
|
|
28
|
-
var WIDGETAVATAR = /* @__PURE__ */ ((WIDGETAVATAR2) => {
|
|
29
|
-
WIDGETAVATAR2["many2one_avatar_user"] = "many2one_avatar_user";
|
|
30
|
-
WIDGETAVATAR2["many2many_avatar_user"] = "many2many_avatar_user";
|
|
31
|
-
return WIDGETAVATAR2;
|
|
32
|
-
})(WIDGETAVATAR || {});
|
|
33
7
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
view;
|
|
38
|
-
fields;
|
|
39
|
-
constructor(init) {
|
|
40
|
-
this.name = init.name;
|
|
41
|
-
this.view = init.view;
|
|
42
|
-
this.fields = init.fields;
|
|
43
|
-
}
|
|
44
|
-
getSpecificationByFields({
|
|
45
|
-
fields = [],
|
|
46
|
-
specification = {},
|
|
47
|
-
modelsData,
|
|
48
|
-
model,
|
|
49
|
-
modelRoot
|
|
50
|
-
}) {
|
|
51
|
-
if (Array.isArray(fields)) {
|
|
52
|
-
let spec = { ...specification };
|
|
53
|
-
fields.forEach((field) => {
|
|
54
|
-
if (!field?.type_co || field?.name && field?.type_co === "field" /* FIELD */) {
|
|
55
|
-
if (modelsData?.[model]?.[field?.name]) {
|
|
56
|
-
if (modelsData?.[model]?.[field?.name]?.type === "one2many" /* ONE2MANY */ || modelsData?.[model]?.[field?.name]?.type === "many2many" /* MANY2MANY */) {
|
|
57
|
-
const relation = modelsData?.[model]?.[field?.name]?.relation;
|
|
58
|
-
const modelRelation = modelsData?.[relation];
|
|
59
|
-
if (modelRelation) {
|
|
60
|
-
spec[field?.name] = {
|
|
61
|
-
fields: {}
|
|
62
|
-
};
|
|
63
|
-
if (modelRoot && modelRoot === relation) {
|
|
64
|
-
spec[field?.name].fields = { id: {} };
|
|
65
|
-
} else {
|
|
66
|
-
spec[field?.name].fields = this.getSpecificationByFields({
|
|
67
|
-
fields: Object.values(modelRelation),
|
|
68
|
-
specification: { id: {}, display_name: {} },
|
|
69
|
-
modelsData,
|
|
70
|
-
model: relation,
|
|
71
|
-
modelRoot: model
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
} else {
|
|
75
|
-
spec[field?.name] = {
|
|
76
|
-
fields: {
|
|
77
|
-
id: {},
|
|
78
|
-
display_name: {},
|
|
79
|
-
...field?.widget === "many2many_binary" ? { mimetype: {} } : {},
|
|
80
|
-
...field?.widget === "many2many_binary" && relation === "ir.attachment" ? { datas: {} } : {}
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
} else if (modelsData?.[model]?.[field?.name]?.type === "many2one" /* MANY2ONE */) {
|
|
85
|
-
spec[field?.name] = {
|
|
86
|
-
fields: {
|
|
87
|
-
id: {},
|
|
88
|
-
display_name: {},
|
|
89
|
-
...WIDGETAVATAR[field?.widget] ? { image_256: {} } : {},
|
|
90
|
-
...field?.name === "currency_id" && fields?.find((item) => item?.widget === "monetary") ? { symbol: {} } : {},
|
|
91
|
-
...field?.widget === "many2many_binary" ? { mimetype: {} } : {}
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
} else {
|
|
95
|
-
spec[field?.name] = {};
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
} else if (field?.type_co === "group" /* GROUP */ || field?.type_co === "div" /* DIV */ || field?.type_co === "span" /* SPAN */) {
|
|
99
|
-
const specGroup = this.getSpecificationByFields({
|
|
100
|
-
fields: field?.fields,
|
|
101
|
-
specification: spec,
|
|
102
|
-
modelsData,
|
|
103
|
-
model
|
|
104
|
-
});
|
|
105
|
-
spec = { ...spec, ...specGroup };
|
|
106
|
-
} else if (field?.type_co === "tree" /* TREE */ || field?.type_co === "list" /* LIST */) {
|
|
107
|
-
const relation = modelsData?.[model]?.[field?.name]?.relation;
|
|
108
|
-
const specTreee = this.getSpecificationByFields({
|
|
109
|
-
fields: field?.fields,
|
|
110
|
-
specification: {},
|
|
111
|
-
modelsData,
|
|
112
|
-
model: relation,
|
|
113
|
-
modelRoot: model
|
|
114
|
-
});
|
|
115
|
-
spec = { ...spec, [field?.name]: { fields: specTreee } };
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
return spec;
|
|
119
|
-
} else {
|
|
120
|
-
console.warn("fields is not array");
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
getTreeProps() {
|
|
124
|
-
const props = this.view?.views?.list || {};
|
|
125
|
-
return props;
|
|
126
|
-
}
|
|
127
|
-
getTreeFields() {
|
|
128
|
-
const fields = this.view?.views?.list?.fields || [];
|
|
129
|
-
return fields;
|
|
130
|
-
}
|
|
131
|
-
getSpecification() {
|
|
132
|
-
const specInit = {};
|
|
133
|
-
const modelData = this.view?.models || {};
|
|
134
|
-
const specification = this.getSpecificationByFields({
|
|
135
|
-
fields: this.fields,
|
|
136
|
-
specification: specInit,
|
|
137
|
-
modelsData: modelData,
|
|
138
|
-
model: this.name,
|
|
139
|
-
modelRoot: ""
|
|
140
|
-
});
|
|
141
|
-
return specification;
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
145
|
-
0 && (module.exports = {
|
|
146
|
-
BaseModel
|
|
8
|
+
Object.defineProperty(exports, "BaseModel", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkYKB32DSB_js.BaseModel; }
|
|
147
11
|
});
|
package/dist/models.mjs
CHANGED
|
@@ -1,120 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
WIDGETAVATAR2["many2one_avatar_user"] = "many2one_avatar_user";
|
|
4
|
-
WIDGETAVATAR2["many2many_avatar_user"] = "many2many_avatar_user";
|
|
5
|
-
return WIDGETAVATAR2;
|
|
6
|
-
})(WIDGETAVATAR || {});
|
|
7
|
-
|
|
8
|
-
// src/models/base-model/index.ts
|
|
9
|
-
var BaseModel = class {
|
|
10
|
-
name;
|
|
11
|
-
view;
|
|
12
|
-
fields;
|
|
13
|
-
constructor(init) {
|
|
14
|
-
this.name = init.name;
|
|
15
|
-
this.view = init.view;
|
|
16
|
-
this.fields = init.fields;
|
|
17
|
-
}
|
|
18
|
-
getSpecificationByFields({
|
|
19
|
-
fields = [],
|
|
20
|
-
specification = {},
|
|
21
|
-
modelsData,
|
|
22
|
-
model,
|
|
23
|
-
modelRoot
|
|
24
|
-
}) {
|
|
25
|
-
if (Array.isArray(fields)) {
|
|
26
|
-
let spec = { ...specification };
|
|
27
|
-
fields.forEach((field) => {
|
|
28
|
-
if (!field?.type_co || field?.name && field?.type_co === "field" /* FIELD */) {
|
|
29
|
-
if (modelsData?.[model]?.[field?.name]) {
|
|
30
|
-
if (modelsData?.[model]?.[field?.name]?.type === "one2many" /* ONE2MANY */ || modelsData?.[model]?.[field?.name]?.type === "many2many" /* MANY2MANY */) {
|
|
31
|
-
const relation = modelsData?.[model]?.[field?.name]?.relation;
|
|
32
|
-
const modelRelation = modelsData?.[relation];
|
|
33
|
-
if (modelRelation) {
|
|
34
|
-
spec[field?.name] = {
|
|
35
|
-
fields: {}
|
|
36
|
-
};
|
|
37
|
-
if (modelRoot && modelRoot === relation) {
|
|
38
|
-
spec[field?.name].fields = { id: {} };
|
|
39
|
-
} else {
|
|
40
|
-
spec[field?.name].fields = this.getSpecificationByFields({
|
|
41
|
-
fields: Object.values(modelRelation),
|
|
42
|
-
specification: { id: {}, display_name: {} },
|
|
43
|
-
modelsData,
|
|
44
|
-
model: relation,
|
|
45
|
-
modelRoot: model
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
} else {
|
|
49
|
-
spec[field?.name] = {
|
|
50
|
-
fields: {
|
|
51
|
-
id: {},
|
|
52
|
-
display_name: {},
|
|
53
|
-
...field?.widget === "many2many_binary" ? { mimetype: {} } : {},
|
|
54
|
-
...field?.widget === "many2many_binary" && relation === "ir.attachment" ? { datas: {} } : {}
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
} else if (modelsData?.[model]?.[field?.name]?.type === "many2one" /* MANY2ONE */) {
|
|
59
|
-
spec[field?.name] = {
|
|
60
|
-
fields: {
|
|
61
|
-
id: {},
|
|
62
|
-
display_name: {},
|
|
63
|
-
...WIDGETAVATAR[field?.widget] ? { image_256: {} } : {},
|
|
64
|
-
...field?.name === "currency_id" && fields?.find((item) => item?.widget === "monetary") ? { symbol: {} } : {},
|
|
65
|
-
...field?.widget === "many2many_binary" ? { mimetype: {} } : {}
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
} else {
|
|
69
|
-
spec[field?.name] = {};
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
} else if (field?.type_co === "group" /* GROUP */ || field?.type_co === "div" /* DIV */ || field?.type_co === "span" /* SPAN */) {
|
|
73
|
-
const specGroup = this.getSpecificationByFields({
|
|
74
|
-
fields: field?.fields,
|
|
75
|
-
specification: spec,
|
|
76
|
-
modelsData,
|
|
77
|
-
model
|
|
78
|
-
});
|
|
79
|
-
spec = { ...spec, ...specGroup };
|
|
80
|
-
} else if (field?.type_co === "tree" /* TREE */ || field?.type_co === "list" /* LIST */) {
|
|
81
|
-
const relation = modelsData?.[model]?.[field?.name]?.relation;
|
|
82
|
-
const specTreee = this.getSpecificationByFields({
|
|
83
|
-
fields: field?.fields,
|
|
84
|
-
specification: {},
|
|
85
|
-
modelsData,
|
|
86
|
-
model: relation,
|
|
87
|
-
modelRoot: model
|
|
88
|
-
});
|
|
89
|
-
spec = { ...spec, [field?.name]: { fields: specTreee } };
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
return spec;
|
|
93
|
-
} else {
|
|
94
|
-
console.warn("fields is not array");
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
getTreeProps() {
|
|
98
|
-
const props = this.view?.views?.list || {};
|
|
99
|
-
return props;
|
|
100
|
-
}
|
|
101
|
-
getTreeFields() {
|
|
102
|
-
const fields = this.view?.views?.list?.fields || [];
|
|
103
|
-
return fields;
|
|
104
|
-
}
|
|
105
|
-
getSpecification() {
|
|
106
|
-
const specInit = {};
|
|
107
|
-
const modelData = this.view?.models || {};
|
|
108
|
-
const specification = this.getSpecificationByFields({
|
|
109
|
-
fields: this.fields,
|
|
110
|
-
specification: specInit,
|
|
111
|
-
modelsData: modelData,
|
|
112
|
-
model: this.name,
|
|
113
|
-
modelRoot: ""
|
|
114
|
-
});
|
|
115
|
-
return specification;
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
export {
|
|
119
|
-
BaseModel
|
|
120
|
-
};
|
|
1
|
+
export { BaseModel } from './chunk-XA7EW3ZX.mjs';
|
|
2
|
+
import './chunk-JNLBHOL4.mjs';
|
package/dist/provider.d.mts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React$1, { 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, useSupaUploadImage, 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, useHandleCloseSession, useHandleClosingDetailSession, useCreatePosConfig, useSearchJournal, useGetTenantMapping, useGetToken, useGetPreparationDisplayData, useUpdateOrderStatus, useGetThreadData, useGetThreadMessages, useGetExternalTabs, useProcessOrder, useGeneratePaymentQrInfo, useSavePinCode, useGetPinCode, useReadGroup, useGetNotifications, useGetDataChart, useGetVersion, useCreateEInvoice, useGetCurrentUser, useGetWard, useGetCity, useGetCountry, useGetPartnerTitle, useChangeOrderPreparationState, useCompleteCurrentStage,
|
|
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, useSupaUploadImage, 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, useHandleCloseSession, useHandleClosingDetailSession, useCreatePosConfig, useSearchJournal, useGetTenantMapping, useGetToken, useGetPreparationDisplayData, useUpdateOrderStatus, useGetThreadData, useGetThreadMessages, useGetExternalTabs, useProcessOrder, useGeneratePaymentQrInfo, useSavePinCode, useGetPinCode, useReadGroup, useGetNotifications, useGetDataChart, useGetVersion, useCreateEInvoice, useGetCurrentUser, useGetWard, useGetCity, useGetCountry, useGetPartnerTitle, useChangeOrderPreparationState, useCompleteCurrentStage, useLoginTenantUser, useAddFloor, useAddTable, useDeleteFloor, useDeleteTable, useUpdateFloor, useUpdateTable, useCreateOrder, useAddCategory, useAddProductToOrder, useUpdateOrderTotalAmount, useUpdateOrderLine, useUpdateOrder, useDeleteOrder, useDeleteOrderLine, useAddProduct, useGetFunctionalModules, useAddPaymentMethod, useUpdateSessionPaymentMethods, useCreatePayment, useCreateCustomer, useUpdateCustomer, useDeleteCustomer, useUploadImage, useActionServerHome } from './hooks.mjs';
|
|
5
5
|
import { SupabaseClient } from '@supabase/supabase-js';
|
|
6
6
|
import '@tanstack/react-query';
|
|
7
7
|
import './view-type-CfcWWR0w.mjs';
|
|
8
|
+
import '@supabase/auth-js';
|
|
8
9
|
import './base-model-type-DD8uZnDP.mjs';
|
|
9
10
|
import './models.mjs';
|
|
10
11
|
|
|
@@ -182,10 +183,6 @@ interface ServiceContextType {
|
|
|
182
183
|
useGetPartnerTitle: typeof useGetPartnerTitle;
|
|
183
184
|
useChangeOrderPreparationState: typeof useChangeOrderPreparationState;
|
|
184
185
|
useCompleteCurrentStage: typeof useCompleteCurrentStage;
|
|
185
|
-
useAppAuthenticate: typeof useAppAuthenticate;
|
|
186
|
-
useApplyVoucher: typeof useApplyVoucher;
|
|
187
|
-
useRemoveVoucher: typeof useRemoveVoucher;
|
|
188
|
-
useSyncFromUi: typeof useSyncFromUi;
|
|
189
186
|
useLoginTenantUser: typeof useLoginTenantUser;
|
|
190
187
|
useAddFloor: typeof useAddFloor;
|
|
191
188
|
useAddTable: typeof useAddTable;
|
|
@@ -210,15 +207,6 @@ interface ServiceContextType {
|
|
|
210
207
|
useUpdateCustomer: typeof useUpdateCustomer;
|
|
211
208
|
useDeleteCustomer: typeof useDeleteCustomer;
|
|
212
209
|
useUploadImage: typeof useUploadImage;
|
|
213
|
-
useGetListUsers: typeof useGetListUsers;
|
|
214
|
-
useGetListRoles: typeof useGetListRoles;
|
|
215
|
-
useAssignRole: typeof useAssignRole;
|
|
216
|
-
useGetSupaCurrentUser: typeof useGetSupaCurrentUser;
|
|
217
|
-
useUpdateCategory: typeof useUpdateCategory;
|
|
218
|
-
useDeleteCategory: typeof useDeleteCategory;
|
|
219
|
-
useUpdateProduct: typeof useUpdateProduct;
|
|
220
|
-
useDeleteProduct: typeof useDeleteProduct;
|
|
221
|
-
useTogglePosRestaurant: typeof useTogglePosRestaurant;
|
|
222
210
|
useActionServerHome: typeof useActionServerHome;
|
|
223
211
|
}
|
|
224
212
|
declare const ServiceProvider: ({ children, }: {
|
package/dist/provider.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React$1, { 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, useSupaUploadImage, 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, useHandleCloseSession, useHandleClosingDetailSession, useCreatePosConfig, useSearchJournal, useGetTenantMapping, useGetToken, useGetPreparationDisplayData, useUpdateOrderStatus, useGetThreadData, useGetThreadMessages, useGetExternalTabs, useProcessOrder, useGeneratePaymentQrInfo, useSavePinCode, useGetPinCode, useReadGroup, useGetNotifications, useGetDataChart, useGetVersion, useCreateEInvoice, useGetCurrentUser, useGetWard, useGetCity, useGetCountry, useGetPartnerTitle, useChangeOrderPreparationState, useCompleteCurrentStage,
|
|
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, useSupaUploadImage, 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, useHandleCloseSession, useHandleClosingDetailSession, useCreatePosConfig, useSearchJournal, useGetTenantMapping, useGetToken, useGetPreparationDisplayData, useUpdateOrderStatus, useGetThreadData, useGetThreadMessages, useGetExternalTabs, useProcessOrder, useGeneratePaymentQrInfo, useSavePinCode, useGetPinCode, useReadGroup, useGetNotifications, useGetDataChart, useGetVersion, useCreateEInvoice, useGetCurrentUser, useGetWard, useGetCity, useGetCountry, useGetPartnerTitle, useChangeOrderPreparationState, useCompleteCurrentStage, useLoginTenantUser, useAddFloor, useAddTable, useDeleteFloor, useDeleteTable, useUpdateFloor, useUpdateTable, useCreateOrder, useAddCategory, useAddProductToOrder, useUpdateOrderTotalAmount, useUpdateOrderLine, useUpdateOrder, useDeleteOrder, useDeleteOrderLine, useAddProduct, useGetFunctionalModules, useAddPaymentMethod, useUpdateSessionPaymentMethods, useCreatePayment, useCreateCustomer, useUpdateCustomer, useDeleteCustomer, useUploadImage, useActionServerHome } from './hooks.js';
|
|
5
5
|
import { SupabaseClient } from '@supabase/supabase-js';
|
|
6
6
|
import '@tanstack/react-query';
|
|
7
7
|
import './view-type-CfcWWR0w.js';
|
|
8
|
+
import '@supabase/auth-js';
|
|
8
9
|
import './base-model-type-DD8uZnDP.js';
|
|
9
10
|
import './models.js';
|
|
10
11
|
|
|
@@ -182,10 +183,6 @@ interface ServiceContextType {
|
|
|
182
183
|
useGetPartnerTitle: typeof useGetPartnerTitle;
|
|
183
184
|
useChangeOrderPreparationState: typeof useChangeOrderPreparationState;
|
|
184
185
|
useCompleteCurrentStage: typeof useCompleteCurrentStage;
|
|
185
|
-
useAppAuthenticate: typeof useAppAuthenticate;
|
|
186
|
-
useApplyVoucher: typeof useApplyVoucher;
|
|
187
|
-
useRemoveVoucher: typeof useRemoveVoucher;
|
|
188
|
-
useSyncFromUi: typeof useSyncFromUi;
|
|
189
186
|
useLoginTenantUser: typeof useLoginTenantUser;
|
|
190
187
|
useAddFloor: typeof useAddFloor;
|
|
191
188
|
useAddTable: typeof useAddTable;
|
|
@@ -210,15 +207,6 @@ interface ServiceContextType {
|
|
|
210
207
|
useUpdateCustomer: typeof useUpdateCustomer;
|
|
211
208
|
useDeleteCustomer: typeof useDeleteCustomer;
|
|
212
209
|
useUploadImage: typeof useUploadImage;
|
|
213
|
-
useGetListUsers: typeof useGetListUsers;
|
|
214
|
-
useGetListRoles: typeof useGetListRoles;
|
|
215
|
-
useAssignRole: typeof useAssignRole;
|
|
216
|
-
useGetSupaCurrentUser: typeof useGetSupaCurrentUser;
|
|
217
|
-
useUpdateCategory: typeof useUpdateCategory;
|
|
218
|
-
useDeleteCategory: typeof useDeleteCategory;
|
|
219
|
-
useUpdateProduct: typeof useUpdateProduct;
|
|
220
|
-
useDeleteProduct: typeof useDeleteProduct;
|
|
221
|
-
useTogglePosRestaurant: typeof useTogglePosRestaurant;
|
|
222
210
|
useActionServerHome: typeof useActionServerHome;
|
|
223
211
|
}
|
|
224
212
|
declare const ServiceProvider: ({ children, }: {
|