@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
@@ -7,6 +7,48 @@ export type Database = {
7
7
  };
8
8
  public: {
9
9
  Tables: {
10
+ afhandeling_settings: {
11
+ Row: {
12
+ created_at: string;
13
+ id: string;
14
+ max_workdays_earlier_pick: number;
15
+ pick_days_before_transport: number;
16
+ pick_distribution_enabled: boolean;
17
+ signup_mail_enabled: boolean;
18
+ signup_mail_lead_minutes: number;
19
+ signup_mail_purpose: string;
20
+ transport_register_days_before: number;
21
+ updated_at: string;
22
+ user_id: string;
23
+ };
24
+ Insert: {
25
+ created_at?: string;
26
+ id?: string;
27
+ max_workdays_earlier_pick?: number;
28
+ pick_days_before_transport?: number;
29
+ pick_distribution_enabled?: boolean;
30
+ signup_mail_enabled?: boolean;
31
+ signup_mail_lead_minutes?: number;
32
+ signup_mail_purpose?: string;
33
+ transport_register_days_before?: number;
34
+ updated_at?: string;
35
+ user_id: string;
36
+ };
37
+ Update: {
38
+ created_at?: string;
39
+ id?: string;
40
+ max_workdays_earlier_pick?: number;
41
+ pick_days_before_transport?: number;
42
+ pick_distribution_enabled?: boolean;
43
+ signup_mail_enabled?: boolean;
44
+ signup_mail_lead_minutes?: number;
45
+ signup_mail_purpose?: string;
46
+ transport_register_days_before?: number;
47
+ updated_at?: string;
48
+ user_id?: string;
49
+ };
50
+ Relationships: [];
51
+ };
10
52
  agenda_connections: {
11
53
  Row: {
12
54
  account_email: string | null;
@@ -416,6 +458,53 @@ export type Database = {
416
458
  }
417
459
  ];
418
460
  };
461
+ carrier_signup_dispatches: {
462
+ Row: {
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
+ Insert: {
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
+ Update: {
487
+ carrier_id?: string;
488
+ cart_count?: number;
489
+ created_at?: string;
490
+ id?: string;
491
+ order_count?: number;
492
+ outbox_id?: string | null;
493
+ pickup_date?: string;
494
+ pickup_moment_key?: string;
495
+ sent_at?: string;
496
+ signup_deadline?: string;
497
+ };
498
+ Relationships: [
499
+ {
500
+ foreignKeyName: "carrier_signup_dispatches_carrier_id_fkey";
501
+ columns: ["carrier_id"];
502
+ isOneToOne: false;
503
+ referencedRelation: "carriers";
504
+ referencedColumns: ["id"];
505
+ }
506
+ ];
507
+ };
419
508
  carriers: {
420
509
  Row: {
421
510
  address: string | null;
@@ -424,11 +513,18 @@ export type Database = {
424
513
  delivery_days: number | null;
425
514
  email: string | null;
426
515
  id: string;
516
+ is_default: boolean;
427
517
  name: string;
428
518
  notes: string | null;
429
519
  phone: string | null;
520
+ pickup_moments: Json;
521
+ service_cities: string[];
522
+ service_countries: string[];
523
+ service_provinces: string[];
524
+ signup_days_before_delivery: number;
430
525
  signup_time_1: string | null;
431
526
  signup_time_2: string | null;
527
+ sort_order: number;
432
528
  updated_at: string;
433
529
  user_id: string;
434
530
  };
@@ -439,11 +535,18 @@ export type Database = {
439
535
  delivery_days?: number | null;
440
536
  email?: string | null;
441
537
  id?: string;
538
+ is_default?: boolean;
442
539
  name: string;
443
540
  notes?: string | null;
444
541
  phone?: string | null;
542
+ pickup_moments?: Json;
543
+ service_cities?: string[];
544
+ service_countries?: string[];
545
+ service_provinces?: string[];
546
+ signup_days_before_delivery?: number;
445
547
  signup_time_1?: string | null;
446
548
  signup_time_2?: string | null;
549
+ sort_order?: number;
447
550
  updated_at?: string;
448
551
  user_id: string;
449
552
  };
@@ -454,16 +557,62 @@ export type Database = {
454
557
  delivery_days?: number | null;
455
558
  email?: string | null;
456
559
  id?: string;
560
+ is_default?: boolean;
457
561
  name?: string;
458
562
  notes?: string | null;
459
563
  phone?: string | null;
564
+ pickup_moments?: Json;
565
+ service_cities?: string[];
566
+ service_countries?: string[];
567
+ service_provinces?: string[];
568
+ signup_days_before_delivery?: number;
460
569
  signup_time_1?: string | null;
461
570
  signup_time_2?: string | null;
571
+ sort_order?: number;
462
572
  updated_at?: string;
463
573
  user_id?: string;
464
574
  };
465
575
  Relationships: [];
466
576
  };
577
+ cart_pick_overrides: {
578
+ Row: {
579
+ cart_index: number;
580
+ created_at: string;
581
+ id: string;
582
+ moved_from_date: string | null;
583
+ notes: string | null;
584
+ order_id: string;
585
+ order_source: string;
586
+ pick_date: string;
587
+ status: string;
588
+ updated_at: string;
589
+ };
590
+ Insert: {
591
+ cart_index: number;
592
+ created_at?: string;
593
+ id?: string;
594
+ moved_from_date?: string | null;
595
+ notes?: string | null;
596
+ order_id: string;
597
+ order_source: string;
598
+ pick_date: string;
599
+ status?: string;
600
+ updated_at?: string;
601
+ };
602
+ Update: {
603
+ cart_index?: number;
604
+ created_at?: string;
605
+ id?: string;
606
+ moved_from_date?: string | null;
607
+ notes?: string | null;
608
+ order_id?: string;
609
+ order_source?: string;
610
+ pick_date?: string;
611
+ status?: string;
612
+ updated_at?: string;
613
+ };
614
+ Relationships: [];
615
+ };
467
616
  collections: {
468
617
  Row: {
469
618
  created_at: string;
@@ -579,50 +728,75 @@ export type Database = {
579
728
  customer_delivery_locations: {
580
729
  Row: {
581
730
  address_line: string | null;
731
+ carrier_assignment_source: string;
732
+ carrier_id: string | null;
582
733
  city: string | null;
583
734
  country: string | null;
584
735
  created_at: string;
585
736
  customer_id: string;
586
737
  floriday_location_id: string | null;
587
738
  gln: string | null;
739
+ house_number: string | null;
588
740
  id: string;
589
741
  is_primary: boolean;
590
742
  name: string | null;
591
743
  postal_code: string | null;
744
+ province: string | null;
592
745
  raw: Json | null;
746
+ self_pickup: boolean;
747
+ street: string | null;
593
748
  updated_at: string;
594
749
  };
595
750
  Insert: {
596
751
  address_line?: string | null;
752
+ carrier_assignment_source?: string;
753
+ carrier_id?: string | null;
597
754
  city?: string | null;
598
755
  country?: string | null;
599
756
  created_at?: string;
600
757
  customer_id: string;
601
758
  floriday_location_id?: string | null;
602
759
  gln?: string | null;
760
+ house_number?: string | null;
603
761
  id?: string;
604
762
  is_primary?: boolean;
605
763
  name?: string | null;
606
764
  postal_code?: string | null;
765
+ province?: string | null;
607
766
  raw?: Json | null;
767
+ self_pickup?: boolean;
768
+ street?: string | null;
608
769
  updated_at?: string;
609
770
  };
610
771
  Update: {
611
772
  address_line?: string | null;
773
+ carrier_assignment_source?: string;
774
+ carrier_id?: string | null;
612
775
  city?: string | null;
613
776
  country?: string | null;
614
777
  created_at?: string;
615
778
  customer_id?: string;
616
779
  floriday_location_id?: string | null;
617
780
  gln?: string | null;
781
+ house_number?: string | null;
618
782
  id?: string;
619
783
  is_primary?: boolean;
620
784
  name?: string | null;
621
785
  postal_code?: string | null;
786
+ province?: string | null;
622
787
  raw?: Json | null;
788
+ self_pickup?: boolean;
789
+ street?: string | null;
623
790
  updated_at?: string;
624
791
  };
625
792
  Relationships: [
793
+ {
794
+ foreignKeyName: "customer_delivery_locations_carrier_id_fkey";
795
+ columns: ["carrier_id"];
796
+ isOneToOne: false;
797
+ referencedRelation: "carriers";
798
+ referencedColumns: ["id"];
799
+ },
626
800
  {
627
801
  foreignKeyName: "customer_delivery_locations_customer_id_fkey";
628
802
  columns: ["customer_id"];
@@ -1450,18 +1624,21 @@ export type Database = {
1450
1624
  };
1451
1625
  email_auth_purpose_settings: {
1452
1626
  Row: {
1627
+ default_cc: string[];
1453
1628
  purpose: string;
1454
1629
  reply_to: string | null;
1455
1630
  updated_at: string;
1456
1631
  updated_by: string | null;
1457
1632
  };
1458
1633
  Insert: {
1634
+ default_cc?: string[];
1459
1635
  purpose: string;
1460
1636
  reply_to?: string | null;
1461
1637
  updated_at?: string;
1462
1638
  updated_by?: string | null;
1463
1639
  };
1464
1640
  Update: {
1641
+ default_cc?: string[];
1465
1642
  purpose?: string;
1466
1643
  reply_to?: string | null;
1467
1644
  updated_at?: string;
@@ -2257,6 +2434,53 @@ export type Database = {
2257
2434
  }
2258
2435
  ];
2259
2436
  };
2437
+ exact_push_queue: {
2438
+ Row: {
2439
+ attempts: number;
2440
+ connection_id: string;
2441
+ created_at: string;
2442
+ external_id: string | null;
2443
+ id: string;
2444
+ idempotency_hash: string;
2445
+ last_error: string | null;
2446
+ payload: Json;
2447
+ status: Database["public"]["Enums"]["exact_push_status"];
2448
+ updated_at: string;
2449
+ };
2450
+ Insert: {
2451
+ attempts?: number;
2452
+ connection_id: string;
2453
+ created_at?: string;
2454
+ external_id?: string | null;
2455
+ id?: string;
2456
+ idempotency_hash: string;
2457
+ last_error?: string | null;
2458
+ payload: Json;
2459
+ status?: Database["public"]["Enums"]["exact_push_status"];
2460
+ updated_at?: string;
2461
+ };
2462
+ Update: {
2463
+ attempts?: number;
2464
+ connection_id?: string;
2465
+ created_at?: string;
2466
+ external_id?: string | null;
2467
+ id?: string;
2468
+ idempotency_hash?: string;
2469
+ last_error?: string | null;
2470
+ payload?: Json;
2471
+ status?: Database["public"]["Enums"]["exact_push_status"];
2472
+ updated_at?: string;
2473
+ };
2474
+ Relationships: [
2475
+ {
2476
+ foreignKeyName: "exact_push_queue_connection_id_fkey";
2477
+ columns: ["connection_id"];
2478
+ isOneToOne: false;
2479
+ referencedRelation: "exact_connections";
2480
+ referencedColumns: ["id"];
2481
+ }
2482
+ ];
2483
+ };
2260
2484
  exact_refresh_locks: {
2261
2485
  Row: {
2262
2486
  environment: Database["public"]["Enums"]["exact_env"];
@@ -2319,6 +2543,8 @@ export type Database = {
2319
2543
  connection_id: string;
2320
2544
  last_error: string | null;
2321
2545
  last_modified_cursor: string | null;
2546
+ last_modified_cursor_customers: string | null;
2547
+ last_modified_cursor_invoices: string | null;
2322
2548
  last_synced_at: string | null;
2323
2549
  status: string;
2324
2550
  updated_at: string;
@@ -2327,6 +2553,8 @@ export type Database = {
2327
2553
  connection_id: string;
2328
2554
  last_error?: string | null;
2329
2555
  last_modified_cursor?: string | null;
2556
+ last_modified_cursor_customers?: string | null;
2557
+ last_modified_cursor_invoices?: string | null;
2330
2558
  last_synced_at?: string | null;
2331
2559
  status?: string;
2332
2560
  updated_at?: string;
@@ -2335,6 +2563,8 @@ export type Database = {
2335
2563
  connection_id?: string;
2336
2564
  last_error?: string | null;
2337
2565
  last_modified_cursor?: string | null;
2566
+ last_modified_cursor_customers?: string | null;
2567
+ last_modified_cursor_invoices?: string | null;
2338
2568
  last_synced_at?: string | null;
2339
2569
  status?: string;
2340
2570
  updated_at?: string;
@@ -2377,6 +2607,54 @@ export type Database = {
2377
2607
  };
2378
2608
  Relationships: [];
2379
2609
  };
2610
+ external_invoice_providers: {
2611
+ Row: {
2612
+ color: string | null;
2613
+ created_at: string;
2614
+ hmac_secret_name: string | null;
2615
+ icon: string | null;
2616
+ is_enabled: boolean;
2617
+ label: string;
2618
+ last_synced_at: string | null;
2619
+ provider: string;
2620
+ push_endpoint: string | null;
2621
+ sort_order: number;
2622
+ status_endpoint: string | null;
2623
+ sync_endpoint: string | null;
2624
+ updated_at: string;
2625
+ };
2626
+ Insert: {
2627
+ color?: string | null;
2628
+ created_at?: string;
2629
+ hmac_secret_name?: string | null;
2630
+ icon?: string | null;
2631
+ is_enabled?: boolean;
2632
+ label: string;
2633
+ last_synced_at?: string | null;
2634
+ provider: string;
2635
+ push_endpoint?: string | null;
2636
+ sort_order?: number;
2637
+ status_endpoint?: string | null;
2638
+ sync_endpoint?: string | null;
2639
+ updated_at?: string;
2640
+ };
2641
+ Update: {
2642
+ color?: string | null;
2643
+ created_at?: string;
2644
+ hmac_secret_name?: string | null;
2645
+ icon?: string | null;
2646
+ is_enabled?: boolean;
2647
+ label?: string;
2648
+ last_synced_at?: string | null;
2649
+ provider?: string;
2650
+ push_endpoint?: string | null;
2651
+ sort_order?: number;
2652
+ status_endpoint?: string | null;
2653
+ sync_endpoint?: string | null;
2654
+ updated_at?: string;
2655
+ };
2656
+ Relationships: [];
2657
+ };
2380
2658
  extra_categories: {
2381
2659
  Row: {
2382
2660
  created_at: string;
@@ -2401,12 +2679,40 @@ export type Database = {
2401
2679
  };
2402
2680
  Relationships: [];
2403
2681
  };
2682
+ extra_pricing_types: {
2683
+ Row: {
2684
+ code: string;
2685
+ created_at: string;
2686
+ id: string;
2687
+ label: string;
2688
+ sort_order: number;
2689
+ updated_at: string;
2690
+ };
2691
+ Insert: {
2692
+ code: string;
2693
+ created_at?: string;
2694
+ id?: string;
2695
+ label: string;
2696
+ sort_order?: number;
2697
+ updated_at?: string;
2698
+ };
2699
+ Update: {
2700
+ code?: string;
2701
+ created_at?: string;
2702
+ id?: string;
2703
+ label?: string;
2704
+ sort_order?: number;
2705
+ updated_at?: string;
2706
+ };
2707
+ Relationships: [];
2708
+ };
2404
2709
  extras: {
2405
2710
  Row: {
2406
2711
  category: string;
2407
2712
  created_at: string;
2408
2713
  exact_article_id: string | null;
2409
2714
  id: string;
2715
+ image_url: string | null;
2410
2716
  is_active: boolean;
2411
2717
  name: string;
2412
2718
  price: number;
@@ -2417,6 +2723,7 @@ export type Database = {
2417
2723
  created_at?: string;
2418
2724
  exact_article_id?: string | null;
2419
2725
  id?: string;
2726
+ image_url?: string | null;
2420
2727
  is_active?: boolean;
2421
2728
  name: string;
2422
2729
  price?: number;
@@ -2427,6 +2734,7 @@ export type Database = {
2427
2734
  created_at?: string;
2428
2735
  exact_article_id?: string | null;
2429
2736
  id?: string;
2737
+ image_url?: string | null;
2430
2738
  is_active?: boolean;
2431
2739
  name?: string;
2432
2740
  price?: number;
@@ -2524,43 +2832,37 @@ export type Database = {
2524
2832
  };
2525
2833
  Relationships: [];
2526
2834
  };
2527
- floriday_carriers_cache: {
2835
+ floriday_additional_services_cache: {
2528
2836
  Row: {
2529
- connection_id: string | null;
2530
- created_at: string;
2837
+ connection_id: string;
2531
2838
  data: Json;
2532
2839
  fetched_at: string;
2533
- gln_code: string | null;
2534
- id: string;
2535
- name: string | null;
2536
- organization_id: string;
2840
+ floriday_id: string;
2841
+ is_deleted: boolean;
2842
+ sequence_number: number;
2537
2843
  updated_at: string;
2538
2844
  };
2539
2845
  Insert: {
2540
- connection_id?: string | null;
2541
- created_at?: string;
2846
+ connection_id: string;
2542
2847
  data: Json;
2543
2848
  fetched_at?: string;
2544
- gln_code?: string | null;
2545
- id?: string;
2546
- name?: string | null;
2547
- organization_id: string;
2849
+ floriday_id: string;
2850
+ is_deleted?: boolean;
2851
+ sequence_number?: number;
2548
2852
  updated_at?: string;
2549
2853
  };
2550
2854
  Update: {
2551
- connection_id?: string | null;
2552
- created_at?: string;
2855
+ connection_id?: string;
2553
2856
  data?: Json;
2554
2857
  fetched_at?: string;
2555
- gln_code?: string | null;
2556
- id?: string;
2557
- name?: string | null;
2558
- organization_id?: string;
2858
+ floriday_id?: string;
2859
+ is_deleted?: boolean;
2860
+ sequence_number?: number;
2559
2861
  updated_at?: string;
2560
2862
  };
2561
2863
  Relationships: [
2562
2864
  {
2563
- foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
2865
+ foreignKeyName: "floriday_additional_services_cache_connection_id_fkey";
2564
2866
  columns: ["connection_id"];
2565
2867
  isOneToOne: false;
2566
2868
  referencedRelation: "floriday_connections";
@@ -2568,100 +2870,102 @@ export type Database = {
2568
2870
  }
2569
2871
  ];
2570
2872
  };
2571
- floriday_connections: {
2873
+ floriday_agreement_calloffs_cache: {
2572
2874
  Row: {
2573
- access_token: string | null;
2574
- api_key: string;
2575
- client_id: string;
2576
- client_secret: string;
2577
- created_at: string;
2578
- customers_endpoint: string | null;
2579
- environment: string;
2580
- gln_code: string | null;
2875
+ agreement_id: string | null;
2876
+ connection_id: string;
2877
+ data: Json;
2878
+ delivery_date: string | null;
2879
+ fetched_at: string;
2880
+ floriday_id: string;
2581
2881
  id: string;
2582
- is_active: boolean;
2583
- label: string;
2584
- organization_name: string | null;
2585
- preferred_warehouse_id: string | null;
2586
- preferred_warehouse_name: string | null;
2587
- token_expires_at: string | null;
2882
+ is_deleted: boolean;
2883
+ sequence_number: number;
2884
+ status: string | null;
2588
2885
  updated_at: string;
2589
2886
  };
2590
2887
  Insert: {
2591
- access_token?: string | null;
2592
- api_key: string;
2593
- client_id: string;
2594
- client_secret: string;
2595
- created_at?: string;
2596
- customers_endpoint?: string | null;
2597
- environment: string;
2598
- gln_code?: string | null;
2888
+ agreement_id?: string | null;
2889
+ connection_id: string;
2890
+ data?: Json;
2891
+ delivery_date?: string | null;
2892
+ fetched_at?: string;
2893
+ floriday_id: string;
2599
2894
  id?: string;
2600
- is_active?: boolean;
2601
- label?: string;
2602
- organization_name?: string | null;
2603
- preferred_warehouse_id?: string | null;
2604
- preferred_warehouse_name?: string | null;
2605
- token_expires_at?: string | null;
2895
+ is_deleted?: boolean;
2896
+ sequence_number?: number;
2897
+ status?: string | null;
2606
2898
  updated_at?: string;
2607
2899
  };
2608
2900
  Update: {
2609
- access_token?: string | null;
2610
- api_key?: string;
2611
- client_id?: string;
2612
- client_secret?: string;
2613
- created_at?: string;
2614
- customers_endpoint?: string | null;
2615
- environment?: string;
2616
- gln_code?: string | null;
2901
+ agreement_id?: string | null;
2902
+ connection_id?: string;
2903
+ data?: Json;
2904
+ delivery_date?: string | null;
2905
+ fetched_at?: string;
2906
+ floriday_id?: string;
2617
2907
  id?: string;
2618
- is_active?: boolean;
2619
- label?: string;
2620
- organization_name?: string | null;
2621
- preferred_warehouse_id?: string | null;
2622
- preferred_warehouse_name?: string | null;
2623
- token_expires_at?: string | null;
2908
+ is_deleted?: boolean;
2909
+ sequence_number?: number;
2910
+ status?: string | null;
2624
2911
  updated_at?: string;
2625
2912
  };
2626
- Relationships: [];
2913
+ Relationships: [
2914
+ {
2915
+ foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
2916
+ columns: ["connection_id"];
2917
+ isOneToOne: false;
2918
+ referencedRelation: "floriday_connections";
2919
+ referencedColumns: ["id"];
2920
+ }
2921
+ ];
2627
2922
  };
2628
- floriday_connections_cache: {
2923
+ floriday_agreements_cache: {
2629
2924
  Row: {
2630
2925
  buyer_organization_id: string | null;
2631
- buyer_organization_name: string | null;
2632
2926
  connection_id: string;
2633
2927
  data: Json;
2634
- floriday_connection_id: string;
2928
+ fetched_at: string;
2929
+ floriday_id: string;
2930
+ id: string;
2635
2931
  is_deleted: boolean;
2636
2932
  sequence_number: number;
2637
2933
  status: string | null;
2638
- synced_at: string;
2934
+ updated_at: string;
2935
+ valid_from: string | null;
2936
+ valid_until: string | null;
2639
2937
  };
2640
2938
  Insert: {
2641
2939
  buyer_organization_id?: string | null;
2642
- buyer_organization_name?: string | null;
2643
2940
  connection_id: string;
2644
- data: Json;
2645
- floriday_connection_id: string;
2941
+ data?: Json;
2942
+ fetched_at?: string;
2943
+ floriday_id: string;
2944
+ id?: string;
2646
2945
  is_deleted?: boolean;
2647
- sequence_number: number;
2946
+ sequence_number?: number;
2648
2947
  status?: string | null;
2649
- synced_at?: string;
2948
+ updated_at?: string;
2949
+ valid_from?: string | null;
2950
+ valid_until?: string | null;
2650
2951
  };
2651
2952
  Update: {
2652
2953
  buyer_organization_id?: string | null;
2653
- buyer_organization_name?: string | null;
2654
2954
  connection_id?: string;
2655
2955
  data?: Json;
2656
- floriday_connection_id?: string;
2956
+ fetched_at?: string;
2957
+ floriday_id?: string;
2958
+ id?: string;
2657
2959
  is_deleted?: boolean;
2658
2960
  sequence_number?: number;
2659
2961
  status?: string | null;
2660
- synced_at?: string;
2962
+ updated_at?: string;
2963
+ valid_from?: string | null;
2964
+ valid_until?: string | null;
2661
2965
  };
2662
2966
  Relationships: [
2663
2967
  {
2664
- foreignKeyName: "floriday_connections_cache_connection_id_fkey";
2968
+ foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
2665
2969
  columns: ["connection_id"];
2666
2970
  isOneToOne: false;
2667
2971
  referencedRelation: "floriday_connections";
@@ -2669,28 +2973,166 @@ export type Database = {
2669
2973
  }
2670
2974
  ];
2671
2975
  };
2672
- floriday_customers_cache: {
2976
+ floriday_auction_letters_cache: {
2977
+ Row: {
2978
+ auction_letter_code: string;
2979
+ clock_supply_id: string;
2980
+ connection_id: string;
2981
+ content_type: string;
2982
+ fetched_at: string;
2983
+ id: string;
2984
+ storage_path: string;
2985
+ };
2986
+ Insert: {
2987
+ auction_letter_code: string;
2988
+ clock_supply_id: string;
2989
+ connection_id: string;
2990
+ content_type?: string;
2991
+ fetched_at?: string;
2992
+ id?: string;
2993
+ storage_path: string;
2994
+ };
2995
+ Update: {
2996
+ auction_letter_code?: string;
2997
+ clock_supply_id?: string;
2998
+ connection_id?: string;
2999
+ content_type?: string;
3000
+ fetched_at?: string;
3001
+ id?: string;
3002
+ storage_path?: string;
3003
+ };
3004
+ Relationships: [
3005
+ {
3006
+ foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
3007
+ columns: ["connection_id"];
3008
+ isOneToOne: false;
3009
+ referencedRelation: "floriday_connections";
3010
+ referencedColumns: ["id"];
3011
+ }
3012
+ ];
3013
+ };
3014
+ floriday_base_items_cache: {
3015
+ Row: {
3016
+ connection_id: string;
3017
+ data: Json;
3018
+ fetched_at: string;
3019
+ floriday_id: string;
3020
+ is_deleted: boolean;
3021
+ sequence_number: number;
3022
+ updated_at: string;
3023
+ };
3024
+ Insert: {
3025
+ connection_id: string;
3026
+ data: Json;
3027
+ fetched_at?: string;
3028
+ floriday_id: string;
3029
+ is_deleted?: boolean;
3030
+ sequence_number?: number;
3031
+ updated_at?: string;
3032
+ };
3033
+ Update: {
3034
+ connection_id?: string;
3035
+ data?: Json;
3036
+ fetched_at?: string;
3037
+ floriday_id?: string;
3038
+ is_deleted?: boolean;
3039
+ sequence_number?: number;
3040
+ updated_at?: string;
3041
+ };
3042
+ Relationships: [
3043
+ {
3044
+ foreignKeyName: "floriday_base_items_cache_connection_id_fkey";
3045
+ columns: ["connection_id"];
3046
+ isOneToOne: false;
3047
+ referencedRelation: "floriday_connections";
3048
+ referencedColumns: ["id"];
3049
+ }
3050
+ ];
3051
+ };
3052
+ floriday_blanket_orders_cache: {
3053
+ Row: {
3054
+ connection_id: string;
3055
+ contract_id: string | null;
3056
+ created_at: string;
3057
+ data: Json;
3058
+ fetched_at: string;
3059
+ floriday_id: string;
3060
+ id: string;
3061
+ is_deleted: boolean;
3062
+ sequence_number: number;
3063
+ updated_at: string;
3064
+ };
3065
+ Insert: {
3066
+ connection_id: string;
3067
+ contract_id?: string | null;
3068
+ created_at?: string;
3069
+ data: Json;
3070
+ fetched_at?: string;
3071
+ floriday_id: string;
3072
+ id?: string;
3073
+ is_deleted?: boolean;
3074
+ sequence_number?: number;
3075
+ updated_at?: string;
3076
+ };
3077
+ Update: {
3078
+ connection_id?: string;
3079
+ contract_id?: string | null;
3080
+ created_at?: string;
3081
+ data?: Json;
3082
+ fetched_at?: string;
3083
+ floriday_id?: string;
3084
+ id?: string;
3085
+ is_deleted?: boolean;
3086
+ sequence_number?: number;
3087
+ updated_at?: string;
3088
+ };
3089
+ Relationships: [
3090
+ {
3091
+ foreignKeyName: "floriday_blanket_orders_cache_connection_id_fkey";
3092
+ columns: ["connection_id"];
3093
+ isOneToOne: false;
3094
+ referencedRelation: "floriday_connections";
3095
+ referencedColumns: ["id"];
3096
+ }
3097
+ ];
3098
+ };
3099
+ floriday_carriers_cache: {
2673
3100
  Row: {
2674
3101
  connection_id: string | null;
3102
+ created_at: string;
2675
3103
  data: Json;
2676
3104
  fetched_at: string;
3105
+ gln_code: string | null;
3106
+ id: string;
3107
+ name: string | null;
2677
3108
  organization_id: string;
3109
+ updated_at: string;
2678
3110
  };
2679
3111
  Insert: {
2680
3112
  connection_id?: string | null;
2681
- data?: Json;
3113
+ created_at?: string;
3114
+ data: Json;
2682
3115
  fetched_at?: string;
3116
+ gln_code?: string | null;
3117
+ id?: string;
3118
+ name?: string | null;
2683
3119
  organization_id: string;
3120
+ updated_at?: string;
2684
3121
  };
2685
3122
  Update: {
2686
3123
  connection_id?: string | null;
3124
+ created_at?: string;
2687
3125
  data?: Json;
2688
3126
  fetched_at?: string;
3127
+ gln_code?: string | null;
3128
+ id?: string;
3129
+ name?: string | null;
2689
3130
  organization_id?: string;
3131
+ updated_at?: string;
2690
3132
  };
2691
3133
  Relationships: [
2692
3134
  {
2693
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3135
+ foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
2694
3136
  columns: ["connection_id"];
2695
3137
  isOneToOne: false;
2696
3138
  referencedRelation: "floriday_connections";
@@ -2698,62 +3140,1042 @@ export type Database = {
2698
3140
  }
2699
3141
  ];
2700
3142
  };
2701
- floriday_network_cache: {
3143
+ floriday_clock_presales_cache: {
2702
3144
  Row: {
2703
- city: string | null;
3145
+ buyer_organization_id: string | null;
3146
+ clock_supply_id: string | null;
3147
+ connection_id: string;
3148
+ data: Json;
3149
+ fetched_at: string;
3150
+ floriday_id: string;
3151
+ id: string;
3152
+ is_deleted: boolean;
3153
+ sequence_number: number;
3154
+ updated_at: string;
3155
+ };
3156
+ Insert: {
3157
+ buyer_organization_id?: string | null;
3158
+ clock_supply_id?: string | null;
3159
+ connection_id: string;
3160
+ data?: Json;
3161
+ fetched_at?: string;
3162
+ floriday_id: string;
3163
+ id?: string;
3164
+ is_deleted?: boolean;
3165
+ sequence_number?: number;
3166
+ updated_at?: string;
3167
+ };
3168
+ Update: {
3169
+ buyer_organization_id?: string | null;
3170
+ clock_supply_id?: string | null;
3171
+ connection_id?: string;
3172
+ data?: Json;
3173
+ fetched_at?: string;
3174
+ floriday_id?: string;
3175
+ id?: string;
3176
+ is_deleted?: boolean;
3177
+ sequence_number?: number;
3178
+ updated_at?: string;
3179
+ };
3180
+ Relationships: [
3181
+ {
3182
+ foreignKeyName: "floriday_clock_presales_cache_connection_id_fkey";
3183
+ columns: ["connection_id"];
3184
+ isOneToOne: false;
3185
+ referencedRelation: "floriday_connections";
3186
+ referencedColumns: ["id"];
3187
+ }
3188
+ ];
3189
+ };
3190
+ floriday_clock_supplies_cache: {
3191
+ Row: {
3192
+ auction_date: string | null;
2704
3193
  connection_id: string;
2705
- country: string | null;
2706
3194
  data: Json;
2707
3195
  fetched_at: string;
2708
- gln: string | null;
2709
- organization_id: string;
2710
- organization_name: string | null;
3196
+ floriday_id: string;
3197
+ id: string;
3198
+ is_deleted: boolean;
3199
+ sequence_number: number;
3200
+ status: string | null;
3201
+ trade_item_id: string | null;
3202
+ updated_at: string;
3203
+ };
3204
+ Insert: {
3205
+ auction_date?: string | null;
3206
+ connection_id: string;
3207
+ data?: Json;
3208
+ fetched_at?: string;
3209
+ floriday_id: string;
3210
+ id?: string;
3211
+ is_deleted?: boolean;
3212
+ sequence_number?: number;
3213
+ status?: string | null;
3214
+ trade_item_id?: string | null;
3215
+ updated_at?: string;
3216
+ };
3217
+ Update: {
3218
+ auction_date?: string | null;
3219
+ connection_id?: string;
3220
+ data?: Json;
3221
+ fetched_at?: string;
3222
+ floriday_id?: string;
3223
+ id?: string;
3224
+ is_deleted?: boolean;
3225
+ sequence_number?: number;
3226
+ status?: string | null;
3227
+ trade_item_id?: string | null;
3228
+ updated_at?: string;
3229
+ };
3230
+ Relationships: [
3231
+ {
3232
+ foreignKeyName: "floriday_clock_supplies_cache_connection_id_fkey";
3233
+ columns: ["connection_id"];
3234
+ isOneToOne: false;
3235
+ referencedRelation: "floriday_connections";
3236
+ referencedColumns: ["id"];
3237
+ }
3238
+ ];
3239
+ };
3240
+ floriday_code_lists_cache: {
3241
+ Row: {
3242
+ code: string;
3243
+ environment: string;
3244
+ label: string | null;
3245
+ list_name: string;
3246
+ payload: Json | null;
3247
+ updated_at: string;
3248
+ };
3249
+ Insert: {
3250
+ code: string;
3251
+ environment: string;
3252
+ label?: string | null;
3253
+ list_name: string;
3254
+ payload?: Json | null;
3255
+ updated_at?: string;
3256
+ };
3257
+ Update: {
3258
+ code?: string;
3259
+ environment?: string;
3260
+ label?: string | null;
3261
+ list_name?: string;
3262
+ payload?: Json | null;
3263
+ updated_at?: string;
3264
+ };
3265
+ Relationships: [];
3266
+ };
3267
+ floriday_collections_cache: {
3268
+ Row: {
3269
+ connection_id: string;
3270
+ data: Json;
3271
+ fetched_at: string;
3272
+ floriday_id: string;
3273
+ is_deleted: boolean;
3274
+ sequence_number: number;
3275
+ updated_at: string;
3276
+ };
3277
+ Insert: {
3278
+ connection_id: string;
3279
+ data: Json;
3280
+ fetched_at?: string;
3281
+ floriday_id: string;
3282
+ is_deleted?: boolean;
3283
+ sequence_number?: number;
3284
+ updated_at?: string;
3285
+ };
3286
+ Update: {
3287
+ connection_id?: string;
3288
+ data?: Json;
3289
+ fetched_at?: string;
3290
+ floriday_id?: string;
3291
+ is_deleted?: boolean;
3292
+ sequence_number?: number;
3293
+ updated_at?: string;
3294
+ };
3295
+ Relationships: [
3296
+ {
3297
+ foreignKeyName: "floriday_collections_cache_connection_id_fkey";
3298
+ columns: ["connection_id"];
3299
+ isOneToOne: false;
3300
+ referencedRelation: "floriday_connections";
3301
+ referencedColumns: ["id"];
3302
+ }
3303
+ ];
3304
+ };
3305
+ floriday_commercial_service_types_cache: {
3306
+ Row: {
3307
+ connection_id: string;
3308
+ data: Json;
3309
+ fetched_at: string;
3310
+ floriday_id: string;
3311
+ is_deleted: boolean;
3312
+ sequence_number: number;
3313
+ updated_at: string;
3314
+ };
3315
+ Insert: {
3316
+ connection_id: string;
3317
+ data: Json;
3318
+ fetched_at?: string;
3319
+ floriday_id: string;
3320
+ is_deleted?: boolean;
3321
+ sequence_number?: number;
3322
+ updated_at?: string;
3323
+ };
3324
+ Update: {
3325
+ connection_id?: string;
3326
+ data?: Json;
3327
+ fetched_at?: string;
3328
+ floriday_id?: string;
3329
+ is_deleted?: boolean;
3330
+ sequence_number?: number;
3331
+ updated_at?: string;
3332
+ };
3333
+ Relationships: [
3334
+ {
3335
+ foreignKeyName: "floriday_commercial_service_types_cache_connection_id_fkey";
3336
+ columns: ["connection_id"];
3337
+ isOneToOne: false;
3338
+ referencedRelation: "floriday_connections";
3339
+ referencedColumns: ["id"];
3340
+ }
3341
+ ];
3342
+ };
3343
+ floriday_connections: {
3344
+ Row: {
3345
+ access_token: string | null;
3346
+ api_key: string;
3347
+ client_id: string;
3348
+ client_secret: string;
3349
+ created_at: string;
3350
+ customers_endpoint: string | null;
3351
+ environment: string;
3352
+ gln_code: string | null;
3353
+ id: string;
3354
+ is_active: boolean;
3355
+ label: string;
3356
+ organization_name: string | null;
3357
+ preferred_warehouse_id: string | null;
3358
+ preferred_warehouse_name: string | null;
3359
+ token_expires_at: string | null;
3360
+ updated_at: string;
3361
+ };
3362
+ Insert: {
3363
+ access_token?: string | null;
3364
+ api_key: string;
3365
+ client_id: string;
3366
+ client_secret: string;
3367
+ created_at?: string;
3368
+ customers_endpoint?: string | null;
3369
+ environment: string;
3370
+ gln_code?: string | null;
3371
+ id?: string;
3372
+ is_active?: boolean;
3373
+ label?: string;
3374
+ organization_name?: string | null;
3375
+ preferred_warehouse_id?: string | null;
3376
+ preferred_warehouse_name?: string | null;
3377
+ token_expires_at?: string | null;
3378
+ updated_at?: string;
3379
+ };
3380
+ Update: {
3381
+ access_token?: string | null;
3382
+ api_key?: string;
3383
+ client_id?: string;
3384
+ client_secret?: string;
3385
+ created_at?: string;
3386
+ customers_endpoint?: string | null;
3387
+ environment?: string;
3388
+ gln_code?: string | null;
3389
+ id?: string;
3390
+ is_active?: boolean;
3391
+ label?: string;
3392
+ organization_name?: string | null;
3393
+ preferred_warehouse_id?: string | null;
3394
+ preferred_warehouse_name?: string | null;
3395
+ token_expires_at?: string | null;
3396
+ updated_at?: string;
3397
+ };
3398
+ Relationships: [];
3399
+ };
3400
+ floriday_connections_cache: {
3401
+ Row: {
3402
+ buyer_organization_id: string | null;
3403
+ buyer_organization_name: string | null;
3404
+ connection_id: string;
3405
+ data: Json;
3406
+ floriday_connection_id: string;
3407
+ is_deleted: boolean;
3408
+ sequence_number: number;
3409
+ status: string | null;
3410
+ synced_at: string;
3411
+ };
3412
+ Insert: {
3413
+ buyer_organization_id?: string | null;
3414
+ buyer_organization_name?: string | null;
3415
+ connection_id: string;
3416
+ data: Json;
3417
+ floriday_connection_id: string;
3418
+ is_deleted?: boolean;
3419
+ sequence_number: number;
3420
+ status?: string | null;
3421
+ synced_at?: string;
3422
+ };
3423
+ Update: {
3424
+ buyer_organization_id?: string | null;
3425
+ buyer_organization_name?: string | null;
3426
+ connection_id?: string;
3427
+ data?: Json;
3428
+ floriday_connection_id?: string;
3429
+ is_deleted?: boolean;
3430
+ sequence_number?: number;
3431
+ status?: string | null;
3432
+ synced_at?: string;
3433
+ };
3434
+ Relationships: [
3435
+ {
3436
+ foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3437
+ columns: ["connection_id"];
3438
+ isOneToOne: false;
3439
+ referencedRelation: "floriday_connections";
3440
+ referencedColumns: ["id"];
3441
+ }
3442
+ ];
3443
+ };
3444
+ floriday_contract_trade_item_groups_cache: {
3445
+ Row: {
3446
+ connection_id: string;
3447
+ data: Json;
3448
+ fetched_at: string;
3449
+ floriday_id: string;
3450
+ is_deleted: boolean;
3451
+ sequence_number: number;
3452
+ updated_at: string;
3453
+ };
3454
+ Insert: {
3455
+ connection_id: string;
3456
+ data: Json;
3457
+ fetched_at?: string;
3458
+ floriday_id: string;
3459
+ is_deleted?: boolean;
3460
+ sequence_number?: number;
3461
+ updated_at?: string;
3462
+ };
3463
+ Update: {
3464
+ connection_id?: string;
3465
+ data?: Json;
3466
+ fetched_at?: string;
3467
+ floriday_id?: string;
3468
+ is_deleted?: boolean;
3469
+ sequence_number?: number;
3470
+ updated_at?: string;
3471
+ };
3472
+ Relationships: [
3473
+ {
3474
+ foreignKeyName: "floriday_contract_trade_item_groups_cache_connection_id_fkey";
3475
+ columns: ["connection_id"];
3476
+ isOneToOne: false;
3477
+ referencedRelation: "floriday_connections";
3478
+ referencedColumns: ["id"];
3479
+ }
3480
+ ];
3481
+ };
3482
+ floriday_contracts_cache: {
3483
+ Row: {
3484
+ connection_id: string;
3485
+ created_at: string;
3486
+ data: Json;
3487
+ fetched_at: string;
3488
+ floriday_id: string;
3489
+ id: string;
3490
+ is_deleted: boolean;
3491
+ sequence_number: number;
3492
+ updated_at: string;
3493
+ };
3494
+ Insert: {
3495
+ connection_id: string;
3496
+ created_at?: string;
3497
+ data: Json;
3498
+ fetched_at?: string;
3499
+ floriday_id: string;
3500
+ id?: string;
3501
+ is_deleted?: boolean;
3502
+ sequence_number?: number;
3503
+ updated_at?: string;
3504
+ };
3505
+ Update: {
3506
+ connection_id?: string;
3507
+ created_at?: string;
3508
+ data?: Json;
3509
+ fetched_at?: string;
3510
+ floriday_id?: string;
3511
+ id?: string;
3512
+ is_deleted?: boolean;
3513
+ sequence_number?: number;
3514
+ updated_at?: string;
3515
+ };
3516
+ Relationships: [
3517
+ {
3518
+ foreignKeyName: "floriday_contracts_cache_connection_id_fkey";
3519
+ columns: ["connection_id"];
3520
+ isOneToOne: false;
3521
+ referencedRelation: "floriday_connections";
3522
+ referencedColumns: ["id"];
3523
+ }
3524
+ ];
3525
+ };
3526
+ floriday_customer_sticker_pdfs_cache: {
3527
+ Row: {
3528
+ byte_size: number | null;
3529
+ connection_id: string;
3530
+ content_type: string;
3531
+ created_at: string;
3532
+ fetched_at: string;
3533
+ id: string;
3534
+ sticker_id: string;
3535
+ storage_path: string;
3536
+ };
3537
+ Insert: {
3538
+ byte_size?: number | null;
3539
+ connection_id: string;
3540
+ content_type?: string;
3541
+ created_at?: string;
3542
+ fetched_at?: string;
3543
+ id?: string;
3544
+ sticker_id: string;
3545
+ storage_path: string;
3546
+ };
3547
+ Update: {
3548
+ byte_size?: number | null;
3549
+ connection_id?: string;
3550
+ content_type?: string;
3551
+ created_at?: string;
3552
+ fetched_at?: string;
3553
+ id?: string;
3554
+ sticker_id?: string;
3555
+ storage_path?: string;
3556
+ };
3557
+ Relationships: [
3558
+ {
3559
+ foreignKeyName: "floriday_customer_sticker_pdfs_cache_connection_id_fkey";
3560
+ columns: ["connection_id"];
3561
+ isOneToOne: false;
3562
+ referencedRelation: "floriday_connections";
3563
+ referencedColumns: ["id"];
3564
+ }
3565
+ ];
3566
+ };
3567
+ floriday_customer_stickers_cache: {
3568
+ Row: {
3569
+ connection_id: string;
3570
+ created_at: string;
3571
+ data: Json;
3572
+ fetched_at: string;
3573
+ floriday_id: string;
3574
+ id: string;
3575
+ is_deleted: boolean;
3576
+ quantity: number | null;
3577
+ sales_order_id: string | null;
3578
+ sequence_number: number;
3579
+ status: string | null;
3580
+ trade_item_id: string | null;
3581
+ updated_at: string;
3582
+ };
3583
+ Insert: {
3584
+ connection_id: string;
3585
+ created_at?: string;
3586
+ data?: Json;
3587
+ fetched_at?: string;
3588
+ floriday_id: string;
3589
+ id?: string;
3590
+ is_deleted?: boolean;
3591
+ quantity?: number | null;
3592
+ sales_order_id?: string | null;
3593
+ sequence_number?: number;
3594
+ status?: string | null;
3595
+ trade_item_id?: string | null;
3596
+ updated_at?: string;
3597
+ };
3598
+ Update: {
3599
+ connection_id?: string;
3600
+ created_at?: string;
3601
+ data?: Json;
3602
+ fetched_at?: string;
3603
+ floriday_id?: string;
3604
+ id?: string;
3605
+ is_deleted?: boolean;
3606
+ quantity?: number | null;
3607
+ sales_order_id?: string | null;
3608
+ sequence_number?: number;
3609
+ status?: string | null;
3610
+ trade_item_id?: string | null;
3611
+ updated_at?: string;
3612
+ };
3613
+ Relationships: [
3614
+ {
3615
+ foreignKeyName: "floriday_customer_stickers_cache_connection_id_fkey";
3616
+ columns: ["connection_id"];
3617
+ isOneToOne: false;
3618
+ referencedRelation: "floriday_connections";
3619
+ referencedColumns: ["id"];
3620
+ }
3621
+ ];
3622
+ };
3623
+ floriday_customers_cache: {
3624
+ Row: {
3625
+ connection_id: string | null;
3626
+ data: Json;
3627
+ fetched_at: string;
3628
+ gln_code: string | null;
3629
+ is_deleted: boolean;
3630
+ name: string | null;
3631
+ organization_id: string;
3632
+ sequence_number: number | null;
3633
+ };
3634
+ Insert: {
3635
+ connection_id?: string | null;
3636
+ data?: Json;
3637
+ fetched_at?: string;
3638
+ gln_code?: string | null;
3639
+ is_deleted?: boolean;
3640
+ name?: string | null;
3641
+ organization_id: string;
3642
+ sequence_number?: number | null;
3643
+ };
3644
+ Update: {
3645
+ connection_id?: string | null;
3646
+ data?: Json;
3647
+ fetched_at?: string;
3648
+ gln_code?: string | null;
3649
+ is_deleted?: boolean;
3650
+ name?: string | null;
3651
+ organization_id?: string;
3652
+ sequence_number?: number | null;
3653
+ };
3654
+ Relationships: [
3655
+ {
3656
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3657
+ columns: ["connection_id"];
3658
+ isOneToOne: false;
3659
+ referencedRelation: "floriday_connections";
3660
+ referencedColumns: ["id"];
3661
+ }
3662
+ ];
3663
+ };
3664
+ floriday_delivery_condition_sets_cache: {
3665
+ Row: {
3666
+ connection_id: string;
3667
+ data: Json;
3668
+ fetched_at: string;
3669
+ floriday_id: string;
3670
+ is_deleted: boolean;
3671
+ sequence_number: number;
3672
+ updated_at: string;
3673
+ };
3674
+ Insert: {
3675
+ connection_id: string;
3676
+ data: Json;
3677
+ fetched_at?: string;
3678
+ floriday_id: string;
3679
+ is_deleted?: boolean;
3680
+ sequence_number?: number;
3681
+ updated_at?: string;
3682
+ };
3683
+ Update: {
3684
+ connection_id?: string;
3685
+ data?: Json;
3686
+ fetched_at?: string;
3687
+ floriday_id?: string;
3688
+ is_deleted?: boolean;
3689
+ sequence_number?: number;
3690
+ updated_at?: string;
3691
+ };
3692
+ Relationships: [
3693
+ {
3694
+ foreignKeyName: "floriday_delivery_condition_sets_cache_connection_id_fkey";
3695
+ columns: ["connection_id"];
3696
+ isOneToOne: false;
3697
+ referencedRelation: "floriday_connections";
3698
+ referencedColumns: ["id"];
3699
+ }
3700
+ ];
3701
+ };
3702
+ floriday_delivery_locations_cache: {
3703
+ Row: {
3704
+ connection_id: string;
3705
+ data: Json;
3706
+ fetched_at: string;
3707
+ floriday_id: string;
3708
+ gln_code: string | null;
3709
+ id: string;
3710
+ is_deleted: boolean;
3711
+ name: string | null;
3712
+ organization_id: string | null;
3713
+ updated_at: string;
3714
+ };
3715
+ Insert: {
3716
+ connection_id: string;
3717
+ data?: Json;
3718
+ fetched_at?: string;
3719
+ floriday_id: string;
3720
+ gln_code?: string | null;
3721
+ id?: string;
3722
+ is_deleted?: boolean;
3723
+ name?: string | null;
3724
+ organization_id?: string | null;
3725
+ updated_at?: string;
3726
+ };
3727
+ Update: {
3728
+ connection_id?: string;
3729
+ data?: Json;
3730
+ fetched_at?: string;
3731
+ floriday_id?: string;
3732
+ gln_code?: string | null;
3733
+ id?: string;
3734
+ is_deleted?: boolean;
3735
+ name?: string | null;
3736
+ organization_id?: string | null;
3737
+ updated_at?: string;
3738
+ };
3739
+ Relationships: [
3740
+ {
3741
+ foreignKeyName: "floriday_delivery_locations_cache_connection_id_fkey";
3742
+ columns: ["connection_id"];
3743
+ isOneToOne: false;
3744
+ referencedRelation: "floriday_connections";
3745
+ referencedColumns: ["id"];
3746
+ }
3747
+ ];
3748
+ };
3749
+ floriday_delivery_orders_cache: {
3750
+ Row: {
3751
+ auction_date: string | null;
3752
+ connection_id: string;
3753
+ data: Json;
3754
+ destination_warehouse_id: string | null;
3755
+ fetched_at: string;
3756
+ floriday_id: string;
3757
+ id: string;
3758
+ is_deleted: boolean;
3759
+ sequence_number: number;
3760
+ status: string | null;
3761
+ trade_item_id: string | null;
3762
+ updated_at: string;
3763
+ };
3764
+ Insert: {
3765
+ auction_date?: string | null;
3766
+ connection_id: string;
3767
+ data?: Json;
3768
+ destination_warehouse_id?: string | null;
3769
+ fetched_at?: string;
3770
+ floriday_id: string;
3771
+ id?: string;
3772
+ is_deleted?: boolean;
3773
+ sequence_number?: number;
3774
+ status?: string | null;
3775
+ trade_item_id?: string | null;
3776
+ updated_at?: string;
3777
+ };
3778
+ Update: {
3779
+ auction_date?: string | null;
3780
+ connection_id?: string;
3781
+ data?: Json;
3782
+ destination_warehouse_id?: string | null;
3783
+ fetched_at?: string;
3784
+ floriday_id?: string;
3785
+ id?: string;
3786
+ is_deleted?: boolean;
3787
+ sequence_number?: number;
3788
+ status?: string | null;
3789
+ trade_item_id?: string | null;
3790
+ updated_at?: string;
3791
+ };
3792
+ Relationships: [
3793
+ {
3794
+ foreignKeyName: "floriday_delivery_orders_cache_connection_id_fkey";
3795
+ columns: ["connection_id"];
3796
+ isOneToOne: false;
3797
+ referencedRelation: "floriday_connections";
3798
+ referencedColumns: ["id"];
3799
+ }
3800
+ ];
3801
+ };
3802
+ floriday_fulfillment_orders_cache: {
3803
+ Row: {
3804
+ auction_date: string | null;
3805
+ connection_id: string;
3806
+ data: Json;
3807
+ delivery_order_id: string | null;
3808
+ despatch_warehouse_id: string | null;
3809
+ destination_warehouse_id: string | null;
3810
+ fetched_at: string;
3811
+ floriday_id: string;
3812
+ id: string;
3813
+ is_deleted: boolean | null;
3814
+ latest_delivery_at: string | null;
3815
+ load_carrier_type: string | null;
3816
+ one_label_only: boolean | null;
3817
+ sequence_number: number;
3818
+ status: string | null;
3819
+ };
3820
+ Insert: {
3821
+ auction_date?: string | null;
3822
+ connection_id: string;
3823
+ data: Json;
3824
+ delivery_order_id?: string | null;
3825
+ despatch_warehouse_id?: string | null;
3826
+ destination_warehouse_id?: string | null;
3827
+ fetched_at?: string;
3828
+ floriday_id: string;
3829
+ id?: string;
3830
+ is_deleted?: boolean | null;
3831
+ latest_delivery_at?: string | null;
3832
+ load_carrier_type?: string | null;
3833
+ one_label_only?: boolean | null;
3834
+ sequence_number?: number;
3835
+ status?: string | null;
3836
+ };
3837
+ Update: {
3838
+ auction_date?: string | null;
3839
+ connection_id?: string;
3840
+ data?: Json;
3841
+ delivery_order_id?: string | null;
3842
+ despatch_warehouse_id?: string | null;
3843
+ destination_warehouse_id?: string | null;
3844
+ fetched_at?: string;
3845
+ floriday_id?: string;
3846
+ id?: string;
3847
+ is_deleted?: boolean | null;
3848
+ latest_delivery_at?: string | null;
3849
+ load_carrier_type?: string | null;
3850
+ one_label_only?: boolean | null;
3851
+ sequence_number?: number;
3852
+ status?: string | null;
3853
+ };
3854
+ Relationships: [
3855
+ {
3856
+ foreignKeyName: "floriday_fulfillment_orders_cache_connection_id_fkey";
3857
+ columns: ["connection_id"];
3858
+ isOneToOne: false;
3859
+ referencedRelation: "floriday_connections";
3860
+ referencedColumns: ["id"];
3861
+ }
3862
+ ];
3863
+ };
3864
+ floriday_invoices_cache: {
3865
+ Row: {
3866
+ buyer_organization_id: string | null;
3867
+ connection_id: string;
3868
+ currency: string | null;
3869
+ data: Json;
3870
+ fetched_at: string;
3871
+ floriday_id: string;
3872
+ id: string;
3873
+ invoice_date: string | null;
3874
+ invoice_number: string | null;
3875
+ is_deleted: boolean;
3876
+ sequence_number: number;
3877
+ total_amount: number | null;
3878
+ updated_at: string;
3879
+ };
3880
+ Insert: {
3881
+ buyer_organization_id?: string | null;
3882
+ connection_id: string;
3883
+ currency?: string | null;
3884
+ data?: Json;
3885
+ fetched_at?: string;
3886
+ floriday_id: string;
3887
+ id?: string;
3888
+ invoice_date?: string | null;
3889
+ invoice_number?: string | null;
3890
+ is_deleted?: boolean;
3891
+ sequence_number?: number;
3892
+ total_amount?: number | null;
3893
+ updated_at?: string;
3894
+ };
3895
+ Update: {
3896
+ buyer_organization_id?: string | null;
3897
+ connection_id?: string;
3898
+ currency?: string | null;
3899
+ data?: Json;
3900
+ fetched_at?: string;
3901
+ floriday_id?: string;
3902
+ id?: string;
3903
+ invoice_date?: string | null;
3904
+ invoice_number?: string | null;
3905
+ is_deleted?: boolean;
3906
+ sequence_number?: number;
3907
+ total_amount?: number | null;
3908
+ updated_at?: string;
3909
+ };
3910
+ Relationships: [
3911
+ {
3912
+ foreignKeyName: "floriday_invoices_cache_connection_id_fkey";
3913
+ columns: ["connection_id"];
3914
+ isOneToOne: false;
3915
+ referencedRelation: "floriday_connections";
3916
+ referencedColumns: ["id"];
3917
+ }
3918
+ ];
3919
+ };
3920
+ floriday_logistic_labels_cache: {
3921
+ Row: {
3922
+ byte_size: number | null;
3923
+ connection_id: string;
3924
+ content_type: string;
3925
+ fetched_at: string;
3926
+ fulfillment_order_id: string;
3927
+ id: string;
3928
+ logistic_label_code: string;
3929
+ storage_path: string;
3930
+ };
3931
+ Insert: {
3932
+ byte_size?: number | null;
3933
+ connection_id: string;
3934
+ content_type?: string;
3935
+ fetched_at?: string;
3936
+ fulfillment_order_id: string;
3937
+ id?: string;
3938
+ logistic_label_code: string;
3939
+ storage_path: string;
3940
+ };
3941
+ Update: {
3942
+ byte_size?: number | null;
3943
+ connection_id?: string;
3944
+ content_type?: string;
3945
+ fetched_at?: string;
3946
+ fulfillment_order_id?: string;
3947
+ id?: string;
3948
+ logistic_label_code?: string;
3949
+ storage_path?: string;
3950
+ };
3951
+ Relationships: [
3952
+ {
3953
+ foreignKeyName: "floriday_logistic_labels_cache_connection_id_fkey";
3954
+ columns: ["connection_id"];
3955
+ isOneToOne: false;
3956
+ referencedRelation: "floriday_connections";
3957
+ referencedColumns: ["id"];
3958
+ }
3959
+ ];
3960
+ };
3961
+ floriday_network_cache: {
3962
+ Row: {
3963
+ city: string | null;
3964
+ connection_id: string;
3965
+ country: string | null;
3966
+ data: Json;
3967
+ fetched_at: string;
3968
+ gln: string | null;
3969
+ organization_id: string;
3970
+ organization_name: string | null;
3971
+ };
3972
+ Insert: {
3973
+ city?: string | null;
3974
+ connection_id: string;
3975
+ country?: string | null;
3976
+ data?: Json;
3977
+ fetched_at?: string;
3978
+ gln?: string | null;
3979
+ organization_id: string;
3980
+ organization_name?: string | null;
3981
+ };
3982
+ Update: {
3983
+ city?: string | null;
3984
+ connection_id?: string;
3985
+ country?: string | null;
3986
+ data?: Json;
3987
+ fetched_at?: string;
3988
+ gln?: string | null;
3989
+ organization_id?: string;
3990
+ organization_name?: string | null;
3991
+ };
3992
+ Relationships: [];
3993
+ };
3994
+ floriday_network_sync_state: {
3995
+ Row: {
3996
+ connection_id: string;
3997
+ last_error: string | null;
3998
+ last_sequence_number: number;
3999
+ last_synced_at: string | null;
4000
+ updated_at: string;
4001
+ };
4002
+ Insert: {
4003
+ connection_id: string;
4004
+ last_error?: string | null;
4005
+ last_sequence_number?: number;
4006
+ last_synced_at?: string | null;
4007
+ updated_at?: string;
4008
+ };
4009
+ Update: {
4010
+ connection_id?: string;
4011
+ last_error?: string | null;
4012
+ last_sequence_number?: number;
4013
+ last_synced_at?: string | null;
4014
+ updated_at?: string;
4015
+ };
4016
+ Relationships: [];
4017
+ };
4018
+ floriday_order_number_map: {
4019
+ Row: {
4020
+ created_at: string;
4021
+ floriday_id: string;
4022
+ order_number: string;
4023
+ };
4024
+ Insert: {
4025
+ created_at?: string;
4026
+ floriday_id: string;
4027
+ order_number: string;
4028
+ };
4029
+ Update: {
4030
+ created_at?: string;
4031
+ floriday_id?: string;
4032
+ order_number?: string;
4033
+ };
4034
+ Relationships: [];
4035
+ };
4036
+ floriday_packings_cache: {
4037
+ Row: {
4038
+ connection_id: string;
4039
+ data: Json;
4040
+ fetched_at: string;
4041
+ floriday_id: string;
4042
+ id: string;
4043
+ is_deleted: boolean;
4044
+ sequence_number: number;
4045
+ updated_at: string;
4046
+ };
4047
+ Insert: {
4048
+ connection_id: string;
4049
+ data?: Json;
4050
+ fetched_at?: string;
4051
+ floriday_id: string;
4052
+ id?: string;
4053
+ is_deleted?: boolean;
4054
+ sequence_number?: number;
4055
+ updated_at?: string;
4056
+ };
4057
+ Update: {
4058
+ connection_id?: string;
4059
+ data?: Json;
4060
+ fetched_at?: string;
4061
+ floriday_id?: string;
4062
+ id?: string;
4063
+ is_deleted?: boolean;
4064
+ sequence_number?: number;
4065
+ updated_at?: string;
4066
+ };
4067
+ Relationships: [
4068
+ {
4069
+ foreignKeyName: "floriday_packings_cache_connection_id_fkey";
4070
+ columns: ["connection_id"];
4071
+ isOneToOne: false;
4072
+ referencedRelation: "floriday_connections";
4073
+ referencedColumns: ["id"];
4074
+ }
4075
+ ];
4076
+ };
4077
+ floriday_price_groups_cache: {
4078
+ Row: {
4079
+ connection_id: string;
4080
+ data: Json;
4081
+ fetched_at: string;
4082
+ floriday_id: string;
4083
+ is_deleted: boolean;
4084
+ sequence_number: number;
4085
+ updated_at: string;
4086
+ };
4087
+ Insert: {
4088
+ connection_id: string;
4089
+ data: Json;
4090
+ fetched_at?: string;
4091
+ floriday_id: string;
4092
+ is_deleted?: boolean;
4093
+ sequence_number?: number;
4094
+ updated_at?: string;
4095
+ };
4096
+ Update: {
4097
+ connection_id?: string;
4098
+ data?: Json;
4099
+ fetched_at?: string;
4100
+ floriday_id?: string;
4101
+ is_deleted?: boolean;
4102
+ sequence_number?: number;
4103
+ updated_at?: string;
4104
+ };
4105
+ Relationships: [
4106
+ {
4107
+ foreignKeyName: "floriday_price_groups_cache_connection_id_fkey";
4108
+ columns: ["connection_id"];
4109
+ isOneToOne: false;
4110
+ referencedRelation: "floriday_connections";
4111
+ referencedColumns: ["id"];
4112
+ }
4113
+ ];
4114
+ };
4115
+ floriday_resource_schemas: {
4116
+ Row: {
4117
+ enums: Json;
4118
+ fetched_at: string;
4119
+ resource: string;
4120
+ schema: Json;
4121
+ source_url: string | null;
4122
+ version: string;
2711
4123
  };
2712
4124
  Insert: {
2713
- city?: string | null;
2714
- connection_id: string;
2715
- country?: string | null;
2716
- data?: Json;
4125
+ enums?: Json;
2717
4126
  fetched_at?: string;
2718
- gln?: string | null;
2719
- organization_id: string;
2720
- organization_name?: string | null;
4127
+ resource: string;
4128
+ schema: Json;
4129
+ source_url?: string | null;
4130
+ version: string;
2721
4131
  };
2722
4132
  Update: {
2723
- city?: string | null;
2724
- connection_id?: string;
2725
- country?: string | null;
2726
- data?: Json;
4133
+ enums?: Json;
2727
4134
  fetched_at?: string;
2728
- gln?: string | null;
2729
- organization_id?: string;
2730
- organization_name?: string | null;
4135
+ resource?: string;
4136
+ schema?: Json;
4137
+ source_url?: string | null;
4138
+ version?: string;
2731
4139
  };
2732
4140
  Relationships: [];
2733
4141
  };
2734
- floriday_network_sync_state: {
4142
+ floriday_sales_strategies_cache: {
2735
4143
  Row: {
2736
4144
  connection_id: string;
2737
- last_error: string | null;
2738
- last_sequence_number: number;
2739
- last_synced_at: string | null;
4145
+ data: Json;
4146
+ fetched_at: string;
4147
+ floriday_id: string;
4148
+ is_deleted: boolean;
4149
+ sequence_number: number;
2740
4150
  updated_at: string;
2741
4151
  };
2742
4152
  Insert: {
2743
4153
  connection_id: string;
2744
- last_error?: string | null;
2745
- last_sequence_number?: number;
2746
- last_synced_at?: string | null;
4154
+ data: Json;
4155
+ fetched_at?: string;
4156
+ floriday_id: string;
4157
+ is_deleted?: boolean;
4158
+ sequence_number?: number;
2747
4159
  updated_at?: string;
2748
4160
  };
2749
4161
  Update: {
2750
4162
  connection_id?: string;
2751
- last_error?: string | null;
2752
- last_sequence_number?: number;
2753
- last_synced_at?: string | null;
4163
+ data?: Json;
4164
+ fetched_at?: string;
4165
+ floriday_id?: string;
4166
+ is_deleted?: boolean;
4167
+ sequence_number?: number;
2754
4168
  updated_at?: string;
2755
4169
  };
2756
- Relationships: [];
4170
+ Relationships: [
4171
+ {
4172
+ foreignKeyName: "floriday_sales_strategies_cache_connection_id_fkey";
4173
+ columns: ["connection_id"];
4174
+ isOneToOne: false;
4175
+ referencedRelation: "floriday_connections";
4176
+ referencedColumns: ["id"];
4177
+ }
4178
+ ];
2757
4179
  };
2758
4180
  floriday_salesorders_cache: {
2759
4181
  Row: {
@@ -2822,7 +4244,9 @@ export type Database = {
2822
4244
  connection_id: string;
2823
4245
  entity_type: string;
2824
4246
  last_error: string | null;
4247
+ last_items_processed: number | null;
2825
4248
  last_sequence_number: number;
4249
+ last_success_at: string | null;
2826
4250
  last_synced_at: string | null;
2827
4251
  updated_at: string;
2828
4252
  };
@@ -2830,7 +4254,9 @@ export type Database = {
2830
4254
  connection_id: string;
2831
4255
  entity_type: string;
2832
4256
  last_error?: string | null;
4257
+ last_items_processed?: number | null;
2833
4258
  last_sequence_number?: number;
4259
+ last_success_at?: string | null;
2834
4260
  last_synced_at?: string | null;
2835
4261
  updated_at?: string;
2836
4262
  };
@@ -2838,7 +4264,9 @@ export type Database = {
2838
4264
  connection_id?: string;
2839
4265
  entity_type?: string;
2840
4266
  last_error?: string | null;
4267
+ last_items_processed?: number | null;
2841
4268
  last_sequence_number?: number;
4269
+ last_success_at?: string | null;
2842
4270
  last_synced_at?: string | null;
2843
4271
  updated_at?: string;
2844
4272
  };
@@ -2890,6 +4318,47 @@ export type Database = {
2890
4318
  }
2891
4319
  ];
2892
4320
  };
4321
+ floriday_trade_item_classifications_cache: {
4322
+ Row: {
4323
+ connection_id: string;
4324
+ data: Json;
4325
+ fetched_at: string;
4326
+ floriday_id: string;
4327
+ id: string;
4328
+ is_deleted: boolean;
4329
+ sequence_number: number;
4330
+ updated_at: string;
4331
+ };
4332
+ Insert: {
4333
+ connection_id: string;
4334
+ data: Json;
4335
+ fetched_at?: string;
4336
+ floriday_id: string;
4337
+ id?: string;
4338
+ is_deleted?: boolean;
4339
+ sequence_number?: number;
4340
+ updated_at?: string;
4341
+ };
4342
+ Update: {
4343
+ connection_id?: string;
4344
+ data?: Json;
4345
+ fetched_at?: string;
4346
+ floriday_id?: string;
4347
+ id?: string;
4348
+ is_deleted?: boolean;
4349
+ sequence_number?: number;
4350
+ updated_at?: string;
4351
+ };
4352
+ Relationships: [
4353
+ {
4354
+ foreignKeyName: "floriday_trade_item_classifications_cache_connection_id_fkey";
4355
+ columns: ["connection_id"];
4356
+ isOneToOne: false;
4357
+ referencedRelation: "floriday_connections";
4358
+ referencedColumns: ["id"];
4359
+ }
4360
+ ];
4361
+ };
2893
4362
  floriday_trade_items_cache: {
2894
4363
  Row: {
2895
4364
  connection_id: string;
@@ -2925,6 +4394,165 @@ export type Database = {
2925
4394
  }
2926
4395
  ];
2927
4396
  };
4397
+ floriday_trips_cache: {
4398
+ Row: {
4399
+ carrier_organization_id: string | null;
4400
+ connection_id: string;
4401
+ data: Json;
4402
+ fetched_at: string;
4403
+ floriday_id: string;
4404
+ id: string;
4405
+ is_deleted: boolean;
4406
+ sequence_number: number;
4407
+ status: string | null;
4408
+ trip_date: string | null;
4409
+ updated_at: string;
4410
+ };
4411
+ Insert: {
4412
+ carrier_organization_id?: string | null;
4413
+ connection_id: string;
4414
+ data?: Json;
4415
+ fetched_at?: string;
4416
+ floriday_id: string;
4417
+ id?: string;
4418
+ is_deleted?: boolean;
4419
+ sequence_number?: number;
4420
+ status?: string | null;
4421
+ trip_date?: string | null;
4422
+ updated_at?: string;
4423
+ };
4424
+ Update: {
4425
+ carrier_organization_id?: string | null;
4426
+ connection_id?: string;
4427
+ data?: Json;
4428
+ fetched_at?: string;
4429
+ floriday_id?: string;
4430
+ id?: string;
4431
+ is_deleted?: boolean;
4432
+ sequence_number?: number;
4433
+ status?: string | null;
4434
+ trip_date?: string | null;
4435
+ updated_at?: string;
4436
+ };
4437
+ Relationships: [
4438
+ {
4439
+ foreignKeyName: "floriday_trips_cache_connection_id_fkey";
4440
+ columns: ["connection_id"];
4441
+ isOneToOne: false;
4442
+ referencedRelation: "floriday_connections";
4443
+ referencedColumns: ["id"];
4444
+ }
4445
+ ];
4446
+ };
4447
+ floriday_warehouses_cache: {
4448
+ Row: {
4449
+ connection_id: string;
4450
+ data: Json;
4451
+ fetched_at: string;
4452
+ floriday_id: string;
4453
+ gln_code: string | null;
4454
+ id: string;
4455
+ is_default: boolean;
4456
+ is_deleted: boolean;
4457
+ name: string | null;
4458
+ updated_at: string;
4459
+ };
4460
+ Insert: {
4461
+ connection_id: string;
4462
+ data?: Json;
4463
+ fetched_at?: string;
4464
+ floriday_id: string;
4465
+ gln_code?: string | null;
4466
+ id?: string;
4467
+ is_default?: boolean;
4468
+ is_deleted?: boolean;
4469
+ name?: string | null;
4470
+ updated_at?: string;
4471
+ };
4472
+ Update: {
4473
+ connection_id?: string;
4474
+ data?: Json;
4475
+ fetched_at?: string;
4476
+ floriday_id?: string;
4477
+ gln_code?: string | null;
4478
+ id?: string;
4479
+ is_default?: boolean;
4480
+ is_deleted?: boolean;
4481
+ name?: string | null;
4482
+ updated_at?: string;
4483
+ };
4484
+ Relationships: [
4485
+ {
4486
+ foreignKeyName: "floriday_warehouses_cache_connection_id_fkey";
4487
+ columns: ["connection_id"];
4488
+ isOneToOne: false;
4489
+ referencedRelation: "floriday_connections";
4490
+ referencedColumns: ["id"];
4491
+ }
4492
+ ];
4493
+ };
4494
+ floriday_write_log: {
4495
+ Row: {
4496
+ action: string;
4497
+ caller: string;
4498
+ connection_id: string | null;
4499
+ created_at: string;
4500
+ error: string | null;
4501
+ floriday_id: string | null;
4502
+ http_status: number | null;
4503
+ id: string;
4504
+ idempotency_key: string | null;
4505
+ module: string | null;
4506
+ ok: boolean;
4507
+ request: Json | null;
4508
+ resource: string;
4509
+ response: Json | null;
4510
+ user_id: string | null;
4511
+ };
4512
+ Insert: {
4513
+ action: string;
4514
+ caller?: string;
4515
+ connection_id?: string | null;
4516
+ created_at?: string;
4517
+ error?: string | null;
4518
+ floriday_id?: string | null;
4519
+ http_status?: number | null;
4520
+ id?: string;
4521
+ idempotency_key?: string | null;
4522
+ module?: string | null;
4523
+ ok: boolean;
4524
+ request?: Json | null;
4525
+ resource: string;
4526
+ response?: Json | null;
4527
+ user_id?: string | null;
4528
+ };
4529
+ Update: {
4530
+ action?: string;
4531
+ caller?: string;
4532
+ connection_id?: string | null;
4533
+ created_at?: string;
4534
+ error?: string | null;
4535
+ floriday_id?: string | null;
4536
+ http_status?: number | null;
4537
+ id?: string;
4538
+ idempotency_key?: string | null;
4539
+ module?: string | null;
4540
+ ok?: boolean;
4541
+ request?: Json | null;
4542
+ resource?: string;
4543
+ response?: Json | null;
4544
+ user_id?: string | null;
4545
+ };
4546
+ Relationships: [
4547
+ {
4548
+ foreignKeyName: "floriday_write_log_connection_id_fkey";
4549
+ columns: ["connection_id"];
4550
+ isOneToOne: false;
4551
+ referencedRelation: "floriday_connections";
4552
+ referencedColumns: ["id"];
4553
+ }
4554
+ ];
4555
+ };
2928
4556
  imap_accounts: {
2929
4557
  Row: {
2930
4558
  created_at: string;
@@ -3100,9 +4728,62 @@ export type Database = {
3100
4728
  hierarchy_levels?: string[];
3101
4729
  id?: string;
3102
4730
  updated_at?: string;
3103
- visible_columns?: string[];
4731
+ visible_columns?: string[];
4732
+ };
4733
+ Relationships: [];
4734
+ };
4735
+ invoice_push_log: {
4736
+ Row: {
4737
+ connection_id: string | null;
4738
+ created_at: string;
4739
+ created_by: string;
4740
+ customer_id: string | null;
4741
+ id: string;
4742
+ last_error: string | null;
4743
+ last_polled_at: string | null;
4744
+ payload: Json;
4745
+ provider_id: string;
4746
+ queue_id: string | null;
4747
+ status: string;
4748
+ updated_at: string;
4749
+ };
4750
+ Insert: {
4751
+ connection_id?: string | null;
4752
+ created_at?: string;
4753
+ created_by?: string;
4754
+ customer_id?: string | null;
4755
+ id?: string;
4756
+ last_error?: string | null;
4757
+ last_polled_at?: string | null;
4758
+ payload?: Json;
4759
+ provider_id: string;
4760
+ queue_id?: string | null;
4761
+ status?: string;
4762
+ updated_at?: string;
4763
+ };
4764
+ Update: {
4765
+ connection_id?: string | null;
4766
+ created_at?: string;
4767
+ created_by?: string;
4768
+ customer_id?: string | null;
4769
+ id?: string;
4770
+ last_error?: string | null;
4771
+ last_polled_at?: string | null;
4772
+ payload?: Json;
4773
+ provider_id?: string;
4774
+ queue_id?: string | null;
4775
+ status?: string;
4776
+ updated_at?: string;
3104
4777
  };
3105
- Relationships: [];
4778
+ Relationships: [
4779
+ {
4780
+ foreignKeyName: "invoice_push_log_provider_id_fkey";
4781
+ columns: ["provider_id"];
4782
+ isOneToOne: false;
4783
+ referencedRelation: "external_invoice_providers";
4784
+ referencedColumns: ["provider"];
4785
+ }
4786
+ ];
3106
4787
  };
3107
4788
  invoice_run_items: {
3108
4789
  Row: {
@@ -3231,6 +4912,7 @@ export type Database = {
3231
4912
  Row: {
3232
4913
  body_html: string | null;
3233
4914
  body_text: string | null;
4915
+ connection_id: string | null;
3234
4916
  created_at: string;
3235
4917
  error_message: string | null;
3236
4918
  external_id: string | null;
@@ -3249,6 +4931,7 @@ export type Database = {
3249
4931
  Insert: {
3250
4932
  body_html?: string | null;
3251
4933
  body_text?: string | null;
4934
+ connection_id?: string | null;
3252
4935
  created_at?: string;
3253
4936
  error_message?: string | null;
3254
4937
  external_id?: string | null;
@@ -3267,6 +4950,7 @@ export type Database = {
3267
4950
  Update: {
3268
4951
  body_html?: string | null;
3269
4952
  body_text?: string | null;
4953
+ connection_id?: string | null;
3270
4954
  created_at?: string;
3271
4955
  error_message?: string | null;
3272
4956
  external_id?: string | null;
@@ -3283,6 +4967,20 @@ export type Database = {
3283
4967
  updated_at?: string;
3284
4968
  };
3285
4969
  Relationships: [
4970
+ {
4971
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4972
+ columns: ["connection_id"];
4973
+ isOneToOne: false;
4974
+ referencedRelation: "email_auth_connections";
4975
+ referencedColumns: ["id"];
4976
+ },
4977
+ {
4978
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4979
+ columns: ["connection_id"];
4980
+ isOneToOne: false;
4981
+ referencedRelation: "email_auth_connections_safe";
4982
+ referencedColumns: ["id"];
4983
+ },
3286
4984
  {
3287
4985
  foreignKeyName: "mailbox_messages_profile_id_fkey";
3288
4986
  columns: ["profile_id"];
@@ -3577,6 +5275,7 @@ export type Database = {
3577
5275
  role: string;
3578
5276
  tenant_id: string;
3579
5277
  updated_at: string;
5278
+ user_id: string | null;
3580
5279
  };
3581
5280
  Insert: {
3582
5281
  avatar_url?: string | null;
@@ -3592,6 +5291,7 @@ export type Database = {
3592
5291
  role?: string;
3593
5292
  tenant_id: string;
3594
5293
  updated_at?: string;
5294
+ user_id?: string | null;
3595
5295
  };
3596
5296
  Update: {
3597
5297
  avatar_url?: string | null;
@@ -3607,6 +5307,7 @@ export type Database = {
3607
5307
  role?: string;
3608
5308
  tenant_id?: string;
3609
5309
  updated_at?: string;
5310
+ user_id?: string | null;
3610
5311
  };
3611
5312
  Relationships: [
3612
5313
  {
@@ -3748,13 +5449,6 @@ export type Database = {
3748
5449
  isOneToOne: false;
3749
5450
  referencedRelation: "offer_campaigns";
3750
5451
  referencedColumns: ["id"];
3751
- },
3752
- {
3753
- foreignKeyName: "offer_campaign_products_product_id_fkey";
3754
- columns: ["product_id"];
3755
- isOneToOne: false;
3756
- referencedRelation: "products";
3757
- referencedColumns: ["id"];
3758
5452
  }
3759
5453
  ];
3760
5454
  };
@@ -4042,6 +5736,105 @@ export type Database = {
4042
5736
  };
4043
5737
  Relationships: [];
4044
5738
  };
5739
+ order_cart_items: {
5740
+ Row: {
5741
+ cart_id: string;
5742
+ crates: number;
5743
+ crates_per_layer: number;
5744
+ created_at: string;
5745
+ id: string;
5746
+ order_item_id: string | null;
5747
+ plants_per_crate: number;
5748
+ product_id: string | null;
5749
+ product_name: string;
5750
+ };
5751
+ Insert: {
5752
+ cart_id: string;
5753
+ crates: number;
5754
+ crates_per_layer?: number;
5755
+ created_at?: string;
5756
+ id?: string;
5757
+ order_item_id?: string | null;
5758
+ plants_per_crate?: number;
5759
+ product_id?: string | null;
5760
+ product_name: string;
5761
+ };
5762
+ Update: {
5763
+ cart_id?: string;
5764
+ crates?: number;
5765
+ crates_per_layer?: number;
5766
+ created_at?: string;
5767
+ id?: string;
5768
+ order_item_id?: string | null;
5769
+ plants_per_crate?: number;
5770
+ product_id?: string | null;
5771
+ product_name?: string;
5772
+ };
5773
+ Relationships: [
5774
+ {
5775
+ foreignKeyName: "order_cart_items_cart_id_fkey";
5776
+ columns: ["cart_id"];
5777
+ isOneToOne: false;
5778
+ referencedRelation: "order_carts";
5779
+ referencedColumns: ["id"];
5780
+ },
5781
+ {
5782
+ foreignKeyName: "order_cart_items_order_item_id_fkey";
5783
+ columns: ["order_item_id"];
5784
+ isOneToOne: false;
5785
+ referencedRelation: "order_items";
5786
+ referencedColumns: ["id"];
5787
+ },
5788
+ {
5789
+ foreignKeyName: "order_cart_items_product_id_fkey";
5790
+ columns: ["product_id"];
5791
+ isOneToOne: false;
5792
+ referencedRelation: "products";
5793
+ referencedColumns: ["id"];
5794
+ }
5795
+ ];
5796
+ };
5797
+ order_carts: {
5798
+ Row: {
5799
+ cart_number: number;
5800
+ created_at: string;
5801
+ id: string;
5802
+ is_auto: boolean;
5803
+ is_complete: boolean;
5804
+ notes: string | null;
5805
+ order_id: string;
5806
+ updated_at: string;
5807
+ };
5808
+ Insert: {
5809
+ cart_number: number;
5810
+ created_at?: string;
5811
+ id?: string;
5812
+ is_auto?: boolean;
5813
+ is_complete?: boolean;
5814
+ notes?: string | null;
5815
+ order_id: string;
5816
+ updated_at?: string;
5817
+ };
5818
+ Update: {
5819
+ cart_number?: number;
5820
+ created_at?: string;
5821
+ id?: string;
5822
+ is_auto?: boolean;
5823
+ is_complete?: boolean;
5824
+ notes?: string | null;
5825
+ order_id?: string;
5826
+ updated_at?: string;
5827
+ };
5828
+ Relationships: [
5829
+ {
5830
+ foreignKeyName: "order_carts_order_id_fkey";
5831
+ columns: ["order_id"];
5832
+ isOneToOne: false;
5833
+ referencedRelation: "orders";
5834
+ referencedColumns: ["id"];
5835
+ }
5836
+ ];
5837
+ };
4045
5838
  order_field_options: {
4046
5839
  Row: {
4047
5840
  created_at: string;
@@ -4158,6 +5951,24 @@ export type Database = {
4158
5951
  }
4159
5952
  ];
4160
5953
  };
5954
+ order_number_counters: {
5955
+ Row: {
5956
+ last_value: number;
5957
+ updated_at: string;
5958
+ year: number;
5959
+ };
5960
+ Insert: {
5961
+ last_value?: number;
5962
+ updated_at?: string;
5963
+ year: number;
5964
+ };
5965
+ Update: {
5966
+ last_value?: number;
5967
+ updated_at?: string;
5968
+ year?: number;
5969
+ };
5970
+ Relationships: [];
5971
+ };
4161
5972
  orders: {
4162
5973
  Row: {
4163
5974
  created_at: string;
@@ -4170,6 +5981,7 @@ export type Database = {
4170
5981
  notes: string | null;
4171
5982
  order_date: string;
4172
5983
  order_number: string;
5984
+ order_source: string;
4173
5985
  status: string;
4174
5986
  total: string;
4175
5987
  updated_at: string;
@@ -4185,6 +5997,7 @@ export type Database = {
4185
5997
  notes?: string | null;
4186
5998
  order_date?: string;
4187
5999
  order_number: string;
6000
+ order_source?: string;
4188
6001
  status?: string;
4189
6002
  total?: string;
4190
6003
  updated_at?: string;
@@ -4200,6 +6013,7 @@ export type Database = {
4200
6013
  notes?: string | null;
4201
6014
  order_date?: string;
4202
6015
  order_number?: string;
6016
+ order_source?: string;
4203
6017
  status?: string;
4204
6018
  total?: string;
4205
6019
  updated_at?: string;
@@ -4250,6 +6064,36 @@ export type Database = {
4250
6064
  };
4251
6065
  Relationships: [];
4252
6066
  };
6067
+ pickstation_print_log: {
6068
+ Row: {
6069
+ customer_name: string | null;
6070
+ documents: string[];
6071
+ id: string;
6072
+ ip_address: string | null;
6073
+ order_id: string;
6074
+ order_number: string | null;
6075
+ printed_at: string;
6076
+ };
6077
+ Insert: {
6078
+ customer_name?: string | null;
6079
+ documents?: string[];
6080
+ id?: string;
6081
+ ip_address?: string | null;
6082
+ order_id: string;
6083
+ order_number?: string | null;
6084
+ printed_at?: string;
6085
+ };
6086
+ Update: {
6087
+ customer_name?: string | null;
6088
+ documents?: string[];
6089
+ id?: string;
6090
+ ip_address?: string | null;
6091
+ order_id?: string;
6092
+ order_number?: string | null;
6093
+ printed_at?: string;
6094
+ };
6095
+ Relationships: [];
6096
+ };
4253
6097
  pipeline_settings: {
4254
6098
  Row: {
4255
6099
  created_at: string;
@@ -4412,13 +6256,16 @@ export type Database = {
4412
6256
  Row: {
4413
6257
  barcode: string | null;
4414
6258
  batch: string;
6259
+ crates_per_layer: number;
4415
6260
  created_at: string;
4416
6261
  custom_fields: Json;
4417
6262
  id: string;
4418
6263
  image_url: string | null;
4419
6264
  incoming_quantity: number;
6265
+ layers_per_cart: number;
4420
6266
  location: string;
4421
6267
  min_quantity: number;
6268
+ plants_per_crate: number;
4422
6269
  product: string;
4423
6270
  product_type: string;
4424
6271
  purchase_price: number | null;
@@ -4431,13 +6278,16 @@ export type Database = {
4431
6278
  Insert: {
4432
6279
  barcode?: string | null;
4433
6280
  batch: string;
6281
+ crates_per_layer?: number;
4434
6282
  created_at?: string;
4435
6283
  custom_fields?: Json;
4436
6284
  id?: string;
4437
6285
  image_url?: string | null;
4438
6286
  incoming_quantity?: number;
6287
+ layers_per_cart?: number;
4439
6288
  location: string;
4440
6289
  min_quantity?: number;
6290
+ plants_per_crate?: number;
4441
6291
  product: string;
4442
6292
  product_type?: string;
4443
6293
  purchase_price?: number | null;
@@ -4450,13 +6300,16 @@ export type Database = {
4450
6300
  Update: {
4451
6301
  barcode?: string | null;
4452
6302
  batch?: string;
6303
+ crates_per_layer?: number;
4453
6304
  created_at?: string;
4454
6305
  custom_fields?: Json;
4455
6306
  id?: string;
4456
6307
  image_url?: string | null;
4457
6308
  incoming_quantity?: number;
6309
+ layers_per_cart?: number;
4458
6310
  location?: string;
4459
6311
  min_quantity?: number;
6312
+ plants_per_crate?: number;
4460
6313
  product?: string;
4461
6314
  product_type?: string;
4462
6315
  purchase_price?: number | null;
@@ -5432,6 +7285,147 @@ export type Database = {
5432
7285
  };
5433
7286
  Relationships: [];
5434
7287
  };
7288
+ time_entries: {
7289
+ Row: {
7290
+ created_at: string;
7291
+ employee_id: string;
7292
+ entry_date: string;
7293
+ hours: number;
7294
+ id: string;
7295
+ notes: string | null;
7296
+ overtime: number;
7297
+ undertime: number;
7298
+ updated_at: string;
7299
+ };
7300
+ Insert: {
7301
+ created_at?: string;
7302
+ employee_id: string;
7303
+ entry_date: string;
7304
+ hours?: number;
7305
+ id?: string;
7306
+ notes?: string | null;
7307
+ overtime?: number;
7308
+ undertime?: number;
7309
+ updated_at?: string;
7310
+ };
7311
+ Update: {
7312
+ created_at?: string;
7313
+ employee_id?: string;
7314
+ entry_date?: string;
7315
+ hours?: number;
7316
+ id?: string;
7317
+ notes?: string | null;
7318
+ overtime?: number;
7319
+ undertime?: number;
7320
+ updated_at?: string;
7321
+ };
7322
+ Relationships: [
7323
+ {
7324
+ foreignKeyName: "time_entries_employee_id_fkey";
7325
+ columns: ["employee_id"];
7326
+ isOneToOne: false;
7327
+ referencedRelation: "monteurs";
7328
+ referencedColumns: ["id"];
7329
+ }
7330
+ ];
7331
+ };
7332
+ time_logs: {
7333
+ Row: {
7334
+ created_at: string;
7335
+ employee_id: string;
7336
+ end_time: string | null;
7337
+ id: string;
7338
+ notes: string | null;
7339
+ overtime_hours: number;
7340
+ overtime_type: string | null;
7341
+ regular_hours: number;
7342
+ start_time: string;
7343
+ travel_cost: number | null;
7344
+ travel_distance_km: number | null;
7345
+ type: string;
7346
+ updated_at: string;
7347
+ };
7348
+ Insert: {
7349
+ created_at?: string;
7350
+ employee_id: string;
7351
+ end_time?: string | null;
7352
+ id?: string;
7353
+ notes?: string | null;
7354
+ overtime_hours?: number;
7355
+ overtime_type?: string | null;
7356
+ regular_hours?: number;
7357
+ start_time?: string;
7358
+ travel_cost?: number | null;
7359
+ travel_distance_km?: number | null;
7360
+ type: string;
7361
+ updated_at?: string;
7362
+ };
7363
+ Update: {
7364
+ created_at?: string;
7365
+ employee_id?: string;
7366
+ end_time?: string | null;
7367
+ id?: string;
7368
+ notes?: string | null;
7369
+ overtime_hours?: number;
7370
+ overtime_type?: string | null;
7371
+ regular_hours?: number;
7372
+ start_time?: string;
7373
+ travel_cost?: number | null;
7374
+ travel_distance_km?: number | null;
7375
+ type?: string;
7376
+ updated_at?: string;
7377
+ };
7378
+ Relationships: [
7379
+ {
7380
+ foreignKeyName: "time_logs_employee_id_fkey";
7381
+ columns: ["employee_id"];
7382
+ isOneToOne: false;
7383
+ referencedRelation: "monteurs";
7384
+ referencedColumns: ["id"];
7385
+ }
7386
+ ];
7387
+ };
7388
+ time_off_entries: {
7389
+ Row: {
7390
+ created_at: string;
7391
+ employee_id: string;
7392
+ entry_date: string;
7393
+ hours: number;
7394
+ id: string;
7395
+ notes: string | null;
7396
+ type: string;
7397
+ updated_at: string;
7398
+ };
7399
+ Insert: {
7400
+ created_at?: string;
7401
+ employee_id: string;
7402
+ entry_date: string;
7403
+ hours?: number;
7404
+ id?: string;
7405
+ notes?: string | null;
7406
+ type: string;
7407
+ updated_at?: string;
7408
+ };
7409
+ Update: {
7410
+ created_at?: string;
7411
+ employee_id?: string;
7412
+ entry_date?: string;
7413
+ hours?: number;
7414
+ id?: string;
7415
+ notes?: string | null;
7416
+ type?: string;
7417
+ updated_at?: string;
7418
+ };
7419
+ Relationships: [
7420
+ {
7421
+ foreignKeyName: "time_off_entries_employee_id_fkey";
7422
+ columns: ["employee_id"];
7423
+ isOneToOne: false;
7424
+ referencedRelation: "monteurs";
7425
+ referencedColumns: ["id"];
7426
+ }
7427
+ ];
7428
+ };
5435
7429
  trade_item_drafts: {
5436
7430
  Row: {
5437
7431
  connection_id: string | null;
@@ -5733,9 +7727,11 @@ export type Database = {
5733
7727
  fetched_at: string;
5734
7728
  invoice_number: string;
5735
7729
  line_number: number;
7730
+ line_total: number | null;
5736
7731
  quantity: number | null;
5737
7732
  unit_price: number | null;
5738
7733
  vat_code: string | null;
7734
+ vat_rate: number | null;
5739
7735
  };
5740
7736
  Insert: {
5741
7737
  article_code?: string | null;
@@ -5745,9 +7741,11 @@ export type Database = {
5745
7741
  fetched_at?: string;
5746
7742
  invoice_number: string;
5747
7743
  line_number: number;
7744
+ line_total?: number | null;
5748
7745
  quantity?: number | null;
5749
7746
  unit_price?: number | null;
5750
7747
  vat_code?: string | null;
7748
+ vat_rate?: number | null;
5751
7749
  };
5752
7750
  Update: {
5753
7751
  article_code?: string | null;
@@ -5757,9 +7755,11 @@ export type Database = {
5757
7755
  fetched_at?: string;
5758
7756
  invoice_number?: string;
5759
7757
  line_number?: number;
7758
+ line_total?: number | null;
5760
7759
  quantity?: number | null;
5761
7760
  unit_price?: number | null;
5762
7761
  vat_code?: string | null;
7762
+ vat_rate?: number | null;
5763
7763
  };
5764
7764
  Relationships: [
5765
7765
  {
@@ -5938,9 +7938,12 @@ export type Database = {
5938
7938
  invoice_date: string | null;
5939
7939
  invoice_number: string;
5940
7940
  modified_at: string | null;
7941
+ outstanding_amount: number | null;
5941
7942
  status: string | null;
7943
+ status_label: string | null;
5942
7944
  total_excl: number | null;
5943
7945
  total_incl: number | null;
7946
+ vat_amount: number | null;
5944
7947
  };
5945
7948
  Insert: {
5946
7949
  connection_id: string;
@@ -5952,9 +7955,12 @@ export type Database = {
5952
7955
  invoice_date?: string | null;
5953
7956
  invoice_number: string;
5954
7957
  modified_at?: string | null;
7958
+ outstanding_amount?: number | null;
5955
7959
  status?: string | null;
7960
+ status_label?: string | null;
5956
7961
  total_excl?: number | null;
5957
7962
  total_incl?: number | null;
7963
+ vat_amount?: number | null;
5958
7964
  };
5959
7965
  Update: {
5960
7966
  connection_id?: string;
@@ -5966,9 +7972,12 @@ export type Database = {
5966
7972
  invoice_date?: string | null;
5967
7973
  invoice_number?: string;
5968
7974
  modified_at?: string | null;
7975
+ outstanding_amount?: number | null;
5969
7976
  status?: string | null;
7977
+ status_label?: string | null;
5970
7978
  total_excl?: number | null;
5971
7979
  total_incl?: number | null;
7980
+ vat_amount?: number | null;
5972
7981
  };
5973
7982
  Relationships: [
5974
7983
  {
@@ -6002,7 +8011,60 @@ export type Database = {
6002
8011
  state?: string;
6003
8012
  user_id?: string;
6004
8013
  };
6005
- Relationships: [];
8014
+ Relationships: [];
8015
+ };
8016
+ twinfield_push_queue: {
8017
+ Row: {
8018
+ attempts: number;
8019
+ connection_id: string;
8020
+ created_at: string;
8021
+ external_id: string | null;
8022
+ id: string;
8023
+ idempotency_key: string;
8024
+ last_error: string | null;
8025
+ next_attempt_at: string;
8026
+ office_code: string;
8027
+ payload: Json;
8028
+ status: string;
8029
+ updated_at: string;
8030
+ };
8031
+ Insert: {
8032
+ attempts?: number;
8033
+ connection_id: string;
8034
+ created_at?: string;
8035
+ external_id?: string | null;
8036
+ id?: string;
8037
+ idempotency_key: string;
8038
+ last_error?: string | null;
8039
+ next_attempt_at?: string;
8040
+ office_code: string;
8041
+ payload: Json;
8042
+ status?: string;
8043
+ updated_at?: string;
8044
+ };
8045
+ Update: {
8046
+ attempts?: number;
8047
+ connection_id?: string;
8048
+ created_at?: string;
8049
+ external_id?: string | null;
8050
+ id?: string;
8051
+ idempotency_key?: string;
8052
+ last_error?: string | null;
8053
+ next_attempt_at?: string;
8054
+ office_code?: string;
8055
+ payload?: Json;
8056
+ status?: string;
8057
+ updated_at?: string;
8058
+ };
8059
+ Relationships: [
8060
+ {
8061
+ foreignKeyName: "twinfield_push_queue_connection_id_fkey";
8062
+ columns: ["connection_id"];
8063
+ isOneToOne: false;
8064
+ referencedRelation: "twinfield_connections";
8065
+ referencedColumns: ["id"];
8066
+ }
8067
+ ];
6006
8068
  };
6007
8069
  twinfield_settings: {
6008
8070
  Row: {
@@ -6121,6 +8183,117 @@ export type Database = {
6121
8183
  }
6122
8184
  ];
6123
8185
  };
8186
+ voorraad_media_upload_failures: {
8187
+ Row: {
8188
+ action: string;
8189
+ attempt_number: number;
8190
+ caller: string;
8191
+ client_user_id: string | null;
8192
+ content_type: string | null;
8193
+ created_at: string;
8194
+ environment: string;
8195
+ error_message: string | null;
8196
+ filename: string | null;
8197
+ id: string;
8198
+ idempotency_key: string | null;
8199
+ module: string;
8200
+ path: string;
8201
+ reference_id: string | null;
8202
+ request_body_hash: string | null;
8203
+ request_timestamp: number | null;
8204
+ response_content_type: string | null;
8205
+ response_status: number | null;
8206
+ size_bytes: number | null;
8207
+ };
8208
+ Insert: {
8209
+ action?: string;
8210
+ attempt_number?: number;
8211
+ caller?: string;
8212
+ client_user_id?: string | null;
8213
+ content_type?: string | null;
8214
+ created_at?: string;
8215
+ environment: string;
8216
+ error_message?: string | null;
8217
+ filename?: string | null;
8218
+ id?: string;
8219
+ idempotency_key?: string | null;
8220
+ module?: string;
8221
+ path: string;
8222
+ reference_id?: string | null;
8223
+ request_body_hash?: string | null;
8224
+ request_timestamp?: number | null;
8225
+ response_content_type?: string | null;
8226
+ response_status?: number | null;
8227
+ size_bytes?: number | null;
8228
+ };
8229
+ Update: {
8230
+ action?: string;
8231
+ attempt_number?: number;
8232
+ caller?: string;
8233
+ client_user_id?: string | null;
8234
+ content_type?: string | null;
8235
+ created_at?: string;
8236
+ environment?: string;
8237
+ error_message?: string | null;
8238
+ filename?: string | null;
8239
+ id?: string;
8240
+ idempotency_key?: string | null;
8241
+ module?: string;
8242
+ path?: string;
8243
+ reference_id?: string | null;
8244
+ request_body_hash?: string | null;
8245
+ request_timestamp?: number | null;
8246
+ response_content_type?: string | null;
8247
+ response_status?: number | null;
8248
+ size_bytes?: number | null;
8249
+ };
8250
+ Relationships: [];
8251
+ };
8252
+ voorraad_publish_attempts: {
8253
+ Row: {
8254
+ action: string;
8255
+ connection_id: string | null;
8256
+ created_at: string;
8257
+ error: string | null;
8258
+ gateway_attempt_id: string | null;
8259
+ gateway_status: number | null;
8260
+ id: string;
8261
+ intent: string;
8262
+ ok: boolean;
8263
+ request_summary: Json | null;
8264
+ trade_item_id: string | null;
8265
+ user_id: string;
8266
+ };
8267
+ Insert: {
8268
+ action: string;
8269
+ connection_id?: string | null;
8270
+ created_at?: string;
8271
+ error?: string | null;
8272
+ gateway_attempt_id?: string | null;
8273
+ gateway_status?: number | null;
8274
+ id?: string;
8275
+ intent: string;
8276
+ ok: boolean;
8277
+ request_summary?: Json | null;
8278
+ trade_item_id?: string | null;
8279
+ user_id: string;
8280
+ };
8281
+ Update: {
8282
+ action?: string;
8283
+ connection_id?: string | null;
8284
+ created_at?: string;
8285
+ error?: string | null;
8286
+ gateway_attempt_id?: string | null;
8287
+ gateway_status?: number | null;
8288
+ id?: string;
8289
+ intent?: string;
8290
+ ok?: boolean;
8291
+ request_summary?: Json | null;
8292
+ trade_item_id?: string | null;
8293
+ user_id?: string;
8294
+ };
8295
+ Relationships: [];
8296
+ };
6124
8297
  work_order_monteurs: {
6125
8298
  Row: {
6126
8299
  created_at: string;
@@ -6438,6 +8611,134 @@ export type Database = {
6438
8611
  };
6439
8612
  Relationships: [];
6440
8613
  };
8614
+ external_invoices_grouped: {
8615
+ Row: {
8616
+ currency: string | null;
8617
+ customer_external_id: string | null;
8618
+ customer_name: string | null;
8619
+ customer_vat: string | null;
8620
+ due_at: string | null;
8621
+ group_key: string | null;
8622
+ invoice_number: string | null;
8623
+ is_merged: boolean | null;
8624
+ issued_at: string | null;
8625
+ modified_at: string | null;
8626
+ open_amount: number | null;
8627
+ paid_at: string | null;
8628
+ providers: string[] | null;
8629
+ source_count: number | null;
8630
+ sources: Json | null;
8631
+ status: string | null;
8632
+ total_excl: number | null;
8633
+ total_incl: number | null;
8634
+ total_vat: number | null;
8635
+ };
8636
+ Relationships: [];
8637
+ };
8638
+ external_invoices_unified: {
8639
+ Row: {
8640
+ connection_id: string | null;
8641
+ currency: string | null;
8642
+ customer_external_id: string | null;
8643
+ customer_name: string | null;
8644
+ customer_vat: string | null;
8645
+ due_at: string | null;
8646
+ external_id: string | null;
8647
+ invoice_number: string | null;
8648
+ issued_at: string | null;
8649
+ open_amount: number | null;
8650
+ owner_user_id: string | null;
8651
+ paid_at: string | null;
8652
+ raw: Json | null;
8653
+ source: string | null;
8654
+ status: string | null;
8655
+ synced_at: string | null;
8656
+ total_excl: number | null;
8657
+ total_incl: number | null;
8658
+ total_vat: number | null;
8659
+ };
8660
+ Relationships: [];
8661
+ };
8662
+ v_external_customers_exact: {
8663
+ Row: {
8664
+ account_number: string | null;
8665
+ city: string | null;
8666
+ coc_number: string | null;
8667
+ company_name: string | null;
8668
+ connection_id: string | null;
8669
+ country: string | null;
8670
+ currency: string | null;
8671
+ email: string | null;
8672
+ external_id: string | null;
8673
+ is_sales: boolean | null;
8674
+ is_supplier: boolean | null;
8675
+ language: string | null;
8676
+ modified_at: string | null;
8677
+ phone: string | null;
8678
+ postal_code: string | null;
8679
+ raw: Json | null;
8680
+ source: string | null;
8681
+ street: string | null;
8682
+ synced_at: string | null;
8683
+ vat_number: string | null;
8684
+ website: string | null;
8685
+ };
8686
+ Insert: {
8687
+ account_number?: string | null;
8688
+ city?: string | null;
8689
+ coc_number?: string | null;
8690
+ company_name?: string | null;
8691
+ connection_id?: string | null;
8692
+ country?: string | null;
8693
+ currency?: string | null;
8694
+ email?: string | null;
8695
+ external_id?: string | null;
8696
+ is_sales?: boolean | null;
8697
+ is_supplier?: boolean | null;
8698
+ language?: string | null;
8699
+ modified_at?: string | null;
8700
+ phone?: string | null;
8701
+ postal_code?: string | null;
8702
+ raw?: Json | null;
8703
+ source?: never;
8704
+ street?: string | null;
8705
+ synced_at?: string | null;
8706
+ vat_number?: string | null;
8707
+ website?: string | null;
8708
+ };
8709
+ Update: {
8710
+ account_number?: string | null;
8711
+ city?: string | null;
8712
+ coc_number?: string | null;
8713
+ company_name?: string | null;
8714
+ connection_id?: string | null;
8715
+ country?: string | null;
8716
+ currency?: string | null;
8717
+ email?: string | null;
8718
+ external_id?: string | null;
8719
+ is_sales?: boolean | null;
8720
+ is_supplier?: boolean | null;
8721
+ language?: string | null;
8722
+ modified_at?: string | null;
8723
+ phone?: string | null;
8724
+ postal_code?: string | null;
8725
+ raw?: Json | null;
8726
+ source?: never;
8727
+ street?: string | null;
8728
+ synced_at?: string | null;
8729
+ vat_number?: string | null;
8730
+ website?: string | null;
8731
+ };
8732
+ Relationships: [
8733
+ {
8734
+ foreignKeyName: "exact_customers_cache_connection_id_fkey";
8735
+ columns: ["connection_id"];
8736
+ isOneToOne: false;
8737
+ referencedRelation: "exact_connections";
8738
+ referencedColumns: ["id"];
8739
+ }
8740
+ ];
8741
+ };
6441
8742
  v_external_customers_floriday: {
6442
8743
  Row: {
6443
8744
  city: string | null;
@@ -6498,18 +8799,154 @@ export type Database = {
6498
8799
  vat_number: string | null;
6499
8800
  website: string | null;
6500
8801
  };
6501
- Relationships: [
6502
- {
6503
- foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
6504
- columns: ["connection_id"];
6505
- isOneToOne: false;
6506
- referencedRelation: "twinfield_connections";
6507
- referencedColumns: ["id"];
6508
- }
6509
- ];
8802
+ Relationships: [
8803
+ {
8804
+ foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
8805
+ columns: ["connection_id"];
8806
+ isOneToOne: false;
8807
+ referencedRelation: "twinfield_connections";
8808
+ referencedColumns: ["id"];
8809
+ }
8810
+ ];
8811
+ };
8812
+ v_external_invoices_exact: {
8813
+ Row: {
8814
+ connection_id: string | null;
8815
+ currency: string | null;
8816
+ customer_external_id: string | null;
8817
+ customer_name: string | null;
8818
+ customer_vat: string | null;
8819
+ due_at: string | null;
8820
+ external_id: string | null;
8821
+ invoice_number: string | null;
8822
+ issued_at: string | null;
8823
+ open_amount: number | null;
8824
+ paid_at: string | null;
8825
+ raw: Json | null;
8826
+ source: string | null;
8827
+ status: string | null;
8828
+ synced_at: string | null;
8829
+ total_excl: number | null;
8830
+ total_incl: number | null;
8831
+ total_vat: number | null;
8832
+ };
8833
+ Insert: {
8834
+ connection_id?: string | null;
8835
+ currency?: never;
8836
+ customer_external_id?: string | null;
8837
+ customer_name?: string | null;
8838
+ customer_vat?: never;
8839
+ due_at?: string | null;
8840
+ external_id?: string | null;
8841
+ invoice_number?: string | null;
8842
+ issued_at?: string | null;
8843
+ open_amount?: number | null;
8844
+ paid_at?: string | null;
8845
+ raw?: Json | null;
8846
+ source?: never;
8847
+ status?: string | null;
8848
+ synced_at?: string | null;
8849
+ total_excl?: number | null;
8850
+ total_incl?: number | null;
8851
+ total_vat?: number | null;
8852
+ };
8853
+ Update: {
8854
+ connection_id?: string | null;
8855
+ currency?: never;
8856
+ customer_external_id?: string | null;
8857
+ customer_name?: string | null;
8858
+ customer_vat?: never;
8859
+ due_at?: string | null;
8860
+ external_id?: string | null;
8861
+ invoice_number?: string | null;
8862
+ issued_at?: string | null;
8863
+ open_amount?: number | null;
8864
+ paid_at?: string | null;
8865
+ raw?: Json | null;
8866
+ source?: never;
8867
+ status?: string | null;
8868
+ synced_at?: string | null;
8869
+ total_excl?: number | null;
8870
+ total_incl?: number | null;
8871
+ total_vat?: number | null;
8872
+ };
8873
+ Relationships: [
8874
+ {
8875
+ foreignKeyName: "exact_invoices_cache_connection_id_fkey";
8876
+ columns: ["connection_id"];
8877
+ isOneToOne: false;
8878
+ referencedRelation: "exact_connections";
8879
+ referencedColumns: ["id"];
8880
+ }
8881
+ ];
8882
+ };
8883
+ v_external_invoices_twinfield: {
8884
+ Row: {
8885
+ connection_id: string | null;
8886
+ currency: string | null;
8887
+ customer_external_id: string | null;
8888
+ customer_name: string | null;
8889
+ customer_vat: string | null;
8890
+ due_at: string | null;
8891
+ external_id: string | null;
8892
+ invoice_number: string | null;
8893
+ issued_at: string | null;
8894
+ open_amount: number | null;
8895
+ owner_user_id: string | null;
8896
+ paid_at: string | null;
8897
+ raw: Json | null;
8898
+ source: string | null;
8899
+ status: string | null;
8900
+ synced_at: string | null;
8901
+ total_excl: number | null;
8902
+ total_incl: number | null;
8903
+ total_vat: number | null;
8904
+ };
8905
+ Relationships: [
8906
+ {
8907
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
8908
+ columns: ["connection_id"];
8909
+ isOneToOne: false;
8910
+ referencedRelation: "twinfield_connections";
8911
+ referencedColumns: ["id"];
8912
+ }
8913
+ ];
8914
+ };
8915
+ };
8916
+ Functions: {
8917
+ _floriday_schedule_job: {
8918
+ Args: {
8919
+ p_apikey: string;
8920
+ p_jobname: string;
8921
+ p_schedule: string;
8922
+ p_timeout_ms: number;
8923
+ p_url: string;
8924
+ };
8925
+ Returns: number;
8926
+ };
8927
+ assign_floriday_order_numbers: {
8928
+ Args: {
8929
+ p_ids: string[];
8930
+ };
8931
+ Returns: {
8932
+ floriday_id: string;
8933
+ order_number: string;
8934
+ }[];
8935
+ };
8936
+ call_exact_route: {
8937
+ Args: {
8938
+ path: string;
8939
+ };
8940
+ Returns: number;
8941
+ };
8942
+ cleanup_old_bookings: {
8943
+ Args: never;
8944
+ Returns: number;
8945
+ };
8946
+ current_monteur_id: {
8947
+ Args: never;
8948
+ Returns: string;
6510
8949
  };
6511
- };
6512
- Functions: {
6513
8950
  dashboard_list_public_schema: {
6514
8951
  Args: never;
6515
8952
  Returns: {
@@ -6614,6 +9051,32 @@ export type Database = {
6614
9051
  office_code: string;
6615
9052
  }[];
6616
9053
  };
9054
+ get_floriday_agreements_active: {
9055
+ Args: {
9056
+ p_on_date?: string;
9057
+ };
9058
+ Returns: {
9059
+ buyer_organization_id: string;
9060
+ data: Json;
9061
+ floriday_id: string;
9062
+ status: string;
9063
+ valid_from: string;
9064
+ valid_until: string;
9065
+ }[];
9066
+ };
9067
+ get_floriday_clock_supplies_window: {
9068
+ Args: {
9069
+ p_from: string;
9070
+ p_to: string;
9071
+ };
9072
+ Returns: {
9073
+ auction_date: string;
9074
+ data: Json;
9075
+ floriday_id: string;
9076
+ status: string;
9077
+ trade_item_id: string;
9078
+ }[];
9079
+ };
6617
9080
  get_floriday_cron_jobs: {
6618
9081
  Args: never;
6619
9082
  Returns: {
@@ -6623,12 +9086,68 @@ export type Database = {
6623
9086
  url: string;
6624
9087
  }[];
6625
9088
  };
9089
+ get_floriday_delivery_locations: {
9090
+ Args: {
9091
+ p_organization_id: string;
9092
+ };
9093
+ Returns: {
9094
+ data: Json;
9095
+ floriday_id: string;
9096
+ gln_code: string;
9097
+ name: string;
9098
+ }[];
9099
+ };
9100
+ get_floriday_fulfillment_orders_window: {
9101
+ Args: {
9102
+ p_from: string;
9103
+ p_to: string;
9104
+ };
9105
+ Returns: {
9106
+ auction_date: string;
9107
+ data: Json;
9108
+ delivery_order_id: string;
9109
+ destination_warehouse_id: string;
9110
+ floriday_id: string;
9111
+ status: string;
9112
+ }[];
9113
+ };
9114
+ get_floriday_sales_orders_window: {
9115
+ Args: {
9116
+ p_from: string;
9117
+ p_to: string;
9118
+ };
9119
+ Returns: {
9120
+ buyer_organization_id: string;
9121
+ data: Json;
9122
+ floriday_id: string;
9123
+ status: string;
9124
+ updated_at: string;
9125
+ }[];
9126
+ };
9127
+ get_floriday_sync_health: {
9128
+ Args: never;
9129
+ Returns: {
9130
+ entity_type: string;
9131
+ last_error: string;
9132
+ last_items_processed: number;
9133
+ last_sequence_number: number;
9134
+ last_success_at: string;
9135
+ last_synced_at: string;
9136
+ minutes_since_success: number;
9137
+ }[];
9138
+ };
6626
9139
  get_offer_by_link_code: {
6627
9140
  Args: {
6628
9141
  p_code: string;
6629
9142
  };
6630
9143
  Returns: Json;
6631
9144
  };
9145
+ get_or_assign_floriday_order_number: {
9146
+ Args: {
9147
+ p_floriday_id: string;
9148
+ };
9149
+ Returns: string;
9150
+ };
6632
9151
  get_room_busy_windows: {
6633
9152
  Args: {
6634
9153
  p_from: string;
@@ -6675,6 +9194,12 @@ export type Database = {
6675
9194
  Args: never;
6676
9195
  Returns: boolean;
6677
9196
  };
9197
+ next_order_number: {
9198
+ Args: {
9199
+ p_prefix: string;
9200
+ };
9201
+ Returns: string;
9202
+ };
6678
9203
  next_work_order_number: {
6679
9204
  Args: {
6680
9205
  p_parent_work_order_id?: string;
@@ -6688,6 +9213,74 @@ export type Database = {
6688
9213
  };
6689
9214
  Returns: string;
6690
9215
  };
9216
+ pickstation_get_orders_raw: {
9217
+ Args: never;
9218
+ Returns: Json;
9219
+ };
9220
+ pickstation_get_settings: {
9221
+ Args: never;
9222
+ Returns: Json;
9223
+ };
9224
+ pickstation_log_print: {
9225
+ Args: {
9226
+ p_customer_name: string;
9227
+ p_documents: string[];
9228
+ p_ip_address: string;
9229
+ p_order_id: string;
9230
+ p_order_number: string;
9231
+ };
9232
+ Returns: undefined;
9233
+ };
9234
+ refresh_floricode_derived_code_lists: {
9235
+ Args: never;
9236
+ Returns: {
9237
+ environment: string;
9238
+ list_name: string;
9239
+ row_count: number;
9240
+ }[];
9241
+ };
9242
+ reset_floriday_sync_cursor: {
9243
+ Args: {
9244
+ p_connection_id: string;
9245
+ p_entity_type: string;
9246
+ };
9247
+ Returns: undefined;
9248
+ };
9249
+ schedule_floriday_additional_services_sync: {
9250
+ Args: {
9251
+ p_apikey: string;
9252
+ p_url: string;
9253
+ };
9254
+ Returns: number;
9255
+ };
9256
+ schedule_floriday_agreement_calloffs_sync: {
9257
+ Args: {
9258
+ p_apikey: string;
9259
+ p_url: string;
9260
+ };
9261
+ Returns: number;
9262
+ };
9263
+ schedule_floriday_agreements_sync: {
9264
+ Args: {
9265
+ p_apikey: string;
9266
+ p_url: string;
9267
+ };
9268
+ Returns: number;
9269
+ };
9270
+ schedule_floriday_base_items_sync: {
9271
+ Args: {
9272
+ p_apikey: string;
9273
+ p_url: string;
9274
+ };
9275
+ Returns: number;
9276
+ };
9277
+ schedule_floriday_blanket_orders_sync: {
9278
+ Args: {
9279
+ p_apikey: string;
9280
+ p_url: string;
9281
+ };
9282
+ Returns: number;
9283
+ };
6691
9284
  schedule_floriday_carriers_sync: {
6692
9285
  Args: {
6693
9286
  p_apikey: string;
@@ -6695,6 +9288,34 @@ export type Database = {
6695
9288
  };
6696
9289
  Returns: number;
6697
9290
  };
9291
+ schedule_floriday_clock_presales_sync: {
9292
+ Args: {
9293
+ p_apikey: string;
9294
+ p_url: string;
9295
+ };
9296
+ Returns: number;
9297
+ };
9298
+ schedule_floriday_clock_supplies_sync: {
9299
+ Args: {
9300
+ p_apikey: string;
9301
+ p_url: string;
9302
+ };
9303
+ Returns: number;
9304
+ };
9305
+ schedule_floriday_collections_sync: {
9306
+ Args: {
9307
+ p_apikey: string;
9308
+ p_url: string;
9309
+ };
9310
+ Returns: number;
9311
+ };
9312
+ schedule_floriday_commercial_service_types_sync: {
9313
+ Args: {
9314
+ p_apikey: string;
9315
+ p_url: string;
9316
+ };
9317
+ Returns: number;
9318
+ };
6698
9319
  schedule_floriday_connections_sync: {
6699
9320
  Args: {
6700
9321
  p_apikey: string;
@@ -6702,6 +9323,20 @@ export type Database = {
6702
9323
  };
6703
9324
  Returns: number;
6704
9325
  };
9326
+ schedule_floriday_contract_trade_item_groups_sync: {
9327
+ Args: {
9328
+ p_apikey: string;
9329
+ p_url: string;
9330
+ };
9331
+ Returns: number;
9332
+ };
9333
+ schedule_floriday_contracts_sync: {
9334
+ Args: {
9335
+ p_apikey: string;
9336
+ p_url: string;
9337
+ };
9338
+ Returns: number;
9339
+ };
6705
9340
  schedule_floriday_customer_organizations_sync: {
6706
9341
  Args: {
6707
9342
  p_apikey: string;
@@ -6709,6 +9344,48 @@ export type Database = {
6709
9344
  };
6710
9345
  Returns: number;
6711
9346
  };
9347
+ schedule_floriday_customer_stickers_sync: {
9348
+ Args: {
9349
+ p_apikey: string;
9350
+ p_url: string;
9351
+ };
9352
+ Returns: number;
9353
+ };
9354
+ schedule_floriday_delivery_condition_sets_sync: {
9355
+ Args: {
9356
+ p_apikey: string;
9357
+ p_url: string;
9358
+ };
9359
+ Returns: number;
9360
+ };
9361
+ schedule_floriday_delivery_locations_sync: {
9362
+ Args: {
9363
+ p_apikey: string;
9364
+ p_url: string;
9365
+ };
9366
+ Returns: number;
9367
+ };
9368
+ schedule_floriday_delivery_orders_sync: {
9369
+ Args: {
9370
+ p_apikey: string;
9371
+ p_url: string;
9372
+ };
9373
+ Returns: number;
9374
+ };
9375
+ schedule_floriday_fulfillment_orders_sync: {
9376
+ Args: {
9377
+ p_apikey: string;
9378
+ p_url: string;
9379
+ };
9380
+ Returns: number;
9381
+ };
9382
+ schedule_floriday_invoices_sync: {
9383
+ Args: {
9384
+ p_apikey: string;
9385
+ p_url: string;
9386
+ };
9387
+ Returns: number;
9388
+ };
6712
9389
  schedule_floriday_network_sync: {
6713
9390
  Args: {
6714
9391
  p_apikey: string;
@@ -6716,6 +9393,34 @@ export type Database = {
6716
9393
  };
6717
9394
  Returns: number;
6718
9395
  };
9396
+ schedule_floriday_packings_sync: {
9397
+ Args: {
9398
+ p_apikey: string;
9399
+ p_url: string;
9400
+ };
9401
+ Returns: number;
9402
+ };
9403
+ schedule_floriday_price_groups_sync: {
9404
+ Args: {
9405
+ p_apikey: string;
9406
+ p_url: string;
9407
+ };
9408
+ Returns: number;
9409
+ };
9410
+ schedule_floriday_reference_data_refresh: {
9411
+ Args: {
9412
+ p_apikey: string;
9413
+ p_url: string;
9414
+ };
9415
+ Returns: number;
9416
+ };
9417
+ schedule_floriday_sales_strategies_sync: {
9418
+ Args: {
9419
+ p_apikey: string;
9420
+ p_url: string;
9421
+ };
9422
+ Returns: number;
9423
+ };
6719
9424
  schedule_floriday_salesorders_sync: {
6720
9425
  Args: {
6721
9426
  p_apikey: string;
@@ -6730,6 +9435,13 @@ export type Database = {
6730
9435
  };
6731
9436
  Returns: number;
6732
9437
  };
9438
+ schedule_floriday_trade_item_classifications_sync: {
9439
+ Args: {
9440
+ p_apikey: string;
9441
+ p_url: string;
9442
+ };
9443
+ Returns: number;
9444
+ };
6733
9445
  schedule_floriday_trade_items_sync: {
6734
9446
  Args: {
6735
9447
  p_apikey: string;
@@ -6737,6 +9449,20 @@ export type Database = {
6737
9449
  };
6738
9450
  Returns: number;
6739
9451
  };
9452
+ schedule_floriday_trips_sync: {
9453
+ Args: {
9454
+ p_apikey: string;
9455
+ p_url: string;
9456
+ };
9457
+ Returns: number;
9458
+ };
9459
+ schedule_floriday_warehouses_sync: {
9460
+ Args: {
9461
+ p_apikey: string;
9462
+ p_url: string;
9463
+ };
9464
+ Returns: number;
9465
+ };
6740
9466
  schedule_twinfield_customers_sync: {
6741
9467
  Args: {
6742
9468
  p_apikey: string;
@@ -6765,6 +9491,14 @@ export type Database = {
6765
9491
  };
6766
9492
  Returns: number;
6767
9493
  };
9494
+ schedule_twinfield_push_queue_flush: {
9495
+ Args: {
9496
+ p_apikey: string;
9497
+ p_cron_secret?: string;
9498
+ p_url: string;
9499
+ };
9500
+ Returns: number;
9501
+ };
6768
9502
  schedule_twinfield_token_refresh: {
6769
9503
  Args: {
6770
9504
  p_apikey: string;
@@ -6803,8 +9537,9 @@ export type Database = {
6803
9537
  };
6804
9538
  };
6805
9539
  Enums: {
6806
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
9540
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
6807
9541
  exact_env: "staging" | "live";
9542
+ exact_push_status: "pending" | "sent" | "error";
6808
9543
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
6809
9544
  };
6810
9545
  CompositeTypes: {
@@ -6864,8 +9599,9 @@ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof Defaul
6864
9599
  export declare const Constants: {
6865
9600
  readonly public: {
6866
9601
  readonly Enums: {
6867
- readonly app_role: readonly ["admin", "manager", "warehouse", "sales", "developer", "receptie"];
9602
+ readonly app_role: readonly ["admin", "manager", "warehouse", "sales", "developer", "receptie", "monteur"];
6868
9603
  readonly exact_env: readonly ["staging", "live"];
9604
+ readonly exact_push_status: readonly ["pending", "sent", "error"];
6869
9605
  readonly quote_status: readonly ["concept", "verzonden", "bekeken", "in_behandeling", "geaccepteerd", "afgewezen", "verlopen", "gearchiveerd"];
6870
9606
  };
6871
9607
  };