@fctc/interface-logic 4.8.4 → 4.8.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.
@@ -791,15 +791,41 @@ declare const serviceFactories: readonly [(env: any) => {
791
791
  payment_method_id: number;
792
792
  session_id: number;
793
793
  amount: number;
794
- order_total: number;
795
794
  }) => Promise<{
796
795
  id: number;
797
796
  amount: number;
798
- amount_paid: number;
799
- amount_return: number;
800
- is_complete: boolean;
801
- order_state: string;
802
797
  } | null>;
798
+ }, () => {
799
+ createCustomerSupabase: (values: {
800
+ name: string;
801
+ phone?: string;
802
+ email?: string;
803
+ address?: string;
804
+ street2?: string;
805
+ city?: string;
806
+ birth_date?: string;
807
+ country_id?: number;
808
+ state_id?: number;
809
+ ward_id?: number;
810
+ }) => Promise<[number, string][] | null>;
811
+ }, () => {
812
+ updateCustomerSupabase: (values: {
813
+ customer_id: number;
814
+ name?: string;
815
+ phone?: string;
816
+ email?: string;
817
+ address?: string;
818
+ street2?: string;
819
+ city?: string;
820
+ birth_date?: string;
821
+ country_id?: number;
822
+ state_id?: number;
823
+ ward_id?: number;
824
+ }) => Promise<number[] | null>;
825
+ }, () => {
826
+ deleteCustomerSupabase: (values: {
827
+ customer_id: number;
828
+ }) => Promise<number[] | null>;
803
829
  }];
804
830
  type ServiceFactories = (typeof serviceFactories)[number];
805
831
  type ServiceReturn<T extends ServiceFactories> = ReturnType<T>;