@hobenakicoffee/libraries 1.11.0 → 1.12.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.
Files changed (76) hide show
  1. package/README.md +25 -4
  2. package/package.json +84 -9
  3. package/src/App.tsx +28 -0
  4. package/src/components/turnstile-captcha.tsx +47 -0
  5. package/src/components/ui/alert-dialog.tsx +196 -0
  6. package/src/components/ui/alert.tsx +76 -0
  7. package/src/components/ui/avatar.tsx +110 -0
  8. package/src/components/ui/badge.tsx +49 -0
  9. package/src/components/ui/breadcrumb.tsx +122 -0
  10. package/src/components/ui/button-group.tsx +82 -0
  11. package/src/components/ui/button.tsx +77 -0
  12. package/src/components/ui/calendar.tsx +235 -0
  13. package/src/components/ui/card.tsx +100 -0
  14. package/src/components/ui/chart.tsx +364 -0
  15. package/src/components/ui/checkbox.tsx +30 -0
  16. package/src/components/ui/dialog.tsx +162 -0
  17. package/src/components/ui/drawer.tsx +126 -0
  18. package/src/components/ui/dropdown-menu.tsx +267 -0
  19. package/src/components/ui/empty-minimal.tsx +20 -0
  20. package/src/components/ui/empty.tsx +101 -0
  21. package/src/components/ui/field.tsx +235 -0
  22. package/src/components/ui/input-group.tsx +170 -0
  23. package/src/components/ui/input-otp.tsx +84 -0
  24. package/src/components/ui/input.tsx +37 -0
  25. package/src/components/ui/item.tsx +196 -0
  26. package/src/components/ui/label.tsx +19 -0
  27. package/src/components/ui/popover.tsx +87 -0
  28. package/src/components/ui/radio-group.tsx +47 -0
  29. package/src/components/ui/select.tsx +205 -0
  30. package/src/components/ui/separator.tsx +26 -0
  31. package/src/components/ui/sheet.tsx +141 -0
  32. package/src/components/ui/sidebar.tsx +699 -0
  33. package/src/components/ui/skeleton.tsx +13 -0
  34. package/src/components/ui/sonner.tsx +74 -0
  35. package/src/components/ui/spinner.tsx +18 -0
  36. package/src/components/ui/table.tsx +114 -0
  37. package/src/components/ui/tabs.tsx +88 -0
  38. package/src/components/ui/textarea.tsx +35 -0
  39. package/src/components/ui/toggle-group.tsx +91 -0
  40. package/src/components/ui/toggle.tsx +44 -0
  41. package/src/components/ui/tooltip.tsx +59 -0
  42. package/src/constants/common.test.ts +1 -1
  43. package/src/constants/legal.test.ts +1 -1
  44. package/src/constants/payment.test.ts +9 -9
  45. package/src/constants/platforms.test.ts +1 -1
  46. package/src/constants/services.test.ts +1 -1
  47. package/src/hooks/use-mobile.ts +19 -0
  48. package/src/index.css +135 -0
  49. package/src/lib/utils.ts +6 -0
  50. package/src/main.tsx +16 -0
  51. package/src/moderation/datasets/bn.ts +708 -708
  52. package/src/moderation/normalizer.test.ts +1 -1
  53. package/src/moderation/normalizer.ts +16 -16
  54. package/src/moderation/profanity-service.test.ts +3 -3
  55. package/src/providers/theme-provider.tsx +73 -0
  56. package/src/types/supabase.ts +649 -647
  57. package/src/utils/check-moderation.test.ts +12 -12
  58. package/src/utils/format-number.test.ts +1 -1
  59. package/src/utils/format-plain-text.test.ts +1 -1
  60. package/src/utils/get-social-handle.test.ts +3 -3
  61. package/src/utils/get-social-link.test.ts +9 -9
  62. package/src/utils/get-social-link.ts +5 -3
  63. package/src/utils/get-user-name-initials.test.ts +1 -1
  64. package/src/utils/get-user-name-initials.ts +4 -4
  65. package/src/utils/get-user-page-link.ts +1 -1
  66. package/src/utils/index.ts +5 -5
  67. package/src/utils/open-to-new-window.ts +3 -1
  68. package/src/utils/post-to-facebook.test.ts +1 -1
  69. package/src/utils/post-to-facebook.ts +9 -3
  70. package/src/utils/post-to-instagram.test.ts +1 -1
  71. package/src/utils/post-to-linkedin.test.ts +1 -1
  72. package/src/utils/post-to-linkedin.ts +9 -3
  73. package/src/utils/post-to-x.test.ts +1 -1
  74. package/src/utils/post-to-x.ts +12 -4
  75. package/src/utils/to-human-readable.ts +6 -2
  76. package/src/utils/validate-phone-number.test.ts +1 -1
@@ -4,731 +4,731 @@ export type Json =
4
4
  | boolean
5
5
  | null
6
6
  | { [key: string]: Json | undefined }
7
- | Json[]
7
+ | Json[];
8
8
 
