@flowselections/core 1.0.7 → 1.0.9

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 (131) hide show
  1. package/dist/auth/useAuth.d.ts +27 -27
  2. package/dist/auth/useAuth.js +72 -72
  3. package/dist/components/instellingen/NotificationSettingsCard.d.ts +1 -1
  4. package/dist/components/instellingen/NotificationSettingsCard.js +63 -63
  5. package/dist/components/layout/BugsDialog.d.ts +6 -6
  6. package/dist/components/layout/BugsDialog.js +148 -148
  7. package/dist/components/layout/Header.d.ts +5 -5
  8. package/dist/components/layout/Header.js +30 -30
  9. package/dist/components/layout/InstellingenPage.d.ts +4 -4
  10. package/dist/components/layout/InstellingenPage.js +78 -78
  11. package/dist/components/layout/LoginPage.d.ts +5 -5
  12. package/dist/components/layout/LoginPage.js +57 -57
  13. package/dist/components/layout/NotificationBell.d.ts +1 -1
  14. package/dist/components/layout/NotificationBell.js +45 -45
  15. package/dist/components/layout/ResetWachtwoordPage.d.ts +5 -5
  16. package/dist/components/layout/ResetWachtwoordPage.js +51 -51
  17. package/dist/components/layout/Sidebar.d.ts +8 -8
  18. package/dist/components/layout/Sidebar.js +29 -31
  19. package/dist/components/ui/accordion.d.ts +7 -7
  20. package/dist/components/ui/accordion.js +13 -13
  21. package/dist/components/ui/alert-dialog.d.ts +20 -20
  22. package/dist/components/ui/alert-dialog.js +26 -26
  23. package/dist/components/ui/alert.d.ts +8 -8
  24. package/dist/components/ui/alert.js +22 -22
  25. package/dist/components/ui/aspect-ratio.d.ts +3 -3
  26. package/dist/components/ui/aspect-ratio.js +3 -3
  27. package/dist/components/ui/avatar.d.ts +6 -6
  28. package/dist/components/ui/avatar.js +12 -12
  29. package/dist/components/ui/badge.d.ts +9 -9
  30. package/dist/components/ui/badge.js +20 -20
  31. package/dist/components/ui/breadcrumb.d.ts +19 -19
  32. package/dist/components/ui/breadcrumb.js +23 -23
  33. package/dist/components/ui/button.d.ts +11 -11
  34. package/dist/components/ui/button.js +33 -33
  35. package/dist/components/ui/calendar.d.ts +8 -8
  36. package/dist/components/ui/calendar.js +74 -74
  37. package/dist/components/ui/card.d.ts +8 -8
  38. package/dist/components/ui/card.js +16 -16
  39. package/dist/components/ui/carousel.d.ts +18 -18
  40. package/dist/components/ui/carousel.js +98 -98
  41. package/dist/components/ui/chart.d.ts +62 -62
  42. package/dist/components/ui/chart.js +130 -130
  43. package/dist/components/ui/checkbox.d.ts +4 -4
  44. package/dist/components/ui/checkbox.js +8 -8
  45. package/dist/components/ui/collapsible.d.ts +5 -5
  46. package/dist/components/ui/collapsible.js +6 -6
  47. package/dist/components/ui/command.d.ts +80 -80
  48. package/dist/components/ui/command.js +29 -29
  49. package/dist/components/ui/context-menu.d.ts +27 -27
  50. package/dist/components/ui/context-menu.js +33 -33
  51. package/dist/components/ui/dialog.d.ts +19 -19
  52. package/dist/components/ui/dialog.js +23 -23
  53. package/dist/components/ui/drawer.d.ts +22 -22
  54. package/dist/components/ui/drawer.js +22 -22
  55. package/dist/components/ui/dropdown-menu.d.ts +27 -27
  56. package/dist/components/ui/dropdown-menu.js +36 -36
  57. package/dist/components/ui/form.d.ts +23 -23
  58. package/dist/components/ui/form.js +65 -65
  59. package/dist/components/ui/hover-card.d.ts +6 -6
  60. package/dist/components/ui/hover-card.js +9 -9
  61. package/dist/components/ui/icon-picker.d.ts +14 -14
  62. package/dist/components/ui/icon-picker.js +73 -73
  63. package/dist/components/ui/input-otp.d.ts +34 -34
  64. package/dist/components/ui/input-otp.js +18 -18
  65. package/dist/components/ui/input.d.ts +3 -3
  66. package/dist/components/ui/input.js +8 -8
  67. package/dist/components/ui/label.d.ts +5 -5
  68. package/dist/components/ui/label.js +10 -10
  69. package/dist/components/ui/menubar.d.ts +28 -28
  70. package/dist/components/ui/menubar.js +45 -45
  71. package/dist/components/ui/navigation-menu.d.ts +12 -12
  72. package/dist/components/ui/navigation-menu.js +24 -24
  73. package/dist/components/ui/pagination.d.ts +28 -28
  74. package/dist/components/ui/pagination.js +23 -23
  75. package/dist/components/ui/popover.d.ts +7 -7
  76. package/dist/components/ui/popover.js +10 -10
  77. package/dist/components/ui/progress.d.ts +4 -4
  78. package/dist/components/ui/progress.js +8 -8
  79. package/dist/components/ui/radio-group.d.ts +5 -5
  80. package/dist/components/ui/radio-group.js +14 -14
  81. package/dist/components/ui/resizable.d.ts +7 -7
  82. package/dist/components/ui/resizable.js +8 -8
  83. package/dist/components/ui/scroll-area.d.ts +5 -5
  84. package/dist/components/ui/scroll-area.js +11 -11
  85. package/dist/components/ui/select.d.ts +13 -13
  86. package/dist/components/ui/select.js +27 -27
  87. package/dist/components/ui/separator.d.ts +4 -4
  88. package/dist/components/ui/separator.js +7 -7
  89. package/dist/components/ui/sheet.d.ts +25 -25
  90. package/dist/components/ui/sheet.js +37 -37
  91. package/dist/components/ui/sidebar.d.ts +65 -65
  92. package/dist/components/ui/sidebar.js +224 -224
  93. package/dist/components/ui/skeleton.d.ts +2 -2
  94. package/dist/components/ui/skeleton.js +6 -6
  95. package/dist/components/ui/slider.d.ts +4 -4
  96. package/dist/components/ui/slider.js +7 -7
  97. package/dist/components/ui/sonner.d.ts +4 -4
  98. package/dist/components/ui/sonner.js +13 -13
  99. package/dist/components/ui/switch.d.ts +4 -4
  100. package/dist/components/ui/switch.js +7 -7
  101. package/dist/components/ui/table.d.ts +10 -10
  102. package/dist/components/ui/table.js +20 -20
  103. package/dist/components/ui/tabs.d.ts +7 -7
  104. package/dist/components/ui/tabs.js +12 -12
  105. package/dist/components/ui/textarea.d.ts +3 -3
  106. package/dist/components/ui/textarea.js +8 -8
  107. package/dist/components/ui/toggle-group.d.ts +12 -12
  108. package/dist/components/ui/toggle-group.js +21 -21
  109. package/dist/components/ui/toggle.d.ts +12 -12
  110. package/dist/components/ui/toggle.js +25 -25
  111. package/dist/components/ui/tooltip.d.ts +7 -7
  112. package/dist/components/ui/tooltip.js +11 -11
  113. package/dist/hooks/use-mobile.d.ts +1 -1
  114. package/dist/hooks/use-mobile.js +15 -15
  115. package/dist/index.d.ts +31 -31
  116. package/dist/index.js +33 -33
  117. package/dist/lib/utils.d.ts +2 -2
  118. package/dist/lib/utils.js +5 -5
  119. package/dist/lib/validationSchemas.d.ts +14 -14
  120. package/dist/lib/validationSchemas.js +25 -25
  121. package/dist/supabase/auth-middleware.d.ts +638 -638
  122. package/dist/supabase/auth-middleware.js +52 -52
  123. package/dist/supabase/client.d.ts +634 -634
  124. package/dist/supabase/client.js +13 -13
  125. package/dist/supabase/client.server.d.ts +634 -634
  126. package/dist/supabase/client.server.js +30 -30
  127. package/dist/supabase/types.d.ts +716 -716
  128. package/dist/supabase/types.js +7 -7
  129. package/dist/types/module.d.ts +19 -19
  130. package/dist/types/module.js +1 -1
  131. package/package.json +1 -1
