@flowselections/floriday-verkoop-module 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +2797 -144
  9. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/client.d.ts +2797 -144
  11. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/client.server.d.ts +2797 -144
  13. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/types.d.ts +2870 -134
  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 +217 -0
  20. package/dist-lib/lib/floriday-public.functions.d.ts +65056 -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 +46453 -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 +17670 -9710
  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 +2797 -144
  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 +2 -2
@@ -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,12 +2613,40 @@ 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;
2346
2646
  created_at: string;
2347
2647
  exact_article_id: string | null;
2348
2648
  id: string;
2649
+ image_url: string | null;
2349
2650
  is_active: boolean;
2350
2651
  name: string;
2351
2652
  price: number;
@@ -2356,6 +2657,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
2356
2657
  created_at?: string;
2357
2658
  exact_article_id?: string | null;
2358
2659
  id?: string;
2660
+ image_url?: string | null;
2359
2661
  is_active?: boolean;
2360
2662
  name: string;
2361
2663
  price?: number;
@@ -2366,6 +2668,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
2366
2668
  created_at?: string;
2367
2669
  exact_article_id?: string | null;
2368
2670
  id?: string;
2671
+ image_url?: string | null;
2369
2672
  is_active?: boolean;
2370
2673
  name?: string;
2371
2674
  price?: number;
@@ -2463,230 +2766,1298 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
2463
2766
  };
2464
2767
  Relationships: [];
2465
2768
  };
2466
- floriday_carriers_cache: {
2769
+ floriday_additional_services_cache: {
2467
2770
  Row: {
2468
- connection_id: string | null;
2469
- created_at: string;
2771
+ connection_id: string;
2470
2772
  data: import("../integrations/supabase/types").Json;
2471
2773
  fetched_at: string;
2472
- gln_code: string | null;
2473
- id: string;
2474
- name: string | null;
2475
- organization_id: string;
2774
+ floriday_id: string;
2775
+ is_deleted: boolean;
2776
+ sequence_number: number;
2476
2777
  updated_at: string;
2477
2778
  };
2478
2779
  Insert: {
2479
- connection_id?: string | null;
2480
- created_at?: string;
2780
+ connection_id: string;
2481
2781
  data: import("../integrations/supabase/types").Json;
2482
2782
  fetched_at?: string;
2483
- gln_code?: string | null;
2484
- id?: string;
2485
- name?: string | null;
2486
- organization_id: string;
2783
+ floriday_id: string;
2784
+ is_deleted?: boolean;
2785
+ sequence_number?: number;
2487
2786
  updated_at?: string;
2488
2787
  };
2489
2788
  Update: {
2490
- connection_id?: string | null;
2491
- created_at?: string;
2789
+ connection_id?: string;
2492
2790
  data?: import("../integrations/supabase/types").Json;
2493
2791
  fetched_at?: string;
2494
- gln_code?: string | null;
2495
- id?: string;
2496
- name?: string | null;
2497
- organization_id?: string;
2792
+ floriday_id?: string;
2793
+ is_deleted?: boolean;
2794
+ sequence_number?: number;
2498
2795
  updated_at?: string;
2499
2796
  };
2500
2797
  Relationships: [{
2501
- foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
2798
+ foreignKeyName: "floriday_additional_services_cache_connection_id_fkey";
2502
2799
  columns: ["connection_id"];
2503
2800
  isOneToOne: false;
2504
2801
  referencedRelation: "floriday_connections";
2505
2802
  referencedColumns: ["id"];
2506
2803
  }];
2507
2804
  };
2508
- floriday_connections: {
2805
+ floriday_agreement_calloffs_cache: {
2509
2806
  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;
2807
+ agreement_id: string | null;
2808
+ connection_id: string;
2809
+ data: import("../integrations/supabase/types").Json;
2810
+ delivery_date: string | null;
2811
+ fetched_at: string;
2812
+ floriday_id: string;
2518
2813
  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;
2814
+ is_deleted: boolean;
2815
+ sequence_number: number;
2816
+ status: string | null;
2525
2817
  updated_at: string;
2526
2818
  };
2527
2819
  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;
2820
+ agreement_id?: string | null;
2821
+ connection_id: string;
2822
+ data?: import("../integrations/supabase/types").Json;
2823
+ delivery_date?: string | null;
2824
+ fetched_at?: string;
2825
+ floriday_id: string;
2536
2826
  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;
2827
+ is_deleted?: boolean;
2828
+ sequence_number?: number;
2829
+ status?: string | null;
2543
2830
  updated_at?: string;
2544
2831
  };
2545
2832
  Update: {
2546
- access_token?: string | null;
2547
- api_key?: string;
2548
- client_id?: string;
2549
- client_secret?: string;
2550
- created_at?: string;
2551
- customers_endpoint?: string | null;
2552
- environment?: string;
2553
- gln_code?: string | null;
2833
+ agreement_id?: string | null;
2834
+ connection_id?: string;
2835
+ data?: import("../integrations/supabase/types").Json;
2836
+ delivery_date?: string | null;
2837
+ fetched_at?: string;
2838
+ floriday_id?: string;
2554
2839
  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;
2840
+ is_deleted?: boolean;
2841
+ sequence_number?: number;
2842
+ status?: string | null;
2561
2843
  updated_at?: string;
2562
2844
  };
2563
- Relationships: [];
2845
+ Relationships: [{
2846
+ foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
2847
+ columns: ["connection_id"];
2848
+ isOneToOne: false;
2849
+ referencedRelation: "floriday_connections";
2850
+ referencedColumns: ["id"];
2851
+ }];
2564
2852
  };