9
9
  export type Database = {
10
10
  public: {
11
11
  Tables: {
12
12
  activities: {
13
13
  Row: {
14
- counterparty_profile_id: string | null
15
- created_at: string
16
- id: string
17
- metadata: Json
18
- reference_id: string
19
- role: string
20
- service_type: string
21
- transaction_id: string | null
22
- updated_at: string
23
- user_profile_id: string
24
- visibility: Database["public"]["Enums"]["visibility_enum"]
25
- }
14
+ counterparty_profile_id: string | null;
15
+ created_at: string;
16
+ id: string;
17
+ metadata: Json;
18
+ reference_id: string;
19
+ role: string;
20
+ service_type: string;
21
+ transaction_id: string | null;
22
+ updated_at: string;
23
+ user_profile_id: string;
24
+ visibility: Database["public"]["Enums"]["visibility_enum"];
25
+ };
26
26
  Insert: {
27
- counterparty_profile_id?: string | null
28
- created_at?: string
29
- id?: string
30
- metadata?: Json
31
- reference_id: string
32
- role: string
33
- service_type?: string
34
- transaction_id?: string | null
35
- updated_at?: string
36
- user_profile_id: string
37
- visibility?: Database["public"]["Enums"]["visibility_enum"]
38
- }
27
+ counterparty_profile_id?: string | null;
28
+ created_at?: string;
29
+ id?: string;
30
+ metadata?: Json;
31
+ reference_id: string;
32
+ role: string;
33
+ service_type?: string;
34
+ transaction_id?: string | null;
35
+ updated_at?: string;
36
+ user_profile_id: string;
37
+ visibility?: Database["public"]["Enums"]["visibility_enum"];
38
+ };
39
39
  Update: {
40
- counterparty_profile_id?: string | null
41
- created_at?: string
42
- id?: string
43
- metadata?: Json
44
- reference_id?: string
45
- role?: string
46
- service_type?: string
47
- transaction_id?: string | null
48
- updated_at?: string
49
- user_profile_id?: string
50
- visibility?: Database["public"]["Enums"]["visibility_enum"]
51
- }
40
+ counterparty_profile_id?: string | null;
41
+ created_at?: string;
42
+ id?: string;
43
+ metadata?: Json;
44
+ reference_id?: string;
45
+ role?: string;
46
+ service_type?: string;
47
+ transaction_id?: string | null;
48
+ updated_at?: string;
49
+ user_profile_id?: string;
50
+ visibility?: Database["public"]["Enums"]["visibility_enum"];
51
+ };
52
52
  Relationships: [
53
53
  {
54
- foreignKeyName: "activities_counterparty_profile_id_fkey"
55
- columns: ["counterparty_profile_id"]
56
- isOneToOne: false
57
- referencedRelation: "profiles"
58
- referencedColumns: ["id"]
54
+ foreignKeyName: "activities_counterparty_profile_id_fkey";
55
+ columns: ["counterparty_profile_id"];
56
+ isOneToOne: false;
57
+ referencedRelation: "profiles";
58
+ referencedColumns: ["id"];
59
59
  },
60
60
  {
61
- foreignKeyName: "activities_transaction_id_fkey"
62
- columns: ["transaction_id"]
63
- isOneToOne: false
64
- referencedRelation: "transactions"
65
- referencedColumns: ["id"]
61
+ foreignKeyName: "activities_transaction_id_fkey";
62
+ columns: ["transaction_id"];
63
+ isOneToOne: false;
64
+ referencedRelation: "transactions";
65
+ referencedColumns: ["id"];
66
66
  },
67
67
  {
68
- foreignKeyName: "activities_user_profile_id_fkey"
69
- columns: ["user_profile_id"]
70
- isOneToOne: false
71
- referencedRelation: "profiles"
72
- referencedColumns: ["id"]
68
+ foreignKeyName: "activities_user_profile_id_fkey";
69
+ columns: ["user_profile_id"];
70
+ isOneToOne: false;
71
+ referencedRelation: "profiles";
72
+ referencedColumns: ["id"];
73
73
  },
74
- ]
75
- }
74
+ ];
75
+ };
76
76
  coffee_gifts: {
77
77
  Row: {
78
- coffee_count: number
79
- created_at: string
80
- creator_profile_id: string
81
- id: string
82
- is_monthly: boolean
83
- message: string | null
84
- supporter_name: string | null
85
- supporter_platform: string | null
86
- supporter_profile_id: string | null
87
- transaction_reference_id: string
88
- updated_at: string
89
- }
78
+ coffee_count: number;
79
+ created_at: string;
80
+ creator_profile_id: string;
81
+ id: string;
82
+ is_monthly: boolean;
83
+ message: string | null;
84
+ supporter_name: string | null;
85
+ supporter_platform: string | null;
86
+ supporter_profile_id: string | null;
87
+ transaction_reference_id: string;
88
+ updated_at: string;
89
+ };
90
90
  Insert: {
91
- coffee_count: number
92
- created_at?: string
93
- creator_profile_id: string
94
- id?: string
95
- is_monthly?: boolean
96
- message?: string | null
97
- supporter_name?: string | null
98
- supporter_platform?: string | null
99
- supporter_profile_id?: string | null
100
- transaction_reference_id: string
101
- updated_at?: string
102
- }
91
+ coffee_count: number;
92
+ created_at?: string;
93
+ creator_profile_id: string;
94
+ id?: string;
95
+ is_monthly?: boolean;
96
+ message?: string | null;
97
+ supporter_name?: string | null;
98
+ supporter_platform?: string | null;
99
+ supporter_profile_id?: string | null;
100
+ transaction_reference_id: string;
101
+ updated_at?: string;
102
+ };
103
103
  Update: {
104
- coffee_count?: number
105
- created_at?: string
106
- creator_profile_id?: string
107
- id?: string
108
- is_monthly?: boolean
109
- message?: string | null
110
- supporter_name?: string | null
111
- supporter_platform?: string | null
112
- supporter_profile_id?: string | null
113
- transaction_reference_id?: string
114
- updated_at?: string
115
- }
104
+ coffee_count?: number;
105
+ created_at?: string;
106
+ creator_profile_id?: string;
107
+ id?: string;
108
+ is_monthly?: boolean;
109
+ message?: string | null;
110
+ supporter_name?: string | null;
111
+ supporter_platform?: string | null;
112
+ supporter_profile_id?: string | null;
113
+ transaction_reference_id?: string;
114
+ updated_at?: string;
115
+ };
116
116
  Relationships: [
117
117
  {
118
- foreignKeyName: "coffee_gifts_creator_profile_id_fkey"
119
- columns: ["creator_profile_id"]
120
- isOneToOne: false
121
- referencedRelation: "profiles"
122
- referencedColumns: ["id"]
118
+ foreignKeyName: "coffee_gifts_creator_profile_id_fkey";
119
+ columns: ["creator_profile_id"];
120
+ isOneToOne: false;
121
+ referencedRelation: "profiles";
122
+ referencedColumns: ["id"];
123
123
  },
124
124
  {
125
- foreignKeyName: "coffee_gifts_supporter_profile_id_fkey"
126
- columns: ["supporter_profile_id"]
127
- isOneToOne: false
128
- referencedRelation: "profiles"
129
- referencedColumns: ["id"]
125
+ foreignKeyName: "coffee_gifts_supporter_profile_id_fkey";
126
+ columns: ["supporter_profile_id"];
127
+ isOneToOne: false;
128
+ referencedRelation: "profiles";
129
+ referencedColumns: ["id"];
130
130
  },
131
131
  {
132
- foreignKeyName: "coffee_gifts_transaction_reference_id_fkey"
133
- columns: ["transaction_reference_id"]
134
- isOneToOne: false
135
- referencedRelation: "transactions"
136
- referencedColumns: ["reference_id"]
132
+ foreignKeyName: "coffee_gifts_transaction_reference_id_fkey";
133
+ columns: ["transaction_reference_id"];
134
+ isOneToOne: false;
135
+ referencedRelation: "transactions";
136
+ referencedColumns: ["reference_id"];
137
137
  },
138
- ]
139
- }
138
+ ];
139
+ };
140
140
  follows: {
141
141
  Row: {
142
- created_at: string | null
143
- follower_id: string
144
- following_id: string
145
- id: number
146
- }
142
+ created_at: string | null;
143
+ follower_id: string;
144
+ following_id: string;
145
+ id: number;
146
+ };
147
147
  Insert: {
148
- created_at?: string | null
149
- follower_id: string
150
- following_id: string
151
- id?: never
152
- }
148
+ created_at?: string | null;
149
+ follower_id: string;
150
+ following_id: string;
151
+ id?: never;
152
+ };
153
153
  Update: {
154
- created_at?: string | null
155
- follower_id?: string
156
- following_id?: string
157
- id?: never
158
- }
154
+ created_at?: string | null;
155
+ follower_id?: string;
156
+ following_id?: string;
157
+ id?: never;
158
+ };
159
159
  Relationships: [
160
160
  {
161
- foreignKeyName: "follows_follower_id_fkey"
162
- columns: ["follower_id"]
163
- isOneToOne: false
164
- referencedRelation: "profiles"
165
- referencedColumns: ["id"]
161
+ foreignKeyName: "follows_follower_id_fkey";
162
+ columns: ["follower_id"];
163
+ isOneToOne: false;
164
+ referencedRelation: "profiles";
165
+ referencedColumns: ["id"];
166
166
  },
167
167
  {
168
- foreignKeyName: "follows_following_id_fkey"
169
- columns: ["following_id"]
170
- isOneToOne: false
171
- referencedRelation: "profiles"
172
- referencedColumns: ["id"]
168
+ foreignKeyName: "follows_following_id_fkey";
169
+ columns: ["following_id"];
170
+ isOneToOne: false;
171
+ referencedRelation: "profiles";
172
+ referencedColumns: ["id"];
173
173
  },
174
- ]
175
- }
174
+ ];
175
+ };
176
176
  manager_role_permissions: {
177
177
  Row: {
178
- id: number
179
- permission: Database["public"]["Enums"]["manager_permission"]
180
- role: Database["public"]["Enums"]["manager_role"]
181
- }
178
+ id: number;
179
+ permission: Database["public"]["Enums"]["manager_permission"];
180
+ role: Database["public"]["Enums"]["manager_role"];
181
+ };
182
182
  Insert: {
183
- id?: number
184
- permission: Database["public"]["Enums"]["manager_permission"]
185
- role: Database["public"]["Enums"]["manager_role"]
186
- }
183
+ id?: number;
184
+ permission: Database["public"]["Enums"]["manager_permission"];
185
+ role: Database["public"]["Enums"]["manager_role"];
186
+ };
187
187
  Update: {
188
- id?: number
189
- permission?: Database["public"]["Enums"]["manager_permission"]
190
- role?: Database["public"]["Enums"]["manager_role"]
191
- }
192
- Relationships: []
193
- }
188
+ id?: number;
189
+ permission?: Database["public"]["Enums"]["manager_permission"];
190
+ role?: Database["public"]["Enums"]["manager_role"];
191
+ };
192
+ Relationships: [];
193
+ };
194
194
  manager_user_roles: {
195
195
  Row: {
196
- assigned_at: string
197
- assigned_by: string | null
198
- id: number
199
- role: Database["public"]["Enums"]["manager_role"]
200
- user_id: string
201
- }
196
+ assigned_at: string;
197
+ assigned_by: string | null;
198
+ id: number;
199
+ role: Database["public"]["Enums"]["manager_role"];
200
+ user_id: string;
201
+ };
202
202
  Insert: {
203
- assigned_at?: string
204
- assigned_by?: string | null
205
- id?: number
206
- role: Database["public"]["Enums"]["manager_role"]
207
- user_id: string
208
- }
203
+ assigned_at?: string;
204
+ assigned_by?: string | null;
205
+ id?: number;
206
+ role: Database["public"]["Enums"]["manager_role"];
207
+ user_id: string;
208
+ };
209
209
  Update: {
210
- assigned_at?: string
211
- assigned_by?: string | null
212
- id?: number
213
- role?: Database["public"]["Enums"]["manager_role"]
214
- user_id?: string
215
- }
210
+ assigned_at?: string;
211
+ assigned_by?: string | null;
212
+ id?: number;
213
+ role?: Database["public"]["Enums"]["manager_role"];
214
+ user_id?: string;
215
+ };
216
216
  Relationships: [
217
217
  {
218
- foreignKeyName: "manager_user_roles_user_id_fkey"
219
- columns: ["user_id"]
220
- isOneToOne: false
221
- referencedRelation: "managers"
222
- referencedColumns: ["id"]
218
+ foreignKeyName: "manager_user_roles_user_id_fkey";
219
+ columns: ["user_id"];
220
+ isOneToOne: false;
221
+ referencedRelation: "managers";
222
+ referencedColumns: ["id"];
223
223
  },
224
- ]
225
- }
224
+ ];
225
+ };
226
226
  managers: {
227
227
  Row: {
228
- avatar_url: string | null
229
- bio: string | null
230
- created_at: string
231
- created_by: string | null
232
- department: string | null
233
- email: string
234
- full_name: string | null
235
- id: string
236
- last_login_at: string | null
237
- phone: string | null
238
- status: Database["public"]["Enums"]["manager_status"] | null
239
- updated_at: string
240
- }
228
+ avatar_url: string | null;
229
+ bio: string | null;
230
+ created_at: string;
231
+ created_by: string | null;
232
+ department: string | null;
233
+ email: string;
234
+ full_name: string | null;
235
+ id: string;
236
+ last_login_at: string | null;
237
+ phone: string | null;
238
+ status: Database["public"]["Enums"]["manager_status"] | null;
239
+ updated_at: string;
240
+ };
241
241
  Insert: {
242
- avatar_url?: string | null
243
- bio?: string | null
244
- created_at?: string
245
- created_by?: string | null
246
- department?: string | null
247
- email: string
248
- full_name?: string | null
249
- id: string
250
- last_login_at?: string | null
251
- phone?: string | null
252
- status?: Database["public"]["Enums"]["manager_status"] | null
253
- updated_at?: string
254
- }
242
+ avatar_url?: string | null;
243
+ bio?: string | null;
244
+ created_at?: string;
245
+ created_by?: string | null;
246
+ department?: string | null;
247
+ email: string;
248
+ full_name?: string | null;
249
+ id: string;
250
+ last_login_at?: string | null;
251
+ phone?: string | null;
252
+ status?: Database["public"]["Enums"]["manager_status"] | null;
253
+ updated_at?: string;
254
+ };
255
255
  Update: {
256
- avatar_url?: string | null
257
- bio?: string | null
258
- created_at?: string
259
- created_by?: string | null
260
- department?: string | null
261
- email?: string
262
- full_name?: string | null
263
- id?: string
264
- last_login_at?: string | null
265
- phone?: string | null
266
- status?: Database["public"]["Enums"]["manager_status"] | null
267
- updated_at?: string
268
- }
269
- Relationships: []
270
- }
256
+ avatar_url?: string | null;
257
+ bio?: string | null;
258
+ created_at?: string;
259
+ created_by?: string | null;
260
+ department?: string | null;
261
+ email?: string;
262
+ full_name?: string | null;
263
+ id?: string;
264
+ last_login_at?: string | null;
265
+ phone?: string | null;
266
+ status?: Database["public"]["Enums"]["manager_status"] | null;
267
+ updated_at?: string;
268
+ };
269
+ Relationships: [];
270
+ };
271
271
  payout_methods: {
272
272
  Row: {
273
- created_at: string
274
- details: Json
275
- id: string
276
- is_active: boolean
277
- is_default: boolean
278
- profile_id: string
279
- provider: Database["public"]["Enums"]["payout_provider"]
280
- updated_at: string
281
- }
273
+ created_at: string;
274
+ details: Json;
275
+ id: string;
276
+ is_active: boolean;
277
+ is_default: boolean;
278
+ profile_id: string;
279
+ provider: Database["public"]["Enums"]["payout_provider"];
280
+ updated_at: string;
281
+ };
282
282
  Insert: {
283
- created_at?: string
284
- details?: Json
285
- id?: string
286
- is_active?: boolean
287
- is_default?: boolean
288
- profile_id: string
289
- provider: Database["public"]["Enums"]["payout_provider"]
290
- updated_at?: string
291
- }
283
+ created_at?: string;
284
+ details?: Json;
285
+ id?: string;
286
+ is_active?: boolean;
287
+ is_default?: boolean;
288
+ profile_id: string;
289
+ provider: Database["public"]["Enums"]["payout_provider"];
290
+ updated_at?: string;
291
+ };
292
292
  Update: {
293
- created_at?: string
294
- details?: Json
295
- id?: string
296
- is_active?: boolean
297
- is_default?: boolean
298
- profile_id?: string
299
- provider?: Database["public"]["Enums"]["payout_provider"]
300
- updated_at?: string
301
- }
293
+ created_at?: string;
294
+ details?: Json;
295
+ id?: string;
296
+ is_active?: boolean;
297
+ is_default?: boolean;
298
+ profile_id?: string;
299
+ provider?: Database["public"]["Enums"]["payout_provider"];
300
+ updated_at?: string;
301
+ };
302
302
  Relationships: [
303
303
  {
304
- foreignKeyName: "payout_methods_profile_id_fkey"
305
- columns: ["profile_id"]
306
- isOneToOne: false
307
- referencedRelation: "profiles"
308
- referencedColumns: ["id"]
304
+ foreignKeyName: "payout_methods_profile_id_fkey";
305
+ columns: ["profile_id"];
306
+ isOneToOne: false;
307
+ referencedRelation: "profiles";
308
+ referencedColumns: ["id"];
309
309
  },
310
- ]
311
- }
310
+ ];
311
+ };
312
312
  profiles: {
313
313
  Row: {
314
- allow_gifting: boolean | null
315
- allow_subscriptions: boolean | null
316
- avatar_url: string | null
317
- banner_url: string | null
318
- bio: string | null
319
- created_at: string | null
320
- display_name: string | null
321
- follower_count: number | null
322
- following_count: number | null
323
- full_name: string | null
324
- has_wallet_balance: boolean | null
325
- id: string
326
- is_page_active: boolean | null
327
- layout: Json | null
328
- page_slug: string
329
- role: Database["public"]["Enums"]["user_role"]
330
- social_links: Json | null
331
- thank_you_items: Json | null
332
- theme: Json | null
333
- updated_at: string | null
334
- username: string
335
- }
314
+ allow_gifting: boolean | null;
315
+ allow_subscriptions: boolean | null;
316
+ avatar_url: string | null;
317
+ banner_url: string | null;
318
+ bio: string | null;
319
+ created_at: string | null;
320
+ display_name: string | null;
321
+ follower_count: number | null;
322
+ following_count: number | null;
323
+ full_name: string | null;
324
+ has_wallet_balance: boolean | null;
325
+ id: string;
326
+ is_page_active: boolean | null;
327
+ layout: Json | null;
328
+ page_slug: string;
329
+ role: Database["public"]["Enums"]["user_role"];
330
+ social_links: Json | null;
331
+ thank_you_items: Json | null;
332
+ theme: Json | null;
333
+ updated_at: string | null;
334
+ username: string;
335
+ };
336
336
  Insert: {
337
- allow_gifting?: boolean | null
338
- allow_subscriptions?: boolean | null
339
- avatar_url?: string | null
340
- banner_url?: string | null
341
- bio?: string | null
342
- created_at?: string | null
343
- display_name?: string | null
344
- follower_count?: number | null
345
- following_count?: number | null
346
- full_name?: string | null
347
- has_wallet_balance?: boolean | null
348
- id: string
349
- is_page_active?: boolean | null
350
- layout?: Json | null
351
- page_slug: string
352
- role?: Database["public"]["Enums"]["user_role"]
353
- social_links?: Json | null
354
- thank_you_items?: Json | null
355
- theme?: Json | null
356
- updated_at?: string | null
357
- username: string
358
- }
337
+ allow_gifting?: boolean | null;
338
+ allow_subscriptions?: boolean | null;
339
+ avatar_url?: string | null;
340
+ banner_url?: string | null;
341
+ bio?: string | null;
342
+ created_at?: string | null;
343
+ display_name?: string | null;
344
+ follower_count?: number | null;
345
+ following_count?: number | null;
346
+ full_name?: string | null;
347
+ has_wallet_balance?: boolean | null;
348
+ id: string;
349
+ is_page_active?: boolean | null;
350
+ layout?: Json | null;
351
+ page_slug: string;
352
+ role?: Database["public"]["Enums"]["user_role"];
353
+ social_links?: Json | null;
354
+ thank_you_items?: Json | null;
355
+ theme?: Json | null;
356
+ updated_at?: string | null;
357
+ username: string;
358
+ };
359
359
  Update: {
360
- allow_gifting?: boolean | null
361
- allow_subscriptions?: boolean | null
362
- avatar_url?: string | null
363
- banner_url?: string | null
364
- bio?: string | null
365
- created_at?: string | null
366
- display_name?: string | null
367
- follower_count?: number | null
368
- following_count?: number | null
369
- full_name?: string | null
370
- has_wallet_balance?: boolean | null
371
- id?: string
372
- is_page_active?: boolean | null
373
- layout?: Json | null
374
- page_slug?: string
375
- role?: Database["public"]["Enums"]["user_role"]
376
- social_links?: Json | null
377
- thank_you_items?: Json | null
378
- theme?: Json | null
379
- updated_at?: string | null
380
- username?: string
381
- }
382
- Relationships: []
383
- }
360
+ allow_gifting?: boolean | null;
361
+ allow_subscriptions?: boolean | null;
362
+ avatar_url?: string | null;
363
+ banner_url?: string | null;
364
+ bio?: string | null;
365
+ created_at?: string | null;
366
+ display_name?: string | null;
367
+ follower_count?: number | null;
368
+ following_count?: number | null;
369
+ full_name?: string | null;
370
+ has_wallet_balance?: boolean | null;
371
+ id?: string;
372
+ is_page_active?: boolean | null;
373
+ layout?: Json | null;
374
+ page_slug?: string;
375
+ role?: Database["public"]["Enums"]["user_role"];
376
+ social_links?: Json | null;
377
+ thank_you_items?: Json | null;
378
+ theme?: Json | null;
379
+ updated_at?: string | null;
380
+ username?: string;
381
+ };
382
+ Relationships: [];
383
+ };
384
384
  supporters: {
385
385
  Row: {
386
- created_at: string
387
- creator_id: string
388
- first_supported_at: string | null
389
- id: string
390
- identity_hash: string
391
- last_supported_at: string | null
392
- last_supported_service: string | null
393
- name: string
386
+ created_at: string;
387
+ creator_id: string;
388
+ first_supported_at: string | null;
389
+ id: string;
390
+ identity_hash: string;
391
+ last_supported_at: string | null;
392
+ last_supported_service: string | null;
393
+ name: string;
394
394
  social_platform:
395
395
  | Database["public"]["Enums"]["supporter_platform_enum"]
396
- | null
397
- support_count: number
398
- total_amount: number
399
- updated_at: string
400
- user_profile_id: string | null
401
- }
396
+ | null;
397
+ support_count: number;
398
+ total_amount: number;
399
+ updated_at: string;
400
+ user_profile_id: string | null;
401
+ };
402
402
  Insert: {
403
- created_at?: string
404
- creator_id: string
405
- first_supported_at?: string | null
406
- id?: string
407
- identity_hash: string
408
- last_supported_at?: string | null
409
- last_supported_service?: string | null
410
- name: string
403
+ created_at?: string;
404
+ creator_id: string;
405
+ first_supported_at?: string | null;
406
+ id?: string;
407
+ identity_hash: string;
408
+ last_supported_at?: string | null;
409
+ last_supported_service?: string | null;
410
+ name: string;
411
411
  social_platform?:
412
412
  | Database["public"]["Enums"]["supporter_platform_enum"]
413
- | null
414
- support_count?: number
415
- total_amount?: number
416
- updated_at?: string
417
- user_profile_id?: string | null
418
- }
413
+ | null;
414
+ support_count?: number;
415
+ total_amount?: number;
416
+ updated_at?: string;
417
+ user_profile_id?: string | null;
418
+ };
419
419
  Update: {
420
- created_at?: string
421
- creator_id?: string
422
- first_supported_at?: string | null
423
- id?: string
424
- identity_hash?: string
425
- last_supported_at?: string | null
426
- last_supported_service?: string | null
427
- name?: string
420
+ created_at?: string;
421
+ creator_id?: string;
422
+ first_supported_at?: string | null;
423
+ id?: string;
424
+ identity_hash?: string;
425
+ last_supported_at?: string | null;
426
+ last_supported_service?: string | null;
427
+ name?: string;
428
428
  social_platform?:
429
429
  | Database["public"]["Enums"]["supporter_platform_enum"]
430
- | null
431
- support_count?: number
432
- total_amount?: number
433
- updated_at?: string
434
- user_profile_id?: string | null
435
- }
430
+ | null;
431
+ support_count?: number;
432
+ total_amount?: number;
433
+ updated_at?: string;
434
+ user_profile_id?: string | null;
435
+ };
436
436
  Relationships: [
437
437
  {
438
- foreignKeyName: "supporters_creator_id_fkey"
439
- columns: ["creator_id"]
440
- isOneToOne: false
441
- referencedRelation: "profiles"
442
- referencedColumns: ["id"]
438
+ foreignKeyName: "supporters_creator_id_fkey";
439
+ columns: ["creator_id"];
440
+ isOneToOne: false;
441
+ referencedRelation: "profiles";
442
+ referencedColumns: ["id"];
443
443
  },
444
444
  {
445
- foreignKeyName: "supporters_user_profile_id_fkey"
446
- columns: ["user_profile_id"]
447
- isOneToOne: false
448
- referencedRelation: "profiles"
449
- referencedColumns: ["id"]
445
+ foreignKeyName: "supporters_user_profile_id_fkey";
446
+ columns: ["user_profile_id"];
447
+ isOneToOne: false;
448
+ referencedRelation: "profiles";
449
+ referencedColumns: ["id"];
450
450
  },
451
- ]
452
- }
451
+ ];
452
+ };
453
453
  transactions: {
454
454
  Row: {
455
- amount: number
456
- balance_after: number
457
- counterparty_profile_id: string | null
458
- created_at: string
459
- creator_profile_id: string | null
460
- direction: Database["public"]["Enums"]["transaction_direction_enum"]
461
- id: string
462
- metadata: Json
463
- net_amount: number
464
- platform_fee: number
465
- provider: Database["public"]["Enums"]["provider_enum"] | null
466
- provider_transaction_id: string | null
467
- reference_id: string | null
468
- reference_type: Database["public"]["Enums"]["reference_type_enum"]
469
- service_type: string
470
- status: Database["public"]["Enums"]["payment_status_enum"]
471
- supporter_id: string | null
472
- updated_at: string
473
- user_profile_id: string
474
- wallet_id: string | null
475
- }
455
+ amount: number;
456
+ balance_after: number;
457
+ counterparty_profile_id: string | null;
458
+ created_at: string;
459
+ creator_profile_id: string | null;
460
+ direction: Database["public"]["Enums"]["transaction_direction_enum"];
461
+ id: string;
462
+ metadata: Json;
463
+ net_amount: number;
464
+ platform_fee: number;
465
+ provider: Database["public"]["Enums"]["provider_enum"] | null;
466
+ provider_transaction_id: string | null;
467
+ reference_id: string | null;
468
+ reference_type: Database["public"]["Enums"]["reference_type_enum"];
469
+ service_type: string;
470
+ status: Database["public"]["Enums"]["payment_status_enum"];
471
+ supporter_id: string | null;
472
+ updated_at: string;
473
+ user_profile_id: string;
474
+ wallet_id: string | null;
475
+ };
476
476
  Insert: {
477
- amount: number
478
- balance_after: number
479
- counterparty_profile_id?: string | null
480
- created_at?: string
481
- creator_profile_id?: string | null
482
- direction: Database["public"]["Enums"]["transaction_direction_enum"]
483
- id?: string
484
- metadata?: Json
485
- net_amount: number
486
- platform_fee?: number
487
- provider?: Database["public"]["Enums"]["provider_enum"] | null
488
- provider_transaction_id?: string | null
489
- reference_id?: string | null
490
- reference_type: Database["public"]["Enums"]["reference_type_enum"]
491
- service_type?: string
492
- status: Database["public"]["Enums"]["payment_status_enum"]
493
- supporter_id?: string | null
494
- updated_at?: string
495
- user_profile_id: string
496
- wallet_id?: string | null
497
- }
477
+ amount: number;
478
+ balance_after: number;
479
+ counterparty_profile_id?: string | null;
480
+ created_at?: string;
481
+ creator_profile_id?: string | null;
482
+ direction: Database["public"]["Enums"]["transaction_direction_enum"];
483
+ id?: string;
484
+ metadata?: Json;
485
+ net_amount: number;
486
+ platform_fee?: number;
487
+ provider?: Database["public"]["Enums"]["provider_enum"] | null;
488
+ provider_transaction_id?: string | null;
489
+ reference_id?: string | null;
490
+ reference_type: Database["public"]["Enums"]["reference_type_enum"];
491
+ service_type?: string;
492
+ status: Database["public"]["Enums"]["payment_status_enum"];
493
+ supporter_id?: string | null;
494
+ updated_at?: string;
495
+ user_profile_id: string;
496
+ wallet_id?: string | null;
497
+ };
498
498
  Update: {
499
- amount?: number
500
- balance_after?: number
501
- counterparty_profile_id?: string | null
502
- created_at?: string
503
- creator_profile_id?: string | null
504
- direction?: Database["public"]["Enums"]["transaction_direction_enum"]
505
- id?: string
506
- metadata?: Json
507
- net_amount?: number
508
- platform_fee?: number
509
- provider?: Database["public"]["Enums"]["provider_enum"] | null
510
- provider_transaction_id?: string | null
511
- reference_id?: string | null
512
- reference_type?: Database["public"]["Enums"]["reference_type_enum"]
513
- service_type?: string
514
- status?: Database["public"]["Enums"]["payment_status_enum"]
515
- supporter_id?: string | null
516
- updated_at?: string
517
- user_profile_id?: string
518
- wallet_id?: string | null
519
- }
499
+ amount?: number;
500
+ balance_after?: number;
501
+ counterparty_profile_id?: string | null;
502
+ created_at?: string;
503
+ creator_profile_id?: string | null;
504
+ direction?: Database["public"]["Enums"]["transaction_direction_enum"];
505
+ id?: string;
506
+ metadata?: Json;
507
+ net_amount?: number;
508
+ platform_fee?: number;
509
+ provider?: Database["public"]["Enums"]["provider_enum"] | null;
510
+ provider_transaction_id?: string | null;
511
+ reference_id?: string | null;
512
+ reference_type?: Database["public"]["Enums"]["reference_type_enum"];
513
+ service_type?: string;
514
+ status?: Database["public"]["Enums"]["payment_status_enum"];
515
+ supporter_id?: string | null;
516
+ updated_at?: string;
517
+ user_profile_id?: string;
518
+ wallet_id?: string | null;
519
+ };
520
520
  Relationships: [
521
521
  {
522
- foreignKeyName: "transactions_counterparty_profile_id_fkey"
523
- columns: ["counterparty_profile_id"]
524
- isOneToOne: false
525
- referencedRelation: "profiles"
526
- referencedColumns: ["id"]
522
+ foreignKeyName: "transactions_counterparty_profile_id_fkey";
523
+ columns: ["counterparty_profile_id"];
524
+ isOneToOne: false;
525
+ referencedRelation: "profiles";
526
+ referencedColumns: ["id"];
527
527
  },
528
528
  {
529
- foreignKeyName: "transactions_creator_profile_id_fkey"
530
- columns: ["creator_profile_id"]
531
- isOneToOne: false
532
- referencedRelation: "profiles"
533
- referencedColumns: ["id"]
529
+ foreignKeyName: "transactions_creator_profile_id_fkey";
530
+ columns: ["creator_profile_id"];
531
+ isOneToOne: false;
532
+ referencedRelation: "profiles";
533
+ referencedColumns: ["id"];
534
534
  },
535
535
  {
536
- foreignKeyName: "transactions_supporter_id_fkey"
537
- columns: ["supporter_id"]
538
- isOneToOne: false
539
- referencedRelation: "supporters"
540
- referencedColumns: ["id"]
536
+ foreignKeyName: "transactions_supporter_id_fkey";
537
+ columns: ["supporter_id"];
538
+ isOneToOne: false;
539
+ referencedRelation: "supporters";
540
+ referencedColumns: ["id"];
541
541
  },
542
542
  {
543
- foreignKeyName: "transactions_user_profile_id_fkey"
544
- columns: ["user_profile_id"]
545
- isOneToOne: false
546
- referencedRelation: "profiles"
547
- referencedColumns: ["id"]
543
+ foreignKeyName: "transactions_user_profile_id_fkey";
544
+ columns: ["user_profile_id"];
545
+ isOneToOne: false;
546
+ referencedRelation: "profiles";
547
+ referencedColumns: ["id"];
548
548
  },
549
549
  {
550
- foreignKeyName: "transactions_wallet_id_fkey"
551
- columns: ["wallet_id"]
552
- isOneToOne: false
553
- referencedRelation: "wallets"
554
- referencedColumns: ["id"]
550
+ foreignKeyName: "transactions_wallet_id_fkey";
551
+ columns: ["wallet_id"];
552
+ isOneToOne: false;
553
+ referencedRelation: "wallets";
554
+ referencedColumns: ["id"];
555
555
  },
556
- ]
557
- }
556
+ ];
557
+ };
558
558
  wallets: {
559
559
  Row: {
560
- balance: number
561
- created_at: string
562
- currency: string
563
- id: string
564
- locked_balance: number
565
- profile_id: string
566
- updated_at: string
567
- }
560
+ balance: number;
561
+ created_at: string;
562
+ currency: string;
563
+ id: string;
564
+ locked_balance: number;
565
+ profile_id: string;
566
+ updated_at: string;
567
+ };
568
568
  Insert: {
569
- balance?: number
570
- created_at?: string
571
- currency?: string
572
- id?: string
573
- locked_balance?: number
574
- profile_id: string
575
- updated_at?: string
576
- }
569
+ balance?: number;
570
+ created_at?: string;
571
+ currency?: string;
572
+ id?: string;
573
+ locked_balance?: number;
574
+ profile_id: string;
575
+ updated_at?: string;
576
+ };
577
577
  Update: {
578
- balance?: number
579
- created_at?: string
580
- currency?: string
581
- id?: string
582
- locked_balance?: number
583
- profile_id?: string
584
- updated_at?: string
585
- }
578
+ balance?: number;
579
+ created_at?: string;
580
+ currency?: string;
581
+ id?: string;
582
+ locked_balance?: number;
583
+ profile_id?: string;
584
+ updated_at?: string;
585
+ };
586
586
  Relationships: [
587
587
  {
588
- foreignKeyName: "wallets_profile_id_fkey"
589
- columns: ["profile_id"]
590
- isOneToOne: true
591
- referencedRelation: "profiles"
592
- referencedColumns: ["id"]
588
+ foreignKeyName: "wallets_profile_id_fkey";
589
+ columns: ["profile_id"];
590
+ isOneToOne: true;
591
+ referencedRelation: "profiles";
592
+ referencedColumns: ["id"];
593
593
  },
594
- ]
595
- }
594
+ ];
595
+ };
596
596
  withdrawal_requests: {
597
597
  Row: {
598
- admin_note: string | null
599
- amount: number
600
- completed_at: string | null
601
- failure_reason: string | null
602
- fee: number
603
- id: string
604
- net_amount: number
605
- payout_method_id: string
606
- payout_snapshot: Json | null
607
- processed_at: string | null
608
- profile_id: string
609
- requested_at: string
610
- status: Database["public"]["Enums"]["withdrawal_status"]
611
- wallet_id: string
612
- }
598
+ admin_note: string | null;
599
+ amount: number;
600
+ completed_at: string | null;
601
+ failure_reason: string | null;
602
+ fee: number;
603
+ id: string;
604
+ net_amount: number;
605
+ payout_method_id: string;
606
+ payout_snapshot: Json | null;
607
+ processed_at: string | null;
608
+ profile_id: string;
609
+ requested_at: string;
610
+ status: Database["public"]["Enums"]["withdrawal_status"];
611
+ wallet_id: string;
612
+ };
613
613
  Insert: {
614
- admin_note?: string | null
615
- amount: number
616
- completed_at?: string | null
617
- failure_reason?: string | null
618
- fee?: number
619
- id?: string
620
- net_amount: number
621
- payout_method_id: string
622
- payout_snapshot?: Json | null
623
- processed_at?: string | null
624
- profile_id: string
625
- requested_at?: string
626
- status?: Database["public"]["Enums"]["withdrawal_status"]
627
- wallet_id: string
628
- }
614
+ admin_note?: string | null;
615
+ amount: number;
616
+ completed_at?: string | null;
617
+ failure_reason?: string | null;
618
+ fee?: number;
619
+ id?: string;
620
+ net_amount: number;
621
+ payout_method_id: string;
622
+ payout_snapshot?: Json | null;
623
+ processed_at?: string | null;
624
+ profile_id: string;
625
+ requested_at?: string;
626
+ status?: Database["public"]["Enums"]["withdrawal_status"];
627
+ wallet_id: string;
628
+ };
629
629
  Update: {
630
- admin_note?: string | null
631
- amount?: number
632
- completed_at?: string | null
633
- failure_reason?: string | null
634
- fee?: number
635
- id?: string
636
- net_amount?: number
637
- payout_method_id?: string
638
- payout_snapshot?: Json | null
639
- processed_at?: string | null
640
- profile_id?: string
641
- requested_at?: string
642
- status?: Database["public"]["Enums"]["withdrawal_status"]
643
- wallet_id?: string
644
- }
630
+ admin_note?: string | null;
631
+ amount?: number;
632
+ completed_at?: string | null;
633
+ failure_reason?: string | null;
634
+ fee?: number;
635
+ id?: string;
636
+ net_amount?: number;
637
+ payout_method_id?: string;
638
+ payout_snapshot?: Json | null;
639
+ processed_at?: string | null;
640
+ profile_id?: string;
641
+ requested_at?: string;
642
+ status?: Database["public"]["Enums"]["withdrawal_status"];
643
+ wallet_id?: string;
644
+ };
645
645
  Relationships: [
646
646
  {
647
- foreignKeyName: "withdrawal_requests_payout_method_id_fkey"
648
- columns: ["payout_method_id"]
649
- isOneToOne: false
650
- referencedRelation: "payout_methods"
651
- referencedColumns: ["id"]
647
+ foreignKeyName: "withdrawal_requests_payout_method_id_fkey";
648
+ columns: ["payout_method_id"];
649
+ isOneToOne: false;
650
+ referencedRelation: "payout_methods";
651
+ referencedColumns: ["id"];
652
652
  },
653
653
  {
654
- foreignKeyName: "withdrawal_requests_profile_id_fkey"
655
- columns: ["profile_id"]
656
- isOneToOne: false
657
- referencedRelation: "profiles"
658
- referencedColumns: ["id"]
654
+ foreignKeyName: "withdrawal_requests_profile_id_fkey";
655
+ columns: ["profile_id"];
656
+ isOneToOne: false;
657
+ referencedRelation: "profiles";
658
+ referencedColumns: ["id"];
659
659
  },
660
660
  {
661
- foreignKeyName: "withdrawal_requests_wallet_id_fkey"
662
- columns: ["wallet_id"]
663
- isOneToOne: false
664
- referencedRelation: "wallets"
665
- referencedColumns: ["id"]
661
+ foreignKeyName: "withdrawal_requests_wallet_id_fkey";
662
+ columns: ["wallet_id"];
663
+ isOneToOne: false;
664
+ referencedRelation: "wallets";
665
+ referencedColumns: ["id"];
666
666
  },
667
- ]
668
- }
669
- }
667
+ ];
668
+ };
669
+ };
670
670
  Views: {
671
- [_ in never]: never
672
- }
671
+ [_ in never]: never;
672
+ };
673
673
  Functions: {
674
674
  authorize_manager: {
675
675
  Args: {
676
- requested_permission: Database["public"]["Enums"]["manager_permission"]
677
- }
678
- Returns: boolean
679
- }
676
+ requested_permission: Database["public"]["Enums"]["manager_permission"];
677
+ };
678
+ Returns: boolean;
679
+ };
680
680
  create_manager: {
681
681
  Args: {
682
- manager_department?: string
683
- manager_email: string
684
- manager_full_name: string
685
- manager_role: Database["public"]["Enums"]["manager_role"]
686
- }
687
- Returns: string
688
- }
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[] }
682
+ manager_department?: string;
683
+ manager_email: string;
684
+ manager_full_name: string;
685
+ manager_role: Database["public"]["Enums"]["manager_role"];
686
+ };
687
+ Returns: string;
688
+ };
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[] };
693
693
  handle_successful_payment: {
694
694
  Args: {
695
- p_amount: number
696
- p_creator_profile_id: string
697
- p_metadata?: Json
698
- p_platform_fee: number
699
- p_provider: Database["public"]["Enums"]["provider_enum"]
700
- p_provider_transaction_id: string
701
- p_reference_type: Database["public"]["Enums"]["reference_type_enum"]
702
- p_service_type?: string
703
- p_supporter_id: string
704
- p_supporter_profile_id?: string
705
- }
706
- Returns: Json
707
- }
708
- is_admin: { Args: never; Returns: boolean }
709
- is_following: { Args: { target_user_id: string }; Returns: boolean }
710
- is_manager: { Args: { user_email: string }; Returns: boolean }
695
+ p_amount: number;
696
+ p_creator_profile_id: string;
697
+ p_metadata?: Json;
698
+ p_platform_fee: number;
699
+ p_provider: Database["public"]["Enums"]["provider_enum"];
700
+ p_provider_transaction_id: string;
701
+ p_reference_type: Database["public"]["Enums"]["reference_type_enum"];
702
+ p_service_type?: string;
703
+ p_supporter_id: string;
704
+ p_supporter_profile_id?: string;
705
+ };
706
+ Returns: Json;
707
+ };
708
+ is_admin: { Args: never; Returns: boolean };
709
+ is_following: { Args: { target_user_id: string }; Returns: boolean };
710
+ is_manager: { Args: { user_email: string }; Returns: boolean };
711
711
  request_withdrawal: {
712
- Args: { p_amount: number; p_payout_method_id: string }
713
- Returns: string
714
- }
715
- show_limit: { Args: never; Returns: number }
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 }
712
+ Args: { p_amount: number; p_payout_method_id: string };
713
+ Returns: string;
714
+ };
715
+ show_limit: { Args: never; Returns: number };
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 };
719
719
  upsert_supporter: {
720
720
  Args: {
721
- p_amount?: number
722
- p_creator_id: string
723
- p_identity_hash: string
724
- p_name: string
725
- p_service_type?: string
726
- p_social_platform?: Database["public"]["Enums"]["supporter_platform_enum"]
727
- p_user_profile_id?: string
728
- }
729
- Returns: string
730
- }
731
- }
721
+ p_amount?: number;
722
+ p_creator_id: string;
723
+ p_identity_hash: string;
724
+ p_name: string;
725
+ p_service_type?: string;
726
+ p_social_platform?: Database["public"]["Enums"]["supporter_platform_enum"];
727
+ p_user_profile_id?: string;
728
+ };
729
+ Returns: string;
730
+ };
731
+ };
732
732
  Enums: {
733
733
  manager_permission:
734
734
  | "managers.create"
@@ -754,14 +754,14 @@ export type Database = {
754
754
  | "developers.create"
755
755
  | "developers.view"
756
756
  | "developers.update"
757
- | "developers.delete"
757
+ | "developers.delete";
758
758
  manager_role:
759
759
  | "super_admin"
760
760
  | "content_manager"
761
761
  | "support_manager"
762
762
  | "finance_manager"
763
- | "developer_manager"
764
- manager_status: "ACTIVE" | "INACTIVE" | "SUSPENDED"
763
+ | "developer_manager";
764
+ manager_status: "ACTIVE" | "INACTIVE" | "SUSPENDED";
765
765
  payment_status_enum:
766
766
  | "pending"
767
767
  | "processing"
@@ -770,8 +770,8 @@ export type Database = {
770
770
  | "reversed"
771
771
  | "cancelled"
772
772
  | "refunded"
773
- | "reviewing"
774
- payout_provider: "bkash" | "nagad" | "rocket" | "bank"
773
+ | "reviewing";
774
+ payout_provider: "bkash" | "nagad" | "rocket" | "bank";
775
775
  provider_enum:
776
776
  | "HobeNakiCoffee"
777
777
  | "Bkash"
@@ -782,7 +782,7 @@ export type Database = {
782
782
  | "Aamarpay"
783
783
  | "Portwallet"
784
784
  | "Tap"
785
- | "Other"
785
+ | "Other";
786
786
  reference_type_enum:
787
787
  | "subscription"
788
788
  | "one-time"
@@ -790,7 +790,7 @@ export type Database = {
790
790
  | "withdraw_lock"
791
791
  | "withdraw_release"
792
792
  | "withdraw_complete"
793
- | "manual_adjustment"
793
+ | "manual_adjustment";
794
794
  supporter_platform_enum:
795
795
  | "facebook"
796
796
  | "x"
@@ -809,44 +809,47 @@ export type Database = {
809
809
  | "medium"
810
810
  | "devto"
811
811
  | "behance"
812
- | "dribbble"
813
- transaction_direction_enum: "debit" | "credit"
814
- user_role: "user" | "admin"
815
- visibility_enum: "public" | "private"
812
+ | "dribbble";
813
+ transaction_direction_enum: "debit" | "credit";
814
+ user_role: "user" | "admin";
815
+ visibility_enum: "public" | "private";
816
816
  withdrawal_status:
817
817
  | "requested"
818
818
  | "approved"
819
819
  | "processing"
820
820
  | "paid"
821
821
  | "rejected"
822
- | "failed"
823
- }
822
+ | "failed";
823
+ };
824
824
  CompositeTypes: {
825
- [_ in never]: never
826
- }
827
- }
828
- }
825
+ [_ in never]: never;
826
+ };
827
+ };
828
+ };
829
829
 
