@flowselections/floriday-authenticatie-module 1.0.38 → 1.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist-lib/components/TemplatePage.d.ts +1 -1
  2. package/dist-lib/components/TemplatePage.d.ts.map +1 -1
  3. package/dist-lib/components/floriday/FlorydayConnectionPage.d.ts +1 -1
  4. package/dist-lib/components/floriday/FlorydayConnectionPage.d.ts.map +1 -1
  5. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +1 -1
  6. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +1 -1
  7. package/dist-lib/components/floriday/FlorydaySyncJobsCard.d.ts +1 -1
  8. package/dist-lib/components/floriday/FlorydaySyncJobsCard.d.ts.map +1 -1
  9. package/dist-lib/components/floriday/TokenHealthCard.d.ts +1 -1
  10. package/dist-lib/components/floriday/TokenHealthCard.d.ts.map +1 -1
  11. package/dist-lib/components/settings/FloricodeSettingsCard.d.ts +1 -1
  12. package/dist-lib/components/settings/FloricodeSettingsCard.d.ts.map +1 -1
  13. package/dist-lib/components/settings/FlorydaySettingsCard.d.ts +1 -1
  14. package/dist-lib/components/settings/FlorydaySettingsCard.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1599 -318
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.d.ts +1599 -318
  18. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/client.server.d.ts +1599 -318
  20. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/types.d.ts +1675 -362
  22. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/types.js +3 -0
  24. package/dist-lib/lib/error-page.js +30 -30
  25. package/dist-lib/lib/floricode.functions.d.ts +10626 -1659
  26. package/dist-lib/lib/floricode.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday-auction-letters.functions.d.ts +1599 -318
  28. package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/floriday-labels.functions.d.ts +1599 -318
  30. package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/floriday-public.functions.d.ts +9108 -1422
  32. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floriday-stickers.functions.d.ts +1599 -318
  34. package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/floriday-sync.functions.d.ts +47058 -7347
  36. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/floriday-writes.functions.d.ts +9114 -1428
  38. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/floriday.functions.d.ts +28842 -4503
  40. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/print/floriday-print.d.ts +36 -0
  42. package/dist-lib/lib/print/floriday-print.d.ts.map +1 -0
  43. package/dist-lib/lib/print/floriday-print.js +204 -0
  44. package/dist-lib/lib/print/index.d.ts +3 -0
  45. package/dist-lib/lib/print/index.d.ts.map +1 -0
  46. package/dist-lib/lib/print/index.js +2 -0
  47. package/dist-lib/lib/print/pdf-to-base64.d.ts +5 -0
  48. package/dist-lib/lib/print/pdf-to-base64.d.ts.map +1 -0
  49. package/dist-lib/lib/print/pdf-to-base64.js +27 -0
  50. package/package.json +12 -2
  51. package/dist-lib/assets/floriday-logo.png.asset.json +0 -11
@@ -885,6 +885,126 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
885
885
  };
886
886
  Relationships: [];
887
887
  };
888
+ cao_holidays: {
889
+ Row: {
890
+ created_at: string;
891
+ description: string | null;
892
+ holiday_date: string;
893
+ id: string;
894
+ updated_at: string;
895
+ };
896
+ Insert: {
897
+ created_at?: string;
898
+ description?: string | null;
899
+ holiday_date: string;
900
+ id?: string;
901
+ updated_at?: string;
902
+ };
903
+ Update: {
904
+ created_at?: string;
905
+ description?: string | null;
906
+ holiday_date?: string;
907
+ id?: string;
908
+ updated_at?: string;
909
+ };
910
+ Relationships: [];
911
+ };
912
+ cao_settings: {
913
+ Row: {
914
+ auto_break_after_hours: number;
915
+ auto_break_minutes: number;
916
+ auto_break_unpaid: boolean;
917
+ auto_stop_after_hours: number;
918
+ callout_fee: number;
919
+ created_at: string;
920
+ daily_regular_hours: number;
921
+ default_hourly_rate: number;
922
+ id: string;
923
+ materials_markup_percent: number;
924
+ max_daily_hours: number;
925
+ max_weekly_hours: number;
926
+ meal_allowance_amount: number;
927
+ overtime_pct_178: number;
928
+ overtime_pct_189: number;
929
+ overtime_pct_212: number;
930
+ reminder_after_hours: number;
931
+ standby_evening_amount: number;
932
+ standby_weekend_amount: number;
933
+ travel_cost_per_km: number | null;
934
+ travel_cost_threshold_km: number | null;
935
+ travel_counts_as_work: boolean;
936
+ travel_hourly_rate: number;
937
+ travel_rate_per_hour: number;
938
+ travel_threshold_minutes: number;
939
+ updated_at: string;
940
+ weekend_always_212: boolean;
941
+ window_end: string;
942
+ window_start: string;
943
+ };
944
+ Insert: {
945
+ auto_break_after_hours?: number;
946
+ auto_break_minutes?: number;
947
+ auto_break_unpaid?: boolean;
948
+ auto_stop_after_hours?: number;
949
+ callout_fee?: number;
950
+ created_at?: string;
951
+ daily_regular_hours?: number;
952
+ default_hourly_rate?: number;
953
+ id?: string;
954
+ materials_markup_percent?: number;
955
+ max_daily_hours?: number;
956
+ max_weekly_hours?: number;
957
+ meal_allowance_amount?: number;
958
+ overtime_pct_178?: number;
959
+ overtime_pct_189?: number;
960
+ overtime_pct_212?: number;
961
+ reminder_after_hours?: number;
962
+ standby_evening_amount?: number;
963
+ standby_weekend_amount?: number;
964
+ travel_cost_per_km?: number | null;
965
+ travel_cost_threshold_km?: number | null;
966
+ travel_counts_as_work?: boolean;
967
+ travel_hourly_rate?: number;
968
+ travel_rate_per_hour?: number;
969
+ travel_threshold_minutes?: number;
970
+ updated_at?: string;
971
+ weekend_always_212?: boolean;
972
+ window_end?: string;
973
+ window_start?: string;
974
+ };
975
+ Update: {
976
+ auto_break_after_hours?: number;
977
+ auto_break_minutes?: number;
978
+ auto_break_unpaid?: boolean;
979
+ auto_stop_after_hours?: number;
980
+ callout_fee?: number;
981
+ created_at?: string;
982
+ daily_regular_hours?: number;
983
+ default_hourly_rate?: number;
984
+ id?: string;
985
+ materials_markup_percent?: number;
986
+ max_daily_hours?: number;
987
+ max_weekly_hours?: number;
988
+ meal_allowance_amount?: number;
989
+ overtime_pct_178?: number;
990
+ overtime_pct_189?: number;
991
+ overtime_pct_212?: number;
992
+ reminder_after_hours?: number;
993
+ standby_evening_amount?: number;
994
+ standby_weekend_amount?: number;
995
+ travel_cost_per_km?: number | null;
996
+ travel_cost_threshold_km?: number | null;
997
+ travel_counts_as_work?: boolean;
998
+ travel_hourly_rate?: number;
999
+ travel_rate_per_hour?: number;
1000
+ travel_threshold_minutes?: number;
1001
+ updated_at?: string;
1002
+ weekend_always_212?: boolean;
1003
+ window_end?: string;
1004
+ window_start?: string;
1005
+ };
1006
+ Relationships: [];
1007
+ };
888
1008
  carrier_shipping_rates: {
889
1009
  Row: {
890
1010
  carrier_id: string;
@@ -2652,6 +2772,42 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
2652
2772
  };
2653
2773
  Relationships: [];
2654
2774
  };
2775
+ document_bronregels: {
2776
+ Row: {
2777
+ bron: string;
2778
+ created_at: string;
2779
+ documenttype: string;
2780
+ herkomst: string;
2781
+ id: string;
2782
+ layout_id: string | null;
2783
+ updated_at: string;
2784
+ };
2785
+ Insert: {
2786
+ bron?: string;
2787
+ created_at?: string;
2788
+ documenttype: string;
2789
+ herkomst: string;
2790
+ id?: string;
2791
+ layout_id?: string | null;
2792
+ updated_at?: string;
2793
+ };
2794
+ Update: {
2795
+ bron?: string;
2796
+ created_at?: string;
2797
+ documenttype?: string;
2798
+ herkomst?: string;
2799
+ id?: string;
2800
+ layout_id?: string | null;
2801
+ updated_at?: string;
2802
+ };
2803
+ Relationships: [{
2804
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2805
+ columns: ["layout_id"];
2806
+ isOneToOne: false;
2807
+ referencedRelation: "document_layouts";
2808
+ referencedColumns: ["id"];
2809
+ }];
2810
+ };
2655
2811
  document_formaat_printers: {
2656
2812
  Row: {
2657
2813
  created_at: string;
@@ -2997,6 +3153,42 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
2997
3153
  };
2998
3154
  Relationships: [];
2999
3155
  };
3156
+ document_werkplek_printers: {
3157
+ Row: {
3158
+ created_at: string;
3159
+ documenttype: string;
3160
+ id: string;
3161
+ papierformaat: string | null;
3162
+ printer_id: string | null;
3163
+ updated_at: string;
3164
+ werkplek: string;
3165
+ };
3166
+ Insert: {
3167
+ created_at?: string;
3168
+ documenttype: string;
3169
+ id?: string;
3170
+ papierformaat?: string | null;
3171
+ printer_id?: string | null;
3172
+ updated_at?: string;
3173
+ werkplek: string;
3174
+ };
3175
+ Update: {
3176
+ created_at?: string;
3177
+ documenttype?: string;
3178
+ id?: string;
3179
+ papierformaat?: string | null;
3180
+ printer_id?: string | null;
3181
+ updated_at?: string;
3182
+ werkplek?: string;
3183
+ };
3184
+ Relationships: [{
3185
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3186
+ columns: ["printer_id"];
3187
+ isOneToOne: false;
3188
+ referencedRelation: "printers";
3189
+ referencedColumns: ["id"];
3190
+ }];
3191
+ };
3000
3192
  email_auth_connections: {
3001
3193
  Row: {
3002
3194
  access_token_encrypted: string | null;
@@ -7242,8 +7434,63 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7242
7434
  };
7243
7435
  Relationships: [];
7244
7436
  };
7437
+ invoice_items: {
7438
+ Row: {
7439
+ created_at: string;
7440
+ description: string;
7441
+ id: string;
7442
+ invoice_id: string;
7443
+ kind: string;
7444
+ quantity: number;
7445
+ sort_order: number;
7446
+ source_line_ref: string | null;
7447
+ total_cents: number;
7448
+ unit: string;
7449
+ unit_price_cents: number;
7450
+ };
7451
+ Insert: {
7452
+ created_at?: string;
7453
+ description?: string;
7454
+ id?: string;
7455
+ invoice_id: string;
7456
+ kind?: string;
7457
+ quantity?: number;
7458
+ sort_order?: number;
7459
+ source_line_ref?: string | null;
7460
+ total_cents?: number;
7461
+ unit?: string;
7462
+ unit_price_cents?: number;
7463
+ };
7464
+ Update: {
7465
+ created_at?: string;
7466
+ description?: string;
7467
+ id?: string;
7468
+ invoice_id?: string;
7469
+ kind?: string;
7470
+ quantity?: number;
7471
+ sort_order?: number;
7472
+ source_line_ref?: string | null;
7473
+ total_cents?: number;
7474
+ unit?: string;
7475
+ unit_price_cents?: number;
7476
+ };
7477
+ Relationships: [{
7478
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7479
+ columns: ["invoice_id"];
7480
+ isOneToOne: false;
7481
+ referencedRelation: "invoices";
7482
+ referencedColumns: ["id"];
7483
+ }, {
7484
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7485
+ columns: ["invoice_id"];
7486
+ isOneToOne: false;
7487
+ referencedRelation: "uren_facturen";
7488
+ referencedColumns: ["id"];
7489
+ }];
7490
+ };
7245
7491
  invoice_post_idempotency: {
7246
7492
  Row: {
7493
+ administration_code: string;
7247
7494
  client_request_id: string;
7248
7495
  completed_at: string | null;
7249
7496
  created_at: string;
@@ -7253,6 +7500,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7253
7500
  user_id: string;
7254
7501
  };
7255
7502
  Insert: {
7503
+ administration_code?: string;
7256
7504
  client_request_id: string;
7257
7505
  completed_at?: string | null;
7258
7506
  created_at?: string;
@@ -7262,6 +7510,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7262
7510
  user_id: string;
7263
7511
  };
7264
7512
  Update: {
7513
+ administration_code?: string;
7265
7514
  client_request_id?: string;
7266
7515
  completed_at?: string | null;
7267
7516
  created_at?: string;
@@ -7467,6 +7716,75 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7467
7716
  };
7468
7717
  Relationships: [];
7469
7718
  };
