@flowselections/floriday-authenticatie-module 1.0.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 (43) hide show
  1. package/dist-lib/_core-safelist.d.ts +2 -0
  2. package/dist-lib/_core-safelist.d.ts.map +1 -0
  3. package/dist-lib/_core-safelist.js +15 -0
  4. package/dist-lib/components/TemplatePage.d.ts +2 -0
  5. package/dist-lib/components/TemplatePage.d.ts.map +1 -0
  6. package/dist-lib/components/TemplatePage.js +4 -0
  7. package/dist-lib/components/settings/FlorydaySettingsCard.d.ts +2 -0
  8. package/dist-lib/components/settings/FlorydaySettingsCard.d.ts.map +1 -0
  9. package/dist-lib/components/settings/FlorydaySettingsCard.js +161 -0
  10. package/dist-lib/index.d.ts +6 -0
  11. package/dist-lib/index.d.ts.map +1 -0
  12. package/dist-lib/index.js +18 -0
  13. package/dist-lib/integrations/supabase/auth-attacher.d.ts +2 -0
  14. package/dist-lib/integrations/supabase/auth-attacher.d.ts.map +1 -0
  15. package/dist-lib/integrations/supabase/auth-attacher.js +12 -0
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts +888 -0
  17. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -0
  18. package/dist-lib/integrations/supabase/auth-middleware.js +52 -0
  19. package/dist-lib/integrations/supabase/client.d.ts +884 -0
  20. package/dist-lib/integrations/supabase/client.d.ts.map +1 -0
  21. package/dist-lib/integrations/supabase/client.js +14 -0
  22. package/dist-lib/integrations/supabase/client.server.d.ts +884 -0
  23. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -0
  24. package/dist-lib/integrations/supabase/client.server.js +30 -0
  25. package/dist-lib/integrations/supabase/types.d.ts +971 -0
  26. package/dist-lib/integrations/supabase/types.d.ts.map +1 -0
  27. package/dist-lib/integrations/supabase/types.js +7 -0
  28. package/dist-lib/lib/error-capture.d.ts +2 -0
  29. package/dist-lib/lib/error-capture.d.ts.map +1 -0
  30. package/dist-lib/lib/error-capture.js +22 -0
  31. package/dist-lib/lib/error-page.d.ts +2 -0
  32. package/dist-lib/lib/error-page.d.ts.map +1 -0
  33. package/dist-lib/lib/error-page.js +36 -0
  34. package/dist-lib/lib/floriday.functions.d.ts +8073 -0
  35. package/dist-lib/lib/floriday.functions.d.ts.map +1 -0
  36. package/dist-lib/lib/floriday.functions.js +451 -0
  37. package/dist-lib/lib/utils.d.ts +3 -0
  38. package/dist-lib/lib/utils.d.ts.map +1 -0
  39. package/dist-lib/lib/utils.js +5 -0
  40. package/dist-lib/lib/validationSchemas.d.ts +15 -0
  41. package/dist-lib/lib/validationSchemas.d.ts.map +1 -0
  42. package/dist-lib/lib/validationSchemas.js +25 -0
  43. package/package.json +67 -0
