@flowselections/floriday-verkoop-module 1.0.8 → 1.0.9

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