visual-forge-hub-test-env 0.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.
Files changed (198) hide show
  1. package/README.md +73 -0
  2. package/dist/App.d.ts +2 -0
  3. package/dist/components/admin/AdminLayout.d.ts +6 -0
  4. package/dist/components/admin/CreateLayoutDialog.d.ts +7 -0
  5. package/dist/components/admin/CreatePageDialog.d.ts +6 -0
  6. package/dist/components/admin/CreateTemplateDialog.d.ts +7 -0
  7. package/dist/components/admin/CreateWidgetDialog.d.ts +7 -0
  8. package/dist/components/admin/LayoutList.d.ts +8 -0
  9. package/dist/components/admin/PageList.d.ts +5 -0
  10. package/dist/components/admin/TemplateList.d.ts +8 -0
  11. package/dist/components/admin/WidgetList.d.ts +8 -0
  12. package/dist/components/api/ApiAuthEditor.d.ts +15 -0
  13. package/dist/components/api/ApiRequestEditor.d.ts +20 -0
  14. package/dist/components/api/ApiRequestTree.d.ts +25 -0
  15. package/dist/components/api/ApiResponseViewer.d.ts +13 -0
  16. package/dist/components/api/CodeGeneratorDialog.d.ts +23 -0
  17. package/dist/components/api/CreateCollectionDialog.d.ts +3 -0
  18. package/dist/components/api/EnvironmentSelector.d.ts +16 -0
  19. package/dist/components/api/ExportCollectionButton.d.ts +6 -0
  20. package/dist/components/api/ImportCollectionDialog.d.ts +5 -0
  21. package/dist/components/api/KeyValueEditor.d.ts +15 -0
  22. package/dist/components/api/RequestHistoryPanel.d.ts +16 -0
  23. package/dist/components/editor/AccordionComponentEditor.d.ts +13 -0
  24. package/dist/components/editor/ButtonComponentEditor.d.ts +7 -0
  25. package/dist/components/editor/CardComponentEditor.d.ts +15 -0
  26. package/dist/components/editor/ChartComponentEditor.d.ts +8 -0
  27. package/dist/components/editor/CodeComponentEditor.d.ts +7 -0
  28. package/dist/components/editor/ColumnDivider.d.ts +6 -0
  29. package/dist/components/editor/ComponentContextMenu.d.ts +15 -0
  30. package/dist/components/editor/ComponentStylePanel.d.ts +25 -0
  31. package/dist/components/editor/ComponentsSidebar.d.ts +7 -0
  32. package/dist/components/editor/DeviceFrame.d.ts +7 -0
  33. package/dist/components/editor/DividerComponentEditor.d.ts +1 -0
  34. package/dist/components/editor/DraggableComponent.d.ts +13 -0
  35. package/dist/components/editor/DroppableColumn.d.ts +15 -0
  36. package/dist/components/editor/EntityDetailComponentEditor.d.ts +6 -0
  37. package/dist/components/editor/EntityListComponentEditor.d.ts +6 -0
  38. package/dist/components/editor/FormCheckboxComponentEditor.d.ts +12 -0
  39. package/dist/components/editor/FormInputComponentEditor.d.ts +13 -0
  40. package/dist/components/editor/FormSelectComponentEditor.d.ts +12 -0
  41. package/dist/components/editor/FormSubmitComponentEditor.d.ts +14 -0
  42. package/dist/components/editor/FormTextareaComponentEditor.d.ts +13 -0
  43. package/dist/components/editor/GridCanvas.d.ts +27 -0
  44. package/dist/components/editor/HeadingComponentEditor.d.ts +7 -0
  45. package/dist/components/editor/ImageComponentEditor.d.ts +7 -0
  46. package/dist/components/editor/InsertWidgetDialog.d.ts +7 -0
  47. package/dist/components/editor/LayoutPreviewModal.d.ts +10 -0
  48. package/dist/components/editor/LinkComponentEditor.d.ts +7 -0
  49. package/dist/components/editor/ListComponentEditor.d.ts +7 -0
  50. package/dist/components/editor/OutlinePanel.d.ts +14 -0
  51. package/dist/components/editor/OutlineTreeItem.d.ts +18 -0
  52. package/dist/components/editor/PageActionsDropdown.d.ts +9 -0
  53. package/dist/components/editor/PageContentComponentEditor.d.ts +1 -0
  54. package/dist/components/editor/PagePreviewModal.d.ts +17 -0
  55. package/dist/components/editor/PageVersionDiffView.d.ts +28 -0
  56. package/dist/components/editor/PageVersionsDialog.d.ts +9 -0
  57. package/dist/components/editor/PreviewModal.d.ts +7 -0
  58. package/dist/components/editor/QueryComponentEditor.d.ts +6 -0
  59. package/dist/components/editor/QuoteComponentEditor.d.ts +7 -0
  60. package/dist/components/editor/ResponsiveControls.d.ts +7 -0
  61. package/dist/components/editor/RowContextMenu.d.ts +12 -0
  62. package/dist/components/editor/RowPropertiesPanel.d.ts +37 -0
  63. package/dist/components/editor/SectionTemplatesDialog.d.ts +5 -0
  64. package/dist/components/editor/SidebarToggle.d.ts +17 -0
  65. package/dist/components/editor/SortableRow.d.ts +23 -0
  66. package/dist/components/editor/SpacerComponentEditor.d.ts +7 -0
  67. package/dist/components/editor/TabsComponentEditor.d.ts +13 -0
  68. package/dist/components/editor/TextComponentEditor.d.ts +7 -0
  69. package/dist/components/editor/VideoComponentEditor.d.ts +7 -0
  70. package/dist/components/editor/WidgetPreviewModal.d.ts +10 -0
  71. package/dist/components/entities/AddFieldPopover.d.ts +11 -0
  72. package/dist/components/entities/CardLayoutEditor.d.ts +24 -0
  73. package/dist/components/entities/CreateEntityDialog.d.ts +7 -0
  74. package/dist/components/entities/EntityActionsDropdown.d.ts +8 -0
  75. package/dist/components/entities/EntityRecordDialog.d.ts +24 -0
  76. package/dist/components/entities/EntityVersionDiffView.d.ts +9 -0
  77. package/dist/components/entities/EntityVersionsDialog.d.ts +8 -0
  78. package/dist/components/entities/FieldEditor.d.ts +16 -0
  79. package/dist/components/entities/ViewOptionsPanel.d.ts +82 -0
  80. package/dist/components/entities/ViewSelector.d.ts +22 -0
  81. package/dist/components/entities/views/CalendarView.d.ts +27 -0
  82. package/dist/components/entities/views/CardView.d.ts +32 -0
  83. package/dist/components/entities/views/GalleryView.d.ts +28 -0
  84. package/dist/components/entities/views/GanttView.d.ts +33 -0
  85. package/dist/components/entities/views/KanbanView.d.ts +35 -0
  86. package/dist/components/entities/views/ListView.d.ts +31 -0
  87. package/dist/components/entities/views/TimelineView.d.ts +28 -0
  88. package/dist/components/forms/ConditionalLogicEditor.d.ts +20 -0
  89. package/dist/components/forms/CreateFormDialog.d.ts +6 -0
  90. package/dist/components/forms/FieldLibrary.d.ts +5 -0
  91. package/dist/components/forms/FieldPropertiesPanel.d.ts +11 -0
  92. package/dist/components/forms/FormCanvas.d.ts +11 -0
  93. package/dist/components/forms/FormPreviewModal.d.ts +9 -0
  94. package/dist/components/forms/FormPropertiesPanel.d.ts +6 -0
  95. package/dist/components/forms/FormSubmissionDialog.d.ts +6 -0
  96. package/dist/components/forms/FormTemplateDialog.d.ts +15 -0
  97. package/dist/components/forms/OptionsEditor.d.ts +10 -0
  98. package/dist/components/forms/SectionPropertiesPanel.d.ts +11 -0
  99. package/dist/components/forms/SectionRenderer.d.ts +15 -0
  100. package/dist/components/forms/ValidationRulesEditor.d.ts +7 -0
  101. package/dist/components/public/ChartRenderer.d.ts +12 -0
  102. package/dist/components/public/ComponentRenderer.d.ts +7 -0
  103. package/dist/components/queries/CreateQueryDialog.d.ts +6 -0
  104. package/dist/components/queries/QueryConditionBuilder.d.ts +5 -0
  105. package/dist/components/queries/QueryConditionTree.d.ts +5 -0
  106. package/dist/components/queries/QueryFieldSelector.d.ts +7 -0
  107. package/dist/components/queries/QueryJoinBuilder.d.ts +5 -0
  108. package/dist/components/queries/QueryJoinTree.d.ts +5 -0
  109. package/dist/components/queries/QuerySettingsPanel.d.ts +6 -0
  110. package/dist/components/ui/accordion.d.ts +7 -0
  111. package/dist/components/ui/alert-dialog.d.ts +20 -0
  112. package/dist/components/ui/alert.d.ts +8 -0
  113. package/dist/components/ui/aspect-ratio.d.ts +3 -0
  114. package/dist/components/ui/avatar.d.ts +6 -0
  115. package/dist/components/ui/badge.d.ts +9 -0
  116. package/dist/components/ui/breadcrumb.d.ts +19 -0
  117. package/dist/components/ui/button.d.ts +11 -0
  118. package/dist/components/ui/calendar.d.ts +8 -0
  119. package/dist/components/ui/card.d.ts +8 -0
  120. package/dist/components/ui/carousel.d.ts +18 -0
  121. package/dist/components/ui/chart.d.ts +62 -0
  122. package/dist/components/ui/checkbox.d.ts +4 -0
  123. package/dist/components/ui/collapsible.d.ts +5 -0
  124. package/dist/components/ui/command.d.ts +82 -0
  125. package/dist/components/ui/context-menu.d.ts +27 -0
  126. package/dist/components/ui/dialog.d.ts +21 -0
  127. package/dist/components/ui/drawer.d.ts +22 -0
  128. package/dist/components/ui/dropdown-menu.d.ts +27 -0
  129. package/dist/components/ui/form.d.ts +23 -0
  130. package/dist/components/ui/hover-card.d.ts +6 -0
  131. package/dist/components/ui/input-otp.d.ts +34 -0
  132. package/dist/components/ui/input.d.ts +3 -0
  133. package/dist/components/ui/label.d.ts +5 -0
  134. package/dist/components/ui/menubar.d.ts +33 -0
  135. package/dist/components/ui/navigation-menu.d.ts +12 -0
  136. package/dist/components/ui/pagination.d.ts +28 -0
  137. package/dist/components/ui/popover.d.ts +6 -0
  138. package/dist/components/ui/progress.d.ts +4 -0
  139. package/dist/components/ui/radio-group.d.ts +5 -0
  140. package/dist/components/ui/resizable.d.ts +23 -0
  141. package/dist/components/ui/scroll-area.d.ts +5 -0
  142. package/dist/components/ui/select.d.ts +13 -0
  143. package/dist/components/ui/separator.d.ts +4 -0
  144. package/dist/components/ui/sheet.d.ts +25 -0
  145. package/dist/components/ui/sidebar.d.ts +66 -0
  146. package/dist/components/ui/skeleton.d.ts +2 -0
  147. package/dist/components/ui/slider.d.ts +4 -0
  148. package/dist/components/ui/sonner.d.ts +4 -0
  149. package/dist/components/ui/switch.d.ts +4 -0
  150. package/dist/components/ui/table.d.ts +10 -0
  151. package/dist/components/ui/tabs.d.ts +7 -0
  152. package/dist/components/ui/textarea.d.ts +5 -0
  153. package/dist/components/ui/toast.d.ts +15 -0
  154. package/dist/components/ui/toaster.d.ts +1 -0
  155. package/dist/components/ui/toggle-group.d.ts +12 -0
  156. package/dist/components/ui/toggle.d.ts +12 -0
  157. package/dist/components/ui/tooltip.d.ts +7 -0
  158. package/dist/components/ui/use-toast.d.ts +2 -0
  159. package/dist/contexts/ClipboardContext.d.ts +12 -0
  160. package/dist/favicon.ico +0 -0
  161. package/dist/hooks/use-mobile.d.ts +1 -0
  162. package/dist/hooks/use-toast.d.ts +44 -0
  163. package/dist/hooks/useHistory.d.ts +14 -0
  164. package/dist/hooks/useKeyboardShortcuts.d.ts +11 -0
  165. package/dist/index.d.ts +2 -0
  166. package/dist/index.es.js +31293 -0
  167. package/dist/index.umd.js +175 -0
  168. package/dist/integrations/supabase/client.d.ts +1450 -0
  169. package/dist/integrations/supabase/types.d.ts +1581 -0
  170. package/dist/lib/utils.d.ts +2 -0
  171. package/dist/main.d.ts +0 -0
  172. package/dist/pages/Admin.d.ts +2 -0
  173. package/dist/pages/ApiCollectionEditor.d.ts +2 -0
  174. package/dist/pages/ApiCollections.d.ts +2 -0
  175. package/dist/pages/Auth.d.ts +2 -0
  176. package/dist/pages/Entities.d.ts +2 -0
  177. package/dist/pages/EntityEditor.d.ts +2 -0
  178. package/dist/pages/EntityRecords.d.ts +2 -0
  179. package/dist/pages/FormBuilder.d.ts +1 -0
  180. package/dist/pages/FormSettings.d.ts +1 -0
  181. package/dist/pages/FormSubmissions.d.ts +1 -0
  182. package/dist/pages/Forms.d.ts +1 -0
  183. package/dist/pages/LayoutEditor.d.ts +2 -0
  184. package/dist/pages/Layouts.d.ts +2 -0
  185. package/dist/pages/NotFound.d.ts +2 -0
  186. package/dist/pages/PageEditor.d.ts +2 -0
  187. package/dist/pages/PublicPage.d.ts +5 -0
  188. package/dist/pages/Queries.d.ts +1 -0
  189. package/dist/pages/QueryEditor.d.ts +1 -0
  190. package/dist/pages/QueryResults.d.ts +1 -0
  191. package/dist/pages/TemplateEditor.d.ts +2 -0
  192. package/dist/pages/Templates.d.ts +2 -0
  193. package/dist/pages/WidgetEditor.d.ts +2 -0
  194. package/dist/pages/Widgets.d.ts +2 -0
  195. package/dist/placeholder.svg +1 -0
  196. package/dist/robots.txt +14 -0
  197. package/dist/types/entity.d.ts +43 -0
  198. package/package.json +100 -0
