@hobenakicoffee/libraries 1.1.0 → 1.3.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,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hobenakicoffee/libraries",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "src/index.ts",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./src/index.ts",
|
|
8
8
|
"./constants": "./src/constants/index.ts",
|
|
9
|
-
"./utils": "./src/utils/index.ts"
|
|
9
|
+
"./utils": "./src/utils/index.ts",
|
|
10
|
+
"./types": "./src/types/index.ts"
|
|
10
11
|
},
|
|
11
12
|
"files": [
|
|
12
13
|
"src",
|
|
@@ -4,13 +4,14 @@ import type { ServiceType } from "./services";
|
|
|
4
4
|
|
|
5
5
|
describe("ServiceTypes", () => {
|
|
6
6
|
test("should contain all expected service type keys", () => {
|
|
7
|
-
const expectedKeys = ["GIFT", "EXCLUSIVE_CONTENT"];
|
|
7
|
+
const expectedKeys = ["GIFT", "EXCLUSIVE_CONTENT", "WITHDRAWAL"];
|
|
8
8
|
expect(Object.keys(ServiceTypes)).toEqual(expectedKeys);
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
test("should have correct values for each service type", () => {
|
|
12
12
|
expect(ServiceTypes.GIFT).toBe("gift");
|
|
13
13
|
expect(ServiceTypes.EXCLUSIVE_CONTENT).toBe("exclusive_content");
|
|
14
|
+
expect(ServiceTypes.WITHDRAWAL).toBe("withdrawal");
|
|
14
15
|
});
|
|
15
16
|
|
|
16
17
|
test("should be read-only at compile time", () => {
|
|
@@ -26,7 +27,7 @@ describe("ServiceTypes", () => {
|
|
|
26
27
|
});
|
|
27
28
|
|
|
28
29
|
test("should have 2 service types", () => {
|
|
29
|
-
expect(Object.keys(ServiceTypes).length).toBe(
|
|
30
|
+
expect(Object.keys(ServiceTypes).length).toBe(3);
|
|
30
31
|
});
|
|
31
32
|
|
|
32
33
|
test("all values should be lowercase or snake_case strings", () => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./supabase";
|
|
@@ -0,0 +1,990 @@
|
|
|
1
|
+
export type Json =
|
|
2
|
+
| string
|
|
3
|
+
| number
|
|
4
|
+
| boolean
|
|
5
|
+
| null
|
|
6
|
+
| { [key: string]: Json | undefined }
|
|
7
|
+
| Json[]
|
|
8
|
+
|
|
9
|
+
export type Database = {
|
|
10
|
+
public: {
|
|
11
|
+
Tables: {
|
|
12
|
+
activities: {
|
|
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
|
|
22
|
+
updated_at: string
|
|
23
|
+
user_profile_id: string
|
|
24
|
+
visibility: Database["public"]["Enums"]["visibility_enum"]
|
|
25
|
+
}
|
|
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
|
|
35
|
+
updated_at?: string
|
|
36
|
+
user_profile_id: string
|
|
37
|
+
visibility?: Database["public"]["Enums"]["visibility_enum"]
|
|
38
|
+
}
|
|
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
|
|
48
|
+
updated_at?: string
|
|
49
|
+
user_profile_id?: string
|
|
50
|
+
visibility?: Database["public"]["Enums"]["visibility_enum"]
|
|
51
|
+
}
|
|
52
|
+
Relationships: [
|
|
53
|
+
{
|
|
54
|
+
foreignKeyName: "activities_counterparty_profile_id_fkey"
|
|
55
|
+
columns: ["counterparty_profile_id"]
|
|
56
|
+
isOneToOne: false
|
|
57
|
+
referencedRelation: "profiles"
|
|
58
|
+
referencedColumns: ["id"]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
foreignKeyName: "activities_transaction_id_fkey"
|
|
62
|
+
columns: ["transaction_id"]
|
|
63
|
+
isOneToOne: false
|
|
64
|
+
referencedRelation: "transactions"
|
|
65
|
+
referencedColumns: ["id"]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
foreignKeyName: "activities_user_profile_id_fkey"
|
|
69
|
+
columns: ["user_profile_id"]
|
|
70
|
+
isOneToOne: false
|
|
71
|
+
referencedRelation: "profiles"
|
|
72
|
+
referencedColumns: ["id"]
|
|
73
|
+
},
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
coffee_gifts: {
|
|
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
|
+
}
|
|
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
|
+
}
|
|
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
|
+
}
|
|
116
|
+
Relationships: [
|
|
117
|
+
{
|
|
118
|
+
foreignKeyName: "coffee_gifts_creator_profile_id_fkey"
|
|
119
|
+
columns: ["creator_profile_id"]
|
|
120
|
+
isOneToOne: false
|
|
121
|
+
referencedRelation: "profiles"
|
|
122
|
+
referencedColumns: ["id"]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
foreignKeyName: "coffee_gifts_supporter_profile_id_fkey"
|
|
126
|
+
columns: ["supporter_profile_id"]
|
|
127
|
+
isOneToOne: false
|
|
128
|
+
referencedRelation: "profiles"
|
|
129
|
+
referencedColumns: ["id"]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
foreignKeyName: "coffee_gifts_transaction_reference_id_fkey"
|
|
133
|
+
columns: ["transaction_reference_id"]
|
|
134
|
+
isOneToOne: false
|
|
135
|
+
referencedRelation: "transactions"
|
|
136
|
+
referencedColumns: ["reference_id"]
|
|
137
|
+
},
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
manager_role_permissions: {
|
|
141
|
+
Row: {
|
|
142
|
+
id: number
|
|
143
|
+
permission: Database["public"]["Enums"]["manager_permission"]
|
|
144
|
+
role: Database["public"]["Enums"]["manager_role"]
|
|
145
|
+
}
|
|
146
|
+
Insert: {
|
|
147
|
+
id?: number
|
|
148
|
+
permission: Database["public"]["Enums"]["manager_permission"]
|
|
149
|
+
role: Database["public"]["Enums"]["manager_role"]
|
|
150
|
+
}
|
|
151
|
+
Update: {
|
|
152
|
+
id?: number
|
|
153
|
+
permission?: Database["public"]["Enums"]["manager_permission"]
|
|
154
|
+
role?: Database["public"]["Enums"]["manager_role"]
|
|
155
|
+
}
|
|
156
|
+
Relationships: []
|
|
157
|
+
}
|
|
158
|
+
manager_user_roles: {
|
|
159
|
+
Row: {
|
|
160
|
+
assigned_at: string
|
|
161
|
+
assigned_by: string | null
|
|
162
|
+
id: number
|
|
163
|
+
role: Database["public"]["Enums"]["manager_role"]
|
|
164
|
+
user_id: string
|
|
165
|
+
}
|
|
166
|
+
Insert: {
|
|
167
|
+
assigned_at?: string
|
|
168
|
+
assigned_by?: string | null
|
|
169
|
+
id?: number
|
|
170
|
+
role: Database["public"]["Enums"]["manager_role"]
|
|
171
|
+
user_id: string
|
|
172
|
+
}
|
|
173
|
+
Update: {
|
|
174
|
+
assigned_at?: string
|
|
175
|
+
assigned_by?: string | null
|
|
176
|
+
id?: number
|
|
177
|
+
role?: Database["public"]["Enums"]["manager_role"]
|
|
178
|
+
user_id?: string
|
|
179
|
+
}
|
|
180
|
+
Relationships: [
|
|
181
|
+
{
|
|
182
|
+
foreignKeyName: "manager_user_roles_user_id_fkey"
|
|
183
|
+
columns: ["user_id"]
|
|
184
|
+
isOneToOne: false
|
|
185
|
+
referencedRelation: "managers"
|
|
186
|
+
referencedColumns: ["id"]
|
|
187
|
+
},
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
managers: {
|
|
191
|
+
Row: {
|
|
192
|
+
avatar_url: string | null
|
|
193
|
+
bio: string | null
|
|
194
|
+
created_at: string
|
|
195
|
+
created_by: string | null
|
|
196
|
+
department: string | null
|
|
197
|
+
email: string
|
|
198
|
+
full_name: string | null
|
|
199
|
+
id: string
|
|
200
|
+
last_login_at: string | null
|
|
201
|
+
phone: string | null
|
|
202
|
+
status: Database["public"]["Enums"]["manager_status"] | null
|
|
203
|
+
updated_at: string
|
|
204
|
+
}
|
|
205
|
+
Insert: {
|
|
206
|
+
avatar_url?: string | null
|
|
207
|
+
bio?: string | null
|
|
208
|
+
created_at?: string
|
|
209
|
+
created_by?: string | null
|
|
210
|
+
department?: string | null
|
|
211
|
+
email: string
|
|
212
|
+
full_name?: string | null
|
|
213
|
+
id: string
|
|
214
|
+
last_login_at?: string | null
|
|
215
|
+
phone?: string | null
|
|
216
|
+
status?: Database["public"]["Enums"]["manager_status"] | null
|
|
217
|
+
updated_at?: string
|
|
218
|
+
}
|
|
219
|
+
Update: {
|
|
220
|
+
avatar_url?: string | null
|
|
221
|
+
bio?: string | null
|
|
222
|
+
created_at?: string
|
|
223
|
+
created_by?: string | null
|
|
224
|
+
department?: string | null
|
|
225
|
+
email?: string
|
|
226
|
+
full_name?: string | null
|
|
227
|
+
id?: string
|
|
228
|
+
last_login_at?: string | null
|
|
229
|
+
phone?: string | null
|
|
230
|
+
status?: Database["public"]["Enums"]["manager_status"] | null
|
|
231
|
+
updated_at?: string
|
|
232
|
+
}
|
|
233
|
+
Relationships: []
|
|
234
|
+
}
|
|
235
|
+
payout_methods: {
|
|
236
|
+
Row: {
|
|
237
|
+
created_at: string
|
|
238
|
+
details: Json
|
|
239
|
+
id: string
|
|
240
|
+
is_active: boolean
|
|
241
|
+
is_default: boolean
|
|
242
|
+
profile_id: string
|
|
243
|
+
provider: Database["public"]["Enums"]["payout_provider"]
|
|
244
|
+
updated_at: string
|
|
245
|
+
}
|
|
246
|
+
Insert: {
|
|
247
|
+
created_at?: string
|
|
248
|
+
details?: Json
|
|
249
|
+
id?: string
|
|
250
|
+
is_active?: boolean
|
|
251
|
+
is_default?: boolean
|
|
252
|
+
profile_id: string
|
|
253
|
+
provider: Database["public"]["Enums"]["payout_provider"]
|
|
254
|
+
updated_at?: string
|
|
255
|
+
}
|
|
256
|
+
Update: {
|
|
257
|
+
created_at?: string
|
|
258
|
+
details?: Json
|
|
259
|
+
id?: string
|
|
260
|
+
is_active?: boolean
|
|
261
|
+
is_default?: boolean
|
|
262
|
+
profile_id?: string
|
|
263
|
+
provider?: Database["public"]["Enums"]["payout_provider"]
|
|
264
|
+
updated_at?: string
|
|
265
|
+
}
|
|
266
|
+
Relationships: [
|
|
267
|
+
{
|
|
268
|
+
foreignKeyName: "payout_methods_profile_id_fkey"
|
|
269
|
+
columns: ["profile_id"]
|
|
270
|
+
isOneToOne: false
|
|
271
|
+
referencedRelation: "profiles"
|
|
272
|
+
referencedColumns: ["id"]
|
|
273
|
+
},
|
|
274
|
+
]
|
|
275
|
+
}
|
|
276
|
+
profiles: {
|
|
277
|
+
Row: {
|
|
278
|
+
allow_gifting: boolean | null
|
|
279
|
+
allow_subscriptions: boolean | null
|
|
280
|
+
avatar_url: string | null
|
|
281
|
+
banner_url: string | null
|
|
282
|
+
bio: string | null
|
|
283
|
+
created_at: string | null
|
|
284
|
+
display_name: string | null
|
|
285
|
+
full_name: string | null
|
|
286
|
+
id: string
|
|
287
|
+
layout: Json | null
|
|
288
|
+
page_slug: string
|
|
289
|
+
role: Database["public"]["Enums"]["user_role"]
|
|
290
|
+
theme: Json | null
|
|
291
|
+
updated_at: string | null
|
|
292
|
+
username: string
|
|
293
|
+
}
|
|
294
|
+
Insert: {
|
|
295
|
+
allow_gifting?: boolean | null
|
|
296
|
+
allow_subscriptions?: boolean | null
|
|
297
|
+
avatar_url?: string | null
|
|
298
|
+
banner_url?: string | null
|
|
299
|
+
bio?: string | null
|
|
300
|
+
created_at?: string | null
|
|
301
|
+
display_name?: string | null
|
|
302
|
+
full_name?: string | null
|
|
303
|
+
id: string
|
|
304
|
+
layout?: Json | null
|
|
305
|
+
page_slug: string
|
|
306
|
+
role?: Database["public"]["Enums"]["user_role"]
|
|
307
|
+
theme?: Json | null
|
|
308
|
+
updated_at?: string | null
|
|
309
|
+
username: string
|
|
310
|
+
}
|
|
311
|
+
Update: {
|
|
312
|
+
allow_gifting?: boolean | null
|
|
313
|
+
allow_subscriptions?: boolean | null
|
|
314
|
+
avatar_url?: string | null
|
|
315
|
+
banner_url?: string | null
|
|
316
|
+
bio?: string | null
|
|
317
|
+
created_at?: string | null
|
|
318
|
+
display_name?: string | null
|
|
319
|
+
full_name?: string | null
|
|
320
|
+
id?: string
|
|
321
|
+
layout?: Json | null
|
|
322
|
+
page_slug?: string
|
|
323
|
+
role?: Database["public"]["Enums"]["user_role"]
|
|
324
|
+
theme?: Json | null
|
|
325
|
+
updated_at?: string | null
|
|
326
|
+
username?: string
|
|
327
|
+
}
|
|
328
|
+
Relationships: []
|
|
329
|
+
}
|
|
330
|
+
supporters: {
|
|
331
|
+
Row: {
|
|
332
|
+
created_at: string
|
|
333
|
+
creator_id: string
|
|
334
|
+
first_supported_at: string | null
|
|
335
|
+
id: string
|
|
336
|
+
identity_hash: string
|
|
337
|
+
last_supported_at: string | null
|
|
338
|
+
last_supported_service: string | null
|
|
339
|
+
name: string
|
|
340
|
+
social_platform:
|
|
341
|
+
| Database["public"]["Enums"]["supporter_platform_enum"]
|
|
342
|
+
| null
|
|
343
|
+
support_count: number
|
|
344
|
+
total_amount: number
|
|
345
|
+
updated_at: string
|
|
346
|
+
user_profile_id: string | null
|
|
347
|
+
}
|
|
348
|
+
Insert: {
|
|
349
|
+
created_at?: string
|
|
350
|
+
creator_id: string
|
|
351
|
+
first_supported_at?: string | null
|
|
352
|
+
id?: string
|
|
353
|
+
identity_hash: string
|
|
354
|
+
last_supported_at?: string | null
|
|
355
|
+
last_supported_service?: string | null
|
|
356
|
+
name: string
|
|
357
|
+
social_platform?:
|
|
358
|
+
| Database["public"]["Enums"]["supporter_platform_enum"]
|
|
359
|
+
| null
|
|
360
|
+
support_count?: number
|
|
361
|
+
total_amount?: number
|
|
362
|
+
updated_at?: string
|
|
363
|
+
user_profile_id?: string | null
|
|
364
|
+
}
|
|
365
|
+
Update: {
|
|
366
|
+
created_at?: string
|
|
367
|
+
creator_id?: string
|
|
368
|
+
first_supported_at?: string | null
|
|
369
|
+
id?: string
|
|
370
|
+
identity_hash?: string
|
|
371
|
+
last_supported_at?: string | null
|
|
372
|
+
last_supported_service?: string | null
|
|
373
|
+
name?: string
|
|
374
|
+
social_platform?:
|
|
375
|
+
| Database["public"]["Enums"]["supporter_platform_enum"]
|
|
376
|
+
| null
|
|
377
|
+
support_count?: number
|
|
378
|
+
total_amount?: number
|
|
379
|
+
updated_at?: string
|
|
380
|
+
user_profile_id?: string | null
|
|
381
|
+
}
|
|
382
|
+
Relationships: [
|
|
383
|
+
{
|
|
384
|
+
foreignKeyName: "supporters_creator_id_fkey"
|
|
385
|
+
columns: ["creator_id"]
|
|
386
|
+
isOneToOne: false
|
|
387
|
+
referencedRelation: "profiles"
|
|
388
|
+
referencedColumns: ["id"]
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
foreignKeyName: "supporters_user_profile_id_fkey"
|
|
392
|
+
columns: ["user_profile_id"]
|
|
393
|
+
isOneToOne: false
|
|
394
|
+
referencedRelation: "profiles"
|
|
395
|
+
referencedColumns: ["id"]
|
|
396
|
+
},
|
|
397
|
+
]
|
|
398
|
+
}
|
|
399
|
+
transactions: {
|
|
400
|
+
Row: {
|
|
401
|
+
amount: number
|
|
402
|
+
balance_after: number
|
|
403
|
+
counterparty_profile_id: string | null
|
|
404
|
+
created_at: string
|
|
405
|
+
creator_profile_id: string | null
|
|
406
|
+
direction: Database["public"]["Enums"]["transaction_direction_enum"]
|
|
407
|
+
id: string
|
|
408
|
+
metadata: Json
|
|
409
|
+
net_amount: number
|
|
410
|
+
platform_fee: number
|
|
411
|
+
provider: Database["public"]["Enums"]["provider_enum"] | null
|
|
412
|
+
provider_transaction_id: string | null
|
|
413
|
+
reference_id: string | null
|
|
414
|
+
reference_type: Database["public"]["Enums"]["reference_type_enum"]
|
|
415
|
+
service_type: string
|
|
416
|
+
status: Database["public"]["Enums"]["payment_status_enum"]
|
|
417
|
+
supporter_id: string | null
|
|
418
|
+
updated_at: string
|
|
419
|
+
user_profile_id: string
|
|
420
|
+
wallet_id: string | null
|
|
421
|
+
}
|
|
422
|
+
Insert: {
|
|
423
|
+
amount: number
|
|
424
|
+
balance_after: number
|
|
425
|
+
counterparty_profile_id?: string | null
|
|
426
|
+
created_at?: string
|
|
427
|
+
creator_profile_id?: string | null
|
|
428
|
+
direction: Database["public"]["Enums"]["transaction_direction_enum"]
|
|
429
|
+
id?: string
|
|
430
|
+
metadata?: Json
|
|
431
|
+
net_amount: number
|
|
432
|
+
platform_fee?: number
|
|
433
|
+
provider?: Database["public"]["Enums"]["provider_enum"] | null
|
|
434
|
+
provider_transaction_id?: string | null
|
|
435
|
+
reference_id?: string | null
|
|
436
|
+
reference_type: Database["public"]["Enums"]["reference_type_enum"]
|
|
437
|
+
service_type?: string
|
|
438
|
+
status: Database["public"]["Enums"]["payment_status_enum"]
|
|
439
|
+
supporter_id?: string | null
|
|
440
|
+
updated_at?: string
|
|
441
|
+
user_profile_id: string
|
|
442
|
+
wallet_id?: string | null
|
|
443
|
+
}
|
|
444
|
+
Update: {
|
|
445
|
+
amount?: number
|
|
446
|
+
balance_after?: number
|
|
447
|
+
counterparty_profile_id?: string | null
|
|
448
|
+
created_at?: string
|
|
449
|
+
creator_profile_id?: string | null
|
|
450
|
+
direction?: Database["public"]["Enums"]["transaction_direction_enum"]
|
|
451
|
+
id?: string
|
|
452
|
+
metadata?: Json
|
|
453
|
+
net_amount?: number
|
|
454
|
+
platform_fee?: number
|
|
455
|
+
provider?: Database["public"]["Enums"]["provider_enum"] | null
|
|
456
|
+
provider_transaction_id?: string | null
|
|
457
|
+
reference_id?: string | null
|
|
458
|
+
reference_type?: Database["public"]["Enums"]["reference_type_enum"]
|
|
459
|
+
service_type?: string
|
|
460
|
+
status?: Database["public"]["Enums"]["payment_status_enum"]
|
|
461
|
+
supporter_id?: string | null
|
|
462
|
+
updated_at?: string
|
|
463
|
+
user_profile_id?: string
|
|
464
|
+
wallet_id?: string | null
|
|
465
|
+
}
|
|
466
|
+
Relationships: [
|
|
467
|
+
{
|
|
468
|
+
foreignKeyName: "transactions_counterparty_profile_id_fkey"
|
|
469
|
+
columns: ["counterparty_profile_id"]
|
|
470
|
+
isOneToOne: false
|
|
471
|
+
referencedRelation: "profiles"
|
|
472
|
+
referencedColumns: ["id"]
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
foreignKeyName: "transactions_creator_profile_id_fkey"
|
|
476
|
+
columns: ["creator_profile_id"]
|
|
477
|
+
isOneToOne: false
|
|
478
|
+
referencedRelation: "profiles"
|
|
479
|
+
referencedColumns: ["id"]
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
foreignKeyName: "transactions_supporter_id_fkey"
|
|
483
|
+
columns: ["supporter_id"]
|
|
484
|
+
isOneToOne: false
|
|
485
|
+
referencedRelation: "supporters"
|
|
486
|
+
referencedColumns: ["id"]
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
foreignKeyName: "transactions_user_profile_id_fkey"
|
|
490
|
+
columns: ["user_profile_id"]
|
|
491
|
+
isOneToOne: false
|
|
492
|
+
referencedRelation: "profiles"
|
|
493
|
+
referencedColumns: ["id"]
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
foreignKeyName: "transactions_wallet_id_fkey"
|
|
497
|
+
columns: ["wallet_id"]
|
|
498
|
+
isOneToOne: false
|
|
499
|
+
referencedRelation: "wallets"
|
|
500
|
+
referencedColumns: ["id"]
|
|
501
|
+
},
|
|
502
|
+
]
|
|
503
|
+
}
|
|
504
|
+
wallets: {
|
|
505
|
+
Row: {
|
|
506
|
+
balance: number
|
|
507
|
+
created_at: string
|
|
508
|
+
currency: string
|
|
509
|
+
id: string
|
|
510
|
+
locked_balance: number
|
|
511
|
+
profile_id: string
|
|
512
|
+
updated_at: string
|
|
513
|
+
}
|
|
514
|
+
Insert: {
|
|
515
|
+
balance?: number
|
|
516
|
+
created_at?: string
|
|
517
|
+
currency?: string
|
|
518
|
+
id?: string
|
|
519
|
+
locked_balance?: number
|
|
520
|
+
profile_id: string
|
|
521
|
+
updated_at?: string
|
|
522
|
+
}
|
|
523
|
+
Update: {
|
|
524
|
+
balance?: number
|
|
525
|
+
created_at?: string
|
|
526
|
+
currency?: string
|
|
527
|
+
id?: string
|
|
528
|
+
locked_balance?: number
|
|
529
|
+
profile_id?: string
|
|
530
|
+
updated_at?: string
|
|
531
|
+
}
|
|
532
|
+
Relationships: [
|
|
533
|
+
{
|
|
534
|
+
foreignKeyName: "wallets_profile_id_fkey"
|
|
535
|
+
columns: ["profile_id"]
|
|
536
|
+
isOneToOne: true
|
|
537
|
+
referencedRelation: "profiles"
|
|
538
|
+
referencedColumns: ["id"]
|
|
539
|
+
},
|
|
540
|
+
]
|
|
541
|
+
}
|
|
542
|
+
withdrawal_requests: {
|
|
543
|
+
Row: {
|
|
544
|
+
admin_note: string | null
|
|
545
|
+
amount: number
|
|
546
|
+
completed_at: string | null
|
|
547
|
+
failure_reason: string | null
|
|
548
|
+
fee: number
|
|
549
|
+
id: string
|
|
550
|
+
net_amount: number
|
|
551
|
+
payout_method_id: string
|
|
552
|
+
payout_snapshot: Json | null
|
|
553
|
+
processed_at: string | null
|
|
554
|
+
profile_id: string
|
|
555
|
+
requested_at: string
|
|
556
|
+
status: Database["public"]["Enums"]["withdrawal_status"]
|
|
557
|
+
wallet_id: string
|
|
558
|
+
}
|
|
559
|
+
Insert: {
|
|
560
|
+
admin_note?: string | null
|
|
561
|
+
amount: number
|
|
562
|
+
completed_at?: string | null
|
|
563
|
+
failure_reason?: string | null
|
|
564
|
+
fee?: number
|
|
565
|
+
id?: string
|
|
566
|
+
net_amount: number
|
|
567
|
+
payout_method_id: string
|
|
568
|
+
payout_snapshot?: Json | null
|
|
569
|
+
processed_at?: string | null
|
|
570
|
+
profile_id: string
|
|
571
|
+
requested_at?: string
|
|
572
|
+
status?: Database["public"]["Enums"]["withdrawal_status"]
|
|
573
|
+
wallet_id: string
|
|
574
|
+
}
|
|
575
|
+
Update: {
|
|
576
|
+
admin_note?: string | null
|
|
577
|
+
amount?: number
|
|
578
|
+
completed_at?: string | null
|
|
579
|
+
failure_reason?: string | null
|
|
580
|
+
fee?: number
|
|
581
|
+
id?: string
|
|
582
|
+
net_amount?: number
|
|
583
|
+
payout_method_id?: string
|
|
584
|
+
payout_snapshot?: Json | null
|
|
585
|
+
processed_at?: string | null
|
|
586
|
+
profile_id?: string
|
|
587
|
+
requested_at?: string
|
|
588
|
+
status?: Database["public"]["Enums"]["withdrawal_status"]
|
|
589
|
+
wallet_id?: string
|
|
590
|
+
}
|
|
591
|
+
Relationships: [
|
|
592
|
+
{
|
|
593
|
+
foreignKeyName: "withdrawal_requests_payout_method_id_fkey"
|
|
594
|
+
columns: ["payout_method_id"]
|
|
595
|
+
isOneToOne: false
|
|
596
|
+
referencedRelation: "payout_methods"
|
|
597
|
+
referencedColumns: ["id"]
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
foreignKeyName: "withdrawal_requests_profile_id_fkey"
|
|
601
|
+
columns: ["profile_id"]
|
|
602
|
+
isOneToOne: false
|
|
603
|
+
referencedRelation: "profiles"
|
|
604
|
+
referencedColumns: ["id"]
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
foreignKeyName: "withdrawal_requests_wallet_id_fkey"
|
|
608
|
+
columns: ["wallet_id"]
|
|
609
|
+
isOneToOne: false
|
|
610
|
+
referencedRelation: "wallets"
|
|
611
|
+
referencedColumns: ["id"]
|
|
612
|
+
},
|
|
613
|
+
]
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
Views: {
|
|
617
|
+
[_ in never]: never
|
|
618
|
+
}
|
|
619
|
+
Functions: {
|
|
620
|
+
authorize_manager: {
|
|
621
|
+
Args: {
|
|
622
|
+
requested_permission: Database["public"]["Enums"]["manager_permission"]
|
|
623
|
+
}
|
|
624
|
+
Returns: boolean
|
|
625
|
+
}
|
|
626
|
+
create_manager: {
|
|
627
|
+
Args: {
|
|
628
|
+
manager_department?: string
|
|
629
|
+
manager_email: string
|
|
630
|
+
manager_full_name: string
|
|
631
|
+
manager_role: Database["public"]["Enums"]["manager_role"]
|
|
632
|
+
}
|
|
633
|
+
Returns: string
|
|
634
|
+
}
|
|
635
|
+
custom_access_token_hook: { Args: { event: Json }; Returns: Json }
|
|
636
|
+
handle_successful_payment: {
|
|
637
|
+
Args: {
|
|
638
|
+
p_amount: number
|
|
639
|
+
p_creator_profile_id: string
|
|
640
|
+
p_metadata?: Json
|
|
641
|
+
p_platform_fee: number
|
|
642
|
+
p_provider: Database["public"]["Enums"]["provider_enum"]
|
|
643
|
+
p_provider_transaction_id: string
|
|
644
|
+
p_reference_type: Database["public"]["Enums"]["reference_type_enum"]
|
|
645
|
+
p_service_type?: string
|
|
646
|
+
p_supporter_id: string
|
|
647
|
+
p_supporter_profile_id?: string
|
|
648
|
+
}
|
|
649
|
+
Returns: Json
|
|
650
|
+
}
|
|
651
|
+
is_admin: { Args: never; Returns: boolean }
|
|
652
|
+
is_manager: { Args: { user_email: string }; Returns: boolean }
|
|
653
|
+
request_withdrawal: {
|
|
654
|
+
Args: { p_amount: number; p_payout_method_id: string }
|
|
655
|
+
Returns: string
|
|
656
|
+
}
|
|
657
|
+
show_limit: { Args: never; Returns: number }
|
|
658
|
+
show_trgm: { Args: { "": string }; Returns: string[] }
|
|
659
|
+
upsert_supporter: {
|
|
660
|
+
Args: {
|
|
661
|
+
p_amount?: number
|
|
662
|
+
p_creator_id: string
|
|
663
|
+
p_identity_hash: string
|
|
664
|
+
p_name: string
|
|
665
|
+
p_service_type?: string
|
|
666
|
+
p_social_platform?: Database["public"]["Enums"]["supporter_platform_enum"]
|
|
667
|
+
p_user_profile_id?: string
|
|
668
|
+
}
|
|
669
|
+
Returns: string
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
Enums: {
|
|
673
|
+
manager_permission:
|
|
674
|
+
| "managers.create"
|
|
675
|
+
| "managers.view"
|
|
676
|
+
| "managers.update"
|
|
677
|
+
| "managers.delete"
|
|
678
|
+
| "content.moderate"
|
|
679
|
+
| "content.approve"
|
|
680
|
+
| "content.feature"
|
|
681
|
+
| "content.delete"
|
|
682
|
+
| "users.view_details"
|
|
683
|
+
| "users.suspend"
|
|
684
|
+
| "users.reactivate"
|
|
685
|
+
| "users.view_analytics"
|
|
686
|
+
| "transactions.view"
|
|
687
|
+
| "transactions.refund"
|
|
688
|
+
| "payouts.approve"
|
|
689
|
+
| "payouts.process"
|
|
690
|
+
| "support.tickets.view"
|
|
691
|
+
| "support.tickets.respond"
|
|
692
|
+
| "support.tickets.escalate"
|
|
693
|
+
| "support.tickets.close"
|
|
694
|
+
| "developers.create"
|
|
695
|
+
| "developers.view"
|
|
696
|
+
| "developers.update"
|
|
697
|
+
| "developers.delete"
|
|
698
|
+
manager_role:
|
|
699
|
+
| "super_admin"
|
|
700
|
+
| "content_manager"
|
|
701
|
+
| "support_manager"
|
|
702
|
+
| "finance_manager"
|
|
703
|
+
| "developer_manager"
|
|
704
|
+
manager_status: "ACTIVE" | "INACTIVE" | "SUSPENDED"
|
|
705
|
+
payment_status_enum:
|
|
706
|
+
| "pending"
|
|
707
|
+
| "processing"
|
|
708
|
+
| "completed"
|
|
709
|
+
| "failed"
|
|
710
|
+
| "reversed"
|
|
711
|
+
| "cancelled"
|
|
712
|
+
| "refunded"
|
|
713
|
+
| "reviewing"
|
|
714
|
+
payout_provider: "bkash" | "nagad" | "rocket" | "bank"
|
|
715
|
+
provider_enum:
|
|
716
|
+
| "HobeNakiCoffee"
|
|
717
|
+
| "Bkash"
|
|
718
|
+
| "Nagad"
|
|
719
|
+
| "Rocket"
|
|
720
|
+
| "Upay"
|
|
721
|
+
| "SSLCommerz"
|
|
722
|
+
| "Aamarpay"
|
|
723
|
+
| "Portwallet"
|
|
724
|
+
| "Tap"
|
|
725
|
+
| "Other"
|
|
726
|
+
reference_type_enum:
|
|
727
|
+
| "subscription"
|
|
728
|
+
| "one-time"
|
|
729
|
+
| "payout"
|
|
730
|
+
| "withdraw_lock"
|
|
731
|
+
| "withdraw_release"
|
|
732
|
+
| "withdraw_complete"
|
|
733
|
+
| "manual_adjustment"
|
|
734
|
+
supporter_platform_enum:
|
|
735
|
+
| "facebook"
|
|
736
|
+
| "x"
|
|
737
|
+
| "instagram"
|
|
738
|
+
| "youtube"
|
|
739
|
+
| "github"
|
|
740
|
+
| "linkedin"
|
|
741
|
+
| "twitch"
|
|
742
|
+
| "tiktok"
|
|
743
|
+
| "threads"
|
|
744
|
+
| "whatsapp"
|
|
745
|
+
| "telegram"
|
|
746
|
+
| "discord"
|
|
747
|
+
| "reddit"
|
|
748
|
+
| "pinterest"
|
|
749
|
+
| "medium"
|
|
750
|
+
| "devto"
|
|
751
|
+
| "behance"
|
|
752
|
+
| "dribbble"
|
|
753
|
+
transaction_direction_enum: "debit" | "credit"
|
|
754
|
+
user_role: "user" | "admin"
|
|
755
|
+
visibility_enum: "public" | "private"
|
|
756
|
+
withdrawal_status:
|
|
757
|
+
| "requested"
|
|
758
|
+
| "approved"
|
|
759
|
+
| "processing"
|
|
760
|
+
| "paid"
|
|
761
|
+
| "rejected"
|
|
762
|
+
| "failed"
|
|
763
|
+
}
|
|
764
|
+
CompositeTypes: {
|
|
765
|
+
[_ in never]: never
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">
|
|
771
|
+
|
|
772
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">]
|
|
773
|
+
|
|
774
|
+
export type Tables<
|
|
775
|
+
DefaultSchemaTableNameOrOptions extends
|
|
776
|
+
| keyof (DefaultSchema["Tables"] & DefaultSchema["Views"])
|
|
777
|
+
| { schema: keyof DatabaseWithoutInternals },
|
|
778
|
+
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
779
|
+
schema: keyof DatabaseWithoutInternals
|
|
780
|
+
}
|
|
781
|
+
? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
|
|
782
|
+
DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
|
|
783
|
+
: never = never,
|
|
784
|
+
> = DefaultSchemaTableNameOrOptions extends {
|
|
785
|
+
schema: keyof DatabaseWithoutInternals
|
|
786
|
+
}
|
|
787
|
+
? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
|
|
788
|
+
DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
789
|
+
Row: infer R
|
|
790
|
+
}
|
|
791
|
+
? R
|
|
792
|
+
: never
|
|
793
|
+
: DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] &
|
|
794
|
+
DefaultSchema["Views"])
|
|
795
|
+
? (DefaultSchema["Tables"] &
|
|
796
|
+
DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
797
|
+
Row: infer R
|
|
798
|
+
}
|
|
799
|
+
? R
|
|
800
|
+
: never
|
|
801
|
+
: never
|
|
802
|
+
|
|
803
|
+
export type TablesInsert<
|
|
804
|
+
DefaultSchemaTableNameOrOptions extends
|
|
805
|
+
| keyof DefaultSchema["Tables"]
|
|
806
|
+
| { schema: keyof DatabaseWithoutInternals },
|
|
807
|
+
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
808
|
+
schema: keyof DatabaseWithoutInternals
|
|
809
|
+
}
|
|
810
|
+
? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
811
|
+
: never = never,
|
|
812
|
+
> = DefaultSchemaTableNameOrOptions extends {
|
|
813
|
+
schema: keyof DatabaseWithoutInternals
|
|
814
|
+
}
|
|
815
|
+
? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
816
|
+
Insert: infer I
|
|
817
|
+
}
|
|
818
|
+
? I
|
|
819
|
+
: never
|
|
820
|
+
: DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
|
|
821
|
+
? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
822
|
+
Insert: infer I
|
|
823
|
+
}
|
|
824
|
+
? I
|
|
825
|
+
: never
|
|
826
|
+
: never
|
|
827
|
+
|
|
828
|
+
export type TablesUpdate<
|
|
829
|
+
DefaultSchemaTableNameOrOptions extends
|
|
830
|
+
| keyof DefaultSchema["Tables"]
|
|
831
|
+
| { schema: keyof DatabaseWithoutInternals },
|
|
832
|
+
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
833
|
+
schema: keyof DatabaseWithoutInternals
|
|
834
|
+
}
|
|
835
|
+
? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
836
|
+
: never = never,
|
|
837
|
+
> = DefaultSchemaTableNameOrOptions extends {
|
|
838
|
+
schema: keyof DatabaseWithoutInternals
|
|
839
|
+
}
|
|
840
|
+
? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
841
|
+
Update: infer U
|
|
842
|
+
}
|
|
843
|
+
? U
|
|
844
|
+
: never
|
|
845
|
+
: DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
|
|
846
|
+
? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
847
|
+
Update: infer U
|
|
848
|
+
}
|
|
849
|
+
? U
|
|
850
|
+
: never
|
|
851
|
+
: never
|
|
852
|
+
|
|
853
|
+
export type Enums<
|
|
854
|
+
DefaultSchemaEnumNameOrOptions extends
|
|
855
|
+
| keyof DefaultSchema["Enums"]
|
|
856
|
+
| { schema: keyof DatabaseWithoutInternals },
|
|
857
|
+
EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
858
|
+
schema: keyof DatabaseWithoutInternals
|
|
859
|
+
}
|
|
860
|
+
? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
|
|
861
|
+
: never = never,
|
|
862
|
+
> = DefaultSchemaEnumNameOrOptions extends {
|
|
863
|
+
schema: keyof DatabaseWithoutInternals
|
|
864
|
+
}
|
|
865
|
+
? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName]
|
|
866
|
+
: DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"]
|
|
867
|
+
? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions]
|
|
868
|
+
: never
|
|
869
|
+
|
|
870
|
+
export type CompositeTypes<
|
|
871
|
+
PublicCompositeTypeNameOrOptions extends
|
|
872
|
+
| keyof DefaultSchema["CompositeTypes"]
|
|
873
|
+
| { schema: keyof DatabaseWithoutInternals },
|
|
874
|
+
CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
875
|
+
schema: keyof DatabaseWithoutInternals
|
|
876
|
+
}
|
|
877
|
+
? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
|
|
878
|
+
: never = never,
|
|
879
|
+
> = PublicCompositeTypeNameOrOptions extends {
|
|
880
|
+
schema: keyof DatabaseWithoutInternals
|
|
881
|
+
}
|
|
882
|
+
? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
|
|
883
|
+
: PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"]
|
|
884
|
+
? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
|
|
885
|
+
: never
|
|
886
|
+
|
|
887
|
+
export const Constants = {
|
|
888
|
+
public: {
|
|
889
|
+
Enums: {
|
|
890
|
+
manager_permission: [
|
|
891
|
+
"managers.create",
|
|
892
|
+
"managers.view",
|
|
893
|
+
"managers.update",
|
|
894
|
+
"managers.delete",
|
|
895
|
+
"content.moderate",
|
|
896
|
+
"content.approve",
|
|
897
|
+
"content.feature",
|
|
898
|
+
"content.delete",
|
|
899
|
+
"users.view_details",
|
|
900
|
+
"users.suspend",
|
|
901
|
+
"users.reactivate",
|
|
902
|
+
"users.view_analytics",
|
|
903
|
+
"transactions.view",
|
|
904
|
+
"transactions.refund",
|
|
905
|
+
"payouts.approve",
|
|
906
|
+
"payouts.process",
|
|
907
|
+
"support.tickets.view",
|
|
908
|
+
"support.tickets.respond",
|
|
909
|
+
"support.tickets.escalate",
|
|
910
|
+
"support.tickets.close",
|
|
911
|
+
"developers.create",
|
|
912
|
+
"developers.view",
|
|
913
|
+
"developers.update",
|
|
914
|
+
"developers.delete",
|
|
915
|
+
],
|
|
916
|
+
manager_role: [
|
|
917
|
+
"super_admin",
|
|
918
|
+
"content_manager",
|
|
919
|
+
"support_manager",
|
|
920
|
+
"finance_manager",
|
|
921
|
+
"developer_manager",
|
|
922
|
+
],
|
|
923
|
+
manager_status: ["ACTIVE", "INACTIVE", "SUSPENDED"],
|
|
924
|
+
payment_status_enum: [
|
|
925
|
+
"pending",
|
|
926
|
+
"processing",
|
|
927
|
+
"completed",
|
|
928
|
+
"failed",
|
|
929
|
+
"reversed",
|
|
930
|
+
"cancelled",
|
|
931
|
+
"refunded",
|
|
932
|
+
"reviewing",
|
|
933
|
+
],
|
|
934
|
+
payout_provider: ["bkash", "nagad", "rocket", "bank"],
|
|
935
|
+
provider_enum: [
|
|
936
|
+
"HobeNakiCoffee",
|
|
937
|
+
"Bkash",
|
|
938
|
+
"Nagad",
|
|
939
|
+
"Rocket",
|
|
940
|
+
"Upay",
|
|
941
|
+
"SSLCommerz",
|
|
942
|
+
"Aamarpay",
|
|
943
|
+
"Portwallet",
|
|
944
|
+
"Tap",
|
|
945
|
+
"Other",
|
|
946
|
+
],
|
|
947
|
+
reference_type_enum: [
|
|
948
|
+
"subscription",
|
|
949
|
+
"one-time",
|
|
950
|
+
"payout",
|
|
951
|
+
"withdraw_lock",
|
|
952
|
+
"withdraw_release",
|
|
953
|
+
"withdraw_complete",
|
|
954
|
+
"manual_adjustment",
|
|
955
|
+
],
|
|
956
|
+
supporter_platform_enum: [
|
|
957
|
+
"facebook",
|
|
958
|
+
"x",
|
|
959
|
+
"instagram",
|
|
960
|
+
"youtube",
|
|
961
|
+
"github",
|
|
962
|
+
"linkedin",
|
|
963
|
+
"twitch",
|
|
964
|
+
"tiktok",
|
|
965
|
+
"threads",
|
|
966
|
+
"whatsapp",
|
|
967
|
+
"telegram",
|
|
968
|
+
"discord",
|
|
969
|
+
"reddit",
|
|
970
|
+
"pinterest",
|
|
971
|
+
"medium",
|
|
972
|
+
"devto",
|
|
973
|
+
"behance",
|
|
974
|
+
"dribbble",
|
|
975
|
+
],
|
|
976
|
+
transaction_direction_enum: ["debit", "credit"],
|
|
977
|
+
user_role: ["user", "admin"],
|
|
978
|
+
visibility_enum: ["public", "private"],
|
|
979
|
+
withdrawal_status: [
|
|
980
|
+
"requested",
|
|
981
|
+
"approved",
|
|
982
|
+
"processing",
|
|
983
|
+
"paid",
|
|
984
|
+
"rejected",
|
|
985
|
+
"failed",
|
|
986
|
+
],
|
|
987
|
+
},
|
|
988
|
+
},
|
|
989
|
+
} as const
|
|
990
|
+
|