@@ -1,717 +1,717 @@
1
- export type Json = string | number | boolean | null | {
2
- [key: string]: Json | undefined;
3
- } | Json[];
4
- export type Database = {
5
- __InternalSupabase: {
6
- PostgrestVersion: "14.5";
7
- };
8
- public: {
9
- Tables: {
10
- bugs: {
11
- Row: {
12
- attachment_url: string | null;
13
- created_at: string;
14
- description: string;
15
- id: string;
16
- priority: string;
17
- status: string;
18
- title: string;
19
- updated_at: string;
20
- user_id: string;
21
- };
22
- Insert: {
23
- attachment_url?: string | null;
24
- created_at?: string;
25
- description: string;
26
- id?: string;
27
- priority?: string;
28
- status?: string;
29
- title: string;
30
- updated_at?: string;
31
- user_id: string;
32
- };
33
- Update: {
34
- attachment_url?: string | null;
35
- created_at?: string;
36
- description?: string;
37
- id?: string;
38
- priority?: string;
39
- status?: string;
40
- title?: string;
41
- updated_at?: string;
42
- user_id?: string;
43
- };
44
- Relationships: [];
45
- };
46
- customer_field_options: {
47
- Row: {
48
- created_at: string;
49
- field_setting_id: string;
50
- id: string;
51
- label: string;
52
- sort_order: number;
53
- };
54
- Insert: {
55
- created_at?: string;
56
- field_setting_id: string;
57
- id?: string;
58
- label: string;
59
- sort_order?: number;
60
- };
61
- Update: {
62
- created_at?: string;
63
- field_setting_id?: string;
64
- id?: string;
65
- label?: string;
66
- sort_order?: number;
67
- };
68
- Relationships: [
69
- {
70
- foreignKeyName: "customer_field_options_field_setting_id_fkey";
71
- columns: ["field_setting_id"];
72
- isOneToOne: false;
73
- referencedRelation: "customer_field_settings";
74
- referencedColumns: ["id"];
75
- }
76
- ];
77
- };
78
- customer_field_settings: {
79
- Row: {
80
- created_at: string;
81
- field_key: string;
82
- field_label: string;
83
- field_type: string;
84
- id: string;
85
- is_custom: boolean;
86
- sort_order: number;
87
- updated_at: string;
88
- };
89
- Insert: {
90
- created_at?: string;
91
- field_key: string;
92
- field_label: string;
93
- field_type?: string;
94
- id?: string;
95
- is_custom?: boolean;
96
- sort_order?: number;
97
- updated_at?: string;
98
- };
99
- Update: {
100
- created_at?: string;
101
- field_key?: string;
102
- field_label?: string;
103
- field_type?: string;
104
- id?: string;
105
- is_custom?: boolean;
106
- sort_order?: number;
107
- updated_at?: string;
108
- };
109
- Relationships: [];
110
- };
111
- customers: {
112
- Row: {
113
- address: string | null;
114
- city: string | null;
115
- company_name: string;
116
- contact_person: string | null;
117
- country: string | null;
118
- created_at: string;
119
- custom_fields: Json;
120
- email: string | null;
121
- id: string;
122
- notes: string | null;
123
- phone: string | null;
124
- postal_code: string | null;
125
- updated_at: string;
126
- };
127
- Insert: {
128
- address?: string | null;
129
- city?: string | null;
130
- company_name: string;
131
- contact_person?: string | null;
132
- country?: string | null;
133
- created_at?: string;
134
- custom_fields?: Json;
135
- email?: string | null;
136
- id?: string;
137
- notes?: string | null;
138
- phone?: string | null;
139
- postal_code?: string | null;
140
- updated_at?: string;
141
- };
142
- Update: {
143
- address?: string | null;
144
- city?: string | null;
145
- company_name?: string;
146
- contact_person?: string | null;
147
- country?: string | null;
148
- created_at?: string;
149
- custom_fields?: Json;
150
- email?: string | null;
151
- id?: string;
152
- notes?: string | null;
153
- phone?: string | null;
154
- postal_code?: string | null;
155
- updated_at?: string;
156
- };
157
- Relationships: [];
158
- };
159
- inventory_settings: {
160
- Row: {
161
- created_at: string;
162
- hierarchy_levels: string[];
163
- id: string;
164
- updated_at: string;
165
- visible_columns: string[];
166
- };
167
- Insert: {
168
- created_at?: string;
169
- hierarchy_levels?: string[];
170
- id?: string;
171
- updated_at?: string;
172
- visible_columns?: string[];
173
- };
174
- Update: {
175
- created_at?: string;
176
- hierarchy_levels?: string[];
177
- id?: string;
178
- updated_at?: string;
179
- visible_columns?: string[];
180
- };
181
- Relationships: [];
182
- };
183
- locations: {
184
- Row: {
185
- created_at: string;
186
- id: string;
187
- name: string;
188
- sort_order: number;
189
- updated_at: string;
190
- };
191
- Insert: {
192
- created_at?: string;
193
- id?: string;
194
- name: string;
195
- sort_order?: number;
196
- updated_at?: string;
197
- };
198
- Update: {
199
- created_at?: string;
200
- id?: string;
201
- name?: string;
202
- sort_order?: number;
203
- updated_at?: string;
204
- };
205
- Relationships: [];
206
- };
207
- notifications: {
208
- Row: {
209
- created_at: string;
210
- id: string;
211
- message: string | null;
212
- read: boolean;
213
- title: string;
214
- updated_at: string;
215
- user_id: string;
216
- };
217
- Insert: {
218
- created_at?: string;
219
- id?: string;
220
- message?: string | null;
221
- read?: boolean;
222
- title: string;
223
- updated_at?: string;
224
- user_id: string;
225
- };
226
- Update: {
227
- created_at?: string;
228
- id?: string;
229
- message?: string | null;
230
- read?: boolean;
231
- title?: string;
232
- updated_at?: string;
233
- user_id?: string;
234
- };
235
- Relationships: [];
236
- };
237
- product_categories: {
238
- Row: {
239
- color: string;
240
- created_at: string;
241
- icon: string | null;
242
- id: string;
243
- name: string;
244
- slug: string;
245
- sort_order: number;
246
- updated_at: string;
247
- };
248
- Insert: {
249
- color?: string;
250
- created_at?: string;
251
- icon?: string | null;
252
- id?: string;
253
- name: string;
254
- slug: string;
255
- sort_order?: number;
256
- updated_at?: string;
257
- };
258
- Update: {
259
- color?: string;
260
- created_at?: string;
261
- icon?: string | null;
262
- id?: string;
263
- name?: string;
264
- slug?: string;
265
- sort_order?: number;
266
- updated_at?: string;
267
- };
268
- Relationships: [];
269
- };
270
- product_field_options: {
271
- Row: {
272
- created_at: string;
273
- field_setting_id: string;
274
- id: string;
275
- label: string;
276
- sort_order: number;
277
- };
278
- Insert: {
279
- created_at?: string;
280
- field_setting_id: string;
281
- id?: string;
282
- label: string;
283
- sort_order?: number;
284
- };
285
- Update: {
286
- created_at?: string;
287
- field_setting_id?: string;
288
- id?: string;
289
- label?: string;
290
- sort_order?: number;
291
- };
292
- Relationships: [
293
- {
294
- foreignKeyName: "product_field_options_field_setting_id_fkey";
295
- columns: ["field_setting_id"];
296
- isOneToOne: false;
297
- referencedRelation: "product_field_settings";
298
- referencedColumns: ["id"];
299
- }
300
- ];
301
- };
302
- product_field_settings: {
303
- Row: {
304
- active_per_category: Json;
305
- created_at: string;
306
- field_key: string;
307
- field_label: string;
308
- field_type: string;
309
- id: string;
310
- is_custom: boolean;
311
- sort_order: number;
312
- updated_at: string;
313
- };
314
- Insert: {
315
- active_per_category?: Json;
316
- created_at?: string;
317
- field_key: string;
318
- field_label: string;
319
- field_type?: string;
320
- id?: string;
321
- is_custom?: boolean;
322
- sort_order?: number;
323
- updated_at?: string;
324
- };
325
- Update: {
326
- active_per_category?: Json;
327
- created_at?: string;
328
- field_key?: string;
329
- field_label?: string;
330
- field_type?: string;
331
- id?: string;
332
- is_custom?: boolean;
333
- sort_order?: number;
334
- updated_at?: string;
335
- };
336
- Relationships: [];
337
- };
338
- products: {
339
- Row: {
340
- barcode: string | null;
341
- batch: string;
342
- created_at: string;
343
- custom_fields: Json;
344
- id: string;
345
- image_url: string | null;
346
- incoming_quantity: number;
347
- location: string;
348
- min_quantity: number;
349
- product: string;
350
- product_type: string;
351
- purchase_price: number | null;
352
- quantity: number;
353
- sale_price: number | null;
354
- unit: string;
355
- updated_at: string;
356
- weight: string | null;
357
- };
358
- Insert: {
359
- barcode?: string | null;
360
- batch: string;
361
- created_at?: string;
362
- custom_fields?: Json;
363
- id?: string;
364
- image_url?: string | null;
365
- incoming_quantity?: number;
366
- location: string;
367
- min_quantity?: number;
368
- product: string;
369
- product_type?: string;
370
- purchase_price?: number | null;
371
- quantity?: number;
372
- sale_price?: number | null;
373
- unit?: string;
374
- updated_at?: string;
375
- weight?: string | null;
376
- };
377
- Update: {
378
- barcode?: string | null;
379
- batch?: string;
380
- created_at?: string;
381
- custom_fields?: Json;
382
- id?: string;
383
- image_url?: string | null;
384
- incoming_quantity?: number;
385
- location?: string;
386
- min_quantity?: number;
387
- product?: string;
388
- product_type?: string;
389
- purchase_price?: number | null;
390
- quantity?: number;
391
- sale_price?: number | null;
392
- unit?: string;
393
- updated_at?: string;
394
- weight?: string | null;
395
- };
396
- Relationships: [];
397
- };
398
- profiles: {
399
- Row: {
400
- created_at: string;
401
- display_name: string | null;
402
- email: string | null;
403
- id: string;
404
- notification_preferences: Json;
405
- updated_at: string;
406
- };
407
- Insert: {
408
- created_at?: string;
409
- display_name?: string | null;
410
- email?: string | null;
411
- id: string;
412
- notification_preferences?: Json;
413
- updated_at?: string;
414
- };
415
- Update: {
416
- created_at?: string;
417
- display_name?: string | null;
418
- email?: string | null;
419
- id?: string;
420
- notification_preferences?: Json;
421
- updated_at?: string;
422
- };
423
- Relationships: [];
424
- };
425
- purchase_order_items: {
426
- Row: {
427
- created_at: string;
428
- id: string;
429
- product_id: string | null;
430
- product_type: string;
431
- purchase_order_id: string;
432
- quantity: number;
433
- };
434
- Insert: {
435
- created_at?: string;
436
- id?: string;
437
- product_id?: string | null;
438
- product_type?: string;
439
- purchase_order_id: string;
440
- quantity?: number;
441
- };
442
- Update: {
443
- created_at?: string;
444
- id?: string;
445
- product_id?: string | null;
446
- product_type?: string;
447
- purchase_order_id?: string;
448
- quantity?: number;
449
- };
450
- Relationships: [
451
- {
452
- foreignKeyName: "purchase_order_items_product_id_fkey";
453
- columns: ["product_id"];
454
- isOneToOne: false;
455
- referencedRelation: "products";
456
- referencedColumns: ["id"];
457
- },
458
- {
459
- foreignKeyName: "purchase_order_items_purchase_order_id_fkey";
460
- columns: ["purchase_order_id"];
461
- isOneToOne: false;
462
- referencedRelation: "purchase_orders";
463
- referencedColumns: ["id"];
464
- }
465
- ];
466
- };
467
- purchase_orders: {
468
- Row: {
469
- created_at: string;
470
- expected_delivery_date: string;
471
- id: string;
472
- location_id: string | null;
473
- notes: string | null;
474
- order_number: string;
475
- status: string;
476
- supplier_id: string | null;
477
- supplier_name: string;
478
- updated_at: string;
479
- };
480
- Insert: {
481
- created_at?: string;
482
- expected_delivery_date: string;
483
- id?: string;
484
- location_id?: string | null;
485
- notes?: string | null;
486
- order_number: string;
487
- status?: string;
488
- supplier_id?: string | null;
489
- supplier_name?: string;
490
- updated_at?: string;
491
- };
492
- Update: {
493
- created_at?: string;
494
- expected_delivery_date?: string;
495
- id?: string;
496
- location_id?: string | null;
497
- notes?: string | null;
498
- order_number?: string;
499
- status?: string;
500
- supplier_id?: string | null;
501
- supplier_name?: string;
502
- updated_at?: string;
503
- };
504
- Relationships: [
505
- {
506
- foreignKeyName: "purchase_orders_location_id_fkey";
507
- columns: ["location_id"];
508
- isOneToOne: false;
509
- referencedRelation: "locations";
510
- referencedColumns: ["id"];
511
- },
512
- {
513
- foreignKeyName: "purchase_orders_supplier_id_fkey";
514
- columns: ["supplier_id"];
515
- isOneToOne: false;
516
- referencedRelation: "suppliers";
517
- referencedColumns: ["id"];
518
- }
519
- ];
520
- };
521
- supplier_products: {
522
- Row: {
523
- article_number: string | null;
524
- created_at: string;
525
- id: string;
526
- name: string;
527
- notes: string | null;
528
- pot_size: string | null;
529
- price: number | null;
530
- quantity: number | null;
531
- supplier_id: string;
532
- unit: string;
533
- updated_at: string;
534
- };
535
- Insert: {
536
- article_number?: string | null;
537
- created_at?: string;
538
- id?: string;
539
- name: string;
540
- notes?: string | null;
541
- pot_size?: string | null;
542
- price?: number | null;
543
- quantity?: number | null;
544
- supplier_id: string;
545
- unit?: string;
546
- updated_at?: string;
547
- };
548
- Update: {
549
- article_number?: string | null;
550
- created_at?: string;
551
- id?: string;
552
- name?: string;
553
- notes?: string | null;
554
- pot_size?: string | null;
555
- price?: number | null;
556
- quantity?: number | null;
557
- supplier_id?: string;
558
- unit?: string;
559
- updated_at?: string;
560
- };
561
- Relationships: [
562
- {
563
- foreignKeyName: "supplier_products_supplier_id_fkey";
564
- columns: ["supplier_id"];
565
- isOneToOne: false;
566
- referencedRelation: "suppliers";
567
- referencedColumns: ["id"];
568
- }
569
- ];
570
- };
571
- suppliers: {
572
- Row: {
573
- address: string | null;
574
- column_mappings: Json | null;
575
- contact_person: string | null;
576
- created_at: string;
577
- default_product_type: string;
578
- email: string | null;
579
- id: string;
580
- imported_file_name: string | null;
581
- name: string;
582
- notes: string | null;
583
- phone: string | null;
584
- updated_at: string;
585
- };
586
- Insert: {
587
- address?: string | null;
588
- column_mappings?: Json | null;
589
- contact_person?: string | null;
590
- created_at?: string;
591
- default_product_type?: string;
592
- email?: string | null;
593
- id?: string;
594
- imported_file_name?: string | null;
595
- name: string;
596
- notes?: string | null;
597
- phone?: string | null;
598
- updated_at?: string;
599
- };
600
- Update: {
601
- address?: string | null;
602
- column_mappings?: Json | null;
603
- contact_person?: string | null;
604
- created_at?: string;
605
- default_product_type?: string;
606
- email?: string | null;
607
- id?: string;
608
- imported_file_name?: string | null;
609
- name?: string;
610
- notes?: string | null;
611
- phone?: string | null;
612
- updated_at?: string;
613
- };
614
- Relationships: [];
615
- };
616
- user_roles: {
617
- Row: {
618
- created_at: string;
619
- id: string;
620
- role: Database["public"]["Enums"]["app_role"];
621
- user_id: string;
622
- };
623
- Insert: {
624
- created_at?: string;
625
- id?: string;
626
- role: Database["public"]["Enums"]["app_role"];
627
- user_id: string;
628
- };
629
- Update: {
630
- created_at?: string;
631
- id?: string;
632
- role?: Database["public"]["Enums"]["app_role"];
633
- user_id?: string;
634
- };
635
- Relationships: [
636
- {
637
- foreignKeyName: "user_roles_user_id_fkey";
638
- columns: ["user_id"];
639
- isOneToOne: false;
640
- referencedRelation: "profiles";
641
- referencedColumns: ["id"];
642
- }
643
- ];
644
- };
645
- };
646
- Views: {
647
- [_ in never]: never;
648
- };
649
- Functions: {
650
- [_ in never]: never;
651
- };
652
- Enums: {
653
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer";
654
- };
655
- CompositeTypes: {
656
- [_ in never]: never;
657
- };
658
- };
659
- };
660
- type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
661
- type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
662
- export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
663
- schema: keyof DatabaseWithoutInternals;
664
- }, TableName extends DefaultSchemaTableNameOrOptions extends {
665
- schema: keyof DatabaseWithoutInternals;
666
- } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
667
- schema: keyof DatabaseWithoutInternals;
668
- } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
669
- Row: infer R;
670
- } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
671
- Row: infer R;
672
- } ? R : never : never;
673
- export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
674
- schema: keyof DatabaseWithoutInternals;
675
- }, TableName extends DefaultSchemaTableNameOrOptions extends {
676
- schema: keyof DatabaseWithoutInternals;
677
- } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
678
- schema: keyof DatabaseWithoutInternals;
679
- } ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
680
- Insert: infer I;
681
- } ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
682
- Insert: infer I;
683
- } ? I : never : never;
684
- export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
685
- schema: keyof DatabaseWithoutInternals;
686
- }, TableName extends DefaultSchemaTableNameOrOptions extends {
687
- schema: keyof DatabaseWithoutInternals;
688
- } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
689
- schema: keyof DatabaseWithoutInternals;
690
- } ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
691
- Update: infer U;
692
- } ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
693
- Update: infer U;
694
- } ? U : never : never;
695
- export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
696
- schema: keyof DatabaseWithoutInternals;
697
- }, EnumName extends DefaultSchemaEnumNameOrOptions extends {
698
- schema: keyof DatabaseWithoutInternals;
699
- } ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
700
- schema: keyof DatabaseWithoutInternals;
701
- } ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
702
- export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
703
- schema: keyof DatabaseWithoutInternals;
704
- }, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
705
- schema: keyof DatabaseWithoutInternals;
706
- } ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
707
- schema: keyof DatabaseWithoutInternals;
708
- } ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
709
- export declare const Constants: {
710
- readonly public: {
711
- readonly Enums: {
712
- readonly app_role: readonly ["admin", "manager", "warehouse", "sales", "developer"];
713
- };
714
- };
715
- };
716
- export {};
1
+ export type Json = string | number | boolean | null | {
2
+ [key: string]: Json | undefined;
3
+ } | Json[];
4
+ export type Database = {
5
+ __InternalSupabase: {
6
+ PostgrestVersion: "14.5";
7
+ };
8
+ public: {
9
+ Tables: {
10
+ bugs: {
11
+ Row: {
12
+ attachment_url: string | null;
13
+ created_at: string;
14
+ description: string;
15
+ id: string;
16
+ priority: string;
17
+ status: string;
18
+ title: string;
19
+ updated_at: string;
20
+ user_id: string;
21
+ };
22
+ Insert: {
23
+ attachment_url?: string | null;
24
+ created_at?: string;
25
+ description: string;
26
+ id?: string;
27
+ priority?: string;
28
+ status?: string;
29
+ title: string;
30
+ updated_at?: string;
31
+ user_id: string;
32
+ };
33
+ Update: {
34
+ attachment_url?: string | null;
35
+ created_at?: string;
36
+ description?: string;
37
+ id?: string;
38
+ priority?: string;
39
+ status?: string;
40
+ title?: string;
41
+ updated_at?: string;
42
+ user_id?: string;
43
+ };
44
+ Relationships: [];
45
+ };
46
+ customer_field_options: {
47
+ Row: {
48
+ created_at: string;
49
+ field_setting_id: string;
50
+ id: string;
51
+ label: string;
52
+ sort_order: number;
53
+ };
54
+ Insert: {
55
+ created_at?: string;
56
+ field_setting_id: string;
57
+ id?: string;
58
+ label: string;
59
+ sort_order?: number;
60
+ };
61
+ Update: {
62
+ created_at?: string;
63
+ field_setting_id?: string;
64
+ id?: string;
65
+ label?: string;
66
+ sort_order?: number;
67
+ };
68
+ Relationships: [
69
+ {
70
+ foreignKeyName: "customer_field_options_field_setting_id_fkey";
71
+ columns: ["field_setting_id"];
72
+ isOneToOne: false;
73
+ referencedRelation: "customer_field_settings";
74
+ referencedColumns: ["id"];
75
+ }
76
+ ];
77
+ };
78
+ customer_field_settings: {
79
+ Row: {
80
+ created_at: string;
81
+ field_key: string;
82
+ field_label: string;
83
+ field_type: string;
84
+ id: string;
85
+ is_custom: boolean;
86
+ sort_order: number;
87
+ updated_at: string;
88
+ };
89
+ Insert: {
90
+ created_at?: string;
91
+ field_key: string;
92
+ field_label: string;
93
+ field_type?: string;
94
+ id?: string;
95
+ is_custom?: boolean;
96
+ sort_order?: number;
97
+ updated_at?: string;
98
+ };
99
+ Update: {
100
+ created_at?: string;
101
+ field_key?: string;
102
+ field_label?: string;
103
+ field_type?: string;
104
+ id?: string;
105
+ is_custom?: boolean;
106
+ sort_order?: number;
107
+ updated_at?: string;
108
+ };
109
+ Relationships: [];
110
+ };
111
+ customers: {
112
+ Row: {
113
+ address: string | null;
114
+ city: string | null;
115
+ company_name: string;
116
+ contact_person: string | null;
117
+ country: string | null;
118
+ created_at: string;
119
+ custom_fields: Json;
120
+ email: string | null;
121
+ id: string;
122
+ notes: string | null;
123
+ phone: string | null;
124
+ postal_code: string | null;
125
+ updated_at: string;
126
+ };
127
+ Insert: {
128
+ address?: string | null;
129
+ city?: string | null;
130
+ company_name: string;
131
+ contact_person?: string | null;
132
+ country?: string | null;
133
+ created_at?: string;
134
+ custom_fields?: Json;
135
+ email?: string | null;
136
+ id?: string;
137
+ notes?: string | null;
138
+ phone?: string | null;
139
+ postal_code?: string | null;
140
+ updated_at?: string;
141
+ };
142
+ Update: {
143
+ address?: string | null;
144
+ city?: string | null;
145
+ company_name?: string;
146
+ contact_person?: string | null;
147
+ country?: string | null;
148
+ created_at?: string;
149
+ custom_fields?: Json;
150
+ email?: string | null;
151
+ id?: string;
152
+ notes?: string | null;
153
+ phone?: string | null;
154
+ postal_code?: string | null;
155
+ updated_at?: string;
156
+ };
157
+ Relationships: [];
158
+ };
159
+ inventory_settings: {
160
+ Row: {
161
+ created_at: string;
162
+ hierarchy_levels: string[];
163
+ id: string;
164
+ updated_at: string;
165
+ visible_columns: string[];
166
+ };
167
+ Insert: {
168
+ created_at?: string;
169
+ hierarchy_levels?: string[];
170
+ id?: string;
171
+ updated_at?: string;
172
+ visible_columns?: string[];
173
+ };
174
+ Update: {
175
+ created_at?: string;
176
+ hierarchy_levels?: string[];
177
+ id?: string;
178
+ updated_at?: string;
179
+ visible_columns?: string[];
180
+ };
181
+ Relationships: [];
182
+ };
183
+ locations: {
184
+ Row: {
185
+ created_at: string;
186
+ id: string;
187
+ name: string;
188
+ sort_order: number;
189
+ updated_at: string;
190
+ };
191
+ Insert: {
192
+ created_at?: string;
193
+ id?: string;
194
+ name: string;
195
+ sort_order?: number;
196
+ updated_at?: string;
197
+ };
198
+ Update: {
199
+ created_at?: string;
200
+ id?: string;
201
+ name?: string;
202
+ sort_order?: number;
203
+ updated_at?: string;
204
+ };
205
+ Relationships: [];
206
+ };
207
+ notifications: {
208
+ Row: {
209
+ created_at: string;
210
+ id: string;
211
+ message: string | null;
212
+ read: boolean;
213
+ title: string;
214
+ updated_at: string;
215
+ user_id: string;
216
+ };
217
+ Insert: {
218
+ created_at?: string;
219
+ id?: string;
220
+ message?: string | null;
221
+ read?: boolean;
222
+ title: string;
223
+ updated_at?: string;
224
+ user_id: string;
225
+ };
226
+ Update: {
227
+ created_at?: string;
228
+ id?: string;
229
+ message?: string | null;
230
+ read?: boolean;
231
+ title?: string;
232
+ updated_at?: string;
233
+ user_id?: string;
234
+ };
235
+ Relationships: [];
236
+ };
237
+ product_categories: {
238
+ Row: {
239
+ color: string;
240
+ created_at: string;
241
+ icon: string | null;
242
+ id: string;
243
+ name: string;
244
+ slug: string;
245
+ sort_order: number;
246
+ updated_at: string;
247
+ };
248
+ Insert: {
249
+ color?: string;
250
+ created_at?: string;
251
+ icon?: string | null;
252
+ id?: string;
253
+ name: string;
254
+ slug: string;
255
+ sort_order?: number;
256
+ updated_at?: string;
257
+ };
258
+ Update: {
259
+ color?: string;
260
+ created_at?: string;
261
+ icon?: string | null;
262
+ id?: string;
263
+ name?: string;
264
+ slug?: string;
265
+ sort_order?: number;
266
+ updated_at?: string;
267
+ };
268
+ Relationships: [];
269
+ };
270
+ product_field_options: {
271
+ Row: {
272
+ created_at: string;
273
+ field_setting_id: string;
274
+ id: string;
275
+ label: string;
276
+ sort_order: number;
277
+ };
278
+ Insert: {
279
+ created_at?: string;
280
+ field_setting_id: string;
281
+ id?: string;
282
+ label: string;
283
+ sort_order?: number;
284
+ };
285
+ Update: {
286
+ created_at?: string;
287
+ field_setting_id?: string;
288
+ id?: string;
289
+ label?: string;
290
+ sort_order?: number;
291
+ };
292
+ Relationships: [
293
+ {
294
+ foreignKeyName: "product_field_options_field_setting_id_fkey";
295
+ columns: ["field_setting_id"];
296
+ isOneToOne: false;
297
+ referencedRelation: "product_field_settings";
298
+ referencedColumns: ["id"];
299
+ }
300
+ ];
301
+ };
302
+ product_field_settings: {
303
+ Row: {
304
+ active_per_category: Json;
305
+ created_at: string;
306
+ field_key: string;
307
+ field_label: string;
308
+ field_type: string;
309
+ id: string;
310
+ is_custom: boolean;
311
+ sort_order: number;
312
+ updated_at: string;
313
+ };
314
+ Insert: {
315
+ active_per_category?: Json;
316
+ created_at?: string;
317
+ field_key: string;
318
+ field_label: string;
319
+ field_type?: string;
320
+ id?: string;
321
+ is_custom?: boolean;
322
+ sort_order?: number;
323
+ updated_at?: string;
324
+ };
325
+ Update: {
326
+ active_per_category?: Json;
327
+ created_at?: string;
328
+ field_key?: string;
329
+ field_label?: string;
330
+ field_type?: string;
331
+ id?: string;
332
+ is_custom?: boolean;
333
+ sort_order?: number;
334
+ updated_at?: string;
335
+ };
336
+ Relationships: [];
337
+ };
338
+ products: {
339
+ Row: {
340
+ barcode: string | null;
341
+ batch: string;
342
+ created_at: string;
343
+ custom_fields: Json;
344
+ id: string;
345
+ image_url: string | null;
346
+ incoming_quantity: number;
347
+ location: string;
348
+ min_quantity: number;
349
+ product: string;
350
+ product_type: string;
351
+ purchase_price: number | null;
352
+ quantity: number;
353
+ sale_price: number | null;
354
+ unit: string;
355
+ updated_at: string;
356
+ weight: string | null;
357
+ };
358
+ Insert: {
359
+ barcode?: string | null;
360
+ batch: string;
361
+ created_at?: string;
362
+ custom_fields?: Json;
363
+ id?: string;
364
+ image_url?: string | null;
365
+ incoming_quantity?: number;
366
+ location: string;
367
+ min_quantity?: number;
368
+ product: string;
369
+ product_type?: string;
370
+ purchase_price?: number | null;
371
+ quantity?: number;
372
+ sale_price?: number | null;
373
+ unit?: string;
374
+ updated_at?: string;
375
+ weight?: string | null;
376
+ };
377
+ Update: {
378
+ barcode?: string | null;
379
+ batch?: string;
380
+ created_at?: string;
381
+ custom_fields?: Json;
382
+ id?: string;
383
+ image_url?: string | null;
384
+ incoming_quantity?: number;
385
+ location?: string;
386
+ min_quantity?: number;
387
+ product?: string;
388
+ product_type?: string;
389
+ purchase_price?: number | null;
390
+ quantity?: number;
391
+ sale_price?: number | null;
392
+ unit?: string;
393
+ updated_at?: string;
394
+ weight?: string | null;
395
+ };
396
+ Relationships: [];
397
+ };
398
+ profiles: {
399
+ Row: {
400
+ created_at: string;
401
+ display_name: string | null;
402
+ email: string | null;
403
+ id: string;
404
+ notification_preferences: Json;
405
+ updated_at: string;
406
+ };
407
+ Insert: {
408
+ created_at?: string;
409
+ display_name?: string | null;
410
+ email?: string | null;
411
+ id: string;
412
+ notification_preferences?: Json;
413
+ updated_at?: string;
414
+ };
415
+ Update: {
416
+ created_at?: string;
417
+ display_name?: string | null;
418
+ email?: string | null;
419
+ id?: string;
420
+ notification_preferences?: Json;
421
+ updated_at?: string;
422
+ };
423
+ Relationships: [];
424
+ };
425
+ purchase_order_items: {
426
+ Row: {
427
+ created_at: string;
428
+ id: string;
429
+ product_id: string | null;
430
+ product_type: string;
431
+ purchase_order_id: string;
432
+ quantity: number;
433
+ };
434
+ Insert: {
435
+ created_at?: string;
436
+ id?: string;
437
+ product_id?: string | null;
438
+ product_type?: string;
439
+ purchase_order_id: string;
440
+ quantity?: number;
441
+ };
442
+ Update: {
443
+ created_at?: string;
444
+ id?: string;
445
+ product_id?: string | null;
446
+ product_type?: string;
447
+ purchase_order_id?: string;
448
+ quantity?: number;
449
+ };
450
+ Relationships: [
451
+ {
452
+ foreignKeyName: "purchase_order_items_product_id_fkey";
453
+ columns: ["product_id"];
454
+ isOneToOne: false;
455
+ referencedRelation: "products";
456
+ referencedColumns: ["id"];
457
+ },
458
+ {
459
+ foreignKeyName: "purchase_order_items_purchase_order_id_fkey";
460
+ columns: ["purchase_order_id"];
461
+ isOneToOne: false;
462
+ referencedRelation: "purchase_orders";
463
+ referencedColumns: ["id"];
464
+ }
465
+ ];
466
+ };
467
+ purchase_orders: {
468
+ Row: {
469
+ created_at: string;
470
+ expected_delivery_date: string;
471
+ id: string;
472
+ location_id: string | null;
473
+ notes: string | null;
474
+ order_number: string;
475
+ status: string;
476
+ supplier_id: string | null;
477
+ supplier_name: string;
478
+ updated_at: string;
479
+ };
480
+ Insert: {
481
+ created_at?: string;
482
+ expected_delivery_date: string;
483
+ id?: string;
484
+ location_id?: string | null;
485
+ notes?: string | null;
486
+ order_number: string;
487
+ status?: string;
488
+ supplier_id?: string | null;
489
+ supplier_name?: string;
490
+ updated_at?: string;
491
+ };
492
+ Update: {
493
+ created_at?: string;
494
+ expected_delivery_date?: string;
495
+ id?: string;
496
+ location_id?: string | null;
497
+ notes?: string | null;
498
+ order_number?: string;
499
+ status?: string;
500
+ supplier_id?: string | null;
501
+ supplier_name?: string;
502
+ updated_at?: string;
503
+ };
504
+ Relationships: [
505
+ {
506
+ foreignKeyName: "purchase_orders_location_id_fkey";
507
+ columns: ["location_id"];
508
+ isOneToOne: false;
509
+ referencedRelation: "locations";
510
+ referencedColumns: ["id"];
511
+ },
512
+ {
513
+ foreignKeyName: "purchase_orders_supplier_id_fkey";
514
+ columns: ["supplier_id"];
515
+ isOneToOne: false;
516
+ referencedRelation: "suppliers";
517
+ referencedColumns: ["id"];
518
+ }
519
+ ];
520
+ };
521
+ supplier_products: {
522
+ Row: {
523
+ article_number: string | null;
524
+ created_at: string;
525
+ id: string;
526
+ name: string;
527
+ notes: string | null;
528
+ pot_size: string | null;
529
+ price: number | null;
530
+ quantity: number | null;
531
+ supplier_id: string;
532
+ unit: string;
533
+ updated_at: string;
534
+ };
535
+ Insert: {
536
+ article_number?: string | null;
537
+ created_at?: string;
538
+ id?: string;
539
+ name: string;
540
+ notes?: string | null;
541
+ pot_size?: string | null;
542
+ price?: number | null;
543
+ quantity?: number | null;
544
+ supplier_id: string;
545
+ unit?: string;
546
+ updated_at?: string;
547
+ };
548
+ Update: {
549
+ article_number?: string | null;
550
+ created_at?: string;
551
+ id?: string;
552
+ name?: string;
553
+ notes?: string | null;
554
+ pot_size?: string | null;
555
+ price?: number | null;
556
+ quantity?: number | null;
557
+ supplier_id?: string;
558
+ unit?: string;
559
+ updated_at?: string;
560
+ };
561
+ Relationships: [
562
+ {
563
+ foreignKeyName: "supplier_products_supplier_id_fkey";
564
+ columns: ["supplier_id"];
565
+ isOneToOne: false;
566
+ referencedRelation: "suppliers";
567
+ referencedColumns: ["id"];
568
+ }
569
+ ];
570
+ };
571
+ suppliers: {
572
+ Row: {
573
+ address: string | null;
574
+ column_mappings: Json | null;
575
+ contact_person: string | null;
576
+ created_at: string;
577
+ default_product_type: string;
578
+ email: string | null;
579
+ id: string;
580
+ imported_file_name: string | null;
581
+ name: string;
582
+ notes: string | null;
583
+ phone: string | null;
584
+ updated_at: string;
585
+ };
586
+ Insert: {
587
+ address?: string | null;
588
+ column_mappings?: Json | null;
589
+ contact_person?: string | null;
590
+ created_at?: string;
591
+ default_product_type?: string;
592
+ email?: string | null;
593
+ id?: string;
594
+ imported_file_name?: string | null;
595
+ name: string;
596
+ notes?: string | null;
597
+ phone?: string | null;
598
+ updated_at?: string;
599
+ };
600
+ Update: {
601
+ address?: string | null;
602
+ column_mappings?: Json | null;
603
+ contact_person?: string | null;
604
+ created_at?: string;
605
+ default_product_type?: string;
606
+ email?: string | null;
607
+ id?: string;
608
+ imported_file_name?: string | null;
609
+ name?: string;
610
+ notes?: string | null;
611
+ phone?: string | null;
612
+ updated_at?: string;
613
+ };
614
+ Relationships: [];
615
+ };
616
+ user_roles: {
617
+ Row: {
618
+ created_at: string;
619
+ id: string;
620
+ role: Database["public"]["Enums"]["app_role"];
621
+ user_id: string;
622
+ };
623
+ Insert: {
624
+ created_at?: string;
625
+ id?: string;
626
+ role: Database["public"]["Enums"]["app_role"];
627
+ user_id: string;
628
+ };
629
+ Update: {
630
+ created_at?: string;
631
+ id?: string;
632
+ role?: Database["public"]["Enums"]["app_role"];
633
+ user_id?: string;
634
+ };
635
+ Relationships: [
636
+ {
637
+ foreignKeyName: "user_roles_user_id_fkey";
638
+ columns: ["user_id"];
639
+ isOneToOne: false;
640
+ referencedRelation: "profiles";
641
+ referencedColumns: ["id"];
642
+ }
643
+ ];
644
+ };
645
+ };
646
+ Views: {
647
+ [_ in never]: never;
648
+ };
649
+ Functions: {
650
+ [_ in never]: never;
651
+ };
652
+ Enums: {
653
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer";
654
+ };
655
+ CompositeTypes: {
656
+ [_ in never]: never;
657
+ };
658
+ };
659
+ };
660
+ type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
661
+ type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
662
+ export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
663
+ schema: keyof DatabaseWithoutInternals;
664
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
665
+ schema: keyof DatabaseWithoutInternals;
666
+ } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
667
+ schema: keyof DatabaseWithoutInternals;
668
+ } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
669
+ Row: infer R;
670
+ } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
671
+ Row: infer R;
672
+ } ? R : never : never;
673
+ export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
674
+ schema: keyof DatabaseWithoutInternals;
675
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
676
+ schema: keyof DatabaseWithoutInternals;
677
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
678
+ schema: keyof DatabaseWithoutInternals;
679
+ } ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
680
+ Insert: infer I;
681
+ } ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
682
+ Insert: infer I;
683
+ } ? I : never : never;
684
+ export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
685
+ schema: keyof DatabaseWithoutInternals;
686
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
687
+ schema: keyof DatabaseWithoutInternals;
688
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
689
+ schema: keyof DatabaseWithoutInternals;
690
+ } ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
691
+ Update: infer U;
692
+ } ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
693
+ Update: infer U;
694
+ } ? U : never : never;
695
+ export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
696
+ schema: keyof DatabaseWithoutInternals;
697
+ }, EnumName extends DefaultSchemaEnumNameOrOptions extends {
698
+ schema: keyof DatabaseWithoutInternals;
699
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
700
+ schema: keyof DatabaseWithoutInternals;
701
+ } ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
702
+ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
703
+ schema: keyof DatabaseWithoutInternals;
704
+ }, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
705
+ schema: keyof DatabaseWithoutInternals;
706
+ } ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
707
+ schema: keyof DatabaseWithoutInternals;
708
+ } ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
709
+ export declare const Constants: {
710
+ readonly public: {
711
+ readonly Enums: {
712
+ readonly app_role: readonly ["admin", "manager", "warehouse", "sales", "developer"];
713
+ };
714
+ };
715
+ };
716
+ export {};
717
717
  //# sourceMappingURL=types.d.ts.map