7719
+ invoices: {
7720
+ Row: {
7721
+ created_at: string;
7722
+ created_by: string | null;
7723
+ customer_id: string | null;
7724
+ customer_name: string | null;
7725
+ due_date: string | null;
7726
+ id: string;
7727
+ invoice_date: string;
7728
+ invoice_number: string | null;
7729
+ note: string | null;
7730
+ source_number: string | null;
7731
+ source_ref: string | null;
7732
+ source_type: string;
7733
+ status: string;
7734
+ subtotal_cents: number;
7735
+ total_cents: number;
7736
+ updated_at: string;
7737
+ vat_cents: number;
7738
+ vat_rate: number;
7739
+ };
7740
+ Insert: {
7741
+ created_at?: string;
7742
+ created_by?: string | null;
7743
+ customer_id?: string | null;
7744
+ customer_name?: string | null;
7745
+ due_date?: string | null;
7746
+ id?: string;
7747
+ invoice_date?: string;
7748
+ invoice_number?: string | null;
7749
+ note?: string | null;
7750
+ source_number?: string | null;
7751
+ source_ref?: string | null;
7752
+ source_type?: string;
7753
+ status?: string;
7754
+ subtotal_cents?: number;
7755
+ total_cents?: number;
7756
+ updated_at?: string;
7757
+ vat_cents?: number;
7758
+ vat_rate?: number;
7759
+ };
7760
+ Update: {
7761
+ created_at?: string;
7762
+ created_by?: string | null;
7763
+ customer_id?: string | null;
7764
+ customer_name?: string | null;
7765
+ due_date?: string | null;
7766
+ id?: string;
7767
+ invoice_date?: string;
7768
+ invoice_number?: string | null;
7769
+ note?: string | null;
7770
+ source_number?: string | null;
7771
+ source_ref?: string | null;
7772
+ source_type?: string;
7773
+ status?: string;
7774
+ subtotal_cents?: number;
7775
+ total_cents?: number;
7776
+ updated_at?: string;
7777
+ vat_cents?: number;
7778
+ vat_rate?: number;
7779
+ };
7780
+ Relationships: [{
7781
+ foreignKeyName: "invoices_customer_id_fkey";
7782
+ columns: ["customer_id"];
7783
+ isOneToOne: false;
7784
+ referencedRelation: "itk_customers";
7785
+ referencedColumns: ["id"];
7786
+ }];
7787
+ };
7470
7788
  itk_contact_persons: {
7471
7789
  Row: {
7472
7790
  created_at: string;
@@ -7662,77 +7980,329 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7662
7980
  };
7663
7981
  Relationships: [];
7664
7982
  };
7665
- itk_work_locations: {
7983
+ itk_offerte_events: {
7666
7984
  Row: {
7667
- city: string | null;
7668
7985
  created_at: string;
7669
- customer_id: string;
7986
+ event_type: string;
7670
7987
  id: string;
7671
- instructions: string | null;
7672
- label: string;
7673
- latitude: number | null;
7674
- longitude: number | null;
7675
- postcode: string | null;
7676
- street: string | null;
7677
- updated_at: string;
7988
+ metadata: import("../integrations/supabase/types.js").Json;
7989
+ offerte_id: string;
7990
+ omschrijving: string | null;
7991
+ user_id: string | null;
7678
7992
  };
7679
7993
  Insert: {
7680
- city?: string | null;
7681
7994
  created_at?: string;
7682
- customer_id: string;
7995
+ event_type: string;
7683
7996
  id?: string;
7684
- instructions?: string | null;
7685
- label: string;
7686
- latitude?: number | null;
7687
- longitude?: number | null;
7688
- postcode?: string | null;
7689
- street?: string | null;
7690
- updated_at?: string;
7997
+ metadata?: import("../integrations/supabase/types.js").Json;
7998
+ offerte_id: string;
7999
+ omschrijving?: string | null;
8000
+ user_id?: string | null;
7691
8001
  };
7692
8002
  Update: {
7693
- city?: string | null;
7694
8003
  created_at?: string;
7695
- customer_id?: string;
8004
+ event_type?: string;
7696
8005
  id?: string;
7697
- instructions?: string | null;
7698
- label?: string;
7699
- latitude?: number | null;
7700
- longitude?: number | null;
7701
- postcode?: string | null;
7702
- street?: string | null;
7703
- updated_at?: string;
8006
+ metadata?: import("../integrations/supabase/types.js").Json;
8007
+ offerte_id?: string;
8008
+ omschrijving?: string | null;
8009
+ user_id?: string | null;
7704
8010
  };
7705
8011
  Relationships: [{
7706
- foreignKeyName: "itk_work_locations_customer_id_fkey";
7707
- columns: ["customer_id"];
8012
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8013
+ columns: ["offerte_id"];
7708
8014
  isOneToOne: false;
7709
- referencedRelation: "itk_customers";
8015
+ referencedRelation: "itk_offertes";
7710
8016
  referencedColumns: ["id"];
7711
8017
  }];
7712
8018
  };
7713
- layout_logos: {
8019
+ itk_offerte_regels: {
7714
8020
  Row: {
7715
- bestand_url: string;
7716
- bestandsgrootte: number;
7717
- bestandspad: string | null;
7718
- bestandstype: string;
7719
- breedte: number;
7720
- categorie: string;
7721
8021
  created_at: string;
7722
- hash: string | null;
7723
- hoogte: number;
7724
8022
  id: string;
7725
- is_standaard: boolean;
7726
- naam: string;
8023
+ line_total_cents: number;
8024
+ offerte_id: string;
7727
8025
  omschrijving: string;
7728
- transparant: boolean;
8026
+ package_id: string | null;
8027
+ quantity: number;
8028
+ sort_order: number;
8029
+ source: string;
8030
+ unit_price_cents: number;
7729
8031
  updated_at: string;
7730
8032
  };
7731
8033
  Insert: {
7732
- bestand_url: string;
7733
- bestandsgrootte?: number;
7734
- bestandspad?: string | null;
7735
- bestandstype?: string;
8034
+ created_at?: string;
8035
+ id?: string;
8036
+ line_total_cents?: number;
8037
+ offerte_id: string;
8038
+ omschrijving?: string;
8039
+ package_id?: string | null;
8040
+ quantity?: number;
8041
+ sort_order?: number;
8042
+ source?: string;
8043
+ unit_price_cents?: number;
8044
+ updated_at?: string;
8045
+ };
8046
+ Update: {
8047
+ created_at?: string;
8048
+ id?: string;
8049
+ line_total_cents?: number;
8050
+ offerte_id?: string;
8051
+ omschrijving?: string;
8052
+ package_id?: string | null;
8053
+ quantity?: number;
8054
+ sort_order?: number;
8055
+ source?: string;
8056
+ unit_price_cents?: number;
8057
+ updated_at?: string;
8058
+ };
8059
+ Relationships: [{
8060
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8061
+ columns: ["offerte_id"];
8062
+ isOneToOne: false;
8063
+ referencedRelation: "itk_offertes";
8064
+ referencedColumns: ["id"];
8065
+ }, {
8066
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
8067
+ columns: ["package_id"];
8068
+ isOneToOne: false;
8069
+ referencedRelation: "werkbon_packages";
8070
+ referencedColumns: ["id"];
8071
+ }];
8072
+ };
8073
+ itk_offerte_settings: {
8074
+ Row: {
8075
+ auto_convert_binnen_mandaat: boolean;
8076
+ created_at: string;
8077
+ default_geldigheid_dagen: number;
8078
+ default_vat_rate: number;
8079
+ id: string;
8080
+ singleton: boolean;
8081
+ updated_at: string;
8082
+ };
8083
+ Insert: {
8084
+ auto_convert_binnen_mandaat?: boolean;
8085
+ created_at?: string;
8086
+ default_geldigheid_dagen?: number;
8087
+ default_vat_rate?: number;
8088
+ id?: string;
8089
+ singleton?: boolean;
8090
+ updated_at?: string;
8091
+ };
8092
+ Update: {
8093
+ auto_convert_binnen_mandaat?: boolean;
8094
+ created_at?: string;
8095
+ default_geldigheid_dagen?: number;
8096
+ default_vat_rate?: number;
8097
+ id?: string;
8098
+ singleton?: boolean;
8099
+ updated_at?: string;
8100
+ };
8101
+ Relationships: [];
8102
+ };
8103
+ itk_offertes: {
8104
+ Row: {
8105
+ ai_generated: boolean;
8106
+ approved_at: string | null;
8107
+ binnen_mandaat: boolean;
8108
+ contact_id: string | null;
8109
+ converted_at: string | null;
8110
+ created_at: string;
8111
+ created_by: string | null;
8112
+ customer_id: string | null;
8113
+ follow_up_werkbon_id: string | null;
8114
+ id: string;
8115
+ jaar: number;
8116
+ mandaat_restant_cents: number;
8117
+ notities: string | null;
8118
+ offerte_number: string | null;
8119
+ omschrijving: string;
8120
+ rejected_at: string | null;
8121
+ sent_at: string | null;
8122
+ source_number: string | null;
8123
+ source_ref: string | null;
8124
+ source_type: string;
8125
+ status: string;
8126
+ subtotal_cents: number;
8127
+ total_cents: number;
8128
+ updated_at: string;
8129
+ valid_until: string | null;
8130
+ vat_cents: number;
8131
+ vat_rate: number;
8132
+ viewed_at: string | null;
8133
+ volgnummer: number | null;
8134
+ werkbon_id: string | null;
8135
+ work_location_id: string | null;
8136
+ };
8137
+ Insert: {
8138
+ ai_generated?: boolean;
8139
+ approved_at?: string | null;
8140
+ binnen_mandaat?: boolean;
8141
+ contact_id?: string | null;
8142
+ converted_at?: string | null;
8143
+ created_at?: string;
8144
+ created_by?: string | null;
8145
+ customer_id?: string | null;
8146
+ follow_up_werkbon_id?: string | null;
8147
+ id?: string;
8148
+ jaar?: number;
8149
+ mandaat_restant_cents?: number;
8150
+ notities?: string | null;
8151
+ offerte_number?: string | null;
8152
+ omschrijving?: string;
8153
+ rejected_at?: string | null;
8154
+ sent_at?: string | null;
8155
+ source_number?: string | null;
8156
+ source_ref?: string | null;
8157
+ source_type?: string;
8158
+ status?: string;
8159
+ subtotal_cents?: number;
8160
+ total_cents?: number;
8161
+ updated_at?: string;
8162
+ valid_until?: string | null;
8163
+ vat_cents?: number;
8164
+ vat_rate?: number;
8165
+ viewed_at?: string | null;
8166
+ volgnummer?: number | null;
8167
+ werkbon_id?: string | null;
8168
+ work_location_id?: string | null;
8169
+ };
8170
+ Update: {
8171
+ ai_generated?: boolean;
8172
+ approved_at?: string | null;
8173
+ binnen_mandaat?: boolean;
8174
+ contact_id?: string | null;
8175
+ converted_at?: string | null;
8176
+ created_at?: string;
8177
+ created_by?: string | null;
8178
+ customer_id?: string | null;
8179
+ follow_up_werkbon_id?: string | null;
8180
+ id?: string;
8181
+ jaar?: number;
8182
+ mandaat_restant_cents?: number;
8183
+ notities?: string | null;
8184
+ offerte_number?: string | null;
8185
+ omschrijving?: string;
8186
+ rejected_at?: string | null;
8187
+ sent_at?: string | null;
8188
+ source_number?: string | null;
8189
+ source_ref?: string | null;
8190
+ source_type?: string;
8191
+ status?: string;
8192
+ subtotal_cents?: number;
8193
+ total_cents?: number;
8194
+ updated_at?: string;
8195
+ valid_until?: string | null;
8196
+ vat_cents?: number;
8197
+ vat_rate?: number;
8198
+ viewed_at?: string | null;
8199
+ volgnummer?: number | null;
8200
+ werkbon_id?: string | null;
8201
+ work_location_id?: string | null;
8202
+ };
8203
+ Relationships: [{
8204
+ foreignKeyName: "itk_offertes_contact_id_fkey";
8205
+ columns: ["contact_id"];
8206
+ isOneToOne: false;
8207
+ referencedRelation: "itk_contact_persons";
8208
+ referencedColumns: ["id"];
8209
+ }, {
8210
+ foreignKeyName: "itk_offertes_customer_id_fkey";
8211
+ columns: ["customer_id"];
8212
+ isOneToOne: false;
8213
+ referencedRelation: "itk_customers";
8214
+ referencedColumns: ["id"];
8215
+ }, {
8216
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
8217
+ columns: ["follow_up_werkbon_id"];
8218
+ isOneToOne: false;
8219
+ referencedRelation: "werkbonnen";
8220
+ referencedColumns: ["id"];
8221
+ }, {
8222
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8223
+ columns: ["werkbon_id"];
8224
+ isOneToOne: false;
8225
+ referencedRelation: "werkbonnen";
8226
+ referencedColumns: ["id"];
8227
+ }, {
8228
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8229
+ columns: ["work_location_id"];
8230
+ isOneToOne: false;
8231
+ referencedRelation: "itk_work_locations";
8232
+ referencedColumns: ["id"];
8233
+ }];
8234
+ };
8235
+ itk_work_locations: {
8236
+ Row: {
8237
+ city: string | null;
8238
+ created_at: string;
8239
+ customer_id: string;
8240
+ id: string;
8241
+ instructions: string | null;
8242
+ label: string;
8243
+ latitude: number | null;
8244
+ longitude: number | null;
8245
+ postcode: string | null;
8246
+ street: string | null;
8247
+ updated_at: string;
8248
+ };
8249
+ Insert: {
8250
+ city?: string | null;
8251
+ created_at?: string;
8252
+ customer_id: string;
8253
+ id?: string;
8254
+ instructions?: string | null;
8255
+ label: string;
8256
+ latitude?: number | null;
8257
+ longitude?: number | null;
8258
+ postcode?: string | null;
8259
+ street?: string | null;
8260
+ updated_at?: string;
8261
+ };
8262
+ Update: {
8263
+ city?: string | null;
8264
+ created_at?: string;
8265
+ customer_id?: string;
8266
+ id?: string;
8267
+ instructions?: string | null;
8268
+ label?: string;
8269
+ latitude?: number | null;
8270
+ longitude?: number | null;
8271
+ postcode?: string | null;
8272
+ street?: string | null;
8273
+ updated_at?: string;
8274
+ };
8275
+ Relationships: [{
8276
+ foreignKeyName: "itk_work_locations_customer_id_fkey";
8277
+ columns: ["customer_id"];
8278
+ isOneToOne: false;
8279
+ referencedRelation: "itk_customers";
8280
+ referencedColumns: ["id"];
8281
+ }];
8282
+ };
8283
+ layout_logos: {
8284
+ Row: {
8285
+ bestand_url: string;
8286
+ bestandsgrootte: number;
8287
+ bestandspad: string | null;
8288
+ bestandstype: string;
8289
+ breedte: number;
8290
+ categorie: string;
8291
+ created_at: string;
8292
+ hash: string | null;
8293
+ hoogte: number;
8294
+ id: string;
8295
+ is_standaard: boolean;
8296
+ naam: string;
8297
+ omschrijving: string;
8298
+ transparant: boolean;
8299
+ updated_at: string;
8300
+ };
8301
+ Insert: {
8302
+ bestand_url: string;
8303
+ bestandsgrootte?: number;
8304
+ bestandspad?: string | null;
8305
+ bestandstype?: string;
7736
8306
  breedte?: number;
7737
8307
  categorie?: string;
7738
8308
  created_at?: string;
@@ -7779,7 +8349,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7779
8349
  start_date: string;
7780
8350
  start_time: string | null;
7781
8351
  status: string;
7782
- tenant_id: string;
7783
8352
  updated_at: string;
7784
8353
  user_id: string;
7785
8354
  };
@@ -7797,7 +8366,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7797
8366
  start_date: string;
7798
8367
  start_time?: string | null;
7799
8368
  status?: string;
7800
- tenant_id?: string;
7801
8369
  updated_at?: string;
7802
8370
  user_id: string;
7803
8371
  };
@@ -7815,7 +8383,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7815
8383
  start_date?: string;
7816
8384
  start_time?: string | null;
7817
8385
  status?: string;
7818
- tenant_id?: string;
7819
8386
  updated_at?: string;
7820
8387
  user_id?: string;
7821
8388
  };
@@ -7823,13 +8390,13 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7823
8390
  foreignKeyName: "leave_requests_monteur_id_fkey";
7824
8391
  columns: ["monteur_id"];
7825
8392
  isOneToOne: false;
7826
- referencedRelation: "monteurs";
8393
+ referencedRelation: "profiles";
7827
8394
  referencedColumns: ["id"];
7828
8395
  }, {
7829
8396
  foreignKeyName: "leave_requests_user_id_fkey";
7830
8397
  columns: ["user_id"];
7831
8398
  isOneToOne: false;
7832
- referencedRelation: "monteurs";
8399
+ referencedRelation: "profiles";
7833
8400
  referencedColumns: ["id"];
7834
8401
  }];
