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