830
- type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">
830
+ type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
831
831
 
832
- type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">]
832
+ type DefaultSchema = DatabaseWithoutInternals[Extract<
833
+ keyof Database,
834
+ "public"
835
+ >];
833
836
 
834
837
  export type Tables<
835
838
  DefaultSchemaTableNameOrOptions extends
836
839
  | keyof (DefaultSchema["Tables"] & DefaultSchema["Views"])
837
840
  | { schema: keyof DatabaseWithoutInternals },
838
841
  TableName extends DefaultSchemaTableNameOrOptions extends {
839
- schema: keyof DatabaseWithoutInternals
842
+ schema: keyof DatabaseWithoutInternals;
840
843
  }
841
844
  ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
842
845
  DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
843
846
  : never = never,
844
847
  > = DefaultSchemaTableNameOrOptions extends {
845
- schema: keyof DatabaseWithoutInternals
848
+ schema: keyof DatabaseWithoutInternals;
846
849
  }
847
850
  ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
848
851
  DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
849
- Row: infer R
852
+ Row: infer R;
850
853
  }
851
854
  ? R
852
855
  : never
@@ -854,95 +857,95 @@ export type Tables<
854
857
  DefaultSchema["Views"])
855
858
  ? (DefaultSchema["Tables"] &
856
859
  DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
857
- Row: infer R
860
+ Row: infer R;
858
861
  }
