@hobenakicoffee/libraries 6.20.0 → 7.1.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 +14 -14
- package/src/App.tsx +25 -16
- package/src/index.css +7 -6
- package/src/types/supabase.ts +133 -1
- package/src/vite-env.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hobenakicoffee/libraries",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -53,38 +53,38 @@
|
|
|
53
53
|
"@biomejs/biome": "2.4.0",
|
|
54
54
|
"@mermaid-js/mermaid-mindmap": "^9.3.0",
|
|
55
55
|
"@types/bun": "latest",
|
|
56
|
-
"@types/react": "^19.2.
|
|
56
|
+
"@types/react": "^19.2.17",
|
|
57
57
|
"@types/react-dom": "^19.2.3",
|
|
58
|
-
"@vitejs/plugin-react": "^
|
|
59
|
-
"lefthook": "^2.1.
|
|
60
|
-
"mermaid": "^11.
|
|
58
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
59
|
+
"lefthook": "^2.1.9",
|
|
60
|
+
"mermaid": "^11.15.0",
|
|
61
61
|
"ultracite": "7.2.3",
|
|
62
|
-
"vite": "^
|
|
62
|
+
"vite": "^8.0.16",
|
|
63
63
|
"vite-tsconfig-paths": "^6.1.1",
|
|
64
64
|
"vitepress": "^2.0.0-alpha.17",
|
|
65
65
|
"vitepress-plugin-mermaid": "^2.0.17"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"typescript": "
|
|
68
|
+
"typescript": "6.0.3"
|
|
69
69
|
},
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@fontsource-variable/noto-sans-bengali": "^5.2.11",
|
|
75
|
-
"@tailwindcss/vite": "^4.
|
|
75
|
+
"@tailwindcss/vite": "^4.3.1",
|
|
76
76
|
"class-variance-authority": "^0.7.1",
|
|
77
77
|
"clsx": "^2.1.1",
|
|
78
78
|
"install": "^0.13.0",
|
|
79
79
|
"nuqs": "^2.8.9",
|
|
80
80
|
"obscenity": "^0.4.6",
|
|
81
|
-
"openai": "^6.
|
|
82
|
-
"react": "^19.2.
|
|
83
|
-
"react-dom": "^19.2.
|
|
81
|
+
"openai": "^6.44.0",
|
|
82
|
+
"react": "^19.2.7",
|
|
83
|
+
"react-dom": "^19.2.7",
|
|
84
84
|
"sonner": "^2.0.7",
|
|
85
|
-
"tailwind-merge": "^3.
|
|
86
|
-
"tailwindcss": "^4.
|
|
85
|
+
"tailwind-merge": "^3.6.0",
|
|
86
|
+
"tailwindcss": "^4.3.1",
|
|
87
87
|
"tw-animate-css": "^1.4.0",
|
|
88
|
-
"zod": "^4.3
|
|
88
|
+
"zod": "^4.4.3"
|
|
89
89
|
}
|
|
90
90
|
}
|
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
|
@@ -1878,15 +1878,18 @@ export type Database = {
|
|
|
1878
1878
|
};
|
|
1879
1879
|
profiles: {
|
|
1880
1880
|
Row: {
|
|
1881
|
+
accepted_creator_agreement_at: string | null;
|
|
1881
1882
|
allow_gifting: boolean | null;
|
|
1882
1883
|
allow_subscriptions: boolean | null;
|
|
1883
1884
|
avatar_url: string | null;
|
|
1884
1885
|
banner_url: string | null;
|
|
1886
|
+
bin_number: string | null;
|
|
1885
1887
|
bio: string | null;
|
|
1886
1888
|
categories: string[] | null;
|
|
1887
1889
|
coaching_tip: Json | null;
|
|
1888
1890
|
coaching_tip_generated_at: string | null;
|
|
1889
1891
|
created_at: string | null;
|
|
1892
|
+
creator_agreement_version: string | null;
|
|
1890
1893
|
display_name: string | null;
|
|
1891
1894
|
email_notifications_enabled: boolean;
|
|
1892
1895
|
first_service_name: string | null;
|
|
@@ -1908,22 +1911,30 @@ export type Database = {
|
|
|
1908
1911
|
popularity_score: number | null;
|
|
1909
1912
|
role: Database["public"]["Enums"]["user_role"];
|
|
1910
1913
|
social_links: Json | null;
|
|
1914
|
+
suspended_at: string | null;
|
|
1915
|
+
suspended_by: string | null;
|
|
1916
|
+
suspension_reason: string | null;
|
|
1911
1917
|
thank_you_items: Json | null;
|
|
1912
1918
|
theme: Json | null;
|
|
1919
|
+
tin_number: string | null;
|
|
1913
1920
|
total_supporter_count: number | null;
|
|
1914
1921
|
updated_at: string | null;
|
|
1915
1922
|
username: string;
|
|
1923
|
+
vat_registered: boolean;
|
|
1916
1924
|
};
|
|
1917
1925
|
Insert: {
|
|
1926
|
+
accepted_creator_agreement_at?: string | null;
|
|
1918
1927
|
allow_gifting?: boolean | null;
|
|
1919
1928
|
allow_subscriptions?: boolean | null;
|
|
1920
1929
|
avatar_url?: string | null;
|
|
1921
1930
|
banner_url?: string | null;
|
|
1931
|
+
bin_number?: string | null;
|
|
1922
1932
|
bio?: string | null;
|
|
1923
1933
|
categories?: string[] | null;
|
|
1924
1934
|
coaching_tip?: Json | null;
|
|
1925
1935
|
coaching_tip_generated_at?: string | null;
|
|
1926
1936
|
created_at?: string | null;
|
|
1937
|
+
creator_agreement_version?: string | null;
|
|
1927
1938
|
display_name?: string | null;
|
|
1928
1939
|
email_notifications_enabled?: boolean;
|
|
1929
1940
|
first_service_name?: string | null;
|
|
@@ -1945,22 +1956,30 @@ export type Database = {
|
|
|
1945
1956
|
popularity_score?: number | null;
|
|
1946
1957
|
role?: Database["public"]["Enums"]["user_role"];
|
|
1947
1958
|
social_links?: Json | null;
|
|
1959
|
+
suspended_at?: string | null;
|
|
1960
|
+
suspended_by?: string | null;
|
|
1961
|
+
suspension_reason?: string | null;
|
|
1948
1962
|
thank_you_items?: Json | null;
|
|
1949
1963
|
theme?: Json | null;
|
|
1964
|
+
tin_number?: string | null;
|
|
1950
1965
|
total_supporter_count?: number | null;
|
|
1951
1966
|
updated_at?: string | null;
|
|
1952
1967
|
username: string;
|
|
1968
|
+
vat_registered?: boolean;
|
|
1953
1969
|
};
|
|
1954
1970
|
Update: {
|
|
1971
|
+
accepted_creator_agreement_at?: string | null;
|
|
1955
1972
|
allow_gifting?: boolean | null;
|
|
1956
1973
|
allow_subscriptions?: boolean | null;
|
|
1957
1974
|
avatar_url?: string | null;
|
|
1958
1975
|
banner_url?: string | null;
|
|
1976
|
+
bin_number?: string | null;
|
|
1959
1977
|
bio?: string | null;
|
|
1960
1978
|
categories?: string[] | null;
|
|
1961
1979
|
coaching_tip?: Json | null;
|
|
1962
1980
|
coaching_tip_generated_at?: string | null;
|
|
1963
1981
|
created_at?: string | null;
|
|
1982
|
+
creator_agreement_version?: string | null;
|
|
1964
1983
|
display_name?: string | null;
|
|
1965
1984
|
email_notifications_enabled?: boolean;
|
|
1966
1985
|
first_service_name?: string | null;
|
|
@@ -1982,13 +2001,90 @@ export type Database = {
|
|
|
1982
2001
|
popularity_score?: number | null;
|
|
1983
2002
|
role?: Database["public"]["Enums"]["user_role"];
|
|
1984
2003
|
social_links?: Json | null;
|
|
2004
|
+
suspended_at?: string | null;
|
|
2005
|
+
suspended_by?: string | null;
|
|
2006
|
+
suspension_reason?: string | null;
|
|
1985
2007
|
thank_you_items?: Json | null;
|
|
1986
2008
|
theme?: Json | null;
|
|
2009
|
+
tin_number?: string | null;
|
|
1987
2010
|
total_supporter_count?: number | null;
|
|
1988
2011
|
updated_at?: string | null;
|
|
1989
2012
|
username?: string;
|
|
2013
|
+
vat_registered?: boolean;
|
|
1990
2014
|
};
|
|
1991
|
-
Relationships: [
|
|
2015
|
+
Relationships: [
|
|
2016
|
+
{
|
|
2017
|
+
foreignKeyName: "profiles_suspended_by_fkey";
|
|
2018
|
+
columns: ["suspended_by"];
|
|
2019
|
+
isOneToOne: false;
|
|
2020
|
+
referencedRelation: "profiles";
|
|
2021
|
+
referencedColumns: ["id"];
|
|
2022
|
+
},
|
|
2023
|
+
];
|
|
2024
|
+
};
|
|
2025
|
+
refunds: {
|
|
2026
|
+
Row: {
|
|
2027
|
+
amount: number;
|
|
2028
|
+
created_at: string;
|
|
2029
|
+
id: string;
|
|
2030
|
+
platform_fee_refunded: number;
|
|
2031
|
+
processed_at: string | null;
|
|
2032
|
+
processed_by: string | null;
|
|
2033
|
+
reason: string;
|
|
2034
|
+
requested_by_profile_id: string;
|
|
2035
|
+
status: Database["public"]["Enums"]["refund_status_enum"];
|
|
2036
|
+
transaction_id: string;
|
|
2037
|
+
updated_at: string;
|
|
2038
|
+
};
|
|
2039
|
+
Insert: {
|
|
2040
|
+
amount: number;
|
|
2041
|
+
created_at?: string;
|
|
2042
|
+
id?: string;
|
|
2043
|
+
platform_fee_refunded?: number;
|
|
2044
|
+
processed_at?: string | null;
|
|
2045
|
+
processed_by?: string | null;
|
|
2046
|
+
reason: string;
|
|
2047
|
+
requested_by_profile_id: string;
|
|
2048
|
+
status?: Database["public"]["Enums"]["refund_status_enum"];
|
|
2049
|
+
transaction_id: string;
|
|
2050
|
+
updated_at?: string;
|
|
2051
|
+
};
|
|
2052
|
+
Update: {
|
|
2053
|
+
amount?: number;
|
|
2054
|
+
created_at?: string;
|
|
2055
|
+
id?: string;
|
|
2056
|
+
platform_fee_refunded?: number;
|
|
2057
|
+
processed_at?: string | null;
|
|
2058
|
+
processed_by?: string | null;
|
|
2059
|
+
reason?: string;
|
|
2060
|
+
requested_by_profile_id?: string;
|
|
2061
|
+
status?: Database["public"]["Enums"]["refund_status_enum"];
|
|
2062
|
+
transaction_id?: string;
|
|
2063
|
+
updated_at?: string;
|
|
2064
|
+
};
|
|
2065
|
+
Relationships: [
|
|
2066
|
+
{
|
|
2067
|
+
foreignKeyName: "refunds_processed_by_fkey";
|
|
2068
|
+
columns: ["processed_by"];
|
|
2069
|
+
isOneToOne: false;
|
|
2070
|
+
referencedRelation: "profiles";
|
|
2071
|
+
referencedColumns: ["id"];
|
|
2072
|
+
},
|
|
2073
|
+
{
|
|
2074
|
+
foreignKeyName: "refunds_requested_by_profile_id_fkey";
|
|
2075
|
+
columns: ["requested_by_profile_id"];
|
|
2076
|
+
isOneToOne: false;
|
|
2077
|
+
referencedRelation: "profiles";
|
|
2078
|
+
referencedColumns: ["id"];
|
|
2079
|
+
},
|
|
2080
|
+
{
|
|
2081
|
+
foreignKeyName: "refunds_transaction_id_fkey";
|
|
2082
|
+
columns: ["transaction_id"];
|
|
2083
|
+
isOneToOne: false;
|
|
2084
|
+
referencedRelation: "transactions";
|
|
2085
|
+
referencedColumns: ["id"];
|
|
2086
|
+
},
|
|
2087
|
+
];
|
|
1992
2088
|
};
|
|
1993
2089
|
reviews: {
|
|
1994
2090
|
Row: {
|
|
@@ -2995,7 +3091,10 @@ export type Database = {
|
|
|
2995
3091
|
created_at: string;
|
|
2996
3092
|
creator_profile_id: string | null;
|
|
2997
3093
|
direction: Database["public"]["Enums"]["transaction_direction_enum"];
|
|
3094
|
+
dispute_noted_at: string | null;
|
|
3095
|
+
dispute_noted_by: string | null;
|
|
2998
3096
|
id: string;
|
|
3097
|
+
is_disputed: boolean;
|
|
2999
3098
|
metadata: Json;
|
|
3000
3099
|
net_amount: number;
|
|
3001
3100
|
platform_fee: number;
|
|
@@ -3017,7 +3116,10 @@ export type Database = {
|
|
|
3017
3116
|
created_at?: string;
|
|
3018
3117
|
creator_profile_id?: string | null;
|
|
3019
3118
|
direction: Database["public"]["Enums"]["transaction_direction_enum"];
|
|
3119
|
+
dispute_noted_at?: string | null;
|
|
3120
|
+
dispute_noted_by?: string | null;
|
|
3020
3121
|
id?: string;
|
|
3122
|
+
is_disputed?: boolean;
|
|
3021
3123
|
metadata?: Json;
|
|
3022
3124
|
net_amount: number;
|
|
3023
3125
|
platform_fee?: number;
|
|
@@ -3039,7 +3141,10 @@ export type Database = {
|
|
|
3039
3141
|
created_at?: string;
|
|
3040
3142
|
creator_profile_id?: string | null;
|
|
3041
3143
|
direction?: Database["public"]["Enums"]["transaction_direction_enum"];
|
|
3144
|
+
dispute_noted_at?: string | null;
|
|
3145
|
+
dispute_noted_by?: string | null;
|
|
3042
3146
|
id?: string;
|
|
3147
|
+
is_disputed?: boolean;
|
|
3043
3148
|
metadata?: Json;
|
|
3044
3149
|
net_amount?: number;
|
|
3045
3150
|
platform_fee?: number;
|
|
@@ -3069,6 +3174,13 @@ export type Database = {
|
|
|
3069
3174
|
referencedRelation: "profiles";
|
|
3070
3175
|
referencedColumns: ["id"];
|
|
3071
3176
|
},
|
|
3177
|
+
{
|
|
3178
|
+
foreignKeyName: "transactions_dispute_noted_by_fkey";
|
|
3179
|
+
columns: ["dispute_noted_by"];
|
|
3180
|
+
isOneToOne: false;
|
|
3181
|
+
referencedRelation: "profiles";
|
|
3182
|
+
referencedColumns: ["id"];
|
|
3183
|
+
},
|
|
3072
3184
|
{
|
|
3073
3185
|
foreignKeyName: "transactions_supporter_id_fkey";
|
|
3074
3186
|
columns: ["supporter_id"];
|
|
@@ -3403,6 +3515,7 @@ export type Database = {
|
|
|
3403
3515
|
[_ in never]: never;
|
|
3404
3516
|
};
|
|
3405
3517
|
Functions: {
|
|
3518
|
+
accept_creator_agreement: { Args: { p_version: string }; Returns: Json };
|
|
3406
3519
|
activate_creator_platform_subscription: {
|
|
3407
3520
|
Args: {
|
|
3408
3521
|
p_creator_profile_id: string;
|
|
@@ -3458,6 +3571,14 @@ export type Database = {
|
|
|
3458
3571
|
Args: { p_months?: number; p_plan_id: number; p_profile_id: string };
|
|
3459
3572
|
Returns: Json;
|
|
3460
3573
|
};
|
|
3574
|
+
admin_process_refund: {
|
|
3575
|
+
Args: {
|
|
3576
|
+
p_new_status: Database["public"]["Enums"]["refund_status_enum"];
|
|
3577
|
+
p_platform_fee_refunded?: number;
|
|
3578
|
+
p_refund_id: string;
|
|
3579
|
+
};
|
|
3580
|
+
Returns: Json;
|
|
3581
|
+
};
|
|
3461
3582
|
admin_reject_kyc: {
|
|
3462
3583
|
Args: {
|
|
3463
3584
|
p_admin_notes?: string;
|
|
@@ -3575,6 +3696,10 @@ export type Database = {
|
|
|
3575
3696
|
delete_user_address: { Args: { p_address_id: string }; Returns: Json };
|
|
3576
3697
|
dispatch_pending_email_notifications: { Args: never; Returns: undefined };
|
|
3577
3698
|
drop_old_partitions: { Args: never; Returns: undefined };
|
|
3699
|
+
flag_transaction_disputed: {
|
|
3700
|
+
Args: { p_is_disputed?: boolean; p_transaction_id: string };
|
|
3701
|
+
Returns: Json;
|
|
3702
|
+
};
|
|
3578
3703
|
follow_user: { Args: { target_user_id: string }; Returns: undefined };
|
|
3579
3704
|
get_active_supporters_stats: {
|
|
3580
3705
|
Args: { p_from?: string; p_to?: string };
|
|
@@ -4143,6 +4268,7 @@ export type Database = {
|
|
|
4143
4268
|
p_allow_subs?: boolean;
|
|
4144
4269
|
p_is_founder_discount?: boolean;
|
|
4145
4270
|
p_is_page_active?: boolean;
|
|
4271
|
+
p_suspension_reason?: string;
|
|
4146
4272
|
p_user_id: string;
|
|
4147
4273
|
};
|
|
4148
4274
|
Returns: Json;
|
|
@@ -4259,6 +4385,10 @@ export type Database = {
|
|
|
4259
4385
|
Args: { p_product_ids: string[] };
|
|
4260
4386
|
Returns: Json;
|
|
4261
4387
|
};
|
|
4388
|
+
request_refund: {
|
|
4389
|
+
Args: { p_amount?: number; p_reason: string; p_transaction_id: string };
|
|
4390
|
+
Returns: Json;
|
|
4391
|
+
};
|
|
4262
4392
|
request_withdrawal: {
|
|
4263
4393
|
Args: { p_amount: number; p_payout_method_id: string };
|
|
4264
4394
|
Returns: string;
|
|
@@ -4593,6 +4723,7 @@ export type Database = {
|
|
|
4593
4723
|
| "withdraw_release"
|
|
4594
4724
|
| "withdraw_complete"
|
|
4595
4725
|
| "manual_adjustment";
|
|
4726
|
+
refund_status_enum: "requested" | "approved" | "rejected" | "completed";
|
|
4596
4727
|
report_category:
|
|
4597
4728
|
| "bullying_or_harassment"
|
|
4598
4729
|
| "illegal_activity"
|
|
@@ -4890,6 +5021,7 @@ export const Constants = {
|
|
|
4890
5021
|
"withdraw_complete",
|
|
4891
5022
|
"manual_adjustment",
|
|
4892
5023
|
],
|
|
5024
|
+
refund_status_enum: ["requested", "approved", "rejected", "completed"],
|
|
4893
5025
|
report_category: [
|
|
4894
5026
|
"bullying_or_harassment",
|
|
4895
5027
|
"illegal_activity",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|