@flowselections/floriday-afhandeling-module 1.0.8 → 1.0.10

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