2565
- floriday_connections_cache: {
2853
+ floriday_agreements_cache: {
2566
2854
  Row: {
2567
2855
  buyer_organization_id: string | null;
2568
- buyer_organization_name: string | null;
2569
2856
  connection_id: string;
2570
2857
  data: import("../integrations/supabase/types").Json;
2571
- floriday_connection_id: string;
2858
+ fetched_at: string;
2859
+ floriday_id: string;
2860
+ id: string;
2572
2861
  is_deleted: boolean;
2573
2862
  sequence_number: number;
2574
2863
  status: string | null;
2575
- synced_at: string;
2864
+ updated_at: string;
2865
+ valid_from: string | null;
2866
+ valid_until: string | null;
2576
2867
  };
2577
2868
  Insert: {
2578
2869
  buyer_organization_id?: string | null;
2579
- buyer_organization_name?: string | null;
2580
2870
  connection_id: string;
2581
- data: import("../integrations/supabase/types").Json;
2582
- floriday_connection_id: string;
2871
+ data?: import("../integrations/supabase/types").Json;
2872
+ fetched_at?: string;
2873
+ floriday_id: string;
2874
+ id?: string;
2583
2875
  is_deleted?: boolean;
2584
- sequence_number: number;
2876
+ sequence_number?: number;
2585
2877
  status?: string | null;
2586
- synced_at?: string;
2878
+ updated_at?: string;
2879
+ valid_from?: string | null;
2880
+ valid_until?: string | null;
2587
2881
  };
2588
2882
  Update: {
2589
2883
  buyer_organization_id?: string | null;
2590
- buyer_organization_name?: string | null;
2591
2884
  connection_id?: string;
2592
2885
  data?: import("../integrations/supabase/types").Json;
2593
- floriday_connection_id?: string;
2886
+ fetched_at?: string;
2887
+ floriday_id?: string;
2888
+ id?: string;
2594
2889
  is_deleted?: boolean;
2595
2890
  sequence_number?: number;
2596
2891
  status?: string | null;
2597
- synced_at?: string;
2892
+ updated_at?: string;
2893
+ valid_from?: string | null;
2894
+ valid_until?: string | null;
2598
2895
  };
2599
2896
  Relationships: [{
2600
- foreignKeyName: "floriday_connections_cache_connection_id_fkey";
2897
+ foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
2601
2898
  columns: ["connection_id"];
2602
2899
  isOneToOne: false;
2603
2900
  referencedRelation: "floriday_connections";
2604
2901
  referencedColumns: ["id"];
2605
2902
  }];
2606
2903
  };
2607
- floriday_customers_cache: {
2904
+ floriday_auction_letters_cache: {
2905
+ Row: {
2906
+ auction_letter_code: string;
2907
+ clock_supply_id: string;
2908
+ connection_id: string;
2909
+ content_type: string;
2910
+ fetched_at: string;
2911
+ id: string;
2912
+ storage_path: string;
2913
+ };
2914
+ Insert: {
2915
+ auction_letter_code: string;
2916
+ clock_supply_id: string;
2917
+ connection_id: string;
2918
+ content_type?: string;
2919
+ fetched_at?: string;
2920
+ id?: string;
2921
+ storage_path: string;
2922
+ };
2923
+ Update: {
2924
+ auction_letter_code?: string;
2925
+ clock_supply_id?: string;
2926
+ connection_id?: string;
2927
+ content_type?: string;
2928
+ fetched_at?: string;
2929
+ id?: string;
2930
+ storage_path?: string;
2931
+ };
2932
+ Relationships: [{
2933
+ foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
2934
+ columns: ["connection_id"];
2935
+ isOneToOne: false;
2936
+ referencedRelation: "floriday_connections";
2937
+ referencedColumns: ["id"];
2938
+ }];
2939
+ };
2940
+ floriday_base_items_cache: {
2941
+ Row: {
2942
+ connection_id: string;
2943
+ data: import("../integrations/supabase/types").Json;
2944
+ fetched_at: string;
2945
+ floriday_id: string;
2946
+ is_deleted: boolean;
2947
+ sequence_number: number;
2948
+ updated_at: string;
2949
+ };
2950
+ Insert: {
2951
+ connection_id: string;
2952
+ data: import("../integrations/supabase/types").Json;
2953
+ fetched_at?: string;
2954
+ floriday_id: string;
2955
+ is_deleted?: boolean;
2956
+ sequence_number?: number;
2957
+ updated_at?: string;
2958
+ };
2959
+ Update: {
2960
+ connection_id?: string;
2961
+ data?: import("../integrations/supabase/types").Json;
2962
+ fetched_at?: string;
2963
+ floriday_id?: string;
2964
+ is_deleted?: boolean;
2965
+ sequence_number?: number;
2966
+ updated_at?: string;
2967
+ };
2968
+ Relationships: [{
2969
+ foreignKeyName: "floriday_base_items_cache_connection_id_fkey";
2970
+ columns: ["connection_id"];
2971
+ isOneToOne: false;
2972
+ referencedRelation: "floriday_connections";
2973
+ referencedColumns: ["id"];
2974
+ }];
2975
+ };
2976
+ floriday_blanket_orders_cache: {
2977
+ Row: {
2978
+ connection_id: string;
2979
+ contract_id: string | null;
2980
+ created_at: string;
2981
+ data: import("../integrations/supabase/types").Json;
2982
+ fetched_at: string;
2983
+ floriday_id: string;
2984
+ id: string;
2985
+ is_deleted: boolean;
2986
+ sequence_number: number;
2987
+ updated_at: string;
2988
+ };
2989
+ Insert: {
2990
+ connection_id: string;
2991
+ contract_id?: string | null;
2992
+ created_at?: string;
2993
+ data: import("../integrations/supabase/types").Json;
2994
+ fetched_at?: string;
2995
+ floriday_id: string;
2996
+ id?: string;
2997
+ is_deleted?: boolean;
2998
+ sequence_number?: number;
2999
+ updated_at?: string;
3000
+ };
3001
+ Update: {
3002
+ connection_id?: string;
3003
+ contract_id?: string | null;
3004
+ created_at?: string;
3005
+ data?: import("../integrations/supabase/types").Json;
3006
+ fetched_at?: string;
3007
+ floriday_id?: string;
3008
+ id?: string;
3009
+ is_deleted?: boolean;
3010
+ sequence_number?: number;
3011
+ updated_at?: string;
3012
+ };
3013
+ Relationships: [{
3014
+ foreignKeyName: "floriday_blanket_orders_cache_connection_id_fkey";
3015
+ columns: ["connection_id"];
3016
+ isOneToOne: false;
3017
+ referencedRelation: "floriday_connections";
3018
+ referencedColumns: ["id"];
3019
+ }];
3020
+ };
3021
+ floriday_carriers_cache: {
2608
3022
  Row: {
2609
3023
  connection_id: string | null;
3024
+ created_at: string;
2610
3025
  data: import("../integrations/supabase/types").Json;
2611
3026
  fetched_at: string;
3027
+ gln_code: string | null;
3028
+ id: string;
3029
+ name: string | null;
2612
3030
  organization_id: string;
3031
+ updated_at: string;
2613
3032
  };
2614
3033
  Insert: {
2615
3034
  connection_id?: string | null;
3035
+ created_at?: string;
3036
+ data: import("../integrations/supabase/types").Json;
3037
+ fetched_at?: string;
3038
+ gln_code?: string | null;
3039
+ id?: string;
3040
+ name?: string | null;
3041
+ organization_id: string;
3042
+ updated_at?: string;
3043
+ };
3044
+ Update: {
3045
+ connection_id?: string | null;
3046
+ created_at?: string;
3047
+ data?: import("../integrations/supabase/types").Json;
3048
+ fetched_at?: string;
3049
+ gln_code?: string | null;
3050
+ id?: string;
3051
+ name?: string | null;
3052
+ organization_id?: string;
3053
+ updated_at?: string;
3054
+ };
3055
+ Relationships: [{
3056
+ foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
3057
+ columns: ["connection_id"];
3058
+ isOneToOne: false;
3059
+ referencedRelation: "floriday_connections";
3060
+ referencedColumns: ["id"];
3061
+ }];
3062
+ };
3063
+ floriday_clock_presales_cache: {
3064
+ Row: {
3065
+ buyer_organization_id: string | null;
3066
+ clock_supply_id: string | null;
3067
+ connection_id: string;
3068
+ data: import("../integrations/supabase/types").Json;
3069
+ fetched_at: string;
3070
+ floriday_id: string;
3071
+ id: string;
3072
+ is_deleted: boolean;
3073
+ sequence_number: number;
3074
+ updated_at: string;
3075
+ };
3076
+ Insert: {
3077
+ buyer_organization_id?: string | null;
3078
+ clock_supply_id?: string | null;
3079
+ connection_id: string;
3080
+ data?: import("../integrations/supabase/types").Json;
3081
+ fetched_at?: string;
3082
+ floriday_id: string;
3083
+ id?: string;
3084
+ is_deleted?: boolean;
3085
+ sequence_number?: number;
3086
+ updated_at?: string;
3087
+ };
3088
+ Update: {
3089
+ buyer_organization_id?: string | null;
3090
+ clock_supply_id?: string | null;
3091
+ connection_id?: string;
3092
+ data?: import("../integrations/supabase/types").Json;
3093
+ fetched_at?: string;
3094
+ floriday_id?: string;
3095
+ id?: string;
3096
+ is_deleted?: boolean;
3097
+ sequence_number?: number;
3098
+ updated_at?: string;
3099
+ };
3100
+ Relationships: [{
3101
+ foreignKeyName: "floriday_clock_presales_cache_connection_id_fkey";
3102
+ columns: ["connection_id"];
3103
+ isOneToOne: false;
3104
+ referencedRelation: "floriday_connections";
3105
+ referencedColumns: ["id"];
3106
+ }];
3107
+ };
3108
+ floriday_clock_supplies_cache: {
3109
+ Row: {
3110
+ auction_date: string | null;
3111
+ connection_id: string;
3112
+ data: import("../integrations/supabase/types").Json;
3113
+ fetched_at: string;
3114
+ floriday_id: string;
3115
+ id: string;
3116
+ is_deleted: boolean;
3117
+ sequence_number: number;
3118
+ status: string | null;
3119
+ trade_item_id: string | null;
3120
+ updated_at: string;
3121
+ };
3122
+ Insert: {
3123
+ auction_date?: string | null;
3124
+ connection_id: string;
2616
3125
  data?: import("../integrations/supabase/types").Json;
2617
3126
  fetched_at?: string;
2618
- organization_id: string;
3127
+ floriday_id: string;
3128
+ id?: string;
3129
+ is_deleted?: boolean;
3130
+ sequence_number?: number;
3131
+ status?: string | null;
3132
+ trade_item_id?: string | null;
3133
+ updated_at?: string;
3134
+ };
3135
+ Update: {
3136
+ auction_date?: string | null;
3137
+ connection_id?: string;
3138
+ data?: import("../integrations/supabase/types").Json;
3139
+ fetched_at?: string;
3140
+ floriday_id?: string;
3141
+ id?: string;
3142
+ is_deleted?: boolean;
3143
+ sequence_number?: number;
3144
+ status?: string | null;
3145
+ trade_item_id?: string | null;
3146
+ updated_at?: string;
3147
+ };
3148
+ Relationships: [{
3149
+ foreignKeyName: "floriday_clock_supplies_cache_connection_id_fkey";
3150
+ columns: ["connection_id"];
3151
+ isOneToOne: false;
3152
+ referencedRelation: "floriday_connections";
3153
+ referencedColumns: ["id"];
3154
+ }];
3155
+ };
3156
+ floriday_code_lists_cache: {
3157
+ Row: {
3158
+ code: string;
3159
+ environment: string;
3160
+ label: string | null;
3161
+ list_name: string;
3162
+ payload: import("../integrations/supabase/types").Json | null;
3163
+ updated_at: string;
3164
+ };
3165
+ Insert: {
3166
+ code: string;
3167
+ environment: string;
3168
+ label?: string | null;
3169
+ list_name: string;
3170
+ payload?: import("../integrations/supabase/types").Json | null;
3171
+ updated_at?: string;
3172
+ };
3173
+ Update: {
3174
+ code?: string;
3175
+ environment?: string;
3176
+ label?: string | null;
3177
+ list_name?: string;
3178
+ payload?: import("../integrations/supabase/types").Json | null;
3179
+ updated_at?: string;
3180
+ };
3181
+ Relationships: [];
3182
+ };
3183
+ floriday_collections_cache: {
3184
+ Row: {
3185
+ connection_id: string;
3186
+ data: import("../integrations/supabase/types").Json;
3187
+ fetched_at: string;
3188
+ floriday_id: string;
3189
+ is_deleted: boolean;
3190
+ sequence_number: number;
3191
+ updated_at: string;
3192
+ };
3193
+ Insert: {
3194
+ connection_id: string;
3195
+ data: import("../integrations/supabase/types").Json;
3196
+ fetched_at?: string;
3197
+ floriday_id: string;
3198
+ is_deleted?: boolean;
3199
+ sequence_number?: number;
3200
+ updated_at?: string;
3201
+ };
3202
+ Update: {
3203
+ connection_id?: string;
3204
+ data?: import("../integrations/supabase/types").Json;
3205
+ fetched_at?: string;
3206
+ floriday_id?: string;
3207
+ is_deleted?: boolean;
3208
+ sequence_number?: number;
3209
+ updated_at?: string;
3210
+ };
3211
+ Relationships: [{
3212
+ foreignKeyName: "floriday_collections_cache_connection_id_fkey";
3213
+ columns: ["connection_id"];
3214
+ isOneToOne: false;
3215
+ referencedRelation: "floriday_connections";
3216
+ referencedColumns: ["id"];
3217
+ }];
3218
+ };
3219
+ floriday_commercial_service_types_cache: {
3220
+ Row: {
3221
+ connection_id: string;
3222
+ data: import("../integrations/supabase/types").Json;
3223
+ fetched_at: string;
3224
+ floriday_id: string;
3225
+ is_deleted: boolean;
3226
+ sequence_number: number;
3227
+ updated_at: string;
3228
+ };
3229
+ Insert: {
3230
+ connection_id: string;
3231
+ data: import("../integrations/supabase/types").Json;
3232
+ fetched_at?: string;
3233
+ floriday_id: string;
3234
+ is_deleted?: boolean;
3235
+ sequence_number?: number;
3236
+ updated_at?: string;
3237
+ };
3238
+ Update: {
3239
+ connection_id?: string;
3240
+ data?: import("../integrations/supabase/types").Json;
3241
+ fetched_at?: string;
3242
+ floriday_id?: string;
3243
+ is_deleted?: boolean;
3244
+ sequence_number?: number;
3245
+ updated_at?: string;
3246
+ };
3247
+ Relationships: [{
3248
+ foreignKeyName: "floriday_commercial_service_types_cache_connection_id_fkey";
3249
+ columns: ["connection_id"];
3250
+ isOneToOne: false;
3251
+ referencedRelation: "floriday_connections";
3252
+ referencedColumns: ["id"];
3253
+ }];
3254
+ };
3255
+ floriday_connections: {
3256
+ Row: {
3257
+ access_token: string | null;
3258
+ api_key: string;
3259
+ client_id: string;
3260
+ client_secret: string;
3261
+ created_at: string;
3262
+ customers_endpoint: string | null;
3263
+ environment: string;
3264
+ gln_code: string | null;
3265
+ id: string;
3266
+ is_active: boolean;
3267
+ label: string;
3268
+ organization_name: string | null;
3269
+ preferred_warehouse_id: string | null;
3270
+ preferred_warehouse_name: string | null;
3271
+ token_expires_at: string | null;
3272
+ updated_at: string;
3273
+ };
3274
+ Insert: {
3275
+ access_token?: string | null;
3276
+ api_key: string;
3277
+ client_id: string;
3278
+ client_secret: string;
3279
+ created_at?: string;
3280
+ customers_endpoint?: string | null;
3281
+ environment: string;
3282
+ gln_code?: string | null;
3283
+ id?: string;
3284
+ is_active?: boolean;
3285
+ label?: string;
3286
+ organization_name?: string | null;
3287
+ preferred_warehouse_id?: string | null;
3288
+ preferred_warehouse_name?: string | null;
3289
+ token_expires_at?: string | null;
3290
+ updated_at?: string;
3291
+ };
3292
+ Update: {
3293
+ access_token?: string | null;
3294
+ api_key?: string;
3295
+ client_id?: string;
3296
+ client_secret?: string;
3297
+ created_at?: string;
3298
+ customers_endpoint?: string | null;
3299
+ environment?: string;
3300
+ gln_code?: string | null;
3301
+ id?: string;
3302
+ is_active?: boolean;
3303
+ label?: string;
3304
+ organization_name?: string | null;
3305
+ preferred_warehouse_id?: string | null;
3306
+ preferred_warehouse_name?: string | null;
3307
+ token_expires_at?: string | null;
3308
+ updated_at?: string;
3309
+ };
3310
+ Relationships: [];
3311
+ };
3312
+ floriday_connections_cache: {
3313
+ Row: {
3314
+ buyer_organization_id: string | null;
3315
+ buyer_organization_name: string | null;
3316
+ connection_id: string;
3317
+ data: import("../integrations/supabase/types").Json;
3318
+ floriday_connection_id: string;
3319
+ is_deleted: boolean;
3320
+ sequence_number: number;
3321
+ status: string | null;
3322
+ synced_at: string;
3323
+ };
3324
+ Insert: {
3325
+ buyer_organization_id?: string | null;
3326
+ buyer_organization_name?: string | null;
3327
+ connection_id: string;
3328
+ data: import("../integrations/supabase/types").Json;
3329
+ floriday_connection_id: string;
3330
+ is_deleted?: boolean;
3331
+ sequence_number: number;
3332
+ status?: string | null;
3333
+ synced_at?: string;
3334
+ };
3335
+ Update: {
3336
+ buyer_organization_id?: string | null;
3337
+ buyer_organization_name?: string | null;
3338
+ connection_id?: string;
3339
+ data?: import("../integrations/supabase/types").Json;
3340
+ floriday_connection_id?: string;
3341
+ is_deleted?: boolean;
3342
+ sequence_number?: number;
3343
+ status?: string | null;
3344
+ synced_at?: string;
3345
+ };
3346
+ Relationships: [{
3347
+ foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3348
+ columns: ["connection_id"];
3349
+ isOneToOne: false;
3350
+ referencedRelation: "floriday_connections";
3351
+ referencedColumns: ["id"];
3352
+ }];
3353
+ };
3354
+ floriday_contract_trade_item_groups_cache: {
3355
+ Row: {
3356
+ connection_id: string;
3357
+ data: import("../integrations/supabase/types").Json;
3358
+ fetched_at: string;
3359
+ floriday_id: string;
3360
+ is_deleted: boolean;
3361
+ sequence_number: number;
3362
+ updated_at: string;
3363
+ };
3364
+ Insert: {
3365
+ connection_id: string;
3366
+ data: import("../integrations/supabase/types").Json;
3367
+ fetched_at?: string;
3368
+ floriday_id: string;
3369
+ is_deleted?: boolean;
3370
+ sequence_number?: number;
3371
+ updated_at?: string;
3372
+ };
3373
+ Update: {
3374
+ connection_id?: string;
3375
+ data?: import("../integrations/supabase/types").Json;
3376
+ fetched_at?: string;
3377
+ floriday_id?: string;
3378
+ is_deleted?: boolean;
3379
+ sequence_number?: number;
3380
+ updated_at?: string;
3381
+ };
3382
+ Relationships: [{
3383
+ foreignKeyName: "floriday_contract_trade_item_groups_cache_connection_id_fkey";
3384
+ columns: ["connection_id"];
3385
+ isOneToOne: false;
3386
+ referencedRelation: "floriday_connections";
3387
+ referencedColumns: ["id"];
3388
+ }];
3389
+ };
3390
+ floriday_contracts_cache: {
3391
+ Row: {
3392
+ connection_id: string;
3393
+ created_at: string;
3394
+ data: import("../integrations/supabase/types").Json;
3395
+ fetched_at: string;
3396
+ floriday_id: string;
3397
+ id: string;
3398
+ is_deleted: boolean;
3399
+ sequence_number: number;
3400
+ updated_at: string;
3401
+ };
3402
+ Insert: {
3403
+ connection_id: string;
3404
+ created_at?: string;
3405
+ data: import("../integrations/supabase/types").Json;
3406
+ fetched_at?: string;
3407
+ floriday_id: string;
3408
+ id?: string;
3409
+ is_deleted?: boolean;
3410
+ sequence_number?: number;
3411
+ updated_at?: string;
3412
+ };
3413
+ Update: {
3414
+ connection_id?: string;
3415
+ created_at?: string;
3416
+ data?: import("../integrations/supabase/types").Json;
3417
+ fetched_at?: string;
3418
+ floriday_id?: string;
3419
+ id?: string;
3420
+ is_deleted?: boolean;
3421
+ sequence_number?: number;
3422
+ updated_at?: string;
3423
+ };
3424
+ Relationships: [{
3425
+ foreignKeyName: "floriday_contracts_cache_connection_id_fkey";
3426
+ columns: ["connection_id"];
3427
+ isOneToOne: false;
3428
+ referencedRelation: "floriday_connections";
3429
+ referencedColumns: ["id"];
3430
+ }];
3431
+ };
3432
+ floriday_customer_sticker_pdfs_cache: {
3433
+ Row: {
3434
+ byte_size: number | null;
3435
+ connection_id: string;
3436
+ content_type: string;
3437
+ created_at: string;
3438
+ fetched_at: string;
3439
+ id: string;
3440
+ sticker_id: string;
3441
+ storage_path: string;
3442
+ };
3443
+ Insert: {
3444
+ byte_size?: number | null;
3445
+ connection_id: string;
3446
+ content_type?: string;
3447
+ created_at?: string;
3448
+ fetched_at?: string;
3449
+ id?: string;
3450
+ sticker_id: string;
3451
+ storage_path: string;
3452
+ };
3453
+ Update: {
3454
+ byte_size?: number | null;
3455
+ connection_id?: string;
3456
+ content_type?: string;
3457
+ created_at?: string;
3458
+ fetched_at?: string;
3459
+ id?: string;
3460
+ sticker_id?: string;
3461
+ storage_path?: string;
3462
+ };
3463
+ Relationships: [{
3464
+ foreignKeyName: "floriday_customer_sticker_pdfs_cache_connection_id_fkey";
3465
+ columns: ["connection_id"];
3466
+ isOneToOne: false;
3467
+ referencedRelation: "floriday_connections";
3468
+ referencedColumns: ["id"];
3469
+ }];
3470
+ };
3471
+ floriday_customer_stickers_cache: {
3472
+ Row: {
3473
+ connection_id: string;
3474
+ created_at: string;
3475
+ data: import("../integrations/supabase/types").Json;
3476
+ fetched_at: string;
3477
+ floriday_id: string;
3478
+ id: string;
3479
+ is_deleted: boolean;
3480
+ quantity: number | null;
3481
+ sales_order_id: string | null;
3482
+ sequence_number: number;
3483
+ status: string | null;
3484
+ trade_item_id: string | null;
3485
+ updated_at: string;
3486
+ };
3487
+ Insert: {
3488
+ connection_id: string;
3489
+ created_at?: string;
3490
+ data?: import("../integrations/supabase/types").Json;
3491
+ fetched_at?: string;
3492
+ floriday_id: string;
3493
+ id?: string;
3494
+ is_deleted?: boolean;
3495
+ quantity?: number | null;
3496
+ sales_order_id?: string | null;
3497
+ sequence_number?: number;
3498
+ status?: string | null;
3499
+ trade_item_id?: string | null;
3500
+ updated_at?: string;
3501
+ };
3502
+ Update: {
3503
+ connection_id?: string;
3504
+ created_at?: string;
3505
+ data?: import("../integrations/supabase/types").Json;
3506
+ fetched_at?: string;
3507
+ floriday_id?: string;
3508
+ id?: string;
3509
+ is_deleted?: boolean;
3510
+ quantity?: number | null;
3511
+ sales_order_id?: string | null;
3512
+ sequence_number?: number;
3513
+ status?: string | null;
3514
+ trade_item_id?: string | null;
3515
+ updated_at?: string;
3516
+ };
3517
+ Relationships: [{
3518
+ foreignKeyName: "floriday_customer_stickers_cache_connection_id_fkey";
3519
+ columns: ["connection_id"];
3520
+ isOneToOne: false;
3521
+ referencedRelation: "floriday_connections";
3522
+ referencedColumns: ["id"];
3523
+ }];
3524
+ };
3525
+ floriday_customers_cache: {
3526
+ Row: {
3527
+ connection_id: string | null;
3528
+ data: import("../integrations/supabase/types").Json;
3529
+ fetched_at: string;
3530
+ gln_code: string | null;
3531
+ is_deleted: boolean;
3532
+ name: string | null;
3533
+ organization_id: string;
3534
+ sequence_number: number | null;
3535
+ };
3536
+ Insert: {
3537
+ connection_id?: string | null;
3538
+ data?: import("../integrations/supabase/types").Json;
3539
+ fetched_at?: string;
3540
+ gln_code?: string | null;
3541
+ is_deleted?: boolean;
3542
+ name?: string | null;
3543
+ organization_id: string;
3544
+ sequence_number?: number | null;
3545
+ };
3546
+ Update: {
3547
+ connection_id?: string | null;
3548
+ data?: import("../integrations/supabase/types").Json;
3549
+ fetched_at?: string;
3550
+ gln_code?: string | null;
3551
+ is_deleted?: boolean;
3552
+ name?: string | null;
3553
+ organization_id?: string;
3554
+ sequence_number?: number | null;
3555
+ };
3556
+ Relationships: [{
3557
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3558
+ columns: ["connection_id"];
3559
+ isOneToOne: false;
3560
+ referencedRelation: "floriday_connections";
3561
+ referencedColumns: ["id"];
3562
+ }];
3563
+ };
3564
+ floriday_delivery_condition_sets_cache: {
3565
+ Row: {
3566
+ connection_id: string;
3567
+ data: import("../integrations/supabase/types").Json;
3568
+ fetched_at: string;
3569
+ floriday_id: string;
3570
+ is_deleted: boolean;
3571
+ sequence_number: number;
3572
+ updated_at: string;
3573
+ };
3574
+ Insert: {
3575
+ connection_id: string;
3576
+ data: import("../integrations/supabase/types").Json;
3577
+ fetched_at?: string;
3578
+ floriday_id: string;
3579
+ is_deleted?: boolean;
3580
+ sequence_number?: number;
3581
+ updated_at?: string;
3582
+ };
3583
+ Update: {
3584
+ connection_id?: string;
3585
+ data?: import("../integrations/supabase/types").Json;
3586
+ fetched_at?: string;
3587
+ floriday_id?: string;
3588
+ is_deleted?: boolean;
3589
+ sequence_number?: number;
3590
+ updated_at?: string;
3591
+ };
3592
+ Relationships: [{
3593
+ foreignKeyName: "floriday_delivery_condition_sets_cache_connection_id_fkey";
3594
+ columns: ["connection_id"];
3595
+ isOneToOne: false;
3596
+ referencedRelation: "floriday_connections";
3597
+ referencedColumns: ["id"];
3598
+ }];
3599
+ };
3600
+ floriday_delivery_locations_cache: {
3601
+ Row: {
3602
+ connection_id: string;
3603
+ data: import("../integrations/supabase/types").Json;
3604
+ fetched_at: string;
3605
+ floriday_id: string;
3606
+ gln_code: string | null;
3607
+ id: string;
3608
+ is_deleted: boolean;
3609
+ name: string | null;
3610
+ organization_id: string | null;
3611
+ updated_at: string;
3612
+ };
3613
+ Insert: {
3614
+ connection_id: string;
3615
+ data?: import("../integrations/supabase/types").Json;
3616
+ fetched_at?: string;
3617
+ floriday_id: string;
3618
+ gln_code?: string | null;
3619
+ id?: string;
3620
+ is_deleted?: boolean;
3621
+ name?: string | null;
3622
+ organization_id?: string | null;
3623
+ updated_at?: string;
3624
+ };
3625
+ Update: {
3626
+ connection_id?: string;
3627
+ data?: import("../integrations/supabase/types").Json;
3628
+ fetched_at?: string;
3629
+ floriday_id?: string;
3630
+ gln_code?: string | null;
3631
+ id?: string;
3632
+ is_deleted?: boolean;
3633
+ name?: string | null;
3634
+ organization_id?: string | null;
3635
+ updated_at?: string;
3636
+ };
3637
+ Relationships: [{
3638
+ foreignKeyName: "floriday_delivery_locations_cache_connection_id_fkey";
3639
+ columns: ["connection_id"];
3640
+ isOneToOne: false;
3641
+ referencedRelation: "floriday_connections";
3642
+ referencedColumns: ["id"];
3643
+ }];
3644
+ };
3645
+ floriday_delivery_orders_cache: {
3646
+ Row: {
3647
+ auction_date: string | null;
3648
+ connection_id: string;
3649
+ data: import("../integrations/supabase/types").Json;
3650
+ destination_warehouse_id: string | null;
3651
+ fetched_at: string;
3652
+ floriday_id: string;
3653
+ id: string;
3654
+ is_deleted: boolean;
3655
+ sequence_number: number;
3656
+ status: string | null;
3657
+ trade_item_id: string | null;
3658
+ updated_at: string;
3659
+ };
3660
+ Insert: {
3661
+ auction_date?: string | null;
3662
+ connection_id: string;
3663
+ data?: import("../integrations/supabase/types").Json;
3664
+ destination_warehouse_id?: string | null;
3665
+ fetched_at?: string;
3666
+ floriday_id: string;
3667
+ id?: string;
3668
+ is_deleted?: boolean;
3669
+ sequence_number?: number;
3670
+ status?: string | null;
3671
+ trade_item_id?: string | null;
3672
+ updated_at?: string;
3673
+ };
3674
+ Update: {
3675
+ auction_date?: string | null;
3676
+ connection_id?: string;
3677
+ data?: import("../integrations/supabase/types").Json;
3678
+ destination_warehouse_id?: string | null;
3679
+ fetched_at?: string;
3680
+ floriday_id?: string;
3681
+ id?: string;
3682
+ is_deleted?: boolean;
3683
+ sequence_number?: number;
3684
+ status?: string | null;
3685
+ trade_item_id?: string | null;
3686
+ updated_at?: string;
3687
+ };
3688
+ Relationships: [{
3689
+ foreignKeyName: "floriday_delivery_orders_cache_connection_id_fkey";
3690
+ columns: ["connection_id"];
3691
+ isOneToOne: false;
3692
+ referencedRelation: "floriday_connections";
3693
+ referencedColumns: ["id"];
3694
+ }];
3695
+ };
3696
+ floriday_fulfillment_orders_cache: {
3697
+ Row: {
3698
+ auction_date: string | null;
3699
+ connection_id: string;
3700
+ data: import("../integrations/supabase/types").Json;
3701
+ delivery_order_id: string | null;
3702
+ despatch_warehouse_id: string | null;
3703
+ destination_warehouse_id: string | null;
3704
+ fetched_at: string;
3705
+ floriday_id: string;
3706
+ id: string;
3707
+ is_deleted: boolean | null;
3708
+ latest_delivery_at: string | null;
3709
+ load_carrier_type: string | null;
3710
+ one_label_only: boolean | null;
3711
+ sequence_number: number;
3712
+ status: string | null;
3713
+ };
3714
+ Insert: {
3715
+ auction_date?: string | null;
3716
+ connection_id: string;
3717
+ data: import("../integrations/supabase/types").Json;
3718
+ delivery_order_id?: string | null;
3719
+ despatch_warehouse_id?: string | null;
3720
+ destination_warehouse_id?: string | null;
3721
+ fetched_at?: string;
3722
+ floriday_id: string;
3723
+ id?: string;
3724
+ is_deleted?: boolean | null;
3725
+ latest_delivery_at?: string | null;
3726
+ load_carrier_type?: string | null;
3727
+ one_label_only?: boolean | null;
3728
+ sequence_number?: number;
3729
+ status?: string | null;
3730
+ };
3731
+ Update: {
3732
+ auction_date?: string | null;
3733
+ connection_id?: string;
3734
+ data?: import("../integrations/supabase/types").Json;
3735
+ delivery_order_id?: string | null;
3736
+ despatch_warehouse_id?: string | null;
3737
+ destination_warehouse_id?: string | null;
3738
+ fetched_at?: string;
3739
+ floriday_id?: string;
3740
+ id?: string;
3741
+ is_deleted?: boolean | null;
3742
+ latest_delivery_at?: string | null;
3743
+ load_carrier_type?: string | null;
3744
+ one_label_only?: boolean | null;
3745
+ sequence_number?: number;
3746
+ status?: string | null;
3747
+ };
3748
+ Relationships: [{
3749
+ foreignKeyName: "floriday_fulfillment_orders_cache_connection_id_fkey";
3750
+ columns: ["connection_id"];
3751
+ isOneToOne: false;
3752
+ referencedRelation: "floriday_connections";
3753
+ referencedColumns: ["id"];
3754
+ }];
3755
+ };
3756
+ floriday_invoices_cache: {
3757
+ Row: {
3758
+ buyer_organization_id: string | null;
3759
+ connection_id: string;
3760
+ currency: string | null;
3761
+ data: import("../integrations/supabase/types").Json;
3762
+ fetched_at: string;
3763
+ floriday_id: string;
3764
+ id: string;
3765
+ invoice_date: string | null;
3766
+ invoice_number: string | null;
3767
+ is_deleted: boolean;
3768
+ sequence_number: number;
3769
+ total_amount: number | null;
3770
+ updated_at: string;
3771
+ };
3772
+ Insert: {
3773
+ buyer_organization_id?: string | null;
3774
+ connection_id: string;
3775
+ currency?: string | null;
3776
+ data?: import("../integrations/supabase/types").Json;
3777
+ fetched_at?: string;
3778
+ floriday_id: string;
3779
+ id?: string;
3780
+ invoice_date?: string | null;
3781
+ invoice_number?: string | null;
3782
+ is_deleted?: boolean;
3783
+ sequence_number?: number;
3784
+ total_amount?: number | null;
3785
+ updated_at?: string;
3786
+ };
3787
+ Update: {
3788
+ buyer_organization_id?: string | null;
3789
+ connection_id?: string;
3790
+ currency?: string | null;
3791
+ data?: import("../integrations/supabase/types").Json;
3792
+ fetched_at?: string;
3793
+ floriday_id?: string;
3794
+ id?: string;
3795
+ invoice_date?: string | null;
3796
+ invoice_number?: string | null;
3797
+ is_deleted?: boolean;
3798
+ sequence_number?: number;
3799
+ total_amount?: number | null;
3800
+ updated_at?: string;
3801
+ };
3802
+ Relationships: [{
3803
+ foreignKeyName: "floriday_invoices_cache_connection_id_fkey";
3804
+ columns: ["connection_id"];
3805
+ isOneToOne: false;
3806
+ referencedRelation: "floriday_connections";
3807
+ referencedColumns: ["id"];
3808
+ }];
3809
+ };
3810
+ floriday_logistic_labels_cache: {
3811
+ Row: {
3812
+ byte_size: number | null;
3813
+ connection_id: string;
3814
+ content_type: string;
3815
+ fetched_at: string;
3816
+ fulfillment_order_id: string;
3817
+ id: string;
3818
+ logistic_label_code: string;
3819
+ storage_path: string;
3820
+ };
3821
+ Insert: {
3822
+ byte_size?: number | null;
3823
+ connection_id: string;
3824
+ content_type?: string;
3825
+ fetched_at?: string;
3826
+ fulfillment_order_id: string;
3827
+ id?: string;
3828
+ logistic_label_code: string;
3829
+ storage_path: string;
3830
+ };
3831
+ Update: {
3832
+ byte_size?: number | null;
3833
+ connection_id?: string;
3834
+ content_type?: string;
3835
+ fetched_at?: string;
3836
+ fulfillment_order_id?: string;
3837
+ id?: string;
3838
+ logistic_label_code?: string;
3839
+ storage_path?: string;
3840
+ };
3841
+ Relationships: [{
3842
+ foreignKeyName: "floriday_logistic_labels_cache_connection_id_fkey";
3843
+ columns: ["connection_id"];
3844
+ isOneToOne: false;
3845
+ referencedRelation: "floriday_connections";
3846
+ referencedColumns: ["id"];
3847
+ }];
3848
+ };
3849
+ floriday_network_cache: {
3850
+ Row: {
3851
+ city: string | null;
3852
+ connection_id: string;
3853
+ country: string | null;
3854
+ data: import("../integrations/supabase/types").Json;
3855
+ fetched_at: string;
3856
+ gln: string | null;
3857
+ organization_id: string;
3858
+ organization_name: string | null;
3859
+ };
3860
+ Insert: {
3861
+ city?: string | null;
3862
+ connection_id: string;
3863
+ country?: string | null;
3864
+ data?: import("../integrations/supabase/types").Json;
3865
+ fetched_at?: string;
3866
+ gln?: string | null;
3867
+ organization_id: string;
3868
+ organization_name?: string | null;
3869
+ };
3870
+ Update: {
3871
+ city?: string | null;
3872
+ connection_id?: string;
3873
+ country?: string | null;
3874
+ data?: import("../integrations/supabase/types").Json;
3875
+ fetched_at?: string;
3876
+ gln?: string | null;
3877
+ organization_id?: string;
3878
+ organization_name?: string | null;
3879
+ };
3880
+ Relationships: [];
3881
+ };
3882
+ floriday_network_sync_state: {
3883
+ Row: {
3884
+ connection_id: string;
3885
+ last_error: string | null;
3886
+ last_sequence_number: number;
3887
+ last_synced_at: string | null;
3888
+ updated_at: string;
3889
+ };
3890
+ Insert: {
3891
+ connection_id: string;
3892
+ last_error?: string | null;
3893
+ last_sequence_number?: number;
3894
+ last_synced_at?: string | null;
3895
+ updated_at?: string;
3896
+ };
3897
+ Update: {
3898
+ connection_id?: string;
3899
+ last_error?: string | null;
3900
+ last_sequence_number?: number;
3901
+ last_synced_at?: string | null;
3902
+ updated_at?: string;
3903
+ };
3904
+ Relationships: [];
3905
+ };
3906
+ floriday_order_number_map: {
3907
+ Row: {
3908
+ created_at: string;
3909
+ floriday_id: string;
3910
+ order_number: string;
3911
+ };
3912
+ Insert: {
3913
+ created_at?: string;
3914
+ floriday_id: string;
3915
+ order_number: string;
3916
+ };
3917
+ Update: {
3918
+ created_at?: string;
3919
+ floriday_id?: string;
3920
+ order_number?: string;
3921
+ };
3922
+ Relationships: [];
3923
+ };
3924
+ floriday_packings_cache: {
3925
+ Row: {
3926
+ connection_id: string;
3927
+ data: import("../integrations/supabase/types").Json;
3928
+ fetched_at: string;
3929
+ floriday_id: string;
3930
+ id: string;
3931
+ is_deleted: boolean;
3932
+ sequence_number: number;
3933
+ updated_at: string;
3934
+ };
3935
+ Insert: {
3936
+ connection_id: string;
3937
+ data?: import("../integrations/supabase/types").Json;
3938
+ fetched_at?: string;
3939
+ floriday_id: string;
3940
+ id?: string;
3941
+ is_deleted?: boolean;
3942
+ sequence_number?: number;
3943
+ updated_at?: string;
3944
+ };
3945
+ Update: {
3946
+ connection_id?: string;
3947
+ data?: import("../integrations/supabase/types").Json;
3948
+ fetched_at?: string;
3949
+ floriday_id?: string;
3950
+ id?: string;
3951
+ is_deleted?: boolean;
3952
+ sequence_number?: number;
3953
+ updated_at?: string;
3954
+ };
3955
+ Relationships: [{
3956
+ foreignKeyName: "floriday_packings_cache_connection_id_fkey";
3957
+ columns: ["connection_id"];
3958
+ isOneToOne: false;
3959
+ referencedRelation: "floriday_connections";
3960
+ referencedColumns: ["id"];
3961
+ }];
3962
+ };
3963
+ floriday_price_groups_cache: {
3964
+ Row: {
3965
+ connection_id: string;
3966
+ data: import("../integrations/supabase/types").Json;
3967
+ fetched_at: string;
3968
+ floriday_id: string;
3969
+ is_deleted: boolean;
3970
+ sequence_number: number;
3971
+ updated_at: string;
3972
+ };
3973
+ Insert: {
3974
+ connection_id: string;
3975
+ data: import("../integrations/supabase/types").Json;
3976
+ fetched_at?: string;
3977
+ floriday_id: string;
3978
+ is_deleted?: boolean;
3979
+ sequence_number?: number;
3980
+ updated_at?: string;
2619
3981
  };
2620
3982
  Update: {
2621
- connection_id?: string | null;
3983
+ connection_id?: string;
2622
3984
  data?: import("../integrations/supabase/types").Json;
2623
3985
  fetched_at?: string;
2624
- organization_id?: string;
3986
+ floriday_id?: string;
3987
+ is_deleted?: boolean;
3988
+ sequence_number?: number;
3989
+ updated_at?: string;
2625
3990
  };
2626
3991
  Relationships: [{
2627
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3992
+ foreignKeyName: "floriday_price_groups_cache_connection_id_fkey";
2628
3993
  columns: ["connection_id"];
2629
3994
  isOneToOne: false;
2630
3995
  referencedRelation: "floriday_connections";
2631
3996
  referencedColumns: ["id"];
2632
3997
  }];
2633
3998
  };
2634
- floriday_network_cache: {
3999
+ floriday_resource_schemas: {
2635
4000
  Row: {
2636
- city: string | null;
2637
- connection_id: string;
2638
- country: string | null;
2639
- data: import("../integrations/supabase/types").Json;
4001
+ enums: import("../integrations/supabase/types").Json;
2640
4002
  fetched_at: string;
2641
- gln: string | null;
2642
- organization_id: string;
2643
- organization_name: string | null;
4003
+ resource: string;
4004
+ schema: import("../integrations/supabase/types").Json;
4005
+ source_url: string | null;
4006
+ version: string;
2644
4007
  };
2645
4008
  Insert: {
2646
- city?: string | null;
2647
- connection_id: string;
2648
- country?: string | null;
2649
- data?: import("../integrations/supabase/types").Json;
4009
+ enums?: import("../integrations/supabase/types").Json;
2650
4010
  fetched_at?: string;
2651
- gln?: string | null;
2652
- organization_id: string;
2653
- organization_name?: string | null;
4011
+ resource: string;
4012
+ schema: import("../integrations/supabase/types").Json;
4013
+ source_url?: string | null;
4014
+ version: string;
2654
4015
  };
2655
4016
  Update: {
2656
- city?: string | null;
2657
- connection_id?: string;
2658
- country?: string | null;
2659
- data?: import("../integrations/supabase/types").Json;
4017
+ enums?: import("../integrations/supabase/types").Json;
2660
4018
  fetched_at?: string;
2661
- gln?: string | null;
2662
- organization_id?: string;
2663
- organization_name?: string | null;
4019
+ resource?: string;
4020
+ schema?: import("../integrations/supabase/types").Json;
4021
+ source_url?: string | null;
4022
+ version?: string;
2664
4023
  };
2665
4024
  Relationships: [];
2666
4025
  };
2667
- floriday_network_sync_state: {
4026
+ floriday_sales_strategies_cache: {
2668
4027
  Row: {
2669
4028
  connection_id: string;
2670
- last_error: string | null;
2671
- last_sequence_number: number;
2672
- last_synced_at: string | null;
4029
+ data: import("../integrations/supabase/types").Json;
4030
+ fetched_at: string;
4031
+ floriday_id: string;
4032
+ is_deleted: boolean;
4033
+ sequence_number: number;
2673
4034
  updated_at: string;
2674
4035
  };
2675
4036
  Insert: {
2676
4037
  connection_id: string;
2677
- last_error?: string | null;
2678
- last_sequence_number?: number;
2679
- last_synced_at?: string | null;
4038
+ data: import("../integrations/supabase/types").Json;
4039
+ fetched_at?: string;
4040
+ floriday_id: string;
4041
+ is_deleted?: boolean;
4042
+ sequence_number?: number;
2680
4043
  updated_at?: string;
2681
4044
  };
2682
4045
  Update: {
2683
4046
  connection_id?: string;
2684
- last_error?: string | null;
2685
- last_sequence_number?: number;
2686
- last_synced_at?: string | null;
4047
+ data?: import("../integrations/supabase/types").Json;
4048
+ fetched_at?: string;
4049
+ floriday_id?: string;
4050
+ is_deleted?: boolean;
4051
+ sequence_number?: number;
2687
4052
  updated_at?: string;
2688
4053
  };
2689
- Relationships: [];
4054
+ Relationships: [{
4055
+ foreignKeyName: "floriday_sales_strategies_cache_connection_id_fkey";
4056
+ columns: ["connection_id"];
4057
+ isOneToOne: false;
4058
+ referencedRelation: "floriday_connections";
4059
+ referencedColumns: ["id"];
4060
+ }];
2690
4061
  };
2691
4062
  floriday_salesorders_cache: {
2692
4063
  Row: {
@@ -2753,7 +4124,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
2753
4124
  connection_id: string;
2754
4125
  entity_type: string;
2755
4126
  last_error: string | null;
4127
+ last_items_processed: number | null;
2756
4128
  last_sequence_number: number;
4129
+ last_success_at: string | null;
2757
4130
  last_synced_at: string | null;
2758
4131
  updated_at: string;
2759
4132
  };
@@ -2761,7 +4134,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
2761
4134
  connection_id: string;
2762
4135
  entity_type: string;
2763
4136
  last_error?: string | null;
4137
+ last_items_processed?: number | null;
2764
4138
  last_sequence_number?: number;
4139
+ last_success_at?: string | null;
2765
4140
  last_synced_at?: string | null;
2766
4141
  updated_at?: string;
2767
4142
  };
@@ -2769,7 +4144,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
2769
4144
  connection_id?: string;
2770
4145
  entity_type?: string;
2771
4146
  last_error?: string | null;
4147
+ last_items_processed?: number | null;
2772
4148
  last_sequence_number?: number;
4149
+ last_success_at?: string | null;
2773
4150
  last_synced_at?: string | null;
2774
4151
  updated_at?: string;
2775
4152
  };
@@ -2817,6 +4194,45 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
2817
4194
  referencedColumns: ["id"];
2818
4195
  }];
2819
4196
  };