7835
8402
  };
@@ -9984,6 +10551,117 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
9984
10551
  };
9985
10552
  Relationships: [];
9986
10553
  };
10554
+ material_usage: {
10555
+ Row: {
10556
+ created_at: string;
10557
+ id: string;
10558
+ material_name: string;
10559
+ monteur_id: string | null;
10560
+ price_at_time: number;
10561
+ quantity_used: number;
10562
+ updated_at: string;
10563
+ van_inventory_id: string | null;
10564
+ work_order_id: string;
10565
+ };
10566
+ Insert: {
10567
+ created_at?: string;
10568
+ id?: string;
10569
+ material_name: string;
10570
+ monteur_id?: string | null;
10571
+ price_at_time?: number;
10572
+ quantity_used?: number;
10573
+ updated_at?: string;
10574
+ van_inventory_id?: string | null;
10575
+ work_order_id: string;
10576
+ };
10577
+ Update: {
10578
+ created_at?: string;
10579
+ id?: string;
10580
+ material_name?: string;
10581
+ monteur_id?: string | null;
10582
+ price_at_time?: number;
10583
+ quantity_used?: number;
10584
+ updated_at?: string;
10585
+ van_inventory_id?: string | null;
10586
+ work_order_id?: string;
10587
+ };
10588
+ Relationships: [{
10589
+ foreignKeyName: "material_usage_monteur_id_fkey";
10590
+ columns: ["monteur_id"];
10591
+ isOneToOne: false;
10592
+ referencedRelation: "profiles";
10593
+ referencedColumns: ["id"];
10594
+ }, {
10595
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
10596
+ columns: ["van_inventory_id"];
10597
+ isOneToOne: false;
10598
+ referencedRelation: "van_inventories";
10599
+ referencedColumns: ["id"];
10600
+ }, {
10601
+ foreignKeyName: "material_usage_work_order_id_fkey";
10602
+ columns: ["work_order_id"];
10603
+ isOneToOne: false;
10604
+ referencedRelation: "work_orders";
10605
+ referencedColumns: ["id"];
10606
+ }];
10607
+ };
10608
+ medewerker_details: {
10609
+ Row: {
10610
+ color: string | null;
10611
+ created_at: string;
10612
+ hours_fri: number | null;
10613
+ hours_mon: number | null;
10614
+ hours_thu: number | null;
10615
+ hours_tue: number | null;
10616
+ hours_wed: number | null;
10617
+ id: string;
10618
+ is_active: boolean;
10619
+ leave_balance_hours: number;
10620
+ persnr: string | null;
10621
+ phone: string | null;
10622
+ profile_id: string;
10623
+ updated_at: string;
10624
+ };
10625
+ Insert: {
10626
+ color?: string | null;
10627
+ created_at?: string;
10628
+ hours_fri?: number | null;
10629
+ hours_mon?: number | null;
10630
+ hours_thu?: number | null;
10631
+ hours_tue?: number | null;
10632
+ hours_wed?: number | null;
10633
+ id?: string;
10634
+ is_active?: boolean;
10635
+ leave_balance_hours?: number;
10636
+ persnr?: string | null;
10637
+ phone?: string | null;
10638
+ profile_id: string;
10639
+ updated_at?: string;
10640
+ };
10641
+ Update: {
10642
+ color?: string | null;
10643
+ created_at?: string;
10644
+ hours_fri?: number | null;
10645
+ hours_mon?: number | null;
10646
+ hours_thu?: number | null;
10647
+ hours_tue?: number | null;
10648
+ hours_wed?: number | null;
10649
+ id?: string;
10650
+ is_active?: boolean;
10651
+ leave_balance_hours?: number;
10652
+ persnr?: string | null;
10653
+ phone?: string | null;
10654
+ profile_id?: string;
10655
+ updated_at?: string;
10656
+ };
10657
+ Relationships: [{
10658
+ foreignKeyName: "medewerker_details_profile_id_fkey";
10659
+ columns: ["profile_id"];
10660
+ isOneToOne: true;
10661
+ referencedRelation: "profiles";
10662
+ referencedColumns: ["id"];
10663
+ }];
10664
+ };
9987
10665
  module_features: {
9988
10666
  Row: {
9989
10667
  created_at: string;
@@ -10044,8 +10722,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10044
10722
  module_registry: {
10045
10723
  Row: {
10046
10724
  created_at: string;
10725
+ enforce: boolean;
10047
10726
  is_active: boolean;
10048
10727
  last_seen_at: string;
10728
+ missing_count: number;
10049
10729
  module_id: string;
10050
10730
  name: string;
10051
10731
  shell_id: string | null;
@@ -10053,8 +10733,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10053
10733
  };
10054
10734
  Insert: {
10055
10735
  created_at?: string;
10736
+ enforce?: boolean;
10056
10737
  is_active?: boolean;
10057
10738
  last_seen_at?: string;
10739
+ missing_count?: number;
10058
10740
  module_id: string;
10059
10741
  name: string;
10060
10742
  shell_id?: string | null;
@@ -10062,8 +10744,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10062
10744
  };
10063
10745
  Update: {
10064
10746
  created_at?: string;
10747
+ enforce?: boolean;
10065
10748
  is_active?: boolean;
10066
10749
  last_seen_at?: string;
10750
+ missing_count?: number;
10067
10751
  module_id?: string;
10068
10752
  name?: string;
10069
10753
  shell_id?: string | null;
@@ -10096,88 +10780,31 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10096
10780
  id: string;
10097
10781
  is_active: boolean;
10098
10782
  last_seen_at: string | null;
10099
- module_key: string;
10100
- module_name: string;
10101
- updated_at: string;
10102
- };
10103
- Insert: {
10104
- created_at?: string;
10105
- description?: string | null;
10106
- id?: string;
10107
- is_active?: boolean;
10108
- last_seen_at?: string | null;
10109
- module_key: string;
10110
- module_name: string;
10111
- updated_at?: string;
10112
- };
10113
- Update: {
10114
- created_at?: string;
10115
- description?: string | null;
10116
- id?: string;
10117
- is_active?: boolean;
10118
- last_seen_at?: string | null;
10119
- module_key?: string;
10120
- module_name?: string;
10121
- updated_at?: string;
10122
- };
10123
- Relationships: [];
10124
- };
10125
- monteurs: {
10126
- Row: {
10127
- avatar_url: string | null;
10128
- color: string | null;
10129
- created_at: string;
10130
- email: string | null;
10131
- id: string;
10132
- is_active: boolean;
10133
- leave_balance_hours: number;
10134
- name: string;
10135
- persnr: number | null;
10136
- phone: string | null;
10137
- role: string;
10138
- tenant_id: string;
10783
+ module_key: string;
10784
+ module_name: string;
10139
10785
  updated_at: string;
10140
- user_id: string | null;
10141
10786
  };
10142
10787
  Insert: {
10143
- avatar_url?: string | null;
10144
- color?: string | null;
10145
10788
  created_at?: string;
10146
- email?: string | null;
10789
+ description?: string | null;
10147
10790
  id?: string;
10148
10791
  is_active?: boolean;
10149
- leave_balance_hours?: number;
10150
- name: string;
10151
- persnr?: number | null;
10152
- phone?: string | null;
10153
- role?: string;
10154
- tenant_id: string;
10792
+ last_seen_at?: string | null;
10793
+ module_key: string;
10794
+ module_name: string;
10155
10795
  updated_at?: string;
10156
- user_id?: string | null;
10157
10796
  };
10158
10797
  Update: {
10159
- avatar_url?: string | null;
10160
- color?: string | null;
10161
10798
  created_at?: string;
10162
- email?: string | null;
10799
+ description?: string | null;
10163
10800
  id?: string;
10164
10801
  is_active?: boolean;
10165
- leave_balance_hours?: number;
10166
- name?: string;
10167
- persnr?: number | null;
10168
- phone?: string | null;
10169
- role?: string;
10170
- tenant_id?: string;
10802
+ last_seen_at?: string | null;
10803
+ module_key?: string;
10804
+ module_name?: string;
10171
10805
  updated_at?: string;
10172
- user_id?: string | null;
10173
10806
  };
10174
- Relationships: [{
10175
- foreignKeyName: "monteurs_tenant_id_fkey";
10176
- columns: ["tenant_id"];
10177
- isOneToOne: false;
10178
- referencedRelation: "tenants";
10179
- referencedColumns: ["id"];
10180
- }];
10807
+ Relationships: [];
10181
10808
  };
10182
10809
  nmbrs_component_mapping: {
10183
10810
  Row: {
@@ -10249,13 +10876,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10249
10876
  nmbrs_employee_number?: string;
10250
10877
  updated_at?: string;
10251
10878
  };
10252
- Relationships: [{
10253
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
10254
- columns: ["monteur_id"];
10255
- isOneToOne: true;
10256
- referencedRelation: "monteurs";
10257
- referencedColumns: ["id"];
10258
- }];
10879
+ Relationships: [];
10259
10880
  };
10260
10881
  nmbrs_export_lines: {
10261
10882
  Row: {
@@ -10304,12 +10925,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10304
10925
  wage_code?: string;
10305
10926
  };
10306
10927
  Relationships: [{
10307
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10308
- columns: ["monteur_id"];
10309
- isOneToOne: false;
10310
- referencedRelation: "monteurs";
10311
- referencedColumns: ["id"];
10312
- }, {
10313
10928
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10314
10929
  columns: ["run_id"];
10315
10930
  isOneToOne: false;
@@ -11132,6 +11747,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
11132
11747
  };
11133
11748
  order_invoice_links: {
11134
11749
  Row: {
11750
+ administration_code: string | null;
11135
11751
  attempts: number;
11136
11752
  created_at: string;
11137
11753
  error_message: string | null;
@@ -11144,6 +11760,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
11144
11760
  updated_at: string;
11145
11761
  };
11146
11762
  Insert: {
11763
+ administration_code?: string | null;
11147
11764
  attempts?: number;
11148
11765
  created_at?: string;
11149
11766
  error_message?: string | null;
@@ -11156,6 +11773,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
11156
11773
  updated_at?: string;
11157
11774
  };
11158
11775
  Update: {
11776
+ administration_code?: string | null;
11159
11777
  attempts?: number;
11160
11778
  created_at?: string;
11161
11779
  error_message?: string | null;
@@ -11343,6 +11961,8 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
11343
11961
  orders: {
11344
11962
  Row: {
11345
11963
  buffer_id: string | null;
11964
+ cancel_reason: string | null;
11965
+ cancelled_at: string | null;
11346
11966
  created_at: string;
11347
11967
  custom_fields: import("../integrations/supabase/types.js").Json;
11348
11968
  customer_id: string | null;
@@ -11365,6 +11985,8 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
11365
11985
  };
11366
11986
  Insert: {
11367
11987
  buffer_id?: string | null;
11988
+ cancel_reason?: string | null;
11989
+ cancelled_at?: string | null;
11368
11990
  created_at?: string;
11369
11991
  custom_fields?: import("../integrations/supabase/types.js").Json;
11370
11992
  customer_id?: string | null;
@@ -11387,6 +12009,8 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
11387
12009
  };
11388
12010
  Update: {
11389
12011
  buffer_id?: string | null;
12012
+ cancel_reason?: string | null;
12013
+ cancelled_at?: string | null;
11390
12014
  created_at?: string;
11391
12015
  custom_fields?: import("../integrations/supabase/types.js").Json;
11392
12016
  customer_id?: string | null;
@@ -12597,6 +13221,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
12597
13221
  gebruiker_id: string | null;
12598
13222
  gebruiker_naam: string;
12599
13223
  gestart_op: string | null;
13224
+ herkomst: string | null;
12600
13225
  id: string;
12601
13226
  idempotentie_sleutel: string | null;
12602
13227
  is_herprint: boolean;
@@ -12626,6 +13251,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
12626
13251
  gebruiker_id?: string | null;
12627
13252
  gebruiker_naam?: string;
12628
13253
  gestart_op?: string | null;
13254
+ herkomst?: string | null;
12629
13255
  id?: string;
12630
13256
  idempotentie_sleutel?: string | null;
12631
13257
  is_herprint?: boolean;
@@ -12655,6 +13281,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
12655
13281
  gebruiker_id?: string | null;
12656
13282
  gebruiker_naam?: string;
12657
13283
  gestart_op?: string | null;
13284
+ herkomst?: string | null;
12658
13285
  id?: string;
12659
13286
  idempotentie_sleutel?: string | null;
12660
13287
  is_herprint?: boolean;
@@ -13449,6 +14076,66 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
13449
14076
  };
13450
14077
  Relationships: [];
13451
14078
  };
14079
+ profile_modules: {
14080
+ Row: {
14081
+ created_at: string;
14082
+ id: string;
14083
+ module_id: string;
14084
+ profile_id: string;
14085
+ };
14086
+ Insert: {
14087
+ created_at?: string;
14088
+ id?: string;
14089
+ module_id: string;
14090
+ profile_id: string;
14091
+ };
14092
+ Update: {
14093
+ created_at?: string;
14094
+ id?: string;
14095
+ module_id?: string;
14096
+ profile_id?: string;
14097
+ };
14098
+ Relationships: [{
14099
+ foreignKeyName: "profile_modules_profile_id_fkey";
14100
+ columns: ["profile_id"];
14101
+ isOneToOne: false;
14102
+ referencedRelation: "profiles_org";
14103
+ referencedColumns: ["id"];
14104
+ }];
14105
+ };
14106
+ profile_roles: {
14107
+ Row: {
14108
+ created_at: string;
14109
+ id: string;
14110
+ profile_id: string;
14111
+ role_id: string;
14112
+ };
14113
+ Insert: {
14114
+ created_at?: string;
14115
+ id?: string;
14116
+ profile_id: string;
14117
+ role_id: string;
14118
+ };
14119
+ Update: {
14120
+ created_at?: string;
14121
+ id?: string;
14122
+ profile_id?: string;
14123
+ role_id?: string;
14124
+ };
14125
+ Relationships: [{
14126
+ foreignKeyName: "profile_roles_profile_id_fkey";
14127
+ columns: ["profile_id"];
14128
+ isOneToOne: false;
14129
+ referencedRelation: "profiles_org";
14130
+ referencedColumns: ["id"];
14131
+ }, {
14132
+ foreignKeyName: "profile_roles_role_id_fkey";
14133
+ columns: ["role_id"];
14134
+ isOneToOne: false;
14135
+ referencedRelation: "roles";
14136
+ referencedColumns: ["id"];
14137
+ }];
14138
+ };
13452
14139
  profiles: {
13453
14140
  Row: {
13454
14141
  address: string | null;
@@ -13494,6 +14181,39 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
13494
14181
  referencedColumns: ["id"];
13495
14182
  }];
13496
14183
  };
14184
+ profiles_org: {
14185
+ Row: {
14186
+ created_at: string;
14187
+ id: string;
14188
+ is_default: boolean;
14189
+ name: string;
14190
+ tenant_id: string | null;
14191
+ updated_at: string;
14192
+ };
14193
+ Insert: {
14194
+ created_at?: string;
14195
+ id?: string;
14196
+ is_default?: boolean;
14197
+ name: string;
14198
+ tenant_id?: string | null;
14199
+ updated_at?: string;
14200
+ };
14201
+ Update: {
14202
+ created_at?: string;
14203
+ id?: string;
14204
+ is_default?: boolean;
14205
+ name?: string;
14206
+ tenant_id?: string | null;
14207
+ updated_at?: string;
14208
+ };
14209
+ Relationships: [{
14210
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14211
+ columns: ["tenant_id"];
14212
+ isOneToOne: false;
14213
+ referencedRelation: "tenants";
14214
+ referencedColumns: ["id"];
14215
+ }];
14216
+ };
13497
14217
  projects: {
13498
14218
  Row: {
13499
14219
  contact_name: string | null;
@@ -14668,6 +15388,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
14668
15388
  type: string;
14669
15389
  updated_at: string;
14670
15390
  vereist_medewerker: boolean;
15391
+ werkplek: string | null;
14671
15392
  };
14672
15393
  Insert: {
14673
15394
  actief?: boolean;
@@ -14681,6 +15402,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
14681
15402
  type?: string;
14682
15403
  updated_at?: string;
14683
15404
  vereist_medewerker?: boolean;
15405
+ werkplek?: string | null;
14684
15406
  };
14685
15407
  Update: {
14686
15408
  actief?: boolean;
@@ -14694,9 +15416,46 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
14694
15416
  type?: string;
14695
15417
  updated_at?: string;
14696
15418
  vereist_medewerker?: boolean;
15419
+ werkplek?: string | null;
14697
15420
  };
14698
15421
  Relationships: [];
14699
15422
  };
15423
+ sick_periods: {
15424
+ Row: {
15425
+ created_at: string;
15426
+ employee_id: string;
15427
+ end_date: string | null;
15428
+ id: string;
15429
+ notes: string | null;
15430
+ start_date: string;
15431
+ updated_at: string;
15432
+ };
15433
+ Insert: {
15434
+ created_at?: string;
15435
+ employee_id: string;
15436
+ end_date?: string | null;
15437
+ id?: string;
15438
+ notes?: string | null;
15439
+ start_date: string;
15440
+ updated_at?: string;
15441
+ };
15442
+ Update: {
15443
+ created_at?: string;
15444
+ employee_id?: string;
15445
+ end_date?: string | null;
15446
+ id?: string;
15447
+ notes?: string | null;
15448
+ start_date?: string;
15449
+ updated_at?: string;
15450
+ };
15451
+ Relationships: [{
15452
+ foreignKeyName: "sick_periods_employee_id_fkey";
15453
+ columns: ["employee_id"];
15454
+ isOneToOne: false;
15455
+ referencedRelation: "profiles";
15456
+ referencedColumns: ["id"];
15457
+ }];
15458
+ };
14700
15459
  sidebar_config: {
14701
15460
  Row: {
14702
15461
  id: string;
@@ -14994,6 +15753,54 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
14994
15753
  };
14995
15754
  Relationships: [];
14996
15755
  };
15756
+ time_compensation_entries: {
15757
+ Row: {
15758
+ created_at: string;
15759
+ employee_id: string;
15760
+ entry_date: string;
15761
+ id: string;
15762
+ km: number;
15763
+ meal_allowance: number;
15764
+ notes: string | null;
15765
+ standby_evening: number;
15766
+ standby_weekend: number;
15767
+ tvt_change: number;
15768
+ updated_at: string;
15769
+ };
15770
+ Insert: {
15771
+ created_at?: string;
15772
+ employee_id: string;
15773
+ entry_date: string;
15774
+ id?: string;
15775
+ km?: number;
15776
+ meal_allowance?: number;
15777
+ notes?: string | null;
15778
+ standby_evening?: number;
15779
+ standby_weekend?: number;
15780
+ tvt_change?: number;
15781
+ updated_at?: string;
15782
+ };
15783
+ Update: {
15784
+ created_at?: string;
15785
+ employee_id?: string;
15786
+ entry_date?: string;
15787
+ id?: string;
15788
+ km?: number;
15789
+ meal_allowance?: number;
15790
+ notes?: string | null;
15791
+ standby_evening?: number;
15792
+ standby_weekend?: number;
15793
+ tvt_change?: number;
15794
+ updated_at?: string;
15795
+ };
15796
+ Relationships: [{
15797
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
15798
+ columns: ["employee_id"];
15799
+ isOneToOne: false;
15800
+ referencedRelation: "profiles";
15801
+ referencedColumns: ["id"];
15802
+ }];
15803
+ };
14997
15804
  time_entries: {
14998
15805
  Row: {
14999
15806
  created_at: string;
@@ -15028,65 +15835,170 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15028
15835
  undertime?: number;
15029
15836
  updated_at?: string;
15030
15837
  };
15838
+ Relationships: [];
15839
+ };
15840
+ time_log_week_approvals: {
15841
+ Row: {
15842
+ approved_at: string | null;
15843
+ approved_by: string | null;
15844
+ created_at: string;
15845
+ employee_id: string;
15846
+ id: string;
15847
+ locked: boolean;
15848
+ notes: string | null;
15849
+ status: string;
15850
+ submitted_at: string | null;
15851
+ updated_at: string;
15852
+ week_start: string;
15853
+ };
15854
+ Insert: {
15855
+ approved_at?: string | null;
15856
+ approved_by?: string | null;
15857
+ created_at?: string;
15858
+ employee_id: string;
15859
+ id?: string;
15860
+ locked?: boolean;
15861
+ notes?: string | null;
15862
+ status?: string;
15863
+ submitted_at?: string | null;
15864
+ updated_at?: string;
15865
+ week_start: string;
15866
+ };
15867
+ Update: {
15868
+ approved_at?: string | null;
15869
+ approved_by?: string | null;
15870
+ created_at?: string;
15871
+ employee_id?: string;
15872
+ id?: string;
15873
+ locked?: boolean;
15874
+ notes?: string | null;
15875
+ status?: string;
15876
+ submitted_at?: string | null;
15877
+ updated_at?: string;
15878
+ week_start?: string;
15879
+ };
15031
15880
  Relationships: [{
15032
- foreignKeyName: "time_entries_employee_id_fkey";
15881
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
15033
15882
  columns: ["employee_id"];
15034
15883
  isOneToOne: false;
15035
- referencedRelation: "monteurs";
15884
+ referencedRelation: "profiles";
15036
15885
  referencedColumns: ["id"];
15037
15886
  }];
15038
15887
  };
15039
15888
  time_logs: {
15040
15889
  Row: {
15890
+ auto_stop_reason: string | null;
15891
+ auto_stopped: boolean;
15041
15892
  created_at: string;
15893
+ current_latitude: number | null;
15894
+ current_longitude: number | null;
15895
+ current_position_updated_at: string | null;
15042
15896
  employee_id: string;
15897
+ end_latitude: number | null;
15898
+ end_longitude: number | null;
15043
15899
  end_time: string | null;
15900
+ eta_distance_km: number | null;
15901
+ eta_minutes: number | null;
15902
+ eta_updated_at: string | null;
15903
+ hour_category: string | null;
15044
15904
  id: string;
15905
+ last_reminder_at: string | null;
15045
15906
  notes: string | null;
15046
15907
  overtime_hours: number;
15047
15908
  overtime_type: string | null;
15048
15909
  regular_hours: number;
15910
+ reminder_count: number;
15911
+ requires_review: boolean;
15912
+ start_latitude: number | null;
15913
+ start_longitude: number | null;
15049
15914
  start_time: string;
15050
15915
  travel_cost: number | null;
15051
15916
  travel_distance_km: number | null;
15917
+ travel_duration_min: number | null;
15918
+ travel_time_minutes: number | null;
15052
15919
  type: string;
15053
15920
  updated_at: string;
15921
+ work_order_id: string | null;
15054
15922
  };
15055
15923
  Insert: {
15924
+ auto_stop_reason?: string | null;
15925
+ auto_stopped?: boolean;
15056
15926
  created_at?: string;
15927
+ current_latitude?: number | null;
15928
+ current_longitude?: number | null;
15929
+ current_position_updated_at?: string | null;
15057
15930
  employee_id: string;
15931
+ end_latitude?: number | null;
15932
+ end_longitude?: number | null;
15058
15933
  end_time?: string | null;
15934
+ eta_distance_km?: number | null;
15935
+ eta_minutes?: number | null;
15936
+ eta_updated_at?: string | null;
15937
+ hour_category?: string | null;
15059
15938
  id?: string;
15939
+ last_reminder_at?: string | null;
15060
15940
  notes?: string | null;
15061
15941
  overtime_hours?: number;
15062
15942
  overtime_type?: string | null;
15063
15943
  regular_hours?: number;
15944
+ reminder_count?: number;
15945
+ requires_review?: boolean;
15946
+ start_latitude?: number | null;
15947
+ start_longitude?: number | null;
15064
15948
  start_time?: string;
15065
15949
  travel_cost?: number | null;
15066
15950
  travel_distance_km?: number | null;
15951
+ travel_duration_min?: number | null;
15952
+ travel_time_minutes?: number | null;
15067
15953
  type: string;
15068
15954
  updated_at?: string;
15955
+ work_order_id?: string | null;
15069
15956
  };
15070
15957
  Update: {
15958
+ auto_stop_reason?: string | null;
15959
+ auto_stopped?: boolean;
15071
15960
  created_at?: string;
15961
+ current_latitude?: number | null;
15962
+ current_longitude?: number | null;
15963
+ current_position_updated_at?: string | null;
15072
15964
  employee_id?: string;
15965
+ end_latitude?: number | null;
15966
+ end_longitude?: number | null;
15073
15967
  end_time?: string | null;
15968
+ eta_distance_km?: number | null;
15969
+ eta_minutes?: number | null;
15970
+ eta_updated_at?: string | null;
15971
+ hour_category?: string | null;
15074
15972
  id?: string;
15973
+ last_reminder_at?: string | null;
15075
15974
  notes?: string | null;
15076
15975
  overtime_hours?: number;
15077
15976
  overtime_type?: string | null;
15078
15977
  regular_hours?: number;
15978
+ reminder_count?: number;
15979
+ requires_review?: boolean;
15980
+ start_latitude?: number | null;
15981
+ start_longitude?: number | null;
15079
15982
  start_time?: string;
15080
15983
  travel_cost?: number | null;
15081
15984
  travel_distance_km?: number | null;
15985
+ travel_duration_min?: number | null;
15986
+ travel_time_minutes?: number | null;
15082
15987
  type?: string;
15083
15988
  updated_at?: string;
15989
+ work_order_id?: string | null;
15084
15990
  };
15085
15991
  Relationships: [{
15086
15992
  foreignKeyName: "time_logs_employee_id_fkey";
15087
15993
  columns: ["employee_id"];
15088
15994
  isOneToOne: false;
15089
- referencedRelation: "monteurs";
15995
+ referencedRelation: "profiles";
15996
+ referencedColumns: ["id"];
15997
+ }, {
15998
+ foreignKeyName: "time_logs_work_order_id_fkey";
15999
+ columns: ["work_order_id"];
16000
+ isOneToOne: false;
16001
+ referencedRelation: "work_orders";
15090
16002
  referencedColumns: ["id"];
15091
16003
  }];
15092
16004
  };
@@ -15125,7 +16037,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15125
16037
  foreignKeyName: "time_off_entries_employee_id_fkey";
15126
16038
  columns: ["employee_id"];
15127
16039
  isOneToOne: false;
15128
- referencedRelation: "monteurs";
16040
+ referencedRelation: "profiles";
15129
16041
  referencedColumns: ["id"];
15130
16042
  }];
15131
16043
  };
@@ -15374,12 +16286,16 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15374
16286
  company_name: string | null;
15375
16287
  connected_at: string | null;
15376
16288
  created_at: string;
16289
+ disconnected_at: string | null;
15377
16290
  environment: string;
15378
16291
  id: string;
16292
+ initial_sync_completed_at: string | null;
16293
+ initial_sync_started_at: string | null;
15379
16294
  is_active: boolean;
15380
16295
  label: string | null;
15381
16296
  office_code: string | null;
15382
16297
  redirect_uri: string | null;
16298
+ superseded_at: string | null;
15383
16299
  updated_at: string;
15384
16300
  user_id: string;
15385
16301
  };
@@ -15390,12 +16306,16 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15390
16306
  company_name?: string | null;
15391
16307
  connected_at?: string | null;
15392
16308
  created_at?: string;
16309
+ disconnected_at?: string | null;
15393
16310
  environment: string;
15394
16311
  id?: string;
16312
+ initial_sync_completed_at?: string | null;
16313
+ initial_sync_started_at?: string | null;
15395
16314
  is_active?: boolean;
15396
16315
  label?: string | null;
15397
16316
  office_code?: string | null;
15398
16317
  redirect_uri?: string | null;
16318
+ superseded_at?: string | null;
15399
16319
  updated_at?: string;
15400
16320
  user_id: string;
15401
16321
  };
