@flowselections/floriday-klanten-module 1.0.8 → 1.0.10

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