@flowselections/floriday-klanten-module 1.0.8 → 1.0.10

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 (51) hide show
  1. package/dist-lib/components/klanten/CustomerAnalyticsTab.d.ts +4 -0
  2. package/dist-lib/components/klanten/CustomerAnalyticsTab.d.ts.map +1 -0
  3. package/dist-lib/components/klanten/CustomerAnalyticsTab.js +90 -0
  4. package/dist-lib/components/klanten/DeliveryLocationsTab.d.ts +4 -0
  5. package/dist-lib/components/klanten/DeliveryLocationsTab.d.ts.map +1 -0
  6. package/dist-lib/components/klanten/DeliveryLocationsTab.js +94 -0
  7. package/dist-lib/components/klanten/GroupedKlantDetail.d.ts +4 -0
  8. package/dist-lib/components/klanten/GroupedKlantDetail.d.ts.map +1 -0
  9. package/dist-lib/components/klanten/GroupedKlantDetail.js +152 -0
  10. package/dist-lib/components/klanten/KlantDetail.d.ts +4 -0
  11. package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -0
  12. package/dist-lib/components/klanten/KlantDetail.js +43 -0
  13. package/dist-lib/components/klanten/KlantDetailLayout.d.ts +75 -0
  14. package/dist-lib/components/klanten/KlantDetailLayout.d.ts.map +1 -0
  15. package/dist-lib/components/klanten/KlantDetailLayout.js +172 -0
  16. package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
  17. package/dist-lib/components/klanten/KlantenOverzicht.js +12 -32
  18. package/dist-lib/components/klanten/NetwerkPagina.d.ts +2 -0
  19. package/dist-lib/components/klanten/NetwerkPagina.d.ts.map +1 -0
  20. package/dist-lib/components/klanten/NetwerkPagina.js +23 -0
  21. package/dist-lib/components/klanten/NieuweKlant.d.ts +2 -0
  22. package/dist-lib/components/klanten/NieuweKlant.d.ts.map +1 -0
  23. package/dist-lib/components/klanten/NieuweKlant.js +57 -0
  24. package/dist-lib/index.d.ts +4 -0
  25. package/dist-lib/index.d.ts.map +1 -1
  26. package/dist-lib/index.js +5 -1
  27. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2797 -144
  28. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  29. package/dist-lib/integrations/supabase/client.d.ts +2797 -144
  30. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  31. package/dist-lib/integrations/supabase/client.server.d.ts +2797 -144
  32. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  33. package/dist-lib/integrations/supabase/types.d.ts +2870 -134
  34. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  35. package/dist-lib/integrations/supabase/types.js +2 -0
  36. package/dist-lib/lib/accounting.functions.d.ts +17599 -9640
  37. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/customer-analytics.functions.d.ts +9347 -0
  39. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -0
  40. package/dist-lib/lib/customer-analytics.functions.js +165 -0
  41. package/dist-lib/lib/customers.functions.d.ts +42763 -24186
  42. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/delivery-locations.functions.d.ts +37258 -0
  44. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -0
  45. package/dist-lib/lib/delivery-locations.functions.js +150 -0
  46. package/dist-lib/lib/eu-regions.d.ts +14 -0
  47. package/dist-lib/lib/eu-regions.d.ts.map +1 -0
  48. package/dist-lib/lib/eu-regions.js +68 -0
  49. package/dist-lib/lib/external-customers.functions.d.ts +25112 -14500
  50. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  51. package/package.json +5 -4
@@ -2,6 +2,48 @@ import type { Database } from './types';
2
2
  export declare const requireSupabaseAuth: import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
3
3
  supabase: import("@supabase/supabase-js").SupabaseClient<Database, "public", "public", {
4
4
  Tables: {
5
+ afhandeling_settings: {
6
+ Row: {
7
+ created_at: string;
8
+ id: string;
9
+ max_workdays_earlier_pick: number;
10
+ pick_days_before_transport: number;
11
+ pick_distribution_enabled: boolean;
12
+ signup_mail_enabled: boolean;
13
+ signup_mail_lead_minutes: number;
14
+ signup_mail_purpose: string;
15
+ transport_register_days_before: number;
16
+ updated_at: string;
17
+ user_id: string;
18
+ };
19
+ Insert: {
20
+ created_at?: string;
21
+ id?: string;
22
+ max_workdays_earlier_pick?: number;
23
+ pick_days_before_transport?: number;
24
+ pick_distribution_enabled?: boolean;
25
+ signup_mail_enabled?: boolean;
26
+ signup_mail_lead_minutes?: number;
27
+ signup_mail_purpose?: string;
28
+ transport_register_days_before?: number;
29
+ updated_at?: string;
30
+ user_id: string;
31
+ };
32
+ Update: {
33
+ created_at?: string;
34
+ id?: string;
35
+ max_workdays_earlier_pick?: number;
36
+ pick_days_before_transport?: number;
37
+ pick_distribution_enabled?: boolean;
38
+ signup_mail_enabled?: boolean;
39
+ signup_mail_lead_minutes?: number;
40
+ signup_mail_purpose?: string;
41
+ transport_register_days_before?: number;
42
+ updated_at?: string;
43
+ user_id?: string;
44
+ };
45
+ Relationships: [];
46
+ };
5
47
  agenda_connections: {
6
48
  Row: {
7
49
  account_email: string | null;
@@ -404,6 +446,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
404
446
  referencedColumns: ["id"];
405
447
  }];
406
448
  };
449
+ carrier_signup_dispatches: {
450
+ Row: {
451
+ carrier_id: string;
452
+ cart_count: number;
453
+ created_at: string;
454
+ id: string;
455
+ order_count: number;
456
+ outbox_id: string | null;
457
+ pickup_date: string;
458
+ pickup_moment_key: string;
459
+ sent_at: string;
460
+ signup_deadline: string;
461
+ };
462
+ Insert: {
463
+ carrier_id: string;
464
+ cart_count?: number;
465
+ created_at?: string;
466
+ id?: string;
467
+ order_count?: number;
468
+ outbox_id?: string | null;
469
+ pickup_date: string;
470
+ pickup_moment_key: string;
471
+ sent_at?: string;
472
+ signup_deadline: string;
473
+ };
474
+ Update: {
475
+ carrier_id?: string;
476
+ cart_count?: number;
477
+ created_at?: string;
478
+ id?: string;
479
+ order_count?: number;
480
+ outbox_id?: string | null;
481
+ pickup_date?: string;
482
+ pickup_moment_key?: string;
483
+ sent_at?: string;
484
+ signup_deadline?: string;
485
+ };
486
+ Relationships: [{
487
+ foreignKeyName: "carrier_signup_dispatches_carrier_id_fkey";
488
+ columns: ["carrier_id"];
489
+ isOneToOne: false;
490
+ referencedRelation: "carriers";
491
+ referencedColumns: ["id"];
492
+ }];
493
+ };
407
494
  carriers: {
408
495
  Row: {
409
496
  address: string | null;
@@ -412,11 +499,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
412
499
  delivery_days: number | null;
413
500
  email: string | null;
414
501
  id: string;
502
+ is_default: boolean;
415
503
  name: string;
416
504
  notes: string | null;
417
505
  phone: string | null;
506
+ pickup_moments: import("./types").Json;
507
+ service_cities: string[];
508
+ service_countries: string[];
509
+ service_provinces: string[];
510
+ signup_days_before_delivery: number;
418
511
  signup_time_1: string | null;
419
512
  signup_time_2: string | null;
513
+ sort_order: number;
420
514
  updated_at: string;
421
515
  user_id: string;
422
516
  };
@@ -427,11 +521,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
427
521
  delivery_days?: number | null;
428
522
  email?: string | null;
429
523
  id?: string;
524
+ is_default?: boolean;
430
525
  name: string;
431
526
  notes?: string | null;
432
527
  phone?: string | null;
528
+ pickup_moments?: import("./types").Json;
529
+ service_cities?: string[];
530
+ service_countries?: string[];
531
+ service_provinces?: string[];
532
+ signup_days_before_delivery?: number;
433
533
  signup_time_1?: string | null;
434
534
  signup_time_2?: string | null;
535
+ sort_order?: number;
435
536
  updated_at?: string;
436
537
  user_id: string;
437
538
  };
@@ -442,16 +543,62 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
442
543
  delivery_days?: number | null;
443
544
  email?: string | null;
444
545
  id?: string;
546
+ is_default?: boolean;
445
547
  name?: string;
446
548
  notes?: string | null;
447
549
  phone?: string | null;
550
+ pickup_moments?: import("./types").Json;
551
+ service_cities?: string[];
552
+ service_countries?: string[];
553
+ service_provinces?: string[];
554
+ signup_days_before_delivery?: number;
448
555
  signup_time_1?: string | null;
449
556
  signup_time_2?: string | null;
557
+ sort_order?: number;
450
558
  updated_at?: string;
451
559
  user_id?: string;
452
560
  };
453
561
  Relationships: [];
454
562
  };