@@ -0,0 +1,971 @@
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
+ country: string | null;
117
+ created_at: string;
118
+ custom_fields: Json;
119
+ email: string | null;
120
+ id: string;
121
+ notes: string | null;
122
+ phone: string | null;
123
+ postal_code: string | null;
124
+ updated_at: string;
125
+ };
126
+ Insert: {
127
+ address?: string | null;
128
+ city?: string | null;
129
+ company_name: string;
130
+ country?: string | null;
131
+ created_at?: string;
132
+ custom_fields?: Json;
133
+ email?: string | null;
134
+ id?: string;
135
+ notes?: string | null;
136
+ phone?: string | null;
137
+ postal_code?: string | null;
138
+ updated_at?: string;
139
+ };
140
+ Update: {
141
+ address?: string | null;
142
+ city?: string | null;
143
+ company_name?: string;
144
+ country?: string | null;
145
+ created_at?: string;
146
+ custom_fields?: Json;
147
+ email?: string | null;
148
+ id?: string;
149
+ notes?: string | null;
150
+ phone?: string | null;
151
+ postal_code?: string | null;
152
+ updated_at?: string;
153
+ };
154
+ Relationships: [];
155
+ };
156
+ floriday_connections: {
157
+ Row: {
158
+ access_token: string | null;
159
+ api_key: string;
160
+ client_id: string;
161
+ client_secret: string;
162
+ created_at: string;
163
+ environment: string;
164
+ gln_code: string | null;
165
+ id: string;
166
+ is_active: boolean;
167
+ label: string;
168
+ organization_name: string | null;
169
+ preferred_warehouse_id: string | null;
170
+ preferred_warehouse_name: string | null;
171
+ token_expires_at: string | null;
172
+ updated_at: string;
173
+ };
174
+ Insert: {
175
+ access_token?: string | null;
176
+ api_key: string;
177
+ client_id: string;
178
+ client_secret: string;
179
+ created_at?: string;
180
+ environment: string;
181
+ gln_code?: string | null;
182
+ id?: string;
183
+ is_active?: boolean;
184
+ label?: string;
185
+ organization_name?: string | null;
186
+ preferred_warehouse_id?: string | null;
187
+ preferred_warehouse_name?: string | null;
188
+ token_expires_at?: string | null;
189
+ updated_at?: string;
190
+ };
191
+ Update: {
192
+ access_token?: string | null;
193
+ api_key?: string;
194
+ client_id?: string;
195
+ client_secret?: string;
196
+ created_at?: string;
197
+ environment?: string;
198
+ gln_code?: string | null;
199
+ id?: string;
200
+ is_active?: boolean;
201
+ label?: string;
202
+ organization_name?: string | null;
203
+ preferred_warehouse_id?: string | null;
204
+ preferred_warehouse_name?: string | null;
205
+ token_expires_at?: string | null;
206
+ updated_at?: string;
207
+ };
208
+ Relationships: [];
209
+ };
210
+ floriday_settings: {
211
+ Row: {
212
+ active_environment: string;
213
+ id: number;
214
+ updated_at: string;
215
+ };
216
+ Insert: {
217
+ active_environment?: string;
218
+ id?: number;
219
+ updated_at?: string;
220
+ };
221
+ Update: {
222
+ active_environment?: string;
223
+ id?: number;
224
+ updated_at?: string;
225
+ };
226
+ Relationships: [];
227
+ };
228
+ inventory_settings: {
229
+ Row: {
230
+ created_at: string;
231
+ hierarchy_levels: string[];
232
+ id: string;
233
+ updated_at: string;
234
+ visible_columns: string[];
235
+ };
236
+ Insert: {
237
+ created_at?: string;
238
+ hierarchy_levels?: string[];
239
+ id?: string;
240
+ updated_at?: string;
241
+ visible_columns?: string[];
242
+ };
243
+ Update: {
244
+ created_at?: string;
245
+ hierarchy_levels?: string[];
246
+ id?: string;
247
+ updated_at?: string;
248
+ visible_columns?: string[];
249
+ };
250
+ Relationships: [];
251
+ };
252
+ locations: {
253
+ Row: {
254
+ created_at: string;
255
+ id: string;
256
+ name: string;
257
+ sort_order: number;
258
+ updated_at: string;
259
+ };
260
+ Insert: {
261
+ created_at?: string;
262
+ id?: string;
263
+ name: string;
264
+ sort_order?: number;
265
+ updated_at?: string;
266
+ };
267
+ Update: {
268
+ created_at?: string;
269
+ id?: string;
270
+ name?: string;
271
+ sort_order?: number;
272
+ updated_at?: string;
273
+ };
274
+ Relationships: [];
275
+ };
276
+ notifications: {
277
+ Row: {
278
+ created_at: string;
279
+ id: string;
280
+ message: string | null;
281
+ read: boolean;
282
+ title: string;
283
+ updated_at: string;
284
+ user_id: string;
285
+ };
286
+ Insert: {
287
+ created_at?: string;
288
+ id?: string;
289
+ message?: string | null;
290
+ read?: boolean;
291
+ title: string;
292
+ updated_at?: string;
293
+ user_id: string;
294
+ };
295
+ Update: {
296
+ created_at?: string;
297
+ id?: string;
298
+ message?: string | null;
299
+ read?: boolean;
300
+ title?: string;
301
+ updated_at?: string;
302
+ user_id?: string;
303
+ };
304
+ Relationships: [];
305
+ };
306
+ order_field_options: {
307
+ Row: {
308
+ created_at: string;
309
+ field_setting_id: string;
310
+ id: string;
311
+ label: string;
312
+ sort_order: number;
313
+ };
314
+ Insert: {
315
+ created_at?: string;
316
+ field_setting_id: string;
317
+ id?: string;
318
+ label: string;
319
+ sort_order?: number;
320
+ };
321
+ Update: {
322
+ created_at?: string;
323
+ field_setting_id?: string;
324
+ id?: string;
325
+ label?: string;
326
+ sort_order?: number;
327
+ };
328
+ Relationships: [
329
+ {
330
+ foreignKeyName: "order_field_options_field_setting_id_fkey";
331
+ columns: ["field_setting_id"];
332
+ isOneToOne: false;
333
+ referencedRelation: "order_field_settings";
334
+ referencedColumns: ["id"];
335
+ }
336
+ ];
337
+ };
338
+ order_field_settings: {
339
+ Row: {
340
+ active: boolean;
341
+ created_at: string;
342
+ field_key: string;
343
+ field_label: string;
344
+ field_type: string;
345
+ id: string;
346
+ is_custom: boolean;
347
+ sort_order: number;
348
+ updated_at: string;
349
+ };
350
+ Insert: {
351
+ active?: boolean;
352
+ created_at?: string;
353
+ field_key: string;
354
+ field_label: string;
355
+ field_type?: string;
356
+ id?: string;
357
+ is_custom?: boolean;
358
+ sort_order?: number;
359
+ updated_at?: string;
360
+ };
361
+ Update: {
362
+ active?: boolean;
363
+ created_at?: string;
364
+ field_key?: string;
365
+ field_label?: string;
366
+ field_type?: string;
367
+ id?: string;
368
+ is_custom?: boolean;
369
+ sort_order?: number;
370
+ updated_at?: string;
371
+ };
372
+ Relationships: [];
373
+ };
374
+ order_items: {
375
+ Row: {
376
+ created_at: string;
377
+ id: string;
378
+ order_id: string;
379
+ product_id: string | null;
380
+ product_name: string;
381
+ quantity: number;
382
+ unit: string;
383
+ unit_price: number | null;
384
+ };
385
+ Insert: {
386
+ created_at?: string;
387
+ id?: string;
388
+ order_id: string;
389
+ product_id?: string | null;
390
+ product_name: string;
391
+ quantity?: number;
392
+ unit?: string;
393
+ unit_price?: number | null;
394
+ };
395
+ Update: {
396
+ created_at?: string;
397
+ id?: string;
398
+ order_id?: string;
399
+ product_id?: string | null;
400
+ product_name?: string;
401
+ quantity?: number;
402
+ unit?: string;
403
+ unit_price?: number | null;
404
+ };
405
+ Relationships: [
406
+ {
407
+ foreignKeyName: "order_items_order_id_fkey";
408
+ columns: ["order_id"];
409
+ isOneToOne: false;
410
+ referencedRelation: "orders";
411
+ referencedColumns: ["id"];
412
+ },
413
+ {
414
+ foreignKeyName: "order_items_product_id_fkey";
415
+ columns: ["product_id"];
416
+ isOneToOne: false;
417
+ referencedRelation: "products";
418
+ referencedColumns: ["id"];
419
+ }
420
+ ];
421
+ };
422
+ orders: {
423
+ Row: {
424
+ created_at: string;
425
+ custom_fields: Json;
426
+ customer_id: string | null;
427
+ customer_name: string;
428
+ deleted_at: string | null;
429
+ delivery_date: string;
430
+ id: string;
431
+ notes: string | null;
432
+ order_date: string;
433
+ order_number: string;
434
+ status: string;
435
+ total: string;
436
+ updated_at: string;
437
+ };
438
+ Insert: {
439
+ created_at?: string;
440
+ custom_fields?: Json;
441
+ customer_id?: string | null;
442
+ customer_name?: string;
443
+ deleted_at?: string | null;
444
+ delivery_date: string;
445
+ id?: string;
446
+ notes?: string | null;
447
+ order_date?: string;
448
+ order_number: string;
449
+ status?: string;
450
+ total?: string;
451
+ updated_at?: string;
452
+ };
453
+ Update: {
454
+ created_at?: string;
455
+ custom_fields?: Json;
456
+ customer_id?: string | null;
457
+ customer_name?: string;
458
+ deleted_at?: string | null;
459
+ delivery_date?: string;
460
+ id?: string;
461
+ notes?: string | null;
462
+ order_date?: string;
463
+ order_number?: string;
464
+ status?: string;
465
+ total?: string;
466
+ updated_at?: string;
467
+ };
468
+ Relationships: [
469
+ {
470
+ foreignKeyName: "orders_customer_id_fkey";
471
+ columns: ["customer_id"];
472
+ isOneToOne: false;
473
+ referencedRelation: "customers";
474
+ referencedColumns: ["id"];
475
+ }
476
+ ];
477
+ };
478
+ product_categories: {
479
+ Row: {
480
+ color: string;
481
+ created_at: string;
482
+ icon: string | null;
483
+ id: string;
484
+ name: string;
485
+ slug: string;
486
+ sort_order: number;
487
+ updated_at: string;
488
+ };
489
+ Insert: {
490
+ color?: string;
491
+ created_at?: string;
492
+ icon?: string | null;
493
+ id?: string;
494
+ name: string;
495
+ slug: string;
496
+ sort_order?: number;
497
+ updated_at?: string;
498
+ };
499
+ Update: {
500
+ color?: string;
501
+ created_at?: string;
502
+ icon?: string | null;
503
+ id?: string;
504
+ name?: string;
505
+ slug?: string;
506
+ sort_order?: number;
507
+ updated_at?: string;
508
+ };
509
+ Relationships: [];
510
+ };
511
+ product_field_options: {
512
+ Row: {
513
+ created_at: string;
514
+ field_setting_id: string;
515
+ id: string;
516
+ label: string;
517
+ sort_order: number;
518
+ };
519
+ Insert: {
520
+ created_at?: string;
521
+ field_setting_id: string;
522
+ id?: string;
523
+ label: string;
524
+ sort_order?: number;
525
+ };
526
+ Update: {
527
+ created_at?: string;
528
+ field_setting_id?: string;
529
+ id?: string;
530
+ label?: string;
531
+ sort_order?: number;
532
+ };
533
+ Relationships: [
534
+ {
535
+ foreignKeyName: "product_field_options_field_setting_id_fkey";
536
+ columns: ["field_setting_id"];
537
+ isOneToOne: false;
538
+ referencedRelation: "product_field_settings";
539
+ referencedColumns: ["id"];
540
+ }
541
+ ];
542
+ };
543
+ product_field_settings: {
544
+ Row: {
545
+ active_per_category: Json;
546
+ created_at: string;
547
+ field_key: string;
548
+ field_label: string;
549
+ field_type: string;
550
+ id: string;
551
+ is_custom: boolean;
552
+ sort_order: number;
553
+ updated_at: string;
554
+ };
555
+ Insert: {
556
+ active_per_category?: Json;
557
+ created_at?: string;
558
+ field_key: string;
559
+ field_label: string;
560
+ field_type?: string;
561
+ id?: string;
562
+ is_custom?: boolean;
563
+ sort_order?: number;
564
+ updated_at?: string;
565
+ };
566
+ Update: {
567
+ active_per_category?: Json;
568
+ created_at?: string;
569
+ field_key?: string;
570
+ field_label?: string;
571
+ field_type?: string;
572
+ id?: string;
573
+ is_custom?: boolean;
574
+ sort_order?: number;
575
+ updated_at?: string;
576
+ };
577
+ Relationships: [];
578
+ };
579
+ products: {
580
+ Row: {
581
+ barcode: string | null;
582
+ batch: string;
583
+ created_at: string;
584
+ custom_fields: Json;
585
+ id: string;
586
+ image_url: string | null;
587
+ incoming_quantity: number;
588
+ location: string;
589
+ min_quantity: number;
590
+ product: string;
591
+ product_type: string;
592
+ purchase_price: number | null;
593
+ quantity: number;
594
+ sale_price: number | null;
595
+ unit: string;
596
+ updated_at: string;
597
+ weight: string | null;
598
+ };
599
+ Insert: {
600
+ barcode?: string | null;
601
+ batch: string;
602
+ created_at?: string;
603
+ custom_fields?: Json;
604
+ id?: string;
605
+ image_url?: string | null;
606
+ incoming_quantity?: number;
607
+ location: string;
608
+ min_quantity?: number;
609
+ product: string;
610
+ product_type?: string;
611
+ purchase_price?: number | null;
612
+ quantity?: number;
613
+ sale_price?: number | null;
614
+ unit?: string;
615
+ updated_at?: string;
616
+ weight?: string | null;
617
+ };
618
+ Update: {
619
+ barcode?: string | null;
620
+ batch?: string;
621
+ created_at?: string;
622
+ custom_fields?: Json;
623
+ id?: string;
624
+ image_url?: string | null;
625
+ incoming_quantity?: number;
626
+ location?: string;
627
+ min_quantity?: number;
628
+ product?: string;
629
+ product_type?: string;
630
+ purchase_price?: number | null;
631
+ quantity?: number;
632
+ sale_price?: number | null;
633
+ unit?: string;
634
+ updated_at?: string;
635
+ weight?: string | null;
636
+ };
637
+ Relationships: [];
638
+ };
639
+ profiles: {
640
+ Row: {
641
+ created_at: string;
642
+ display_name: string | null;
643
+ email: string | null;
644
+ id: string;
645
+ notification_preferences: Json;
646
+ updated_at: string;
647
+ };
648
+ Insert: {
649
+ created_at?: string;
650
+ display_name?: string | null;
651
+ email?: string | null;
652
+ id: string;
653
+ notification_preferences?: Json;
654
+ updated_at?: string;
655
+ };
656
+ Update: {
657
+ created_at?: string;
658
+ display_name?: string | null;
659
+ email?: string | null;
660
+ id?: string;
661
+ notification_preferences?: Json;
662
+ updated_at?: string;
663
+ };
664
+ Relationships: [];
665
+ };
666
+ purchase_order_items: {
667
+ Row: {
668
+ created_at: string;
669
+ id: string;
670
+ product_id: string | null;
671
+ product_type: string;
672
+ purchase_order_id: string;
673
+ quantity: number;
674
+ };
675
+ Insert: {
676
+ created_at?: string;
677
+ id?: string;
678
+ product_id?: string | null;
679
+ product_type?: string;
680
+ purchase_order_id: string;
681
+ quantity?: number;
682
+ };
683
+ Update: {
684
+ created_at?: string;
685
+ id?: string;
686
+ product_id?: string | null;
687
+ product_type?: string;
688
+ purchase_order_id?: string;
689
+ quantity?: number;
690
+ };
691
+ Relationships: [
692
+ {
693
+ foreignKeyName: "purchase_order_items_product_id_fkey";
694
+ columns: ["product_id"];
695
+ isOneToOne: false;
696
+ referencedRelation: "products";
697
+ referencedColumns: ["id"];
698
+ },
699
+ {
700
+ foreignKeyName: "purchase_order_items_purchase_order_id_fkey";
701
+ columns: ["purchase_order_id"];
702
+ isOneToOne: false;
703
+ referencedRelation: "purchase_orders";
704
+ referencedColumns: ["id"];
705
+ }
706
+ ];
707
+ };
708
+ purchase_orders: {
709
+ Row: {
710
+ created_at: string;
711
+ expected_delivery_date: string;
712
+ id: string;
713
+ location_id: string | null;
714
+ notes: string | null;
715
+ order_number: string;
716
+ status: string;
717
+ supplier_id: string | null;
718
+ supplier_name: string;
719
+ updated_at: string;
720
+ };
721
+ Insert: {
722
+ created_at?: string;
723
+ expected_delivery_date: string;
724
+ id?: string;
725
+ location_id?: string | null;
726
+ notes?: string | null;
727
+ order_number: string;
728
+ status?: string;
729
+ supplier_id?: string | null;
730
+ supplier_name?: string;
731
+ updated_at?: string;
732
+ };
733
+ Update: {
734
+ created_at?: string;
735
+ expected_delivery_date?: string;
736
+ id?: string;
737
+ location_id?: string | null;
738
+ notes?: string | null;
739
+ order_number?: string;
740
+ status?: string;
741
+ supplier_id?: string | null;
742
+ supplier_name?: string;
743
+ updated_at?: string;
744
+ };
745
+ Relationships: [
746
+ {
747
+ foreignKeyName: "purchase_orders_location_id_fkey";
748
+ columns: ["location_id"];
749
+ isOneToOne: false;
750
+ referencedRelation: "locations";
751
+ referencedColumns: ["id"];
752
+ },
753
+ {
754
+ foreignKeyName: "purchase_orders_supplier_id_fkey";
755
+ columns: ["supplier_id"];
756
+ isOneToOne: false;
757
+ referencedRelation: "suppliers";
758
+ referencedColumns: ["id"];
759
+ }
760
+ ];
761
+ };
762
+ supplier_products: {
763
+ Row: {
764
+ article_number: string | null;
765
+ created_at: string;
766
+ id: string;
767
+ name: string;
768
+ notes: string | null;
769
+ pot_size: string | null;
770
+ price: number | null;
771
+ quantity: number | null;
772
+ supplier_id: string;
773
+ unit: string;
774
+ updated_at: string;
775
+ };
776
+ Insert: {
777
+ article_number?: string | null;
778
+ created_at?: string;
779
+ id?: string;
780
+ name: string;
781
+ notes?: string | null;
782
+ pot_size?: string | null;
783
+ price?: number | null;
784
+ quantity?: number | null;
785
+ supplier_id: string;
786
+ unit?: string;
787
+ updated_at?: string;
788
+ };
789
+ Update: {
790
+ article_number?: string | null;
791
+ created_at?: string;
792
+ id?: string;
793
+ name?: string;
794
+ notes?: string | null;
795
+ pot_size?: string | null;
796
+ price?: number | null;
797
+ quantity?: number | null;
798
+ supplier_id?: string;
799
+ unit?: string;
800
+ updated_at?: string;
801
+ };
802
+ Relationships: [
803
+ {
804
+ foreignKeyName: "supplier_products_supplier_id_fkey";
805
+ columns: ["supplier_id"];
806
+ isOneToOne: false;
807
+ referencedRelation: "suppliers";
808
+ referencedColumns: ["id"];
809
+ }
810
+ ];
811
+ };
812
+ suppliers: {
813
+ Row: {
814
+ address: string | null;
815
+ column_mappings: Json | null;
816
+ contact_person: string | null;
817
+ created_at: string;
818
+ default_product_type: string;
819
+ email: string | null;
820
+ id: string;
821
+ imported_file_name: string | null;
822
+ name: string;
823
+ notes: string | null;
824
+ phone: string | null;
825
+ updated_at: string;
826
+ };
827
+ Insert: {
828
+ address?: string | null;
829
+ column_mappings?: Json | null;
830
+ contact_person?: string | null;
831
+ created_at?: string;
832
+ default_product_type?: string;
833
+ email?: string | null;
834
+ id?: string;
835
+ imported_file_name?: string | null;
836
+ name: string;
837
+ notes?: string | null;
838
+ phone?: string | null;
839
+ updated_at?: string;
840
+ };
841
+ Update: {
842
+ address?: string | null;
843
+ column_mappings?: Json | null;
844
+ contact_person?: string | null;
845
+ created_at?: string;
846
+ default_product_type?: string;
847
+ email?: string | null;
848
+ id?: string;
849
+ imported_file_name?: string | null;
850
+ name?: string;
851
+ notes?: string | null;
852
+ phone?: string | null;
853
+ updated_at?: string;
854
+ };
855
+ Relationships: [];
856
+ };
857
+ user_roles: {
858
+ Row: {
859
+ created_at: string;
860
+ id: string;
861
+ role: Database["public"]["Enums"]["app_role"];
862
+ user_id: string;
863
+ };
864
+ Insert: {
865
+ created_at?: string;
866
+ id?: string;
867
+ role: Database["public"]["Enums"]["app_role"];
868
+ user_id: string;
869
+ };
870
+ Update: {
871
+ created_at?: string;
872
+ id?: string;
873
+ role?: Database["public"]["Enums"]["app_role"];
874
+ user_id?: string;
875
+ };
876
+ Relationships: [
877
+ {
878
+ foreignKeyName: "user_roles_user_id_fkey";
879
+ columns: ["user_id"];
880
+ isOneToOne: false;
881
+ referencedRelation: "profiles";
882
+ referencedColumns: ["id"];
883
+ }
884
+ ];
885
+ };
886
+ };
887
+ Views: {
888
+ [_ in never]: never;
889
+ };
890
+ Functions: {
891
+ has_role: {
892
+ Args: {
893
+ _role: Database["public"]["Enums"]["app_role"];
894
+ _user_id: string;
895
+ };
896
+ Returns: boolean;
897
+ };
898
+ schedule_floriday_token_refresh: {
899
+ Args: {
900
+ p_apikey: string;
901
+ p_url: string;
902
+ };
903
+ Returns: number;
904
+ };
905
+ };
906
+ Enums: {
907
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer";
908
+ };
909
+ CompositeTypes: {
910
+ [_ in never]: never;
911
+ };
912
+ };
913
+ };
914
+ type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
915
+ type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
916
+ export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
917
+ schema: keyof DatabaseWithoutInternals;
918
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
919
+ schema: keyof DatabaseWithoutInternals;
920
+ } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
921
+ schema: keyof DatabaseWithoutInternals;
922
+ } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
923
+ Row: infer R;
924
+ } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
925
+ Row: infer R;
926
+ } ? R : never : never;
927
+ export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
928
+ schema: keyof DatabaseWithoutInternals;
929
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
930
+ schema: keyof DatabaseWithoutInternals;
931
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
932
+ schema: keyof DatabaseWithoutInternals;
933
+ } ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
934
+ Insert: infer I;
935
+ } ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
936
+ Insert: infer I;
937
+ } ? I : never : never;
938
+ export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
939
+ schema: keyof DatabaseWithoutInternals;
940
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
941
+ schema: keyof DatabaseWithoutInternals;
942
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
943
+ schema: keyof DatabaseWithoutInternals;
944
+ } ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
945
+ Update: infer U;
946
+ } ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
947
+ Update: infer U;
948
+ } ? U : never : never;
949
+ export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
950
+ schema: keyof DatabaseWithoutInternals;
951
+ }, EnumName extends DefaultSchemaEnumNameOrOptions extends {
952
+ schema: keyof DatabaseWithoutInternals;
953
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
954
+ schema: keyof DatabaseWithoutInternals;
955
+ } ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
956
+ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
957
+ schema: keyof DatabaseWithoutInternals;
958
+ }, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
959
+ schema: keyof DatabaseWithoutInternals;
960
+ } ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
961
+ schema: keyof DatabaseWithoutInternals;
962
+ } ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
963
+ export declare const Constants: {
964
+ readonly public: {
965
+ readonly Enums: {
966
+ readonly app_role: readonly ["admin", "manager", "warehouse", "sales", "developer"];
967
+ };
968
+ };
969
+ };
970
+ export {};
971
+ //# sourceMappingURL=types.d.ts.map