@flowselections/floriday-afhandeling-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 (94) hide show
  1. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts +9 -0
  2. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -0
  3. package/dist-lib/components/afhandeling/DagDetailDialog.js +145 -0
  4. package/dist-lib/components/afhandeling/LeveringenPage.d.ts.map +1 -1
  5. package/dist-lib/components/afhandeling/LeveringenPage.js +17 -69
  6. package/dist-lib/components/afhandeling/PickAgendaView.d.ts +6 -0
  7. package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -0
  8. package/dist-lib/components/afhandeling/PickAgendaView.js +40 -0
  9. package/dist-lib/components/afhandeling/PickingPage.d.ts +2 -0
  10. package/dist-lib/components/afhandeling/PickingPage.d.ts.map +1 -0
  11. package/dist-lib/components/afhandeling/PickingPage.js +5 -0
  12. package/dist-lib/components/afhandeling/PlanningAgendaPage.d.ts +9 -0
  13. package/dist-lib/components/afhandeling/PlanningAgendaPage.d.ts.map +1 -0
  14. package/dist-lib/components/afhandeling/PlanningAgendaPage.js +7 -0
  15. package/dist-lib/components/afhandeling/ServiceAreaSelect.d.ts +12 -0
  16. package/dist-lib/components/afhandeling/ServiceAreaSelect.d.ts.map +1 -0
  17. package/dist-lib/components/afhandeling/ServiceAreaSelect.js +79 -0
  18. package/dist-lib/components/afhandeling/VervoerderForm.d.ts.map +1 -1
  19. package/dist-lib/components/afhandeling/VervoerderForm.js +73 -12
  20. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
  21. package/dist-lib/components/afhandeling/VervoerdersPage.js +23 -5
  22. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts +13 -0
  23. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -0
  24. package/dist-lib/components/afhandeling/WeekAgendaView.js +142 -0
  25. package/dist-lib/components/pickstation/LanguagePicker.d.ts +5 -0
  26. package/dist-lib/components/pickstation/LanguagePicker.d.ts.map +1 -0
  27. package/dist-lib/components/pickstation/LanguagePicker.js +5 -0
  28. package/dist-lib/components/pickstation/PakbonTemplate.d.ts +20 -0
  29. package/dist-lib/components/pickstation/PakbonTemplate.d.ts.map +1 -0
  30. package/dist-lib/components/pickstation/PakbonTemplate.js +76 -0
  31. package/dist-lib/components/pickstation/printDocuments.d.ts +3 -0
  32. package/dist-lib/components/pickstation/printDocuments.d.ts.map +1 -0
  33. package/dist-lib/components/pickstation/printDocuments.js +53 -0
  34. package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts +2 -0
  35. package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -0
  36. package/dist-lib/components/settings/AfhandelingSettingsCard.js +72 -0
  37. package/dist-lib/components/settings/VervoerdersSettingsCard.d.ts +2 -0
  38. package/dist-lib/components/settings/VervoerdersSettingsCard.d.ts.map +1 -0
  39. package/dist-lib/components/settings/VervoerdersSettingsCard.js +30 -0
  40. package/dist-lib/hooks/useOrderPlanning.d.ts +17 -0
  41. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -0
  42. package/dist-lib/hooks/useOrderPlanning.js +131 -0
  43. package/dist-lib/index.d.ts +5 -0
  44. package/dist-lib/index.d.ts.map +1 -1
  45. package/dist-lib/index.js +16 -6
  46. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2793 -137
  47. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  48. package/dist-lib/integrations/supabase/client.d.ts +2793 -137
  49. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  50. package/dist-lib/integrations/supabase/client.server.d.ts +2793 -137
  51. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  52. package/dist-lib/integrations/supabase/types.d.ts +2870 -131
  53. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  54. package/dist-lib/integrations/supabase/types.js +2 -0
  55. package/dist-lib/lib/afhandelingSettings.functions.d.ts +18597 -0
  56. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -0
  57. package/dist-lib/lib/afhandelingSettings.functions.js +98 -0
  58. package/dist-lib/lib/carrierSignupMail.server.d.ts +56 -0
  59. package/dist-lib/lib/carrierSignupMail.server.d.ts.map +1 -0
  60. package/dist-lib/lib/carrierSignupMail.server.js +229 -0
  61. package/dist-lib/lib/carriers.functions.d.ts +34091 -14161
  62. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  63. package/dist-lib/lib/carriers.functions.js +69 -6
  64. package/dist-lib/lib/cartAssignments.functions.d.ts +46479 -0
  65. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -0
  66. package/dist-lib/lib/cartAssignments.functions.js +130 -0
  67. package/dist-lib/lib/cartMoveImpact.d.ts +8 -0
  68. package/dist-lib/lib/cartMoveImpact.d.ts.map +1 -0
  69. package/dist-lib/lib/cartMoveImpact.js +26 -0
  70. package/dist-lib/lib/floriday.functions.d.ts +2798 -137
  71. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  72. package/dist-lib/lib/floriday.functions.js +178 -93
  73. package/dist-lib/lib/geo/euServiceAreas.d.ts +30 -0
  74. package/dist-lib/lib/geo/euServiceAreas.d.ts.map +1 -0
  75. package/dist-lib/lib/geo/euServiceAreas.js +277 -0
  76. package/dist-lib/lib/invalidatePlanning.d.ts +11 -0
  77. package/dist-lib/lib/invalidatePlanning.d.ts.map +1 -0
  78. package/dist-lib/lib/invalidatePlanning.js +25 -0
  79. package/dist-lib/lib/pickDate.d.ts +21 -0
  80. package/dist-lib/lib/pickDate.d.ts.map +1 -0
  81. package/dist-lib/lib/pickDate.js +71 -0
  82. package/dist-lib/lib/pickstationI18n.d.ts +35 -0
  83. package/dist-lib/lib/pickstationI18n.d.ts.map +1 -0
  84. package/dist-lib/lib/pickstationI18n.js +171 -0
  85. package/dist-lib/lib/pickstationOrders.server.d.ts +9 -0
  86. package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -0
  87. package/dist-lib/lib/pickstationOrders.server.js +372 -0
  88. package/dist-lib/lib/pickstationTypes.d.ts +26 -0
  89. package/dist-lib/lib/pickstationTypes.d.ts.map +1 -0
  90. package/dist-lib/lib/pickstationTypes.js +1 -0
  91. package/dist-lib/lib/planning.d.ts +82 -0
  92. package/dist-lib/lib/planning.d.ts.map +1 -0
  93. package/dist-lib/lib/planning.js +243 -0
  94. package/package.json +12 -6
@@ -1,18 +1,64 @@
1
1
  import type { SupabaseClient } from "@supabase/supabase-js";
2
2
  export interface FloridayOrder {
3
3
  id: string;
4
+ source: "floriday" | "manual";
4
5
  orderNumber: string;
5
6
  customerName: string;
6
7
  deliveryDate: string | null;
7
8
  deliveryType: string;
8
9
  status: string;
9
10
  lineCount: number;
11
+ cartCount: number | null;
12
+ plantCount: number | null;
10
13
  totalAmount: number | null;
11
14
  currency: string | null;
15
+ createdAt: string | null;
12
16
  }
13
17
  export declare const getFloridayOrders: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
14
18
  supabase: SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
15
19
  Tables: {
20
+ afhandeling_settings: {
21
+ Row: {
22
+ created_at: string;
23
+ id: string;
24
+ max_workdays_earlier_pick: number;
25
+ pick_days_before_transport: number;
26
+ pick_distribution_enabled: boolean;
27
+ signup_mail_enabled: boolean;
28
+ signup_mail_lead_minutes: number;
29
+ signup_mail_purpose: string;
30
+ transport_register_days_before: number;
31
+ updated_at: string;
32
+ user_id: string;
33
+ };
34
+ Insert: {
35
+ created_at?: string;
36
+ id?: string;
37
+ max_workdays_earlier_pick?: number;
38
+ pick_days_before_transport?: number;
39
+ pick_distribution_enabled?: boolean;
40
+ signup_mail_enabled?: boolean;
41
+ signup_mail_lead_minutes?: number;
42
+ signup_mail_purpose?: string;
43
+ transport_register_days_before?: number;
44
+ updated_at?: string;
45
+ user_id: string;
46
+ };
47
+ Update: {
48
+ created_at?: string;
49
+ id?: string;
50
+ max_workdays_earlier_pick?: number;
51
+ pick_days_before_transport?: number;
52
+ pick_distribution_enabled?: boolean;
53
+ signup_mail_enabled?: boolean;
54
+ signup_mail_lead_minutes?: number;
55
+ signup_mail_purpose?: string;
56
+ transport_register_days_before?: number;
57
+ updated_at?: string;
58
+ user_id?: string;
59
+ };
60
+ Relationships: [];
61
+ };
16
62
  agenda_connections: {
17
63
  Row: {
18
64
  account_email: string | null;
@@ -281,6 +327,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
281
327
  invoice_run_id: string | null;
282
328
  invoice_status: string | null;
283
329
  invoiced_at: string | null;
330
+ notes: string | null;
284
331
  number_of_people: number;
285
332
  room_id: string;
286
333
  start_time: string;
@@ -305,6 +352,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
305
352
  invoice_run_id?: string | null;
306
353
  invoice_status?: string | null;
307
354
  invoiced_at?: string | null;
355
+ notes?: string | null;
308
356
  number_of_people?: number;
309
357
  room_id: string;
310
358
  start_time: string;
@@ -329,6 +377,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
329
377
  invoice_run_id?: string | null;
330
378
  invoice_status?: string | null;
331
379
  invoiced_at?: string | null;
380
+ notes?: string | null;
332
381
  number_of_people?: number;
333
382
  room_id?: string;
334
383
  start_time?: string;
@@ -412,6 +461,51 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
412
461
  referencedColumns: ["id"];
413
462
  }];
414
463
  };
464
+ carrier_signup_dispatches: {
465
+ Row: {
466
+ carrier_id: string;
467
+ cart_count: number;
468
+ created_at: string;
469
+ id: string;
470
+ order_count: number;
471
+ outbox_id: string | null;
472
+ pickup_date: string;
473
+ pickup_moment_key: string;
474
+ sent_at: string;
475
+ signup_deadline: string;
476
+ };
477
+ Insert: {
478
+ carrier_id: string;
479
+ cart_count?: number;
480
+ created_at?: string;
481
+ id?: string;
482
+ order_count?: number;
483
+ outbox_id?: string | null;
484
+ pickup_date: string;
485
+ pickup_moment_key: string;
486
+ sent_at?: string;
487
+ signup_deadline: string;
488
+ };
489
+ Update: {
490
+ carrier_id?: string;
491
+ cart_count?: number;
492
+ created_at?: string;
493
+ id?: string;
494
+ order_count?: number;
495
+ outbox_id?: string | null;
496
+ pickup_date?: string;
497
+ pickup_moment_key?: string;
498
+ sent_at?: string;
499
+ signup_deadline?: string;
500
+ };
501
+ Relationships: [{
502
+ foreignKeyName: "carrier_signup_dispatches_carrier_id_fkey";
503
+ columns: ["carrier_id"];
504
+ isOneToOne: false;
505
+ referencedRelation: "carriers";
506
+ referencedColumns: ["id"];
507
+ }];
508
+ };
415
509
  carriers: {
416
510
  Row: {
417
511
  address: string | null;
@@ -420,11 +514,18 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
420
514
  delivery_days: number | null;
421
515
  email: string | null;
422
516
  id: string;
517
+ is_default: boolean;
423
518
  name: string;
424
519
  notes: string | null;
425
520
  phone: string | null;
521
+ pickup_moments: import("../integrations/supabase/types").Json;
522
+ service_cities: string[];
523
+ service_countries: string[];
524
+ service_provinces: string[];
525
+ signup_days_before_delivery: number;
426
526
  signup_time_1: string | null;
427
527
  signup_time_2: string | null;
528
+ sort_order: number;
428
529
  updated_at: string;
429
530
  user_id: string;
430
531
  };
@@ -435,11 +536,18 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
435
536
  delivery_days?: number | null;
436
537
  email?: string | null;
437
538
  id?: string;
539
+ is_default?: boolean;
438
540
  name: string;
439
541
  notes?: string | null;
440
542
  phone?: string | null;
543
+ pickup_moments?: import("../integrations/supabase/types").Json;
544
+ service_cities?: string[];
545
+ service_countries?: string[];
546
+ service_provinces?: string[];
547
+ signup_days_before_delivery?: number;
441
548
  signup_time_1?: string | null;
442
549
  signup_time_2?: string | null;
550
+ sort_order?: number;
443
551
  updated_at?: string;
444
552
  user_id: string;
445
553
  };
@@ -450,16 +558,62 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
450
558
  delivery_days?: number | null;
451
559
  email?: string | null;
452
560
  id?: string;
561
+ is_default?: boolean;
453
562
  name?: string;
454
563
  notes?: string | null;
455
564
  phone?: string | null;
565
+ pickup_moments?: import("../integrations/supabase/types").Json;
566
+ service_cities?: string[];
567
+ service_countries?: string[];
568
+ service_provinces?: string[];
569
+ signup_days_before_delivery?: number;
456
570
  signup_time_1?: string | null;
457
571
  signup_time_2?: string | null;
572
+ sort_order?: number;
458
573
  updated_at?: string;
459
574
  user_id?: string;
460
575
  };
461
576
  Relationships: [];
462
577
  };
