@fctc/interface-logic 5.0.6 → 5.0.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.
- package/dist/configs.js +2577 -7
- package/dist/configs.mjs +2545 -3
- package/dist/constants.d.mts +16 -4
- package/dist/constants.d.ts +16 -4
- package/dist/constants.js +355 -65
- package/dist/constants.mjs +318 -1
- package/dist/environment.js +2704 -16
- package/dist/environment.mjs +2670 -4
- package/dist/hooks.d.mts +84 -19
- package/dist/hooks.d.ts +84 -19
- package/dist/hooks.js +10316 -557
- package/dist/hooks.mjs +10136 -6
- package/dist/index.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +12549 -1179
- package/dist/index.mjs +12214 -8
- package/dist/models.js +143 -7
- package/dist/models.mjs +120 -2
- package/dist/provider.d.mts +13 -2
- package/dist/provider.d.ts +13 -2
- package/dist/provider.js +10866 -37
- package/dist/provider.mjs +10834 -6
- package/dist/services.d.mts +98 -18
- package/dist/services.d.ts +98 -18
- package/dist/services.js +8088 -40
- package/dist/services.mjs +8056 -6
- package/dist/store.js +817 -320
- package/dist/store.mjs +717 -1
- package/dist/types.js +17 -3
- package/dist/types.mjs +0 -1
- package/dist/utils.js +3094 -134
- package/dist/utils.mjs +3030 -2
- package/package.json +92 -93
- package/dist/chunk-2YGHWZ4C.js +0 -116
- package/dist/chunk-3VJCGAPH.js +0 -6321
- package/dist/chunk-4NLKHYBY.js +0 -131
- package/dist/chunk-6LSKTACC.js +0 -687
- package/dist/chunk-B432GFRR.mjs +0 -606
- package/dist/chunk-BPJZ3QRN.mjs +0 -3025
- package/dist/chunk-BZYCE2VA.js +0 -301
- package/dist/chunk-FDVY2DBI.mjs +0 -127
- package/dist/chunk-GGNOJ77I.js +0 -2
- package/dist/chunk-IUYYGSEL.js +0 -321
- package/dist/chunk-JDXUTKMX.js +0 -3065
- package/dist/chunk-JNLBHOL4.mjs +0 -284
- package/dist/chunk-MJEZ4MMQ.mjs +0 -315
- package/dist/chunk-UB3A7GIQ.mjs +0 -6161
- package/dist/chunk-VKS6GVJY.mjs +0 -114
- package/dist/chunk-WAXGOBY2.mjs +0 -1
package/dist/services.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
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';
|
|
3
2
|
|
|
4
3
|
declare function useActionService(): {
|
|
5
4
|
loadAction: ({ idAction, context, service, xNode, searchParams, }: {
|
|
@@ -60,23 +59,8 @@ declare function useAuthService(): {
|
|
|
60
59
|
loginTenantUser: (body: {
|
|
61
60
|
email: string;
|
|
62
61
|
password: string;
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
}>;
|
|
62
|
+
tenantId: string;
|
|
63
|
+
}) => Promise<any>;
|
|
80
64
|
forgotPassword: (email: string) => Promise<any>;
|
|
81
65
|
forgotPasswordSSO: ({ email, with_context, method, }: {
|
|
82
66
|
email: string;
|
|
@@ -645,6 +629,35 @@ declare const serviceFactories: readonly [(env: any) => {
|
|
|
645
629
|
service?: string;
|
|
646
630
|
xNode?: string;
|
|
647
631
|
}) => any;
|
|
632
|
+
}, (env: any) => {
|
|
633
|
+
appAuthenticate: ({ xNode, service, appKey, activationCode, clientId, clientSecret, }: {
|
|
634
|
+
appKey: string;
|
|
635
|
+
activationCode: string;
|
|
636
|
+
clientId: string;
|
|
637
|
+
clientSecret: string;
|
|
638
|
+
xNode?: string;
|
|
639
|
+
service?: string;
|
|
640
|
+
}) => any;
|
|
641
|
+
}, (env: any) => {
|
|
642
|
+
applyVoucher: ({ xNode, service, ids, voucherCode }: {
|
|
643
|
+
ids: number[];
|
|
644
|
+
voucherCode: string;
|
|
645
|
+
xNode?: string;
|
|
646
|
+
service?: string;
|
|
647
|
+
}) => any;
|
|
648
|
+
}, (env: any) => {
|
|
649
|
+
removeVoucher: ({ xNode, service, ids, programId }: {
|
|
650
|
+
ids: number[];
|
|
651
|
+
programId: string;
|
|
652
|
+
xNode?: string;
|
|
653
|
+
service?: string;
|
|
654
|
+
}) => any;
|
|
655
|
+
}, (env: any) => {
|
|
656
|
+
syncFromUi: ({ xNode, service, orders }: {
|
|
657
|
+
orders: any[];
|
|
658
|
+
xNode?: string;
|
|
659
|
+
service?: string;
|
|
660
|
+
}) => any;
|
|
648
661
|
}, () => {
|
|
649
662
|
addFloorSupabase: (values: {
|
|
650
663
|
name: string;
|
|
@@ -832,6 +845,73 @@ declare const serviceFactories: readonly [(env: any) => {
|
|
|
832
845
|
url: string | null;
|
|
833
846
|
error: any;
|
|
834
847
|
}>;
|
|
848
|
+
}, (env: any) => {
|
|
849
|
+
getListUsers: ({ tenantId }: {
|
|
850
|
+
tenantId: string;
|
|
851
|
+
}) => any;
|
|
852
|
+
}, (env: any) => {
|
|
853
|
+
getListRoles: ({ tenantId }: {
|
|
854
|
+
tenantId: string;
|
|
855
|
+
}) => any;
|
|
856
|
+
}, (env: any) => {
|
|
857
|
+
assignRole: ({ tenantId, userId, roleId, }: {
|
|
858
|
+
tenantId: string;
|
|
859
|
+
userId: string;
|
|
860
|
+
roleId: string;
|
|
861
|
+
}) => any;
|
|
862
|
+
}, () => {
|
|
863
|
+
getStatesSupabase: () => Promise<{
|
|
864
|
+
length: number;
|
|
865
|
+
records: any[];
|
|
866
|
+
}>;
|
|
867
|
+
}, () => {
|
|
868
|
+
getWardsSupabase: () => Promise<{
|
|
869
|
+
length: number;
|
|
870
|
+
records: any[];
|
|
871
|
+
}>;
|
|
872
|
+
}, () => {
|
|
873
|
+
getPartnerTitlesSupabase: () => Promise<{
|
|
874
|
+
length: number;
|
|
875
|
+
records: any[];
|
|
876
|
+
}>;
|
|
877
|
+
}, (env: any) => {
|
|
878
|
+
getSupaCurrentUser: ({ tenantId }: {
|
|
879
|
+
tenantId: string;
|
|
880
|
+
}) => any;
|
|
881
|
+
}, () => {
|
|
882
|
+
updateCategorySupabase: (values: {
|
|
883
|
+
category_id: number;
|
|
884
|
+
name?: string;
|
|
885
|
+
parent_id?: number | null;
|
|
886
|
+
sequence?: number;
|
|
887
|
+
image_128?: string;
|
|
888
|
+
}) => Promise<number[] | null>;
|
|
889
|
+
}, () => {
|
|
890
|
+
deleteCategorySupabase: (values: {
|
|
891
|
+
category_id: number;
|
|
892
|
+
}) => Promise<number[] | null>;
|
|
893
|
+
}, () => {
|
|
894
|
+
updateProductSupabase: (values: {
|
|
895
|
+
product_id: number;
|
|
896
|
+
name?: string;
|
|
897
|
+
product_tmpl_id?: number;
|
|
898
|
+
product_template_variant_value_ids?: number[];
|
|
899
|
+
combo_ids?: number[];
|
|
900
|
+
categ_id?: number;
|
|
901
|
+
pos_categ_ids?: number[];
|
|
902
|
+
display_name?: string;
|
|
903
|
+
default_code?: string;
|
|
904
|
+
description_sale?: string;
|
|
905
|
+
lst_price?: number;
|
|
906
|
+
standard_price?: number;
|
|
907
|
+
barcode?: string;
|
|
908
|
+
image_url?: string;
|
|
909
|
+
active?: boolean;
|
|
910
|
+
}) => Promise<number[] | null>;
|
|
911
|
+
}, () => {
|
|
912
|
+
deleteProductSupabase: (values: {
|
|
913
|
+
product_id: number;
|
|
914
|
+
}) => Promise<number[] | null>;
|
|
835
915
|
}];
|
|
836
916
|
type ServiceFactories = (typeof serviceFactories)[number];
|
|
837
917
|
type ServiceReturn<T extends ServiceFactories> = ReturnType<T>;
|
package/dist/services.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
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';
|
|
3
2
|
|
|
4
3
|
declare function useActionService(): {
|
|
5
4
|
loadAction: ({ idAction, context, service, xNode, searchParams, }: {
|
|
@@ -60,23 +59,8 @@ declare function useAuthService(): {
|
|
|
60
59
|
loginTenantUser: (body: {
|
|
61
60
|
email: string;
|
|
62
61
|
password: string;
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
}>;
|
|
62
|
+
tenantId: string;
|
|
63
|
+
}) => Promise<any>;
|
|
80
64
|
forgotPassword: (email: string) => Promise<any>;
|
|
81
65
|
forgotPasswordSSO: ({ email, with_context, method, }: {
|
|
82
66
|
email: string;
|
|
@@ -645,6 +629,35 @@ declare const serviceFactories: readonly [(env: any) => {
|
|
|
645
629
|
service?: string;
|
|
646
630
|
xNode?: string;
|
|
647
631
|
}) => any;
|
|
632
|
+
}, (env: any) => {
|
|
633
|
+
appAuthenticate: ({ xNode, service, appKey, activationCode, clientId, clientSecret, }: {
|
|
634
|
+
appKey: string;
|
|
635
|
+
activationCode: string;
|
|
636
|
+
clientId: string;
|
|
637
|
+
clientSecret: string;
|
|
638
|
+
xNode?: string;
|
|
639
|
+
service?: string;
|
|
640
|
+
}) => any;
|
|
641
|
+
}, (env: any) => {
|
|
642
|
+
applyVoucher: ({ xNode, service, ids, voucherCode }: {
|
|
643
|
+
ids: number[];
|
|
644
|
+
voucherCode: string;
|
|
645
|
+
xNode?: string;
|
|
646
|
+
service?: string;
|
|
647
|
+
}) => any;
|
|
648
|
+
}, (env: any) => {
|
|
649
|
+
removeVoucher: ({ xNode, service, ids, programId }: {
|
|
650
|
+
ids: number[];
|
|
651
|
+
programId: string;
|
|
652
|
+
xNode?: string;
|
|
653
|
+
service?: string;
|
|
654
|
+
}) => any;
|
|
655
|
+
}, (env: any) => {
|
|
656
|
+
syncFromUi: ({ xNode, service, orders }: {
|
|
657
|
+
orders: any[];
|
|
658
|
+
xNode?: string;
|
|
659
|
+
service?: string;
|
|
660
|
+
}) => any;
|
|
648
661
|
}, () => {
|
|
649
662
|
addFloorSupabase: (values: {
|
|
650
663
|
name: string;
|
|
@@ -832,6 +845,73 @@ declare const serviceFactories: readonly [(env: any) => {
|
|
|
832
845
|
url: string | null;
|
|
833
846
|
error: any;
|
|
834
847
|
}>;
|
|
848
|
+
}, (env: any) => {
|
|
849
|
+
getListUsers: ({ tenantId }: {
|
|
850
|
+
tenantId: string;
|
|
851
|
+
}) => any;
|
|
852
|
+
}, (env: any) => {
|
|
853
|
+
getListRoles: ({ tenantId }: {
|
|
854
|
+
tenantId: string;
|
|
855
|
+
}) => any;
|
|
856
|
+
}, (env: any) => {
|
|
857
|
+
assignRole: ({ tenantId, userId, roleId, }: {
|
|
858
|
+
tenantId: string;
|
|
859
|
+
userId: string;
|
|
860
|
+
roleId: string;
|
|
861
|
+
}) => any;
|
|
862
|
+
}, () => {
|
|
863
|
+
getStatesSupabase: () => Promise<{
|
|
864
|
+
length: number;
|
|
865
|
+
records: any[];
|
|
866
|
+
}>;
|
|
867
|
+
}, () => {
|
|
868
|
+
getWardsSupabase: () => Promise<{
|
|
869
|
+
length: number;
|
|
870
|
+
records: any[];
|
|
871
|
+
}>;
|
|
872
|
+
}, () => {
|
|
873
|
+
getPartnerTitlesSupabase: () => Promise<{
|
|
874
|
+
length: number;
|
|
875
|
+
records: any[];
|
|
876
|
+
}>;
|
|
877
|
+
}, (env: any) => {
|
|
878
|
+
getSupaCurrentUser: ({ tenantId }: {
|
|
879
|
+
tenantId: string;
|
|
880
|
+
}) => any;
|
|
881
|
+
}, () => {
|
|
882
|
+
updateCategorySupabase: (values: {
|
|
883
|
+
category_id: number;
|
|
884
|
+
name?: string;
|
|
885
|
+
parent_id?: number | null;
|
|
886
|
+
sequence?: number;
|
|
887
|
+
image_128?: string;
|
|
888
|
+
}) => Promise<number[] | null>;
|
|
889
|
+
}, () => {
|
|
890
|
+
deleteCategorySupabase: (values: {
|
|
891
|
+
category_id: number;
|
|
892
|
+
}) => Promise<number[] | null>;
|
|
893
|
+
}, () => {
|
|
894
|
+
updateProductSupabase: (values: {
|
|
895
|
+
product_id: number;
|
|
896
|
+
name?: string;
|
|
897
|
+
product_tmpl_id?: number;
|
|
898
|
+
product_template_variant_value_ids?: number[];
|
|
899
|
+
combo_ids?: number[];
|
|
900
|
+
categ_id?: number;
|
|
901
|
+
pos_categ_ids?: number[];
|
|
902
|
+
display_name?: string;
|
|
903
|
+
default_code?: string;
|
|
904
|
+
description_sale?: string;
|
|
905
|
+
lst_price?: number;
|
|
906
|
+
standard_price?: number;
|
|
907
|
+
barcode?: string;
|
|
908
|
+
image_url?: string;
|
|
909
|
+
active?: boolean;
|
|
910
|
+
}) => Promise<number[] | null>;
|
|
911
|
+
}, () => {
|
|
912
|
+
deleteProductSupabase: (values: {
|
|
913
|
+
product_id: number;
|
|
914
|
+
}) => Promise<number[] | null>;
|
|
835
915
|
}];
|
|
836
916
|
type ServiceFactories = (typeof serviceFactories)[number];
|
|
837
917
|
type ServiceReturn<T extends ServiceFactories> = ReturnType<T>;
|