@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
@@ -2,6 +2,48 @@ import type { Database } from './types';
2
2
  export declare const requireSupabaseAuth: import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
3
3
  supabase: import("@supabase/supabase-js").SupabaseClient<Database, "public", "public", {
4
4
  Tables: {
5
+ afhandeling_settings: {
6
+ Row: {
7
+ created_at: string;
8
+ id: string;
9
+ max_workdays_earlier_pick: number;
10
+ pick_days_before_transport: number;
11
+ pick_distribution_enabled: boolean;
12
+ signup_mail_enabled: boolean;
13
+ signup_mail_lead_minutes: number;
14
+ signup_mail_purpose: string;
15
+ transport_register_days_before: number;
16
+ updated_at: string;
17
+ user_id: string;
18
+ };
19
+ Insert: {
20
+ created_at?: string;
21
+ id?: string;
22
+ max_workdays_earlier_pick?: number;
23
+ pick_days_before_transport?: number;
24
+ pick_distribution_enabled?: boolean;
25
+ signup_mail_enabled?: boolean;
26
+ signup_mail_lead_minutes?: number;
27
+ signup_mail_purpose?: string;
28
+ transport_register_days_before?: number;
29
+ updated_at?: string;
30
+ user_id: string;
31
+ };
32
+ Update: {
33
+ created_at?: string;
34
+ id?: string;
35
+ max_workdays_earlier_pick?: number;
36
+ pick_days_before_transport?: number;
37
+ pick_distribution_enabled?: boolean;
38
+ signup_mail_enabled?: boolean;
39
+ signup_mail_lead_minutes?: number;
40
+ signup_mail_purpose?: string;
41
+ transport_register_days_before?: number;
42
+ updated_at?: string;
43
+ user_id?: string;
44
+ };
45
+ Relationships: [];
46
+ };
5
47
  agenda_connections: {
6
48
  Row: {
7
49
  account_email: string | null;
@@ -270,6 +312,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
270
312
  invoice_run_id: string | null;
271
313
  invoice_status: string | null;
272
314
  invoiced_at: string | null;
315
+ notes: string | null;
273
316
  number_of_people: number;
274
317
  room_id: string;
275
318
  start_time: string;
@@ -294,6 +337,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
294
337
  invoice_run_id?: string | null;
295
338
  invoice_status?: string | null;
296
339
  invoiced_at?: string | null;
340
+ notes?: string | null;
297
341
  number_of_people?: number;
298
342
  room_id: string;
299
343
  start_time: string;
@@ -318,6 +362,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
318
362
  invoice_run_id?: string | null;
319
363
  invoice_status?: string | null;
320
364
  invoiced_at?: string | null;
365
+ notes?: string | null;
321
366
  number_of_people?: number;
322
367
  room_id?: string;
323
368
  start_time?: string;
@@ -401,6 +446,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
401
446
  referencedColumns: ["id"];
402
447
  }];
403
448
  };
449
+ carrier_signup_dispatches: {
450
+ Row: {
451
+ carrier_id: string;
452
+ cart_count: number;
453
+ created_at: string;
454
+ id: string;
455
+ order_count: number;
456
+ outbox_id: string | null;
457
+ pickup_date: string;
458
+ pickup_moment_key: string;
459
+ sent_at: string;
460
+ signup_deadline: string;
461
+ };
462
+ Insert: {
463
+ carrier_id: string;
464
+ cart_count?: number;
465
+ created_at?: string;
466
+ id?: string;
467
+ order_count?: number;
468
+ outbox_id?: string | null;
469
+ pickup_date: string;
470
+ pickup_moment_key: string;
471
+ sent_at?: string;
472
+ signup_deadline: string;
473
+ };
474
+ Update: {
475
+ carrier_id?: string;
476
+ cart_count?: number;
477
+ created_at?: string;
478
+ id?: string;
479
+ order_count?: number;
480
+ outbox_id?: string | null;
481
+ pickup_date?: string;
482
+ pickup_moment_key?: string;
483
+ sent_at?: string;
484
+ signup_deadline?: string;
485
+ };
486
+ Relationships: [{
487
+ foreignKeyName: "carrier_signup_dispatches_carrier_id_fkey";
488
+ columns: ["carrier_id"];
489
+ isOneToOne: false;
490
+ referencedRelation: "carriers";
491
+ referencedColumns: ["id"];
492
+ }];
493
+ };
404
494
  carriers: {
405
495
  Row: {
406
496
  address: string | null;
@@ -409,11 +499,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
409
499
  delivery_days: number | null;
410
500
  email: string | null;
411
501
  id: string;
502
+ is_default: boolean;
412
503
  name: string;
413
504
  notes: string | null;
414
505
  phone: string | null;
506
+ pickup_moments: import("./types").Json;
507
+ service_cities: string[];
508
+ service_countries: string[];
509
+ service_provinces: string[];
510
+ signup_days_before_delivery: number;
415
511
  signup_time_1: string | null;
416
512
  signup_time_2: string | null;
513
+ sort_order: number;
417
514
  updated_at: string;
418
515
  user_id: string;
419
516
  };
@@ -424,11 +521,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
424
521
  delivery_days?: number | null;
425
522
  email?: string | null;
426
523
  id?: string;
524
+ is_default?: boolean;
427
525
  name: string;
428
526
  notes?: string | null;
429
527
  phone?: string | null;
528
+ pickup_moments?: import("./types").Json;
529
+ service_cities?: string[];
530
+ service_countries?: string[];
531
+ service_provinces?: string[];
532
+ signup_days_before_delivery?: number;
430
533
  signup_time_1?: string | null;
431
534
  signup_time_2?: string | null;
535
+ sort_order?: number;
432
536
  updated_at?: string;
433
537
  user_id: string;
434
538
  };
@@ -439,16 +543,62 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
439
543
  delivery_days?: number | null;
440
544
  email?: string | null;
441
545
  id?: string;
546
+ is_default?: boolean;
442
547
  name?: string;
443
548
  notes?: string | null;
444
549
  phone?: string | null;
550
+ pickup_moments?: import("./types").Json;
551
+ service_cities?: string[];
552
+ service_countries?: string[];
553
+ service_provinces?: string[];
554
+ signup_days_before_delivery?: number;
445
555
  signup_time_1?: string | null;
446
556
  signup_time_2?: string | null;
557
+ sort_order?: number;
447
558
  updated_at?: string;
448
559
  user_id?: string;
449
560
  };
450
561
  Relationships: [];
451
562
  };
