@fctc/interface-logic 4.4.7 → 4.4.8

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.
@@ -121,6 +121,76 @@ declare enum ModelConstants {
121
121
  COUNTRY_WARD = "res.country.ward",
122
122
  RES_PARTNER_TITLE = "res.partner.title"
123
123
  }
124
+ declare enum LoadDataModel {
125
+ ACCOUNT_CASH_ROUNDING = "account.cash.rounding",
126
+ ACCOUNT_FISCAL_POSITION = "account.fiscal.position",
127
+ ACCOUNT_FISCAL_POSITION_TAX = "account.fiscal.position.tax",
128
+ ACCOUNT_TAX = "account.tax",
129
+ ACCOUNT_TAX_GROUP = "account.tax.group",
130
+ DECIMAL_PRECISION = "decimal.precision",
131
+ IR_MODULE_MODULE = "ir.module.module",
132
+ IR_UI_VIEW = "ir.ui.view",
133
+ POS_BILL = "pos.bill",
134
+ POS_CATEGORY = "pos.category",
135
+ POS_CONFIG = "pos.config",
136
+ POS_NOTE = "pos.note",
137
+ POS_ORDER = "pos.order",
138
+ POS_ORDER_LINE = "pos.order.line",
139
+ POS_PACK_OPERATION_LOT = "pos.pack.operation.lot",
140
+ POS_PAYMENT = "pos.payment",
141
+ POS_PAYMENT_METHOD = "pos.payment.method",
142
+ POS_PRINTER = "pos.printer",
143
+ POS_SESSION = "pos.session",
144
+ POS_PREPARATION_DISPLAY_DISPLAY = "pos_preparation_display.display",
145
+ PRODUCT_ATTRIBUTE = "product.attribute",
146
+ PRODUCT_ATTRIBUTE_CUSTOM_VALUE = "product.attribute.custom.value",
147
+ PRODUCT_CATEGORY = "product.category",
148
+ PRODUCT_COMBO = "product.combo",
149
+ PRODUCT_COMBO_ITEM = "product.combo.item",
150
+ PRODUCT_PACKAGING = "product.packaging",
151
+ PRODUCT_PRICELIST = "product.pricelist",
152
+ PRODUCT_PRICELIST_ITEM = "product.pricelist.item",
153
+ PRODUCT_PRODUCT = "product.product",
154
+ PRODUCT_TAG = "product.tag",
155
+ PRODUCT_TEMPLATE_ATTRIBUTE_LINE = "product.template.attribute.line",
156
+ PRODUCT_TEMPLATE_ATTRIBUTE_VALUE = "product.template.attribute.value",
157
+ RES_COMPANY = "res.company",
158
+ RES_COUNTRY = "res.country",
159
+ RES_COUNTRY_STATE = "res.country.state",
160
+ RES_CURRENCY = "res.currency",
161
+ RES_LANG = "res.lang",
162
+ RES_PARTNER = "res.partner",
163
+ RES_USERS = "res.users",
164
+ STOCK_PICKING_TYPE = "stock.picking.type",
165
+ UOM_CATEGORY = "uom.category",
166
+ UOM_UOM = "uom.uom",
167
+ LOYALTY_PROGRAM = "loyalty.program",
168
+ LOYALTY_RULE = "loyalty.rule",
169
+ LOYALTY_REWARD = "loyalty.reward",
170
+ RESTAURANT_TABLE = "restaurant.table",
171
+ RESTAURANT_FLOOR = "restaurant.floor",
172
+ POS_MAKE_PAYMENT = "pos.make.payment"
173
+ }
174
+ declare enum LoadDataModelSupa {
175
+ ACCOUNT_TAXES = "account_taxes",
176
+ COMPANIES = "companies",
177
+ CUSTOMERS = "customers",
178
+ EMPLOYEES = "employees",
179
+ LOYALTY_PROGRAMS = "loyalty_programs",
180
+ LOYALTY_REWARDS = "loyalty_rewards",
181
+ LOYALTY_RULES = "loyalty_rules",
182
+ ORDER_LINES = "order_lines",
183
+ ORDERS = "orders",
184
+ PAYMENT_METHODS = "payment_methods",
185
+ PAYMENTS = "payments",
186
+ POS_CONFIGS = "pos_configs",
187
+ POS_SESSIONS = "pos_sessions",
188
+ PRODUCT_CATEGORIES = "product_categories",
189
+ PRODUCTS = "products",
190
+ RESTAURANT_FLOORS = "restaurant_floors",
191
+ RESTAURANT_TABLES = "restaurant_tables"
192
+ }
193
+ declare const MODEL_TO_TABLE: Record<string, string>;
124
194
 
