@fctc/interface-logic 4.5.4 → 4.5.6
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-CI6PEZ77.mjs +1 -0
- package/dist/chunk-KPELPP6F.mjs +1 -0
- package/dist/chunk-LCUY2BJU.mjs +1 -0
- package/dist/chunk-LYD7QJQX.mjs +2 -0
- package/dist/chunk-Y5QM3Y5X.mjs +1 -0
- package/dist/chunk-Y65DQP66.mjs +5 -0
- package/dist/configs.mjs +1 -2544
- package/dist/constants.mjs +1 -293
- package/dist/environment.d.mts +1 -1
- package/dist/environment.mjs +1 -2669
- package/dist/hooks.d.mts +1 -7
- package/dist/hooks.mjs +1 -8792
- package/dist/{local-storage-BPvoMGYJ.d.mts → local-storage-AbiOQTLK.d.mts} +1 -1
- package/dist/models.mjs +1 -120
- package/dist/provider.d.mts +103 -52
- package/dist/provider.mjs +1 -9487
- package/dist/services.mjs +1 -6912
- package/dist/utils.d.mts +33 -61
- package/dist/utils.mjs +1 -3030
- package/package.json +78 -92
- package/dist/base-model-type-DD8uZnDP.d.ts +0 -8
- package/dist/configs.d.ts +0 -12
- package/dist/configs.js +0 -2581
- package/dist/constants.d.ts +0 -235
- package/dist/constants.js +0 -335
- package/dist/environment.d.ts +0 -56
- package/dist/environment.js +0 -2708
- package/dist/hooks.d.ts +0 -828
- package/dist/hooks.js +0 -8949
- package/dist/local-storage-BPvoMGYJ.d.ts +0 -10
- package/dist/models.d.ts +0 -14
- package/dist/models.js +0 -147
- package/dist/provider.d.ts +0 -214
- package/dist/provider.js +0 -9533
- package/dist/services.d.ts +0 -700
- package/dist/services.js +0 -6959
- package/dist/store.d.mts +0 -382
- package/dist/store.d.ts +0 -382
- package/dist/store.js +0 -823
- package/dist/store.mjs +0 -717
- package/dist/types.d.ts +0 -19
- package/dist/types.js +0 -18
- package/dist/utils.d.ts +0 -112
- package/dist/utils.js +0 -3099
- package/dist/view-type-CfcWWR0w.d.ts +0 -137
package/dist/models.mjs
CHANGED
|
@@ -1,120 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var WIDGETAVATAR = /* @__PURE__ */ ((WIDGETAVATAR2) => {
|
|
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{a as BaseModel}from'./chunk-LCUY2BJU.mjs';import'./chunk-KPELPP6F.mjs';import'./chunk-CI6PEZ77.mjs';
|
package/dist/provider.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React$1, { ReactNode } from 'react';
|
|
3
|
-
import { L as LocalStorageUtilsType } from './local-storage-
|
|
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,
|
|
3
|
+
import { L as LocalStorageUtilsType } from './local-storage-AbiOQTLK.mjs';
|
|
4
|
+
import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useLoginSupa, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetTenantMapping, useGetToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetExternalTabs, useGetFormView, useGetThreadData, useGetThreadMessages, useSendComment, useUploadFile, 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, useGenSerialNumber, useGetNotifications, useGetVersion, useGetWard, useGetCity, useGetCountry, useGetPartnerTitle, useGetDataChart, useReadGroup, useAddEntity, useAddFloor, useAddTable, useChangeOrderPreparationState, useCheckPayment, useCompleteCurrentStage, useCreateEInvoice, useCreateEntity, useCreateOrder, useCreatePosConfig, useCreateSession, useDeleteEntity, useDeleteFloor, useDeleteTable, useGeneratePaymentQrInfo, useGetASession, useGetCurrentUser, useGetList, useGetOrderLine, useGetPinCode, useGetPos, useGetPreparationDisplayData, useGetProductImage, useHandleCloseSession, useHandleClosingDetailSession, useHandleClosingSession, useLoadDataPosSession, useManageOnChange, useManageSession, useProcessOrder, useSavePinCode, useSearchJournal, useUpdateClosedSession, useUpdateEntity, useUpdateFloor, useUpdateOrderStatus, useUpdateTable } from './hooks.mjs';
|
|
5
5
|
import { SupabaseClient } from '@supabase/supabase-js';
|
|
6
6
|
import '@tanstack/react-query';
|
|
7
7
|
import './view-type-CfcWWR0w.mjs';
|
|
@@ -17,10 +17,6 @@ declare const ReactQueryProvider: ({ children }: {
|
|
|
17
17
|
children: ReactNode;
|
|
18
18
|
}) => react_jsx_runtime.JSX.Element;
|
|
19
19
|
|
|
20
|
-
declare const VersionGate: ({ children }: {
|
|
21
|
-
children: ReactNode;
|
|
22
|
-
}) => react_jsx_runtime.JSX.Element | null;
|
|
23
|
-
|
|
24
20
|
interface EnvConfig {
|
|
25
21
|
env?: any;
|
|
26
22
|
baseUrl?: string;
|
|
@@ -69,22 +65,39 @@ declare function useEnv(): {
|
|
|
69
65
|
setEnvFile: (envFile: any) => void;
|
|
70
66
|
};
|
|
71
67
|
|
|
72
|
-
interface
|
|
68
|
+
interface AuthServiceContextType {
|
|
73
69
|
useForgotPassword: typeof useForgotPassword;
|
|
74
70
|
useForgotPasswordSSO: typeof useForgotPasswordSSO;
|
|
75
71
|
useGetProvider: typeof useGetProvider;
|
|
76
72
|
useIsValidToken: typeof useIsValidToken;
|
|
77
73
|
useLoginCredential: typeof useLoginCredential;
|
|
78
74
|
useLoginSocial: typeof useLoginSocial;
|
|
75
|
+
useLoginSupa: typeof useLoginSupa;
|
|
79
76
|
useResetPassword: typeof useResetPassword;
|
|
80
77
|
useResetPasswordSSO: typeof useResetPasswordSSO;
|
|
81
78
|
useUpdatePassword: typeof useUpdatePassword;
|
|
82
79
|
useLogout: typeof useLogout;
|
|
83
80
|
useGetAccessByCode: typeof useGetAccessByCode;
|
|
84
81
|
useValidateActionToken: typeof useValidateActionToken;
|
|
82
|
+
useGetTenantMapping: typeof useGetTenantMapping;
|
|
83
|
+
useGetToken: typeof useGetToken;
|
|
84
|
+
}
|
|
85
|
+
declare const AuthServiceProvider: ({ children }: {
|
|
86
|
+
children: ReactNode;
|
|
87
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
88
|
+
declare const useAuthService: () => AuthServiceContextType;
|
|
89
|
+
|
|
90
|
+
interface CompanyServiceContextType {
|
|
85
91
|
useGetCompanyInfo: typeof useGetCompanyInfo;
|
|
86
92
|
useGetCurrentCompany: typeof useGetCurrentCompany;
|
|
87
93
|
useGetListCompany: typeof useGetListCompany;
|
|
94
|
+
}
|
|
95
|
+
declare const CompanyServiceProvider: ({ children, }: {
|
|
96
|
+
children: ReactNode;
|
|
97
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
98
|
+
declare const useCompanyService: () => CompanyServiceContextType;
|
|
99
|
+
|
|
100
|
+
interface ExcelServiceContextType {
|
|
88
101
|
useExecuteImport: typeof useExecuteImport;
|
|
89
102
|
useExportExcel: typeof useExportExcel;
|
|
90
103
|
useGetFieldExport: typeof useGetFieldExport;
|
|
@@ -92,13 +105,30 @@ interface ServiceContextType {
|
|
|
92
105
|
useParsePreview: typeof useParsePreview;
|
|
93
106
|
useUploadFileExcel: typeof useUploadFileExcel;
|
|
94
107
|
useUploadIdFile: typeof useUploadIdFile;
|
|
108
|
+
}
|
|
109
|
+
declare const ExcelServiceProvider: ({ children }: {
|
|
110
|
+
children: ReactNode;
|
|
111
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
112
|
+
declare const useExcelService: () => ExcelServiceContextType;
|
|
113
|
+
|
|
114
|
+
interface FormServiceContextType {
|
|
95
115
|
useChangeStatus: typeof useChangeStatus;
|
|
96
116
|
useDeleteComment: typeof useDeleteComment;
|
|
97
117
|
useGetComment: typeof useGetComment;
|
|
118
|
+
useGetExternalTabs: typeof useGetExternalTabs;
|
|
98
119
|
useGetFormView: typeof useGetFormView;
|
|
99
|
-
|
|
120
|
+
useGetThreadData: typeof useGetThreadData;
|
|
121
|
+
useGetThreadMessages: typeof useGetThreadMessages;
|
|
100
122
|
useSendComment: typeof useSendComment;
|
|
123
|
+
useUploadFile: typeof useUploadFile;
|
|
101
124
|
useUploadImage: typeof useUploadImage;
|
|
125
|
+
}
|
|
126
|
+
declare const FormServiceProvider: ({ children }: {
|
|
127
|
+
children: ReactNode;
|
|
128
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
129
|
+
declare const useFormService: () => FormServiceContextType;
|
|
130
|
+
|
|
131
|
+
interface ModelServiceContextType {
|
|
102
132
|
useDelete: typeof useDelete;
|
|
103
133
|
useGetAll: typeof useGetAll;
|
|
104
134
|
useGetConversionRate: typeof useGetConversionRate;
|
|
@@ -110,9 +140,23 @@ interface ServiceContextType {
|
|
|
110
140
|
useOdooDataTransform: typeof useOdooDataTransform;
|
|
111
141
|
useOnChangeForm: typeof useOnChangeForm;
|
|
112
142
|
useSave: typeof useSave;
|
|
143
|
+
}
|
|
144
|
+
declare const ModelServiceProvider: ({ children }: {
|
|
145
|
+
children: ReactNode;
|
|
146
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
147
|
+
declare const useModelService: () => ModelServiceContextType;
|
|
148
|
+
|
|
149
|
+
interface UserServiceContextType {
|
|
113
150
|
useGetProfile: typeof useGetProfile;
|
|
114
151
|
useGetUser: typeof useGetUser;
|
|
115
152
|
useSwitchLocale: typeof useSwitchLocale;
|
|
153
|
+
}
|
|
154
|
+
declare const UserServiceProvider: ({ children }: {
|
|
155
|
+
children: ReactNode;
|
|
156
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
157
|
+
declare const useUserService: () => UserServiceContextType;
|
|
158
|
+
|
|
159
|
+
interface ViewServiceContextType {
|
|
116
160
|
useButton: typeof useButton;
|
|
117
161
|
useDuplicateRecord: typeof useDuplicateRecord;
|
|
118
162
|
useGet2FAMethods: typeof useGet2FAMethods;
|
|
@@ -138,64 +182,71 @@ interface ServiceContextType {
|
|
|
138
182
|
useRequestSetupTotp: typeof useRequestSetupTotp;
|
|
139
183
|
useSettingsWebRead2fa: typeof useSettingsWebRead2fa;
|
|
140
184
|
useVerifyTotp: typeof useVerifyTotp;
|
|
141
|
-
useUploadFile: typeof useUploadFile;
|
|
142
|
-
useCreateEntity: typeof useCreateEntity;
|
|
143
|
-
useGetASession: typeof useGetASession;
|
|
144
|
-
useCreateSession: typeof useCreateSession;
|
|
145
|
-
useDeleteEntity: typeof useDeleteEntity;
|
|
146
|
-
useGetList: typeof useGetList;
|
|
147
|
-
useGetPos: typeof useGetPos;
|
|
148
|
-
useHandleClosingSession: typeof useHandleClosingSession;
|
|
149
|
-
useManageSession: typeof useManageSession;
|
|
150
|
-
useUpdateClosedSession: typeof useUpdateClosedSession;
|
|
151
|
-
useUpdateEntity: typeof useUpdateEntity;
|
|
152
|
-
useLoadDataPosSession: typeof useLoadDataPosSession;
|
|
153
|
-
useManageOnChange: typeof useManageOnChange;
|
|
154
185
|
useGenSerialNumber: typeof useGenSerialNumber;
|
|
155
|
-
useGetOrderLine: typeof useGetOrderLine;
|
|
156
|
-
useGetProductImage: typeof useGetProductImage;
|
|
157
|
-
useAddEntity: typeof useAddEntity;
|
|
158
|
-
useCheckPayment: typeof useCheckPayment;
|
|
159
|
-
useHandleCloseSession: typeof useHandleCloseSession;
|
|
160
|
-
useHandleClosingDetailSession: typeof useHandleClosingDetailSession;
|
|
161
|
-
useCreatePosConfig: typeof useCreatePosConfig;
|
|
162
|
-
useSearchJournal: typeof useSearchJournal;
|
|
163
|
-
useGetTenantMapping: typeof useGetTenantMapping;
|
|
164
|
-
useGetToken: typeof useGetToken;
|
|
165
|
-
useGetPreparationDisplayData: typeof useGetPreparationDisplayData;
|
|
166
|
-
useUpdateOrderStatus: typeof useUpdateOrderStatus;
|
|
167
|
-
useGetThreadData: typeof useGetThreadData;
|
|
168
|
-
useGetThreadMessages: typeof useGetThreadMessages;
|
|
169
|
-
useGetExternalTabs: typeof useGetExternalTabs;
|
|
170
|
-
useProcessOrder: typeof useProcessOrder;
|
|
171
|
-
useGeneratePaymentQrInfo: typeof useGeneratePaymentQrInfo;
|
|
172
|
-
useSavePinCode: typeof useSavePinCode;
|
|
173
|
-
useGetPinCode: typeof useGetPinCode;
|
|
174
|
-
useReadGroup: typeof useReadGroup;
|
|
175
186
|
useGetNotifications: typeof useGetNotifications;
|
|
176
|
-
useGetDataChart: typeof useGetDataChart;
|
|
177
187
|
useGetVersion: typeof useGetVersion;
|
|
178
|
-
useCreateEInvoice: typeof useCreateEInvoice;
|
|
179
|
-
useGetCurrentUser: typeof useGetCurrentUser;
|
|
180
188
|
useGetWard: typeof useGetWard;
|
|
181
189
|
useGetCity: typeof useGetCity;
|
|
182
190
|
useGetCountry: typeof useGetCountry;
|
|
183
191
|
useGetPartnerTitle: typeof useGetPartnerTitle;
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
192
|
+
}
|
|
193
|
+
declare const ViewServiceProvider: ({ children }: {
|
|
194
|
+
children: ReactNode;
|
|
195
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
196
|
+
declare const useViewService: () => ViewServiceContextType;
|
|
197
|
+
|
|
198
|
+
interface ChartServiceContextType {
|
|
199
|
+
useGetDataChart: typeof useGetDataChart;
|
|
200
|
+
useReadGroup: typeof useReadGroup;
|
|
201
|
+
}
|
|
202
|
+
declare const ChartServiceProvider: ({ children }: {
|
|
203
|
+
children: ReactNode;
|
|
204
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
205
|
+
declare const useChartService: () => ChartServiceContextType;
|
|
206
|
+
|
|
207
|
+
interface PosServiceContextType {
|
|
208
|
+
useAddEntity: typeof useAddEntity;
|
|
187
209
|
useAddFloor: typeof useAddFloor;
|
|
188
210
|
useAddTable: typeof useAddTable;
|
|
211
|
+
useChangeOrderPreparationState: typeof useChangeOrderPreparationState;
|
|
212
|
+
useCheckPayment: typeof useCheckPayment;
|
|
213
|
+
useCompleteCurrentStage: typeof useCompleteCurrentStage;
|
|
214
|
+
useCreateEInvoice: typeof useCreateEInvoice;
|
|
215
|
+
useCreateEntity: typeof useCreateEntity;
|
|
216
|
+
useCreateOrder: typeof useCreateOrder;
|
|
217
|
+
useCreatePosConfig: typeof useCreatePosConfig;
|
|
218
|
+
useCreateSession: typeof useCreateSession;
|
|
219
|
+
useDeleteEntity: typeof useDeleteEntity;
|
|
189
220
|
useDeleteFloor: typeof useDeleteFloor;
|
|
190
221
|
useDeleteTable: typeof useDeleteTable;
|
|
222
|
+
useGeneratePaymentQrInfo: typeof useGeneratePaymentQrInfo;
|
|
223
|
+
useGetASession: typeof useGetASession;
|
|
224
|
+
useGetCurrentUser: typeof useGetCurrentUser;
|
|
225
|
+
useGetList: typeof useGetList;
|
|
226
|
+
useGetOrderLine: typeof useGetOrderLine;
|
|
227
|
+
useGetPinCode: typeof useGetPinCode;
|
|
228
|
+
useGetPos: typeof useGetPos;
|
|
229
|
+
useGetPreparationDisplayData: typeof useGetPreparationDisplayData;
|
|
230
|
+
useGetProductImage: typeof useGetProductImage;
|
|
231
|
+
useHandleCloseSession: typeof useHandleCloseSession;
|
|
232
|
+
useHandleClosingDetailSession: typeof useHandleClosingDetailSession;
|
|
233
|
+
useHandleClosingSession: typeof useHandleClosingSession;
|
|
234
|
+
useLoadDataPosSession: typeof useLoadDataPosSession;
|
|
235
|
+
useManageOnChange: typeof useManageOnChange;
|
|
236
|
+
useManageSession: typeof useManageSession;
|
|
237
|
+
useProcessOrder: typeof useProcessOrder;
|
|
238
|
+
useSavePinCode: typeof useSavePinCode;
|
|
239
|
+
useSearchJournal: typeof useSearchJournal;
|
|
240
|
+
useUpdateClosedSession: typeof useUpdateClosedSession;
|
|
241
|
+
useUpdateEntity: typeof useUpdateEntity;
|
|
191
242
|
useUpdateFloor: typeof useUpdateFloor;
|
|
243
|
+
useUpdateOrderStatus: typeof useUpdateOrderStatus;
|
|
192
244
|
useUpdateTable: typeof useUpdateTable;
|
|
193
|
-
useCreateOrder: typeof useCreateOrder;
|
|
194
245
|
}
|
|
195
|
-
declare const
|
|
196
|
-
children:
|
|
246
|
+
declare const PosServiceProvider: ({ children }: {
|
|
247
|
+
children: ReactNode;
|
|
197
248
|
}) => react_jsx_runtime.JSX.Element;
|
|
198
|
-
declare const
|
|
249
|
+
declare const usePosService: () => PosServiceContextType;
|
|
199
250
|
|
|
200
251
|
type MetaProviderProps = {
|
|
201
252
|
children: ReactNode;
|
|
@@ -211,4 +262,4 @@ type SupabaseProviderProps = {
|
|
|
211
262
|
declare const SupabaseProvider: ({ supabaseUrl, supabaseKey, schema, children, }: SupabaseProviderProps) => react_jsx_runtime.JSX.Element;
|
|
212
263
|
declare const useSupabase: () => SupabaseClient<any, any, any, any, any>;
|
|
213
264
|
|
|
214
|
-
export { EnvProvider, MainProvider, MetaProvider,
|
|
265
|
+
export { AuthServiceProvider, ChartServiceProvider, CompanyServiceProvider, EnvProvider, ExcelServiceProvider, FormServiceProvider, MainProvider, MetaProvider, ModelServiceProvider, PosServiceProvider, ReactQueryProvider, SupabaseProvider, UserServiceProvider, ViewServiceProvider, useAuthService, useChartService, useCompanyService, useEnv, useExcelService, useFormService, useModelService, usePosService, useSupabase, useUserService, useViewService };
|