4197
+ floriday_trade_item_classifications_cache: {
4198
+ Row: {
4199
+ connection_id: string;
4200
+ data: import("../integrations/supabase/types").Json;
4201
+ fetched_at: string;
4202
+ floriday_id: string;
4203
+ id: string;
4204
+ is_deleted: boolean;
4205
+ sequence_number: number;
4206
+ updated_at: string;
4207
+ };
4208
+ Insert: {
4209
+ connection_id: string;
4210
+ data: import("../integrations/supabase/types").Json;
4211
+ fetched_at?: string;
4212
+ floriday_id: string;
4213
+ id?: string;
4214
+ is_deleted?: boolean;
4215
+ sequence_number?: number;
4216
+ updated_at?: string;
4217
+ };
4218
+ Update: {
4219
+ connection_id?: string;
4220
+ data?: import("../integrations/supabase/types").Json;
4221
+ fetched_at?: string;
4222
+ floriday_id?: string;
4223
+ id?: string;
4224
+ is_deleted?: boolean;
4225
+ sequence_number?: number;
4226
+ updated_at?: string;
4227
+ };
4228
+ Relationships: [{
4229
+ foreignKeyName: "floriday_trade_item_classifications_cache_connection_id_fkey";
4230
+ columns: ["connection_id"];
4231
+ isOneToOne: false;
4232
+ referencedRelation: "floriday_connections";
4233
+ referencedColumns: ["id"];
4234
+ }];
4235
+ };
2820
4236
  floriday_trade_items_cache: {
2821
4237
  Row: {
2822
4238
  connection_id: string;
@@ -2850,6 +4266,159 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
2850
4266
  referencedColumns: ["id"];
2851
4267
  }];
2852
4268
  };
4269
+ floriday_trips_cache: {
4270
+ Row: {
4271
+ carrier_organization_id: string | null;
4272
+ connection_id: string;
4273
+ data: import("../integrations/supabase/types").Json;
4274
+ fetched_at: string;
4275
+ floriday_id: string;
4276
+ id: string;
4277
+ is_deleted: boolean;
4278
+ sequence_number: number;
4279
+ status: string | null;
4280
+ trip_date: string | null;
4281
+ updated_at: string;
4282
+ };
4283
+ Insert: {
4284
+ carrier_organization_id?: string | null;
4285
+ connection_id: string;
4286
+ data?: import("../integrations/supabase/types").Json;
4287
+ fetched_at?: string;
4288
+ floriday_id: string;
4289
+ id?: string;
4290
+ is_deleted?: boolean;
4291
+ sequence_number?: number;
4292
+ status?: string | null;
4293
+ trip_date?: string | null;
4294
+ updated_at?: string;
4295
+ };
4296
+ Update: {
4297
+ carrier_organization_id?: string | null;
4298
+ connection_id?: string;
4299
+ data?: import("../integrations/supabase/types").Json;
4300
+ fetched_at?: string;
4301
+ floriday_id?: string;
4302
+ id?: string;
4303
+ is_deleted?: boolean;
4304
+ sequence_number?: number;
4305
+ status?: string | null;
4306
+ trip_date?: string | null;
4307
+ updated_at?: string;
4308
+ };
4309
+ Relationships: [{
4310
+ foreignKeyName: "floriday_trips_cache_connection_id_fkey";
4311
+ columns: ["connection_id"];
4312
+ isOneToOne: false;
4313
+ referencedRelation: "floriday_connections";
4314
+ referencedColumns: ["id"];
4315
+ }];
4316
+ };
4317
+ floriday_warehouses_cache: {
4318
+ Row: {
4319
+ connection_id: string;
4320
+ data: import("../integrations/supabase/types").Json;
4321
+ fetched_at: string;
4322
+ floriday_id: string;
4323
+ gln_code: string | null;
4324
+ id: string;
4325
+ is_default: boolean;
4326
+ is_deleted: boolean;
4327
+ name: string | null;
4328
+ updated_at: string;
4329
+ };
4330
+ Insert: {
4331
+ connection_id: string;
4332
+ data?: import("../integrations/supabase/types").Json;
4333
+ fetched_at?: string;
4334
+ floriday_id: string;
4335
+ gln_code?: string | null;
4336
+ id?: string;
4337
+ is_default?: boolean;
4338
+ is_deleted?: boolean;
4339
+ name?: string | null;
4340
+ updated_at?: string;
4341
+ };
4342
+ Update: {
4343
+ connection_id?: string;
4344
+ data?: import("../integrations/supabase/types").Json;
4345
+ fetched_at?: string;
4346
+ floriday_id?: string;
4347
+ gln_code?: string | null;
4348
+ id?: string;
4349
+ is_default?: boolean;
4350
+ is_deleted?: boolean;
4351
+ name?: string | null;
4352
+ updated_at?: string;
4353
+ };
4354
+ Relationships: [{
4355
+ foreignKeyName: "floriday_warehouses_cache_connection_id_fkey";
4356
+ columns: ["connection_id"];
4357
+ isOneToOne: false;
4358
+ referencedRelation: "floriday_connections";
4359
+ referencedColumns: ["id"];
4360
+ }];
4361
+ };
4362
+ floriday_write_log: {
4363
+ Row: {
4364
+ action: string;
4365
+ caller: string;
4366
+ connection_id: string | null;
4367
+ created_at: string;
4368
+ error: string | null;
4369
+ floriday_id: string | null;
4370
+ http_status: number | null;
4371
+ id: string;
4372
+ idempotency_key: string | null;
4373
+ module: string | null;
4374
+ ok: boolean;
4375
+ request: import("../integrations/supabase/types").Json | null;
4376
+ resource: string;
4377
+ response: import("../integrations/supabase/types").Json | null;
4378
+ user_id: string | null;
4379
+ };
4380
+ Insert: {
4381
+ action: string;
4382
+ caller?: string;
4383
+ connection_id?: string | null;
4384
+ created_at?: string;
4385
+ error?: string | null;
4386
+ floriday_id?: string | null;
4387
+ http_status?: number | null;
4388
+ id?: string;
4389
+ idempotency_key?: string | null;
4390
+ module?: string | null;
4391
+ ok: boolean;
4392
+ request?: import("../integrations/supabase/types").Json | null;
4393
+ resource: string;
4394
+ response?: import("../integrations/supabase/types").Json | null;
4395
+ user_id?: string | null;
4396
+ };
4397
+ Update: {
4398
+ action?: string;
4399
+ caller?: string;
4400
+ connection_id?: string | null;
4401
+ created_at?: string;
4402
+ error?: string | null;
4403
+ floriday_id?: string | null;
4404
+ http_status?: number | null;
4405
+ id?: string;
4406
+ idempotency_key?: string | null;
4407
+ module?: string | null;
4408
+ ok?: boolean;
4409
+ request?: import("../integrations/supabase/types").Json | null;
4410
+ resource?: string;
4411
+ response?: import("../integrations/supabase/types").Json | null;
4412
+ user_id?: string | null;
4413
+ };
4414
+ Relationships: [{
4415
+ foreignKeyName: "floriday_write_log_connection_id_fkey";
4416
+ columns: ["connection_id"];
4417
+ isOneToOne: false;
4418
+ referencedRelation: "floriday_connections";
4419
+ referencedColumns: ["id"];
4420
+ }];
4421
+ };
2853
4422
  imap_accounts: {
2854
4423
  Row: {
2855
4424
  created_at: string;
@@ -3000,29 +4569,80 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
3000
4569
  referencedColumns: ["id"];
3001
4570
  }];