125
195
  declare enum ComponentType {
126
196
  GROUP = "group",
@@ -162,4 +232,4 @@ declare enum WIDGETNOSTRING {
162
232
  sla_status_ids = "sla_status_ids"
163
233
  }
164
234
 
165
- export { ComponentType, FieldTypeConstants, KeyConstants, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS };
235
+ export { ComponentType, FieldTypeConstants, KeyConstants, LoadDataModel, LoadDataModelSupa, MODEL_TO_TABLE, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS };
@@ -121,6 +121,76 @@ declare enum ModelConstants {
121
121
  COUNTRY_WARD = "res.country.ward",
122
122
  RES_PARTNER_TITLE = "res.partner.title"
123
123
  }
124
+ declare enum LoadDataModel {
125
+ ACCOUNT_CASH_ROUNDING = "account.cash.rounding",
126
+ ACCOUNT_FISCAL_POSITION = "account.fiscal.position",
127
+ ACCOUNT_FISCAL_POSITION_TAX = "account.fiscal.position.tax",
128
+ ACCOUNT_TAX = "account.tax",
129
+ ACCOUNT_TAX_GROUP = "account.tax.group",
130
+ DECIMAL_PRECISION = "decimal.precision",
131
+ IR_MODULE_MODULE = "ir.module.module",
132
+ IR_UI_VIEW = "ir.ui.view",
133
+ POS_BILL = "pos.bill",
134
+ POS_CATEGORY = "pos.category",
135
+ POS_CONFIG = "pos.config",
136
+ POS_NOTE = "pos.note",
137
+ POS_ORDER = "pos.order",
138
+ POS_ORDER_LINE = "pos.order.line",
139
+ POS_PACK_OPERATION_LOT = "pos.pack.operation.lot",
140
+ POS_PAYMENT = "pos.payment",
141
+ POS_PAYMENT_METHOD = "pos.payment.method",
142
+ POS_PRINTER = "pos.printer",
143
+ POS_SESSION = "pos.session",
144
+ POS_PREPARATION_DISPLAY_DISPLAY = "pos_preparation_display.display",
145
+ PRODUCT_ATTRIBUTE = "product.attribute",
146
+ PRODUCT_ATTRIBUTE_CUSTOM_VALUE = "product.attribute.custom.value",
147
+ PRODUCT_CATEGORY = "product.category",
148
+ PRODUCT_COMBO = "product.combo",
149
+ PRODUCT_COMBO_ITEM = "product.combo.item",
150
+ PRODUCT_PACKAGING = "product.packaging",
151
+ PRODUCT_PRICELIST = "product.pricelist",
152
+ PRODUCT_PRICELIST_ITEM = "product.pricelist.item",
153
+ PRODUCT_PRODUCT = "product.product",
154
+ PRODUCT_TAG = "product.tag",
155
+ PRODUCT_TEMPLATE_ATTRIBUTE_LINE = "product.template.attribute.line",
156
+ PRODUCT_TEMPLATE_ATTRIBUTE_VALUE = "product.template.attribute.value",
157
+ RES_COMPANY = "res.company",
158
+ RES_COUNTRY = "res.country",
159
+ RES_COUNTRY_STATE = "res.country.state",
160
+ RES_CURRENCY = "res.currency",
161
+ RES_LANG = "res.lang",
162
+ RES_PARTNER = "res.partner",
163
+ RES_USERS = "res.users",
164
+ STOCK_PICKING_TYPE = "stock.picking.type",
165
+ UOM_CATEGORY = "uom.category",
166
+ UOM_UOM = "uom.uom",
167
+ LOYALTY_PROGRAM = "loyalty.program",
168
+ LOYALTY_RULE = "loyalty.rule",
169
+ LOYALTY_REWARD = "loyalty.reward",
170
+ RESTAURANT_TABLE = "restaurant.table",
171
+ RESTAURANT_FLOOR = "restaurant.floor",
172
+ POS_MAKE_PAYMENT = "pos.make.payment"
173
+ }
174
+ declare enum LoadDataModelSupa {
175
+ ACCOUNT_TAXES = "account_taxes",
176
+ COMPANIES = "companies",
177
+ CUSTOMERS = "customers",
178
+ EMPLOYEES = "employees",
179
+ LOYALTY_PROGRAMS = "loyalty_programs",
180
+ LOYALTY_REWARDS = "loyalty_rewards",
181
+ LOYALTY_RULES = "loyalty_rules",
182
+ ORDER_LINES = "order_lines",
183
+ ORDERS = "orders",
184
+ PAYMENT_METHODS = "payment_methods",
185
+ PAYMENTS = "payments",
186
+ POS_CONFIGS = "pos_configs",
187
+ POS_SESSIONS = "pos_sessions",
188
+ PRODUCT_CATEGORIES = "product_categories",
189
+ PRODUCTS = "products",
190
+ RESTAURANT_FLOORS = "restaurant_floors",
191
+ RESTAURANT_TABLES = "restaurant_tables"
192
+ }
193
+ declare const MODEL_TO_TABLE: Record<string, string>;
124
194
 
125
195
  declare enum ComponentType {
126
196
  GROUP = "group",
@@ -162,4 +232,4 @@ declare enum WIDGETNOSTRING {
162
232
  sla_status_ids = "sla_status_ids"
163
233
  }
164
234
 
165
- export { ComponentType, FieldTypeConstants, KeyConstants, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS };
235
+ export { ComponentType, FieldTypeConstants, KeyConstants, LoadDataModel, LoadDataModelSupa, MODEL_TO_TABLE, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS };
package/dist/constants.js CHANGED
@@ -23,6 +23,9 @@ __export(constants_exports, {
23
23
  ComponentType: () => ComponentType,
24
24
  FieldTypeConstants: () => FieldTypeConstants,
25
25
  KeyConstants: () => KeyConstants,
26
+ LoadDataModel: () => LoadDataModel,
27
+ LoadDataModelSupa: () => LoadDataModelSupa,
28
+ MODEL_TO_TABLE: () => MODEL_TO_TABLE,
26
29
  MethodConstants: () => MethodConstants,
27
30
  MethodType: () => MethodType,
28
31
  ModelConstants: () => ModelConstants,
@@ -171,6 +174,96 @@ var ModelConstants = /* @__PURE__ */ ((ModelConstants2) => {
171
174
  ModelConstants2["RES_PARTNER_TITLE"] = "res.partner.title";
172
175
  return ModelConstants2;
173
176
  })(ModelConstants || {});
177
+ var LoadDataModel = /* @__PURE__ */ ((LoadDataModel2) => {
178
+ LoadDataModel2["ACCOUNT_CASH_ROUNDING"] = "account.cash.rounding";
179
+ LoadDataModel2["ACCOUNT_FISCAL_POSITION"] = "account.fiscal.position";
180
+ LoadDataModel2["ACCOUNT_FISCAL_POSITION_TAX"] = "account.fiscal.position.tax";
181
+ LoadDataModel2["ACCOUNT_TAX"] = "account.tax";
182
+ LoadDataModel2["ACCOUNT_TAX_GROUP"] = "account.tax.group";
183
+ LoadDataModel2["DECIMAL_PRECISION"] = "decimal.precision";
184
+ LoadDataModel2["IR_MODULE_MODULE"] = "ir.module.module";
185
+ LoadDataModel2["IR_UI_VIEW"] = "ir.ui.view";
186
+ LoadDataModel2["POS_BILL"] = "pos.bill";
187
+ LoadDataModel2["POS_CATEGORY"] = "pos.category";
188
+ LoadDataModel2["POS_CONFIG"] = "pos.config";
189
+ LoadDataModel2["POS_NOTE"] = "pos.note";
190
+ LoadDataModel2["POS_ORDER"] = "pos.order";
191
+ LoadDataModel2["POS_ORDER_LINE"] = "pos.order.line";
192
+ LoadDataModel2["POS_PACK_OPERATION_LOT"] = "pos.pack.operation.lot";
193
+ LoadDataModel2["POS_PAYMENT"] = "pos.payment";
194
+ LoadDataModel2["POS_PAYMENT_METHOD"] = "pos.payment.method";
195
+ LoadDataModel2["POS_PRINTER"] = "pos.printer";
196
+ LoadDataModel2["POS_SESSION"] = "pos.session";
197
+ LoadDataModel2["POS_PREPARATION_DISPLAY_DISPLAY"] = "pos_preparation_display.display";
198
+ LoadDataModel2["PRODUCT_ATTRIBUTE"] = "product.attribute";
199
+ LoadDataModel2["PRODUCT_ATTRIBUTE_CUSTOM_VALUE"] = "product.attribute.custom.value";
200
+ LoadDataModel2["PRODUCT_CATEGORY"] = "product.category";
201
+ LoadDataModel2["PRODUCT_COMBO"] = "product.combo";
202
+ LoadDataModel2["PRODUCT_COMBO_ITEM"] = "product.combo.item";
203
+ LoadDataModel2["PRODUCT_PACKAGING"] = "product.packaging";
204
+ LoadDataModel2["PRODUCT_PRICELIST"] = "product.pricelist";
205
+ LoadDataModel2["PRODUCT_PRICELIST_ITEM"] = "product.pricelist.item";
206
+ LoadDataModel2["PRODUCT_PRODUCT"] = "product.product";
207
+ LoadDataModel2["PRODUCT_TAG"] = "product.tag";
208
+ LoadDataModel2["PRODUCT_TEMPLATE_ATTRIBUTE_LINE"] = "product.template.attribute.line";
209
+ LoadDataModel2["PRODUCT_TEMPLATE_ATTRIBUTE_VALUE"] = "product.template.attribute.value";
210
+ LoadDataModel2["RES_COMPANY"] = "res.company";
211
+ LoadDataModel2["RES_COUNTRY"] = "res.country";
212
+ LoadDataModel2["RES_COUNTRY_STATE"] = "res.country.state";
213
+ LoadDataModel2["RES_CURRENCY"] = "res.currency";
214
+ LoadDataModel2["RES_LANG"] = "res.lang";
215
+ LoadDataModel2["RES_PARTNER"] = "res.partner";
216
+ LoadDataModel2["RES_USERS"] = "res.users";
217
+ LoadDataModel2["STOCK_PICKING_TYPE"] = "stock.picking.type";
218
+ LoadDataModel2["UOM_CATEGORY"] = "uom.category";
219
+ LoadDataModel2["UOM_UOM"] = "uom.uom";
220
+ LoadDataModel2["LOYALTY_PROGRAM"] = "loyalty.program";
221
+ LoadDataModel2["LOYALTY_RULE"] = "loyalty.rule";
222
+ LoadDataModel2["LOYALTY_REWARD"] = "loyalty.reward";
223
+ LoadDataModel2["RESTAURANT_TABLE"] = "restaurant.table";
224
+ LoadDataModel2["RESTAURANT_FLOOR"] = "restaurant.floor";
225
+ LoadDataModel2["POS_MAKE_PAYMENT"] = "pos.make.payment";
226
+ return LoadDataModel2;
227
+ })(LoadDataModel || {});
228
+ var LoadDataModelSupa = /* @__PURE__ */ ((LoadDataModelSupa2) => {
229
+ LoadDataModelSupa2["ACCOUNT_TAXES"] = "account_taxes";
230
+ LoadDataModelSupa2["COMPANIES"] = "companies";
231
+ LoadDataModelSupa2["CUSTOMERS"] = "customers";
232
+ LoadDataModelSupa2["EMPLOYEES"] = "employees";
233
+ LoadDataModelSupa2["LOYALTY_PROGRAMS"] = "loyalty_programs";
234
+ LoadDataModelSupa2["LOYALTY_REWARDS"] = "loyalty_rewards";
235
+ LoadDataModelSupa2["LOYALTY_RULES"] = "loyalty_rules";
236
+ LoadDataModelSupa2["ORDER_LINES"] = "order_lines";
237
+ LoadDataModelSupa2["ORDERS"] = "orders";
238
+ LoadDataModelSupa2["PAYMENT_METHODS"] = "payment_methods";
239
+ LoadDataModelSupa2["PAYMENTS"] = "payments";
240
+ LoadDataModelSupa2["POS_CONFIGS"] = "pos_configs";
241
+ LoadDataModelSupa2["POS_SESSIONS"] = "pos_sessions";
242
+ LoadDataModelSupa2["PRODUCT_CATEGORIES"] = "product_categories";
243
+ LoadDataModelSupa2["PRODUCTS"] = "products";
244
+ LoadDataModelSupa2["RESTAURANT_FLOORS"] = "restaurant_floors";
245
+ LoadDataModelSupa2["RESTAURANT_TABLES"] = "restaurant_tables";
246
+ return LoadDataModelSupa2;
247
+ })(LoadDataModelSupa || {});
248
+ var MODEL_TO_TABLE = {
249
+ ["account.tax" /* ACCOUNT_TAX */]: "account_taxes" /* ACCOUNT_TAXES */,
250
+ ["res.company" /* RES_COMPANY */]: "companies" /* COMPANIES */,
251
+ ["res.partner" /* RES_PARTNER */]: "customers" /* CUSTOMERS */,
252
+ ["res.users" /* RES_USERS */]: "employees" /* EMPLOYEES */,
253
+ ["loyalty.program" /* LOYALTY_PROGRAM */]: "loyalty_programs" /* LOYALTY_PROGRAMS */,
254
+ ["loyalty.rule" /* LOYALTY_RULE */]: "loyalty_rules" /* LOYALTY_RULES */,
255
+ ["loyalty.reward" /* LOYALTY_REWARD */]: "loyalty_rewards" /* LOYALTY_REWARDS */,
256
+ ["pos.config" /* POS_CONFIG */]: "pos_configs" /* POS_CONFIGS */,
257
+ ["pos.session" /* POS_SESSION */]: "pos_sessions" /* POS_SESSIONS */,
258
+ ["pos.order.line" /* POS_ORDER_LINE */]: "order_lines" /* ORDER_LINES */,
259
+ ["pos.order" /* POS_ORDER */]: "orders" /* ORDERS */,
260
+ ["pos.payment.method" /* POS_PAYMENT_METHOD */]: "payment_methods" /* PAYMENT_METHODS */,
261
+ ["pos.payment" /* POS_PAYMENT */]: "payments" /* PAYMENTS */,
262
+ ["pos.category" /* POS_CATEGORY */]: "product_categories" /* PRODUCT_CATEGORIES */,
263
+ ["product.product" /* PRODUCT_PRODUCT */]: "products" /* PRODUCTS */,
264
+ ["restaurant.floor" /* RESTAURANT_FLOOR */]: "restaurant_floors" /* RESTAURANT_FLOORS */,
265
+ ["restaurant.table" /* RESTAURANT_TABLE */]: "restaurant_tables" /* RESTAURANT_TABLES */
266
+ };
174
267
 
175
268
  // src/constants/type/index.ts
176
269
  var ComponentType = /* @__PURE__ */ ((ComponentType2) => {
@@ -226,6 +319,9 @@ var WIDGETNOSTRING = /* @__PURE__ */ ((WIDGETNOSTRING2) => {
226
319
  ComponentType,
227
320
  FieldTypeConstants,
228
321
  KeyConstants,
322
+ LoadDataModel,
323
+ LoadDataModelSupa,
324
+ MODEL_TO_TABLE,
229
325
  MethodConstants,
230
326
  MethodType,
231
327
  ModelConstants,
@@ -133,6 +133,96 @@ var ModelConstants = /* @__PURE__ */ ((ModelConstants2) => {
133
133
  ModelConstants2["RES_PARTNER_TITLE"] = "res.partner.title";
134
134
  return ModelConstants2;
135
135
  })(ModelConstants || {});
136
+ var LoadDataModel = /* @__PURE__ */ ((LoadDataModel2) => {
137
+ LoadDataModel2["ACCOUNT_CASH_ROUNDING"] = "account.cash.rounding";
138
+ LoadDataModel2["ACCOUNT_FISCAL_POSITION"] = "account.fiscal.position";
139
+ LoadDataModel2["ACCOUNT_FISCAL_POSITION_TAX"] = "account.fiscal.position.tax";
140
+ LoadDataModel2["ACCOUNT_TAX"] = "account.tax";
141
+ LoadDataModel2["ACCOUNT_TAX_GROUP"] = "account.tax.group";
142
+ LoadDataModel2["DECIMAL_PRECISION"] = "decimal.precision";
143
+ LoadDataModel2["IR_MODULE_MODULE"] = "ir.module.module";
144
+ LoadDataModel2["IR_UI_VIEW"] = "ir.ui.view";
145
+ LoadDataModel2["POS_BILL"] = "pos.bill";
146
+ LoadDataModel2["POS_CATEGORY"] = "pos.category";
147
+ LoadDataModel2["POS_CONFIG"] = "pos.config";
148
+ LoadDataModel2["POS_NOTE"] = "pos.note";
149
+ LoadDataModel2["POS_ORDER"] = "pos.order";
150
+ LoadDataModel2["POS_ORDER_LINE"] = "pos.order.line";
151
+ LoadDataModel2["POS_PACK_OPERATION_LOT"] = "pos.pack.operation.lot";
152
+ LoadDataModel2["POS_PAYMENT"] = "pos.payment";
153
+ LoadDataModel2["POS_PAYMENT_METHOD"] = "pos.payment.method";
154
+ LoadDataModel2["POS_PRINTER"] = "pos.printer";
155
+ LoadDataModel2["POS_SESSION"] = "pos.session";
156
+ LoadDataModel2["POS_PREPARATION_DISPLAY_DISPLAY"] = "pos_preparation_display.display";
157
+ LoadDataModel2["PRODUCT_ATTRIBUTE"] = "product.attribute";
158
+ LoadDataModel2["PRODUCT_ATTRIBUTE_CUSTOM_VALUE"] = "product.attribute.custom.value";
159
+ LoadDataModel2["PRODUCT_CATEGORY"] = "product.category";
160
+ LoadDataModel2["PRODUCT_COMBO"] = "product.combo";
161
+ LoadDataModel2["PRODUCT_COMBO_ITEM"] = "product.combo.item";
162
+ LoadDataModel2["PRODUCT_PACKAGING"] = "product.packaging";
163
+ LoadDataModel2["PRODUCT_PRICELIST"] = "product.pricelist";
164
+ LoadDataModel2["PRODUCT_PRICELIST_ITEM"] = "product.pricelist.item";
165
+ LoadDataModel2["PRODUCT_PRODUCT"] = "product.product";
166
+ LoadDataModel2["PRODUCT_TAG"] = "product.tag";
167
+ LoadDataModel2["PRODUCT_TEMPLATE_ATTRIBUTE_LINE"] = "product.template.attribute.line";
168
+ LoadDataModel2["PRODUCT_TEMPLATE_ATTRIBUTE_VALUE"] = "product.template.attribute.value";
169
+ LoadDataModel2["RES_COMPANY"] = "res.company";
170
+ LoadDataModel2["RES_COUNTRY"] = "res.country";
171
+ LoadDataModel2["RES_COUNTRY_STATE"] = "res.country.state";
172
+ LoadDataModel2["RES_CURRENCY"] = "res.currency";
173
+ LoadDataModel2["RES_LANG"] = "res.lang";
174
+ LoadDataModel2["RES_PARTNER"] = "res.partner";
175
+ LoadDataModel2["RES_USERS"] = "res.users";
176
+ LoadDataModel2["STOCK_PICKING_TYPE"] = "stock.picking.type";
177
+ LoadDataModel2["UOM_CATEGORY"] = "uom.category";
178
+ LoadDataModel2["UOM_UOM"] = "uom.uom";
179
+ LoadDataModel2["LOYALTY_PROGRAM"] = "loyalty.program";
180
+ LoadDataModel2["LOYALTY_RULE"] = "loyalty.rule";
181
+ LoadDataModel2["LOYALTY_REWARD"] = "loyalty.reward";
182
+ LoadDataModel2["RESTAURANT_TABLE"] = "restaurant.table";
183
+ LoadDataModel2["RESTAURANT_FLOOR"] = "restaurant.floor";
184
+ LoadDataModel2["POS_MAKE_PAYMENT"] = "pos.make.payment";
185
+ return LoadDataModel2;
186
+ })(LoadDataModel || {});
187
+ var LoadDataModelSupa = /* @__PURE__ */ ((LoadDataModelSupa2) => {
188
+ LoadDataModelSupa2["ACCOUNT_TAXES"] = "account_taxes";
189
+ LoadDataModelSupa2["COMPANIES"] = "companies";
190
+ LoadDataModelSupa2["CUSTOMERS"] = "customers";
191
+ LoadDataModelSupa2["EMPLOYEES"] = "employees";
192
+ LoadDataModelSupa2["LOYALTY_PROGRAMS"] = "loyalty_programs";
193
+ LoadDataModelSupa2["LOYALTY_REWARDS"] = "loyalty_rewards";
194
+ LoadDataModelSupa2["LOYALTY_RULES"] = "loyalty_rules";
195
+ LoadDataModelSupa2["ORDER_LINES"] = "order_lines";
196
+ LoadDataModelSupa2["ORDERS"] = "orders";
197
+ LoadDataModelSupa2["PAYMENT_METHODS"] = "payment_methods";
198
+ LoadDataModelSupa2["PAYMENTS"] = "payments";
199
+ LoadDataModelSupa2["POS_CONFIGS"] = "pos_configs";
200
+ LoadDataModelSupa2["POS_SESSIONS"] = "pos_sessions";
201
+ LoadDataModelSupa2["PRODUCT_CATEGORIES"] = "product_categories";
202
+ LoadDataModelSupa2["PRODUCTS"] = "products";
203
+ LoadDataModelSupa2["RESTAURANT_FLOORS"] = "restaurant_floors";
204
+ LoadDataModelSupa2["RESTAURANT_TABLES"] = "restaurant_tables";
205
+ return LoadDataModelSupa2;
206
+ })(LoadDataModelSupa || {});
207
+ var MODEL_TO_TABLE = {
208
+ ["account.tax" /* ACCOUNT_TAX */]: "account_taxes" /* ACCOUNT_TAXES */,
209
+ ["res.company" /* RES_COMPANY */]: "companies" /* COMPANIES */,
210
+ ["res.partner" /* RES_PARTNER */]: "customers" /* CUSTOMERS */,
211
+ ["res.users" /* RES_USERS */]: "employees" /* EMPLOYEES */,
212
+ ["loyalty.program" /* LOYALTY_PROGRAM */]: "loyalty_programs" /* LOYALTY_PROGRAMS */,
213
+ ["loyalty.rule" /* LOYALTY_RULE */]: "loyalty_rules" /* LOYALTY_RULES */,
214
+ ["loyalty.reward" /* LOYALTY_REWARD */]: "loyalty_rewards" /* LOYALTY_REWARDS */,
215
+ ["pos.config" /* POS_CONFIG */]: "pos_configs" /* POS_CONFIGS */,
216
+ ["pos.session" /* POS_SESSION */]: "pos_sessions" /* POS_SESSIONS */,
217
+ ["pos.order.line" /* POS_ORDER_LINE */]: "order_lines" /* ORDER_LINES */,
218
+ ["pos.order" /* POS_ORDER */]: "orders" /* ORDERS */,
219
+ ["pos.payment.method" /* POS_PAYMENT_METHOD */]: "payment_methods" /* PAYMENT_METHODS */,
220
+ ["pos.payment" /* POS_PAYMENT */]: "payments" /* PAYMENTS */,
221
+ ["pos.category" /* POS_CATEGORY */]: "product_categories" /* PRODUCT_CATEGORIES */,
222
+ ["product.product" /* PRODUCT_PRODUCT */]: "products" /* PRODUCTS */,
223
+ ["restaurant.floor" /* RESTAURANT_FLOOR */]: "restaurant_floors" /* RESTAURANT_FLOORS */,
224
+ ["restaurant.table" /* RESTAURANT_TABLE */]: "restaurant_tables" /* RESTAURANT_TABLES */
225
+ };
136
226
 
137
227
  // src/constants/type/index.ts
138
228
  var ComponentType = /* @__PURE__ */ ((ComponentType2) => {
@@ -187,6 +277,9 @@ export {
187
277
  ComponentType,
188
278
  FieldTypeConstants,
189
279
  KeyConstants,
280
+ LoadDataModel,
281
+ LoadDataModelSupa,
282
+ MODEL_TO_TABLE,
190
283
  MethodConstants,
191
284
  MethodType,
192
285
  ModelConstants,
package/dist/hooks.d.mts CHANGED
@@ -527,6 +527,8 @@ declare const useAddEntity: () => _tanstack_react_query.UseMutationResult<unknow
527
527
  service?: string;
528
528
  xNode?: string;
529
529
  isCreateEndpoint?: boolean;
530
+ isSupa?: boolean;
531
+ supaCallback?: (values: any) => Promise<any>;
530
532
  }, unknown>;
531
533
 
532
534
  declare const useGetASession: () => _tanstack_react_query.UseMutationResult<any, Error, {
@@ -764,4 +766,20 @@ declare const useCompleteCurrentStage: () => _tanstack_react_query.UseMutationRe
764
766
  xNode?: string;
765
767
  }, unknown>;
766
768
 
767
- export { useAddEntity, useButton, useChangeOrderPreparationState, useChangeStatus, useCheckPayment, useCompleteCurrentStage, useCreateEInvoice, useCreateEntity, useCreatePosConfig, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetCity, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCountry, useGetCurrency, useGetCurrentCompany, useGetCurrentUser, useGetDataChart, useGetDetail, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetNotifications, useGetOrderLine, useGetPartnerTitle, useGetPinCode, useGetPos, useGetPreparationDisplayData, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetTenantMapping, useGetThreadData, useGetThreadMessages, useGetToken, useGetUser, useGetVersion, useGetView, useGetWard, useGrantAccess, useHandleCloseSession, useHandleClosingDetailSession, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLoginSupa, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useProcessOrder, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSavePinCode, useSearchJournal, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdateClosedSession, useUpdateEntity, useUpdateOrderStatus, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
769
+ declare const useAddFloor: () => _tanstack_react_query.UseMutationResult<[number, string][] | null, Error, {
770
+ name: string;
771
+ sequence?: number;
772
+ pos_config_ids?: number[];
773
+ table_ids?: number[];
774
+ }, unknown>;
775
+
776
+ declare const useAddTable: () => _tanstack_react_query.UseMutationResult<[number, number][] | null, Error, {
777
+ floor_id?: number;
778
+ table_number?: number;
779
+ seats?: number;
780
+ active?: boolean;
781
+ shape?: "square" | "round";
782
+ parent_id?: number;
783
+ }, unknown>;
784
+
785
+ export { useAddEntity, useAddFloor, useAddTable, useButton, useChangeOrderPreparationState, useChangeStatus, useCheckPayment, useCompleteCurrentStage, useCreateEInvoice, useCreateEntity, useCreatePosConfig, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetCity, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCountry, useGetCurrency, useGetCurrentCompany, useGetCurrentUser, useGetDataChart, useGetDetail, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetNotifications, useGetOrderLine, useGetPartnerTitle, useGetPinCode, useGetPos, useGetPreparationDisplayData, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetTenantMapping, useGetThreadData, useGetThreadMessages, useGetToken, useGetUser, useGetVersion, useGetView, useGetWard, useGrantAccess, useHandleCloseSession, useHandleClosingDetailSession, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLoginSupa, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useProcessOrder, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSavePinCode, useSearchJournal, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdateClosedSession, useUpdateEntity, useUpdateOrderStatus, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
package/dist/hooks.d.ts CHANGED
@@ -527,6 +527,8 @@ declare const useAddEntity: () => _tanstack_react_query.UseMutationResult<unknow
527
527
  service?: string;
528
528
  xNode?: string;
529
529
  isCreateEndpoint?: boolean;
530
+ isSupa?: boolean;
531
+ supaCallback?: (values: any) => Promise<any>;
530
532
  }, unknown>;
531
533
 
532
534
  declare const useGetASession: () => _tanstack_react_query.UseMutationResult<any, Error, {
@@ -764,4 +766,20 @@ declare const useCompleteCurrentStage: () => _tanstack_react_query.UseMutationRe
764
766
  xNode?: string;
765
767
  }, unknown>;
766
768
 
767
- export { useAddEntity, useButton, useChangeOrderPreparationState, useChangeStatus, useCheckPayment, useCompleteCurrentStage, useCreateEInvoice, useCreateEntity, useCreatePosConfig, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetCity, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCountry, useGetCurrency, useGetCurrentCompany, useGetCurrentUser, useGetDataChart, useGetDetail, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetNotifications, useGetOrderLine, useGetPartnerTitle, useGetPinCode, useGetPos, useGetPreparationDisplayData, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetTenantMapping, useGetThreadData, useGetThreadMessages, useGetToken, useGetUser, useGetVersion, useGetView, useGetWard, useGrantAccess, useHandleCloseSession, useHandleClosingDetailSession, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLoginSupa, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useProcessOrder, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSavePinCode, useSearchJournal, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdateClosedSession, useUpdateEntity, useUpdateOrderStatus, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
769
+ declare const useAddFloor: () => _tanstack_react_query.UseMutationResult<[number, string][] | null, Error, {
770
+ name: string;
771
+ sequence?: number;
772
+ pos_config_ids?: number[];
773
+ table_ids?: number[];
774
+ }, unknown>;
775
+
776
+ declare const useAddTable: () => _tanstack_react_query.UseMutationResult<[number, number][] | null, Error, {
777
+ floor_id?: number;
778
+ table_number?: number;
779
+ seats?: number;
780
+ active?: boolean;
781
+ shape?: "square" | "round";
782
+ parent_id?: number;
783
+ }, unknown>;
784
+
785
+ export { useAddEntity, useAddFloor, useAddTable, useButton, useChangeOrderPreparationState, useChangeStatus, useCheckPayment, useCompleteCurrentStage, useCreateEInvoice, useCreateEntity, useCreatePosConfig, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetCity, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCountry, useGetCurrency, useGetCurrentCompany, useGetCurrentUser, useGetDataChart, useGetDetail, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetNotifications, useGetOrderLine, useGetPartnerTitle, useGetPinCode, useGetPos, useGetPreparationDisplayData, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetTenantMapping, useGetThreadData, useGetThreadMessages, useGetToken, useGetUser, useGetVersion, useGetView, useGetWard, useGrantAccess, useHandleCloseSession, useHandleClosingDetailSession, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLoginSupa, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useProcessOrder, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSavePinCode, useSearchJournal, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdateClosedSession, useUpdateEntity, useUpdateOrderStatus, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };