@flowselections/floriday-verkoop-module 1.0.8 → 1.0.9

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 (35) hide show
  1. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +9 -0
  2. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +1 -0
  3. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.js +26 -0
  4. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  5. package/dist-lib/components/verkoop/CreateOrderPage.js +6 -9
  6. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  7. package/dist-lib/components/verkoop/VerkoopOrdersPage.js +2 -1
  8. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2667 -169
  9. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/client.d.ts +2667 -169
  11. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/client.server.d.ts +2667 -169
  13. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/types.d.ts +2736 -155
  15. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/types.js +2 -0
  17. package/dist-lib/lib/floriday-gateway.server.d.ts +42 -0
  18. package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -0
  19. package/dist-lib/lib/floriday-gateway.server.js +222 -0
  20. package/dist-lib/lib/floriday-public.functions.d.ts +63971 -0
  21. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -0
  22. package/dist-lib/lib/floriday-public.functions.js +210 -0
  23. package/dist-lib/lib/floriday-sync.d.ts.map +1 -1
  24. package/dist-lib/lib/floriday-sync.js +18 -79
  25. package/dist-lib/lib/floriday-writes.functions.d.ts +45678 -0
  26. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -0
  27. package/dist-lib/lib/floriday-writes.functions.js +110 -0
  28. package/dist-lib/lib/salesorders.functions.d.ts +17178 -9683
  29. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/salesorders.functions.js +44 -86
  31. package/dist-lib/lib/tradeitems.functions.d.ts +2667 -169
  32. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
  34. package/dist-lib/lib/useSalesOrdersQuery.js +11 -25
  35. package/package.json +1 -1
@@ -2,6 +2,48 @@ import type { Database } from './types';
2
2
  export declare const requireSupabaseAuth: import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
3
3
  supabase: import("@supabase/supabase-js").SupabaseClient<Database, "public", "public", {
4
4
  Tables: {
5
+ afhandeling_settings: {
6
+ Row: {
7
+ created_at: string;
8
+ id: string;
9
+ max_workdays_earlier_pick: number;
10
+ pick_days_before_transport: number;
11
+ pick_distribution_enabled: boolean;
12
+ signup_mail_enabled: boolean;
13
+ signup_mail_lead_minutes: number;
14
+ signup_mail_purpose: string;
15
+ transport_register_days_before: number;
16
+ updated_at: string;
17
+ user_id: string;
18
+ };
19
+ Insert: {
20
+ created_at?: string;
21
+ id?: string;
22
+ max_workdays_earlier_pick?: number;
23
+ pick_days_before_transport?: number;
24
+ pick_distribution_enabled?: boolean;
25
+ signup_mail_enabled?: boolean;
26
+ signup_mail_lead_minutes?: number;
27
+ signup_mail_purpose?: string;
28
+ transport_register_days_before?: number;
29
+ updated_at?: string;
30
+ user_id: string;
31
+ };
32
+ Update: {
33
+ created_at?: string;
34
+ id?: string;
35
+ max_workdays_earlier_pick?: number;
36
+ pick_days_before_transport?: number;
37
+ pick_distribution_enabled?: boolean;
38
+ signup_mail_enabled?: boolean;
39
+ signup_mail_lead_minutes?: number;
40
+ signup_mail_purpose?: string;
41
+ transport_register_days_before?: number;
42
+ updated_at?: string;
43
+ user_id?: string;
44
+ };
45
+ Relationships: [];
46
+ };
5
47
  agenda_connections: {
6
48
  Row: {
7
49
  account_email: string | null;
@@ -404,6 +446,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
404
446
  referencedColumns: ["id"];
405
447
  }];
406
448
  };
449
+ carrier_signup_dispatches: {
450
+ Row: {
451
+ carrier_id: string;
452
+ cart_count: number;
453
+ created_at: string;
454
+ id: string;
455
+ order_count: number;
456
+ outbox_id: string | null;
457
+ pickup_date: string;
458
+ pickup_moment_key: string;
459
+ sent_at: string;
460
+ signup_deadline: string;
461
+ };
462
+ Insert: {
463
+ carrier_id: string;
464
+ cart_count?: number;
465
+ created_at?: string;
466
+ id?: string;
467
+ order_count?: number;
468
+ outbox_id?: string | null;
469
+ pickup_date: string;
470
+ pickup_moment_key: string;
471
+ sent_at?: string;
472
+ signup_deadline: string;
473
+ };
474
+ Update: {
475
+ carrier_id?: string;
476
+ cart_count?: number;
477
+ created_at?: string;
478
+ id?: string;
479
+ order_count?: number;
480
+ outbox_id?: string | null;
481
+ pickup_date?: string;
482
+ pickup_moment_key?: string;
483
+ sent_at?: string;
484
+ signup_deadline?: string;
485
+ };
486
+ Relationships: [{
487
+ foreignKeyName: "carrier_signup_dispatches_carrier_id_fkey";
488
+ columns: ["carrier_id"];
489
+ isOneToOne: false;
490
+ referencedRelation: "carriers";
491
+ referencedColumns: ["id"];
492
+ }];
493
+ };
407
494
  carriers: {
408
495
  Row: {
409
496
  address: string | null;
@@ -412,11 +499,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
412
499
  delivery_days: number | null;
413
500
  email: string | null;
414
501
  id: string;
502
+ is_default: boolean;
415
503
  name: string;
416
504
  notes: string | null;
417
505
  phone: string | null;
506
+ pickup_moments: import("./types").Json;
507
+ service_cities: string[];
508
+ service_countries: string[];
509
+ service_provinces: string[];
510
+ signup_days_before_delivery: number;
418
511
  signup_time_1: string | null;
419
512
  signup_time_2: string | null;
513
+ sort_order: number;
420
514
  updated_at: string;
421
515
  user_id: string;
422
516
  };
@@ -427,11 +521,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
427
521
  delivery_days?: number | null;
428
522
  email?: string | null;
429
523
  id?: string;
524
+ is_default?: boolean;
430
525
  name: string;
431
526
  notes?: string | null;
432
527
  phone?: string | null;
528
+ pickup_moments?: import("./types").Json;
529
+ service_cities?: string[];
530
+ service_countries?: string[];
531
+ service_provinces?: string[];
532
+ signup_days_before_delivery?: number;
433
533
  signup_time_1?: string | null;
434
534
  signup_time_2?: string | null;
535
+ sort_order?: number;
435
536
  updated_at?: string;
436
537
  user_id: string;
437
538
  };
@@ -442,16 +543,62 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
442
543
  delivery_days?: number | null;
443
544
  email?: string | null;
444
545
  id?: string;
546
+ is_default?: boolean;
445
547
  name?: string;
446
548
  notes?: string | null;
447
549
  phone?: string | null;
550
+ pickup_moments?: import("./types").Json;
551
+ service_cities?: string[];
552
+ service_countries?: string[];
553
+ service_provinces?: string[];
554
+ signup_days_before_delivery?: number;
448
555
  signup_time_1?: string | null;
449
556
  signup_time_2?: string | null;
557
+ sort_order?: number;
450
558
  updated_at?: string;
451
559
  user_id?: string;
452
560
  };
453
561
  Relationships: [];
454
562
  };
563
+ cart_pick_overrides: {
564
+ Row: {
565
+ cart_index: number;
566
+ created_at: string;
567
+ id: string;
568
+ moved_from_date: string | null;
569
+ notes: string | null;
570
+ order_id: string;
571
+ order_source: string;
572
+ pick_date: string;
573
+ status: string;
574
+ updated_at: string;
575
+ };
576
+ Insert: {
577
+ cart_index: number;
578
+ created_at?: string;
579
+ id?: string;
580
+ moved_from_date?: string | null;
581
+ notes?: string | null;
582
+ order_id: string;
583
+ order_source: string;
584
+ pick_date: string;
585
+ status?: string;
586
+ updated_at?: string;
587
+ };
588
+ Update: {
589
+ cart_index?: number;
590
+ created_at?: string;
591
+ id?: string;
592
+ moved_from_date?: string | null;
593
+ notes?: string | null;
594
+ order_id?: string;
595
+ order_source?: string;
596
+ pick_date?: string;
597
+ status?: string;
598
+ updated_at?: string;
599
+ };
600
+ Relationships: [];
601
+ };
455
602
  collections: {
456
603
  Row: {
457
604
  created_at: string;
@@ -563,50 +710,74 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
563
710
  customer_delivery_locations: {
564
711
  Row: {
565
712
  address_line: string | null;
713
+ carrier_assignment_source: string;
714
+ carrier_id: string | null;
566
715
  city: string | null;
567
716
  country: string | null;
568
717
  created_at: string;
569
718
  customer_id: string;
570
719
  floriday_location_id: string | null;
571
720
  gln: string | null;
721
+ house_number: string | null;
572
722
  id: string;
573
723
  is_primary: boolean;
574
724
  name: string | null;
575
725
  postal_code: string | null;
726
+ province: string | null;
576
727
  raw: import("./types").Json | null;
728
+ self_pickup: boolean;
729
+ street: string | null;
577
730
  updated_at: string;
578
731
  };
579
732
  Insert: {
580
733
  address_line?: string | null;
734
+ carrier_assignment_source?: string;
735
+ carrier_id?: string | null;
581
736
  city?: string | null;
582
737
  country?: string | null;
583
738
  created_at?: string;
584
739
  customer_id: string;
585
740
  floriday_location_id?: string | null;
586
741
  gln?: string | null;
742
+ house_number?: string | null;
587
743
  id?: string;
588
744
  is_primary?: boolean;
589
745
  name?: string | null;
590
746
  postal_code?: string | null;
747
+ province?: string | null;
591
748
  raw?: import("./types").Json | null;
749
+ self_pickup?: boolean;
750
+ street?: string | null;
592
751
  updated_at?: string;
593
752
  };
594
753
  Update: {
595
754
  address_line?: string | null;
755
+ carrier_assignment_source?: string;
756
+ carrier_id?: string | null;
596
757
  city?: string | null;
597
758
  country?: string | null;
598
759
  created_at?: string;
599
760
  customer_id?: string;
600
761
  floriday_location_id?: string | null;
601
762
  gln?: string | null;
763
+ house_number?: string | null;
602
764
  id?: string;
603
765
  is_primary?: boolean;
604
766
  name?: string | null;
605
767
  postal_code?: string | null;
768
+ province?: string | null;
606
769
  raw?: import("./types").Json | null;
770
+ self_pickup?: boolean;
771
+ street?: string | null;
607
772
  updated_at?: string;
608
773
  };
609
774
  Relationships: [{
775
+ foreignKeyName: "customer_delivery_locations_carrier_id_fkey";
776
+ columns: ["carrier_id"];
777
+ isOneToOne: false;
778
+ referencedRelation: "carriers";
779
+ referencedColumns: ["id"];
780
+ }, {
610
781
  foreignKeyName: "customer_delivery_locations_customer_id_fkey";
611
782
  columns: ["customer_id"];
612
783
  isOneToOne: false;
@@ -1411,18 +1582,21 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1411
1582
  };
1412
1583
  email_auth_purpose_settings: {
1413
1584
  Row: {
1585
+ default_cc: string[];
1414
1586
  purpose: string;
1415
1587
  reply_to: string | null;
1416
1588
  updated_at: string;
1417
1589
  updated_by: string | null;
1418
1590
  };
1419
1591
  Insert: {
1592
+ default_cc?: string[];
1420
1593
  purpose: string;
1421
1594
  reply_to?: string | null;
1422
1595
  updated_at?: string;
1423
1596
  updated_by?: string | null;
1424
1597
  };
1425
1598
  Update: {
1599
+ default_cc?: string[];
1426
1600
  purpose?: string;
1427
1601
  reply_to?: string | null;
1428
1602
  updated_at?: string;
@@ -2192,6 +2366,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2192
2366
  referencedColumns: ["id"];
2193
2367
  }];
2194
2368
  };
2369
+ exact_push_queue: {
2370
+ Row: {
2371
+ attempts: number;
2372
+ connection_id: string;
2373
+ created_at: string;
2374
+ external_id: string | null;
2375
+ id: string;
2376
+ idempotency_hash: string;
2377
+ last_error: string | null;
2378
+ payload: import("./types").Json;
2379
+ status: Database["public"]["Enums"]["exact_push_status"];
2380
+ updated_at: string;
2381
+ };
2382
+ Insert: {
2383
+ attempts?: number;
2384
+ connection_id: string;
2385
+ created_at?: string;
2386
+ external_id?: string | null;
2387
+ id?: string;
2388
+ idempotency_hash: string;
2389
+ last_error?: string | null;
2390
+ payload: import("./types").Json;
2391
+ status?: Database["public"]["Enums"]["exact_push_status"];
2392
+ updated_at?: string;
2393
+ };
2394
+ Update: {
2395
+ attempts?: number;
2396
+ connection_id?: string;
2397
+ created_at?: string;
2398
+ external_id?: string | null;
2399
+ id?: string;
2400
+ idempotency_hash?: string;
2401
+ last_error?: string | null;
2402
+ payload?: import("./types").Json;
2403
+ status?: Database["public"]["Enums"]["exact_push_status"];
2404
+ updated_at?: string;
2405
+ };
2406
+ Relationships: [{
2407
+ foreignKeyName: "exact_push_queue_connection_id_fkey";
2408
+ columns: ["connection_id"];
2409
+ isOneToOne: false;
2410
+ referencedRelation: "exact_connections";
2411
+ referencedColumns: ["id"];
2412
+ }];
2413
+ };
2195
2414
  exact_refresh_locks: {
2196
2415
  Row: {
2197
2416
  environment: Database["public"]["Enums"]["exact_env"];
@@ -2254,6 +2473,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2254
2473
  connection_id: string;
2255
2474
  last_error: string | null;
2256
2475
  last_modified_cursor: string | null;
2476
+ last_modified_cursor_customers: string | null;
2477
+ last_modified_cursor_invoices: string | null;
2257
2478
  last_synced_at: string | null;
2258
2479
  status: string;
2259
2480
  updated_at: string;
@@ -2262,6 +2483,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2262
2483
  connection_id: string;
2263
2484
  last_error?: string | null;
2264
2485
  last_modified_cursor?: string | null;
2486
+ last_modified_cursor_customers?: string | null;
2487
+ last_modified_cursor_invoices?: string | null;
2265
2488
  last_synced_at?: string | null;
2266
2489
  status?: string;
2267
2490
  updated_at?: string;
@@ -2270,6 +2493,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2270
2493
  connection_id?: string;
2271
2494
  last_error?: string | null;
2272
2495
  last_modified_cursor?: string | null;
2496
+ last_modified_cursor_customers?: string | null;
2497
+ last_modified_cursor_invoices?: string | null;
2273
2498
  last_synced_at?: string | null;
2274
2499
  status?: string;
2275
2500
  updated_at?: string;
@@ -2312,6 +2537,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2312
2537
  };
2313
2538
  Relationships: [];
2314
2539
  };
2540
+ external_invoice_providers: {
2541
+ Row: {
2542
+ color: string | null;
2543
+ created_at: string;
2544
+ hmac_secret_name: string | null;
2545
+ icon: string | null;
2546
+ is_enabled: boolean;
2547
+ label: string;
2548
+ last_synced_at: string | null;
2549
+ provider: string;
2550
+ push_endpoint: string | null;
2551
+ sort_order: number;
2552
+ status_endpoint: string | null;
2553
+ sync_endpoint: string | null;
2554
+ updated_at: string;
2555
+ };
2556
+ Insert: {
2557
+ color?: string | null;
2558
+ created_at?: string;
2559
+ hmac_secret_name?: string | null;
2560
+ icon?: string | null;
2561
+ is_enabled?: boolean;
2562
+ label: string;
2563
+ last_synced_at?: string | null;
2564
+ provider: string;
2565
+ push_endpoint?: string | null;
2566
+ sort_order?: number;
2567
+ status_endpoint?: string | null;
2568
+ sync_endpoint?: string | null;
2569
+ updated_at?: string;
2570
+ };
2571
+ Update: {
2572
+ color?: string | null;
2573
+ created_at?: string;
2574
+ hmac_secret_name?: string | null;
2575
+ icon?: string | null;
2576
+ is_enabled?: boolean;
2577
+ label?: string;
2578
+ last_synced_at?: string | null;
2579
+ provider?: string;
2580
+ push_endpoint?: string | null;
2581
+ sort_order?: number;
2582
+ status_endpoint?: string | null;
2583
+ sync_endpoint?: string | null;
2584
+ updated_at?: string;
2585
+ };
2586
+ Relationships: [];
2587
+ };
2315
2588
  extra_categories: {
2316
2589
  Row: {
2317
2590
  created_at: string;
@@ -2336,6 +2609,33 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2336
2609
  };
2337
2610
  Relationships: [];
2338
2611
  };
2612
+ extra_pricing_types: {
2613
+ Row: {
2614
+ code: string;
2615
+ created_at: string;
2616
+ id: string;
2617
+ label: string;
2618
+ sort_order: number;
2619
+ updated_at: string;
2620
+ };
2621
+ Insert: {
2622
+ code: string;
2623
+ created_at?: string;
2624
+ id?: string;
2625
+ label: string;
2626
+ sort_order?: number;
2627
+ updated_at?: string;
2628
+ };
2629
+ Update: {
2630
+ code?: string;
2631
+ created_at?: string;
2632
+ id?: string;
2633
+ label?: string;
2634
+ sort_order?: number;
2635
+ updated_at?: string;
2636
+ };
2637
+ Relationships: [];
2638
+ };
2339
2639
  extras: {
2340
2640
  Row: {
2341
2641
  category: string;
@@ -2459,230 +2759,1280 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2459
2759
  };
2460
2760
  Relationships: [];
2461
2761
  };
2462
- floriday_carriers_cache: {
2762
+ floriday_additional_services_cache: {
2463
2763
  Row: {
2464
- connection_id: string | null;
2465
- created_at: string;
2764
+ connection_id: string;
2466
2765
  data: import("./types").Json;
2467
2766
  fetched_at: string;
2468
- gln_code: string | null;
2469
- id: string;
2470
- name: string | null;
2471
- organization_id: string;
2767
+ floriday_id: string;
2768
+ is_deleted: boolean;
2769
+ sequence_number: number;
2472
2770
  updated_at: string;
2473
2771
  };
2474
2772
  Insert: {
2475
- connection_id?: string | null;
2476
- created_at?: string;
2773
+ connection_id: string;
2477
2774
  data: import("./types").Json;
2478
2775
  fetched_at?: string;
2479
- gln_code?: string | null;
2480
- id?: string;
2481
- name?: string | null;
2482
- organization_id: string;
2776
+ floriday_id: string;
2777
+ is_deleted?: boolean;
2778
+ sequence_number?: number;
2483
2779
  updated_at?: string;
2484
2780
  };
2485
2781
  Update: {
2486
- connection_id?: string | null;
2487
- created_at?: string;
2782
+ connection_id?: string;
2488
2783
  data?: import("./types").Json;
2489
2784
  fetched_at?: string;
2490
- gln_code?: string | null;
2491
- id?: string;
2492
- name?: string | null;
2493
- organization_id?: string;
2785
+ floriday_id?: string;
2786
+ is_deleted?: boolean;
2787
+ sequence_number?: number;
2494
2788
  updated_at?: string;
2495
2789
  };
2496
2790
  Relationships: [{
2497
- foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
2791
+ foreignKeyName: "floriday_additional_services_cache_connection_id_fkey";
2498
2792
  columns: ["connection_id"];
2499
2793
  isOneToOne: false;
2500
2794
  referencedRelation: "floriday_connections";
2501
2795
  referencedColumns: ["id"];
2502
2796
  }];
2503
2797
  };
2504
- floriday_connections: {
2798
+ floriday_agreement_calloffs_cache: {
2505
2799
  Row: {
2506
- access_token: string | null;
2507
- api_key: string;
2508
- client_id: string;
2509
- client_secret: string;
2510
- created_at: string;
2511
- customers_endpoint: string | null;
2512
- environment: string;
2513
- gln_code: string | null;
2800
+ agreement_id: string | null;
2801
+ connection_id: string;
2802
+ data: import("./types").Json;
2803
+ delivery_date: string | null;
2804
+ fetched_at: string;
2805
+ floriday_id: string;
2514
2806
  id: string;
2515
- is_active: boolean;
2516
- label: string;
2517
- organization_name: string | null;
2518
- preferred_warehouse_id: string | null;
2519
- preferred_warehouse_name: string | null;
2520
- token_expires_at: string | null;
2807
+ is_deleted: boolean;
2808
+ sequence_number: number;
2809
+ status: string | null;
2521
2810
  updated_at: string;
2522
2811
  };
2523
2812
  Insert: {
2524
- access_token?: string | null;
2525
- api_key: string;
2526
- client_id: string;
2527
- client_secret: string;
2528
- created_at?: string;
2529
- customers_endpoint?: string | null;
2530
- environment: string;
2531
- gln_code?: string | null;
2813
+ agreement_id?: string | null;
2814
+ connection_id: string;
2815
+ data?: import("./types").Json;
2816
+ delivery_date?: string | null;
2817
+ fetched_at?: string;
2818
+ floriday_id: string;
2532
2819
  id?: string;
2533
- is_active?: boolean;
2534
- label?: string;
2535
- organization_name?: string | null;
2536
- preferred_warehouse_id?: string | null;
2537
- preferred_warehouse_name?: string | null;
2538
- token_expires_at?: string | null;
2539
- updated_at?: string;
2540
- };
2820
+ is_deleted?: boolean;
2821
+ sequence_number?: number;
2822
+ status?: string | null;
2823
+ updated_at?: string;
2824
+ };
2541
2825
  Update: {
2542
- access_token?: string | null;
2543
- api_key?: string;
2544
- client_id?: string;
2545
- client_secret?: string;
2826
+ agreement_id?: string | null;
2827
+ connection_id?: string;
2828
+ data?: import("./types").Json;
2829
+ delivery_date?: string | null;
2830
+ fetched_at?: string;
2831
+ floriday_id?: string;
2832
+ id?: string;
2833
+ is_deleted?: boolean;
2834
+ sequence_number?: number;
2835
+ status?: string | null;
2836
+ updated_at?: string;
2837
+ };
2838
+ Relationships: [{
2839
+ foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
2840
+ columns: ["connection_id"];
2841
+ isOneToOne: false;
2842
+ referencedRelation: "floriday_connections";
2843
+ referencedColumns: ["id"];
2844
+ }];
2845
+ };
2846
+ floriday_agreements_cache: {
2847
+ Row: {
2848
+ buyer_organization_id: string | null;
2849
+ connection_id: string;
2850
+ data: import("./types").Json;
2851
+ fetched_at: string;
2852
+ floriday_id: string;
2853
+ id: string;
2854
+ is_deleted: boolean;
2855
+ sequence_number: number;
2856
+ status: string | null;
2857
+ updated_at: string;
2858
+ valid_from: string | null;
2859
+ valid_until: string | null;
2860
+ };
2861
+ Insert: {
2862
+ buyer_organization_id?: string | null;
2863
+ connection_id: string;
2864
+ data?: import("./types").Json;
2865
+ fetched_at?: string;
2866
+ floriday_id: string;
2867
+ id?: string;
2868
+ is_deleted?: boolean;
2869
+ sequence_number?: number;
2870
+ status?: string | null;
2871
+ updated_at?: string;
2872
+ valid_from?: string | null;
2873
+ valid_until?: string | null;
2874
+ };
2875
+ Update: {
2876
+ buyer_organization_id?: string | null;
2877
+ connection_id?: string;
2878
+ data?: import("./types").Json;
2879
+ fetched_at?: string;
2880
+ floriday_id?: string;
2881
+ id?: string;
2882
+ is_deleted?: boolean;
2883
+ sequence_number?: number;
2884
+ status?: string | null;
2885
+ updated_at?: string;
2886
+ valid_from?: string | null;
2887
+ valid_until?: string | null;
2888
+ };
2889
+ Relationships: [{
2890
+ foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
2891
+ columns: ["connection_id"];
2892
+ isOneToOne: false;
2893
+ referencedRelation: "floriday_connections";
2894
+ referencedColumns: ["id"];
2895
+ }];
2896
+ };
2897
+ floriday_auction_letters_cache: {
2898
+ Row: {
2899
+ auction_letter_code: string;
2900
+ clock_supply_id: string;
2901
+ connection_id: string;
2902
+ content_type: string;
2903
+ fetched_at: string;
2904
+ id: string;
2905
+ storage_path: string;
2906
+ };
2907
+ Insert: {
2908
+ auction_letter_code: string;
2909
+ clock_supply_id: string;
2910
+ connection_id: string;
2911
+ content_type?: string;
2912
+ fetched_at?: string;
2913
+ id?: string;
2914
+ storage_path: string;
2915
+ };
2916
+ Update: {
2917
+ auction_letter_code?: string;
2918
+ clock_supply_id?: string;
2919
+ connection_id?: string;
2920
+ content_type?: string;
2921
+ fetched_at?: string;
2922
+ id?: string;
2923
+ storage_path?: string;
2924
+ };
2925
+ Relationships: [{
2926
+ foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
2927
+ columns: ["connection_id"];
2928
+ isOneToOne: false;
2929
+ referencedRelation: "floriday_connections";
2930
+ referencedColumns: ["id"];
2931
+ }];
2932
+ };
2933
+ floriday_base_items_cache: {
2934
+ Row: {
2935
+ connection_id: string;
2936
+ data: import("./types").Json;
2937
+ fetched_at: string;
2938
+ floriday_id: string;
2939
+ is_deleted: boolean;
2940
+ sequence_number: number;
2941
+ updated_at: string;
2942
+ };
2943
+ Insert: {
2944
+ connection_id: string;
2945
+ data: import("./types").Json;
2946
+ fetched_at?: string;
2947
+ floriday_id: string;
2948
+ is_deleted?: boolean;
2949
+ sequence_number?: number;
2950
+ updated_at?: string;
2951
+ };
2952
+ Update: {
2953
+ connection_id?: string;
2954
+ data?: import("./types").Json;
2955
+ fetched_at?: string;
2956
+ floriday_id?: string;
2957
+ is_deleted?: boolean;
2958
+ sequence_number?: number;
2959
+ updated_at?: string;
2960
+ };
2961
+ Relationships: [{
2962
+ foreignKeyName: "floriday_base_items_cache_connection_id_fkey";
2963
+ columns: ["connection_id"];
2964
+ isOneToOne: false;
2965
+ referencedRelation: "floriday_connections";
2966
+ referencedColumns: ["id"];
2967
+ }];
2968
+ };
2969
+ floriday_blanket_orders_cache: {
2970
+ Row: {
2971
+ connection_id: string;
2972
+ contract_id: string | null;
2973
+ created_at: string;
2974
+ data: import("./types").Json;
2975
+ fetched_at: string;
2976
+ floriday_id: string;
2977
+ id: string;
2978
+ is_deleted: boolean;
2979
+ sequence_number: number;
2980
+ updated_at: string;
2981
+ };
2982
+ Insert: {
2983
+ connection_id: string;
2984
+ contract_id?: string | null;
2546
2985
  created_at?: string;
2547
- customers_endpoint?: string | null;
2548
- environment?: string;
2986
+ data: import("./types").Json;
2987
+ fetched_at?: string;
2988
+ floriday_id: string;
2989
+ id?: string;
2990
+ is_deleted?: boolean;
2991
+ sequence_number?: number;
2992
+ updated_at?: string;
2993
+ };
2994
+ Update: {
2995
+ connection_id?: string;
2996
+ contract_id?: string | null;
2997
+ created_at?: string;
2998
+ data?: import("./types").Json;
2999
+ fetched_at?: string;
3000
+ floriday_id?: string;
3001
+ id?: string;
3002
+ is_deleted?: boolean;
3003
+ sequence_number?: number;
3004
+ updated_at?: string;
3005
+ };
3006
+ Relationships: [{
3007
+ foreignKeyName: "floriday_blanket_orders_cache_connection_id_fkey";
3008
+ columns: ["connection_id"];
3009
+ isOneToOne: false;
3010
+ referencedRelation: "floriday_connections";
3011
+ referencedColumns: ["id"];
3012
+ }];
3013
+ };
3014
+ floriday_carriers_cache: {
3015
+ Row: {
3016
+ connection_id: string | null;
3017
+ created_at: string;
3018
+ data: import("./types").Json;
3019
+ fetched_at: string;
3020
+ gln_code: string | null;
3021
+ id: string;
3022
+ name: string | null;
3023
+ organization_id: string;
3024
+ updated_at: string;
3025
+ };
3026
+ Insert: {
3027
+ connection_id?: string | null;
3028
+ created_at?: string;
3029
+ data: import("./types").Json;
3030
+ fetched_at?: string;
2549
3031
  gln_code?: string | null;
2550
3032
  id?: string;
2551
- is_active?: boolean;
2552
- label?: string;
2553
- organization_name?: string | null;
2554
- preferred_warehouse_id?: string | null;
2555
- preferred_warehouse_name?: string | null;
2556
- token_expires_at?: string | null;
3033
+ name?: string | null;
3034
+ organization_id: string;
2557
3035
  updated_at?: string;
2558
3036
  };
2559
- Relationships: [];
3037
+ Update: {
3038
+ connection_id?: string | null;
3039
+ created_at?: string;
3040
+ data?: import("./types").Json;
3041
+ fetched_at?: string;
3042
+ gln_code?: string | null;
3043
+ id?: string;
3044
+ name?: string | null;
3045
+ organization_id?: string;
3046
+ updated_at?: string;
3047
+ };
3048
+ Relationships: [{
3049
+ foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
3050
+ columns: ["connection_id"];
3051
+ isOneToOne: false;
3052
+ referencedRelation: "floriday_connections";
3053
+ referencedColumns: ["id"];
3054
+ }];
2560
3055
  };
2561
- floriday_connections_cache: {
3056
+ floriday_clock_presales_cache: {
2562
3057
  Row: {
2563
3058
  buyer_organization_id: string | null;
2564
- buyer_organization_name: string | null;
3059
+ clock_supply_id: string | null;
2565
3060
  connection_id: string;
2566
3061
  data: import("./types").Json;
2567
- floriday_connection_id: string;
3062
+ fetched_at: string;
3063
+ floriday_id: string;
3064
+ id: string;
2568
3065
  is_deleted: boolean;
2569
3066
  sequence_number: number;
2570
- status: string | null;
2571
- synced_at: string;
3067
+ updated_at: string;
2572
3068
  };
2573
3069
  Insert: {
2574
3070
  buyer_organization_id?: string | null;
2575
- buyer_organization_name?: string | null;
3071
+ clock_supply_id?: string | null;
3072
+ connection_id: string;
3073
+ data?: import("./types").Json;
3074
+ fetched_at?: string;
3075
+ floriday_id: string;
3076
+ id?: string;
3077
+ is_deleted?: boolean;
3078
+ sequence_number?: number;
3079
+ updated_at?: string;
3080
+ };
3081
+ Update: {
3082
+ buyer_organization_id?: string | null;
3083
+ clock_supply_id?: string | null;
3084
+ connection_id?: string;
3085
+ data?: import("./types").Json;
3086
+ fetched_at?: string;
3087
+ floriday_id?: string;
3088
+ id?: string;
3089
+ is_deleted?: boolean;
3090
+ sequence_number?: number;
3091
+ updated_at?: string;
3092
+ };
3093
+ Relationships: [{
3094
+ foreignKeyName: "floriday_clock_presales_cache_connection_id_fkey";
3095
+ columns: ["connection_id"];
3096
+ isOneToOne: false;
3097
+ referencedRelation: "floriday_connections";
3098
+ referencedColumns: ["id"];
3099
+ }];
3100
+ };
3101
+ floriday_clock_supplies_cache: {
3102
+ Row: {
3103
+ auction_date: string | null;
2576
3104
  connection_id: string;
2577
3105
  data: import("./types").Json;
2578
- floriday_connection_id: string;
3106
+ fetched_at: string;
3107
+ floriday_id: string;
3108
+ id: string;
3109
+ is_deleted: boolean;
3110
+ sequence_number: number;
3111
+ status: string | null;
3112
+ trade_item_id: string | null;
3113
+ updated_at: string;
3114
+ };
3115
+ Insert: {
3116
+ auction_date?: string | null;
3117
+ connection_id: string;
3118
+ data?: import("./types").Json;
3119
+ fetched_at?: string;
3120
+ floriday_id: string;
3121
+ id?: string;
3122
+ is_deleted?: boolean;
3123
+ sequence_number?: number;
3124
+ status?: string | null;
3125
+ trade_item_id?: string | null;
3126
+ updated_at?: string;
3127
+ };
3128
+ Update: {
3129
+ auction_date?: string | null;
3130
+ connection_id?: string;
3131
+ data?: import("./types").Json;
3132
+ fetched_at?: string;
3133
+ floriday_id?: string;
3134
+ id?: string;
3135
+ is_deleted?: boolean;
3136
+ sequence_number?: number;
3137
+ status?: string | null;
3138
+ trade_item_id?: string | null;
3139
+ updated_at?: string;
3140
+ };
3141
+ Relationships: [{
3142
+ foreignKeyName: "floriday_clock_supplies_cache_connection_id_fkey";
3143
+ columns: ["connection_id"];
3144
+ isOneToOne: false;
3145
+ referencedRelation: "floriday_connections";
3146
+ referencedColumns: ["id"];
3147
+ }];
3148
+ };
3149
+ floriday_code_lists_cache: {
3150
+ Row: {
3151
+ code: string;
3152
+ environment: string;
3153
+ label: string | null;
3154
+ list_name: string;
3155
+ payload: import("./types").Json | null;
3156
+ updated_at: string;
3157
+ };
3158
+ Insert: {
3159
+ code: string;
3160
+ environment: string;
3161
+ label?: string | null;
3162
+ list_name: string;
3163
+ payload?: import("./types").Json | null;
3164
+ updated_at?: string;
3165
+ };
3166
+ Update: {
3167
+ code?: string;
3168
+ environment?: string;
3169
+ label?: string | null;
3170
+ list_name?: string;
3171
+ payload?: import("./types").Json | null;
3172
+ updated_at?: string;
3173
+ };
3174
+ Relationships: [];
3175
+ };
3176
+ floriday_collections_cache: {
3177
+ Row: {
3178
+ connection_id: string;
3179
+ data: import("./types").Json;
3180
+ fetched_at: string;
3181
+ floriday_id: string;
3182
+ is_deleted: boolean;
3183
+ sequence_number: number;
3184
+ updated_at: string;
3185
+ };
3186
+ Insert: {
3187
+ connection_id: string;
3188
+ data: import("./types").Json;
3189
+ fetched_at?: string;
3190
+ floriday_id: string;
3191
+ is_deleted?: boolean;
3192
+ sequence_number?: number;
3193
+ updated_at?: string;
3194
+ };
3195
+ Update: {
3196
+ connection_id?: string;
3197
+ data?: import("./types").Json;
3198
+ fetched_at?: string;
3199
+ floriday_id?: string;
3200
+ is_deleted?: boolean;
3201
+ sequence_number?: number;
3202
+ updated_at?: string;
3203
+ };
3204
+ Relationships: [{
3205
+ foreignKeyName: "floriday_collections_cache_connection_id_fkey";
3206
+ columns: ["connection_id"];
3207
+ isOneToOne: false;
3208
+ referencedRelation: "floriday_connections";
3209
+ referencedColumns: ["id"];
3210
+ }];
3211
+ };
3212
+ floriday_commercial_service_types_cache: {
3213
+ Row: {
3214
+ connection_id: string;
3215
+ data: import("./types").Json;
3216
+ fetched_at: string;
3217
+ floriday_id: string;
3218
+ is_deleted: boolean;
3219
+ sequence_number: number;
3220
+ updated_at: string;
3221
+ };
3222
+ Insert: {
3223
+ connection_id: string;
3224
+ data: import("./types").Json;
3225
+ fetched_at?: string;
3226
+ floriday_id: string;
3227
+ is_deleted?: boolean;
3228
+ sequence_number?: number;
3229
+ updated_at?: string;
3230
+ };
3231
+ Update: {
3232
+ connection_id?: string;
3233
+ data?: import("./types").Json;
3234
+ fetched_at?: string;
3235
+ floriday_id?: string;
3236
+ is_deleted?: boolean;
3237
+ sequence_number?: number;
3238
+ updated_at?: string;
3239
+ };
3240
+ Relationships: [{
3241
+ foreignKeyName: "floriday_commercial_service_types_cache_connection_id_fkey";
3242
+ columns: ["connection_id"];
3243
+ isOneToOne: false;
3244
+ referencedRelation: "floriday_connections";
3245
+ referencedColumns: ["id"];
3246
+ }];
3247
+ };
3248
+ floriday_connections: {
3249
+ Row: {
3250
+ access_token: string | null;
3251
+ api_key: string;
3252
+ client_id: string;
3253
+ client_secret: string;
3254
+ created_at: string;
3255
+ customers_endpoint: string | null;
3256
+ environment: string;
3257
+ gln_code: string | null;
3258
+ id: string;
3259
+ is_active: boolean;
3260
+ label: string;
3261
+ organization_name: string | null;
3262
+ preferred_warehouse_id: string | null;
3263
+ preferred_warehouse_name: string | null;
3264
+ token_expires_at: string | null;
3265
+ updated_at: string;
3266
+ };
3267
+ Insert: {
3268
+ access_token?: string | null;
3269
+ api_key: string;
3270
+ client_id: string;
3271
+ client_secret: string;
3272
+ created_at?: string;
3273
+ customers_endpoint?: string | null;
3274
+ environment: string;
3275
+ gln_code?: string | null;
3276
+ id?: string;
3277
+ is_active?: boolean;
3278
+ label?: string;
3279
+ organization_name?: string | null;
3280
+ preferred_warehouse_id?: string | null;
3281
+ preferred_warehouse_name?: string | null;
3282
+ token_expires_at?: string | null;
3283
+ updated_at?: string;
3284
+ };
3285
+ Update: {
3286
+ access_token?: string | null;
3287
+ api_key?: string;
3288
+ client_id?: string;
3289
+ client_secret?: string;
3290
+ created_at?: string;
3291
+ customers_endpoint?: string | null;
3292
+ environment?: string;
3293
+ gln_code?: string | null;
3294
+ id?: string;
3295
+ is_active?: boolean;
3296
+ label?: string;
3297
+ organization_name?: string | null;
3298
+ preferred_warehouse_id?: string | null;
3299
+ preferred_warehouse_name?: string | null;
3300
+ token_expires_at?: string | null;
3301
+ updated_at?: string;
3302
+ };
3303
+ Relationships: [];
3304
+ };
3305
+ floriday_connections_cache: {
3306
+ Row: {
3307
+ buyer_organization_id: string | null;
3308
+ buyer_organization_name: string | null;
3309
+ connection_id: string;
3310
+ data: import("./types").Json;
3311
+ floriday_connection_id: string;
3312
+ is_deleted: boolean;
3313
+ sequence_number: number;
3314
+ status: string | null;
3315
+ synced_at: string;
3316
+ };
3317
+ Insert: {
3318
+ buyer_organization_id?: string | null;
3319
+ buyer_organization_name?: string | null;
3320
+ connection_id: string;
3321
+ data: import("./types").Json;
3322
+ floriday_connection_id: string;
3323
+ is_deleted?: boolean;
3324
+ sequence_number: number;
3325
+ status?: string | null;
3326
+ synced_at?: string;
3327
+ };
3328
+ Update: {
3329
+ buyer_organization_id?: string | null;
3330
+ buyer_organization_name?: string | null;
3331
+ connection_id?: string;
3332
+ data?: import("./types").Json;
3333
+ floriday_connection_id?: string;
3334
+ is_deleted?: boolean;
3335
+ sequence_number?: number;
3336
+ status?: string | null;
3337
+ synced_at?: string;
3338
+ };
3339
+ Relationships: [{
3340
+ foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3341
+ columns: ["connection_id"];
3342
+ isOneToOne: false;
3343
+ referencedRelation: "floriday_connections";
3344
+ referencedColumns: ["id"];
3345
+ }];
3346
+ };
3347
+ floriday_contract_trade_item_groups_cache: {
3348
+ Row: {
3349
+ connection_id: string;
3350
+ data: import("./types").Json;
3351
+ fetched_at: string;
3352
+ floriday_id: string;
3353
+ is_deleted: boolean;
3354
+ sequence_number: number;
3355
+ updated_at: string;
3356
+ };
3357
+ Insert: {
3358
+ connection_id: string;
3359
+ data: import("./types").Json;
3360
+ fetched_at?: string;
3361
+ floriday_id: string;
3362
+ is_deleted?: boolean;
3363
+ sequence_number?: number;
3364
+ updated_at?: string;
3365
+ };
3366
+ Update: {
3367
+ connection_id?: string;
3368
+ data?: import("./types").Json;
3369
+ fetched_at?: string;
3370
+ floriday_id?: string;
3371
+ is_deleted?: boolean;
3372
+ sequence_number?: number;
3373
+ updated_at?: string;
3374
+ };
3375
+ Relationships: [{
3376
+ foreignKeyName: "floriday_contract_trade_item_groups_cache_connection_id_fkey";
3377
+ columns: ["connection_id"];
3378
+ isOneToOne: false;
3379
+ referencedRelation: "floriday_connections";
3380
+ referencedColumns: ["id"];
3381
+ }];
3382
+ };
3383
+ floriday_contracts_cache: {
3384
+ Row: {
3385
+ connection_id: string;
3386
+ created_at: string;
3387
+ data: import("./types").Json;
3388
+ fetched_at: string;
3389
+ floriday_id: string;
3390
+ id: string;
3391
+ is_deleted: boolean;
3392
+ sequence_number: number;
3393
+ updated_at: string;
3394
+ };
3395
+ Insert: {
3396
+ connection_id: string;
3397
+ created_at?: string;
3398
+ data: import("./types").Json;
3399
+ fetched_at?: string;
3400
+ floriday_id: string;
3401
+ id?: string;
3402
+ is_deleted?: boolean;
3403
+ sequence_number?: number;
3404
+ updated_at?: string;
3405
+ };
3406
+ Update: {
3407
+ connection_id?: string;
3408
+ created_at?: string;
3409
+ data?: import("./types").Json;
3410
+ fetched_at?: string;
3411
+ floriday_id?: string;
3412
+ id?: string;
3413
+ is_deleted?: boolean;
3414
+ sequence_number?: number;
3415
+ updated_at?: string;
3416
+ };
3417
+ Relationships: [{
3418
+ foreignKeyName: "floriday_contracts_cache_connection_id_fkey";
3419
+ columns: ["connection_id"];
3420
+ isOneToOne: false;
3421
+ referencedRelation: "floriday_connections";
3422
+ referencedColumns: ["id"];
3423
+ }];
3424
+ };
3425
+ floriday_customer_sticker_pdfs_cache: {
3426
+ Row: {
3427
+ byte_size: number | null;
3428
+ connection_id: string;
3429
+ content_type: string;
3430
+ created_at: string;
3431
+ fetched_at: string;
3432
+ id: string;
3433
+ sticker_id: string;
3434
+ storage_path: string;
3435
+ };
3436
+ Insert: {
3437
+ byte_size?: number | null;
3438
+ connection_id: string;
3439
+ content_type?: string;
3440
+ created_at?: string;
3441
+ fetched_at?: string;
3442
+ id?: string;
3443
+ sticker_id: string;
3444
+ storage_path: string;
3445
+ };
3446
+ Update: {
3447
+ byte_size?: number | null;
3448
+ connection_id?: string;
3449
+ content_type?: string;
3450
+ created_at?: string;
3451
+ fetched_at?: string;
3452
+ id?: string;
3453
+ sticker_id?: string;
3454
+ storage_path?: string;
3455
+ };
3456
+ Relationships: [{
3457
+ foreignKeyName: "floriday_customer_sticker_pdfs_cache_connection_id_fkey";
3458
+ columns: ["connection_id"];
3459
+ isOneToOne: false;
3460
+ referencedRelation: "floriday_connections";
3461
+ referencedColumns: ["id"];
3462
+ }];
3463
+ };
3464
+ floriday_customer_stickers_cache: {
3465
+ Row: {
3466
+ connection_id: string;
3467
+ created_at: string;
3468
+ data: import("./types").Json;
3469
+ fetched_at: string;
3470
+ floriday_id: string;
3471
+ id: string;
3472
+ is_deleted: boolean;
3473
+ quantity: number | null;
3474
+ sales_order_id: string | null;
3475
+ sequence_number: number;
3476
+ status: string | null;
3477
+ trade_item_id: string | null;
3478
+ updated_at: string;
3479
+ };
3480
+ Insert: {
3481
+ connection_id: string;
3482
+ created_at?: string;
3483
+ data?: import("./types").Json;
3484
+ fetched_at?: string;
3485
+ floriday_id: string;
3486
+ id?: string;
3487
+ is_deleted?: boolean;
3488
+ quantity?: number | null;
3489
+ sales_order_id?: string | null;
3490
+ sequence_number?: number;
3491
+ status?: string | null;
3492
+ trade_item_id?: string | null;
3493
+ updated_at?: string;
3494
+ };
3495
+ Update: {
3496
+ connection_id?: string;
3497
+ created_at?: string;
3498
+ data?: import("./types").Json;
3499
+ fetched_at?: string;
3500
+ floriday_id?: string;
3501
+ id?: string;
3502
+ is_deleted?: boolean;
3503
+ quantity?: number | null;
3504
+ sales_order_id?: string | null;
3505
+ sequence_number?: number;
3506
+ status?: string | null;
3507
+ trade_item_id?: string | null;
3508
+ updated_at?: string;
3509
+ };
3510
+ Relationships: [{
3511
+ foreignKeyName: "floriday_customer_stickers_cache_connection_id_fkey";
3512
+ columns: ["connection_id"];
3513
+ isOneToOne: false;
3514
+ referencedRelation: "floriday_connections";
3515
+ referencedColumns: ["id"];
3516
+ }];
3517
+ };
3518
+ floriday_customers_cache: {
3519
+ Row: {
3520
+ connection_id: string | null;
3521
+ data: import("./types").Json;
3522
+ fetched_at: string;
3523
+ gln_code: string | null;
3524
+ is_deleted: boolean;
3525
+ name: string | null;
3526
+ organization_id: string;
3527
+ sequence_number: number | null;
3528
+ };
3529
+ Insert: {
3530
+ connection_id?: string | null;
3531
+ data?: import("./types").Json;
3532
+ fetched_at?: string;
3533
+ gln_code?: string | null;
3534
+ is_deleted?: boolean;
3535
+ name?: string | null;
3536
+ organization_id: string;
3537
+ sequence_number?: number | null;
3538
+ };
3539
+ Update: {
3540
+ connection_id?: string | null;
3541
+ data?: import("./types").Json;
3542
+ fetched_at?: string;
3543
+ gln_code?: string | null;
3544
+ is_deleted?: boolean;
3545
+ name?: string | null;
3546
+ organization_id?: string;
3547
+ sequence_number?: number | null;
3548
+ };
3549
+ Relationships: [{
3550
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3551
+ columns: ["connection_id"];
3552
+ isOneToOne: false;
3553
+ referencedRelation: "floriday_connections";
3554
+ referencedColumns: ["id"];
3555
+ }];
3556
+ };
3557
+ floriday_delivery_condition_sets_cache: {
3558
+ Row: {
3559
+ connection_id: string;
3560
+ data: import("./types").Json;
3561
+ fetched_at: string;
3562
+ floriday_id: string;
3563
+ is_deleted: boolean;
3564
+ sequence_number: number;
3565
+ updated_at: string;
3566
+ };
3567
+ Insert: {
3568
+ connection_id: string;
3569
+ data: import("./types").Json;
3570
+ fetched_at?: string;
3571
+ floriday_id: string;
3572
+ is_deleted?: boolean;
3573
+ sequence_number?: number;
3574
+ updated_at?: string;
3575
+ };
3576
+ Update: {
3577
+ connection_id?: string;
3578
+ data?: import("./types").Json;
3579
+ fetched_at?: string;
3580
+ floriday_id?: string;
3581
+ is_deleted?: boolean;
3582
+ sequence_number?: number;
3583
+ updated_at?: string;
3584
+ };
3585
+ Relationships: [{
3586
+ foreignKeyName: "floriday_delivery_condition_sets_cache_connection_id_fkey";
3587
+ columns: ["connection_id"];
3588
+ isOneToOne: false;
3589
+ referencedRelation: "floriday_connections";
3590
+ referencedColumns: ["id"];
3591
+ }];
3592
+ };
3593
+ floriday_delivery_locations_cache: {
3594
+ Row: {
3595
+ connection_id: string;
3596
+ data: import("./types").Json;
3597
+ fetched_at: string;
3598
+ floriday_id: string;
3599
+ gln_code: string | null;
3600
+ id: string;
3601
+ is_deleted: boolean;
3602
+ name: string | null;
3603
+ organization_id: string | null;
3604
+ updated_at: string;
3605
+ };
3606
+ Insert: {
3607
+ connection_id: string;
3608
+ data?: import("./types").Json;
3609
+ fetched_at?: string;
3610
+ floriday_id: string;
3611
+ gln_code?: string | null;
3612
+ id?: string;
3613
+ is_deleted?: boolean;
3614
+ name?: string | null;
3615
+ organization_id?: string | null;
3616
+ updated_at?: string;
3617
+ };
3618
+ Update: {
3619
+ connection_id?: string;
3620
+ data?: import("./types").Json;
3621
+ fetched_at?: string;
3622
+ floriday_id?: string;
3623
+ gln_code?: string | null;
3624
+ id?: string;
3625
+ is_deleted?: boolean;
3626
+ name?: string | null;
3627
+ organization_id?: string | null;
3628
+ updated_at?: string;
3629
+ };
3630
+ Relationships: [{
3631
+ foreignKeyName: "floriday_delivery_locations_cache_connection_id_fkey";
3632
+ columns: ["connection_id"];
3633
+ isOneToOne: false;
3634
+ referencedRelation: "floriday_connections";
3635
+ referencedColumns: ["id"];
3636
+ }];
3637
+ };
3638
+ floriday_delivery_orders_cache: {
3639
+ Row: {
3640
+ auction_date: string | null;
3641
+ connection_id: string;
3642
+ data: import("./types").Json;
3643
+ destination_warehouse_id: string | null;
3644
+ fetched_at: string;
3645
+ floriday_id: string;
3646
+ id: string;
3647
+ is_deleted: boolean;
3648
+ sequence_number: number;
3649
+ status: string | null;
3650
+ trade_item_id: string | null;
3651
+ updated_at: string;
3652
+ };
3653
+ Insert: {
3654
+ auction_date?: string | null;
3655
+ connection_id: string;
3656
+ data?: import("./types").Json;
3657
+ destination_warehouse_id?: string | null;
3658
+ fetched_at?: string;
3659
+ floriday_id: string;
3660
+ id?: string;
3661
+ is_deleted?: boolean;
3662
+ sequence_number?: number;
3663
+ status?: string | null;
3664
+ trade_item_id?: string | null;
3665
+ updated_at?: string;
3666
+ };
3667
+ Update: {
3668
+ auction_date?: string | null;
3669
+ connection_id?: string;
3670
+ data?: import("./types").Json;
3671
+ destination_warehouse_id?: string | null;
3672
+ fetched_at?: string;
3673
+ floriday_id?: string;
3674
+ id?: string;
3675
+ is_deleted?: boolean;
3676
+ sequence_number?: number;
3677
+ status?: string | null;
3678
+ trade_item_id?: string | null;
3679
+ updated_at?: string;
3680
+ };
3681
+ Relationships: [{
3682
+ foreignKeyName: "floriday_delivery_orders_cache_connection_id_fkey";
3683
+ columns: ["connection_id"];
3684
+ isOneToOne: false;
3685
+ referencedRelation: "floriday_connections";
3686
+ referencedColumns: ["id"];
3687
+ }];
3688
+ };
3689
+ floriday_fulfillment_orders_cache: {
3690
+ Row: {
3691
+ auction_date: string | null;
3692
+ connection_id: string;
3693
+ data: import("./types").Json;
3694
+ delivery_order_id: string | null;
3695
+ despatch_warehouse_id: string | null;
3696
+ destination_warehouse_id: string | null;
3697
+ fetched_at: string;
3698
+ floriday_id: string;
3699
+ id: string;
3700
+ is_deleted: boolean | null;
3701
+ latest_delivery_at: string | null;
3702
+ load_carrier_type: string | null;
3703
+ one_label_only: boolean | null;
3704
+ sequence_number: number;
3705
+ status: string | null;
3706
+ };
3707
+ Insert: {
3708
+ auction_date?: string | null;
3709
+ connection_id: string;
3710
+ data: import("./types").Json;
3711
+ delivery_order_id?: string | null;
3712
+ despatch_warehouse_id?: string | null;
3713
+ destination_warehouse_id?: string | null;
3714
+ fetched_at?: string;
3715
+ floriday_id: string;
3716
+ id?: string;
3717
+ is_deleted?: boolean | null;
3718
+ latest_delivery_at?: string | null;
3719
+ load_carrier_type?: string | null;
3720
+ one_label_only?: boolean | null;
3721
+ sequence_number?: number;
3722
+ status?: string | null;
3723
+ };
3724
+ Update: {
3725
+ auction_date?: string | null;
3726
+ connection_id?: string;
3727
+ data?: import("./types").Json;
3728
+ delivery_order_id?: string | null;
3729
+ despatch_warehouse_id?: string | null;
3730
+ destination_warehouse_id?: string | null;
3731
+ fetched_at?: string;
3732
+ floriday_id?: string;
3733
+ id?: string;
3734
+ is_deleted?: boolean | null;
3735
+ latest_delivery_at?: string | null;
3736
+ load_carrier_type?: string | null;
3737
+ one_label_only?: boolean | null;
3738
+ sequence_number?: number;
3739
+ status?: string | null;
3740
+ };
3741
+ Relationships: [{
3742
+ foreignKeyName: "floriday_fulfillment_orders_cache_connection_id_fkey";
3743
+ columns: ["connection_id"];
3744
+ isOneToOne: false;
3745
+ referencedRelation: "floriday_connections";
3746
+ referencedColumns: ["id"];
3747
+ }];
3748
+ };
3749
+ floriday_invoices_cache: {
3750
+ Row: {
3751
+ buyer_organization_id: string | null;
3752
+ connection_id: string;
3753
+ currency: string | null;
3754
+ data: import("./types").Json;
3755
+ fetched_at: string;
3756
+ floriday_id: string;
3757
+ id: string;
3758
+ invoice_date: string | null;
3759
+ invoice_number: string | null;
3760
+ is_deleted: boolean;
3761
+ sequence_number: number;
3762
+ total_amount: number | null;
3763
+ updated_at: string;
3764
+ };
3765
+ Insert: {
3766
+ buyer_organization_id?: string | null;
3767
+ connection_id: string;
3768
+ currency?: string | null;
3769
+ data?: import("./types").Json;
3770
+ fetched_at?: string;
3771
+ floriday_id: string;
3772
+ id?: string;
3773
+ invoice_date?: string | null;
3774
+ invoice_number?: string | null;
3775
+ is_deleted?: boolean;
3776
+ sequence_number?: number;
3777
+ total_amount?: number | null;
3778
+ updated_at?: string;
3779
+ };
3780
+ Update: {
3781
+ buyer_organization_id?: string | null;
3782
+ connection_id?: string;
3783
+ currency?: string | null;
3784
+ data?: import("./types").Json;
3785
+ fetched_at?: string;
3786
+ floriday_id?: string;
3787
+ id?: string;
3788
+ invoice_date?: string | null;
3789
+ invoice_number?: string | null;
3790
+ is_deleted?: boolean;
3791
+ sequence_number?: number;
3792
+ total_amount?: number | null;
3793
+ updated_at?: string;
3794
+ };
3795
+ Relationships: [{
3796
+ foreignKeyName: "floriday_invoices_cache_connection_id_fkey";
3797
+ columns: ["connection_id"];
3798
+ isOneToOne: false;
3799
+ referencedRelation: "floriday_connections";
3800
+ referencedColumns: ["id"];
3801
+ }];
3802
+ };
3803
+ floriday_logistic_labels_cache: {
3804
+ Row: {
3805
+ byte_size: number | null;
3806
+ connection_id: string;
3807
+ content_type: string;
3808
+ fetched_at: string;
3809
+ fulfillment_order_id: string;
3810
+ id: string;
3811
+ logistic_label_code: string;
3812
+ storage_path: string;
3813
+ };
3814
+ Insert: {
3815
+ byte_size?: number | null;
3816
+ connection_id: string;
3817
+ content_type?: string;
3818
+ fetched_at?: string;
3819
+ fulfillment_order_id: string;
3820
+ id?: string;
3821
+ logistic_label_code: string;
3822
+ storage_path: string;
3823
+ };
3824
+ Update: {
3825
+ byte_size?: number | null;
3826
+ connection_id?: string;
3827
+ content_type?: string;
3828
+ fetched_at?: string;
3829
+ fulfillment_order_id?: string;
3830
+ id?: string;
3831
+ logistic_label_code?: string;
3832
+ storage_path?: string;
3833
+ };
3834
+ Relationships: [{
3835
+ foreignKeyName: "floriday_logistic_labels_cache_connection_id_fkey";
3836
+ columns: ["connection_id"];
3837
+ isOneToOne: false;
3838
+ referencedRelation: "floriday_connections";
3839
+ referencedColumns: ["id"];
3840
+ }];
3841
+ };
3842
+ floriday_network_cache: {
3843
+ Row: {
3844
+ city: string | null;
3845
+ connection_id: string;
3846
+ country: string | null;
3847
+ data: import("./types").Json;
3848
+ fetched_at: string;
3849
+ gln: string | null;
3850
+ organization_id: string;
3851
+ organization_name: string | null;
3852
+ };
3853
+ Insert: {
3854
+ city?: string | null;
3855
+ connection_id: string;
3856
+ country?: string | null;
3857
+ data?: import("./types").Json;
3858
+ fetched_at?: string;
3859
+ gln?: string | null;
3860
+ organization_id: string;
3861
+ organization_name?: string | null;
3862
+ };
3863
+ Update: {
3864
+ city?: string | null;
3865
+ connection_id?: string;
3866
+ country?: string | null;
3867
+ data?: import("./types").Json;
3868
+ fetched_at?: string;
3869
+ gln?: string | null;
3870
+ organization_id?: string;
3871
+ organization_name?: string | null;
3872
+ };
3873
+ Relationships: [];
3874
+ };
3875
+ floriday_network_sync_state: {
3876
+ Row: {
3877
+ connection_id: string;
3878
+ last_error: string | null;
3879
+ last_sequence_number: number;
3880
+ last_synced_at: string | null;
3881
+ updated_at: string;
3882
+ };
3883
+ Insert: {
3884
+ connection_id: string;
3885
+ last_error?: string | null;
3886
+ last_sequence_number?: number;
3887
+ last_synced_at?: string | null;
3888
+ updated_at?: string;
3889
+ };
3890
+ Update: {
3891
+ connection_id?: string;
3892
+ last_error?: string | null;
3893
+ last_sequence_number?: number;
3894
+ last_synced_at?: string | null;
3895
+ updated_at?: string;
3896
+ };
3897
+ Relationships: [];
3898
+ };
3899
+ floriday_packings_cache: {
3900
+ Row: {
3901
+ connection_id: string;
3902
+ data: import("./types").Json;
3903
+ fetched_at: string;
3904
+ floriday_id: string;
3905
+ id: string;
3906
+ is_deleted: boolean;
3907
+ sequence_number: number;
3908
+ updated_at: string;
3909
+ };
3910
+ Insert: {
3911
+ connection_id: string;
3912
+ data?: import("./types").Json;
3913
+ fetched_at?: string;
3914
+ floriday_id: string;
3915
+ id?: string;
2579
3916
  is_deleted?: boolean;
2580
- sequence_number: number;
2581
- status?: string | null;
2582
- synced_at?: string;
3917
+ sequence_number?: number;
3918
+ updated_at?: string;
2583
3919
  };
2584
3920
  Update: {
2585
- buyer_organization_id?: string | null;
2586
- buyer_organization_name?: string | null;
2587
3921
  connection_id?: string;
2588
3922
  data?: import("./types").Json;
2589
- floriday_connection_id?: string;
3923
+ fetched_at?: string;
3924
+ floriday_id?: string;
3925
+ id?: string;
2590
3926
  is_deleted?: boolean;
2591
3927
  sequence_number?: number;
2592
- status?: string | null;
2593
- synced_at?: string;
3928
+ updated_at?: string;
2594
3929
  };
2595
3930
  Relationships: [{
2596
- foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3931
+ foreignKeyName: "floriday_packings_cache_connection_id_fkey";
2597
3932
  columns: ["connection_id"];
2598
3933
  isOneToOne: false;
2599
3934
  referencedRelation: "floriday_connections";
2600
3935
  referencedColumns: ["id"];
2601
3936
  }];
2602
3937
  };
2603
- floriday_customers_cache: {
3938
+ floriday_price_groups_cache: {
2604
3939
  Row: {
2605
- connection_id: string | null;
3940
+ connection_id: string;
2606
3941
  data: import("./types").Json;
2607
3942
  fetched_at: string;
2608
- organization_id: string;
3943
+ floriday_id: string;
3944
+ is_deleted: boolean;
3945
+ sequence_number: number;
3946
+ updated_at: string;
2609
3947
  };
2610
3948
  Insert: {
2611
- connection_id?: string | null;
2612
- data?: import("./types").Json;
3949
+ connection_id: string;
3950
+ data: import("./types").Json;
2613
3951
  fetched_at?: string;
2614
- organization_id: string;
3952
+ floriday_id: string;
3953
+ is_deleted?: boolean;
3954
+ sequence_number?: number;
3955
+ updated_at?: string;
2615
3956
  };
2616
3957
  Update: {
2617
- connection_id?: string | null;
3958
+ connection_id?: string;
2618
3959
  data?: import("./types").Json;
2619
3960
  fetched_at?: string;
2620
- organization_id?: string;
3961
+ floriday_id?: string;
3962
+ is_deleted?: boolean;
3963
+ sequence_number?: number;
3964
+ updated_at?: string;
2621
3965
  };
2622
3966
  Relationships: [{
2623
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3967
+ foreignKeyName: "floriday_price_groups_cache_connection_id_fkey";
2624
3968
  columns: ["connection_id"];
2625
3969
  isOneToOne: false;
2626
3970
  referencedRelation: "floriday_connections";
2627
3971
  referencedColumns: ["id"];
2628
3972
  }];
2629
3973
  };
2630
- floriday_network_cache: {
3974
+ floriday_resource_schemas: {
2631
3975
  Row: {
2632
- city: string | null;
2633
- connection_id: string;
2634
- country: string | null;
2635
- data: import("./types").Json;
3976
+ enums: import("./types").Json;
2636
3977
  fetched_at: string;
2637
- gln: string | null;
2638
- organization_id: string;
2639
- organization_name: string | null;
3978
+ resource: string;
3979
+ schema: import("./types").Json;
3980
+ source_url: string | null;
3981
+ version: string;
2640
3982
  };
2641
3983
  Insert: {
2642
- city?: string | null;
2643
- connection_id: string;
2644
- country?: string | null;
2645
- data?: import("./types").Json;
3984
+ enums?: import("./types").Json;
2646
3985
  fetched_at?: string;
2647
- gln?: string | null;
2648
- organization_id: string;
2649
- organization_name?: string | null;
3986
+ resource: string;
3987
+ schema: import("./types").Json;
3988
+ source_url?: string | null;
3989
+ version: string;
2650
3990
  };
2651
3991
  Update: {
2652
- city?: string | null;
2653
- connection_id?: string;
2654
- country?: string | null;
2655
- data?: import("./types").Json;
3992
+ enums?: import("./types").Json;
2656
3993
  fetched_at?: string;
2657
- gln?: string | null;
2658
- organization_id?: string;
2659
- organization_name?: string | null;
3994
+ resource?: string;
3995
+ schema?: import("./types").Json;
3996
+ source_url?: string | null;
3997
+ version?: string;
2660
3998
  };
2661
3999
  Relationships: [];
2662
4000
  };
2663
- floriday_network_sync_state: {
4001
+ floriday_sales_strategies_cache: {
2664
4002
  Row: {
2665
4003
  connection_id: string;
2666
- last_error: string | null;
2667
- last_sequence_number: number;
2668
- last_synced_at: string | null;
4004
+ data: import("./types").Json;
4005
+ fetched_at: string;
4006
+ floriday_id: string;
4007
+ is_deleted: boolean;
4008
+ sequence_number: number;
2669
4009
  updated_at: string;
2670
4010
  };
2671
4011
  Insert: {
2672
4012
  connection_id: string;
2673
- last_error?: string | null;
2674
- last_sequence_number?: number;
2675
- last_synced_at?: string | null;
4013
+ data: import("./types").Json;
4014
+ fetched_at?: string;
4015
+ floriday_id: string;
4016
+ is_deleted?: boolean;
4017
+ sequence_number?: number;
2676
4018
  updated_at?: string;
2677
4019
  };
2678
4020
  Update: {
2679
4021
  connection_id?: string;
2680
- last_error?: string | null;
2681
- last_sequence_number?: number;
2682
- last_synced_at?: string | null;
4022
+ data?: import("./types").Json;
4023
+ fetched_at?: string;
4024
+ floriday_id?: string;
4025
+ is_deleted?: boolean;
4026
+ sequence_number?: number;
2683
4027
  updated_at?: string;
2684
4028
  };
2685
- Relationships: [];
4029
+ Relationships: [{
4030
+ foreignKeyName: "floriday_sales_strategies_cache_connection_id_fkey";
4031
+ columns: ["connection_id"];
4032
+ isOneToOne: false;
4033
+ referencedRelation: "floriday_connections";
4034
+ referencedColumns: ["id"];
4035
+ }];
2686
4036
  };
2687
4037
  floriday_salesorders_cache: {
2688
4038
  Row: {
@@ -2749,7 +4099,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2749
4099
  connection_id: string;
2750
4100
  entity_type: string;
2751
4101
  last_error: string | null;
4102
+ last_items_processed: number | null;
2752
4103
  last_sequence_number: number;
4104
+ last_success_at: string | null;
2753
4105
  last_synced_at: string | null;
2754
4106
  updated_at: string;
2755
4107
  };
@@ -2757,7 +4109,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2757
4109
  connection_id: string;
2758
4110
  entity_type: string;
2759
4111
  last_error?: string | null;
4112
+ last_items_processed?: number | null;
2760
4113
  last_sequence_number?: number;
4114
+ last_success_at?: string | null;
2761
4115
  last_synced_at?: string | null;
2762
4116
  updated_at?: string;
2763
4117
  };
@@ -2765,7 +4119,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2765
4119
  connection_id?: string;
2766
4120
  entity_type?: string;
2767
4121
  last_error?: string | null;
4122
+ last_items_processed?: number | null;
2768
4123
  last_sequence_number?: number;
4124
+ last_success_at?: string | null;
2769
4125
  last_synced_at?: string | null;
2770
4126
  updated_at?: string;
2771
4127
  };
@@ -2813,33 +4169,225 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2813
4169
  referencedColumns: ["id"];
2814
4170
  }];
2815
4171
  };
2816
- floriday_trade_items_cache: {
4172
+ floriday_trade_item_classifications_cache: {
4173
+ Row: {
4174
+ connection_id: string;
4175
+ data: import("./types").Json;
4176
+ fetched_at: string;
4177
+ floriday_id: string;
4178
+ id: string;
4179
+ is_deleted: boolean;
4180
+ sequence_number: number;
4181
+ updated_at: string;
4182
+ };
4183
+ Insert: {
4184
+ connection_id: string;
4185
+ data: import("./types").Json;
4186
+ fetched_at?: string;
4187
+ floriday_id: string;
4188
+ id?: string;
4189
+ is_deleted?: boolean;
4190
+ sequence_number?: number;
4191
+ updated_at?: string;
4192
+ };
4193
+ Update: {
4194
+ connection_id?: string;
4195
+ data?: import("./types").Json;
4196
+ fetched_at?: string;
4197
+ floriday_id?: string;
4198
+ id?: string;
4199
+ is_deleted?: boolean;
4200
+ sequence_number?: number;
4201
+ updated_at?: string;
4202
+ };
4203
+ Relationships: [{
4204
+ foreignKeyName: "floriday_trade_item_classifications_cache_connection_id_fkey";
4205
+ columns: ["connection_id"];
4206
+ isOneToOne: false;
4207
+ referencedRelation: "floriday_connections";
4208
+ referencedColumns: ["id"];
4209
+ }];
4210
+ };
4211
+ floriday_trade_items_cache: {
4212
+ Row: {
4213
+ connection_id: string;
4214
+ data: import("./types").Json;
4215
+ fetched_at: string;
4216
+ floriday_id: string;
4217
+ is_deleted: boolean;
4218
+ sequence_number: number;
4219
+ };
4220
+ Insert: {
4221
+ connection_id: string;
4222
+ data?: import("./types").Json;
4223
+ fetched_at?: string;
4224
+ floriday_id: string;
4225
+ is_deleted?: boolean;
4226
+ sequence_number?: number;
4227
+ };
4228
+ Update: {
4229
+ connection_id?: string;
4230
+ data?: import("./types").Json;
4231
+ fetched_at?: string;
4232
+ floriday_id?: string;
4233
+ is_deleted?: boolean;
4234
+ sequence_number?: number;
4235
+ };
4236
+ Relationships: [{
4237
+ foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4238
+ columns: ["connection_id"];
4239
+ isOneToOne: false;
4240
+ referencedRelation: "floriday_connections";
4241
+ referencedColumns: ["id"];
4242
+ }];
4243
+ };
4244
+ floriday_trips_cache: {
4245
+ Row: {
4246
+ carrier_organization_id: string | null;
4247
+ connection_id: string;
4248
+ data: import("./types").Json;
4249
+ fetched_at: string;
4250
+ floriday_id: string;
4251
+ id: string;
4252
+ is_deleted: boolean;
4253
+ sequence_number: number;
4254
+ status: string | null;
4255
+ trip_date: string | null;
4256
+ updated_at: string;
4257
+ };
4258
+ Insert: {
4259
+ carrier_organization_id?: string | null;
4260
+ connection_id: string;
4261
+ data?: import("./types").Json;
4262
+ fetched_at?: string;
4263
+ floriday_id: string;
4264
+ id?: string;
4265
+ is_deleted?: boolean;
4266
+ sequence_number?: number;
4267
+ status?: string | null;
4268
+ trip_date?: string | null;
4269
+ updated_at?: string;
4270
+ };
4271
+ Update: {
4272
+ carrier_organization_id?: string | null;
4273
+ connection_id?: string;
4274
+ data?: import("./types").Json;
4275
+ fetched_at?: string;
4276
+ floriday_id?: string;
4277
+ id?: string;
4278
+ is_deleted?: boolean;
4279
+ sequence_number?: number;
4280
+ status?: string | null;
4281
+ trip_date?: string | null;
4282
+ updated_at?: string;
4283
+ };
4284
+ Relationships: [{
4285
+ foreignKeyName: "floriday_trips_cache_connection_id_fkey";
4286
+ columns: ["connection_id"];
4287
+ isOneToOne: false;
4288
+ referencedRelation: "floriday_connections";
4289
+ referencedColumns: ["id"];
4290
+ }];
4291
+ };
4292
+ floriday_warehouses_cache: {
4293
+ Row: {
4294
+ connection_id: string;
4295
+ data: import("./types").Json;
4296
+ fetched_at: string;
4297
+ floriday_id: string;
4298
+ gln_code: string | null;
4299
+ id: string;
4300
+ is_default: boolean;
4301
+ is_deleted: boolean;
4302
+ name: string | null;
4303
+ updated_at: string;
4304
+ };
4305
+ Insert: {
4306
+ connection_id: string;
4307
+ data?: import("./types").Json;
4308
+ fetched_at?: string;
4309
+ floriday_id: string;
4310
+ gln_code?: string | null;
4311
+ id?: string;
4312
+ is_default?: boolean;
4313
+ is_deleted?: boolean;
4314
+ name?: string | null;
4315
+ updated_at?: string;
4316
+ };
4317
+ Update: {
4318
+ connection_id?: string;
4319
+ data?: import("./types").Json;
4320
+ fetched_at?: string;
4321
+ floriday_id?: string;
4322
+ gln_code?: string | null;
4323
+ id?: string;
4324
+ is_default?: boolean;
4325
+ is_deleted?: boolean;
4326
+ name?: string | null;
4327
+ updated_at?: string;
4328
+ };
4329
+ Relationships: [{
4330
+ foreignKeyName: "floriday_warehouses_cache_connection_id_fkey";
4331
+ columns: ["connection_id"];
4332
+ isOneToOne: false;
4333
+ referencedRelation: "floriday_connections";
4334
+ referencedColumns: ["id"];
4335
+ }];
4336
+ };
4337
+ floriday_write_log: {
2817
4338
  Row: {
2818
- connection_id: string;
2819
- data: import("./types").Json;
2820
- fetched_at: string;
2821
- floriday_id: string;
2822
- is_deleted: boolean;
2823
- sequence_number: number;
4339
+ action: string;
4340
+ caller: string;
4341
+ connection_id: string | null;
4342
+ created_at: string;
4343
+ error: string | null;
4344
+ floriday_id: string | null;
4345
+ http_status: number | null;
4346
+ id: string;
4347
+ idempotency_key: string | null;
4348
+ module: string | null;
4349
+ ok: boolean;
4350
+ request: import("./types").Json | null;
4351
+ resource: string;
4352
+ response: import("./types").Json | null;
4353
+ user_id: string | null;
2824
4354
  };
2825
4355
  Insert: {
2826
- connection_id: string;
2827
- data?: import("./types").Json;
2828
- fetched_at?: string;
2829
- floriday_id: string;
2830
- is_deleted?: boolean;
2831
- sequence_number?: number;
4356
+ action: string;
4357
+ caller?: string;
4358
+ connection_id?: string | null;
4359
+ created_at?: string;
4360
+ error?: string | null;
4361
+ floriday_id?: string | null;
4362
+ http_status?: number | null;
4363
+ id?: string;
4364
+ idempotency_key?: string | null;
4365
+ module?: string | null;
4366
+ ok: boolean;
4367
+ request?: import("./types").Json | null;
4368
+ resource: string;
4369
+ response?: import("./types").Json | null;
4370
+ user_id?: string | null;
2832
4371
  };
2833
4372
  Update: {
2834
- connection_id?: string;
2835
- data?: import("./types").Json;
2836
- fetched_at?: string;
2837
- floriday_id?: string;
2838
- is_deleted?: boolean;
2839
- sequence_number?: number;
4373
+ action?: string;
4374
+ caller?: string;
4375
+ connection_id?: string | null;
4376
+ created_at?: string;
4377
+ error?: string | null;
4378
+ floriday_id?: string | null;
4379
+ http_status?: number | null;
4380
+ id?: string;
4381
+ idempotency_key?: string | null;
4382
+ module?: string | null;
4383
+ ok?: boolean;
4384
+ request?: import("./types").Json | null;
4385
+ resource?: string;
4386
+ response?: import("./types").Json | null;
4387
+ user_id?: string | null;
2840
4388
  };
2841
4389
  Relationships: [{
2842
- foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4390
+ foreignKeyName: "floriday_write_log_connection_id_fkey";
2843
4391
  columns: ["connection_id"];
2844
4392
  isOneToOne: false;
2845
4393
  referencedRelation: "floriday_connections";
@@ -3020,6 +4568,57 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3020
4568
  };
3021
4569
  Relationships: [];
3022
4570
  };
4571
+ invoice_push_log: {
4572
+ Row: {
4573
+ connection_id: string | null;
4574
+ created_at: string;
4575
+ created_by: string;
4576
+ customer_id: string | null;
4577
+ id: string;
4578
+ last_error: string | null;
4579
+ last_polled_at: string | null;
4580
+ payload: import("./types").Json;
4581
+ provider_id: string;
4582
+ queue_id: string | null;
4583
+ status: string;
4584
+ updated_at: string;
4585
+ };
4586
+ Insert: {
4587
+ connection_id?: string | null;
4588
+ created_at?: string;
4589
+ created_by?: string;
4590
+ customer_id?: string | null;
4591
+ id?: string;
4592
+ last_error?: string | null;
4593
+ last_polled_at?: string | null;
4594
+ payload?: import("./types").Json;
4595
+ provider_id: string;
4596
+ queue_id?: string | null;
4597
+ status?: string;
4598
+ updated_at?: string;
4599
+ };
4600
+ Update: {
4601
+ connection_id?: string | null;
4602
+ created_at?: string;
4603
+ created_by?: string;
4604
+ customer_id?: string | null;
4605
+ id?: string;
4606
+ last_error?: string | null;
4607
+ last_polled_at?: string | null;
4608
+ payload?: import("./types").Json;
4609
+ provider_id?: string;
4610
+ queue_id?: string | null;
4611
+ status?: string;
4612
+ updated_at?: string;
4613
+ };
4614
+ Relationships: [{
4615
+ foreignKeyName: "invoice_push_log_provider_id_fkey";
4616
+ columns: ["provider_id"];
4617
+ isOneToOne: false;
4618
+ referencedRelation: "external_invoice_providers";
4619
+ referencedColumns: ["provider"];
4620
+ }];
4621
+ };
3023
4622
  invoice_run_items: {
3024
4623
  Row: {
3025
4624
  booking_id: string | null;
@@ -3144,6 +4743,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3144
4743
  Row: {
3145
4744
  body_html: string | null;
3146
4745
  body_text: string | null;
4746
+ connection_id: string | null;
3147
4747
  created_at: string;
3148
4748
  error_message: string | null;
3149
4749
  external_id: string | null;
@@ -3162,6 +4762,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3162
4762
  Insert: {
3163
4763
  body_html?: string | null;
3164
4764
  body_text?: string | null;
4765
+ connection_id?: string | null;
3165
4766
  created_at?: string;
3166
4767
  error_message?: string | null;
3167
4768
  external_id?: string | null;
@@ -3180,6 +4781,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3180
4781
  Update: {
3181
4782
  body_html?: string | null;
3182
4783
  body_text?: string | null;
4784
+ connection_id?: string | null;
3183
4785
  created_at?: string;
3184
4786
  error_message?: string | null;
3185
4787
  external_id?: string | null;
@@ -3196,6 +4798,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3196
4798
  updated_at?: string;
3197
4799
  };
3198
4800
  Relationships: [{
4801
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4802
+ columns: ["connection_id"];
4803
+ isOneToOne: false;
4804
+ referencedRelation: "email_auth_connections";
4805
+ referencedColumns: ["id"];
4806
+ }, {
4807
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4808
+ columns: ["connection_id"];
4809
+ isOneToOne: false;
4810
+ referencedRelation: "email_auth_connections_safe";
4811
+ referencedColumns: ["id"];
4812
+ }, {
3199
4813
  foreignKeyName: "mailbox_messages_profile_id_fkey";
3200
4814
  columns: ["profile_id"];
3201
4815
  isOneToOne: false;
@@ -3479,6 +5093,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3479
5093
  role: string;
3480
5094
  tenant_id: string;
3481
5095
  updated_at: string;
5096
+ user_id: string | null;
3482
5097
  };
3483
5098
  Insert: {
3484
5099
  avatar_url?: string | null;
@@ -3494,6 +5109,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3494
5109
  role?: string;
3495
5110
  tenant_id: string;
3496
5111
  updated_at?: string;
5112
+ user_id?: string | null;
3497
5113
  };
3498
5114
  Update: {
3499
5115
  avatar_url?: string | null;
@@ -3509,6 +5125,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3509
5125
  role?: string;
3510
5126
  tenant_id?: string;
3511
5127
  updated_at?: string;
5128
+ user_id?: string | null;
3512
5129
  };
3513
5130
  Relationships: [{
3514
5131
  foreignKeyName: "monteurs_tenant_id_fkey";
@@ -3645,12 +5262,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3645
5262
  isOneToOne: false;
3646
5263
  referencedRelation: "offer_campaigns";
3647
5264
  referencedColumns: ["id"];
3648
- }, {
3649
- foreignKeyName: "offer_campaign_products_product_id_fkey";
3650
- columns: ["product_id"];
3651
- isOneToOne: false;
3652
- referencedRelation: "products";
3653
- referencedColumns: ["id"];
3654
5265
  }];
3655
5266
  };
3656
5267
  offer_campaigns: {
@@ -3926,6 +5537,99 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3926
5537
  };
3927
5538
  Relationships: [];
3928
5539
  };
5540
+ order_cart_items: {
5541
+ Row: {
5542
+ cart_id: string;
5543
+ crates: number;
5544
+ crates_per_layer: number;
5545
+ created_at: string;
5546
+ id: string;
5547
+ order_item_id: string | null;
5548
+ plants_per_crate: number;
5549
+ product_id: string | null;
5550
+ product_name: string;
5551
+ };
5552
+ Insert: {
5553
+ cart_id: string;
5554
+ crates: number;
5555
+ crates_per_layer?: number;
5556
+ created_at?: string;
5557
+ id?: string;
5558
+ order_item_id?: string | null;
5559
+ plants_per_crate?: number;
5560
+ product_id?: string | null;
5561
+ product_name: string;
5562
+ };
5563
+ Update: {
5564
+ cart_id?: string;
5565
+ crates?: number;
5566
+ crates_per_layer?: number;
5567
+ created_at?: string;
5568
+ id?: string;
5569
+ order_item_id?: string | null;
5570
+ plants_per_crate?: number;
5571
+ product_id?: string | null;
5572
+ product_name?: string;
5573
+ };
5574
+ Relationships: [{
5575
+ foreignKeyName: "order_cart_items_cart_id_fkey";
5576
+ columns: ["cart_id"];
5577
+ isOneToOne: false;
5578
+ referencedRelation: "order_carts";
5579
+ referencedColumns: ["id"];
5580
+ }, {
5581
+ foreignKeyName: "order_cart_items_order_item_id_fkey";
5582
+ columns: ["order_item_id"];
5583
+ isOneToOne: false;
5584
+ referencedRelation: "order_items";
5585
+ referencedColumns: ["id"];
5586
+ }, {
5587
+ foreignKeyName: "order_cart_items_product_id_fkey";
5588
+ columns: ["product_id"];
5589
+ isOneToOne: false;
5590
+ referencedRelation: "products";
5591
+ referencedColumns: ["id"];
5592
+ }];
5593
+ };
5594
+ order_carts: {
5595
+ Row: {
5596
+ cart_number: number;
5597
+ created_at: string;
5598
+ id: string;
5599
+ is_auto: boolean;
5600
+ is_complete: boolean;
5601
+ notes: string | null;
5602
+ order_id: string;
5603
+ updated_at: string;
5604
+ };
5605
+ Insert: {
5606
+ cart_number: number;
5607
+ created_at?: string;
5608
+ id?: string;
5609
+ is_auto?: boolean;
5610
+ is_complete?: boolean;
5611
+ notes?: string | null;
5612
+ order_id: string;
5613
+ updated_at?: string;
5614
+ };
5615
+ Update: {
5616
+ cart_number?: number;
5617
+ created_at?: string;
5618
+ id?: string;
5619
+ is_auto?: boolean;
5620
+ is_complete?: boolean;
5621
+ notes?: string | null;
5622
+ order_id?: string;
5623
+ updated_at?: string;
5624
+ };
5625
+ Relationships: [{
5626
+ foreignKeyName: "order_carts_order_id_fkey";
5627
+ columns: ["order_id"];
5628
+ isOneToOne: false;
5629
+ referencedRelation: "orders";
5630
+ referencedColumns: ["id"];
5631
+ }];
5632
+ };
3929
5633
  order_field_options: {
3930
5634
  Row: {
3931
5635
  created_at: string;
@@ -4127,6 +5831,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4127
5831
  };
4128
5832
  Relationships: [];
4129
5833
  };
5834
+ pickstation_print_log: {
5835
+ Row: {
5836
+ customer_name: string | null;
5837
+ documents: string[];
5838
+ id: string;
5839
+ ip_address: string | null;
5840
+ order_id: string;
5841
+ order_number: string | null;
5842
+ printed_at: string;
5843
+ };
5844
+ Insert: {
5845
+ customer_name?: string | null;
5846
+ documents?: string[];
5847
+ id?: string;
5848
+ ip_address?: string | null;
5849
+ order_id: string;
5850
+ order_number?: string | null;
5851
+ printed_at?: string;
5852
+ };
5853
+ Update: {
5854
+ customer_name?: string | null;
5855
+ documents?: string[];
5856
+ id?: string;
5857
+ ip_address?: string | null;
5858
+ order_id?: string;
5859
+ order_number?: string | null;
5860
+ printed_at?: string;
5861
+ };
5862
+ Relationships: [];
5863
+ };
4130
5864
  pipeline_settings: {
4131
5865
  Row: {
4132
5866
  created_at: string;
@@ -4287,13 +6021,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4287
6021
  Row: {
4288
6022
  barcode: string | null;
4289
6023
  batch: string;
6024
+ crates_per_layer: number;
4290
6025
  created_at: string;
4291
6026
  custom_fields: import("./types").Json;
4292
6027
  id: string;
4293
6028
  image_url: string | null;
4294
6029
  incoming_quantity: number;
6030
+ layers_per_cart: number;
4295
6031
  location: string;
4296
6032
  min_quantity: number;
6033
+ plants_per_crate: number;
4297
6034
  product: string;
4298
6035
  product_type: string;
4299
6036
  purchase_price: number | null;
@@ -4306,13 +6043,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4306
6043
  Insert: {
4307
6044
  barcode?: string | null;
4308
6045
  batch: string;
6046
+ crates_per_layer?: number;
4309
6047
  created_at?: string;
4310
6048
  custom_fields?: import("./types").Json;
4311
6049
  id?: string;
4312
6050
  image_url?: string | null;
4313
6051
  incoming_quantity?: number;
6052
+ layers_per_cart?: number;
4314
6053
  location: string;
4315
6054
  min_quantity?: number;
6055
+ plants_per_crate?: number;
4316
6056
  product: string;
4317
6057
  product_type?: string;
4318
6058
  purchase_price?: number | null;
@@ -4325,13 +6065,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4325
6065
  Update: {
4326
6066
  barcode?: string | null;
4327
6067
  batch?: string;
6068
+ crates_per_layer?: number;
4328
6069
  created_at?: string;
4329
6070
  custom_fields?: import("./types").Json;
4330
6071
  id?: string;
4331
6072
  image_url?: string | null;
4332
6073
  incoming_quantity?: number;
6074
+ layers_per_cart?: number;
4333
6075
  location?: string;
4334
6076
  min_quantity?: number;
6077
+ plants_per_crate?: number;
4335
6078
  product?: string;
4336
6079
  product_type?: string;
4337
6080
  purchase_price?: number | null;
@@ -5273,6 +7016,141 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5273
7016
  };
5274
7017
  Relationships: [];
5275
7018
  };
7019
+ time_entries: {
7020
+ Row: {
7021
+ created_at: string;
7022
+ employee_id: string;
7023
+ entry_date: string;
7024
+ hours: number;
7025
+ id: string;
7026
+ notes: string | null;
7027
+ overtime: number;
7028
+ undertime: number;
7029
+ updated_at: string;
7030
+ };
7031
+ Insert: {
7032
+ created_at?: string;
7033
+ employee_id: string;
7034
+ entry_date: string;
7035
+ hours?: number;
7036
+ id?: string;
7037
+ notes?: string | null;
7038
+ overtime?: number;
7039
+ undertime?: number;
7040
+ updated_at?: string;
7041
+ };
7042
+ Update: {
7043
+ created_at?: string;
7044
+ employee_id?: string;
7045
+ entry_date?: string;
7046
+ hours?: number;
7047
+ id?: string;
7048
+ notes?: string | null;
7049
+ overtime?: number;
7050
+ undertime?: number;
7051
+ updated_at?: string;
7052
+ };
7053
+ Relationships: [{
7054
+ foreignKeyName: "time_entries_employee_id_fkey";
7055
+ columns: ["employee_id"];
7056
+ isOneToOne: false;
7057
+ referencedRelation: "monteurs";
7058
+ referencedColumns: ["id"];
7059
+ }];
7060
+ };
7061
+ time_logs: {
7062
+ Row: {
7063
+ created_at: string;
7064
+ employee_id: string;
7065
+ end_time: string | null;
7066
+ id: string;
7067
+ notes: string | null;
7068
+ overtime_hours: number;
7069
+ overtime_type: string | null;
7070
+ regular_hours: number;
7071
+ start_time: string;
7072
+ travel_cost: number | null;
7073
+ travel_distance_km: number | null;
7074
+ type: string;
7075
+ updated_at: string;
7076
+ };
7077
+ Insert: {
7078
+ created_at?: string;
7079
+ employee_id: string;
7080
+ end_time?: string | null;
7081
+ id?: string;
7082
+ notes?: string | null;
7083
+ overtime_hours?: number;
7084
+ overtime_type?: string | null;
7085
+ regular_hours?: number;
7086
+ start_time?: string;
7087
+ travel_cost?: number | null;
7088
+ travel_distance_km?: number | null;
7089
+ type: string;
7090
+ updated_at?: string;
7091
+ };
7092
+ Update: {
7093
+ created_at?: string;
7094
+ employee_id?: string;
7095
+ end_time?: string | null;
7096
+ id?: string;
7097
+ notes?: string | null;
7098
+ overtime_hours?: number;
7099
+ overtime_type?: string | null;
7100
+ regular_hours?: number;
7101
+ start_time?: string;
7102
+ travel_cost?: number | null;
7103
+ travel_distance_km?: number | null;
7104
+ type?: string;
7105
+ updated_at?: string;
7106
+ };
7107
+ Relationships: [{
7108
+ foreignKeyName: "time_logs_employee_id_fkey";
7109
+ columns: ["employee_id"];
7110
+ isOneToOne: false;
7111
+ referencedRelation: "monteurs";
7112
+ referencedColumns: ["id"];
7113
+ }];
7114
+ };
7115
+ time_off_entries: {
7116
+ Row: {
7117
+ created_at: string;
7118
+ employee_id: string;
7119
+ entry_date: string;
7120
+ hours: number;
7121
+ id: string;
7122
+ notes: string | null;
7123
+ type: string;
7124
+ updated_at: string;
7125
+ };
7126
+ Insert: {
7127
+ created_at?: string;
7128
+ employee_id: string;
7129
+ entry_date: string;
7130
+ hours?: number;
7131
+ id?: string;
7132
+ notes?: string | null;
7133
+ type: string;
7134
+ updated_at?: string;
7135
+ };
7136
+ Update: {
7137
+ created_at?: string;
7138
+ employee_id?: string;
7139
+ entry_date?: string;
7140
+ hours?: number;
7141
+ id?: string;
7142
+ notes?: string | null;
7143
+ type?: string;
7144
+ updated_at?: string;
7145
+ };
7146
+ Relationships: [{
7147
+ foreignKeyName: "time_off_entries_employee_id_fkey";
7148
+ columns: ["employee_id"];
7149
+ isOneToOne: false;
7150
+ referencedRelation: "monteurs";
7151
+ referencedColumns: ["id"];
7152
+ }];
7153
+ };
5276
7154
  trade_item_drafts: {
5277
7155
  Row: {
5278
7156
  connection_id: string | null;
@@ -5570,9 +7448,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5570
7448
  fetched_at: string;
5571
7449
  invoice_number: string;
5572
7450
  line_number: number;
7451
+ line_total: number | null;
5573
7452
  quantity: number | null;
5574
7453
  unit_price: number | null;
5575
7454
  vat_code: string | null;
7455
+ vat_rate: number | null;
5576
7456
  };
5577
7457
  Insert: {
5578
7458
  article_code?: string | null;
@@ -5582,9 +7462,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5582
7462
  fetched_at?: string;
5583
7463
  invoice_number: string;
5584
7464
  line_number: number;
7465
+ line_total?: number | null;
5585
7466
  quantity?: number | null;
5586
7467
  unit_price?: number | null;
5587
7468
  vat_code?: string | null;
7469
+ vat_rate?: number | null;
5588
7470
  };
5589
7471
  Update: {
5590
7472
  article_code?: string | null;
@@ -5594,9 +7476,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5594
7476
  fetched_at?: string;
5595
7477
  invoice_number?: string;
5596
7478
  line_number?: number;
7479
+ line_total?: number | null;
5597
7480
  quantity?: number | null;
5598
7481
  unit_price?: number | null;
5599
7482
  vat_code?: string | null;
7483
+ vat_rate?: number | null;
5600
7484
  };
5601
7485
  Relationships: [{
5602
7486
  foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
@@ -5773,9 +7657,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5773
7657
  invoice_date: string | null;
5774
7658
  invoice_number: string;
5775
7659
  modified_at: string | null;
7660
+ outstanding_amount: number | null;
5776
7661
  status: string | null;
7662
+ status_label: string | null;
5777
7663
  total_excl: number | null;
5778
7664
  total_incl: number | null;
7665
+ vat_amount: number | null;
5779
7666
  };
5780
7667
  Insert: {
5781
7668
  connection_id: string;
@@ -5787,9 +7674,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5787
7674
  invoice_date?: string | null;
5788
7675
  invoice_number: string;
5789
7676
  modified_at?: string | null;
7677
+ outstanding_amount?: number | null;
5790
7678
  status?: string | null;
7679
+ status_label?: string | null;
5791
7680
  total_excl?: number | null;
5792
7681
  total_incl?: number | null;
7682
+ vat_amount?: number | null;
5793
7683
  };
5794
7684
  Update: {
5795
7685
  connection_id?: string;
@@ -5801,9 +7691,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5801
7691
  invoice_date?: string | null;
5802
7692
  invoice_number?: string;
5803
7693
  modified_at?: string | null;
7694
+ outstanding_amount?: number | null;
5804
7695
  status?: string | null;
7696
+ status_label?: string | null;
5805
7697
  total_excl?: number | null;
5806
7698
  total_incl?: number | null;
7699
+ vat_amount?: number | null;
5807
7700
  };
5808
7701
  Relationships: [{
5809
7702
  foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
@@ -5837,6 +7730,57 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5837
7730
  };
5838
7731
  Relationships: [];
5839
7732
  };
7733
+ twinfield_push_queue: {
7734
+ Row: {
7735
+ attempts: number;
7736
+ connection_id: string;
7737
+ created_at: string;
7738
+ external_id: string | null;
7739
+ id: string;
7740
+ idempotency_key: string;
7741
+ last_error: string | null;
7742
+ next_attempt_at: string;
7743
+ office_code: string;
7744
+ payload: import("./types").Json;
7745
+ status: string;
7746
+ updated_at: string;
7747
+ };
7748
+ Insert: {
7749
+ attempts?: number;
7750
+ connection_id: string;
7751
+ created_at?: string;
7752
+ external_id?: string | null;
7753
+ id?: string;
7754
+ idempotency_key: string;
7755
+ last_error?: string | null;
7756
+ next_attempt_at?: string;
7757
+ office_code: string;
7758
+ payload: import("./types").Json;
7759
+ status?: string;
7760
+ updated_at?: string;
7761
+ };
7762
+ Update: {
7763
+ attempts?: number;
7764
+ connection_id?: string;
7765
+ created_at?: string;
7766
+ external_id?: string | null;
7767
+ id?: string;
7768
+ idempotency_key?: string;
7769
+ last_error?: string | null;
7770
+ next_attempt_at?: string;
7771
+ office_code?: string;
7772
+ payload?: import("./types").Json;
7773
+ status?: string;
7774
+ updated_at?: string;
7775
+ };
7776
+ Relationships: [{
7777
+ foreignKeyName: "twinfield_push_queue_connection_id_fkey";
7778
+ columns: ["connection_id"];
7779
+ isOneToOne: false;
7780
+ referencedRelation: "twinfield_connections";
7781
+ referencedColumns: ["id"];
7782
+ }];
7783
+ };
5840
7784
  twinfield_settings: {
5841
7785
  Row: {
5842
7786
  active_environment: string;
@@ -5948,6 +7892,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5948
7892
  referencedColumns: ["id"];
5949
7893
  }];
5950
7894
  };
7895
+ voorraad_publish_attempts: {
7896
+ Row: {
7897
+ action: string;
7898
+ connection_id: string | null;
7899
+ created_at: string;
7900
+ error: string | null;
7901
+ gateway_attempt_id: string | null;
7902
+ gateway_status: number | null;
7903
+ id: string;
7904
+ intent: string;
7905
+ ok: boolean;
7906
+ request_summary: import("./types").Json | null;
7907
+ trade_item_id: string | null;
7908
+ user_id: string;
7909
+ };
7910
+ Insert: {
7911
+ action: string;
7912
+ connection_id?: string | null;
7913
+ created_at?: string;
7914
+ error?: string | null;
7915
+ gateway_attempt_id?: string | null;
7916
+ gateway_status?: number | null;
7917
+ id?: string;
7918
+ intent: string;
7919
+ ok: boolean;
7920
+ request_summary?: import("./types").Json | null;
7921
+ trade_item_id?: string | null;
7922
+ user_id: string;
7923
+ };
7924
+ Update: {
7925
+ action?: string;
7926
+ connection_id?: string | null;
7927
+ created_at?: string;
7928
+ error?: string | null;
7929
+ gateway_attempt_id?: string | null;
7930
+ gateway_status?: number | null;
7931
+ id?: string;
7932
+ intent?: string;
7933
+ ok?: boolean;
7934
+ request_summary?: import("./types").Json | null;
7935
+ trade_item_id?: string | null;
7936
+ user_id?: string;
7937
+ };
7938
+ Relationships: [];
7939
+ };
5951
7940
  work_order_monteurs: {
5952
7941
  Row: {
5953
7942
  created_at: string;
@@ -6259,6 +8248,132 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6259
8248
  };
6260
8249
  Relationships: [];
6261
8250
  };
8251
+ external_invoices_grouped: {
8252
+ Row: {
8253
+ currency: string | null;
8254
+ customer_external_id: string | null;
8255
+ customer_name: string | null;
8256
+ customer_vat: string | null;
8257
+ due_at: string | null;
8258
+ group_key: string | null;
8259
+ invoice_number: string | null;
8260
+ is_merged: boolean | null;
8261
+ issued_at: string | null;
8262
+ modified_at: string | null;
8263
+ open_amount: number | null;
8264
+ paid_at: string | null;
8265
+ providers: string[] | null;
8266
+ source_count: number | null;
8267
+ sources: import("./types").Json | null;
8268
+ status: string | null;
8269
+ total_excl: number | null;
8270
+ total_incl: number | null;
8271
+ total_vat: number | null;
8272
+ };
8273
+ Relationships: [];
8274
+ };
8275
+ external_invoices_unified: {
8276
+ Row: {
8277
+ connection_id: string | null;
8278
+ currency: string | null;
8279
+ customer_external_id: string | null;
8280
+ customer_name: string | null;
8281
+ customer_vat: string | null;
8282
+ due_at: string | null;
8283
+ external_id: string | null;
8284
+ invoice_number: string | null;
8285
+ issued_at: string | null;
8286
+ open_amount: number | null;
8287
+ owner_user_id: string | null;
8288
+ paid_at: string | null;
8289
+ raw: import("./types").Json | null;
8290
+ source: string | null;
8291
+ status: string | null;
8292
+ synced_at: string | null;
8293
+ total_excl: number | null;
8294
+ total_incl: number | null;
8295
+ total_vat: number | null;
8296
+ };
8297
+ Relationships: [];
8298
+ };
8299
+ v_external_customers_exact: {
8300
+ Row: {
8301
+ account_number: string | null;
8302
+ city: string | null;
8303
+ coc_number: string | null;
8304
+ company_name: string | null;
8305
+ connection_id: string | null;
8306
+ country: string | null;
8307
+ currency: string | null;
8308
+ email: string | null;
8309
+ external_id: string | null;
8310
+ is_sales: boolean | null;
8311
+ is_supplier: boolean | null;
8312
+ language: string | null;
8313
+ modified_at: string | null;
8314
+ phone: string | null;
8315
+ postal_code: string | null;
8316
+ raw: import("./types").Json | null;
8317
+ source: string | null;
8318
+ street: string | null;
8319
+ synced_at: string | null;
8320
+ vat_number: string | null;
8321
+ website: string | null;
8322
+ };
8323
+ Insert: {
8324
+ account_number?: string | null;
8325
+ city?: string | null;
8326
+ coc_number?: string | null;
8327
+ company_name?: string | null;
8328
+ connection_id?: string | null;
8329
+ country?: string | null;
8330
+ currency?: string | null;
8331
+ email?: string | null;
8332
+ external_id?: string | null;
8333
+ is_sales?: boolean | null;
8334
+ is_supplier?: boolean | null;
8335
+ language?: string | null;
8336
+ modified_at?: string | null;
8337
+ phone?: string | null;
8338
+ postal_code?: string | null;
8339
+ raw?: import("./types").Json | null;
8340
+ source?: never;
8341
+ street?: string | null;
8342
+ synced_at?: string | null;
8343
+ vat_number?: string | null;
8344
+ website?: string | null;
8345
+ };
8346
+ Update: {
8347
+ account_number?: string | null;
8348
+ city?: string | null;
8349
+ coc_number?: string | null;
8350
+ company_name?: string | null;
8351
+ connection_id?: string | null;
8352
+ country?: string | null;
8353
+ currency?: string | null;
8354
+ email?: string | null;
8355
+ external_id?: string | null;
8356
+ is_sales?: boolean | null;
8357
+ is_supplier?: boolean | null;
8358
+ language?: string | null;
8359
+ modified_at?: string | null;
8360
+ phone?: string | null;
8361
+ postal_code?: string | null;
8362
+ raw?: import("./types").Json | null;
8363
+ source?: never;
8364
+ street?: string | null;
8365
+ synced_at?: string | null;
8366
+ vat_number?: string | null;
8367
+ website?: string | null;
8368
+ };
8369
+ Relationships: [{
8370
+ foreignKeyName: "exact_customers_cache_connection_id_fkey";
8371
+ columns: ["connection_id"];
8372
+ isOneToOne: false;
8373
+ referencedRelation: "exact_connections";
8374
+ referencedColumns: ["id"];
8375
+ }];
8376
+ };
6262
8377
  v_external_customers_floriday: {
6263
8378
  Row: {
6264
8379
  city: string | null;
@@ -6292,33 +8407,132 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6292
8407
  referencedColumns: ["id"];
6293
8408
  }];
6294
8409
  };
6295
- v_external_customers_twinfield: {
8410
+ v_external_customers_twinfield: {
8411
+ Row: {
8412
+ city: string | null;
8413
+ commercial_name: string | null;
8414
+ company_name: string | null;
8415
+ connection_id: string | null;
8416
+ contact_person: string | null;
8417
+ country: string | null;
8418
+ email: string | null;
8419
+ external_id: string | null;
8420
+ fetched_at: string | null;
8421
+ gln: string | null;
8422
+ house_number: string | null;
8423
+ is_active: boolean | null;
8424
+ is_deleted: boolean | null;
8425
+ logo_url: string | null;
8426
+ phone: string | null;
8427
+ postal_code: string | null;
8428
+ provider: string | null;
8429
+ raw: import("./types").Json | null;
8430
+ status: string | null;
8431
+ street: string | null;
8432
+ vat_number: string | null;
8433
+ website: string | null;
8434
+ };
8435
+ Relationships: [{
8436
+ foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
8437
+ columns: ["connection_id"];
8438
+ isOneToOne: false;
8439
+ referencedRelation: "twinfield_connections";
8440
+ referencedColumns: ["id"];
8441
+ }];
8442
+ };
8443
+ v_external_invoices_exact: {
8444
+ Row: {
8445
+ connection_id: string | null;
8446
+ currency: string | null;
8447
+ customer_external_id: string | null;
8448
+ customer_name: string | null;
8449
+ customer_vat: string | null;
8450
+ due_at: string | null;
8451
+ external_id: string | null;
8452
+ invoice_number: string | null;
8453
+ issued_at: string | null;
8454
+ open_amount: number | null;
8455
+ paid_at: string | null;
8456
+ raw: import("./types").Json | null;
8457
+ source: string | null;
8458
+ status: string | null;
8459
+ synced_at: string | null;
8460
+ total_excl: number | null;
8461
+ total_incl: number | null;
8462
+ total_vat: number | null;
8463
+ };
8464
+ Insert: {
8465
+ connection_id?: string | null;
8466
+ currency?: never;
8467
+ customer_external_id?: string | null;
8468
+ customer_name?: string | null;
8469
+ customer_vat?: never;
8470
+ due_at?: string | null;
8471
+ external_id?: string | null;
8472
+ invoice_number?: string | null;
8473
+ issued_at?: string | null;
8474
+ open_amount?: number | null;
8475
+ paid_at?: string | null;
8476
+ raw?: import("./types").Json | null;
8477
+ source?: never;
8478
+ status?: string | null;
8479
+ synced_at?: string | null;
8480
+ total_excl?: number | null;
8481
+ total_incl?: number | null;
8482
+ total_vat?: number | null;
8483
+ };
8484
+ Update: {
8485
+ connection_id?: string | null;
8486
+ currency?: never;
8487
+ customer_external_id?: string | null;
8488
+ customer_name?: string | null;
8489
+ customer_vat?: never;
8490
+ due_at?: string | null;
8491
+ external_id?: string | null;
8492
+ invoice_number?: string | null;
8493
+ issued_at?: string | null;
8494
+ open_amount?: number | null;
8495
+ paid_at?: string | null;
8496
+ raw?: import("./types").Json | null;
8497
+ source?: never;
8498
+ status?: string | null;
8499
+ synced_at?: string | null;
8500
+ total_excl?: number | null;
8501
+ total_incl?: number | null;
8502
+ total_vat?: number | null;
8503
+ };
8504
+ Relationships: [{
8505
+ foreignKeyName: "exact_invoices_cache_connection_id_fkey";
8506
+ columns: ["connection_id"];
8507
+ isOneToOne: false;
8508
+ referencedRelation: "exact_connections";
8509
+ referencedColumns: ["id"];
8510
+ }];
8511
+ };
8512
+ v_external_invoices_twinfield: {
6296
8513
  Row: {
6297
- city: string | null;
6298
- commercial_name: string | null;
6299
- company_name: string | null;
6300
8514
  connection_id: string | null;
6301
- contact_person: string | null;
6302
- country: string | null;
6303
- email: string | null;
8515
+ currency: string | null;
8516
+ customer_external_id: string | null;
8517
+ customer_name: string | null;
8518
+ customer_vat: string | null;
8519
+ due_at: string | null;
6304
8520
  external_id: string | null;
6305
- fetched_at: string | null;
6306
- gln: string | null;
6307
- house_number: string | null;
6308
- is_active: boolean | null;
6309
- is_deleted: boolean | null;
6310
- logo_url: string | null;
6311
- phone: string | null;
6312
- postal_code: string | null;
6313
- provider: string | null;
8521
+ invoice_number: string | null;
8522
+ issued_at: string | null;
8523
+ open_amount: number | null;
8524
+ owner_user_id: string | null;
8525
+ paid_at: string | null;
6314
8526
  raw: import("./types").Json | null;
8527
+ source: string | null;
6315
8528
  status: string | null;
6316
- street: string | null;
6317
- vat_number: string | null;
6318
- website: string | null;
8529
+ synced_at: string | null;
8530
+ total_excl: number | null;
8531
+ total_incl: number | null;
8532
+ total_vat: number | null;
6319
8533
  };
6320
8534
  Relationships: [{
6321
- foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
8535
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
6322
8536
  columns: ["connection_id"];
6323
8537
  isOneToOne: false;
6324
8538
  referencedRelation: "twinfield_connections";
@@ -6327,6 +8541,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6327
8541
  };
6328
8542
  };
6329
8543
  Functions: {
8544
+ _floriday_schedule_job: {
8545
+ Args: {
8546
+ p_apikey: string;
8547
+ p_jobname: string;
8548
+ p_schedule: string;
8549
+ p_timeout_ms: number;
8550
+ p_url: string;
8551
+ };
8552
+ Returns: number;
8553
+ };
8554
+ call_exact_route: {
8555
+ Args: {
8556
+ path: string;
8557
+ };
8558
+ Returns: number;
8559
+ };
8560
+ cleanup_old_bookings: {
8561
+ Args: never;
8562
+ Returns: number;
8563
+ };
8564
+ current_monteur_id: {
8565
+ Args: never;
8566
+ Returns: string;
8567
+ };
6330
8568
  dashboard_list_public_schema: {
6331
8569
  Args: never;
6332
8570
  Returns: {
@@ -6431,6 +8669,32 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6431
8669
  office_code: string;
6432
8670
  }[];
6433
8671
  };
8672
+ get_floriday_agreements_active: {
8673
+ Args: {
8674
+ p_on_date?: string;
8675
+ };
8676
+ Returns: {
8677
+ buyer_organization_id: string;
8678
+ data: import("./types").Json;
8679
+ floriday_id: string;
8680
+ status: string;
8681
+ valid_from: string;
8682
+ valid_until: string;
8683
+ }[];
8684
+ };
8685
+ get_floriday_clock_supplies_window: {
8686
+ Args: {
8687
+ p_from: string;
8688
+ p_to: string;
8689
+ };
8690
+ Returns: {
8691
+ auction_date: string;
8692
+ data: import("./types").Json;
8693
+ floriday_id: string;
8694
+ status: string;
8695
+ trade_item_id: string;
8696
+ }[];
8697
+ };
6434
8698
  get_floriday_cron_jobs: {
6435
8699
  Args: never;
6436
8700
  Returns: {
@@ -6440,6 +8704,56 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6440
8704
  url: string;
6441
8705
  }[];
6442
8706
  };
8707
+ get_floriday_delivery_locations: {
8708
+ Args: {
8709
+ p_organization_id: string;
8710
+ };
8711
+ Returns: {
8712
+ data: import("./types").Json;
8713
+ floriday_id: string;
8714
+ gln_code: string;
8715
+ name: string;
8716
+ }[];
8717
+ };
8718
+ get_floriday_fulfillment_orders_window: {
8719
+ Args: {
8720
+ p_from: string;
8721
+ p_to: string;
8722
+ };
8723
+ Returns: {
8724
+ auction_date: string;
8725
+ data: import("./types").Json;
8726
+ delivery_order_id: string;
8727
+ destination_warehouse_id: string;
8728
+ floriday_id: string;
8729
+ status: string;
8730
+ }[];
8731
+ };
8732
+ get_floriday_sales_orders_window: {
8733
+ Args: {
8734
+ p_from: string;
8735
+ p_to: string;
8736
+ };
8737
+ Returns: {
8738
+ buyer_organization_id: string;
8739
+ data: import("./types").Json;
8740
+ floriday_id: string;
8741
+ status: string;
8742
+ updated_at: string;
8743
+ }[];
8744
+ };
8745
+ get_floriday_sync_health: {
8746
+ Args: never;
8747
+ Returns: {
8748
+ entity_type: string;
8749
+ last_error: string;
8750
+ last_items_processed: number;
8751
+ last_sequence_number: number;
8752
+ last_success_at: string;
8753
+ last_synced_at: string;
8754
+ minutes_since_success: number;
8755
+ }[];
8756
+ };
6443
8757
  get_offer_by_link_code: {
6444
8758
  Args: {
6445
8759
  p_code: string;
@@ -6505,6 +8819,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6505
8819
  };
6506
8820
  Returns: string;
6507
8821
  };
8822
+ reset_floriday_sync_cursor: {
8823
+ Args: {
8824
+ p_connection_id: string;
8825
+ p_entity_type: string;
8826
+ };
8827
+ Returns: undefined;
8828
+ };
8829
+ schedule_floriday_additional_services_sync: {
8830
+ Args: {
8831
+ p_apikey: string;
8832
+ p_url: string;
8833
+ };
8834
+ Returns: number;
8835
+ };
8836
+ schedule_floriday_agreement_calloffs_sync: {
8837
+ Args: {
8838
+ p_apikey: string;
8839
+ p_url: string;
8840
+ };
8841
+ Returns: number;
8842
+ };
8843
+ schedule_floriday_agreements_sync: {
8844
+ Args: {
8845
+ p_apikey: string;
8846
+ p_url: string;
8847
+ };
8848
+ Returns: number;
8849
+ };
8850
+ schedule_floriday_base_items_sync: {
8851
+ Args: {
8852
+ p_apikey: string;
8853
+ p_url: string;
8854
+ };
8855
+ Returns: number;
8856
+ };
8857
+ schedule_floriday_blanket_orders_sync: {
8858
+ Args: {
8859
+ p_apikey: string;
8860
+ p_url: string;
8861
+ };
8862
+ Returns: number;
8863
+ };
6508
8864
  schedule_floriday_carriers_sync: {
6509
8865
  Args: {
6510
8866
  p_apikey: string;
@@ -6512,6 +8868,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6512
8868
  };
6513
8869
  Returns: number;
6514
8870
  };
8871
+ schedule_floriday_clock_presales_sync: {
8872
+ Args: {
8873
+ p_apikey: string;
8874
+ p_url: string;
8875
+ };
8876
+ Returns: number;
8877
+ };
8878
+ schedule_floriday_clock_supplies_sync: {
8879
+ Args: {
8880
+ p_apikey: string;
8881
+ p_url: string;
8882
+ };
8883
+ Returns: number;
8884
+ };
8885
+ schedule_floriday_collections_sync: {
8886
+ Args: {
8887
+ p_apikey: string;
8888
+ p_url: string;
8889
+ };
8890
+ Returns: number;
8891
+ };
8892
+ schedule_floriday_commercial_service_types_sync: {
8893
+ Args: {
8894
+ p_apikey: string;
8895
+ p_url: string;
8896
+ };
8897
+ Returns: number;
8898
+ };
6515
8899
  schedule_floriday_connections_sync: {
6516
8900
  Args: {
6517
8901
  p_apikey: string;
@@ -6519,6 +8903,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6519
8903
  };
6520
8904
  Returns: number;
6521
8905
  };
8906
+ schedule_floriday_contract_trade_item_groups_sync: {
8907
+ Args: {
8908
+ p_apikey: string;
8909
+ p_url: string;
8910
+ };
8911
+ Returns: number;
8912
+ };
8913
+ schedule_floriday_contracts_sync: {
8914
+ Args: {
8915
+ p_apikey: string;
8916
+ p_url: string;
8917
+ };
8918
+ Returns: number;
8919
+ };
6522
8920
  schedule_floriday_customer_organizations_sync: {
6523
8921
  Args: {
6524
8922
  p_apikey: string;
@@ -6526,6 +8924,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6526
8924
  };
6527
8925
  Returns: number;
6528
8926
  };
8927
+ schedule_floriday_customer_stickers_sync: {
8928
+ Args: {
8929
+ p_apikey: string;
8930
+ p_url: string;
8931
+ };
8932
+ Returns: number;
8933
+ };
8934
+ schedule_floriday_delivery_condition_sets_sync: {
8935
+ Args: {
8936
+ p_apikey: string;
8937
+ p_url: string;
8938
+ };
8939
+ Returns: number;
8940
+ };
8941
+ schedule_floriday_delivery_locations_sync: {
8942
+ Args: {
8943
+ p_apikey: string;
8944
+ p_url: string;
8945
+ };
8946
+ Returns: number;
8947
+ };
8948
+ schedule_floriday_delivery_orders_sync: {
8949
+ Args: {
8950
+ p_apikey: string;
8951
+ p_url: string;
8952
+ };
8953
+ Returns: number;
8954
+ };
8955
+ schedule_floriday_fulfillment_orders_sync: {
8956
+ Args: {
8957
+ p_apikey: string;
8958
+ p_url: string;
8959
+ };
8960
+ Returns: number;
8961
+ };
8962
+ schedule_floriday_invoices_sync: {
8963
+ Args: {
8964
+ p_apikey: string;
8965
+ p_url: string;
8966
+ };
8967
+ Returns: number;
8968
+ };
6529
8969
  schedule_floriday_network_sync: {
6530
8970
  Args: {
6531
8971
  p_apikey: string;
@@ -6533,6 +8973,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6533
8973
  };
6534
8974
  Returns: number;
6535
8975
  };
8976
+ schedule_floriday_packings_sync: {
8977
+ Args: {
8978
+ p_apikey: string;
8979
+ p_url: string;
8980
+ };
8981
+ Returns: number;
8982
+ };
8983
+ schedule_floriday_price_groups_sync: {
8984
+ Args: {
8985
+ p_apikey: string;
8986
+ p_url: string;
8987
+ };
8988
+ Returns: number;
8989
+ };
8990
+ schedule_floriday_reference_data_refresh: {
8991
+ Args: {
8992
+ p_apikey: string;
8993
+ p_url: string;
8994
+ };
8995
+ Returns: number;
8996
+ };
8997
+ schedule_floriday_sales_strategies_sync: {
8998
+ Args: {
8999
+ p_apikey: string;
9000
+ p_url: string;
9001
+ };
9002
+ Returns: number;
9003
+ };
6536
9004
  schedule_floriday_salesorders_sync: {
6537
9005
  Args: {
6538
9006
  p_apikey: string;
@@ -6547,6 +9015,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6547
9015
  };
6548
9016
  Returns: number;
6549
9017
  };
9018
+ schedule_floriday_trade_item_classifications_sync: {
9019
+ Args: {
9020
+ p_apikey: string;
9021
+ p_url: string;
9022
+ };
9023
+ Returns: number;
9024
+ };
6550
9025
  schedule_floriday_trade_items_sync: {
6551
9026
  Args: {
6552
9027
  p_apikey: string;
@@ -6554,6 +9029,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6554
9029
  };
6555
9030
  Returns: number;
6556
9031
  };
9032
+ schedule_floriday_trips_sync: {
9033
+ Args: {
9034
+ p_apikey: string;
9035
+ p_url: string;
9036
+ };
9037
+ Returns: number;
9038
+ };
9039
+ schedule_floriday_warehouses_sync: {
9040
+ Args: {
9041
+ p_apikey: string;
9042
+ p_url: string;
9043
+ };
9044
+ Returns: number;
9045
+ };
6557
9046
  schedule_twinfield_customers_sync: {
6558
9047
  Args: {
6559
9048
  p_apikey: string;
@@ -6582,6 +9071,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6582
9071
  };
6583
9072
  Returns: number;
6584
9073
  };
9074
+ schedule_twinfield_push_queue_flush: {
9075
+ Args: {
9076
+ p_apikey: string;
9077
+ p_cron_secret?: string;
9078
+ p_url: string;
9079
+ };
9080
+ Returns: number;
9081
+ };
6585
9082
  schedule_twinfield_token_refresh: {
6586
9083
  Args: {
6587
9084
  p_apikey: string;
@@ -6620,8 +9117,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6620
9117
  };
6621
9118
  };
6622
9119
  Enums: {
6623
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
9120
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
6624
9121
  exact_env: "staging" | "live";
9122
+ exact_push_status: "pending" | "sent" | "error";
6625
9123
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
6626
9124
  };
6627
9125
  CompositeTypes: { [_ in never]: never; };