@hobenakicoffee/libraries 4.7.0 → 4.9.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hobenakicoffee/libraries",
3
- "version": "4.7.0",
3
+ "version": "4.9.0",
4
4
  "type": "module",
5
5
  "types": "src/index.ts",
6
6
  "repository": {
@@ -1910,47 +1910,80 @@ export type Database = {
1910
1910
  shop_settings: {
1911
1911
  Row: {
1912
1912
  banner_url: string | null;
1913
+ cod_enabled: boolean;
1913
1914
  created_at: string;
1914
1915
  deactivation_reason: string | null;
1915
1916
  id: string;
1916
1917
  is_active: boolean;
1917
1918
  logo_url: string | null;
1919
+ processing_max_days: number | null;
1920
+ processing_min_days: number | null;
1918
1921
  profile_id: string;
1922
+ requires_shipping: boolean;
1919
1923
  seo_description: string | null;
1920
1924
  seo_title: string | null;
1925
+ shipping_fee_inside_dhaka: number | null;
1926
+ shipping_fee_outside_dhaka: number | null;
1927
+ shipping_from_address: Json | null;
1921
1928
  shop_description: string | null;
1922
1929
  shop_name: string;
1923
1930
  theme_config: Json;
1931
+ total_earnings: number;
1932
+ total_products: number;
1933
+ total_sales: number;
1934
+ total_views: number;
1924
1935
  updated_at: string;
1925
1936
  };
1926
1937
  Insert: {
1927
1938
  banner_url?: string | null;
1939
+ cod_enabled?: boolean;
1928
1940
  created_at?: string;
1929
1941
  deactivation_reason?: string | null;
1930
1942
  id?: string;
1931
1943
  is_active?: boolean;
1932
1944
  logo_url?: string | null;
1945
+ processing_max_days?: number | null;
1946
+ processing_min_days?: number | null;
1933
1947
  profile_id: string;
1948
+ requires_shipping?: boolean;
1934
1949
  seo_description?: string | null;
1935
1950
  seo_title?: string | null;
1951
+ shipping_fee_inside_dhaka?: number | null;
1952
+ shipping_fee_outside_dhaka?: number | null;
1953
+ shipping_from_address?: Json | null;
1936
1954
  shop_description?: string | null;
1937
1955
  shop_name: string;
1938
1956
  theme_config?: Json;
1957
+ total_earnings?: number;
1958
+ total_products?: number;
1959
+ total_sales?: number;
1960
+ total_views?: number;
1939
1961
  updated_at?: string;
1940
1962
  };
1941
1963
  Update: {
1942
1964
  banner_url?: string | null;
1965
+ cod_enabled?: boolean;
1943
1966
  created_at?: string;
1944
1967
  deactivation_reason?: string | null;
1945
1968
  id?: string;
1946
1969
  is_active?: boolean;
1947
1970
  logo_url?: string | null;
1971
+ processing_max_days?: number | null;
1972
+ processing_min_days?: number | null;
1948
1973
  profile_id?: string;
1974
+ requires_shipping?: boolean;
1949
1975
  seo_description?: string | null;
1950
1976
  seo_title?: string | null;
1977
+ shipping_fee_inside_dhaka?: number | null;
1978
+ shipping_fee_outside_dhaka?: number | null;
1979
+ shipping_from_address?: Json | null;
1951
1980
  shop_description?: string | null;
1952
1981
  shop_name?: string;
1953
1982
  theme_config?: Json;
1983
+ total_earnings?: number;
1984
+ total_products?: number;
1985
+ total_sales?: number;
1986
+ total_views?: number;
1954
1987
  updated_at?: string;
1955
1988
  };
1956
1989
  Relationships: [
@@ -2619,6 +2652,7 @@ export type Database = {
2619
2652
  };
2620
2653
  Returns: Json;
2621
2654
  };
2655
+ get_shop_stats: { Args: never; Returns: Json };
2622
2656
  get_supporter_coffee_gifts_stats: {
2623
2657
  Args: {
2624
2658
  p_from_date: string;
@@ -2766,6 +2800,15 @@ export type Database = {
2766
2800
  Args: { p_order_item_id: string };
2767
2801
  Returns: Json;
2768
2802
  };
2803
+ moderate_user: {
2804
+ Args: {
2805
+ p_allow_gifting?: boolean;
2806
+ p_allow_subs?: boolean;
2807
+ p_is_page_active?: boolean;
2808
+ p_user_id: string;
2809
+ };
2810
+ Returns: Json;
2811
+ };
2769
2812
  perform_coffee_gift: {
2770
2813
  Args: {
2771
2814
  p_amount: number;
@@ -2805,6 +2848,14 @@ export type Database = {
2805
2848
  };
2806
2849
  Returns: Json;
2807
2850
  };
2851
+ process_withdrawal: {
2852
+ Args: {
2853
+ p_admin_note?: string;
2854
+ p_new_status: Database["public"]["Enums"]["withdrawal_status"];
2855
+ p_withdrawal_id: string;
2856
+ };
2857
+ Returns: Json;
2858
+ };
2808
2859
  purchase_newsletter_membership: {
2809
2860
  Args: {
2810
2861
  p_buyer_name: string;
@@ -2844,6 +2895,7 @@ export type Database = {
2844
2895
  Args: { p_post_id: string };
2845
2896
  Returns: undefined;
2846
2897
  };
2898
+ record_shop_view: { Args: { p_username: string }; Returns: undefined };
2847
2899
  reject_newsletter_post: {
2848
2900
  Args: { p_post_id: string; p_rejection_reason: string };
2849
2901
  Returns: Json;
@@ -2878,6 +2930,10 @@ export type Database = {
2878
2930
  sender_id: string;
2879
2931
  }[];
2880
2932
  };
2933
+ set_shop_active_by_manager: {
2934
+ Args: { p_is_active: boolean; p_profile_id: string };
2935
+ Returns: Json;
2936
+ };
2881
2937
  toggle_follow: { Args: { target_user_id: string }; Returns: boolean };
2882
2938
  toggle_newsletter_post_like: {
2883
2939
  Args: { p_post_id: string };
@@ -2964,10 +3020,17 @@ export type Database = {
2964
3020
  upsert_shop_settings: {
2965
3021
  Args: {
2966
3022
  p_banner_url?: string;
3023
+ p_cod_enabled?: boolean;
2967
3024
  p_is_active?: boolean;
2968
3025
  p_logo_url?: string;
3026
+ p_processing_max_days?: number;
3027
+ p_processing_min_days?: number;
3028
+ p_requires_shipping?: boolean;
2969
3029
  p_seo_description?: string;
2970
3030
  p_seo_title?: string;
3031
+ p_shipping_fee_inside_dhaka?: number;
3032
+ p_shipping_fee_outside_dhaka?: number;
3033
+ p_shipping_from_address?: Json;
2971
3034
  p_shop_description?: string;
2972
3035
  p_shop_name?: string;
2973
3036
  p_theme_config?: Json;