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