563
+ cart_pick_overrides: {
564
+ Row: {
565
+ cart_index: number;
566
+ created_at: string;
567
+ id: string;
568
+ moved_from_date: string | null;
569
+ notes: string | null;
570
+ order_id: string;
571
+ order_source: string;
572
+ pick_date: string;
573
+ status: string;
574
+ updated_at: string;
575
+ };
576
+ Insert: {
577
+ cart_index: number;
578
+ created_at?: string;
579
+ id?: string;
580
+ moved_from_date?: string | null;
581
+ notes?: string | null;
582
+ order_id: string;
583
+ order_source: string;
584
+ pick_date: string;
585
+ status?: string;
586
+ updated_at?: string;
587
+ };
588
+ Update: {
589
+ cart_index?: number;
590
+ created_at?: string;
591
+ id?: string;
592
+ moved_from_date?: string | null;
593
+ notes?: string | null;
594
+ order_id?: string;
595
+ order_source?: string;
596
+ pick_date?: string;
597
+ status?: string;
598
+ updated_at?: string;
599
+ };
600
+ Relationships: [];
601
+ };
455
602
  collections: {
456
603
  Row: {
457
604
  created_at: string;
@@ -563,50 +710,74 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
563
710
  customer_delivery_locations: {
564
711
  Row: {
565
712
  address_line: string | null;
713
+ carrier_assignment_source: string;
714
+ carrier_id: string | null;
566
715
  city: string | null;
567
716
  country: string | null;
568
717
  created_at: string;
569
718
  customer_id: string;
570
719
  floriday_location_id: string | null;
571
720
  gln: string | null;
721
+ house_number: string | null;
572
722
  id: string;
573
723
  is_primary: boolean;
574
724
  name: string | null;
575
725
  postal_code: string | null;
726
+ province: string | null;
576
727
  raw: import("./types").Json | null;
728
+ self_pickup: boolean;
729
+ street: string | null;
577
730
  updated_at: string;
578
731
  };
579
732
  Insert: {
580
733
  address_line?: string | null;
734
+ carrier_assignment_source?: string;
735
+ carrier_id?: string | null;
581
736
  city?: string | null;
582
737
  country?: string | null;
583
738
  created_at?: string;
584
739
  customer_id: string;
585
740
  floriday_location_id?: string | null;
586
741
  gln?: string | null;
742
+ house_number?: string | null;
587
743
  id?: string;
588
744
  is_primary?: boolean;
589
745
  name?: string | null;
590
746
  postal_code?: string | null;
747
+ province?: string | null;
591
748
  raw?: import("./types").Json | null;
749
+ self_pickup?: boolean;
750
+ street?: string | null;
592
751
  updated_at?: string;
593
752
  };
594
753
  Update: {
595
754
  address_line?: string | null;
755
+ carrier_assignment_source?: string;
756
+ carrier_id?: string | null;
596
757
  city?: string | null;
597
758
  country?: string | null;
598
759
  created_at?: string;
599
760
  customer_id?: string;
600
761
  floriday_location_id?: string | null;
601
762
  gln?: string | null;
763
+ house_number?: string | null;
602
764
  id?: string;
603
765
  is_primary?: boolean;
604
766
  name?: string | null;
605
767
  postal_code?: string | null;
768
+ province?: string | null;
606
769
  raw?: import("./types").Json | null;
770
+ self_pickup?: boolean;
771
+ street?: string | null;
607
772
  updated_at?: string;
608
773
  };
609
774
  Relationships: [{
775
+ foreignKeyName: "customer_delivery_locations_carrier_id_fkey";
776
+ columns: ["carrier_id"];
777
+ isOneToOne: false;
778
+ referencedRelation: "carriers";
779
+ referencedColumns: ["id"];
780
+ }, {
610
781
  foreignKeyName: "customer_delivery_locations_customer_id_fkey";
611
782
  columns: ["customer_id"];
612
783
  isOneToOne: false;
@@ -1411,18 +1582,21 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1411
1582
  };
1412
1583
  email_auth_purpose_settings: {
1413
1584
  Row: {
1585
+ default_cc: string[];
1414
1586
  purpose: string;
1415
1587
  reply_to: string | null;
1416
1588
  updated_at: string;
1417
1589
  updated_by: string | null;
1418
1590
  };
1419
1591
  Insert: {
1592
+ default_cc?: string[];
1420
1593
  purpose: string;
1421
1594
  reply_to?: string | null;
1422
1595
  updated_at?: string;
1423
1596
  updated_by?: string | null;
1424
1597
  };
1425
1598
  Update: {
1599
+ default_cc?: string[];
1426
1600
  purpose?: string;
1427
1601
  reply_to?: string | null;
1428
1602
  updated_at?: string;
@@ -2192,6 +2366,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2192
2366
  referencedColumns: ["id"];
2193
2367
  }];
2194
2368
  };
2369
+ exact_push_queue: {
2370
+ Row: {
2371
+ attempts: number;
2372
+ connection_id: string;
2373
+ created_at: string;
2374
+ external_id: string | null;
2375
+ id: string;
2376
+ idempotency_hash: string;
2377
+ last_error: string | null;
2378
+ payload: import("./types").Json;
2379
+ status: Database["public"]["Enums"]["exact_push_status"];
2380
+ updated_at: string;
2381
+ };
2382
+ Insert: {
2383
+ attempts?: number;
2384
+ connection_id: string;
2385
+ created_at?: string;
2386
+ external_id?: string | null;
2387
+ id?: string;
2388
+ idempotency_hash: string;
2389
+ last_error?: string | null;
2390
+ payload: import("./types").Json;
2391
+ status?: Database["public"]["Enums"]["exact_push_status"];
2392
+ updated_at?: string;
2393
+ };
2394
+ Update: {
2395
+ attempts?: number;
2396
+ connection_id?: string;
2397
+ created_at?: string;
2398
+ external_id?: string | null;
2399
+ id?: string;
2400
+ idempotency_hash?: string;
2401
+ last_error?: string | null;
2402
+ payload?: import("./types").Json;
2403
+ status?: Database["public"]["Enums"]["exact_push_status"];
2404
+ updated_at?: string;
2405
+ };
2406
+ Relationships: [{
2407
+ foreignKeyName: "exact_push_queue_connection_id_fkey";
2408
+ columns: ["connection_id"];
2409
+ isOneToOne: false;
2410
+ referencedRelation: "exact_connections";
2411
+ referencedColumns: ["id"];
2412
+ }];
2413
+ };
2195
2414
  exact_refresh_locks: {
2196
2415
  Row: {
2197
2416
  environment: Database["public"]["Enums"]["exact_env"];
@@ -2254,6 +2473,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2254
2473
  connection_id: string;
2255
2474
  last_error: string | null;
2256
2475
  last_modified_cursor: string | null;
2476
+ last_modified_cursor_customers: string | null;
2477
+ last_modified_cursor_invoices: string | null;
2257
2478
  last_synced_at: string | null;
2258
2479
  status: string;
2259
2480
  updated_at: string;
@@ -2262,6 +2483,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2262
2483
  connection_id: string;
2263
2484
  last_error?: string | null;
2264
2485
  last_modified_cursor?: string | null;
2486
+ last_modified_cursor_customers?: string | null;
2487
+ last_modified_cursor_invoices?: string | null;
2265
2488
  last_synced_at?: string | null;
2266
2489
  status?: string;
2267
2490
  updated_at?: string;
@@ -2270,6 +2493,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2270
2493
  connection_id?: string;
2271
2494
  last_error?: string | null;
2272
2495
  last_modified_cursor?: string | null;
2496
+ last_modified_cursor_customers?: string | null;
2497
+ last_modified_cursor_invoices?: string | null;
2273
2498
  last_synced_at?: string | null;
2274
2499
  status?: string;
2275
2500
  updated_at?: string;
@@ -2312,6 +2537,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2312
2537
  };
2313
2538
  Relationships: [];
2314
2539
  };
2540
+ external_invoice_providers: {
2541
+ Row: {
2542
+ color: string | null;
2543
+ created_at: string;
2544
+ hmac_secret_name: string | null;
2545
+ icon: string | null;
2546
+ is_enabled: boolean;
2547
+ label: string;
2548
+ last_synced_at: string | null;
2549
+ provider: string;
2550
+ push_endpoint: string | null;
2551
+ sort_order: number;
2552
+ status_endpoint: string | null;
2553
+ sync_endpoint: string | null;
2554
+ updated_at: string;
2555
+ };
2556
+ Insert: {
2557
+ color?: string | null;
2558
+ created_at?: string;
2559
+ hmac_secret_name?: string | null;
2560
+ icon?: string | null;
2561
+ is_enabled?: boolean;
2562
+ label: string;
2563
+ last_synced_at?: string | null;
2564
+ provider: string;
2565
+ push_endpoint?: string | null;
2566
+ sort_order?: number;
2567
+ status_endpoint?: string | null;
2568
+ sync_endpoint?: string | null;
2569
+ updated_at?: string;
2570
+ };
2571
+ Update: {
2572
+ color?: string | null;
2573
+ created_at?: string;
2574
+ hmac_secret_name?: string | null;
2575
+ icon?: string | null;
2576
+ is_enabled?: boolean;
2577
+ label?: string;
2578
+ last_synced_at?: string | null;
2579
+ provider?: string;
2580
+ push_endpoint?: string | null;
2581
+ sort_order?: number;
2582
+ status_endpoint?: string | null;
2583
+ sync_endpoint?: string | null;
2584
+ updated_at?: string;
2585
+ };
2586
+ Relationships: [];
2587
+ };
2315
2588
  extra_categories: {
2316
2589
  Row: {
2317
2590
  created_at: string;
@@ -2336,12 +2609,40 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2336
2609
  };
2337
2610
  Relationships: [];
2338
2611
  };
2612
+ extra_pricing_types: {
2613
+ Row: {
2614
+ code: string;
2615
+ created_at: string;
2616
+ id: string;
2617
+ label: string;
2618
+ sort_order: number;
2619
+ updated_at: string;
2620
+ };
2621
+ Insert: {
2622
+ code: string;
2623
+ created_at?: string;
2624
+ id?: string;
2625
+ label: string;
2626
+ sort_order?: number;
2627
+ updated_at?: string;
2628
+ };
2629
+ Update: {
2630
+ code?: string;
2631
+ created_at?: string;
2632
+ id?: string;
2633
+ label?: string;
2634
+ sort_order?: number;
2635
+ updated_at?: string;
2636
+ };
2637
+ Relationships: [];
2638
+ };
2339
2639
  extras: {
2340
2640
  Row: {
2341
2641
  category: string;
2342
2642
  created_at: string;
2343
2643
  exact_article_id: string | null;
2344
2644
  id: string;
2645
+ image_url: string | null;
2345
2646
  is_active: boolean;
2346
2647
  name: string;
2347
2648
  price: number;
@@ -2352,6 +2653,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2352
2653
  created_at?: string;
2353
2654
  exact_article_id?: string | null;
2354
2655
  id?: string;
2656
+ image_url?: string | null;
2355
2657
  is_active?: boolean;
2356
2658
  name: string;
2357
2659
  price?: number;
@@ -2362,6 +2664,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2362
2664
  created_at?: string;
2363
2665
  exact_article_id?: string | null;
2364
2666
  id?: string;
2667
+ image_url?: string | null;
2365
2668
  is_active?: boolean;
2366
2669
  name?: string;
2367
2670
  price?: number;
@@ -2459,230 +2762,1298 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2459
2762
  };
2460
2763
  Relationships: [];
2461
2764
  };
2462
- floriday_carriers_cache: {
2765
+ floriday_additional_services_cache: {
2463
2766
  Row: {
2464
- connection_id: string | null;
2465
- created_at: string;
2767
+ connection_id: string;
2466
2768
  data: import("./types").Json;
2467
2769
  fetched_at: string;
2468
- gln_code: string | null;
2469
- id: string;
2470
- name: string | null;
2471
- organization_id: string;
2770
+ floriday_id: string;
2771
+ is_deleted: boolean;
2772
+ sequence_number: number;
2472
2773
  updated_at: string;
2473
2774
  };
2474
2775
  Insert: {
2475
- connection_id?: string | null;
2476
- created_at?: string;
2776
+ connection_id: string;
2477
2777
  data: import("./types").Json;
2478
2778
  fetched_at?: string;
2479
- gln_code?: string | null;
2480
- id?: string;
2481
- name?: string | null;
2482
- organization_id: string;
2779
+ floriday_id: string;
2780
+ is_deleted?: boolean;
2781
+ sequence_number?: number;
2483
2782
  updated_at?: string;
2484
2783
  };
2485
2784
  Update: {
2486
- connection_id?: string | null;
2487
- created_at?: string;
2785
+ connection_id?: string;
2488
2786
  data?: import("./types").Json;
2489
2787
  fetched_at?: string;
2490
- gln_code?: string | null;
2491
- id?: string;
2492
- name?: string | null;
2493
- organization_id?: string;
2788
+ floriday_id?: string;
2789
+ is_deleted?: boolean;
2790
+ sequence_number?: number;
2494
2791
  updated_at?: string;
2495
2792
  };
2496
2793
  Relationships: [{
2497
- foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
2794
+ foreignKeyName: "floriday_additional_services_cache_connection_id_fkey";
2498
2795
  columns: ["connection_id"];
2499
2796
  isOneToOne: false;
2500
2797
  referencedRelation: "floriday_connections";
2501
2798
  referencedColumns: ["id"];
2502
2799
  }];
2503
2800
  };
2504
- floriday_connections: {
2801
+ floriday_agreement_calloffs_cache: {
2505
2802
  Row: {
2506
- access_token: string | null;
2507
- api_key: string;
2508
- client_id: string;
2509
- client_secret: string;
2510
- created_at: string;
2511
- customers_endpoint: string | null;
2512
- environment: string;
2513
- gln_code: string | null;
2803
+ agreement_id: string | null;
2804
+ connection_id: string;
2805
+ data: import("./types").Json;
2806
+ delivery_date: string | null;
2807
+ fetched_at: string;
2808
+ floriday_id: string;
2514
2809
  id: string;
2515
- is_active: boolean;
2516
- label: string;
2517
- organization_name: string | null;
2518
- preferred_warehouse_id: string | null;
2519
- preferred_warehouse_name: string | null;
2520
- token_expires_at: string | null;
2810
+ is_deleted: boolean;
2811
+ sequence_number: number;
2812
+ status: string | null;
2521
2813
  updated_at: string;
2522
2814
  };
2523
2815
  Insert: {
2524
- access_token?: string | null;
2525
- api_key: string;
2526
- client_id: string;
2527
- client_secret: string;
2528
- created_at?: string;
2529
- customers_endpoint?: string | null;
2530
- environment: string;
2531
- gln_code?: string | null;
2816
+ agreement_id?: string | null;
2817
+ connection_id: string;
2818
+ data?: import("./types").Json;
2819
+ delivery_date?: string | null;
2820
+ fetched_at?: string;
2821
+ floriday_id: string;
2532
2822
  id?: string;
2533
- is_active?: boolean;
2534
- label?: string;
2535
- organization_name?: string | null;
2536
- preferred_warehouse_id?: string | null;
2537
- preferred_warehouse_name?: string | null;
2538
- token_expires_at?: string | null;
2823
+ is_deleted?: boolean;
2824
+ sequence_number?: number;
2825
+ status?: string | null;
2539
2826
  updated_at?: string;
2540
2827
  };
2541
2828
  Update: {
2542
- access_token?: string | null;
2543
- api_key?: string;
2544
- client_id?: string;
2545
- client_secret?: string;
2546
- created_at?: string;
2547
- customers_endpoint?: string | null;
2548
- environment?: string;
2549
- gln_code?: string | null;
2829
+ agreement_id?: string | null;
2830
+ connection_id?: string;
2831
+ data?: import("./types").Json;
2832
+ delivery_date?: string | null;
2833
+ fetched_at?: string;
2834
+ floriday_id?: string;
2550
2835
  id?: string;
2551
- is_active?: boolean;
2552
- label?: string;
2553
- organization_name?: string | null;
2554
- preferred_warehouse_id?: string | null;
2555
- preferred_warehouse_name?: string | null;
2556
- token_expires_at?: string | null;
2836
+ is_deleted?: boolean;
2837
+ sequence_number?: number;
2838
+ status?: string | null;
2557
2839
  updated_at?: string;
2558
2840
  };
2559
- Relationships: [];
2841
+ Relationships: [{
2842
+ foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
2843
+ columns: ["connection_id"];
2844
+ isOneToOne: false;
2845
+ referencedRelation: "floriday_connections";
2846
+ referencedColumns: ["id"];
2847
+ }];
2560
2848
  };
2561
- floriday_connections_cache: {
2849
+ floriday_agreements_cache: {
2562
2850
  Row: {
2563
2851
  buyer_organization_id: string | null;
2564
- buyer_organization_name: string | null;
2565
2852
  connection_id: string;
2566
2853
  data: import("./types").Json;
2567
- floriday_connection_id: string;
2854
+ fetched_at: string;
2855
+ floriday_id: string;
2856
+ id: string;
2568
2857
  is_deleted: boolean;
2569
2858
  sequence_number: number;
2570
2859
  status: string | null;
2571
- synced_at: string;
2860
+ updated_at: string;
2861
+ valid_from: string | null;
2862
+ valid_until: string | null;
2572
2863
  };
2573
2864
  Insert: {
2574
2865
  buyer_organization_id?: string | null;
2575
- buyer_organization_name?: string | null;
2576
2866
  connection_id: string;
2577
- data: import("./types").Json;
2578
- floriday_connection_id: string;
2867
+ data?: import("./types").Json;
2868
+ fetched_at?: string;
2869
+ floriday_id: string;
2870
+ id?: string;
2579
2871
  is_deleted?: boolean;
2580
- sequence_number: number;
2872
+ sequence_number?: number;
2581
2873
  status?: string | null;
2582
- synced_at?: string;
2874
+ updated_at?: string;
2875
+ valid_from?: string | null;
2876
+ valid_until?: string | null;
2583
2877
  };
2584
2878
  Update: {
2585
2879
  buyer_organization_id?: string | null;
2586
- buyer_organization_name?: string | null;
2587
2880
  connection_id?: string;
2588
2881
  data?: import("./types").Json;
2589
- floriday_connection_id?: string;
2882
+ fetched_at?: string;
2883
+ floriday_id?: string;
2884
+ id?: string;
2590
2885
  is_deleted?: boolean;
2591
2886
  sequence_number?: number;
2592
2887
  status?: string | null;
2593
- synced_at?: string;
2888
+ updated_at?: string;
2889
+ valid_from?: string | null;
2890
+ valid_until?: string | null;
2594
2891
  };
2595
2892
  Relationships: [{
2596
- foreignKeyName: "floriday_connections_cache_connection_id_fkey";
2893
+ foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
2597
2894
  columns: ["connection_id"];
2598
2895
  isOneToOne: false;
2599
2896
  referencedRelation: "floriday_connections";
2600
2897
  referencedColumns: ["id"];
2601
2898
  }];
2602
2899
  };
2603
- floriday_customers_cache: {
2900
+ floriday_auction_letters_cache: {
2901
+ Row: {
2902
+ auction_letter_code: string;
2903
+ clock_supply_id: string;
2904
+ connection_id: string;
2905
+ content_type: string;
2906
+ fetched_at: string;
2907
+ id: string;
2908
+ storage_path: string;
2909
+ };
2910
+ Insert: {
2911
+ auction_letter_code: string;
2912
+ clock_supply_id: string;
2913
+ connection_id: string;
2914
+ content_type?: string;
2915
+ fetched_at?: string;
2916
+ id?: string;
2917
+ storage_path: string;
2918
+ };
2919
+ Update: {
2920
+ auction_letter_code?: string;
2921
+ clock_supply_id?: string;
2922
+ connection_id?: string;
2923
+ content_type?: string;
2924
+ fetched_at?: string;
2925
+ id?: string;
2926
+ storage_path?: string;
2927
+ };
2928
+ Relationships: [{
2929
+ foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
2930
+ columns: ["connection_id"];
2931
+ isOneToOne: false;
2932
+ referencedRelation: "floriday_connections";
2933
+ referencedColumns: ["id"];
2934
+ }];
2935
+ };
2936
+ floriday_base_items_cache: {
2937
+ Row: {
2938
+ connection_id: string;
2939
+ data: import("./types").Json;
2940
+ fetched_at: string;
2941
+ floriday_id: string;
2942
+ is_deleted: boolean;
2943
+ sequence_number: number;
2944
+ updated_at: string;
2945
+ };
2946
+ Insert: {
2947
+ connection_id: string;
2948
+ data: import("./types").Json;
2949
+ fetched_at?: string;
2950
+ floriday_id: string;
2951
+ is_deleted?: boolean;
2952
+ sequence_number?: number;
2953
+ updated_at?: string;
2954
+ };
2955
+ Update: {
2956
+ connection_id?: string;
2957
+ data?: import("./types").Json;
2958
+ fetched_at?: string;
2959
+ floriday_id?: string;
2960
+ is_deleted?: boolean;
2961
+ sequence_number?: number;
2962
+ updated_at?: string;
2963
+ };
2964
+ Relationships: [{
2965
+ foreignKeyName: "floriday_base_items_cache_connection_id_fkey";
2966
+ columns: ["connection_id"];
2967
+ isOneToOne: false;
2968
+ referencedRelation: "floriday_connections";
2969
+ referencedColumns: ["id"];
2970
+ }];
2971
+ };
2972
+ floriday_blanket_orders_cache: {
2973
+ Row: {
2974
+ connection_id: string;
2975
+ contract_id: string | null;
2976
+ created_at: string;
2977
+ data: import("./types").Json;
2978
+ fetched_at: string;
2979
+ floriday_id: string;
2980
+ id: string;
2981
+ is_deleted: boolean;
2982
+ sequence_number: number;
2983
+ updated_at: string;
2984
+ };
2985
+ Insert: {
2986
+ connection_id: string;
2987
+ contract_id?: string | null;
2988
+ created_at?: string;
2989
+ data: import("./types").Json;
2990
+ fetched_at?: string;
2991
+ floriday_id: string;
2992
+ id?: string;
2993
+ is_deleted?: boolean;
2994
+ sequence_number?: number;
2995
+ updated_at?: string;
2996
+ };
2997
+ Update: {
2998
+ connection_id?: string;
2999
+ contract_id?: string | null;
3000
+ created_at?: string;
3001
+ data?: import("./types").Json;
3002
+ fetched_at?: string;
3003
+ floriday_id?: string;
3004
+ id?: string;
3005
+ is_deleted?: boolean;
3006
+ sequence_number?: number;
3007
+ updated_at?: string;
3008
+ };
3009
+ Relationships: [{
3010
+ foreignKeyName: "floriday_blanket_orders_cache_connection_id_fkey";
3011
+ columns: ["connection_id"];
3012
+ isOneToOne: false;
3013
+ referencedRelation: "floriday_connections";
3014
+ referencedColumns: ["id"];
3015
+ }];
3016
+ };
3017
+ floriday_carriers_cache: {
2604
3018
  Row: {
2605
3019
  connection_id: string | null;
3020
+ created_at: string;
2606
3021
  data: import("./types").Json;
2607
3022
  fetched_at: string;
3023
+ gln_code: string | null;
3024
+ id: string;
3025
+ name: string | null;
2608
3026
  organization_id: string;
3027
+ updated_at: string;
2609
3028
  };
2610
3029
  Insert: {
2611
3030
  connection_id?: string | null;
3031
+ created_at?: string;
3032
+ data: import("./types").Json;
3033
+ fetched_at?: string;
3034
+ gln_code?: string | null;
3035
+ id?: string;
3036
+ name?: string | null;
3037
+ organization_id: string;
3038
+ updated_at?: string;
3039
+ };
3040
+ Update: {
3041
+ connection_id?: string | null;
3042
+ created_at?: string;
3043
+ data?: import("./types").Json;
3044
+ fetched_at?: string;
3045
+ gln_code?: string | null;
3046
+ id?: string;
3047
+ name?: string | null;
3048
+ organization_id?: string;
3049
+ updated_at?: string;
3050
+ };
3051
+ Relationships: [{
3052
+ foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
3053
+ columns: ["connection_id"];
3054
+ isOneToOne: false;
3055
+ referencedRelation: "floriday_connections";
3056
+ referencedColumns: ["id"];
3057
+ }];
3058
+ };
3059
+ floriday_clock_presales_cache: {
3060
+ Row: {
3061
+ buyer_organization_id: string | null;
3062
+ clock_supply_id: string | null;
3063
+ connection_id: string;
3064
+ data: import("./types").Json;
3065
+ fetched_at: string;
3066
+ floriday_id: string;
3067
+ id: string;
3068
+ is_deleted: boolean;
3069
+ sequence_number: number;
3070
+ updated_at: string;
3071
+ };
3072
+ Insert: {
3073
+ buyer_organization_id?: string | null;
3074
+ clock_supply_id?: string | null;
3075
+ connection_id: string;
3076
+ data?: import("./types").Json;
3077
+ fetched_at?: string;
3078
+ floriday_id: string;
3079
+ id?: string;
3080
+ is_deleted?: boolean;
3081
+ sequence_number?: number;
3082
+ updated_at?: string;
3083
+ };
3084
+ Update: {
3085
+ buyer_organization_id?: string | null;
3086
+ clock_supply_id?: string | null;
3087
+ connection_id?: string;
3088
+ data?: import("./types").Json;
3089
+ fetched_at?: string;
3090
+ floriday_id?: string;
3091
+ id?: string;
3092
+ is_deleted?: boolean;
3093
+ sequence_number?: number;
3094
+ updated_at?: string;
3095
+ };
3096
+ Relationships: [{
3097
+ foreignKeyName: "floriday_clock_presales_cache_connection_id_fkey";
3098
+ columns: ["connection_id"];
3099
+ isOneToOne: false;
3100
+ referencedRelation: "floriday_connections";
3101
+ referencedColumns: ["id"];
3102
+ }];
3103
+ };
3104
+ floriday_clock_supplies_cache: {
3105
+ Row: {
3106
+ auction_date: string | null;
3107
+ connection_id: string;
3108
+ data: import("./types").Json;
3109
+ fetched_at: string;
3110
+ floriday_id: string;
3111
+ id: string;
3112
+ is_deleted: boolean;
3113
+ sequence_number: number;
3114
+ status: string | null;
3115
+ trade_item_id: string | null;
3116
+ updated_at: string;
3117
+ };
3118
+ Insert: {
3119
+ auction_date?: string | null;
3120
+ connection_id: string;
2612
3121
  data?: import("./types").Json;
2613
3122
  fetched_at?: string;
2614
- organization_id: string;
3123
+ floriday_id: string;
3124
+ id?: string;
3125
+ is_deleted?: boolean;
3126
+ sequence_number?: number;
3127
+ status?: string | null;
3128
+ trade_item_id?: string | null;
3129
+ updated_at?: string;
3130
+ };
3131
+ Update: {
3132
+ auction_date?: string | null;
3133
+ connection_id?: string;
3134
+ data?: import("./types").Json;
3135
+ fetched_at?: string;
3136
+ floriday_id?: string;
3137
+ id?: string;
3138
+ is_deleted?: boolean;
3139
+ sequence_number?: number;
3140
+ status?: string | null;
3141
+ trade_item_id?: string | null;
3142
+ updated_at?: string;
3143
+ };
3144
+ Relationships: [{
3145
+ foreignKeyName: "floriday_clock_supplies_cache_connection_id_fkey";
3146
+ columns: ["connection_id"];
3147
+ isOneToOne: false;
3148
+ referencedRelation: "floriday_connections";
3149
+ referencedColumns: ["id"];
3150
+ }];
3151
+ };
3152
+ floriday_code_lists_cache: {
3153
+ Row: {
3154
+ code: string;
3155
+ environment: string;
3156
+ label: string | null;
3157
+ list_name: string;
3158
+ payload: import("./types").Json | null;
3159
+ updated_at: string;
3160
+ };
3161
+ Insert: {
3162
+ code: string;
3163
+ environment: string;
3164
+ label?: string | null;
3165
+ list_name: string;
3166
+ payload?: import("./types").Json | null;
3167
+ updated_at?: string;
3168
+ };
3169
+ Update: {
3170
+ code?: string;
3171
+ environment?: string;
3172
+ label?: string | null;
3173
+ list_name?: string;
3174
+ payload?: import("./types").Json | null;
3175
+ updated_at?: string;
3176
+ };
3177
+ Relationships: [];
3178
+ };
3179
+ floriday_collections_cache: {
3180
+ Row: {
3181
+ connection_id: string;
3182
+ data: import("./types").Json;
3183
+ fetched_at: string;
3184
+ floriday_id: string;
3185
+ is_deleted: boolean;
3186
+ sequence_number: number;
3187
+ updated_at: string;
3188
+ };
3189
+ Insert: {
3190
+ connection_id: string;
3191
+ data: import("./types").Json;
3192
+ fetched_at?: string;
3193
+ floriday_id: string;
3194
+ is_deleted?: boolean;
3195
+ sequence_number?: number;
3196
+ updated_at?: string;
3197
+ };
3198
+ Update: {
3199
+ connection_id?: string;
3200
+ data?: import("./types").Json;
3201
+ fetched_at?: string;
3202
+ floriday_id?: string;
3203
+ is_deleted?: boolean;
3204
+ sequence_number?: number;
3205
+ updated_at?: string;
3206
+ };
3207
+ Relationships: [{
3208
+ foreignKeyName: "floriday_collections_cache_connection_id_fkey";
3209
+ columns: ["connection_id"];
3210
+ isOneToOne: false;
3211
+ referencedRelation: "floriday_connections";
3212
+ referencedColumns: ["id"];
3213
+ }];
3214
+ };
3215
+ floriday_commercial_service_types_cache: {
3216
+ Row: {
3217
+ connection_id: string;
3218
+ data: import("./types").Json;
3219
+ fetched_at: string;
3220
+ floriday_id: string;
3221
+ is_deleted: boolean;
3222
+ sequence_number: number;
3223
+ updated_at: string;
3224
+ };
3225
+ Insert: {
3226
+ connection_id: string;
3227
+ data: import("./types").Json;
3228
+ fetched_at?: string;
3229
+ floriday_id: string;
3230
+ is_deleted?: boolean;
3231
+ sequence_number?: number;
3232
+ updated_at?: string;
3233
+ };
3234
+ Update: {
3235
+ connection_id?: string;
3236
+ data?: import("./types").Json;
3237
+ fetched_at?: string;
3238
+ floriday_id?: string;
3239
+ is_deleted?: boolean;
3240
+ sequence_number?: number;
3241
+ updated_at?: string;
3242
+ };
3243
+ Relationships: [{
3244
+ foreignKeyName: "floriday_commercial_service_types_cache_connection_id_fkey";
3245
+ columns: ["connection_id"];
3246
+ isOneToOne: false;
3247
+ referencedRelation: "floriday_connections";
3248
+ referencedColumns: ["id"];
3249
+ }];
3250
+ };
3251
+ floriday_connections: {
3252
+ Row: {
3253
+ access_token: string | null;
3254
+ api_key: string;
3255
+ client_id: string;
3256
+ client_secret: string;
3257
+ created_at: string;
3258
+ customers_endpoint: string | null;
3259
+ environment: string;
3260
+ gln_code: string | null;
3261
+ id: string;
3262
+ is_active: boolean;
3263
+ label: string;
3264
+ organization_name: string | null;
3265
+ preferred_warehouse_id: string | null;
3266
+ preferred_warehouse_name: string | null;
3267
+ token_expires_at: string | null;
3268
+ updated_at: string;
3269
+ };
3270
+ Insert: {
3271
+ access_token?: string | null;
3272
+ api_key: string;
3273
+ client_id: string;
3274
+ client_secret: string;
3275
+ created_at?: string;
3276
+ customers_endpoint?: string | null;
3277
+ environment: string;
3278
+ gln_code?: string | null;
3279
+ id?: string;
3280
+ is_active?: boolean;
3281
+ label?: string;
3282
+ organization_name?: string | null;
3283
+ preferred_warehouse_id?: string | null;
3284
+ preferred_warehouse_name?: string | null;
3285
+ token_expires_at?: string | null;
3286
+ updated_at?: string;
3287
+ };
3288
+ Update: {
3289
+ access_token?: string | null;
3290
+ api_key?: string;
3291
+ client_id?: string;
3292
+ client_secret?: string;
3293
+ created_at?: string;
3294
+ customers_endpoint?: string | null;
3295
+ environment?: string;
3296
+ gln_code?: string | null;
3297
+ id?: string;
3298
+ is_active?: boolean;
3299
+ label?: string;
3300
+ organization_name?: string | null;
3301
+ preferred_warehouse_id?: string | null;
3302
+ preferred_warehouse_name?: string | null;
3303
+ token_expires_at?: string | null;
3304
+ updated_at?: string;
3305
+ };
3306
+ Relationships: [];
3307
+ };
3308
+ floriday_connections_cache: {
3309
+ Row: {
3310
+ buyer_organization_id: string | null;
3311
+ buyer_organization_name: string | null;
3312
+ connection_id: string;
3313
+ data: import("./types").Json;
3314
+ floriday_connection_id: string;
3315
+ is_deleted: boolean;
3316
+ sequence_number: number;
3317
+ status: string | null;
3318
+ synced_at: string;
3319
+ };
3320
+ Insert: {
3321
+ buyer_organization_id?: string | null;
3322
+ buyer_organization_name?: string | null;
3323
+ connection_id: string;
3324
+ data: import("./types").Json;
3325
+ floriday_connection_id: string;
3326
+ is_deleted?: boolean;
3327
+ sequence_number: number;
3328
+ status?: string | null;
3329
+ synced_at?: string;
3330
+ };
3331
+ Update: {
3332
+ buyer_organization_id?: string | null;
3333
+ buyer_organization_name?: string | null;
3334
+ connection_id?: string;
3335
+ data?: import("./types").Json;
3336
+ floriday_connection_id?: string;
3337
+ is_deleted?: boolean;
3338
+ sequence_number?: number;
3339
+ status?: string | null;
3340
+ synced_at?: string;
3341
+ };
3342
+ Relationships: [{
3343
+ foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3344
+ columns: ["connection_id"];
3345
+ isOneToOne: false;
3346
+ referencedRelation: "floriday_connections";
3347
+ referencedColumns: ["id"];
3348
+ }];
3349
+ };
3350
+ floriday_contract_trade_item_groups_cache: {
3351
+ Row: {
3352
+ connection_id: string;
3353
+ data: import("./types").Json;
3354
+ fetched_at: string;
3355
+ floriday_id: string;
3356
+ is_deleted: boolean;
3357
+ sequence_number: number;
3358
+ updated_at: string;
3359
+ };
3360
+ Insert: {
3361
+ connection_id: string;
3362
+ data: import("./types").Json;
3363
+ fetched_at?: string;
3364
+ floriday_id: string;
3365
+ is_deleted?: boolean;
3366
+ sequence_number?: number;
3367
+ updated_at?: string;
3368
+ };
3369
+ Update: {
3370
+ connection_id?: string;
3371
+ data?: import("./types").Json;
3372
+ fetched_at?: string;
3373
+ floriday_id?: string;
3374
+ is_deleted?: boolean;
3375
+ sequence_number?: number;
3376
+ updated_at?: string;
3377
+ };
3378
+ Relationships: [{
3379
+ foreignKeyName: "floriday_contract_trade_item_groups_cache_connection_id_fkey";
3380
+ columns: ["connection_id"];
3381
+ isOneToOne: false;
3382
+ referencedRelation: "floriday_connections";
3383
+ referencedColumns: ["id"];
3384
+ }];
3385
+ };
3386
+ floriday_contracts_cache: {
3387
+ Row: {
3388
+ connection_id: string;
3389
+ created_at: string;
3390
+ data: import("./types").Json;
3391
+ fetched_at: string;
3392
+ floriday_id: string;
3393
+ id: string;
3394
+ is_deleted: boolean;
3395
+ sequence_number: number;
3396
+ updated_at: string;
3397
+ };
3398
+ Insert: {
3399
+ connection_id: string;
3400
+ created_at?: string;
3401
+ data: import("./types").Json;
3402
+ fetched_at?: string;
3403
+ floriday_id: string;
3404
+ id?: string;
3405
+ is_deleted?: boolean;
3406
+ sequence_number?: number;
3407
+ updated_at?: string;
3408
+ };
3409
+ Update: {
3410
+ connection_id?: string;
3411
+ created_at?: string;
3412
+ data?: import("./types").Json;
3413
+ fetched_at?: string;
3414
+ floriday_id?: string;
3415
+ id?: string;
3416
+ is_deleted?: boolean;
3417
+ sequence_number?: number;
3418
+ updated_at?: string;
3419
+ };
3420
+ Relationships: [{
3421
+ foreignKeyName: "floriday_contracts_cache_connection_id_fkey";
3422
+ columns: ["connection_id"];
3423
+ isOneToOne: false;
3424
+ referencedRelation: "floriday_connections";
3425
+ referencedColumns: ["id"];
3426
+ }];
3427
+ };
3428
+ floriday_customer_sticker_pdfs_cache: {
3429
+ Row: {
3430
+ byte_size: number | null;
3431
+ connection_id: string;
3432
+ content_type: string;
3433
+ created_at: string;
3434
+ fetched_at: string;
3435
+ id: string;
3436
+ sticker_id: string;
3437
+ storage_path: string;
3438
+ };
3439
+ Insert: {
3440
+ byte_size?: number | null;
3441
+ connection_id: string;
3442
+ content_type?: string;
3443
+ created_at?: string;
3444
+ fetched_at?: string;
3445
+ id?: string;
3446
+ sticker_id: string;
3447
+ storage_path: string;
3448
+ };
3449
+ Update: {
3450
+ byte_size?: number | null;
3451
+ connection_id?: string;
3452
+ content_type?: string;
3453
+ created_at?: string;
3454
+ fetched_at?: string;
3455
+ id?: string;
3456
+ sticker_id?: string;
3457
+ storage_path?: string;
3458
+ };
3459
+ Relationships: [{
3460
+ foreignKeyName: "floriday_customer_sticker_pdfs_cache_connection_id_fkey";
3461
+ columns: ["connection_id"];
3462
+ isOneToOne: false;
3463
+ referencedRelation: "floriday_connections";
3464
+ referencedColumns: ["id"];
3465
+ }];
3466
+ };
3467
+ floriday_customer_stickers_cache: {
3468
+ Row: {
3469
+ connection_id: string;
3470
+ created_at: string;
3471
+ data: import("./types").Json;
3472
+ fetched_at: string;
3473
+ floriday_id: string;
3474
+ id: string;
3475
+ is_deleted: boolean;
3476
+ quantity: number | null;
3477
+ sales_order_id: string | null;
3478
+ sequence_number: number;
3479
+ status: string | null;
3480
+ trade_item_id: string | null;
3481
+ updated_at: string;
3482
+ };
3483
+ Insert: {
3484
+ connection_id: string;
3485
+ created_at?: string;
3486
+ data?: import("./types").Json;
3487
+ fetched_at?: string;
3488
+ floriday_id: string;
3489
+ id?: string;
3490
+ is_deleted?: boolean;
3491
+ quantity?: number | null;
3492
+ sales_order_id?: string | null;
3493
+ sequence_number?: number;
3494
+ status?: string | null;
3495
+ trade_item_id?: string | null;
3496
+ updated_at?: string;
3497
+ };
3498
+ Update: {
3499
+ connection_id?: string;
3500
+ created_at?: string;
3501
+ data?: import("./types").Json;
3502
+ fetched_at?: string;
3503
+ floriday_id?: string;
3504
+ id?: string;
3505
+ is_deleted?: boolean;
3506
+ quantity?: number | null;
3507
+ sales_order_id?: string | null;
3508
+ sequence_number?: number;
3509
+ status?: string | null;
3510
+ trade_item_id?: string | null;
3511
+ updated_at?: string;
3512
+ };
3513
+ Relationships: [{
3514
+ foreignKeyName: "floriday_customer_stickers_cache_connection_id_fkey";
3515
+ columns: ["connection_id"];
3516
+ isOneToOne: false;
3517
+ referencedRelation: "floriday_connections";
3518
+ referencedColumns: ["id"];
3519
+ }];
3520
+ };
3521
+ floriday_customers_cache: {
3522
+ Row: {
3523
+ connection_id: string | null;
3524
+ data: import("./types").Json;
3525
+ fetched_at: string;
3526
+ gln_code: string | null;
3527
+ is_deleted: boolean;
3528
+ name: string | null;
3529
+ organization_id: string;
3530
+ sequence_number: number | null;
3531
+ };
3532
+ Insert: {
3533
+ connection_id?: string | null;
3534
+ data?: import("./types").Json;
3535
+ fetched_at?: string;
3536
+ gln_code?: string | null;
3537
+ is_deleted?: boolean;
3538
+ name?: string | null;
3539
+ organization_id: string;
3540
+ sequence_number?: number | null;
3541
+ };
3542
+ Update: {
3543
+ connection_id?: string | null;
3544
+ data?: import("./types").Json;
3545
+ fetched_at?: string;
3546
+ gln_code?: string | null;
3547
+ is_deleted?: boolean;
3548
+ name?: string | null;
3549
+ organization_id?: string;
3550
+ sequence_number?: number | null;
3551
+ };
3552
+ Relationships: [{
3553
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3554
+ columns: ["connection_id"];
3555
+ isOneToOne: false;
3556
+ referencedRelation: "floriday_connections";
3557
+ referencedColumns: ["id"];
3558
+ }];
3559
+ };
3560
+ floriday_delivery_condition_sets_cache: {
3561
+ Row: {
3562
+ connection_id: string;
3563
+ data: import("./types").Json;
3564
+ fetched_at: string;
3565
+ floriday_id: string;
3566
+ is_deleted: boolean;
3567
+ sequence_number: number;
3568
+ updated_at: string;
3569
+ };
3570
+ Insert: {
3571
+ connection_id: string;
3572
+ data: import("./types").Json;
3573
+ fetched_at?: string;
3574
+ floriday_id: string;
3575
+ is_deleted?: boolean;
3576
+ sequence_number?: number;
3577
+ updated_at?: string;
3578
+ };
3579
+ Update: {
3580
+ connection_id?: string;
3581
+ data?: import("./types").Json;
3582
+ fetched_at?: string;
3583
+ floriday_id?: string;
3584
+ is_deleted?: boolean;
3585
+ sequence_number?: number;
3586
+ updated_at?: string;
3587
+ };
3588
+ Relationships: [{
3589
+ foreignKeyName: "floriday_delivery_condition_sets_cache_connection_id_fkey";
3590
+ columns: ["connection_id"];
3591
+ isOneToOne: false;
3592
+ referencedRelation: "floriday_connections";
3593
+ referencedColumns: ["id"];
3594
+ }];
3595
+ };
3596
+ floriday_delivery_locations_cache: {
3597
+ Row: {
3598
+ connection_id: string;
3599
+ data: import("./types").Json;
3600
+ fetched_at: string;
3601
+ floriday_id: string;
3602
+ gln_code: string | null;
3603
+ id: string;
3604
+ is_deleted: boolean;
3605
+ name: string | null;
3606
+ organization_id: string | null;
3607
+ updated_at: string;
3608
+ };
3609
+ Insert: {
3610
+ connection_id: string;
3611
+ data?: import("./types").Json;
3612
+ fetched_at?: string;
3613
+ floriday_id: string;
3614
+ gln_code?: string | null;
3615
+ id?: string;
3616
+ is_deleted?: boolean;
3617
+ name?: string | null;
3618
+ organization_id?: string | null;
3619
+ updated_at?: string;
3620
+ };
3621
+ Update: {
3622
+ connection_id?: string;
3623
+ data?: import("./types").Json;
3624
+ fetched_at?: string;
3625
+ floriday_id?: string;
3626
+ gln_code?: string | null;
3627
+ id?: string;
3628
+ is_deleted?: boolean;
3629
+ name?: string | null;
3630
+ organization_id?: string | null;
3631
+ updated_at?: string;
3632
+ };
3633
+ Relationships: [{
3634
+ foreignKeyName: "floriday_delivery_locations_cache_connection_id_fkey";
3635
+ columns: ["connection_id"];
3636
+ isOneToOne: false;
3637
+ referencedRelation: "floriday_connections";
3638
+ referencedColumns: ["id"];
3639
+ }];
3640
+ };
3641
+ floriday_delivery_orders_cache: {
3642
+ Row: {
3643
+ auction_date: string | null;
3644
+ connection_id: string;
3645
+ data: import("./types").Json;
3646
+ destination_warehouse_id: string | null;
3647
+ fetched_at: string;
3648
+ floriday_id: string;
3649
+ id: string;
3650
+ is_deleted: boolean;
3651
+ sequence_number: number;
3652
+ status: string | null;
3653
+ trade_item_id: string | null;
3654
+ updated_at: string;
3655
+ };
3656
+ Insert: {
3657
+ auction_date?: string | null;
3658
+ connection_id: string;
3659
+ data?: import("./types").Json;
3660
+ destination_warehouse_id?: string | null;
3661
+ fetched_at?: string;
3662
+ floriday_id: string;
3663
+ id?: string;
3664
+ is_deleted?: boolean;
3665
+ sequence_number?: number;
3666
+ status?: string | null;
3667
+ trade_item_id?: string | null;
3668
+ updated_at?: string;
3669
+ };
3670
+ Update: {
3671
+ auction_date?: string | null;
3672
+ connection_id?: string;
3673
+ data?: import("./types").Json;
3674
+ destination_warehouse_id?: string | null;
3675
+ fetched_at?: string;
3676
+ floriday_id?: string;
3677
+ id?: string;
3678
+ is_deleted?: boolean;
3679
+ sequence_number?: number;
3680
+ status?: string | null;
3681
+ trade_item_id?: string | null;
3682
+ updated_at?: string;
3683
+ };
3684
+ Relationships: [{
3685
+ foreignKeyName: "floriday_delivery_orders_cache_connection_id_fkey";
3686
+ columns: ["connection_id"];
3687
+ isOneToOne: false;
3688
+ referencedRelation: "floriday_connections";
3689
+ referencedColumns: ["id"];
3690
+ }];
3691
+ };
3692
+ floriday_fulfillment_orders_cache: {
3693
+ Row: {
3694
+ auction_date: string | null;
3695
+ connection_id: string;
3696
+ data: import("./types").Json;
3697
+ delivery_order_id: string | null;
3698
+ despatch_warehouse_id: string | null;
3699
+ destination_warehouse_id: string | null;
3700
+ fetched_at: string;
3701
+ floriday_id: string;
3702
+ id: string;
3703
+ is_deleted: boolean | null;
3704
+ latest_delivery_at: string | null;
3705
+ load_carrier_type: string | null;
3706
+ one_label_only: boolean | null;
3707
+ sequence_number: number;
3708
+ status: string | null;
3709
+ };
3710
+ Insert: {
3711
+ auction_date?: string | null;
3712
+ connection_id: string;
3713
+ data: import("./types").Json;
3714
+ delivery_order_id?: string | null;
3715
+ despatch_warehouse_id?: string | null;
3716
+ destination_warehouse_id?: string | null;
3717
+ fetched_at?: string;
3718
+ floriday_id: string;
3719
+ id?: string;
3720
+ is_deleted?: boolean | null;
3721
+ latest_delivery_at?: string | null;
3722
+ load_carrier_type?: string | null;
3723
+ one_label_only?: boolean | null;
3724
+ sequence_number?: number;
3725
+ status?: string | null;
3726
+ };
3727
+ Update: {
3728
+ auction_date?: string | null;
3729
+ connection_id?: string;
3730
+ data?: import("./types").Json;
3731
+ delivery_order_id?: string | null;
3732
+ despatch_warehouse_id?: string | null;
3733
+ destination_warehouse_id?: string | null;
3734
+ fetched_at?: string;
3735
+ floriday_id?: string;
3736
+ id?: string;
3737
+ is_deleted?: boolean | null;
3738
+ latest_delivery_at?: string | null;
3739
+ load_carrier_type?: string | null;
3740
+ one_label_only?: boolean | null;
3741
+ sequence_number?: number;
3742
+ status?: string | null;
3743
+ };
3744
+ Relationships: [{
3745
+ foreignKeyName: "floriday_fulfillment_orders_cache_connection_id_fkey";
3746
+ columns: ["connection_id"];
3747
+ isOneToOne: false;
3748
+ referencedRelation: "floriday_connections";
3749
+ referencedColumns: ["id"];
3750
+ }];
3751
+ };
3752
+ floriday_invoices_cache: {
3753
+ Row: {
3754
+ buyer_organization_id: string | null;
3755
+ connection_id: string;
3756
+ currency: string | null;
3757
+ data: import("./types").Json;
3758
+ fetched_at: string;
3759
+ floriday_id: string;
3760
+ id: string;
3761
+ invoice_date: string | null;
3762
+ invoice_number: string | null;
3763
+ is_deleted: boolean;
3764
+ sequence_number: number;
3765
+ total_amount: number | null;
3766
+ updated_at: string;
3767
+ };
3768
+ Insert: {
3769
+ buyer_organization_id?: string | null;
3770
+ connection_id: string;
3771
+ currency?: string | null;
3772
+ data?: import("./types").Json;
3773
+ fetched_at?: string;
3774
+ floriday_id: string;
3775
+ id?: string;
3776
+ invoice_date?: string | null;
3777
+ invoice_number?: string | null;
3778
+ is_deleted?: boolean;
3779
+ sequence_number?: number;
3780
+ total_amount?: number | null;
3781
+ updated_at?: string;
3782
+ };
3783
+ Update: {
3784
+ buyer_organization_id?: string | null;
3785
+ connection_id?: string;
3786
+ currency?: string | null;
3787
+ data?: import("./types").Json;
3788
+ fetched_at?: string;
3789
+ floriday_id?: string;
3790
+ id?: string;
3791
+ invoice_date?: string | null;
3792
+ invoice_number?: string | null;
3793
+ is_deleted?: boolean;
3794
+ sequence_number?: number;
3795
+ total_amount?: number | null;
3796
+ updated_at?: string;
3797
+ };
3798
+ Relationships: [{
3799
+ foreignKeyName: "floriday_invoices_cache_connection_id_fkey";
3800
+ columns: ["connection_id"];
3801
+ isOneToOne: false;
3802
+ referencedRelation: "floriday_connections";
3803
+ referencedColumns: ["id"];
3804
+ }];
3805
+ };
3806
+ floriday_logistic_labels_cache: {
3807
+ Row: {
3808
+ byte_size: number | null;
3809
+ connection_id: string;
3810
+ content_type: string;
3811
+ fetched_at: string;
3812
+ fulfillment_order_id: string;
3813
+ id: string;
3814
+ logistic_label_code: string;
3815
+ storage_path: string;
3816
+ };
3817
+ Insert: {
3818
+ byte_size?: number | null;
3819
+ connection_id: string;
3820
+ content_type?: string;
3821
+ fetched_at?: string;
3822
+ fulfillment_order_id: string;
3823
+ id?: string;
3824
+ logistic_label_code: string;
3825
+ storage_path: string;
3826
+ };
3827
+ Update: {
3828
+ byte_size?: number | null;
3829
+ connection_id?: string;
3830
+ content_type?: string;
3831
+ fetched_at?: string;
3832
+ fulfillment_order_id?: string;
3833
+ id?: string;
3834
+ logistic_label_code?: string;
3835
+ storage_path?: string;
3836
+ };
3837
+ Relationships: [{
3838
+ foreignKeyName: "floriday_logistic_labels_cache_connection_id_fkey";
3839
+ columns: ["connection_id"];
3840
+ isOneToOne: false;
3841
+ referencedRelation: "floriday_connections";
3842
+ referencedColumns: ["id"];
3843
+ }];
3844
+ };
3845
+ floriday_network_cache: {
3846
+ Row: {
3847
+ city: string | null;
3848
+ connection_id: string;
3849
+ country: string | null;
3850
+ data: import("./types").Json;
3851
+ fetched_at: string;
3852
+ gln: string | null;
3853
+ organization_id: string;
3854
+ organization_name: string | null;
3855
+ };
3856
+ Insert: {
3857
+ city?: string | null;
3858
+ connection_id: string;
3859
+ country?: string | null;
3860
+ data?: import("./types").Json;
3861
+ fetched_at?: string;
3862
+ gln?: string | null;
3863
+ organization_id: string;
3864
+ organization_name?: string | null;
3865
+ };
3866
+ Update: {
3867
+ city?: string | null;
3868
+ connection_id?: string;
3869
+ country?: string | null;
3870
+ data?: import("./types").Json;
3871
+ fetched_at?: string;
3872
+ gln?: string | null;
3873
+ organization_id?: string;
3874
+ organization_name?: string | null;
3875
+ };
3876
+ Relationships: [];
3877
+ };
3878
+ floriday_network_sync_state: {
3879
+ Row: {
3880
+ connection_id: string;
3881
+ last_error: string | null;
3882
+ last_sequence_number: number;
3883
+ last_synced_at: string | null;
3884
+ updated_at: string;
3885
+ };
3886
+ Insert: {
3887
+ connection_id: string;
3888
+ last_error?: string | null;
3889
+ last_sequence_number?: number;
3890
+ last_synced_at?: string | null;
3891
+ updated_at?: string;
3892
+ };
3893
+ Update: {
3894
+ connection_id?: string;
3895
+ last_error?: string | null;
3896
+ last_sequence_number?: number;
3897
+ last_synced_at?: string | null;
3898
+ updated_at?: string;
3899
+ };
3900
+ Relationships: [];
3901
+ };
3902
+ floriday_order_number_map: {
3903
+ Row: {
3904
+ created_at: string;
3905
+ floriday_id: string;
3906
+ order_number: string;
3907
+ };
3908
+ Insert: {
3909
+ created_at?: string;
3910
+ floriday_id: string;
3911
+ order_number: string;
3912
+ };
3913
+ Update: {
3914
+ created_at?: string;
3915
+ floriday_id?: string;
3916
+ order_number?: string;
3917
+ };
3918
+ Relationships: [];
3919
+ };
3920
+ floriday_packings_cache: {
3921
+ Row: {
3922
+ connection_id: string;
3923
+ data: import("./types").Json;
3924
+ fetched_at: string;
3925
+ floriday_id: string;
3926
+ id: string;
3927
+ is_deleted: boolean;
3928
+ sequence_number: number;
3929
+ updated_at: string;
3930
+ };
3931
+ Insert: {
3932
+ connection_id: string;
3933
+ data?: import("./types").Json;
3934
+ fetched_at?: string;
3935
+ floriday_id: string;
3936
+ id?: string;
3937
+ is_deleted?: boolean;
3938
+ sequence_number?: number;
3939
+ updated_at?: string;
3940
+ };
3941
+ Update: {
3942
+ connection_id?: string;
3943
+ data?: import("./types").Json;
3944
+ fetched_at?: string;
3945
+ floriday_id?: string;
3946
+ id?: string;
3947
+ is_deleted?: boolean;
3948
+ sequence_number?: number;
3949
+ updated_at?: string;
3950
+ };
3951
+ Relationships: [{
3952
+ foreignKeyName: "floriday_packings_cache_connection_id_fkey";
3953
+ columns: ["connection_id"];
3954
+ isOneToOne: false;
3955
+ referencedRelation: "floriday_connections";
3956
+ referencedColumns: ["id"];
3957
+ }];
3958
+ };
3959
+ floriday_price_groups_cache: {
3960
+ Row: {
3961
+ connection_id: string;
3962
+ data: import("./types").Json;
3963
+ fetched_at: string;
3964
+ floriday_id: string;
3965
+ is_deleted: boolean;
3966
+ sequence_number: number;
3967
+ updated_at: string;
3968
+ };
3969
+ Insert: {
3970
+ connection_id: string;
3971
+ data: import("./types").Json;
3972
+ fetched_at?: string;
3973
+ floriday_id: string;
3974
+ is_deleted?: boolean;
3975
+ sequence_number?: number;
3976
+ updated_at?: string;
2615
3977
  };
2616
3978
  Update: {
2617
- connection_id?: string | null;
3979
+ connection_id?: string;
2618
3980
  data?: import("./types").Json;
2619
3981
  fetched_at?: string;
2620
- organization_id?: string;
3982
+ floriday_id?: string;
3983
+ is_deleted?: boolean;
3984
+ sequence_number?: number;
3985
+ updated_at?: string;
2621
3986
  };
2622
3987
  Relationships: [{
2623
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3988
+ foreignKeyName: "floriday_price_groups_cache_connection_id_fkey";
2624
3989
  columns: ["connection_id"];
2625
3990
  isOneToOne: false;
2626
3991
  referencedRelation: "floriday_connections";
2627
3992
  referencedColumns: ["id"];
2628
3993
  }];
2629
3994
  };
2630
- floriday_network_cache: {
3995
+ floriday_resource_schemas: {
2631
3996
  Row: {
2632
- city: string | null;
2633
- connection_id: string;
2634
- country: string | null;
2635
- data: import("./types").Json;
3997
+ enums: import("./types").Json;
2636
3998
  fetched_at: string;
2637
- gln: string | null;
2638
- organization_id: string;
2639
- organization_name: string | null;
3999
+ resource: string;
4000
+ schema: import("./types").Json;
4001
+ source_url: string | null;
4002
+ version: string;
2640
4003
  };
2641
4004
  Insert: {
2642
- city?: string | null;
2643
- connection_id: string;
2644
- country?: string | null;
2645
- data?: import("./types").Json;
4005
+ enums?: import("./types").Json;
2646
4006
  fetched_at?: string;
2647
- gln?: string | null;
2648
- organization_id: string;
2649
- organization_name?: string | null;
4007
+ resource: string;
4008
+ schema: import("./types").Json;
4009
+ source_url?: string | null;
4010
+ version: string;
2650
4011
  };
2651
4012
  Update: {
2652
- city?: string | null;
2653
- connection_id?: string;
2654
- country?: string | null;
2655
- data?: import("./types").Json;
4013
+ enums?: import("./types").Json;
2656
4014
  fetched_at?: string;
2657
- gln?: string | null;
2658
- organization_id?: string;
2659
- organization_name?: string | null;
4015
+ resource?: string;
4016
+ schema?: import("./types").Json;
4017
+ source_url?: string | null;
4018
+ version?: string;
2660
4019
  };
2661
4020
  Relationships: [];
2662
4021
  };
2663
- floriday_network_sync_state: {
4022
+ floriday_sales_strategies_cache: {
2664
4023
  Row: {
2665
4024
  connection_id: string;
2666
- last_error: string | null;
2667
- last_sequence_number: number;
2668
- last_synced_at: string | null;
4025
+ data: import("./types").Json;
4026
+ fetched_at: string;
4027
+ floriday_id: string;
4028
+ is_deleted: boolean;
4029
+ sequence_number: number;
2669
4030
  updated_at: string;
2670
4031
  };
2671
4032
  Insert: {
2672
4033
  connection_id: string;
2673
- last_error?: string | null;
2674
- last_sequence_number?: number;
2675
- last_synced_at?: string | null;
4034
+ data: import("./types").Json;
4035
+ fetched_at?: string;
4036
+ floriday_id: string;
4037
+ is_deleted?: boolean;
4038
+ sequence_number?: number;
2676
4039
  updated_at?: string;
2677
4040
  };
2678
4041
  Update: {
2679
4042
  connection_id?: string;
2680
- last_error?: string | null;
2681
- last_sequence_number?: number;
2682
- last_synced_at?: string | null;
4043
+ data?: import("./types").Json;
4044
+ fetched_at?: string;
4045
+ floriday_id?: string;
4046
+ is_deleted?: boolean;
4047
+ sequence_number?: number;
2683
4048
  updated_at?: string;
2684
4049
  };
2685
- Relationships: [];
4050
+ Relationships: [{
4051
+ foreignKeyName: "floriday_sales_strategies_cache_connection_id_fkey";
4052
+ columns: ["connection_id"];
4053
+ isOneToOne: false;
4054
+ referencedRelation: "floriday_connections";
4055
+ referencedColumns: ["id"];
4056
+ }];
2686
4057
  };
2687
4058
  floriday_salesorders_cache: {
2688
4059
  Row: {
@@ -2749,7 +4120,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2749
4120
  connection_id: string;
2750
4121
  entity_type: string;
2751
4122
  last_error: string | null;
4123
+ last_items_processed: number | null;
2752
4124
  last_sequence_number: number;
4125
+ last_success_at: string | null;
2753
4126
  last_synced_at: string | null;
2754
4127
  updated_at: string;
2755
4128
  };
@@ -2757,7 +4130,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2757
4130
  connection_id: string;
2758
4131
  entity_type: string;
2759
4132
  last_error?: string | null;
4133
+ last_items_processed?: number | null;
2760
4134
  last_sequence_number?: number;
4135
+ last_success_at?: string | null;
2761
4136
  last_synced_at?: string | null;
2762
4137
  updated_at?: string;
2763
4138
  };
@@ -2765,7 +4140,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2765
4140
  connection_id?: string;
2766
4141
  entity_type?: string;
2767
4142
  last_error?: string | null;
4143
+ last_items_processed?: number | null;
2768
4144
  last_sequence_number?: number;
4145
+ last_success_at?: string | null;
2769
4146
  last_synced_at?: string | null;
2770
4147
  updated_at?: string;
2771
4148
  };
@@ -2813,6 +4190,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2813
4190
  referencedColumns: ["id"];
2814
4191
  }];
2815
4192
  };
4193
+ floriday_trade_item_classifications_cache: {
4194
+ Row: {
4195
+ connection_id: string;
4196
+ data: import("./types").Json;
4197
+ fetched_at: string;
4198
+ floriday_id: string;
4199
+ id: string;
4200
+ is_deleted: boolean;
4201
+ sequence_number: number;
4202
+ updated_at: string;
4203
+ };
4204
+ Insert: {
4205
+ connection_id: string;
4206
+ data: import("./types").Json;
4207
+ fetched_at?: string;
4208
+ floriday_id: string;
4209
+ id?: string;
4210
+ is_deleted?: boolean;
4211
+ sequence_number?: number;
4212
+ updated_at?: string;
4213
+ };
4214
+ Update: {
4215
+ connection_id?: string;
4216
+ data?: import("./types").Json;
4217
+ fetched_at?: string;
4218
+ floriday_id?: string;
4219
+ id?: string;
4220
+ is_deleted?: boolean;
4221
+ sequence_number?: number;
4222
+ updated_at?: string;
4223
+ };
4224
+ Relationships: [{
4225
+ foreignKeyName: "floriday_trade_item_classifications_cache_connection_id_fkey";
4226
+ columns: ["connection_id"];
4227
+ isOneToOne: false;
4228
+ referencedRelation: "floriday_connections";
4229
+ referencedColumns: ["id"];
4230
+ }];
4231
+ };
2816
4232
  floriday_trade_items_cache: {
2817
4233
  Row: {
2818
4234
  connection_id: string;
@@ -2846,6 +4262,159 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2846
4262
  referencedColumns: ["id"];
2847
4263
  }];
2848
4264
  };
4265
+ floriday_trips_cache: {
4266
+ Row: {
4267
+ carrier_organization_id: string | null;
4268
+ connection_id: string;
4269
+ data: import("./types").Json;
4270
+ fetched_at: string;
4271
+ floriday_id: string;
4272
+ id: string;
4273
+ is_deleted: boolean;
4274
+ sequence_number: number;
4275
+ status: string | null;
4276
+ trip_date: string | null;
4277
+ updated_at: string;
4278
+ };
4279
+ Insert: {
4280
+ carrier_organization_id?: string | null;
4281
+ connection_id: string;
4282
+ data?: import("./types").Json;
4283
+ fetched_at?: string;
4284
+ floriday_id: string;
4285
+ id?: string;
4286
+ is_deleted?: boolean;
4287
+ sequence_number?: number;
4288
+ status?: string | null;
4289
+ trip_date?: string | null;
4290
+ updated_at?: string;
4291
+ };
4292
+ Update: {
4293
+ carrier_organization_id?: string | null;
4294
+ connection_id?: string;
4295
+ data?: import("./types").Json;
4296
+ fetched_at?: string;
4297
+ floriday_id?: string;
4298
+ id?: string;
4299
+ is_deleted?: boolean;
4300
+ sequence_number?: number;
4301
+ status?: string | null;
4302
+ trip_date?: string | null;
4303
+ updated_at?: string;
4304
+ };
4305
+ Relationships: [{
4306
+ foreignKeyName: "floriday_trips_cache_connection_id_fkey";
4307
+ columns: ["connection_id"];
4308
+ isOneToOne: false;
4309
+ referencedRelation: "floriday_connections";
4310
+ referencedColumns: ["id"];
4311
+ }];
4312
+ };
4313
+ floriday_warehouses_cache: {
4314
+ Row: {
4315
+ connection_id: string;
4316
+ data: import("./types").Json;
4317
+ fetched_at: string;
4318
+ floriday_id: string;
4319
+ gln_code: string | null;
4320
+ id: string;
4321
+ is_default: boolean;
4322
+ is_deleted: boolean;
4323
+ name: string | null;
4324
+ updated_at: string;
4325
+ };
4326
+ Insert: {
4327
+ connection_id: string;
4328
+ data?: import("./types").Json;
4329
+ fetched_at?: string;
4330
+ floriday_id: string;
4331
+ gln_code?: string | null;
4332
+ id?: string;
4333
+ is_default?: boolean;
4334
+ is_deleted?: boolean;
4335
+ name?: string | null;
4336
+ updated_at?: string;
4337
+ };
4338
+ Update: {
4339
+ connection_id?: string;
4340
+ data?: import("./types").Json;
4341
+ fetched_at?: string;
4342
+ floriday_id?: string;
4343
+ gln_code?: string | null;
4344
+ id?: string;
4345
+ is_default?: boolean;
4346
+ is_deleted?: boolean;
4347
+ name?: string | null;
4348
+ updated_at?: string;
4349
+ };
4350
+ Relationships: [{
4351
+ foreignKeyName: "floriday_warehouses_cache_connection_id_fkey";
4352
+ columns: ["connection_id"];
4353
+ isOneToOne: false;
4354
+ referencedRelation: "floriday_connections";
4355
+ referencedColumns: ["id"];
4356
+ }];
4357
+ };
4358
+ floriday_write_log: {
4359
+ Row: {
4360
+ action: string;
4361
+ caller: string;
4362
+ connection_id: string | null;
4363
+ created_at: string;
4364
+ error: string | null;
4365
+ floriday_id: string | null;
4366
+ http_status: number | null;
4367
+ id: string;
4368
+ idempotency_key: string | null;
4369
+ module: string | null;
4370
+ ok: boolean;
4371
+ request: import("./types").Json | null;
4372
+ resource: string;
4373
+ response: import("./types").Json | null;
4374
+ user_id: string | null;
4375
+ };
4376
+ Insert: {
4377
+ action: string;
4378
+ caller?: string;
4379
+ connection_id?: string | null;
4380
+ created_at?: string;
4381
+ error?: string | null;
4382
+ floriday_id?: string | null;
4383
+ http_status?: number | null;
4384
+ id?: string;
4385
+ idempotency_key?: string | null;
4386
+ module?: string | null;
4387
+ ok: boolean;
4388
+ request?: import("./types").Json | null;
4389
+ resource: string;
4390
+ response?: import("./types").Json | null;
4391
+ user_id?: string | null;
4392
+ };
4393
+ Update: {
4394
+ action?: string;
4395
+ caller?: string;
4396
+ connection_id?: string | null;
4397
+ created_at?: string;
4398
+ error?: string | null;
4399
+ floriday_id?: string | null;
4400
+ http_status?: number | null;
4401
+ id?: string;
4402
+ idempotency_key?: string | null;
4403
+ module?: string | null;
4404
+ ok?: boolean;
4405
+ request?: import("./types").Json | null;
4406
+ resource?: string;
4407
+ response?: import("./types").Json | null;
4408
+ user_id?: string | null;
4409
+ };
4410
+ Relationships: [{
4411
+ foreignKeyName: "floriday_write_log_connection_id_fkey";
4412
+ columns: ["connection_id"];
4413
+ isOneToOne: false;
4414
+ referencedRelation: "floriday_connections";
4415
+ referencedColumns: ["id"];
4416
+ }];
4417
+ };
2849
4418
  imap_accounts: {
2850
4419
  Row: {
2851
4420
  created_at: string;
@@ -2996,29 +4565,80 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2996
4565
  referencedColumns: ["id"];
2997
4566
  }];
2998
4567
  };
2999
- inventory_settings: {
4568
+ inventory_settings: {
4569
+ Row: {
4570
+ created_at: string;
4571
+ hierarchy_levels: string[];
4572
+ id: string;
4573
+ updated_at: string;
4574
+ visible_columns: string[];
4575
+ };
4576
+ Insert: {
4577
+ created_at?: string;
4578
+ hierarchy_levels?: string[];
4579
+ id?: string;
4580
+ updated_at?: string;
4581
+ visible_columns?: string[];
4582
+ };
4583
+ Update: {
4584
+ created_at?: string;
4585
+ hierarchy_levels?: string[];
4586
+ id?: string;
4587
+ updated_at?: string;
4588
+ visible_columns?: string[];
4589
+ };
4590
+ Relationships: [];
4591
+ };
4592
+ invoice_push_log: {
3000
4593
  Row: {
4594
+ connection_id: string | null;
3001
4595
  created_at: string;
3002
- hierarchy_levels: string[];
4596
+ created_by: string;
4597
+ customer_id: string | null;
3003
4598
  id: string;
4599
+ last_error: string | null;
4600
+ last_polled_at: string | null;
4601
+ payload: import("./types").Json;
4602
+ provider_id: string;
4603
+ queue_id: string | null;
4604
+ status: string;
3004
4605
  updated_at: string;
3005
- visible_columns: string[];
3006
4606
  };
3007
4607
  Insert: {
4608
+ connection_id?: string | null;
3008
4609
  created_at?: string;
3009
- hierarchy_levels?: string[];
4610
+ created_by?: string;
4611
+ customer_id?: string | null;
3010
4612
  id?: string;
4613
+ last_error?: string | null;
4614
+ last_polled_at?: string | null;
4615
+ payload?: import("./types").Json;
4616
+ provider_id: string;
4617
+ queue_id?: string | null;
4618
+ status?: string;
3011
4619
  updated_at?: string;
3012
- visible_columns?: string[];
3013
4620
  };
3014
4621
  Update: {
4622
+ connection_id?: string | null;
3015
4623
  created_at?: string;
3016
- hierarchy_levels?: string[];
4624
+ created_by?: string;
4625
+ customer_id?: string | null;
3017
4626
  id?: string;
4627
+ last_error?: string | null;
4628
+ last_polled_at?: string | null;
4629
+ payload?: import("./types").Json;
4630
+ provider_id?: string;
4631
+ queue_id?: string | null;
4632
+ status?: string;
3018
4633
  updated_at?: string;
3019
- visible_columns?: string[];
3020
4634
  };
3021
- Relationships: [];
4635
+ Relationships: [{
4636
+ foreignKeyName: "invoice_push_log_provider_id_fkey";
4637
+ columns: ["provider_id"];
4638
+ isOneToOne: false;
4639
+ referencedRelation: "external_invoice_providers";
4640
+ referencedColumns: ["provider"];
4641
+ }];
3022
4642
  };
3023
4643
  invoice_run_items: {
3024
4644
  Row: {
@@ -3144,6 +4764,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3144
4764
  Row: {
3145
4765
  body_html: string | null;
3146
4766
  body_text: string | null;
4767
+ connection_id: string | null;
3147
4768
  created_at: string;
3148
4769
  error_message: string | null;
3149
4770
  external_id: string | null;
@@ -3162,6 +4783,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3162
4783
  Insert: {
3163
4784
  body_html?: string | null;
3164
4785
  body_text?: string | null;
4786
+ connection_id?: string | null;
3165
4787
  created_at?: string;
3166
4788
  error_message?: string | null;
3167
4789
  external_id?: string | null;
@@ -3180,6 +4802,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3180
4802
  Update: {
3181
4803
  body_html?: string | null;
3182
4804
  body_text?: string | null;
4805
+ connection_id?: string | null;
3183
4806
  created_at?: string;
3184
4807
  error_message?: string | null;
3185
4808
  external_id?: string | null;
@@ -3196,6 +4819,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3196
4819
  updated_at?: string;
3197
4820
  };
3198
4821
  Relationships: [{
4822
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4823
+ columns: ["connection_id"];
4824
+ isOneToOne: false;
4825
+ referencedRelation: "email_auth_connections";
4826
+ referencedColumns: ["id"];
4827
+ }, {
4828
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4829
+ columns: ["connection_id"];
4830
+ isOneToOne: false;
4831
+ referencedRelation: "email_auth_connections_safe";
4832
+ referencedColumns: ["id"];
4833
+ }, {
3199
4834
  foreignKeyName: "mailbox_messages_profile_id_fkey";
3200
4835
  columns: ["profile_id"];
3201
4836
  isOneToOne: false;
@@ -3479,6 +5114,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3479
5114
  role: string;
3480
5115
  tenant_id: string;
3481
5116
  updated_at: string;
5117
+ user_id: string | null;
3482
5118
  };
3483
5119
  Insert: {
3484
5120
  avatar_url?: string | null;
@@ -3494,6 +5130,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3494
5130
  role?: string;
3495
5131
  tenant_id: string;
3496
5132
  updated_at?: string;
5133
+ user_id?: string | null;
3497
5134
  };
3498
5135
  Update: {
3499
5136
  avatar_url?: string | null;
@@ -3509,6 +5146,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3509
5146
  role?: string;
3510
5147
  tenant_id?: string;
3511
5148
  updated_at?: string;
5149
+ user_id?: string | null;
3512
5150
  };
3513
5151
  Relationships: [{
3514
5152
  foreignKeyName: "monteurs_tenant_id_fkey";
@@ -3645,12 +5283,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3645
5283
  isOneToOne: false;
3646
5284
  referencedRelation: "offer_campaigns";
3647
5285
  referencedColumns: ["id"];
3648
- }, {
3649
- foreignKeyName: "offer_campaign_products_product_id_fkey";
3650
- columns: ["product_id"];
3651
- isOneToOne: false;
3652
- referencedRelation: "products";
3653
- referencedColumns: ["id"];
3654
5286
  }];
3655
5287
  };
3656
5288
  offer_campaigns: {
@@ -3926,6 +5558,99 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3926
5558
  };
3927
5559
  Relationships: [];
3928
5560
  };
5561
+ order_cart_items: {
5562
+ Row: {
5563
+ cart_id: string;
5564
+ crates: number;
5565
+ crates_per_layer: number;
5566
+ created_at: string;
5567
+ id: string;
5568
+ order_item_id: string | null;
5569
+ plants_per_crate: number;
5570
+ product_id: string | null;
5571
+ product_name: string;
5572
+ };
5573
+ Insert: {
5574
+ cart_id: string;
5575
+ crates: number;
5576
+ crates_per_layer?: number;
5577
+ created_at?: string;
5578
+ id?: string;
5579
+ order_item_id?: string | null;
5580
+ plants_per_crate?: number;
5581
+ product_id?: string | null;
5582
+ product_name: string;
5583
+ };
5584
+ Update: {
5585
+ cart_id?: string;
5586
+ crates?: number;
5587
+ crates_per_layer?: number;
5588
+ created_at?: string;
5589
+ id?: string;
5590
+ order_item_id?: string | null;
5591
+ plants_per_crate?: number;
5592
+ product_id?: string | null;
5593
+ product_name?: string;
5594
+ };
5595
+ Relationships: [{
5596
+ foreignKeyName: "order_cart_items_cart_id_fkey";
5597
+ columns: ["cart_id"];
5598
+ isOneToOne: false;
5599
+ referencedRelation: "order_carts";
5600
+ referencedColumns: ["id"];
5601
+ }, {
5602
+ foreignKeyName: "order_cart_items_order_item_id_fkey";
5603
+ columns: ["order_item_id"];
5604
+ isOneToOne: false;
5605
+ referencedRelation: "order_items";
5606
+ referencedColumns: ["id"];
5607
+ }, {
5608
+ foreignKeyName: "order_cart_items_product_id_fkey";
5609
+ columns: ["product_id"];
5610
+ isOneToOne: false;
5611
+ referencedRelation: "products";
5612
+ referencedColumns: ["id"];
5613
+ }];
5614
+ };
5615
+ order_carts: {
5616
+ Row: {
5617
+ cart_number: number;
5618
+ created_at: string;
5619
+ id: string;
5620
+ is_auto: boolean;
5621
+ is_complete: boolean;
5622
+ notes: string | null;
5623
+ order_id: string;
5624
+ updated_at: string;
5625
+ };
5626
+ Insert: {
5627
+ cart_number: number;
5628
+ created_at?: string;
5629
+ id?: string;
5630
+ is_auto?: boolean;
5631
+ is_complete?: boolean;
5632
+ notes?: string | null;
5633
+ order_id: string;
5634
+ updated_at?: string;
5635
+ };
5636
+ Update: {
5637
+ cart_number?: number;
5638
+ created_at?: string;
5639
+ id?: string;
5640
+ is_auto?: boolean;
5641
+ is_complete?: boolean;
5642
+ notes?: string | null;
5643
+ order_id?: string;
5644
+ updated_at?: string;
5645
+ };
5646
+ Relationships: [{
5647
+ foreignKeyName: "order_carts_order_id_fkey";
5648
+ columns: ["order_id"];
5649
+ isOneToOne: false;
5650
+ referencedRelation: "orders";
5651
+ referencedColumns: ["id"];
5652
+ }];
5653
+ };
3929
5654
  order_field_options: {
3930
5655
  Row: {
3931
5656
  created_at: string;
@@ -4037,6 +5762,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4037
5762
  referencedColumns: ["id"];
4038
5763
  }];
4039
5764
  };
5765
+ order_number_counters: {
5766
+ Row: {
5767
+ last_value: number;
5768
+ updated_at: string;
5769
+ year: number;
5770
+ };
5771
+ Insert: {
5772
+ last_value?: number;
5773
+ updated_at?: string;
5774
+ year: number;
5775
+ };
5776
+ Update: {
5777
+ last_value?: number;
5778
+ updated_at?: string;
5779
+ year?: number;
5780
+ };
5781
+ Relationships: [];
5782
+ };
4040
5783
  orders: {
4041
5784
  Row: {
4042
5785
  created_at: string;
@@ -4049,6 +5792,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4049
5792
  notes: string | null;
4050
5793
  order_date: string;
4051
5794
  order_number: string;
5795
+ order_source: string;
4052
5796
  status: string;
4053
5797
  total: string;
4054
5798
  updated_at: string;
@@ -4064,6 +5808,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4064
5808
  notes?: string | null;
4065
5809
  order_date?: string;
4066
5810
  order_number: string;
5811
+ order_source?: string;
4067
5812
  status?: string;
4068
5813
  total?: string;
4069
5814
  updated_at?: string;
@@ -4079,6 +5824,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4079
5824
  notes?: string | null;
4080
5825
  order_date?: string;
4081
5826
  order_number?: string;
5827
+ order_source?: string;
4082
5828
  status?: string;
4083
5829
  total?: string;
4084
5830
  updated_at?: string;
@@ -4127,6 +5873,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4127
5873
  };
4128
5874
  Relationships: [];
4129
5875
  };
5876
+ pickstation_print_log: {
5877
+ Row: {
5878
+ customer_name: string | null;
5879
+ documents: string[];
5880
+ id: string;
5881
+ ip_address: string | null;
5882
+ order_id: string;
5883
+ order_number: string | null;
5884
+ printed_at: string;
5885
+ };
5886
+ Insert: {
5887
+ customer_name?: string | null;
5888
+ documents?: string[];
5889
+ id?: string;
5890
+ ip_address?: string | null;
5891
+ order_id: string;
5892
+ order_number?: string | null;
5893
+ printed_at?: string;
5894
+ };
5895
+ Update: {
5896
+ customer_name?: string | null;
5897
+ documents?: string[];
5898
+ id?: string;
5899
+ ip_address?: string | null;
5900
+ order_id?: string;
5901
+ order_number?: string | null;
5902
+ printed_at?: string;
5903
+ };
5904
+ Relationships: [];
5905
+ };
4130
5906
  pipeline_settings: {
4131
5907
  Row: {
4132
5908
  created_at: string;
@@ -4287,13 +6063,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4287
6063
  Row: {
4288
6064
  barcode: string | null;
4289
6065
  batch: string;
6066
+ crates_per_layer: number;
4290
6067
  created_at: string;
4291
6068
  custom_fields: import("./types").Json;
4292
6069
  id: string;
4293
6070
  image_url: string | null;
4294
6071
  incoming_quantity: number;
6072
+ layers_per_cart: number;
4295
6073
  location: string;
4296
6074
  min_quantity: number;
6075
+ plants_per_crate: number;
4297
6076
  product: string;
4298
6077
  product_type: string;
4299
6078
  purchase_price: number | null;
@@ -4306,13 +6085,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4306
6085
  Insert: {
4307
6086
  barcode?: string | null;
4308
6087
  batch: string;
6088
+ crates_per_layer?: number;
4309
6089
  created_at?: string;
4310
6090
  custom_fields?: import("./types").Json;
4311
6091
  id?: string;
4312
6092
  image_url?: string | null;
4313
6093
  incoming_quantity?: number;
6094
+ layers_per_cart?: number;
4314
6095
  location: string;
4315
6096
  min_quantity?: number;
6097
+ plants_per_crate?: number;
4316
6098
  product: string;
4317
6099
  product_type?: string;
4318
6100
  purchase_price?: number | null;
@@ -4325,13 +6107,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4325
6107
  Update: {
4326
6108
  barcode?: string | null;
4327
6109
  batch?: string;
6110
+ crates_per_layer?: number;
4328
6111
  created_at?: string;
4329
6112
  custom_fields?: import("./types").Json;
4330
6113
  id?: string;
4331
6114
  image_url?: string | null;
4332
6115
  incoming_quantity?: number;
6116
+ layers_per_cart?: number;
4333
6117
  location?: string;
4334
6118
  min_quantity?: number;
6119
+ plants_per_crate?: number;
4335
6120
  product?: string;
4336
6121
  product_type?: string;
4337
6122
  purchase_price?: number | null;
@@ -5273,6 +7058,141 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5273
7058
  };
5274
7059
  Relationships: [];
5275
7060
  };
7061
+ time_entries: {
7062
+ Row: {
7063
+ created_at: string;
7064
+ employee_id: string;
7065
+ entry_date: string;
7066
+ hours: number;
7067
+ id: string;
7068
+ notes: string | null;
7069
+ overtime: number;
7070
+ undertime: number;
7071
+ updated_at: string;
7072
+ };
7073
+ Insert: {
7074
+ created_at?: string;
7075
+ employee_id: string;
7076
+ entry_date: string;
7077
+ hours?: number;
7078
+ id?: string;
7079
+ notes?: string | null;
7080
+ overtime?: number;
7081
+ undertime?: number;
7082
+ updated_at?: string;
7083
+ };
7084
+ Update: {
7085
+ created_at?: string;
7086
+ employee_id?: string;
7087
+ entry_date?: string;
7088
+ hours?: number;
7089
+ id?: string;
7090
+ notes?: string | null;
7091
+ overtime?: number;
7092
+ undertime?: number;
7093
+ updated_at?: string;
7094
+ };
7095
+ Relationships: [{
7096
+ foreignKeyName: "time_entries_employee_id_fkey";
7097
+ columns: ["employee_id"];
7098
+ isOneToOne: false;
7099
+ referencedRelation: "monteurs";
7100
+ referencedColumns: ["id"];
7101
+ }];
7102
+ };
7103
+ time_logs: {
7104
+ Row: {
7105
+ created_at: string;
7106
+ employee_id: string;
7107
+ end_time: string | null;
7108
+ id: string;
7109
+ notes: string | null;
7110
+ overtime_hours: number;
7111
+ overtime_type: string | null;
7112
+ regular_hours: number;
7113
+ start_time: string;
7114
+ travel_cost: number | null;
7115
+ travel_distance_km: number | null;
7116
+ type: string;
7117
+ updated_at: string;
7118
+ };
7119
+ Insert: {
7120
+ created_at?: string;
7121
+ employee_id: string;
7122
+ end_time?: string | null;
7123
+ id?: string;
7124
+ notes?: string | null;
7125
+ overtime_hours?: number;
7126
+ overtime_type?: string | null;
7127
+ regular_hours?: number;
7128
+ start_time?: string;
7129
+ travel_cost?: number | null;
7130
+ travel_distance_km?: number | null;
7131
+ type: string;
7132
+ updated_at?: string;
7133
+ };
7134
+ Update: {
7135
+ created_at?: string;
7136
+ employee_id?: string;
7137
+ end_time?: string | null;
7138
+ id?: string;
7139
+ notes?: string | null;
7140
+ overtime_hours?: number;
7141
+ overtime_type?: string | null;
7142
+ regular_hours?: number;
7143
+ start_time?: string;
7144
+ travel_cost?: number | null;
7145
+ travel_distance_km?: number | null;
7146
+ type?: string;
7147
+ updated_at?: string;
7148
+ };
7149
+ Relationships: [{
7150
+ foreignKeyName: "time_logs_employee_id_fkey";
7151
+ columns: ["employee_id"];
7152
+ isOneToOne: false;
7153
+ referencedRelation: "monteurs";
7154
+ referencedColumns: ["id"];
7155
+ }];
7156
+ };
7157
+ time_off_entries: {
7158
+ Row: {
7159
+ created_at: string;
7160
+ employee_id: string;
7161
+ entry_date: string;
7162
+ hours: number;
7163
+ id: string;
7164
+ notes: string | null;
7165
+ type: string;
7166
+ updated_at: string;
7167
+ };
7168
+ Insert: {
7169
+ created_at?: string;
7170
+ employee_id: string;
7171
+ entry_date: string;
7172
+ hours?: number;
7173
+ id?: string;
7174
+ notes?: string | null;
7175
+ type: string;
7176
+ updated_at?: string;
7177
+ };
7178
+ Update: {
7179
+ created_at?: string;
7180
+ employee_id?: string;
7181
+ entry_date?: string;
7182
+ hours?: number;
7183
+ id?: string;
7184
+ notes?: string | null;
7185
+ type?: string;
7186
+ updated_at?: string;
7187
+ };
7188
+ Relationships: [{
7189
+ foreignKeyName: "time_off_entries_employee_id_fkey";
7190
+ columns: ["employee_id"];
7191
+ isOneToOne: false;
7192
+ referencedRelation: "monteurs";
7193
+ referencedColumns: ["id"];
7194
+ }];
7195
+ };
5276
7196
  trade_item_drafts: {
5277
7197
  Row: {
5278
7198
  connection_id: string | null;
@@ -5570,9 +7490,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5570
7490
  fetched_at: string;
5571
7491
  invoice_number: string;
5572
7492
  line_number: number;
7493
+ line_total: number | null;
5573
7494
  quantity: number | null;
5574
7495
  unit_price: number | null;
5575
7496
  vat_code: string | null;
7497
+ vat_rate: number | null;
5576
7498
  };
5577
7499
  Insert: {
5578
7500
  article_code?: string | null;
@@ -5582,9 +7504,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5582
7504
  fetched_at?: string;
5583
7505
  invoice_number: string;
5584
7506
  line_number: number;
7507
+ line_total?: number | null;
5585
7508
  quantity?: number | null;
5586
7509
  unit_price?: number | null;
5587
7510
  vat_code?: string | null;
7511
+ vat_rate?: number | null;
5588
7512
  };
5589
7513
  Update: {
5590
7514
  article_code?: string | null;
@@ -5594,9 +7518,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5594
7518
  fetched_at?: string;
5595
7519
  invoice_number?: string;
5596
7520
  line_number?: number;
7521
+ line_total?: number | null;
5597
7522
  quantity?: number | null;
5598
7523
  unit_price?: number | null;
5599
7524
  vat_code?: string | null;
7525
+ vat_rate?: number | null;
5600
7526
  };
5601
7527
  Relationships: [{
5602
7528
  foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
@@ -5773,9 +7699,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5773
7699
  invoice_date: string | null;
5774
7700
  invoice_number: string;
5775
7701
  modified_at: string | null;
7702
+ outstanding_amount: number | null;
5776
7703
  status: string | null;
7704
+ status_label: string | null;
5777
7705
  total_excl: number | null;
5778
7706
  total_incl: number | null;
7707
+ vat_amount: number | null;
5779
7708
  };
5780
7709
  Insert: {
5781
7710
  connection_id: string;
@@ -5787,9 +7716,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5787
7716
  invoice_date?: string | null;
5788
7717
  invoice_number: string;
5789
7718
  modified_at?: string | null;
7719
+ outstanding_amount?: number | null;
5790
7720
  status?: string | null;
7721
+ status_label?: string | null;
5791
7722
  total_excl?: number | null;
5792
7723
  total_incl?: number | null;
7724
+ vat_amount?: number | null;
5793
7725
  };
5794
7726
  Update: {
5795
7727
  connection_id?: string;
@@ -5801,9 +7733,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5801
7733
  invoice_date?: string | null;
5802
7734
  invoice_number?: string;
5803
7735
  modified_at?: string | null;
7736
+ outstanding_amount?: number | null;
5804
7737
  status?: string | null;
7738
+ status_label?: string | null;
5805
7739
  total_excl?: number | null;
5806
7740
  total_incl?: number | null;
7741
+ vat_amount?: number | null;
5807
7742
  };
5808
7743
  Relationships: [{
5809
7744
  foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
@@ -5830,12 +7765,63 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5830
7765
  };
5831
7766
  Update: {
5832
7767
  created_at?: string;
5833
- environment?: string;
5834
- nonce?: string | null;
5835
- state?: string;
5836
- user_id?: string;
7768
+ environment?: string;
7769
+ nonce?: string | null;
7770
+ state?: string;
7771
+ user_id?: string;
7772
+ };
7773
+ Relationships: [];
7774
+ };
7775
+ twinfield_push_queue: {
7776
+ Row: {
7777
+ attempts: number;
7778
+ connection_id: string;
7779
+ created_at: string;
7780
+ external_id: string | null;
7781
+ id: string;
7782
+ idempotency_key: string;
7783
+ last_error: string | null;
7784
+ next_attempt_at: string;
7785
+ office_code: string;
7786
+ payload: import("./types").Json;
7787
+ status: string;
7788
+ updated_at: string;
7789
+ };
7790
+ Insert: {
7791
+ attempts?: number;
7792
+ connection_id: string;
7793
+ created_at?: string;
7794
+ external_id?: string | null;
7795
+ id?: string;
7796
+ idempotency_key: string;
7797
+ last_error?: string | null;
7798
+ next_attempt_at?: string;
7799
+ office_code: string;
7800
+ payload: import("./types").Json;
7801
+ status?: string;
7802
+ updated_at?: string;
7803
+ };
7804
+ Update: {
7805
+ attempts?: number;
7806
+ connection_id?: string;
7807
+ created_at?: string;
7808
+ external_id?: string | null;
7809
+ id?: string;
7810
+ idempotency_key?: string;
7811
+ last_error?: string | null;
7812
+ next_attempt_at?: string;
7813
+ office_code?: string;
7814
+ payload?: import("./types").Json;
7815
+ status?: string;
7816
+ updated_at?: string;
5837
7817
  };
5838
- Relationships: [];
7818
+ Relationships: [{
7819
+ foreignKeyName: "twinfield_push_queue_connection_id_fkey";
7820
+ columns: ["connection_id"];
7821
+ isOneToOne: false;
7822
+ referencedRelation: "twinfield_connections";
7823
+ referencedColumns: ["id"];
7824
+ }];
5839
7825
  };
5840
7826
  twinfield_settings: {
5841
7827
  Row: {
@@ -5948,6 +7934,117 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5948
7934
  referencedColumns: ["id"];
5949
7935
  }];
5950
7936
  };
7937
+ voorraad_media_upload_failures: {
7938
+ Row: {
7939
+ action: string;
7940
+ attempt_number: number;
7941
+ caller: string;
7942
+ client_user_id: string | null;
7943
+ content_type: string | null;
7944
+ created_at: string;
7945
+ environment: string;
7946
+ error_message: string | null;
7947
+ filename: string | null;
7948
+ id: string;
7949
+ idempotency_key: string | null;
7950
+ module: string;
7951
+ path: string;
7952
+ reference_id: string | null;
7953
+ request_body_hash: string | null;
7954
+ request_timestamp: number | null;
7955
+ response_content_type: string | null;
7956
+ response_status: number | null;
7957
+ size_bytes: number | null;
7958
+ };
7959
+ Insert: {
7960
+ action?: string;
7961
+ attempt_number?: number;
7962
+ caller?: string;
7963
+ client_user_id?: string | null;
7964
+ content_type?: string | null;
7965
+ created_at?: string;
7966
+ environment: string;
7967
+ error_message?: string | null;
7968
+ filename?: string | null;
7969
+ id?: string;
7970
+ idempotency_key?: string | null;
7971
+ module?: string;
7972
+ path: string;
7973
+ reference_id?: string | null;
7974
+ request_body_hash?: string | null;
7975
+ request_timestamp?: number | null;
7976
+ response_content_type?: string | null;
7977
+ response_status?: number | null;
7978
+ size_bytes?: number | null;
7979
+ };
7980
+ Update: {
7981
+ action?: string;
7982
+ attempt_number?: number;
7983
+ caller?: string;
7984
+ client_user_id?: string | null;
7985
+ content_type?: string | null;
7986
+ created_at?: string;
7987
+ environment?: string;
7988
+ error_message?: string | null;
7989
+ filename?: string | null;
7990
+ id?: string;
7991
+ idempotency_key?: string | null;
7992
+ module?: string;
7993
+ path?: string;
7994
+ reference_id?: string | null;
7995
+ request_body_hash?: string | null;
7996
+ request_timestamp?: number | null;
7997
+ response_content_type?: string | null;
7998
+ response_status?: number | null;
7999
+ size_bytes?: number | null;
8000
+ };
8001
+ Relationships: [];
8002
+ };
8003
+ voorraad_publish_attempts: {
8004
+ Row: {
8005
+ action: string;
8006
+ connection_id: string | null;
8007
+ created_at: string;
8008
+ error: string | null;
8009
+ gateway_attempt_id: string | null;
8010
+ gateway_status: number | null;
8011
+ id: string;
8012
+ intent: string;
8013
+ ok: boolean;
8014
+ request_summary: import("./types").Json | null;
8015
+ trade_item_id: string | null;
8016
+ user_id: string;
8017
+ };
8018
+ Insert: {
8019
+ action: string;
8020
+ connection_id?: string | null;
8021
+ created_at?: string;
8022
+ error?: string | null;
8023
+ gateway_attempt_id?: string | null;
8024
+ gateway_status?: number | null;
8025
+ id?: string;
8026
+ intent: string;
8027
+ ok: boolean;
8028
+ request_summary?: import("./types").Json | null;
8029
+ trade_item_id?: string | null;
8030
+ user_id: string;
8031
+ };
8032
+ Update: {
8033
+ action?: string;
8034
+ connection_id?: string | null;
8035
+ created_at?: string;
8036
+ error?: string | null;
8037
+ gateway_attempt_id?: string | null;
8038
+ gateway_status?: number | null;
8039
+ id?: string;
8040
+ intent?: string;
8041
+ ok?: boolean;
8042
+ request_summary?: import("./types").Json | null;
8043
+ trade_item_id?: string | null;
8044
+ user_id?: string;
8045
+ };
8046
+ Relationships: [];
8047
+ };
5951
8048
  work_order_monteurs: {
5952
8049
  Row: {
5953
8050
  created_at: string;
@@ -6259,6 +8356,132 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6259
8356
  };
6260
8357
  Relationships: [];
6261
8358
  };
8359
+ external_invoices_grouped: {
8360
+ Row: {
8361
+ currency: string | null;
8362
+ customer_external_id: string | null;
8363
+ customer_name: string | null;
8364
+ customer_vat: string | null;
8365
+ due_at: string | null;
8366
+ group_key: string | null;
8367
+ invoice_number: string | null;
8368
+ is_merged: boolean | null;
8369
+ issued_at: string | null;
8370
+ modified_at: string | null;
8371
+ open_amount: number | null;
8372
+ paid_at: string | null;
8373
+ providers: string[] | null;
8374
+ source_count: number | null;
8375
+ sources: import("./types").Json | null;
8376
+ status: string | null;
8377
+ total_excl: number | null;
8378
+ total_incl: number | null;
8379
+ total_vat: number | null;
8380
+ };
8381
+ Relationships: [];
8382
+ };
8383
+ external_invoices_unified: {
8384
+ Row: {
8385
+ connection_id: string | null;
8386
+ currency: string | null;
8387
+ customer_external_id: string | null;
8388
+ customer_name: string | null;
8389
+ customer_vat: string | null;
8390
+ due_at: string | null;
8391
+ external_id: string | null;
8392
+ invoice_number: string | null;
8393
+ issued_at: string | null;
8394
+ open_amount: number | null;
8395
+ owner_user_id: string | null;
8396
+ paid_at: string | null;
8397
+ raw: import("./types").Json | null;
8398
+ source: string | null;
8399
+ status: string | null;
8400
+ synced_at: string | null;
8401
+ total_excl: number | null;
8402
+ total_incl: number | null;
8403
+ total_vat: number | null;
8404
+ };
8405
+ Relationships: [];
8406
+ };
8407
+ v_external_customers_exact: {
8408
+ Row: {
8409
+ account_number: string | null;
8410
+ city: string | null;
8411
+ coc_number: string | null;
8412
+ company_name: string | null;
8413
+ connection_id: string | null;
8414
+ country: string | null;
8415
+ currency: string | null;
8416
+ email: string | null;
8417
+ external_id: string | null;
8418
+ is_sales: boolean | null;
8419
+ is_supplier: boolean | null;
8420
+ language: string | null;
8421
+ modified_at: string | null;
8422
+ phone: string | null;
8423
+ postal_code: string | null;
8424
+ raw: import("./types").Json | null;
8425
+ source: string | null;
8426
+ street: string | null;
8427
+ synced_at: string | null;
8428
+ vat_number: string | null;
8429
+ website: string | null;
8430
+ };
8431
+ Insert: {
8432
+ account_number?: string | null;
8433
+ city?: string | null;
8434
+ coc_number?: string | null;
8435
+ company_name?: string | null;
8436
+ connection_id?: string | null;
8437
+ country?: string | null;
8438
+ currency?: string | null;
8439
+ email?: string | null;
8440
+ external_id?: string | null;
8441
+ is_sales?: boolean | null;
8442
+ is_supplier?: boolean | null;
8443
+ language?: string | null;
8444
+ modified_at?: string | null;
8445
+ phone?: string | null;
8446
+ postal_code?: string | null;
8447
+ raw?: import("./types").Json | null;
8448
+ source?: never;
8449
+ street?: string | null;
8450
+ synced_at?: string | null;
8451
+ vat_number?: string | null;
8452
+ website?: string | null;
8453
+ };
8454
+ Update: {
8455
+ account_number?: string | null;
8456
+ city?: string | null;
8457
+ coc_number?: string | null;
8458
+ company_name?: string | null;
8459
+ connection_id?: string | null;
8460
+ country?: string | null;
8461
+ currency?: string | null;
8462
+ email?: string | null;
8463
+ external_id?: string | null;
8464
+ is_sales?: boolean | null;
8465
+ is_supplier?: boolean | null;
8466
+ language?: string | null;
8467
+ modified_at?: string | null;
8468
+ phone?: string | null;
8469
+ postal_code?: string | null;
8470
+ raw?: import("./types").Json | null;
8471
+ source?: never;
8472
+ street?: string | null;
8473
+ synced_at?: string | null;
8474
+ vat_number?: string | null;
8475
+ website?: string | null;
8476
+ };
8477
+ Relationships: [{
8478
+ foreignKeyName: "exact_customers_cache_connection_id_fkey";
8479
+ columns: ["connection_id"];
8480
+ isOneToOne: false;
8481
+ referencedRelation: "exact_connections";
8482
+ referencedColumns: ["id"];
8483
+ }];
8484
+ };
6262
8485
  v_external_customers_floriday: {
6263
8486
  Row: {
6264
8487
  city: string | null;
@@ -6317,16 +8540,148 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6317
8540
  vat_number: string | null;
6318
8541
  website: string | null;
6319
8542
  };
6320
- Relationships: [{
6321
- foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
6322
- columns: ["connection_id"];
6323
- isOneToOne: false;
6324
- referencedRelation: "twinfield_connections";
6325
- referencedColumns: ["id"];
6326
- }];
8543
+ Relationships: [{
8544
+ foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
8545
+ columns: ["connection_id"];
8546
+ isOneToOne: false;
8547
+ referencedRelation: "twinfield_connections";
8548
+ referencedColumns: ["id"];
8549
+ }];
8550
+ };
8551
+ v_external_invoices_exact: {
8552
+ Row: {
8553
+ connection_id: string | null;
8554
+ currency: string | null;
8555
+ customer_external_id: string | null;
8556
+ customer_name: string | null;
8557
+ customer_vat: string | null;
8558
+ due_at: string | null;
8559
+ external_id: string | null;
8560
+ invoice_number: string | null;
8561
+ issued_at: string | null;
8562
+ open_amount: number | null;
8563
+ paid_at: string | null;
8564
+ raw: import("./types").Json | null;
8565
+ source: string | null;
8566
+ status: string | null;
8567
+ synced_at: string | null;
8568
+ total_excl: number | null;
8569
+ total_incl: number | null;
8570
+ total_vat: number | null;
8571
+ };
8572
+ Insert: {
8573
+ connection_id?: string | null;
8574
+ currency?: never;
8575
+ customer_external_id?: string | null;
8576
+ customer_name?: string | null;
8577
+ customer_vat?: never;
8578
+ due_at?: string | null;
8579
+ external_id?: string | null;
8580
+ invoice_number?: string | null;
8581
+ issued_at?: string | null;
8582
+ open_amount?: number | null;
8583
+ paid_at?: string | null;
8584
+ raw?: import("./types").Json | null;
8585
+ source?: never;
8586
+ status?: string | null;
8587
+ synced_at?: string | null;
8588
+ total_excl?: number | null;
8589
+ total_incl?: number | null;
8590
+ total_vat?: number | null;
8591
+ };
8592
+ Update: {
8593
+ connection_id?: string | null;
8594
+ currency?: never;
8595
+ customer_external_id?: string | null;
8596
+ customer_name?: string | null;
8597
+ customer_vat?: never;
8598
+ due_at?: string | null;
8599
+ external_id?: string | null;
8600
+ invoice_number?: string | null;
8601
+ issued_at?: string | null;
8602
+ open_amount?: number | null;
8603
+ paid_at?: string | null;
8604
+ raw?: import("./types").Json | null;
8605
+ source?: never;
8606
+ status?: string | null;
8607
+ synced_at?: string | null;
8608
+ total_excl?: number | null;
8609
+ total_incl?: number | null;
8610
+ total_vat?: number | null;
8611
+ };
8612
+ Relationships: [{
8613
+ foreignKeyName: "exact_invoices_cache_connection_id_fkey";
8614
+ columns: ["connection_id"];
8615
+ isOneToOne: false;
8616
+ referencedRelation: "exact_connections";
8617
+ referencedColumns: ["id"];
8618
+ }];
8619
+ };
8620
+ v_external_invoices_twinfield: {
8621
+ Row: {
8622
+ connection_id: string | null;
8623
+ currency: string | null;
8624
+ customer_external_id: string | null;
8625
+ customer_name: string | null;
8626
+ customer_vat: string | null;
8627
+ due_at: string | null;
8628
+ external_id: string | null;
8629
+ invoice_number: string | null;
8630
+ issued_at: string | null;
8631
+ open_amount: number | null;
8632
+ owner_user_id: string | null;
8633
+ paid_at: string | null;
8634
+ raw: import("./types").Json | null;
8635
+ source: string | null;
8636
+ status: string | null;
8637
+ synced_at: string | null;
8638
+ total_excl: number | null;
8639
+ total_incl: number | null;
8640
+ total_vat: number | null;
8641
+ };
8642
+ Relationships: [{
8643
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
8644
+ columns: ["connection_id"];
8645
+ isOneToOne: false;
8646
+ referencedRelation: "twinfield_connections";
8647
+ referencedColumns: ["id"];
8648
+ }];
8649
+ };
8650
+ };
8651
+ Functions: {
8652
+ _floriday_schedule_job: {
8653
+ Args: {
8654
+ p_apikey: string;
8655
+ p_jobname: string;
8656
+ p_schedule: string;
8657
+ p_timeout_ms: number;
8658
+ p_url: string;
8659
+ };
8660
+ Returns: number;
8661
+ };
8662
+ assign_floriday_order_numbers: {
8663
+ Args: {
8664
+ p_ids: string[];
8665
+ };
8666
+ Returns: {
8667
+ floriday_id: string;
8668
+ order_number: string;
8669
+ }[];
8670
+ };
8671
+ call_exact_route: {
8672
+ Args: {
8673
+ path: string;
8674
+ };
8675
+ Returns: number;
8676
+ };
8677
+ cleanup_old_bookings: {
8678
+ Args: never;
8679
+ Returns: number;
8680
+ };
8681
+ current_monteur_id: {
8682
+ Args: never;
8683
+ Returns: string;
6327
8684
  };
6328
- };
6329
- Functions: {
6330
8685
  dashboard_list_public_schema: {
6331
8686
  Args: never;
6332
8687
  Returns: {
@@ -6431,6 +8786,32 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6431
8786
  office_code: string;
6432
8787
  }[];
6433
8788
  };
8789
+ get_floriday_agreements_active: {
8790
+ Args: {
8791
+ p_on_date?: string;
8792
+ };
8793
+ Returns: {
8794
+ buyer_organization_id: string;
8795
+ data: import("./types").Json;
8796
+ floriday_id: string;
8797
+ status: string;
8798
+ valid_from: string;
8799
+ valid_until: string;
8800
+ }[];
8801
+ };
8802
+ get_floriday_clock_supplies_window: {
8803
+ Args: {
8804
+ p_from: string;
8805
+ p_to: string;
8806
+ };
8807
+ Returns: {
8808
+ auction_date: string;
8809
+ data: import("./types").Json;
8810
+ floriday_id: string;
8811
+ status: string;
8812
+ trade_item_id: string;
8813
+ }[];
8814
+ };
6434
8815
  get_floriday_cron_jobs: {
6435
8816
  Args: never;
6436
8817
  Returns: {
@@ -6440,12 +8821,68 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6440
8821
  url: string;
6441
8822
  }[];
6442
8823
  };
8824
+ get_floriday_delivery_locations: {
8825
+ Args: {
8826
+ p_organization_id: string;
8827
+ };
8828
+ Returns: {
8829
+ data: import("./types").Json;
8830
+ floriday_id: string;
8831
+ gln_code: string;
8832
+ name: string;
8833
+ }[];
8834
+ };
8835
+ get_floriday_fulfillment_orders_window: {
8836
+ Args: {
8837
+ p_from: string;
8838
+ p_to: string;
8839
+ };
8840
+ Returns: {
8841
+ auction_date: string;
8842
+ data: import("./types").Json;
8843
+ delivery_order_id: string;
8844
+ destination_warehouse_id: string;
8845
+ floriday_id: string;
8846
+ status: string;
8847
+ }[];
8848
+ };
8849
+ get_floriday_sales_orders_window: {
8850
+ Args: {
8851
+ p_from: string;
8852
+ p_to: string;
8853
+ };
8854
+ Returns: {
8855
+ buyer_organization_id: string;
8856
+ data: import("./types").Json;
8857
+ floriday_id: string;
8858
+ status: string;
8859
+ updated_at: string;
8860
+ }[];
8861
+ };
8862
+ get_floriday_sync_health: {
8863
+ Args: never;
8864
+ Returns: {
8865
+ entity_type: string;
8866
+ last_error: string;
8867
+ last_items_processed: number;
8868
+ last_sequence_number: number;
8869
+ last_success_at: string;
8870
+ last_synced_at: string;
8871
+ minutes_since_success: number;
8872
+ }[];
8873
+ };
6443
8874
  get_offer_by_link_code: {
6444
8875
  Args: {
6445
8876
  p_code: string;
6446
8877
  };
6447
8878
  Returns: import("./types").Json;
6448
8879
  };
8880
+ get_or_assign_floriday_order_number: {
8881
+ Args: {
8882
+ p_floriday_id: string;
8883
+ };
8884
+ Returns: string;
8885
+ };
6449
8886
  get_room_busy_windows: {
6450
8887
  Args: {
6451
8888
  p_from: string;
@@ -6492,6 +8929,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6492
8929
  Args: never;
6493
8930
  Returns: boolean;
6494
8931
  };
8932
+ next_order_number: {
8933
+ Args: {
8934
+ p_prefix: string;
8935
+ };
8936
+ Returns: string;
8937
+ };
6495
8938
  next_work_order_number: {
6496
8939
  Args: {
6497
8940
  p_parent_work_order_id?: string;
@@ -6505,6 +8948,74 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6505
8948
  };
6506
8949
  Returns: string;
6507
8950
  };
8951
+ pickstation_get_orders_raw: {
8952
+ Args: never;
8953
+ Returns: import("./types").Json;
8954
+ };
8955
+ pickstation_get_settings: {
8956
+ Args: never;
8957
+ Returns: import("./types").Json;
8958
+ };
8959
+ pickstation_log_print: {
8960
+ Args: {
8961
+ p_customer_name: string;
8962
+ p_documents: string[];
8963
+ p_ip_address: string;
8964
+ p_order_id: string;
8965
+ p_order_number: string;
8966
+ };
8967
+ Returns: undefined;
8968
+ };
8969
+ refresh_floricode_derived_code_lists: {
8970
+ Args: never;
8971
+ Returns: {
8972
+ environment: string;
8973
+ list_name: string;
8974
+ row_count: number;
8975
+ }[];
8976
+ };
8977
+ reset_floriday_sync_cursor: {
8978
+ Args: {
8979
+ p_connection_id: string;
8980
+ p_entity_type: string;
8981
+ };
8982
+ Returns: undefined;
8983
+ };
8984
+ schedule_floriday_additional_services_sync: {
8985
+ Args: {
8986
+ p_apikey: string;
8987
+ p_url: string;
8988
+ };
8989
+ Returns: number;
8990
+ };
8991
+ schedule_floriday_agreement_calloffs_sync: {
8992
+ Args: {
8993
+ p_apikey: string;
8994
+ p_url: string;
8995
+ };
8996
+ Returns: number;
8997
+ };
8998
+ schedule_floriday_agreements_sync: {
8999
+ Args: {
9000
+ p_apikey: string;
9001
+ p_url: string;
9002
+ };
9003
+ Returns: number;
9004
+ };
9005
+ schedule_floriday_base_items_sync: {
9006
+ Args: {
9007
+ p_apikey: string;
9008
+ p_url: string;
9009
+ };
9010
+ Returns: number;
9011
+ };
9012
+ schedule_floriday_blanket_orders_sync: {
9013
+ Args: {
9014
+ p_apikey: string;
9015
+ p_url: string;
9016
+ };
9017
+ Returns: number;
9018
+ };
6508
9019
  schedule_floriday_carriers_sync: {
6509
9020
  Args: {
6510
9021
  p_apikey: string;
@@ -6512,6 +9023,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6512
9023
  };
6513
9024
  Returns: number;
6514
9025
  };
9026
+ schedule_floriday_clock_presales_sync: {
9027
+ Args: {
9028
+ p_apikey: string;
9029
+ p_url: string;
9030
+ };
9031
+ Returns: number;
9032
+ };
9033
+ schedule_floriday_clock_supplies_sync: {
9034
+ Args: {
9035
+ p_apikey: string;
9036
+ p_url: string;
9037
+ };
9038
+ Returns: number;
9039
+ };
9040
+ schedule_floriday_collections_sync: {
9041
+ Args: {
9042
+ p_apikey: string;
9043
+ p_url: string;
9044
+ };
9045
+ Returns: number;
9046
+ };
9047
+ schedule_floriday_commercial_service_types_sync: {
9048
+ Args: {
9049
+ p_apikey: string;
9050
+ p_url: string;
9051
+ };
9052
+ Returns: number;
9053
+ };
6515
9054
  schedule_floriday_connections_sync: {
6516
9055
  Args: {
6517
9056
  p_apikey: string;
@@ -6519,6 +9058,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6519
9058
  };
6520
9059
  Returns: number;
6521
9060
  };
9061
+ schedule_floriday_contract_trade_item_groups_sync: {
9062
+ Args: {
9063
+ p_apikey: string;
9064
+ p_url: string;
9065
+ };
9066
+ Returns: number;
9067
+ };
9068
+ schedule_floriday_contracts_sync: {
9069
+ Args: {
9070
+ p_apikey: string;
9071
+ p_url: string;
9072
+ };
9073
+ Returns: number;
9074
+ };
6522
9075
  schedule_floriday_customer_organizations_sync: {
6523
9076
  Args: {
6524
9077
  p_apikey: string;
@@ -6526,6 +9079,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6526
9079
  };
6527
9080
  Returns: number;
6528
9081
  };
9082
+ schedule_floriday_customer_stickers_sync: {
9083
+ Args: {
9084
+ p_apikey: string;
9085
+ p_url: string;
9086
+ };
9087
+ Returns: number;
9088
+ };
9089
+ schedule_floriday_delivery_condition_sets_sync: {
9090
+ Args: {
9091
+ p_apikey: string;
9092
+ p_url: string;
9093
+ };
9094
+ Returns: number;
9095
+ };
9096
+ schedule_floriday_delivery_locations_sync: {
9097
+ Args: {
9098
+ p_apikey: string;
9099
+ p_url: string;
9100
+ };
9101
+ Returns: number;
9102
+ };
9103
+ schedule_floriday_delivery_orders_sync: {
9104
+ Args: {
9105
+ p_apikey: string;
9106
+ p_url: string;
9107
+ };
9108
+ Returns: number;
9109
+ };
9110
+ schedule_floriday_fulfillment_orders_sync: {
9111
+ Args: {
9112
+ p_apikey: string;
9113
+ p_url: string;
9114
+ };
9115
+ Returns: number;
9116
+ };
9117
+ schedule_floriday_invoices_sync: {
9118
+ Args: {
9119
+ p_apikey: string;
9120
+ p_url: string;
9121
+ };
9122
+ Returns: number;
9123
+ };
6529
9124
  schedule_floriday_network_sync: {
6530
9125
  Args: {
6531
9126
  p_apikey: string;
@@ -6533,6 +9128,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6533
9128
  };
6534
9129
  Returns: number;
6535
9130
  };
9131
+ schedule_floriday_packings_sync: {
9132
+ Args: {
9133
+ p_apikey: string;
9134
+ p_url: string;
9135
+ };
9136
+ Returns: number;
9137
+ };
9138
+ schedule_floriday_price_groups_sync: {
9139
+ Args: {
9140
+ p_apikey: string;
9141
+ p_url: string;
9142
+ };
9143
+ Returns: number;
9144
+ };
9145
+ schedule_floriday_reference_data_refresh: {
9146
+ Args: {
9147
+ p_apikey: string;
9148
+ p_url: string;
9149
+ };
9150
+ Returns: number;
9151
+ };
9152
+ schedule_floriday_sales_strategies_sync: {
9153
+ Args: {
9154
+ p_apikey: string;
9155
+ p_url: string;
9156
+ };
9157
+ Returns: number;
9158
+ };
6536
9159
  schedule_floriday_salesorders_sync: {
6537
9160
  Args: {
6538
9161
  p_apikey: string;
@@ -6547,6 +9170,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6547
9170
  };
6548
9171
  Returns: number;
6549
9172
  };
9173
+ schedule_floriday_trade_item_classifications_sync: {
9174
+ Args: {
9175
+ p_apikey: string;
9176
+ p_url: string;
9177
+ };
9178
+ Returns: number;
9179
+ };
6550
9180
  schedule_floriday_trade_items_sync: {
6551
9181
  Args: {
6552
9182
  p_apikey: string;
@@ -6554,6 +9184,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6554
9184
  };
6555
9185
  Returns: number;
6556
9186
  };
9187
+ schedule_floriday_trips_sync: {
9188
+ Args: {
9189
+ p_apikey: string;
9190
+ p_url: string;
9191
+ };
9192
+ Returns: number;
9193
+ };
9194
+ schedule_floriday_warehouses_sync: {
9195
+ Args: {
9196
+ p_apikey: string;
9197
+ p_url: string;
9198
+ };
9199
+ Returns: number;
9200
+ };
6557
9201
  schedule_twinfield_customers_sync: {
6558
9202
  Args: {
6559
9203
  p_apikey: string;
@@ -6582,6 +9226,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6582
9226
  };
6583
9227
  Returns: number;
6584
9228
  };
9229
+ schedule_twinfield_push_queue_flush: {
9230
+ Args: {
9231
+ p_apikey: string;
9232
+ p_cron_secret?: string;
9233
+ p_url: string;
9234
+ };
9235
+ Returns: number;
9236
+ };
6585
9237
  schedule_twinfield_token_refresh: {
6586
9238
  Args: {
6587
9239
  p_apikey: string;
@@ -6620,8 +9272,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6620
9272
  };
6621
9273
  };
6622
9274
  Enums: {
6623
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
9275
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
6624
9276
  exact_env: "staging" | "live";
9277
+ exact_push_status: "pending" | "sent" | "error";
6625
9278
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
6626
9279
  };
6627
9280
  CompositeTypes: { [_ in never]: never; };