@nextblock-cms/db 0.15.10 → 0.16.2
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 +31 -1
- package/lib/supabase/types.d.ts +41 -11
- package/package.json +1 -1
- package/supabase/migrations/00000000000003_baseline_seed.sql +468 -468
- package/supabase/migrations/00000000000006_home_live_demo_promo.sql +67 -67
- package/supabase/migrations/00000000000007_home_live_demo_promo_copy_fix.sql +49 -49
- package/supabase/migrations/00000000000009_home_live_demo_promo_contrast.sql +52 -52
- package/supabase/migrations/00000000000014_site_themes.sql +254 -254
- package/supabase/migrations/00000000000015_scheduled_publishing.sql +43 -43
- package/supabase/migrations/00000000000016_product_revisions_and_revision_baseline.sql +310 -310
- package/supabase/migrations/00000000000017_cortex_ai_mcp_server.sql +91 -91
- package/supabase/migrations/00000000000018_site_scripts.sql +96 -96
- package/supabase/migrations/00000000000019_site_script_revisions.sql +85 -85
- package/supabase/migrations/00000000000020_updating_article.sql +162 -162
- package/supabase/migrations/00000000000021_updating_article_git_merge.sql +91 -91
- package/supabase/migrations/00000000000022_updating_article_accuracy.sql +94 -94
- package/supabase/migrations/00000000000023_updating_article_layout_not_host.sql +87 -87
- package/supabase/migrations/00000000000024_updating_article_newline_fix.sql +70 -70
- package/supabase/migrations/00000000000025_rebrand_nextblock_dev.sql +53 -53
- package/supabase/migrations/00000000000026_product_inquiries.sql +118 -118
- package/supabase/migrations/00000000000027_message_threads.sql +391 -391
- package/supabase/migrations/00000000000028_interaction_replies.sql +86 -86
- package/supabase/migrations/00000000000029_form_endpoints_default_empty.sql +52 -52
- package/supabase/migrations/00000000000030_seo_redirects_and_robots.sql +149 -0
- package/supabase/migrations/00000000000031_seo_robots_settings_admin_only.sql +35 -0
package/lib/supabase/server.d.ts
CHANGED
|
@@ -173,6 +173,36 @@ export declare const getServiceRoleSupabaseClient: () => import('@supabase/supab
|
|
|
173
173
|
referencedColumns: ["id"];
|
|
174
174
|
}];
|
|
175
175
|
};
|
|
176
|
+
cms_redirects: {
|
|
177
|
+
Row: {
|
|
178
|
+
created_at: string;
|
|
179
|
+
destination_path: string;
|
|
180
|
+
id: string;
|
|
181
|
+
is_active: boolean;
|
|
182
|
+
source_path: string;
|
|
183
|
+
status_code: number;
|
|
184
|
+
updated_at: string;
|
|
185
|
+
};
|
|
186
|
+
Insert: {
|
|
187
|
+
created_at?: string;
|
|
188
|
+
destination_path: string;
|
|
189
|
+
id?: string;
|
|
190
|
+
is_active?: boolean;
|
|
191
|
+
source_path: string;
|
|
192
|
+
status_code?: number;
|
|
193
|
+
updated_at?: string;
|
|
194
|
+
};
|
|
195
|
+
Update: {
|
|
196
|
+
created_at?: string;
|
|
197
|
+
destination_path?: string;
|
|
198
|
+
id?: string;
|
|
199
|
+
is_active?: boolean;
|
|
200
|
+
source_path?: string;
|
|
201
|
+
status_code?: number;
|
|
202
|
+
updated_at?: string;
|
|
203
|
+
};
|
|
204
|
+
Relationships: [];
|
|
205
|
+
};
|
|
176
206
|
content_drafts: {
|
|
177
207
|
Row: {
|
|
178
208
|
author_id: string | null;
|
|
@@ -2722,6 +2752,6 @@ export declare const getServiceRoleSupabaseClient: () => import('@supabase/supab
|
|
|
2722
2752
|
};
|
|
2723
2753
|
CompositeTypes: { [_ in never]: never; };
|
|
2724
2754
|
}, {
|
|
2725
|
-
PostgrestVersion: "14.
|
|
2755
|
+
PostgrestVersion: "14.15";
|
|
2726
2756
|
}>;
|
|
2727
2757
|
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: {
|
|
@@ -179,6 +179,36 @@ export type Database = {
|
|
|
179
179
|
}
|
|
180
180
|
];
|
|
181
181
|
};
|
|
182
|
+
cms_redirects: {
|
|
183
|
+
Row: {
|
|
184
|
+
created_at: string;
|
|
185
|
+
destination_path: string;
|
|
186
|
+
id: string;
|
|
187
|
+
is_active: boolean;
|
|
188
|
+
source_path: string;
|
|
189
|
+
status_code: number;
|
|
190
|
+
updated_at: string;
|
|
191
|
+
};
|
|
192
|
+
Insert: {
|
|
193
|
+
created_at?: string;
|
|
194
|
+
destination_path: string;
|
|
195
|
+
id?: string;
|
|
196
|
+
is_active?: boolean;
|
|
197
|
+
source_path: string;
|
|
198
|
+
status_code?: number;
|
|
199
|
+
updated_at?: string;
|
|
200
|
+
};
|
|
201
|
+
Update: {
|
|
202
|
+
created_at?: string;
|
|
203
|
+
destination_path?: string;
|
|
204
|
+
id?: string;
|
|
205
|
+
is_active?: boolean;
|
|
206
|
+
source_path?: string;
|
|
207
|
+
status_code?: number;
|
|
208
|
+
updated_at?: string;
|
|
209
|
+
};
|
|
210
|
+
Relationships: [];
|
|
211
|
+
};
|
|
182
212
|
content_drafts: {
|
|
183
213
|
Row: {
|
|
184
214
|
author_id: string | null;
|
|
@@ -2814,9 +2844,9 @@ type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
|
|
|
2814
2844
|
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
|
|
2815
2845
|
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
2816
2846
|
schema: keyof DatabaseWithoutInternals;
|
|
2817
|
-
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
2847
|
+
}, TableName extends (DefaultSchemaTableNameOrOptions extends {
|
|
2818
2848
|
schema: keyof DatabaseWithoutInternals;
|
|
2819
|
-
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
2849
|
+
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never) = never> = DefaultSchemaTableNameOrOptions extends {
|
|
2820
2850
|
schema: keyof DatabaseWithoutInternals;
|
|
2821
2851
|
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
2822
2852
|
Row: infer R;
|
|
@@ -2825,9 +2855,9 @@ export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema[
|
|
|
2825
2855
|
} ? R : never : never;
|
|
2826
2856
|
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
2827
2857
|
schema: keyof DatabaseWithoutInternals;
|
|
2828
|
-
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
2858
|
+
}, TableName extends (DefaultSchemaTableNameOrOptions extends {
|
|
2829
2859
|
schema: keyof DatabaseWithoutInternals;
|
|
2830
|
-
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
2860
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never) = never> = DefaultSchemaTableNameOrOptions extends {
|
|
2831
2861
|
schema: keyof DatabaseWithoutInternals;
|
|
2832
2862
|
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
2833
2863
|
Insert: infer I;
|
|
@@ -2836,9 +2866,9 @@ export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSc
|
|
|
2836
2866
|
} ? I : never : never;
|
|
2837
2867
|
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
2838
2868
|
schema: keyof DatabaseWithoutInternals;
|
|
2839
|
-
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
2869
|
+
}, TableName extends (DefaultSchemaTableNameOrOptions extends {
|
|
2840
2870
|
schema: keyof DatabaseWithoutInternals;
|
|
2841
|
-
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
2871
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never) = never> = DefaultSchemaTableNameOrOptions extends {
|
|
2842
2872
|
schema: keyof DatabaseWithoutInternals;
|
|
2843
2873
|
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
2844
2874
|
Update: infer U;
|
|
@@ -2847,16 +2877,16 @@ export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSc
|
|
|
2847
2877
|
} ? U : never : never;
|
|
2848
2878
|
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
|
|
2849
2879
|
schema: keyof DatabaseWithoutInternals;
|
|
2850
|
-
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
2880
|
+
}, EnumName extends (DefaultSchemaEnumNameOrOptions extends {
|
|
2851
2881
|
schema: keyof DatabaseWithoutInternals;
|
|
2852
|
-
} ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
2882
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never) = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
2853
2883
|
schema: keyof DatabaseWithoutInternals;
|
|
2854
2884
|
} ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
|
|
2855
2885
|
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
2856
2886
|
schema: keyof DatabaseWithoutInternals;
|
|
2857
|
-
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
2887
|
+
}, CompositeTypeName extends (PublicCompositeTypeNameOrOptions extends {
|
|
2858
2888
|
schema: keyof DatabaseWithoutInternals;
|
|
2859
|
-
} ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
2889
|
+
} ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never) = never> = PublicCompositeTypeNameOrOptions extends {
|
|
2860
2890
|
schema: keyof DatabaseWithoutInternals;
|
|
2861
2891
|
} ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
2862
2892
|
export declare const Constants: {
|