@fctc/interface-logic 5.0.5 → 5.0.6
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-2YGHWZ4C.js +116 -0
- package/dist/chunk-3VJCGAPH.js +6321 -0
- 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-IUYYGSEL.js +321 -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-UB3A7GIQ.mjs +6161 -0
- package/dist/chunk-VKS6GVJY.mjs +114 -0
- package/dist/chunk-WAXGOBY2.mjs +1 -0
- package/dist/configs.js +7 -2577
- package/dist/configs.mjs +3 -2545
- package/dist/constants.d.mts +2 -10
- package/dist/constants.d.ts +2 -10
- package/dist/constants.js +65 -351
- package/dist/constants.mjs +1 -314
- package/dist/environment.js +16 -2704
- package/dist/environment.mjs +4 -2670
- package/dist/hooks.d.mts +19 -55
- package/dist/hooks.d.ts +19 -55
- package/dist/hooks.js +557 -10131
- package/dist/hooks.mjs +6 -9955
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1179 -12357
- package/dist/index.mjs +8 -12026
- package/dist/models.js +7 -143
- package/dist/models.mjs +2 -120
- package/dist/provider.d.mts +2 -9
- package/dist/provider.d.ts +2 -9
- package/dist/provider.js +37 -10685
- package/dist/provider.mjs +6 -10653
- package/dist/services.d.mts +18 -69
- package/dist/services.d.ts +18 -69
- package/dist/services.js +40 -7939
- package/dist/services.mjs +6 -7907
- 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;
|
|
@@ -816,73 +832,6 @@ declare const serviceFactories: readonly [(env: any) => {
|
|
|
816
832
|
url: string | null;
|
|
817
833
|
error: any;
|
|
818
834
|
}>;
|
|
819
|
-
}, (env: any) => {
|
|
820
|
-
getListUsers: ({ tenantId }: {
|
|
821
|
-
tenantId: string;
|
|
822
|
-
}) => any;
|
|
823
|
-
}, (env: any) => {
|
|
824
|
-
getListRoles: ({ tenantId }: {
|
|
825
|
-
tenantId: string;
|
|
826
|
-
}) => any;
|
|
827
|
-
}, (env: any) => {
|
|
828
|
-
assignRole: ({ tenantId, userId, roleId, }: {
|
|
829
|
-
tenantId: string;
|
|
830
|
-
userId: string;
|
|
831
|
-
roleId: string;
|
|
832
|
-
}) => any;
|
|
833
|
-
}, () => {
|
|
834
|
-
getStatesSupabase: () => Promise<{
|
|
835
|
-
length: number;
|
|
836
|
-
records: any[];
|
|
837
|
-
}>;
|
|
838
|
-
}, () => {
|
|
839
|
-
getWardsSupabase: () => Promise<{
|
|
840
|
-
length: number;
|
|
841
|
-
records: any[];
|
|
842
|
-
}>;
|
|
843
|
-
}, () => {
|
|
844
|
-
getPartnerTitlesSupabase: () => Promise<{
|
|
845
|
-
length: number;
|
|
846
|
-
records: any[];
|
|
847
|
-
}>;
|
|
848
|
-
}, (env: any) => {
|
|
849
|
-
getSupaCurrentUser: ({ tenantId }: {
|
|
850
|
-
tenantId: string;
|
|
851
|
-
}) => any;
|
|
852
|
-
}, () => {
|
|
853
|
-
updateCategorySupabase: (values: {
|
|
854
|
-
category_id: number;
|
|
855
|
-
name?: string;
|
|
856
|
-
parent_id?: number | null;
|
|
857
|
-
sequence?: number;
|
|
858
|
-
image_128?: string;
|
|
859
|
-
}) => Promise<number[] | null>;
|
|
860
|
-
}, () => {
|
|
861
|
-
deleteCategorySupabase: (values: {
|
|
862
|
-
category_id: number;
|
|
863
|
-
}) => Promise<number[] | null>;
|
|
864
|
-
}, () => {
|
|
865
|
-
updateProductSupabase: (values: {
|
|
866
|
-
product_id: number;
|
|
867
|
-
name?: string;
|
|
868
|
-
product_tmpl_id?: number;
|
|
869
|
-
product_template_variant_value_ids?: number[];
|
|
870
|
-
combo_ids?: number[];
|
|
871
|
-
categ_id?: number;
|
|
872
|
-
pos_categ_ids?: number[];
|
|
873
|
-
display_name?: string;
|
|
874
|
-
default_code?: string;
|
|
875
|
-
description_sale?: string;
|
|
876
|
-
lst_price?: number;
|
|
877
|
-
standard_price?: number;
|
|
878
|
-
barcode?: string;
|
|
879
|
-
image_url?: string;
|
|
880
|
-
active?: boolean;
|
|
881
|
-
}) => Promise<number[] | null>;
|
|
882
|
-
}, () => {
|
|
883
|
-
deleteProductSupabase: (values: {
|
|
884
|
-
product_id: number;
|
|
885
|
-
}) => Promise<number[] | null>;
|
|
886
835
|
}];
|
|
887
836
|
type ServiceFactories = (typeof serviceFactories)[number];
|
|
888
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;
|
|
@@ -816,73 +832,6 @@ declare const serviceFactories: readonly [(env: any) => {
|
|
|
816
832
|
url: string | null;
|
|
817
833
|
error: any;
|
|
818
834
|
}>;
|
|
819
|
-
}, (env: any) => {
|
|
820
|
-
getListUsers: ({ tenantId }: {
|
|
821
|
-
tenantId: string;
|
|
822
|
-
}) => any;
|
|
823
|
-
}, (env: any) => {
|
|
824
|
-
getListRoles: ({ tenantId }: {
|
|
825
|
-
tenantId: string;
|
|
826
|
-
}) => any;
|
|
827
|
-
}, (env: any) => {
|
|
828
|
-
assignRole: ({ tenantId, userId, roleId, }: {
|
|
829
|
-
tenantId: string;
|
|
830
|
-
userId: string;
|
|
831
|
-
roleId: string;
|
|
832
|
-
}) => any;
|
|
833
|
-
}, () => {
|
|
834
|
-
getStatesSupabase: () => Promise<{
|
|
835
|
-
length: number;
|
|
836
|
-
records: any[];
|
|
837
|
-
}>;
|
|
838
|
-
}, () => {
|
|
839
|
-
getWardsSupabase: () => Promise<{
|
|
840
|
-
length: number;
|
|
841
|
-
records: any[];
|
|
842
|
-
}>;
|
|
843
|
-
}, () => {
|
|
844
|
-
getPartnerTitlesSupabase: () => Promise<{
|
|
845
|
-
length: number;
|
|
846
|
-
records: any[];
|
|
847
|
-
}>;
|
|
848
|
-
}, (env: any) => {
|
|
849
|
-
getSupaCurrentUser: ({ tenantId }: {
|
|
850
|
-
tenantId: string;
|
|
851
|
-
}) => any;
|
|
852
|
-
}, () => {
|
|
853
|
-
updateCategorySupabase: (values: {
|
|
854
|
-
category_id: number;
|
|
855
|
-
name?: string;
|
|
856
|
-
parent_id?: number | null;
|
|
857
|
-
sequence?: number;
|
|
858
|
-
image_128?: string;
|
|
859
|
-
}) => Promise<number[] | null>;
|
|
860
|
-
}, () => {
|
|
861
|
-
deleteCategorySupabase: (values: {
|
|
862
|
-
category_id: number;
|
|
863
|
-
}) => Promise<number[] | null>;
|
|
864
|
-
}, () => {
|
|
865
|
-
updateProductSupabase: (values: {
|
|
866
|
-
product_id: number;
|
|
867
|
-
name?: string;
|
|
868
|
-
product_tmpl_id?: number;
|
|
869
|
-
product_template_variant_value_ids?: number[];
|
|
870
|
-
combo_ids?: number[];
|
|
871
|
-
categ_id?: number;
|
|
872
|
-
pos_categ_ids?: number[];
|
|
873
|
-
display_name?: string;
|
|
874
|
-
default_code?: string;
|
|
875
|
-
description_sale?: string;
|
|
876
|
-
lst_price?: number;
|
|
877
|
-
standard_price?: number;
|
|
878
|
-
barcode?: string;
|
|
879
|
-
image_url?: string;
|
|
880
|
-
active?: boolean;
|
|
881
|
-
}) => Promise<number[] | null>;
|
|
882
|
-
}, () => {
|
|
883
|
-
deleteProductSupabase: (values: {
|
|
884
|
-
product_id: number;
|
|
885
|
-
}) => Promise<number[] | null>;
|
|
886
835
|
}];
|
|
887
836
|
type ServiceFactories = (typeof serviceFactories)[number];
|
|
888
837
|
type ServiceReturn<T extends ServiceFactories> = ReturnType<T>;
|