859
862
  ? R
860
863
  : never
861
- : never
864
+ : never;
862
865
 
863
866
  export type TablesInsert<
864
867
  DefaultSchemaTableNameOrOptions extends
865
868
  | keyof DefaultSchema["Tables"]
866
869
  | { schema: keyof DatabaseWithoutInternals },
867
870
  TableName extends DefaultSchemaTableNameOrOptions extends {
868
- schema: keyof DatabaseWithoutInternals
871
+ schema: keyof DatabaseWithoutInternals;
869
872
  }
870
873
  ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
871
874
  : never = never,
872
875
  > = DefaultSchemaTableNameOrOptions extends {
873
- schema: keyof DatabaseWithoutInternals
876
+ schema: keyof DatabaseWithoutInternals;
874
877
  }
875
878
  ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
876
- Insert: infer I
879
+ Insert: infer I;
877
880
  }
878
881
  ? I
879
882
  : never
880
883
  : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
881
884
  ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
882
- Insert: infer I
885
+ Insert: infer I;
883
886
  }
884
887
  ? I
885
888
  : never
886
- : never
889
+ : never;
887
890
 
888
891
  export type TablesUpdate<
889
892
  DefaultSchemaTableNameOrOptions extends
890
893
  | keyof DefaultSchema["Tables"]