@@ -0,0 +1,1581 @@
1
+ export type Json = string | number | boolean | null | {
2
+ [key: string]: Json | undefined;
3
+ } | Json[];
4
+ export type Database = {
5
+ __InternalSupabase: {
6
+ PostgrestVersion: "13.0.5";
7
+ };
8
+ public: {
9
+ Tables: {
10
+ api_collections: {
11
+ Row: {
12
+ base_url: string | null;
13
+ created_at: string | null;
14
+ description: string | null;
15
+ id: string;
16
+ is_published: boolean | null;
17
+ name: string;
18
+ updated_at: string | null;
19
+ user_id: string;
20
+ };
21
+ Insert: {
22
+ base_url?: string | null;
23
+ created_at?: string | null;
24
+ description?: string | null;
25
+ id?: string;
26
+ is_published?: boolean | null;
27
+ name: string;
28
+ updated_at?: string | null;
29
+ user_id: string;
30
+ };
31
+ Update: {
32
+ base_url?: string | null;
33
+ created_at?: string | null;
34
+ description?: string | null;
35
+ id?: string;
36
+ is_published?: boolean | null;
37
+ name?: string;
38
+ updated_at?: string | null;
39
+ user_id?: string;
40
+ };
41
+ Relationships: [];
42
+ };
43
+ api_environments: {
44
+ Row: {
45
+ collection_id: string;
46
+ created_at: string | null;
47
+ id: string;
48
+ is_active: boolean | null;
49
+ name: string;
50
+ updated_at: string | null;
51
+ variables: Json | null;
52
+ };
53
+ Insert: {
54
+ collection_id: string;
55
+ created_at?: string | null;
56
+ id?: string;
57
+ is_active?: boolean | null;
58
+ name: string;
59
+ updated_at?: string | null;
60
+ variables?: Json | null;
61
+ };
62
+ Update: {
63
+ collection_id?: string;
64
+ created_at?: string | null;
65
+ id?: string;
66
+ is_active?: boolean | null;
67
+ name?: string;
68
+ updated_at?: string | null;
69
+ variables?: Json | null;
70
+ };
71
+ Relationships: [
72
+ {
73
+ foreignKeyName: "api_environments_collection_id_fkey";
74
+ columns: ["collection_id"];
75
+ isOneToOne: false;
76
+ referencedRelation: "api_collections";
77
+ referencedColumns: ["id"];
78
+ }
79
+ ];
80
+ };
81
+ api_folders: {
82
+ Row: {
83
+ collection_id: string;
84
+ created_at: string | null;
85
+ description: string | null;
86
+ id: string;
87
+ name: string;
88
+ parent_folder_id: string | null;
89
+ position: number;
90
+ };
91
+ Insert: {
92
+ collection_id: string;
93
+ created_at?: string | null;
94
+ description?: string | null;
95
+ id?: string;
96
+ name: string;
97
+ parent_folder_id?: string | null;
98
+ position?: number;
99
+ };
100
+ Update: {
101
+ collection_id?: string;
102
+ created_at?: string | null;
103
+ description?: string | null;
104
+ id?: string;
105
+ name?: string;
106
+ parent_folder_id?: string | null;
107
+ position?: number;
108
+ };
109
+ Relationships: [
110
+ {
111
+ foreignKeyName: "api_folders_collection_id_fkey";
112
+ columns: ["collection_id"];
113
+ isOneToOne: false;
114
+ referencedRelation: "api_collections";
115
+ referencedColumns: ["id"];
116
+ },
117
+ {
118
+ foreignKeyName: "api_folders_parent_folder_id_fkey";
119
+ columns: ["parent_folder_id"];
120
+ isOneToOne: false;
121
+ referencedRelation: "api_folders";
122
+ referencedColumns: ["id"];
123
+ }
124
+ ];
125
+ };
126
+ api_request_history: {
127
+ Row: {
128
+ error_message: string | null;
129
+ executed_at: string | null;
130
+ id: string;
131
+ request_id: string;
132
+ response_body: string | null;
133
+ response_headers: Json | null;
134
+ response_time_ms: number | null;
135
+ status_code: number | null;
136
+ };
137
+ Insert: {
138
+ error_message?: string | null;
139
+ executed_at?: string | null;
140
+ id?: string;
141
+ request_id: string;
142
+ response_body?: string | null;
143
+ response_headers?: Json | null;
144
+ response_time_ms?: number | null;
145
+ status_code?: number | null;
146
+ };
147
+ Update: {
148
+ error_message?: string | null;
149
+ executed_at?: string | null;
150
+ id?: string;
151
+ request_id?: string;
152
+ response_body?: string | null;
153
+ response_headers?: Json | null;
154
+ response_time_ms?: number | null;
155
+ status_code?: number | null;
156
+ };
157
+ Relationships: [
158
+ {
159
+ foreignKeyName: "api_request_history_request_id_fkey";
160
+ columns: ["request_id"];
161
+ isOneToOne: false;
162
+ referencedRelation: "api_requests";
163
+ referencedColumns: ["id"];
164
+ }
165
+ ];
166
+ };
167
+ api_requests: {
168
+ Row: {
169
+ auth_config: Json | null;
170
+ auth_type: string | null;
171
+ body_content: string | null;
172
+ body_type: string | null;
173
+ collection_id: string;
174
+ created_at: string | null;
175
+ description: string | null;
176
+ folder_id: string | null;
177
+ headers: Json | null;
178
+ id: string;
179
+ method: string;
180
+ name: string;
181
+ position: number;
182
+ query_params: Json | null;
183
+ updated_at: string | null;
184
+ url: string;
185
+ };
186
+ Insert: {
187
+ auth_config?: Json | null;
188
+ auth_type?: string | null;
189
+ body_content?: string | null;
190
+ body_type?: string | null;
191
+ collection_id: string;
192
+ created_at?: string | null;
193
+ description?: string | null;
194
+ folder_id?: string | null;
195
+ headers?: Json | null;
196
+ id?: string;
197
+ method: string;
198
+ name: string;
199
+ position?: number;
200
+ query_params?: Json | null;
201
+ updated_at?: string | null;
202
+ url: string;
203
+ };
204
+ Update: {
205
+ auth_config?: Json | null;
206
+ auth_type?: string | null;
207
+ body_content?: string | null;
208
+ body_type?: string | null;
209
+ collection_id?: string;
210
+ created_at?: string | null;
211
+ description?: string | null;
212
+ folder_id?: string | null;
213
+ headers?: Json | null;
214
+ id?: string;
215
+ method?: string;
216
+ name?: string;
217
+ position?: number;
218
+ query_params?: Json | null;
219
+ updated_at?: string | null;
220
+ url?: string;
221
+ };
222
+ Relationships: [
223
+ {
224
+ foreignKeyName: "api_requests_collection_id_fkey";
225
+ columns: ["collection_id"];
226
+ isOneToOne: false;
227
+ referencedRelation: "api_collections";
228
+ referencedColumns: ["id"];
229
+ },
230
+ {
231
+ foreignKeyName: "api_requests_folder_id_fkey";
232
+ columns: ["folder_id"];
233
+ isOneToOne: false;
234
+ referencedRelation: "api_folders";
235
+ referencedColumns: ["id"];
236
+ }
237
+ ];
238
+ };
239
+ entities: {
240
+ Row: {
241
+ created_at: string | null;
242
+ description: string | null;
243
+ display_name: string;
244
+ entity_data: Json | null;
245
+ icon: string | null;
246
+ id: string;
247
+ is_published: boolean | null;
248
+ name: string;
249
+ updated_at: string | null;
250
+ user_id: string;
251
+ };
252
+ Insert: {
253
+ created_at?: string | null;
254
+ description?: string | null;
255
+ display_name: string;
256
+ entity_data?: Json | null;
257
+ icon?: string | null;
258
+ id?: string;
259
+ is_published?: boolean | null;
260
+ name: string;
261
+ updated_at?: string | null;
262
+ user_id: string;
263
+ };
264
+ Update: {
265
+ created_at?: string | null;
266
+ description?: string | null;
267
+ display_name?: string;
268
+ entity_data?: Json | null;
269
+ icon?: string | null;
270
+ id?: string;
271
+ is_published?: boolean | null;
272
+ name?: string;
273
+ updated_at?: string | null;
274
+ user_id?: string;
275
+ };
276
+ Relationships: [];
277
+ };
278
+ entity_fields: {
279
+ Row: {
280
+ created_at: string | null;
281
+ default_value: string | null;
282
+ display_name: string;
283
+ entity_id: string;
284
+ field_type: Database["public"]["Enums"]["entity_field_type"];
285
+ id: string;
286
+ is_required: boolean | null;
287
+ name: string;
288
+ position: number | null;
289
+ validation_rules: Json | null;
290
+ };
291
+ Insert: {
292
+ created_at?: string | null;
293
+ default_value?: string | null;
294
+ display_name: string;
295
+ entity_id: string;
296
+ field_type: Database["public"]["Enums"]["entity_field_type"];
297
+ id?: string;
298
+ is_required?: boolean | null;
299
+ name: string;
300
+ position?: number | null;
301
+ validation_rules?: Json | null;
302
+ };
303
+ Update: {
304
+ created_at?: string | null;
305
+ default_value?: string | null;
306
+ display_name?: string;
307
+ entity_id?: string;
308
+ field_type?: Database["public"]["Enums"]["entity_field_type"];
309
+ id?: string;
310
+ is_required?: boolean | null;
311
+ name?: string;
312
+ position?: number | null;
313
+ validation_rules?: Json | null;
314
+ };
315
+ Relationships: [
316
+ {
317
+ foreignKeyName: "entity_fields_entity_id_fkey";
318
+ columns: ["entity_id"];
319
+ isOneToOne: false;
320
+ referencedRelation: "entities";
321
+ referencedColumns: ["id"];
322
+ }
323
+ ];
324
+ };
325
+ entity_records: {
326
+ Row: {
327
+ created_at: string | null;
328
+ data: Json;
329
+ entity_id: string;
330
+ id: string;
331
+ is_published: boolean | null;
332
+ updated_at: string | null;
333
+ user_id: string;
334
+ };
335
+ Insert: {
336
+ created_at?: string | null;
337
+ data?: Json;
338
+ entity_id: string;
339
+ id?: string;
340
+ is_published?: boolean | null;
341
+ updated_at?: string | null;
342
+ user_id: string;
343
+ };
344
+ Update: {
345
+ created_at?: string | null;
346
+ data?: Json;
347
+ entity_id?: string;
348
+ id?: string;
349
+ is_published?: boolean | null;
350
+ updated_at?: string | null;
351
+ user_id?: string;
352
+ };
353
+ Relationships: [
354
+ {
355
+ foreignKeyName: "entity_records_entity_id_fkey";
356
+ columns: ["entity_id"];
357
+ isOneToOne: false;
358
+ referencedRelation: "entities";
359
+ referencedColumns: ["id"];
360
+ }
361
+ ];
362
+ };
363
+ entity_versions: {
364
+ Row: {
365
+ created_at: string;
366
+ created_by: string | null;
367
+ description: string | null;
368
+ entity_data: Json;
369
+ entity_id: string;
370
+ id: string;
371
+ version_number: number;
372
+ };
373
+ Insert: {
374
+ created_at?: string;
375
+ created_by?: string | null;
376
+ description?: string | null;
377
+ entity_data: Json;
378
+ entity_id: string;
379
+ id?: string;
380
+ version_number: number;
381
+ };
382
+ Update: {
383
+ created_at?: string;
384
+ created_by?: string | null;
385
+ description?: string | null;
386
+ entity_data?: Json;
387
+ entity_id?: string;
388
+ id?: string;
389
+ version_number?: number;
390
+ };
391
+ Relationships: [
392
+ {
393
+ foreignKeyName: "entity_versions_entity_id_fkey";
394
+ columns: ["entity_id"];
395
+ isOneToOne: false;
396
+ referencedRelation: "entities";
397
+ referencedColumns: ["id"];
398
+ }
399
+ ];
400
+ };
401
+ entity_views: {
402
+ Row: {
403
+ created_at: string;
404
+ entity_id: string;
405
+ id: string;
406
+ is_default: boolean | null;
407
+ name: string;
408
+ updated_at: string;
409
+ user_id: string;
410
+ view_config: Json;
411
+ };
412
+ Insert: {
413
+ created_at?: string;
414
+ entity_id: string;
415
+ id?: string;
416
+ is_default?: boolean | null;
417
+ name: string;
418
+ updated_at?: string;
419
+ user_id: string;
420
+ view_config?: Json;
421
+ };
422
+ Update: {
423
+ created_at?: string;
424
+ entity_id?: string;
425
+ id?: string;
426
+ is_default?: boolean | null;
427
+ name?: string;
428
+ updated_at?: string;
429
+ user_id?: string;
430
+ view_config?: Json;
431
+ };
432
+ Relationships: [];
433
+ };
434
+ form_fields: {
435
+ Row: {
436
+ column_width: string | null;
437
+ conditional_logic: Json | null;
438
+ created_at: string | null;
439
+ default_value: string | null;
440
+ field_name: string;
441
+ field_type: string;
442
+ form_id: string;
443
+ help_text: string | null;
444
+ id: string;
445
+ is_required: boolean | null;
446
+ is_visible: boolean | null;
447
+ label: string;
448
+ options: Json | null;
449
+ placeholder: string | null;
450
+ position: number;
451
+ section_id: string | null;
452
+ validation_rules: Json | null;
453
+ };
454
+ Insert: {
455
+ column_width?: string | null;
456
+ conditional_logic?: Json | null;
457
+ created_at?: string | null;
458
+ default_value?: string | null;
459
+ field_name: string;
460
+ field_type: string;
461
+ form_id: string;
462
+ help_text?: string | null;
463
+ id?: string;
464
+ is_required?: boolean | null;
465
+ is_visible?: boolean | null;
466
+ label: string;
467
+ options?: Json | null;
468
+ placeholder?: string | null;
469
+ position?: number;
470
+ section_id?: string | null;
471
+ validation_rules?: Json | null;
472
+ };
473
+ Update: {
474
+ column_width?: string | null;
475
+ conditional_logic?: Json | null;
476
+ created_at?: string | null;
477
+ default_value?: string | null;
478
+ field_name?: string;
479
+ field_type?: string;
480
+ form_id?: string;
481
+ help_text?: string | null;
482
+ id?: string;
483
+ is_required?: boolean | null;
484
+ is_visible?: boolean | null;
485
+ label?: string;
486
+ options?: Json | null;
487
+ placeholder?: string | null;
488
+ position?: number;
489
+ section_id?: string | null;
490
+ validation_rules?: Json | null;
491
+ };
492
+ Relationships: [
493
+ {
494
+ foreignKeyName: "form_fields_form_id_fkey";
495
+ columns: ["form_id"];
496
+ isOneToOne: false;
497
+ referencedRelation: "forms";
498
+ referencedColumns: ["id"];
499
+ },
500
+ {
501
+ foreignKeyName: "form_fields_section_id_fkey";
502
+ columns: ["section_id"];
503
+ isOneToOne: false;
504
+ referencedRelation: "form_sections";
505
+ referencedColumns: ["id"];
506
+ }
507
+ ];
508
+ };
509
+ form_sections: {
510
+ Row: {
511
+ conditional_logic: Json | null;
512
+ created_at: string | null;
513
+ description: string | null;
514
+ form_id: string;
515
+ id: string;
516
+ is_visible: boolean | null;
517
+ name: string;
518
+ parent_section_id: string | null;
519
+ position: number;
520
+ section_type: string;
521
+ title: string;
522
+ };
523
+ Insert: {
524
+ conditional_logic?: Json | null;
525
+ created_at?: string | null;
526
+ description?: string | null;
527
+ form_id: string;
528
+ id?: string;
529
+ is_visible?: boolean | null;
530
+ name: string;
531
+ parent_section_id?: string | null;
532
+ position?: number;
533
+ section_type: string;
534
+ title: string;
535
+ };
536
+ Update: {
537
+ conditional_logic?: Json | null;
538
+ created_at?: string | null;
539
+ description?: string | null;
540
+ form_id?: string;
541
+ id?: string;
542
+ is_visible?: boolean | null;
543
+ name?: string;
544
+ parent_section_id?: string | null;
545
+ position?: number;
546
+ section_type?: string;
547
+ title?: string;
548
+ };
549
+ Relationships: [
550
+ {
551
+ foreignKeyName: "form_sections_form_id_fkey";
552
+ columns: ["form_id"];
553
+ isOneToOne: false;
554
+ referencedRelation: "forms";
555
+ referencedColumns: ["id"];
556
+ },
557
+ {
558
+ foreignKeyName: "form_sections_parent_section_id_fkey";
559
+ columns: ["parent_section_id"];
560
+ isOneToOne: false;
561
+ referencedRelation: "form_sections";
562
+ referencedColumns: ["id"];
563
+ }
564
+ ];
565
+ };
566
+ form_submissions: {
567
+ Row: {
568
+ data: Json;
569
+ form_id: string;
570
+ id: string;
571
+ ip_address: string | null;
572
+ submitted_at: string | null;
573
+ user_agent: string | null;
574
+ user_id: string | null;
575
+ };
576
+ Insert: {
577
+ data?: Json;
578
+ form_id: string;
579
+ id?: string;
580
+ ip_address?: string | null;
581
+ submitted_at?: string | null;
582
+ user_agent?: string | null;
583
+ user_id?: string | null;
584
+ };
585
+ Update: {
586
+ data?: Json;
587
+ form_id?: string;
588
+ id?: string;
589
+ ip_address?: string | null;
590
+ submitted_at?: string | null;
591
+ user_agent?: string | null;
592
+ user_id?: string | null;
593
+ };
594
+ Relationships: [
595
+ {
596
+ foreignKeyName: "form_submissions_form_id_fkey";
597
+ columns: ["form_id"];
598
+ isOneToOne: false;
599
+ referencedRelation: "forms";
600
+ referencedColumns: ["id"];
601
+ }
602
+ ];
603
+ };
604
+ form_templates: {
605
+ Row: {
606
+ category: string | null;
607
+ created_at: string | null;
608
+ description: string | null;
609
+ icon: string | null;
610
+ id: string;
611
+ is_public: boolean | null;
612
+ name: string;
613
+ template_data: Json;
614
+ };
615
+ Insert: {
616
+ category?: string | null;
617
+ created_at?: string | null;
618
+ description?: string | null;
619
+ icon?: string | null;
620
+ id?: string;
621
+ is_public?: boolean | null;
622
+ name: string;
623
+ template_data: Json;
624
+ };
625
+ Update: {
626
+ category?: string | null;
627
+ created_at?: string | null;
628
+ description?: string | null;
629
+ icon?: string | null;
630
+ id?: string;
631
+ is_public?: boolean | null;
632
+ name?: string;
633
+ template_data?: Json;
634
+ };
635
+ Relationships: [];
636
+ };
637
+ forms: {
638
+ Row: {
639
+ allow_multiple_submissions: boolean | null;
640
+ created_at: string | null;
641
+ description: string | null;
642
+ id: string;
643
+ is_published: boolean | null;
644
+ name: string;
645
+ redirect_url: string | null;
646
+ require_authentication: boolean | null;
647
+ submit_button_text: string | null;
648
+ success_message: string | null;
649
+ title: string;
650
+ updated_at: string | null;
651
+ user_id: string;
652
+ };
653
+ Insert: {
654
+ allow_multiple_submissions?: boolean | null;
655
+ created_at?: string | null;
656
+ description?: string | null;
657
+ id?: string;
658
+ is_published?: boolean | null;
659
+ name: string;
660
+ redirect_url?: string | null;
661
+ require_authentication?: boolean | null;
662
+ submit_button_text?: string | null;
663
+ success_message?: string | null;
664
+ title: string;
665
+ updated_at?: string | null;
666
+ user_id: string;
667
+ };
668
+ Update: {
669
+ allow_multiple_submissions?: boolean | null;
670
+ created_at?: string | null;
671
+ description?: string | null;
672
+ id?: string;
673
+ is_published?: boolean | null;
674
+ name?: string;
675
+ redirect_url?: string | null;
676
+ require_authentication?: boolean | null;
677
+ submit_button_text?: string | null;
678
+ success_message?: string | null;
679
+ title?: string;
680
+ updated_at?: string | null;
681
+ user_id?: string;
682
+ };
683
+ Relationships: [];
684
+ };
685
+ layout_components: {
686
+ Row: {
687
+ column_index: number;
688
+ component_type: string;
689
+ content: Json;
690
+ created_at: string;
691
+ id: string;
692
+ layout_id: string;
693
+ position: number;
694
+ row_id: string | null;
695
+ styles: Json | null;
696
+ updated_at: string;
697
+ };
698
+ Insert: {
699
+ column_index?: number;
700
+ component_type: string;
701
+ content?: Json;
702
+ created_at?: string;
703
+ id?: string;
704
+ layout_id: string;
705
+ position?: number;
706
+ row_id?: string | null;
707
+ styles?: Json | null;
708
+ updated_at?: string;
709
+ };
710
+ Update: {
711
+ column_index?: number;
712
+ component_type?: string;
713
+ content?: Json;
714
+ created_at?: string;
715
+ id?: string;
716
+ layout_id?: string;
717
+ position?: number;
718
+ row_id?: string | null;
719
+ styles?: Json | null;
720
+ updated_at?: string;
721
+ };
722
+ Relationships: [
723
+ {
724
+ foreignKeyName: "layout_components_layout_id_fkey";
725
+ columns: ["layout_id"];
726
+ isOneToOne: false;
727
+ referencedRelation: "layouts";
728
+ referencedColumns: ["id"];
729
+ },
730
+ {
731
+ foreignKeyName: "layout_components_row_id_fkey";
732
+ columns: ["row_id"];
733
+ isOneToOne: false;
734
+ referencedRelation: "layout_rows";
735
+ referencedColumns: ["id"];
736
+ }
737
+ ];
738
+ };
739
+ layout_rows: {
740
+ Row: {
741
+ column_widths: Json | null;
742
+ columns: number;
743
+ created_at: string;
744
+ id: string;
745
+ layout_id: string;
746
+ position: number;
747
+ responsive_config: Json | null;
748
+ styles: Json | null;
749
+ updated_at: string;
750
+ };
751
+ Insert: {
752
+ column_widths?: Json | null;
753
+ columns?: number;
754
+ created_at?: string;
755
+ id?: string;
756
+ layout_id: string;
757
+ position?: number;
758
+ responsive_config?: Json | null;
759
+ styles?: Json | null;
760
+ updated_at?: string;
761
+ };
762
+ Update: {
763
+ column_widths?: Json | null;
764
+ columns?: number;
765
+ created_at?: string;
766
+ id?: string;
767
+ layout_id?: string;
768
+ position?: number;
769
+ responsive_config?: Json | null;
770
+ styles?: Json | null;
771
+ updated_at?: string;
772
+ };
773
+ Relationships: [
774
+ {
775
+ foreignKeyName: "layout_rows_layout_id_fkey";
776
+ columns: ["layout_id"];
777
+ isOneToOne: false;
778
+ referencedRelation: "layouts";
779
+ referencedColumns: ["id"];
780
+ }
781
+ ];
782
+ };
783
+ layouts: {
784
+ Row: {
785
+ created_at: string;
786
+ id: string;
787
+ is_published: boolean;
788
+ title: string;
789
+ updated_at: string;
790
+ user_id: string;
791
+ };
792
+ Insert: {
793
+ created_at?: string;
794
+ id?: string;
795
+ is_published?: boolean;
796
+ title: string;
797
+ updated_at?: string;
798
+ user_id: string;
799
+ };
800
+ Update: {
801
+ created_at?: string;
802
+ id?: string;
803
+ is_published?: boolean;
804
+ title?: string;
805
+ updated_at?: string;
806
+ user_id?: string;
807
+ };
808
+ Relationships: [];
809
+ };
810
+ page_components: {
811
+ Row: {
812
+ column_index: number;
813
+ component_type: string;
814
+ content: Json;
815
+ created_at: string;
816
+ id: string;
817
+ is_widget_instance: boolean;
818
+ page_id: string;
819
+ position: number;
820
+ row_id: string | null;
821
+ styles: Json | null;
822
+ updated_at: string;
823
+ widget_id: string | null;
824
+ };
825
+ Insert: {
826
+ column_index?: number;
827
+ component_type: string;
828
+ content?: Json;
829
+ created_at?: string;
830
+ id?: string;
831
+ is_widget_instance?: boolean;
832
+ page_id: string;
833
+ position?: number;
834
+ row_id?: string | null;
835
+ styles?: Json | null;
836
+ updated_at?: string;
837
+ widget_id?: string | null;
838
+ };
839
+ Update: {
840
+ column_index?: number;
841
+ component_type?: string;
842
+ content?: Json;
843
+ created_at?: string;
844
+ id?: string;
845
+ is_widget_instance?: boolean;
846
+ page_id?: string;
847
+ position?: number;
848
+ row_id?: string | null;
849
+ styles?: Json | null;
850
+ updated_at?: string;
851
+ widget_id?: string | null;
852
+ };
853
+ Relationships: [
854
+ {
855
+ foreignKeyName: "page_components_page_id_fkey";
856
+ columns: ["page_id"];
857
+ isOneToOne: false;
858
+ referencedRelation: "pages";
859
+ referencedColumns: ["id"];
860
+ },
861
+ {
862
+ foreignKeyName: "page_components_row_id_fkey";
863
+ columns: ["row_id"];
864
+ isOneToOne: false;
865
+ referencedRelation: "page_rows";
866
+ referencedColumns: ["id"];
867
+ },
868
+ {
869
+ foreignKeyName: "page_components_widget_id_fkey";
870
+ columns: ["widget_id"];
871
+ isOneToOne: false;
872
+ referencedRelation: "widgets";
873
+ referencedColumns: ["id"];
874
+ }
875
+ ];
876
+ };
877
+ page_rows: {
878
+ Row: {
879
+ column_widths: Json | null;
880
+ columns: number;
881
+ created_at: string;
882
+ id: string;
883
+ page_id: string;
884
+ position: number;
885
+ responsive_config: Json | null;
886
+ styles: Json | null;
887
+ updated_at: string;
888
+ };
889
+ Insert: {
890
+ column_widths?: Json | null;
891
+ columns?: number;
892
+ created_at?: string;
893
+ id?: string;
894
+ page_id: string;
895
+ position?: number;
896
+ responsive_config?: Json | null;
897
+ styles?: Json | null;
898
+ updated_at?: string;
899
+ };
900
+ Update: {
901
+ column_widths?: Json | null;
902
+ columns?: number;
903
+ created_at?: string;
904
+ id?: string;
905
+ page_id?: string;
906
+ position?: number;
907
+ responsive_config?: Json | null;
908
+ styles?: Json | null;
909
+ updated_at?: string;
910
+ };
911
+ Relationships: [
912
+ {
913
+ foreignKeyName: "page_rows_page_id_fkey";
914
+ columns: ["page_id"];
915
+ isOneToOne: false;
916
+ referencedRelation: "pages";
917
+ referencedColumns: ["id"];
918
+ }
919
+ ];
920
+ };
921
+ page_versions: {
922
+ Row: {
923
+ created_at: string;
924
+ created_by: string | null;
925
+ description: string | null;
926
+ id: string;
927
+ page_data: Json;
928
+ page_id: string;
929
+ version_number: number;
930
+ };
931
+ Insert: {
932
+ created_at?: string;
933
+ created_by?: string | null;
934
+ description?: string | null;
935
+ id?: string;
936
+ page_data: Json;
937
+ page_id: string;
938
+ version_number: number;
939
+ };
940
+ Update: {
941
+ created_at?: string;
942
+ created_by?: string | null;
943
+ description?: string | null;
944
+ id?: string;
945
+ page_data?: Json;
946
+ page_id?: string;
947
+ version_number?: number;
948
+ };
949
+ Relationships: [
950
+ {
951
+ foreignKeyName: "page_versions_page_id_fkey";
952
+ columns: ["page_id"];
953
+ isOneToOne: false;
954
+ referencedRelation: "pages";
955
+ referencedColumns: ["id"];
956
+ }
957
+ ];
958
+ };
959
+ pages: {
960
+ Row: {
961
+ created_at: string;
962
+ id: string;
963
+ is_published: boolean;
964
+ layout_id: string | null;
965
+ menu_order: number;
966
+ page_data: Json | null;
967
+ slug: string;
968
+ title: string;
969
+ updated_at: string;
970
+ user_id: string;
971
+ };
972
+ Insert: {
973
+ created_at?: string;
974
+ id?: string;
975
+ is_published?: boolean;
976
+ layout_id?: string | null;
977
+ menu_order?: number;
978
+ page_data?: Json | null;
979
+ slug: string;
980
+ title: string;
981
+ updated_at?: string;
982
+ user_id: string;
983
+ };
984
+ Update: {
985
+ created_at?: string;
986
+ id?: string;
987
+ is_published?: boolean;
988
+ layout_id?: string | null;
989
+ menu_order?: number;
990
+ page_data?: Json | null;
991
+ slug?: string;
992
+ title?: string;
993
+ updated_at?: string;
994
+ user_id?: string;
995
+ };
996
+ Relationships: [
997
+ {
998
+ foreignKeyName: "pages_layout_id_fkey";
999
+ columns: ["layout_id"];
1000
+ isOneToOne: false;
1001
+ referencedRelation: "layouts";
1002
+ referencedColumns: ["id"];
1003
+ }
1004
+ ];
1005
+ };
1006
+ profiles: {
1007
+ Row: {
1008
+ created_at: string;
1009
+ email: string;
1010
+ id: string;
1011
+ updated_at: string;
1012
+ };
1013
+ Insert: {
1014
+ created_at?: string;
1015
+ email: string;
1016
+ id: string;
1017
+ updated_at?: string;
1018
+ };
1019
+ Update: {
1020
+ created_at?: string;
1021
+ email?: string;
1022
+ id?: string;
1023
+ updated_at?: string;
1024
+ };
1025
+ Relationships: [];
1026
+ };
1027
+ queries: {
1028
+ Row: {
1029
+ created_at: string | null;
1030
+ description: string | null;
1031
+ display_name: string;
1032
+ id: string;
1033
+ is_published: boolean | null;
1034
+ name: string;
1035
+ query_type: string;
1036
+ updated_at: string | null;
1037
+ user_id: string;
1038
+ };
1039
+ Insert: {
1040
+ created_at?: string | null;
1041
+ description?: string | null;
1042
+ display_name: string;
1043
+ id?: string;
1044
+ is_published?: boolean | null;
1045
+ name: string;
1046
+ query_type: string;
1047
+ updated_at?: string | null;
1048
+ user_id: string;
1049
+ };
1050
+ Update: {
1051
+ created_at?: string | null;
1052
+ description?: string | null;
1053
+ display_name?: string;
1054
+ id?: string;
1055
+ is_published?: boolean | null;
1056
+ name?: string;
1057
+ query_type?: string;
1058
+ updated_at?: string | null;
1059
+ user_id?: string;
1060
+ };
1061
+ Relationships: [];
1062
+ };
1063
+ query_conditions: {
1064
+ Row: {
1065
+ created_at: string | null;
1066
+ entity_id: string | null;
1067
+ field_name: string | null;
1068
+ id: string;
1069
+ is_group: boolean | null;
1070
+ logic: string | null;
1071
+ operator: string | null;
1072
+ parent_condition_id: string | null;
1073
+ position: number;
1074
+ query_id: string;
1075
+ value: string | null;
1076
+ };
1077
+ Insert: {
1078
+ created_at?: string | null;
1079
+ entity_id?: string | null;
1080
+ field_name?: string | null;
1081
+ id?: string;
1082
+ is_group?: boolean | null;
1083
+ logic?: string | null;
1084
+ operator?: string | null;
1085
+ parent_condition_id?: string | null;
1086
+ position?: number;
1087
+ query_id: string;
1088
+ value?: string | null;
1089
+ };
1090
+ Update: {
1091
+ created_at?: string | null;
1092
+ entity_id?: string | null;
1093
+ field_name?: string | null;
1094
+ id?: string;
1095
+ is_group?: boolean | null;
1096
+ logic?: string | null;
1097
+ operator?: string | null;
1098
+ parent_condition_id?: string | null;
1099
+ position?: number;
1100
+ query_id?: string;
1101
+ value?: string | null;
1102
+ };
1103
+ Relationships: [
1104
+ {
1105
+ foreignKeyName: "query_conditions_entity_id_fkey";
1106
+ columns: ["entity_id"];
1107
+ isOneToOne: false;
1108
+ referencedRelation: "entities";
1109
+ referencedColumns: ["id"];
1110
+ },
1111
+ {
1112
+ foreignKeyName: "query_conditions_parent_condition_id_fkey";
1113
+ columns: ["parent_condition_id"];
1114
+ isOneToOne: false;
1115
+ referencedRelation: "query_conditions";
1116
+ referencedColumns: ["id"];
1117
+ },
1118
+ {
1119
+ foreignKeyName: "query_conditions_query_id_fkey";
1120
+ columns: ["query_id"];
1121
+ isOneToOne: false;
1122
+ referencedRelation: "queries";
1123
+ referencedColumns: ["id"];
1124
+ }
1125
+ ];
1126
+ };
1127
+ query_fields: {
1128
+ Row: {
1129
+ aggregation: string | null;
1130
+ created_at: string | null;
1131
+ entity_id: string;
1132
+ field_name: string;
1133
+ id: string;
1134
+ position: number;
1135
+ query_id: string;
1136
+ };
1137
+ Insert: {
1138
+ aggregation?: string | null;
1139
+ created_at?: string | null;
1140
+ entity_id: string;
1141
+ field_name: string;
1142
+ id?: string;
1143
+ position?: number;
1144
+ query_id: string;
1145
+ };
1146
+ Update: {
1147
+ aggregation?: string | null;
1148
+ created_at?: string | null;
1149
+ entity_id?: string;
1150
+ field_name?: string;
1151
+ id?: string;
1152
+ position?: number;
1153
+ query_id?: string;
1154
+ };
1155
+ Relationships: [
1156
+ {
1157
+ foreignKeyName: "query_fields_entity_id_fkey";
1158
+ columns: ["entity_id"];
1159
+ isOneToOne: false;
1160
+ referencedRelation: "entities";
1161
+ referencedColumns: ["id"];
1162
+ },
1163
+ {
1164
+ foreignKeyName: "query_fields_query_id_fkey";
1165
+ columns: ["query_id"];
1166
+ isOneToOne: false;
1167
+ referencedRelation: "queries";
1168
+ referencedColumns: ["id"];
1169
+ }
1170
+ ];
1171
+ };
1172
+ query_join_conditions: {
1173
+ Row: {
1174
+ created_at: string | null;
1175
+ id: string;
1176
+ join_id: string;
1177
+ logic: string | null;
1178
+ position: number;
1179
+ primary_field: string;
1180
+ target_field: string;
1181
+ };
1182
+ Insert: {
1183
+ created_at?: string | null;
1184
+ id?: string;
1185
+ join_id: string;
1186
+ logic?: string | null;
1187
+ position?: number;
1188
+ primary_field: string;
1189
+ target_field: string;
1190
+ };
1191
+ Update: {
1192
+ created_at?: string | null;
1193
+ id?: string;
1194
+ join_id?: string;
1195
+ logic?: string | null;
1196
+ position?: number;
1197
+ primary_field?: string;
1198
+ target_field?: string;
1199
+ };
1200
+ Relationships: [
1201
+ {
1202
+ foreignKeyName: "query_join_conditions_join_id_fkey";
1203
+ columns: ["join_id"];
1204
+ isOneToOne: false;
1205
+ referencedRelation: "query_joins";
1206
+ referencedColumns: ["id"];
1207
+ }
1208
+ ];
1209
+ };
1210
+ query_joins: {
1211
+ Row: {
1212
+ created_at: string | null;
1213
+ id: string;
1214
+ is_group: boolean | null;
1215
+ join_type: string | null;
1216
+ parent_join_id: string | null;
1217
+ position: number;
1218
+ primary_field: string | null;
1219
+ query_id: string;
1220
+ target_entity_id: string | null;
1221
+ target_field: string | null;
1222
+ };
1223
+ Insert: {
1224
+ created_at?: string | null;
1225
+ id?: string;
1226
+ is_group?: boolean | null;
1227
+ join_type?: string | null;
1228
+ parent_join_id?: string | null;
1229
+ position?: number;
1230
+ primary_field?: string | null;
1231
+ query_id: string;
1232
+ target_entity_id?: string | null;
1233
+ target_field?: string | null;
1234
+ };
1235
+ Update: {
1236
+ created_at?: string | null;
1237
+ id?: string;
1238
+ is_group?: boolean | null;
1239
+ join_type?: string | null;
1240
+ parent_join_id?: string | null;
1241
+ position?: number;
1242
+ primary_field?: string | null;
1243
+ query_id?: string;
1244
+ target_entity_id?: string | null;
1245
+ target_field?: string | null;
1246
+ };
1247
+ Relationships: [
1248
+ {
1249
+ foreignKeyName: "query_joins_parent_join_id_fkey";
1250
+ columns: ["parent_join_id"];
1251
+ isOneToOne: false;
1252
+ referencedRelation: "query_joins";
1253
+ referencedColumns: ["id"];
1254
+ },
1255
+ {
1256
+ foreignKeyName: "query_joins_query_id_fkey";
1257
+ columns: ["query_id"];
1258
+ isOneToOne: false;
1259
+ referencedRelation: "queries";
1260
+ referencedColumns: ["id"];
1261
+ },
1262
+ {
1263
+ foreignKeyName: "query_joins_target_entity_id_fkey";
1264
+ columns: ["target_entity_id"];
1265
+ isOneToOne: false;
1266
+ referencedRelation: "entities";
1267
+ referencedColumns: ["id"];
1268
+ }
1269
+ ];
1270
+ };
1271
+ query_settings: {
1272
+ Row: {
1273
+ created_at: string | null;
1274
+ display_style: string | null;
1275
+ group_by: Json | null;
1276
+ id: string;
1277
+ limit_rows: number | null;
1278
+ primary_entity_id: string;
1279
+ query_id: string;
1280
+ show_row_numbers: boolean | null;
1281
+ sort_entity_id: string | null;
1282
+ sort_field: string | null;
1283
+ sort_order: string | null;
1284
+ updated_at: string | null;
1285
+ };
1286
+ Insert: {
1287
+ created_at?: string | null;
1288
+ display_style?: string | null;
1289
+ group_by?: Json | null;
1290
+ id?: string;
1291
+ limit_rows?: number | null;
1292
+ primary_entity_id: string;
1293
+ query_id: string;
1294
+ show_row_numbers?: boolean | null;
1295
+ sort_entity_id?: string | null;
1296
+ sort_field?: string | null;
1297
+ sort_order?: string | null;
1298
+ updated_at?: string | null;
1299
+ };
1300
+ Update: {
1301
+ created_at?: string | null;
1302
+ display_style?: string | null;
1303
+ group_by?: Json | null;
1304
+ id?: string;
1305
+ limit_rows?: number | null;
1306
+ primary_entity_id?: string;
1307
+ query_id?: string;
1308
+ show_row_numbers?: boolean | null;
1309
+ sort_entity_id?: string | null;
1310
+ sort_field?: string | null;
1311
+ sort_order?: string | null;
1312
+ updated_at?: string | null;
1313
+ };
1314
+ Relationships: [
1315
+ {
1316
+ foreignKeyName: "query_settings_primary_entity_id_fkey";
1317
+ columns: ["primary_entity_id"];
1318
+ isOneToOne: false;
1319
+ referencedRelation: "entities";
1320
+ referencedColumns: ["id"];
1321
+ },
1322
+ {
1323
+ foreignKeyName: "query_settings_query_id_fkey";
1324
+ columns: ["query_id"];
1325
+ isOneToOne: true;
1326
+ referencedRelation: "queries";
1327
+ referencedColumns: ["id"];
1328
+ },
1329
+ {
1330
+ foreignKeyName: "query_settings_sort_entity_id_fkey";
1331
+ columns: ["sort_entity_id"];
1332
+ isOneToOne: false;
1333
+ referencedRelation: "entities";
1334
+ referencedColumns: ["id"];
1335
+ }
1336
+ ];
1337
+ };
1338
+ section_templates: {
1339
+ Row: {
1340
+ category: string;
1341
+ created_at: string | null;
1342
+ created_by: string | null;
1343
+ description: string | null;
1344
+ id: string;
1345
+ is_public: boolean | null;
1346
+ name: string;
1347
+ template_data: Json;
1348
+ thumbnail_url: string | null;
1349
+ };
1350
+ Insert: {
1351
+ category: string;
1352
+ created_at?: string | null;
1353
+ created_by?: string | null;
1354
+ description?: string | null;
1355
+ id?: string;
1356
+ is_public?: boolean | null;
1357
+ name: string;
1358
+ template_data: Json;
1359
+ thumbnail_url?: string | null;
1360
+ };
1361
+ Update: {
1362
+ category?: string;
1363
+ created_at?: string | null;
1364
+ created_by?: string | null;
1365
+ description?: string | null;
1366
+ id?: string;
1367
+ is_public?: boolean | null;
1368
+ name?: string;
1369
+ template_data?: Json;
1370
+ thumbnail_url?: string | null;
1371
+ };
1372
+ Relationships: [
1373
+ {
1374
+ foreignKeyName: "section_templates_created_by_fkey";
1375
+ columns: ["created_by"];
1376
+ isOneToOne: false;
1377
+ referencedRelation: "profiles";
1378
+ referencedColumns: ["id"];
1379
+ }
1380
+ ];
1381
+ };
1382
+ widget_components: {
1383
+ Row: {
1384
+ column_index: number;
1385
+ component_type: string;
1386
+ content: Json;
1387
+ created_at: string;
1388
+ id: string;
1389
+ position: number;
1390
+ row_id: string | null;
1391
+ styles: Json | null;
1392
+ updated_at: string;
1393
+ widget_id: string;
1394
+ };
1395
+ Insert: {
1396
+ column_index?: number;
1397
+ component_type: string;
1398
+ content?: Json;
1399
+ created_at?: string;
1400
+ id?: string;
1401
+ position?: number;
1402
+ row_id?: string | null;
1403
+ styles?: Json | null;
1404
+ updated_at?: string;
1405
+ widget_id: string;
1406
+ };
1407
+ Update: {
1408
+ column_index?: number;
1409
+ component_type?: string;
1410
+ content?: Json;
1411
+ created_at?: string;
1412
+ id?: string;
1413
+ position?: number;
1414
+ row_id?: string | null;
1415
+ styles?: Json | null;
1416
+ updated_at?: string;
1417
+ widget_id?: string;
1418
+ };
1419
+ Relationships: [
1420
+ {
1421
+ foreignKeyName: "widget_components_row_id_fkey";
1422
+ columns: ["row_id"];
1423
+ isOneToOne: false;
1424
+ referencedRelation: "widget_rows";
1425
+ referencedColumns: ["id"];
1426
+ },
1427
+ {
1428
+ foreignKeyName: "widget_components_widget_id_fkey";
1429
+ columns: ["widget_id"];
1430
+ isOneToOne: false;
1431
+ referencedRelation: "widgets";
1432
+ referencedColumns: ["id"];
1433
+ }
1434
+ ];
1435
+ };
1436
+ widget_rows: {
1437
+ Row: {
1438
+ column_widths: Json | null;
1439
+ columns: number;
1440
+ created_at: string;
1441
+ id: string;
1442
+ position: number;
1443
+ responsive_config: Json | null;
1444
+ styles: Json | null;
1445
+ updated_at: string;
1446
+ widget_id: string;
1447
+ };
1448
+ Insert: {
1449
+ column_widths?: Json | null;
1450
+ columns?: number;
1451
+ created_at?: string;
1452
+ id?: string;
1453
+ position?: number;
1454
+ responsive_config?: Json | null;
1455
+ styles?: Json | null;
1456
+ updated_at?: string;
1457
+ widget_id: string;
1458
+ };
1459
+ Update: {
1460
+ column_widths?: Json | null;
1461
+ columns?: number;
1462
+ created_at?: string;
1463
+ id?: string;
1464
+ position?: number;
1465
+ responsive_config?: Json | null;
1466
+ styles?: Json | null;
1467
+ updated_at?: string;
1468
+ widget_id?: string;
1469
+ };
1470
+ Relationships: [
1471
+ {
1472
+ foreignKeyName: "widget_rows_widget_id_fkey";
1473
+ columns: ["widget_id"];
1474
+ isOneToOne: false;
1475
+ referencedRelation: "widgets";
1476
+ referencedColumns: ["id"];
1477
+ }
1478
+ ];
1479
+ };
1480
+ widgets: {
1481
+ Row: {
1482
+ category: string | null;
1483
+ created_at: string;
1484
+ id: string;
1485
+ is_published: boolean;
1486
+ title: string;
1487
+ updated_at: string;
1488
+ user_id: string;
1489
+ };
1490
+ Insert: {
1491
+ category?: string | null;
1492
+ created_at?: string;
1493
+ id?: string;
1494
+ is_published?: boolean;
1495
+ title: string;
1496
+ updated_at?: string;
1497
+ user_id: string;
1498
+ };
1499
+ Update: {
1500
+ category?: string | null;
1501
+ created_at?: string;
1502
+ id?: string;
1503
+ is_published?: boolean;
1504
+ title?: string;
1505
+ updated_at?: string;
1506
+ user_id?: string;
1507
+ };
1508
+ Relationships: [];
1509
+ };
1510
+ };
1511
+ Views: {
1512
+ [_ in never]: never;
1513
+ };
1514
+ Functions: {
1515
+ [_ in never]: never;
1516
+ };
1517
+ Enums: {
1518
+ entity_field_type: "text" | "number" | "boolean" | "date" | "longtext" | "image" | "url";
1519
+ };
1520
+ CompositeTypes: {
1521
+ [_ in never]: never;
1522
+ };
1523
+ };
1524
+ };
1525
+ type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
1526
+ type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
1527
+ export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
1528
+ schema: keyof DatabaseWithoutInternals;
1529
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
1530
+ schema: keyof DatabaseWithoutInternals;
1531
+ } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
1532
+ schema: keyof DatabaseWithoutInternals;
1533
+ } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
1534
+ Row: infer R;
1535
+ } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
1536
+ Row: infer R;
1537
+ } ? R : never : never;
1538
+ export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
1539
+ schema: keyof DatabaseWithoutInternals;
1540
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
1541
+ schema: keyof DatabaseWithoutInternals;
1542
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
1543
+ schema: keyof DatabaseWithoutInternals;
1544
+ } ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
1545
+ Insert: infer I;
1546
+ } ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
1547
+ Insert: infer I;
1548
+ } ? I : never : never;
1549
+ export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
1550
+ schema: keyof DatabaseWithoutInternals;
1551
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
1552
+ schema: keyof DatabaseWithoutInternals;
1553
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
1554
+ schema: keyof DatabaseWithoutInternals;
1555
+ } ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
1556
+ Update: infer U;
1557
+ } ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
1558
+ Update: infer U;
1559
+ } ? U : never : never;
1560
+ export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
1561
+ schema: keyof DatabaseWithoutInternals;
1562
+ }, EnumName extends DefaultSchemaEnumNameOrOptions extends {
1563
+ schema: keyof DatabaseWithoutInternals;
1564
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
1565
+ schema: keyof DatabaseWithoutInternals;
1566
+ } ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
1567
+ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
1568
+ schema: keyof DatabaseWithoutInternals;
1569
+ }, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
1570
+ schema: keyof DatabaseWithoutInternals;
1571
+ } ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
1572
+ schema: keyof DatabaseWithoutInternals;
1573
+ } ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
1574
+ export declare const Constants: {
1575
+ readonly public: {
1576
+ readonly Enums: {
1577
+ readonly entity_field_type: readonly ["text", "number", "boolean", "date", "longtext", "image", "url"];
1578
+ };
1579
+ };
1580
+ };
1581
+ export {};