@@ -15406,12 +16326,16 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15406
16326
  company_name?: string | null;
15407
16327
  connected_at?: string | null;
15408
16328
  created_at?: string;
16329
+ disconnected_at?: string | null;
15409
16330
  environment?: string;
15410
16331
  id?: string;
16332
+ initial_sync_completed_at?: string | null;
16333
+ initial_sync_started_at?: string | null;
15411
16334
  is_active?: boolean;
15412
16335
  label?: string | null;
15413
16336
  office_code?: string | null;
15414
16337
  redirect_uri?: string | null;
16338
+ superseded_at?: string | null;
15415
16339
  updated_at?: string;
15416
16340
  user_id?: string;
15417
16341
  };
@@ -15430,14 +16354,48 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15430
16354
  };
15431
16355
  Update: {
15432
16356
  created_at?: string;
15433
- id?: number;
15434
- secret?: string;
16357
+ id?: number;
16358
+ secret?: string;
16359
+ };
16360
+ Relationships: [];
16361
+ };
16362
+ twinfield_cron_locks: {
16363
+ Row: {
16364
+ created_at: string;
16365
+ heartbeat_at: string;
16366
+ job_name: string;
16367
+ last_error: string | null;
16368
+ last_finished_at: string | null;
16369
+ locked_at: string;
16370
+ run_id: string;
16371
+ updated_at: string;
16372
+ };
16373
+ Insert: {
16374
+ created_at?: string;
16375
+ heartbeat_at?: string;
16376
+ job_name: string;
16377
+ last_error?: string | null;
16378
+ last_finished_at?: string | null;
16379
+ locked_at?: string;
16380
+ run_id?: string;
16381
+ updated_at?: string;
16382
+ };
16383
+ Update: {
16384
+ created_at?: string;
16385
+ heartbeat_at?: string;
16386
+ job_name?: string;
16387
+ last_error?: string | null;
16388
+ last_finished_at?: string | null;
16389
+ locked_at?: string;
16390
+ run_id?: string;
16391
+ updated_at?: string;
15435
16392
  };
15436
16393
  Relationships: [];
15437
16394
  };