891
894
  | { schema: keyof DatabaseWithoutInternals },
892
895
  TableName extends DefaultSchemaTableNameOrOptions extends {
893
- schema: keyof DatabaseWithoutInternals
896
+ schema: keyof DatabaseWithoutInternals;
894
897
  }
895
898
  ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
896
899
  : never = never,
897
900
  > = DefaultSchemaTableNameOrOptions extends {
898
- schema: keyof DatabaseWithoutInternals
901
+ schema: keyof DatabaseWithoutInternals;
899
902
  }
900
903
  ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
901
- Update: infer U
904
+ Update: infer U;
902
905
  }
903
906
  ? U
904
907
  : never
905
908
  : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
906
909
  ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
907
- Update: infer U
910
+ Update: infer U;
908
911
  }
909
912
  ? U
910
913
  : never
911
- : never
914
+ : never;
912
915
 
913
916
  export type Enums<
914
917
  DefaultSchemaEnumNameOrOptions extends
915
918
  | keyof DefaultSchema["Enums"]
916
919
  | { schema: keyof DatabaseWithoutInternals },
917
920
  EnumName extends DefaultSchemaEnumNameOrOptions extends {
918
- schema: keyof DatabaseWithoutInternals
921
+ schema: keyof DatabaseWithoutInternals;
919
922
  }
