@fctc/interface-logic 5.2.10 → 5.3.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/{chunk-WBGK2SHU.js → chunk-COC7NGXP.js} +1 -0
- package/dist/{chunk-ORSPKM6M.js → chunk-D6CWU55W.js} +47 -180
- package/dist/{chunk-S3FKPJO7.mjs → chunk-GYJZAKYF.mjs} +43 -172
- package/dist/{chunk-VBYRP2P7.mjs → chunk-Q3Y6RCJ4.mjs} +1 -0
- package/dist/{chunk-QOXPJWSN.mjs → chunk-VBVNP77T.mjs} +1 -1
- package/dist/{chunk-RPWKWEMA.js → chunk-WTPKTZQC.js} +2 -2
- package/dist/configs.js +1 -1
- package/dist/configs.mjs +1 -1
- package/dist/constants.d.mts +2 -1
- package/dist/constants.d.ts +2 -1
- package/dist/constants.js +17 -17
- package/dist/constants.mjs +1 -1
- package/dist/environment.js +1 -1
- package/dist/environment.mjs +1 -1
- package/dist/hooks.d.mts +9 -23
- package/dist/hooks.d.ts +9 -23
- package/dist/hooks.js +159 -175
- package/dist/hooks.mjs +3 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +197 -213
- package/dist/index.mjs +3 -3
- package/dist/models.js +3 -3
- package/dist/models.mjs +2 -2
- package/dist/provider.d.mts +2 -6
- package/dist/provider.d.ts +2 -6
- package/dist/provider.js +13 -13
- package/dist/provider.mjs +3 -3
- package/dist/services.d.mts +10 -17
- package/dist/services.d.ts +10 -17
- package/dist/services.js +14 -14
- package/dist/services.mjs +3 -3
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +1 -1
- package/package.json +93 -93
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { envStore } from './chunk-B432GFRR.mjs';
|
|
2
2
|
import { axiosClient } from './chunk-ACSPOGTI.mjs';
|
|
3
3
|
import { toQueryString, sessionStorageUtils, localStorageUtils, isBase64File, cleanObject } from './chunk-BPJZ3QRN.mjs';
|
|
4
|
-
import { BaseModel } from './chunk-
|
|
5
|
-
import { UriConstants, LoadDataModel, MODEL_TO_TABLE } from './chunk-
|
|
4
|
+
import { BaseModel } from './chunk-VBVNP77T.mjs';
|
|
5
|
+
import { UriConstants, LoadDataModel, MODEL_TO_TABLE } from './chunk-Q3Y6RCJ4.mjs';
|
|
6
6
|
import { createContext, useState, useCallback, useMemo, useContext, useEffect } from 'react';
|
|
7
7
|
import { QueryClient, QueryClientProvider, useQueryClient, useMutation, useQuery } from '@tanstack/react-query';
|
|
8
8
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -237,20 +237,6 @@ function useActionService() {
|
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
}, [env]);
|
|
240
|
-
const actionOpenHome = useCallback(
|
|
241
|
-
async ({ model, method }) => {
|
|
242
|
-
const jsonData = {
|
|
243
|
-
model,
|
|
244
|
-
method
|
|
245
|
-
};
|
|
246
|
-
return await env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
247
|
-
headers: {
|
|
248
|
-
"Content-Type": "application/json"
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
},
|
|
252
|
-
[env]
|
|
253
|
-
);
|
|
254
240
|
return {
|
|
255
241
|
loadAction,
|
|
256
242
|
callButton,
|
|
@@ -260,8 +246,7 @@ function useActionService() {
|
|
|
260
246
|
print,
|
|
261
247
|
runAction,
|
|
262
248
|
generateSerialNumber,
|
|
263
|
-
actionServerHome
|
|
264
|
-
actionOpenHome
|
|
249
|
+
actionServerHome
|
|
265
250
|
};
|
|
266
251
|
}
|
|
267
252
|
var SupabaseContext = createContext(null);
|
|
@@ -317,9 +302,7 @@ function useAuthService() {
|
|
|
317
302
|
encodedData,
|
|
318
303
|
{
|
|
319
304
|
headers: {
|
|
320
|
-
"Content-Type": "application/x-www-form-urlencoded"
|
|
321
|
-
service: "emenu",
|
|
322
|
-
"x-node": "2032919254WSCunipay_89234578"
|
|
305
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
323
306
|
}
|
|
324
307
|
},
|
|
325
308
|
body.service
|
|
@@ -1698,8 +1681,6 @@ function useViewService() {
|
|
|
1698
1681
|
jsonData,
|
|
1699
1682
|
{
|
|
1700
1683
|
headers: {
|
|
1701
|
-
service: "emenu",
|
|
1702
|
-
"x-node": "2032919254WSCunipay_89234578",
|
|
1703
1684
|
"Content-Type": "application/json"
|
|
1704
1685
|
}
|
|
1705
1686
|
},
|
|
@@ -2153,94 +2134,6 @@ function useViewService() {
|
|
|
2153
2134
|
},
|
|
2154
2135
|
[env]
|
|
2155
2136
|
);
|
|
2156
|
-
const getPoints = useCallback(
|
|
2157
|
-
async (path) => {
|
|
2158
|
-
return env?.requests?.get(path, {
|
|
2159
|
-
headers: {
|
|
2160
|
-
"Content-Type": "application/x-www-form-urlencoded",
|
|
2161
|
-
"x-node": "2032919254WSCunipay_89234578",
|
|
2162
|
-
service: "emenu"
|
|
2163
|
-
}
|
|
2164
|
-
});
|
|
2165
|
-
},
|
|
2166
|
-
[env]
|
|
2167
|
-
);
|
|
2168
|
-
const getOrders = useCallback(
|
|
2169
|
-
async ({ kwargs, withContext }) => {
|
|
2170
|
-
const body = {
|
|
2171
|
-
model: "pos.order",
|
|
2172
|
-
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
2173
|
-
kwargs,
|
|
2174
|
-
with_context: withContext
|
|
2175
|
-
};
|
|
2176
|
-
return env?.requests?.post("/call" /* CALL_PATH */, body, {
|
|
2177
|
-
headers: {
|
|
2178
|
-
"Content-Type": "application/json",
|
|
2179
|
-
service: "emenu",
|
|
2180
|
-
"x-node": "2032919254WSCunipay_89234578"
|
|
2181
|
-
}
|
|
2182
|
-
});
|
|
2183
|
-
},
|
|
2184
|
-
[env]
|
|
2185
|
-
);
|
|
2186
|
-
const getVouchers = useCallback(async () => {
|
|
2187
|
-
const body = {
|
|
2188
|
-
model: "loyalty.program",
|
|
2189
|
-
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
2190
|
-
kwargs: {
|
|
2191
|
-
domain: [["program_type", "=", "promo_code"]],
|
|
2192
|
-
limit: 10,
|
|
2193
|
-
offset: 0,
|
|
2194
|
-
count_limit: 10001,
|
|
2195
|
-
order: "",
|
|
2196
|
-
specification: {
|
|
2197
|
-
voucher_code: {},
|
|
2198
|
-
name: {},
|
|
2199
|
-
voucher_type: {},
|
|
2200
|
-
voucher_value: {},
|
|
2201
|
-
voucher_state: {},
|
|
2202
|
-
date_from: {},
|
|
2203
|
-
date_to: {},
|
|
2204
|
-
image_1920: {}
|
|
2205
|
-
}
|
|
2206
|
-
},
|
|
2207
|
-
with_context: {
|
|
2208
|
-
uid: 104,
|
|
2209
|
-
lang: "vi_VN",
|
|
2210
|
-
tz: "Asia/Saigon",
|
|
2211
|
-
default_is_voucher: true,
|
|
2212
|
-
default_program_type: "promo_code",
|
|
2213
|
-
default_trigger: "with_code",
|
|
2214
|
-
default_applies_on: "current",
|
|
2215
|
-
default_pos_ok: true,
|
|
2216
|
-
force_vnd_currency: true
|
|
2217
|
-
}
|
|
2218
|
-
};
|
|
2219
|
-
return env?.requests?.post("/call" /* CALL_PATH */, body, {
|
|
2220
|
-
headers: {
|
|
2221
|
-
"Content-Type": "application/json",
|
|
2222
|
-
service: "emenu",
|
|
2223
|
-
"x-node": "2032919254WSCunipay_89234578"
|
|
2224
|
-
}
|
|
2225
|
-
});
|
|
2226
|
-
}, [env]);
|
|
2227
|
-
const getStores = useCallback(
|
|
2228
|
-
async ({ kwargs }) => {
|
|
2229
|
-
const body = {
|
|
2230
|
-
model: "res.company",
|
|
2231
|
-
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
2232
|
-
kwargs
|
|
2233
|
-
};
|
|
2234
|
-
return env?.requests?.post("/call" /* CALL_PATH */, body, {
|
|
2235
|
-
headers: {
|
|
2236
|
-
"Content-Type": "application/json",
|
|
2237
|
-
service: "emenu",
|
|
2238
|
-
"x-node": "2032919254WSCunipay_89234578"
|
|
2239
|
-
}
|
|
2240
|
-
});
|
|
2241
|
-
},
|
|
2242
|
-
[env]
|
|
2243
|
-
);
|
|
2244
2137
|
return {
|
|
2245
2138
|
getView,
|
|
2246
2139
|
getMenu,
|
|
@@ -2261,11 +2154,7 @@ function useViewService() {
|
|
|
2261
2154
|
getCountry,
|
|
2262
2155
|
getCity,
|
|
2263
2156
|
getWard,
|
|
2264
|
-
getPartnerTitle
|
|
2265
|
-
getPoints,
|
|
2266
|
-
getOrders,
|
|
2267
|
-
getVouchers,
|
|
2268
|
-
getStores
|
|
2157
|
+
getPartnerTitle
|
|
2269
2158
|
};
|
|
2270
2159
|
}
|
|
2271
2160
|
function useDashboardService() {
|
|
@@ -3550,13 +3439,13 @@ var appAuthenticateService = (env) => {
|
|
|
3550
3439
|
};
|
|
3551
3440
|
var applyVoucherService = (env) => {
|
|
3552
3441
|
const applyVoucher = useCallback(
|
|
3553
|
-
({ xNode, service, ids,
|
|
3442
|
+
({ xNode, service, ids, voucherCodes }) => {
|
|
3554
3443
|
const jsonData = {
|
|
3555
3444
|
model: "pos.order" /* POS_ORDER */,
|
|
3556
3445
|
method: "action_apply_voucher" /* ACTION_APPLY_VOUCHER */,
|
|
3557
3446
|
ids,
|
|
3558
3447
|
kwargs: {
|
|
3559
|
-
|
|
3448
|
+
voucher_codes: voucherCodes
|
|
3560
3449
|
}
|
|
3561
3450
|
};
|
|
3562
3451
|
return env?.requests.post(
|
|
@@ -3579,13 +3468,13 @@ var applyVoucherService = (env) => {
|
|
|
3579
3468
|
};
|
|
3580
3469
|
var removeVoucherService = (env) => {
|
|
3581
3470
|
const removeVoucher = useCallback(
|
|
3582
|
-
({ xNode, service, ids,
|
|
3471
|
+
({ xNode, service, ids, programIds }) => {
|
|
3583
3472
|
const jsonData = {
|
|
3584
3473
|
model: "pos.order" /* POS_ORDER */,
|
|
3585
3474
|
method: "action_remove_voucher" /* ACTION_REMOVE_VOUCHER */,
|
|
3586
3475
|
ids,
|
|
3587
3476
|
kwargs: {
|
|
3588
|
-
|
|
3477
|
+
program_ids: programIds
|
|
3589
3478
|
}
|
|
3590
3479
|
};
|
|
3591
3480
|
return env?.requests.post(
|
|
@@ -3634,6 +3523,30 @@ var syncFromUiService = (env) => {
|
|
|
3634
3523
|
syncFromUi
|
|
3635
3524
|
};
|
|
3636
3525
|
};
|
|
3526
|
+
var getCustomerLoyaltyPointService = (env) => {
|
|
3527
|
+
const getCustomerLoyaltyPoint = useCallback(
|
|
3528
|
+
async ({
|
|
3529
|
+
xNode,
|
|
3530
|
+
service,
|
|
3531
|
+
partnerId
|
|
3532
|
+
}) => {
|
|
3533
|
+
return env?.requests.get(
|
|
3534
|
+
`${"/loyalty/point" /* LOYALTY_POINT */}/${partnerId}`,
|
|
3535
|
+
{
|
|
3536
|
+
headers: {
|
|
3537
|
+
"Content-Type": "application/json",
|
|
3538
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3539
|
+
}
|
|
3540
|
+
},
|
|
3541
|
+
service
|
|
3542
|
+
);
|
|
3543
|
+
},
|
|
3544
|
+
[env]
|
|
3545
|
+
);
|
|
3546
|
+
return {
|
|
3547
|
+
getCustomerLoyaltyPoint
|
|
3548
|
+
};
|
|
3549
|
+
};
|
|
3637
3550
|
var addFloorSupabaseService = () => {
|
|
3638
3551
|
const supabase = useSupabaseOptional();
|
|
3639
3552
|
const addFloorSupabase = useCallback(
|
|
@@ -4625,6 +4538,7 @@ var serviceFactories = [
|
|
|
4625
4538
|
applyVoucherService,
|
|
4626
4539
|
removeVoucherService,
|
|
4627
4540
|
syncFromUiService,
|
|
4541
|
+
getCustomerLoyaltyPointService,
|
|
4628
4542
|
addFloorSupabaseService,
|
|
4629
4543
|
addTableSupabaseService,
|
|
4630
4544
|
updateFloorSupabaseService,
|
|
@@ -6147,52 +6061,6 @@ var useActionServerHome = () => {
|
|
|
6147
6061
|
});
|
|
6148
6062
|
};
|
|
6149
6063
|
var use_action_server_home_default = useActionServerHome;
|
|
6150
|
-
var useActionOpenHome = () => {
|
|
6151
|
-
const { actionOpenHome } = useActionService();
|
|
6152
|
-
return useMutation({
|
|
6153
|
-
mutationFn: ({ model, method }) => actionOpenHome({
|
|
6154
|
-
model,
|
|
6155
|
-
method
|
|
6156
|
-
})
|
|
6157
|
-
});
|
|
6158
|
-
};
|
|
6159
|
-
var use_action_open_home_default = useActionOpenHome;
|
|
6160
|
-
var useGetPoints = ({ path }) => {
|
|
6161
|
-
const { getPoints } = useViewService();
|
|
6162
|
-
return useMutation({
|
|
6163
|
-
mutationFn: () => getPoints(path)
|
|
6164
|
-
});
|
|
6165
|
-
};
|
|
6166
|
-
var use_get_point_default = useGetPoints;
|
|
6167
|
-
var useGetOrders = ({
|
|
6168
|
-
kwargs,
|
|
6169
|
-
withContext
|
|
6170
|
-
}) => {
|
|
6171
|
-
const { getOrders } = useViewService();
|
|
6172
|
-
return useMutation({
|
|
6173
|
-
mutationFn: () => getOrders({
|
|
6174
|
-
kwargs,
|
|
6175
|
-
withContext
|
|
6176
|
-
})
|
|
6177
|
-
});
|
|
6178
|
-
};
|
|
6179
|
-
var use_get_order_default = useGetOrders;
|
|
6180
|
-
var useGetVouchers = () => {
|
|
6181
|
-
const { getVouchers } = useViewService();
|
|
6182
|
-
return useMutation({
|
|
6183
|
-
mutationFn: () => getVouchers()
|
|
6184
|
-
});
|
|
6185
|
-
};
|
|
6186
|
-
var use_get_voucher_default = useGetVouchers;
|
|
6187
|
-
var useGetStores = ({ kwargs }) => {
|
|
6188
|
-
const { getStores } = useViewService();
|
|
6189
|
-
return useMutation({
|
|
6190
|
-
mutationFn: () => getStores({
|
|
6191
|
-
kwargs
|
|
6192
|
-
})
|
|
6193
|
-
});
|
|
6194
|
-
};
|
|
6195
|
-
var use_get_store_default = useGetStores;
|
|
6196
6064
|
var useReadGroup = (services, xNode, body, enabled) => {
|
|
6197
6065
|
const { readGroup } = useDashboardService();
|
|
6198
6066
|
return useQuery({
|
|
@@ -6469,6 +6337,13 @@ var useSyncFromUi = () => {
|
|
|
6469
6337
|
});
|
|
6470
6338
|
};
|
|
6471
6339
|
var use_sync_from_ui_default = useSyncFromUi;
|
|
6340
|
+
var useGetCustomerLoyaltyPoint = () => {
|
|
6341
|
+
const pos = usePosService();
|
|
6342
|
+
return useMutation({
|
|
6343
|
+
mutationFn: pos.getCustomerLoyaltyPoint
|
|
6344
|
+
});
|
|
6345
|
+
};
|
|
6346
|
+
var use_get_customer_loyalty_point_default = useGetCustomerLoyaltyPoint;
|
|
6472
6347
|
var useAddFloor = () => {
|
|
6473
6348
|
const { addFloorSupabase } = addFloorSupabaseService();
|
|
6474
6349
|
return useMutation({
|
|
@@ -6850,11 +6725,7 @@ var ServiceProvider = ({
|
|
|
6850
6725
|
useDeleteProduct: use_delete_product_default,
|
|
6851
6726
|
useTogglePosRestaurant: use_toggle_pos_restaurant_default,
|
|
6852
6727
|
useActionServerHome: use_action_server_home_default,
|
|
6853
|
-
|
|
6854
|
-
useGetPoints: use_get_point_default,
|
|
6855
|
-
useGetOrders: use_get_order_default,
|
|
6856
|
-
useGetVouchers: use_get_voucher_default,
|
|
6857
|
-
useGetStores: use_get_store_default
|
|
6728
|
+
useGetCustomerLoyaltyPoint: use_get_customer_loyalty_point_default
|
|
6858
6729
|
};
|
|
6859
6730
|
return /* @__PURE__ */ jsx(ServiceContext.Provider, { value: services, children });
|
|
6860
6731
|
};
|
|
@@ -6918,4 +6789,4 @@ var MetaProvider = ({ children }) => {
|
|
|
6918
6789
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
6919
6790
|
};
|
|
6920
6791
|
|
|
6921
|
-
export { EnvProvider, MainProvider, MetaProvider, ReactQueryProvider, ServiceProvider, SupabaseProvider, VersionGate, useActionService, useAuthService, useCompanyService, useDashboardService, useEnv, useExcelService, useFormService, useKanbanService, useModelService, usePosService, useService, useSupabase, useUserService, useViewService,
|
|
6792
|
+
export { EnvProvider, MainProvider, MetaProvider, ReactQueryProvider, ServiceProvider, SupabaseProvider, VersionGate, useActionService, useAuthService, useCompanyService, useDashboardService, useEnv, useExcelService, useFormService, useKanbanService, useModelService, usePosService, useService, useSupabase, useUserService, useViewService, use_action_server_home_default, use_add_category_default, use_add_entity_default, use_add_floor_default, use_add_payment_method_default, use_add_product_default, use_add_product_to_order_default, use_add_table_default, use_app_authenticate_default, use_apply_voucher_default, use_assign_role_default, use_button_default, use_change_order_preparation_state_default, use_change_status_default, use_check_payment_default, use_complete_current_stage_default, use_create_customer_default, use_create_e_invoice_default, use_create_entity_default, use_create_order_default, use_create_payment_default, use_create_pos_config_default, use_create_session_default, use_delete_category_default, use_delete_comment_default, use_delete_customer_default, use_delete_default, use_delete_entity_default, use_delete_floor_default, use_delete_order_default, use_delete_order_line_default, use_delete_product_default, use_delete_table_default, use_duplicate_record_default, use_export_excel_default, use_forgot_password_default, use_forgotpassword_sso_default, use_gen_serial_number_default, use_generate_payment_qr_info_default, use_get_a_session_default, use_get_access_by_code_default, use_get_action_detail_default, use_get_all_default, use_get_calendar_default, use_get_city_default, use_get_comment_default, use_get_company_info_default, use_get_conversion_rate_default, use_get_country_default, use_get_currency_default, use_get_current_company_default, use_get_current_user_default, use_get_customer_loyalty_point_default, use_get_data_chart_default, use_get_detail_default, use_get_e_invoice_info_default, use_get_external_tabs_default, use_get_field_export_default, use_get_field_onchange_default, use_get_file_excel_default, use_get_form_view_default, use_get_functional_modules_default, use_get_groups_default, use_get_image_default, use_get_list_company_default, use_get_list_data_default, use_get_list_default, use_get_list_my_bank_account_default, use_get_list_roles_default, use_get_list_users_default, use_get_menu_default, use_get_notifications_default, use_get_order_line_default, use_get_partner_title_default, use_get_pin_code_default, use_get_pos_default, use_get_preparation_display_data_default, use_get_print_report_default, use_get_product_image_default, use_get_profile_default, use_get_progress_bar_default, use_get_provider_default, use_get_selection_default, use_get_supa_current_user_default, use_get_tenant_mapping_default, use_get_thread_data_default, use_get_thread_messages_default, use_get_token_default, use_get_user_default, use_get_version_default, use_get_view_default, use_get_ward_default, use_grant_access_default, use_handle_close_session_default, use_handle_closing_detail_session_default, use_handle_closing_session_default, use_isvalid_token_default, use_load_action_default, use_load_data_pos_session_default, use_load_message_default, use_login_credential_default, use_login_socical_default, use_login_tenant_user_default, use_logout_default, use_manage_onchange_default, use_manage_session_default, use_model_default, use_odoo_data_transform_default, use_onchange_form_default, use_parse_preview_default, use_print_default, use_process_order_default, use_read_group_default, use_remove_row_default, use_remove_totp_setup_default, use_remove_voucher_default, use_request_setup_totp_default, use_resequence_default, use_reset_password_default, use_reset_password_sso_default, use_run_action_default, use_save_default, use_save_pin_code_default, use_search_journal_default, use_send_comment_default, use_settings_web_read_2fa_default, use_signin_sso_default, use_supa_upload_image_default, use_switch_locale_default, use_sync_from_ui_default, use_toggle_pos_restaurant_default, use_update_category_default, use_update_closed_session_default, use_update_customer_default, use_update_entity_default, use_update_floor_default, use_update_order_default, use_update_order_line_default, use_update_order_status_default, use_update_order_total_amount_default, use_update_password_default, use_update_product_default, use_update_session_payment_methods_default, use_update_table_default, use_upload_file_default, use_upload_file_excel_default, use_upload_id_file_default, use_upload_image_default, use_validate_action_token_default, use_verify_2FA_default, use_verify_totp_default, uset_get_2FA_method_default, uss_execute_import_default };
|
|
@@ -89,6 +89,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
89
89
|
UriConstants2["FUNCTIONAL_MODULES"] = "/functional-modules";
|
|
90
90
|
UriConstants2["ACTION_SERVER_HOME"] = "/action_server_home";
|
|
91
91
|
UriConstants2["APP_AUTHENTICATE"] = "/app/authenticate";
|
|
92
|
+
UriConstants2["LOYALTY_POINT"] = "/loyalty/point";
|
|
92
93
|
return UriConstants2;
|
|
93
94
|
})(UriConstants || {});
|
|
94
95
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCOC7NGXP_js = require('./chunk-COC7NGXP.js');
|
|
4
4
|
|
|
5
5
|
// src/models/base-model/index.ts
|
|
6
6
|
var BaseModel = class {
|
|
@@ -57,7 +57,7 @@ var BaseModel = class {
|
|
|
57
57
|
fields: {
|
|
58
58
|
id: {},
|
|
59
59
|
display_name: {},
|
|
60
|
-
...
|
|
60
|
+
...chunkCOC7NGXP_js.WIDGETAVATAR[field?.widget] ? { image_256: {} } : {},
|
|
61
61
|
...field?.name === "currency_id" && fields?.find((item) => item?.widget === "monetary") ? { symbol: {} } : {},
|
|
62
62
|
...field?.widget === "many2many_binary" ? { mimetype: {} } : {}
|
|
63
63
|
}
|
package/dist/configs.js
CHANGED
package/dist/configs.mjs
CHANGED
package/dist/constants.d.mts
CHANGED
|
@@ -83,7 +83,8 @@ declare enum UriConstants {
|
|
|
83
83
|
PUBLIC_USER_INFO = "/public/user/info",
|
|
84
84
|
FUNCTIONAL_MODULES = "/functional-modules",
|
|
85
85
|
ACTION_SERVER_HOME = "/action_server_home",
|
|
86
|
-
APP_AUTHENTICATE = "/app/authenticate"
|
|
86
|
+
APP_AUTHENTICATE = "/app/authenticate",
|
|
87
|
+
LOYALTY_POINT = "/loyalty/point"
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
declare enum FieldTypeConstants {
|
package/dist/constants.d.ts
CHANGED
|
@@ -83,7 +83,8 @@ declare enum UriConstants {
|
|
|
83
83
|
PUBLIC_USER_INFO = "/public/user/info",
|
|
84
84
|
FUNCTIONAL_MODULES = "/functional-modules",
|
|
85
85
|
ACTION_SERVER_HOME = "/action_server_home",
|
|
86
|
-
APP_AUTHENTICATE = "/app/authenticate"
|
|
86
|
+
APP_AUTHENTICATE = "/app/authenticate",
|
|
87
|
+
LOYALTY_POINT = "/loyalty/point"
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
declare enum FieldTypeConstants {
|
package/dist/constants.js
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCOC7NGXP_js = require('./chunk-COC7NGXP.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "ComponentType", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkCOC7NGXP_js.ComponentType; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "FieldTypeConstants", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkCOC7NGXP_js.FieldTypeConstants; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "KeyConstants", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkCOC7NGXP_js.KeyConstants; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "LoadDataModel", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkCOC7NGXP_js.LoadDataModel; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "LoadDataModelSupa", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkCOC7NGXP_js.LoadDataModelSupa; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "MODEL_TO_TABLE", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkCOC7NGXP_js.MODEL_TO_TABLE; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "MethodConstants", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkCOC7NGXP_js.MethodConstants; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "MethodType", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkCOC7NGXP_js.MethodType; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "ModelConstants", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkCOC7NGXP_js.ModelConstants; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "SearchType", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkCOC7NGXP_js.SearchType; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "UriConstants", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkCOC7NGXP_js.UriConstants; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "WIDGETAVATAR", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkCOC7NGXP_js.WIDGETAVATAR; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "WIDGETCOLOR", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkCOC7NGXP_js.WIDGETCOLOR; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "WIDGETCURRENCY", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkCOC7NGXP_js.WIDGETCURRENCY; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "WIDGETNOSTRING", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkCOC7NGXP_js.WIDGETNOSTRING; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "WIDGETSTATUS", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkCOC7NGXP_js.WIDGETSTATUS; }
|
|
70
70
|
});
|
package/dist/constants.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ComponentType, FieldTypeConstants, KeyConstants, LoadDataModel, LoadDataModelSupa, MODEL_TO_TABLE, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS } from './chunk-
|
|
1
|
+
export { ComponentType, FieldTypeConstants, KeyConstants, LoadDataModel, LoadDataModelSupa, MODEL_TO_TABLE, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS } from './chunk-Q3Y6RCJ4.mjs';
|
package/dist/environment.js
CHANGED
package/dist/environment.mjs
CHANGED
package/dist/hooks.d.mts
CHANGED
|
@@ -503,26 +503,6 @@ declare const useGetPartnerTitle: () => _tanstack_react_query.UseMutationResult<
|
|
|
503
503
|
|
|
504
504
|
declare const useActionServerHome: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
505
505
|
|
|
506
|
-
declare const useActionOpenHome: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
507
|
-
model: string;
|
|
508
|
-
method: string;
|
|
509
|
-
}, unknown>;
|
|
510
|
-
|
|
511
|
-
declare const useGetPoints: ({ path }: {
|
|
512
|
-
path: string;
|
|
513
|
-
}) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
514
|
-
|
|
515
|
-
declare const useGetOrders: ({ kwargs, withContext, }: {
|
|
516
|
-
kwargs: any;
|
|
517
|
-
withContext: any;
|
|
518
|
-
}) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
519
|
-
|
|
520
|
-
declare const useGetVouchers: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
521
|
-
|
|
522
|
-
declare const useGetStores: ({ kwargs }: {
|
|
523
|
-
kwargs: any;
|
|
524
|
-
}) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
525
|
-
|
|
526
506
|
declare const useReadGroup: (services?: string, xNode?: any, body?: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
527
507
|
|
|
528
508
|
declare const useGetDataChart: (services?: string, xNode?: any, body?: any, enabled?: boolean, path?: string, method?: string, queryKey?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
@@ -791,14 +771,14 @@ declare const useAppAuthenticate: () => _tanstack_react_query.UseMutationResult<
|
|
|
791
771
|
|
|
792
772
|
declare const useApplyVoucher: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
793
773
|
ids: number[];
|
|
794
|
-
|
|
774
|
+
voucherCodes: string[];
|
|
795
775
|
xNode?: string;
|
|
796
776
|
service?: string;
|
|
797
777
|
}, unknown>;
|
|
798
778
|
|
|
799
779
|
declare const useRemoveVoucher: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
800
780
|
ids: number[];
|
|
801
|
-
|
|
781
|
+
programIds: number[];
|
|
802
782
|
xNode?: string;
|
|
803
783
|
service?: string;
|
|
804
784
|
}, unknown>;
|
|
@@ -809,6 +789,12 @@ declare const useSyncFromUi: () => _tanstack_react_query.UseMutationResult<unkno
|
|
|
809
789
|
service?: string;
|
|
810
790
|
}, unknown>;
|
|
811
791
|
|
|
792
|
+
declare const useGetCustomerLoyaltyPoint: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
793
|
+
service?: string;
|
|
794
|
+
xNode?: string;
|
|
795
|
+
partnerId: number;
|
|
796
|
+
}, unknown>;
|
|
797
|
+
|
|
812
798
|
declare const useAddFloor: () => _tanstack_react_query.UseMutationResult<[number, string][] | null, Error, {
|
|
813
799
|
name: string;
|
|
814
800
|
sequence?: number;
|
|
@@ -1056,4 +1042,4 @@ declare const useTogglePosRestaurant: () => _tanstack_react_query.UseMutationRes
|
|
|
1056
1042
|
module_pos_restaurant: boolean;
|
|
1057
1043
|
}, unknown>;
|
|
1058
1044
|
|
|
1059
|
-
export {
|
|
1045
|
+
export { useActionServerHome, useAddCategory, useAddEntity, useAddFloor, useAddPaymentMethod, useAddProduct, useAddProductToOrder, useAddTable, useAppAuthenticate, useApplyVoucher, useAssignRole, useButton, useChangeOrderPreparationState, useChangeStatus, useCheckPayment, useCompleteCurrentStage, useCreateCustomer, useCreateEInvoice, useCreateEntity, useCreateOrder, useCreatePayment, useCreatePosConfig, useCreateSession, useDelete, useDeleteCategory, useDeleteComment, useDeleteCustomer, useDeleteEntity, useDeleteFloor, useDeleteOrder, useDeleteOrderLine, useDeleteProduct, useDeleteTable, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetCity, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCountry, useGetCurrency, useGetCurrentCompany, useGetCurrentUser, useGetCustomerLoyaltyPoint, useGetDataChart, useGetDetail, useGetEInvoiceInfo, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetFunctionalModules, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetListRoles, useGetListUsers, useGetMenu, useGetNotifications, useGetOrderLine, useGetPartnerTitle, useGetPinCode, useGetPos, useGetPreparationDisplayData, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetSupaCurrentUser, useGetTenantMapping, useGetThreadData, useGetThreadMessages, useGetToken, useGetUser, useGetVersion, useGetView, useGetWard, useGrantAccess, useHandleCloseSession, useHandleClosingDetailSession, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLoginTenantUser, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useProcessOrder, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRemoveVoucher, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSavePinCode, useSearchJournal, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSupaUploadImage, useSwitchLocale, useSyncFromUi, useTogglePosRestaurant, useUpdateCategory, useUpdateClosedSession, useUpdateCustomer, useUpdateEntity, useUpdateFloor, useUpdateOrder, useUpdateOrderLine, useUpdateOrderStatus, useUpdateOrderTotalAmount, useUpdatePassword, useUpdateProduct, useUpdateSessionPaymentMethods, useUpdateTable, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
|
package/dist/hooks.d.ts
CHANGED
|
@@ -503,26 +503,6 @@ declare const useGetPartnerTitle: () => _tanstack_react_query.UseMutationResult<
|
|
|
503
503
|
|
|
504
504
|
declare const useActionServerHome: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
505
505
|
|
|
506
|
-
declare const useActionOpenHome: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
507
|
-
model: string;
|
|
508
|
-
method: string;
|
|
509
|
-
}, unknown>;
|
|
510
|
-
|
|
511
|
-
declare const useGetPoints: ({ path }: {
|
|
512
|
-
path: string;
|
|
513
|
-
}) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
514
|
-
|
|
515
|
-
declare const useGetOrders: ({ kwargs, withContext, }: {
|
|
516
|
-
kwargs: any;
|
|
517
|
-
withContext: any;
|
|
518
|
-
}) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
519
|
-
|
|
520
|
-
declare const useGetVouchers: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
521
|
-
|
|
522
|
-
declare const useGetStores: ({ kwargs }: {
|
|
523
|
-
kwargs: any;
|
|
524
|
-
}) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
525
|
-
|
|
526
506
|
declare const useReadGroup: (services?: string, xNode?: any, body?: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
527
507
|
|
|
528
508
|
declare const useGetDataChart: (services?: string, xNode?: any, body?: any, enabled?: boolean, path?: string, method?: string, queryKey?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
@@ -791,14 +771,14 @@ declare const useAppAuthenticate: () => _tanstack_react_query.UseMutationResult<
|
|
|
791
771
|
|
|
792
772
|
declare const useApplyVoucher: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
793
773
|
ids: number[];
|
|
794
|
-
|
|
774
|
+
voucherCodes: string[];
|
|
795
775
|
xNode?: string;
|
|
796
776
|
service?: string;
|
|
797
777
|
}, unknown>;
|
|
798
778
|
|
|
799
779
|
declare const useRemoveVoucher: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
800
780
|
ids: number[];
|
|
801
|
-
|
|
781
|
+
programIds: number[];
|
|
802
782
|
xNode?: string;
|
|
803
783
|
service?: string;
|
|
804
784
|
}, unknown>;
|
|
@@ -809,6 +789,12 @@ declare const useSyncFromUi: () => _tanstack_react_query.UseMutationResult<unkno
|
|
|
809
789
|
service?: string;
|
|
810
790
|
}, unknown>;
|
|
811
791
|
|
|
792
|
+
declare const useGetCustomerLoyaltyPoint: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
793
|
+
service?: string;
|
|
794
|
+
xNode?: string;
|
|
795
|
+
partnerId: number;
|
|
796
|
+
}, unknown>;
|
|
797
|
+
|
|
812
798
|
declare const useAddFloor: () => _tanstack_react_query.UseMutationResult<[number, string][] | null, Error, {
|
|
813
799
|
name: string;
|
|
814
800
|
sequence?: number;
|
|
@@ -1056,4 +1042,4 @@ declare const useTogglePosRestaurant: () => _tanstack_react_query.UseMutationRes
|
|
|
1056
1042
|
module_pos_restaurant: boolean;
|
|
1057
1043
|
}, unknown>;
|
|
1058
1044
|
|
|
1059
|
-
export {
|
|
1045
|
+
export { useActionServerHome, useAddCategory, useAddEntity, useAddFloor, useAddPaymentMethod, useAddProduct, useAddProductToOrder, useAddTable, useAppAuthenticate, useApplyVoucher, useAssignRole, useButton, useChangeOrderPreparationState, useChangeStatus, useCheckPayment, useCompleteCurrentStage, useCreateCustomer, useCreateEInvoice, useCreateEntity, useCreateOrder, useCreatePayment, useCreatePosConfig, useCreateSession, useDelete, useDeleteCategory, useDeleteComment, useDeleteCustomer, useDeleteEntity, useDeleteFloor, useDeleteOrder, useDeleteOrderLine, useDeleteProduct, useDeleteTable, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetCity, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCountry, useGetCurrency, useGetCurrentCompany, useGetCurrentUser, useGetCustomerLoyaltyPoint, useGetDataChart, useGetDetail, useGetEInvoiceInfo, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetFunctionalModules, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetListRoles, useGetListUsers, useGetMenu, useGetNotifications, useGetOrderLine, useGetPartnerTitle, useGetPinCode, useGetPos, useGetPreparationDisplayData, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetSupaCurrentUser, useGetTenantMapping, useGetThreadData, useGetThreadMessages, useGetToken, useGetUser, useGetVersion, useGetView, useGetWard, useGrantAccess, useHandleCloseSession, useHandleClosingDetailSession, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLoginTenantUser, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useProcessOrder, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRemoveVoucher, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSavePinCode, useSearchJournal, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSupaUploadImage, useSwitchLocale, useSyncFromUi, useTogglePosRestaurant, useUpdateCategory, useUpdateClosedSession, useUpdateCustomer, useUpdateEntity, useUpdateFloor, useUpdateOrder, useUpdateOrderLine, useUpdateOrderStatus, useUpdateOrderTotalAmount, useUpdatePassword, useUpdateProduct, useUpdateSessionPaymentMethods, useUpdateTable, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
|