563
+ cart_pick_overrides: {
564
+ Row: {
565
+ cart_index: number;
566
+ created_at: string;
567
+ id: string;
568
+ moved_from_date: string | null;
569
+ notes: string | null;
570
+ order_id: string;
571
+ order_source: string;
572
+ pick_date: string;
573
+ status: string;
574
+ updated_at: string;
575
+ };
576
+ Insert: {
577
+ cart_index: number;
578
+ created_at?: string;
579
+ id?: string;
580
+ moved_from_date?: string | null;
581
+ notes?: string | null;
582
+ order_id: string;
583
+ order_source: string;
584
+ pick_date: string;
585
+ status?: string;
586
+ updated_at?: string;
587
+ };
588
+ Update: {
589
+ cart_index?: number;
590
+ created_at?: string;
591
+ id?: string;
592
+ moved_from_date?: string | null;
593
+ notes?: string | null;
594
+ order_id?: string;
595
+ order_source?: string;
596
+ pick_date?: string;
597
+ status?: string;
598
+ updated_at?: string;
599
+ };
600
+ Relationships: [];
601
+ };
452
602
  collections: {
453
603
  Row: {
454
604
  created_at: string;
@@ -560,50 +710,74 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
560
710
  customer_delivery_locations: {
561
711
  Row: {
562
712
  address_line: string | null;
713
+ carrier_assignment_source: string;
714
+ carrier_id: string | null;
563
715
  city: string | null;
564
716
  country: string | null;
565
717
  created_at: string;
566
718
  customer_id: string;
567
719
  floriday_location_id: string | null;
568
720
  gln: string | null;
721
+ house_number: string | null;
569
722
  id: string;
570
723
  is_primary: boolean;
571
724
  name: string | null;
572
725
  postal_code: string | null;
726
+ province: string | null;
573
727
  raw: import("./types").Json | null;
728
+ self_pickup: boolean;
729
+ street: string | null;
574
730
  updated_at: string;
575
731
  };
576
732
  Insert: {
577
733
  address_line?: string | null;
734
+ carrier_assignment_source?: string;
735
+ carrier_id?: string | null;
578
736
  city?: string | null;
579
737
  country?: string | null;
580
738
  created_at?: string;
581
739
  customer_id: string;
582
740
  floriday_location_id?: string | null;
583
741
  gln?: string | null;
742
+ house_number?: string | null;
584
743
  id?: string;
585
744
  is_primary?: boolean;
586
745
  name?: string | null;
587
746
  postal_code?: string | null;
747
+ province?: string | null;
588
748
  raw?: import("./types").Json | null;
749
+ self_pickup?: boolean;
750
+ street?: string | null;
589
751
  updated_at?: string;
590
752
  };
591
753
  Update: {
592
754
  address_line?: string | null;
755
+ carrier_assignment_source?: string;
756
+ carrier_id?: string | null;
593
757
  city?: string | null;
594
758
  country?: string | null;
595
759
  created_at?: string;
596
760
  customer_id?: string;
597
761
  floriday_location_id?: string | null;
598
762
  gln?: string | null;
763
+ house_number?: string | null;
599
764
  id?: string;
600
765
  is_primary?: boolean;
601
766
  name?: string | null;
602
767
  postal_code?: string | null;
768
+ province?: string | null;
603
769
  raw?: import("./types").Json | null;
770
+ self_pickup?: boolean;
771
+ street?: string | null;
604
772
  updated_at?: string;
605
773
  };
606
774
  Relationships: [{
775
+ foreignKeyName: "customer_delivery_locations_carrier_id_fkey";
776
+ columns: ["carrier_id"];
777
+ isOneToOne: false;
778
+ referencedRelation: "carriers";
779
+ referencedColumns: ["id"];
780
+ }, {
607
781
  foreignKeyName: "customer_delivery_locations_customer_id_fkey";
608
782
  columns: ["customer_id"];
609
783
  isOneToOne: false;
@@ -1408,18 +1582,21 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1408
1582
  };
1409
1583
  email_auth_purpose_settings: {
1410
1584
  Row: {
1585
+ default_cc: string[];
1411
1586
  purpose: string;
1412
1587
  reply_to: string | null;
1413
1588
  updated_at: string;
1414
1589
  updated_by: string | null;
1415
1590
  };
1416
1591
  Insert: {
1592
+ default_cc?: string[];
1417
1593
  purpose: string;
1418
1594
  reply_to?: string | null;
1419
1595
  updated_at?: string;
1420
1596
  updated_by?: string | null;
1421
1597
  };
1422
1598
  Update: {
1599
+ default_cc?: string[];
1423
1600
  purpose?: string;
1424
1601
  reply_to?: string | null;
1425
1602
  updated_at?: string;
@@ -2189,6 +2366,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2189
2366
  referencedColumns: ["id"];
2190
2367
  }];
2191
2368
  };
2369
+ exact_push_queue: {
2370
+ Row: {
2371
+ attempts: number;
2372
+ connection_id: string;
2373
+ created_at: string;
2374
+ external_id: string | null;
2375
+ id: string;
2376
+ idempotency_hash: string;
2377
+ last_error: string | null;
2378
+ payload: import("./types").Json;
2379
+ status: Database["public"]["Enums"]["exact_push_status"];
2380
+ updated_at: string;
2381
+ };
2382
+ Insert: {
2383
+ attempts?: number;
2384
+ connection_id: string;
2385
+ created_at?: string;
2386
+ external_id?: string | null;
2387
+ id?: string;
2388
+ idempotency_hash: string;
2389
+ last_error?: string | null;
2390
+ payload: import("./types").Json;
2391
+ status?: Database["public"]["Enums"]["exact_push_status"];
2392
+ updated_at?: string;
2393
+ };
2394
+ Update: {
2395
+ attempts?: number;
2396
+ connection_id?: string;
2397
+ created_at?: string;
2398
+ external_id?: string | null;
2399
+ id?: string;
2400
+ idempotency_hash?: string;
2401
+ last_error?: string | null;
2402
+ payload?: import("./types").Json;
2403
+ status?: Database["public"]["Enums"]["exact_push_status"];
2404
+ updated_at?: string;
2405
+ };
2406
+ Relationships: [{
2407
+ foreignKeyName: "exact_push_queue_connection_id_fkey";
2408
+ columns: ["connection_id"];
2409
+ isOneToOne: false;
2410
+ referencedRelation: "exact_connections";
2411
+ referencedColumns: ["id"];
2412
+ }];
2413
+ };
2192
2414
  exact_refresh_locks: {
2193
2415
  Row: {
2194
2416
  environment: Database["public"]["Enums"]["exact_env"];
@@ -2251,6 +2473,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2251
2473
  connection_id: string;
2252
2474
  last_error: string | null;
2253
2475
  last_modified_cursor: string | null;
2476
+ last_modified_cursor_customers: string | null;
2477
+ last_modified_cursor_invoices: string | null;
2254
2478
  last_synced_at: string | null;
2255
2479
  status: string;
2256
2480
  updated_at: string;
@@ -2259,6 +2483,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2259
2483
  connection_id: string;
2260
2484
  last_error?: string | null;
2261
2485
  last_modified_cursor?: string | null;
2486
+ last_modified_cursor_customers?: string | null;
2487
+ last_modified_cursor_invoices?: string | null;
2262
2488
  last_synced_at?: string | null;
2263
2489
  status?: string;
2264
2490
  updated_at?: string;
@@ -2267,6 +2493,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2267
2493
  connection_id?: string;
2268
2494
  last_error?: string | null;
2269
2495
  last_modified_cursor?: string | null;
2496
+ last_modified_cursor_customers?: string | null;
2497
+ last_modified_cursor_invoices?: string | null;
2270
2498
  last_synced_at?: string | null;
2271
2499
  status?: string;
2272
2500
  updated_at?: string;
@@ -2309,6 +2537,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2309
2537
  };
2310
2538
  Relationships: [];
2311
2539
  };
2540
+ external_invoice_providers: {
2541
+ Row: {
2542
+ color: string | null;
2543
+ created_at: string;
2544
+ hmac_secret_name: string | null;
2545
+ icon: string | null;
2546
+ is_enabled: boolean;
2547
+ label: string;
2548
+ last_synced_at: string | null;
2549
+ provider: string;
2550
+ push_endpoint: string | null;
2551
+ sort_order: number;
2552
+ status_endpoint: string | null;
2553
+ sync_endpoint: string | null;
2554
+ updated_at: string;
2555
+ };
2556
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
2587
+ };
2312
2588
  extra_categories: {
2313
2589
  Row: {
2314
2590
  created_at: string;
@@ -2333,12 +2609,40 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2333
2609
  };
2334
2610
  Relationships: [];
2335
2611
  };
2612
+ extra_pricing_types: {
2613
+ Row: {
2614
+ code: string;
2615
+ created_at: string;
2616
+ id: string;
2617
+ label: string;
2618
+ sort_order: number;
2619
+ updated_at: string;
2620
+ };
2621
+ Insert: {
2622
+ code: string;
2623
+ created_at?: string;
2624
+ id?: string;
2625
+ label: string;
2626
+ sort_order?: number;
2627
+ updated_at?: string;
2628
+ };
2629
+ Update: {
2630
+ code?: string;
2631
+ created_at?: string;
2632
+ id?: string;
2633
+ label?: string;
2634
+ sort_order?: number;
2635
+ updated_at?: string;
2636
+ };
2637
+ Relationships: [];
2638
+ };
2336
2639
  extras: {
2337
2640
  Row: {
2338
2641
  category: string;
2339
2642
  created_at: string;
2340
2643
  exact_article_id: string | null;
2341
2644
  id: string;
2645
+ image_url: string | null;
2342
2646
  is_active: boolean;
2343
2647
  name: string;
2344
2648
  price: number;
@@ -2349,6 +2653,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2349
2653
  created_at?: string;
2350
2654
  exact_article_id?: string | null;
2351
2655
  id?: string;
2656
+ image_url?: string | null;
2352
2657
  is_active?: boolean;
2353
2658
  name: string;
2354
2659
  price?: number;
@@ -2359,6 +2664,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2359
2664
  created_at?: string;
2360
2665
  exact_article_id?: string | null;
2361
2666
  id?: string;
2667
+ image_url?: string | null;
2362
2668
  is_active?: boolean;
2363
2669
  name?: string;
2364
2670
  price?: number;
@@ -2456,230 +2762,1298 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2456
2762
  };
2457
2763
  Relationships: [];
2458
2764
  };
2459
- floriday_carriers_cache: {
2765
+ floriday_additional_services_cache: {
2460
2766
  Row: {
2461
- connection_id: string | null;
2462
- created_at: string;
2767
+ connection_id: string;
2463
2768
  data: import("./types").Json;
2464
2769
  fetched_at: string;
2465
- gln_code: string | null;
2466
- id: string;
2467
- name: string | null;
2468
- organization_id: string;
2770
+ floriday_id: string;
2771
+ is_deleted: boolean;
2772
+ sequence_number: number;
2469
2773
  updated_at: string;
2470
2774
  };
2471
2775
  Insert: {
2472
- connection_id?: string | null;
2473
- created_at?: string;
2776
+ connection_id: string;
2474
2777
  data: import("./types").Json;
2475
2778
  fetched_at?: string;
2476
- gln_code?: string | null;
2477
- id?: string;
2478
- name?: string | null;
2479
- organization_id: string;
2779
+ floriday_id: string;
2780
+ is_deleted?: boolean;
2781
+ sequence_number?: number;
2480
2782
  updated_at?: string;
2481
2783
  };
2482
2784
  Update: {
2483
- connection_id?: string | null;
2484
- created_at?: string;
2785
+ connection_id?: string;
2485
2786
  data?: import("./types").Json;
2486
2787
  fetched_at?: string;
2487
- gln_code?: string | null;
2488
- id?: string;
2489
- name?: string | null;
2490
- organization_id?: string;
2788
+ floriday_id?: string;
2789
+ is_deleted?: boolean;
2790
+ sequence_number?: number;
2491
2791
  updated_at?: string;
2492
2792
  };
2493
2793
  Relationships: [{
2494
- foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
2794
+ foreignKeyName: "floriday_additional_services_cache_connection_id_fkey";
2495
2795
  columns: ["connection_id"];
2496
2796
  isOneToOne: false;
2497
2797
  referencedRelation: "floriday_connections";
2498
2798
  referencedColumns: ["id"];
2499
2799
  }];
2500
2800
  };
2501
- floriday_connections: {
2801
+ floriday_agreement_calloffs_cache: {
2502
2802
  Row: {
2503
- access_token: string | null;
2504
- api_key: string;
2505
- client_id: string;
2506
- client_secret: string;
2507
- created_at: string;
2508
- customers_endpoint: string | null;
2509
- environment: string;
2510
- gln_code: string | null;
2803
+ agreement_id: string | null;
2804
+ connection_id: string;
2805
+ data: import("./types").Json;
2806
+ delivery_date: string | null;
2807
+ fetched_at: string;
2808
+ floriday_id: string;
2511
2809
  id: string;
2512
- is_active: boolean;
2513
- label: string;
2514
- organization_name: string | null;
2515
- preferred_warehouse_id: string | null;
2516
- preferred_warehouse_name: string | null;
2517
- token_expires_at: string | null;
2810
+ is_deleted: boolean;
2811
+ sequence_number: number;
2812
+ status: string | null;
2518
2813
  updated_at: string;
2519
2814
  };
2520
2815
  Insert: {
2521
- access_token?: string | null;
2522
- api_key: string;
2523
- client_id: string;
2524
- client_secret: string;
2525
- created_at?: string;
2526
- customers_endpoint?: string | null;
2527
- environment: string;
2528
- gln_code?: string | null;
2816
+ agreement_id?: string | null;
2817
+ connection_id: string;
2818
+ data?: import("./types").Json;
2819
+ delivery_date?: string | null;
2820
+ fetched_at?: string;
2821
+ floriday_id: string;
2529
2822
  id?: string;
2530
- is_active?: boolean;
2531
- label?: string;
2532
- organization_name?: string | null;
2533
- preferred_warehouse_id?: string | null;
2534
- preferred_warehouse_name?: string | null;
2535
- token_expires_at?: string | null;
2823
+ is_deleted?: boolean;
2824
+ sequence_number?: number;
2825
+ status?: string | null;
2536
2826
  updated_at?: string;
2537
2827
  };
2538
2828
  Update: {
2539
- access_token?: string | null;
2540
- api_key?: string;
2541
- client_id?: string;
2542
- client_secret?: string;
2829
+ agreement_id?: string | null;
2830
+ connection_id?: string;
2831
+ data?: import("./types").Json;
2832
+ delivery_date?: string | null;
2833
+ fetched_at?: string;
2834
+ floriday_id?: string;
2835
+ id?: string;
2836
+ is_deleted?: boolean;
2837
+ sequence_number?: number;
2838
+ status?: string | null;
2839
+ updated_at?: string;
2840
+ };
2841
+ Relationships: [{
2842
+ foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
2843
+ columns: ["connection_id"];
2844
+ isOneToOne: false;
2845
+ referencedRelation: "floriday_connections";
2846
+ referencedColumns: ["id"];
2847
+ }];
2848
+ };
2849
+ floriday_agreements_cache: {
2850
+ Row: {
2851
+ buyer_organization_id: string | null;
2852
+ connection_id: string;
2853
+ data: import("./types").Json;
2854
+ fetched_at: string;
2855
+ floriday_id: string;
2856
+ id: string;
2857
+ is_deleted: boolean;
2858
+ sequence_number: number;
2859
+ status: string | null;
2860
+ updated_at: string;
2861
+ valid_from: string | null;
2862
+ valid_until: string | null;
2863
+ };
2864
+ Insert: {
2865
+ buyer_organization_id?: string | null;
2866
+ connection_id: string;
2867
+ data?: import("./types").Json;
2868
+ fetched_at?: string;
2869
+ floriday_id: string;
2870
+ id?: string;
2871
+ is_deleted?: boolean;
2872
+ sequence_number?: number;
2873
+ status?: string | null;
2874
+ updated_at?: string;
2875
+ valid_from?: string | null;
2876
+ valid_until?: string | null;
2877
+ };
2878
+ Update: {
2879
+ buyer_organization_id?: string | null;
2880
+ connection_id?: string;
2881
+ data?: import("./types").Json;
2882
+ fetched_at?: string;
2883
+ floriday_id?: string;
2884
+ id?: string;
2885
+ is_deleted?: boolean;
2886
+ sequence_number?: number;
2887
+ status?: string | null;
2888
+ updated_at?: string;
2889
+ valid_from?: string | null;
2890
+ valid_until?: string | null;
2891
+ };
2892
+ Relationships: [{
2893
+ foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
2894
+ columns: ["connection_id"];
2895
+ isOneToOne: false;
2896
+ referencedRelation: "floriday_connections";
2897
+ referencedColumns: ["id"];
2898
+ }];
2899
+ };
2900
+ floriday_auction_letters_cache: {
2901
+ Row: {
2902
+ auction_letter_code: string;
2903
+ clock_supply_id: string;
2904
+ connection_id: string;
2905
+ content_type: string;
2906
+ fetched_at: string;
2907
+ id: string;
2908
+ storage_path: string;
2909
+ };
2910
+ Insert: {
2911
+ auction_letter_code: string;
2912
+ clock_supply_id: string;
2913
+ connection_id: string;
2914
+ content_type?: string;
2915
+ fetched_at?: string;
2916
+ id?: string;
2917
+ storage_path: string;
2918
+ };
2919
+ Update: {
2920
+ auction_letter_code?: string;
2921
+ clock_supply_id?: string;
2922
+ connection_id?: string;
2923
+ content_type?: string;
2924
+ fetched_at?: string;
2925
+ id?: string;
2926
+ storage_path?: string;
2927
+ };
2928
+ Relationships: [{
2929
+ foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
2930
+ columns: ["connection_id"];
2931
+ isOneToOne: false;
2932
+ referencedRelation: "floriday_connections";
2933
+ referencedColumns: ["id"];
2934
+ }];
2935
+ };
2936
+ floriday_base_items_cache: {
2937
+ Row: {
2938
+ connection_id: string;
2939
+ data: import("./types").Json;
2940
+ fetched_at: string;
2941
+ floriday_id: string;
2942
+ is_deleted: boolean;
2943
+ sequence_number: number;
2944
+ updated_at: string;
2945
+ };
2946
+ Insert: {
2947
+ connection_id: string;
2948
+ data: import("./types").Json;
2949
+ fetched_at?: string;
2950
+ floriday_id: string;
2951
+ is_deleted?: boolean;
2952
+ sequence_number?: number;
2953
+ updated_at?: string;
2954
+ };
2955
+ Update: {
2956
+ connection_id?: string;
2957
+ data?: import("./types").Json;
2958
+ fetched_at?: string;
2959
+ floriday_id?: string;
2960
+ is_deleted?: boolean;
2961
+ sequence_number?: number;
2962
+ updated_at?: string;
2963
+ };
2964
+ Relationships: [{
2965
+ foreignKeyName: "floriday_base_items_cache_connection_id_fkey";
2966
+ columns: ["connection_id"];
2967
+ isOneToOne: false;
2968
+ referencedRelation: "floriday_connections";
2969
+ referencedColumns: ["id"];
2970
+ }];
2971
+ };
2972
+ floriday_blanket_orders_cache: {
2973
+ Row: {
2974
+ connection_id: string;
2975
+ contract_id: string | null;
2976
+ created_at: string;
2977
+ data: import("./types").Json;
2978
+ fetched_at: string;
2979
+ floriday_id: string;
2980
+ id: string;
2981
+ is_deleted: boolean;
2982
+ sequence_number: number;
2983
+ updated_at: string;
2984
+ };
2985
+ Insert: {
2986
+ connection_id: string;
2987
+ contract_id?: string | null;
2543
2988
  created_at?: string;
2544
- customers_endpoint?: string | null;
2545
- environment?: string;
2989
+ data: import("./types").Json;
2990
+ fetched_at?: string;
2991
+ floriday_id: string;
2992
+ id?: string;
2993
+ is_deleted?: boolean;
2994
+ sequence_number?: number;
2995
+ updated_at?: string;
2996
+ };
2997
+ Update: {
2998
+ connection_id?: string;
2999
+ contract_id?: string | null;
3000
+ created_at?: string;
3001
+ data?: import("./types").Json;
3002
+ fetched_at?: string;
3003
+ floriday_id?: string;
3004
+ id?: string;
3005
+ is_deleted?: boolean;
3006
+ sequence_number?: number;
3007
+ updated_at?: string;
3008
+ };
3009
+ Relationships: [{
3010
+ foreignKeyName: "floriday_blanket_orders_cache_connection_id_fkey";
3011
+ columns: ["connection_id"];
3012
+ isOneToOne: false;
3013
+ referencedRelation: "floriday_connections";
3014
+ referencedColumns: ["id"];
3015
+ }];
3016
+ };
3017
+ floriday_carriers_cache: {
3018
+ Row: {
3019
+ connection_id: string | null;
3020
+ created_at: string;
3021
+ data: import("./types").Json;
3022
+ fetched_at: string;
3023
+ gln_code: string | null;
3024
+ id: string;
3025
+ name: string | null;
3026
+ organization_id: string;
3027
+ updated_at: string;
3028
+ };
3029
+ Insert: {
3030
+ connection_id?: string | null;
3031
+ created_at?: string;
3032
+ data: import("./types").Json;
3033
+ fetched_at?: string;
2546
3034
  gln_code?: string | null;
2547
3035
  id?: string;
2548
- is_active?: boolean;
2549
- label?: string;
2550
- organization_name?: string | null;
2551
- preferred_warehouse_id?: string | null;
2552
- preferred_warehouse_name?: string | null;
2553
- token_expires_at?: string | null;
3036
+ name?: string | null;
3037
+ organization_id: string;
2554
3038
  updated_at?: string;
2555
3039
  };
2556
- Relationships: [];
3040
+ Update: {
3041
+ connection_id?: string | null;
3042
+ created_at?: string;
3043
+ data?: import("./types").Json;
3044
+ fetched_at?: string;
3045
+ gln_code?: string | null;
3046
+ id?: string;
3047
+ name?: string | null;
3048
+ organization_id?: string;
3049
+ updated_at?: string;
3050
+ };
3051
+ Relationships: [{
3052
+ foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
3053
+ columns: ["connection_id"];
3054
+ isOneToOne: false;
3055
+ referencedRelation: "floriday_connections";
3056
+ referencedColumns: ["id"];
3057
+ }];
2557
3058
  };
2558
- floriday_connections_cache: {
3059
+ floriday_clock_presales_cache: {
2559
3060
  Row: {
2560
3061
  buyer_organization_id: string | null;
2561
- buyer_organization_name: string | null;
3062
+ clock_supply_id: string | null;
2562
3063
  connection_id: string;
2563
3064
  data: import("./types").Json;
2564
- floriday_connection_id: string;
3065
+ fetched_at: string;
3066
+ floriday_id: string;
3067
+ id: string;
2565
3068
  is_deleted: boolean;
2566
3069
  sequence_number: number;
2567
- status: string | null;
2568
- synced_at: string;
3070
+ updated_at: string;
2569
3071
  };
2570
3072
  Insert: {
2571
3073
  buyer_organization_id?: string | null;
2572
- buyer_organization_name?: string | null;
3074
+ clock_supply_id?: string | null;
3075
+ connection_id: string;
3076
+ data?: import("./types").Json;
3077
+ fetched_at?: string;
3078
+ floriday_id: string;
3079
+ id?: string;
3080
+ is_deleted?: boolean;
3081
+ sequence_number?: number;
3082
+ updated_at?: string;
3083
+ };
3084
+ Update: {
3085
+ buyer_organization_id?: string | null;
3086
+ clock_supply_id?: string | null;
3087
+ connection_id?: string;
3088
+ data?: import("./types").Json;
3089
+ fetched_at?: string;
3090
+ floriday_id?: string;
3091
+ id?: string;
3092
+ is_deleted?: boolean;
3093
+ sequence_number?: number;
3094
+ updated_at?: string;
3095
+ };
3096
+ Relationships: [{
3097
+ foreignKeyName: "floriday_clock_presales_cache_connection_id_fkey";
3098
+ columns: ["connection_id"];
3099
+ isOneToOne: false;
3100
+ referencedRelation: "floriday_connections";
3101
+ referencedColumns: ["id"];
3102
+ }];
3103
+ };
3104
+ floriday_clock_supplies_cache: {
3105
+ Row: {
3106
+ auction_date: string | null;
2573
3107
  connection_id: string;
2574
3108
  data: import("./types").Json;
2575
- floriday_connection_id: string;
3109
+ fetched_at: string;
3110
+ floriday_id: string;
3111
+ id: string;
3112
+ is_deleted: boolean;
3113
+ sequence_number: number;
3114
+ status: string | null;
3115
+ trade_item_id: string | null;
3116
+ updated_at: string;
3117
+ };
3118
+ Insert: {
3119
+ auction_date?: string | null;
3120
+ connection_id: string;
3121
+ data?: import("./types").Json;
3122
+ fetched_at?: string;
3123
+ floriday_id: string;
3124
+ id?: string;
3125
+ is_deleted?: boolean;
3126
+ sequence_number?: number;
3127
+ status?: string | null;
3128
+ trade_item_id?: string | null;
3129
+ updated_at?: string;
3130
+ };
3131
+ Update: {
3132
+ auction_date?: string | null;
3133
+ connection_id?: string;
3134
+ data?: import("./types").Json;
3135
+ fetched_at?: string;
3136
+ floriday_id?: string;
3137
+ id?: string;
3138
+ is_deleted?: boolean;
3139
+ sequence_number?: number;
3140
+ status?: string | null;
3141
+ trade_item_id?: string | null;
3142
+ updated_at?: string;
3143
+ };
3144
+ Relationships: [{
3145
+ foreignKeyName: "floriday_clock_supplies_cache_connection_id_fkey";
3146
+ columns: ["connection_id"];
3147
+ isOneToOne: false;
3148
+ referencedRelation: "floriday_connections";
3149
+ referencedColumns: ["id"];
3150
+ }];
3151
+ };
3152
+ floriday_code_lists_cache: {
3153
+ Row: {
3154
+ code: string;
3155
+ environment: string;
3156
+ label: string | null;
3157
+ list_name: string;
3158
+ payload: import("./types").Json | null;
3159
+ updated_at: string;
3160
+ };
3161
+ Insert: {
3162
+ code: string;
3163
+ environment: string;
3164
+ label?: string | null;
3165
+ list_name: string;
3166
+ payload?: import("./types").Json | null;
3167
+ updated_at?: string;
3168
+ };
3169
+ Update: {
3170
+ code?: string;
3171
+ environment?: string;
3172
+ label?: string | null;
3173
+ list_name?: string;
3174
+ payload?: import("./types").Json | null;
3175
+ updated_at?: string;
3176
+ };
3177
+ Relationships: [];
3178
+ };
3179
+ floriday_collections_cache: {
3180
+ Row: {
3181
+ connection_id: string;
3182
+ data: import("./types").Json;
3183
+ fetched_at: string;
3184
+ floriday_id: string;
3185
+ is_deleted: boolean;
3186
+ sequence_number: number;
3187
+ updated_at: string;
3188
+ };
3189
+ Insert: {
3190
+ connection_id: string;
3191
+ data: import("./types").Json;
3192
+ fetched_at?: string;
3193
+ floriday_id: string;
3194
+ is_deleted?: boolean;
3195
+ sequence_number?: number;
3196
+ updated_at?: string;
3197
+ };
3198
+ Update: {
3199
+ connection_id?: string;
3200
+ data?: import("./types").Json;
3201
+ fetched_at?: string;
3202
+ floriday_id?: string;
3203
+ is_deleted?: boolean;
3204
+ sequence_number?: number;
3205
+ updated_at?: string;
3206
+ };
3207
+ Relationships: [{
3208
+ foreignKeyName: "floriday_collections_cache_connection_id_fkey";
3209
+ columns: ["connection_id"];
3210
+ isOneToOne: false;
3211
+ referencedRelation: "floriday_connections";
3212
+ referencedColumns: ["id"];
3213
+ }];
3214
+ };
3215
+ floriday_commercial_service_types_cache: {
3216
+ Row: {
3217
+ connection_id: string;
3218
+ data: import("./types").Json;
3219
+ fetched_at: string;
3220
+ floriday_id: string;
3221
+ is_deleted: boolean;
3222
+ sequence_number: number;
3223
+ updated_at: string;
3224
+ };
3225
+ Insert: {
3226
+ connection_id: string;
3227
+ data: import("./types").Json;
3228
+ fetched_at?: string;
3229
+ floriday_id: string;
3230
+ is_deleted?: boolean;
3231
+ sequence_number?: number;
3232
+ updated_at?: string;
3233
+ };
3234
+ Update: {
3235
+ connection_id?: string;
3236
+ data?: import("./types").Json;
3237
+ fetched_at?: string;
3238
+ floriday_id?: string;
3239
+ is_deleted?: boolean;
3240
+ sequence_number?: number;
3241
+ updated_at?: string;
3242
+ };
3243
+ Relationships: [{
3244
+ foreignKeyName: "floriday_commercial_service_types_cache_connection_id_fkey";
3245
+ columns: ["connection_id"];
3246
+ isOneToOne: false;
3247
+ referencedRelation: "floriday_connections";
3248
+ referencedColumns: ["id"];
3249
+ }];
3250
+ };
3251
+ floriday_connections: {
3252
+ Row: {
3253
+ access_token: string | null;
3254
+ api_key: string;
3255
+ client_id: string;
3256
+ client_secret: string;
3257
+ created_at: string;
3258
+ customers_endpoint: string | null;
3259
+ environment: string;
3260
+ gln_code: string | null;
3261
+ id: string;
3262
+ is_active: boolean;
3263
+ label: string;
3264
+ organization_name: string | null;
3265
+ preferred_warehouse_id: string | null;
3266
+ preferred_warehouse_name: string | null;
3267
+ token_expires_at: string | null;
3268
+ updated_at: string;
3269
+ };
3270
+ Insert: {
3271
+ access_token?: string | null;
3272
+ api_key: string;
3273
+ client_id: string;
3274
+ client_secret: string;
3275
+ created_at?: string;
3276
+ customers_endpoint?: string | null;
3277
+ environment: string;
3278
+ gln_code?: string | null;
3279
+ id?: string;
3280
+ is_active?: boolean;
3281
+ label?: string;
3282
+ organization_name?: string | null;
3283
+ preferred_warehouse_id?: string | null;
3284
+ preferred_warehouse_name?: string | null;
3285
+ token_expires_at?: string | null;
3286
+ updated_at?: string;
3287
+ };
3288
+ Update: {
3289
+ access_token?: string | null;
3290
+ api_key?: string;
3291
+ client_id?: string;
3292
+ client_secret?: string;
3293
+ created_at?: string;
3294
+ customers_endpoint?: string | null;
3295
+ environment?: string;
3296
+ gln_code?: string | null;
3297
+ id?: string;
3298
+ is_active?: boolean;
3299
+ label?: string;
3300
+ organization_name?: string | null;
3301
+ preferred_warehouse_id?: string | null;
3302
+ preferred_warehouse_name?: string | null;
3303
+ token_expires_at?: string | null;
3304
+ updated_at?: string;
3305
+ };
3306
+ Relationships: [];
3307
+ };
3308
+ floriday_connections_cache: {
3309
+ Row: {
3310
+ buyer_organization_id: string | null;
3311
+ buyer_organization_name: string | null;
3312
+ connection_id: string;
3313
+ data: import("./types").Json;
3314
+ floriday_connection_id: string;
3315
+ is_deleted: boolean;
3316
+ sequence_number: number;
3317
+ status: string | null;
3318
+ synced_at: string;
3319
+ };
3320
+ Insert: {
3321
+ buyer_organization_id?: string | null;
3322
+ buyer_organization_name?: string | null;
3323
+ connection_id: string;
3324
+ data: import("./types").Json;
3325
+ floriday_connection_id: string;
3326
+ is_deleted?: boolean;
3327
+ sequence_number: number;
3328
+ status?: string | null;
3329
+ synced_at?: string;
3330
+ };
3331
+ Update: {
3332
+ buyer_organization_id?: string | null;
3333
+ buyer_organization_name?: string | null;
3334
+ connection_id?: string;
3335
+ data?: import("./types").Json;
3336
+ floriday_connection_id?: string;
3337
+ is_deleted?: boolean;
3338
+ sequence_number?: number;
3339
+ status?: string | null;
3340
+ synced_at?: string;
3341
+ };
3342
+ Relationships: [{
3343
+ foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3344
+ columns: ["connection_id"];
3345
+ isOneToOne: false;
3346
+ referencedRelation: "floriday_connections";
3347
+ referencedColumns: ["id"];
3348
+ }];
3349
+ };
3350
+ floriday_contract_trade_item_groups_cache: {
3351
+ Row: {
3352
+ connection_id: string;
3353
+ data: import("./types").Json;
3354
+ fetched_at: string;
3355
+ floriday_id: string;
3356
+ is_deleted: boolean;
3357
+ sequence_number: number;
3358
+ updated_at: string;
3359
+ };
3360
+ Insert: {
3361
+ connection_id: string;
3362
+ data: import("./types").Json;
3363
+ fetched_at?: string;
3364
+ floriday_id: string;
3365
+ is_deleted?: boolean;
3366
+ sequence_number?: number;
3367
+ updated_at?: string;
3368
+ };
3369
+ Update: {
3370
+ connection_id?: string;
3371
+ data?: import("./types").Json;
3372
+ fetched_at?: string;
3373
+ floriday_id?: string;
3374
+ is_deleted?: boolean;
3375
+ sequence_number?: number;
3376
+ updated_at?: string;
3377
+ };
3378
+ Relationships: [{
3379
+ foreignKeyName: "floriday_contract_trade_item_groups_cache_connection_id_fkey";
3380
+ columns: ["connection_id"];
3381
+ isOneToOne: false;
3382
+ referencedRelation: "floriday_connections";
3383
+ referencedColumns: ["id"];
3384
+ }];
3385
+ };
3386
+ floriday_contracts_cache: {
3387
+ Row: {
3388
+ connection_id: string;
3389
+ created_at: string;
3390
+ data: import("./types").Json;
3391
+ fetched_at: string;
3392
+ floriday_id: string;
3393
+ id: string;
3394
+ is_deleted: boolean;
3395
+ sequence_number: number;
3396
+ updated_at: string;
3397
+ };
3398
+ Insert: {
3399
+ connection_id: string;
3400
+ created_at?: string;
3401
+ data: import("./types").Json;
3402
+ fetched_at?: string;
3403
+ floriday_id: string;
3404
+ id?: string;
3405
+ is_deleted?: boolean;
3406
+ sequence_number?: number;
3407
+ updated_at?: string;
3408
+ };
3409
+ Update: {
3410
+ connection_id?: string;
3411
+ created_at?: string;
3412
+ data?: import("./types").Json;
3413
+ fetched_at?: string;
3414
+ floriday_id?: string;
3415
+ id?: string;
3416
+ is_deleted?: boolean;
3417
+ sequence_number?: number;
3418
+ updated_at?: string;
3419
+ };
3420
+ Relationships: [{
3421
+ foreignKeyName: "floriday_contracts_cache_connection_id_fkey";
3422
+ columns: ["connection_id"];
3423
+ isOneToOne: false;
3424
+ referencedRelation: "floriday_connections";
3425
+ referencedColumns: ["id"];
3426
+ }];
3427
+ };
3428
+ floriday_customer_sticker_pdfs_cache: {
3429
+ Row: {
3430
+ byte_size: number | null;
3431
+ connection_id: string;
3432
+ content_type: string;
3433
+ created_at: string;
3434
+ fetched_at: string;
3435
+ id: string;
3436
+ sticker_id: string;
3437
+ storage_path: string;
3438
+ };
3439
+ Insert: {
3440
+ byte_size?: number | null;
3441
+ connection_id: string;
3442
+ content_type?: string;
3443
+ created_at?: string;
3444
+ fetched_at?: string;
3445
+ id?: string;
3446
+ sticker_id: string;
3447
+ storage_path: string;
3448
+ };
3449
+ Update: {
3450
+ byte_size?: number | null;
3451
+ connection_id?: string;
3452
+ content_type?: string;
3453
+ created_at?: string;
3454
+ fetched_at?: string;
3455
+ id?: string;
3456
+ sticker_id?: string;
3457
+ storage_path?: string;
3458
+ };
3459
+ Relationships: [{
3460
+ foreignKeyName: "floriday_customer_sticker_pdfs_cache_connection_id_fkey";
3461
+ columns: ["connection_id"];
3462
+ isOneToOne: false;
3463
+ referencedRelation: "floriday_connections";
3464
+ referencedColumns: ["id"];
3465
+ }];
3466
+ };
3467
+ floriday_customer_stickers_cache: {
3468
+ Row: {
3469
+ connection_id: string;
3470
+ created_at: string;
3471
+ data: import("./types").Json;
3472
+ fetched_at: string;
3473
+ floriday_id: string;
3474
+ id: string;
3475
+ is_deleted: boolean;
3476
+ quantity: number | null;
3477
+ sales_order_id: string | null;
3478
+ sequence_number: number;
3479
+ status: string | null;
3480
+ trade_item_id: string | null;
3481
+ updated_at: string;
3482
+ };
3483
+ Insert: {
3484
+ connection_id: string;
3485
+ created_at?: string;
3486
+ data?: import("./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
+ Update: {
3499
+ connection_id?: string;
3500
+ created_at?: string;
3501
+ data?: import("./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
+ Relationships: [{
3514
+ foreignKeyName: "floriday_customer_stickers_cache_connection_id_fkey";
3515
+ columns: ["connection_id"];
3516
+ isOneToOne: false;
3517
+ referencedRelation: "floriday_connections";
3518
+ referencedColumns: ["id"];
3519
+ }];
3520
+ };
3521
+ floriday_customers_cache: {
3522
+ Row: {
3523
+ connection_id: string | null;
3524
+ data: import("./types").Json;
3525
+ fetched_at: string;
3526
+ gln_code: string | null;
3527
+ is_deleted: boolean;
3528
+ name: string | null;
3529
+ organization_id: string;
3530
+ sequence_number: number | null;
3531
+ };
3532
+ Insert: {
3533
+ connection_id?: string | null;
3534
+ data?: import("./types").Json;
3535
+ fetched_at?: string;
3536
+ gln_code?: string | null;
3537
+ is_deleted?: boolean;
3538
+ name?: string | null;
3539
+ organization_id: string;
3540
+ sequence_number?: number | null;
3541
+ };
3542
+ Update: {
3543
+ connection_id?: string | null;
3544
+ data?: import("./types").Json;
3545
+ fetched_at?: string;
3546
+ gln_code?: string | null;
3547
+ is_deleted?: boolean;
3548
+ name?: string | null;
3549
+ organization_id?: string;
3550
+ sequence_number?: number | null;
3551
+ };
3552
+ Relationships: [{
3553
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3554
+ columns: ["connection_id"];
3555
+ isOneToOne: false;
3556
+ referencedRelation: "floriday_connections";
3557
+ referencedColumns: ["id"];
3558
+ }];
3559
+ };
3560
+ floriday_delivery_condition_sets_cache: {
3561
+ Row: {
3562
+ connection_id: string;
3563
+ data: import("./types").Json;
3564
+ fetched_at: string;
3565
+ floriday_id: string;
3566
+ is_deleted: boolean;
3567
+ sequence_number: number;
3568
+ updated_at: string;
3569
+ };
3570
+ Insert: {
3571
+ connection_id: string;
3572
+ data: import("./types").Json;
3573
+ fetched_at?: string;
3574
+ floriday_id: string;
3575
+ is_deleted?: boolean;
3576
+ sequence_number?: number;
3577
+ updated_at?: string;
3578
+ };
3579
+ Update: {
3580
+ connection_id?: string;
3581
+ data?: import("./types").Json;
3582
+ fetched_at?: string;
3583
+ floriday_id?: string;
3584
+ is_deleted?: boolean;
3585
+ sequence_number?: number;
3586
+ updated_at?: string;
3587
+ };
3588
+ Relationships: [{
3589
+ foreignKeyName: "floriday_delivery_condition_sets_cache_connection_id_fkey";
3590
+ columns: ["connection_id"];
3591
+ isOneToOne: false;
3592
+ referencedRelation: "floriday_connections";
3593
+ referencedColumns: ["id"];
3594
+ }];
3595
+ };
3596
+ floriday_delivery_locations_cache: {
3597
+ Row: {
3598
+ connection_id: string;
3599
+ data: import("./types").Json;
3600
+ fetched_at: string;
3601
+ floriday_id: string;
3602
+ gln_code: string | null;
3603
+ id: string;
3604
+ is_deleted: boolean;
3605
+ name: string | null;
3606
+ organization_id: string | null;
3607
+ updated_at: string;
3608
+ };
3609
+ Insert: {
3610
+ connection_id: string;
3611
+ data?: import("./types").Json;
3612
+ fetched_at?: string;
3613
+ floriday_id: string;
3614
+ gln_code?: string | null;
3615
+ id?: string;
3616
+ is_deleted?: boolean;
3617
+ name?: string | null;
3618
+ organization_id?: string | null;
3619
+ updated_at?: string;
3620
+ };
3621
+ Update: {
3622
+ connection_id?: string;
3623
+ data?: import("./types").Json;
3624
+ fetched_at?: string;
3625
+ floriday_id?: string;
3626
+ gln_code?: string | null;
3627
+ id?: string;
3628
+ is_deleted?: boolean;
3629
+ name?: string | null;
3630
+ organization_id?: string | null;
3631
+ updated_at?: string;
3632
+ };
3633
+ Relationships: [{
3634
+ foreignKeyName: "floriday_delivery_locations_cache_connection_id_fkey";
3635
+ columns: ["connection_id"];
3636
+ isOneToOne: false;
3637
+ referencedRelation: "floriday_connections";
3638
+ referencedColumns: ["id"];
3639
+ }];
3640
+ };
3641
+ floriday_delivery_orders_cache: {
3642
+ Row: {
3643
+ auction_date: string | null;
3644
+ connection_id: string;
3645
+ data: import("./types").Json;
3646
+ destination_warehouse_id: string | null;
3647
+ fetched_at: string;
3648
+ floriday_id: string;
3649
+ id: string;
3650
+ is_deleted: boolean;
3651
+ sequence_number: number;
3652
+ status: string | null;
3653
+ trade_item_id: string | null;
3654
+ updated_at: string;
3655
+ };
3656
+ Insert: {
3657
+ auction_date?: string | null;
3658
+ connection_id: string;
3659
+ data?: import("./types").Json;
3660
+ destination_warehouse_id?: string | null;
3661
+ fetched_at?: string;
3662
+ floriday_id: string;
3663
+ id?: string;
3664
+ is_deleted?: boolean;
3665
+ sequence_number?: number;
3666
+ status?: string | null;
3667
+ trade_item_id?: string | null;
3668
+ updated_at?: string;
3669
+ };
3670
+ Update: {
3671
+ auction_date?: string | null;
3672
+ connection_id?: string;
3673
+ data?: import("./types").Json;
3674
+ destination_warehouse_id?: string | null;
3675
+ fetched_at?: string;
3676
+ floriday_id?: string;
3677
+ id?: string;
3678
+ is_deleted?: boolean;
3679
+ sequence_number?: number;
3680
+ status?: string | null;
3681
+ trade_item_id?: string | null;
3682
+ updated_at?: string;
3683
+ };
3684
+ Relationships: [{
3685
+ foreignKeyName: "floriday_delivery_orders_cache_connection_id_fkey";
3686
+ columns: ["connection_id"];
3687
+ isOneToOne: false;
3688
+ referencedRelation: "floriday_connections";
3689
+ referencedColumns: ["id"];
3690
+ }];
3691
+ };
3692
+ floriday_fulfillment_orders_cache: {
3693
+ Row: {
3694
+ auction_date: string | null;
3695
+ connection_id: string;
3696
+ data: import("./types").Json;
3697
+ delivery_order_id: string | null;
3698
+ despatch_warehouse_id: string | null;
3699
+ destination_warehouse_id: string | null;
3700
+ fetched_at: string;
3701
+ floriday_id: string;
3702
+ id: string;
3703
+ is_deleted: boolean | null;
3704
+ latest_delivery_at: string | null;
3705
+ load_carrier_type: string | null;
3706
+ one_label_only: boolean | null;
3707
+ sequence_number: number;
3708
+ status: string | null;
3709
+ };
3710
+ Insert: {
3711
+ auction_date?: string | null;
3712
+ connection_id: string;
3713
+ data: import("./types").Json;
3714
+ delivery_order_id?: string | null;
3715
+ despatch_warehouse_id?: string | null;
3716
+ destination_warehouse_id?: string | null;
3717
+ fetched_at?: string;
3718
+ floriday_id: string;
3719
+ id?: string;
3720
+ is_deleted?: boolean | null;
3721
+ latest_delivery_at?: string | null;
3722
+ load_carrier_type?: string | null;
3723
+ one_label_only?: boolean | null;
3724
+ sequence_number?: number;
3725
+ status?: string | null;
3726
+ };
3727
+ Update: {
3728
+ auction_date?: string | null;
3729
+ connection_id?: string;
3730
+ data?: import("./types").Json;
3731
+ delivery_order_id?: string | null;
3732
+ despatch_warehouse_id?: string | null;
3733
+ destination_warehouse_id?: string | null;
3734
+ fetched_at?: string;
3735
+ floriday_id?: string;
3736
+ id?: string;
3737
+ is_deleted?: boolean | null;
3738
+ latest_delivery_at?: string | null;
3739
+ load_carrier_type?: string | null;
3740
+ one_label_only?: boolean | null;
3741
+ sequence_number?: number;
3742
+ status?: string | null;
3743
+ };
3744
+ Relationships: [{
3745
+ foreignKeyName: "floriday_fulfillment_orders_cache_connection_id_fkey";
3746
+ columns: ["connection_id"];
3747
+ isOneToOne: false;
3748
+ referencedRelation: "floriday_connections";
3749
+ referencedColumns: ["id"];
3750
+ }];
3751
+ };
3752
+ floriday_invoices_cache: {
3753
+ Row: {
3754
+ buyer_organization_id: string | null;
3755
+ connection_id: string;
3756
+ currency: string | null;
3757
+ data: import("./types").Json;
3758
+ fetched_at: string;
3759
+ floriday_id: string;
3760
+ id: string;
3761
+ invoice_date: string | null;
3762
+ invoice_number: string | null;
3763
+ is_deleted: boolean;
3764
+ sequence_number: number;
3765
+ total_amount: number | null;
3766
+ updated_at: string;
3767
+ };
3768
+ Insert: {
3769
+ buyer_organization_id?: string | null;
3770
+ connection_id: string;
3771
+ currency?: string | null;
3772
+ data?: import("./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
+ Update: {
3784
+ buyer_organization_id?: string | null;
3785
+ connection_id?: string;
3786
+ currency?: string | null;
3787
+ data?: import("./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
+ Relationships: [{
3799
+ foreignKeyName: "floriday_invoices_cache_connection_id_fkey";
3800
+ columns: ["connection_id"];
3801
+ isOneToOne: false;
3802
+ referencedRelation: "floriday_connections";
3803
+ referencedColumns: ["id"];
3804
+ }];
3805
+ };
3806
+ floriday_logistic_labels_cache: {
3807
+ Row: {
3808
+ byte_size: number | null;
3809
+ connection_id: string;
3810
+ content_type: string;
3811
+ fetched_at: string;
3812
+ fulfillment_order_id: string;
3813
+ id: string;
3814
+ logistic_label_code: string;
3815
+ storage_path: string;
3816
+ };
3817
+ Insert: {
3818
+ byte_size?: number | null;
3819
+ connection_id: string;
3820
+ content_type?: string;
3821
+ fetched_at?: string;
3822
+ fulfillment_order_id: string;
3823
+ id?: string;
3824
+ logistic_label_code: string;
3825
+ storage_path: string;
3826
+ };
3827
+ Update: {
3828
+ byte_size?: number | null;
3829
+ connection_id?: string;
3830
+ content_type?: string;
3831
+ fetched_at?: string;
3832
+ fulfillment_order_id?: string;
3833
+ id?: string;
3834
+ logistic_label_code?: string;
3835
+ storage_path?: string;
3836
+ };
3837
+ Relationships: [{
3838
+ foreignKeyName: "floriday_logistic_labels_cache_connection_id_fkey";
3839
+ columns: ["connection_id"];
3840
+ isOneToOne: false;
3841
+ referencedRelation: "floriday_connections";
3842
+ referencedColumns: ["id"];
3843
+ }];
3844
+ };
3845
+ floriday_network_cache: {
3846
+ Row: {
3847
+ city: string | null;
3848
+ connection_id: string;
3849
+ country: string | null;
3850
+ data: import("./types").Json;
3851
+ fetched_at: string;
3852
+ gln: string | null;
3853
+ organization_id: string;
3854
+ organization_name: string | null;
3855
+ };
3856
+ Insert: {
3857
+ city?: string | null;
3858
+ connection_id: string;
3859
+ country?: string | null;
3860
+ data?: import("./types").Json;
3861
+ fetched_at?: string;
3862
+ gln?: string | null;
3863
+ organization_id: string;
3864
+ organization_name?: string | null;
3865
+ };
3866
+ Update: {
3867
+ city?: string | null;
3868
+ connection_id?: string;
3869
+ country?: string | null;
3870
+ data?: import("./types").Json;
3871
+ fetched_at?: string;
3872
+ gln?: string | null;
3873
+ organization_id?: string;
3874
+ organization_name?: string | null;
3875
+ };
3876
+ Relationships: [];
3877
+ };
3878
+ floriday_network_sync_state: {
3879
+ Row: {
3880
+ connection_id: string;
3881
+ last_error: string | null;
3882
+ last_sequence_number: number;
3883
+ last_synced_at: string | null;
3884
+ updated_at: string;
3885
+ };
3886
+ Insert: {
3887
+ connection_id: string;
3888
+ last_error?: string | null;
3889
+ last_sequence_number?: number;
3890
+ last_synced_at?: string | null;
3891
+ updated_at?: string;
3892
+ };
3893
+ Update: {
3894
+ connection_id?: string;
3895
+ last_error?: string | null;
3896
+ last_sequence_number?: number;
3897
+ last_synced_at?: string | null;
3898
+ updated_at?: string;
3899
+ };
3900
+ Relationships: [];
3901
+ };
3902
+ floriday_order_number_map: {
3903
+ Row: {
3904
+ created_at: string;
3905
+ floriday_id: string;
3906
+ order_number: string;
3907
+ };
3908
+ Insert: {
3909
+ created_at?: string;
3910
+ floriday_id: string;
3911
+ order_number: string;
3912
+ };
3913
+ Update: {
3914
+ created_at?: string;
3915
+ floriday_id?: string;
3916
+ order_number?: string;
3917
+ };
3918
+ Relationships: [];
3919
+ };
3920
+ floriday_packings_cache: {
3921
+ Row: {
3922
+ connection_id: string;
3923
+ data: import("./types").Json;
3924
+ fetched_at: string;
3925
+ floriday_id: string;
3926
+ id: string;
3927
+ is_deleted: boolean;
3928
+ sequence_number: number;
3929
+ updated_at: string;
3930
+ };
3931
+ Insert: {
3932
+ connection_id: string;
3933
+ data?: import("./types").Json;
3934
+ fetched_at?: string;
3935
+ floriday_id: string;
3936
+ id?: string;
2576
3937
  is_deleted?: boolean;
2577
- sequence_number: number;
2578
- status?: string | null;
2579
- synced_at?: string;
3938
+ sequence_number?: number;
3939
+ updated_at?: string;
2580
3940
  };
2581
3941
  Update: {
2582
- buyer_organization_id?: string | null;
2583
- buyer_organization_name?: string | null;
2584
3942
  connection_id?: string;
2585
3943
  data?: import("./types").Json;
2586
- floriday_connection_id?: string;
3944
+ fetched_at?: string;
3945
+ floriday_id?: string;
3946
+ id?: string;
2587
3947
  is_deleted?: boolean;
2588
3948
  sequence_number?: number;
2589
- status?: string | null;
2590
- synced_at?: string;
3949
+ updated_at?: string;
2591
3950
  };
2592
3951
  Relationships: [{
2593
- foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3952
+ foreignKeyName: "floriday_packings_cache_connection_id_fkey";
2594
3953
  columns: ["connection_id"];
2595
3954
  isOneToOne: false;
2596
3955
  referencedRelation: "floriday_connections";
2597
3956
  referencedColumns: ["id"];
2598
3957
  }];
2599
3958
  };
2600
- floriday_customers_cache: {
3959
+ floriday_price_groups_cache: {
2601
3960
  Row: {
2602
- connection_id: string | null;
3961
+ connection_id: string;
2603
3962
  data: import("./types").Json;
2604
3963
  fetched_at: string;
2605
- organization_id: string;
3964
+ floriday_id: string;
3965
+ is_deleted: boolean;
3966
+ sequence_number: number;
3967
+ updated_at: string;
2606
3968
  };
2607
3969
  Insert: {
2608
- connection_id?: string | null;
2609
- data?: import("./types").Json;
3970
+ connection_id: string;
3971
+ data: import("./types").Json;
2610
3972
  fetched_at?: string;
2611
- organization_id: string;
3973
+ floriday_id: string;
3974
+ is_deleted?: boolean;
3975
+ sequence_number?: number;
3976
+ updated_at?: string;
2612
3977
  };
2613
3978
  Update: {
2614
- connection_id?: string | null;
3979
+ connection_id?: string;
2615
3980
  data?: import("./types").Json;
2616
3981
  fetched_at?: string;
2617
- organization_id?: string;
3982
+ floriday_id?: string;
3983
+ is_deleted?: boolean;
3984
+ sequence_number?: number;
3985
+ updated_at?: string;
2618
3986
  };
2619
3987
  Relationships: [{
2620
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3988
+ foreignKeyName: "floriday_price_groups_cache_connection_id_fkey";
2621
3989
  columns: ["connection_id"];
2622
3990
  isOneToOne: false;
2623
3991
  referencedRelation: "floriday_connections";
2624
3992
  referencedColumns: ["id"];
2625
3993
  }];
2626
3994
  };
2627
- floriday_network_cache: {
3995
+ floriday_resource_schemas: {
2628
3996
  Row: {
2629
- city: string | null;
2630
- connection_id: string;
2631
- country: string | null;
2632
- data: import("./types").Json;
3997
+ enums: import("./types").Json;
2633
3998
  fetched_at: string;
2634
- gln: string | null;
2635
- organization_id: string;
2636
- organization_name: string | null;
3999
+ resource: string;
4000
+ schema: import("./types").Json;
4001
+ source_url: string | null;
4002
+ version: string;
2637
4003
  };
2638
4004
  Insert: {
2639
- city?: string | null;
2640
- connection_id: string;
2641
- country?: string | null;
2642
- data?: import("./types").Json;
4005
+ enums?: import("./types").Json;
2643
4006
  fetched_at?: string;
2644
- gln?: string | null;
2645
- organization_id: string;
2646
- organization_name?: string | null;
4007
+ resource: string;
4008
+ schema: import("./types").Json;
4009
+ source_url?: string | null;
4010
+ version: string;
2647
4011
  };
2648
4012
  Update: {
2649
- city?: string | null;
2650
- connection_id?: string;
2651
- country?: string | null;
2652
- data?: import("./types").Json;
4013
+ enums?: import("./types").Json;
2653
4014
  fetched_at?: string;
2654
- gln?: string | null;
2655
- organization_id?: string;
2656
- organization_name?: string | null;
4015
+ resource?: string;
4016
+ schema?: import("./types").Json;
4017
+ source_url?: string | null;
4018
+ version?: string;
2657
4019
  };
2658
4020
  Relationships: [];
2659
4021
  };
2660
- floriday_network_sync_state: {
4022
+ floriday_sales_strategies_cache: {
2661
4023
  Row: {
2662
4024
  connection_id: string;
2663
- last_error: string | null;
2664
- last_sequence_number: number;
2665
- last_synced_at: string | null;
4025
+ data: import("./types").Json;
4026
+ fetched_at: string;
4027
+ floriday_id: string;
4028
+ is_deleted: boolean;
4029
+ sequence_number: number;
2666
4030
  updated_at: string;
2667
4031
  };
2668
4032
  Insert: {
2669
4033
  connection_id: string;
2670
- last_error?: string | null;
2671
- last_sequence_number?: number;
2672
- last_synced_at?: string | null;
4034
+ data: import("./types").Json;
4035
+ fetched_at?: string;
4036
+ floriday_id: string;
4037
+ is_deleted?: boolean;
4038
+ sequence_number?: number;
2673
4039
  updated_at?: string;
2674
4040
  };
2675
4041
  Update: {
2676
4042
  connection_id?: string;
2677
- last_error?: string | null;
2678
- last_sequence_number?: number;
2679
- last_synced_at?: string | null;
4043
+ data?: import("./types").Json;
4044
+ fetched_at?: string;
4045
+ floriday_id?: string;
4046
+ is_deleted?: boolean;
4047
+ sequence_number?: number;
2680
4048
  updated_at?: string;
2681
4049
  };
2682
- Relationships: [];
4050
+ Relationships: [{
4051
+ foreignKeyName: "floriday_sales_strategies_cache_connection_id_fkey";
4052
+ columns: ["connection_id"];
4053
+ isOneToOne: false;
4054
+ referencedRelation: "floriday_connections";
4055
+ referencedColumns: ["id"];
4056
+ }];
2683
4057
  };
2684
4058
  floriday_salesorders_cache: {
2685
4059
  Row: {
@@ -2746,7 +4120,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2746
4120
  connection_id: string;
2747
4121
  entity_type: string;
2748
4122
  last_error: string | null;
4123
+ last_items_processed: number | null;
2749
4124
  last_sequence_number: number;
4125
+ last_success_at: string | null;
2750
4126
  last_synced_at: string | null;
2751
4127
  updated_at: string;
2752
4128
  };
@@ -2754,7 +4130,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2754
4130
  connection_id: string;
2755
4131
  entity_type: string;
2756
4132
  last_error?: string | null;
4133
+ last_items_processed?: number | null;
2757
4134
  last_sequence_number?: number;
4135
+ last_success_at?: string | null;
2758
4136
  last_synced_at?: string | null;
2759
4137
  updated_at?: string;
2760
4138
  };
@@ -2762,7 +4140,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2762
4140
  connection_id?: string;
2763
4141
  entity_type?: string;
2764
4142
  last_error?: string | null;
4143
+ last_items_processed?: number | null;
2765
4144
  last_sequence_number?: number;
4145
+ last_success_at?: string | null;
2766
4146
  last_synced_at?: string | null;
2767
4147
  updated_at?: string;
2768
4148
  };
@@ -2810,6 +4190,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2810
4190
  referencedColumns: ["id"];
2811
4191
  }];
2812
4192
  };
4193
+ floriday_trade_item_classifications_cache: {
4194
+ Row: {
4195
+ connection_id: string;
4196
+ data: import("./types").Json;
4197
+ fetched_at: string;
4198
+ floriday_id: string;
4199
+ id: string;
4200
+ is_deleted: boolean;
4201
+ sequence_number: number;
4202
+ updated_at: string;
4203
+ };
4204
+ Insert: {
4205
+ connection_id: string;
4206
+ data: import("./types").Json;
4207
+ fetched_at?: string;
4208
+ floriday_id: string;
4209
+ id?: string;
4210
+ is_deleted?: boolean;
4211
+ sequence_number?: number;
4212
+ updated_at?: string;
4213
+ };
4214
+ Update: {
4215
+ connection_id?: string;
4216
+ data?: import("./types").Json;
4217
+ fetched_at?: string;
4218
+ floriday_id?: string;
4219
+ id?: string;
4220
+ is_deleted?: boolean;
4221
+ sequence_number?: number;
4222
+ updated_at?: string;
4223
+ };
4224
+ Relationships: [{
4225
+ foreignKeyName: "floriday_trade_item_classifications_cache_connection_id_fkey";
4226
+ columns: ["connection_id"];
4227
+ isOneToOne: false;
4228
+ referencedRelation: "floriday_connections";
4229
+ referencedColumns: ["id"];
4230
+ }];
4231
+ };
2813
4232
  floriday_trade_items_cache: {
2814
4233
  Row: {
2815
4234
  connection_id: string;
@@ -2836,7 +4255,160 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2836
4255
  sequence_number?: number;
2837
4256
  };
2838
4257
  Relationships: [{
2839
- foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4258
+ foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4259
+ columns: ["connection_id"];
4260
+ isOneToOne: false;
4261
+ referencedRelation: "floriday_connections";
4262
+ referencedColumns: ["id"];
4263
+ }];
4264
+ };
4265
+ floriday_trips_cache: {
4266
+ Row: {
4267
+ carrier_organization_id: string | null;
4268
+ connection_id: string;
4269
+ data: import("./types").Json;
4270
+ fetched_at: string;
4271
+ floriday_id: string;
4272
+ id: string;
4273
+ is_deleted: boolean;
4274
+ sequence_number: number;
4275
+ status: string | null;
4276
+ trip_date: string | null;
4277
+ updated_at: string;
4278
+ };
4279
+ Insert: {
4280
+ carrier_organization_id?: string | null;
4281
+ connection_id: string;
4282
+ data?: import("./types").Json;
4283
+ fetched_at?: string;
4284
+ floriday_id: string;
4285
+ id?: string;
4286
+ is_deleted?: boolean;
4287
+ sequence_number?: number;
4288
+ status?: string | null;
4289
+ trip_date?: string | null;
4290
+ updated_at?: string;
4291
+ };
4292
+ Update: {
4293
+ carrier_organization_id?: string | null;
4294
+ connection_id?: string;
4295
+ data?: import("./types").Json;
4296
+ fetched_at?: string;
4297
+ floriday_id?: string;
4298
+ id?: string;
4299
+ is_deleted?: boolean;
4300
+ sequence_number?: number;
4301
+ status?: string | null;
4302
+ trip_date?: string | null;
4303
+ updated_at?: string;
4304
+ };
4305
+ Relationships: [{
4306
+ foreignKeyName: "floriday_trips_cache_connection_id_fkey";
4307
+ columns: ["connection_id"];
4308
+ isOneToOne: false;
4309
+ referencedRelation: "floriday_connections";
4310
+ referencedColumns: ["id"];
4311
+ }];
4312
+ };
4313
+ floriday_warehouses_cache: {
4314
+ Row: {
4315
+ connection_id: string;
4316
+ data: import("./types").Json;
4317
+ fetched_at: string;
4318
+ floriday_id: string;
4319
+ gln_code: string | null;
4320
+ id: string;
4321
+ is_default: boolean;
4322
+ is_deleted: boolean;
4323
+ name: string | null;
4324
+ updated_at: string;
4325
+ };
4326
+ Insert: {
4327
+ connection_id: string;
4328
+ data?: import("./types").Json;
4329
+ fetched_at?: string;
4330
+ floriday_id: string;
4331
+ gln_code?: string | null;
4332
+ id?: string;
4333
+ is_default?: boolean;
4334
+ is_deleted?: boolean;
4335
+ name?: string | null;
4336
+ updated_at?: string;
4337
+ };
4338
+ Update: {
4339
+ connection_id?: string;
4340
+ data?: import("./types").Json;
4341
+ fetched_at?: string;
4342
+ floriday_id?: string;
4343
+ gln_code?: string | null;
4344
+ id?: string;
4345
+ is_default?: boolean;
4346
+ is_deleted?: boolean;
4347
+ name?: string | null;
4348
+ updated_at?: string;
4349
+ };
4350
+ Relationships: [{
4351
+ foreignKeyName: "floriday_warehouses_cache_connection_id_fkey";
4352
+ columns: ["connection_id"];
4353
+ isOneToOne: false;
4354
+ referencedRelation: "floriday_connections";
4355
+ referencedColumns: ["id"];
4356
+ }];
4357
+ };
4358
+ floriday_write_log: {
4359
+ Row: {
4360
+ action: string;
4361
+ caller: string;
4362
+ connection_id: string | null;
4363
+ created_at: string;
4364
+ error: string | null;
4365
+ floriday_id: string | null;
4366
+ http_status: number | null;
4367
+ id: string;
4368
+ idempotency_key: string | null;
4369
+ module: string | null;
4370
+ ok: boolean;
4371
+ request: import("./types").Json | null;
4372
+ resource: string;
4373
+ response: import("./types").Json | null;
4374
+ user_id: string | null;
4375
+ };
4376
+ Insert: {
4377
+ action: string;
4378
+ caller?: string;
4379
+ connection_id?: string | null;
4380
+ created_at?: string;
4381
+ error?: string | null;
4382
+ floriday_id?: string | null;
4383
+ http_status?: number | null;
4384
+ id?: string;
4385
+ idempotency_key?: string | null;
4386
+ module?: string | null;
4387
+ ok: boolean;
4388
+ request?: import("./types").Json | null;
4389
+ resource: string;
4390
+ response?: import("./types").Json | null;
4391
+ user_id?: string | null;
4392
+ };
4393
+ Update: {
4394
+ action?: string;
4395
+ caller?: string;
4396
+ connection_id?: string | null;
4397
+ created_at?: string;
4398
+ error?: string | null;
4399
+ floriday_id?: string | null;
4400
+ http_status?: number | null;
4401
+ id?: string;
4402
+ idempotency_key?: string | null;
4403
+ module?: string | null;
4404
+ ok?: boolean;
4405
+ request?: import("./types").Json | null;
4406
+ resource?: string;
4407
+ response?: import("./types").Json | null;
4408
+ user_id?: string | null;
4409
+ };
4410
+ Relationships: [{
4411
+ foreignKeyName: "floriday_write_log_connection_id_fkey";
2840
4412
  columns: ["connection_id"];
2841
4413
  isOneToOne: false;
2842
4414
  referencedRelation: "floriday_connections";
@@ -3017,6 +4589,57 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3017
4589
  };
3018
4590
  Relationships: [];
3019
4591
  };
4592
+ invoice_push_log: {
4593
+ Row: {
4594
+ connection_id: string | null;
4595
+ created_at: string;
4596
+ created_by: string;
4597
+ customer_id: string | null;
4598
+ id: string;
4599
+ last_error: string | null;
4600
+ last_polled_at: string | null;
4601
+ payload: import("./types").Json;
4602
+ provider_id: string;
4603
+ queue_id: string | null;
4604
+ status: string;
4605
+ updated_at: string;
4606
+ };
4607
+ Insert: {
4608
+ connection_id?: string | null;
4609
+ created_at?: string;
4610
+ created_by?: string;
4611
+ customer_id?: string | null;
4612
+ id?: string;
4613
+ last_error?: string | null;
4614
+ last_polled_at?: string | null;
4615
+ payload?: import("./types").Json;
4616
+ provider_id: string;
4617
+ queue_id?: string | null;
4618
+ status?: string;
4619
+ updated_at?: string;
4620
+ };
4621
+ Update: {
4622
+ connection_id?: string | null;
4623
+ created_at?: string;
4624
+ created_by?: string;
4625
+ customer_id?: string | null;
4626
+ id?: string;
4627
+ last_error?: string | null;
4628
+ last_polled_at?: string | null;
4629
+ payload?: import("./types").Json;
4630
+ provider_id?: string;
4631
+ queue_id?: string | null;
4632
+ status?: string;
4633
+ updated_at?: string;
4634
+ };
4635
+ Relationships: [{
4636
+ foreignKeyName: "invoice_push_log_provider_id_fkey";
4637
+ columns: ["provider_id"];
4638
+ isOneToOne: false;
4639
+ referencedRelation: "external_invoice_providers";
4640
+ referencedColumns: ["provider"];
4641
+ }];
4642
+ };
3020
4643
  invoice_run_items: {
3021
4644
  Row: {
3022
4645
  booking_id: string | null;
@@ -3141,6 +4764,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3141
4764
  Row: {
3142
4765
  body_html: string | null;
3143
4766
  body_text: string | null;
4767
+ connection_id: string | null;
3144
4768
  created_at: string;
3145
4769
  error_message: string | null;
3146
4770
  external_id: string | null;
@@ -3159,6 +4783,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3159
4783
  Insert: {
3160
4784
  body_html?: string | null;
3161
4785
  body_text?: string | null;
4786
+ connection_id?: string | null;
3162
4787
  created_at?: string;
3163
4788
  error_message?: string | null;
3164
4789
  external_id?: string | null;
@@ -3177,6 +4802,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3177
4802
  Update: {
3178
4803
  body_html?: string | null;
3179
4804
  body_text?: string | null;
4805
+ connection_id?: string | null;
3180
4806
  created_at?: string;
3181
4807
  error_message?: string | null;
3182
4808
  external_id?: string | null;
@@ -3193,6 +4819,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3193
4819
  updated_at?: string;
3194
4820
  };
3195
4821
  Relationships: [{
4822
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4823
+ columns: ["connection_id"];
4824
+ isOneToOne: false;
4825
+ referencedRelation: "email_auth_connections";
4826
+ referencedColumns: ["id"];
4827
+ }, {
4828
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4829
+ columns: ["connection_id"];
4830
+ isOneToOne: false;
4831
+ referencedRelation: "email_auth_connections_safe";
4832
+ referencedColumns: ["id"];
4833
+ }, {
3196
4834
  foreignKeyName: "mailbox_messages_profile_id_fkey";
3197
4835
  columns: ["profile_id"];
3198
4836
  isOneToOne: false;
@@ -3476,6 +5114,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3476
5114
  role: string;
3477
5115
  tenant_id: string;
3478
5116
  updated_at: string;
5117
+ user_id: string | null;
3479
5118
  };
3480
5119
  Insert: {
3481
5120
  avatar_url?: string | null;
@@ -3491,6 +5130,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3491
5130
  role?: string;
3492
5131
  tenant_id: string;
3493
5132
  updated_at?: string;
5133
+ user_id?: string | null;
3494
5134
  };
3495
5135
  Update: {
3496
5136
  avatar_url?: string | null;
@@ -3506,6 +5146,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3506
5146
  role?: string;
3507
5147
  tenant_id?: string;
3508
5148
  updated_at?: string;
5149
+ user_id?: string | null;
3509
5150
  };
3510
5151
  Relationships: [{
3511
5152
  foreignKeyName: "monteurs_tenant_id_fkey";
@@ -3642,12 +5283,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3642
5283
  isOneToOne: false;
3643
5284
  referencedRelation: "offer_campaigns";
3644
5285
  referencedColumns: ["id"];
3645
- }, {
3646
- foreignKeyName: "offer_campaign_products_product_id_fkey";
3647
- columns: ["product_id"];
3648
- isOneToOne: false;
3649
- referencedRelation: "products";
3650
- referencedColumns: ["id"];
3651
5286
  }];
3652
5287
  };
3653
5288
  offer_campaigns: {
@@ -3923,6 +5558,99 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3923
5558
  };
3924
5559
  Relationships: [];
3925
5560
  };
5561
+ order_cart_items: {
5562
+ Row: {
5563
+ cart_id: string;
5564
+ crates: number;
5565
+ crates_per_layer: number;
5566
+ created_at: string;
5567
+ id: string;
5568
+ order_item_id: string | null;
5569
+ plants_per_crate: number;
5570
+ product_id: string | null;
5571
+ product_name: string;
5572
+ };
5573
+ Insert: {
5574
+ cart_id: string;
5575
+ crates: number;
5576
+ crates_per_layer?: number;
5577
+ created_at?: string;
5578
+ id?: string;
5579
+ order_item_id?: string | null;
5580
+ plants_per_crate?: number;
5581
+ product_id?: string | null;
5582
+ product_name: string;
5583
+ };
5584
+ Update: {
5585
+ cart_id?: string;
5586
+ crates?: number;
5587
+ crates_per_layer?: number;
5588
+ created_at?: string;
5589
+ id?: string;
5590
+ order_item_id?: string | null;
5591
+ plants_per_crate?: number;
5592
+ product_id?: string | null;
5593
+ product_name?: string;
5594
+ };
5595
+ Relationships: [{
5596
+ foreignKeyName: "order_cart_items_cart_id_fkey";
5597
+ columns: ["cart_id"];
5598
+ isOneToOne: false;
5599
+ referencedRelation: "order_carts";
5600
+ referencedColumns: ["id"];
5601
+ }, {
5602
+ foreignKeyName: "order_cart_items_order_item_id_fkey";
5603
+ columns: ["order_item_id"];
5604
+ isOneToOne: false;
5605
+ referencedRelation: "order_items";
5606
+ referencedColumns: ["id"];
5607
+ }, {
5608
+ foreignKeyName: "order_cart_items_product_id_fkey";
5609
+ columns: ["product_id"];
5610
+ isOneToOne: false;
5611
+ referencedRelation: "products";
5612
+ referencedColumns: ["id"];
5613
+ }];
5614
+ };
5615
+ order_carts: {
5616
+ Row: {
5617
+ cart_number: number;
5618
+ created_at: string;
5619
+ id: string;
5620
+ is_auto: boolean;
5621
+ is_complete: boolean;
5622
+ notes: string | null;
5623
+ order_id: string;
5624
+ updated_at: string;
5625
+ };
5626
+ Insert: {
5627
+ cart_number: number;
5628
+ created_at?: string;
5629
+ id?: string;
5630
+ is_auto?: boolean;
5631
+ is_complete?: boolean;
5632
+ notes?: string | null;
5633
+ order_id: string;
5634
+ updated_at?: string;
5635
+ };
5636
+ Update: {
5637
+ cart_number?: number;
5638
+ created_at?: string;
5639
+ id?: string;
5640
+ is_auto?: boolean;
5641
+ is_complete?: boolean;
5642
+ notes?: string | null;
5643
+ order_id?: string;
5644
+ updated_at?: string;
5645
+ };
5646
+ Relationships: [{
5647
+ foreignKeyName: "order_carts_order_id_fkey";
5648
+ columns: ["order_id"];
5649
+ isOneToOne: false;
5650
+ referencedRelation: "orders";
5651
+ referencedColumns: ["id"];
5652
+ }];
5653
+ };
3926
5654
  order_field_options: {
3927
5655
  Row: {
3928
5656
  created_at: string;
@@ -4034,6 +5762,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4034
5762
  referencedColumns: ["id"];
4035
5763
  }];
4036
5764
  };
5765
+ order_number_counters: {
5766
+ Row: {
5767
+ last_value: number;
5768
+ updated_at: string;
5769
+ year: number;
5770
+ };
5771
+ Insert: {
5772
+ last_value?: number;
5773
+ updated_at?: string;
5774
+ year: number;
5775
+ };
5776
+ Update: {
5777
+ last_value?: number;
5778
+ updated_at?: string;
5779
+ year?: number;
5780
+ };
5781
+ Relationships: [];
5782
+ };
4037
5783
  orders: {
4038
5784
  Row: {
4039
5785
  created_at: string;
@@ -4046,6 +5792,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4046
5792
  notes: string | null;
4047
5793
  order_date: string;
4048
5794
  order_number: string;
5795
+ order_source: string;
4049
5796
  status: string;
4050
5797
  total: string;
4051
5798
  updated_at: string;
@@ -4061,6 +5808,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4061
5808
  notes?: string | null;
4062
5809
  order_date?: string;
4063
5810
  order_number: string;
5811
+ order_source?: string;
4064
5812
  status?: string;
4065
5813
  total?: string;
4066
5814
  updated_at?: string;
@@ -4076,6 +5824,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4076
5824
  notes?: string | null;
4077
5825
  order_date?: string;
4078
5826
  order_number?: string;
5827
+ order_source?: string;
4079
5828
  status?: string;
4080
5829
  total?: string;
4081
5830
  updated_at?: string;
@@ -4124,6 +5873,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4124
5873
  };
4125
5874
  Relationships: [];
4126
5875
  };
5876
+ pickstation_print_log: {
5877
+ Row: {
5878
+ customer_name: string | null;
5879
+ documents: string[];
5880
+ id: string;
5881
+ ip_address: string | null;
5882
+ order_id: string;
5883
+ order_number: string | null;
5884
+ printed_at: string;
5885
+ };
5886
+ Insert: {
5887
+ customer_name?: string | null;
5888
+ documents?: string[];
5889
+ id?: string;
5890
+ ip_address?: string | null;
5891
+ order_id: string;
5892
+ order_number?: string | null;
5893
+ printed_at?: string;
5894
+ };
5895
+ Update: {
5896
+ customer_name?: string | null;
5897
+ documents?: string[];
5898
+ id?: string;
5899
+ ip_address?: string | null;
5900
+ order_id?: string;
5901
+ order_number?: string | null;
5902
+ printed_at?: string;
5903
+ };
5904
+ Relationships: [];
5905
+ };
4127
5906
  pipeline_settings: {
4128
5907
  Row: {
4129
5908
  created_at: string;
@@ -4284,13 +6063,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4284
6063
  Row: {
4285
6064
  barcode: string | null;
4286
6065
  batch: string;
6066
+ crates_per_layer: number;
4287
6067
  created_at: string;
4288
6068
  custom_fields: import("./types").Json;
4289
6069
  id: string;
4290
6070
  image_url: string | null;
4291
6071
  incoming_quantity: number;
6072
+ layers_per_cart: number;
4292
6073
  location: string;
4293
6074
  min_quantity: number;
6075
+ plants_per_crate: number;
4294
6076
  product: string;
4295
6077
  product_type: string;
4296
6078
  purchase_price: number | null;
@@ -4303,13 +6085,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4303
6085
  Insert: {
4304
6086
  barcode?: string | null;
4305
6087
  batch: string;
6088
+ crates_per_layer?: number;
4306
6089
  created_at?: string;
4307
6090
  custom_fields?: import("./types").Json;
4308
6091
  id?: string;
4309
6092
  image_url?: string | null;
4310
6093
  incoming_quantity?: number;
6094
+ layers_per_cart?: number;
4311
6095
  location: string;
4312
6096
  min_quantity?: number;
6097
+ plants_per_crate?: number;
4313
6098
  product: string;
4314
6099
  product_type?: string;
4315
6100
  purchase_price?: number | null;
@@ -4322,13 +6107,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4322
6107
  Update: {
4323
6108
  barcode?: string | null;
4324
6109
  batch?: string;
6110
+ crates_per_layer?: number;
4325
6111
  created_at?: string;
4326
6112
  custom_fields?: import("./types").Json;
4327
6113
  id?: string;
4328
6114
  image_url?: string | null;
4329
6115
  incoming_quantity?: number;
6116
+ layers_per_cart?: number;
4330
6117
  location?: string;
4331
6118
  min_quantity?: number;
6119
+ plants_per_crate?: number;
4332
6120
  product?: string;
4333
6121
  product_type?: string;
4334
6122
  purchase_price?: number | null;
@@ -5270,6 +7058,141 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5270
7058
  };
5271
7059
  Relationships: [];
5272
7060
  };
7061
+ time_entries: {
7062
+ Row: {
7063
+ created_at: string;
7064
+ employee_id: string;
7065
+ entry_date: string;
7066
+ hours: number;
7067
+ id: string;
7068
+ notes: string | null;
7069
+ overtime: number;
7070
+ undertime: number;
7071
+ updated_at: string;
7072
+ };
7073
+ Insert: {
7074
+ created_at?: string;
7075
+ employee_id: string;
7076
+ entry_date: string;
7077
+ hours?: number;
7078
+ id?: string;
7079
+ notes?: string | null;
7080
+ overtime?: number;
7081
+ undertime?: number;
7082
+ updated_at?: string;
7083
+ };
7084
+ Update: {
7085
+ created_at?: string;
7086
+ employee_id?: string;
7087
+ entry_date?: string;
7088
+ hours?: number;
7089
+ id?: string;
7090
+ notes?: string | null;
7091
+ overtime?: number;
7092
+ undertime?: number;
7093
+ updated_at?: string;
7094
+ };
7095
+ Relationships: [{
7096
+ foreignKeyName: "time_entries_employee_id_fkey";
7097
+ columns: ["employee_id"];
7098
+ isOneToOne: false;
7099
+ referencedRelation: "monteurs";
7100
+ referencedColumns: ["id"];
7101
+ }];
7102
+ };
7103
+ time_logs: {
7104
+ Row: {
7105
+ created_at: string;
7106
+ employee_id: string;
7107
+ end_time: string | null;
7108
+ id: string;
7109
+ notes: string | null;
7110
+ overtime_hours: number;
7111
+ overtime_type: string | null;
7112
+ regular_hours: number;
7113
+ start_time: string;
7114
+ travel_cost: number | null;
7115
+ travel_distance_km: number | null;
7116
+ type: string;
7117
+ updated_at: string;
7118
+ };
7119
+ Insert: {
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
+ Update: {
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
+ Relationships: [{
7150
+ foreignKeyName: "time_logs_employee_id_fkey";
7151
+ columns: ["employee_id"];
7152
+ isOneToOne: false;
7153
+ referencedRelation: "monteurs";
7154
+ referencedColumns: ["id"];
7155
+ }];
7156
+ };
7157
+ time_off_entries: {
7158
+ Row: {
7159
+ created_at: string;
7160
+ employee_id: string;
7161
+ entry_date: string;
7162
+ hours: number;
7163
+ id: string;
7164
+ notes: string | null;
7165
+ type: string;
7166
+ updated_at: string;
7167
+ };
7168
+ Insert: {
7169
+ created_at?: string;
7170
+ employee_id: string;
7171
+ entry_date: string;
7172
+ hours?: number;
7173
+ id?: string;
7174
+ notes?: string | null;
7175
+ type: string;
7176
+ updated_at?: string;
7177
+ };
7178
+ Update: {
7179
+ created_at?: string;
7180
+ employee_id?: string;
7181
+ entry_date?: string;
7182
+ hours?: number;
7183
+ id?: string;
7184
+ notes?: string | null;
7185
+ type?: string;
7186
+ updated_at?: string;
7187
+ };
7188
+ Relationships: [{
7189
+ foreignKeyName: "time_off_entries_employee_id_fkey";
7190
+ columns: ["employee_id"];
7191
+ isOneToOne: false;
7192
+ referencedRelation: "monteurs";
7193
+ referencedColumns: ["id"];
7194
+ }];
7195
+ };
5273
7196
  trade_item_drafts: {
5274
7197
  Row: {
5275
7198
  connection_id: string | null;
@@ -5567,9 +7490,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5567
7490
  fetched_at: string;
5568
7491
  invoice_number: string;
5569
7492
  line_number: number;
7493
+ line_total: number | null;
5570
7494
  quantity: number | null;
5571
7495
  unit_price: number | null;
5572
7496
  vat_code: string | null;
7497
+ vat_rate: number | null;
5573
7498
  };
5574
7499
  Insert: {
5575
7500
  article_code?: string | null;
@@ -5579,9 +7504,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5579
7504
  fetched_at?: string;
5580
7505
  invoice_number: string;
5581
7506
  line_number: number;
7507
+ line_total?: number | null;
5582
7508
  quantity?: number | null;
5583
7509
  unit_price?: number | null;
5584
7510
  vat_code?: string | null;
7511
+ vat_rate?: number | null;
5585
7512
  };
5586
7513
  Update: {
5587
7514
  article_code?: string | null;
@@ -5591,9 +7518,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5591
7518
  fetched_at?: string;
5592
7519
  invoice_number?: string;
5593
7520
  line_number?: number;
7521
+ line_total?: number | null;
5594
7522
  quantity?: number | null;
5595
7523
  unit_price?: number | null;
5596
7524
  vat_code?: string | null;
7525
+ vat_rate?: number | null;
5597
7526
  };
5598
7527
  Relationships: [{
5599
7528
  foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
@@ -5770,9 +7699,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5770
7699
  invoice_date: string | null;
5771
7700
  invoice_number: string;
5772
7701
  modified_at: string | null;
7702
+ outstanding_amount: number | null;
5773
7703
  status: string | null;
7704
+ status_label: string | null;
5774
7705
  total_excl: number | null;
5775
7706
  total_incl: number | null;
7707
+ vat_amount: number | null;
5776
7708
  };
5777
7709
  Insert: {
5778
7710
  connection_id: string;
@@ -5784,9 +7716,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5784
7716
  invoice_date?: string | null;
5785
7717
  invoice_number: string;
5786
7718
  modified_at?: string | null;
7719
+ outstanding_amount?: number | null;
5787
7720
  status?: string | null;
7721
+ status_label?: string | null;
5788
7722
  total_excl?: number | null;
5789
7723
  total_incl?: number | null;
7724
+ vat_amount?: number | null;
5790
7725
  };
5791
7726
  Update: {
5792
7727
  connection_id?: string;
@@ -5798,9 +7733,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5798
7733
  invoice_date?: string | null;
5799
7734
  invoice_number?: string;
5800
7735
  modified_at?: string | null;
7736
+ outstanding_amount?: number | null;
5801
7737
  status?: string | null;
7738
+ status_label?: string | null;
5802
7739
  total_excl?: number | null;
5803
7740
  total_incl?: number | null;
7741
+ vat_amount?: number | null;
5804
7742
  };
5805
7743
  Relationships: [{
5806
7744
  foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
@@ -5820,19 +7758,70 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5820
7758
  };
5821
7759
  Insert: {
5822
7760
  created_at?: string;
5823
- environment: string;
5824
- nonce?: string | null;
5825
- state: string;
5826
- user_id: string;
7761
+ environment: string;
7762
+ nonce?: string | null;
7763
+ state: string;
7764
+ user_id: string;
7765
+ };
7766
+ Update: {
7767
+ created_at?: string;
7768
+ environment?: string;
7769
+ nonce?: string | null;
7770
+ state?: string;
7771
+ user_id?: string;
7772
+ };
7773
+ Relationships: [];
7774
+ };
7775
+ twinfield_push_queue: {
7776
+ Row: {
7777
+ attempts: number;
7778
+ connection_id: string;
7779
+ created_at: string;
7780
+ external_id: string | null;
7781
+ id: string;
7782
+ idempotency_key: string;
7783
+ last_error: string | null;
7784
+ next_attempt_at: string;
7785
+ office_code: string;
7786
+ payload: import("./types").Json;
7787
+ status: string;
7788
+ updated_at: string;
7789
+ };
7790
+ Insert: {
7791
+ attempts?: number;
7792
+ connection_id: string;
7793
+ created_at?: string;
7794
+ external_id?: string | null;
7795
+ id?: string;
7796
+ idempotency_key: string;
7797
+ last_error?: string | null;
7798
+ next_attempt_at?: string;
7799
+ office_code: string;
7800
+ payload: import("./types").Json;
7801
+ status?: string;
7802
+ updated_at?: string;
5827
7803
  };
5828
7804
  Update: {
7805
+ attempts?: number;
7806
+ connection_id?: string;
5829
7807
  created_at?: string;
5830
- environment?: string;
5831
- nonce?: string | null;
5832
- state?: string;
5833
- user_id?: string;
7808
+ external_id?: string | null;
7809
+ id?: string;
7810
+ idempotency_key?: string;
7811
+ last_error?: string | null;
7812
+ next_attempt_at?: string;
7813
+ office_code?: string;
7814
+ payload?: import("./types").Json;
7815
+ status?: string;
7816
+ updated_at?: string;
5834
7817
  };
5835
- Relationships: [];
7818
+ Relationships: [{
7819
+ foreignKeyName: "twinfield_push_queue_connection_id_fkey";
7820
+ columns: ["connection_id"];
7821
+ isOneToOne: false;
7822
+ referencedRelation: "twinfield_connections";
7823
+ referencedColumns: ["id"];
7824
+ }];
5836
7825
  };
5837
7826
  twinfield_settings: {
5838
7827
  Row: {
@@ -5945,6 +7934,117 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5945
7934
  referencedColumns: ["id"];
5946
7935
  }];
5947
7936
  };
7937
+ voorraad_media_upload_failures: {
7938
+ Row: {
7939
+ action: string;
7940
+ attempt_number: number;
7941
+ caller: string;
7942
+ client_user_id: string | null;
7943
+ content_type: string | null;
7944
+ created_at: string;
7945
+ environment: string;
7946
+ error_message: string | null;
7947
+ filename: string | null;
7948
+ id: string;
7949
+ idempotency_key: string | null;
7950
+ module: string;
7951
+ path: string;
7952
+ reference_id: string | null;
7953
+ request_body_hash: string | null;
7954
+ request_timestamp: number | null;
7955
+ response_content_type: string | null;
7956
+ response_status: number | null;
7957
+ size_bytes: number | null;
7958
+ };
7959
+ Insert: {
7960
+ action?: string;
7961
+ attempt_number?: number;
7962
+ caller?: string;
7963
+ client_user_id?: string | null;
7964
+ content_type?: string | null;
7965
+ created_at?: string;
7966
+ environment: string;
7967
+ error_message?: string | null;
7968
+ filename?: string | null;
7969
+ id?: string;
7970
+ idempotency_key?: string | null;
7971
+ module?: string;
7972
+ path: string;
7973
+ reference_id?: string | null;
7974
+ request_body_hash?: string | null;
7975
+ request_timestamp?: number | null;
7976
+ response_content_type?: string | null;
7977
+ response_status?: number | null;
7978
+ size_bytes?: number | null;
7979
+ };
7980
+ Update: {
7981
+ action?: string;
7982
+ attempt_number?: number;
7983
+ caller?: string;
7984
+ client_user_id?: string | null;
7985
+ content_type?: string | null;
7986
+ created_at?: string;
7987
+ environment?: string;
7988
+ error_message?: string | null;
7989
+ filename?: string | null;
7990
+ id?: string;
7991
+ idempotency_key?: string | null;
7992
+ module?: string;
7993
+ path?: string;
7994
+ reference_id?: string | null;
7995
+ request_body_hash?: string | null;
7996
+ request_timestamp?: number | null;
7997
+ response_content_type?: string | null;
7998
+ response_status?: number | null;
7999
+ size_bytes?: number | null;
8000
+ };
8001
+ Relationships: [];
8002
+ };
8003
+ voorraad_publish_attempts: {
8004
+ Row: {
8005
+ action: string;
8006
+ connection_id: string | null;
8007
+ created_at: string;
8008
+ error: string | null;
8009
+ gateway_attempt_id: string | null;
8010
+ gateway_status: number | null;
8011
+ id: string;
8012
+ intent: string;
8013
+ ok: boolean;
8014
+ request_summary: import("./types").Json | null;
8015
+ trade_item_id: string | null;
8016
+ user_id: string;
8017
+ };
8018
+ Insert: {
8019
+ action: string;
8020
+ connection_id?: string | null;
8021
+ created_at?: string;
8022
+ error?: string | null;
8023
+ gateway_attempt_id?: string | null;
8024
+ gateway_status?: number | null;
8025
+ id?: string;
8026
+ intent: string;
8027
+ ok: boolean;
8028
+ request_summary?: import("./types").Json | null;
8029
+ trade_item_id?: string | null;
8030
+ user_id: string;
8031
+ };
8032
+ Update: {
8033
+ action?: string;
8034
+ connection_id?: string | null;
8035
+ created_at?: string;
8036
+ error?: string | null;
8037
+ gateway_attempt_id?: string | null;
8038
+ gateway_status?: number | null;
8039
+ id?: string;
8040
+ intent?: string;
8041
+ ok?: boolean;
8042
+ request_summary?: import("./types").Json | null;
8043
+ trade_item_id?: string | null;
8044
+ user_id?: string;
8045
+ };
8046
+ Relationships: [];
8047
+ };
5948
8048
  work_order_monteurs: {
5949
8049
  Row: {
5950
8050
  created_at: string;
@@ -6256,6 +8356,132 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6256
8356
  };
6257
8357
  Relationships: [];
6258
8358
  };
8359
+ external_invoices_grouped: {
8360
+ Row: {
8361
+ currency: string | null;
8362
+ customer_external_id: string | null;
8363
+ customer_name: string | null;
8364
+ customer_vat: string | null;
8365
+ due_at: string | null;
8366
+ group_key: string | null;
8367
+ invoice_number: string | null;
8368
+ is_merged: boolean | null;
8369
+ issued_at: string | null;
8370
+ modified_at: string | null;
8371
+ open_amount: number | null;
8372
+ paid_at: string | null;
8373
+ providers: string[] | null;
8374
+ source_count: number | null;
8375
+ sources: import("./types").Json | null;
8376
+ status: string | null;
8377
+ total_excl: number | null;
8378
+ total_incl: number | null;
8379
+ total_vat: number | null;
8380
+ };
8381
+ Relationships: [];
8382
+ };
8383
+ external_invoices_unified: {
8384
+ Row: {
8385
+ connection_id: string | null;
8386
+ currency: string | null;
8387
+ customer_external_id: string | null;
8388
+ customer_name: string | null;
8389
+ customer_vat: string | null;
8390
+ due_at: string | null;
8391
+ external_id: string | null;
8392
+ invoice_number: string | null;
8393
+ issued_at: string | null;
8394
+ open_amount: number | null;
8395
+ owner_user_id: string | null;
8396
+ paid_at: string | null;
8397
+ raw: import("./types").Json | null;
8398
+ source: string | null;
8399
+ status: string | null;
8400
+ synced_at: string | null;
8401
+ total_excl: number | null;
8402
+ total_incl: number | null;
8403
+ total_vat: number | null;
8404
+ };
8405
+ Relationships: [];
8406
+ };
8407
+ v_external_customers_exact: {
8408
+ Row: {
8409
+ account_number: string | null;
8410
+ city: string | null;
8411
+ coc_number: string | null;
8412
+ company_name: string | null;
8413
+ connection_id: string | null;
8414
+ country: string | null;
8415
+ currency: string | null;
8416
+ email: string | null;
8417
+ external_id: string | null;
8418
+ is_sales: boolean | null;
8419
+ is_supplier: boolean | null;
8420
+ language: string | null;
8421
+ modified_at: string | null;
8422
+ phone: string | null;
8423
+ postal_code: string | null;
8424
+ raw: import("./types").Json | null;
8425
+ source: string | null;
8426
+ street: string | null;
8427
+ synced_at: string | null;
8428
+ vat_number: string | null;
8429
+ website: string | null;
8430
+ };
8431
+ Insert: {
8432
+ account_number?: string | null;
8433
+ city?: string | null;
8434
+ coc_number?: string | null;
8435
+ company_name?: string | null;
8436
+ connection_id?: string | null;
8437
+ country?: string | null;
8438
+ currency?: string | null;
8439
+ email?: string | null;
8440
+ external_id?: string | null;
8441
+ is_sales?: boolean | null;
8442
+ is_supplier?: boolean | null;
8443
+ language?: string | null;
8444
+ modified_at?: string | null;
8445
+ phone?: string | null;
8446
+ postal_code?: string | null;
8447
+ raw?: import("./types").Json | null;
8448
+ source?: never;
8449
+ street?: string | null;
8450
+ synced_at?: string | null;
8451
+ vat_number?: string | null;
8452
+ website?: string | null;
8453
+ };
8454
+ Update: {
8455
+ account_number?: string | null;
8456
+ city?: string | null;
8457
+ coc_number?: string | null;
8458
+ company_name?: string | null;
8459
+ connection_id?: string | null;
8460
+ country?: string | null;
8461
+ currency?: string | null;
8462
+ email?: string | null;
8463
+ external_id?: string | null;
8464
+ is_sales?: boolean | null;
8465
+ is_supplier?: boolean | null;
8466
+ language?: string | null;
8467
+ modified_at?: string | null;
8468
+ phone?: string | null;
8469
+ postal_code?: string | null;
8470
+ raw?: import("./types").Json | null;
8471
+ source?: never;
8472
+ street?: string | null;
8473
+ synced_at?: string | null;
8474
+ vat_number?: string | null;
8475
+ website?: string | null;
8476
+ };
8477
+ Relationships: [{
8478
+ foreignKeyName: "exact_customers_cache_connection_id_fkey";
8479
+ columns: ["connection_id"];
8480
+ isOneToOne: false;
8481
+ referencedRelation: "exact_connections";
8482
+ referencedColumns: ["id"];
8483
+ }];
8484
+ };
6259
8485
  v_external_customers_floriday: {
6260
8486
  Row: {
6261
8487
  city: string | null;
@@ -6322,8 +8548,140 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6322
8548
  referencedColumns: ["id"];
6323
8549
  }];
6324
8550
  };
8551
+ v_external_invoices_exact: {
8552
+ Row: {
8553
+ connection_id: string | null;
8554
+ currency: string | null;
8555
+ customer_external_id: string | null;
8556
+ customer_name: string | null;
8557
+ customer_vat: string | null;
8558
+ due_at: string | null;
8559
+ external_id: string | null;
8560
+ invoice_number: string | null;
8561
+ issued_at: string | null;
8562
+ open_amount: number | null;
8563
+ paid_at: string | null;
8564
+ raw: import("./types").Json | null;
8565
+ source: string | null;
8566
+ status: string | null;
8567
+ synced_at: string | null;
8568
+ total_excl: number | null;
8569
+ total_incl: number | null;
8570
+ total_vat: number | null;
8571
+ };
8572
+ Insert: {
8573
+ connection_id?: string | null;
8574
+ currency?: never;
8575
+ customer_external_id?: string | null;
8576
+ customer_name?: string | null;
8577
+ customer_vat?: never;
8578
+ due_at?: string | null;
8579
+ external_id?: string | null;
8580
+ invoice_number?: string | null;
8581
+ issued_at?: string | null;
8582
+ open_amount?: number | null;
8583
+ paid_at?: string | null;
8584
+ raw?: import("./types").Json | null;
8585
+ source?: never;
8586
+ status?: string | null;
8587
+ synced_at?: string | null;
8588
+ total_excl?: number | null;
8589
+ total_incl?: number | null;
8590
+ total_vat?: number | null;
8591
+ };
8592
+ Update: {
8593
+ connection_id?: string | null;
8594
+ currency?: never;
8595
+ customer_external_id?: string | null;
8596
+ customer_name?: string | null;
8597
+ customer_vat?: never;
8598
+ due_at?: string | null;
8599
+ external_id?: string | null;
8600
+ invoice_number?: string | null;
8601
+ issued_at?: string | null;
8602
+ open_amount?: number | null;
8603
+ paid_at?: string | null;
8604
+ raw?: import("./types").Json | null;
8605
+ source?: never;
8606
+ status?: string | null;
8607
+ synced_at?: string | null;
8608
+ total_excl?: number | null;
8609
+ total_incl?: number | null;
8610
+ total_vat?: number | null;
8611
+ };
8612
+ Relationships: [{
8613
+ foreignKeyName: "exact_invoices_cache_connection_id_fkey";
8614
+ columns: ["connection_id"];
8615
+ isOneToOne: false;
8616
+ referencedRelation: "exact_connections";
8617
+ referencedColumns: ["id"];
8618
+ }];
8619
+ };
8620
+ v_external_invoices_twinfield: {
8621
+ Row: {
8622
+ connection_id: string | null;
8623
+ currency: string | null;
8624
+ customer_external_id: string | null;
8625
+ customer_name: string | null;
8626
+ customer_vat: string | null;
8627
+ due_at: string | null;
8628
+ external_id: string | null;
8629
+ invoice_number: string | null;
8630
+ issued_at: string | null;
8631
+ open_amount: number | null;
8632
+ owner_user_id: string | null;
8633
+ paid_at: string | null;
8634
+ raw: import("./types").Json | null;
8635
+ source: string | null;
8636
+ status: string | null;
8637
+ synced_at: string | null;
8638
+ total_excl: number | null;
8639
+ total_incl: number | null;
8640
+ total_vat: number | null;
8641
+ };
8642
+ Relationships: [{
8643
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
8644
+ columns: ["connection_id"];
8645
+ isOneToOne: false;
8646
+ referencedRelation: "twinfield_connections";
8647
+ referencedColumns: ["id"];
8648
+ }];
8649
+ };
6325
8650
  };
6326
8651
  Functions: {
8652
+ _floriday_schedule_job: {
8653
+ Args: {
8654
+ p_apikey: string;
8655
+ p_jobname: string;
8656
+ p_schedule: string;
8657
+ p_timeout_ms: number;
8658
+ p_url: string;
8659
+ };
8660
+ Returns: number;
8661
+ };
8662
+ assign_floriday_order_numbers: {
8663
+ Args: {
8664
+ p_ids: string[];
8665
+ };
8666
+ Returns: {
8667
+ floriday_id: string;
8668
+ order_number: string;
8669
+ }[];
8670
+ };
8671
+ call_exact_route: {
8672
+ Args: {
8673
+ path: string;
8674
+ };
8675
+ Returns: number;
8676
+ };
8677
+ cleanup_old_bookings: {
8678
+ Args: never;
8679
+ Returns: number;
8680
+ };
8681
+ current_monteur_id: {
8682
+ Args: never;
8683
+ Returns: string;
8684
+ };
6327
8685
  dashboard_list_public_schema: {
6328
8686
  Args: never;
6329
8687
  Returns: {
@@ -6428,6 +8786,32 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6428
8786
  office_code: string;
6429
8787
  }[];
6430
8788
  };
8789
+ get_floriday_agreements_active: {
8790
+ Args: {
8791
+ p_on_date?: string;
8792
+ };
8793
+ Returns: {
8794
+ buyer_organization_id: string;
8795
+ data: import("./types").Json;
8796
+ floriday_id: string;
8797
+ status: string;
8798
+ valid_from: string;
8799
+ valid_until: string;
8800
+ }[];
8801
+ };
8802
+ get_floriday_clock_supplies_window: {
8803
+ Args: {
8804
+ p_from: string;
8805
+ p_to: string;
8806
+ };
8807
+ Returns: {
8808
+ auction_date: string;
8809
+ data: import("./types").Json;
8810
+ floriday_id: string;
8811
+ status: string;
8812
+ trade_item_id: string;
8813
+ }[];
8814
+ };
6431
8815
  get_floriday_cron_jobs: {
6432
8816
  Args: never;
6433
8817
  Returns: {
@@ -6437,12 +8821,68 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6437
8821
  url: string;
6438
8822
  }[];
6439
8823
  };
8824
+ get_floriday_delivery_locations: {
8825
+ Args: {
8826
+ p_organization_id: string;
8827
+ };
8828
+ Returns: {
8829
+ data: import("./types").Json;
8830
+ floriday_id: string;
8831
+ gln_code: string;
8832
+ name: string;
8833
+ }[];
8834
+ };
8835
+ get_floriday_fulfillment_orders_window: {
8836
+ Args: {
8837
+ p_from: string;
8838
+ p_to: string;
8839
+ };
8840
+ Returns: {
8841
+ auction_date: string;
8842
+ data: import("./types").Json;
8843
+ delivery_order_id: string;
8844
+ destination_warehouse_id: string;
8845
+ floriday_id: string;
8846
+ status: string;
8847
+ }[];
8848
+ };
8849
+ get_floriday_sales_orders_window: {
8850
+ Args: {
8851
+ p_from: string;
8852
+ p_to: string;
8853
+ };
8854
+ Returns: {
8855
+ buyer_organization_id: string;
8856
+ data: import("./types").Json;
8857
+ floriday_id: string;
8858
+ status: string;
8859
+ updated_at: string;
8860
+ }[];
8861
+ };
8862
+ get_floriday_sync_health: {
8863
+ Args: never;
8864
+ Returns: {
8865
+ entity_type: string;
8866
+ last_error: string;
8867
+ last_items_processed: number;
8868
+ last_sequence_number: number;
8869
+ last_success_at: string;
8870
+ last_synced_at: string;
8871
+ minutes_since_success: number;
8872
+ }[];
8873
+ };
6440
8874
  get_offer_by_link_code: {
6441
8875
  Args: {
6442
8876
  p_code: string;
6443
8877
  };
6444
8878
  Returns: import("./types").Json;
6445
8879
  };
8880
+ get_or_assign_floriday_order_number: {
8881
+ Args: {
8882
+ p_floriday_id: string;
8883
+ };
8884
+ Returns: string;
8885
+ };
6446
8886
  get_room_busy_windows: {
6447
8887
  Args: {
6448
8888
  p_from: string;
@@ -6489,6 +8929,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6489
8929
  Args: never;
6490
8930
  Returns: boolean;
6491
8931
  };
8932
+ next_order_number: {
8933
+ Args: {
8934
+ p_prefix: string;
8935
+ };
8936
+ Returns: string;
8937
+ };
6492
8938
  next_work_order_number: {
6493
8939
  Args: {
6494
8940
  p_parent_work_order_id?: string;
@@ -6502,6 +8948,74 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6502
8948
  };
6503
8949
  Returns: string;
6504
8950
  };
8951
+ pickstation_get_orders_raw: {
8952
+ Args: never;
8953
+ Returns: import("./types").Json;
8954
+ };
8955
+ pickstation_get_settings: {
8956
+ Args: never;
8957
+ Returns: import("./types").Json;
8958
+ };
8959
+ pickstation_log_print: {
8960
+ Args: {
8961
+ p_customer_name: string;
8962
+ p_documents: string[];
8963
+ p_ip_address: string;
8964
+ p_order_id: string;
8965
+ p_order_number: string;
8966
+ };
8967
+ Returns: undefined;
8968
+ };
8969
+ refresh_floricode_derived_code_lists: {
8970
+ Args: never;
8971
+ Returns: {
8972
+ out_environment: string;
8973
+ out_list_name: string;
8974
+ out_row_count: number;
8975
+ }[];
8976
+ };
8977
+ reset_floriday_sync_cursor: {
8978
+ Args: {
8979
+ p_connection_id: string;
8980
+ p_entity_type: string;
8981
+ };
8982
+ Returns: undefined;
8983
+ };
8984
+ schedule_floriday_additional_services_sync: {
8985
+ Args: {
8986
+ p_apikey: string;
8987
+ p_url: string;
8988
+ };
8989
+ Returns: number;
8990
+ };
8991
+ schedule_floriday_agreement_calloffs_sync: {
8992
+ Args: {
8993
+ p_apikey: string;
8994
+ p_url: string;
8995
+ };
8996
+ Returns: number;
8997
+ };
8998
+ schedule_floriday_agreements_sync: {
8999
+ Args: {
9000
+ p_apikey: string;
9001
+ p_url: string;
9002
+ };
9003
+ Returns: number;
9004
+ };
9005
+ schedule_floriday_base_items_sync: {
9006
+ Args: {
9007
+ p_apikey: string;
9008
+ p_url: string;
9009
+ };
9010
+ Returns: number;
9011
+ };
9012
+ schedule_floriday_blanket_orders_sync: {
9013
+ Args: {
9014
+ p_apikey: string;
9015
+ p_url: string;
9016
+ };
9017
+ Returns: number;
9018
+ };
6505
9019
  schedule_floriday_carriers_sync: {
6506
9020
  Args: {
6507
9021
  p_apikey: string;
@@ -6509,6 +9023,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6509
9023
  };
6510
9024
  Returns: number;
6511
9025
  };
9026
+ schedule_floriday_clock_presales_sync: {
9027
+ Args: {
9028
+ p_apikey: string;
9029
+ p_url: string;
9030
+ };
9031
+ Returns: number;
9032
+ };
9033
+ schedule_floriday_clock_supplies_sync: {
9034
+ Args: {
9035
+ p_apikey: string;
9036
+ p_url: string;
9037
+ };
9038
+ Returns: number;
9039
+ };
9040
+ schedule_floriday_collections_sync: {
9041
+ Args: {
9042
+ p_apikey: string;
9043
+ p_url: string;
9044
+ };
9045
+ Returns: number;
9046
+ };
9047
+ schedule_floriday_commercial_service_types_sync: {
9048
+ Args: {
9049
+ p_apikey: string;
9050
+ p_url: string;
9051
+ };
9052
+ Returns: number;
9053
+ };
6512
9054
  schedule_floriday_connections_sync: {
6513
9055
  Args: {
6514
9056
  p_apikey: string;
@@ -6516,6 +9058,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6516
9058
  };
6517
9059
  Returns: number;
6518
9060
  };
9061
+ schedule_floriday_contract_trade_item_groups_sync: {
9062
+ Args: {
9063
+ p_apikey: string;
9064
+ p_url: string;
9065
+ };
9066
+ Returns: number;
9067
+ };
9068
+ schedule_floriday_contracts_sync: {
9069
+ Args: {
9070
+ p_apikey: string;
9071
+ p_url: string;
9072
+ };
9073
+ Returns: number;
9074
+ };
6519
9075
  schedule_floriday_customer_organizations_sync: {
6520
9076
  Args: {
6521
9077
  p_apikey: string;
@@ -6523,6 +9079,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6523
9079
  };
6524
9080
  Returns: number;
6525
9081
  };
9082
+ schedule_floriday_customer_stickers_sync: {
9083
+ Args: {
9084
+ p_apikey: string;
9085
+ p_url: string;
9086
+ };
9087
+ Returns: number;
9088
+ };
9089
+ schedule_floriday_delivery_condition_sets_sync: {
9090
+ Args: {
9091
+ p_apikey: string;
9092
+ p_url: string;
9093
+ };
9094
+ Returns: number;
9095
+ };
9096
+ schedule_floriday_delivery_locations_sync: {
9097
+ Args: {
9098
+ p_apikey: string;
9099
+ p_url: string;
9100
+ };
9101
+ Returns: number;
9102
+ };
9103
+ schedule_floriday_delivery_orders_sync: {
9104
+ Args: {
9105
+ p_apikey: string;
9106
+ p_url: string;
9107
+ };
9108
+ Returns: number;
9109
+ };
9110
+ schedule_floriday_fulfillment_orders_sync: {
9111
+ Args: {
9112
+ p_apikey: string;
9113
+ p_url: string;
9114
+ };
9115
+ Returns: number;
9116
+ };
9117
+ schedule_floriday_invoices_sync: {
9118
+ Args: {
9119
+ p_apikey: string;
9120
+ p_url: string;
9121
+ };
9122
+ Returns: number;
9123
+ };
6526
9124
  schedule_floriday_network_sync: {
6527
9125
  Args: {
6528
9126
  p_apikey: string;
@@ -6530,6 +9128,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6530
9128
  };
6531
9129
  Returns: number;
6532
9130
  };
9131
+ schedule_floriday_packings_sync: {
9132
+ Args: {
9133
+ p_apikey: string;
9134
+ p_url: string;
9135
+ };
9136
+ Returns: number;
9137
+ };
9138
+ schedule_floriday_price_groups_sync: {
9139
+ Args: {
9140
+ p_apikey: string;
9141
+ p_url: string;
9142
+ };
9143
+ Returns: number;
9144
+ };
9145
+ schedule_floriday_reference_data_refresh: {
9146
+ Args: {
9147
+ p_apikey: string;
9148
+ p_url: string;
9149
+ };
9150
+ Returns: number;
9151
+ };
9152
+ schedule_floriday_sales_strategies_sync: {
9153
+ Args: {
9154
+ p_apikey: string;
9155
+ p_url: string;
9156
+ };
9157
+ Returns: number;
9158
+ };
6533
9159
  schedule_floriday_salesorders_sync: {
6534
9160
  Args: {
6535
9161
  p_apikey: string;
@@ -6544,6 +9170,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6544
9170
  };
6545
9171
  Returns: number;
6546
9172
  };
9173
+ schedule_floriday_trade_item_classifications_sync: {
9174
+ Args: {
9175
+ p_apikey: string;
9176
+ p_url: string;
9177
+ };
9178
+ Returns: number;
9179
+ };
6547
9180
  schedule_floriday_trade_items_sync: {
6548
9181
  Args: {
6549
9182
  p_apikey: string;
@@ -6551,6 +9184,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6551
9184
  };
6552
9185
  Returns: number;
6553
9186
  };
9187
+ schedule_floriday_trips_sync: {
9188
+ Args: {
9189
+ p_apikey: string;
9190
+ p_url: string;
9191
+ };
9192
+ Returns: number;
9193
+ };
9194
+ schedule_floriday_warehouses_sync: {
9195
+ Args: {
9196
+ p_apikey: string;
9197
+ p_url: string;
9198
+ };
9199
+ Returns: number;
9200
+ };
6554
9201
  schedule_twinfield_customers_sync: {
6555
9202
  Args: {
6556
9203
  p_apikey: string;
@@ -6579,6 +9226,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6579
9226
  };
6580
9227
  Returns: number;
6581
9228
  };
9229
+ schedule_twinfield_push_queue_flush: {
9230
+ Args: {
9231
+ p_apikey: string;
9232
+ p_cron_secret?: string;
9233
+ p_url: string;
9234
+ };
9235
+ Returns: number;
9236
+ };
6582
9237
  schedule_twinfield_token_refresh: {
6583
9238
  Args: {
6584
9239
  p_apikey: string;
@@ -6617,8 +9272,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6617
9272
  };
6618
9273
  };
6619
9274
  Enums: {
6620
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
9275
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
6621
9276
  exact_env: "staging" | "live";
9277
+ exact_push_status: "pending" | "sent" | "error";
6622
9278
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
6623
9279
  };
6624
9280
  CompositeTypes: { [_ in never]: never; };