@hobenakicoffee/libraries 1.8.0 → 1.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": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "type": "module",
5
5
  "types": "src/index.ts",
6
6
  "exports": {
@@ -137,6 +137,42 @@ export type Database = {
137
137
  },
138
138
  ]
139
139
  }
140
+ follows: {
141
+ Row: {
142
+ created_at: string | null
143
+ follower_id: string
144
+ following_id: string
145
+ id: number
146
+ }
147
+ Insert: {
148
+ created_at?: string | null
149
+ follower_id: string
150
+ following_id: string
151
+ id?: never
152
+ }
153
+ Update: {
154
+ created_at?: string | null
155
+ follower_id?: string
156
+ following_id?: string
157
+ id?: never
158
+ }
159
+ Relationships: [
160
+ {
161
+ foreignKeyName: "follows_follower_id_fkey"
162
+ columns: ["follower_id"]
163
+ isOneToOne: false
164
+ referencedRelation: "profiles"
165
+ referencedColumns: ["id"]
166
+ },
167
+ {
168
+ foreignKeyName: "follows_following_id_fkey"
169
+ columns: ["following_id"]
170
+ isOneToOne: false
171
+ referencedRelation: "profiles"
172
+ referencedColumns: ["id"]
173
+ },
174
+ ]
175
+ }
140
176
  manager_role_permissions: {
141
177
  Row: {
142
178
  id: number
@@ -282,6 +318,8 @@ export type Database = {
282
318
  bio: string | null
283
319
  created_at: string | null
284
320
  display_name: string | null
321
+ follower_count: number | null
322
+ following_count: number | null
285
323
  full_name: string | null
286
324
  has_wallet_balance: boolean | null
287
325
  id: string
@@ -303,6 +341,8 @@ export type Database = {
303
341
  bio?: string | null
304
342
  created_at?: string | null
305
343
  display_name?: string | null
344
+ follower_count?: number | null
345
+ following_count?: number | null
306
346
  full_name?: string | null
307
347
  has_wallet_balance?: boolean | null
308
348
  id: string
@@ -324,6 +364,8 @@ export type Database = {
324
364
  bio?: string | null
325
365
  created_at?: string | null
326
366
  display_name?: string | null
367
+ follower_count?: number | null
368
+ following_count?: number | null
327
369
  full_name?: string | null
328
370
  has_wallet_balance?: boolean | null
329
371
  id?: string
@@ -645,6 +687,9 @@ export type Database = {
645
687
  Returns: string
646
688
  }
647
689
  custom_access_token_hook: { Args: { event: Json }; Returns: Json }
690
+ follow_user: { Args: { target_user_id: string }; Returns: undefined }
691
+ get_followers: { Args: { target_user_id: string }; Returns: string[] }
692
+ get_following: { Args: { target_user_id: string }; Returns: string[] }
648
693
  handle_successful_payment: {
649
694
  Args: {
650
695
  p_amount: number
@@ -661,6 +706,7 @@ export type Database = {
661
706
  Returns: Json
662
707
  }
663
708
  is_admin: { Args: never; Returns: boolean }
709
+ is_following: { Args: { target_user_id: string }; Returns: boolean }
664
710
  is_manager: { Args: { user_email: string }; Returns: boolean }
665
711
  request_withdrawal: {
666
712
  Args: { p_amount: number; p_payout_method_id: string }
@@ -668,6 +714,8 @@ export type Database = {
668
714
  }
669
715
  show_limit: { Args: never; Returns: number }
670
716
  show_trgm: { Args: { "": string }; Returns: string[] }
717
+ toggle_follow: { Args: { target_user_id: string }; Returns: boolean }
718
+ unfollow_user: { Args: { target_user_id: string }; Returns: undefined }
671
719
  upsert_supporter: {
672
720
  Args: {
673
721
  p_amount?: number