920
923
  ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
921
924
  : never = never,
922
925
  > = DefaultSchemaEnumNameOrOptions extends {
923
- schema: keyof DatabaseWithoutInternals
926
+ schema: keyof DatabaseWithoutInternals;
924
927
  }
925
928
  ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName]
926
929
  : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"]
927
930
  ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions]
928
- : never
931
+ : never;
929
932
 
930
933
  export type CompositeTypes<
931
934
  PublicCompositeTypeNameOrOptions extends
932
935
  | keyof DefaultSchema["CompositeTypes"]
933
936
  | { schema: keyof DatabaseWithoutInternals },
934
937
  CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
935
- schema: keyof DatabaseWithoutInternals
938
+ schema: keyof DatabaseWithoutInternals;
936
939
  }
937
940
  ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
938
941
  : never = never,
939
942
  > = PublicCompositeTypeNameOrOptions extends {
940
- schema: keyof DatabaseWithoutInternals
943
+ schema: keyof DatabaseWithoutInternals;
941
944
  }
942
945
  ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
943
946
  : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"]
944
947
  ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
945
- : never
948
+ : never;
946
949
 
947
950
  export const Constants = {
948
951
  public: {
@@ -1046,5 +1049,4 @@ export const Constants = {
1046
1049
  ],
1047
1050
  },
1048
1051
  },
1049
- } as const
1050
-
1052
+ } as const;