@hobenakicoffee/libraries 7.0.0 → 8.0.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 +1 -1
- package/src/App.tsx +25 -16
- package/src/index.css +7 -6
- package/src/types/supabase.ts +631 -2
package/package.json
CHANGED
package/src/App.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
2
|
import { productInfo } from "@/constants/legal";
|
|
3
|
+
import logoSvg from "/favicon.svg";
|
|
3
4
|
|
|
4
5
|
declare const __LATEST_VERSION__: string;
|
|
5
6
|
|
|
@@ -51,14 +52,20 @@ const App = () => {
|
|
|
51
52
|
<div className="min-dvh relative flex flex-col overflow-hidden bg-[#0a0c10] text-slate-200">
|
|
52
53
|
<div className="pointer-events-none absolute inset-0 overflow-hidden">
|
|
53
54
|
<div className="absolute inset-0 bg-[linear-gradient(to_right,#1e293b_0.5px,transparent_0.5px),linear-gradient(to_bottom,#1e293b_0.5px,transparent_0.5px)] bg-[size:4rem_4rem] [mask-image:radial-gradient(ellipse_60%_50%_at_50%_50%,#000_70%,transparent_100%)]" />
|
|
54
|
-
<div className="absolute top-0 left-1/4 h-[500px] w-[500px] -translate-x-1/2 rounded-full bg-
|
|
55
|
-
<div className="absolute right-1/4 bottom-0 h-[400px] w-[400px] translate-y-1/2 rounded-full bg-
|
|
55
|
+
<div className="absolute top-0 left-1/4 h-[500px] w-[500px] -translate-x-1/2 rounded-full bg-brand/[0.03] blur-3xl" />
|
|
56
|
+
<div className="absolute right-1/4 bottom-0 h-[400px] w-[400px] translate-y-1/2 rounded-full bg-brand/[0.03] blur-3xl" />
|
|
56
57
|
</div>
|
|
57
58
|
|
|
58
59
|
<header className="relative z-10 flex items-center justify-between px-6 py-4 md:px-8">
|
|
59
60
|
<div className="flex items-center gap-3">
|
|
60
|
-
<div className="flex h-10 w-10 items-center justify-center rounded-lg border border-slate-700 bg-slate-900 shadow-[0_0_20px_rgba(
|
|
61
|
-
<
|
|
61
|
+
<div className="flex h-10 w-10 items-center justify-center rounded-lg border border-slate-700 bg-slate-900 shadow-[0_0_20px_rgba(204,51,85,0.2)]">
|
|
62
|
+
<img
|
|
63
|
+
alt=""
|
|
64
|
+
className="h-6 w-6"
|
|
65
|
+
height={24}
|
|
66
|
+
src={logoSvg}
|
|
67
|
+
width={24}
|
|
68
|
+
/>
|
|
62
69
|
</div>
|
|
63
70
|
<div>
|
|
64
71
|
<h1 className="font-mono font-semibold text-slate-100 text-sm tracking-tight">
|
|
@@ -87,31 +94,31 @@ const App = () => {
|
|
|
87
94
|
|
|
88
95
|
<h2 className="mb-4 font-bold font-mono text-3xl tracking-tight md:text-5xl">
|
|
89
96
|
<span className="text-slate-100">Shared </span>
|
|
90
|
-
<span className="bg-linear-to-r from-
|
|
97
|
+
<span className="bg-linear-to-r from-brand to-[#e84a6f] bg-clip-text text-transparent">
|
|
91
98
|
constants,
|
|
92
99
|
</span>
|
|
93
100
|
<br />
|
|
94
101
|
<span className="text-slate-100">utilities & </span>
|
|
95
|
-
<span className="bg-linear-to-r from-
|
|
102
|
+
<span className="bg-linear-to-r from-brand to-[#e84a6f] bg-clip-text text-transparent">
|
|
96
103
|
types
|
|
97
104
|
</span>
|
|
98
105
|
</h2>
|
|
99
106
|
|
|
100
107
|
<p className="mx-auto mb-8 max-w-lg font-mono text-slate-400 text-sm leading-relaxed">
|
|
101
108
|
The core package for{" "}
|
|
102
|
-
<span className="text-
|
|
103
|
-
|
|
104
|
-
|
|
109
|
+
<span className="text-brand">"{productInfo.name}"</span> projects.
|
|
110
|
+
Build faster with pre-built constants, utilities, types, and
|
|
111
|
+
moderation tools.
|
|
105
112
|
</p>
|
|
106
113
|
|
|
107
114
|
<div className="group relative mx-auto inline-flex cursor-pointer flex-col items-center gap-3 md:flex-row">
|
|
108
|
-
<div className="flex items-center gap-2 rounded-lg border border-slate-700 bg-slate-900 p-1 pr-3 font-mono text-sm shadow-[0_0_40px_rgba(
|
|
115
|
+
<div className="flex items-center gap-2 rounded-lg border border-slate-700 bg-slate-900 p-1 pr-3 font-mono text-sm shadow-[0_0_40px_rgba(204,51,85,0.15)] transition-all group-hover:border-brand/50 group-hover:shadow-[0_0_60px_rgba(204,51,85,0.25)]">
|
|
109
116
|
<button
|
|
110
117
|
className="flex items-center gap-2 rounded-md bg-slate-800 px-3 py-2 text-slate-200 transition-colors hover:bg-slate-700"
|
|
111
118
|
onClick={handleCopy}
|
|
112
119
|
type="button"
|
|
113
120
|
>
|
|
114
|
-
<span className="text-
|
|
121
|
+
<span className="text-brand">$</span>
|
|
115
122
|
<span>
|
|
116
123
|
{copied ? " Copied!" : " bun add @hobenakicoffee/libraries"}
|
|
117
124
|
</span>
|
|
@@ -119,11 +126,11 @@ const App = () => {
|
|
|
119
126
|
<span className="text-slate-500">{copied ? "✓" : "›"}</span>
|
|
120
127
|
</div>
|
|
121
128
|
<a
|
|
122
|
-
className="inline-flex items-center gap-2 rounded-lg bg-
|
|
129
|
+
className="inline-flex items-center gap-2 rounded-lg bg-brand px-4 py-3 font-mono text-sm text-white transition-all hover:bg-brand/90"
|
|
123
130
|
href="/docs/"
|
|
124
131
|
>
|
|
125
132
|
<span>Documentation</span>
|
|
126
|
-
<span className="text-
|
|
133
|
+
<span className="text-brand">→</span>
|
|
127
134
|
</a>
|
|
128
135
|
</div>
|
|
129
136
|
</div>
|
|
@@ -137,14 +144,16 @@ const App = () => {
|
|
|
137
144
|
<a
|
|
138
145
|
className="group relative overflow-hidden rounded-lg border border-slate-800 bg-slate-900/50 p-3 font-mono transition-all hover:border-slate-600"
|
|
139
146
|
href={
|
|
140
|
-
exp.path === "/docs"
|
|
147
|
+
exp.path === "/docs"
|
|
148
|
+
? "/docs/"
|
|
149
|
+
: `/docs/libraries${exp.path}/`
|
|
141
150
|
}
|
|
142
151
|
key={exp.path}
|
|
143
152
|
style={{ animationDelay: `${i * 50}ms` }}
|
|
144
153
|
>
|
|
145
|
-
<div className="absolute inset-0 bg-linear-to-r from-
|
|
154
|
+
<div className="absolute inset-0 bg-linear-to-r from-brand/0 to-brand/0 opacity-0 transition-opacity group-hover:from-brand/[0.03] group-hover:to-brand/[0.03] group-hover:opacity-100" />
|
|
146
155
|
<div className="relative">
|
|
147
|
-
<span className="text-
|
|
156
|
+
<span className="text-brand text-xs">
|
|
148
157
|
@hobenakicoffee/libraries
|
|
149
158
|
</span>
|
|
150
159
|
<span className="text-slate-500 text-xs">{exp.path}</span>
|
package/src/index.css
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
--card-foreground: oklch(0.145 0 0);
|
|
12
12
|
--popover: oklch(1 0 0);
|
|
13
13
|
--popover-foreground: oklch(0.145 0 0);
|
|
14
|
-
--primary: oklch(0.
|
|
14
|
+
--primary: oklch(0.5 0.19 355);
|
|
15
15
|
--primary-foreground: oklch(98.978% 0.00663 339.475);
|
|
16
16
|
--secondary: oklch(96.715% 0.00011 271.152);
|
|
17
17
|
--secondary-foreground: oklch(0.21 0.006 285.885);
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
--success: oklch(0.627 0.173 142.459);
|
|
24
24
|
--border: oklch(0.922 0 0);
|
|
25
25
|
--input: oklch(0.922 0 0);
|
|
26
|
-
--ring: oklch(0.
|
|
26
|
+
--ring: oklch(0.5 0.19 355);
|
|
27
27
|
--chart-1: oklch(80.306% 0.07833 0.456);
|
|
28
28
|
--chart-2: oklch(69.926% 0.11062 2.516);
|
|
29
29
|
--chart-3: oklch(65.055% 0.15935 5.085);
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
--radius: 0.625rem;
|
|
33
33
|
--sidebar: oklch(1 0 0);
|
|
34
34
|
--sidebar-foreground: oklch(0.145 0 0);
|
|
35
|
-
--sidebar-primary: oklch(0.
|
|
35
|
+
--sidebar-primary: oklch(0.5 0.19 355);
|
|
36
36
|
--sidebar-primary-foreground: oklch(98.978% 0.00663 339.475);
|
|
37
37
|
--sidebar-accent: oklch(0.145 0 0);
|
|
38
38
|
--sidebar-accent-foreground: oklch(1 0 0);
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
--card-foreground: oklch(0.985 0 0);
|
|
49
49
|
--popover: oklch(0.205 0 0);
|
|
50
50
|
--popover-foreground: oklch(0.985 0 0);
|
|
51
|
-
--primary: oklch(
|
|
51
|
+
--primary: oklch(0.48 0.2 355);
|
|
52
52
|
--primary-foreground: oklch(97.057% 0.01244 358.249);
|
|
53
53
|
--secondary: oklch(0.274 0.006 286.033);
|
|
54
54
|
--secondary-foreground: oklch(0.985 0 0);
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
--success: oklch(0.718 0.208 138.659);
|
|
61
61
|
--border: oklch(1 0 0 / 10%);
|
|
62
62
|
--input: oklch(1 0 0 / 15%);
|
|
63
|
-
--ring: oklch(
|
|
63
|
+
--ring: oklch(0.48 0.2 355);
|
|
64
64
|
--chart-1: oklch(80.306% 0.07833 0.456);
|
|
65
65
|
--chart-2: oklch(69.926% 0.11062 2.516);
|
|
66
66
|
--chart-3: oklch(65.055% 0.15935 5.085);
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
--chart-5: oklch(51.268% 0.15904 7.545);
|
|
69
69
|
--sidebar: oklch(0.205 0 0);
|
|
70
70
|
--sidebar-foreground: oklch(0.985 0 0);
|
|
71
|
-
--sidebar-primary: oklch(
|
|
71
|
+
--sidebar-primary: oklch(0.48 0.2 355);
|
|
72
72
|
--sidebar-primary-foreground: oklch(97.057% 0.01244 358.249);
|
|
73
73
|
--sidebar-accent: oklch(0.985 0 0);
|
|
74
74
|
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
|
|
80
80
|
@theme inline {
|
|
81
81
|
--font-sans: "Noto Sans Bengali Variable", sans-serif;
|
|
82
|
+
--color-brand: #cc3355;
|
|
82
83
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
83
84
|
--color-sidebar-border: var(--sidebar-border);
|
|
84
85
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
package/src/types/supabase.ts
CHANGED
|
@@ -60,6 +60,13 @@ export type Database = {
|
|
|
60
60
|
referencedRelation: "profiles";
|
|
61
61
|
referencedColumns: ["id"];
|
|
62
62
|
},
|
|
63
|
+
{
|
|
64
|
+
foreignKeyName: "activities_counterparty_profile_id_fkey";
|
|
65
|
+
columns: ["counterparty_profile_id"];
|
|
66
|
+
isOneToOne: false;
|
|
67
|
+
referencedRelation: "public_profiles";
|
|
68
|
+
referencedColumns: ["id"];
|
|
69
|
+
},
|
|
63
70
|
{
|
|
64
71
|
foreignKeyName: "activities_transaction_id_fkey";
|
|
65
72
|
columns: ["transaction_id"];
|
|
@@ -74,6 +81,13 @@ export type Database = {
|
|
|
74
81
|
referencedRelation: "profiles";
|
|
75
82
|
referencedColumns: ["id"];
|
|
76
83
|
},
|
|
84
|
+
{
|
|
85
|
+
foreignKeyName: "activities_user_profile_id_fkey";
|
|
86
|
+
columns: ["user_profile_id"];
|
|
87
|
+
isOneToOne: false;
|
|
88
|
+
referencedRelation: "public_profiles";
|
|
89
|
+
referencedColumns: ["id"];
|
|
90
|
+
},
|
|
77
91
|
];
|
|
78
92
|
};
|
|
79
93
|
coffee_gifts: {
|
|
@@ -127,6 +141,13 @@ export type Database = {
|
|
|
127
141
|
referencedRelation: "profiles";
|
|
128
142
|
referencedColumns: ["id"];
|
|
129
143
|
},
|
|
144
|
+
{
|
|
145
|
+
foreignKeyName: "coffee_gifts_creator_profile_id_fkey";
|
|
146
|
+
columns: ["creator_profile_id"];
|
|
147
|
+
isOneToOne: false;
|
|
148
|
+
referencedRelation: "public_profiles";
|
|
149
|
+
referencedColumns: ["id"];
|
|
150
|
+
},
|
|
130
151
|
{
|
|
131
152
|
foreignKeyName: "coffee_gifts_supporter_profile_id_fkey";
|
|
132
153
|
columns: ["supporter_profile_id"];
|
|
@@ -134,6 +155,13 @@ export type Database = {
|
|
|
134
155
|
referencedRelation: "profiles";
|
|
135
156
|
referencedColumns: ["id"];
|
|
136
157
|
},
|
|
158
|
+
{
|
|
159
|
+
foreignKeyName: "coffee_gifts_supporter_profile_id_fkey";
|
|
160
|
+
columns: ["supporter_profile_id"];
|
|
161
|
+
isOneToOne: false;
|
|
162
|
+
referencedRelation: "public_profiles";
|
|
163
|
+
referencedColumns: ["id"];
|
|
164
|
+
},
|
|
137
165
|
{
|
|
138
166
|
foreignKeyName: "coffee_gifts_transaction_reference_id_fkey";
|
|
139
167
|
columns: ["transaction_reference_id"];
|
|
@@ -177,6 +205,13 @@ export type Database = {
|
|
|
177
205
|
referencedRelation: "profiles";
|
|
178
206
|
referencedColumns: ["id"];
|
|
179
207
|
},
|
|
208
|
+
{
|
|
209
|
+
foreignKeyName: "conversation_participants_profile_id_fkey";
|
|
210
|
+
columns: ["profile_id"];
|
|
211
|
+
isOneToOne: false;
|
|
212
|
+
referencedRelation: "public_profiles";
|
|
213
|
+
referencedColumns: ["id"];
|
|
214
|
+
},
|
|
180
215
|
];
|
|
181
216
|
};
|
|
182
217
|
conversations: {
|
|
@@ -267,6 +302,13 @@ export type Database = {
|
|
|
267
302
|
referencedRelation: "profiles";
|
|
268
303
|
referencedColumns: ["id"];
|
|
269
304
|
},
|
|
305
|
+
{
|
|
306
|
+
foreignKeyName: "creator_platform_subscriptions_profile_id_fkey";
|
|
307
|
+
columns: ["profile_id"];
|
|
308
|
+
isOneToOne: false;
|
|
309
|
+
referencedRelation: "public_profiles";
|
|
310
|
+
referencedColumns: ["id"];
|
|
311
|
+
},
|
|
270
312
|
{
|
|
271
313
|
foreignKeyName: "creator_platform_subscriptions_transaction_reference_id_fkey";
|
|
272
314
|
columns: ["transaction_reference_id"];
|
|
@@ -312,6 +354,13 @@ export type Database = {
|
|
|
312
354
|
referencedRelation: "profiles";
|
|
313
355
|
referencedColumns: ["id"];
|
|
314
356
|
},
|
|
357
|
+
{
|
|
358
|
+
foreignKeyName: "creator_report_summary_creator_id_fkey";
|
|
359
|
+
columns: ["creator_id"];
|
|
360
|
+
isOneToOne: true;
|
|
361
|
+
referencedRelation: "public_profiles";
|
|
362
|
+
referencedColumns: ["id"];
|
|
363
|
+
},
|
|
315
364
|
];
|
|
316
365
|
};
|
|
317
366
|
creator_reports: {
|
|
@@ -374,6 +423,13 @@ export type Database = {
|
|
|
374
423
|
referencedRelation: "profiles";
|
|
375
424
|
referencedColumns: ["id"];
|
|
376
425
|
},
|
|
426
|
+
{
|
|
427
|
+
foreignKeyName: "creator_reports_creator_id_fkey";
|
|
428
|
+
columns: ["creator_id"];
|
|
429
|
+
isOneToOne: false;
|
|
430
|
+
referencedRelation: "public_profiles";
|
|
431
|
+
referencedColumns: ["id"];
|
|
432
|
+
},
|
|
377
433
|
{
|
|
378
434
|
foreignKeyName: "creator_reports_reporter_user_id_fkey";
|
|
379
435
|
columns: ["reporter_user_id"];
|
|
@@ -381,6 +437,13 @@ export type Database = {
|
|
|
381
437
|
referencedRelation: "profiles";
|
|
382
438
|
referencedColumns: ["id"];
|
|
383
439
|
},
|
|
440
|
+
{
|
|
441
|
+
foreignKeyName: "creator_reports_reporter_user_id_fkey";
|
|
442
|
+
columns: ["reporter_user_id"];
|
|
443
|
+
isOneToOne: false;
|
|
444
|
+
referencedRelation: "public_profiles";
|
|
445
|
+
referencedColumns: ["id"];
|
|
446
|
+
},
|
|
384
447
|
{
|
|
385
448
|
foreignKeyName: "creator_reports_reviewed_by_fkey";
|
|
386
449
|
columns: ["reviewed_by"];
|
|
@@ -388,6 +451,13 @@ export type Database = {
|
|
|
388
451
|
referencedRelation: "profiles";
|
|
389
452
|
referencedColumns: ["id"];
|
|
390
453
|
},
|
|
454
|
+
{
|
|
455
|
+
foreignKeyName: "creator_reports_reviewed_by_fkey";
|
|
456
|
+
columns: ["reviewed_by"];
|
|
457
|
+
isOneToOne: false;
|
|
458
|
+
referencedRelation: "public_profiles";
|
|
459
|
+
referencedColumns: ["id"];
|
|
460
|
+
},
|
|
391
461
|
];
|
|
392
462
|
};
|
|
393
463
|
creator_subscription_notifications: {
|
|
@@ -534,6 +604,13 @@ export type Database = {
|
|
|
534
604
|
referencedRelation: "profiles";
|
|
535
605
|
referencedColumns: ["id"];
|
|
536
606
|
},
|
|
607
|
+
{
|
|
608
|
+
foreignKeyName: "email_notification_queue_user_profile_id_fkey";
|
|
609
|
+
columns: ["user_profile_id"];
|
|
610
|
+
isOneToOne: false;
|
|
611
|
+
referencedRelation: "public_profiles";
|
|
612
|
+
referencedColumns: ["id"];
|
|
613
|
+
},
|
|
537
614
|
];
|
|
538
615
|
};
|
|
539
616
|
email_unsubscribe_feedback: {
|
|
@@ -576,6 +653,13 @@ export type Database = {
|
|
|
576
653
|
referencedRelation: "profiles";
|
|
577
654
|
referencedColumns: ["id"];
|
|
578
655
|
},
|
|
656
|
+
{
|
|
657
|
+
foreignKeyName: "email_unsubscribe_feedback_user_id_fkey";
|
|
658
|
+
columns: ["user_id"];
|
|
659
|
+
isOneToOne: false;
|
|
660
|
+
referencedRelation: "public_profiles";
|
|
661
|
+
referencedColumns: ["id"];
|
|
662
|
+
},
|
|
579
663
|
];
|
|
580
664
|
};
|
|
581
665
|
feed_item_bookmarks: {
|
|
@@ -612,6 +696,13 @@ export type Database = {
|
|
|
612
696
|
referencedRelation: "profiles";
|
|
613
697
|
referencedColumns: ["id"];
|
|
614
698
|
},
|
|
699
|
+
{
|
|
700
|
+
foreignKeyName: "feed_item_bookmarks_profile_id_fkey";
|
|
701
|
+
columns: ["profile_id"];
|
|
702
|
+
isOneToOne: false;
|
|
703
|
+
referencedRelation: "public_profiles";
|
|
704
|
+
referencedColumns: ["id"];
|
|
705
|
+
},
|
|
615
706
|
];
|
|
616
707
|
};
|
|
617
708
|
feed_item_comments: {
|
|
@@ -667,6 +758,13 @@ export type Database = {
|
|
|
667
758
|
referencedRelation: "profiles";
|
|
668
759
|
referencedColumns: ["id"];
|
|
669
760
|
},
|
|
761
|
+
{
|
|
762
|
+
foreignKeyName: "feed_item_comments_profile_id_fkey";
|
|
763
|
+
columns: ["profile_id"];
|
|
764
|
+
isOneToOne: false;
|
|
765
|
+
referencedRelation: "public_profiles";
|
|
766
|
+
referencedColumns: ["id"];
|
|
767
|
+
},
|
|
670
768
|
];
|
|
671
769
|
};
|
|
672
770
|
feed_item_likes: {
|
|
@@ -703,6 +801,13 @@ export type Database = {
|
|
|
703
801
|
referencedRelation: "profiles";
|
|
704
802
|
referencedColumns: ["id"];
|
|
705
803
|
},
|
|
804
|
+
{
|
|
805
|
+
foreignKeyName: "feed_item_likes_profile_id_fkey";
|
|
806
|
+
columns: ["profile_id"];
|
|
807
|
+
isOneToOne: false;
|
|
808
|
+
referencedRelation: "public_profiles";
|
|
809
|
+
referencedColumns: ["id"];
|
|
810
|
+
},
|
|
706
811
|
];
|
|
707
812
|
};
|
|
708
813
|
feed_item_shares: {
|
|
@@ -739,6 +844,13 @@ export type Database = {
|
|
|
739
844
|
referencedRelation: "profiles";
|
|
740
845
|
referencedColumns: ["id"];
|
|
741
846
|
},
|
|
847
|
+
{
|
|
848
|
+
foreignKeyName: "feed_item_shares_profile_id_fkey";
|
|
849
|
+
columns: ["profile_id"];
|
|
850
|
+
isOneToOne: false;
|
|
851
|
+
referencedRelation: "public_profiles";
|
|
852
|
+
referencedColumns: ["id"];
|
|
853
|
+
},
|
|
742
854
|
];
|
|
743
855
|
};
|
|
744
856
|
feed_items: {
|
|
@@ -795,6 +907,13 @@ export type Database = {
|
|
|
795
907
|
referencedRelation: "profiles";
|
|
796
908
|
referencedColumns: ["id"];
|
|
797
909
|
},
|
|
910
|
+
{
|
|
911
|
+
foreignKeyName: "feed_items_creator_profile_id_fkey";
|
|
912
|
+
columns: ["creator_profile_id"];
|
|
913
|
+
isOneToOne: false;
|
|
914
|
+
referencedRelation: "public_profiles";
|
|
915
|
+
referencedColumns: ["id"];
|
|
916
|
+
},
|
|
798
917
|
];
|
|
799
918
|
};
|
|
800
919
|
follows: {
|
|
@@ -824,6 +943,13 @@ export type Database = {
|
|
|
824
943
|
referencedRelation: "profiles";
|
|
825
944
|
referencedColumns: ["id"];
|
|
826
945
|
},
|
|
946
|
+
{
|
|
947
|
+
foreignKeyName: "follows_follower_id_fkey";
|
|
948
|
+
columns: ["follower_id"];
|
|
949
|
+
isOneToOne: false;
|
|
950
|
+
referencedRelation: "public_profiles";
|
|
951
|
+
referencedColumns: ["id"];
|
|
952
|
+
},
|
|
827
953
|
{
|
|
828
954
|
foreignKeyName: "follows_following_id_fkey";
|
|
829
955
|
columns: ["following_id"];
|
|
@@ -831,6 +957,13 @@ export type Database = {
|
|
|
831
957
|
referencedRelation: "profiles";
|
|
832
958
|
referencedColumns: ["id"];
|
|
833
959
|
},
|
|
960
|
+
{
|
|
961
|
+
foreignKeyName: "follows_following_id_fkey";
|
|
962
|
+
columns: ["following_id"];
|
|
963
|
+
isOneToOne: false;
|
|
964
|
+
referencedRelation: "public_profiles";
|
|
965
|
+
referencedColumns: ["id"];
|
|
966
|
+
},
|
|
834
967
|
];
|
|
835
968
|
};
|
|
836
969
|
kyc_sessions: {
|
|
@@ -869,6 +1002,13 @@ export type Database = {
|
|
|
869
1002
|
referencedRelation: "profiles";
|
|
870
1003
|
referencedColumns: ["id"];
|
|
871
1004
|
},
|
|
1005
|
+
{
|
|
1006
|
+
foreignKeyName: "kyc_sessions_profile_id_fkey";
|
|
1007
|
+
columns: ["profile_id"];
|
|
1008
|
+
isOneToOne: false;
|
|
1009
|
+
referencedRelation: "public_profiles";
|
|
1010
|
+
referencedColumns: ["id"];
|
|
1011
|
+
},
|
|
872
1012
|
];
|
|
873
1013
|
};
|
|
874
1014
|
kyc_submissions: {
|
|
@@ -934,6 +1074,13 @@ export type Database = {
|
|
|
934
1074
|
referencedRelation: "profiles";
|
|
935
1075
|
referencedColumns: ["id"];
|
|
936
1076
|
},
|
|
1077
|
+
{
|
|
1078
|
+
foreignKeyName: "kyc_submissions_profile_id_fkey";
|
|
1079
|
+
columns: ["profile_id"];
|
|
1080
|
+
isOneToOne: false;
|
|
1081
|
+
referencedRelation: "public_profiles";
|
|
1082
|
+
referencedColumns: ["id"];
|
|
1083
|
+
},
|
|
937
1084
|
{
|
|
938
1085
|
foreignKeyName: "kyc_submissions_reviewed_by_fkey";
|
|
939
1086
|
columns: ["reviewed_by"];
|
|
@@ -941,6 +1088,13 @@ export type Database = {
|
|
|
941
1088
|
referencedRelation: "profiles";
|
|
942
1089
|
referencedColumns: ["id"];
|
|
943
1090
|
},
|
|
1091
|
+
{
|
|
1092
|
+
foreignKeyName: "kyc_submissions_reviewed_by_fkey";
|
|
1093
|
+
columns: ["reviewed_by"];
|
|
1094
|
+
isOneToOne: false;
|
|
1095
|
+
referencedRelation: "public_profiles";
|
|
1096
|
+
referencedColumns: ["id"];
|
|
1097
|
+
},
|
|
944
1098
|
];
|
|
945
1099
|
};
|
|
946
1100
|
manager_role_permissions: {
|
|
@@ -1124,6 +1278,13 @@ export type Database = {
|
|
|
1124
1278
|
referencedRelation: "profiles";
|
|
1125
1279
|
referencedColumns: ["id"];
|
|
1126
1280
|
},
|
|
1281
|
+
{
|
|
1282
|
+
foreignKeyName: "membership_plans_owner_profile_id_fkey";
|
|
1283
|
+
columns: ["owner_profile_id"];
|
|
1284
|
+
isOneToOne: false;
|
|
1285
|
+
referencedRelation: "public_profiles";
|
|
1286
|
+
referencedColumns: ["id"];
|
|
1287
|
+
},
|
|
1127
1288
|
];
|
|
1128
1289
|
};
|
|
1129
1290
|
messages: {
|
|
@@ -1163,6 +1324,13 @@ export type Database = {
|
|
|
1163
1324
|
referencedRelation: "profiles";
|
|
1164
1325
|
referencedColumns: ["id"];
|
|
1165
1326
|
},
|
|
1327
|
+
{
|
|
1328
|
+
foreignKeyName: "messages_sender_id_fkey";
|
|
1329
|
+
columns: ["sender_id"];
|
|
1330
|
+
isOneToOne: false;
|
|
1331
|
+
referencedRelation: "public_profiles";
|
|
1332
|
+
referencedColumns: ["id"];
|
|
1333
|
+
},
|
|
1166
1334
|
];
|
|
1167
1335
|
};
|
|
1168
1336
|
messages_2026_05: {
|
|
@@ -1315,6 +1483,13 @@ export type Database = {
|
|
|
1315
1483
|
referencedRelation: "profiles";
|
|
1316
1484
|
referencedColumns: ["id"];
|
|
1317
1485
|
},
|
|
1486
|
+
{
|
|
1487
|
+
foreignKeyName: "newsletter_post_likes_profile_id_fkey";
|
|
1488
|
+
columns: ["profile_id"];
|
|
1489
|
+
isOneToOne: false;
|
|
1490
|
+
referencedRelation: "public_profiles";
|
|
1491
|
+
referencedColumns: ["id"];
|
|
1492
|
+
},
|
|
1318
1493
|
];
|
|
1319
1494
|
};
|
|
1320
1495
|
newsletter_post_versions: {
|
|
@@ -1445,6 +1620,13 @@ export type Database = {
|
|
|
1445
1620
|
referencedRelation: "profiles";
|
|
1446
1621
|
referencedColumns: ["id"];
|
|
1447
1622
|
},
|
|
1623
|
+
{
|
|
1624
|
+
foreignKeyName: "newsletter_posts_profile_id_fkey";
|
|
1625
|
+
columns: ["profile_id"];
|
|
1626
|
+
isOneToOne: false;
|
|
1627
|
+
referencedRelation: "public_profiles";
|
|
1628
|
+
referencedColumns: ["id"];
|
|
1629
|
+
},
|
|
1448
1630
|
];
|
|
1449
1631
|
};
|
|
1450
1632
|
newsletter_settings: {
|
|
@@ -1521,6 +1703,13 @@ export type Database = {
|
|
|
1521
1703
|
referencedRelation: "profiles";
|
|
1522
1704
|
referencedColumns: ["id"];
|
|
1523
1705
|
},
|
|
1706
|
+
{
|
|
1707
|
+
foreignKeyName: "newsletter_settings_profile_id_fkey";
|
|
1708
|
+
columns: ["profile_id"];
|
|
1709
|
+
isOneToOne: true;
|
|
1710
|
+
referencedRelation: "public_profiles";
|
|
1711
|
+
referencedColumns: ["id"];
|
|
1712
|
+
},
|
|
1524
1713
|
];
|
|
1525
1714
|
};
|
|
1526
1715
|
notification_preference_overrides: {
|
|
@@ -1557,6 +1746,13 @@ export type Database = {
|
|
|
1557
1746
|
referencedRelation: "profiles";
|
|
1558
1747
|
referencedColumns: ["id"];
|
|
1559
1748
|
},
|
|
1749
|
+
{
|
|
1750
|
+
foreignKeyName: "notification_preference_overrides_user_id_fkey";
|
|
1751
|
+
columns: ["user_id"];
|
|
1752
|
+
isOneToOne: false;
|
|
1753
|
+
referencedRelation: "public_profiles";
|
|
1754
|
+
referencedColumns: ["id"];
|
|
1755
|
+
},
|
|
1560
1756
|
];
|
|
1561
1757
|
};
|
|
1562
1758
|
notification_types: {
|
|
@@ -1613,6 +1809,13 @@ export type Database = {
|
|
|
1613
1809
|
referencedRelation: "profiles";
|
|
1614
1810
|
referencedColumns: ["id"];
|
|
1615
1811
|
},
|
|
1812
|
+
{
|
|
1813
|
+
foreignKeyName: "notification_types_email_updated_by_fkey";
|
|
1814
|
+
columns: ["email_updated_by"];
|
|
1815
|
+
isOneToOne: false;
|
|
1816
|
+
referencedRelation: "public_profiles";
|
|
1817
|
+
referencedColumns: ["id"];
|
|
1818
|
+
},
|
|
1616
1819
|
];
|
|
1617
1820
|
};
|
|
1618
1821
|
payout_methods: {
|
|
@@ -1654,6 +1857,13 @@ export type Database = {
|
|
|
1654
1857
|
referencedRelation: "profiles";
|
|
1655
1858
|
referencedColumns: ["id"];
|
|
1656
1859
|
},
|
|
1860
|
+
{
|
|
1861
|
+
foreignKeyName: "payout_methods_profile_id_fkey";
|
|
1862
|
+
columns: ["profile_id"];
|
|
1863
|
+
isOneToOne: false;
|
|
1864
|
+
referencedRelation: "public_profiles";
|
|
1865
|
+
referencedColumns: ["id"];
|
|
1866
|
+
},
|
|
1657
1867
|
];
|
|
1658
1868
|
};
|
|
1659
1869
|
platform_settings: {
|
|
@@ -1770,6 +1980,13 @@ export type Database = {
|
|
|
1770
1980
|
referencedRelation: "profiles";
|
|
1771
1981
|
referencedColumns: ["id"];
|
|
1772
1982
|
},
|
|
1983
|
+
{
|
|
1984
|
+
foreignKeyName: "post_access_grants_granted_by_profile_id_fkey";
|
|
1985
|
+
columns: ["granted_by_profile_id"];
|
|
1986
|
+
isOneToOne: false;
|
|
1987
|
+
referencedRelation: "public_profiles";
|
|
1988
|
+
referencedColumns: ["id"];
|
|
1989
|
+
},
|
|
1773
1990
|
{
|
|
1774
1991
|
foreignKeyName: "post_access_grants_grantee_profile_id_fkey";
|
|
1775
1992
|
columns: ["grantee_profile_id"];
|
|
@@ -1777,6 +1994,13 @@ export type Database = {
|
|
|
1777
1994
|
referencedRelation: "profiles";
|
|
1778
1995
|
referencedColumns: ["id"];
|
|
1779
1996
|
},
|
|
1997
|
+
{
|
|
1998
|
+
foreignKeyName: "post_access_grants_grantee_profile_id_fkey";
|
|
1999
|
+
columns: ["grantee_profile_id"];
|
|
2000
|
+
isOneToOne: false;
|
|
2001
|
+
referencedRelation: "public_profiles";
|
|
2002
|
+
referencedColumns: ["id"];
|
|
2003
|
+
},
|
|
1780
2004
|
{
|
|
1781
2005
|
foreignKeyName: "post_access_grants_post_id_fkey";
|
|
1782
2006
|
columns: ["post_id"];
|
|
@@ -1853,6 +2077,13 @@ export type Database = {
|
|
|
1853
2077
|
referencedRelation: "profiles";
|
|
1854
2078
|
referencedColumns: ["id"];
|
|
1855
2079
|
},
|
|
2080
|
+
{
|
|
2081
|
+
foreignKeyName: "profile_memberships_member_profile_id_fkey";
|
|
2082
|
+
columns: ["member_profile_id"];
|
|
2083
|
+
isOneToOne: false;
|
|
2084
|
+
referencedRelation: "public_profiles";
|
|
2085
|
+
referencedColumns: ["id"];
|
|
2086
|
+
},
|
|
1856
2087
|
{
|
|
1857
2088
|
foreignKeyName: "profile_memberships_owner_profile_id_fkey";
|
|
1858
2089
|
columns: ["owner_profile_id"];
|
|
@@ -1860,6 +2091,13 @@ export type Database = {
|
|
|
1860
2091
|
referencedRelation: "profiles";
|
|
1861
2092
|
referencedColumns: ["id"];
|
|
1862
2093
|
},
|
|
2094
|
+
{
|
|
2095
|
+
foreignKeyName: "profile_memberships_owner_profile_id_fkey";
|
|
2096
|
+
columns: ["owner_profile_id"];
|
|
2097
|
+
isOneToOne: false;
|
|
2098
|
+
referencedRelation: "public_profiles";
|
|
2099
|
+
referencedColumns: ["id"];
|
|
2100
|
+
},
|
|
1863
2101
|
{
|
|
1864
2102
|
foreignKeyName: "profile_memberships_plan_id_fkey";
|
|
1865
2103
|
columns: ["plan_id"];
|
|
@@ -1878,15 +2116,18 @@ export type Database = {
|
|
|
1878
2116
|
};
|
|
1879
2117
|
profiles: {
|
|
1880
2118
|
Row: {
|
|
2119
|
+
accepted_creator_agreement_at: string | null;
|
|
1881
2120
|
allow_gifting: boolean | null;
|
|
1882
2121
|
allow_subscriptions: boolean | null;
|
|
1883
2122
|
avatar_url: string | null;
|
|
1884
2123
|
banner_url: string | null;
|
|
2124
|
+
bin_number: string | null;
|
|
1885
2125
|
bio: string | null;
|
|
1886
2126
|
categories: string[] | null;
|
|
1887
2127
|
coaching_tip: Json | null;
|
|
1888
2128
|
coaching_tip_generated_at: string | null;
|
|
1889
2129
|
created_at: string | null;
|
|
2130
|
+
creator_agreement_version: string | null;
|
|
1890
2131
|
display_name: string | null;
|
|
1891
2132
|
email_notifications_enabled: boolean;
|
|
1892
2133
|
first_service_name: string | null;
|
|
@@ -1908,22 +2149,30 @@ export type Database = {
|
|
|
1908
2149
|
popularity_score: number | null;
|
|
1909
2150
|
role: Database["public"]["Enums"]["user_role"];
|
|
1910
2151
|
social_links: Json | null;
|
|
2152
|
+
suspended_at: string | null;
|
|
2153
|
+
suspended_by: string | null;
|
|
2154
|
+
suspension_reason: string | null;
|
|
1911
2155
|
thank_you_items: Json | null;
|
|
1912
2156
|
theme: Json | null;
|
|
2157
|
+
tin_number: string | null;
|
|
1913
2158
|
total_supporter_count: number | null;
|
|
1914
2159
|
updated_at: string | null;
|
|
1915
2160
|
username: string;
|
|
2161
|
+
vat_registered: boolean;
|
|
1916
2162
|
};
|
|
1917
2163
|
Insert: {
|
|
2164
|
+
accepted_creator_agreement_at?: string | null;
|
|
1918
2165
|
allow_gifting?: boolean | null;
|
|
1919
2166
|
allow_subscriptions?: boolean | null;
|
|
1920
2167
|
avatar_url?: string | null;
|
|
1921
2168
|
banner_url?: string | null;
|
|
2169
|
+
bin_number?: string | null;
|
|
1922
2170
|
bio?: string | null;
|
|
1923
2171
|
categories?: string[] | null;
|
|
1924
2172
|
coaching_tip?: Json | null;
|
|
1925
2173
|
coaching_tip_generated_at?: string | null;
|
|
1926
2174
|
created_at?: string | null;
|
|
2175
|
+
creator_agreement_version?: string | null;
|
|
1927
2176
|
display_name?: string | null;
|
|
1928
2177
|
email_notifications_enabled?: boolean;
|
|
1929
2178
|
first_service_name?: string | null;
|
|
@@ -1945,22 +2194,30 @@ export type Database = {
|
|
|
1945
2194
|
popularity_score?: number | null;
|
|
1946
2195
|
role?: Database["public"]["Enums"]["user_role"];
|
|
1947
2196
|
social_links?: Json | null;
|
|
2197
|
+
suspended_at?: string | null;
|
|
2198
|
+
suspended_by?: string | null;
|
|
2199
|
+
suspension_reason?: string | null;
|
|
1948
2200
|
thank_you_items?: Json | null;
|
|
1949
2201
|
theme?: Json | null;
|
|
2202
|
+
tin_number?: string | null;
|
|
1950
2203
|
total_supporter_count?: number | null;
|
|
1951
2204
|
updated_at?: string | null;
|
|
1952
2205
|
username: string;
|
|
2206
|
+
vat_registered?: boolean;
|
|
1953
2207
|
};
|
|
1954
2208
|
Update: {
|
|
2209
|
+
accepted_creator_agreement_at?: string | null;
|
|
1955
2210
|
allow_gifting?: boolean | null;
|
|
1956
2211
|
allow_subscriptions?: boolean | null;
|
|
1957
2212
|
avatar_url?: string | null;
|
|
1958
2213
|
banner_url?: string | null;
|
|
2214
|
+
bin_number?: string | null;
|
|
1959
2215
|
bio?: string | null;
|
|
1960
2216
|
categories?: string[] | null;
|
|
1961
2217
|
coaching_tip?: Json | null;
|
|
1962
2218
|
coaching_tip_generated_at?: string | null;
|
|
1963
2219
|
created_at?: string | null;
|
|
2220
|
+
creator_agreement_version?: string | null;
|
|
1964
2221
|
display_name?: string | null;
|
|
1965
2222
|
email_notifications_enabled?: boolean;
|
|
1966
2223
|
first_service_name?: string | null;
|
|
@@ -1982,13 +2239,111 @@ export type Database = {
|
|
|
1982
2239
|
popularity_score?: number | null;
|
|
1983
2240
|
role?: Database["public"]["Enums"]["user_role"];
|
|
1984
2241
|
social_links?: Json | null;
|
|
2242
|
+
suspended_at?: string | null;
|
|
2243
|
+
suspended_by?: string | null;
|
|
2244
|
+
suspension_reason?: string | null;
|
|
1985
2245
|
thank_you_items?: Json | null;
|
|
1986
2246
|
theme?: Json | null;
|
|
2247
|
+
tin_number?: string | null;
|
|
1987
2248
|
total_supporter_count?: number | null;
|
|
1988
2249
|
updated_at?: string | null;
|
|
1989
2250
|
username?: string;
|
|
2251
|
+
vat_registered?: boolean;
|
|
1990
2252
|
};
|
|
1991
|
-
Relationships: [
|
|
2253
|
+
Relationships: [
|
|
2254
|
+
{
|
|
2255
|
+
foreignKeyName: "profiles_suspended_by_fkey";
|
|
2256
|
+
columns: ["suspended_by"];
|
|
2257
|
+
isOneToOne: false;
|
|
2258
|
+
referencedRelation: "profiles";
|
|
2259
|
+
referencedColumns: ["id"];
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
foreignKeyName: "profiles_suspended_by_fkey";
|
|
2263
|
+
columns: ["suspended_by"];
|
|
2264
|
+
isOneToOne: false;
|
|
2265
|
+
referencedRelation: "public_profiles";
|
|
2266
|
+
referencedColumns: ["id"];
|
|
2267
|
+
},
|
|
2268
|
+
];
|
|
2269
|
+
};
|
|
2270
|
+
refunds: {
|
|
2271
|
+
Row: {
|
|
2272
|
+
amount: number;
|
|
2273
|
+
created_at: string;
|
|
2274
|
+
id: string;
|
|
2275
|
+
platform_fee_refunded: number;
|
|
2276
|
+
processed_at: string | null;
|
|
2277
|
+
processed_by: string | null;
|
|
2278
|
+
reason: string;
|
|
2279
|
+
requested_by_profile_id: string;
|
|
2280
|
+
status: Database["public"]["Enums"]["refund_status_enum"];
|
|
2281
|
+
transaction_id: string;
|
|
2282
|
+
updated_at: string;
|
|
2283
|
+
};
|
|
2284
|
+
Insert: {
|
|
2285
|
+
amount: number;
|
|
2286
|
+
created_at?: string;
|
|
2287
|
+
id?: string;
|
|
2288
|
+
platform_fee_refunded?: number;
|
|
2289
|
+
processed_at?: string | null;
|
|
2290
|
+
processed_by?: string | null;
|
|
2291
|
+
reason: string;
|
|
2292
|
+
requested_by_profile_id: string;
|
|
2293
|
+
status?: Database["public"]["Enums"]["refund_status_enum"];
|
|
2294
|
+
transaction_id: string;
|
|
2295
|
+
updated_at?: string;
|
|
2296
|
+
};
|
|
2297
|
+
Update: {
|
|
2298
|
+
amount?: number;
|
|
2299
|
+
created_at?: string;
|
|
2300
|
+
id?: string;
|
|
2301
|
+
platform_fee_refunded?: number;
|
|
2302
|
+
processed_at?: string | null;
|
|
2303
|
+
processed_by?: string | null;
|
|
2304
|
+
reason?: string;
|
|
2305
|
+
requested_by_profile_id?: string;
|
|
2306
|
+
status?: Database["public"]["Enums"]["refund_status_enum"];
|
|
2307
|
+
transaction_id?: string;
|
|
2308
|
+
updated_at?: string;
|
|
2309
|
+
};
|
|
2310
|
+
Relationships: [
|
|
2311
|
+
{
|
|
2312
|
+
foreignKeyName: "refunds_processed_by_fkey";
|
|
2313
|
+
columns: ["processed_by"];
|
|
2314
|
+
isOneToOne: false;
|
|
2315
|
+
referencedRelation: "profiles";
|
|
2316
|
+
referencedColumns: ["id"];
|
|
2317
|
+
},
|
|
2318
|
+
{
|
|
2319
|
+
foreignKeyName: "refunds_processed_by_fkey";
|
|
2320
|
+
columns: ["processed_by"];
|
|
2321
|
+
isOneToOne: false;
|
|
2322
|
+
referencedRelation: "public_profiles";
|
|
2323
|
+
referencedColumns: ["id"];
|
|
2324
|
+
},
|
|
2325
|
+
{
|
|
2326
|
+
foreignKeyName: "refunds_requested_by_profile_id_fkey";
|
|
2327
|
+
columns: ["requested_by_profile_id"];
|
|
2328
|
+
isOneToOne: false;
|
|
2329
|
+
referencedRelation: "profiles";
|
|
2330
|
+
referencedColumns: ["id"];
|
|
2331
|
+
},
|
|
2332
|
+
{
|
|
2333
|
+
foreignKeyName: "refunds_requested_by_profile_id_fkey";
|
|
2334
|
+
columns: ["requested_by_profile_id"];
|
|
2335
|
+
isOneToOne: false;
|
|
2336
|
+
referencedRelation: "public_profiles";
|
|
2337
|
+
referencedColumns: ["id"];
|
|
2338
|
+
},
|
|
2339
|
+
{
|
|
2340
|
+
foreignKeyName: "refunds_transaction_id_fkey";
|
|
2341
|
+
columns: ["transaction_id"];
|
|
2342
|
+
isOneToOne: false;
|
|
2343
|
+
referencedRelation: "transactions";
|
|
2344
|
+
referencedColumns: ["id"];
|
|
2345
|
+
},
|
|
2346
|
+
];
|
|
1992
2347
|
};
|
|
1993
2348
|
reviews: {
|
|
1994
2349
|
Row: {
|
|
@@ -2038,6 +2393,13 @@ export type Database = {
|
|
|
2038
2393
|
referencedRelation: "profiles";
|
|
2039
2394
|
referencedColumns: ["id"];
|
|
2040
2395
|
},
|
|
2396
|
+
{
|
|
2397
|
+
foreignKeyName: "reviews_profile_id_fkey";
|
|
2398
|
+
columns: ["profile_id"];
|
|
2399
|
+
isOneToOne: false;
|
|
2400
|
+
referencedRelation: "public_profiles";
|
|
2401
|
+
referencedColumns: ["id"];
|
|
2402
|
+
},
|
|
2041
2403
|
];
|
|
2042
2404
|
};
|
|
2043
2405
|
service_requests: {
|
|
@@ -2085,6 +2447,13 @@ export type Database = {
|
|
|
2085
2447
|
referencedRelation: "profiles";
|
|
2086
2448
|
referencedColumns: ["id"];
|
|
2087
2449
|
},
|
|
2450
|
+
{
|
|
2451
|
+
foreignKeyName: "service_requests_profile_id_fkey";
|
|
2452
|
+
columns: ["profile_id"];
|
|
2453
|
+
isOneToOne: false;
|
|
2454
|
+
referencedRelation: "public_profiles";
|
|
2455
|
+
referencedColumns: ["id"];
|
|
2456
|
+
},
|
|
2088
2457
|
];
|
|
2089
2458
|
};
|
|
2090
2459
|
shop_categories: {
|
|
@@ -2132,6 +2501,13 @@ export type Database = {
|
|
|
2132
2501
|
referencedRelation: "profiles";
|
|
2133
2502
|
referencedColumns: ["id"];
|
|
2134
2503
|
},
|
|
2504
|
+
{
|
|
2505
|
+
foreignKeyName: "shop_categories_profile_id_fkey";
|
|
2506
|
+
columns: ["profile_id"];
|
|
2507
|
+
isOneToOne: false;
|
|
2508
|
+
referencedRelation: "public_profiles";
|
|
2509
|
+
referencedColumns: ["id"];
|
|
2510
|
+
},
|
|
2135
2511
|
];
|
|
2136
2512
|
};
|
|
2137
2513
|
shop_category_drafts: {
|
|
@@ -2189,6 +2565,13 @@ export type Database = {
|
|
|
2189
2565
|
referencedRelation: "profiles";
|
|
2190
2566
|
referencedColumns: ["id"];
|
|
2191
2567
|
},
|
|
2568
|
+
{
|
|
2569
|
+
foreignKeyName: "shop_category_drafts_profile_id_fkey";
|
|
2570
|
+
columns: ["profile_id"];
|
|
2571
|
+
isOneToOne: false;
|
|
2572
|
+
referencedRelation: "public_profiles";
|
|
2573
|
+
referencedColumns: ["id"];
|
|
2574
|
+
},
|
|
2192
2575
|
];
|
|
2193
2576
|
};
|
|
2194
2577
|
shop_download_tokens: {
|
|
@@ -2233,6 +2616,13 @@ export type Database = {
|
|
|
2233
2616
|
referencedRelation: "profiles";
|
|
2234
2617
|
referencedColumns: ["id"];
|
|
2235
2618
|
},
|
|
2619
|
+
{
|
|
2620
|
+
foreignKeyName: "shop_download_tokens_buyer_profile_id_fkey";
|
|
2621
|
+
columns: ["buyer_profile_id"];
|
|
2622
|
+
isOneToOne: false;
|
|
2623
|
+
referencedRelation: "public_profiles";
|
|
2624
|
+
referencedColumns: ["id"];
|
|
2625
|
+
},
|
|
2236
2626
|
{
|
|
2237
2627
|
foreignKeyName: "shop_download_tokens_file_id_fkey";
|
|
2238
2628
|
columns: ["file_id"];
|
|
@@ -2418,6 +2808,13 @@ export type Database = {
|
|
|
2418
2808
|
referencedRelation: "profiles";
|
|
2419
2809
|
referencedColumns: ["id"];
|
|
2420
2810
|
},
|
|
2811
|
+
{
|
|
2812
|
+
foreignKeyName: "shop_orders_buyer_profile_id_fkey";
|
|
2813
|
+
columns: ["buyer_profile_id"];
|
|
2814
|
+
isOneToOne: false;
|
|
2815
|
+
referencedRelation: "public_profiles";
|
|
2816
|
+
referencedColumns: ["id"];
|
|
2817
|
+
},
|
|
2421
2818
|
{
|
|
2422
2819
|
foreignKeyName: "shop_orders_seller_profile_id_fkey";
|
|
2423
2820
|
columns: ["seller_profile_id"];
|
|
@@ -2425,6 +2822,13 @@ export type Database = {
|
|
|
2425
2822
|
referencedRelation: "profiles";
|
|
2426
2823
|
referencedColumns: ["id"];
|
|
2427
2824
|
},
|
|
2825
|
+
{
|
|
2826
|
+
foreignKeyName: "shop_orders_seller_profile_id_fkey";
|
|
2827
|
+
columns: ["seller_profile_id"];
|
|
2828
|
+
isOneToOne: false;
|
|
2829
|
+
referencedRelation: "public_profiles";
|
|
2830
|
+
referencedColumns: ["id"];
|
|
2831
|
+
},
|
|
2428
2832
|
{
|
|
2429
2833
|
foreignKeyName: "shop_orders_transaction_reference_id_fkey";
|
|
2430
2834
|
columns: ["transaction_reference_id"];
|
|
@@ -2470,6 +2874,13 @@ export type Database = {
|
|
|
2470
2874
|
referencedRelation: "profiles";
|
|
2471
2875
|
referencedColumns: ["id"];
|
|
2472
2876
|
},
|
|
2877
|
+
{
|
|
2878
|
+
foreignKeyName: "shop_policies_profile_id_fkey";
|
|
2879
|
+
columns: ["profile_id"];
|
|
2880
|
+
isOneToOne: false;
|
|
2881
|
+
referencedRelation: "public_profiles";
|
|
2882
|
+
referencedColumns: ["id"];
|
|
2883
|
+
},
|
|
2473
2884
|
];
|
|
2474
2885
|
};
|
|
2475
2886
|
shop_product_drafts: {
|
|
@@ -2594,6 +3005,13 @@ export type Database = {
|
|
|
2594
3005
|
referencedRelation: "profiles";
|
|
2595
3006
|
referencedColumns: ["id"];
|
|
2596
3007
|
},
|
|
3008
|
+
{
|
|
3009
|
+
foreignKeyName: "shop_product_drafts_profile_id_fkey";
|
|
3010
|
+
columns: ["profile_id"];
|
|
3011
|
+
isOneToOne: false;
|
|
3012
|
+
referencedRelation: "public_profiles";
|
|
3013
|
+
referencedColumns: ["id"];
|
|
3014
|
+
},
|
|
2597
3015
|
];
|
|
2598
3016
|
};
|
|
2599
3017
|
shop_product_files: {
|
|
@@ -2808,6 +3226,13 @@ export type Database = {
|
|
|
2808
3226
|
referencedRelation: "profiles";
|
|
2809
3227
|
referencedColumns: ["id"];
|
|
2810
3228
|
},
|
|
3229
|
+
{
|
|
3230
|
+
foreignKeyName: "shop_products_profile_id_fkey";
|
|
3231
|
+
columns: ["profile_id"];
|
|
3232
|
+
isOneToOne: false;
|
|
3233
|
+
referencedRelation: "public_profiles";
|
|
3234
|
+
referencedColumns: ["id"];
|
|
3235
|
+
},
|
|
2811
3236
|
];
|
|
2812
3237
|
};
|
|
2813
3238
|
shop_settings: {
|
|
@@ -2900,6 +3325,13 @@ export type Database = {
|
|
|
2900
3325
|
referencedRelation: "profiles";
|
|
2901
3326
|
referencedColumns: ["id"];
|
|
2902
3327
|
},
|
|
3328
|
+
{
|
|
3329
|
+
foreignKeyName: "shop_settings_profile_id_fkey";
|
|
3330
|
+
columns: ["profile_id"];
|
|
3331
|
+
isOneToOne: true;
|
|
3332
|
+
referencedRelation: "public_profiles";
|
|
3333
|
+
referencedColumns: ["id"];
|
|
3334
|
+
},
|
|
2903
3335
|
];
|
|
2904
3336
|
};
|
|
2905
3337
|
supporters: {
|
|
@@ -2978,6 +3410,13 @@ export type Database = {
|
|
|
2978
3410
|
referencedRelation: "profiles";
|
|
2979
3411
|
referencedColumns: ["id"];
|
|
2980
3412
|
},
|
|
3413
|
+
{
|
|
3414
|
+
foreignKeyName: "supporters_creator_id_fkey";
|
|
3415
|
+
columns: ["creator_id"];
|
|
3416
|
+
isOneToOne: false;
|
|
3417
|
+
referencedRelation: "public_profiles";
|
|
3418
|
+
referencedColumns: ["id"];
|
|
3419
|
+
},
|
|
2981
3420
|
{
|
|
2982
3421
|
foreignKeyName: "supporters_user_profile_id_fkey";
|
|
2983
3422
|
columns: ["user_profile_id"];
|
|
@@ -2985,6 +3424,13 @@ export type Database = {
|
|
|
2985
3424
|
referencedRelation: "profiles";
|
|
2986
3425
|
referencedColumns: ["id"];
|
|
2987
3426
|
},
|
|
3427
|
+
{
|
|
3428
|
+
foreignKeyName: "supporters_user_profile_id_fkey";
|
|
3429
|
+
columns: ["user_profile_id"];
|
|
3430
|
+
isOneToOne: false;
|
|
3431
|
+
referencedRelation: "public_profiles";
|
|
3432
|
+
referencedColumns: ["id"];
|
|
3433
|
+
},
|
|
2988
3434
|
];
|
|
2989
3435
|
};
|
|
2990
3436
|
transactions: {
|
|
@@ -2995,7 +3441,10 @@ export type Database = {
|
|
|
2995
3441
|
created_at: string;
|
|
2996
3442
|
creator_profile_id: string | null;
|
|
2997
3443
|
direction: Database["public"]["Enums"]["transaction_direction_enum"];
|
|
3444
|
+
dispute_noted_at: string | null;
|
|
3445
|
+
dispute_noted_by: string | null;
|
|
2998
3446
|
id: string;
|
|
3447
|
+
is_disputed: boolean;
|
|
2999
3448
|
metadata: Json;
|
|
3000
3449
|
net_amount: number;
|
|
3001
3450
|
platform_fee: number;
|
|
@@ -3017,7 +3466,10 @@ export type Database = {
|
|
|
3017
3466
|
created_at?: string;
|
|
3018
3467
|
creator_profile_id?: string | null;
|
|
3019
3468
|
direction: Database["public"]["Enums"]["transaction_direction_enum"];
|
|
3469
|
+
dispute_noted_at?: string | null;
|
|
3470
|
+
dispute_noted_by?: string | null;
|
|
3020
3471
|
id?: string;
|
|
3472
|
+
is_disputed?: boolean;
|
|
3021
3473
|
metadata?: Json;
|
|
3022
3474
|
net_amount: number;
|
|
3023
3475
|
platform_fee?: number;
|
|
@@ -3039,7 +3491,10 @@ export type Database = {
|
|
|
3039
3491
|
created_at?: string;
|
|
3040
3492
|
creator_profile_id?: string | null;
|
|
3041
3493
|
direction?: Database["public"]["Enums"]["transaction_direction_enum"];
|
|
3494
|
+
dispute_noted_at?: string | null;
|
|
3495
|
+
dispute_noted_by?: string | null;
|
|
3042
3496
|
id?: string;
|
|
3497
|
+
is_disputed?: boolean;
|
|
3043
3498
|
metadata?: Json;
|
|
3044
3499
|
net_amount?: number;
|
|
3045
3500
|
platform_fee?: number;
|
|
@@ -3062,6 +3517,13 @@ export type Database = {
|
|
|
3062
3517
|
referencedRelation: "profiles";
|
|
3063
3518
|
referencedColumns: ["id"];
|
|
3064
3519
|
},
|
|
3520
|
+
{
|
|
3521
|
+
foreignKeyName: "transactions_counterparty_profile_id_fkey";
|
|
3522
|
+
columns: ["counterparty_profile_id"];
|
|
3523
|
+
isOneToOne: false;
|
|
3524
|
+
referencedRelation: "public_profiles";
|
|
3525
|
+
referencedColumns: ["id"];
|
|
3526
|
+
},
|
|
3065
3527
|
{
|
|
3066
3528
|
foreignKeyName: "transactions_creator_profile_id_fkey";
|
|
3067
3529
|
columns: ["creator_profile_id"];
|
|
@@ -3069,6 +3531,27 @@ export type Database = {
|
|
|
3069
3531
|
referencedRelation: "profiles";
|
|
3070
3532
|
referencedColumns: ["id"];
|
|
3071
3533
|
},
|
|
3534
|
+
{
|
|
3535
|
+
foreignKeyName: "transactions_creator_profile_id_fkey";
|
|
3536
|
+
columns: ["creator_profile_id"];
|
|
3537
|
+
isOneToOne: false;
|
|
3538
|
+
referencedRelation: "public_profiles";
|
|
3539
|
+
referencedColumns: ["id"];
|
|
3540
|
+
},
|
|
3541
|
+
{
|
|
3542
|
+
foreignKeyName: "transactions_dispute_noted_by_fkey";
|
|
3543
|
+
columns: ["dispute_noted_by"];
|
|
3544
|
+
isOneToOne: false;
|
|
3545
|
+
referencedRelation: "profiles";
|
|
3546
|
+
referencedColumns: ["id"];
|
|
3547
|
+
},
|
|
3548
|
+
{
|
|
3549
|
+
foreignKeyName: "transactions_dispute_noted_by_fkey";
|
|
3550
|
+
columns: ["dispute_noted_by"];
|
|
3551
|
+
isOneToOne: false;
|
|
3552
|
+
referencedRelation: "public_profiles";
|
|
3553
|
+
referencedColumns: ["id"];
|
|
3554
|
+
},
|
|
3072
3555
|
{
|
|
3073
3556
|
foreignKeyName: "transactions_supporter_id_fkey";
|
|
3074
3557
|
columns: ["supporter_id"];
|
|
@@ -3083,6 +3566,13 @@ export type Database = {
|
|
|
3083
3566
|
referencedRelation: "profiles";
|
|
3084
3567
|
referencedColumns: ["id"];
|
|
3085
3568
|
},
|
|
3569
|
+
{
|
|
3570
|
+
foreignKeyName: "transactions_user_profile_id_fkey";
|
|
3571
|
+
columns: ["user_profile_id"];
|
|
3572
|
+
isOneToOne: false;
|
|
3573
|
+
referencedRelation: "public_profiles";
|
|
3574
|
+
referencedColumns: ["id"];
|
|
3575
|
+
},
|
|
3086
3576
|
{
|
|
3087
3577
|
foreignKeyName: "transactions_wallet_id_fkey";
|
|
3088
3578
|
columns: ["wallet_id"];
|
|
@@ -3210,6 +3700,13 @@ export type Database = {
|
|
|
3210
3700
|
referencedRelation: "profiles";
|
|
3211
3701
|
referencedColumns: ["id"];
|
|
3212
3702
|
},
|
|
3703
|
+
{
|
|
3704
|
+
foreignKeyName: "user_addresses_profile_id_fkey";
|
|
3705
|
+
columns: ["profile_id"];
|
|
3706
|
+
isOneToOne: false;
|
|
3707
|
+
referencedRelation: "public_profiles";
|
|
3708
|
+
referencedColumns: ["id"];
|
|
3709
|
+
},
|
|
3213
3710
|
];
|
|
3214
3711
|
};
|
|
3215
3712
|
user_services: {
|
|
@@ -3248,6 +3745,13 @@ export type Database = {
|
|
|
3248
3745
|
referencedRelation: "profiles";
|
|
3249
3746
|
referencedColumns: ["id"];
|
|
3250
3747
|
},
|
|
3748
|
+
{
|
|
3749
|
+
foreignKeyName: "user_services_profile_id_fkey";
|
|
3750
|
+
columns: ["profile_id"];
|
|
3751
|
+
isOneToOne: false;
|
|
3752
|
+
referencedRelation: "public_profiles";
|
|
3753
|
+
referencedColumns: ["id"];
|
|
3754
|
+
},
|
|
3251
3755
|
];
|
|
3252
3756
|
};
|
|
3253
3757
|
wallets: {
|
|
@@ -3289,6 +3793,13 @@ export type Database = {
|
|
|
3289
3793
|
referencedRelation: "profiles";
|
|
3290
3794
|
referencedColumns: ["id"];
|
|
3291
3795
|
},
|
|
3796
|
+
{
|
|
3797
|
+
foreignKeyName: "wallets_profile_id_fkey";
|
|
3798
|
+
columns: ["profile_id"];
|
|
3799
|
+
isOneToOne: true;
|
|
3800
|
+
referencedRelation: "public_profiles";
|
|
3801
|
+
referencedColumns: ["id"];
|
|
3802
|
+
},
|
|
3292
3803
|
];
|
|
3293
3804
|
};
|
|
3294
3805
|
wishlist_signups: {
|
|
@@ -3382,6 +3893,13 @@ export type Database = {
|
|
|
3382
3893
|
referencedRelation: "profiles";
|
|
3383
3894
|
referencedColumns: ["id"];
|
|
3384
3895
|
},
|
|
3896
|
+
{
|
|
3897
|
+
foreignKeyName: "withdrawal_requests_profile_id_fkey";
|
|
3898
|
+
columns: ["profile_id"];
|
|
3899
|
+
isOneToOne: false;
|
|
3900
|
+
referencedRelation: "public_profiles";
|
|
3901
|
+
referencedColumns: ["id"];
|
|
3902
|
+
},
|
|
3385
3903
|
{
|
|
3386
3904
|
foreignKeyName: "withdrawal_requests_superseded_by_fkey";
|
|
3387
3905
|
columns: ["superseded_by"];
|
|
@@ -3400,9 +3918,90 @@ export type Database = {
|
|
|
3400
3918
|
};
|
|
3401
3919
|
};
|
|
3402
3920
|
Views: {
|
|
3403
|
-
|
|
3921
|
+
public_profiles: {
|
|
3922
|
+
Row: {
|
|
3923
|
+
allow_gifting: boolean | null;
|
|
3924
|
+
allow_subscriptions: boolean | null;
|
|
3925
|
+
avatar_url: string | null;
|
|
3926
|
+
banner_url: string | null;
|
|
3927
|
+
bio: string | null;
|
|
3928
|
+
categories: string[] | null;
|
|
3929
|
+
created_at: string | null;
|
|
3930
|
+
display_name: string | null;
|
|
3931
|
+
follower_count: number | null;
|
|
3932
|
+
following_count: number | null;
|
|
3933
|
+
full_name: string | null;
|
|
3934
|
+
id: string | null;
|
|
3935
|
+
is_page_active: boolean | null;
|
|
3936
|
+
is_verified: boolean | null;
|
|
3937
|
+
layout: Json | null;
|
|
3938
|
+
page_slug: string | null;
|
|
3939
|
+
popularity_score: number | null;
|
|
3940
|
+
role: Database["public"]["Enums"]["user_role"] | null;
|
|
3941
|
+
social_links: Json | null;
|
|
3942
|
+
thank_you_items: Json | null;
|
|
3943
|
+
theme: Json | null;
|
|
3944
|
+
total_supporter_count: number | null;
|
|
3945
|
+
updated_at: string | null;
|
|
3946
|
+
username: string | null;
|
|
3947
|
+
};
|
|
3948
|
+
Insert: {
|
|
3949
|
+
allow_gifting?: boolean | null;
|
|
3950
|
+
allow_subscriptions?: boolean | null;
|
|
3951
|
+
avatar_url?: string | null;
|
|
3952
|
+
banner_url?: string | null;
|
|
3953
|
+
bio?: string | null;
|
|
3954
|
+
categories?: string[] | null;
|
|
3955
|
+
created_at?: string | null;
|
|
3956
|
+
display_name?: string | null;
|
|
3957
|
+
follower_count?: number | null;
|
|
3958
|
+
following_count?: number | null;
|
|
3959
|
+
full_name?: string | null;
|
|
3960
|
+
id?: string | null;
|
|
3961
|
+
is_page_active?: boolean | null;
|
|
3962
|
+
is_verified?: boolean | null;
|
|
3963
|
+
layout?: Json | null;
|
|
3964
|
+
page_slug?: string | null;
|
|
3965
|
+
popularity_score?: number | null;
|
|
3966
|
+
role?: Database["public"]["Enums"]["user_role"] | null;
|
|
3967
|
+
social_links?: Json | null;
|
|
3968
|
+
thank_you_items?: Json | null;
|
|
3969
|
+
theme?: Json | null;
|
|
3970
|
+
total_supporter_count?: number | null;
|
|
3971
|
+
updated_at?: string | null;
|
|
3972
|
+
username?: string | null;
|
|
3973
|
+
};
|
|
3974
|
+
Update: {
|
|
3975
|
+
allow_gifting?: boolean | null;
|
|
3976
|
+
allow_subscriptions?: boolean | null;
|
|
3977
|
+
avatar_url?: string | null;
|
|
3978
|
+
banner_url?: string | null;
|
|
3979
|
+
bio?: string | null;
|
|
3980
|
+
categories?: string[] | null;
|
|
3981
|
+
created_at?: string | null;
|
|
3982
|
+
display_name?: string | null;
|
|
3983
|
+
follower_count?: number | null;
|
|
3984
|
+
following_count?: number | null;
|
|
3985
|
+
full_name?: string | null;
|
|
3986
|
+
id?: string | null;
|
|
3987
|
+
is_page_active?: boolean | null;
|
|
3988
|
+
is_verified?: boolean | null;
|
|
3989
|
+
layout?: Json | null;
|
|
3990
|
+
page_slug?: string | null;
|
|
3991
|
+
popularity_score?: number | null;
|
|
3992
|
+
role?: Database["public"]["Enums"]["user_role"] | null;
|
|
3993
|
+
social_links?: Json | null;
|
|
3994
|
+
thank_you_items?: Json | null;
|
|
3995
|
+
theme?: Json | null;
|
|
3996
|
+
total_supporter_count?: number | null;
|
|
3997
|
+
updated_at?: string | null;
|
|
3998
|
+
username?: string | null;
|
|
3999
|
+
};
|
|
4000
|
+
Relationships: [];
|
|
4001
|
+
};
|
|
3404
4002
|
};
|
|
3405
4003
|
Functions: {
|
|
4004
|
+
accept_creator_agreement: { Args: { p_version: string }; Returns: Json };
|
|
3406
4005
|
activate_creator_platform_subscription: {
|
|
3407
4006
|
Args: {
|
|
3408
4007
|
p_creator_profile_id: string;
|
|
@@ -3458,6 +4057,14 @@ export type Database = {
|
|
|
3458
4057
|
Args: { p_months?: number; p_plan_id: number; p_profile_id: string };
|
|
3459
4058
|
Returns: Json;
|
|
3460
4059
|
};
|
|
4060
|
+
admin_process_refund: {
|
|
4061
|
+
Args: {
|
|
4062
|
+
p_new_status: Database["public"]["Enums"]["refund_status_enum"];
|
|
4063
|
+
p_platform_fee_refunded?: number;
|
|
4064
|
+
p_refund_id: string;
|
|
4065
|
+
};
|
|
4066
|
+
Returns: Json;
|
|
4067
|
+
};
|
|
3461
4068
|
admin_reject_kyc: {
|
|
3462
4069
|
Args: {
|
|
3463
4070
|
p_admin_notes?: string;
|
|
@@ -3573,8 +4180,14 @@ export type Database = {
|
|
|
3573
4180
|
Returns: Json;
|
|
3574
4181
|
};
|
|
3575
4182
|
delete_user_address: { Args: { p_address_id: string }; Returns: Json };
|
|
4183
|
+
dismiss_activity: { Args: { p_activity_id: string }; Returns: undefined };
|
|
4184
|
+
dismiss_all_activities: { Args: never; Returns: undefined };
|
|
3576
4185
|
dispatch_pending_email_notifications: { Args: never; Returns: undefined };
|
|
3577
4186
|
drop_old_partitions: { Args: never; Returns: undefined };
|
|
4187
|
+
flag_transaction_disputed: {
|
|
4188
|
+
Args: { p_is_disputed?: boolean; p_transaction_id: string };
|
|
4189
|
+
Returns: Json;
|
|
4190
|
+
};
|
|
3578
4191
|
follow_user: { Args: { target_user_id: string }; Returns: undefined };
|
|
3579
4192
|
get_active_supporters_stats: {
|
|
3580
4193
|
Args: { p_from?: string; p_to?: string };
|
|
@@ -3801,6 +4414,10 @@ export type Database = {
|
|
|
3801
4414
|
Returns: string;
|
|
3802
4415
|
};
|
|
3803
4416
|
get_order_by_number: { Args: { p_order_number: string }; Returns: Json };
|
|
4417
|
+
get_own_role: {
|
|
4418
|
+
Args: never;
|
|
4419
|
+
Returns: Database["public"]["Enums"]["user_role"];
|
|
4420
|
+
};
|
|
3804
4421
|
get_platform_setting: { Args: { p_key: string }; Returns: number };
|
|
3805
4422
|
get_platform_setting_jsonb: { Args: { p_key: string }; Returns: Json };
|
|
3806
4423
|
get_popular_content: {
|
|
@@ -4129,6 +4746,10 @@ export type Database = {
|
|
|
4129
4746
|
};
|
|
4130
4747
|
is_following: { Args: { target_user_id: string }; Returns: boolean };
|
|
4131
4748
|
is_manager: { Args: { user_email: string }; Returns: boolean };
|
|
4749
|
+
link_supporter_conversation: {
|
|
4750
|
+
Args: { p_conversation_id: string; p_supporter_id: string };
|
|
4751
|
+
Returns: undefined;
|
|
4752
|
+
};
|
|
4132
4753
|
mark_conversation_as_read: {
|
|
4133
4754
|
Args: { p_conversation_id: string };
|
|
4134
4755
|
Returns: undefined;
|
|
@@ -4143,6 +4764,7 @@ export type Database = {
|
|
|
4143
4764
|
p_allow_subs?: boolean;
|
|
4144
4765
|
p_is_founder_discount?: boolean;
|
|
4145
4766
|
p_is_page_active?: boolean;
|
|
4767
|
+
p_suspension_reason?: string;
|
|
4146
4768
|
p_user_id: string;
|
|
4147
4769
|
};
|
|
4148
4770
|
Returns: Json;
|
|
@@ -4239,6 +4861,7 @@ export type Database = {
|
|
|
4239
4861
|
Returns: undefined;
|
|
4240
4862
|
};
|
|
4241
4863
|
record_shop_view: { Args: { p_username: string }; Returns: undefined };
|
|
4864
|
+
redeem_shop_download_token: { Args: { p_token: string }; Returns: Json };
|
|
4242
4865
|
reject_newsletter_post: {
|
|
4243
4866
|
Args: { p_post_id: string; p_rejection_reason: string };
|
|
4244
4867
|
Returns: Json;
|
|
@@ -4259,6 +4882,10 @@ export type Database = {
|
|
|
4259
4882
|
Args: { p_product_ids: string[] };
|
|
4260
4883
|
Returns: Json;
|
|
4261
4884
|
};
|
|
4885
|
+
request_refund: {
|
|
4886
|
+
Args: { p_amount?: number; p_reason: string; p_transaction_id: string };
|
|
4887
|
+
Returns: Json;
|
|
4888
|
+
};
|
|
4262
4889
|
request_withdrawal: {
|
|
4263
4890
|
Args: { p_amount: number; p_payout_method_id: string };
|
|
4264
4891
|
Returns: string;
|
|
@@ -4593,6 +5220,7 @@ export type Database = {
|
|
|
4593
5220
|
| "withdraw_release"
|
|
4594
5221
|
| "withdraw_complete"
|
|
4595
5222
|
| "manual_adjustment";
|
|
5223
|
+
refund_status_enum: "requested" | "approved" | "rejected" | "completed";
|
|
4596
5224
|
report_category:
|
|
4597
5225
|
| "bullying_or_harassment"
|
|
4598
5226
|
| "illegal_activity"
|
|
@@ -4890,6 +5518,7 @@ export const Constants = {
|
|
|
4890
5518
|
"withdraw_complete",
|
|
4891
5519
|
"manual_adjustment",
|
|
4892
5520
|
],
|
|
5521
|
+
refund_status_enum: ["requested", "approved", "rejected", "completed"],
|
|
4893
5522
|
report_category: [
|
|
4894
5523
|
"bullying_or_harassment",
|
|
4895
5524
|
"illegal_activity",
|