@fctc/interface-logic 4.5.11-beta.0 → 4.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base-model-type-DD8uZnDP.d.ts +8 -0
- package/dist/configs.d.ts +12 -0
- package/dist/configs.js +2581 -0
- package/dist/configs.mjs +2544 -1
- package/dist/constants.d.mts +1 -1
- package/dist/constants.d.ts +235 -0
- package/dist/constants.js +335 -0
- package/dist/constants.mjs +293 -1
- package/dist/environment.d.mts +1 -1
- package/dist/environment.d.ts +56 -0
- package/dist/environment.js +2708 -0
- package/dist/environment.mjs +2669 -1
- package/dist/hooks.d.mts +7 -1
- package/dist/hooks.d.ts +828 -0
- package/dist/hooks.js +8949 -0
- package/dist/hooks.mjs +8792 -1
- package/dist/{local-storage-AbiOQTLK.d.mts → local-storage-BPvoMGYJ.d.mts} +1 -1
- package/dist/local-storage-BPvoMGYJ.d.ts +10 -0
- package/dist/models.d.ts +14 -0
- package/dist/models.js +147 -0
- package/dist/models.mjs +120 -1
- package/dist/provider.d.mts +10 -5
- package/dist/provider.d.ts +214 -0
- package/dist/provider.js +9535 -0
- package/dist/provider.mjs +9489 -1
- package/dist/services.d.ts +700 -0
- package/dist/services.js +6959 -0
- package/dist/services.mjs +6912 -1
- package/dist/store.d.mts +382 -0
- package/dist/store.d.ts +382 -0
- package/dist/store.js +823 -0
- package/dist/store.mjs +717 -0
- package/dist/types.d.ts +19 -0
- package/dist/types.js +18 -0
- package/dist/utils.d.mts +61 -38
- package/dist/utils.d.ts +112 -0
- package/dist/utils.js +3099 -0
- package/dist/utils.mjs +3030 -1
- package/dist/view-type-CfcWWR0w.d.ts +137 -0
- package/package.json +92 -78
- package/dist/chunk-5N6LG2T7.mjs +0 -2
- package/dist/chunk-CI6PEZ77.mjs +0 -1
- package/dist/chunk-KPELPP6F.mjs +0 -1
- package/dist/chunk-LCUY2BJU.mjs +0 -1
- package/dist/chunk-QGGHYIHF.mjs +0 -1
- package/dist/chunk-W5MFEPZ6.mjs +0 -5
package/dist/constants.d.mts
CHANGED
|
@@ -185,7 +185,7 @@ declare enum LoadDataModelSupa {
|
|
|
185
185
|
PAYMENTS = "payments",
|
|
186
186
|
POS_CONFIGS = "pos_configs",
|
|
187
187
|
POS_SESSIONS = "pos_sessions",
|
|
188
|
-
|
|
188
|
+
POS_CATEGORIES = "pos_categories",
|
|
189
189
|
PRODUCTS = "products",
|
|
190
190
|
RESTAURANT_FLOORS = "restaurant_floors",
|
|
191
191
|
RESTAURANT_TABLES = "restaurant_tables"
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
declare enum KeyConstants {
|
|
2
|
+
PROFILE = "userinfo",
|
|
3
|
+
CURRENT_COMPANY = "current_company",
|
|
4
|
+
LIST_COMPANY = "list_company",
|
|
5
|
+
COMPANY_INFO = "company_info",
|
|
6
|
+
MENU = "menus",
|
|
7
|
+
GET_VIEW_BY_ACTION = "get_view_by_action",
|
|
8
|
+
ACTION_DETAIL = "action_detail",
|
|
9
|
+
GET_DATA_SELECTION = "get_data_select",
|
|
10
|
+
WEB_SAVE = "web_save",
|
|
11
|
+
WEB_READ = "web_read",
|
|
12
|
+
GET_PROVIDER = "get_provider"
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare enum MethodConstants {
|
|
16
|
+
WEB_SEARCH_READ = "web_search_read",
|
|
17
|
+
WEB_READ_GROUP = "web_read_group",
|
|
18
|
+
WEB_READ = "web_read",
|
|
19
|
+
WEB_SAVE = "web_save",
|
|
20
|
+
UNLINK = "unlink",
|
|
21
|
+
ONCHANGE = "onchange",
|
|
22
|
+
GET_ONCHANGE_FIELDS = "get_fields_onchange",
|
|
23
|
+
GET_FIELD_VIEW = "get_fields_view_v2",
|
|
24
|
+
CREATE = "create",
|
|
25
|
+
LOAD_DATA = "load_data",
|
|
26
|
+
CHECK = "check",
|
|
27
|
+
GET_CLOSING_CONTROL_DATA = "get_closing_control_data",
|
|
28
|
+
GET_PREPARATION_DISPLAY_DATA = "get_preparation_display_data",
|
|
29
|
+
CHANGE_ORDER_STAGE = "change_order_stage",
|
|
30
|
+
PROCESS_ORDER = "process_order",
|
|
31
|
+
CREATE_E_INVOICE = "create_e_invoice",
|
|
32
|
+
GET_DATA_SELECT = "get_data_select",
|
|
33
|
+
COMPLETE_CURRENT_STAGE = "complete_current_stage"
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare enum UriConstants {
|
|
37
|
+
AUTH_TOKEN_PATH = "/authentication/oauth2/token",
|
|
38
|
+
GENTOKEN_SOCIAL = "/token/generate",
|
|
39
|
+
CALL_PATH = "/call",
|
|
40
|
+
COMPANY_PATH = "/company",
|
|
41
|
+
PROFILE_PATH = "/userinfo",
|
|
42
|
+
RESET_PASSWORD_PATH = "/reset_password",
|
|
43
|
+
CHANGE_PASSWORD_PATH = "/change_password",
|
|
44
|
+
UPDATE_PASSWORD_PATH = "/change_password_parent",
|
|
45
|
+
LOAD_ACTION = "/load_action",
|
|
46
|
+
REPORT_PATH = "/report",
|
|
47
|
+
RUN_ACTION_PATH = "/run_action",
|
|
48
|
+
UPLOAD_FILE_EXCEL_PATH = "/upload/file",
|
|
49
|
+
UPLOAD_FILE_PATH = "/file/upload",
|
|
50
|
+
GET_MESSAGE = "/chatter/thread/messages",
|
|
51
|
+
GET_THREAD_DATA = "/mail/thread/data",
|
|
52
|
+
GET_THREAD_MESSAGES = "/mail/thread/messages",
|
|
53
|
+
SENT_MESSAGE = "/chatter/message/post",
|
|
54
|
+
UPLOAD_IMAGE = "/mail/attachment/upload",
|
|
55
|
+
DELETE_MESSAGE = "/chatter/message/update_content",
|
|
56
|
+
IMAGE_PATH = "/web/image",
|
|
57
|
+
LOAD_MESSAGE = "/load_message_failures",
|
|
58
|
+
TOKEN = "/check_token",
|
|
59
|
+
VALIDATE_ACTION_TOKEN = "/action-token/validate",
|
|
60
|
+
CREATE_UPDATE_PATH = "/create_update",
|
|
61
|
+
TWOFA_METHOD_PATH = "/id/api/v2/call",
|
|
62
|
+
SIGNIN_SSO = "/signin-sso/oauth",
|
|
63
|
+
GRANT_ACCESS = "/grant-access",
|
|
64
|
+
TOKEN_BY_CODE = "/token",
|
|
65
|
+
LOGOUT = "/logout",
|
|
66
|
+
CREATE_UPDATE = "/create_update",
|
|
67
|
+
SEARCH_READ = "/search_read",
|
|
68
|
+
CREATE_PATH = "/create",
|
|
69
|
+
TENANT_MAPPING = "/tenant-mapping",
|
|
70
|
+
EMENU_AUTH_TOKEN = "/emenu/auth/token",
|
|
71
|
+
POS_ORDER_STATUS = "/pos-order/status",
|
|
72
|
+
PAYMENT_QR = "/payment/qr",
|
|
73
|
+
POS_DEVICE_PIN = "/pos_device/pin",
|
|
74
|
+
GET_PIN_CODE = "/pos_device/get_pin_code",
|
|
75
|
+
READ_GROUP = "/read_group",
|
|
76
|
+
GET_NOTIFICATION = "/mail/data",
|
|
77
|
+
PUBLIC_USER_INFO = "/public/user/info"
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare enum FieldTypeConstants {
|
|
81
|
+
CHAR = "char",
|
|
82
|
+
TEXT = "text",
|
|
83
|
+
INTEGER = "integer",
|
|
84
|
+
FLOAT = "float",
|
|
85
|
+
BOOLEAN = "boolean",
|
|
86
|
+
DATE = "date",
|
|
87
|
+
DATETIME = "datetime",
|
|
88
|
+
BINARY = "binary",
|
|
89
|
+
SELECTION = "selection",
|
|
90
|
+
HTML = "html",
|
|
91
|
+
MANY2ONE = "many2one",
|
|
92
|
+
ONE2MANY = "one2many",
|
|
93
|
+
MANY2MANY = "many2many",
|
|
94
|
+
MONETARY = "monetary",
|
|
95
|
+
REFERENCE = "reference",
|
|
96
|
+
FUNCTION = "function",
|
|
97
|
+
PROPERTY = "property"
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
declare enum MethodType {
|
|
101
|
+
CREATE = 0,
|
|
102
|
+
UPDATE = 1,
|
|
103
|
+
DELETE = 2,
|
|
104
|
+
UNLINK = 3,
|
|
105
|
+
NO_CHANGE = 4
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
declare enum ModelConstants {
|
|
109
|
+
MENU = "ir.ui.menu",
|
|
110
|
+
USER = "res.users",
|
|
111
|
+
COMPANY = "res.company",
|
|
112
|
+
WINDOW_ACTION = "ir.actions.act_window",
|
|
113
|
+
BASE_IMPORT = "base_import.import",
|
|
114
|
+
GET_IMPORT = "get_import_templates",
|
|
115
|
+
POS_PREPARATION_DISPLAY = "pos_preparation_display.display",
|
|
116
|
+
POS_PREPARATION_ORDER = "pos_preparation_display.order",
|
|
117
|
+
POS_PREPARATION_ORDER_LINE = "pos_preparation_display.orderline",
|
|
118
|
+
POS_ORDER = "pos.order",
|
|
119
|
+
COUNTRY = "res.country",
|
|
120
|
+
COUNTRY_STATE = "res.country.state",
|
|
121
|
+
COUNTRY_WARD = "res.country.ward",
|
|
122
|
+
RES_PARTNER_TITLE = "res.partner.title"
|
|
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_LINE = "order_line",
|
|
183
|
+
ORDERS = "orders",
|
|
184
|
+
PAYMENT_METHODS = "payment_methods",
|
|
185
|
+
PAYMENTS = "payments",
|
|
186
|
+
POS_CONFIGS = "pos_configs",
|
|
187
|
+
POS_SESSIONS = "pos_sessions",
|
|
188
|
+
POS_CATEGORIES = "pos_categories",
|
|
189
|
+
PRODUCTS = "products",
|
|
190
|
+
RESTAURANT_FLOORS = "restaurant_floors",
|
|
191
|
+
RESTAURANT_TABLES = "restaurant_tables"
|
|
192
|
+
}
|
|
193
|
+
declare const MODEL_TO_TABLE: Record<string, string>;
|
|
194
|
+
|
|
195
|
+
declare enum ComponentType {
|
|
196
|
+
GROUP = "group",
|
|
197
|
+
FIELD = "field",
|
|
198
|
+
TREE = "tree",
|
|
199
|
+
DIV = "div",
|
|
200
|
+
LIST = "list",
|
|
201
|
+
FORM = "form",
|
|
202
|
+
SETTINGS = "setting",
|
|
203
|
+
SPAN = "span",
|
|
204
|
+
KANBAN = "kanban",
|
|
205
|
+
CALENDAR = "calendar",
|
|
206
|
+
TYPE = "view-type"
|
|
207
|
+
}
|
|
208
|
+
declare const SearchType: {
|
|
209
|
+
FILTER: string;
|
|
210
|
+
SEARCH: string;
|
|
211
|
+
GROUP: string;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
declare enum WIDGETAVATAR {
|
|
215
|
+
many2one_avatar_user = "many2one_avatar_user",
|
|
216
|
+
many2many_avatar_user = "many2many_avatar_user"
|
|
217
|
+
}
|
|
218
|
+
declare enum WIDGETCURRENCY {
|
|
219
|
+
many2one_avatar_user = "many2one_avatar_user",
|
|
220
|
+
many2many_avatar_user = "many2many_avatar_user"
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
declare enum WIDGETCOLOR {
|
|
224
|
+
many2many_tags = "many2many_tags",
|
|
225
|
+
helpdesk_sla_many2many_tags = "helpdesk_sla_many2many_tags"
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
declare enum WIDGETSTATUS {
|
|
229
|
+
sla_status_ids = "sla_status_ids"
|
|
230
|
+
}
|
|
231
|
+
declare enum WIDGETNOSTRING {
|
|
232
|
+
sla_status_ids = "sla_status_ids"
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export { ComponentType, FieldTypeConstants, KeyConstants, LoadDataModel, LoadDataModelSupa, MODEL_TO_TABLE, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS };
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
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);
|
|
19
|
+
|
|
20
|
+
// src/constants.ts
|
|
21
|
+
var constants_exports = {};
|
|
22
|
+
__export(constants_exports, {
|
|
23
|
+
ComponentType: () => ComponentType,
|
|
24
|
+
FieldTypeConstants: () => FieldTypeConstants,
|
|
25
|
+
KeyConstants: () => KeyConstants,
|
|
26
|
+
LoadDataModel: () => LoadDataModel,
|
|
27
|
+
LoadDataModelSupa: () => LoadDataModelSupa,
|
|
28
|
+
MODEL_TO_TABLE: () => MODEL_TO_TABLE,
|
|
29
|
+
MethodConstants: () => MethodConstants,
|
|
30
|
+
MethodType: () => MethodType,
|
|
31
|
+
ModelConstants: () => ModelConstants,
|
|
32
|
+
SearchType: () => SearchType,
|
|
33
|
+
UriConstants: () => UriConstants,
|
|
34
|
+
WIDGETAVATAR: () => WIDGETAVATAR,
|
|
35
|
+
WIDGETCOLOR: () => WIDGETCOLOR,
|
|
36
|
+
WIDGETCURRENCY: () => WIDGETCURRENCY,
|
|
37
|
+
WIDGETNOSTRING: () => WIDGETNOSTRING,
|
|
38
|
+
WIDGETSTATUS: () => WIDGETSTATUS
|
|
39
|
+
});
|
|
40
|
+
module.exports = __toCommonJS(constants_exports);
|
|
41
|
+
|
|
42
|
+
// src/constants/api/key-constant.ts
|
|
43
|
+
var KeyConstants = /* @__PURE__ */ ((KeyConstants2) => {
|
|
44
|
+
KeyConstants2["PROFILE"] = "userinfo";
|
|
45
|
+
KeyConstants2["CURRENT_COMPANY"] = "current_company";
|
|
46
|
+
KeyConstants2["LIST_COMPANY"] = "list_company";
|
|
47
|
+
KeyConstants2["COMPANY_INFO"] = "company_info";
|
|
48
|
+
KeyConstants2["MENU"] = "menus";
|
|
49
|
+
KeyConstants2["GET_VIEW_BY_ACTION"] = "get_view_by_action";
|
|
50
|
+
KeyConstants2["ACTION_DETAIL"] = "action_detail";
|
|
51
|
+
KeyConstants2["GET_DATA_SELECTION"] = "get_data_select";
|
|
52
|
+
KeyConstants2["WEB_SAVE"] = "web_save";
|
|
53
|
+
KeyConstants2["WEB_READ"] = "web_read";
|
|
54
|
+
KeyConstants2["GET_PROVIDER"] = "get_provider";
|
|
55
|
+
return KeyConstants2;
|
|
56
|
+
})(KeyConstants || {});
|
|
57
|
+
|
|
58
|
+
// src/constants/api/method-constant.ts
|
|
59
|
+
var MethodConstants = /* @__PURE__ */ ((MethodConstants2) => {
|
|
60
|
+
MethodConstants2["WEB_SEARCH_READ"] = "web_search_read";
|
|
61
|
+
MethodConstants2["WEB_READ_GROUP"] = "web_read_group";
|
|
62
|
+
MethodConstants2["WEB_READ"] = "web_read";
|
|
63
|
+
MethodConstants2["WEB_SAVE"] = "web_save";
|
|
64
|
+
MethodConstants2["UNLINK"] = "unlink";
|
|
65
|
+
MethodConstants2["ONCHANGE"] = "onchange";
|
|
66
|
+
MethodConstants2["GET_ONCHANGE_FIELDS"] = "get_fields_onchange";
|
|
67
|
+
MethodConstants2["GET_FIELD_VIEW"] = "get_fields_view_v2";
|
|
68
|
+
MethodConstants2["CREATE"] = "create";
|
|
69
|
+
MethodConstants2["LOAD_DATA"] = "load_data";
|
|
70
|
+
MethodConstants2["CHECK"] = "check";
|
|
71
|
+
MethodConstants2["GET_CLOSING_CONTROL_DATA"] = "get_closing_control_data";
|
|
72
|
+
MethodConstants2["GET_PREPARATION_DISPLAY_DATA"] = "get_preparation_display_data";
|
|
73
|
+
MethodConstants2["CHANGE_ORDER_STAGE"] = "change_order_stage";
|
|
74
|
+
MethodConstants2["PROCESS_ORDER"] = "process_order";
|
|
75
|
+
MethodConstants2["CREATE_E_INVOICE"] = "create_e_invoice";
|
|
76
|
+
MethodConstants2["GET_DATA_SELECT"] = "get_data_select";
|
|
77
|
+
MethodConstants2["COMPLETE_CURRENT_STAGE"] = "complete_current_stage";
|
|
78
|
+
return MethodConstants2;
|
|
79
|
+
})(MethodConstants || {});
|
|
80
|
+
|
|
81
|
+
// src/constants/api/uri-constant.ts
|
|
82
|
+
var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
83
|
+
UriConstants2["AUTH_TOKEN_PATH"] = "/authentication/oauth2/token";
|
|
84
|
+
UriConstants2["GENTOKEN_SOCIAL"] = "/token/generate";
|
|
85
|
+
UriConstants2["CALL_PATH"] = "/call";
|
|
86
|
+
UriConstants2["COMPANY_PATH"] = "/company";
|
|
87
|
+
UriConstants2["PROFILE_PATH"] = "/userinfo";
|
|
88
|
+
UriConstants2["RESET_PASSWORD_PATH"] = "/reset_password";
|
|
89
|
+
UriConstants2["CHANGE_PASSWORD_PATH"] = "/change_password";
|
|
90
|
+
UriConstants2["UPDATE_PASSWORD_PATH"] = "/change_password_parent";
|
|
91
|
+
UriConstants2["LOAD_ACTION"] = `/load_action`;
|
|
92
|
+
UriConstants2["REPORT_PATH"] = `/report`;
|
|
93
|
+
UriConstants2["RUN_ACTION_PATH"] = `/run_action`;
|
|
94
|
+
UriConstants2["UPLOAD_FILE_EXCEL_PATH"] = `/upload/file`;
|
|
95
|
+
UriConstants2["UPLOAD_FILE_PATH"] = `/file/upload`;
|
|
96
|
+
UriConstants2["GET_MESSAGE"] = `/chatter/thread/messages`;
|
|
97
|
+
UriConstants2["GET_THREAD_DATA"] = `/mail/thread/data`;
|
|
98
|
+
UriConstants2["GET_THREAD_MESSAGES"] = `/mail/thread/messages`;
|
|
99
|
+
UriConstants2["SENT_MESSAGE"] = `/chatter/message/post`;
|
|
100
|
+
UriConstants2["UPLOAD_IMAGE"] = `/mail/attachment/upload`;
|
|
101
|
+
UriConstants2["DELETE_MESSAGE"] = `/chatter/message/update_content`;
|
|
102
|
+
UriConstants2["IMAGE_PATH"] = `/web/image`;
|
|
103
|
+
UriConstants2["LOAD_MESSAGE"] = `/load_message_failures`;
|
|
104
|
+
UriConstants2["TOKEN"] = `/check_token`;
|
|
105
|
+
UriConstants2["VALIDATE_ACTION_TOKEN"] = `/action-token/validate`;
|
|
106
|
+
UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
|
|
107
|
+
UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
|
|
108
|
+
UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
|
|
109
|
+
UriConstants2["GRANT_ACCESS"] = "/grant-access";
|
|
110
|
+
UriConstants2["TOKEN_BY_CODE"] = "/token";
|
|
111
|
+
UriConstants2["LOGOUT"] = "/logout";
|
|
112
|
+
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
113
|
+
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
114
|
+
UriConstants2["CREATE_PATH"] = "/create";
|
|
115
|
+
UriConstants2["TENANT_MAPPING"] = "/tenant-mapping";
|
|
116
|
+
UriConstants2["EMENU_AUTH_TOKEN"] = "/emenu/auth/token";
|
|
117
|
+
UriConstants2["POS_ORDER_STATUS"] = "/pos-order/status";
|
|
118
|
+
UriConstants2["PAYMENT_QR"] = "/payment/qr";
|
|
119
|
+
UriConstants2["POS_DEVICE_PIN"] = "/pos_device/pin";
|
|
120
|
+
UriConstants2["GET_PIN_CODE"] = "/pos_device/get_pin_code";
|
|
121
|
+
UriConstants2["READ_GROUP"] = "/read_group";
|
|
122
|
+
UriConstants2["GET_NOTIFICATION"] = "/mail/data";
|
|
123
|
+
UriConstants2["PUBLIC_USER_INFO"] = "/public/user/info";
|
|
124
|
+
return UriConstants2;
|
|
125
|
+
})(UriConstants || {});
|
|
126
|
+
|
|
127
|
+
// src/constants/field/field-type-constant.ts
|
|
128
|
+
var FieldTypeConstants = /* @__PURE__ */ ((FieldTypeConstants2) => {
|
|
129
|
+
FieldTypeConstants2["CHAR"] = "char";
|
|
130
|
+
FieldTypeConstants2["TEXT"] = "text";
|
|
131
|
+
FieldTypeConstants2["INTEGER"] = "integer";
|
|
132
|
+
FieldTypeConstants2["FLOAT"] = "float";
|
|
133
|
+
FieldTypeConstants2["BOOLEAN"] = "boolean";
|
|
134
|
+
FieldTypeConstants2["DATE"] = "date";
|
|
135
|
+
FieldTypeConstants2["DATETIME"] = "datetime";
|
|
136
|
+
FieldTypeConstants2["BINARY"] = "binary";
|
|
137
|
+
FieldTypeConstants2["SELECTION"] = "selection";
|
|
138
|
+
FieldTypeConstants2["HTML"] = "html";
|
|
139
|
+
FieldTypeConstants2["MANY2ONE"] = "many2one";
|
|
140
|
+
FieldTypeConstants2["ONE2MANY"] = "one2many";
|
|
141
|
+
FieldTypeConstants2["MANY2MANY"] = "many2many";
|
|
142
|
+
FieldTypeConstants2["MONETARY"] = "monetary";
|
|
143
|
+
FieldTypeConstants2["REFERENCE"] = "reference";
|
|
144
|
+
FieldTypeConstants2["FUNCTION"] = "function";
|
|
145
|
+
FieldTypeConstants2["PROPERTY"] = "property";
|
|
146
|
+
return FieldTypeConstants2;
|
|
147
|
+
})(FieldTypeConstants || {});
|
|
148
|
+
|
|
149
|
+
// src/constants/method/method-type-constant.ts
|
|
150
|
+
var MethodType = /* @__PURE__ */ ((MethodType2) => {
|
|
151
|
+
MethodType2[MethodType2["CREATE"] = 0] = "CREATE";
|
|
152
|
+
MethodType2[MethodType2["UPDATE"] = 1] = "UPDATE";
|
|
153
|
+
MethodType2[MethodType2["DELETE"] = 2] = "DELETE";
|
|
154
|
+
MethodType2[MethodType2["UNLINK"] = 3] = "UNLINK";
|
|
155
|
+
MethodType2[MethodType2["NO_CHANGE"] = 4] = "NO_CHANGE";
|
|
156
|
+
return MethodType2;
|
|
157
|
+
})(MethodType || {});
|
|
158
|
+
|
|
159
|
+
// src/constants/model/model-constant.ts
|
|
160
|
+
var ModelConstants = /* @__PURE__ */ ((ModelConstants2) => {
|
|
161
|
+
ModelConstants2["MENU"] = "ir.ui.menu";
|
|
162
|
+
ModelConstants2["USER"] = "res.users";
|
|
163
|
+
ModelConstants2["COMPANY"] = "res.company";
|
|
164
|
+
ModelConstants2["WINDOW_ACTION"] = "ir.actions.act_window";
|
|
165
|
+
ModelConstants2["BASE_IMPORT"] = "base_import.import";
|
|
166
|
+
ModelConstants2["GET_IMPORT"] = "get_import_templates";
|
|
167
|
+
ModelConstants2["POS_PREPARATION_DISPLAY"] = "pos_preparation_display.display";
|
|
168
|
+
ModelConstants2["POS_PREPARATION_ORDER"] = "pos_preparation_display.order";
|
|
169
|
+
ModelConstants2["POS_PREPARATION_ORDER_LINE"] = "pos_preparation_display.orderline";
|
|
170
|
+
ModelConstants2["POS_ORDER"] = "pos.order";
|
|
171
|
+
ModelConstants2["COUNTRY"] = "res.country";
|
|
172
|
+
ModelConstants2["COUNTRY_STATE"] = "res.country.state";
|
|
173
|
+
ModelConstants2["COUNTRY_WARD"] = "res.country.ward";
|
|
174
|
+
ModelConstants2["RES_PARTNER_TITLE"] = "res.partner.title";
|
|
175
|
+
return ModelConstants2;
|
|
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_LINE"] = "order_line";
|
|
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["POS_CATEGORIES"] = "pos_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_line" /* ORDER_LINE */,
|
|
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 */]: "pos_categories" /* POS_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
|
+
};
|
|
267
|
+
|
|
268
|
+
// src/constants/type/index.ts
|
|
269
|
+
var ComponentType = /* @__PURE__ */ ((ComponentType2) => {
|
|
270
|
+
ComponentType2["GROUP"] = "group";
|
|
271
|
+
ComponentType2["FIELD"] = "field";
|
|
272
|
+
ComponentType2["TREE"] = "tree";
|
|
273
|
+
ComponentType2["DIV"] = "div";
|
|
274
|
+
ComponentType2["LIST"] = "list";
|
|
275
|
+
ComponentType2["FORM"] = "form";
|
|
276
|
+
ComponentType2["SETTINGS"] = "setting";
|
|
277
|
+
ComponentType2["SPAN"] = "span";
|
|
278
|
+
ComponentType2["KANBAN"] = "kanban";
|
|
279
|
+
ComponentType2["CALENDAR"] = "calendar";
|
|
280
|
+
ComponentType2["TYPE"] = "view-type";
|
|
281
|
+
return ComponentType2;
|
|
282
|
+
})(ComponentType || {});
|
|
283
|
+
var SearchType = {
|
|
284
|
+
FILTER: "filter_by",
|
|
285
|
+
SEARCH: "search_by",
|
|
286
|
+
GROUP: "group_by"
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
// src/constants/widget/widget-avatar-constant.ts
|
|
290
|
+
var WIDGETAVATAR = /* @__PURE__ */ ((WIDGETAVATAR2) => {
|
|
291
|
+
WIDGETAVATAR2["many2one_avatar_user"] = "many2one_avatar_user";
|
|
292
|
+
WIDGETAVATAR2["many2many_avatar_user"] = "many2many_avatar_user";
|
|
293
|
+
return WIDGETAVATAR2;
|
|
294
|
+
})(WIDGETAVATAR || {});
|
|
295
|
+
var WIDGETCURRENCY = /* @__PURE__ */ ((WIDGETCURRENCY2) => {
|
|
296
|
+
WIDGETCURRENCY2["many2one_avatar_user"] = "many2one_avatar_user";
|
|
297
|
+
WIDGETCURRENCY2["many2many_avatar_user"] = "many2many_avatar_user";
|
|
298
|
+
return WIDGETCURRENCY2;
|
|
299
|
+
})(WIDGETCURRENCY || {});
|
|
300
|
+
|
|
301
|
+
// src/constants/widget/widget-color-constant.ts
|
|
302
|
+
var WIDGETCOLOR = /* @__PURE__ */ ((WIDGETCOLOR2) => {
|
|
303
|
+
WIDGETCOLOR2["many2many_tags"] = "many2many_tags";
|
|
304
|
+
WIDGETCOLOR2["helpdesk_sla_many2many_tags"] = "helpdesk_sla_many2many_tags";
|
|
305
|
+
return WIDGETCOLOR2;
|
|
306
|
+
})(WIDGETCOLOR || {});
|
|
307
|
+
|
|
308
|
+
// src/constants/widget/widget-status-constant.ts
|
|
309
|
+
var WIDGETSTATUS = /* @__PURE__ */ ((WIDGETSTATUS2) => {
|
|
310
|
+
WIDGETSTATUS2["sla_status_ids"] = "sla_status_ids";
|
|
311
|
+
return WIDGETSTATUS2;
|
|
312
|
+
})(WIDGETSTATUS || {});
|
|
313
|
+
var WIDGETNOSTRING = /* @__PURE__ */ ((WIDGETNOSTRING2) => {
|
|
314
|
+
WIDGETNOSTRING2["sla_status_ids"] = "sla_status_ids";
|
|
315
|
+
return WIDGETNOSTRING2;
|
|
316
|
+
})(WIDGETNOSTRING || {});
|
|
317
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
318
|
+
0 && (module.exports = {
|
|
319
|
+
ComponentType,
|
|
320
|
+
FieldTypeConstants,
|
|
321
|
+
KeyConstants,
|
|
322
|
+
LoadDataModel,
|
|
323
|
+
LoadDataModelSupa,
|
|
324
|
+
MODEL_TO_TABLE,
|
|
325
|
+
MethodConstants,
|
|
326
|
+
MethodType,
|
|
327
|
+
ModelConstants,
|
|
328
|
+
SearchType,
|
|
329
|
+
UriConstants,
|
|
330
|
+
WIDGETAVATAR,
|
|
331
|
+
WIDGETCOLOR,
|
|
332
|
+
WIDGETCURRENCY,
|
|
333
|
+
WIDGETNOSTRING,
|
|
334
|
+
WIDGETSTATUS
|
|
335
|
+
});
|