@nextblock-cms/db 0.2.32 → 0.8.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/cache-Bb4TkKGq.js +38 -0
- package/cache-D0Q6YeSV.mjs +10150 -0
- package/index.cjs.js +1 -1
- package/index.es.js +66 -61
- package/package.json +1 -1
- package/server.cjs.js +1 -1
- package/server.es.js +48 -43
- package/supabase/config.toml +330 -319
- package/supabase/functions/import_map.json +6 -0
- package/supabase/functions/nextblock-migration-ingest/index.d.ts +1 -0
- package/supabase/functions/nextblock-migration-ingest/index.js +519 -0
- package/supabase/functions/nextblock-migration-ingest/index.js.map +7 -0
- package/supabase/functions/nextblock-migration-ingest/index.ts +646 -0
- package/supabase/migrations/00000000000000_setup_foundation_and_enums.sql +40 -0
- package/supabase/migrations/00000000000001_setup_cms_core.sql +124 -0
- package/supabase/migrations/00000000000002_setup_content_tables.sql +138 -0
- package/supabase/migrations/00000000000003_setup_catalog_and_licensing.sql +160 -0
- package/supabase/migrations/00000000000004_setup_fulfillment_shipping_taxes_and_currencies.sql +797 -0
- package/supabase/migrations/00000000000005_setup_functions_and_triggers.sql +767 -0
- package/supabase/migrations/00000000000006_setup_rls_and_grants.sql +872 -0
- package/supabase/migrations/00000000000007_setup_indexes.sql +158 -0
- package/supabase/migrations/00000000000008_seed_platform_defaults.sql +155 -0
- package/supabase/migrations/00000000000009_seed_translations.sql +801 -0
- package/supabase/migrations/00000000000010_seed_content_scaffold.sql +1088 -0
- package/supabase/migrations/00000000000011_setup_cortex_ai_settings.sql +81 -0
- package/supabase/migrations/00000000000012_setup_commerce_coupons.sql +275 -0
- package/supabase/migrations/00000000000013_setup_cortex_ai_db_mutation_audit.sql +47 -0
- package/supabase/migrations/00000000000014_setup_content_drafts.sql +119 -0
- package/supabase/migrations/00000000000015_setup_product_drafts.sql +97 -0
- package/supabase/migrations/00000000000016_add_feature_image_to_pages.sql +8 -0
- package/supabase/migrations/00000000000017_add_product_blocks.sql +118 -0
- package/supabase/migrations/00000000000018_setup_bot_protection_settings.sql +77 -0
- package/supabase/migrations/00000000000019_add_product_categories.sql +64 -0
- package/supabase/migrations/00000000000020_add_category_translations.sql +10 -0
- package/supabase/migrations/00000000000021_migrate_hero_blocks_to_sections.sql +29 -0
- package/supabase/migrations/00000000000022_seed_cortex_ai_guide_post.sql +184 -0
- package/supabase/migrations/00000000000023_setup_custom_block_definitions.sql +183 -0
- package/supabase/migrations/00000000000024_setup_ucp_cart_sessions.sql +72 -0
- package/supabase/migrations/00000000000025_add_sale_schedule_columns.sql +406 -0
- package/supabase/migrations/00000000000026_seed_on_sale_translation.sql +9 -0
- package/supabase/migrations/00000000000027_setup_privacy_and_mfa.sql +479 -0
- package/supabase/migrations/00000000000028_clear_advisor_warnings.sql +93 -0
- package/supabase/migrations/00000000000029_refresh_setup_article.sql +252 -0
- package/supabase/templates/confirmation.html +54 -0
- package/supabase/templates/email_change.html +53 -0
- package/supabase/templates/invite.html +53 -0
- package/supabase/templates/magic_link.html +53 -0
- package/supabase/templates/reauthentication.html +45 -0
- package/supabase/templates/recovery.html +54 -0
- package/index.d.ts +0 -4
- package/lib/supabase/client.d.ts +0 -9
- package/lib/supabase/middleware.d.ts +0 -2
- package/lib/supabase/server.d.ts +0 -7
- package/lib/supabase/ssg-client.d.ts +0 -2
- package/lib/supabase/types.d.ts +0 -635
- package/server.d.ts +0 -2
- package/ssg-client-CiaENGEv.js +0 -1
- package/ssg-client-DgUYZgPq.mjs +0 -8
- package/supabase/migrations/00000000000000_setup_extensions_and_roles.sql +0 -54
- package/supabase/migrations/00000000000001_setup_site_settings.sql +0 -19
- package/supabase/migrations/00000000000002_setup_profiles.sql +0 -87
- package/supabase/migrations/00000000000003_setup_languages.sql +0 -43
- package/supabase/migrations/00000000000004_setup_media.sql +0 -54
- package/supabase/migrations/00000000000005_setup_posts.sql +0 -56
- package/supabase/migrations/00000000000006_setup_pages.sql +0 -51
- package/supabase/migrations/00000000000007_setup_blocks.sql +0 -47
- package/supabase/migrations/00000000000008_setup_navigation.sql +0 -51
- package/supabase/migrations/00000000000009_setup_logos.sql +0 -13
- package/supabase/migrations/00000000000010_setup_translations.sql +0 -29
- package/supabase/migrations/00000000000011_setup_revisions.sql +0 -38
- package/supabase/migrations/00000000000012_setup_rls_policies.sql +0 -239
- package/supabase/migrations/00000000000013_seed_data.sql +0 -149
- package/supabase/migrations/00000000000014_seed_homepage_blocks.sql +0 -661
- package/supabase/migrations/00000000000015_seed_how_it_works.sql +0 -89
- package/supabase/migrations/00000000000016_sandbox_setup.sql +0 -834
package/lib/supabase/types.d.ts
DELETED
|
@@ -1,635 +0,0 @@
|
|
|
1
|
-
export type Json = string | number | boolean | null | {
|
|
2
|
-
[key: string]: Json | undefined;
|
|
3
|
-
} | Json[];
|
|
4
|
-
export type Database = {
|
|
5
|
-
__InternalSupabase: {
|
|
6
|
-
PostgrestVersion: "12.2.3 (519615d)";
|
|
7
|
-
};
|
|
8
|
-
public: {
|
|
9
|
-
Tables: {
|
|
10
|
-
blocks: {
|
|
11
|
-
Row: {
|
|
12
|
-
block_type: string;
|
|
13
|
-
content: Json | null;
|
|
14
|
-
created_at: string;
|
|
15
|
-
id: number;
|
|
16
|
-
language_id: number;
|
|
17
|
-
order: number;
|
|
18
|
-
page_id: number | null;
|
|
19
|
-
post_id: number | null;
|
|
20
|
-
updated_at: string;
|
|
21
|
-
};
|
|
22
|
-
Insert: {
|
|
23
|
-
block_type: string;
|
|
24
|
-
content?: Json | null;
|
|
25
|
-
created_at?: string;
|
|
26
|
-
id?: number;
|
|
27
|
-
language_id: number;
|
|
28
|
-
order?: number;
|
|
29
|
-
page_id?: number | null;
|
|
30
|
-
post_id?: number | null;
|
|
31
|
-
updated_at?: string;
|
|
32
|
-
};
|
|
33
|
-
Update: {
|
|
34
|
-
block_type?: string;
|
|
35
|
-
content?: Json | null;
|
|
36
|
-
created_at?: string;
|
|
37
|
-
id?: number;
|
|
38
|
-
language_id?: number;
|
|
39
|
-
order?: number;
|
|
40
|
-
page_id?: number | null;
|
|
41
|
-
post_id?: number | null;
|
|
42
|
-
updated_at?: string;
|
|
43
|
-
};
|
|
44
|
-
Relationships: [
|
|
45
|
-
{
|
|
46
|
-
foreignKeyName: "blocks_language_id_fkey";
|
|
47
|
-
columns: ["language_id"];
|
|
48
|
-
isOneToOne: false;
|
|
49
|
-
referencedRelation: "languages";
|
|
50
|
-
referencedColumns: ["id"];
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
foreignKeyName: "blocks_page_id_fkey";
|
|
54
|
-
columns: ["page_id"];
|
|
55
|
-
isOneToOne: false;
|
|
56
|
-
referencedRelation: "pages";
|
|
57
|
-
referencedColumns: ["id"];
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
foreignKeyName: "blocks_post_id_fkey";
|
|
61
|
-
columns: ["post_id"];
|
|
62
|
-
isOneToOne: false;
|
|
63
|
-
referencedRelation: "posts";
|
|
64
|
-
referencedColumns: ["id"];
|
|
65
|
-
}
|
|
66
|
-
];
|
|
67
|
-
};
|
|
68
|
-
languages: {
|
|
69
|
-
Row: {
|
|
70
|
-
code: string;
|
|
71
|
-
created_at: string;
|
|
72
|
-
id: number;
|
|
73
|
-
is_active: boolean;
|
|
74
|
-
is_default: boolean;
|
|
75
|
-
name: string;
|
|
76
|
-
updated_at: string;
|
|
77
|
-
};
|
|
78
|
-
Insert: {
|
|
79
|
-
code: string;
|
|
80
|
-
created_at?: string;
|
|
81
|
-
id?: number;
|
|
82
|
-
is_active?: boolean;
|
|
83
|
-
is_default?: boolean;
|
|
84
|
-
name: string;
|
|
85
|
-
updated_at?: string;
|
|
86
|
-
};
|
|
87
|
-
Update: {
|
|
88
|
-
code?: string;
|
|
89
|
-
created_at?: string;
|
|
90
|
-
id?: number;
|
|
91
|
-
is_active?: boolean;
|
|
92
|
-
is_default?: boolean;
|
|
93
|
-
name?: string;
|
|
94
|
-
updated_at?: string;
|
|
95
|
-
};
|
|
96
|
-
Relationships: [];
|
|
97
|
-
};
|
|
98
|
-
logos: {
|
|
99
|
-
Row: {
|
|
100
|
-
created_at: string;
|
|
101
|
-
id: string;
|
|
102
|
-
media_id: string | null;
|
|
103
|
-
name: string;
|
|
104
|
-
};
|
|
105
|
-
Insert: {
|
|
106
|
-
created_at?: string;
|
|
107
|
-
id?: string;
|
|
108
|
-
media_id?: string | null;
|
|
109
|
-
name: string;
|
|
110
|
-
};
|
|
111
|
-
Update: {
|
|
112
|
-
created_at?: string;
|
|
113
|
-
id?: string;
|
|
114
|
-
media_id?: string | null;
|
|
115
|
-
name?: string;
|
|
116
|
-
};
|
|
117
|
-
Relationships: [
|
|
118
|
-
{
|
|
119
|
-
foreignKeyName: "logos_media_id_fkey";
|
|
120
|
-
columns: ["media_id"];
|
|
121
|
-
isOneToOne: false;
|
|
122
|
-
referencedRelation: "media";
|
|
123
|
-
referencedColumns: ["id"];
|
|
124
|
-
}
|
|
125
|
-
];
|
|
126
|
-
};
|
|
127
|
-
media: {
|
|
128
|
-
Row: {
|
|
129
|
-
blur_data_url: string | null;
|
|
130
|
-
created_at: string;
|
|
131
|
-
description: string | null;
|
|
132
|
-
file_name: string;
|
|
133
|
-
file_path: string | null;
|
|
134
|
-
file_type: string | null;
|
|
135
|
-
folder: string | null;
|
|
136
|
-
height: number | null;
|
|
137
|
-
id: string;
|
|
138
|
-
object_key: string;
|
|
139
|
-
size_bytes: number | null;
|
|
140
|
-
updated_at: string;
|
|
141
|
-
uploader_id: string | null;
|
|
142
|
-
variants: Json | null;
|
|
143
|
-
width: number | null;
|
|
144
|
-
};
|
|
145
|
-
Insert: {
|
|
146
|
-
blur_data_url?: string | null;
|
|
147
|
-
created_at?: string;
|
|
148
|
-
description?: string | null;
|
|
149
|
-
file_name: string;
|
|
150
|
-
file_path?: string | null;
|
|
151
|
-
file_type?: string | null;
|
|
152
|
-
folder?: string | null;
|
|
153
|
-
height?: number | null;
|
|
154
|
-
id?: string;
|
|
155
|
-
object_key: string;
|
|
156
|
-
size_bytes?: number | null;
|
|
157
|
-
updated_at?: string;
|
|
158
|
-
uploader_id?: string | null;
|
|
159
|
-
variants?: Json | null;
|
|
160
|
-
width?: number | null;
|
|
161
|
-
};
|
|
162
|
-
Update: {
|
|
163
|
-
blur_data_url?: string | null;
|
|
164
|
-
created_at?: string;
|
|
165
|
-
description?: string | null;
|
|
166
|
-
file_name?: string;
|
|
167
|
-
file_path?: string | null;
|
|
168
|
-
file_type?: string | null;
|
|
169
|
-
folder?: string | null;
|
|
170
|
-
height?: number | null;
|
|
171
|
-
id?: string;
|
|
172
|
-
object_key?: string;
|
|
173
|
-
size_bytes?: number | null;
|
|
174
|
-
updated_at?: string;
|
|
175
|
-
uploader_id?: string | null;
|
|
176
|
-
variants?: Json | null;
|
|
177
|
-
width?: number | null;
|
|
178
|
-
};
|
|
179
|
-
Relationships: [
|
|
180
|
-
{
|
|
181
|
-
foreignKeyName: "media_uploader_id_fkey";
|
|
182
|
-
columns: ["uploader_id"];
|
|
183
|
-
isOneToOne: false;
|
|
184
|
-
referencedRelation: "profiles";
|
|
185
|
-
referencedColumns: ["id"];
|
|
186
|
-
}
|
|
187
|
-
];
|
|
188
|
-
};
|
|
189
|
-
navigation_items: {
|
|
190
|
-
Row: {
|
|
191
|
-
created_at: string;
|
|
192
|
-
id: number;
|
|
193
|
-
label: string;
|
|
194
|
-
language_id: number;
|
|
195
|
-
menu_key: Database["public"]["Enums"]["menu_location"];
|
|
196
|
-
order: number;
|
|
197
|
-
page_id: number | null;
|
|
198
|
-
parent_id: number | null;
|
|
199
|
-
translation_group_id: string;
|
|
200
|
-
updated_at: string;
|
|
201
|
-
url: string;
|
|
202
|
-
};
|
|
203
|
-
Insert: {
|
|
204
|
-
created_at?: string;
|
|
205
|
-
id?: number;
|
|
206
|
-
label: string;
|
|
207
|
-
language_id: number;
|
|
208
|
-
menu_key: Database["public"]["Enums"]["menu_location"];
|
|
209
|
-
order?: number;
|
|
210
|
-
page_id?: number | null;
|
|
211
|
-
parent_id?: number | null;
|
|
212
|
-
translation_group_id?: string;
|
|
213
|
-
updated_at?: string;
|
|
214
|
-
url: string;
|
|
215
|
-
};
|
|
216
|
-
Update: {
|
|
217
|
-
created_at?: string;
|
|
218
|
-
id?: number;
|
|
219
|
-
label?: string;
|
|
220
|
-
language_id?: number;
|
|
221
|
-
menu_key?: Database["public"]["Enums"]["menu_location"];
|
|
222
|
-
order?: number;
|
|
223
|
-
page_id?: number | null;
|
|
224
|
-
parent_id?: number | null;
|
|
225
|
-
translation_group_id?: string;
|
|
226
|
-
updated_at?: string;
|
|
227
|
-
url?: string;
|
|
228
|
-
};
|
|
229
|
-
Relationships: [
|
|
230
|
-
{
|
|
231
|
-
foreignKeyName: "navigation_items_language_id_fkey";
|
|
232
|
-
columns: ["language_id"];
|
|
233
|
-
isOneToOne: false;
|
|
234
|
-
referencedRelation: "languages";
|
|
235
|
-
referencedColumns: ["id"];
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
foreignKeyName: "navigation_items_page_id_fkey";
|
|
239
|
-
columns: ["page_id"];
|
|
240
|
-
isOneToOne: false;
|
|
241
|
-
referencedRelation: "pages";
|
|
242
|
-
referencedColumns: ["id"];
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
foreignKeyName: "navigation_items_parent_id_fkey";
|
|
246
|
-
columns: ["parent_id"];
|
|
247
|
-
isOneToOne: false;
|
|
248
|
-
referencedRelation: "navigation_items";
|
|
249
|
-
referencedColumns: ["id"];
|
|
250
|
-
}
|
|
251
|
-
];
|
|
252
|
-
};
|
|
253
|
-
page_revisions: {
|
|
254
|
-
Row: {
|
|
255
|
-
author_id: string | null;
|
|
256
|
-
content: Json;
|
|
257
|
-
created_at: string;
|
|
258
|
-
id: number;
|
|
259
|
-
page_id: number;
|
|
260
|
-
revision_type: Database["public"]["Enums"]["revision_type"];
|
|
261
|
-
version: number;
|
|
262
|
-
};
|
|
263
|
-
Insert: {
|
|
264
|
-
author_id?: string | null;
|
|
265
|
-
content: Json;
|
|
266
|
-
created_at?: string;
|
|
267
|
-
id?: number;
|
|
268
|
-
page_id: number;
|
|
269
|
-
revision_type: Database["public"]["Enums"]["revision_type"];
|
|
270
|
-
version: number;
|
|
271
|
-
};
|
|
272
|
-
Update: {
|
|
273
|
-
author_id?: string | null;
|
|
274
|
-
content?: Json;
|
|
275
|
-
created_at?: string;
|
|
276
|
-
id?: number;
|
|
277
|
-
page_id?: number;
|
|
278
|
-
revision_type?: Database["public"]["Enums"]["revision_type"];
|
|
279
|
-
version?: number;
|
|
280
|
-
};
|
|
281
|
-
Relationships: [
|
|
282
|
-
{
|
|
283
|
-
foreignKeyName: "page_revisions_author_id_fkey";
|
|
284
|
-
columns: ["author_id"];
|
|
285
|
-
isOneToOne: false;
|
|
286
|
-
referencedRelation: "profiles";
|
|
287
|
-
referencedColumns: ["id"];
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
foreignKeyName: "page_revisions_page_id_fkey";
|
|
291
|
-
columns: ["page_id"];
|
|
292
|
-
isOneToOne: false;
|
|
293
|
-
referencedRelation: "pages";
|
|
294
|
-
referencedColumns: ["id"];
|
|
295
|
-
}
|
|
296
|
-
];
|
|
297
|
-
};
|
|
298
|
-
pages: {
|
|
299
|
-
Row: {
|
|
300
|
-
author_id: string | null;
|
|
301
|
-
created_at: string;
|
|
302
|
-
id: number;
|
|
303
|
-
language_id: number;
|
|
304
|
-
meta_description: string | null;
|
|
305
|
-
meta_title: string | null;
|
|
306
|
-
slug: string;
|
|
307
|
-
status: Database["public"]["Enums"]["page_status"];
|
|
308
|
-
title: string;
|
|
309
|
-
translation_group_id: string;
|
|
310
|
-
updated_at: string;
|
|
311
|
-
version: number;
|
|
312
|
-
};
|
|
313
|
-
Insert: {
|
|
314
|
-
author_id?: string | null;
|
|
315
|
-
created_at?: string;
|
|
316
|
-
id?: number;
|
|
317
|
-
language_id: number;
|
|
318
|
-
meta_description?: string | null;
|
|
319
|
-
meta_title?: string | null;
|
|
320
|
-
slug: string;
|
|
321
|
-
status?: Database["public"]["Enums"]["page_status"];
|
|
322
|
-
title: string;
|
|
323
|
-
translation_group_id?: string;
|
|
324
|
-
updated_at?: string;
|
|
325
|
-
version?: number;
|
|
326
|
-
};
|
|
327
|
-
Update: {
|
|
328
|
-
author_id?: string | null;
|
|
329
|
-
created_at?: string;
|
|
330
|
-
id?: number;
|
|
331
|
-
language_id?: number;
|
|
332
|
-
meta_description?: string | null;
|
|
333
|
-
meta_title?: string | null;
|
|
334
|
-
slug?: string;
|
|
335
|
-
status?: Database["public"]["Enums"]["page_status"];
|
|
336
|
-
title?: string;
|
|
337
|
-
translation_group_id?: string;
|
|
338
|
-
updated_at?: string;
|
|
339
|
-
version?: number;
|
|
340
|
-
};
|
|
341
|
-
Relationships: [
|
|
342
|
-
{
|
|
343
|
-
foreignKeyName: "pages_author_id_fkey";
|
|
344
|
-
columns: ["author_id"];
|
|
345
|
-
isOneToOne: false;
|
|
346
|
-
referencedRelation: "profiles";
|
|
347
|
-
referencedColumns: ["id"];
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
foreignKeyName: "pages_language_id_fkey";
|
|
351
|
-
columns: ["language_id"];
|
|
352
|
-
isOneToOne: false;
|
|
353
|
-
referencedRelation: "languages";
|
|
354
|
-
referencedColumns: ["id"];
|
|
355
|
-
}
|
|
356
|
-
];
|
|
357
|
-
};
|
|
358
|
-
post_revisions: {
|
|
359
|
-
Row: {
|
|
360
|
-
author_id: string | null;
|
|
361
|
-
content: Json;
|
|
362
|
-
created_at: string;
|
|
363
|
-
id: number;
|
|
364
|
-
post_id: number;
|
|
365
|
-
revision_type: Database["public"]["Enums"]["revision_type"];
|
|
366
|
-
version: number;
|
|
367
|
-
};
|
|
368
|
-
Insert: {
|
|
369
|
-
author_id?: string | null;
|
|
370
|
-
content: Json;
|
|
371
|
-
created_at?: string;
|
|
372
|
-
id?: number;
|
|
373
|
-
post_id: number;
|
|
374
|
-
revision_type: Database["public"]["Enums"]["revision_type"];
|
|
375
|
-
version: number;
|
|
376
|
-
};
|
|
377
|
-
Update: {
|
|
378
|
-
author_id?: string | null;
|
|
379
|
-
content?: Json;
|
|
380
|
-
created_at?: string;
|
|
381
|
-
id?: number;
|
|
382
|
-
post_id?: number;
|
|
383
|
-
revision_type?: Database["public"]["Enums"]["revision_type"];
|
|
384
|
-
version?: number;
|
|
385
|
-
};
|
|
386
|
-
Relationships: [
|
|
387
|
-
{
|
|
388
|
-
foreignKeyName: "post_revisions_author_id_fkey";
|
|
389
|
-
columns: ["author_id"];
|
|
390
|
-
isOneToOne: false;
|
|
391
|
-
referencedRelation: "profiles";
|
|
392
|
-
referencedColumns: ["id"];
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
foreignKeyName: "post_revisions_post_id_fkey";
|
|
396
|
-
columns: ["post_id"];
|
|
397
|
-
isOneToOne: false;
|
|
398
|
-
referencedRelation: "posts";
|
|
399
|
-
referencedColumns: ["id"];
|
|
400
|
-
}
|
|
401
|
-
];
|
|
402
|
-
};
|
|
403
|
-
posts: {
|
|
404
|
-
Row: {
|
|
405
|
-
author_id: string | null;
|
|
406
|
-
created_at: string;
|
|
407
|
-
excerpt: string | null;
|
|
408
|
-
feature_image_id: string | null;
|
|
409
|
-
id: number;
|
|
410
|
-
language_id: number;
|
|
411
|
-
meta_description: string | null;
|
|
412
|
-
meta_title: string | null;
|
|
413
|
-
published_at: string | null;
|
|
414
|
-
slug: string;
|
|
415
|
-
status: Database["public"]["Enums"]["page_status"];
|
|
416
|
-
title: string;
|
|
417
|
-
translation_group_id: string;
|
|
418
|
-
updated_at: string;
|
|
419
|
-
version: number;
|
|
420
|
-
};
|
|
421
|
-
Insert: {
|
|
422
|
-
author_id?: string | null;
|
|
423
|
-
created_at?: string;
|
|
424
|
-
excerpt?: string | null;
|
|
425
|
-
feature_image_id?: string | null;
|
|
426
|
-
id?: number;
|
|
427
|
-
language_id: number;
|
|
428
|
-
meta_description?: string | null;
|
|
429
|
-
meta_title?: string | null;
|
|
430
|
-
published_at?: string | null;
|
|
431
|
-
slug: string;
|
|
432
|
-
status?: Database["public"]["Enums"]["page_status"];
|
|
433
|
-
title: string;
|
|
434
|
-
translation_group_id?: string;
|
|
435
|
-
updated_at?: string;
|
|
436
|
-
version?: number;
|
|
437
|
-
};
|
|
438
|
-
Update: {
|
|
439
|
-
author_id?: string | null;
|
|
440
|
-
created_at?: string;
|
|
441
|
-
excerpt?: string | null;
|
|
442
|
-
feature_image_id?: string | null;
|
|
443
|
-
id?: number;
|
|
444
|
-
language_id?: number;
|
|
445
|
-
meta_description?: string | null;
|
|
446
|
-
meta_title?: string | null;
|
|
447
|
-
published_at?: string | null;
|
|
448
|
-
slug?: string;
|
|
449
|
-
status?: Database["public"]["Enums"]["page_status"];
|
|
450
|
-
title?: string;
|
|
451
|
-
translation_group_id?: string;
|
|
452
|
-
updated_at?: string;
|
|
453
|
-
version?: number;
|
|
454
|
-
};
|
|
455
|
-
Relationships: [
|
|
456
|
-
{
|
|
457
|
-
foreignKeyName: "fk_feature_image";
|
|
458
|
-
columns: ["feature_image_id"];
|
|
459
|
-
isOneToOne: false;
|
|
460
|
-
referencedRelation: "media";
|
|
461
|
-
referencedColumns: ["id"];
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
foreignKeyName: "posts_author_id_fkey";
|
|
465
|
-
columns: ["author_id"];
|
|
466
|
-
isOneToOne: false;
|
|
467
|
-
referencedRelation: "profiles";
|
|
468
|
-
referencedColumns: ["id"];
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
foreignKeyName: "posts_language_id_fkey";
|
|
472
|
-
columns: ["language_id"];
|
|
473
|
-
isOneToOne: false;
|
|
474
|
-
referencedRelation: "languages";
|
|
475
|
-
referencedColumns: ["id"];
|
|
476
|
-
}
|
|
477
|
-
];
|
|
478
|
-
};
|
|
479
|
-
profiles: {
|
|
480
|
-
Row: {
|
|
481
|
-
avatar_url: string | null;
|
|
482
|
-
full_name: string | null;
|
|
483
|
-
id: string;
|
|
484
|
-
role: Database["public"]["Enums"]["user_role"];
|
|
485
|
-
updated_at: string | null;
|
|
486
|
-
username: string | null;
|
|
487
|
-
website: string | null;
|
|
488
|
-
};
|
|
489
|
-
Insert: {
|
|
490
|
-
avatar_url?: string | null;
|
|
491
|
-
full_name?: string | null;
|
|
492
|
-
id: string;
|
|
493
|
-
role?: Database["public"]["Enums"]["user_role"];
|
|
494
|
-
updated_at?: string | null;
|
|
495
|
-
username?: string | null;
|
|
496
|
-
website?: string | null;
|
|
497
|
-
};
|
|
498
|
-
Update: {
|
|
499
|
-
avatar_url?: string | null;
|
|
500
|
-
full_name?: string | null;
|
|
501
|
-
id?: string;
|
|
502
|
-
role?: Database["public"]["Enums"]["user_role"];
|
|
503
|
-
updated_at?: string | null;
|
|
504
|
-
username?: string | null;
|
|
505
|
-
website?: string | null;
|
|
506
|
-
};
|
|
507
|
-
Relationships: [];
|
|
508
|
-
};
|
|
509
|
-
site_settings: {
|
|
510
|
-
Row: {
|
|
511
|
-
key: string;
|
|
512
|
-
value: Json | null;
|
|
513
|
-
};
|
|
514
|
-
Insert: {
|
|
515
|
-
key: string;
|
|
516
|
-
value?: Json | null;
|
|
517
|
-
};
|
|
518
|
-
Update: {
|
|
519
|
-
key?: string;
|
|
520
|
-
value?: Json | null;
|
|
521
|
-
};
|
|
522
|
-
Relationships: [];
|
|
523
|
-
};
|
|
524
|
-
translations: {
|
|
525
|
-
Row: {
|
|
526
|
-
created_at: string;
|
|
527
|
-
key: string;
|
|
528
|
-
translations: Json;
|
|
529
|
-
updated_at: string;
|
|
530
|
-
};
|
|
531
|
-
Insert: {
|
|
532
|
-
created_at?: string;
|
|
533
|
-
key: string;
|
|
534
|
-
translations: Json;
|
|
535
|
-
updated_at?: string;
|
|
536
|
-
};
|
|
537
|
-
Update: {
|
|
538
|
-
created_at?: string;
|
|
539
|
-
key?: string;
|
|
540
|
-
translations?: Json;
|
|
541
|
-
updated_at?: string;
|
|
542
|
-
};
|
|
543
|
-
Relationships: [];
|
|
544
|
-
};
|
|
545
|
-
};
|
|
546
|
-
Views: {
|
|
547
|
-
[_ in never]: never;
|
|
548
|
-
};
|
|
549
|
-
Functions: {
|
|
550
|
-
get_current_user_role: {
|
|
551
|
-
Args: never;
|
|
552
|
-
Returns: Database["public"]["Enums"]["user_role"];
|
|
553
|
-
};
|
|
554
|
-
get_my_claim: {
|
|
555
|
-
Args: {
|
|
556
|
-
claim: string;
|
|
557
|
-
};
|
|
558
|
-
Returns: string;
|
|
559
|
-
};
|
|
560
|
-
get_my_role: {
|
|
561
|
-
Args: never;
|
|
562
|
-
Returns: string;
|
|
563
|
-
};
|
|
564
|
-
};
|
|
565
|
-
Enums: {
|
|
566
|
-
menu_location: "HEADER" | "FOOTER" | "SIDEBAR";
|
|
567
|
-
page_status: "draft" | "published" | "archived";
|
|
568
|
-
revision_type: "snapshot" | "diff";
|
|
569
|
-
user_role: "ADMIN" | "WRITER" | "USER";
|
|
570
|
-
};
|
|
571
|
-
CompositeTypes: {
|
|
572
|
-
[_ in never]: never;
|
|
573
|
-
};
|
|
574
|
-
};
|
|
575
|
-
};
|
|
576
|
-
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
|
|
577
|
-
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
|
|
578
|
-
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
579
|
-
schema: keyof DatabaseWithoutInternals;
|
|
580
|
-
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
581
|
-
schema: keyof DatabaseWithoutInternals;
|
|
582
|
-
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
583
|
-
schema: keyof DatabaseWithoutInternals;
|
|
584
|
-
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
585
|
-
Row: infer R;
|
|
586
|
-
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
587
|
-
Row: infer R;
|
|
588
|
-
} ? R : never : never;
|
|
589
|
-
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
590
|
-
schema: keyof DatabaseWithoutInternals;
|
|
591
|
-
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
592
|
-
schema: keyof DatabaseWithoutInternals;
|
|
593
|
-
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
594
|
-
schema: keyof DatabaseWithoutInternals;
|
|
595
|
-
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
596
|
-
Insert: infer I;
|
|
597
|
-
} ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
598
|
-
Insert: infer I;
|
|
599
|
-
} ? I : never : never;
|
|
600
|
-
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
601
|
-
schema: keyof DatabaseWithoutInternals;
|
|
602
|
-
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
603
|
-
schema: keyof DatabaseWithoutInternals;
|
|
604
|
-
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
605
|
-
schema: keyof DatabaseWithoutInternals;
|
|
606
|
-
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
607
|
-
Update: infer U;
|
|
608
|
-
} ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
609
|
-
Update: infer U;
|
|
610
|
-
} ? U : never : never;
|
|
611
|
-
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
|
|
612
|
-
schema: keyof DatabaseWithoutInternals;
|
|
613
|
-
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
614
|
-
schema: keyof DatabaseWithoutInternals;
|
|
615
|
-
} ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
616
|
-
schema: keyof DatabaseWithoutInternals;
|
|
617
|
-
} ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
|
|
618
|
-
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
619
|
-
schema: keyof DatabaseWithoutInternals;
|
|
620
|
-
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
621
|
-
schema: keyof DatabaseWithoutInternals;
|
|
622
|
-
} ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
623
|
-
schema: keyof DatabaseWithoutInternals;
|
|
624
|
-
} ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
625
|
-
export declare const Constants: {
|
|
626
|
-
readonly public: {
|
|
627
|
-
readonly Enums: {
|
|
628
|
-
readonly menu_location: readonly ["HEADER", "FOOTER", "SIDEBAR"];
|
|
629
|
-
readonly page_status: readonly ["draft", "published", "archived"];
|
|
630
|
-
readonly revision_type: readonly ["snapshot", "diff"];
|
|
631
|
-
readonly user_role: readonly ["ADMIN", "WRITER", "USER"];
|
|
632
|
-
};
|
|
633
|
-
};
|
|
634
|
-
};
|
|
635
|
-
export {};
|
package/server.d.ts
DELETED
package/ssg-client-CiaENGEv.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("@supabase/supabase-js"),s=()=>!process.env.NEXT_PUBLIC_SUPABASE_URL||!process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY?(console.warn("Supabase URL or Anon Key is missing for SSG client. Check .env.local"),{}):e.createClient(process.env.NEXT_PUBLIC_SUPABASE_URL,process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY);exports.getSsgSupabaseClient=s;
|
package/ssg-client-DgUYZgPq.mjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { createClient as e } from "@supabase/supabase-js";
|
|
2
|
-
const n = () => !process.env.NEXT_PUBLIC_SUPABASE_URL || !process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY ? (console.warn("Supabase URL or Anon Key is missing for SSG client. Check .env.local"), {}) : e(
|
|
3
|
-
process.env.NEXT_PUBLIC_SUPABASE_URL,
|
|
4
|
-
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY
|
|
5
|
-
);
|
|
6
|
-
export {
|
|
7
|
-
n as g
|
|
8
|
-
};
|