15438
16395
  twinfield_customers: {
15439
16396
  Row: {
15440
16397
  address: string | null;
16398
+ administration_code: string;
15441
16399
  city: string | null;
15442
16400
  country: string | null;
15443
16401
  created_at: string;
@@ -15457,6 +16415,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15457
16415
  };
15458
16416
  Insert: {
15459
16417
  address?: string | null;
16418
+ administration_code?: string;
15460
16419
  city?: string | null;
15461
16420
  country?: string | null;
15462
16421
  created_at?: string;
@@ -15476,6 +16435,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15476
16435
  };
15477
16436
  Update: {
15478
16437
  address?: string | null;
16438
+ administration_code?: string;
15479
16439
  city?: string | null;
15480
16440
  country?: string | null;
15481
16441
  created_at?: string;
@@ -15689,7 +16649,9 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15689
16649
  };
15690
16650
  twinfield_invoice_settings: {
15691
16651
  Row: {
16652
+ administration_code: string | null;
15692
16653
  auto_invoice_enabled: boolean;
16654
+ auto_invoice_start_date: string | null;
15693
16655
  auto_invoice_trigger_statuses: string[];
15694
16656
  created_at: string;
15695
16657
  debtor_gl_account: string;
@@ -15703,15 +16665,19 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15703
16665
  invoice_enabled_fo: boolean;
15704
16666
  invoice_enabled_ho: boolean;
15705
16667
  invoice_enabled_mo: boolean;
16668
+ needs_review: boolean;
15706
16669
  payment_gl_account: string;
15707
16670
  payment_journal_code: string;
16671
+ settings_confirmed_at: string | null;
15708
16672
  updated_at: string;
15709
16673
  user_id: string;
15710
16674
  vat_code_eu_reverse: string | null;
15711
16675
  vat_code_export: string | null;
15712
16676
  };
15713
16677
  Insert: {
16678
+ administration_code?: string | null;
15714
16679
  auto_invoice_enabled?: boolean;
16680
+ auto_invoice_start_date?: string | null;
15715
16681
  auto_invoice_trigger_statuses?: string[];
15716
16682
  created_at?: string;
15717
16683
  debtor_gl_account?: string;
@@ -15725,15 +16691,19 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15725
16691
  invoice_enabled_fo?: boolean;
15726
16692
  invoice_enabled_ho?: boolean;
15727
16693
  invoice_enabled_mo?: boolean;
16694
+ needs_review?: boolean;
15728
16695
  payment_gl_account?: string;
15729
16696
  payment_journal_code?: string;
16697
+ settings_confirmed_at?: string | null;
15730
16698
  updated_at?: string;
15731
16699
  user_id: string;
15732
16700
  vat_code_eu_reverse?: string | null;
15733
16701
  vat_code_export?: string | null;
15734
16702
  };
15735
16703
  Update: {
16704
+ administration_code?: string | null;
15736
16705
  auto_invoice_enabled?: boolean;
16706
+ auto_invoice_start_date?: string | null;
15737
16707
  auto_invoice_trigger_statuses?: string[];
15738
16708
  created_at?: string;
15739
16709
  debtor_gl_account?: string;
@@ -15747,8 +16717,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15747
16717
  invoice_enabled_fo?: boolean;
15748
16718
  invoice_enabled_ho?: boolean;
15749
16719
  invoice_enabled_mo?: boolean;
16720
+ needs_review?: boolean;
15750
16721
  payment_gl_account?: string;
15751
16722
  payment_journal_code?: string;
16723
+ settings_confirmed_at?: string | null;
15752
16724
  updated_at?: string;
15753
16725
  user_id?: string;
15754
16726
  vat_code_eu_reverse?: string | null;
@@ -16035,6 +17007,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
16035
17007
  twinfield_push_queue: {
16036
17008
  Row: {
16037
17009
  action: string;
17010
+ attempt_started_at: string | null;
16038
17011
  attempts: number;
16039
17012
  connection_id: string | null;
16040
17013
  created_at: string;
@@ -16051,6 +17024,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
16051
17024
  };
16052
17025
  Insert: {
16053
17026
  action?: string;
17027
+ attempt_started_at?: string | null;
16054
17028
  attempts?: number;
16055
17029
  connection_id?: string | null;
16056
17030
  created_at?: string;
@@ -16067,6 +17041,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
16067
17041
  };
16068
17042
  Update: {
16069
17043
  action?: string;
17044
+ attempt_started_at?: string | null;
16070
17045
  attempts?: number;
16071
17046
  connection_id?: string | null;
16072
17047
  created_at?: string;
@@ -16264,13 +17239,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
16264
17239
  workday_end?: string | null;
16265
17240
  workday_start?: string | null;
16266
17241
  };
16267
- Relationships: [{
16268
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
16269
- columns: ["monteur_id"];
16270
- isOneToOne: true;
16271
- referencedRelation: "monteurs";
16272
- referencedColumns: ["id"];
16273
- }];
17242
+ Relationships: [];
16274
17243
  };
16275
17244
  uren_entries: {
16276
17245
  Row: {
@@ -16316,12 +17285,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
16316
17285
  werkbon_id?: string | null;
16317
17286
  };
16318
17287
  Relationships: [{
16319
- foreignKeyName: "uren_entries_monteur_id_fkey";
16320
- columns: ["monteur_id"];
16321
- isOneToOne: false;
16322
- referencedRelation: "monteurs";
16323
- referencedColumns: ["id"];
16324
- }, {
16325
17288
  foreignKeyName: "uren_entries_werkbon_id_fkey";
16326
17289
  columns: ["werkbon_id"];
16327
17290
  isOneToOne: false;
@@ -16362,114 +17325,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
16362
17325
  };
16363
17326
  Relationships: [];
16364
17327
  };
16365
- uren_facturen: {
16366
- Row: {
16367
- created_at: string;
16368
- created_by: string | null;
16369
- customer_id: string | null;
16370
- customer_name: string | null;
16371
- id: string;
16372
- invoice_number: string | null;
16373
- note: string | null;
16374
- status: string;
16375
- total_excl_cents: number;
16376
- total_incl_cents: number;
16377
- updated_at: string;
16378
- vat_cents: number;
16379
- vat_percentage: number;
16380
- werkbon_id: string | null;
16381
- };
16382
- Insert: {
16383
- created_at?: string;
16384
- created_by?: string | null;
16385
- customer_id?: string | null;
16386
- customer_name?: string | null;
16387
- id?: string;
16388
- invoice_number?: string | null;
16389
- note?: string | null;
16390
- status?: string;
16391
- total_excl_cents?: number;
16392
- total_incl_cents?: number;
16393
- updated_at?: string;
16394
- vat_cents?: number;
16395
- vat_percentage?: number;
16396
- werkbon_id?: string | null;
16397
- };
16398
- Update: {
16399
- created_at?: string;
16400
- created_by?: string | null;
16401
- customer_id?: string | null;
16402
- customer_name?: string | null;
16403
- id?: string;
16404
- invoice_number?: string | null;
16405
- note?: string | null;
16406
- status?: string;
16407
- total_excl_cents?: number;
16408
- total_incl_cents?: number;
16409
- updated_at?: string;
16410
- vat_cents?: number;
16411
- vat_percentage?: number;
16412
- werkbon_id?: string | null;
16413
- };
16414
- Relationships: [{
16415
- foreignKeyName: "uren_facturen_customer_id_fkey";
16416
- columns: ["customer_id"];
16417
- isOneToOne: false;
16418
- referencedRelation: "itk_customers";
16419
- referencedColumns: ["id"];
16420
- }, {
16421
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
16422
- columns: ["werkbon_id"];
16423
- isOneToOne: true;
16424
- referencedRelation: "werkbonnen";
16425
- referencedColumns: ["id"];
16426
- }];
16427
- };
16428
- uren_factuur_regels: {
16429
- Row: {
16430
- created_at: string;
16431
- description: string;
16432
- factuur_id: string;
16433
- id: string;
16434
- kind: string | null;
16435
- quantity: number;
16436
- sort_order: number;
16437
- total_cents: number;
16438
- unit: string;
16439
- unit_price_cents: number;
16440
- };
16441
- Insert: {
16442
- created_at?: string;
16443
- description: string;
16444
- factuur_id: string;
16445
- id?: string;
16446
- kind?: string | null;
16447
- quantity?: number;
16448
- sort_order?: number;
16449
- total_cents?: number;
16450
- unit?: string;
16451
- unit_price_cents?: number;
16452
- };
16453
- Update: {
16454
- created_at?: string;
16455
- description?: string;
16456
- factuur_id?: string;
16457
- id?: string;
16458
- kind?: string | null;
16459
- quantity?: number;
16460
- sort_order?: number;
16461
- total_cents?: number;
16462
- unit?: string;
16463
- unit_price_cents?: number;
16464
- };
16465
- Relationships: [{
16466
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
16467
- columns: ["factuur_id"];
16468
- isOneToOne: false;
16469
- referencedRelation: "uren_facturen";
16470
- referencedColumns: ["id"];
16471
- }];
16472
- };
16473
17328
  uren_offerte_regels: {
16474
17329
  Row: {
16475
17330
  created_at: string;
@@ -16789,13 +17644,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
16789
17644
  submitted_at?: string | null;
16790
17645
  updated_at?: string;
16791
17646
  };
16792
- Relationships: [{
16793
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16794
- columns: ["monteur_id"];
16795
- isOneToOne: false;
16796
- referencedRelation: "monteurs";
16797
- referencedColumns: ["id"];
16798
- }];
17647
+ Relationships: [];
16799
17648
  };
16800
17649
  user_module_permissions: {
16801
17650
  Row: {
@@ -16854,6 +17703,51 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
16854
17703
  referencedColumns: ["id"];
16855
17704
  }];
16856
17705
  };
17706
+ van_inventories: {
17707
+ Row: {
17708
+ barcode: string | null;
17709
+ created_at: string;
17710
+ id: string;
17711
+ monteur_id: string | null;
17712
+ price_per_unit: number;
17713
+ product_name: string;
17714
+ quantity_current: number;
17715
+ quantity_min: number;
17716
+ unit: string;
17717
+ updated_at: string;
17718
+ };
17719
+ Insert: {
17720
+ barcode?: string | null;
17721
+ created_at?: string;
17722
+ id?: string;
17723
+ monteur_id?: string | null;
17724
+ price_per_unit?: number;
17725
+ product_name: string;
17726
+ quantity_current?: number;
17727
+ quantity_min?: number;
17728
+ unit?: string;
17729
+ updated_at?: string;
17730
+ };
17731
+ Update: {
17732
+ barcode?: string | null;
17733
+ created_at?: string;
17734
+ id?: string;
17735
+ monteur_id?: string | null;
17736
+ price_per_unit?: number;
17737
+ product_name?: string;
17738
+ quantity_current?: number;
17739
+ quantity_min?: number;
17740
+ unit?: string;
17741
+ updated_at?: string;
17742
+ };
17743
+ Relationships: [{
17744
+ foreignKeyName: "van_inventories_monteur_id_fkey";
17745
+ columns: ["monteur_id"];
17746
+ isOneToOne: false;
17747
+ referencedRelation: "profiles";
17748
+ referencedColumns: ["id"];
17749
+ }];
17750
+ };
16857
17751
  voorraad_custom_fields: {
16858
17752
  Row: {
16859
17753
  created_at: string;
@@ -17804,7 +18698,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
17804
18698
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17805
18699
  columns: ["monteur_id"];
17806
18700
  isOneToOne: false;
17807
- referencedRelation: "monteurs";
18701
+ referencedRelation: "profiles";
17808
18702
  referencedColumns: ["id"];
17809
18703
  }, {
17810
18704
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17814,6 +18708,60 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
17814
18708
  referencedColumns: ["id"];
17815
18709
  }];
17816
18710
  };
18711
+ work_order_photos: {
18712
+ Row: {
18713
+ ai_caption: string | null;
18714
+ ai_categorized_at: string | null;
18715
+ ai_labels: import("../integrations/supabase/types.js").Json | null;
18716
+ caption: string | null;
18717
+ created_at: string;
18718
+ id: string;
18719
+ monteur_id: string | null;
18720
+ photo_type: string;
18721
+ storage_path: string;
18722
+ updated_at: string;
18723
+ work_order_id: string;
18724
+ };
18725
+ Insert: {
18726
+ ai_caption?: string | null;
18727
+ ai_categorized_at?: string | null;
18728
+ ai_labels?: import("../integrations/supabase/types.js").Json | null;
18729
+ caption?: string | null;
18730
+ created_at?: string;
18731
+ id?: string;
18732
+ monteur_id?: string | null;
18733
+ photo_type?: string;
18734
+ storage_path: string;
18735
+ updated_at?: string;
18736
+ work_order_id: string;
18737
+ };
18738
+ Update: {
18739
+ ai_caption?: string | null;
18740
+ ai_categorized_at?: string | null;
18741
+ ai_labels?: import("../integrations/supabase/types.js").Json | null;
18742
+ caption?: string | null;
18743
+ created_at?: string;
18744
+ id?: string;
18745
+ monteur_id?: string | null;
18746
+ photo_type?: string;
18747
+ storage_path?: string;
18748
+ updated_at?: string;
18749
+ work_order_id?: string;
18750
+ };
18751
+ Relationships: [{
18752
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
18753
+ columns: ["monteur_id"];
18754
+ isOneToOne: false;
18755
+ referencedRelation: "profiles";
18756
+ referencedColumns: ["id"];
18757
+ }, {
18758
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
18759
+ columns: ["work_order_id"];
18760
+ isOneToOne: false;
18761
+ referencedRelation: "work_orders";
18762
+ referencedColumns: ["id"];
18763
+ }];
18764
+ };
17817
18765
  work_orders: {
17818
18766
  Row: {
17819
18767
  assigned_to: string | null;
@@ -17845,7 +18793,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
17845
18793
  scheduled_end_time: string | null;
17846
18794
  scheduled_start_time: string | null;
17847
18795
  status: string;
17848
- tenant_id: string;
17849
18796
  total_hours_worked: number | null;
17850
18797
  total_price: number | null;
17851
18798
  travel_time_minutes: number | null;
@@ -17883,7 +18830,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
17883
18830
  scheduled_end_time?: string | null;
17884
18831
  scheduled_start_time?: string | null;
17885
18832
  status?: string;
17886
- tenant_id: string;
17887
18833
  total_hours_worked?: number | null;
17888
18834
  total_price?: number | null;
17889
18835
  travel_time_minutes?: number | null;
@@ -17921,7 +18867,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
17921
18867
  scheduled_end_time?: string | null;
17922
18868
  scheduled_start_time?: string | null;
17923
18869
  status?: string;
17924
- tenant_id?: string;
17925
18870
  total_hours_worked?: number | null;
17926
18871
  total_price?: number | null;
17927
18872
  travel_time_minutes?: number | null;
@@ -17935,12 +18880,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
17935
18880
  isOneToOne: false;
17936
18881
  referencedRelation: "work_orders";
17937
18882
  referencedColumns: ["id"];
17938
- }, {
17939
- foreignKeyName: "work_orders_tenant_id_fkey";
17940
- columns: ["tenant_id"];
17941
- isOneToOne: false;
17942
- referencedRelation: "tenants";
17943
- referencedColumns: ["id"];
17944
18883
  }];
17945
18884
  };
17946
18885
  };
