@hobenakicoffee/libraries 4.8.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.8.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;
@@ -2861,6 +2895,7 @@ export type Database = {
2861
2895
  Args: { p_post_id: string };
2862
2896
  Returns: undefined;
2863
2897
  };
2898
+ record_shop_view: { Args: { p_username: string }; Returns: undefined };
2864
2899
  reject_newsletter_post: {
2865
2900
  Args: { p_post_id: string; p_rejection_reason: string };
2866
2901
  Returns: Json;
@@ -2895,6 +2930,10 @@ export type Database = {
2895
2930
  sender_id: string;
2896
2931
  }[];
2897
2932
  };
2933
+ set_shop_active_by_manager: {
2934
+ Args: { p_is_active: boolean; p_profile_id: string };
2935
+ Returns: Json;
2936
+ };
2898
2937
  toggle_follow: { Args: { target_user_id: string }; Returns: boolean };
2899
2938
  toggle_newsletter_post_like: {
2900
2939
  Args: { p_post_id: string };
@@ -2981,10 +3020,17 @@ export type Database = {
2981
3020
  upsert_shop_settings: {
2982
3021
  Args: {
2983
3022
  p_banner_url?: string;
3023
+ p_cod_enabled?: boolean;
2984
3024
  p_is_active?: boolean;
2985
3025
  p_logo_url?: string;
3026
+ p_processing_max_days?: number;
3027
+ p_processing_min_days?: number;
3028
+ p_requires_shipping?: boolean;
2986
3029
  p_seo_description?: string;
2987
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;
2988
3034
  p_shop_description?: string;
2989
3035
  p_shop_name?: string;
2990
3036
  p_theme_config?: Json;