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