@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
@@ -7,6 +7,48 @@ export type Database = {
7
7
  };
8
8
  public: {
9
9
  Tables: {
10
+ afhandeling_settings: {
11
+ Row: {
12
+ created_at: string;
13
+ id: string;
14
+ max_workdays_earlier_pick: number;
15
+ pick_days_before_transport: number;
16
+ pick_distribution_enabled: boolean;
17
+ signup_mail_enabled: boolean;
18
+ signup_mail_lead_minutes: number;
19
+ signup_mail_purpose: string;
20
+ transport_register_days_before: number;
21
+ updated_at: string;
22
+ user_id: string;
23
+ };
24
+ Insert: {
25
+ created_at?: string;
26
+ id?: string;
27
+ max_workdays_earlier_pick?: number;
28
+ pick_days_before_transport?: number;
29
+ pick_distribution_enabled?: boolean;
30
+ signup_mail_enabled?: boolean;
31
+ signup_mail_lead_minutes?: number;
32
+ signup_mail_purpose?: string;
33
+ transport_register_days_before?: number;
34
+ updated_at?: string;
35
+ user_id: string;
36
+ };
37
+ Update: {
38
+ created_at?: string;
39
+ id?: string;
40
+ max_workdays_earlier_pick?: number;
41
+ pick_days_before_transport?: number;
42
+ pick_distribution_enabled?: boolean;
43
+ signup_mail_enabled?: boolean;
44
+ signup_mail_lead_minutes?: number;
45
+ signup_mail_purpose?: string;
46
+ transport_register_days_before?: number;
47
+ updated_at?: string;
48
+ user_id?: string;
49
+ };
50
+ Relationships: [];
51
+ };
10
52
  agenda_connections: {
11
53
  Row: {
12
54
  account_email: string | null;
@@ -278,6 +320,7 @@ export type Database = {
278
320
  invoice_run_id: string | null;
279
321
  invoice_status: string | null;
280
322
  invoiced_at: string | null;
323
+ notes: string | null;
281
324
  number_of_people: number;
282
325
  room_id: string;
283
326
  start_time: string;
@@ -302,6 +345,7 @@ export type Database = {
302
345
  invoice_run_id?: string | null;
303
346
  invoice_status?: string | null;
304
347
  invoiced_at?: string | null;
348
+ notes?: string | null;
305
349
  number_of_people?: number;
306
350
  room_id: string;
307
351
  start_time: string;
@@ -326,6 +370,7 @@ export type Database = {
326
370
  invoice_run_id?: string | null;
327
371
  invoice_status?: string | null;
328
372
  invoiced_at?: string | null;
373
+ notes?: string | null;
329
374
  number_of_people?: number;
330
375
  room_id?: string;
331
376
  start_time?: string;
@@ -413,6 +458,53 @@ export type Database = {
413
458
  }
414
459
  ];
415
460
  };
461
+ carrier_signup_dispatches: {
462
+ Row: {
463
+ carrier_id: string;
464
+ cart_count: number;
465
+ created_at: string;
466
+ id: string;
467
+ order_count: number;
468
+ outbox_id: string | null;
469
+ pickup_date: string;
470
+ pickup_moment_key: string;
471
+ sent_at: string;
472
+ signup_deadline: string;
473
+ };
474
+ Insert: {
475
+ carrier_id: string;
476
+ cart_count?: number;
477
+ created_at?: string;
478
+ id?: string;
479
+ order_count?: number;
480
+ outbox_id?: string | null;
481
+ pickup_date: string;
482
+ pickup_moment_key: string;
483
+ sent_at?: string;
484
+ signup_deadline: string;
485
+ };
486
+ Update: {
487
+ carrier_id?: string;
488
+ cart_count?: number;
489
+ created_at?: string;
490
+ id?: string;
491
+ order_count?: number;
492
+ outbox_id?: string | null;
493
+ pickup_date?: string;
494
+ pickup_moment_key?: string;
495
+ sent_at?: string;
496
+ signup_deadline?: string;
497
+ };
498
+ Relationships: [
499
+ {
500
+ foreignKeyName: "carrier_signup_dispatches_carrier_id_fkey";
501
+ columns: ["carrier_id"];
502
+ isOneToOne: false;
503
+ referencedRelation: "carriers";
504
+ referencedColumns: ["id"];
505
+ }
506
+ ];
507
+ };
416
508
  carriers: {
417
509
  Row: {
418
510
  address: string | null;
@@ -421,11 +513,18 @@ export type Database = {
421
513
  delivery_days: number | null;
422
514
  email: string | null;
423
515
  id: string;
516
+ is_default: boolean;
424
517
  name: string;
425
518
  notes: string | null;
426
519
  phone: string | null;
520
+ pickup_moments: Json;
521
+ service_cities: string[];
522
+ service_countries: string[];
523
+ service_provinces: string[];
524
+ signup_days_before_delivery: number;
427
525
  signup_time_1: string | null;
428
526
  signup_time_2: string | null;
527
+ sort_order: number;
429
528
  updated_at: string;
430
529
  user_id: string;
431
530
  };
@@ -436,11 +535,18 @@ export type Database = {
436
535
  delivery_days?: number | null;
437
536
  email?: string | null;
438
537
  id?: string;
538
+ is_default?: boolean;
439
539
  name: string;
440
540
  notes?: string | null;
441
541
  phone?: string | null;
542
+ pickup_moments?: Json;
543
+ service_cities?: string[];
544
+ service_countries?: string[];
545
+ service_provinces?: string[];
546
+ signup_days_before_delivery?: number;
442
547
  signup_time_1?: string | null;
443
548
  signup_time_2?: string | null;
549
+ sort_order?: number;
444
550
  updated_at?: string;
445
551
  user_id: string;
446
552
  };
@@ -451,16 +557,62 @@ export type Database = {
451
557
  delivery_days?: number | null;
452
558
  email?: string | null;
453
559
  id?: string;
560
+ is_default?: boolean;
454
561
  name?: string;
455
562
  notes?: string | null;
456
563
  phone?: string | null;
564
+ pickup_moments?: Json;
565
+ service_cities?: string[];
566
+ service_countries?: string[];
567
+ service_provinces?: string[];
568
+ signup_days_before_delivery?: number;
457
569
  signup_time_1?: string | null;
458
570
  signup_time_2?: string | null;
571
+ sort_order?: number;
459
572
  updated_at?: string;
460
573
  user_id?: string;
461
574
  };
462
575
  Relationships: [];
463
576
  };
577
+ cart_pick_overrides: {
578
+ Row: {
579
+ cart_index: number;
580
+ created_at: string;
581
+ id: string;
582
+ moved_from_date: string | null;
583
+ notes: string | null;
584
+ order_id: string;
585
+ order_source: string;
586
+ pick_date: string;
587
+ status: string;
588
+ updated_at: string;
589
+ };
590
+ Insert: {
591
+ cart_index: number;
592
+ created_at?: string;
593
+ id?: string;
594
+ moved_from_date?: string | null;
595
+ notes?: string | null;
596
+ order_id: string;
597
+ order_source: string;
598
+ pick_date: string;
599
+ status?: string;
600
+ updated_at?: string;
601
+ };
602
+ Update: {
603
+ cart_index?: number;
604
+ created_at?: string;
605
+ id?: string;
606
+ moved_from_date?: string | null;
607
+ notes?: string | null;
608
+ order_id?: string;
609
+ order_source?: string;
610
+ pick_date?: string;
611
+ status?: string;
612
+ updated_at?: string;
613
+ };
614
+ Relationships: [];
615
+ };
464
616
  collections: {
465
617
  Row: {
466
618
  created_at: string;
@@ -576,50 +728,75 @@ export type Database = {
576
728
  customer_delivery_locations: {
577
729
  Row: {
578
730
  address_line: string | null;
731
+ carrier_assignment_source: string;
732
+ carrier_id: string | null;
579
733
  city: string | null;
580
734
  country: string | null;
581
735
  created_at: string;
582
736
  customer_id: string;
583
737
  floriday_location_id: string | null;
584
738
  gln: string | null;
739
+ house_number: string | null;
585
740
  id: string;
586
741
  is_primary: boolean;
587
742
  name: string | null;
588
743
  postal_code: string | null;
744
+ province: string | null;
589
745
  raw: Json | null;
746
+ self_pickup: boolean;
747
+ street: string | null;
590
748
  updated_at: string;
591
749
  };
592
750
  Insert: {
593
751
  address_line?: string | null;
752
+ carrier_assignment_source?: string;
753
+ carrier_id?: string | null;
594
754
  city?: string | null;
595
755
  country?: string | null;
596
756
  created_at?: string;
597
757
  customer_id: string;
598
758
  floriday_location_id?: string | null;
599
759
  gln?: string | null;
760
+ house_number?: string | null;
600
761
  id?: string;
601
762
  is_primary?: boolean;
602
763
  name?: string | null;
603
764
  postal_code?: string | null;
765
+ province?: string | null;
604
766
  raw?: Json | null;
767
+ self_pickup?: boolean;
768
+ street?: string | null;
605
769
  updated_at?: string;
606
770
  };
607
771
  Update: {
608
772
  address_line?: string | null;
773
+ carrier_assignment_source?: string;
774
+ carrier_id?: string | null;
609
775
  city?: string | null;
610
776
  country?: string | null;
611
777
  created_at?: string;
612
778
  customer_id?: string;
613
779
  floriday_location_id?: string | null;
614
780
  gln?: string | null;
781
+ house_number?: string | null;
615
782
  id?: string;
616
783
  is_primary?: boolean;
617
784
  name?: string | null;
618
785
  postal_code?: string | null;
786
+ province?: string | null;
619
787
  raw?: Json | null;
788
+ self_pickup?: boolean;
789
+ street?: string | null;
620
790
  updated_at?: string;
621
791
  };
622
792
  Relationships: [
793
+ {
794
+ foreignKeyName: "customer_delivery_locations_carrier_id_fkey";
795
+ columns: ["carrier_id"];
796
+ isOneToOne: false;
797
+ referencedRelation: "carriers";
798
+ referencedColumns: ["id"];
799
+ },
623
800
  {
624
801
  foreignKeyName: "customer_delivery_locations_customer_id_fkey";
625
802
  columns: ["customer_id"];
@@ -1447,18 +1624,21 @@ export type Database = {
1447
1624
  };
1448
1625
  email_auth_purpose_settings: {
1449
1626
  Row: {
1627
+ default_cc: string[];
1450
1628
  purpose: string;
1451
1629
  reply_to: string | null;
1452
1630
  updated_at: string;
1453
1631
  updated_by: string | null;
1454
1632
  };
1455
1633
  Insert: {
1634
+ default_cc?: string[];
1456
1635
  purpose: string;
1457
1636
  reply_to?: string | null;
1458
1637
  updated_at?: string;
1459
1638
  updated_by?: string | null;
1460
1639
  };
1461
1640
  Update: {
1641
+ default_cc?: string[];
1462
1642
  purpose?: string;
1463
1643
  reply_to?: string | null;
1464
1644
  updated_at?: string;
@@ -2254,6 +2434,53 @@ export type Database = {
2254
2434
  }
2255
2435
  ];
2256
2436
  };
2437
+ exact_push_queue: {
2438
+ Row: {
2439
+ attempts: number;
2440
+ connection_id: string;
2441
+ created_at: string;
2442
+ external_id: string | null;
2443
+ id: string;
2444
+ idempotency_hash: string;
2445
+ last_error: string | null;
2446
+ payload: Json;
2447
+ status: Database["public"]["Enums"]["exact_push_status"];
2448
+ updated_at: string;
2449
+ };
2450
+ Insert: {
2451
+ attempts?: number;
2452
+ connection_id: string;
2453
+ created_at?: string;
2454
+ external_id?: string | null;
2455
+ id?: string;
2456
+ idempotency_hash: string;
2457
+ last_error?: string | null;
2458
+ payload: Json;
2459
+ status?: Database["public"]["Enums"]["exact_push_status"];
2460
+ updated_at?: string;
2461
+ };
2462
+ Update: {
2463
+ attempts?: number;
2464
+ connection_id?: string;
2465
+ created_at?: string;
2466
+ external_id?: string | null;
2467
+ id?: string;
2468
+ idempotency_hash?: string;
2469
+ last_error?: string | null;
2470
+ payload?: Json;
2471
+ status?: Database["public"]["Enums"]["exact_push_status"];
2472
+ updated_at?: string;
2473
+ };
2474
+ Relationships: [
2475
+ {
2476
+ foreignKeyName: "exact_push_queue_connection_id_fkey";
2477
+ columns: ["connection_id"];
2478
+ isOneToOne: false;
2479
+ referencedRelation: "exact_connections";
2480
+ referencedColumns: ["id"];
2481
+ }
2482
+ ];
2483
+ };
2257
2484
  exact_refresh_locks: {
2258
2485
  Row: {
2259
2486
  environment: Database["public"]["Enums"]["exact_env"];
@@ -2316,6 +2543,8 @@ export type Database = {
2316
2543
  connection_id: string;
2317
2544
  last_error: string | null;
2318
2545
  last_modified_cursor: string | null;
2546
+ last_modified_cursor_customers: string | null;
2547
+ last_modified_cursor_invoices: string | null;
2319
2548
  last_synced_at: string | null;
2320
2549
  status: string;
2321
2550
  updated_at: string;
@@ -2324,6 +2553,8 @@ export type Database = {
2324
2553
  connection_id: string;
2325
2554
  last_error?: string | null;
2326
2555
  last_modified_cursor?: string | null;
2556
+ last_modified_cursor_customers?: string | null;
2557
+ last_modified_cursor_invoices?: string | null;
2327
2558
  last_synced_at?: string | null;
2328
2559
  status?: string;
2329
2560
  updated_at?: string;
@@ -2332,6 +2563,8 @@ export type Database = {
2332
2563
  connection_id?: string;
2333
2564
  last_error?: string | null;
2334
2565
  last_modified_cursor?: string | null;
2566
+ last_modified_cursor_customers?: string | null;
2567
+ last_modified_cursor_invoices?: string | null;
2335
2568
  last_synced_at?: string | null;
2336
2569
  status?: string;
2337
2570
  updated_at?: string;
@@ -2374,6 +2607,54 @@ export type Database = {
2374
2607
  };
2375
2608
  Relationships: [];
2376
2609
  };
2610
+ external_invoice_providers: {
2611
+ Row: {
2612
+ color: string | null;
2613
+ created_at: string;
2614
+ hmac_secret_name: string | null;
2615
+ icon: string | null;
2616
+ is_enabled: boolean;
2617
+ label: string;
2618
+ last_synced_at: string | null;
2619
+ provider: string;
2620
+ push_endpoint: string | null;
2621
+ sort_order: number;
2622
+ status_endpoint: string | null;
2623
+ sync_endpoint: string | null;
2624
+ updated_at: string;
2625
+ };
2626
+ Insert: {
2627
+ color?: string | null;
2628
+ created_at?: string;
2629
+ hmac_secret_name?: string | null;
2630
+ icon?: string | null;
2631
+ is_enabled?: boolean;
2632
+ label: string;
2633
+ last_synced_at?: string | null;
2634
+ provider: string;
2635
+ push_endpoint?: string | null;
2636
+ sort_order?: number;
2637
+ status_endpoint?: string | null;
2638
+ sync_endpoint?: string | null;
2639
+ updated_at?: string;
2640
+ };
2641
+ Update: {
2642
+ color?: string | null;
2643
+ created_at?: string;
2644
+ hmac_secret_name?: string | null;
2645
+ icon?: string | null;
2646
+ is_enabled?: boolean;
2647
+ label?: string;
2648
+ last_synced_at?: string | null;
2649
+ provider?: string;
2650
+ push_endpoint?: string | null;
2651
+ sort_order?: number;
2652
+ status_endpoint?: string | null;
2653
+ sync_endpoint?: string | null;
2654
+ updated_at?: string;
2655
+ };
2656
+ Relationships: [];
2657
+ };
2377
2658
  extra_categories: {
2378
2659
  Row: {
2379
2660
  created_at: string;
@@ -2398,12 +2679,40 @@ export type Database = {
2398
2679
  };
2399
2680
  Relationships: [];
2400
2681
  };
2682
+ extra_pricing_types: {
2683
+ Row: {
2684
+ code: string;
2685
+ created_at: string;
2686
+ id: string;
2687
+ label: string;
2688
+ sort_order: number;
2689
+ updated_at: string;
2690
+ };
2691
+ Insert: {
2692
+ code: string;
2693
+ created_at?: string;
2694
+ id?: string;
2695
+ label: string;
2696
+ sort_order?: number;
2697
+ updated_at?: string;
2698
+ };
2699
+ Update: {
2700
+ code?: string;
2701
+ created_at?: string;
2702
+ id?: string;
2703
+ label?: string;
2704
+ sort_order?: number;
2705
+ updated_at?: string;
2706
+ };
2707
+ Relationships: [];
2708
+ };
2401
2709
  extras: {
2402
2710
  Row: {
2403
2711
  category: string;
2404
2712
  created_at: string;
2405
2713
  exact_article_id: string | null;
2406
2714
  id: string;
2715
+ image_url: string | null;
2407
2716
  is_active: boolean;
2408
2717
  name: string;
2409
2718
  price: number;
@@ -2414,6 +2723,7 @@ export type Database = {
2414
2723
  created_at?: string;
2415
2724
  exact_article_id?: string | null;
2416
2725
  id?: string;
2726
+ image_url?: string | null;
2417
2727
  is_active?: boolean;
2418
2728
  name: string;
2419
2729
  price?: number;
@@ -2424,6 +2734,7 @@ export type Database = {
2424
2734
  created_at?: string;
2425
2735
  exact_article_id?: string | null;
2426
2736
  id?: string;
2737
+ image_url?: string | null;
2427
2738
  is_active?: boolean;
2428
2739
  name?: string;
2429
2740
  price?: number;
@@ -2521,43 +2832,37 @@ export type Database = {
2521
2832
  };
2522
2833
  Relationships: [];
2523
2834
  };
2524
- floriday_carriers_cache: {
2835
+ floriday_additional_services_cache: {
2525
2836
  Row: {
2526
- connection_id: string | null;
2527
- created_at: string;
2837
+ connection_id: string;
2528
2838
  data: Json;
2529
2839
  fetched_at: string;
2530
- gln_code: string | null;
2531
- id: string;
2532
- name: string | null;
2533
- organization_id: string;
2840
+ floriday_id: string;
2841
+ is_deleted: boolean;
2842
+ sequence_number: number;
2534
2843
  updated_at: string;
2535
2844
  };
2536
2845
  Insert: {
2537
- connection_id?: string | null;
2538
- created_at?: string;
2846
+ connection_id: string;
2539
2847
  data: Json;
2540
2848
  fetched_at?: string;
2541
- gln_code?: string | null;
2542
- id?: string;
2543
- name?: string | null;
2544
- organization_id: string;
2849
+ floriday_id: string;
2850
+ is_deleted?: boolean;
2851
+ sequence_number?: number;
2545
2852
  updated_at?: string;
2546
2853
  };
2547
2854
  Update: {
2548
- connection_id?: string | null;
2549
- created_at?: string;
2855
+ connection_id?: string;
2550
2856
  data?: Json;
2551
2857
  fetched_at?: string;
2552
- gln_code?: string | null;
2553
- id?: string;
2554
- name?: string | null;
2555
- organization_id?: string;
2858
+ floriday_id?: string;
2859
+ is_deleted?: boolean;
2860
+ sequence_number?: number;
2556
2861
  updated_at?: string;
2557
2862
  };
2558
2863
  Relationships: [
2559
2864
  {
2560
- foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
2865
+ foreignKeyName: "floriday_additional_services_cache_connection_id_fkey";
2561
2866
  columns: ["connection_id"];
2562
2867
  isOneToOne: false;
2563
2868
  referencedRelation: "floriday_connections";
@@ -2565,36 +2870,506 @@ export type Database = {
2565
2870
  }
2566
2871
  ];
2567
2872
  };
2568
- floriday_connections: {
2873
+ floriday_agreement_calloffs_cache: {
2569
2874
  Row: {
2570
- access_token: string | null;
2571
- api_key: string;
2572
- client_id: string;
2573
- client_secret: string;
2574
- created_at: string;
2575
- customers_endpoint: string | null;
2576
- environment: string;
2577
- gln_code: string | null;
2875
+ agreement_id: string | null;
2876
+ connection_id: string;
2877
+ data: Json;
2878
+ delivery_date: string | null;
2879
+ fetched_at: string;
2880
+ floriday_id: string;
2578
2881
  id: string;
2579
- is_active: boolean;
2580
- label: string;
2581
- organization_name: string | null;
2582
- preferred_warehouse_id: string | null;
2583
- preferred_warehouse_name: string | null;
2584
- token_expires_at: string | null;
2882
+ is_deleted: boolean;
2883
+ sequence_number: number;
2884
+ status: string | null;
2585
2885
  updated_at: string;
2586
2886
  };
2587
2887
  Insert: {
2588
- access_token?: string | null;
2589
- api_key: string;
2590
- client_id: string;
2591
- client_secret: string;
2592
- created_at?: string;
2593
- customers_endpoint?: string | null;
2594
- environment: string;
2595
- gln_code?: string | null;
2596
- id?: string;
2597
- is_active?: boolean;
2888
+ agreement_id?: string | null;
2889
+ connection_id: string;
2890
+ data?: Json;
2891
+ delivery_date?: string | null;
2892
+ fetched_at?: string;
2893
+ floriday_id: string;
2894
+ id?: string;
2895
+ is_deleted?: boolean;
2896
+ sequence_number?: number;
2897
+ status?: string | null;
2898
+ updated_at?: string;
2899
+ };
2900
+ Update: {
2901
+ agreement_id?: string | null;
2902
+ connection_id?: string;
2903
+ data?: Json;
2904
+ delivery_date?: string | null;
2905
+ fetched_at?: string;
2906
+ floriday_id?: string;
2907
+ id?: string;
2908
+ is_deleted?: boolean;
2909
+ sequence_number?: number;
2910
+ status?: string | null;
2911
+ updated_at?: string;
2912
+ };
2913
+ Relationships: [
2914
+ {
2915
+ foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
2916
+ columns: ["connection_id"];
2917
+ isOneToOne: false;
2918
+ referencedRelation: "floriday_connections";
2919
+ referencedColumns: ["id"];
2920
+ }
2921
+ ];
2922
+ };
2923
+ floriday_agreements_cache: {
2924
+ Row: {
2925
+ buyer_organization_id: string | null;
2926
+ connection_id: string;
2927
+ data: Json;
2928
+ fetched_at: string;
2929
+ floriday_id: string;
2930
+ id: string;
2931
+ is_deleted: boolean;
2932
+ sequence_number: number;
2933
+ status: string | null;
2934
+ updated_at: string;
2935
+ valid_from: string | null;
2936
+ valid_until: string | null;
2937
+ };
2938
+ Insert: {
2939
+ buyer_organization_id?: string | null;
2940
+ connection_id: string;
2941
+ data?: Json;
2942
+ fetched_at?: string;
2943
+ floriday_id: string;
2944
+ id?: string;
2945
+ is_deleted?: boolean;
2946
+ sequence_number?: number;
2947
+ status?: string | null;
2948
+ updated_at?: string;
2949
+ valid_from?: string | null;
2950
+ valid_until?: string | null;
2951
+ };
2952
+ Update: {
2953
+ buyer_organization_id?: string | null;
2954
+ connection_id?: string;
2955
+ data?: Json;
2956
+ fetched_at?: string;
2957
+ floriday_id?: string;
2958
+ id?: string;
2959
+ is_deleted?: boolean;
2960
+ sequence_number?: number;
2961
+ status?: string | null;
2962
+ updated_at?: string;
2963
+ valid_from?: string | null;
2964
+ valid_until?: string | null;
2965
+ };
2966
+ Relationships: [
2967
+ {
2968
+ foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
2969
+ columns: ["connection_id"];
2970
+ isOneToOne: false;
2971
+ referencedRelation: "floriday_connections";
2972
+ referencedColumns: ["id"];
2973
+ }
2974
+ ];
2975
+ };
2976
+ floriday_auction_letters_cache: {
2977
+ Row: {
2978
+ auction_letter_code: string;
2979
+ clock_supply_id: string;
2980
+ connection_id: string;
2981
+ content_type: string;
2982
+ fetched_at: string;
2983
+ id: string;
2984
+ storage_path: string;
2985
+ };
2986
+ Insert: {
2987
+ auction_letter_code: string;
2988
+ clock_supply_id: string;
2989
+ connection_id: string;
2990
+ content_type?: string;
2991
+ fetched_at?: string;
2992
+ id?: string;
2993
+ storage_path: string;
2994
+ };
2995
+ Update: {
2996
+ auction_letter_code?: string;
2997
+ clock_supply_id?: string;
2998
+ connection_id?: string;
2999
+ content_type?: string;
3000
+ fetched_at?: string;
3001
+ id?: string;
3002
+ storage_path?: string;
3003
+ };
3004
+ Relationships: [
3005
+ {
3006
+ foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
3007
+ columns: ["connection_id"];
3008
+ isOneToOne: false;
3009
+ referencedRelation: "floriday_connections";
3010
+ referencedColumns: ["id"];
3011
+ }
3012
+ ];
3013
+ };
3014
+ floriday_base_items_cache: {
3015
+ Row: {
3016
+ connection_id: string;
3017
+ data: Json;
3018
+ fetched_at: string;
3019
+ floriday_id: string;
3020
+ is_deleted: boolean;
3021
+ sequence_number: number;
3022
+ updated_at: string;
3023
+ };
3024
+ Insert: {
3025
+ connection_id: string;
3026
+ data: Json;
3027
+ fetched_at?: string;
3028
+ floriday_id: string;
3029
+ is_deleted?: boolean;
3030
+ sequence_number?: number;
3031
+ updated_at?: string;
3032
+ };
3033
+ Update: {
3034
+ connection_id?: string;
3035
+ data?: Json;
3036
+ fetched_at?: string;
3037
+ floriday_id?: string;
3038
+ is_deleted?: boolean;
3039
+ sequence_number?: number;
3040
+ updated_at?: string;
3041
+ };
3042
+ Relationships: [
3043
+ {
3044
+ foreignKeyName: "floriday_base_items_cache_connection_id_fkey";
3045
+ columns: ["connection_id"];
3046
+ isOneToOne: false;
3047
+ referencedRelation: "floriday_connections";
3048
+ referencedColumns: ["id"];
3049
+ }
3050
+ ];
3051
+ };
3052
+ floriday_blanket_orders_cache: {
3053
+ Row: {
3054
+ connection_id: string;
3055
+ contract_id: string | null;
3056
+ created_at: string;
3057
+ data: Json;
3058
+ fetched_at: string;
3059
+ floriday_id: string;
3060
+ id: string;
3061
+ is_deleted: boolean;
3062
+ sequence_number: number;
3063
+ updated_at: string;
3064
+ };
3065
+ Insert: {
3066
+ connection_id: string;
3067
+ contract_id?: string | null;
3068
+ created_at?: string;
3069
+ data: Json;
3070
+ fetched_at?: string;
3071
+ floriday_id: string;
3072
+ id?: string;
3073
+ is_deleted?: boolean;
3074
+ sequence_number?: number;
3075
+ updated_at?: string;
3076
+ };
3077
+ Update: {
3078
+ connection_id?: string;
3079
+ contract_id?: string | null;
3080
+ created_at?: string;
3081
+ data?: Json;
3082
+ fetched_at?: string;
3083
+ floriday_id?: string;
3084
+ id?: string;
3085
+ is_deleted?: boolean;
3086
+ sequence_number?: number;
3087
+ updated_at?: string;
3088
+ };
3089
+ Relationships: [
3090
+ {
3091
+ foreignKeyName: "floriday_blanket_orders_cache_connection_id_fkey";
3092
+ columns: ["connection_id"];
3093
+ isOneToOne: false;
3094
+ referencedRelation: "floriday_connections";
3095
+ referencedColumns: ["id"];
3096
+ }
3097
+ ];
3098
+ };
3099
+ floriday_carriers_cache: {
3100
+ Row: {
3101
+ connection_id: string | null;
3102
+ created_at: string;
3103
+ data: Json;
3104
+ fetched_at: string;
3105
+ gln_code: string | null;
3106
+ id: string;
3107
+ name: string | null;
3108
+ organization_id: string;
3109
+ updated_at: string;
3110
+ };
3111
+ Insert: {
3112
+ connection_id?: string | null;
3113
+ created_at?: string;
3114
+ data: Json;
3115
+ fetched_at?: string;
3116
+ gln_code?: string | null;
3117
+ id?: string;
3118
+ name?: string | null;
3119
+ organization_id: string;
3120
+ updated_at?: string;
3121
+ };
3122
+ Update: {
3123
+ connection_id?: string | null;
3124
+ created_at?: string;
3125
+ data?: Json;
3126
+ fetched_at?: string;
3127
+ gln_code?: string | null;
3128
+ id?: string;
3129
+ name?: string | null;
3130
+ organization_id?: string;
3131
+ updated_at?: string;
3132
+ };
3133
+ Relationships: [
3134
+ {
3135
+ foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
3136
+ columns: ["connection_id"];
3137
+ isOneToOne: false;
3138
+ referencedRelation: "floriday_connections";
3139
+ referencedColumns: ["id"];
3140
+ }
3141
+ ];
3142
+ };
3143
+ floriday_clock_presales_cache: {
3144
+ Row: {
3145
+ buyer_organization_id: string | null;
3146
+ clock_supply_id: string | null;
3147
+ connection_id: string;
3148
+ data: Json;
3149
+ fetched_at: string;
3150
+ floriday_id: string;
3151
+ id: string;
3152
+ is_deleted: boolean;
3153
+ sequence_number: number;
3154
+ updated_at: string;
3155
+ };
3156
+ Insert: {
3157
+ buyer_organization_id?: string | null;
3158
+ clock_supply_id?: string | null;
3159
+ connection_id: string;
3160
+ data?: Json;
3161
+ fetched_at?: string;
3162
+ floriday_id: string;
3163
+ id?: string;
3164
+ is_deleted?: boolean;
3165
+ sequence_number?: number;
3166
+ updated_at?: string;
3167
+ };
3168
+ Update: {
3169
+ buyer_organization_id?: string | null;
3170
+ clock_supply_id?: string | null;
3171
+ connection_id?: string;
3172
+ data?: Json;
3173
+ fetched_at?: string;
3174
+ floriday_id?: string;
3175
+ id?: string;
3176
+ is_deleted?: boolean;
3177
+ sequence_number?: number;
3178
+ updated_at?: string;
3179
+ };
3180
+ Relationships: [
3181
+ {
3182
+ foreignKeyName: "floriday_clock_presales_cache_connection_id_fkey";
3183
+ columns: ["connection_id"];
3184
+ isOneToOne: false;
3185
+ referencedRelation: "floriday_connections";
3186
+ referencedColumns: ["id"];
3187
+ }
3188
+ ];
3189
+ };
3190
+ floriday_clock_supplies_cache: {
3191
+ Row: {
3192
+ auction_date: string | null;
3193
+ connection_id: string;
3194
+ data: Json;
3195
+ fetched_at: string;
3196
+ floriday_id: string;
3197
+ id: string;
3198
+ is_deleted: boolean;
3199
+ sequence_number: number;
3200
+ status: string | null;
3201
+ trade_item_id: string | null;
3202
+ updated_at: string;
3203
+ };
3204
+ Insert: {
3205
+ auction_date?: string | null;
3206
+ connection_id: string;
3207
+ data?: Json;
3208
+ fetched_at?: string;
3209
+ floriday_id: string;
3210
+ id?: string;
3211
+ is_deleted?: boolean;
3212
+ sequence_number?: number;
3213
+ status?: string | null;
3214
+ trade_item_id?: string | null;
3215
+ updated_at?: string;
3216
+ };
3217
+ Update: {
3218
+ auction_date?: string | null;
3219
+ connection_id?: string;
3220
+ data?: Json;
3221
+ fetched_at?: string;
3222
+ floriday_id?: string;
3223
+ id?: string;
3224
+ is_deleted?: boolean;
3225
+ sequence_number?: number;
3226
+ status?: string | null;
3227
+ trade_item_id?: string | null;
3228
+ updated_at?: string;
3229
+ };
3230
+ Relationships: [
3231
+ {
3232
+ foreignKeyName: "floriday_clock_supplies_cache_connection_id_fkey";
3233
+ columns: ["connection_id"];
3234
+ isOneToOne: false;
3235
+ referencedRelation: "floriday_connections";
3236
+ referencedColumns: ["id"];
3237
+ }
3238
+ ];
3239
+ };
3240
+ floriday_code_lists_cache: {
3241
+ Row: {
3242
+ code: string;
3243
+ environment: string;
3244
+ label: string | null;
3245
+ list_name: string;
3246
+ payload: Json | null;
3247
+ updated_at: string;
3248
+ };
3249
+ Insert: {
3250
+ code: string;
3251
+ environment: string;
3252
+ label?: string | null;
3253
+ list_name: string;
3254
+ payload?: Json | null;
3255
+ updated_at?: string;
3256
+ };
3257
+ Update: {
3258
+ code?: string;
3259
+ environment?: string;
3260
+ label?: string | null;
3261
+ list_name?: string;
3262
+ payload?: Json | null;
3263
+ updated_at?: string;
3264
+ };
3265
+ Relationships: [];
3266
+ };
3267
+ floriday_collections_cache: {
3268
+ Row: {
3269
+ connection_id: string;
3270
+ data: Json;
3271
+ fetched_at: string;
3272
+ floriday_id: string;
3273
+ is_deleted: boolean;
3274
+ sequence_number: number;
3275
+ updated_at: string;
3276
+ };
3277
+ Insert: {
3278
+ connection_id: string;
3279
+ data: Json;
3280
+ fetched_at?: string;
3281
+ floriday_id: string;
3282
+ is_deleted?: boolean;
3283
+ sequence_number?: number;
3284
+ updated_at?: string;
3285
+ };
3286
+ Update: {
3287
+ connection_id?: string;
3288
+ data?: Json;
3289
+ fetched_at?: string;
3290
+ floriday_id?: string;
3291
+ is_deleted?: boolean;
3292
+ sequence_number?: number;
3293
+ updated_at?: string;
3294
+ };
3295
+ Relationships: [
3296
+ {
3297
+ foreignKeyName: "floriday_collections_cache_connection_id_fkey";
3298
+ columns: ["connection_id"];
3299
+ isOneToOne: false;
3300
+ referencedRelation: "floriday_connections";
3301
+ referencedColumns: ["id"];
3302
+ }
3303
+ ];
3304
+ };
3305
+ floriday_commercial_service_types_cache: {
3306
+ Row: {
3307
+ connection_id: string;
3308
+ data: Json;
3309
+ fetched_at: string;
3310
+ floriday_id: string;
3311
+ is_deleted: boolean;
3312
+ sequence_number: number;
3313
+ updated_at: string;
3314
+ };
3315
+ Insert: {
3316
+ connection_id: string;
3317
+ data: Json;
3318
+ fetched_at?: string;
3319
+ floriday_id: string;
3320
+ is_deleted?: boolean;
3321
+ sequence_number?: number;
3322
+ updated_at?: string;
3323
+ };
3324
+ Update: {
3325
+ connection_id?: string;
3326
+ data?: Json;
3327
+ fetched_at?: string;
3328
+ floriday_id?: string;
3329
+ is_deleted?: boolean;
3330
+ sequence_number?: number;
3331
+ updated_at?: string;
3332
+ };
3333
+ Relationships: [
3334
+ {
3335
+ foreignKeyName: "floriday_commercial_service_types_cache_connection_id_fkey";
3336
+ columns: ["connection_id"];
3337
+ isOneToOne: false;
3338
+ referencedRelation: "floriday_connections";
3339
+ referencedColumns: ["id"];
3340
+ }
3341
+ ];
3342
+ };
3343
+ floriday_connections: {
3344
+ Row: {
3345
+ access_token: string | null;
3346
+ api_key: string;
3347
+ client_id: string;
3348
+ client_secret: string;
3349
+ created_at: string;
3350
+ customers_endpoint: string | null;
3351
+ environment: string;
3352
+ gln_code: string | null;
3353
+ id: string;
3354
+ is_active: boolean;
3355
+ label: string;
3356
+ organization_name: string | null;
3357
+ preferred_warehouse_id: string | null;
3358
+ preferred_warehouse_name: string | null;
3359
+ token_expires_at: string | null;
3360
+ updated_at: string;
3361
+ };
3362
+ Insert: {
3363
+ access_token?: string | null;
3364
+ api_key: string;
3365
+ client_id: string;
3366
+ client_secret: string;
3367
+ created_at?: string;
3368
+ customers_endpoint?: string | null;
3369
+ environment: string;
3370
+ gln_code?: string | null;
3371
+ id?: string;
3372
+ is_active?: boolean;
2598
3373
  label?: string;
2599
3374
  organization_name?: string | null;
2600
3375
  preferred_warehouse_id?: string | null;
@@ -2603,62 +3378,482 @@ export type Database = {
2603
3378
  updated_at?: string;
2604
3379
  };
2605
3380
  Update: {
2606
- access_token?: string | null;
2607
- api_key?: string;
2608
- client_id?: string;
2609
- client_secret?: string;
2610
- created_at?: string;
2611
- customers_endpoint?: string | null;
2612
- environment?: string;
2613
- gln_code?: string | null;
3381
+ access_token?: string | null;
3382
+ api_key?: string;
3383
+ client_id?: string;
3384
+ client_secret?: string;
3385
+ created_at?: string;
3386
+ customers_endpoint?: string | null;
3387
+ environment?: string;
3388
+ gln_code?: string | null;
3389
+ id?: string;
3390
+ is_active?: boolean;
3391
+ label?: string;
3392
+ organization_name?: string | null;
3393
+ preferred_warehouse_id?: string | null;
3394
+ preferred_warehouse_name?: string | null;
3395
+ token_expires_at?: string | null;
3396
+ updated_at?: string;
3397
+ };
3398
+ Relationships: [];
3399
+ };
3400
+ floriday_connections_cache: {
3401
+ Row: {
3402
+ buyer_organization_id: string | null;
3403
+ buyer_organization_name: string | null;
3404
+ connection_id: string;
3405
+ data: Json;
3406
+ floriday_connection_id: string;
3407
+ is_deleted: boolean;
3408
+ sequence_number: number;
3409
+ status: string | null;
3410
+ synced_at: string;
3411
+ };
3412
+ Insert: {
3413
+ buyer_organization_id?: string | null;
3414
+ buyer_organization_name?: string | null;
3415
+ connection_id: string;
3416
+ data: Json;
3417
+ floriday_connection_id: string;
3418
+ is_deleted?: boolean;
3419
+ sequence_number: number;
3420
+ status?: string | null;
3421
+ synced_at?: string;
3422
+ };
3423
+ Update: {
3424
+ buyer_organization_id?: string | null;
3425
+ buyer_organization_name?: string | null;
3426
+ connection_id?: string;
3427
+ data?: Json;
3428
+ floriday_connection_id?: string;
3429
+ is_deleted?: boolean;
3430
+ sequence_number?: number;
3431
+ status?: string | null;
3432
+ synced_at?: string;
3433
+ };
3434
+ Relationships: [
3435
+ {
3436
+ foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3437
+ columns: ["connection_id"];
3438
+ isOneToOne: false;
3439
+ referencedRelation: "floriday_connections";
3440
+ referencedColumns: ["id"];
3441
+ }
3442
+ ];
3443
+ };
3444
+ floriday_contract_trade_item_groups_cache: {
3445
+ Row: {
3446
+ connection_id: string;
3447
+ data: Json;
3448
+ fetched_at: string;
3449
+ floriday_id: string;
3450
+ is_deleted: boolean;
3451
+ sequence_number: number;
3452
+ updated_at: string;
3453
+ };
3454
+ Insert: {
3455
+ connection_id: string;
3456
+ data: Json;
3457
+ fetched_at?: string;
3458
+ floriday_id: string;
3459
+ is_deleted?: boolean;
3460
+ sequence_number?: number;
3461
+ updated_at?: string;
3462
+ };
3463
+ Update: {
3464
+ connection_id?: string;
3465
+ data?: Json;
3466
+ fetched_at?: string;
3467
+ floriday_id?: string;
3468
+ is_deleted?: boolean;
3469
+ sequence_number?: number;
3470
+ updated_at?: string;
3471
+ };
3472
+ Relationships: [
3473
+ {
3474
+ foreignKeyName: "floriday_contract_trade_item_groups_cache_connection_id_fkey";
3475
+ columns: ["connection_id"];
3476
+ isOneToOne: false;
3477
+ referencedRelation: "floriday_connections";
3478
+ referencedColumns: ["id"];
3479
+ }
3480
+ ];
3481
+ };
3482
+ floriday_contracts_cache: {
3483
+ Row: {
3484
+ connection_id: string;
3485
+ created_at: string;
3486
+ data: Json;
3487
+ fetched_at: string;
3488
+ floriday_id: string;
3489
+ id: string;
3490
+ is_deleted: boolean;
3491
+ sequence_number: number;
3492
+ updated_at: string;
3493
+ };
3494
+ Insert: {
3495
+ connection_id: string;
3496
+ created_at?: string;
3497
+ data: Json;
3498
+ fetched_at?: string;
3499
+ floriday_id: string;
3500
+ id?: string;
3501
+ is_deleted?: boolean;
3502
+ sequence_number?: number;
3503
+ updated_at?: string;
3504
+ };
3505
+ Update: {
3506
+ connection_id?: string;
3507
+ created_at?: string;
3508
+ data?: Json;
3509
+ fetched_at?: string;
3510
+ floriday_id?: string;
3511
+ id?: string;
3512
+ is_deleted?: boolean;
3513
+ sequence_number?: number;
3514
+ updated_at?: string;
3515
+ };
3516
+ Relationships: [
3517
+ {
3518
+ foreignKeyName: "floriday_contracts_cache_connection_id_fkey";
3519
+ columns: ["connection_id"];
3520
+ isOneToOne: false;
3521
+ referencedRelation: "floriday_connections";
3522
+ referencedColumns: ["id"];
3523
+ }
3524
+ ];
3525
+ };
3526
+ floriday_customer_sticker_pdfs_cache: {
3527
+ Row: {
3528
+ byte_size: number | null;
3529
+ connection_id: string;
3530
+ content_type: string;
3531
+ created_at: string;
3532
+ fetched_at: string;
3533
+ id: string;
3534
+ sticker_id: string;
3535
+ storage_path: string;
3536
+ };
3537
+ Insert: {
3538
+ byte_size?: number | null;
3539
+ connection_id: string;
3540
+ content_type?: string;
3541
+ created_at?: string;
3542
+ fetched_at?: string;
3543
+ id?: string;
3544
+ sticker_id: string;
3545
+ storage_path: string;
3546
+ };
3547
+ Update: {
3548
+ byte_size?: number | null;
3549
+ connection_id?: string;
3550
+ content_type?: string;
3551
+ created_at?: string;
3552
+ fetched_at?: string;
3553
+ id?: string;
3554
+ sticker_id?: string;
3555
+ storage_path?: string;
3556
+ };
3557
+ Relationships: [
3558
+ {
3559
+ foreignKeyName: "floriday_customer_sticker_pdfs_cache_connection_id_fkey";
3560
+ columns: ["connection_id"];
3561
+ isOneToOne: false;
3562
+ referencedRelation: "floriday_connections";
3563
+ referencedColumns: ["id"];
3564
+ }
3565
+ ];
3566
+ };
3567
+ floriday_customer_stickers_cache: {
3568
+ Row: {
3569
+ connection_id: string;
3570
+ created_at: string;
3571
+ data: Json;
3572
+ fetched_at: string;
3573
+ floriday_id: string;
3574
+ id: string;
3575
+ is_deleted: boolean;
3576
+ quantity: number | null;
3577
+ sales_order_id: string | null;
3578
+ sequence_number: number;
3579
+ status: string | null;
3580
+ trade_item_id: string | null;
3581
+ updated_at: string;
3582
+ };
3583
+ Insert: {
3584
+ connection_id: string;
3585
+ created_at?: string;
3586
+ data?: Json;
3587
+ fetched_at?: string;
3588
+ floriday_id: string;
3589
+ id?: string;
3590
+ is_deleted?: boolean;
3591
+ quantity?: number | null;
3592
+ sales_order_id?: string | null;
3593
+ sequence_number?: number;
3594
+ status?: string | null;
3595
+ trade_item_id?: string | null;
3596
+ updated_at?: string;
3597
+ };
3598
+ Update: {
3599
+ connection_id?: string;
3600
+ created_at?: string;
3601
+ data?: Json;
3602
+ fetched_at?: string;
3603
+ floriday_id?: string;
3604
+ id?: string;
3605
+ is_deleted?: boolean;
3606
+ quantity?: number | null;
3607
+ sales_order_id?: string | null;
3608
+ sequence_number?: number;
3609
+ status?: string | null;
3610
+ trade_item_id?: string | null;
3611
+ updated_at?: string;
3612
+ };
3613
+ Relationships: [
3614
+ {
3615
+ foreignKeyName: "floriday_customer_stickers_cache_connection_id_fkey";
3616
+ columns: ["connection_id"];
3617
+ isOneToOne: false;
3618
+ referencedRelation: "floriday_connections";
3619
+ referencedColumns: ["id"];
3620
+ }
3621
+ ];
3622
+ };
3623
+ floriday_customers_cache: {
3624
+ Row: {
3625
+ connection_id: string | null;
3626
+ data: Json;
3627
+ fetched_at: string;
3628
+ gln_code: string | null;
3629
+ is_deleted: boolean;
3630
+ name: string | null;
3631
+ organization_id: string;
3632
+ sequence_number: number | null;
3633
+ };
3634
+ Insert: {
3635
+ connection_id?: string | null;
3636
+ data?: Json;
3637
+ fetched_at?: string;
3638
+ gln_code?: string | null;
3639
+ is_deleted?: boolean;
3640
+ name?: string | null;
3641
+ organization_id: string;
3642
+ sequence_number?: number | null;
3643
+ };
3644
+ Update: {
3645
+ connection_id?: string | null;
3646
+ data?: Json;
3647
+ fetched_at?: string;
3648
+ gln_code?: string | null;
3649
+ is_deleted?: boolean;
3650
+ name?: string | null;
3651
+ organization_id?: string;
3652
+ sequence_number?: number | null;
3653
+ };
3654
+ Relationships: [
3655
+ {
3656
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3657
+ columns: ["connection_id"];
3658
+ isOneToOne: false;
3659
+ referencedRelation: "floriday_connections";
3660
+ referencedColumns: ["id"];
3661
+ }
3662
+ ];
3663
+ };
3664
+ floriday_delivery_condition_sets_cache: {
3665
+ Row: {
3666
+ connection_id: string;
3667
+ data: Json;
3668
+ fetched_at: string;
3669
+ floriday_id: string;
3670
+ is_deleted: boolean;
3671
+ sequence_number: number;
3672
+ updated_at: string;
3673
+ };
3674
+ Insert: {
3675
+ connection_id: string;
3676
+ data: Json;
3677
+ fetched_at?: string;
3678
+ floriday_id: string;
3679
+ is_deleted?: boolean;
3680
+ sequence_number?: number;
3681
+ updated_at?: string;
3682
+ };
3683
+ Update: {
3684
+ connection_id?: string;
3685
+ data?: Json;
3686
+ fetched_at?: string;
3687
+ floriday_id?: string;
3688
+ is_deleted?: boolean;
3689
+ sequence_number?: number;
3690
+ updated_at?: string;
3691
+ };
3692
+ Relationships: [
3693
+ {
3694
+ foreignKeyName: "floriday_delivery_condition_sets_cache_connection_id_fkey";
3695
+ columns: ["connection_id"];
3696
+ isOneToOne: false;
3697
+ referencedRelation: "floriday_connections";
3698
+ referencedColumns: ["id"];
3699
+ }
3700
+ ];
3701
+ };
3702
+ floriday_delivery_locations_cache: {
3703
+ Row: {
3704
+ connection_id: string;
3705
+ data: Json;
3706
+ fetched_at: string;
3707
+ floriday_id: string;
3708
+ gln_code: string | null;
3709
+ id: string;
3710
+ is_deleted: boolean;
3711
+ name: string | null;
3712
+ organization_id: string | null;
3713
+ updated_at: string;
3714
+ };
3715
+ Insert: {
3716
+ connection_id: string;
3717
+ data?: Json;
3718
+ fetched_at?: string;
3719
+ floriday_id: string;
3720
+ gln_code?: string | null;
3721
+ id?: string;
3722
+ is_deleted?: boolean;
3723
+ name?: string | null;
3724
+ organization_id?: string | null;
3725
+ updated_at?: string;
3726
+ };
3727
+ Update: {
3728
+ connection_id?: string;
3729
+ data?: Json;
3730
+ fetched_at?: string;
3731
+ floriday_id?: string;
3732
+ gln_code?: string | null;
3733
+ id?: string;
3734
+ is_deleted?: boolean;
3735
+ name?: string | null;
3736
+ organization_id?: string | null;
3737
+ updated_at?: string;
3738
+ };
3739
+ Relationships: [
3740
+ {
3741
+ foreignKeyName: "floriday_delivery_locations_cache_connection_id_fkey";
3742
+ columns: ["connection_id"];
3743
+ isOneToOne: false;
3744
+ referencedRelation: "floriday_connections";
3745
+ referencedColumns: ["id"];
3746
+ }
3747
+ ];
3748
+ };
3749
+ floriday_delivery_orders_cache: {
3750
+ Row: {
3751
+ auction_date: string | null;
3752
+ connection_id: string;
3753
+ data: Json;
3754
+ destination_warehouse_id: string | null;
3755
+ fetched_at: string;
3756
+ floriday_id: string;
3757
+ id: string;
3758
+ is_deleted: boolean;
3759
+ sequence_number: number;
3760
+ status: string | null;
3761
+ trade_item_id: string | null;
3762
+ updated_at: string;
3763
+ };
3764
+ Insert: {
3765
+ auction_date?: string | null;
3766
+ connection_id: string;
3767
+ data?: Json;
3768
+ destination_warehouse_id?: string | null;
3769
+ fetched_at?: string;
3770
+ floriday_id: string;
3771
+ id?: string;
3772
+ is_deleted?: boolean;
3773
+ sequence_number?: number;
3774
+ status?: string | null;
3775
+ trade_item_id?: string | null;
3776
+ updated_at?: string;
3777
+ };
3778
+ Update: {
3779
+ auction_date?: string | null;
3780
+ connection_id?: string;
3781
+ data?: Json;
3782
+ destination_warehouse_id?: string | null;
3783
+ fetched_at?: string;
3784
+ floriday_id?: string;
2614
3785
  id?: string;
2615
- is_active?: boolean;
2616
- label?: string;
2617
- organization_name?: string | null;
2618
- preferred_warehouse_id?: string | null;
2619
- preferred_warehouse_name?: string | null;
2620
- token_expires_at?: string | null;
3786
+ is_deleted?: boolean;
3787
+ sequence_number?: number;
3788
+ status?: string | null;
3789
+ trade_item_id?: string | null;
2621
3790
  updated_at?: string;
2622
3791
  };
2623
- Relationships: [];
3792
+ Relationships: [
3793
+ {
3794
+ foreignKeyName: "floriday_delivery_orders_cache_connection_id_fkey";
3795
+ columns: ["connection_id"];
3796
+ isOneToOne: false;
3797
+ referencedRelation: "floriday_connections";
3798
+ referencedColumns: ["id"];
3799
+ }
3800
+ ];
2624
3801
  };
2625
- floriday_connections_cache: {
3802
+ floriday_fulfillment_orders_cache: {
2626
3803
  Row: {
2627
- buyer_organization_id: string | null;
2628
- buyer_organization_name: string | null;
3804
+ auction_date: string | null;
2629
3805
  connection_id: string;
2630
3806
  data: Json;
2631
- floriday_connection_id: string;
2632
- is_deleted: boolean;
3807
+ delivery_order_id: string | null;
3808
+ despatch_warehouse_id: string | null;
3809
+ destination_warehouse_id: string | null;
3810
+ fetched_at: string;
3811
+ floriday_id: string;
3812
+ id: string;
3813
+ is_deleted: boolean | null;
3814
+ latest_delivery_at: string | null;
3815
+ load_carrier_type: string | null;
3816
+ one_label_only: boolean | null;
2633
3817
  sequence_number: number;
2634
3818
  status: string | null;
2635
- synced_at: string;
2636
3819
  };
2637
3820
  Insert: {
2638
- buyer_organization_id?: string | null;
2639
- buyer_organization_name?: string | null;
3821
+ auction_date?: string | null;
2640
3822
  connection_id: string;
2641
3823
  data: Json;
2642
- floriday_connection_id: string;
2643
- is_deleted?: boolean;
2644
- sequence_number: number;
3824
+ delivery_order_id?: string | null;
3825
+ despatch_warehouse_id?: string | null;
3826
+ destination_warehouse_id?: string | null;
3827
+ fetched_at?: string;
3828
+ floriday_id: string;
3829
+ id?: string;
3830
+ is_deleted?: boolean | null;
3831
+ latest_delivery_at?: string | null;
3832
+ load_carrier_type?: string | null;
3833
+ one_label_only?: boolean | null;
3834
+ sequence_number?: number;
2645
3835
  status?: string | null;
2646
- synced_at?: string;
2647
3836
  };
2648
3837
  Update: {
2649
- buyer_organization_id?: string | null;
2650
- buyer_organization_name?: string | null;
3838
+ auction_date?: string | null;
2651
3839
  connection_id?: string;
2652
3840
  data?: Json;
2653
- floriday_connection_id?: string;
2654
- is_deleted?: boolean;
3841
+ delivery_order_id?: string | null;
3842
+ despatch_warehouse_id?: string | null;
3843
+ destination_warehouse_id?: string | null;
3844
+ fetched_at?: string;
3845
+ floriday_id?: string;
3846
+ id?: string;
3847
+ is_deleted?: boolean | null;
3848
+ latest_delivery_at?: string | null;
3849
+ load_carrier_type?: string | null;
3850
+ one_label_only?: boolean | null;
2655
3851
  sequence_number?: number;
2656
3852
  status?: string | null;
2657
- synced_at?: string;
2658
3853
  };
2659
3854
  Relationships: [
2660
3855
  {
2661
- foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3856
+ foreignKeyName: "floriday_fulfillment_orders_cache_connection_id_fkey";
2662
3857
  columns: ["connection_id"];
2663
3858
  isOneToOne: false;
2664
3859
  referencedRelation: "floriday_connections";
@@ -2666,28 +3861,96 @@ export type Database = {
2666
3861
  }
2667
3862
  ];
2668
3863
  };
2669
- floriday_customers_cache: {
3864
+ floriday_invoices_cache: {
2670
3865
  Row: {
2671
- connection_id: string | null;
3866
+ buyer_organization_id: string | null;
3867
+ connection_id: string;
3868
+ currency: string | null;
2672
3869
  data: Json;
2673
3870
  fetched_at: string;
2674
- organization_id: string;
3871
+ floriday_id: string;
3872
+ id: string;
3873
+ invoice_date: string | null;
3874
+ invoice_number: string | null;
3875
+ is_deleted: boolean;
3876
+ sequence_number: number;
3877
+ total_amount: number | null;
3878
+ updated_at: string;
2675
3879
  };
2676
3880
  Insert: {
2677
- connection_id?: string | null;
3881
+ buyer_organization_id?: string | null;
3882
+ connection_id: string;
3883
+ currency?: string | null;
2678
3884
  data?: Json;
2679
3885
  fetched_at?: string;
2680
- organization_id: string;
3886
+ floriday_id: string;
3887
+ id?: string;
3888
+ invoice_date?: string | null;
3889
+ invoice_number?: string | null;
3890
+ is_deleted?: boolean;
3891
+ sequence_number?: number;
3892
+ total_amount?: number | null;
3893
+ updated_at?: string;
2681
3894
  };
2682
3895
  Update: {
2683
- connection_id?: string | null;
3896
+ buyer_organization_id?: string | null;
3897
+ connection_id?: string;
3898
+ currency?: string | null;
2684
3899
  data?: Json;
2685
3900
  fetched_at?: string;
2686
- organization_id?: string;
3901
+ floriday_id?: string;
3902
+ id?: string;
3903
+ invoice_date?: string | null;
3904
+ invoice_number?: string | null;
3905
+ is_deleted?: boolean;
3906
+ sequence_number?: number;
3907
+ total_amount?: number | null;
3908
+ updated_at?: string;
2687
3909
  };
2688
3910
  Relationships: [
2689
3911
  {
2690
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3912
+ foreignKeyName: "floriday_invoices_cache_connection_id_fkey";
3913
+ columns: ["connection_id"];
3914
+ isOneToOne: false;
3915
+ referencedRelation: "floriday_connections";
3916
+ referencedColumns: ["id"];
3917
+ }
3918
+ ];
3919
+ };
3920
+ floriday_logistic_labels_cache: {
3921
+ Row: {
3922
+ byte_size: number | null;
3923
+ connection_id: string;
3924
+ content_type: string;
3925
+ fetched_at: string;
3926
+ fulfillment_order_id: string;
3927
+ id: string;
3928
+ logistic_label_code: string;
3929
+ storage_path: string;
3930
+ };
3931
+ Insert: {
3932
+ byte_size?: number | null;
3933
+ connection_id: string;
3934
+ content_type?: string;
3935
+ fetched_at?: string;
3936
+ fulfillment_order_id: string;
3937
+ id?: string;
3938
+ logistic_label_code: string;
3939
+ storage_path: string;
3940
+ };
3941
+ Update: {
3942
+ byte_size?: number | null;
3943
+ connection_id?: string;
3944
+ content_type?: string;
3945
+ fetched_at?: string;
3946
+ fulfillment_order_id?: string;
3947
+ id?: string;
3948
+ logistic_label_code?: string;
3949
+ storage_path?: string;
3950
+ };
3951
+ Relationships: [
3952
+ {
3953
+ foreignKeyName: "floriday_logistic_labels_cache_connection_id_fkey";
2691
3954
  columns: ["connection_id"];
2692
3955
  isOneToOne: false;
2693
3956
  referencedRelation: "floriday_connections";
@@ -2728,29 +3991,191 @@ export type Database = {
2728
3991
  };
2729
3992
  Relationships: [];
2730
3993
  };
2731
- floriday_network_sync_state: {
3994
+ floriday_network_sync_state: {
3995
+ Row: {
3996
+ connection_id: string;
3997
+ last_error: string | null;
3998
+ last_sequence_number: number;
3999
+ last_synced_at: string | null;
4000
+ updated_at: string;
4001
+ };
4002
+ Insert: {
4003
+ connection_id: string;
4004
+ last_error?: string | null;
4005
+ last_sequence_number?: number;
4006
+ last_synced_at?: string | null;
4007
+ updated_at?: string;
4008
+ };
4009
+ Update: {
4010
+ connection_id?: string;
4011
+ last_error?: string | null;
4012
+ last_sequence_number?: number;
4013
+ last_synced_at?: string | null;
4014
+ updated_at?: string;
4015
+ };
4016
+ Relationships: [];
4017
+ };
4018
+ floriday_order_number_map: {
4019
+ Row: {
4020
+ created_at: string;
4021
+ floriday_id: string;
4022
+ order_number: string;
4023
+ };
4024
+ Insert: {
4025
+ created_at?: string;
4026
+ floriday_id: string;
4027
+ order_number: string;
4028
+ };
4029
+ Update: {
4030
+ created_at?: string;
4031
+ floriday_id?: string;
4032
+ order_number?: string;
4033
+ };
4034
+ Relationships: [];
4035
+ };
4036
+ floriday_packings_cache: {
4037
+ Row: {
4038
+ connection_id: string;
4039
+ data: Json;
4040
+ fetched_at: string;
4041
+ floriday_id: string;
4042
+ id: string;
4043
+ is_deleted: boolean;
4044
+ sequence_number: number;
4045
+ updated_at: string;
4046
+ };
4047
+ Insert: {
4048
+ connection_id: string;
4049
+ data?: Json;
4050
+ fetched_at?: string;
4051
+ floriday_id: string;
4052
+ id?: string;
4053
+ is_deleted?: boolean;
4054
+ sequence_number?: number;
4055
+ updated_at?: string;
4056
+ };
4057
+ Update: {
4058
+ connection_id?: string;
4059
+ data?: Json;
4060
+ fetched_at?: string;
4061
+ floriday_id?: string;
4062
+ id?: string;
4063
+ is_deleted?: boolean;
4064
+ sequence_number?: number;
4065
+ updated_at?: string;
4066
+ };
4067
+ Relationships: [
4068
+ {
4069
+ foreignKeyName: "floriday_packings_cache_connection_id_fkey";
4070
+ columns: ["connection_id"];
4071
+ isOneToOne: false;
4072
+ referencedRelation: "floriday_connections";
4073
+ referencedColumns: ["id"];
4074
+ }
4075
+ ];
4076
+ };
4077
+ floriday_price_groups_cache: {
4078
+ Row: {
4079
+ connection_id: string;
4080
+ data: Json;
4081
+ fetched_at: string;
4082
+ floriday_id: string;
4083
+ is_deleted: boolean;
4084
+ sequence_number: number;
4085
+ updated_at: string;
4086
+ };
4087
+ Insert: {
4088
+ connection_id: string;
4089
+ data: Json;
4090
+ fetched_at?: string;
4091
+ floriday_id: string;
4092
+ is_deleted?: boolean;
4093
+ sequence_number?: number;
4094
+ updated_at?: string;
4095
+ };
4096
+ Update: {
4097
+ connection_id?: string;
4098
+ data?: Json;
4099
+ fetched_at?: string;
4100
+ floriday_id?: string;
4101
+ is_deleted?: boolean;
4102
+ sequence_number?: number;
4103
+ updated_at?: string;
4104
+ };
4105
+ Relationships: [
4106
+ {
4107
+ foreignKeyName: "floriday_price_groups_cache_connection_id_fkey";
4108
+ columns: ["connection_id"];
4109
+ isOneToOne: false;
4110
+ referencedRelation: "floriday_connections";
4111
+ referencedColumns: ["id"];
4112
+ }
4113
+ ];
4114
+ };
4115
+ floriday_resource_schemas: {
4116
+ Row: {
4117
+ enums: Json;
4118
+ fetched_at: string;
4119
+ resource: string;
4120
+ schema: Json;
4121
+ source_url: string | null;
4122
+ version: string;
4123
+ };
4124
+ Insert: {
4125
+ enums?: Json;
4126
+ fetched_at?: string;
4127
+ resource: string;
4128
+ schema: Json;
4129
+ source_url?: string | null;
4130
+ version: string;
4131
+ };
4132
+ Update: {
4133
+ enums?: Json;
4134
+ fetched_at?: string;
4135
+ resource?: string;
4136
+ schema?: Json;
4137
+ source_url?: string | null;
4138
+ version?: string;
4139
+ };
4140
+ Relationships: [];
4141
+ };
4142
+ floriday_sales_strategies_cache: {
2732
4143
  Row: {
2733
4144
  connection_id: string;
2734
- last_error: string | null;
2735
- last_sequence_number: number;
2736
- last_synced_at: string | null;
4145
+ data: Json;
4146
+ fetched_at: string;
4147
+ floriday_id: string;
4148
+ is_deleted: boolean;
4149
+ sequence_number: number;
2737
4150
  updated_at: string;
2738
4151
  };
2739
4152
  Insert: {
2740
4153
  connection_id: string;
2741
- last_error?: string | null;
2742
- last_sequence_number?: number;
2743
- last_synced_at?: string | null;
4154
+ data: Json;
4155
+ fetched_at?: string;
4156
+ floriday_id: string;
4157
+ is_deleted?: boolean;
4158
+ sequence_number?: number;
2744
4159
  updated_at?: string;
2745
4160
  };
2746
4161
  Update: {
2747
4162
  connection_id?: string;
2748
- last_error?: string | null;
2749
- last_sequence_number?: number;
2750
- last_synced_at?: string | null;
4163
+ data?: Json;
4164
+ fetched_at?: string;
4165
+ floriday_id?: string;
4166
+ is_deleted?: boolean;
4167
+ sequence_number?: number;
2751
4168
  updated_at?: string;
2752
4169
  };
2753
- Relationships: [];
4170
+ Relationships: [
4171
+ {
4172
+ foreignKeyName: "floriday_sales_strategies_cache_connection_id_fkey";
4173
+ columns: ["connection_id"];
4174
+ isOneToOne: false;
4175
+ referencedRelation: "floriday_connections";
4176
+ referencedColumns: ["id"];
4177
+ }
4178
+ ];
2754
4179
  };
2755
4180
  floriday_salesorders_cache: {
2756
4181
  Row: {
@@ -2819,7 +4244,9 @@ export type Database = {
2819
4244
  connection_id: string;
2820
4245
  entity_type: string;
2821
4246
  last_error: string | null;
4247
+ last_items_processed: number | null;
2822
4248
  last_sequence_number: number;
4249
+ last_success_at: string | null;
2823
4250
  last_synced_at: string | null;
2824
4251
  updated_at: string;
2825
4252
  };
@@ -2827,7 +4254,9 @@ export type Database = {
2827
4254
  connection_id: string;
2828
4255
  entity_type: string;
2829
4256
  last_error?: string | null;
4257
+ last_items_processed?: number | null;
2830
4258
  last_sequence_number?: number;
4259
+ last_success_at?: string | null;
2831
4260
  last_synced_at?: string | null;
2832
4261
  updated_at?: string;
2833
4262
  };
@@ -2835,7 +4264,9 @@ export type Database = {
2835
4264
  connection_id?: string;
2836
4265
  entity_type?: string;
2837
4266
  last_error?: string | null;
4267
+ last_items_processed?: number | null;
2838
4268
  last_sequence_number?: number;
4269
+ last_success_at?: string | null;
2839
4270
  last_synced_at?: string | null;
2840
4271
  updated_at?: string;
2841
4272
  };
@@ -2887,6 +4318,47 @@ export type Database = {
2887
4318
  }
2888
4319
  ];
2889
4320
  };
4321
+ floriday_trade_item_classifications_cache: {
4322
+ Row: {
4323
+ connection_id: string;
4324
+ data: Json;
4325
+ fetched_at: string;
4326
+ floriday_id: string;
4327
+ id: string;
4328
+ is_deleted: boolean;
4329
+ sequence_number: number;
4330
+ updated_at: string;
4331
+ };
4332
+ Insert: {
4333
+ connection_id: string;
4334
+ data: Json;
4335
+ fetched_at?: string;
4336
+ floriday_id: string;
4337
+ id?: string;
4338
+ is_deleted?: boolean;
4339
+ sequence_number?: number;
4340
+ updated_at?: string;
4341
+ };
4342
+ Update: {
4343
+ connection_id?: string;
4344
+ data?: Json;
4345
+ fetched_at?: string;
4346
+ floriday_id?: string;
4347
+ id?: string;
4348
+ is_deleted?: boolean;
4349
+ sequence_number?: number;
4350
+ updated_at?: string;
4351
+ };
4352
+ Relationships: [
4353
+ {
4354
+ foreignKeyName: "floriday_trade_item_classifications_cache_connection_id_fkey";
4355
+ columns: ["connection_id"];
4356
+ isOneToOne: false;
4357
+ referencedRelation: "floriday_connections";
4358
+ referencedColumns: ["id"];
4359
+ }
4360
+ ];
4361
+ };
2890
4362
  floriday_trade_items_cache: {
2891
4363
  Row: {
2892
4364
  connection_id: string;
@@ -2922,6 +4394,165 @@ export type Database = {
2922
4394
  }
2923
4395
  ];
2924
4396
  };
4397
+ floriday_trips_cache: {
4398
+ Row: {
4399
+ carrier_organization_id: string | null;
4400
+ connection_id: string;
4401
+ data: Json;
4402
+ fetched_at: string;
4403
+ floriday_id: string;
4404
+ id: string;
4405
+ is_deleted: boolean;
4406
+ sequence_number: number;
4407
+ status: string | null;
4408
+ trip_date: string | null;
4409
+ updated_at: string;
4410
+ };
4411
+ Insert: {
4412
+ carrier_organization_id?: string | null;
4413
+ connection_id: string;
4414
+ data?: Json;
4415
+ fetched_at?: string;
4416
+ floriday_id: string;
4417
+ id?: string;
4418
+ is_deleted?: boolean;
4419
+ sequence_number?: number;
4420
+ status?: string | null;
4421
+ trip_date?: string | null;
4422
+ updated_at?: string;
4423
+ };
4424
+ Update: {
4425
+ carrier_organization_id?: string | null;
4426
+ connection_id?: string;
4427
+ data?: Json;
4428
+ fetched_at?: string;
4429
+ floriday_id?: string;
4430
+ id?: string;
4431
+ is_deleted?: boolean;
4432
+ sequence_number?: number;
4433
+ status?: string | null;
4434
+ trip_date?: string | null;
4435
+ updated_at?: string;
4436
+ };
4437
+ Relationships: [
4438
+ {
4439
+ foreignKeyName: "floriday_trips_cache_connection_id_fkey";
4440
+ columns: ["connection_id"];
4441
+ isOneToOne: false;
4442
+ referencedRelation: "floriday_connections";
4443
+ referencedColumns: ["id"];
4444
+ }
4445
+ ];
4446
+ };
4447
+ floriday_warehouses_cache: {
4448
+ Row: {
4449
+ connection_id: string;
4450
+ data: Json;
4451
+ fetched_at: string;
4452
+ floriday_id: string;
4453
+ gln_code: string | null;
4454
+ id: string;
4455
+ is_default: boolean;
4456
+ is_deleted: boolean;
4457
+ name: string | null;
4458
+ updated_at: string;
4459
+ };
4460
+ Insert: {
4461
+ connection_id: string;
4462
+ data?: Json;
4463
+ fetched_at?: string;
4464
+ floriday_id: string;
4465
+ gln_code?: string | null;
4466
+ id?: string;
4467
+ is_default?: boolean;
4468
+ is_deleted?: boolean;
4469
+ name?: string | null;
4470
+ updated_at?: string;
4471
+ };
4472
+ Update: {
4473
+ connection_id?: string;
4474
+ data?: Json;
4475
+ fetched_at?: string;
4476
+ floriday_id?: string;
4477
+ gln_code?: string | null;
4478
+ id?: string;
4479
+ is_default?: boolean;
4480
+ is_deleted?: boolean;
4481
+ name?: string | null;
4482
+ updated_at?: string;
4483
+ };
4484
+ Relationships: [
4485
+ {
4486
+ foreignKeyName: "floriday_warehouses_cache_connection_id_fkey";
4487
+ columns: ["connection_id"];
4488
+ isOneToOne: false;
4489
+ referencedRelation: "floriday_connections";
4490
+ referencedColumns: ["id"];
4491
+ }
4492
+ ];
4493
+ };
4494
+ floriday_write_log: {
4495
+ Row: {
4496
+ action: string;
4497
+ caller: string;
4498
+ connection_id: string | null;
4499
+ created_at: string;
4500
+ error: string | null;
4501
+ floriday_id: string | null;
4502
+ http_status: number | null;
4503
+ id: string;
4504
+ idempotency_key: string | null;
4505
+ module: string | null;
4506
+ ok: boolean;
4507
+ request: Json | null;
4508
+ resource: string;
4509
+ response: Json | null;
4510
+ user_id: string | null;
4511
+ };
4512
+ Insert: {
4513
+ action: string;
4514
+ caller?: string;
4515
+ connection_id?: string | null;
4516
+ created_at?: string;
4517
+ error?: string | null;
4518
+ floriday_id?: string | null;
4519
+ http_status?: number | null;
4520
+ id?: string;
4521
+ idempotency_key?: string | null;
4522
+ module?: string | null;
4523
+ ok: boolean;
4524
+ request?: Json | null;
4525
+ resource: string;
4526
+ response?: Json | null;
4527
+ user_id?: string | null;
4528
+ };
4529
+ Update: {
4530
+ action?: string;
4531
+ caller?: string;
4532
+ connection_id?: string | null;
4533
+ created_at?: string;
4534
+ error?: string | null;
4535
+ floriday_id?: string | null;
4536
+ http_status?: number | null;
4537
+ id?: string;
4538
+ idempotency_key?: string | null;
4539
+ module?: string | null;
4540
+ ok?: boolean;
4541
+ request?: Json | null;
4542
+ resource?: string;
4543
+ response?: Json | null;
4544
+ user_id?: string | null;
4545
+ };
4546
+ Relationships: [
4547
+ {
4548
+ foreignKeyName: "floriday_write_log_connection_id_fkey";
4549
+ columns: ["connection_id"];
4550
+ isOneToOne: false;
4551
+ referencedRelation: "floriday_connections";
4552
+ referencedColumns: ["id"];
4553
+ }
4554
+ ];
4555
+ };
2925
4556
  imap_accounts: {
2926
4557
  Row: {
2927
4558
  created_at: string;
@@ -3101,6 +4732,59 @@ export type Database = {
3101
4732
  };
3102
4733
  Relationships: [];
3103
4734
  };
4735
+ invoice_push_log: {
4736
+ Row: {
4737
+ connection_id: string | null;
4738
+ created_at: string;
4739
+ created_by: string;
4740
+ customer_id: string | null;
4741
+ id: string;
4742
+ last_error: string | null;
4743
+ last_polled_at: string | null;
4744
+ payload: Json;
4745
+ provider_id: string;
4746
+ queue_id: string | null;
4747
+ status: string;
4748
+ updated_at: string;
4749
+ };
4750
+ Insert: {
4751
+ connection_id?: string | null;
4752
+ created_at?: string;
4753
+ created_by?: string;
4754
+ customer_id?: string | null;
4755
+ id?: string;
4756
+ last_error?: string | null;
4757
+ last_polled_at?: string | null;
4758
+ payload?: Json;
4759
+ provider_id: string;
4760
+ queue_id?: string | null;
4761
+ status?: string;
4762
+ updated_at?: string;
4763
+ };
4764
+ Update: {
4765
+ connection_id?: string | null;
4766
+ created_at?: string;
4767
+ created_by?: string;
4768
+ customer_id?: string | null;
4769
+ id?: string;
4770
+ last_error?: string | null;
4771
+ last_polled_at?: string | null;
4772
+ payload?: Json;
4773
+ provider_id?: string;
4774
+ queue_id?: string | null;
4775
+ status?: string;
4776
+ updated_at?: string;
4777
+ };
4778
+ Relationships: [
4779
+ {
4780
+ foreignKeyName: "invoice_push_log_provider_id_fkey";
4781
+ columns: ["provider_id"];
4782
+ isOneToOne: false;
4783
+ referencedRelation: "external_invoice_providers";
4784
+ referencedColumns: ["provider"];
4785
+ }
4786
+ ];
4787
+ };
3104
4788
  invoice_run_items: {
3105
4789
  Row: {
3106
4790
  booking_id: string | null;
@@ -3228,6 +4912,7 @@ export type Database = {
3228
4912
  Row: {
3229
4913
  body_html: string | null;
3230
4914
  body_text: string | null;
4915
+ connection_id: string | null;
3231
4916
  created_at: string;
3232
4917
  error_message: string | null;
3233
4918
  external_id: string | null;
@@ -3246,6 +4931,7 @@ export type Database = {
3246
4931
  Insert: {
3247
4932
  body_html?: string | null;
3248
4933
  body_text?: string | null;
4934
+ connection_id?: string | null;
3249
4935
  created_at?: string;
3250
4936
  error_message?: string | null;
3251
4937
  external_id?: string | null;
@@ -3264,6 +4950,7 @@ export type Database = {
3264
4950
  Update: {
3265
4951
  body_html?: string | null;
3266
4952
  body_text?: string | null;
4953
+ connection_id?: string | null;
3267
4954
  created_at?: string;
3268
4955
  error_message?: string | null;
3269
4956
  external_id?: string | null;
@@ -3280,6 +4967,20 @@ export type Database = {
3280
4967
  updated_at?: string;
3281
4968
  };
3282
4969
  Relationships: [
4970
+ {
4971
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4972
+ columns: ["connection_id"];
4973
+ isOneToOne: false;
4974
+ referencedRelation: "email_auth_connections";
4975
+ referencedColumns: ["id"];
4976
+ },
4977
+ {
4978
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4979
+ columns: ["connection_id"];
4980
+ isOneToOne: false;
4981
+ referencedRelation: "email_auth_connections_safe";
4982
+ referencedColumns: ["id"];
4983
+ },
3283
4984
  {
3284
4985
  foreignKeyName: "mailbox_messages_profile_id_fkey";
3285
4986
  columns: ["profile_id"];
@@ -3574,6 +5275,7 @@ export type Database = {
3574
5275
  role: string;
3575
5276
  tenant_id: string;
3576
5277
  updated_at: string;
5278
+ user_id: string | null;
3577
5279
  };
3578
5280
  Insert: {
3579
5281
  avatar_url?: string | null;
@@ -3589,6 +5291,7 @@ export type Database = {
3589
5291
  role?: string;
3590
5292
  tenant_id: string;
3591
5293
  updated_at?: string;
5294
+ user_id?: string | null;
3592
5295
  };
3593
5296
  Update: {
3594
5297
  avatar_url?: string | null;
@@ -3604,6 +5307,7 @@ export type Database = {
3604
5307
  role?: string;
3605
5308
  tenant_id?: string;
3606
5309
  updated_at?: string;
5310
+ user_id?: string | null;
3607
5311
  };
3608
5312
  Relationships: [
3609
5313
  {
@@ -3745,13 +5449,6 @@ export type Database = {
3745
5449
  isOneToOne: false;
3746
5450
  referencedRelation: "offer_campaigns";
3747
5451
  referencedColumns: ["id"];
3748
- },
3749
- {
3750
- foreignKeyName: "offer_campaign_products_product_id_fkey";
3751
- columns: ["product_id"];
3752
- isOneToOne: false;
3753
- referencedRelation: "products";
3754
- referencedColumns: ["id"];
3755
5452
  }
3756
5453
  ];
3757
5454
  };
@@ -4039,6 +5736,105 @@ export type Database = {
4039
5736
  };
4040
5737
  Relationships: [];
4041
5738
  };
5739
+ order_cart_items: {
5740
+ Row: {
5741
+ cart_id: string;
5742
+ crates: number;
5743
+ crates_per_layer: number;
5744
+ created_at: string;
5745
+ id: string;
5746
+ order_item_id: string | null;
5747
+ plants_per_crate: number;
5748
+ product_id: string | null;
5749
+ product_name: string;
5750
+ };
5751
+ Insert: {
5752
+ cart_id: string;
5753
+ crates: number;
5754
+ crates_per_layer?: number;
5755
+ created_at?: string;
5756
+ id?: string;
5757
+ order_item_id?: string | null;
5758
+ plants_per_crate?: number;
5759
+ product_id?: string | null;
5760
+ product_name: string;
5761
+ };
5762
+ Update: {
5763
+ cart_id?: string;
5764
+ crates?: number;
5765
+ crates_per_layer?: number;
5766
+ created_at?: string;
5767
+ id?: string;
5768
+ order_item_id?: string | null;
5769
+ plants_per_crate?: number;
5770
+ product_id?: string | null;
5771
+ product_name?: string;
5772
+ };
5773
+ Relationships: [
5774
+ {
5775
+ foreignKeyName: "order_cart_items_cart_id_fkey";
5776
+ columns: ["cart_id"];
5777
+ isOneToOne: false;
5778
+ referencedRelation: "order_carts";
5779
+ referencedColumns: ["id"];
5780
+ },
5781
+ {
5782
+ foreignKeyName: "order_cart_items_order_item_id_fkey";
5783
+ columns: ["order_item_id"];
5784
+ isOneToOne: false;
5785
+ referencedRelation: "order_items";
5786
+ referencedColumns: ["id"];
5787
+ },
5788
+ {
5789
+ foreignKeyName: "order_cart_items_product_id_fkey";
5790
+ columns: ["product_id"];
5791
+ isOneToOne: false;
5792
+ referencedRelation: "products";
5793
+ referencedColumns: ["id"];
5794
+ }
5795
+ ];
5796
+ };
5797
+ order_carts: {
5798
+ Row: {
5799
+ cart_number: number;
5800
+ created_at: string;
5801
+ id: string;
5802
+ is_auto: boolean;
5803
+ is_complete: boolean;
5804
+ notes: string | null;
5805
+ order_id: string;
5806
+ updated_at: string;
5807
+ };
5808
+ Insert: {
5809
+ cart_number: number;
5810
+ created_at?: string;
5811
+ id?: string;
5812
+ is_auto?: boolean;
5813
+ is_complete?: boolean;
5814
+ notes?: string | null;
5815
+ order_id: string;
5816
+ updated_at?: string;
5817
+ };
5818
+ Update: {
5819
+ cart_number?: number;
5820
+ created_at?: string;
5821
+ id?: string;
5822
+ is_auto?: boolean;
5823
+ is_complete?: boolean;
5824
+ notes?: string | null;
5825
+ order_id?: string;
5826
+ updated_at?: string;
5827
+ };
5828
+ Relationships: [
5829
+ {
5830
+ foreignKeyName: "order_carts_order_id_fkey";
5831
+ columns: ["order_id"];
5832
+ isOneToOne: false;
5833
+ referencedRelation: "orders";
5834
+ referencedColumns: ["id"];
5835
+ }
5836
+ ];
5837
+ };
4042
5838
  order_field_options: {
4043
5839
  Row: {
4044
5840
  created_at: string;
@@ -4155,6 +5951,24 @@ export type Database = {
4155
5951
  }
4156
5952
  ];
4157
5953
  };
5954
+ order_number_counters: {
5955
+ Row: {
5956
+ last_value: number;
5957
+ updated_at: string;
5958
+ year: number;
5959
+ };
5960
+ Insert: {
5961
+ last_value?: number;
5962
+ updated_at?: string;
5963
+ year: number;
5964
+ };
5965
+ Update: {
5966
+ last_value?: number;
5967
+ updated_at?: string;
5968
+ year?: number;
5969
+ };
5970
+ Relationships: [];
5971
+ };
4158
5972
  orders: {
4159
5973
  Row: {
4160
5974
  created_at: string;
@@ -4167,6 +5981,7 @@ export type Database = {
4167
5981
  notes: string | null;
4168
5982
  order_date: string;
4169
5983
  order_number: string;
5984
+ order_source: string;
4170
5985
  status: string;
4171
5986
  total: string;
4172
5987
  updated_at: string;
@@ -4182,6 +5997,7 @@ export type Database = {
4182
5997
  notes?: string | null;
4183
5998
  order_date?: string;
4184
5999
  order_number: string;
6000
+ order_source?: string;
4185
6001
  status?: string;
4186
6002
  total?: string;
4187
6003
  updated_at?: string;
@@ -4197,6 +6013,7 @@ export type Database = {
4197
6013
  notes?: string | null;
4198
6014
  order_date?: string;
4199
6015
  order_number?: string;
6016
+ order_source?: string;
4200
6017
  status?: string;
4201
6018
  total?: string;
4202
6019
  updated_at?: string;
@@ -4247,6 +6064,36 @@ export type Database = {
4247
6064
  };
4248
6065
  Relationships: [];
4249
6066
  };
6067
+ pickstation_print_log: {
6068
+ Row: {
6069
+ customer_name: string | null;
6070
+ documents: string[];
6071
+ id: string;
6072
+ ip_address: string | null;
6073
+ order_id: string;
6074
+ order_number: string | null;
6075
+ printed_at: string;
6076
+ };
6077
+ Insert: {
6078
+ customer_name?: string | null;
6079
+ documents?: string[];
6080
+ id?: string;
6081
+ ip_address?: string | null;
6082
+ order_id: string;
6083
+ order_number?: string | null;
6084
+ printed_at?: string;
6085
+ };
6086
+ Update: {
6087
+ customer_name?: string | null;
6088
+ documents?: string[];
6089
+ id?: string;
6090
+ ip_address?: string | null;
6091
+ order_id?: string;
6092
+ order_number?: string | null;
6093
+ printed_at?: string;
6094
+ };
6095
+ Relationships: [];
6096
+ };
4250
6097
  pipeline_settings: {
4251
6098
  Row: {
4252
6099
  created_at: string;
@@ -4409,13 +6256,16 @@ export type Database = {
4409
6256
  Row: {
4410
6257
  barcode: string | null;
4411
6258
  batch: string;
6259
+ crates_per_layer: number;
4412
6260
  created_at: string;
4413
6261
  custom_fields: Json;
4414
6262
  id: string;
4415
6263
  image_url: string | null;
4416
6264
  incoming_quantity: number;
6265
+ layers_per_cart: number;
4417
6266
  location: string;
4418
6267
  min_quantity: number;
6268
+ plants_per_crate: number;
4419
6269
  product: string;
4420
6270
  product_type: string;
4421
6271
  purchase_price: number | null;
@@ -4428,13 +6278,16 @@ export type Database = {
4428
6278
  Insert: {
4429
6279
  barcode?: string | null;
4430
6280
  batch: string;
6281
+ crates_per_layer?: number;
4431
6282
  created_at?: string;
4432
6283
  custom_fields?: Json;
4433
6284
  id?: string;
4434
6285
  image_url?: string | null;
4435
6286
  incoming_quantity?: number;
6287
+ layers_per_cart?: number;
4436
6288
  location: string;
4437
6289
  min_quantity?: number;
6290
+ plants_per_crate?: number;
4438
6291
  product: string;
4439
6292
  product_type?: string;
4440
6293
  purchase_price?: number | null;
@@ -4447,13 +6300,16 @@ export type Database = {
4447
6300
  Update: {
4448
6301
  barcode?: string | null;
4449
6302
  batch?: string;
6303
+ crates_per_layer?: number;
4450
6304
  created_at?: string;
4451
6305
  custom_fields?: Json;
4452
6306
  id?: string;
4453
6307
  image_url?: string | null;
4454
6308
  incoming_quantity?: number;
6309
+ layers_per_cart?: number;
4455
6310
  location?: string;
4456
6311
  min_quantity?: number;
6312
+ plants_per_crate?: number;
4457
6313
  product?: string;
4458
6314
  product_type?: string;
4459
6315
  purchase_price?: number | null;
@@ -5429,6 +7285,147 @@ export type Database = {
5429
7285
  };
5430
7286
  Relationships: [];
5431
7287
  };
7288
+ time_entries: {
7289
+ Row: {
7290
+ created_at: string;
7291
+ employee_id: string;
7292
+ entry_date: string;
7293
+ hours: number;
7294
+ id: string;
7295
+ notes: string | null;
7296
+ overtime: number;
7297
+ undertime: number;
7298
+ updated_at: string;
7299
+ };
7300
+ Insert: {
7301
+ created_at?: string;
7302
+ employee_id: string;
7303
+ entry_date: string;
7304
+ hours?: number;
7305
+ id?: string;
7306
+ notes?: string | null;
7307
+ overtime?: number;
7308
+ undertime?: number;
7309
+ updated_at?: string;
7310
+ };
7311
+ Update: {
7312
+ created_at?: string;
7313
+ employee_id?: string;
7314
+ entry_date?: string;
7315
+ hours?: number;
7316
+ id?: string;
7317
+ notes?: string | null;
7318
+ overtime?: number;
7319
+ undertime?: number;
7320
+ updated_at?: string;
7321
+ };
7322
+ Relationships: [
7323
+ {
7324
+ foreignKeyName: "time_entries_employee_id_fkey";
7325
+ columns: ["employee_id"];
7326
+ isOneToOne: false;
7327
+ referencedRelation: "monteurs";
7328
+ referencedColumns: ["id"];
7329
+ }
7330
+ ];
7331
+ };
7332
+ time_logs: {
7333
+ Row: {
7334
+ created_at: string;
7335
+ employee_id: string;
7336
+ end_time: string | null;
7337
+ id: string;
7338
+ notes: string | null;
7339
+ overtime_hours: number;
7340
+ overtime_type: string | null;
7341
+ regular_hours: number;
7342
+ start_time: string;
7343
+ travel_cost: number | null;
7344
+ travel_distance_km: number | null;
7345
+ type: string;
7346
+ updated_at: string;
7347
+ };
7348
+ Insert: {
7349
+ created_at?: string;
7350
+ employee_id: string;
7351
+ end_time?: string | null;
7352
+ id?: string;
7353
+ notes?: string | null;
7354
+ overtime_hours?: number;
7355
+ overtime_type?: string | null;
7356
+ regular_hours?: number;
7357
+ start_time?: string;
7358
+ travel_cost?: number | null;
7359
+ travel_distance_km?: number | null;
7360
+ type: string;
7361
+ updated_at?: string;
7362
+ };
7363
+ Update: {
7364
+ created_at?: string;
7365
+ employee_id?: string;
7366
+ end_time?: string | null;
7367
+ id?: string;
7368
+ notes?: string | null;
7369
+ overtime_hours?: number;
7370
+ overtime_type?: string | null;
7371
+ regular_hours?: number;
7372
+ start_time?: string;
7373
+ travel_cost?: number | null;
7374
+ travel_distance_km?: number | null;
7375
+ type?: string;
7376
+ updated_at?: string;
7377
+ };
7378
+ Relationships: [
7379
+ {
7380
+ foreignKeyName: "time_logs_employee_id_fkey";
7381
+ columns: ["employee_id"];
7382
+ isOneToOne: false;
7383
+ referencedRelation: "monteurs";
7384
+ referencedColumns: ["id"];
7385
+ }
7386
+ ];
7387
+ };
7388
+ time_off_entries: {
7389
+ Row: {
7390
+ created_at: string;
7391
+ employee_id: string;
7392
+ entry_date: string;
7393
+ hours: number;
7394
+ id: string;
7395
+ notes: string | null;
7396
+ type: string;
7397
+ updated_at: string;
7398
+ };
7399
+ Insert: {
7400
+ created_at?: string;
7401
+ employee_id: string;
7402
+ entry_date: string;
7403
+ hours?: number;
7404
+ id?: string;
7405
+ notes?: string | null;
7406
+ type: string;
7407
+ updated_at?: string;
7408
+ };
7409
+ Update: {
7410
+ created_at?: string;
7411
+ employee_id?: string;
7412
+ entry_date?: string;
7413
+ hours?: number;
7414
+ id?: string;
7415
+ notes?: string | null;
7416
+ type?: string;
7417
+ updated_at?: string;
7418
+ };
7419
+ Relationships: [
7420
+ {
7421
+ foreignKeyName: "time_off_entries_employee_id_fkey";
7422
+ columns: ["employee_id"];
7423
+ isOneToOne: false;
7424
+ referencedRelation: "monteurs";
7425
+ referencedColumns: ["id"];
7426
+ }
7427
+ ];
7428
+ };
5432
7429
  trade_item_drafts: {
5433
7430
  Row: {
5434
7431
  connection_id: string | null;
@@ -5730,9 +7727,11 @@ export type Database = {
5730
7727
  fetched_at: string;
5731
7728
  invoice_number: string;
5732
7729
  line_number: number;
7730
+ line_total: number | null;
5733
7731
  quantity: number | null;
5734
7732
  unit_price: number | null;
5735
7733
  vat_code: string | null;
7734
+ vat_rate: number | null;
5736
7735
  };
5737
7736
  Insert: {
5738
7737
  article_code?: string | null;
@@ -5742,9 +7741,11 @@ export type Database = {
5742
7741
  fetched_at?: string;
5743
7742
  invoice_number: string;
5744
7743
  line_number: number;
7744
+ line_total?: number | null;
5745
7745
  quantity?: number | null;
5746
7746
  unit_price?: number | null;
5747
7747
  vat_code?: string | null;
7748
+ vat_rate?: number | null;
5748
7749
  };
5749
7750
  Update: {
5750
7751
  article_code?: string | null;
@@ -5754,9 +7755,11 @@ export type Database = {
5754
7755
  fetched_at?: string;
5755
7756
  invoice_number?: string;
5756
7757
  line_number?: number;
7758
+ line_total?: number | null;
5757
7759
  quantity?: number | null;
5758
7760
  unit_price?: number | null;
5759
7761
  vat_code?: string | null;
7762
+ vat_rate?: number | null;
5760
7763
  };
5761
7764
  Relationships: [
5762
7765
  {
@@ -5935,9 +7938,12 @@ export type Database = {
5935
7938
  invoice_date: string | null;
5936
7939
  invoice_number: string;
5937
7940
  modified_at: string | null;
7941
+ outstanding_amount: number | null;
5938
7942
  status: string | null;
7943
+ status_label: string | null;
5939
7944
  total_excl: number | null;
5940
7945
  total_incl: number | null;
7946
+ vat_amount: number | null;
5941
7947
  };
5942
7948
  Insert: {
5943
7949
  connection_id: string;
@@ -5949,9 +7955,12 @@ export type Database = {
5949
7955
  invoice_date?: string | null;
5950
7956
  invoice_number: string;
5951
7957
  modified_at?: string | null;
7958
+ outstanding_amount?: number | null;
5952
7959
  status?: string | null;
7960
+ status_label?: string | null;
5953
7961
  total_excl?: number | null;
5954
7962
  total_incl?: number | null;
7963
+ vat_amount?: number | null;
5955
7964
  };
5956
7965
  Update: {
5957
7966
  connection_id?: string;
@@ -5963,13 +7972,93 @@ export type Database = {
5963
7972
  invoice_date?: string | null;
5964
7973
  invoice_number?: string;
5965
7974
  modified_at?: string | null;
7975
+ outstanding_amount?: number | null;
5966
7976
  status?: string | null;
7977
+ status_label?: string | null;
5967
7978
  total_excl?: number | null;
5968
7979
  total_incl?: number | null;
7980
+ vat_amount?: number | null;
7981
+ };
7982
+ Relationships: [
7983
+ {
7984
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
7985
+ columns: ["connection_id"];
7986
+ isOneToOne: false;
7987
+ referencedRelation: "twinfield_connections";
7988
+ referencedColumns: ["id"];
7989
+ }
7990
+ ];
7991
+ };
7992
+ twinfield_oauth_state: {
7993
+ Row: {
7994
+ created_at: string;
7995
+ environment: string;
7996
+ nonce: string | null;
7997
+ state: string;
7998
+ user_id: string;
7999
+ };
8000
+ Insert: {
8001
+ created_at?: string;
8002
+ environment: string;
8003
+ nonce?: string | null;
8004
+ state: string;
8005
+ user_id: string;
8006
+ };
8007
+ Update: {
8008
+ created_at?: string;
8009
+ environment?: string;
8010
+ nonce?: string | null;
8011
+ state?: string;
8012
+ user_id?: string;
8013
+ };
8014
+ Relationships: [];
8015
+ };
8016
+ twinfield_push_queue: {
8017
+ Row: {
8018
+ attempts: number;
8019
+ connection_id: string;
8020
+ created_at: string;
8021
+ external_id: string | null;
8022
+ id: string;
8023
+ idempotency_key: string;
8024
+ last_error: string | null;
8025
+ next_attempt_at: string;
8026
+ office_code: string;
8027
+ payload: Json;
8028
+ status: string;
8029
+ updated_at: string;
8030
+ };
8031
+ Insert: {
8032
+ attempts?: number;
8033
+ connection_id: string;
8034
+ created_at?: string;
8035
+ external_id?: string | null;
8036
+ id?: string;
8037
+ idempotency_key: string;
8038
+ last_error?: string | null;
8039
+ next_attempt_at?: string;
8040
+ office_code: string;
8041
+ payload: Json;
8042
+ status?: string;
8043
+ updated_at?: string;
8044
+ };
8045
+ Update: {
8046
+ attempts?: number;
8047
+ connection_id?: string;
8048
+ created_at?: string;
8049
+ external_id?: string | null;
8050
+ id?: string;
8051
+ idempotency_key?: string;
8052
+ last_error?: string | null;
8053
+ next_attempt_at?: string;
8054
+ office_code?: string;
8055
+ payload?: Json;
8056
+ status?: string;
8057
+ updated_at?: string;
5969
8058
  };
5970
8059
  Relationships: [
5971
8060
  {
5972
- foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
8061
+ foreignKeyName: "twinfield_push_queue_connection_id_fkey";
5973
8062
  columns: ["connection_id"];
5974
8063
  isOneToOne: false;
5975
8064
  referencedRelation: "twinfield_connections";
@@ -5977,30 +8066,6 @@ export type Database = {
5977
8066
  }
5978
8067
  ];
5979
8068
  };
5980
- twinfield_oauth_state: {
5981
- Row: {
5982
- created_at: string;
5983
- environment: string;
5984
- nonce: string | null;
5985
- state: string;
5986
- user_id: string;
5987
- };
5988
- Insert: {
5989
- created_at?: string;
5990
- environment: string;
5991
- nonce?: string | null;
5992
- state: string;
5993
- user_id: string;
5994
- };
5995
- Update: {
5996
- created_at?: string;
5997
- environment?: string;
5998
- nonce?: string | null;
5999
- state?: string;
6000
- user_id?: string;
6001
- };
6002
- Relationships: [];
6003
- };
6004
8069
  twinfield_settings: {
6005
8070
  Row: {
6006
8071
  active_environment: string;
@@ -6118,6 +8183,117 @@ export type Database = {
6118
8183
  }
6119
8184
  ];
6120
8185
  };
8186
+ voorraad_media_upload_failures: {
8187
+ Row: {
8188
+ action: string;
8189
+ attempt_number: number;
8190
+ caller: string;
8191
+ client_user_id: string | null;
8192
+ content_type: string | null;
8193
+ created_at: string;
8194
+ environment: string;
8195
+ error_message: string | null;
8196
+ filename: string | null;
8197
+ id: string;
8198
+ idempotency_key: string | null;
8199
+ module: string;
8200
+ path: string;
8201
+ reference_id: string | null;
8202
+ request_body_hash: string | null;
8203
+ request_timestamp: number | null;
8204
+ response_content_type: string | null;
8205
+ response_status: number | null;
8206
+ size_bytes: number | null;
8207
+ };
8208
+ Insert: {
8209
+ action?: string;
8210
+ attempt_number?: number;
8211
+ caller?: string;
8212
+ client_user_id?: string | null;
8213
+ content_type?: string | null;
8214
+ created_at?: string;
8215
+ environment: string;
8216
+ error_message?: string | null;
8217
+ filename?: string | null;
8218
+ id?: string;
8219
+ idempotency_key?: string | null;
8220
+ module?: string;
8221
+ path: string;
8222
+ reference_id?: string | null;
8223
+ request_body_hash?: string | null;
8224
+ request_timestamp?: number | null;
8225
+ response_content_type?: string | null;
8226
+ response_status?: number | null;
8227
+ size_bytes?: number | null;
8228
+ };
8229
+ Update: {
8230
+ action?: string;
8231
+ attempt_number?: number;
8232
+ caller?: string;
8233
+ client_user_id?: string | null;
8234
+ content_type?: string | null;
8235
+ created_at?: string;
8236
+ environment?: string;
8237
+ error_message?: string | null;
8238
+ filename?: string | null;
8239
+ id?: string;
8240
+ idempotency_key?: string | null;
8241
+ module?: string;
8242
+ path?: string;
8243
+ reference_id?: string | null;
8244
+ request_body_hash?: string | null;
8245
+ request_timestamp?: number | null;
8246
+ response_content_type?: string | null;
8247
+ response_status?: number | null;
8248
+ size_bytes?: number | null;
8249
+ };
8250
+ Relationships: [];
8251
+ };
8252
+ voorraad_publish_attempts: {
8253
+ Row: {
8254
+ action: string;
8255
+ connection_id: string | null;
8256
+ created_at: string;
8257
+ error: string | null;
8258
+ gateway_attempt_id: string | null;
8259
+ gateway_status: number | null;
8260
+ id: string;
8261
+ intent: string;
8262
+ ok: boolean;
8263
+ request_summary: Json | null;
8264
+ trade_item_id: string | null;
8265
+ user_id: string;
8266
+ };
8267
+ Insert: {
8268
+ action: string;
8269
+ connection_id?: string | null;
8270
+ created_at?: string;
8271
+ error?: string | null;
8272
+ gateway_attempt_id?: string | null;
8273
+ gateway_status?: number | null;
8274
+ id?: string;
8275
+ intent: string;
8276
+ ok: boolean;
8277
+ request_summary?: Json | null;
8278
+ trade_item_id?: string | null;
8279
+ user_id: string;
8280
+ };
8281
+ Update: {
8282
+ action?: string;
8283
+ connection_id?: string | null;
8284
+ created_at?: string;
8285
+ error?: string | null;
8286
+ gateway_attempt_id?: string | null;
8287
+ gateway_status?: number | null;
8288
+ id?: string;
8289
+ intent?: string;
8290
+ ok?: boolean;
8291
+ request_summary?: Json | null;
8292
+ trade_item_id?: string | null;
8293
+ user_id?: string;
8294
+ };
8295
+ Relationships: [];
8296
+ };
6121
8297
  work_order_monteurs: {
6122
8298
  Row: {
6123
8299
  created_at: string;
@@ -6435,6 +8611,134 @@ export type Database = {
6435
8611
  };
6436
8612
  Relationships: [];
6437
8613
  };
8614
+ external_invoices_grouped: {
8615
+ Row: {
8616
+ currency: string | null;
8617
+ customer_external_id: string | null;
8618
+ customer_name: string | null;
8619
+ customer_vat: string | null;
8620
+ due_at: string | null;
8621
+ group_key: string | null;
8622
+ invoice_number: string | null;
8623
+ is_merged: boolean | null;
8624
+ issued_at: string | null;
8625
+ modified_at: string | null;
8626
+ open_amount: number | null;
8627
+ paid_at: string | null;
8628
+ providers: string[] | null;
8629
+ source_count: number | null;
8630
+ sources: Json | null;
8631
+ status: string | null;
8632
+ total_excl: number | null;
8633
+ total_incl: number | null;
8634
+ total_vat: number | null;
8635
+ };
8636
+ Relationships: [];
8637
+ };
8638
+ external_invoices_unified: {
8639
+ Row: {
8640
+ connection_id: string | null;
8641
+ currency: string | null;
8642
+ customer_external_id: string | null;
8643
+ customer_name: string | null;
8644
+ customer_vat: string | null;
8645
+ due_at: string | null;
8646
+ external_id: string | null;
8647
+ invoice_number: string | null;
8648
+ issued_at: string | null;
8649
+ open_amount: number | null;
8650
+ owner_user_id: string | null;
8651
+ paid_at: string | null;
8652
+ raw: Json | null;
8653
+ source: string | null;
8654
+ status: string | null;
8655
+ synced_at: string | null;
8656
+ total_excl: number | null;
8657
+ total_incl: number | null;
8658
+ total_vat: number | null;
8659
+ };
8660
+ Relationships: [];
8661
+ };
8662
+ v_external_customers_exact: {
8663
+ Row: {
8664
+ account_number: string | null;
8665
+ city: string | null;
8666
+ coc_number: string | null;
8667
+ company_name: string | null;
8668
+ connection_id: string | null;
8669
+ country: string | null;
8670
+ currency: string | null;
8671
+ email: string | null;
8672
+ external_id: string | null;
8673
+ is_sales: boolean | null;
8674
+ is_supplier: boolean | null;
8675
+ language: string | null;
8676
+ modified_at: string | null;
8677
+ phone: string | null;
8678
+ postal_code: string | null;
8679
+ raw: Json | null;
8680
+ source: string | null;
8681
+ street: string | null;
8682
+ synced_at: string | null;
8683
+ vat_number: string | null;
8684
+ website: string | null;
8685
+ };
8686
+ Insert: {
8687
+ account_number?: string | null;
8688
+ city?: string | null;
8689
+ coc_number?: string | null;
8690
+ company_name?: string | null;
8691
+ connection_id?: string | null;
8692
+ country?: string | null;
8693
+ currency?: string | null;
8694
+ email?: string | null;
8695
+ external_id?: string | null;
8696
+ is_sales?: boolean | null;
8697
+ is_supplier?: boolean | null;
8698
+ language?: string | null;
8699
+ modified_at?: string | null;
8700
+ phone?: string | null;
8701
+ postal_code?: string | null;
8702
+ raw?: Json | null;
8703
+ source?: never;
8704
+ street?: string | null;
8705
+ synced_at?: string | null;
8706
+ vat_number?: string | null;
8707
+ website?: string | null;
8708
+ };
8709
+ Update: {
8710
+ account_number?: string | null;
8711
+ city?: string | null;
8712
+ coc_number?: string | null;
8713
+ company_name?: string | null;
8714
+ connection_id?: string | null;
8715
+ country?: string | null;
8716
+ currency?: string | null;
8717
+ email?: string | null;
8718
+ external_id?: string | null;
8719
+ is_sales?: boolean | null;
8720
+ is_supplier?: boolean | null;
8721
+ language?: string | null;
8722
+ modified_at?: string | null;
8723
+ phone?: string | null;
8724
+ postal_code?: string | null;
8725
+ raw?: Json | null;
8726
+ source?: never;
8727
+ street?: string | null;
8728
+ synced_at?: string | null;
8729
+ vat_number?: string | null;
8730
+ website?: string | null;
8731
+ };
8732
+ Relationships: [
8733
+ {
8734
+ foreignKeyName: "exact_customers_cache_connection_id_fkey";
8735
+ columns: ["connection_id"];
8736
+ isOneToOne: false;
8737
+ referencedRelation: "exact_connections";
8738
+ referencedColumns: ["id"];
8739
+ }
8740
+ ];
8741
+ };
6438
8742
  v_external_customers_floriday: {
6439
8743
  Row: {
6440
8744
  city: string | null;
@@ -6505,8 +8809,144 @@ export type Database = {
6505
8809
  }
6506
8810
  ];
6507
8811
  };
8812
+ v_external_invoices_exact: {
8813
+ Row: {
8814
+ connection_id: string | null;
8815
+ currency: string | null;
8816
+ customer_external_id: string | null;
8817
+ customer_name: string | null;
8818
+ customer_vat: string | null;
8819
+ due_at: string | null;
8820
+ external_id: string | null;
8821
+ invoice_number: string | null;
8822
+ issued_at: string | null;
8823
+ open_amount: number | null;
8824
+ paid_at: string | null;
8825
+ raw: Json | null;
8826
+ source: string | null;
8827
+ status: string | null;
8828
+ synced_at: string | null;
8829
+ total_excl: number | null;
8830
+ total_incl: number | null;
8831
+ total_vat: number | null;
8832
+ };
8833
+ Insert: {
8834
+ connection_id?: string | null;
8835
+ currency?: never;
8836
+ customer_external_id?: string | null;
8837
+ customer_name?: string | null;
8838
+ customer_vat?: never;
8839
+ due_at?: string | null;
8840
+ external_id?: string | null;
8841
+ invoice_number?: string | null;
8842
+ issued_at?: string | null;
8843
+ open_amount?: number | null;
8844
+ paid_at?: string | null;
8845
+ raw?: Json | null;
8846
+ source?: never;
8847
+ status?: string | null;
8848
+ synced_at?: string | null;
8849
+ total_excl?: number | null;
8850
+ total_incl?: number | null;
8851
+ total_vat?: number | null;
8852
+ };
8853
+ Update: {
8854
+ connection_id?: string | null;
8855
+ currency?: never;
8856
+ customer_external_id?: string | null;
8857
+ customer_name?: string | null;
8858
+ customer_vat?: never;
8859
+ due_at?: string | null;
8860
+ external_id?: string | null;
8861
+ invoice_number?: string | null;
8862
+ issued_at?: string | null;
8863
+ open_amount?: number | null;
8864
+ paid_at?: string | null;
8865
+ raw?: Json | null;
8866
+ source?: never;
8867
+ status?: string | null;
8868
+ synced_at?: string | null;
8869
+ total_excl?: number | null;
8870
+ total_incl?: number | null;
8871
+ total_vat?: number | null;
8872
+ };
8873
+ Relationships: [
8874
+ {
8875
+ foreignKeyName: "exact_invoices_cache_connection_id_fkey";
8876
+ columns: ["connection_id"];
8877
+ isOneToOne: false;
8878
+ referencedRelation: "exact_connections";
8879
+ referencedColumns: ["id"];
8880
+ }
8881
+ ];
8882
+ };
8883
+ v_external_invoices_twinfield: {
8884
+ Row: {
8885
+ connection_id: string | null;
8886
+ currency: string | null;
8887
+ customer_external_id: string | null;
8888
+ customer_name: string | null;
8889
+ customer_vat: string | null;
8890
+ due_at: string | null;
8891
+ external_id: string | null;
8892
+ invoice_number: string | null;
8893
+ issued_at: string | null;
8894
+ open_amount: number | null;
8895
+ owner_user_id: string | null;
8896
+ paid_at: string | null;
8897
+ raw: Json | null;
8898
+ source: string | null;
8899
+ status: string | null;
8900
+ synced_at: string | null;
8901
+ total_excl: number | null;
8902
+ total_incl: number | null;
8903
+ total_vat: number | null;
8904
+ };
8905
+ Relationships: [
8906
+ {
8907
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
8908
+ columns: ["connection_id"];
8909
+ isOneToOne: false;
8910
+ referencedRelation: "twinfield_connections";
8911
+ referencedColumns: ["id"];
8912
+ }
8913
+ ];
8914
+ };
6508
8915
  };
6509
8916
  Functions: {
8917
+ _floriday_schedule_job: {
8918
+ Args: {
8919
+ p_apikey: string;
8920
+ p_jobname: string;
8921
+ p_schedule: string;
8922
+ p_timeout_ms: number;
8923
+ p_url: string;
8924
+ };
8925
+ Returns: number;
8926
+ };
8927
+ assign_floriday_order_numbers: {
8928
+ Args: {
8929
+ p_ids: string[];
8930
+ };
8931
+ Returns: {
8932
+ floriday_id: string;
8933
+ order_number: string;
8934
+ }[];
8935
+ };
8936
+ call_exact_route: {
8937
+ Args: {
8938
+ path: string;
8939
+ };
8940
+ Returns: number;
8941
+ };
8942
+ cleanup_old_bookings: {
8943
+ Args: never;
8944
+ Returns: number;
8945
+ };
8946
+ current_monteur_id: {
8947
+ Args: never;
8948
+ Returns: string;
8949
+ };
6510
8950
  dashboard_list_public_schema: {
6511
8951
  Args: never;
6512
8952
  Returns: {
@@ -6611,6 +9051,32 @@ export type Database = {
6611
9051
  office_code: string;
6612
9052
  }[];
6613
9053
  };
9054
+ get_floriday_agreements_active: {
9055
+ Args: {
9056
+ p_on_date?: string;
9057
+ };
9058
+ Returns: {
9059
+ buyer_organization_id: string;
9060
+ data: Json;
9061
+ floriday_id: string;
9062
+ status: string;
9063
+ valid_from: string;
9064
+ valid_until: string;
9065
+ }[];
9066
+ };
9067
+ get_floriday_clock_supplies_window: {
9068
+ Args: {
9069
+ p_from: string;
9070
+ p_to: string;
9071
+ };
9072
+ Returns: {
9073
+ auction_date: string;
9074
+ data: Json;
9075
+ floriday_id: string;
9076
+ status: string;
9077
+ trade_item_id: string;
9078
+ }[];
9079
+ };
6614
9080
  get_floriday_cron_jobs: {
6615
9081
  Args: never;
6616
9082
  Returns: {
@@ -6620,12 +9086,68 @@ export type Database = {
6620
9086
  url: string;
6621
9087
  }[];
6622
9088
  };
9089
+ get_floriday_delivery_locations: {
9090
+ Args: {
9091
+ p_organization_id: string;
9092
+ };
9093
+ Returns: {
9094
+ data: Json;
9095
+ floriday_id: string;
9096
+ gln_code: string;
9097
+ name: string;
9098
+ }[];
9099
+ };
9100
+ get_floriday_fulfillment_orders_window: {
9101
+ Args: {
9102
+ p_from: string;
9103
+ p_to: string;
9104
+ };
9105
+ Returns: {
9106
+ auction_date: string;
9107
+ data: Json;
9108
+ delivery_order_id: string;
9109
+ destination_warehouse_id: string;
9110
+ floriday_id: string;
9111
+ status: string;
9112
+ }[];
9113
+ };
9114
+ get_floriday_sales_orders_window: {
9115
+ Args: {
9116
+ p_from: string;
9117
+ p_to: string;
9118
+ };
9119
+ Returns: {
9120
+ buyer_organization_id: string;
9121
+ data: Json;
9122
+ floriday_id: string;
9123
+ status: string;
9124
+ updated_at: string;
9125
+ }[];
9126
+ };
9127
+ get_floriday_sync_health: {
9128
+ Args: never;
9129
+ Returns: {
9130
+ entity_type: string;
9131
+ last_error: string;
9132
+ last_items_processed: number;
9133
+ last_sequence_number: number;
9134
+ last_success_at: string;
9135
+ last_synced_at: string;
9136
+ minutes_since_success: number;
9137
+ }[];
9138
+ };
6623
9139
  get_offer_by_link_code: {
6624
9140
  Args: {
6625
9141
  p_code: string;
6626
9142
  };
6627
9143
  Returns: Json;
6628
9144
  };
9145
+ get_or_assign_floriday_order_number: {
9146
+ Args: {
9147
+ p_floriday_id: string;
9148
+ };
9149
+ Returns: string;
9150
+ };
6629
9151
  get_room_busy_windows: {
6630
9152
  Args: {
6631
9153
  p_from: string;
@@ -6672,6 +9194,12 @@ export type Database = {
6672
9194
  Args: never;
6673
9195
  Returns: boolean;
6674
9196
  };
9197
+ next_order_number: {
9198
+ Args: {
9199
+ p_prefix: string;
9200
+ };
9201
+ Returns: string;
9202
+ };
6675
9203
  next_work_order_number: {
6676
9204
  Args: {
6677
9205
  p_parent_work_order_id?: string;
@@ -6685,6 +9213,74 @@ export type Database = {
6685
9213
  };
6686
9214
  Returns: string;
6687
9215
  };
9216
+ pickstation_get_orders_raw: {
9217
+ Args: never;
9218
+ Returns: Json;
9219
+ };
9220
+ pickstation_get_settings: {
9221
+ Args: never;
9222
+ Returns: Json;
9223
+ };
9224
+ pickstation_log_print: {
9225
+ Args: {
9226
+ p_customer_name: string;
9227
+ p_documents: string[];
9228
+ p_ip_address: string;
9229
+ p_order_id: string;
9230
+ p_order_number: string;
9231
+ };
9232
+ Returns: undefined;
9233
+ };
9234
+ refresh_floricode_derived_code_lists: {
9235
+ Args: never;
9236
+ Returns: {
9237
+ out_environment: string;
9238
+ out_list_name: string;
9239
+ out_row_count: number;
9240
+ }[];
9241
+ };
9242
+ reset_floriday_sync_cursor: {
9243
+ Args: {
9244
+ p_connection_id: string;
9245
+ p_entity_type: string;
9246
+ };
9247
+ Returns: undefined;
9248
+ };
9249
+ schedule_floriday_additional_services_sync: {
9250
+ Args: {
9251
+ p_apikey: string;
9252
+ p_url: string;
9253
+ };
9254
+ Returns: number;
9255
+ };
9256
+ schedule_floriday_agreement_calloffs_sync: {
9257
+ Args: {
9258
+ p_apikey: string;
9259
+ p_url: string;
9260
+ };
9261
+ Returns: number;
9262
+ };
9263
+ schedule_floriday_agreements_sync: {
9264
+ Args: {
9265
+ p_apikey: string;
9266
+ p_url: string;
9267
+ };
9268
+ Returns: number;
9269
+ };
9270
+ schedule_floriday_base_items_sync: {
9271
+ Args: {
9272
+ p_apikey: string;
9273
+ p_url: string;
9274
+ };
9275
+ Returns: number;
9276
+ };
9277
+ schedule_floriday_blanket_orders_sync: {
9278
+ Args: {
9279
+ p_apikey: string;
9280
+ p_url: string;
9281
+ };
9282
+ Returns: number;
9283
+ };
6688
9284
  schedule_floriday_carriers_sync: {
6689
9285
  Args: {
6690
9286
  p_apikey: string;
@@ -6692,6 +9288,34 @@ export type Database = {
6692
9288
  };
6693
9289
  Returns: number;
6694
9290
  };
9291
+ schedule_floriday_clock_presales_sync: {
9292
+ Args: {
9293
+ p_apikey: string;
9294
+ p_url: string;
9295
+ };
9296
+ Returns: number;
9297
+ };
9298
+ schedule_floriday_clock_supplies_sync: {
9299
+ Args: {
9300
+ p_apikey: string;
9301
+ p_url: string;
9302
+ };
9303
+ Returns: number;
9304
+ };
9305
+ schedule_floriday_collections_sync: {
9306
+ Args: {
9307
+ p_apikey: string;
9308
+ p_url: string;
9309
+ };
9310
+ Returns: number;
9311
+ };
9312
+ schedule_floriday_commercial_service_types_sync: {
9313
+ Args: {
9314
+ p_apikey: string;
9315
+ p_url: string;
9316
+ };
9317
+ Returns: number;
9318
+ };
6695
9319
  schedule_floriday_connections_sync: {
6696
9320
  Args: {
6697
9321
  p_apikey: string;
@@ -6699,6 +9323,20 @@ export type Database = {
6699
9323
  };
6700
9324
  Returns: number;
6701
9325
  };
9326
+ schedule_floriday_contract_trade_item_groups_sync: {
9327
+ Args: {
9328
+ p_apikey: string;
9329
+ p_url: string;
9330
+ };
9331
+ Returns: number;
9332
+ };
9333
+ schedule_floriday_contracts_sync: {
9334
+ Args: {
9335
+ p_apikey: string;
9336
+ p_url: string;
9337
+ };
9338
+ Returns: number;
9339
+ };
6702
9340
  schedule_floriday_customer_organizations_sync: {
6703
9341
  Args: {
6704
9342
  p_apikey: string;
@@ -6706,6 +9344,48 @@ export type Database = {
6706
9344
  };
6707
9345
  Returns: number;
6708
9346
  };
9347
+ schedule_floriday_customer_stickers_sync: {
9348
+ Args: {
9349
+ p_apikey: string;
9350
+ p_url: string;
9351
+ };
9352
+ Returns: number;
9353
+ };
9354
+ schedule_floriday_delivery_condition_sets_sync: {
9355
+ Args: {
9356
+ p_apikey: string;
9357
+ p_url: string;
9358
+ };
9359
+ Returns: number;
9360
+ };
9361
+ schedule_floriday_delivery_locations_sync: {
9362
+ Args: {
9363
+ p_apikey: string;
9364
+ p_url: string;
9365
+ };
9366
+ Returns: number;
9367
+ };
9368
+ schedule_floriday_delivery_orders_sync: {
9369
+ Args: {
9370
+ p_apikey: string;
9371
+ p_url: string;
9372
+ };
9373
+ Returns: number;
9374
+ };
9375
+ schedule_floriday_fulfillment_orders_sync: {
9376
+ Args: {
9377
+ p_apikey: string;
9378
+ p_url: string;
9379
+ };
9380
+ Returns: number;
9381
+ };
9382
+ schedule_floriday_invoices_sync: {
9383
+ Args: {
9384
+ p_apikey: string;
9385
+ p_url: string;
9386
+ };
9387
+ Returns: number;
9388
+ };
6709
9389
  schedule_floriday_network_sync: {
6710
9390
  Args: {
6711
9391
  p_apikey: string;
@@ -6713,6 +9393,34 @@ export type Database = {
6713
9393
  };
6714
9394
  Returns: number;
6715
9395
  };
9396
+ schedule_floriday_packings_sync: {
9397
+ Args: {
9398
+ p_apikey: string;
9399
+ p_url: string;
9400
+ };
9401
+ Returns: number;
9402
+ };
9403
+ schedule_floriday_price_groups_sync: {
9404
+ Args: {
9405
+ p_apikey: string;
9406
+ p_url: string;
9407
+ };
9408
+ Returns: number;
9409
+ };
9410
+ schedule_floriday_reference_data_refresh: {
9411
+ Args: {
9412
+ p_apikey: string;
9413
+ p_url: string;
9414
+ };
9415
+ Returns: number;
9416
+ };
9417
+ schedule_floriday_sales_strategies_sync: {
9418
+ Args: {
9419
+ p_apikey: string;
9420
+ p_url: string;
9421
+ };
9422
+ Returns: number;
9423
+ };
6716
9424
  schedule_floriday_salesorders_sync: {
6717
9425
  Args: {
6718
9426
  p_apikey: string;
@@ -6727,6 +9435,13 @@ export type Database = {
6727
9435
  };
6728
9436
  Returns: number;
6729
9437
  };
9438
+ schedule_floriday_trade_item_classifications_sync: {
9439
+ Args: {
9440
+ p_apikey: string;
9441
+ p_url: string;
9442
+ };
9443
+ Returns: number;
9444
+ };
6730
9445
  schedule_floriday_trade_items_sync: {
6731
9446
  Args: {
6732
9447
  p_apikey: string;
@@ -6734,6 +9449,20 @@ export type Database = {
6734
9449
  };
6735
9450
  Returns: number;
6736
9451
  };
9452
+ schedule_floriday_trips_sync: {
9453
+ Args: {
9454
+ p_apikey: string;
9455
+ p_url: string;
9456
+ };
9457
+ Returns: number;
9458
+ };
9459
+ schedule_floriday_warehouses_sync: {
9460
+ Args: {
9461
+ p_apikey: string;
9462
+ p_url: string;
9463
+ };
9464
+ Returns: number;
9465
+ };
6737
9466
  schedule_twinfield_customers_sync: {
6738
9467
  Args: {
6739
9468
  p_apikey: string;
@@ -6762,6 +9491,14 @@ export type Database = {
6762
9491
  };
6763
9492
  Returns: number;
6764
9493
  };
9494
+ schedule_twinfield_push_queue_flush: {
9495
+ Args: {
9496
+ p_apikey: string;
9497
+ p_cron_secret?: string;
9498
+ p_url: string;
9499
+ };
9500
+ Returns: number;
9501
+ };
6765
9502
  schedule_twinfield_token_refresh: {
6766
9503
  Args: {
6767
9504
  p_apikey: string;
@@ -6800,8 +9537,9 @@ export type Database = {
6800
9537
  };
6801
9538
  };
6802
9539
  Enums: {
6803
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
9540
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
6804
9541
  exact_env: "staging" | "live";
9542
+ exact_push_status: "pending" | "sent" | "error";
6805
9543
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
6806
9544
  };
6807
9545
  CompositeTypes: {
@@ -6861,8 +9599,9 @@ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof Defaul
6861
9599
  export declare const Constants: {
6862
9600
  readonly public: {
6863
9601
  readonly Enums: {
6864
- readonly app_role: readonly ["admin", "manager", "warehouse", "sales", "developer", "receptie"];
9602
+ readonly app_role: readonly ["admin", "manager", "warehouse", "sales", "developer", "receptie", "monteur"];
6865
9603
  readonly exact_env: readonly ["staging", "live"];
9604
+ readonly exact_push_status: readonly ["pending", "sent", "error"];
6866
9605
  readonly quote_status: readonly ["concept", "verzonden", "bekeken", "in_behandeling", "geaccepteerd", "afgewezen", "verlopen", "gearchiveerd"];
6867
9606
  };
6868
9607
  };