3002
4571
  };
3003
- inventory_settings: {
4572
+ inventory_settings: {
4573
+ Row: {
4574
+ created_at: string;
4575
+ hierarchy_levels: string[];
4576
+ id: string;
4577
+ updated_at: string;
4578
+ visible_columns: string[];
4579
+ };
4580
+ Insert: {
4581
+ created_at?: string;
4582
+ hierarchy_levels?: string[];
4583
+ id?: string;
4584
+ updated_at?: string;
4585
+ visible_columns?: string[];
4586
+ };
4587
+ Update: {
4588
+ created_at?: string;
4589
+ hierarchy_levels?: string[];
4590
+ id?: string;
4591
+ updated_at?: string;
4592
+ visible_columns?: string[];
4593
+ };
4594
+ Relationships: [];
4595
+ };
4596
+ invoice_push_log: {
3004
4597
  Row: {
4598
+ connection_id: string | null;
3005
4599
  created_at: string;
3006
- hierarchy_levels: string[];
4600
+ created_by: string;
4601
+ customer_id: string | null;
3007
4602
  id: string;
4603
+ last_error: string | null;
4604
+ last_polled_at: string | null;
4605
+ payload: import("../integrations/supabase/types").Json;
4606
+ provider_id: string;
4607
+ queue_id: string | null;
4608
+ status: string;
3008
4609
  updated_at: string;
3009
- visible_columns: string[];
3010
4610
  };
3011
4611
  Insert: {
4612
+ connection_id?: string | null;
3012
4613
  created_at?: string;
3013
- hierarchy_levels?: string[];
4614
+ created_by?: string;
4615
+ customer_id?: string | null;
3014
4616
  id?: string;
4617
+ last_error?: string | null;
4618
+ last_polled_at?: string | null;
4619
+ payload?: import("../integrations/supabase/types").Json;
4620
+ provider_id: string;
4621
+ queue_id?: string | null;
4622
+ status?: string;
3015
4623
  updated_at?: string;
3016
- visible_columns?: string[];
3017
4624
  };
3018
4625
  Update: {
4626
+ connection_id?: string | null;
3019
4627
  created_at?: string;
3020
- hierarchy_levels?: string[];
4628
+ created_by?: string;
4629
+ customer_id?: string | null;
3021
4630
  id?: string;
4631
+ last_error?: string | null;
4632
+ last_polled_at?: string | null;
4633
+ payload?: import("../integrations/supabase/types").Json;
4634
+ provider_id?: string;
4635
+ queue_id?: string | null;
4636
+ status?: string;
3022
4637
  updated_at?: string;
3023
- visible_columns?: string[];
3024
4638
  };
3025
- Relationships: [];
4639
+ Relationships: [{
4640
+ foreignKeyName: "invoice_push_log_provider_id_fkey";
4641
+ columns: ["provider_id"];
4642
+ isOneToOne: false;
4643
+ referencedRelation: "external_invoice_providers";
4644
+ referencedColumns: ["provider"];
4645
+ }];
3026
4646
  };
3027
4647
  invoice_run_items: {
3028
4648
  Row: {
@@ -3148,6 +4768,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
3148
4768
  Row: {
3149
4769
  body_html: string | null;
3150
4770
  body_text: string | null;
4771
+ connection_id: string | null;
3151
4772
  created_at: string;
3152
4773
  error_message: string | null;
3153
4774
  external_id: string | null;
@@ -3166,6 +4787,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
3166
4787
  Insert: {
3167
4788
  body_html?: string | null;
3168
4789
  body_text?: string | null;
4790
+ connection_id?: string | null;
3169
4791
  created_at?: string;
3170
4792
  error_message?: string | null;
3171
4793
  external_id?: string | null;
@@ -3184,6 +4806,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
3184
4806
  Update: {
3185
4807
  body_html?: string | null;
3186
4808
  body_text?: string | null;
4809
+ connection_id?: string | null;
3187
4810
  created_at?: string;
3188
4811
  error_message?: string | null;
3189
4812
  external_id?: string | null;
@@ -3200,6 +4823,18 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
3200
4823
  updated_at?: string;
3201
4824
  };
3202
4825
  Relationships: [{
4826
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4827
+ columns: ["connection_id"];
4828
+ isOneToOne: false;
4829
+ referencedRelation: "email_auth_connections";
4830
+ referencedColumns: ["id"];
4831
+ }, {
4832
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4833
+ columns: ["connection_id"];
4834
+ isOneToOne: false;
4835
+ referencedRelation: "email_auth_connections_safe";
4836
+ referencedColumns: ["id"];
4837
+ }, {
3203
4838
  foreignKeyName: "mailbox_messages_profile_id_fkey";
3204
4839
  columns: ["profile_id"];
3205
4840
  isOneToOne: false;
@@ -3483,6 +5118,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
3483
5118
  role: string;
3484
5119
  tenant_id: string;
3485
5120
  updated_at: string;
5121
+ user_id: string | null;
3486
5122
  };
3487
5123
  Insert: {
3488
5124
  avatar_url?: string | null;
@@ -3498,6 +5134,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
3498
5134
  role?: string;
3499
5135
  tenant_id: string;
3500
5136
  updated_at?: string;
5137
+ user_id?: string | null;
3501
5138
  };
3502
5139
  Update: {
3503
5140
  avatar_url?: string | null;
@@ -3513,6 +5150,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
3513
5150
  role?: string;
3514
5151
  tenant_id?: string;
3515
5152
  updated_at?: string;
5153
+ user_id?: string | null;
3516
5154
  };
3517
5155
  Relationships: [{
3518
5156
  foreignKeyName: "monteurs_tenant_id_fkey";
@@ -3649,12 +5287,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
3649
5287
  isOneToOne: false;
3650
5288
  referencedRelation: "offer_campaigns";
3651
5289
  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
5290
  }];
3659
5291
  };
3660
5292
  offer_campaigns: {
@@ -3930,6 +5562,99 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
3930
5562
  };
3931
5563
  Relationships: [];
3932
5564
  };
5565
+ order_cart_items: {
5566
+ Row: {
5567
+ cart_id: string;
5568
+ crates: number;
5569
+ crates_per_layer: number;
5570
+ created_at: string;
5571
+ id: string;
5572
+ order_item_id: string | null;
5573
+ plants_per_crate: number;
5574
+ product_id: string | null;
5575
+ product_name: string;
5576
+ };
5577
+ Insert: {
5578
+ cart_id: string;
5579
+ crates: number;
5580
+ crates_per_layer?: number;
5581
+ created_at?: string;
5582
+ id?: string;
5583
+ order_item_id?: string | null;
5584
+ plants_per_crate?: number;
5585
+ product_id?: string | null;
5586
+ product_name: string;
5587
+ };
5588
+ Update: {
5589
+ cart_id?: string;
5590
+ crates?: number;
5591
+ crates_per_layer?: number;
5592
+ created_at?: string;
5593
+ id?: string;
5594
+ order_item_id?: string | null;
5595
+ plants_per_crate?: number;
5596
+ product_id?: string | null;
5597
+ product_name?: string;
5598
+ };
5599
+ Relationships: [{
5600
+ foreignKeyName: "order_cart_items_cart_id_fkey";
5601
+ columns: ["cart_id"];
5602
+ isOneToOne: false;
5603
+ referencedRelation: "order_carts";
5604
+ referencedColumns: ["id"];
5605
+ }, {
5606
+ foreignKeyName: "order_cart_items_order_item_id_fkey";
5607
+ columns: ["order_item_id"];
5608
+ isOneToOne: false;
5609
+ referencedRelation: "order_items";
5610
+ referencedColumns: ["id"];
5611
+ }, {
5612
+ foreignKeyName: "order_cart_items_product_id_fkey";
5613
+ columns: ["product_id"];
5614
+ isOneToOne: false;
5615
+ referencedRelation: "products";
5616
+ referencedColumns: ["id"];
5617
+ }];
5618
+ };
5619
+ order_carts: {
5620
+ Row: {
5621
+ cart_number: number;
5622
+ created_at: string;
5623
+ id: string;
5624
+ is_auto: boolean;
5625
+ is_complete: boolean;
5626
+ notes: string | null;
5627
+ order_id: string;
5628
+ updated_at: string;
5629
+ };
5630
+ Insert: {
5631
+ cart_number: number;
5632
+ created_at?: string;
5633
+ id?: string;
5634
+ is_auto?: boolean;
5635
+ is_complete?: boolean;
5636
+ notes?: string | null;
5637
+ order_id: string;
5638
+ updated_at?: string;
5639
+ };
5640
+ Update: {
5641
+ cart_number?: number;
5642
+ created_at?: string;
5643
+ id?: string;
5644
+ is_auto?: boolean;
5645
+ is_complete?: boolean;
5646
+ notes?: string | null;
5647
+ order_id?: string;
5648
+ updated_at?: string;
5649
+ };
5650
+ Relationships: [{
5651
+ foreignKeyName: "order_carts_order_id_fkey";
5652
+ columns: ["order_id"];
5653
+ isOneToOne: false;
5654
+ referencedRelation: "orders";
5655
+ referencedColumns: ["id"];
5656
+ }];
5657
+ };
3933
5658
  order_field_options: {
3934
5659
  Row: {
3935
5660
  created_at: string;
@@ -4041,6 +5766,24 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
4041
5766
  referencedColumns: ["id"];
4042
5767
  }];
4043
5768
  };
5769
+ order_number_counters: {
5770
+ Row: {
5771
+ last_value: number;
5772
+ updated_at: string;
5773
+ year: number;
5774
+ };
5775
+ Insert: {
5776
+ last_value?: number;
5777
+ updated_at?: string;
5778
+ year: number;
5779
+ };
5780
+ Update: {
5781
+ last_value?: number;
5782
+ updated_at?: string;
5783
+ year?: number;
5784
+ };
5785
+ Relationships: [];
5786
+ };
4044
5787
  orders: {
4045
5788
  Row: {
4046
5789
  created_at: string;
@@ -4053,6 +5796,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
4053
5796
  notes: string | null;
4054
5797
  order_date: string;
4055
5798
  order_number: string;
5799
+ order_source: string;
4056
5800
  status: string;
4057
5801
  total: string;
4058
5802
  updated_at: string;
@@ -4068,6 +5812,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
4068
5812
  notes?: string | null;
4069
5813
  order_date?: string;
4070
5814
  order_number: string;
5815
+ order_source?: string;
4071
5816
  status?: string;
4072
5817
  total?: string;
4073
5818
  updated_at?: string;
@@ -4083,6 +5828,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
4083
5828
  notes?: string | null;
4084
5829
  order_date?: string;
4085
5830
  order_number?: string;
5831
+ order_source?: string;
4086
5832
  status?: string;
4087
5833
  total?: string;
4088
5834
  updated_at?: string;
@@ -4131,6 +5877,36 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
4131
5877
  };
4132
5878
  Relationships: [];
4133
5879
  };
5880
+ pickstation_print_log: {
5881
+ Row: {
5882
+ customer_name: string | null;
5883
+ documents: string[];
5884
+ id: string;
5885
+ ip_address: string | null;
5886
+ order_id: string;
5887
+ order_number: string | null;
5888
+ printed_at: string;
5889
+ };
5890
+ Insert: {
5891
+ customer_name?: string | null;
5892
+ documents?: string[];
5893
+ id?: string;
5894
+ ip_address?: string | null;
5895
+ order_id: string;
5896
+ order_number?: string | null;
5897
+ printed_at?: string;
5898
+ };
5899
+ Update: {
5900
+ customer_name?: string | null;
5901
+ documents?: string[];
5902
+ id?: string;
5903
+ ip_address?: string | null;
5904
+ order_id?: string;
5905
+ order_number?: string | null;
5906
+ printed_at?: string;
5907
+ };
5908
+ Relationships: [];
5909
+ };
4134
5910
  pipeline_settings: {
4135
5911
  Row: {
4136
5912
  created_at: string;
@@ -4291,13 +6067,16 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
4291
6067
  Row: {
4292
6068
  barcode: string | null;
4293
6069
  batch: string;
6070
+ crates_per_layer: number;
4294
6071
  created_at: string;
4295
6072
  custom_fields: import("../integrations/supabase/types").Json;
4296
6073
  id: string;
4297
6074
  image_url: string | null;
4298
6075
  incoming_quantity: number;
6076
+ layers_per_cart: number;
4299
6077
  location: string;
4300
6078
  min_quantity: number;
6079
+ plants_per_crate: number;
4301
6080
  product: string;
4302
6081
  product_type: string;
4303
6082
  purchase_price: number | null;
@@ -4310,13 +6089,16 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
4310
6089
  Insert: {
4311
6090
  barcode?: string | null;
4312
6091
  batch: string;
6092
+ crates_per_layer?: number;
4313
6093
  created_at?: string;
4314
6094
  custom_fields?: import("../integrations/supabase/types").Json;
4315
6095
  id?: string;
4316
6096
  image_url?: string | null;
4317
6097
  incoming_quantity?: number;
6098
+ layers_per_cart?: number;
4318
6099
  location: string;
4319
6100
  min_quantity?: number;
6101
+ plants_per_crate?: number;
4320
6102
  product: string;
4321
6103
  product_type?: string;
4322
6104
  purchase_price?: number | null;
@@ -4329,13 +6111,16 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
4329
6111
  Update: {
4330
6112
  barcode?: string | null;
4331
6113
  batch?: string;
6114
+ crates_per_layer?: number;
4332
6115
  created_at?: string;
4333
6116
  custom_fields?: import("../integrations/supabase/types").Json;
4334
6117
  id?: string;
4335
6118
  image_url?: string | null;
4336
6119
  incoming_quantity?: number;
6120
+ layers_per_cart?: number;
4337
6121
  location?: string;
4338
6122
  min_quantity?: number;
6123
+ plants_per_crate?: number;
4339
6124
  product?: string;
4340
6125
  product_type?: string;
4341
6126
  purchase_price?: number | null;
@@ -5277,6 +7062,141 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5277
7062
  };
5278
7063
  Relationships: [];
5279
7064
  };
7065
+ time_entries: {
7066
+ Row: {
7067
+ created_at: string;
7068
+ employee_id: string;
7069
+ entry_date: string;
7070
+ hours: number;
7071
+ id: string;
7072
+ notes: string | null;
7073
+ overtime: number;
7074
+ undertime: number;
7075
+ updated_at: string;
7076
+ };
7077
+ Insert: {
7078
+ created_at?: string;
7079
+ employee_id: string;
7080
+ entry_date: string;
7081
+ hours?: number;
7082
+ id?: string;
7083
+ notes?: string | null;
7084
+ overtime?: number;
7085
+ undertime?: number;
7086
+ updated_at?: string;
7087
+ };
7088
+ Update: {
7089
+ created_at?: string;
7090
+ employee_id?: string;
7091
+ entry_date?: string;
7092
+ hours?: number;
7093
+ id?: string;
7094
+ notes?: string | null;
7095
+ overtime?: number;
7096
+ undertime?: number;
7097
+ updated_at?: string;
7098
+ };
7099
+ Relationships: [{
7100
+ foreignKeyName: "time_entries_employee_id_fkey";
7101
+ columns: ["employee_id"];
7102
+ isOneToOne: false;
7103
+ referencedRelation: "monteurs";
7104
+ referencedColumns: ["id"];
7105
+ }];
7106
+ };
7107
+ time_logs: {
7108
+ Row: {
7109
+ created_at: string;
7110
+ employee_id: string;
7111
+ end_time: string | null;
7112
+ id: string;
7113
+ notes: string | null;
7114
+ overtime_hours: number;
7115
+ overtime_type: string | null;
7116
+ regular_hours: number;
7117
+ start_time: string;
7118
+ travel_cost: number | null;
7119
+ travel_distance_km: number | null;
7120
+ type: string;
7121
+ updated_at: string;
7122
+ };
7123
+ Insert: {
7124
+ created_at?: string;
7125
+ employee_id: string;
7126
+ end_time?: string | null;
7127
+ id?: string;
7128
+ notes?: string | null;
7129
+ overtime_hours?: number;
7130
+ overtime_type?: string | null;
7131
+ regular_hours?: number;
7132
+ start_time?: string;
7133
+ travel_cost?: number | null;
7134
+ travel_distance_km?: number | null;
7135
+ type: string;
7136
+ updated_at?: string;
7137
+ };
7138
+ Update: {
7139
+ created_at?: string;
7140
+ employee_id?: string;
7141
+ end_time?: string | null;
7142
+ id?: string;
7143
+ notes?: string | null;
7144
+ overtime_hours?: number;
7145
+ overtime_type?: string | null;
7146
+ regular_hours?: number;
7147
+ start_time?: string;
7148
+ travel_cost?: number | null;
7149
+ travel_distance_km?: number | null;
7150
+ type?: string;
7151
+ updated_at?: string;
7152
+ };
7153
+ Relationships: [{
7154
+ foreignKeyName: "time_logs_employee_id_fkey";
7155
+ columns: ["employee_id"];
7156
+ isOneToOne: false;
7157
+ referencedRelation: "monteurs";
7158
+ referencedColumns: ["id"];
7159
+ }];
7160
+ };
7161
+ time_off_entries: {
7162
+ Row: {
7163
+ created_at: string;
7164
+ employee_id: string;
7165
+ entry_date: string;
7166
+ hours: number;
7167
+ id: string;
7168
+ notes: string | null;
7169
+ type: string;
7170
+ updated_at: string;
7171
+ };
7172
+ Insert: {
7173
+ created_at?: string;
7174
+ employee_id: string;
7175
+ entry_date: string;
7176
+ hours?: number;
7177
+ id?: string;
7178
+ notes?: string | null;
7179
+ type: string;
7180
+ updated_at?: string;
7181
+ };
7182
+ Update: {
7183
+ created_at?: string;
7184
+ employee_id?: string;
7185
+ entry_date?: string;
7186
+ hours?: number;
7187
+ id?: string;
7188
+ notes?: string | null;
7189
+ type?: string;
7190
+ updated_at?: string;
7191
+ };
7192
+ Relationships: [{
7193
+ foreignKeyName: "time_off_entries_employee_id_fkey";
7194
+ columns: ["employee_id"];
7195
+ isOneToOne: false;
7196
+ referencedRelation: "monteurs";
7197
+ referencedColumns: ["id"];
7198
+ }];
7199
+ };
5280
7200
  trade_item_drafts: {
5281
7201
  Row: {
5282
7202
  connection_id: string | null;
@@ -5574,9 +7494,11 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5574
7494
  fetched_at: string;
5575
7495
  invoice_number: string;
5576
7496
  line_number: number;
7497
+ line_total: number | null;
5577
7498
  quantity: number | null;
5578
7499
  unit_price: number | null;
5579
7500
  vat_code: string | null;
7501
+ vat_rate: number | null;
5580
7502
  };
5581
7503
  Insert: {
5582
7504
  article_code?: string | null;
@@ -5586,9 +7508,11 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5586
7508
  fetched_at?: string;
5587
7509
  invoice_number: string;
5588
7510
  line_number: number;
7511
+ line_total?: number | null;
5589
7512
  quantity?: number | null;
5590
7513
  unit_price?: number | null;
5591
7514
  vat_code?: string | null;
7515
+ vat_rate?: number | null;
5592
7516
  };
5593
7517
  Update: {
5594
7518
  article_code?: string | null;
@@ -5598,9 +7522,11 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5598
7522
  fetched_at?: string;
5599
7523
  invoice_number?: string;
5600
7524
  line_number?: number;
7525
+ line_total?: number | null;
5601
7526
  quantity?: number | null;
5602
7527
  unit_price?: number | null;
5603
7528
  vat_code?: string | null;
7529
+ vat_rate?: number | null;
5604
7530
  };
5605
7531
  Relationships: [{
5606
7532
  foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
@@ -5777,9 +7703,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5777
7703
  invoice_date: string | null;
5778
7704
  invoice_number: string;
5779
7705
  modified_at: string | null;
7706
+ outstanding_amount: number | null;
5780
7707
  status: string | null;
7708
+ status_label: string | null;
5781
7709
  total_excl: number | null;
5782
7710
  total_incl: number | null;
7711
+ vat_amount: number | null;
5783
7712
  };
5784
7713
  Insert: {
5785
7714
  connection_id: string;
@@ -5791,9 +7720,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5791
7720
  invoice_date?: string | null;
5792
7721
  invoice_number: string;
5793
7722
  modified_at?: string | null;
7723
+ outstanding_amount?: number | null;
5794
7724
  status?: string | null;
7725
+ status_label?: string | null;
5795
7726
  total_excl?: number | null;
5796
7727
  total_incl?: number | null;
7728
+ vat_amount?: number | null;
5797
7729
  };
5798
7730
  Update: {
5799
7731
  connection_id?: string;
@@ -5805,9 +7737,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5805
7737
  invoice_date?: string | null;
5806
7738
  invoice_number?: string;
5807
7739
  modified_at?: string | null;
7740
+ outstanding_amount?: number | null;
5808
7741
  status?: string | null;
7742
+ status_label?: string | null;
5809
7743
  total_excl?: number | null;
5810
7744
  total_incl?: number | null;
7745
+ vat_amount?: number | null;
5811
7746
  };
5812
7747
  Relationships: [{
5813
7748
  foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
@@ -5834,12 +7769,63 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5834
7769
  };
5835
7770
  Update: {
5836
7771
  created_at?: string;
5837
- environment?: string;
5838
- nonce?: string | null;
5839
- state?: string;
5840
- user_id?: string;
7772
+ environment?: string;
7773
+ nonce?: string | null;
7774
+ state?: string;
7775
+ user_id?: string;
7776
+ };
7777
+ Relationships: [];
7778
+ };
7779
+ twinfield_push_queue: {
7780
+ Row: {
7781
+ attempts: number;
7782
+ connection_id: string;
7783
+ created_at: string;
7784
+ external_id: string | null;
7785
+ id: string;
7786
+ idempotency_key: string;
7787
+ last_error: string | null;
7788
+ next_attempt_at: string;
7789
+ office_code: string;
7790
+ payload: import("../integrations/supabase/types").Json;
7791
+ status: string;
7792
+ updated_at: string;
7793
+ };
7794
+ Insert: {
7795
+ attempts?: number;
7796
+ connection_id: string;
7797
+ created_at?: string;
7798
+ external_id?: string | null;
7799
+ id?: string;
7800
+ idempotency_key: string;
7801
+ last_error?: string | null;
7802
+ next_attempt_at?: string;
7803
+ office_code: string;
7804
+ payload: import("../integrations/supabase/types").Json;
7805
+ status?: string;
7806
+ updated_at?: string;
7807
+ };
7808
+ Update: {
7809
+ attempts?: number;
7810
+ connection_id?: string;
7811
+ created_at?: string;
7812
+ external_id?: string | null;
7813
+ id?: string;
7814
+ idempotency_key?: string;
7815
+ last_error?: string | null;
7816
+ next_attempt_at?: string;
7817
+ office_code?: string;
7818
+ payload?: import("../integrations/supabase/types").Json;
7819
+ status?: string;
7820
+ updated_at?: string;
5841
7821
  };
5842
- Relationships: [];
7822
+ Relationships: [{
7823
+ foreignKeyName: "twinfield_push_queue_connection_id_fkey";
7824
+ columns: ["connection_id"];
7825
+ isOneToOne: false;
7826
+ referencedRelation: "twinfield_connections";
7827
+ referencedColumns: ["id"];
7828
+ }];
5843
7829
  };
5844
7830
  twinfield_settings: {
5845
7831
  Row: {
@@ -5952,6 +7938,117 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5952
7938
  referencedColumns: ["id"];
5953
7939
  }];
5954
7940
  };
7941
+ voorraad_media_upload_failures: {
7942
+ Row: {
7943
+ action: string;
7944
+ attempt_number: number;
7945
+ caller: string;
7946
+ client_user_id: string | null;
7947
+ content_type: string | null;
7948
+ created_at: string;
7949
+ environment: string;
7950
+ error_message: string | null;
7951
+ filename: string | null;
7952
+ id: string;
7953
+ idempotency_key: string | null;
7954
+ module: string;
7955
+ path: string;
7956
+ reference_id: string | null;
7957
+ request_body_hash: string | null;
7958
+ request_timestamp: number | null;
7959
+ response_content_type: string | null;
7960
+ response_status: number | null;
7961
+ size_bytes: number | null;
7962
+ };
7963
+ Insert: {
7964
+ action?: string;
7965
+ attempt_number?: number;
7966
+ caller?: string;
7967
+ client_user_id?: string | null;
7968
+ content_type?: string | null;
7969
+ created_at?: string;
7970
+ environment: string;
7971
+ error_message?: string | null;
7972
+ filename?: string | null;
7973
+ id?: string;
7974
+ idempotency_key?: string | null;
7975
+ module?: string;
7976
+ path: string;
7977
+ reference_id?: string | null;
7978
+ request_body_hash?: string | null;
7979
+ request_timestamp?: number | null;
7980
+ response_content_type?: string | null;
7981
+ response_status?: number | null;
7982
+ size_bytes?: number | null;
7983
+ };
7984
+ Update: {
7985
+ action?: string;
7986
+ attempt_number?: number;
7987
+ caller?: string;
7988
+ client_user_id?: string | null;
7989
+ content_type?: string | null;
7990
+ created_at?: string;
7991
+ environment?: string;
7992
+ error_message?: string | null;
7993
+ filename?: string | null;
7994
+ id?: string;
7995
+ idempotency_key?: string | null;
7996
+ module?: string;
7997
+ path?: string;
7998
+ reference_id?: string | null;
7999
+ request_body_hash?: string | null;
8000
+ request_timestamp?: number | null;
8001
+ response_content_type?: string | null;
8002
+ response_status?: number | null;
8003
+ size_bytes?: number | null;
8004
+ };
8005
+ Relationships: [];
8006
+ };
8007
+ voorraad_publish_attempts: {
8008
+ Row: {
8009
+ action: string;
8010
+ connection_id: string | null;
8011
+ created_at: string;
8012
+ error: string | null;
8013
+ gateway_attempt_id: string | null;
8014
+ gateway_status: number | null;
8015
+ id: string;
8016
+ intent: string;
8017
+ ok: boolean;
8018
+ request_summary: import("../integrations/supabase/types").Json | null;
8019
+ trade_item_id: string | null;
8020
+ user_id: string;
8021
+ };
8022
+ Insert: {
8023
+ action: string;
8024
+ connection_id?: string | null;
8025
+ created_at?: string;
8026
+ error?: string | null;
8027
+ gateway_attempt_id?: string | null;
8028
+ gateway_status?: number | null;
8029
+ id?: string;
8030
+ intent: string;
8031
+ ok: boolean;
8032
+ request_summary?: import("../integrations/supabase/types").Json | null;
8033
+ trade_item_id?: string | null;
8034
+ user_id: string;
8035
+ };
8036
+ Update: {
8037
+ action?: string;
8038
+ connection_id?: string | null;
8039
+ created_at?: string;
8040
+ error?: string | null;
8041
+ gateway_attempt_id?: string | null;
8042
+ gateway_status?: number | null;
8043
+ id?: string;
8044
+ intent?: string;
8045
+ ok?: boolean;
8046
+ request_summary?: import("../integrations/supabase/types").Json | null;
8047
+ trade_item_id?: string | null;
8048
+ user_id?: string;
8049
+ };
8050
+ Relationships: [];
8051
+ };
5955
8052
  work_order_monteurs: {
5956
8053
  Row: {
5957
8054
  created_at: string;
@@ -6263,6 +8360,132 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6263
8360
  };
6264
8361
  Relationships: [];
6265
8362
  };
8363
+ external_invoices_grouped: {
8364
+ Row: {
8365
+ currency: string | null;
8366
+ customer_external_id: string | null;
8367
+ customer_name: string | null;
8368
+ customer_vat: string | null;
8369
+ due_at: string | null;
8370
+ group_key: string | null;
8371
+ invoice_number: string | null;
8372
+ is_merged: boolean | null;
8373
+ issued_at: string | null;
8374
+ modified_at: string | null;
8375
+ open_amount: number | null;
8376
+ paid_at: string | null;
8377
+ providers: string[] | null;
8378
+ source_count: number | null;
8379
+ sources: import("../integrations/supabase/types").Json | null;
8380
+ status: string | null;
8381
+ total_excl: number | null;
8382
+ total_incl: number | null;
8383
+ total_vat: number | null;
8384
+ };
8385
+ Relationships: [];
8386
+ };
8387
+ external_invoices_unified: {
8388
+ Row: {
8389
+ connection_id: string | null;
8390
+ currency: string | null;
8391
+ customer_external_id: string | null;
8392
+ customer_name: string | null;
8393
+ customer_vat: string | null;
8394
+ due_at: string | null;
8395
+ external_id: string | null;
8396
+ invoice_number: string | null;
8397
+ issued_at: string | null;
8398
+ open_amount: number | null;
8399
+ owner_user_id: string | null;
8400
+ paid_at: string | null;
8401
+ raw: import("../integrations/supabase/types").Json | null;
8402
+ source: string | null;
8403
+ status: string | null;
8404
+ synced_at: string | null;
8405
+ total_excl: number | null;
8406
+ total_incl: number | null;
8407
+ total_vat: number | null;
8408
+ };
8409
+ Relationships: [];
8410
+ };
8411
+ v_external_customers_exact: {
8412
+ Row: {
8413
+ account_number: string | null;
8414
+ city: string | null;
8415
+ coc_number: string | null;
8416
+ company_name: string | null;
8417
+ connection_id: string | null;
8418
+ country: string | null;
8419
+ currency: string | null;
8420
+ email: string | null;
8421
+ external_id: string | null;
8422
+ is_sales: boolean | null;
8423
+ is_supplier: boolean | null;
8424
+ language: string | null;
8425
+ modified_at: string | null;
8426
+ phone: string | null;
8427
+ postal_code: string | null;
8428
+ raw: import("../integrations/supabase/types").Json | null;
8429
+ source: string | null;
8430
+ street: string | null;
8431
+ synced_at: string | null;
8432
+ vat_number: string | null;
8433
+ website: string | null;
8434
+ };
8435
+ Insert: {
8436
+ account_number?: string | null;
8437
+ city?: string | null;
8438
+ coc_number?: string | null;
8439
+ company_name?: string | null;
8440
+ connection_id?: string | null;
8441
+ country?: string | null;
8442
+ currency?: string | null;
8443
+ email?: string | null;
8444
+ external_id?: string | null;
8445
+ is_sales?: boolean | null;
8446
+ is_supplier?: boolean | null;
8447
+ language?: string | null;
8448
+ modified_at?: string | null;
8449
+ phone?: string | null;
8450
+ postal_code?: string | null;
8451
+ raw?: import("../integrations/supabase/types").Json | null;
8452
+ source?: never;
8453
+ street?: string | null;
8454
+ synced_at?: string | null;
8455
+ vat_number?: string | null;
8456
+ website?: string | null;
8457
+ };
8458
+ Update: {
8459
+ account_number?: string | null;
8460
+ city?: string | null;
8461
+ coc_number?: string | null;
8462
+ company_name?: string | null;
8463
+ connection_id?: string | null;
8464
+ country?: string | null;
8465
+ currency?: string | null;
8466
+ email?: string | null;
8467
+ external_id?: string | null;
8468
+ is_sales?: boolean | null;
8469
+ is_supplier?: boolean | null;
8470
+ language?: string | null;
8471
+ modified_at?: string | null;
8472
+ phone?: string | null;
8473
+ postal_code?: string | null;
8474
+ raw?: import("../integrations/supabase/types").Json | null;
8475
+ source?: never;
8476
+ street?: string | null;
8477
+ synced_at?: string | null;
8478
+ vat_number?: string | null;
8479
+ website?: string | null;
8480
+ };
8481
+ Relationships: [{
8482
+ foreignKeyName: "exact_customers_cache_connection_id_fkey";
8483
+ columns: ["connection_id"];
8484
+ isOneToOne: false;
8485
+ referencedRelation: "exact_connections";
8486
+ referencedColumns: ["id"];
8487
+ }];
8488
+ };
6266
8489
  v_external_customers_floriday: {
6267
8490
  Row: {
6268
8491
  city: string | null;
@@ -6321,16 +8544,148 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6321
8544
  vat_number: string | null;
6322
8545
  website: string | null;
6323
8546
  };
6324
- Relationships: [{
6325
- foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
6326
- columns: ["connection_id"];
6327
- isOneToOne: false;
6328
- referencedRelation: "twinfield_connections";
6329
- referencedColumns: ["id"];
6330
- }];
8547
+ Relationships: [{
8548
+ foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
8549
+ columns: ["connection_id"];
8550
+ isOneToOne: false;
8551
+ referencedRelation: "twinfield_connections";
8552
+ referencedColumns: ["id"];
8553
+ }];
8554
+ };
8555
+ v_external_invoices_exact: {
8556
+ Row: {
8557
+ connection_id: string | null;
8558
+ currency: string | null;
8559
+ customer_external_id: string | null;
8560
+ customer_name: string | null;
8561
+ customer_vat: string | null;
8562
+ due_at: string | null;
8563
+ external_id: string | null;
8564
+ invoice_number: string | null;
8565
+ issued_at: string | null;
8566
+ open_amount: number | null;
8567
+ paid_at: string | null;
8568
+ raw: import("../integrations/supabase/types").Json | null;
8569
+ source: string | null;
8570
+ status: string | null;
8571
+ synced_at: string | null;
8572
+ total_excl: number | null;
8573
+ total_incl: number | null;
8574
+ total_vat: number | null;
8575
+ };
8576
+ Insert: {
8577
+ connection_id?: string | null;
8578
+ currency?: never;
8579
+ customer_external_id?: string | null;
8580
+ customer_name?: string | null;
8581
+ customer_vat?: never;
8582
+ due_at?: string | null;
8583
+ external_id?: string | null;
8584
+ invoice_number?: string | null;
8585
+ issued_at?: string | null;
8586
+ open_amount?: number | null;
8587
+ paid_at?: string | null;
8588
+ raw?: import("../integrations/supabase/types").Json | null;
8589
+ source?: never;
8590
+ status?: string | null;
8591
+ synced_at?: string | null;
8592
+ total_excl?: number | null;
8593
+ total_incl?: number | null;
8594
+ total_vat?: number | null;
8595
+ };
8596
+ Update: {
8597
+ connection_id?: string | null;
8598
+ currency?: never;
8599
+ customer_external_id?: string | null;
8600
+ customer_name?: string | null;
8601
+ customer_vat?: never;
8602
+ due_at?: string | null;
8603
+ external_id?: string | null;
8604
+ invoice_number?: string | null;
8605
+ issued_at?: string | null;
8606
+ open_amount?: number | null;
8607
+ paid_at?: string | null;
8608
+ raw?: import("../integrations/supabase/types").Json | null;
8609
+ source?: never;
8610
+ status?: string | null;
8611
+ synced_at?: string | null;
8612
+ total_excl?: number | null;
8613
+ total_incl?: number | null;
8614
+ total_vat?: number | null;
8615
+ };
8616
+ Relationships: [{
8617
+ foreignKeyName: "exact_invoices_cache_connection_id_fkey";
8618
+ columns: ["connection_id"];
8619
+ isOneToOne: false;
8620
+ referencedRelation: "exact_connections";
8621
+ referencedColumns: ["id"];
8622
+ }];
8623
+ };
8624
+ v_external_invoices_twinfield: {
8625
+ Row: {
8626
+ connection_id: string | null;
8627
+ currency: string | null;
8628
+ customer_external_id: string | null;
8629
+ customer_name: string | null;
8630
+ customer_vat: string | null;
8631
+ due_at: string | null;
8632
+ external_id: string | null;
8633
+ invoice_number: string | null;
8634
+ issued_at: string | null;
8635
+ open_amount: number | null;
8636
+ owner_user_id: string | null;
8637
+ paid_at: string | null;
8638
+ raw: import("../integrations/supabase/types").Json | null;
8639
+ source: string | null;
8640
+ status: string | null;
8641
+ synced_at: string | null;
8642
+ total_excl: number | null;
8643
+ total_incl: number | null;
8644
+ total_vat: number | null;
8645
+ };
8646
+ Relationships: [{
8647
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
8648
+ columns: ["connection_id"];
8649
+ isOneToOne: false;
8650
+ referencedRelation: "twinfield_connections";
8651
+ referencedColumns: ["id"];
8652
+ }];
8653
+ };
8654
+ };
8655
+ Functions: {
8656
+ _floriday_schedule_job: {
8657
+ Args: {
8658
+ p_apikey: string;
8659
+ p_jobname: string;
8660
+ p_schedule: string;
8661
+ p_timeout_ms: number;
8662
+ p_url: string;
8663
+ };
8664
+ Returns: number;
8665
+ };
8666
+ assign_floriday_order_numbers: {
8667
+ Args: {
8668
+ p_ids: string[];
8669
+ };
8670
+ Returns: {
8671
+ floriday_id: string;
8672
+ order_number: string;
8673
+ }[];
8674
+ };
8675
+ call_exact_route: {
8676
+ Args: {
8677
+ path: string;
8678
+ };
8679
+ Returns: number;
8680
+ };
8681
+ cleanup_old_bookings: {
8682
+ Args: never;
8683
+ Returns: number;
8684
+ };
8685
+ current_monteur_id: {
8686
+ Args: never;
8687
+ Returns: string;
6331
8688
  };
6332
- };
6333
- Functions: {
6334
8689
  dashboard_list_public_schema: {
6335
8690
  Args: never;
6336
8691
  Returns: {
@@ -6435,6 +8790,32 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6435
8790
  office_code: string;
6436
8791
  }[];
6437
8792
  };
8793
+ get_floriday_agreements_active: {
8794
+ Args: {
8795
+ p_on_date?: string;
8796
+ };
8797
+ Returns: {
8798
+ buyer_organization_id: string;
8799
+ data: import("../integrations/supabase/types").Json;
8800
+ floriday_id: string;
8801
+ status: string;
8802
+ valid_from: string;
8803
+ valid_until: string;
8804
+ }[];
8805
+ };
8806
+ get_floriday_clock_supplies_window: {
8807
+ Args: {
8808
+ p_from: string;
8809
+ p_to: string;
8810
+ };
8811
+ Returns: {
8812
+ auction_date: string;
8813
+ data: import("../integrations/supabase/types").Json;
8814
+ floriday_id: string;
8815
+ status: string;
8816
+ trade_item_id: string;
8817
+ }[];
8818
+ };
6438
8819
  get_floriday_cron_jobs: {
6439
8820
  Args: never;
6440
8821
  Returns: {
@@ -6444,12 +8825,68 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6444
8825
  url: string;
6445
8826
  }[];
6446
8827
  };
8828
+ get_floriday_delivery_locations: {
8829
+ Args: {
8830
+ p_organization_id: string;
8831
+ };
8832
+ Returns: {
8833
+ data: import("../integrations/supabase/types").Json;
8834
+ floriday_id: string;
8835
+ gln_code: string;
8836
+ name: string;
8837
+ }[];
8838
+ };
8839
+ get_floriday_fulfillment_orders_window: {
8840
+ Args: {
8841
+ p_from: string;
8842
+ p_to: string;
8843
+ };
8844
+ Returns: {
8845
+ auction_date: string;
8846
+ data: import("../integrations/supabase/types").Json;
8847
+ delivery_order_id: string;
8848
+ destination_warehouse_id: string;
8849
+ floriday_id: string;
8850
+ status: string;
8851
+ }[];
8852
+ };
8853
+ get_floriday_sales_orders_window: {
8854
+ Args: {
8855
+ p_from: string;
8856
+ p_to: string;
8857
+ };
8858
+ Returns: {
8859
+ buyer_organization_id: string;
8860
+ data: import("../integrations/supabase/types").Json;
8861
+ floriday_id: string;
8862
+ status: string;
8863
+ updated_at: string;
8864
+ }[];
8865
+ };
8866
+ get_floriday_sync_health: {
8867
+ Args: never;
8868
+ Returns: {
8869
+ entity_type: string;
8870
+ last_error: string;
8871
+ last_items_processed: number;
8872
+ last_sequence_number: number;
8873
+ last_success_at: string;
8874
+ last_synced_at: string;
8875
+ minutes_since_success: number;
8876
+ }[];
8877
+ };
6447
8878
  get_offer_by_link_code: {
6448
8879
  Args: {
6449
8880
  p_code: string;
6450
8881
  };
6451
8882
  Returns: import("../integrations/supabase/types").Json;
6452
8883
  };
8884
+ get_or_assign_floriday_order_number: {
8885
+ Args: {
8886
+ p_floriday_id: string;
8887
+ };
8888
+ Returns: string;
8889
+ };
6453
8890
  get_room_busy_windows: {
6454
8891
  Args: {
6455
8892
  p_from: string;
@@ -6496,6 +8933,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6496
8933
  Args: never;
6497
8934
  Returns: boolean;
6498
8935
  };
8936
+ next_order_number: {
8937
+ Args: {
8938
+ p_prefix: string;
8939
+ };
8940
+ Returns: string;
8941
+ };
6499
8942
  next_work_order_number: {
6500
8943
  Args: {
6501
8944
  p_parent_work_order_id?: string;
@@ -6509,6 +8952,74 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6509
8952
  };
6510
8953
  Returns: string;
6511
8954
  };
8955
+ pickstation_get_orders_raw: {
8956
+ Args: never;
8957
+ Returns: import("../integrations/supabase/types").Json;
8958
+ };
8959
+ pickstation_get_settings: {
8960
+ Args: never;
8961
+ Returns: import("../integrations/supabase/types").Json;
8962
+ };
8963
+ pickstation_log_print: {
8964
+ Args: {
8965
+ p_customer_name: string;
8966
+ p_documents: string[];
8967
+ p_ip_address: string;
8968
+ p_order_id: string;
8969
+ p_order_number: string;
8970
+ };
8971
+ Returns: undefined;
8972
+ };
8973
+ refresh_floricode_derived_code_lists: {
8974
+ Args: never;
8975
+ Returns: {
8976
+ environment: string;
8977
+ list_name: string;
8978
+ row_count: number;
8979
+ }[];
8980
+ };
8981
+ reset_floriday_sync_cursor: {
8982
+ Args: {
8983
+ p_connection_id: string;
8984
+ p_entity_type: string;
8985
+ };
8986
+ Returns: undefined;
8987
+ };
8988
+ schedule_floriday_additional_services_sync: {
8989
+ Args: {
8990
+ p_apikey: string;
8991
+ p_url: string;
8992
+ };
8993
+ Returns: number;
8994
+ };
8995
+ schedule_floriday_agreement_calloffs_sync: {
8996
+ Args: {
8997
+ p_apikey: string;
8998
+ p_url: string;
8999
+ };
9000
+ Returns: number;
9001
+ };
9002
+ schedule_floriday_agreements_sync: {
9003
+ Args: {
9004
+ p_apikey: string;
9005
+ p_url: string;
9006
+ };
9007
+ Returns: number;
9008
+ };
9009
+ schedule_floriday_base_items_sync: {
9010
+ Args: {
9011
+ p_apikey: string;
9012
+ p_url: string;
9013
+ };
9014
+ Returns: number;
9015
+ };
9016
+ schedule_floriday_blanket_orders_sync: {
9017
+ Args: {
9018
+ p_apikey: string;
9019
+ p_url: string;
9020
+ };
9021
+ Returns: number;
9022
+ };
6512
9023
  schedule_floriday_carriers_sync: {
6513
9024
  Args: {
6514
9025
  p_apikey: string;
@@ -6516,6 +9027,34 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6516
9027
  };
6517
9028
  Returns: number;
6518
9029
  };
9030
+ schedule_floriday_clock_presales_sync: {
9031
+ Args: {
9032
+ p_apikey: string;
9033
+ p_url: string;
9034
+ };
9035
+ Returns: number;
9036
+ };
9037
+ schedule_floriday_clock_supplies_sync: {
9038
+ Args: {
9039
+ p_apikey: string;
9040
+ p_url: string;
9041
+ };
9042
+ Returns: number;
9043
+ };
9044
+ schedule_floriday_collections_sync: {
9045
+ Args: {
9046
+ p_apikey: string;
9047
+ p_url: string;
9048
+ };
9049
+ Returns: number;
9050
+ };
9051
+ schedule_floriday_commercial_service_types_sync: {
9052
+ Args: {
9053
+ p_apikey: string;
9054
+ p_url: string;
9055
+ };
9056
+ Returns: number;
9057
+ };
6519
9058
  schedule_floriday_connections_sync: {
6520
9059
  Args: {
6521
9060
  p_apikey: string;
@@ -6523,6 +9062,20 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6523
9062
  };
6524
9063
  Returns: number;
6525
9064
  };
9065
+ schedule_floriday_contract_trade_item_groups_sync: {
9066
+ Args: {
9067
+ p_apikey: string;
9068
+ p_url: string;
9069
+ };
9070
+ Returns: number;
9071
+ };
9072
+ schedule_floriday_contracts_sync: {
9073
+ Args: {
9074
+ p_apikey: string;
9075
+ p_url: string;
9076
+ };
9077
+ Returns: number;
9078
+ };
6526
9079
  schedule_floriday_customer_organizations_sync: {
6527
9080
  Args: {
6528
9081
  p_apikey: string;
@@ -6530,6 +9083,48 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6530
9083
  };
6531
9084
  Returns: number;
6532
9085
  };
9086
+ schedule_floriday_customer_stickers_sync: {
9087
+ Args: {
9088
+ p_apikey: string;
9089
+ p_url: string;
9090
+ };
9091
+ Returns: number;
9092
+ };
9093
+ schedule_floriday_delivery_condition_sets_sync: {
9094
+ Args: {
9095
+ p_apikey: string;
9096
+ p_url: string;
9097
+ };
9098
+ Returns: number;
9099
+ };
9100
+ schedule_floriday_delivery_locations_sync: {
9101
+ Args: {
9102
+ p_apikey: string;
9103
+ p_url: string;
9104
+ };
9105
+ Returns: number;
9106
+ };
9107
+ schedule_floriday_delivery_orders_sync: {
9108
+ Args: {
9109
+ p_apikey: string;
9110
+ p_url: string;
9111
+ };
9112
+ Returns: number;
9113
+ };
9114
+ schedule_floriday_fulfillment_orders_sync: {
9115
+ Args: {
9116
+ p_apikey: string;
9117
+ p_url: string;
9118
+ };
9119
+ Returns: number;
9120
+ };
9121
+ schedule_floriday_invoices_sync: {
9122
+ Args: {
9123
+ p_apikey: string;
9124
+ p_url: string;
9125
+ };
9126
+ Returns: number;
9127
+ };
6533
9128
  schedule_floriday_network_sync: {
6534
9129
  Args: {
6535
9130
  p_apikey: string;
@@ -6537,6 +9132,34 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6537
9132
  };
6538
9133
  Returns: number;
6539
9134
  };
9135
+ schedule_floriday_packings_sync: {
9136
+ Args: {
9137
+ p_apikey: string;
9138
+ p_url: string;
9139
+ };
9140
+ Returns: number;
9141
+ };
9142
+ schedule_floriday_price_groups_sync: {
9143
+ Args: {
9144
+ p_apikey: string;
9145
+ p_url: string;
9146
+ };
9147
+ Returns: number;
9148
+ };
9149
+ schedule_floriday_reference_data_refresh: {
9150
+ Args: {
9151
+ p_apikey: string;
9152
+ p_url: string;
9153
+ };
9154
+ Returns: number;
9155
+ };
9156
+ schedule_floriday_sales_strategies_sync: {
9157
+ Args: {
9158
+ p_apikey: string;
9159
+ p_url: string;
9160
+ };
9161
+ Returns: number;
9162
+ };
6540
9163
  schedule_floriday_salesorders_sync: {
6541
9164
  Args: {
6542
9165
  p_apikey: string;
@@ -6551,6 +9174,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6551
9174
  };
6552
9175
  Returns: number;
6553
9176
  };
9177
+ schedule_floriday_trade_item_classifications_sync: {
9178
+ Args: {
9179
+ p_apikey: string;
9180
+ p_url: string;
9181
+ };
9182
+ Returns: number;
9183
+ };
6554
9184
  schedule_floriday_trade_items_sync: {
6555
9185
  Args: {
6556
9186
  p_apikey: string;
@@ -6558,6 +9188,20 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6558
9188
  };
6559
9189
  Returns: number;
6560
9190
  };
9191
+ schedule_floriday_trips_sync: {
9192
+ Args: {
9193
+ p_apikey: string;
9194
+ p_url: string;
9195
+ };
9196
+ Returns: number;
9197
+ };
9198
+ schedule_floriday_warehouses_sync: {
9199
+ Args: {
9200
+ p_apikey: string;
9201
+ p_url: string;
9202
+ };
9203
+ Returns: number;
9204
+ };
6561
9205
  schedule_twinfield_customers_sync: {
6562
9206
  Args: {
6563
9207
  p_apikey: string;
@@ -6586,6 +9230,14 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6586
9230
  };
6587
9231
  Returns: number;
6588
9232
  };
9233
+ schedule_twinfield_push_queue_flush: {
9234
+ Args: {
9235
+ p_apikey: string;
9236
+ p_cron_secret?: string;
9237
+ p_url: string;
9238
+ };
9239
+ Returns: number;
9240
+ };
6589
9241
  schedule_twinfield_token_refresh: {
6590
9242
  Args: {
6591
9243
  p_apikey: string;
@@ -6624,8 +9276,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
6624
9276
  };
6625
9277
  };
6626
9278
  Enums: {
6627
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
9279
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
6628
9280
  exact_env: "staging" | "live";
9281
+ exact_push_status: "pending" | "sent" | "error";
6629
9282
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
6630
9283
  };
6631
9284
  CompositeTypes: { [_ in never]: never; };