@fctc/interface-logic 5.1.0 → 5.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-4NLKHYBY.js +131 -0
- package/dist/chunk-6LSKTACC.js +687 -0
- package/dist/chunk-B432GFRR.mjs +606 -0
- package/dist/chunk-BPJZ3QRN.mjs +3025 -0
- package/dist/chunk-BZYCE2VA.js +301 -0
- package/dist/chunk-FDVY2DBI.mjs +127 -0
- package/dist/chunk-GGNOJ77I.js +2 -0
- package/dist/chunk-H2VMULTO.mjs +6161 -0
- package/dist/chunk-IUYYGSEL.js +321 -0
- package/dist/chunk-IVXH2HOR.js +6321 -0
- package/dist/chunk-JDXUTKMX.js +3065 -0
- package/dist/chunk-JNLBHOL4.mjs +284 -0
- package/dist/chunk-MJEZ4MMQ.mjs +315 -0
- package/dist/chunk-WAXGOBY2.mjs +1 -0
- package/dist/chunk-XA7EW3ZX.mjs +114 -0
- package/dist/chunk-YKB32DSB.js +116 -0
- package/dist/configs.js +7 -2577
- package/dist/configs.mjs +3 -2545
- package/dist/constants.d.mts +4 -17
- package/dist/constants.d.ts +4 -17
- package/dist/constants.js +65 -356
- package/dist/constants.mjs +1 -319
- package/dist/environment.js +16 -2704
- package/dist/environment.mjs +4 -2670
- package/dist/hooks.d.mts +19 -95
- package/dist/hooks.d.ts +19 -95
- package/dist/hooks.js +557 -10420
- package/dist/hooks.mjs +6 -10238
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1179 -12656
- package/dist/index.mjs +8 -12319
- package/dist/models.js +7 -143
- package/dist/models.mjs +2 -120
- package/dist/provider.d.mts +2 -15
- package/dist/provider.d.ts +2 -15
- package/dist/provider.js +37 -10968
- package/dist/provider.mjs +6 -10936
- package/dist/services.d.mts +18 -109
- package/dist/services.d.ts +18 -109
- package/dist/services.js +40 -8174
- package/dist/services.mjs +6 -8142
- package/dist/store.js +320 -817
- package/dist/store.mjs +1 -717
- package/dist/types.js +3 -17
- package/dist/types.mjs +1 -0
- package/dist/utils.js +134 -3094
- package/dist/utils.mjs +2 -3030
- package/package.json +93 -92
package/dist/services.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, T as TThreadData, h as GetExternalTab, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-CfcWWR0w.mjs';
|
|
2
|
+
import * as _supabase_auth_js from '@supabase/auth-js';
|
|
2
3
|
|
|
3
4
|
declare function useActionService(): {
|
|
4
5
|
loadAction: ({ idAction, context, service, xNode, searchParams, }: {
|
|
@@ -59,8 +60,23 @@ declare function useAuthService(): {
|
|
|
59
60
|
loginTenantUser: (body: {
|
|
60
61
|
email: string;
|
|
61
62
|
password: string;
|
|
62
|
-
|
|
63
|
-
|
|
63
|
+
}) => Promise<{
|
|
64
|
+
data: null;
|
|
65
|
+
error: {
|
|
66
|
+
message: string;
|
|
67
|
+
};
|
|
68
|
+
} | {
|
|
69
|
+
data: {
|
|
70
|
+
user: _supabase_auth_js.User;
|
|
71
|
+
session: _supabase_auth_js.Session;
|
|
72
|
+
weakPassword?: _supabase_auth_js.WeakPassword;
|
|
73
|
+
} | {
|
|
74
|
+
user: null;
|
|
75
|
+
session: null;
|
|
76
|
+
weakPassword?: null | undefined;
|
|
77
|
+
};
|
|
78
|
+
error: _supabase_auth_js.AuthError | null;
|
|
79
|
+
}>;
|
|
64
80
|
forgotPassword: (email: string) => Promise<any>;
|
|
65
81
|
forgotPasswordSSO: ({ email, with_context, method, }: {
|
|
66
82
|
email: string;
|
|
@@ -629,41 +645,6 @@ declare const serviceFactories: readonly [(env: any) => {
|
|
|
629
645
|
service?: string;
|
|
630
646
|
xNode?: string;
|
|
631
647
|
}) => any;
|
|
632
|
-
}, (env: any) => {
|
|
633
|
-
getEInvoiceInfo: ({ xNode, service, uid }: {
|
|
634
|
-
service?: string;
|
|
635
|
-
xNode?: string;
|
|
636
|
-
uid: number;
|
|
637
|
-
}) => Promise<any>;
|
|
638
|
-
}, (env: any) => {
|
|
639
|
-
appAuthenticate: ({ xNode, service, appKey, activationCode, clientId, clientSecret, }: {
|
|
640
|
-
appKey: string;
|
|
641
|
-
activationCode: string;
|
|
642
|
-
clientId: string;
|
|
643
|
-
clientSecret: string;
|
|
644
|
-
xNode?: string;
|
|
645
|
-
service?: string;
|
|
646
|
-
}) => any;
|
|
647
|
-
}, (env: any) => {
|
|
648
|
-
applyVoucher: ({ xNode, service, ids, voucherCode }: {
|
|
649
|
-
ids: number[];
|
|
650
|
-
voucherCode: string;
|
|
651
|
-
xNode?: string;
|
|
652
|
-
service?: string;
|
|
653
|
-
}) => any;
|
|
654
|
-
}, (env: any) => {
|
|
655
|
-
removeVoucher: ({ xNode, service, ids, programId }: {
|
|
656
|
-
ids: number[];
|
|
657
|
-
programId: string;
|
|
658
|
-
xNode?: string;
|
|
659
|
-
service?: string;
|
|
660
|
-
}) => any;
|
|
661
|
-
}, (env: any) => {
|
|
662
|
-
syncFromUi: ({ xNode, service, orders }: {
|
|
663
|
-
orders: any[];
|
|
664
|
-
xNode?: string;
|
|
665
|
-
service?: string;
|
|
666
|
-
}) => any;
|
|
667
648
|
}, () => {
|
|
668
649
|
addFloorSupabase: (values: {
|
|
669
650
|
name: string;
|
|
@@ -851,78 +832,6 @@ declare const serviceFactories: readonly [(env: any) => {
|
|
|
851
832
|
url: string | null;
|
|
852
833
|
error: any;
|
|
853
834
|
}>;
|
|
854
|
-
}, (env: any) => {
|
|
855
|
-
getListUsers: ({ tenantId }: {
|
|
856
|
-
tenantId: string;
|
|
857
|
-
}) => any;
|
|
858
|
-
}, (env: any) => {
|
|
859
|
-
getListRoles: ({ tenantId }: {
|
|
860
|
-
tenantId: string;
|
|
861
|
-
}) => any;
|
|
862
|
-
}, (env: any) => {
|
|
863
|
-
assignRole: ({ tenantId, userId, roleId, }: {
|
|
864
|
-
tenantId: string;
|
|
865
|
-
userId: string;
|
|
866
|
-
roleId: string;
|
|
867
|
-
}) => any;
|
|
868
|
-
}, () => {
|
|
869
|
-
getStatesSupabase: () => Promise<{
|
|
870
|
-
length: number;
|
|
871
|
-
records: any[];
|
|
872
|
-
}>;
|
|
873
|
-
}, () => {
|
|
874
|
-
getWardsSupabase: () => Promise<{
|
|
875
|
-
length: number;
|
|
876
|
-
records: any[];
|
|
877
|
-
}>;
|
|
878
|
-
}, () => {
|
|
879
|
-
getPartnerTitlesSupabase: () => Promise<{
|
|
880
|
-
length: number;
|
|
881
|
-
records: any[];
|
|
882
|
-
}>;
|
|
883
|
-
}, (env: any) => {
|
|
884
|
-
getSupaCurrentUser: ({ tenantId }: {
|
|
885
|
-
tenantId: string;
|
|
886
|
-
}) => any;
|
|
887
|
-
}, () => {
|
|
888
|
-
updateCategorySupabase: (values: {
|
|
889
|
-
category_id: number;
|
|
890
|
-
name?: string;
|
|
891
|
-
parent_id?: number | null;
|
|
892
|
-
sequence?: number;
|
|
893
|
-
image_128?: string;
|
|
894
|
-
}) => Promise<number[] | null>;
|
|
895
|
-
}, () => {
|
|
896
|
-
deleteCategorySupabase: (values: {
|
|
897
|
-
category_id: number;
|
|
898
|
-
}) => Promise<number[] | null>;
|
|
899
|
-
}, () => {
|
|
900
|
-
updateProductSupabase: (values: {
|
|
901
|
-
product_id: number;
|
|
902
|
-
name?: string;
|
|
903
|
-
product_tmpl_id?: number;
|
|
904
|
-
product_template_variant_value_ids?: number[];
|
|
905
|
-
combo_ids?: number[];
|
|
906
|
-
categ_id?: number;
|
|
907
|
-
pos_categ_ids?: number[];
|
|
908
|
-
display_name?: string;
|
|
909
|
-
default_code?: string;
|
|
910
|
-
description_sale?: string;
|
|
911
|
-
lst_price?: number;
|
|
912
|
-
standard_price?: number;
|
|
913
|
-
barcode?: string;
|
|
914
|
-
image_url?: string;
|
|
915
|
-
active?: boolean;
|
|
916
|
-
}) => Promise<number[] | null>;
|
|
917
|
-
}, () => {
|
|
918
|
-
deleteProductSupabase: (values: {
|
|
919
|
-
product_id: number;
|
|
920
|
-
}) => Promise<number[] | null>;
|
|
921
|
-
}, () => {
|
|
922
|
-
togglePosRestaurantSupabase: (values: {
|
|
923
|
-
config_id: number;
|
|
924
|
-
module_pos_restaurant: boolean;
|
|
925
|
-
}) => Promise<number[] | null>;
|
|
926
835
|
}];
|
|
927
836
|
type ServiceFactories = (typeof serviceFactories)[number];
|
|
928
837
|
type ServiceReturn<T extends ServiceFactories> = ReturnType<T>;
|
package/dist/services.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, T as TThreadData, h as GetExternalTab, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-CfcWWR0w.js';
|
|
2
|
+
import * as _supabase_auth_js from '@supabase/auth-js';
|
|
2
3
|
|
|
3
4
|
declare function useActionService(): {
|
|
4
5
|
loadAction: ({ idAction, context, service, xNode, searchParams, }: {
|
|
@@ -59,8 +60,23 @@ declare function useAuthService(): {
|
|
|
59
60
|
loginTenantUser: (body: {
|
|
60
61
|
email: string;
|
|
61
62
|
password: string;
|
|
62
|
-
|
|
63
|
-
|
|
63
|
+
}) => Promise<{
|
|
64
|
+
data: null;
|
|
65
|
+
error: {
|
|
66
|
+
message: string;
|
|
67
|
+
};
|
|
68
|
+
} | {
|
|
69
|
+
data: {
|
|
70
|
+
user: _supabase_auth_js.User;
|
|
71
|
+
session: _supabase_auth_js.Session;
|
|
72
|
+
weakPassword?: _supabase_auth_js.WeakPassword;
|
|
73
|
+
} | {
|
|
74
|
+
user: null;
|
|
75
|
+
session: null;
|
|
76
|
+
weakPassword?: null | undefined;
|
|
77
|
+
};
|
|
78
|
+
error: _supabase_auth_js.AuthError | null;
|
|
79
|
+
}>;
|
|
64
80
|
forgotPassword: (email: string) => Promise<any>;
|
|
65
81
|
forgotPasswordSSO: ({ email, with_context, method, }: {
|
|
66
82
|
email: string;
|
|
@@ -629,41 +645,6 @@ declare const serviceFactories: readonly [(env: any) => {
|
|
|
629
645
|
service?: string;
|
|
630
646
|
xNode?: string;
|
|
631
647
|
}) => any;
|
|
632
|
-
}, (env: any) => {
|
|
633
|
-
getEInvoiceInfo: ({ xNode, service, uid }: {
|
|
634
|
-
service?: string;
|
|
635
|
-
xNode?: string;
|
|
636
|
-
uid: number;
|
|
637
|
-
}) => Promise<any>;
|
|
638
|
-
}, (env: any) => {
|
|
639
|
-
appAuthenticate: ({ xNode, service, appKey, activationCode, clientId, clientSecret, }: {
|
|
640
|
-
appKey: string;
|
|
641
|
-
activationCode: string;
|
|
642
|
-
clientId: string;
|
|
643
|
-
clientSecret: string;
|
|
644
|
-
xNode?: string;
|
|
645
|
-
service?: string;
|
|
646
|
-
}) => any;
|
|
647
|
-
}, (env: any) => {
|
|
648
|
-
applyVoucher: ({ xNode, service, ids, voucherCode }: {
|
|
649
|
-
ids: number[];
|
|
650
|
-
voucherCode: string;
|
|
651
|
-
xNode?: string;
|
|
652
|
-
service?: string;
|
|
653
|
-
}) => any;
|
|
654
|
-
}, (env: any) => {
|
|
655
|
-
removeVoucher: ({ xNode, service, ids, programId }: {
|
|
656
|
-
ids: number[];
|
|
657
|
-
programId: string;
|
|
658
|
-
xNode?: string;
|
|
659
|
-
service?: string;
|
|
660
|
-
}) => any;
|
|
661
|
-
}, (env: any) => {
|
|
662
|
-
syncFromUi: ({ xNode, service, orders }: {
|
|
663
|
-
orders: any[];
|
|
664
|
-
xNode?: string;
|
|
665
|
-
service?: string;
|
|
666
|
-
}) => any;
|
|
667
648
|
}, () => {
|
|
668
649
|
addFloorSupabase: (values: {
|
|
669
650
|
name: string;
|
|
@@ -851,78 +832,6 @@ declare const serviceFactories: readonly [(env: any) => {
|
|
|
851
832
|
url: string | null;
|
|
852
833
|
error: any;
|
|
853
834
|
}>;
|
|
854
|
-
}, (env: any) => {
|
|
855
|
-
getListUsers: ({ tenantId }: {
|
|
856
|
-
tenantId: string;
|
|
857
|
-
}) => any;
|
|
858
|
-
}, (env: any) => {
|
|
859
|
-
getListRoles: ({ tenantId }: {
|
|
860
|
-
tenantId: string;
|
|
861
|
-
}) => any;
|
|
862
|
-
}, (env: any) => {
|
|
863
|
-
assignRole: ({ tenantId, userId, roleId, }: {
|
|
864
|
-
tenantId: string;
|
|
865
|
-
userId: string;
|
|
866
|
-
roleId: string;
|
|
867
|
-
}) => any;
|
|
868
|
-
}, () => {
|
|
869
|
-
getStatesSupabase: () => Promise<{
|
|
870
|
-
length: number;
|
|
871
|
-
records: any[];
|
|
872
|
-
}>;
|
|
873
|
-
}, () => {
|
|
874
|
-
getWardsSupabase: () => Promise<{
|
|
875
|
-
length: number;
|
|
876
|
-
records: any[];
|
|
877
|
-
}>;
|
|
878
|
-
}, () => {
|
|
879
|
-
getPartnerTitlesSupabase: () => Promise<{
|
|
880
|
-
length: number;
|
|
881
|
-
records: any[];
|
|
882
|
-
}>;
|
|
883
|
-
}, (env: any) => {
|
|
884
|
-
getSupaCurrentUser: ({ tenantId }: {
|
|
885
|
-
tenantId: string;
|
|
886
|
-
}) => any;
|
|
887
|
-
}, () => {
|
|
888
|
-
updateCategorySupabase: (values: {
|
|
889
|
-
category_id: number;
|
|
890
|
-
name?: string;
|
|
891
|
-
parent_id?: number | null;
|
|
892
|
-
sequence?: number;
|
|
893
|
-
image_128?: string;
|
|
894
|
-
}) => Promise<number[] | null>;
|
|
895
|
-
}, () => {
|
|
896
|
-
deleteCategorySupabase: (values: {
|
|
897
|
-
category_id: number;
|
|
898
|
-
}) => Promise<number[] | null>;
|
|
899
|
-
}, () => {
|
|
900
|
-
updateProductSupabase: (values: {
|
|
901
|
-
product_id: number;
|
|
902
|
-
name?: string;
|
|
903
|
-
product_tmpl_id?: number;
|
|
904
|
-
product_template_variant_value_ids?: number[];
|
|
905
|
-
combo_ids?: number[];
|
|
906
|
-
categ_id?: number;
|
|
907
|
-
pos_categ_ids?: number[];
|
|
908
|
-
display_name?: string;
|
|
909
|
-
default_code?: string;
|
|
910
|
-
description_sale?: string;
|
|
911
|
-
lst_price?: number;
|
|
912
|
-
standard_price?: number;
|
|
913
|
-
barcode?: string;
|
|
914
|
-
image_url?: string;
|
|
915
|
-
active?: boolean;
|
|
916
|
-
}) => Promise<number[] | null>;
|
|
917
|
-
}, () => {
|
|
918
|
-
deleteProductSupabase: (values: {
|
|
919
|
-
product_id: number;
|
|
920
|
-
}) => Promise<number[] | null>;
|
|
921
|
-
}, () => {
|
|
922
|
-
togglePosRestaurantSupabase: (values: {
|
|
923
|
-
config_id: number;
|
|
924
|
-
module_pos_restaurant: boolean;
|
|
925
|
-
}) => Promise<number[] | null>;
|
|
926
835
|
}];
|
|
927
836
|
type ServiceFactories = (typeof serviceFactories)[number];
|
|
928
837
|
type ServiceReturn<T extends ServiceFactories> = ReturnType<T>;
|