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