@nextblock-cms/db 0.14.1 → 0.14.3
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/lib/supabase/server.d.ts +52 -1
- package/lib/supabase/types.d.ts +52 -1
- package/package.json +1 -1
- package/supabase/functions/nextblock-migration-ingest/index.ts +8 -8
- package/supabase/migrations/00000000000000_baseline_schema.sql +2454 -2454
- package/supabase/migrations/00000000000001_baseline_constraints_and_indexes.sql +1071 -1071
- package/supabase/migrations/00000000000002_baseline_security_and_grants.sql +1335 -1335
- package/supabase/migrations/00000000000003_baseline_seed.sql +468 -468
- package/supabase/migrations/00000000000004_default_logo_email_safe.sql +24 -24
- package/supabase/migrations/00000000000005_add_custom_canonical.sql +13 -13
- package/supabase/migrations/00000000000007_home_live_demo_promo_copy_fix.sql +49 -49
- package/supabase/migrations/00000000000008_setup_article_reorder.sql +30 -30
- package/supabase/migrations/00000000000009_home_live_demo_promo_contrast.sql +52 -52
- package/supabase/migrations/00000000000013_youtube_nocookie_embeds.sql +136 -136
- package/supabase/migrations/00000000000014_site_themes.sql +254 -0
package/lib/supabase/server.d.ts
CHANGED
|
@@ -1871,6 +1871,57 @@ export declare const getServiceRoleSupabaseClient: () => import('@supabase/supab
|
|
|
1871
1871
|
};
|
|
1872
1872
|
Relationships: [];
|
|
1873
1873
|
};
|
|
1874
|
+
site_themes: {
|
|
1875
|
+
Row: {
|
|
1876
|
+
color_scheme: string;
|
|
1877
|
+
created_at: string;
|
|
1878
|
+
description: string | null;
|
|
1879
|
+
extra_css: string | null;
|
|
1880
|
+
icon: string;
|
|
1881
|
+
id: string;
|
|
1882
|
+
is_active: boolean;
|
|
1883
|
+
is_default: boolean;
|
|
1884
|
+
is_system: boolean;
|
|
1885
|
+
name: string;
|
|
1886
|
+
slug: string;
|
|
1887
|
+
sort_order: number;
|
|
1888
|
+
tokens: import('./types').Json;
|
|
1889
|
+
updated_at: string;
|
|
1890
|
+
};
|
|
1891
|
+
Insert: {
|
|
1892
|
+
color_scheme?: string;
|
|
1893
|
+
created_at?: string;
|
|
1894
|
+
description?: string | null;
|
|
1895
|
+
extra_css?: string | null;
|
|
1896
|
+
icon?: string;
|
|
1897
|
+
id?: string;
|
|
1898
|
+
is_active?: boolean;
|
|
1899
|
+
is_default?: boolean;
|
|
1900
|
+
is_system?: boolean;
|
|
1901
|
+
name: string;
|
|
1902
|
+
slug: string;
|
|
1903
|
+
sort_order?: number;
|
|
1904
|
+
tokens?: import('./types').Json;
|
|
1905
|
+
updated_at?: string;
|
|
1906
|
+
};
|
|
1907
|
+
Update: {
|
|
1908
|
+
color_scheme?: string;
|
|
1909
|
+
created_at?: string;
|
|
1910
|
+
description?: string | null;
|
|
1911
|
+
extra_css?: string | null;
|
|
1912
|
+
icon?: string;
|
|
1913
|
+
id?: string;
|
|
1914
|
+
is_active?: boolean;
|
|
1915
|
+
is_default?: boolean;
|
|
1916
|
+
is_system?: boolean;
|
|
1917
|
+
name?: string;
|
|
1918
|
+
slug?: string;
|
|
1919
|
+
sort_order?: number;
|
|
1920
|
+
tokens?: import('./types').Json;
|
|
1921
|
+
updated_at?: string;
|
|
1922
|
+
};
|
|
1923
|
+
Relationships: [];
|
|
1924
|
+
};
|
|
1874
1925
|
system_alerts: {
|
|
1875
1926
|
Row: {
|
|
1876
1927
|
alert_type: string;
|
|
@@ -2302,6 +2353,6 @@ export declare const getServiceRoleSupabaseClient: () => import('@supabase/supab
|
|
|
2302
2353
|
};
|
|
2303
2354
|
CompositeTypes: { [_ in never]: never; };
|
|
2304
2355
|
}, {
|
|
2305
|
-
PostgrestVersion: "14.
|
|
2356
|
+
PostgrestVersion: "14.15";
|
|
2306
2357
|
}>;
|
|
2307
2358
|
export {};
|
package/lib/supabase/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export type Json = string | number | boolean | null | {
|
|
|
3
3
|
} | Json[];
|
|
4
4
|
export type Database = {
|
|
5
5
|
__InternalSupabase: {
|
|
6
|
-
PostgrestVersion: "14.
|
|
6
|
+
PostgrestVersion: "14.15";
|
|
7
7
|
};
|
|
8
8
|
public: {
|
|
9
9
|
Tables: {
|
|
@@ -1943,6 +1943,57 @@ export type Database = {
|
|
|
1943
1943
|
};
|
|
1944
1944
|
Relationships: [];
|
|
1945
1945
|
};
|
|
1946
|
+
site_themes: {
|
|
1947
|
+
Row: {
|
|
1948
|
+
color_scheme: string;
|
|
1949
|
+
created_at: string;
|
|
1950
|
+
description: string | null;
|
|
1951
|
+
extra_css: string | null;
|
|
1952
|
+
icon: string;
|
|
1953
|
+
id: string;
|
|
1954
|
+
is_active: boolean;
|
|
1955
|
+
is_default: boolean;
|
|
1956
|
+
is_system: boolean;
|
|
1957
|
+
name: string;
|
|
1958
|
+
slug: string;
|
|
1959
|
+
sort_order: number;
|
|
1960
|
+
tokens: Json;
|
|
1961
|
+
updated_at: string;
|
|
1962
|
+
};
|
|
1963
|
+
Insert: {
|
|
1964
|
+
color_scheme?: string;
|
|
1965
|
+
created_at?: string;
|
|
1966
|
+
description?: string | null;
|
|
1967
|
+
extra_css?: string | null;
|
|
1968
|
+
icon?: string;
|
|
1969
|
+
id?: string;
|
|
1970
|
+
is_active?: boolean;
|
|
1971
|
+
is_default?: boolean;
|
|
1972
|
+
is_system?: boolean;
|
|
1973
|
+
name: string;
|
|
1974
|
+
slug: string;
|
|
1975
|
+
sort_order?: number;
|
|
1976
|
+
tokens?: Json;
|
|
1977
|
+
updated_at?: string;
|
|
1978
|
+
};
|
|
1979
|
+
Update: {
|
|
1980
|
+
color_scheme?: string;
|
|
1981
|
+
created_at?: string;
|
|
1982
|
+
description?: string | null;
|
|
1983
|
+
extra_css?: string | null;
|
|
1984
|
+
icon?: string;
|
|
1985
|
+
id?: string;
|
|
1986
|
+
is_active?: boolean;
|
|
1987
|
+
is_default?: boolean;
|
|
1988
|
+
is_system?: boolean;
|
|
1989
|
+
name?: string;
|
|
1990
|
+
slug?: string;
|
|
1991
|
+
sort_order?: number;
|
|
1992
|
+
tokens?: Json;
|
|
1993
|
+
updated_at?: string;
|
|
1994
|
+
};
|
|
1995
|
+
Relationships: [];
|
|
1996
|
+
};
|
|
1946
1997
|
system_alerts: {
|
|
1947
1998
|
Row: {
|
|
1948
1999
|
alert_type: string;
|
package/package.json
CHANGED
|
@@ -461,17 +461,17 @@ Deno.serve(async (req: Request) => {
|
|
|
461
461
|
status: item.status,
|
|
462
462
|
author_id: author_id,
|
|
463
463
|
meta_title: item.seo?.meta_title || null,
|
|
464
|
-
meta_description: item.seo?.meta_description || null,
|
|
465
|
-
feature_image_id,
|
|
466
|
-
created_at: item.created_at,
|
|
467
|
-
updated_at: item.updated_at,
|
|
468
|
-
};
|
|
464
|
+
meta_description: item.seo?.meta_description || null,
|
|
465
|
+
feature_image_id,
|
|
466
|
+
created_at: item.created_at,
|
|
467
|
+
updated_at: item.updated_at,
|
|
468
|
+
};
|
|
469
469
|
|
|
470
470
|
// Posts specific fields
|
|
471
471
|
if (entity_type === 'post') {
|
|
472
|
-
baseData.excerpt = item.excerpt;
|
|
473
|
-
baseData.published_at = item.published_at;
|
|
474
|
-
}
|
|
472
|
+
baseData.excerpt = item.excerpt;
|
|
473
|
+
baseData.published_at = item.published_at;
|
|
474
|
+
}
|
|
475
475
|
|
|
476
476
|
processedEntities.push(baseData);
|
|
477
477
|
|