578
+ cart_pick_overrides: {
579
+ Row: {
580
+ cart_index: number;
581
+ created_at: string;
582
+ id: string;
583
+ moved_from_date: string | null;
584
+ notes: string | null;
585
+ order_id: string;
586
+ order_source: string;
587
+ pick_date: string;
588
+ status: string;
589
+ updated_at: string;
590
+ };
591
+ Insert: {
592
+ cart_index: number;
593
+ created_at?: string;
594
+ id?: string;
595
+ moved_from_date?: string | null;
596
+ notes?: string | null;
597
+ order_id: string;
598
+ order_source: string;
599
+ pick_date: string;
600
+ status?: string;
601
+ updated_at?: string;
602
+ };
603
+ Update: {
604
+ cart_index?: number;
605
+ created_at?: string;
606
+ id?: string;
607
+ moved_from_date?: string | null;
608
+ notes?: string | null;
609
+ order_id?: string;
610
+ order_source?: string;
611
+ pick_date?: string;
612
+ status?: string;
613
+ updated_at?: string;
614
+ };
615
+ Relationships: [];
616
+ };
463
617
  collections: {
464
618
  Row: {
465
619
  created_at: string;
@@ -571,50 +725,74 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
571
725
  customer_delivery_locations: {
572
726
  Row: {
573
727
  address_line: string | null;
728
+ carrier_assignment_source: string;
729
+ carrier_id: string | null;
574
730
  city: string | null;
575
731
  country: string | null;
576
732
  created_at: string;
577
733
  customer_id: string;
578
734
  floriday_location_id: string | null;
579
735
  gln: string | null;
736
+ house_number: string | null;
580
737
  id: string;
581
738
  is_primary: boolean;
582
739
  name: string | null;
583
740
  postal_code: string | null;
741
+ province: string | null;
584
742
  raw: import("../integrations/supabase/types").Json | null;
743
+ self_pickup: boolean;
744
+ street: string | null;
585
745
  updated_at: string;
586
746
  };
587
747
  Insert: {
588
748
  address_line?: string | null;
749
+ carrier_assignment_source?: string;
750
+ carrier_id?: string | null;
589
751
  city?: string | null;
590
752
  country?: string | null;
591
753
  created_at?: string;
592
754
  customer_id: string;
593
755
  floriday_location_id?: string | null;
594
756
  gln?: string | null;
757
+ house_number?: string | null;
595
758
  id?: string;
596
759
  is_primary?: boolean;
597
760
  name?: string | null;
598
761
  postal_code?: string | null;
762
+ province?: string | null;
599
763
  raw?: import("../integrations/supabase/types").Json | null;
764
+ self_pickup?: boolean;
765
+ street?: string | null;
600
766
  updated_at?: string;
601
767
  };
602
768
  Update: {
603
769
  address_line?: string | null;
770
+ carrier_assignment_source?: string;
771
+ carrier_id?: string | null;
604
772
  city?: string | null;
605
773
  country?: string | null;
606
774
  created_at?: string;
607
775
  customer_id?: string;
608
776
  floriday_location_id?: string | null;
609
777
  gln?: string | null;
778
+ house_number?: string | null;
610
779
  id?: string;
611
780
  is_primary?: boolean;
612
781
  name?: string | null;
613
782
  postal_code?: string | null;
783
+ province?: string | null;
614
784
  raw?: import("../integrations/supabase/types").Json | null;
785
+ self_pickup?: boolean;
786
+ street?: string | null;
615
787
  updated_at?: string;
616
788
  };
617
789
  Relationships: [{
790
+ foreignKeyName: "customer_delivery_locations_carrier_id_fkey";
791
+ columns: ["carrier_id"];
792
+ isOneToOne: false;
793
+ referencedRelation: "carriers";
794
+ referencedColumns: ["id"];
795
+ }, {
618
796
  foreignKeyName: "customer_delivery_locations_customer_id_fkey";
619
797
  columns: ["customer_id"];
620
798
  isOneToOne: false;
@@ -1419,18 +1597,21 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1419
1597
  };
1420
1598
  email_auth_purpose_settings: {
1421
1599
  Row: {
1600
+ default_cc: string[];
1422
1601
  purpose: string;
1423
1602
  reply_to: string | null;
1424
1603
  updated_at: string;
1425
1604
  updated_by: string | null;
1426
1605
  };
1427
1606
  Insert: {
1607
+ default_cc?: string[];
1428
1608
  purpose: string;
1429
1609
  reply_to?: string | null;
1430
1610
  updated_at?: string;
1431
1611
  updated_by?: string | null;
1432
1612
  };
1433
1613
  Update: {
1614
+ default_cc?: string[];
1434
1615
  purpose?: string;
1435
1616
  reply_to?: string | null;
1436
1617
  updated_at?: string;
@@ -2200,6 +2381,51 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2200
2381
  referencedColumns: ["id"];
2201
2382
  }];
2202
2383
  };
2384
+ exact_push_queue: {
2385
+ Row: {
2386
+ attempts: number;
2387
+ connection_id: string;
2388
+ created_at: string;
2389
+ external_id: string | null;
2390
+ id: string;
2391
+ idempotency_hash: string;
2392
+ last_error: string | null;
2393
+ payload: import("../integrations/supabase/types").Json;
2394
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_push_status"];
2395
+ updated_at: string;
2396
+ };
2397
+ Insert: {
2398
+ attempts?: number;
2399
+ connection_id: string;
2400
+ created_at?: string;
2401
+ external_id?: string | null;
2402
+ id?: string;
2403
+ idempotency_hash: string;
2404
+ last_error?: string | null;
2405
+ payload: import("../integrations/supabase/types").Json;
2406
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_push_status"];
2407
+ updated_at?: string;
2408
+ };
2409
+ Update: {
2410
+ attempts?: number;
2411
+ connection_id?: string;
2412
+ created_at?: string;
2413
+ external_id?: string | null;
2414
+ id?: string;
2415
+ idempotency_hash?: string;
2416
+ last_error?: string | null;
2417
+ payload?: import("../integrations/supabase/types").Json;
2418
+ status?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_push_status"];
2419
+ updated_at?: string;
2420
+ };
2421
+ Relationships: [{
2422
+ foreignKeyName: "exact_push_queue_connection_id_fkey";
2423
+ columns: ["connection_id"];
2424
+ isOneToOne: false;
2425
+ referencedRelation: "exact_connections";
2426
+ referencedColumns: ["id"];
2427
+ }];
2428
+ };
2203
2429
  exact_refresh_locks: {
2204
2430
  Row: {
2205
2431
  environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
@@ -2262,6 +2488,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2262
2488
  connection_id: string;
2263
2489
  last_error: string | null;
2264
2490
  last_modified_cursor: string | null;
2491
+ last_modified_cursor_customers: string | null;
2492
+ last_modified_cursor_invoices: string | null;
2265
2493
  last_synced_at: string | null;
2266
2494
  status: string;
2267
2495
  updated_at: string;
@@ -2270,6 +2498,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2270
2498
  connection_id: string;
2271
2499
  last_error?: string | null;
2272
2500
  last_modified_cursor?: string | null;
2501
+ last_modified_cursor_customers?: string | null;
2502
+ last_modified_cursor_invoices?: string | null;
2273
2503
  last_synced_at?: string | null;
2274
2504
  status?: string;
2275
2505
  updated_at?: string;
@@ -2278,6 +2508,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2278
2508
  connection_id?: string;
2279
2509
  last_error?: string | null;
2280
2510
  last_modified_cursor?: string | null;
2511
+ last_modified_cursor_customers?: string | null;
2512
+ last_modified_cursor_invoices?: string | null;
2281
2513
  last_synced_at?: string | null;
2282
2514
  status?: string;
2283
2515
  updated_at?: string;
@@ -2320,6 +2552,54 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2320
2552
  };
2321
2553
  Relationships: [];
2322
2554
  };
2555
+ external_invoice_providers: {
2556
+ Row: {
2557
+ color: string | null;
2558
+ created_at: string;
2559
+ hmac_secret_name: string | null;
2560
+ icon: string | null;
2561
+ is_enabled: boolean;
2562
+ label: string;
2563
+ last_synced_at: string | null;
2564
+ provider: string;
2565
+ push_endpoint: string | null;
2566
+ sort_order: number;
2567
+ status_endpoint: string | null;
2568
+ sync_endpoint: string | null;
2569
+ updated_at: string;
2570
+ };
2571
+ Insert: {
2572
+ color?: string | null;
2573
+ created_at?: string;
2574
+ hmac_secret_name?: string | null;
2575
+ icon?: string | null;
2576
+ is_enabled?: boolean;
2577
+ label: string;
2578
+ last_synced_at?: string | null;
2579
+ provider: string;
2580
+ push_endpoint?: string | null;
2581
+ sort_order?: number;
2582
+ status_endpoint?: string | null;
2583
+ sync_endpoint?: string | null;
2584
+ updated_at?: string;
2585
+ };
2586
+ Update: {
2587
+ color?: string | null;
2588
+ created_at?: string;
2589
+ hmac_secret_name?: string | null;
2590
+ icon?: string | null;
2591
+ is_enabled?: boolean;
2592
+ label?: string;
2593
+ last_synced_at?: string | null;
2594
+ provider?: string;
2595
+ push_endpoint?: string | null;
2596
+ sort_order?: number;
2597
+ status_endpoint?: string | null;
2598
+ sync_endpoint?: string | null;
2599
+ updated_at?: string;
2600
+ };
2601
+ Relationships: [];
2602
+ };
2323
2603
  extra_categories: {
2324
2604
  Row: {
2325
2605
  created_at: string;
@@ -2344,12 +2624,40 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2344
2624
  };
2345
2625
  Relationships: [];
2346
2626
  };
2627
+ extra_pricing_types: {
2628
+ Row: {
2629
+ code: string;
2630
+ created_at: string;
2631
+ id: string;
2632
+ label: string;
2633
+ sort_order: number;
2634
+ updated_at: string;
2635
+ };
2636
+ Insert: {
2637
+ code: string;
2638
+ created_at?: string;
2639
+ id?: string;
2640
+ label: string;
2641
+ sort_order?: number;
2642
+ updated_at?: string;
2643
+ };
2644
+ Update: {
2645
+ code?: string;
2646
+ created_at?: string;
2647
+ id?: string;
2648
+ label?: string;
2649
+ sort_order?: number;
2650
+ updated_at?: string;
2651
+ };
2652
+ Relationships: [];
2653
+ };
2347
2654
  extras: {
2348
2655
  Row: {
2349
2656
  category: string;
2350
2657
  created_at: string;
2351
2658
  exact_article_id: string | null;
2352
2659
  id: string;
2660
+ image_url: string | null;
2353
2661
  is_active: boolean;
2354
2662
  name: string;
2355
2663
  price: number;
@@ -2360,6 +2668,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2360
2668
  created_at?: string;
2361
2669
  exact_article_id?: string | null;
2362
2670
  id?: string;
2671
+ image_url?: string | null;
2363
2672
  is_active?: boolean;
2364
2673
  name: string;
2365
2674
  price?: number;
@@ -2370,6 +2679,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2370
2679
  created_at?: string;
2371
2680
  exact_article_id?: string | null;
2372
2681
  id?: string;
2682
+ image_url?: string | null;
2373
2683
  is_active?: boolean;
2374
2684
  name?: string;
2375
2685
  price?: number;
@@ -2467,230 +2777,1298 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2467
2777
  };
2468
2778
  Relationships: [];
2469
2779
  };
2470
- floriday_carriers_cache: {
2780
+ floriday_additional_services_cache: {
2471
2781
  Row: {
2472
- connection_id: string | null;
2473
- created_at: string;
2782
+ connection_id: string;
2474
2783
  data: import("../integrations/supabase/types").Json;
2475
2784
  fetched_at: string;
2476
- gln_code: string | null;
2477
- id: string;
2478
- name: string | null;
2479
- organization_id: string;
2785
+ floriday_id: string;
2786
+ is_deleted: boolean;
2787
+ sequence_number: number;
2480
2788
  updated_at: string;
2481
2789
  };
2482
2790
  Insert: {
2483
- connection_id?: string | null;
2484
- created_at?: string;
2791
+ connection_id: string;
2485
2792
  data: import("../integrations/supabase/types").Json;
2486
2793
  fetched_at?: string;
2487
- gln_code?: string | null;
2488
- id?: string;
2489
- name?: string | null;
2490
- organization_id: string;
2794
+ floriday_id: string;
2795
+ is_deleted?: boolean;
2796
+ sequence_number?: number;
2491
2797
  updated_at?: string;
2492
2798
  };
2493
2799
  Update: {
2494
- connection_id?: string | null;
2495
- created_at?: string;
2800
+ connection_id?: string;
2496
2801
  data?: import("../integrations/supabase/types").Json;
2497
2802
  fetched_at?: string;
2498
- gln_code?: string | null;
2499
- id?: string;
2500
- name?: string | null;
2501
- organization_id?: string;
2803
+ floriday_id?: string;
2804
+ is_deleted?: boolean;
2805
+ sequence_number?: number;
2502
2806
  updated_at?: string;
2503
2807
  };
2504
2808
  Relationships: [{
2505
- foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
2809
+ foreignKeyName: "floriday_additional_services_cache_connection_id_fkey";
2506
2810
  columns: ["connection_id"];
2507
2811
  isOneToOne: false;
2508
2812
  referencedRelation: "floriday_connections";
2509
2813
  referencedColumns: ["id"];
2510
2814
  }];
2511
2815
  };
2512
- floriday_connections: {
2816
+ floriday_agreement_calloffs_cache: {
2513
2817
  Row: {
2514
- access_token: string | null;
2515
- api_key: string;
2516
- client_id: string;
2517
- client_secret: string;
2518
- created_at: string;
2519
- customers_endpoint: string | null;
2520
- environment: string;
2521
- gln_code: string | null;
2818
+ agreement_id: string | null;
2819
+ connection_id: string;
2820
+ data: import("../integrations/supabase/types").Json;
2821
+ delivery_date: string | null;
2822
+ fetched_at: string;
2823
+ floriday_id: string;
2522
2824
  id: string;
2523
- is_active: boolean;
2524
- label: string;
2525
- organization_name: string | null;
2526
- preferred_warehouse_id: string | null;
2527
- preferred_warehouse_name: string | null;
2528
- token_expires_at: string | null;
2825
+ is_deleted: boolean;
2826
+ sequence_number: number;
2827
+ status: string | null;
2529
2828
  updated_at: string;
2530
2829
  };
2531
2830
  Insert: {
2532
- access_token?: string | null;
2533
- api_key: string;
2534
- client_id: string;
2535
- client_secret: string;
2536
- created_at?: string;
2537
- customers_endpoint?: string | null;
2538
- environment: string;
2539
- gln_code?: string | null;
2831
+ agreement_id?: string | null;
2832
+ connection_id: string;
2833
+ data?: import("../integrations/supabase/types").Json;
2834
+ delivery_date?: string | null;
2835
+ fetched_at?: string;
2836
+ floriday_id: string;
2540
2837
  id?: string;
2541
- is_active?: boolean;
2542
- label?: string;
2543
- organization_name?: string | null;
2544
- preferred_warehouse_id?: string | null;
2545
- preferred_warehouse_name?: string | null;
2546
- token_expires_at?: string | null;
2838
+ is_deleted?: boolean;
2839
+ sequence_number?: number;
2840
+ status?: string | null;
2547
2841
  updated_at?: string;
2548
2842
  };
2549
2843
  Update: {
2550
- access_token?: string | null;
2551
- api_key?: string;
2552
- client_id?: string;
2553
- client_secret?: string;
2844
+ agreement_id?: string | null;
2845
+ connection_id?: string;
2846
+ data?: import("../integrations/supabase/types").Json;
2847
+ delivery_date?: string | null;
2848
+ fetched_at?: string;
2849
+ floriday_id?: string;
2850
+ id?: string;
2851
+ is_deleted?: boolean;
2852
+ sequence_number?: number;
2853
+ status?: string | null;
2854
+ updated_at?: string;
2855
+ };
2856
+ Relationships: [{
2857
+ foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
2858
+ columns: ["connection_id"];
2859
+ isOneToOne: false;
2860
+ referencedRelation: "floriday_connections";
2861
+ referencedColumns: ["id"];
2862
+ }];
2863
+ };
2864
+ floriday_agreements_cache: {
2865
+ Row: {
2866
+ buyer_organization_id: string | null;
2867
+ connection_id: string;
2868
+ data: import("../integrations/supabase/types").Json;
2869
+ fetched_at: string;
2870
+ floriday_id: string;
2871
+ id: string;
2872
+ is_deleted: boolean;
2873
+ sequence_number: number;
2874
+ status: string | null;
2875
+ updated_at: string;
2876
+ valid_from: string | null;
2877
+ valid_until: string | null;
2878
+ };
2879
+ Insert: {
2880
+ buyer_organization_id?: string | null;
2881
+ connection_id: string;
2882
+ data?: import("../integrations/supabase/types").Json;
2883
+ fetched_at?: string;
2884
+ floriday_id: string;
2885
+ id?: string;
2886
+ is_deleted?: boolean;
2887
+ sequence_number?: number;
2888
+ status?: string | null;
2889
+ updated_at?: string;
2890
+ valid_from?: string | null;
2891
+ valid_until?: string | null;
2892
+ };
2893
+ Update: {
2894
+ buyer_organization_id?: string | null;
2895
+ connection_id?: string;
2896
+ data?: import("../integrations/supabase/types").Json;
2897
+ fetched_at?: string;
2898
+ floriday_id?: string;
2899
+ id?: string;
2900
+ is_deleted?: boolean;
2901
+ sequence_number?: number;
2902
+ status?: string | null;
2903
+ updated_at?: string;
2904
+ valid_from?: string | null;
2905
+ valid_until?: string | null;
2906
+ };
2907
+ Relationships: [{
2908
+ foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
2909
+ columns: ["connection_id"];
2910
+ isOneToOne: false;
2911
+ referencedRelation: "floriday_connections";
2912
+ referencedColumns: ["id"];
2913
+ }];
2914
+ };
2915
+ floriday_auction_letters_cache: {
2916
+ Row: {
2917
+ auction_letter_code: string;
2918
+ clock_supply_id: string;
2919
+ connection_id: string;
2920
+ content_type: string;
2921
+ fetched_at: string;
2922
+ id: string;
2923
+ storage_path: string;
2924
+ };
2925
+ Insert: {
2926
+ auction_letter_code: string;
2927
+ clock_supply_id: string;
2928
+ connection_id: string;
2929
+ content_type?: string;
2930
+ fetched_at?: string;
2931
+ id?: string;
2932
+ storage_path: string;
2933
+ };
2934
+ Update: {
2935
+ auction_letter_code?: string;
2936
+ clock_supply_id?: string;
2937
+ connection_id?: string;
2938
+ content_type?: string;
2939
+ fetched_at?: string;
2940
+ id?: string;
2941
+ storage_path?: string;
2942
+ };
2943
+ Relationships: [{
2944
+ foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
2945
+ columns: ["connection_id"];
2946
+ isOneToOne: false;
2947
+ referencedRelation: "floriday_connections";
2948
+ referencedColumns: ["id"];
2949
+ }];
2950
+ };
2951
+ floriday_base_items_cache: {
2952
+ Row: {
2953
+ connection_id: string;
2954
+ data: import("../integrations/supabase/types").Json;
2955
+ fetched_at: string;
2956
+ floriday_id: string;
2957
+ is_deleted: boolean;
2958
+ sequence_number: number;
2959
+ updated_at: string;
2960
+ };
2961
+ Insert: {
2962
+ connection_id: string;
2963
+ data: import("../integrations/supabase/types").Json;
2964
+ fetched_at?: string;
2965
+ floriday_id: string;
2966
+ is_deleted?: boolean;
2967
+ sequence_number?: number;
2968
+ updated_at?: string;
2969
+ };
2970
+ Update: {
2971
+ connection_id?: string;
2972
+ data?: import("../integrations/supabase/types").Json;
2973
+ fetched_at?: string;
2974
+ floriday_id?: string;
2975
+ is_deleted?: boolean;
2976
+ sequence_number?: number;
2977
+ updated_at?: string;
2978
+ };
2979
+ Relationships: [{
2980
+ foreignKeyName: "floriday_base_items_cache_connection_id_fkey";
2981
+ columns: ["connection_id"];
2982
+ isOneToOne: false;
2983
+ referencedRelation: "floriday_connections";
2984
+ referencedColumns: ["id"];
2985
+ }];
2986
+ };
2987
+ floriday_blanket_orders_cache: {
2988
+ Row: {
2989
+ connection_id: string;
2990
+ contract_id: string | null;
2991
+ created_at: string;
2992
+ data: import("../integrations/supabase/types").Json;
2993
+ fetched_at: string;
2994
+ floriday_id: string;
2995
+ id: string;
2996
+ is_deleted: boolean;
2997
+ sequence_number: number;
2998
+ updated_at: string;
2999
+ };
3000
+ Insert: {
3001
+ connection_id: string;
3002
+ contract_id?: string | null;
2554
3003
  created_at?: string;
2555
- customers_endpoint?: string | null;
2556
- environment?: string;
3004
+ data: import("../integrations/supabase/types").Json;
3005
+ fetched_at?: string;
3006
+ floriday_id: string;
3007
+ id?: string;
3008
+ is_deleted?: boolean;
3009
+ sequence_number?: number;
3010
+ updated_at?: string;
3011
+ };
3012
+ Update: {
3013
+ connection_id?: string;
3014
+ contract_id?: string | null;
3015
+ created_at?: string;
3016
+ data?: import("../integrations/supabase/types").Json;
3017
+ fetched_at?: string;
3018
+ floriday_id?: string;
3019
+ id?: string;
3020
+ is_deleted?: boolean;
3021
+ sequence_number?: number;
3022
+ updated_at?: string;
3023
+ };
3024
+ Relationships: [{
3025
+ foreignKeyName: "floriday_blanket_orders_cache_connection_id_fkey";
3026
+ columns: ["connection_id"];
3027
+ isOneToOne: false;
3028
+ referencedRelation: "floriday_connections";
3029
+ referencedColumns: ["id"];
3030
+ }];
3031
+ };
3032
+ floriday_carriers_cache: {
3033
+ Row: {
3034
+ connection_id: string | null;
3035
+ created_at: string;
3036
+ data: import("../integrations/supabase/types").Json;
3037
+ fetched_at: string;
3038
+ gln_code: string | null;
3039
+ id: string;
3040
+ name: string | null;
3041
+ organization_id: string;
3042
+ updated_at: string;
3043
+ };
3044
+ Insert: {
3045
+ connection_id?: string | null;
3046
+ created_at?: string;
3047
+ data: import("../integrations/supabase/types").Json;
3048
+ fetched_at?: string;
2557
3049
  gln_code?: string | null;
2558
3050
  id?: string;
2559
- is_active?: boolean;
2560
- label?: string;
2561
- organization_name?: string | null;
2562
- preferred_warehouse_id?: string | null;
2563
- preferred_warehouse_name?: string | null;
2564
- token_expires_at?: string | null;
3051
+ name?: string | null;
3052
+ organization_id: string;
2565
3053
  updated_at?: string;
2566
3054
  };
2567
- Relationships: [];
3055
+ Update: {
3056
+ connection_id?: string | null;
3057
+ created_at?: string;
3058
+ data?: import("../integrations/supabase/types").Json;
3059
+ fetched_at?: string;
3060
+ gln_code?: string | null;
3061
+ id?: string;
3062
+ name?: string | null;
3063
+ organization_id?: string;
3064
+ updated_at?: string;
3065
+ };
3066
+ Relationships: [{
3067
+ foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
3068
+ columns: ["connection_id"];
3069
+ isOneToOne: false;
3070
+ referencedRelation: "floriday_connections";
3071
+ referencedColumns: ["id"];
3072
+ }];
2568
3073
  };
2569
- floriday_connections_cache: {
3074
+ floriday_clock_presales_cache: {
2570
3075
  Row: {
2571
3076
  buyer_organization_id: string | null;
2572
- buyer_organization_name: string | null;
3077
+ clock_supply_id: string | null;
2573
3078
  connection_id: string;
2574
3079
  data: import("../integrations/supabase/types").Json;
2575
- floriday_connection_id: string;
3080
+ fetched_at: string;
3081
+ floriday_id: string;
3082
+ id: string;
2576
3083
  is_deleted: boolean;
2577
3084
  sequence_number: number;
2578
- status: string | null;
2579
- synced_at: string;
3085
+ updated_at: string;
2580
3086
  };
2581
3087
  Insert: {
2582
3088
  buyer_organization_id?: string | null;
2583
- buyer_organization_name?: string | null;
3089
+ clock_supply_id?: string | null;
3090
+ connection_id: string;
3091
+ data?: import("../integrations/supabase/types").Json;
3092
+ fetched_at?: string;
3093
+ floriday_id: string;
3094
+ id?: string;
3095
+ is_deleted?: boolean;
3096
+ sequence_number?: number;
3097
+ updated_at?: string;
3098
+ };
3099
+ Update: {
3100
+ buyer_organization_id?: string | null;
3101
+ clock_supply_id?: string | null;
3102
+ connection_id?: string;
3103
+ data?: import("../integrations/supabase/types").Json;
3104
+ fetched_at?: string;
3105
+ floriday_id?: string;
3106
+ id?: string;
3107
+ is_deleted?: boolean;
3108
+ sequence_number?: number;
3109
+ updated_at?: string;
3110
+ };
3111
+ Relationships: [{
3112
+ foreignKeyName: "floriday_clock_presales_cache_connection_id_fkey";
3113
+ columns: ["connection_id"];
3114
+ isOneToOne: false;
3115
+ referencedRelation: "floriday_connections";
3116
+ referencedColumns: ["id"];
3117
+ }];
3118
+ };
3119
+ floriday_clock_supplies_cache: {
3120
+ Row: {
3121
+ auction_date: string | null;
2584
3122
  connection_id: string;
2585
3123
  data: import("../integrations/supabase/types").Json;
2586
- floriday_connection_id: string;
3124
+ fetched_at: string;
3125
+ floriday_id: string;
3126
+ id: string;
3127
+ is_deleted: boolean;
3128
+ sequence_number: number;
3129
+ status: string | null;
3130
+ trade_item_id: string | null;
3131
+ updated_at: string;
3132
+ };
3133
+ Insert: {
3134
+ auction_date?: string | null;
3135
+ connection_id: string;
3136
+ data?: import("../integrations/supabase/types").Json;
3137
+ fetched_at?: string;
3138
+ floriday_id: string;
3139
+ id?: string;
3140
+ is_deleted?: boolean;
3141
+ sequence_number?: number;
3142
+ status?: string | null;
3143
+ trade_item_id?: string | null;
3144
+ updated_at?: string;
3145
+ };
3146
+ Update: {
3147
+ auction_date?: string | null;
3148
+ connection_id?: string;
3149
+ data?: import("../integrations/supabase/types").Json;
3150
+ fetched_at?: string;
3151
+ floriday_id?: string;
3152
+ id?: string;
3153
+ is_deleted?: boolean;
3154
+ sequence_number?: number;
3155
+ status?: string | null;
3156
+ trade_item_id?: string | null;
3157
+ updated_at?: string;
3158
+ };
3159
+ Relationships: [{
3160
+ foreignKeyName: "floriday_clock_supplies_cache_connection_id_fkey";
3161
+ columns: ["connection_id"];
3162
+ isOneToOne: false;
3163
+ referencedRelation: "floriday_connections";
3164
+ referencedColumns: ["id"];
3165
+ }];
3166
+ };
3167
+ floriday_code_lists_cache: {
3168
+ Row: {
3169
+ code: string;
3170
+ environment: string;
3171
+ label: string | null;
3172
+ list_name: string;
3173
+ payload: import("../integrations/supabase/types").Json | null;
3174
+ updated_at: string;
3175
+ };
3176
+ Insert: {
3177
+ code: string;
3178
+ environment: string;
3179
+ label?: string | null;
3180
+ list_name: string;
3181
+ payload?: import("../integrations/supabase/types").Json | null;
3182
+ updated_at?: string;
3183
+ };
3184
+ Update: {
3185
+ code?: string;
3186
+ environment?: string;
3187
+ label?: string | null;
3188
+ list_name?: string;
3189
+ payload?: import("../integrations/supabase/types").Json | null;
3190
+ updated_at?: string;
3191
+ };
3192
+ Relationships: [];
3193
+ };
3194
+ floriday_collections_cache: {
3195
+ Row: {
3196
+ connection_id: string;
3197
+ data: import("../integrations/supabase/types").Json;
3198
+ fetched_at: string;
3199
+ floriday_id: string;
3200
+ is_deleted: boolean;
3201
+ sequence_number: number;
3202
+ updated_at: string;
3203
+ };
3204
+ Insert: {
3205
+ connection_id: string;
3206
+ data: import("../integrations/supabase/types").Json;
3207
+ fetched_at?: string;
3208
+ floriday_id: string;
3209
+ is_deleted?: boolean;
3210
+ sequence_number?: number;
3211
+ updated_at?: string;
3212
+ };
3213
+ Update: {
3214
+ connection_id?: string;
3215
+ data?: import("../integrations/supabase/types").Json;
3216
+ fetched_at?: string;
3217
+ floriday_id?: string;
3218
+ is_deleted?: boolean;
3219
+ sequence_number?: number;
3220
+ updated_at?: string;
3221
+ };
3222
+ Relationships: [{
3223
+ foreignKeyName: "floriday_collections_cache_connection_id_fkey";
3224
+ columns: ["connection_id"];
3225
+ isOneToOne: false;
3226
+ referencedRelation: "floriday_connections";
3227
+ referencedColumns: ["id"];
3228
+ }];
3229
+ };
3230
+ floriday_commercial_service_types_cache: {
3231
+ Row: {
3232
+ connection_id: string;
3233
+ data: import("../integrations/supabase/types").Json;
3234
+ fetched_at: string;
3235
+ floriday_id: string;
3236
+ is_deleted: boolean;
3237
+ sequence_number: number;
3238
+ updated_at: string;
3239
+ };
3240
+ Insert: {
3241
+ connection_id: string;
3242
+ data: import("../integrations/supabase/types").Json;
3243
+ fetched_at?: string;
3244
+ floriday_id: string;
3245
+ is_deleted?: boolean;
3246
+ sequence_number?: number;
3247
+ updated_at?: string;
3248
+ };
3249
+ Update: {
3250
+ connection_id?: string;
3251
+ data?: import("../integrations/supabase/types").Json;
3252
+ fetched_at?: string;
3253
+ floriday_id?: string;
3254
+ is_deleted?: boolean;
3255
+ sequence_number?: number;
3256
+ updated_at?: string;
3257
+ };
3258
+ Relationships: [{
3259
+ foreignKeyName: "floriday_commercial_service_types_cache_connection_id_fkey";
3260
+ columns: ["connection_id"];
3261
+ isOneToOne: false;
3262
+ referencedRelation: "floriday_connections";
3263
+ referencedColumns: ["id"];
3264
+ }];
3265
+ };
3266
+ floriday_connections: {
3267
+ Row: {
3268
+ access_token: string | null;
3269
+ api_key: string;
3270
+ client_id: string;
3271
+ client_secret: string;
3272
+ created_at: string;
3273
+ customers_endpoint: string | null;
3274
+ environment: string;
3275
+ gln_code: string | null;
3276
+ id: string;
3277
+ is_active: boolean;
3278
+ label: string;
3279
+ organization_name: string | null;
3280
+ preferred_warehouse_id: string | null;
3281
+ preferred_warehouse_name: string | null;
3282
+ token_expires_at: string | null;
3283
+ updated_at: string;
3284
+ };
3285
+ Insert: {
3286
+ access_token?: string | null;
3287
+ api_key: string;
3288
+ client_id: string;
3289
+ client_secret: string;
3290
+ created_at?: string;
3291
+ customers_endpoint?: string | null;
3292
+ environment: string;
3293
+ gln_code?: string | null;
3294
+ id?: string;
3295
+ is_active?: boolean;
3296
+ label?: string;
3297
+ organization_name?: string | null;
3298
+ preferred_warehouse_id?: string | null;
3299
+ preferred_warehouse_name?: string | null;
3300
+ token_expires_at?: string | null;
3301
+ updated_at?: string;
3302
+ };
3303
+ Update: {
3304
+ access_token?: string | null;
3305
+ api_key?: string;
3306
+ client_id?: string;
3307
+ client_secret?: string;
3308
+ created_at?: string;
3309
+ customers_endpoint?: string | null;
3310
+ environment?: string;
3311
+ gln_code?: string | null;
3312
+ id?: string;
3313
+ is_active?: boolean;
3314
+ label?: string;
3315
+ organization_name?: string | null;
3316
+ preferred_warehouse_id?: string | null;
3317
+ preferred_warehouse_name?: string | null;
3318
+ token_expires_at?: string | null;
3319
+ updated_at?: string;
3320
+ };
3321
+ Relationships: [];
3322
+ };
3323
+ floriday_connections_cache: {
3324
+ Row: {
3325
+ buyer_organization_id: string | null;
3326
+ buyer_organization_name: string | null;
3327
+ connection_id: string;
3328
+ data: import("../integrations/supabase/types").Json;
3329
+ floriday_connection_id: string;
3330
+ is_deleted: boolean;
3331
+ sequence_number: number;
3332
+ status: string | null;
3333
+ synced_at: string;
3334
+ };
3335
+ Insert: {
3336
+ buyer_organization_id?: string | null;
3337
+ buyer_organization_name?: string | null;
3338
+ connection_id: string;
3339
+ data: import("../integrations/supabase/types").Json;
3340
+ floriday_connection_id: string;
3341
+ is_deleted?: boolean;
3342
+ sequence_number: number;
3343
+ status?: string | null;
3344
+ synced_at?: string;
3345
+ };
3346
+ Update: {
3347
+ buyer_organization_id?: string | null;
3348
+ buyer_organization_name?: string | null;
3349
+ connection_id?: string;
3350
+ data?: import("../integrations/supabase/types").Json;
3351
+ floriday_connection_id?: string;
3352
+ is_deleted?: boolean;
3353
+ sequence_number?: number;
3354
+ status?: string | null;
3355
+ synced_at?: string;
3356
+ };
3357
+ Relationships: [{
3358
+ foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3359
+ columns: ["connection_id"];
3360
+ isOneToOne: false;
3361
+ referencedRelation: "floriday_connections";
3362
+ referencedColumns: ["id"];
3363
+ }];
3364
+ };
3365
+ floriday_contract_trade_item_groups_cache: {
3366
+ Row: {
3367
+ connection_id: string;
3368
+ data: import("../integrations/supabase/types").Json;
3369
+ fetched_at: string;
3370
+ floriday_id: string;
3371
+ is_deleted: boolean;
3372
+ sequence_number: number;
3373
+ updated_at: string;
3374
+ };
3375
+ Insert: {
3376
+ connection_id: string;
3377
+ data: import("../integrations/supabase/types").Json;
3378
+ fetched_at?: string;
3379
+ floriday_id: string;
3380
+ is_deleted?: boolean;
3381
+ sequence_number?: number;
3382
+ updated_at?: string;
3383
+ };
3384
+ Update: {
3385
+ connection_id?: string;
3386
+ data?: import("../integrations/supabase/types").Json;
3387
+ fetched_at?: string;
3388
+ floriday_id?: string;
3389
+ is_deleted?: boolean;
3390
+ sequence_number?: number;
3391
+ updated_at?: string;
3392
+ };
3393
+ Relationships: [{
3394
+ foreignKeyName: "floriday_contract_trade_item_groups_cache_connection_id_fkey";
3395
+ columns: ["connection_id"];
3396
+ isOneToOne: false;
3397
+ referencedRelation: "floriday_connections";
3398
+ referencedColumns: ["id"];
3399
+ }];
3400
+ };
3401
+ floriday_contracts_cache: {
3402
+ Row: {
3403
+ connection_id: string;
3404
+ created_at: string;
3405
+ data: import("../integrations/supabase/types").Json;
3406
+ fetched_at: string;
3407
+ floriday_id: string;
3408
+ id: string;
3409
+ is_deleted: boolean;
3410
+ sequence_number: number;
3411
+ updated_at: string;
3412
+ };
3413
+ Insert: {
3414
+ connection_id: string;
3415
+ created_at?: string;
3416
+ data: import("../integrations/supabase/types").Json;
3417
+ fetched_at?: string;
3418
+ floriday_id: string;
3419
+ id?: string;
3420
+ is_deleted?: boolean;
3421
+ sequence_number?: number;
3422
+ updated_at?: string;
3423
+ };
3424
+ Update: {
3425
+ connection_id?: string;
3426
+ created_at?: string;
3427
+ data?: import("../integrations/supabase/types").Json;
3428
+ fetched_at?: string;
3429
+ floriday_id?: string;
3430
+ id?: string;
3431
+ is_deleted?: boolean;
3432
+ sequence_number?: number;
3433
+ updated_at?: string;
3434
+ };
3435
+ Relationships: [{
3436
+ foreignKeyName: "floriday_contracts_cache_connection_id_fkey";
3437
+ columns: ["connection_id"];
3438
+ isOneToOne: false;
3439
+ referencedRelation: "floriday_connections";
3440
+ referencedColumns: ["id"];
3441
+ }];
3442
+ };
3443
+ floriday_customer_sticker_pdfs_cache: {
3444
+ Row: {
3445
+ byte_size: number | null;
3446
+ connection_id: string;
3447
+ content_type: string;
3448
+ created_at: string;
3449
+ fetched_at: string;
3450
+ id: string;
3451
+ sticker_id: string;
3452
+ storage_path: string;
3453
+ };
3454
+ Insert: {
3455
+ byte_size?: number | null;
3456
+ connection_id: string;
3457
+ content_type?: string;
3458
+ created_at?: string;
3459
+ fetched_at?: string;
3460
+ id?: string;
3461
+ sticker_id: string;
3462
+ storage_path: string;
3463
+ };
3464
+ Update: {
3465
+ byte_size?: number | null;
3466
+ connection_id?: string;
3467
+ content_type?: string;
3468
+ created_at?: string;
3469
+ fetched_at?: string;
3470
+ id?: string;
3471
+ sticker_id?: string;
3472
+ storage_path?: string;
3473
+ };
3474
+ Relationships: [{
3475
+ foreignKeyName: "floriday_customer_sticker_pdfs_cache_connection_id_fkey";
3476
+ columns: ["connection_id"];
3477
+ isOneToOne: false;
3478
+ referencedRelation: "floriday_connections";
3479
+ referencedColumns: ["id"];
3480
+ }];
3481
+ };
3482
+ floriday_customer_stickers_cache: {
3483
+ Row: {
3484
+ connection_id: string;
3485
+ created_at: string;
3486
+ data: import("../integrations/supabase/types").Json;
3487
+ fetched_at: string;
3488
+ floriday_id: string;
3489
+ id: string;
3490
+ is_deleted: boolean;
3491
+ quantity: number | null;
3492
+ sales_order_id: string | null;
3493
+ sequence_number: number;
3494
+ status: string | null;
3495
+ trade_item_id: string | null;
3496
+ updated_at: string;
3497
+ };
3498
+ Insert: {
3499
+ connection_id: string;
3500
+ created_at?: string;
3501
+ data?: import("../integrations/supabase/types").Json;
3502
+ fetched_at?: string;
3503
+ floriday_id: string;
3504
+ id?: string;
3505
+ is_deleted?: boolean;
3506
+ quantity?: number | null;
3507
+ sales_order_id?: string | null;
3508
+ sequence_number?: number;
3509
+ status?: string | null;
3510
+ trade_item_id?: string | null;
3511
+ updated_at?: string;
3512
+ };
3513
+ Update: {
3514
+ connection_id?: string;
3515
+ created_at?: string;
3516
+ data?: import("../integrations/supabase/types").Json;
3517
+ fetched_at?: string;
3518
+ floriday_id?: string;
3519
+ id?: string;
3520
+ is_deleted?: boolean;
3521
+ quantity?: number | null;
3522
+ sales_order_id?: string | null;
3523
+ sequence_number?: number;
3524
+ status?: string | null;
3525
+ trade_item_id?: string | null;
3526
+ updated_at?: string;
3527
+ };
3528
+ Relationships: [{
3529
+ foreignKeyName: "floriday_customer_stickers_cache_connection_id_fkey";
3530
+ columns: ["connection_id"];
3531
+ isOneToOne: false;
3532
+ referencedRelation: "floriday_connections";
3533
+ referencedColumns: ["id"];
3534
+ }];
3535
+ };
3536
+ floriday_customers_cache: {
3537
+ Row: {
3538
+ connection_id: string | null;
3539
+ data: import("../integrations/supabase/types").Json;
3540
+ fetched_at: string;
3541
+ gln_code: string | null;
3542
+ is_deleted: boolean;
3543
+ name: string | null;
3544
+ organization_id: string;
3545
+ sequence_number: number | null;
3546
+ };
3547
+ Insert: {
3548
+ connection_id?: string | null;
3549
+ data?: import("../integrations/supabase/types").Json;
3550
+ fetched_at?: string;
3551
+ gln_code?: string | null;
3552
+ is_deleted?: boolean;
3553
+ name?: string | null;
3554
+ organization_id: string;
3555
+ sequence_number?: number | null;
3556
+ };
3557
+ Update: {
3558
+ connection_id?: string | null;
3559
+ data?: import("../integrations/supabase/types").Json;
3560
+ fetched_at?: string;
3561
+ gln_code?: string | null;
3562
+ is_deleted?: boolean;
3563
+ name?: string | null;
3564
+ organization_id?: string;
3565
+ sequence_number?: number | null;
3566
+ };
3567
+ Relationships: [{
3568
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3569
+ columns: ["connection_id"];
3570
+ isOneToOne: false;
3571
+ referencedRelation: "floriday_connections";
3572
+ referencedColumns: ["id"];
3573
+ }];
3574
+ };
3575
+ floriday_delivery_condition_sets_cache: {
3576
+ Row: {
3577
+ connection_id: string;
3578
+ data: import("../integrations/supabase/types").Json;
3579
+ fetched_at: string;
3580
+ floriday_id: string;
3581
+ is_deleted: boolean;
3582
+ sequence_number: number;
3583
+ updated_at: string;
3584
+ };
3585
+ Insert: {
3586
+ connection_id: string;
3587
+ data: import("../integrations/supabase/types").Json;
3588
+ fetched_at?: string;
3589
+ floriday_id: string;
3590
+ is_deleted?: boolean;
3591
+ sequence_number?: number;
3592
+ updated_at?: string;
3593
+ };
3594
+ Update: {
3595
+ connection_id?: string;
3596
+ data?: import("../integrations/supabase/types").Json;
3597
+ fetched_at?: string;
3598
+ floriday_id?: string;
3599
+ is_deleted?: boolean;
3600
+ sequence_number?: number;
3601
+ updated_at?: string;
3602
+ };
3603
+ Relationships: [{
3604
+ foreignKeyName: "floriday_delivery_condition_sets_cache_connection_id_fkey";
3605
+ columns: ["connection_id"];
3606
+ isOneToOne: false;
3607
+ referencedRelation: "floriday_connections";
3608
+ referencedColumns: ["id"];
3609
+ }];
3610
+ };
3611
+ floriday_delivery_locations_cache: {
3612
+ Row: {
3613
+ connection_id: string;
3614
+ data: import("../integrations/supabase/types").Json;
3615
+ fetched_at: string;
3616
+ floriday_id: string;
3617
+ gln_code: string | null;
3618
+ id: string;
3619
+ is_deleted: boolean;
3620
+ name: string | null;
3621
+ organization_id: string | null;
3622
+ updated_at: string;
3623
+ };
3624
+ Insert: {
3625
+ connection_id: string;
3626
+ data?: import("../integrations/supabase/types").Json;
3627
+ fetched_at?: string;
3628
+ floriday_id: string;
3629
+ gln_code?: string | null;
3630
+ id?: string;
3631
+ is_deleted?: boolean;
3632
+ name?: string | null;
3633
+ organization_id?: string | null;
3634
+ updated_at?: string;
3635
+ };
3636
+ Update: {
3637
+ connection_id?: string;
3638
+ data?: import("../integrations/supabase/types").Json;
3639
+ fetched_at?: string;
3640
+ floriday_id?: string;
3641
+ gln_code?: string | null;
3642
+ id?: string;
3643
+ is_deleted?: boolean;
3644
+ name?: string | null;
3645
+ organization_id?: string | null;
3646
+ updated_at?: string;
3647
+ };
3648
+ Relationships: [{
3649
+ foreignKeyName: "floriday_delivery_locations_cache_connection_id_fkey";
3650
+ columns: ["connection_id"];
3651
+ isOneToOne: false;
3652
+ referencedRelation: "floriday_connections";
3653
+ referencedColumns: ["id"];
3654
+ }];
3655
+ };
3656
+ floriday_delivery_orders_cache: {
3657
+ Row: {
3658
+ auction_date: string | null;
3659
+ connection_id: string;
3660
+ data: import("../integrations/supabase/types").Json;
3661
+ destination_warehouse_id: string | null;
3662
+ fetched_at: string;
3663
+ floriday_id: string;
3664
+ id: string;
3665
+ is_deleted: boolean;
3666
+ sequence_number: number;
3667
+ status: string | null;
3668
+ trade_item_id: string | null;
3669
+ updated_at: string;
3670
+ };
3671
+ Insert: {
3672
+ auction_date?: string | null;
3673
+ connection_id: string;
3674
+ data?: import("../integrations/supabase/types").Json;
3675
+ destination_warehouse_id?: string | null;
3676
+ fetched_at?: string;
3677
+ floriday_id: string;
3678
+ id?: string;
3679
+ is_deleted?: boolean;
3680
+ sequence_number?: number;
3681
+ status?: string | null;
3682
+ trade_item_id?: string | null;
3683
+ updated_at?: string;
3684
+ };
3685
+ Update: {
3686
+ auction_date?: string | null;
3687
+ connection_id?: string;
3688
+ data?: import("../integrations/supabase/types").Json;
3689
+ destination_warehouse_id?: string | null;
3690
+ fetched_at?: string;
3691
+ floriday_id?: string;
3692
+ id?: string;
3693
+ is_deleted?: boolean;
3694
+ sequence_number?: number;
3695
+ status?: string | null;
3696
+ trade_item_id?: string | null;
3697
+ updated_at?: string;
3698
+ };
3699
+ Relationships: [{
3700
+ foreignKeyName: "floriday_delivery_orders_cache_connection_id_fkey";
3701
+ columns: ["connection_id"];
3702
+ isOneToOne: false;
3703
+ referencedRelation: "floriday_connections";
3704
+ referencedColumns: ["id"];
3705
+ }];
3706
+ };
3707
+ floriday_fulfillment_orders_cache: {
3708
+ Row: {
3709
+ auction_date: string | null;
3710
+ connection_id: string;
3711
+ data: import("../integrations/supabase/types").Json;
3712
+ delivery_order_id: string | null;
3713
+ despatch_warehouse_id: string | null;
3714
+ destination_warehouse_id: string | null;
3715
+ fetched_at: string;
3716
+ floriday_id: string;
3717
+ id: string;
3718
+ is_deleted: boolean | null;
3719
+ latest_delivery_at: string | null;
3720
+ load_carrier_type: string | null;
3721
+ one_label_only: boolean | null;
3722
+ sequence_number: number;
3723
+ status: string | null;
3724
+ };
3725
+ Insert: {
3726
+ auction_date?: string | null;
3727
+ connection_id: string;
3728
+ data: import("../integrations/supabase/types").Json;
3729
+ delivery_order_id?: string | null;
3730
+ despatch_warehouse_id?: string | null;
3731
+ destination_warehouse_id?: string | null;
3732
+ fetched_at?: string;
3733
+ floriday_id: string;
3734
+ id?: string;
3735
+ is_deleted?: boolean | null;
3736
+ latest_delivery_at?: string | null;
3737
+ load_carrier_type?: string | null;
3738
+ one_label_only?: boolean | null;
3739
+ sequence_number?: number;
3740
+ status?: string | null;
3741
+ };
3742
+ Update: {
3743
+ auction_date?: string | null;
3744
+ connection_id?: string;
3745
+ data?: import("../integrations/supabase/types").Json;
3746
+ delivery_order_id?: string | null;
3747
+ despatch_warehouse_id?: string | null;
3748
+ destination_warehouse_id?: string | null;
3749
+ fetched_at?: string;
3750
+ floriday_id?: string;
3751
+ id?: string;
3752
+ is_deleted?: boolean | null;
3753
+ latest_delivery_at?: string | null;
3754
+ load_carrier_type?: string | null;
3755
+ one_label_only?: boolean | null;
3756
+ sequence_number?: number;
3757
+ status?: string | null;
3758
+ };
3759
+ Relationships: [{
3760
+ foreignKeyName: "floriday_fulfillment_orders_cache_connection_id_fkey";
3761
+ columns: ["connection_id"];
3762
+ isOneToOne: false;
3763
+ referencedRelation: "floriday_connections";
3764
+ referencedColumns: ["id"];
3765
+ }];
3766
+ };
3767
+ floriday_invoices_cache: {
3768
+ Row: {
3769
+ buyer_organization_id: string | null;
3770
+ connection_id: string;
3771
+ currency: string | null;
3772
+ data: import("../integrations/supabase/types").Json;
3773
+ fetched_at: string;
3774
+ floriday_id: string;
3775
+ id: string;
3776
+ invoice_date: string | null;
3777
+ invoice_number: string | null;
3778
+ is_deleted: boolean;
3779
+ sequence_number: number;
3780
+ total_amount: number | null;
3781
+ updated_at: string;
3782
+ };
3783
+ Insert: {
3784
+ buyer_organization_id?: string | null;
3785
+ connection_id: string;
3786
+ currency?: string | null;
3787
+ data?: import("../integrations/supabase/types").Json;
3788
+ fetched_at?: string;
3789
+ floriday_id: string;
3790
+ id?: string;
3791
+ invoice_date?: string | null;
3792
+ invoice_number?: string | null;
3793
+ is_deleted?: boolean;
3794
+ sequence_number?: number;
3795
+ total_amount?: number | null;
3796
+ updated_at?: string;
3797
+ };
3798
+ Update: {
3799
+ buyer_organization_id?: string | null;
3800
+ connection_id?: string;
3801
+ currency?: string | null;
3802
+ data?: import("../integrations/supabase/types").Json;
3803
+ fetched_at?: string;
3804
+ floriday_id?: string;
3805
+ id?: string;
3806
+ invoice_date?: string | null;
3807
+ invoice_number?: string | null;
3808
+ is_deleted?: boolean;
3809
+ sequence_number?: number;
3810
+ total_amount?: number | null;
3811
+ updated_at?: string;
3812
+ };
3813
+ Relationships: [{
3814
+ foreignKeyName: "floriday_invoices_cache_connection_id_fkey";
3815
+ columns: ["connection_id"];
3816
+ isOneToOne: false;
3817
+ referencedRelation: "floriday_connections";
3818
+ referencedColumns: ["id"];
3819
+ }];
3820
+ };
3821
+ floriday_logistic_labels_cache: {
3822
+ Row: {
3823
+ byte_size: number | null;
3824
+ connection_id: string;
3825
+ content_type: string;
3826
+ fetched_at: string;
3827
+ fulfillment_order_id: string;
3828
+ id: string;
3829
+ logistic_label_code: string;
3830
+ storage_path: string;
3831
+ };
3832
+ Insert: {
3833
+ byte_size?: number | null;
3834
+ connection_id: string;
3835
+ content_type?: string;
3836
+ fetched_at?: string;
3837
+ fulfillment_order_id: string;
3838
+ id?: string;
3839
+ logistic_label_code: string;
3840
+ storage_path: string;
3841
+ };
3842
+ Update: {
3843
+ byte_size?: number | null;
3844
+ connection_id?: string;
3845
+ content_type?: string;
3846
+ fetched_at?: string;
3847
+ fulfillment_order_id?: string;
3848
+ id?: string;
3849
+ logistic_label_code?: string;
3850
+ storage_path?: string;
3851
+ };
3852
+ Relationships: [{
3853
+ foreignKeyName: "floriday_logistic_labels_cache_connection_id_fkey";
3854
+ columns: ["connection_id"];
3855
+ isOneToOne: false;
3856
+ referencedRelation: "floriday_connections";
3857
+ referencedColumns: ["id"];
3858
+ }];
3859
+ };
3860
+ floriday_network_cache: {
3861
+ Row: {
3862
+ city: string | null;
3863
+ connection_id: string;
3864
+ country: string | null;
3865
+ data: import("../integrations/supabase/types").Json;
3866
+ fetched_at: string;
3867
+ gln: string | null;
3868
+ organization_id: string;
3869
+ organization_name: string | null;
3870
+ };
3871
+ Insert: {
3872
+ city?: string | null;
3873
+ connection_id: string;
3874
+ country?: string | null;
3875
+ data?: import("../integrations/supabase/types").Json;
3876
+ fetched_at?: string;
3877
+ gln?: string | null;
3878
+ organization_id: string;
3879
+ organization_name?: string | null;
3880
+ };
3881
+ Update: {
3882
+ city?: string | null;
3883
+ connection_id?: string;
3884
+ country?: string | null;
3885
+ data?: import("../integrations/supabase/types").Json;
3886
+ fetched_at?: string;
3887
+ gln?: string | null;
3888
+ organization_id?: string;
3889
+ organization_name?: string | null;
3890
+ };
3891
+ Relationships: [];
3892
+ };
3893
+ floriday_network_sync_state: {
3894
+ Row: {
3895
+ connection_id: string;
3896
+ last_error: string | null;
3897
+ last_sequence_number: number;
3898
+ last_synced_at: string | null;
3899
+ updated_at: string;
3900
+ };
3901
+ Insert: {
3902
+ connection_id: string;
3903
+ last_error?: string | null;
3904
+ last_sequence_number?: number;
3905
+ last_synced_at?: string | null;
3906
+ updated_at?: string;
3907
+ };
3908
+ Update: {
3909
+ connection_id?: string;
3910
+ last_error?: string | null;
3911
+ last_sequence_number?: number;
3912
+ last_synced_at?: string | null;
3913
+ updated_at?: string;
3914
+ };
3915
+ Relationships: [];
3916
+ };
3917
+ floriday_order_number_map: {
3918
+ Row: {
3919
+ created_at: string;
3920
+ floriday_id: string;
3921
+ order_number: string;
3922
+ };
3923
+ Insert: {
3924
+ created_at?: string;
3925
+ floriday_id: string;
3926
+ order_number: string;
3927
+ };
3928
+ Update: {
3929
+ created_at?: string;
3930
+ floriday_id?: string;
3931
+ order_number?: string;
3932
+ };
3933
+ Relationships: [];
3934
+ };
3935
+ floriday_packings_cache: {
3936
+ Row: {
3937
+ connection_id: string;
3938
+ data: import("../integrations/supabase/types").Json;
3939
+ fetched_at: string;
3940
+ floriday_id: string;
3941
+ id: string;
3942
+ is_deleted: boolean;
3943
+ sequence_number: number;
3944
+ updated_at: string;
3945
+ };
3946
+ Insert: {
3947
+ connection_id: string;
3948
+ data?: import("../integrations/supabase/types").Json;
3949
+ fetched_at?: string;
3950
+ floriday_id: string;
3951
+ id?: string;
2587
3952
  is_deleted?: boolean;
2588
- sequence_number: number;
2589
- status?: string | null;
2590
- synced_at?: string;
3953
+ sequence_number?: number;
3954
+ updated_at?: string;
2591
3955
  };
2592
3956
  Update: {
2593
- buyer_organization_id?: string | null;
2594
- buyer_organization_name?: string | null;
2595
3957
  connection_id?: string;
2596
3958
  data?: import("../integrations/supabase/types").Json;
2597
- floriday_connection_id?: string;
3959
+ fetched_at?: string;
3960
+ floriday_id?: string;
3961
+ id?: string;
2598
3962
  is_deleted?: boolean;
2599
3963
  sequence_number?: number;
2600
- status?: string | null;
2601
- synced_at?: string;
3964
+ updated_at?: string;
2602
3965
  };
2603
3966
  Relationships: [{
2604
- foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3967
+ foreignKeyName: "floriday_packings_cache_connection_id_fkey";
2605
3968
  columns: ["connection_id"];
2606
3969
  isOneToOne: false;
2607
3970
  referencedRelation: "floriday_connections";
2608
3971
  referencedColumns: ["id"];
2609
3972
  }];
2610
3973
  };
2611
- floriday_customers_cache: {
3974
+ floriday_price_groups_cache: {
2612
3975
  Row: {
2613
- connection_id: string | null;
3976
+ connection_id: string;
2614
3977
  data: import("../integrations/supabase/types").Json;
2615
3978
  fetched_at: string;
2616
- organization_id: string;
3979
+ floriday_id: string;
3980
+ is_deleted: boolean;
3981
+ sequence_number: number;
3982
+ updated_at: string;
2617
3983
  };
2618
3984
  Insert: {
2619
- connection_id?: string | null;
2620
- data?: import("../integrations/supabase/types").Json;
3985
+ connection_id: string;
3986
+ data: import("../integrations/supabase/types").Json;
2621
3987
  fetched_at?: string;
2622
- organization_id: string;
3988
+ floriday_id: string;
3989
+ is_deleted?: boolean;
3990
+ sequence_number?: number;
3991
+ updated_at?: string;
2623
3992
  };
2624
3993
  Update: {
2625
- connection_id?: string | null;
3994
+ connection_id?: string;
2626
3995
  data?: import("../integrations/supabase/types").Json;
2627
3996
  fetched_at?: string;
2628
- organization_id?: string;
3997
+ floriday_id?: string;
3998
+ is_deleted?: boolean;
3999
+ sequence_number?: number;
4000
+ updated_at?: string;
2629
4001
  };
2630
4002
  Relationships: [{
2631
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
4003
+ foreignKeyName: "floriday_price_groups_cache_connection_id_fkey";
2632
4004
  columns: ["connection_id"];
2633
4005
  isOneToOne: false;
2634
4006
  referencedRelation: "floriday_connections";
2635
4007
  referencedColumns: ["id"];
2636
4008
  }];
2637
4009
  };
2638
- floriday_network_cache: {
4010
+ floriday_resource_schemas: {
2639
4011
  Row: {
2640
- city: string | null;
2641
- connection_id: string;
2642
- country: string | null;
2643
- data: import("../integrations/supabase/types").Json;
4012
+ enums: import("../integrations/supabase/types").Json;
2644
4013
  fetched_at: string;
2645
- gln: string | null;
2646
- organization_id: string;
2647
- organization_name: string | null;
4014
+ resource: string;
4015
+ schema: import("../integrations/supabase/types").Json;
4016
+ source_url: string | null;
4017
+ version: string;
2648
4018
  };
2649
4019
  Insert: {
2650
- city?: string | null;
2651
- connection_id: string;
2652
- country?: string | null;
2653
- data?: import("../integrations/supabase/types").Json;
4020
+ enums?: import("../integrations/supabase/types").Json;
2654
4021
  fetched_at?: string;
2655
- gln?: string | null;
2656
- organization_id: string;
2657
- organization_name?: string | null;
4022
+ resource: string;
4023
+ schema: import("../integrations/supabase/types").Json;
4024
+ source_url?: string | null;
4025
+ version: string;
2658
4026
  };
2659
4027
  Update: {
2660
- city?: string | null;
2661
- connection_id?: string;
2662
- country?: string | null;
2663
- data?: import("../integrations/supabase/types").Json;
4028
+ enums?: import("../integrations/supabase/types").Json;
2664
4029
  fetched_at?: string;
2665
- gln?: string | null;
2666
- organization_id?: string;
2667
- organization_name?: string | null;
4030
+ resource?: string;
4031
+ schema?: import("../integrations/supabase/types").Json;
4032
+ source_url?: string | null;
4033
+ version?: string;
2668
4034
  };
2669
4035
  Relationships: [];
2670
4036
  };
2671
- floriday_network_sync_state: {
4037
+ floriday_sales_strategies_cache: {
2672
4038
  Row: {
2673
4039
  connection_id: string;
2674
- last_error: string | null;
2675
- last_sequence_number: number;
2676
- last_synced_at: string | null;
4040
+ data: import("../integrations/supabase/types").Json;
4041
+ fetched_at: string;
4042
+ floriday_id: string;
4043
+ is_deleted: boolean;
4044
+ sequence_number: number;
2677
4045
  updated_at: string;
2678
4046
  };
2679
4047
  Insert: {
2680
4048
  connection_id: string;
2681
- last_error?: string | null;
2682
- last_sequence_number?: number;
2683
- last_synced_at?: string | null;
4049
+ data: import("../integrations/supabase/types").Json;
4050
+ fetched_at?: string;
4051
+ floriday_id: string;
4052
+ is_deleted?: boolean;
4053
+ sequence_number?: number;
2684
4054
  updated_at?: string;
2685
4055
  };
2686
4056
  Update: {
2687
4057
  connection_id?: string;
2688
- last_error?: string | null;
2689
- last_sequence_number?: number;
2690
- last_synced_at?: string | null;
4058
+ data?: import("../integrations/supabase/types").Json;
4059
+ fetched_at?: string;
4060
+ floriday_id?: string;
4061
+ is_deleted?: boolean;
4062
+ sequence_number?: number;
2691
4063
  updated_at?: string;
2692
4064
  };
2693
- Relationships: [];
4065
+ Relationships: [{
4066
+ foreignKeyName: "floriday_sales_strategies_cache_connection_id_fkey";
4067
+ columns: ["connection_id"];
4068
+ isOneToOne: false;
4069
+ referencedRelation: "floriday_connections";
4070
+ referencedColumns: ["id"];
4071
+ }];
2694
4072
  };
2695
4073
  floriday_salesorders_cache: {
2696
4074
  Row: {
@@ -2757,7 +4135,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2757
4135
  connection_id: string;
2758
4136
  entity_type: string;
2759
4137
  last_error: string | null;
4138
+ last_items_processed: number | null;
2760
4139
  last_sequence_number: number;
4140
+ last_success_at: string | null;
2761
4141
  last_synced_at: string | null;
2762
4142
  updated_at: string;
2763
4143
  };
@@ -2765,7 +4145,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2765
4145
  connection_id: string;
2766
4146
  entity_type: string;
2767
4147
  last_error?: string | null;
4148
+ last_items_processed?: number | null;
2768
4149
  last_sequence_number?: number;
4150
+ last_success_at?: string | null;
2769
4151
  last_synced_at?: string | null;
2770
4152
  updated_at?: string;
2771
4153
  };
@@ -2773,7 +4155,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2773
4155
  connection_id?: string;
2774
4156
  entity_type?: string;
2775
4157
  last_error?: string | null;
4158
+ last_items_processed?: number | null;
2776
4159
  last_sequence_number?: number;
4160
+ last_success_at?: string | null;
2777
4161
  last_synced_at?: string | null;
2778
4162
  updated_at?: string;
2779
4163
  };
@@ -2821,6 +4205,45 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2821
4205
  referencedColumns: ["id"];
2822
4206
  }];
2823
4207
  };
4208
+ floriday_trade_item_classifications_cache: {
4209
+ Row: {
4210
+ connection_id: string;
4211
+ data: import("../integrations/supabase/types").Json;
4212
+ fetched_at: string;
4213
+ floriday_id: string;
4214
+ id: string;
4215
+ is_deleted: boolean;
4216
+ sequence_number: number;
4217
+ updated_at: string;
4218
+ };
4219
+ Insert: {
4220
+ connection_id: string;
4221
+ data: import("../integrations/supabase/types").Json;
4222
+ fetched_at?: string;
4223
+ floriday_id: string;
4224
+ id?: string;
4225
+ is_deleted?: boolean;
4226
+ sequence_number?: number;
4227
+ updated_at?: string;
4228
+ };
4229
+ Update: {
4230
+ connection_id?: string;
4231
+ data?: import("../integrations/supabase/types").Json;
4232
+ fetched_at?: string;
4233
+ floriday_id?: string;
4234
+ id?: string;
4235
+ is_deleted?: boolean;
4236
+ sequence_number?: number;
4237
+ updated_at?: string;
4238
+ };
4239
+ Relationships: [{
4240
+ foreignKeyName: "floriday_trade_item_classifications_cache_connection_id_fkey";
4241
+ columns: ["connection_id"];
4242
+ isOneToOne: false;
4243
+ referencedRelation: "floriday_connections";
4244
+ referencedColumns: ["id"];
4245
+ }];
4246
+ };
2824
4247
  floriday_trade_items_cache: {
2825
4248
  Row: {
2826
4249
  connection_id: string;
@@ -2847,7 +4270,160 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2847
4270
  sequence_number?: number;
2848
4271
  };
2849
4272
  Relationships: [{
2850
- foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4273
+ foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4274
+ columns: ["connection_id"];
4275
+ isOneToOne: false;
4276
+ referencedRelation: "floriday_connections";
4277
+ referencedColumns: ["id"];
4278
+ }];
4279
+ };
4280
+ floriday_trips_cache: {
4281
+ Row: {
4282
+ carrier_organization_id: string | null;
4283
+ connection_id: string;
4284
+ data: import("../integrations/supabase/types").Json;
4285
+ fetched_at: string;
4286
+ floriday_id: string;
4287
+ id: string;
4288
+ is_deleted: boolean;
4289
+ sequence_number: number;
4290
+ status: string | null;
4291
+ trip_date: string | null;
4292
+ updated_at: string;
4293
+ };
4294
+ Insert: {
4295
+ carrier_organization_id?: string | null;
4296
+ connection_id: string;
4297
+ data?: import("../integrations/supabase/types").Json;
4298
+ fetched_at?: string;
4299
+ floriday_id: string;
4300
+ id?: string;
4301
+ is_deleted?: boolean;
4302
+ sequence_number?: number;
4303
+ status?: string | null;
4304
+ trip_date?: string | null;
4305
+ updated_at?: string;
4306
+ };
4307
+ Update: {
4308
+ carrier_organization_id?: string | null;
4309
+ connection_id?: string;
4310
+ data?: import("../integrations/supabase/types").Json;
4311
+ fetched_at?: string;
4312
+ floriday_id?: string;
4313
+ id?: string;
4314
+ is_deleted?: boolean;
4315
+ sequence_number?: number;
4316
+ status?: string | null;
4317
+ trip_date?: string | null;
4318
+ updated_at?: string;
4319
+ };
4320
+ Relationships: [{
4321
+ foreignKeyName: "floriday_trips_cache_connection_id_fkey";
4322
+ columns: ["connection_id"];
4323
+ isOneToOne: false;
4324
+ referencedRelation: "floriday_connections";
4325
+ referencedColumns: ["id"];
4326
+ }];
4327
+ };
4328
+ floriday_warehouses_cache: {
4329
+ Row: {
4330
+ connection_id: string;
4331
+ data: import("../integrations/supabase/types").Json;
4332
+ fetched_at: string;
4333
+ floriday_id: string;
4334
+ gln_code: string | null;
4335
+ id: string;
4336
+ is_default: boolean;
4337
+ is_deleted: boolean;
4338
+ name: string | null;
4339
+ updated_at: string;
4340
+ };
4341
+ Insert: {
4342
+ connection_id: string;
4343
+ data?: import("../integrations/supabase/types").Json;
4344
+ fetched_at?: string;
4345
+ floriday_id: string;
4346
+ gln_code?: string | null;
4347
+ id?: string;
4348
+ is_default?: boolean;
4349
+ is_deleted?: boolean;
4350
+ name?: string | null;
4351
+ updated_at?: string;
4352
+ };
4353
+ Update: {
4354
+ connection_id?: string;
4355
+ data?: import("../integrations/supabase/types").Json;
4356
+ fetched_at?: string;
4357
+ floriday_id?: string;
4358
+ gln_code?: string | null;
4359
+ id?: string;
4360
+ is_default?: boolean;
4361
+ is_deleted?: boolean;
4362
+ name?: string | null;
4363
+ updated_at?: string;
4364
+ };
4365
+ Relationships: [{
4366
+ foreignKeyName: "floriday_warehouses_cache_connection_id_fkey";
4367
+ columns: ["connection_id"];
4368
+ isOneToOne: false;
4369
+ referencedRelation: "floriday_connections";
4370
+ referencedColumns: ["id"];
4371
+ }];
4372
+ };
4373
+ floriday_write_log: {
4374
+ Row: {
4375
+ action: string;
4376
+ caller: string;
4377
+ connection_id: string | null;
4378
+ created_at: string;
4379
+ error: string | null;
4380
+ floriday_id: string | null;
4381
+ http_status: number | null;
4382
+ id: string;
4383
+ idempotency_key: string | null;
4384
+ module: string | null;
4385
+ ok: boolean;
4386
+ request: import("../integrations/supabase/types").Json | null;
4387
+ resource: string;
4388
+ response: import("../integrations/supabase/types").Json | null;
4389
+ user_id: string | null;
4390
+ };
4391
+ Insert: {
4392
+ action: string;
4393
+ caller?: string;
4394
+ connection_id?: string | null;
4395
+ created_at?: string;
4396
+ error?: string | null;
4397
+ floriday_id?: string | null;
4398
+ http_status?: number | null;
4399
+ id?: string;
4400
+ idempotency_key?: string | null;
4401
+ module?: string | null;
4402
+ ok: boolean;
4403
+ request?: import("../integrations/supabase/types").Json | null;
4404
+ resource: string;
4405
+ response?: import("../integrations/supabase/types").Json | null;
4406
+ user_id?: string | null;
4407
+ };
4408
+ Update: {
4409
+ action?: string;
4410
+ caller?: string;
4411
+ connection_id?: string | null;
4412
+ created_at?: string;
4413
+ error?: string | null;
4414
+ floriday_id?: string | null;
4415
+ http_status?: number | null;
4416
+ id?: string;
4417
+ idempotency_key?: string | null;
4418
+ module?: string | null;
4419
+ ok?: boolean;
4420
+ request?: import("../integrations/supabase/types").Json | null;
4421
+ resource?: string;
4422
+ response?: import("../integrations/supabase/types").Json | null;
4423
+ user_id?: string | null;
4424
+ };
4425
+ Relationships: [{
4426
+ foreignKeyName: "floriday_write_log_connection_id_fkey";
2851
4427
  columns: ["connection_id"];
2852
4428
  isOneToOne: false;
2853
4429
  referencedRelation: "floriday_connections";
@@ -3028,6 +4604,57 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3028
4604
  };
3029
4605
  Relationships: [];
3030
4606
  };
4607
+ invoice_push_log: {
4608
+ Row: {
4609
+ connection_id: string | null;
4610
+ created_at: string;
4611
+ created_by: string;
4612
+ customer_id: string | null;
4613
+ id: string;
4614
+ last_error: string | null;
4615
+ last_polled_at: string | null;
4616
+ payload: import("../integrations/supabase/types").Json;
4617
+ provider_id: string;
4618
+ queue_id: string | null;
4619
+ status: string;
4620
+ updated_at: string;
4621
+ };
4622
+ Insert: {
4623
+ connection_id?: string | null;
4624
+ created_at?: string;
4625
+ created_by?: string;
4626
+ customer_id?: string | null;
4627
+ id?: string;
4628
+ last_error?: string | null;
4629
+ last_polled_at?: string | null;
4630
+ payload?: import("../integrations/supabase/types").Json;
4631
+ provider_id: string;
4632
+ queue_id?: string | null;
4633
+ status?: string;
4634
+ updated_at?: string;
4635
+ };
4636
+ Update: {
4637
+ connection_id?: string | null;
4638
+ created_at?: string;
4639
+ created_by?: string;
4640
+ customer_id?: string | null;
4641
+ id?: string;
4642
+ last_error?: string | null;
4643
+ last_polled_at?: string | null;
4644
+ payload?: import("../integrations/supabase/types").Json;
4645
+ provider_id?: string;
4646
+ queue_id?: string | null;
4647
+ status?: string;
4648
+ updated_at?: string;
4649
+ };
4650
+ Relationships: [{
4651
+ foreignKeyName: "invoice_push_log_provider_id_fkey";
4652
+ columns: ["provider_id"];
4653
+ isOneToOne: false;
4654
+ referencedRelation: "external_invoice_providers";
4655
+ referencedColumns: ["provider"];
4656
+ }];
4657
+ };
3031
4658
  invoice_run_items: {
3032
4659
  Row: {
3033
4660
  booking_id: string | null;
@@ -3152,6 +4779,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3152
4779
  Row: {
3153
4780
  body_html: string | null;
3154
4781
  body_text: string | null;
4782
+ connection_id: string | null;
3155
4783
  created_at: string;
3156
4784
  error_message: string | null;
3157
4785
  external_id: string | null;
@@ -3170,6 +4798,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3170
4798
  Insert: {
3171
4799
  body_html?: string | null;
3172
4800
  body_text?: string | null;
4801
+ connection_id?: string | null;
3173
4802
  created_at?: string;
3174
4803
  error_message?: string | null;
3175
4804
  external_id?: string | null;
@@ -3188,6 +4817,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3188
4817
  Update: {
3189
4818
  body_html?: string | null;
3190
4819
  body_text?: string | null;
4820
+ connection_id?: string | null;
3191
4821
  created_at?: string;
3192
4822
  error_message?: string | null;
3193
4823
  external_id?: string | null;
@@ -3204,6 +4834,18 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3204
4834
  updated_at?: string;
3205
4835
  };
3206
4836
  Relationships: [{
4837
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4838
+ columns: ["connection_id"];
4839
+ isOneToOne: false;
4840
+ referencedRelation: "email_auth_connections";
4841
+ referencedColumns: ["id"];
4842
+ }, {
4843
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4844
+ columns: ["connection_id"];
4845
+ isOneToOne: false;
4846
+ referencedRelation: "email_auth_connections_safe";
4847
+ referencedColumns: ["id"];
4848
+ }, {
3207
4849
  foreignKeyName: "mailbox_messages_profile_id_fkey";
3208
4850
  columns: ["profile_id"];
3209
4851
  isOneToOne: false;
@@ -3487,6 +5129,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3487
5129
  role: string;
3488
5130
  tenant_id: string;
3489
5131
  updated_at: string;
5132
+ user_id: string | null;
3490
5133
  };
3491
5134
  Insert: {
3492
5135
  avatar_url?: string | null;
@@ -3502,6 +5145,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3502
5145
  role?: string;
3503
5146
  tenant_id: string;
3504
5147
  updated_at?: string;
5148
+ user_id?: string | null;
3505
5149
  };
3506
5150
  Update: {
3507
5151
  avatar_url?: string | null;
@@ -3517,6 +5161,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3517
5161
  role?: string;
3518
5162
  tenant_id?: string;
3519
5163
  updated_at?: string;
5164
+ user_id?: string | null;
3520
5165
  };
3521
5166
  Relationships: [{
3522
5167
  foreignKeyName: "monteurs_tenant_id_fkey";
@@ -3653,12 +5298,6 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3653
5298
  isOneToOne: false;
3654
5299
  referencedRelation: "offer_campaigns";
3655
5300
  referencedColumns: ["id"];
3656
- }, {
3657
- foreignKeyName: "offer_campaign_products_product_id_fkey";
3658
- columns: ["product_id"];
3659
- isOneToOne: false;
3660
- referencedRelation: "products";
3661
- referencedColumns: ["id"];
3662
5301
  }];
3663
5302
  };
3664
5303
  offer_campaigns: {
@@ -3934,6 +5573,99 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3934
5573
  };
3935
5574
  Relationships: [];
3936
5575
  };
5576
+ order_cart_items: {
5577
+ Row: {
5578
+ cart_id: string;
5579
+ crates: number;
5580
+ crates_per_layer: number;
5581
+ created_at: string;
5582
+ id: string;
5583
+ order_item_id: string | null;
5584
+ plants_per_crate: number;
5585
+ product_id: string | null;
5586
+ product_name: string;
5587
+ };
5588
+ Insert: {
5589
+ cart_id: string;
5590
+ crates: number;
5591
+ crates_per_layer?: number;
5592
+ created_at?: string;
5593
+ id?: string;
5594
+ order_item_id?: string | null;
5595
+ plants_per_crate?: number;
5596
+ product_id?: string | null;
5597
+ product_name: string;
5598
+ };
5599
+ Update: {
5600
+ cart_id?: string;
5601
+ crates?: number;
5602
+ crates_per_layer?: number;
5603
+ created_at?: string;
5604
+ id?: string;
5605
+ order_item_id?: string | null;
5606
+ plants_per_crate?: number;
5607
+ product_id?: string | null;
5608
+ product_name?: string;
5609
+ };
5610
+ Relationships: [{
5611
+ foreignKeyName: "order_cart_items_cart_id_fkey";
5612
+ columns: ["cart_id"];
5613
+ isOneToOne: false;
5614
+ referencedRelation: "order_carts";
5615
+ referencedColumns: ["id"];
5616
+ }, {
5617
+ foreignKeyName: "order_cart_items_order_item_id_fkey";
5618
+ columns: ["order_item_id"];
5619
+ isOneToOne: false;
5620
+ referencedRelation: "order_items";
5621
+ referencedColumns: ["id"];
5622
+ }, {
5623
+ foreignKeyName: "order_cart_items_product_id_fkey";
5624
+ columns: ["product_id"];
5625
+ isOneToOne: false;
5626
+ referencedRelation: "products";
5627
+ referencedColumns: ["id"];
5628
+ }];
5629
+ };
5630
+ order_carts: {
5631
+ Row: {
5632
+ cart_number: number;
5633
+ created_at: string;
5634
+ id: string;
5635
+ is_auto: boolean;
5636
+ is_complete: boolean;
5637
+ notes: string | null;
5638
+ order_id: string;
5639
+ updated_at: string;
5640
+ };
5641
+ Insert: {
5642
+ cart_number: number;
5643
+ created_at?: string;
5644
+ id?: string;
5645
+ is_auto?: boolean;
5646
+ is_complete?: boolean;
5647
+ notes?: string | null;
5648
+ order_id: string;
5649
+ updated_at?: string;
5650
+ };
5651
+ Update: {
5652
+ cart_number?: number;
5653
+ created_at?: string;
5654
+ id?: string;
5655
+ is_auto?: boolean;
5656
+ is_complete?: boolean;
5657
+ notes?: string | null;
5658
+ order_id?: string;
5659
+ updated_at?: string;
5660
+ };
5661
+ Relationships: [{
5662
+ foreignKeyName: "order_carts_order_id_fkey";
5663
+ columns: ["order_id"];
5664
+ isOneToOne: false;
5665
+ referencedRelation: "orders";
5666
+ referencedColumns: ["id"];
5667
+ }];
5668
+ };
3937
5669
  order_field_options: {
3938
5670
  Row: {
3939
5671
  created_at: string;
@@ -4045,6 +5777,24 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4045
5777
  referencedColumns: ["id"];
4046
5778
  }];
4047
5779
  };
5780
+ order_number_counters: {
5781
+ Row: {
5782
+ last_value: number;
5783
+ updated_at: string;
5784
+ year: number;
5785
+ };
5786
+ Insert: {
5787
+ last_value?: number;
5788
+ updated_at?: string;
5789
+ year: number;
5790
+ };
5791
+ Update: {
5792
+ last_value?: number;
5793
+ updated_at?: string;
5794
+ year?: number;
5795
+ };
5796
+ Relationships: [];
5797
+ };
4048
5798
  orders: {
4049
5799
  Row: {
4050
5800
  created_at: string;
@@ -4057,6 +5807,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4057
5807
  notes: string | null;
4058
5808
  order_date: string;
4059
5809
  order_number: string;
5810
+ order_source: string;
4060
5811
  status: string;
4061
5812
  total: string;
4062
5813
  updated_at: string;
@@ -4072,6 +5823,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4072
5823
  notes?: string | null;
4073
5824
  order_date?: string;
4074
5825
  order_number: string;
5826
+ order_source?: string;
4075
5827
  status?: string;
4076
5828
  total?: string;
4077
5829
  updated_at?: string;
@@ -4087,6 +5839,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4087
5839
  notes?: string | null;
4088
5840
  order_date?: string;
4089
5841
  order_number?: string;
5842
+ order_source?: string;
4090
5843
  status?: string;
4091
5844
  total?: string;
4092
5845
  updated_at?: string;
@@ -4135,6 +5888,36 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4135
5888
  };
4136
5889
  Relationships: [];
4137
5890
  };
5891
+ pickstation_print_log: {
5892
+ Row: {
5893
+ customer_name: string | null;
5894
+ documents: string[];
5895
+ id: string;
5896
+ ip_address: string | null;
5897
+ order_id: string;
5898
+ order_number: string | null;
5899
+ printed_at: string;
5900
+ };
5901
+ Insert: {
5902
+ customer_name?: string | null;
5903
+ documents?: string[];
5904
+ id?: string;
5905
+ ip_address?: string | null;
5906
+ order_id: string;
5907
+ order_number?: string | null;
5908
+ printed_at?: string;
5909
+ };
5910
+ Update: {
5911
+ customer_name?: string | null;
5912
+ documents?: string[];
5913
+ id?: string;
5914
+ ip_address?: string | null;
5915
+ order_id?: string;
5916
+ order_number?: string | null;
5917
+ printed_at?: string;
5918
+ };
5919
+ Relationships: [];
5920
+ };
4138
5921
  pipeline_settings: {
4139
5922
  Row: {
4140
5923
  created_at: string;
@@ -4295,13 +6078,16 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4295
6078
  Row: {
4296
6079
  barcode: string | null;
4297
6080
  batch: string;
6081
+ crates_per_layer: number;
4298
6082
  created_at: string;
4299
6083
  custom_fields: import("../integrations/supabase/types").Json;
4300
6084
  id: string;
4301
6085
  image_url: string | null;
4302
6086
  incoming_quantity: number;
6087
+ layers_per_cart: number;
4303
6088
  location: string;
4304
6089
  min_quantity: number;
6090
+ plants_per_crate: number;
4305
6091
  product: string;
4306
6092
  product_type: string;
4307
6093
  purchase_price: number | null;
@@ -4314,13 +6100,16 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4314
6100
  Insert: {
4315
6101
  barcode?: string | null;
4316
6102
  batch: string;
6103
+ crates_per_layer?: number;
4317
6104
  created_at?: string;
4318
6105
  custom_fields?: import("../integrations/supabase/types").Json;
4319
6106
  id?: string;
4320
6107
  image_url?: string | null;
4321
6108
  incoming_quantity?: number;
6109
+ layers_per_cart?: number;
4322
6110
  location: string;
4323
6111
  min_quantity?: number;
6112
+ plants_per_crate?: number;
4324
6113
  product: string;
4325
6114
  product_type?: string;
4326
6115
  purchase_price?: number | null;
@@ -4333,13 +6122,16 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4333
6122
  Update: {
4334
6123
  barcode?: string | null;
4335
6124
  batch?: string;
6125
+ crates_per_layer?: number;
4336
6126
  created_at?: string;
4337
6127
  custom_fields?: import("../integrations/supabase/types").Json;
4338
6128
  id?: string;
4339
6129
  image_url?: string | null;
4340
6130
  incoming_quantity?: number;
6131
+ layers_per_cart?: number;
4341
6132
  location?: string;
4342
6133
  min_quantity?: number;
6134
+ plants_per_crate?: number;
4343
6135
  product?: string;
4344
6136
  product_type?: string;
4345
6137
  purchase_price?: number | null;
@@ -5281,6 +7073,141 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5281
7073
  };
5282
7074
  Relationships: [];
5283
7075
  };
7076
+ time_entries: {
7077
+ Row: {
7078
+ created_at: string;
7079
+ employee_id: string;
7080
+ entry_date: string;
7081
+ hours: number;
7082
+ id: string;
7083
+ notes: string | null;
7084
+ overtime: number;
7085
+ undertime: number;
7086
+ updated_at: string;
7087
+ };
7088
+ Insert: {
7089
+ created_at?: string;
7090
+ employee_id: string;
7091
+ entry_date: string;
7092
+ hours?: number;
7093
+ id?: string;
7094
+ notes?: string | null;
7095
+ overtime?: number;
7096
+ undertime?: number;
7097
+ updated_at?: string;
7098
+ };
7099
+ Update: {
7100
+ created_at?: string;
7101
+ employee_id?: string;
7102
+ entry_date?: string;
7103
+ hours?: number;
7104
+ id?: string;
7105
+ notes?: string | null;
7106
+ overtime?: number;
7107
+ undertime?: number;
7108
+ updated_at?: string;
7109
+ };
7110
+ Relationships: [{
7111
+ foreignKeyName: "time_entries_employee_id_fkey";
7112
+ columns: ["employee_id"];
7113
+ isOneToOne: false;
7114
+ referencedRelation: "monteurs";
7115
+ referencedColumns: ["id"];
7116
+ }];
7117
+ };
7118
+ time_logs: {
7119
+ Row: {
7120
+ created_at: string;
7121
+ employee_id: string;
7122
+ end_time: string | null;
7123
+ id: string;
7124
+ notes: string | null;
7125
+ overtime_hours: number;
7126
+ overtime_type: string | null;
7127
+ regular_hours: number;
7128
+ start_time: string;
7129
+ travel_cost: number | null;
7130
+ travel_distance_km: number | null;
7131
+ type: string;
7132
+ updated_at: string;
7133
+ };
7134
+ Insert: {
7135
+ created_at?: string;
7136
+ employee_id: string;
7137
+ end_time?: string | null;
7138
+ id?: string;
7139
+ notes?: string | null;
7140
+ overtime_hours?: number;
7141
+ overtime_type?: string | null;
7142
+ regular_hours?: number;
7143
+ start_time?: string;
7144
+ travel_cost?: number | null;
7145
+ travel_distance_km?: number | null;
7146
+ type: string;
7147
+ updated_at?: string;
7148
+ };
7149
+ Update: {
7150
+ created_at?: string;
7151
+ employee_id?: string;
7152
+ end_time?: string | null;
7153
+ id?: string;
7154
+ notes?: string | null;
7155
+ overtime_hours?: number;
7156
+ overtime_type?: string | null;
7157
+ regular_hours?: number;
7158
+ start_time?: string;
7159
+ travel_cost?: number | null;
7160
+ travel_distance_km?: number | null;
7161
+ type?: string;
7162
+ updated_at?: string;
7163
+ };
7164
+ Relationships: [{
7165
+ foreignKeyName: "time_logs_employee_id_fkey";
7166
+ columns: ["employee_id"];
7167
+ isOneToOne: false;
7168
+ referencedRelation: "monteurs";
7169
+ referencedColumns: ["id"];
7170
+ }];
7171
+ };
7172
+ time_off_entries: {
7173
+ Row: {
7174
+ created_at: string;
7175
+ employee_id: string;
7176
+ entry_date: string;
7177
+ hours: number;
7178
+ id: string;
7179
+ notes: string | null;
7180
+ type: string;
7181
+ updated_at: string;
7182
+ };
7183
+ Insert: {
7184
+ created_at?: string;
7185
+ employee_id: string;
7186
+ entry_date: string;
7187
+ hours?: number;
7188
+ id?: string;
7189
+ notes?: string | null;
7190
+ type: string;
7191
+ updated_at?: string;
7192
+ };
7193
+ Update: {
7194
+ created_at?: string;
7195
+ employee_id?: string;
7196
+ entry_date?: string;
7197
+ hours?: number;
7198
+ id?: string;
7199
+ notes?: string | null;
7200
+ type?: string;
7201
+ updated_at?: string;
7202
+ };
7203
+ Relationships: [{
7204
+ foreignKeyName: "time_off_entries_employee_id_fkey";
7205
+ columns: ["employee_id"];
7206
+ isOneToOne: false;
7207
+ referencedRelation: "monteurs";
7208
+ referencedColumns: ["id"];
7209
+ }];
7210
+ };
5284
7211
  trade_item_drafts: {
5285
7212
  Row: {
5286
7213
  connection_id: string | null;
@@ -5578,9 +7505,11 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5578
7505
  fetched_at: string;
5579
7506
  invoice_number: string;
5580
7507
  line_number: number;
7508
+ line_total: number | null;
5581
7509
  quantity: number | null;
5582
7510
  unit_price: number | null;
5583
7511
  vat_code: string | null;
7512
+ vat_rate: number | null;
5584
7513
  };
5585
7514
  Insert: {
5586
7515
  article_code?: string | null;
@@ -5590,9 +7519,11 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5590
7519
  fetched_at?: string;
5591
7520
  invoice_number: string;
5592
7521
  line_number: number;
7522
+ line_total?: number | null;
5593
7523
  quantity?: number | null;
5594
7524
  unit_price?: number | null;
5595
7525
  vat_code?: string | null;
7526
+ vat_rate?: number | null;
5596
7527
  };
5597
7528
  Update: {
5598
7529
  article_code?: string | null;
@@ -5602,9 +7533,11 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5602
7533
  fetched_at?: string;
5603
7534
  invoice_number?: string;
5604
7535
  line_number?: number;
7536
+ line_total?: number | null;
5605
7537
  quantity?: number | null;
5606
7538
  unit_price?: number | null;
5607
7539
  vat_code?: string | null;
7540
+ vat_rate?: number | null;
5608
7541
  };
5609
7542
  Relationships: [{
5610
7543
  foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
@@ -5781,9 +7714,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5781
7714
  invoice_date: string | null;
5782
7715
  invoice_number: string;
5783
7716
  modified_at: string | null;
7717
+ outstanding_amount: number | null;
5784
7718
  status: string | null;
7719
+ status_label: string | null;
5785
7720
  total_excl: number | null;
5786
7721
  total_incl: number | null;
7722
+ vat_amount: number | null;
5787
7723
  };
5788
7724
  Insert: {
5789
7725
  connection_id: string;
@@ -5795,9 +7731,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5795
7731
  invoice_date?: string | null;
5796
7732
  invoice_number: string;
5797
7733
  modified_at?: string | null;
7734
+ outstanding_amount?: number | null;
5798
7735
  status?: string | null;
7736
+ status_label?: string | null;
5799
7737
  total_excl?: number | null;
5800
7738
  total_incl?: number | null;
7739
+ vat_amount?: number | null;
5801
7740
  };
5802
7741
  Update: {
5803
7742
  connection_id?: string;
@@ -5809,9 +7748,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5809
7748
  invoice_date?: string | null;
5810
7749
  invoice_number?: string;
5811
7750
  modified_at?: string | null;
7751
+ outstanding_amount?: number | null;
5812
7752
  status?: string | null;
7753
+ status_label?: string | null;
5813
7754
  total_excl?: number | null;
5814
7755
  total_incl?: number | null;
7756
+ vat_amount?: number | null;
5815
7757
  };
5816
7758
  Relationships: [{
5817
7759
  foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
@@ -5831,19 +7773,70 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5831
7773
  };
5832
7774
  Insert: {
5833
7775
  created_at?: string;
5834
- environment: string;
5835
- nonce?: string | null;
5836
- state: string;
5837
- user_id: string;
7776
+ environment: string;
7777
+ nonce?: string | null;
7778
+ state: string;
7779
+ user_id: string;
7780
+ };
7781
+ Update: {
7782
+ created_at?: string;
7783
+ environment?: string;
7784
+ nonce?: string | null;
7785
+ state?: string;
7786
+ user_id?: string;
7787
+ };
7788
+ Relationships: [];
7789
+ };
7790
+ twinfield_push_queue: {
7791
+ Row: {
7792
+ attempts: number;
7793
+ connection_id: string;
7794
+ created_at: string;
7795
+ external_id: string | null;
7796
+ id: string;
7797
+ idempotency_key: string;
7798
+ last_error: string | null;
7799
+ next_attempt_at: string;
7800
+ office_code: string;
7801
+ payload: import("../integrations/supabase/types").Json;
7802
+ status: string;
7803
+ updated_at: string;
7804
+ };
7805
+ Insert: {
7806
+ attempts?: number;
7807
+ connection_id: string;
7808
+ created_at?: string;
7809
+ external_id?: string | null;
7810
+ id?: string;
7811
+ idempotency_key: string;
7812
+ last_error?: string | null;
7813
+ next_attempt_at?: string;
7814
+ office_code: string;
7815
+ payload: import("../integrations/supabase/types").Json;
7816
+ status?: string;
7817
+ updated_at?: string;
5838
7818
  };
5839
7819
  Update: {
7820
+ attempts?: number;
7821
+ connection_id?: string;
5840
7822
  created_at?: string;
5841
- environment?: string;
5842
- nonce?: string | null;
5843
- state?: string;
5844
- user_id?: string;
7823
+ external_id?: string | null;
7824
+ id?: string;
7825
+ idempotency_key?: string;
7826
+ last_error?: string | null;
7827
+ next_attempt_at?: string;
7828
+ office_code?: string;
7829
+ payload?: import("../integrations/supabase/types").Json;
7830
+ status?: string;
7831
+ updated_at?: string;
5845
7832
  };
5846
- Relationships: [];
7833
+ Relationships: [{
7834
+ foreignKeyName: "twinfield_push_queue_connection_id_fkey";
7835
+ columns: ["connection_id"];
7836
+ isOneToOne: false;
7837
+ referencedRelation: "twinfield_connections";
7838
+ referencedColumns: ["id"];
7839
+ }];
5847
7840
  };
5848
7841
  twinfield_settings: {
5849
7842
  Row: {
@@ -5956,6 +7949,117 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5956
7949
  referencedColumns: ["id"];
5957
7950
  }];
5958
7951
  };
7952
+ voorraad_media_upload_failures: {
7953
+ Row: {
7954
+ action: string;
7955
+ attempt_number: number;
7956
+ caller: string;
7957
+ client_user_id: string | null;
7958
+ content_type: string | null;
7959
+ created_at: string;
7960
+ environment: string;
7961
+ error_message: string | null;
7962
+ filename: string | null;
7963
+ id: string;
7964
+ idempotency_key: string | null;
7965
+ module: string;
7966
+ path: string;
7967
+ reference_id: string | null;
7968
+ request_body_hash: string | null;
7969
+ request_timestamp: number | null;
7970
+ response_content_type: string | null;
7971
+ response_status: number | null;
7972
+ size_bytes: number | null;
7973
+ };
7974
+ Insert: {
7975
+ action?: string;
7976
+ attempt_number?: number;
7977
+ caller?: string;
7978
+ client_user_id?: string | null;
7979
+ content_type?: string | null;
7980
+ created_at?: string;
7981
+ environment: string;
7982
+ error_message?: string | null;
7983
+ filename?: string | null;
7984
+ id?: string;
7985
+ idempotency_key?: string | null;
7986
+ module?: string;
7987
+ path: string;
7988
+ reference_id?: string | null;
7989
+ request_body_hash?: string | null;
7990
+ request_timestamp?: number | null;
7991
+ response_content_type?: string | null;
7992
+ response_status?: number | null;
7993
+ size_bytes?: number | null;
7994
+ };
7995
+ Update: {
7996
+ action?: string;
7997
+ attempt_number?: number;
7998
+ caller?: string;
7999
+ client_user_id?: string | null;
8000
+ content_type?: string | null;
8001
+ created_at?: string;
8002
+ environment?: string;
8003
+ error_message?: string | null;
8004
+ filename?: string | null;
8005
+ id?: string;
8006
+ idempotency_key?: string | null;
8007
+ module?: string;
8008
+ path?: string;
8009
+ reference_id?: string | null;
8010
+ request_body_hash?: string | null;
8011
+ request_timestamp?: number | null;
8012
+ response_content_type?: string | null;
8013
+ response_status?: number | null;
8014
+ size_bytes?: number | null;
8015
+ };
8016
+ Relationships: [];
8017
+ };
8018
+ voorraad_publish_attempts: {
8019
+ Row: {
8020
+ action: string;
8021
+ connection_id: string | null;
8022
+ created_at: string;
8023
+ error: string | null;
8024
+ gateway_attempt_id: string | null;
8025
+ gateway_status: number | null;
8026
+ id: string;
8027
+ intent: string;
8028
+ ok: boolean;
8029
+ request_summary: import("../integrations/supabase/types").Json | null;
8030
+ trade_item_id: string | null;
8031
+ user_id: string;
8032
+ };
8033
+ Insert: {
8034
+ action: string;
8035
+ connection_id?: string | null;
8036
+ created_at?: string;
8037
+ error?: string | null;
8038
+ gateway_attempt_id?: string | null;
8039
+ gateway_status?: number | null;
8040
+ id?: string;
8041
+ intent: string;
8042
+ ok: boolean;
8043
+ request_summary?: import("../integrations/supabase/types").Json | null;
8044
+ trade_item_id?: string | null;
8045
+ user_id: string;
8046
+ };
8047
+ Update: {
8048
+ action?: string;
8049
+ connection_id?: string | null;
8050
+ created_at?: string;
8051
+ error?: string | null;
8052
+ gateway_attempt_id?: string | null;
8053
+ gateway_status?: number | null;
8054
+ id?: string;
8055
+ intent?: string;
8056
+ ok?: boolean;
8057
+ request_summary?: import("../integrations/supabase/types").Json | null;
8058
+ trade_item_id?: string | null;
8059
+ user_id?: string;
8060
+ };
8061
+ Relationships: [];
8062
+ };
5959
8063
  work_order_monteurs: {
5960
8064
  Row: {
5961
8065
  created_at: string;
@@ -6267,6 +8371,132 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6267
8371
  };
6268
8372
  Relationships: [];
6269
8373
  };
8374
+ external_invoices_grouped: {
8375
+ Row: {
8376
+ currency: string | null;
8377
+ customer_external_id: string | null;
8378
+ customer_name: string | null;
8379
+ customer_vat: string | null;
8380
+ due_at: string | null;
8381
+ group_key: string | null;
8382
+ invoice_number: string | null;
8383
+ is_merged: boolean | null;
8384
+ issued_at: string | null;
8385
+ modified_at: string | null;
8386
+ open_amount: number | null;
8387
+ paid_at: string | null;
8388
+ providers: string[] | null;
8389
+ source_count: number | null;
8390
+ sources: import("../integrations/supabase/types").Json | null;
8391
+ status: string | null;
8392
+ total_excl: number | null;
8393
+ total_incl: number | null;
8394
+ total_vat: number | null;
8395
+ };
8396
+ Relationships: [];
8397
+ };
8398
+ external_invoices_unified: {
8399
+ Row: {
8400
+ connection_id: string | null;
8401
+ currency: string | null;
8402
+ customer_external_id: string | null;
8403
+ customer_name: string | null;
8404
+ customer_vat: string | null;
8405
+ due_at: string | null;
8406
+ external_id: string | null;
8407
+ invoice_number: string | null;
8408
+ issued_at: string | null;
8409
+ open_amount: number | null;
8410
+ owner_user_id: string | null;
8411
+ paid_at: string | null;
8412
+ raw: import("../integrations/supabase/types").Json | null;
8413
+ source: string | null;
8414
+ status: string | null;
8415
+ synced_at: string | null;
8416
+ total_excl: number | null;
8417
+ total_incl: number | null;
8418
+ total_vat: number | null;
8419
+ };
8420
+ Relationships: [];
8421
+ };
8422
+ v_external_customers_exact: {
8423
+ Row: {
8424
+ account_number: string | null;
8425
+ city: string | null;
8426
+ coc_number: string | null;
8427
+ company_name: string | null;
8428
+ connection_id: string | null;
8429
+ country: string | null;
8430
+ currency: string | null;
8431
+ email: string | null;
8432
+ external_id: string | null;
8433
+ is_sales: boolean | null;
8434
+ is_supplier: boolean | null;
8435
+ language: string | null;
8436
+ modified_at: string | null;
8437
+ phone: string | null;
8438
+ postal_code: string | null;
8439
+ raw: import("../integrations/supabase/types").Json | null;
8440
+ source: string | null;
8441
+ street: string | null;
8442
+ synced_at: string | null;
8443
+ vat_number: string | null;
8444
+ website: string | null;
8445
+ };
8446
+ Insert: {
8447
+ account_number?: string | null;
8448
+ city?: string | null;
8449
+ coc_number?: string | null;
8450
+ company_name?: string | null;
8451
+ connection_id?: string | null;
8452
+ country?: string | null;
8453
+ currency?: string | null;
8454
+ email?: string | null;
8455
+ external_id?: string | null;
8456
+ is_sales?: boolean | null;
8457
+ is_supplier?: boolean | null;
8458
+ language?: string | null;
8459
+ modified_at?: string | null;
8460
+ phone?: string | null;
8461
+ postal_code?: string | null;
8462
+ raw?: import("../integrations/supabase/types").Json | null;
8463
+ source?: never;
8464
+ street?: string | null;
8465
+ synced_at?: string | null;
8466
+ vat_number?: string | null;
8467
+ website?: string | null;
8468
+ };
8469
+ Update: {
8470
+ account_number?: string | null;
8471
+ city?: string | null;
8472
+ coc_number?: string | null;
8473
+ company_name?: string | null;
8474
+ connection_id?: string | null;
8475
+ country?: string | null;
8476
+ currency?: string | null;
8477
+ email?: string | null;
8478
+ external_id?: string | null;
8479
+ is_sales?: boolean | null;
8480
+ is_supplier?: boolean | null;
8481
+ language?: string | null;
8482
+ modified_at?: string | null;
8483
+ phone?: string | null;
8484
+ postal_code?: string | null;
8485
+ raw?: import("../integrations/supabase/types").Json | null;
8486
+ source?: never;
8487
+ street?: string | null;
8488
+ synced_at?: string | null;
8489
+ vat_number?: string | null;
8490
+ website?: string | null;
8491
+ };
8492
+ Relationships: [{
8493
+ foreignKeyName: "exact_customers_cache_connection_id_fkey";
8494
+ columns: ["connection_id"];
8495
+ isOneToOne: false;
8496
+ referencedRelation: "exact_connections";
8497
+ referencedColumns: ["id"];
8498
+ }];
8499
+ };
6270
8500
  v_external_customers_floriday: {
6271
8501
  Row: {
6272
8502
  city: string | null;
@@ -6333,8 +8563,140 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6333
8563
  referencedColumns: ["id"];
6334
8564
  }];
6335
8565
  };
8566
+ v_external_invoices_exact: {
8567
+ Row: {
8568
+ connection_id: string | null;
8569
+ currency: string | null;
8570
+ customer_external_id: string | null;
8571
+ customer_name: string | null;
8572
+ customer_vat: string | null;
8573
+ due_at: string | null;
8574
+ external_id: string | null;
8575
+ invoice_number: string | null;
8576
+ issued_at: string | null;
8577
+ open_amount: number | null;
8578
+ paid_at: string | null;
8579
+ raw: import("../integrations/supabase/types").Json | null;
8580
+ source: string | null;
8581
+ status: string | null;
8582
+ synced_at: string | null;
8583
+ total_excl: number | null;
8584
+ total_incl: number | null;
8585
+ total_vat: number | null;
8586
+ };
8587
+ Insert: {
8588
+ connection_id?: string | null;
8589
+ currency?: never;
8590
+ customer_external_id?: string | null;
8591
+ customer_name?: string | null;
8592
+ customer_vat?: never;
8593
+ due_at?: string | null;
8594
+ external_id?: string | null;
8595
+ invoice_number?: string | null;
8596
+ issued_at?: string | null;
8597
+ open_amount?: number | null;
8598
+ paid_at?: string | null;
8599
+ raw?: import("../integrations/supabase/types").Json | null;
8600
+ source?: never;
8601
+ status?: string | null;
8602
+ synced_at?: string | null;
8603
+ total_excl?: number | null;
8604
+ total_incl?: number | null;
8605
+ total_vat?: number | null;
8606
+ };
8607
+ Update: {
8608
+ connection_id?: string | null;
8609
+ currency?: never;
8610
+ customer_external_id?: string | null;
8611
+ customer_name?: string | null;
8612
+ customer_vat?: never;
8613
+ due_at?: string | null;
8614
+ external_id?: string | null;
8615
+ invoice_number?: string | null;
8616
+ issued_at?: string | null;
8617
+ open_amount?: number | null;
8618
+ paid_at?: string | null;
8619
+ raw?: import("../integrations/supabase/types").Json | null;
8620
+ source?: never;
8621
+ status?: string | null;
8622
+ synced_at?: string | null;
8623
+ total_excl?: number | null;
8624
+ total_incl?: number | null;
8625
+ total_vat?: number | null;
8626
+ };
8627
+ Relationships: [{
8628
+ foreignKeyName: "exact_invoices_cache_connection_id_fkey";
8629
+ columns: ["connection_id"];
8630
+ isOneToOne: false;
8631
+ referencedRelation: "exact_connections";
8632
+ referencedColumns: ["id"];
8633
+ }];
8634
+ };
8635
+ v_external_invoices_twinfield: {
8636
+ Row: {
8637
+ connection_id: string | null;
8638
+ currency: string | null;
8639
+ customer_external_id: string | null;
8640
+ customer_name: string | null;
8641
+ customer_vat: string | null;
8642
+ due_at: string | null;
8643
+ external_id: string | null;
8644
+ invoice_number: string | null;
8645
+ issued_at: string | null;
8646
+ open_amount: number | null;
8647
+ owner_user_id: string | null;
8648
+ paid_at: string | null;
8649
+ raw: import("../integrations/supabase/types").Json | null;
8650
+ source: string | null;
8651
+ status: string | null;
8652
+ synced_at: string | null;
8653
+ total_excl: number | null;
8654
+ total_incl: number | null;
8655
+ total_vat: number | null;
8656
+ };
8657
+ Relationships: [{
8658
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
8659
+ columns: ["connection_id"];
8660
+ isOneToOne: false;
8661
+ referencedRelation: "twinfield_connections";
8662
+ referencedColumns: ["id"];
8663
+ }];
8664
+ };
6336
8665
  };
6337
8666
  Functions: {
8667
+ _floriday_schedule_job: {
8668
+ Args: {
8669
+ p_apikey: string;
8670
+ p_jobname: string;
8671
+ p_schedule: string;
8672
+ p_timeout_ms: number;
8673
+ p_url: string;
8674
+ };
8675
+ Returns: number;
8676
+ };
8677
+ assign_floriday_order_numbers: {
8678
+ Args: {
8679
+ p_ids: string[];
8680
+ };
8681
+ Returns: {
8682
+ floriday_id: string;
8683
+ order_number: string;
8684
+ }[];
8685
+ };
8686
+ call_exact_route: {
8687
+ Args: {
8688
+ path: string;
8689
+ };
8690
+ Returns: number;
8691
+ };
8692
+ cleanup_old_bookings: {
8693
+ Args: never;
8694
+ Returns: number;
8695
+ };
8696
+ current_monteur_id: {
8697
+ Args: never;
8698
+ Returns: string;
8699
+ };
6338
8700
  dashboard_list_public_schema: {
6339
8701
  Args: never;
6340
8702
  Returns: {
@@ -6439,6 +8801,32 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6439
8801
  office_code: string;
6440
8802
  }[];
6441
8803
  };
8804
+ get_floriday_agreements_active: {
8805
+ Args: {
8806
+ p_on_date?: string;
8807
+ };
8808
+ Returns: {
8809
+ buyer_organization_id: string;
8810
+ data: import("../integrations/supabase/types").Json;
8811
+ floriday_id: string;
8812
+ status: string;
8813
+ valid_from: string;
8814
+ valid_until: string;
8815
+ }[];
8816
+ };
8817
+ get_floriday_clock_supplies_window: {
8818
+ Args: {
8819
+ p_from: string;
8820
+ p_to: string;
8821
+ };
8822
+ Returns: {
8823
+ auction_date: string;
8824
+ data: import("../integrations/supabase/types").Json;
8825
+ floriday_id: string;
8826
+ status: string;
8827
+ trade_item_id: string;
8828
+ }[];
8829
+ };
6442
8830
  get_floriday_cron_jobs: {
6443
8831
  Args: never;
6444
8832
  Returns: {
@@ -6448,12 +8836,68 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6448
8836
  url: string;
6449
8837
  }[];
6450
8838
  };
8839
+ get_floriday_delivery_locations: {
8840
+ Args: {
8841
+ p_organization_id: string;
8842
+ };
8843
+ Returns: {
8844
+ data: import("../integrations/supabase/types").Json;
8845
+ floriday_id: string;
8846
+ gln_code: string;
8847
+ name: string;
8848
+ }[];
8849
+ };
8850
+ get_floriday_fulfillment_orders_window: {
8851
+ Args: {
8852
+ p_from: string;
8853
+ p_to: string;
8854
+ };
8855
+ Returns: {
8856
+ auction_date: string;
8857
+ data: import("../integrations/supabase/types").Json;
8858
+ delivery_order_id: string;
8859
+ destination_warehouse_id: string;
8860
+ floriday_id: string;
8861
+ status: string;
8862
+ }[];
8863
+ };
8864
+ get_floriday_sales_orders_window: {
8865
+ Args: {
8866
+ p_from: string;
8867
+ p_to: string;
8868
+ };
8869
+ Returns: {
8870
+ buyer_organization_id: string;
8871
+ data: import("../integrations/supabase/types").Json;
8872
+ floriday_id: string;
8873
+ status: string;
8874
+ updated_at: string;
8875
+ }[];
8876
+ };
8877
+ get_floriday_sync_health: {
8878
+ Args: never;
8879
+ Returns: {
8880
+ entity_type: string;
8881
+ last_error: string;
8882
+ last_items_processed: number;
8883
+ last_sequence_number: number;
8884
+ last_success_at: string;
8885
+ last_synced_at: string;
8886
+ minutes_since_success: number;
8887
+ }[];
8888
+ };
6451
8889
  get_offer_by_link_code: {
6452
8890
  Args: {
6453
8891
  p_code: string;
6454
8892
  };
6455
8893
  Returns: import("../integrations/supabase/types").Json;
6456
8894
  };
8895
+ get_or_assign_floriday_order_number: {
8896
+ Args: {
8897
+ p_floriday_id: string;
8898
+ };
8899
+ Returns: string;
8900
+ };
6457
8901
  get_room_busy_windows: {
6458
8902
  Args: {
6459
8903
  p_from: string;
@@ -6500,6 +8944,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6500
8944
  Args: never;
6501
8945
  Returns: boolean;
6502
8946
  };
8947
+ next_order_number: {
8948
+ Args: {
8949
+ p_prefix: string;
8950
+ };
8951
+ Returns: string;
8952
+ };
6503
8953
  next_work_order_number: {
6504
8954
  Args: {
6505
8955
  p_parent_work_order_id?: string;
@@ -6513,6 +8963,74 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6513
8963
  };
6514
8964
  Returns: string;
6515
8965
  };
8966
+ pickstation_get_orders_raw: {
8967
+ Args: never;
8968
+ Returns: import("../integrations/supabase/types").Json;
8969
+ };
8970
+ pickstation_get_settings: {
8971
+ Args: never;
8972
+ Returns: import("../integrations/supabase/types").Json;
8973
+ };
8974
+ pickstation_log_print: {
8975
+ Args: {
8976
+ p_customer_name: string;
8977
+ p_documents: string[];
8978
+ p_ip_address: string;
8979
+ p_order_id: string;
8980
+ p_order_number: string;
8981
+ };
8982
+ Returns: undefined;
8983
+ };
8984
+ refresh_floricode_derived_code_lists: {
8985
+ Args: never;
8986
+ Returns: {
8987
+ out_environment: string;
8988
+ out_list_name: string;
8989
+ out_row_count: number;
8990
+ }[];
8991
+ };
8992
+ reset_floriday_sync_cursor: {
8993
+ Args: {
8994
+ p_connection_id: string;
8995
+ p_entity_type: string;
8996
+ };
8997
+ Returns: undefined;
8998
+ };
8999
+ schedule_floriday_additional_services_sync: {
9000
+ Args: {
9001
+ p_apikey: string;
9002
+ p_url: string;
9003
+ };
9004
+ Returns: number;
9005
+ };
9006
+ schedule_floriday_agreement_calloffs_sync: {
9007
+ Args: {
9008
+ p_apikey: string;
9009
+ p_url: string;
9010
+ };
9011
+ Returns: number;
9012
+ };
9013
+ schedule_floriday_agreements_sync: {
9014
+ Args: {
9015
+ p_apikey: string;
9016
+ p_url: string;
9017
+ };
9018
+ Returns: number;
9019
+ };
9020
+ schedule_floriday_base_items_sync: {
9021
+ Args: {
9022
+ p_apikey: string;
9023
+ p_url: string;
9024
+ };
9025
+ Returns: number;
9026
+ };
9027
+ schedule_floriday_blanket_orders_sync: {
9028
+ Args: {
9029
+ p_apikey: string;
9030
+ p_url: string;
9031
+ };
9032
+ Returns: number;
9033
+ };
6516
9034
  schedule_floriday_carriers_sync: {
6517
9035
  Args: {
6518
9036
  p_apikey: string;
@@ -6520,6 +9038,34 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6520
9038
  };
6521
9039
  Returns: number;
6522
9040
  };
9041
+ schedule_floriday_clock_presales_sync: {
9042
+ Args: {
9043
+ p_apikey: string;
9044
+ p_url: string;
9045
+ };
9046
+ Returns: number;
9047
+ };
9048
+ schedule_floriday_clock_supplies_sync: {
9049
+ Args: {
9050
+ p_apikey: string;
9051
+ p_url: string;
9052
+ };
9053
+ Returns: number;
9054
+ };
9055
+ schedule_floriday_collections_sync: {
9056
+ Args: {
9057
+ p_apikey: string;
9058
+ p_url: string;
9059
+ };
9060
+ Returns: number;
9061
+ };
9062
+ schedule_floriday_commercial_service_types_sync: {
9063
+ Args: {
9064
+ p_apikey: string;
9065
+ p_url: string;
9066
+ };
9067
+ Returns: number;
9068
+ };
6523
9069
  schedule_floriday_connections_sync: {
6524
9070
  Args: {
6525
9071
  p_apikey: string;
@@ -6527,6 +9073,20 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6527
9073
  };
6528
9074
  Returns: number;
6529
9075
  };
9076
+ schedule_floriday_contract_trade_item_groups_sync: {
9077
+ Args: {
9078
+ p_apikey: string;
9079
+ p_url: string;
9080
+ };
9081
+ Returns: number;
9082
+ };
9083
+ schedule_floriday_contracts_sync: {
9084
+ Args: {
9085
+ p_apikey: string;
9086
+ p_url: string;
9087
+ };
9088
+ Returns: number;
9089
+ };
6530
9090
  schedule_floriday_customer_organizations_sync: {
6531
9091
  Args: {
6532
9092
  p_apikey: string;
@@ -6534,6 +9094,48 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6534
9094
  };
6535
9095
  Returns: number;
6536
9096
  };
9097
+ schedule_floriday_customer_stickers_sync: {
9098
+ Args: {
9099
+ p_apikey: string;
9100
+ p_url: string;
9101
+ };
9102
+ Returns: number;
9103
+ };
9104
+ schedule_floriday_delivery_condition_sets_sync: {
9105
+ Args: {
9106
+ p_apikey: string;
9107
+ p_url: string;
9108
+ };
9109
+ Returns: number;
9110
+ };
9111
+ schedule_floriday_delivery_locations_sync: {
9112
+ Args: {
9113
+ p_apikey: string;
9114
+ p_url: string;
9115
+ };
9116
+ Returns: number;
9117
+ };
9118
+ schedule_floriday_delivery_orders_sync: {
9119
+ Args: {
9120
+ p_apikey: string;
9121
+ p_url: string;
9122
+ };
9123
+ Returns: number;
9124
+ };
9125
+ schedule_floriday_fulfillment_orders_sync: {
9126
+ Args: {
9127
+ p_apikey: string;
9128
+ p_url: string;
9129
+ };
9130
+ Returns: number;
9131
+ };
9132
+ schedule_floriday_invoices_sync: {
9133
+ Args: {
9134
+ p_apikey: string;
9135
+ p_url: string;
9136
+ };
9137
+ Returns: number;
9138
+ };
6537
9139
  schedule_floriday_network_sync: {
6538
9140
  Args: {
6539
9141
  p_apikey: string;
@@ -6541,6 +9143,34 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6541
9143
  };
6542
9144
  Returns: number;
6543
9145
  };
9146
+ schedule_floriday_packings_sync: {
9147
+ Args: {
9148
+ p_apikey: string;
9149
+ p_url: string;
9150
+ };
9151
+ Returns: number;
9152
+ };
9153
+ schedule_floriday_price_groups_sync: {
9154
+ Args: {
9155
+ p_apikey: string;
9156
+ p_url: string;
9157
+ };
9158
+ Returns: number;
9159
+ };
9160
+ schedule_floriday_reference_data_refresh: {
9161
+ Args: {
9162
+ p_apikey: string;
9163
+ p_url: string;
9164
+ };
9165
+ Returns: number;
9166
+ };
9167
+ schedule_floriday_sales_strategies_sync: {
9168
+ Args: {
9169
+ p_apikey: string;
9170
+ p_url: string;
9171
+ };
9172
+ Returns: number;
9173
+ };
6544
9174
  schedule_floriday_salesorders_sync: {
6545
9175
  Args: {
6546
9176
  p_apikey: string;
@@ -6555,6 +9185,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6555
9185
  };
6556
9186
  Returns: number;
6557
9187
  };
9188
+ schedule_floriday_trade_item_classifications_sync: {
9189
+ Args: {
9190
+ p_apikey: string;
9191
+ p_url: string;
9192
+ };
9193
+ Returns: number;
9194
+ };
6558
9195
  schedule_floriday_trade_items_sync: {
6559
9196
  Args: {
6560
9197
  p_apikey: string;
@@ -6562,6 +9199,20 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6562
9199
  };
6563
9200
  Returns: number;
6564
9201
  };
9202
+ schedule_floriday_trips_sync: {
9203
+ Args: {
9204
+ p_apikey: string;
9205
+ p_url: string;
9206
+ };
9207
+ Returns: number;
9208
+ };
9209
+ schedule_floriday_warehouses_sync: {
9210
+ Args: {
9211
+ p_apikey: string;
9212
+ p_url: string;
9213
+ };
9214
+ Returns: number;
9215
+ };
6565
9216
  schedule_twinfield_customers_sync: {
6566
9217
  Args: {
6567
9218
  p_apikey: string;
@@ -6590,6 +9241,14 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6590
9241
  };
6591
9242
  Returns: number;
6592
9243
  };
9244
+ schedule_twinfield_push_queue_flush: {
9245
+ Args: {
9246
+ p_apikey: string;
9247
+ p_cron_secret?: string;
9248
+ p_url: string;
9249
+ };
9250
+ Returns: number;
9251
+ };
6593
9252
  schedule_twinfield_token_refresh: {
6594
9253
  Args: {
6595
9254
  p_apikey: string;
@@ -6628,8 +9287,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6628
9287
  };
6629
9288
  };
6630
9289
  Enums: {
6631
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
9290
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
6632
9291
  exact_env: "staging" | "live";
9292
+ exact_push_status: "pending" | "sent" | "error";
6633
9293
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
6634
9294
  };
6635
9295
  CompositeTypes: { [_ in never]: never; };
@@ -6640,5 +9300,6 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6640
9300
  claims: import("@supabase/auth-js").JwtPayload;
6641
9301
  }, undefined, undefined, undefined>], undefined, Promise<{
6642
9302
  orders: FloridayOrder[];
9303
+ error?: string;
6643
9304
  }>>;
6644
9305
  //# sourceMappingURL=floriday.functions.d.ts.map