@@ -18194,36 +19133,144 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
18194
19133
  valid_from: string | null;
18195
19134
  valid_until: string | null;
18196
19135
  };
18197
- Relationships: [];
18198
- };
18199
- manufacture_product_possible_stock_view: {
18200
- Row: {
18201
- component_count: number | null;
18202
- manufacture_product_id: string | null;
18203
- possible_stock: number | null;
19136
+ Relationships: [];
19137
+ };
19138
+ manufacture_product_possible_stock_view: {
19139
+ Row: {
19140
+ component_count: number | null;
19141
+ manufacture_product_id: string | null;
19142
+ possible_stock: number | null;
19143
+ };
19144
+ Relationships: [];
19145
+ };
19146
+ product_group_stock_view: {
19147
+ Row: {
19148
+ item_count: number | null;
19149
+ product_group_id: string | null;
19150
+ total_stock: number | null;
19151
+ };
19152
+ Relationships: [{
19153
+ foreignKeyName: "product_group_items_product_group_id_fkey";
19154
+ columns: ["product_group_id"];
19155
+ isOneToOne: false;
19156
+ referencedRelation: "product_groups";
19157
+ referencedColumns: ["id"];
19158
+ }];
19159
+ };
19160
+ trade_item_stock_view: {
19161
+ Row: {
19162
+ stock: number | null;
19163
+ trade_item_id: string | null;
19164
+ };
19165
+ Relationships: [];
19166
+ };
19167
+ uren_facturen: {
19168
+ Row: {
19169
+ created_at: string | null;
19170
+ created_by: string | null;
19171
+ customer_id: string | null;
19172
+ customer_name: string | null;
19173
+ id: string | null;
19174
+ invoice_number: string | null;
19175
+ note: string | null;
19176
+ status: string | null;
19177
+ total_excl_cents: number | null;
19178
+ total_incl_cents: number | null;
19179
+ updated_at: string | null;
19180
+ vat_cents: number | null;
19181
+ vat_percentage: number | null;
19182
+ werkbon_id: string | null;
19183
+ };
19184
+ Insert: {
19185
+ created_at?: string | null;
19186
+ created_by?: string | null;
19187
+ customer_id?: string | null;
19188
+ customer_name?: string | null;
19189
+ id?: string | null;
19190
+ invoice_number?: string | null;
19191
+ note?: string | null;
19192
+ status?: string | null;
19193
+ total_excl_cents?: number | null;
19194
+ total_incl_cents?: number | null;
19195
+ updated_at?: string | null;
19196
+ vat_cents?: number | null;
19197
+ vat_percentage?: number | null;
19198
+ werkbon_id?: never;
18204
19199
  };
18205
- Relationships: [];
18206
- };
18207
- product_group_stock_view: {
18208
- Row: {
18209
- item_count: number | null;
18210
- product_group_id: string | null;
18211
- total_stock: number | null;
19200
+ Update: {
19201
+ created_at?: string | null;
19202
+ created_by?: string | null;
19203
+ customer_id?: string | null;
19204
+ customer_name?: string | null;
19205
+ id?: string | null;
19206
+ invoice_number?: string | null;
19207
+ note?: string | null;
19208
+ status?: string | null;
19209
+ total_excl_cents?: number | null;
19210
+ total_incl_cents?: number | null;
19211
+ updated_at?: string | null;
19212
+ vat_cents?: number | null;
19213
+ vat_percentage?: number | null;
19214
+ werkbon_id?: never;
18212
19215
  };
18213
19216
  Relationships: [{
18214
- foreignKeyName: "product_group_items_product_group_id_fkey";
18215
- columns: ["product_group_id"];
19217
+ foreignKeyName: "invoices_customer_id_fkey";
19218
+ columns: ["customer_id"];
18216
19219
  isOneToOne: false;
18217
- referencedRelation: "product_groups";
19220
+ referencedRelation: "itk_customers";
18218
19221
  referencedColumns: ["id"];
18219
19222
  }];
18220
19223
  };
18221
- trade_item_stock_view: {
19224
+ uren_factuur_regels: {
18222
19225
  Row: {
18223
- stock: number | null;
18224
- trade_item_id: string | null;
19226
+ created_at: string | null;
19227
+ description: string | null;
19228
+ factuur_id: string | null;
19229
+ id: string | null;
19230
+ kind: string | null;
19231
+ quantity: number | null;
19232
+ sort_order: number | null;
19233
+ total_cents: number | null;
19234
+ unit: string | null;
19235
+ unit_price_cents: number | null;
18225
19236
  };
18226
- Relationships: [];
19237
+ Insert: {
19238
+ created_at?: string | null;
19239
+ description?: string | null;
19240
+ factuur_id?: string | null;
19241
+ id?: string | null;
19242
+ kind?: string | null;
19243
+ quantity?: number | null;
19244
+ sort_order?: number | null;
19245
+ total_cents?: number | null;
19246
+ unit?: string | null;
19247
+ unit_price_cents?: number | null;
19248
+ };
19249
+ Update: {
19250
+ created_at?: string | null;
19251
+ description?: string | null;
19252
+ factuur_id?: string | null;
19253
+ id?: string | null;
19254
+ kind?: string | null;
19255
+ quantity?: number | null;
19256
+ sort_order?: number | null;
19257
+ total_cents?: number | null;
19258
+ unit?: string | null;
19259
+ unit_price_cents?: number | null;
19260
+ };
19261
+ Relationships: [{
19262
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19263
+ columns: ["factuur_id"];
19264
+ isOneToOne: false;
19265
+ referencedRelation: "invoices";
19266
+ referencedColumns: ["id"];
19267
+ }, {
19268
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19269
+ columns: ["factuur_id"];
19270
+ isOneToOne: false;
19271
+ referencedRelation: "uren_facturen";
19272
+ referencedColumns: ["id"];
19273
+ }];
18227
19274
  };
18228
19275
  v_external_customers_exact: {
18229
19276
  Row: {
@@ -18625,6 +19672,19 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
18625
19672
  };
18626
19673
  Returns: undefined;
18627
19674
  };
19675
+ approve_mailbox_order_proposal: {
19676
+ Args: {
19677
+ p_custom_fields: import("../integrations/supabase/types.js").Json;
19678
+ p_customer_id: string;
19679
+ p_delivery_date: string;
19680
+ p_field_values?: import("../integrations/supabase/types.js").Json;
19681
+ p_lines: import("../integrations/supabase/types.js").Json;
19682
+ p_notes: string;
19683
+ p_proposal_id: string;
19684
+ p_reviewed_by: string;
19685
+ };
19686
+ Returns: import("../integrations/supabase/types.js").Json;
19687
+ };
18628
19688
  assign_cart_numbers: {
18629
19689
  Args: {
18630
19690
  p_carts: import("../integrations/supabase/types.js").Json;
@@ -18676,6 +19736,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
18676
19736
  };
18677
19737
  Returns: number;
18678
19738
  };
19739
+ can_manage_hours: {
19740
+ Args: never;
19741
+ Returns: boolean;
19742
+ };
18679
19743
  check_offer_product_available_stock: {
18680
19744
  Args: {
18681
19745
  p_campaign_product_id: string;
@@ -18713,6 +19777,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
18713
19777
  gebruiker_id: string | null;
18714
19778
  gebruiker_naam: string;
18715
19779
  gestart_op: string | null;
19780
+ herkomst: string | null;
18716
19781
  id: string;
18717
19782
  idempotentie_sleutel: string | null;
18718
19783
  is_herprint: boolean;
@@ -18833,6 +19898,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
18833
19898
  gebruiker_id: string | null;
18834
19899
  gebruiker_naam: string;
18835
19900
  gestart_op: string | null;
19901
+ herkomst: string | null;
18836
19902
  id: string;
18837
19903
  idempotentie_sleutel: string | null;
18838
19904
  is_herprint: boolean;
@@ -18865,6 +19931,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
18865
19931
  };
18866
19932
  Returns: {
18867
19933
  action: string;
19934
+ attempt_started_at: string | null;
18868
19935
  attempts: number;
18869
19936
  connection_id: string | null;
18870
19937
  created_at: string;
@@ -18952,6 +20019,30 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
18952
20019
  agent_naam: string;
18953
20020
  }[];
18954
20021
  };
20022
+ consume_van_inventory: {
20023
+ Args: {
20024
+ p_inventory_id: string;
20025
+ p_quantity: number;
20026
+ };
20027
+ Returns: {
20028
+ barcode: string | null;
20029
+ created_at: string;
20030
+ id: string;
20031
+ monteur_id: string | null;
20032
+ price_per_unit: number;
20033
+ product_name: string;
20034
+ quantity_current: number;
20035
+ quantity_min: number;
20036
+ unit: string;
20037
+ updated_at: string;
20038
+ };
20039
+ SetofOptions: {
20040
+ from: "*";
20041
+ to: "van_inventories";
20042
+ isOneToOne: true;
20043
+ isSetofReturn: false;
20044
+ };
20045
+ };
18955
20046
  control_get_todays_carts: {
18956
20047
  Args: never;
18957
20048
  Returns: {
@@ -19027,7 +20118,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
19027
20118
  Returns: string;
19028
20119
  } | {
19029
20120
  Args: {
19030
- _feature_id?: string;
20121
+ _feature_id: string;
19031
20122
  _module_id: string;
19032
20123
  _user_id: string;
19033
20124
  };
@@ -19078,6 +20169,13 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
19078
20169
  };
19079
20170
  Returns: string;
19080
20171
  };
20172
+ employee_day_hours: {
20173
+ Args: {
20174
+ _day: string;
20175
+ _employee_id: string;
20176
+ };
20177
+ Returns: number;
20178
+ };
19081
20179
  enqueue_cart_replan_if_unlocked: {
19082
20180
  Args: {
19083
20181
  p_order_id: string;
@@ -19383,12 +20481,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
19383
20481
  Args: never;
19384
20482
  Returns: string;
19385
20483
  };
19386
- get_work_order_tenant_id: {
19387
- Args: {
19388
- wo_id: string;
19389
- };
19390
- Returns: string;
19391
- };
19392
20484
  has_module_permission: {
19393
20485
  Args: {
19394
20486
  _min: string;
@@ -19408,6 +20500,46 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
19408
20500
  Args: never;
19409
20501
  Returns: boolean;
19410
20502
  };
20503
+ invoice_create_from_source: {
20504
+ Args: {
20505
+ _payload?: import("../integrations/supabase/types.js").Json;
20506
+ _source_id: string;
20507
+ _source_type: string;
20508
+ };
20509
+ Returns: import("../integrations/supabase/types.js").Json;
20510
+ };
20511
+ invoice_get_billable_lines: {
20512
+ Args: {
20513
+ _invoice_id: string;
20514
+ };
20515
+ Returns: import("../integrations/supabase/types.js").Json;
20516
+ };
20517
+ invoice_get_for_source: {
20518
+ Args: {
20519
+ _source_id: string;
20520
+ _source_type: string;
20521
+ };
20522
+ Returns: import("../integrations/supabase/types.js").Json;
20523
+ };
20524
+ invoice_get_summary: {
20525
+ Args: {
20526
+ _invoice_id: string;
20527
+ };
20528
+ Returns: import("../integrations/supabase/types.js").Json;
20529
+ };
20530
+ invoice_list_sources: {
20531
+ Args: {
20532
+ _limit?: number;
20533
+ _source_type?: string;
20534
+ };
20535
+ Returns: import("../integrations/supabase/types.js").Json;
20536
+ };
20537
+ invoice_recalc_totals: {
20538
+ Args: {
20539
+ _invoice_id: string;
20540
+ };
20541
+ Returns: import("../integrations/supabase/types.js").Json;
20542
+ };
19411
20543
  is_authenticated: {
19412
20544
  Args: never;
19413
20545
  Returns: boolean;
@@ -19422,6 +20554,13 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
19422
20554
  };
19423
20555
  Returns: boolean;
19424
20556
  };
20557
+ is_time_log_week_locked: {
20558
+ Args: {
20559
+ p_employee_id: string;
20560
+ p_start_time: string;
20561
+ };
20562
+ Returns: boolean;
20563
+ };
19425
20564
  is_user_admin: {
19426
20565
  Args: never;
19427
20566
  Returns: boolean;
@@ -19430,12 +20569,59 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
19430
20569
  Args: never;
19431
20570
  Returns: boolean;
19432
20571
  };
20572
+ itk_offerte_naar_werkbon: {
20573
+ Args: {
20574
+ _offerte_id: string;
20575
+ };
20576
+ Returns: string;
20577
+ };
20578
+ itk_offerte_restant_mandaat: {
20579
+ Args: {
20580
+ _exclude_offerte_id?: string;
20581
+ _werkbon_id: string;
20582
+ };
20583
+ Returns: number;
20584
+ };
19433
20585
  jwt_has_role: {
19434
20586
  Args: {
19435
20587
  _role: import("../integrations/supabase/types.js").Database["public"]["Enums"]["app_role"];
19436
20588
  };
19437
20589
  Returns: boolean;
19438
20590
  };
20591
+ list_medewerkers: {
20592
+ Args: never;
20593
+ Returns: {
20594
+ avatar_url: string;
20595
+ color: string;
20596
+ display_name: string;
20597
+ email: string;
20598
+ hours_fri: number;
20599
+ hours_mon: number;
20600
+ hours_thu: number;
20601
+ hours_tue: number;
20602
+ hours_wed: number;
20603
+ id: string;
20604
+ is_active: boolean;
20605
+ leave_balance_hours: number;
20606
+ persnr: string;
20607
+ phone: string;
20608
+ roles: string[];
20609
+ }[];
20610
+ };
20611
+ list_monteur_absences: {
20612
+ Args: {
20613
+ _from: string;
20614
+ _to: string;
20615
+ };
20616
+ Returns: {
20617
+ absence_date: string;
20618
+ end_time: string;
20619
+ full_day: boolean;
20620
+ kind: string;
20621
+ monteur_id: string;
20622
+ start_time: string;
20623
+ }[];
20624
+ };
19439
20625
  list_monteurs: {
19440
20626
  Args: never;
19441
20627
  Returns: {
@@ -19768,17 +20954,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
19768
20954
  Returns: string;
19769
20955
  };
19770
20956
  logistics_emit_event: {
19771
- Args: {
19772
- p_event_type: string;
19773
- p_idempotency_key?: string;
19774
- p_order_ref: string;
19775
- p_payload?: import("../integrations/supabase/types.js").Json;
19776
- p_shadow?: boolean;
19777
- p_source_module: string;
19778
- p_strategy_id?: string;
19779
- };
19780
- Returns: import("../integrations/supabase/types.js").Json;
19781
- } | {
19782
20957
  Args: {
19783
20958
  p_event_type: string;
19784
20959
  p_idempotency_key?: string;
@@ -20623,6 +21798,37 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
20623
21798
  };
20624
21799
  Returns: undefined;
20625
21800
  };
21801
+ quote_create_from_source: {
21802
+ Args: {
21803
+ _payload?: import("../integrations/supabase/types.js").Json;
21804
+ _source_id: string;
21805
+ _source_type: string;
21806
+ };
21807
+ Returns: string;
21808
+ };
21809
+ quote_get_billable_lines: {
21810
+ Args: {
21811
+ _quotation_id: string;
21812
+ };
21813
+ Returns: import("../integrations/supabase/types.js").Json;
21814
+ };
21815
+ quote_get_summary: {
21816
+ Args: {
21817
+ _quotation_id: string;
21818
+ };
21819
+ Returns: import("../integrations/supabase/types.js").Json;
21820
+ };
21821
+ quote_list_packages: {
21822
+ Args: never;
21823
+ Returns: import("../integrations/supabase/types.js").Json;
21824
+ };
21825
+ quote_list_sources: {
21826
+ Args: {
21827
+ _limit?: number;
21828
+ _source_type?: string;
21829
+ };
21830
+ Returns: import("../integrations/supabase/types.js").Json;
21831
+ };
20626
21832
  recompute_all_reserved_stock: {
20627
21833
  Args: never;
20628
21834
  Returns: undefined;
@@ -20676,6 +21882,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
20676
21882
  };
20677
21883
  Returns: boolean;
20678
21884
  };
21885
+ release_stale_order_invoice_links: {
21886
+ Args: {
21887
+ _minutes?: number;
21888
+ };
21889
+ Returns: number;
21890
+ };
20679
21891
  reorder_customer_price_groups: {
20680
21892
  Args: {
20681
21893
  _ids: string[];
@@ -21114,6 +22326,16 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
21114
22326
  };
21115
22327
  Returns: string[];
21116
22328
  };
22329
+ switch_time_log: {
22330
+ Args: {
22331
+ p_employee_id: string;
22332
+ p_start_lat?: number;
22333
+ p_start_lng?: number;
22334
+ p_type: string;
22335
+ p_work_order_id?: string;
22336
+ };
22337
+ Returns: import("../integrations/supabase/types.js").Json;
22338
+ };
21117
22339
  sync_all_layer_stocks: {
21118
22340
  Args: never;
21119
22341
  Returns: undefined;
@@ -21148,6 +22370,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
21148
22370
  };
21149
22371
  Returns: undefined;
21150
22372
  };
22373
+ sync_sick_time_off: {
22374
+ Args: {
22375
+ _period_id: string;
22376
+ };
22377
+ Returns: number;
22378
+ };
21151
22379
  trade_item_stock_duplicates: {
21152
22380
  Args: never;
21153
22381
  Returns: {
@@ -21164,6 +22392,38 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
21164
22392
  };
21165
22393
  Returns: boolean;
21166
22394
  };
22395
+ twinfield_cron_lock_acquire: {
22396
+ Args: {
22397
+ _job_name: string;
22398
+ _stale_seconds?: number;
22399
+ };
22400
+ Returns: boolean;
22401
+ };
22402
+ twinfield_cron_lock_release: {
22403
+ Args: {
22404
+ _error?: string;
22405
+ _job_name: string;
22406
+ };
22407
+ Returns: undefined;
22408
+ };
22409
+ twinfield_deactivate_connection: {
22410
+ Args: {
22411
+ p_connection_id: string;
22412
+ p_user_id: string;
22413
+ };
22414
+ Returns: import("../integrations/supabase/types.js").Json;
22415
+ };
22416
+ twinfield_handle_administration_change: {
22417
+ Args: {
22418
+ _administration_code: string;
22419
+ _user_id: string;
22420
+ };
22421
+ Returns: undefined;
22422
+ };
22423
+ twinfield_prune_push_queue: {
22424
+ Args: never;
22425
+ Returns: number;
22426
+ };
21167
22427
  twinfield_register_cron: {
21168
22428
  Args: {
21169
22429
  apikey?: string;
@@ -21179,10 +22439,11 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
21179
22439
  p_company_name?: string;
21180
22440
  p_environment: string;
21181
22441
  p_office_code?: string;
22442
+ p_reset_sync?: boolean;
21182
22443
  p_status?: string;
21183
22444
  p_user_id: string;
21184
22445
  };
21185
- Returns: string;
22446
+ Returns: import("../integrations/supabase/types.js").Json;
21186
22447
  };
21187
22448
  upsert_auto_fulfillment_log: {
21188
22449
  Args: {
@@ -21203,11 +22464,31 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
21203
22464
  Args: never;
21204
22465
  Returns: string;
21205
22466
  };
22467
+ wo_create_from_source: {
22468
+ Args: {
22469
+ _payload?: import("../integrations/supabase/types.js").Json;
22470
+ _source_id: string;
22471
+ _source_type: string;
22472
+ };
22473
+ Returns: string;
22474
+ };
22475
+ wo_get_billable_lines: {
22476
+ Args: {
22477
+ _work_order_id: string;
22478
+ };
22479
+ Returns: import("../integrations/supabase/types.js").Json;
22480
+ };
22481
+ wo_get_summary: {
22482
+ Args: {
22483
+ _work_order_id: string;
22484
+ };
22485
+ Returns: import("../integrations/supabase/types.js").Json;
22486
+ };
21206
22487
  };
21207
22488
  Enums: {
21208
22489
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
21209
22490
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
21210
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
22491
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
21211
22492
  doc_orientation: "portrait" | "landscape";
21212
22493
  exact_env: "staging" | "live";
21213
22494
  exact_push_status: "pending" | "sent" | "error";