@flowselections/floriday-authenticatie-module 1.0.38 → 1.0.40

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 (37) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1672 -300
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.d.ts +1672 -300
  4. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.server.d.ts +1672 -300
  6. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/types.d.ts +1752 -348
  8. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/types.js +3 -0
  10. package/dist-lib/lib/cron/process-stock-queue.js +2 -2
  11. package/dist-lib/lib/floricode.functions.d.ts +11263 -1659
  12. package/dist-lib/lib/floricode.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/floriday-auction-letters.functions.d.ts +1672 -300
  14. package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/floriday-labels.functions.d.ts +1672 -300
  16. package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/floriday-public.functions.d.ts +9654 -1422
  18. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/floriday-stickers.functions.d.ts +1672 -300
  20. package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/floriday-sync.functions.d.ts +49879 -7347
  22. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floriday-writes.functions.d.ts +9654 -1422
  24. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday.functions.d.ts +30574 -4503
  26. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday.functions.js +46 -3
  28. package/dist-lib/lib/print/floriday-print.d.ts +36 -0
  29. package/dist-lib/lib/print/floriday-print.d.ts.map +1 -0
  30. package/dist-lib/lib/print/floriday-print.js +204 -0
  31. package/dist-lib/lib/print/index.d.ts +3 -0
  32. package/dist-lib/lib/print/index.d.ts.map +1 -0
  33. package/dist-lib/lib/print/index.js +2 -0
  34. package/dist-lib/lib/print/pdf-to-base64.d.ts +5 -0
  35. package/dist-lib/lib/print/pdf-to-base64.d.ts.map +1 -0
  36. package/dist-lib/lib/print/pdf-to-base64.js +27 -0
  37. package/package.json +12 -2
@@ -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;
@@ -2929,6 +3085,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
2929
3085
  Row: {
2930
3086
  actief: boolean;
2931
3087
  breedte_mm: number;
3088
+ bron: string;
2932
3089
  config: import("../integrations/supabase/types.js").Json;
2933
3090
  created_at: string;
2934
3091
  created_by: string | null;
@@ -2946,12 +3103,14 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
2946
3103
  orientatie: import("../integrations/supabase/types.js").Database["public"]["Enums"]["doc_orientation"];
2947
3104
  page_settings: import("../integrations/supabase/types.js").Json;
2948
3105
  papierformaat: string;
3106
+ systeem: boolean;
2949
3107
  thumbnail_url: string | null;
2950
3108
  updated_at: string;
2951
3109
  };
2952
3110
  Insert: {
2953
3111
  actief?: boolean;
2954
3112
  breedte_mm?: number;
3113
+ bron?: string;
2955
3114
  config?: import("../integrations/supabase/types.js").Json;
2956
3115
  created_at?: string;
2957
3116
  created_by?: string | null;
@@ -2969,12 +3128,14 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
2969
3128
  orientatie?: import("../integrations/supabase/types.js").Database["public"]["Enums"]["doc_orientation"];
2970
3129
  page_settings?: import("../integrations/supabase/types.js").Json;
2971
3130
  papierformaat?: string;
3131
+ systeem?: boolean;
2972
3132
  thumbnail_url?: string | null;
2973
3133
  updated_at?: string;
2974
3134
  };
2975
3135
  Update: {
2976
3136
  actief?: boolean;
2977
3137
  breedte_mm?: number;
3138
+ bron?: string;
2978
3139
  config?: import("../integrations/supabase/types.js").Json;
2979
3140
  created_at?: string;
2980
3141
  created_by?: string | null;
@@ -2992,11 +3153,48 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
2992
3153
  orientatie?: import("../integrations/supabase/types.js").Database["public"]["Enums"]["doc_orientation"];
2993
3154
  page_settings?: import("../integrations/supabase/types.js").Json;
2994
3155
  papierformaat?: string;
3156
+ systeem?: boolean;
2995
3157
  thumbnail_url?: string | null;
2996
3158
  updated_at?: string;
2997
3159
  };
2998
3160
  Relationships: [];
2999
3161
  };
3162
+ document_werkplek_printers: {
3163
+ Row: {
3164
+ created_at: string;
3165
+ documenttype: string;
3166
+ id: string;
3167
+ papierformaat: string | null;
3168
+ printer_id: string | null;
3169
+ updated_at: string;
3170
+ werkplek: string;
3171
+ };
3172
+ Insert: {
3173
+ created_at?: string;
3174
+ documenttype: string;
3175
+ id?: string;
3176
+ papierformaat?: string | null;
3177
+ printer_id?: string | null;
3178
+ updated_at?: string;
3179
+ werkplek: string;
3180
+ };
3181
+ Update: {
3182
+ created_at?: string;
3183
+ documenttype?: string;
3184
+ id?: string;
3185
+ papierformaat?: string | null;
3186
+ printer_id?: string | null;
3187
+ updated_at?: string;
3188
+ werkplek?: string;
3189
+ };
3190
+ Relationships: [{
3191
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3192
+ columns: ["printer_id"];
3193
+ isOneToOne: false;
3194
+ referencedRelation: "printers";
3195
+ referencedColumns: ["id"];
3196
+ }];
3197
+ };
3000
3198
  email_auth_connections: {
3001
3199
  Row: {
3002
3200
  access_token_encrypted: string | null;
@@ -7242,8 +7440,63 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7242
7440
  };
7243
7441
  Relationships: [];
7244
7442
  };
7443
+ invoice_items: {
7444
+ Row: {
7445
+ created_at: string;
7446
+ description: string;
7447
+ id: string;
7448
+ invoice_id: string;
7449
+ kind: string;
7450
+ quantity: number;
7451
+ sort_order: number;
7452
+ source_line_ref: string | null;
7453
+ total_cents: number;
7454
+ unit: string;
7455
+ unit_price_cents: number;
7456
+ };
7457
+ Insert: {
7458
+ created_at?: string;
7459
+ description?: string;
7460
+ id?: string;
7461
+ invoice_id: string;
7462
+ kind?: string;
7463
+ quantity?: number;
7464
+ sort_order?: number;
7465
+ source_line_ref?: string | null;
7466
+ total_cents?: number;
7467
+ unit?: string;
7468
+ unit_price_cents?: number;
7469
+ };
7470
+ Update: {
7471
+ created_at?: string;
7472
+ description?: string;
7473
+ id?: string;
7474
+ invoice_id?: string;
7475
+ kind?: string;
7476
+ quantity?: number;
7477
+ sort_order?: number;
7478
+ source_line_ref?: string | null;
7479
+ total_cents?: number;
7480
+ unit?: string;
7481
+ unit_price_cents?: number;
7482
+ };
7483
+ Relationships: [{
7484
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7485
+ columns: ["invoice_id"];
7486
+ isOneToOne: false;
7487
+ referencedRelation: "invoices";
7488
+ referencedColumns: ["id"];
7489
+ }, {
7490
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7491
+ columns: ["invoice_id"];
7492
+ isOneToOne: false;
7493
+ referencedRelation: "uren_facturen";
7494
+ referencedColumns: ["id"];
7495
+ }];
7496
+ };
7245
7497
  invoice_post_idempotency: {
7246
7498
  Row: {
7499
+ administration_code: string;
7247
7500
  client_request_id: string;
7248
7501
  completed_at: string | null;
7249
7502
  created_at: string;
@@ -7253,6 +7506,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7253
7506
  user_id: string;
7254
7507
  };
7255
7508
  Insert: {
7509
+ administration_code?: string;
7256
7510
  client_request_id: string;
7257
7511
  completed_at?: string | null;
7258
7512
  created_at?: string;
@@ -7262,6 +7516,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7262
7516
  user_id: string;
7263
7517
  };
7264
7518
  Update: {
7519
+ administration_code?: string;
7265
7520
  client_request_id?: string;
7266
7521
  completed_at?: string | null;
7267
7522
  created_at?: string;
@@ -7467,6 +7722,75 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7467
7722
  };
7468
7723
  Relationships: [];
7469
7724
  };
7725
+ invoices: {
7726
+ Row: {
7727
+ created_at: string;
7728
+ created_by: string | null;
7729
+ customer_id: string | null;
7730
+ customer_name: string | null;
7731
+ due_date: string | null;
7732
+ id: string;
7733
+ invoice_date: string;
7734
+ invoice_number: string | null;
7735
+ note: string | null;
7736
+ source_number: string | null;
7737
+ source_ref: string | null;
7738
+ source_type: string;
7739
+ status: string;
7740
+ subtotal_cents: number;
7741
+ total_cents: number;
7742
+ updated_at: string;
7743
+ vat_cents: number;
7744
+ vat_rate: number;
7745
+ };
7746
+ Insert: {
7747
+ created_at?: string;
7748
+ created_by?: string | null;
7749
+ customer_id?: string | null;
7750
+ customer_name?: string | null;
7751
+ due_date?: string | null;
7752
+ id?: string;
7753
+ invoice_date?: string;
7754
+ invoice_number?: string | null;
7755
+ note?: string | null;
7756
+ source_number?: string | null;
7757
+ source_ref?: string | null;
7758
+ source_type?: string;
7759
+ status?: string;
7760
+ subtotal_cents?: number;
7761
+ total_cents?: number;
7762
+ updated_at?: string;
7763
+ vat_cents?: number;
7764
+ vat_rate?: number;
7765
+ };
7766
+ Update: {
7767
+ created_at?: string;
7768
+ created_by?: string | null;
7769
+ customer_id?: string | null;
7770
+ customer_name?: string | null;
7771
+ due_date?: string | null;
7772
+ id?: string;
7773
+ invoice_date?: string;
7774
+ invoice_number?: string | null;
7775
+ note?: string | null;
7776
+ source_number?: string | null;
7777
+ source_ref?: string | null;
7778
+ source_type?: string;
7779
+ status?: string;
7780
+ subtotal_cents?: number;
7781
+ total_cents?: number;
7782
+ updated_at?: string;
7783
+ vat_cents?: number;
7784
+ vat_rate?: number;
7785
+ };
7786
+ Relationships: [{
7787
+ foreignKeyName: "invoices_customer_id_fkey";
7788
+ columns: ["customer_id"];
7789
+ isOneToOne: false;
7790
+ referencedRelation: "itk_customers";
7791
+ referencedColumns: ["id"];
7792
+ }];
7793
+ };
7470
7794
  itk_contact_persons: {
7471
7795
  Row: {
7472
7796
  created_at: string;
@@ -7662,77 +7986,329 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7662
7986
  };
7663
7987
  Relationships: [];
7664
7988
  };
7665
- itk_work_locations: {
7989
+ itk_offerte_events: {
7666
7990
  Row: {
7667
- city: string | null;
7668
7991
  created_at: string;
7669
- customer_id: string;
7992
+ event_type: string;
7670
7993
  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;
7994
+ metadata: import("../integrations/supabase/types.js").Json;
7995
+ offerte_id: string;
7996
+ omschrijving: string | null;
7997
+ user_id: string | null;
7678
7998
  };
7679
7999
  Insert: {
7680
- city?: string | null;
7681
8000
  created_at?: string;
7682
- customer_id: string;
8001
+ event_type: string;
7683
8002
  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;
8003
+ metadata?: import("../integrations/supabase/types.js").Json;
8004
+ offerte_id: string;
8005
+ omschrijving?: string | null;
8006
+ user_id?: string | null;
7691
8007
  };
7692
8008
  Update: {
7693
- city?: string | null;
7694
8009
  created_at?: string;
7695
- customer_id?: string;
8010
+ event_type?: string;
7696
8011
  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;
8012
+ metadata?: import("../integrations/supabase/types.js").Json;
8013
+ offerte_id?: string;
8014
+ omschrijving?: string | null;
8015
+ user_id?: string | null;
7704
8016
  };
7705
8017
  Relationships: [{
7706
- foreignKeyName: "itk_work_locations_customer_id_fkey";
7707
- columns: ["customer_id"];
8018
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8019
+ columns: ["offerte_id"];
7708
8020
  isOneToOne: false;
7709
- referencedRelation: "itk_customers";
8021
+ referencedRelation: "itk_offertes";
7710
8022
  referencedColumns: ["id"];
7711
8023
  }];
7712
8024
  };
7713
- layout_logos: {
8025
+ itk_offerte_regels: {
7714
8026
  Row: {
7715
- bestand_url: string;
7716
- bestandsgrootte: number;
7717
- bestandspad: string | null;
7718
- bestandstype: string;
7719
- breedte: number;
7720
- categorie: string;
7721
8027
  created_at: string;
7722
- hash: string | null;
7723
- hoogte: number;
7724
8028
  id: string;
7725
- is_standaard: boolean;
7726
- naam: string;
8029
+ line_total_cents: number;
8030
+ offerte_id: string;
7727
8031
  omschrijving: string;
7728
- transparant: boolean;
8032
+ package_id: string | null;
8033
+ quantity: number;
8034
+ sort_order: number;
8035
+ source: string;
8036
+ unit_price_cents: number;
7729
8037
  updated_at: string;
7730
8038
  };
7731
8039
  Insert: {
7732
- bestand_url: string;
7733
- bestandsgrootte?: number;
7734
- bestandspad?: string | null;
7735
- bestandstype?: string;
8040
+ created_at?: string;
8041
+ id?: string;
8042
+ line_total_cents?: number;
8043
+ offerte_id: string;
8044
+ omschrijving?: string;
8045
+ package_id?: string | null;
8046
+ quantity?: number;
8047
+ sort_order?: number;
8048
+ source?: string;
8049
+ unit_price_cents?: number;
8050
+ updated_at?: string;
8051
+ };
8052
+ Update: {
8053
+ created_at?: string;
8054
+ id?: string;
8055
+ line_total_cents?: number;
8056
+ offerte_id?: string;
8057
+ omschrijving?: string;
8058
+ package_id?: string | null;
8059
+ quantity?: number;
8060
+ sort_order?: number;
8061
+ source?: string;
8062
+ unit_price_cents?: number;
8063
+ updated_at?: string;
8064
+ };
8065
+ Relationships: [{
8066
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8067
+ columns: ["offerte_id"];
8068
+ isOneToOne: false;
8069
+ referencedRelation: "itk_offertes";
8070
+ referencedColumns: ["id"];
8071
+ }, {
8072
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
8073
+ columns: ["package_id"];
8074
+ isOneToOne: false;
8075
+ referencedRelation: "werkbon_packages";
8076
+ referencedColumns: ["id"];
8077
+ }];
8078
+ };
8079
+ itk_offerte_settings: {
8080
+ Row: {
8081
+ auto_convert_binnen_mandaat: boolean;
8082
+ created_at: string;
8083
+ default_geldigheid_dagen: number;
8084
+ default_vat_rate: number;
8085
+ id: string;
8086
+ singleton: boolean;
8087
+ updated_at: string;
8088
+ };
8089
+ Insert: {
8090
+ auto_convert_binnen_mandaat?: boolean;
8091
+ created_at?: string;
8092
+ default_geldigheid_dagen?: number;
8093
+ default_vat_rate?: number;
8094
+ id?: string;
8095
+ singleton?: boolean;
8096
+ updated_at?: string;
8097
+ };
8098
+ Update: {
8099
+ auto_convert_binnen_mandaat?: boolean;
8100
+ created_at?: string;
8101
+ default_geldigheid_dagen?: number;
8102
+ default_vat_rate?: number;
8103
+ id?: string;
8104
+ singleton?: boolean;
8105
+ updated_at?: string;
8106
+ };
8107
+ Relationships: [];
8108
+ };
8109
+ itk_offertes: {
8110
+ Row: {
8111
+ ai_generated: boolean;
8112
+ approved_at: string | null;
8113
+ binnen_mandaat: boolean;
8114
+ contact_id: string | null;
8115
+ converted_at: string | null;
8116
+ created_at: string;
8117
+ created_by: string | null;
8118
+ customer_id: string | null;
8119
+ follow_up_werkbon_id: string | null;
8120
+ id: string;
8121
+ jaar: number;
8122
+ mandaat_restant_cents: number;
8123
+ notities: string | null;
8124
+ offerte_number: string | null;
8125
+ omschrijving: string;
8126
+ rejected_at: string | null;
8127
+ sent_at: string | null;
8128
+ source_number: string | null;
8129
+ source_ref: string | null;
8130
+ source_type: string;
8131
+ status: string;
8132
+ subtotal_cents: number;
8133
+ total_cents: number;
8134
+ updated_at: string;
8135
+ valid_until: string | null;
8136
+ vat_cents: number;
8137
+ vat_rate: number;
8138
+ viewed_at: string | null;
8139
+ volgnummer: number | null;
8140
+ werkbon_id: string | null;
8141
+ work_location_id: string | null;
8142
+ };
8143
+ Insert: {
8144
+ ai_generated?: boolean;
8145
+ approved_at?: string | null;
8146
+ binnen_mandaat?: boolean;
8147
+ contact_id?: string | null;
8148
+ converted_at?: string | null;
8149
+ created_at?: string;
8150
+ created_by?: string | null;
8151
+ customer_id?: string | null;
8152
+ follow_up_werkbon_id?: string | null;
8153
+ id?: string;
8154
+ jaar?: number;
8155
+ mandaat_restant_cents?: number;
8156
+ notities?: string | null;
8157
+ offerte_number?: string | null;
8158
+ omschrijving?: string;
8159
+ rejected_at?: string | null;
8160
+ sent_at?: string | null;
8161
+ source_number?: string | null;
8162
+ source_ref?: string | null;
8163
+ source_type?: string;
8164
+ status?: string;
8165
+ subtotal_cents?: number;
8166
+ total_cents?: number;
8167
+ updated_at?: string;
8168
+ valid_until?: string | null;
8169
+ vat_cents?: number;
8170
+ vat_rate?: number;
8171
+ viewed_at?: string | null;
8172
+ volgnummer?: number | null;
8173
+ werkbon_id?: string | null;
8174
+ work_location_id?: string | null;
8175
+ };
8176
+ Update: {
8177
+ ai_generated?: boolean;
8178
+ approved_at?: string | null;
8179
+ binnen_mandaat?: boolean;
8180
+ contact_id?: string | null;
8181
+ converted_at?: string | null;
8182
+ created_at?: string;
8183
+ created_by?: string | null;
8184
+ customer_id?: string | null;
8185
+ follow_up_werkbon_id?: string | null;
8186
+ id?: string;
8187
+ jaar?: number;
8188
+ mandaat_restant_cents?: number;
8189
+ notities?: string | null;
8190
+ offerte_number?: string | null;
8191
+ omschrijving?: string;
8192
+ rejected_at?: string | null;
8193
+ sent_at?: string | null;
8194
+ source_number?: string | null;
8195
+ source_ref?: string | null;
8196
+ source_type?: string;
8197
+ status?: string;
8198
+ subtotal_cents?: number;
8199
+ total_cents?: number;
8200
+ updated_at?: string;
8201
+ valid_until?: string | null;
8202
+ vat_cents?: number;
8203
+ vat_rate?: number;
8204
+ viewed_at?: string | null;
8205
+ volgnummer?: number | null;
8206
+ werkbon_id?: string | null;
8207
+ work_location_id?: string | null;
8208
+ };
8209
+ Relationships: [{
8210
+ foreignKeyName: "itk_offertes_contact_id_fkey";
8211
+ columns: ["contact_id"];
8212
+ isOneToOne: false;
8213
+ referencedRelation: "itk_contact_persons";
8214
+ referencedColumns: ["id"];
8215
+ }, {
8216
+ foreignKeyName: "itk_offertes_customer_id_fkey";
8217
+ columns: ["customer_id"];
8218
+ isOneToOne: false;
8219
+ referencedRelation: "itk_customers";
8220
+ referencedColumns: ["id"];
8221
+ }, {
8222
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
8223
+ columns: ["follow_up_werkbon_id"];
8224
+ isOneToOne: false;
8225
+ referencedRelation: "werkbonnen";
8226
+ referencedColumns: ["id"];
8227
+ }, {
8228
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8229
+ columns: ["werkbon_id"];
8230
+ isOneToOne: false;
8231
+ referencedRelation: "werkbonnen";
8232
+ referencedColumns: ["id"];
8233
+ }, {
8234
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8235
+ columns: ["work_location_id"];
8236
+ isOneToOne: false;
8237
+ referencedRelation: "itk_work_locations";
8238
+ referencedColumns: ["id"];
8239
+ }];
8240
+ };
8241
+ itk_work_locations: {
8242
+ Row: {
8243
+ city: string | null;
8244
+ created_at: string;
8245
+ customer_id: string;
8246
+ id: string;
8247
+ instructions: string | null;
8248
+ label: string;
8249
+ latitude: number | null;
8250
+ longitude: number | null;
8251
+ postcode: string | null;
8252
+ street: string | null;
8253
+ updated_at: string;
8254
+ };
8255
+ Insert: {
8256
+ city?: string | null;
8257
+ created_at?: string;
8258
+ customer_id: string;
8259
+ id?: string;
8260
+ instructions?: string | null;
8261
+ label: string;
8262
+ latitude?: number | null;
8263
+ longitude?: number | null;
8264
+ postcode?: string | null;
8265
+ street?: string | null;
8266
+ updated_at?: string;
8267
+ };
8268
+ Update: {
8269
+ city?: string | null;
8270
+ created_at?: string;
8271
+ customer_id?: string;
8272
+ id?: string;
8273
+ instructions?: string | null;
8274
+ label?: string;
8275
+ latitude?: number | null;
8276
+ longitude?: number | null;
8277
+ postcode?: string | null;
8278
+ street?: string | null;
8279
+ updated_at?: string;
8280
+ };
8281
+ Relationships: [{
8282
+ foreignKeyName: "itk_work_locations_customer_id_fkey";
8283
+ columns: ["customer_id"];
8284
+ isOneToOne: false;
8285
+ referencedRelation: "itk_customers";
8286
+ referencedColumns: ["id"];
8287
+ }];
8288
+ };
8289
+ layout_logos: {
8290
+ Row: {
8291
+ bestand_url: string;
8292
+ bestandsgrootte: number;
8293
+ bestandspad: string | null;
8294
+ bestandstype: string;
8295
+ breedte: number;
8296
+ categorie: string;
8297
+ created_at: string;
8298
+ hash: string | null;
8299
+ hoogte: number;
8300
+ id: string;
8301
+ is_standaard: boolean;
8302
+ naam: string;
8303
+ omschrijving: string;
8304
+ transparant: boolean;
8305
+ updated_at: string;
8306
+ };
8307
+ Insert: {
8308
+ bestand_url: string;
8309
+ bestandsgrootte?: number;
8310
+ bestandspad?: string | null;
8311
+ bestandstype?: string;
7736
8312
  breedte?: number;
7737
8313
  categorie?: string;
7738
8314
  created_at?: string;
@@ -7779,7 +8355,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7779
8355
  start_date: string;
7780
8356
  start_time: string | null;
7781
8357
  status: string;
7782
- tenant_id: string;
7783
8358
  updated_at: string;
7784
8359
  user_id: string;
7785
8360
  };
@@ -7797,7 +8372,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7797
8372
  start_date: string;
7798
8373
  start_time?: string | null;
7799
8374
  status?: string;
7800
- tenant_id?: string;
7801
8375
  updated_at?: string;
7802
8376
  user_id: string;
7803
8377
  };
@@ -7815,7 +8389,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7815
8389
  start_date?: string;
7816
8390
  start_time?: string | null;
7817
8391
  status?: string;
7818
- tenant_id?: string;
7819
8392
  updated_at?: string;
7820
8393
  user_id?: string;
7821
8394
  };
@@ -7823,13 +8396,13 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
7823
8396
  foreignKeyName: "leave_requests_monteur_id_fkey";
7824
8397
  columns: ["monteur_id"];
7825
8398
  isOneToOne: false;
7826
- referencedRelation: "monteurs";
8399
+ referencedRelation: "profiles";
7827
8400
  referencedColumns: ["id"];
7828
8401
  }, {
7829
8402
  foreignKeyName: "leave_requests_user_id_fkey";
7830
8403
  columns: ["user_id"];
7831
8404
  isOneToOne: false;
7832
- referencedRelation: "monteurs";
8405
+ referencedRelation: "profiles";
7833
8406
  referencedColumns: ["id"];
7834
8407
  }];
7835
8408
  };
@@ -8565,6 +9138,9 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
8565
9138
  id: string;
8566
9139
  last_error: string | null;
8567
9140
  last_error_at: string | null;
9141
+ last_error_code: string | null;
9142
+ last_gateway_status: number | null;
9143
+ last_response: import("../integrations/supabase/types.js").Json | null;
8568
9144
  last_sent_hash: string | null;
8569
9145
  locked_by: string | null;
8570
9146
  locked_until: string | null;
@@ -8585,6 +9161,9 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
8585
9161
  id?: string;
8586
9162
  last_error?: string | null;
8587
9163
  last_error_at?: string | null;
9164
+ last_error_code?: string | null;
9165
+ last_gateway_status?: number | null;
9166
+ last_response?: import("../integrations/supabase/types.js").Json | null;
8588
9167
  last_sent_hash?: string | null;
8589
9168
  locked_by?: string | null;
8590
9169
  locked_until?: string | null;
@@ -8605,6 +9184,9 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
8605
9184
  id?: string;
8606
9185
  last_error?: string | null;
8607
9186
  last_error_at?: string | null;
9187
+ last_error_code?: string | null;
9188
+ last_gateway_status?: number | null;
9189
+ last_response?: import("../integrations/supabase/types.js").Json | null;
8608
9190
  last_sent_hash?: string | null;
8609
9191
  locked_by?: string | null;
8610
9192
  locked_until?: string | null;
@@ -9984,6 +10566,117 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
9984
10566
  };
9985
10567
  Relationships: [];
9986
10568
  };
10569
+ material_usage: {
10570
+ Row: {
10571
+ created_at: string;
10572
+ id: string;
10573
+ material_name: string;
10574
+ monteur_id: string | null;
10575
+ price_at_time: number;
10576
+ quantity_used: number;
10577
+ updated_at: string;
10578
+ van_inventory_id: string | null;
10579
+ work_order_id: string;
10580
+ };
10581
+ Insert: {
10582
+ created_at?: string;
10583
+ id?: string;
10584
+ material_name: string;
10585
+ monteur_id?: string | null;
10586
+ price_at_time?: number;
10587
+ quantity_used?: number;
10588
+ updated_at?: string;
10589
+ van_inventory_id?: string | null;
10590
+ work_order_id: string;
10591
+ };
10592
+ Update: {
10593
+ created_at?: string;
10594
+ id?: string;
10595
+ material_name?: string;
10596
+ monteur_id?: string | null;
10597
+ price_at_time?: number;
10598
+ quantity_used?: number;
10599
+ updated_at?: string;
10600
+ van_inventory_id?: string | null;
10601
+ work_order_id?: string;
10602
+ };
10603
+ Relationships: [{
10604
+ foreignKeyName: "material_usage_monteur_id_fkey";
10605
+ columns: ["monteur_id"];
10606
+ isOneToOne: false;
10607
+ referencedRelation: "profiles";
10608
+ referencedColumns: ["id"];
10609
+ }, {
10610
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
10611
+ columns: ["van_inventory_id"];
10612
+ isOneToOne: false;
10613
+ referencedRelation: "van_inventories";
10614
+ referencedColumns: ["id"];
10615
+ }, {
10616
+ foreignKeyName: "material_usage_work_order_id_fkey";
10617
+ columns: ["work_order_id"];
10618
+ isOneToOne: false;
10619
+ referencedRelation: "work_orders";
10620
+ referencedColumns: ["id"];
10621
+ }];
10622
+ };
10623
+ medewerker_details: {
10624
+ Row: {
10625
+ color: string | null;
10626
+ created_at: string;
10627
+ hours_fri: number | null;
10628
+ hours_mon: number | null;
10629
+ hours_thu: number | null;
10630
+ hours_tue: number | null;
10631
+ hours_wed: number | null;
10632
+ id: string;
10633
+ is_active: boolean;
10634
+ leave_balance_hours: number;
10635
+ persnr: string | null;
10636
+ phone: string | null;
10637
+ profile_id: string;
10638
+ updated_at: string;
10639
+ };
10640
+ Insert: {
10641
+ color?: string | null;
10642
+ created_at?: string;
10643
+ hours_fri?: number | null;
10644
+ hours_mon?: number | null;
10645
+ hours_thu?: number | null;
10646
+ hours_tue?: number | null;
10647
+ hours_wed?: number | null;
10648
+ id?: string;
10649
+ is_active?: boolean;
10650
+ leave_balance_hours?: number;
10651
+ persnr?: string | null;
10652
+ phone?: string | null;
10653
+ profile_id: string;
10654
+ updated_at?: string;
10655
+ };
10656
+ Update: {
10657
+ color?: string | null;
10658
+ created_at?: string;
10659
+ hours_fri?: number | null;
10660
+ hours_mon?: number | null;
10661
+ hours_thu?: number | null;
10662
+ hours_tue?: number | null;
10663
+ hours_wed?: number | null;
10664
+ id?: string;
10665
+ is_active?: boolean;
10666
+ leave_balance_hours?: number;
10667
+ persnr?: string | null;
10668
+ phone?: string | null;
10669
+ profile_id?: string;
10670
+ updated_at?: string;
10671
+ };
10672
+ Relationships: [{
10673
+ foreignKeyName: "medewerker_details_profile_id_fkey";
10674
+ columns: ["profile_id"];
10675
+ isOneToOne: true;
10676
+ referencedRelation: "profiles";
10677
+ referencedColumns: ["id"];
10678
+ }];
10679
+ };
9987
10680
  module_features: {
9988
10681
  Row: {
9989
10682
  created_at: string;
@@ -10044,8 +10737,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10044
10737
  module_registry: {
10045
10738
  Row: {
10046
10739
  created_at: string;
10740
+ enforce: boolean;
10047
10741
  is_active: boolean;
10048
10742
  last_seen_at: string;
10743
+ missing_count: number;
10049
10744
  module_id: string;
10050
10745
  name: string;
10051
10746
  shell_id: string | null;
@@ -10053,8 +10748,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10053
10748
  };
10054
10749
  Insert: {
10055
10750
  created_at?: string;
10751
+ enforce?: boolean;
10056
10752
  is_active?: boolean;
10057
10753
  last_seen_at?: string;
10754
+ missing_count?: number;
10058
10755
  module_id: string;
10059
10756
  name: string;
10060
10757
  shell_id?: string | null;
@@ -10062,8 +10759,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10062
10759
  };
10063
10760
  Update: {
10064
10761
  created_at?: string;
10762
+ enforce?: boolean;
10065
10763
  is_active?: boolean;
10066
10764
  last_seen_at?: string;
10765
+ missing_count?: number;
10067
10766
  module_id?: string;
10068
10767
  name?: string;
10069
10768
  shell_id?: string | null;
@@ -10112,72 +10811,15 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10112
10811
  };
10113
10812
  Update: {
10114
10813
  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;
10139
- updated_at: string;
10140
- user_id: string | null;
10141
- };
10142
- Insert: {
10143
- avatar_url?: string | null;
10144
- color?: string | null;
10145
- created_at?: string;
10146
- email?: string | null;
10147
- id?: string;
10148
- 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;
10155
- updated_at?: string;
10156
- user_id?: string | null;
10157
- };
10158
- Update: {
10159
- avatar_url?: string | null;
10160
- color?: string | null;
10161
- created_at?: string;
10162
- email?: string | null;
10163
- id?: string;
10164
- 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;
10814
+ description?: string | null;
10815
+ id?: string;
10816
+ is_active?: boolean;
10817
+ last_seen_at?: string | null;
10818
+ module_key?: string;
10819
+ module_name?: string;
10171
10820
  updated_at?: string;
10172
- user_id?: string | null;
10173
10821
  };
10174
- Relationships: [{
10175
- foreignKeyName: "monteurs_tenant_id_fkey";
10176
- columns: ["tenant_id"];
10177
- isOneToOne: false;
10178
- referencedRelation: "tenants";
10179
- referencedColumns: ["id"];
10180
- }];
10822
+ Relationships: [];
10181
10823
  };
10182
10824
  nmbrs_component_mapping: {
10183
10825
  Row: {
@@ -10249,13 +10891,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10249
10891
  nmbrs_employee_number?: string;
10250
10892
  updated_at?: string;
10251
10893
  };
10252
- Relationships: [{
10253
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
10254
- columns: ["monteur_id"];
10255
- isOneToOne: true;
10256
- referencedRelation: "monteurs";
10257
- referencedColumns: ["id"];
10258
- }];
10894
+ Relationships: [];
10259
10895
  };
10260
10896
  nmbrs_export_lines: {
10261
10897
  Row: {
@@ -10304,12 +10940,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
10304
10940
  wage_code?: string;
10305
10941
  };
10306
10942
  Relationships: [{
10307
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10308
- columns: ["monteur_id"];
10309
- isOneToOne: false;
10310
- referencedRelation: "monteurs";
10311
- referencedColumns: ["id"];
10312
- }, {
10313
10943
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10314
10944
  columns: ["run_id"];
10315
10945
  isOneToOne: false;
@@ -11132,6 +11762,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
11132
11762
  };
11133
11763
  order_invoice_links: {
11134
11764
  Row: {
11765
+ administration_code: string | null;
11135
11766
  attempts: number;
11136
11767
  created_at: string;
11137
11768
  error_message: string | null;
@@ -11144,6 +11775,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
11144
11775
  updated_at: string;
11145
11776
  };
11146
11777
  Insert: {
11778
+ administration_code?: string | null;
11147
11779
  attempts?: number;
11148
11780
  created_at?: string;
11149
11781
  error_message?: string | null;
@@ -11156,6 +11788,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
11156
11788
  updated_at?: string;
11157
11789
  };
11158
11790
  Update: {
11791
+ administration_code?: string | null;
11159
11792
  attempts?: number;
11160
11793
  created_at?: string;
11161
11794
  error_message?: string | null;
@@ -11343,6 +11976,8 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
11343
11976
  orders: {
11344
11977
  Row: {
11345
11978
  buffer_id: string | null;
11979
+ cancel_reason: string | null;
11980
+ cancelled_at: string | null;
11346
11981
  created_at: string;
11347
11982
  custom_fields: import("../integrations/supabase/types.js").Json;
11348
11983
  customer_id: string | null;
@@ -11365,6 +12000,8 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
11365
12000
  };
11366
12001
  Insert: {
11367
12002
  buffer_id?: string | null;
12003
+ cancel_reason?: string | null;
12004
+ cancelled_at?: string | null;
11368
12005
  created_at?: string;
11369
12006
  custom_fields?: import("../integrations/supabase/types.js").Json;
11370
12007
  customer_id?: string | null;
@@ -11387,6 +12024,8 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
11387
12024
  };
11388
12025
  Update: {
11389
12026
  buffer_id?: string | null;
12027
+ cancel_reason?: string | null;
12028
+ cancelled_at?: string | null;
11390
12029
  created_at?: string;
11391
12030
  custom_fields?: import("../integrations/supabase/types.js").Json;
11392
12031
  customer_id?: string | null;
@@ -12315,6 +12954,27 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
12315
12954
  referencedColumns: ["id"];
12316
12955
  }];
12317
12956
  };
12957
+ pick_sync_state: {
12958
+ Row: {
12959
+ id: boolean;
12960
+ last_cleanup_at: string | null;
12961
+ last_sync_at: string | null;
12962
+ updated_at: string;
12963
+ };
12964
+ Insert: {
12965
+ id?: boolean;
12966
+ last_cleanup_at?: string | null;
12967
+ last_sync_at?: string | null;
12968
+ updated_at?: string;
12969
+ };
12970
+ Update: {
12971
+ id?: boolean;
12972
+ last_cleanup_at?: string | null;
12973
+ last_sync_at?: string | null;
12974
+ updated_at?: string;
12975
+ };
12976
+ Relationships: [];
12977
+ };
12318
12978
  pick_task_document_types: {
12319
12979
  Row: {
12320
12980
  created_at: string;
@@ -12597,6 +13257,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
12597
13257
  gebruiker_id: string | null;
12598
13258
  gebruiker_naam: string;
12599
13259
  gestart_op: string | null;
13260
+ herkomst: string | null;
12600
13261
  id: string;
12601
13262
  idempotentie_sleutel: string | null;
12602
13263
  is_herprint: boolean;
@@ -12626,6 +13287,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
12626
13287
  gebruiker_id?: string | null;
12627
13288
  gebruiker_naam?: string;
12628
13289
  gestart_op?: string | null;
13290
+ herkomst?: string | null;
12629
13291
  id?: string;
12630
13292
  idempotentie_sleutel?: string | null;
12631
13293
  is_herprint?: boolean;
@@ -12655,6 +13317,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
12655
13317
  gebruiker_id?: string | null;
12656
13318
  gebruiker_naam?: string;
12657
13319
  gestart_op?: string | null;
13320
+ herkomst?: string | null;
12658
13321
  id?: string;
12659
13322
  idempotentie_sleutel?: string | null;
12660
13323
  is_herprint?: boolean;
@@ -13449,6 +14112,66 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
13449
14112
  };
13450
14113
  Relationships: [];
13451
14114
  };
14115
+ profile_modules: {
14116
+ Row: {
14117
+ created_at: string;
14118
+ id: string;
14119
+ module_id: string;
14120
+ profile_id: string;
14121
+ };
14122
+ Insert: {
14123
+ created_at?: string;
14124
+ id?: string;
14125
+ module_id: string;
14126
+ profile_id: string;
14127
+ };
14128
+ Update: {
14129
+ created_at?: string;
14130
+ id?: string;
14131
+ module_id?: string;
14132
+ profile_id?: string;
14133
+ };
14134
+ Relationships: [{
14135
+ foreignKeyName: "profile_modules_profile_id_fkey";
14136
+ columns: ["profile_id"];
14137
+ isOneToOne: false;
14138
+ referencedRelation: "profiles_org";
14139
+ referencedColumns: ["id"];
14140
+ }];
14141
+ };
14142
+ profile_roles: {
14143
+ Row: {
14144
+ created_at: string;
14145
+ id: string;
14146
+ profile_id: string;
14147
+ role_id: string;
14148
+ };
14149
+ Insert: {
14150
+ created_at?: string;
14151
+ id?: string;
14152
+ profile_id: string;
14153
+ role_id: string;
14154
+ };
14155
+ Update: {
14156
+ created_at?: string;
14157
+ id?: string;
14158
+ profile_id?: string;
14159
+ role_id?: string;
14160
+ };
14161
+ Relationships: [{
14162
+ foreignKeyName: "profile_roles_profile_id_fkey";
14163
+ columns: ["profile_id"];
14164
+ isOneToOne: false;
14165
+ referencedRelation: "profiles_org";
14166
+ referencedColumns: ["id"];
14167
+ }, {
14168
+ foreignKeyName: "profile_roles_role_id_fkey";
14169
+ columns: ["role_id"];
14170
+ isOneToOne: false;
14171
+ referencedRelation: "roles";
14172
+ referencedColumns: ["id"];
14173
+ }];
14174
+ };
13452
14175
  profiles: {
13453
14176
  Row: {
13454
14177
  address: string | null;
@@ -13494,6 +14217,39 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
13494
14217
  referencedColumns: ["id"];
13495
14218
  }];
13496
14219
  };
14220
+ profiles_org: {
14221
+ Row: {
14222
+ created_at: string;
14223
+ id: string;
14224
+ is_default: boolean;
14225
+ name: string;
14226
+ tenant_id: string | null;
14227
+ updated_at: string;
14228
+ };
14229
+ Insert: {
14230
+ created_at?: string;
14231
+ id?: string;
14232
+ is_default?: boolean;
14233
+ name: string;
14234
+ tenant_id?: string | null;
14235
+ updated_at?: string;
14236
+ };
14237
+ Update: {
14238
+ created_at?: string;
14239
+ id?: string;
14240
+ is_default?: boolean;
14241
+ name?: string;
14242
+ tenant_id?: string | null;
14243
+ updated_at?: string;
14244
+ };
14245
+ Relationships: [{
14246
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14247
+ columns: ["tenant_id"];
14248
+ isOneToOne: false;
14249
+ referencedRelation: "tenants";
14250
+ referencedColumns: ["id"];
14251
+ }];
14252
+ };
13497
14253
  projects: {
13498
14254
  Row: {
13499
14255
  contact_name: string | null;
@@ -14668,6 +15424,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
14668
15424
  type: string;
14669
15425
  updated_at: string;
14670
15426
  vereist_medewerker: boolean;
15427
+ werkplek: string | null;
14671
15428
  };
14672
15429
  Insert: {
14673
15430
  actief?: boolean;
@@ -14681,6 +15438,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
14681
15438
  type?: string;
14682
15439
  updated_at?: string;
14683
15440
  vereist_medewerker?: boolean;
15441
+ werkplek?: string | null;
14684
15442
  };
14685
15443
  Update: {
14686
15444
  actief?: boolean;
@@ -14694,9 +15452,46 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
14694
15452
  type?: string;
14695
15453
  updated_at?: string;
14696
15454
  vereist_medewerker?: boolean;
15455
+ werkplek?: string | null;
14697
15456
  };
14698
15457
  Relationships: [];
14699
15458
  };
15459
+ sick_periods: {
15460
+ Row: {
15461
+ created_at: string;
15462
+ employee_id: string;
15463
+ end_date: string | null;
15464
+ id: string;
15465
+ notes: string | null;
15466
+ start_date: string;
15467
+ updated_at: string;
15468
+ };
15469
+ Insert: {
15470
+ created_at?: string;
15471
+ employee_id: string;
15472
+ end_date?: string | null;
15473
+ id?: string;
15474
+ notes?: string | null;
15475
+ start_date: string;
15476
+ updated_at?: string;
15477
+ };
15478
+ Update: {
15479
+ created_at?: string;
15480
+ employee_id?: string;
15481
+ end_date?: string | null;
15482
+ id?: string;
15483
+ notes?: string | null;
15484
+ start_date?: string;
15485
+ updated_at?: string;
15486
+ };
15487
+ Relationships: [{
15488
+ foreignKeyName: "sick_periods_employee_id_fkey";
15489
+ columns: ["employee_id"];
15490
+ isOneToOne: false;
15491
+ referencedRelation: "profiles";
15492
+ referencedColumns: ["id"];
15493
+ }];
15494
+ };
14700
15495
  sidebar_config: {
14701
15496
  Row: {
14702
15497
  id: string;
@@ -14994,6 +15789,54 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
14994
15789
  };
14995
15790
  Relationships: [];
14996
15791
  };
15792
+ time_compensation_entries: {
15793
+ Row: {
15794
+ created_at: string;
15795
+ employee_id: string;
15796
+ entry_date: string;
15797
+ id: string;
15798
+ km: number;
15799
+ meal_allowance: number;
15800
+ notes: string | null;
15801
+ standby_evening: number;
15802
+ standby_weekend: number;
15803
+ tvt_change: number;
15804
+ updated_at: string;
15805
+ };
15806
+ Insert: {
15807
+ created_at?: string;
15808
+ employee_id: string;
15809
+ entry_date: string;
15810
+ id?: string;
15811
+ km?: number;
15812
+ meal_allowance?: number;
15813
+ notes?: string | null;
15814
+ standby_evening?: number;
15815
+ standby_weekend?: number;
15816
+ tvt_change?: number;
15817
+ updated_at?: string;
15818
+ };
15819
+ Update: {
15820
+ created_at?: string;
15821
+ employee_id?: string;
15822
+ entry_date?: string;
15823
+ id?: string;
15824
+ km?: number;
15825
+ meal_allowance?: number;
15826
+ notes?: string | null;
15827
+ standby_evening?: number;
15828
+ standby_weekend?: number;
15829
+ tvt_change?: number;
15830
+ updated_at?: string;
15831
+ };
15832
+ Relationships: [{
15833
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
15834
+ columns: ["employee_id"];
15835
+ isOneToOne: false;
15836
+ referencedRelation: "profiles";
15837
+ referencedColumns: ["id"];
15838
+ }];
15839
+ };
14997
15840
  time_entries: {
14998
15841
  Row: {
14999
15842
  created_at: string;
@@ -15028,65 +15871,170 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15028
15871
  undertime?: number;
15029
15872
  updated_at?: string;
15030
15873
  };
15874
+ Relationships: [];
15875
+ };
15876
+ time_log_week_approvals: {
15877
+ Row: {
15878
+ approved_at: string | null;
15879
+ approved_by: string | null;
15880
+ created_at: string;
15881
+ employee_id: string;
15882
+ id: string;
15883
+ locked: boolean;
15884
+ notes: string | null;
15885
+ status: string;
15886
+ submitted_at: string | null;
15887
+ updated_at: string;
15888
+ week_start: string;
15889
+ };
15890
+ Insert: {
15891
+ approved_at?: string | null;
15892
+ approved_by?: string | null;
15893
+ created_at?: string;
15894
+ employee_id: string;
15895
+ id?: string;
15896
+ locked?: boolean;
15897
+ notes?: string | null;
15898
+ status?: string;
15899
+ submitted_at?: string | null;
15900
+ updated_at?: string;
15901
+ week_start: string;
15902
+ };
15903
+ Update: {
15904
+ approved_at?: string | null;
15905
+ approved_by?: string | null;
15906
+ created_at?: string;
15907
+ employee_id?: string;
15908
+ id?: string;
15909
+ locked?: boolean;
15910
+ notes?: string | null;
15911
+ status?: string;
15912
+ submitted_at?: string | null;
15913
+ updated_at?: string;
15914
+ week_start?: string;
15915
+ };
15031
15916
  Relationships: [{
15032
- foreignKeyName: "time_entries_employee_id_fkey";
15917
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
15033
15918
  columns: ["employee_id"];
15034
15919
  isOneToOne: false;
15035
- referencedRelation: "monteurs";
15920
+ referencedRelation: "profiles";
15036
15921
  referencedColumns: ["id"];
15037
15922
  }];
15038
15923
  };
15039
15924
  time_logs: {
15040
15925
  Row: {
15926
+ auto_stop_reason: string | null;
15927
+ auto_stopped: boolean;
15041
15928
  created_at: string;
15929
+ current_latitude: number | null;
15930
+ current_longitude: number | null;
15931
+ current_position_updated_at: string | null;
15042
15932
  employee_id: string;
15933
+ end_latitude: number | null;
15934
+ end_longitude: number | null;
15043
15935
  end_time: string | null;
15936
+ eta_distance_km: number | null;
15937
+ eta_minutes: number | null;
15938
+ eta_updated_at: string | null;
15939
+ hour_category: string | null;
15044
15940
  id: string;
15941
+ last_reminder_at: string | null;
15045
15942
  notes: string | null;
15046
15943
  overtime_hours: number;
15047
15944
  overtime_type: string | null;
15048
15945
  regular_hours: number;
15946
+ reminder_count: number;
15947
+ requires_review: boolean;
15948
+ start_latitude: number | null;
15949
+ start_longitude: number | null;
15049
15950
  start_time: string;
15050
15951
  travel_cost: number | null;
15051
15952
  travel_distance_km: number | null;
15953
+ travel_duration_min: number | null;
15954
+ travel_time_minutes: number | null;
15052
15955
  type: string;
15053
15956
  updated_at: string;
15957
+ work_order_id: string | null;
15054
15958
  };
15055
15959
  Insert: {
15960
+ auto_stop_reason?: string | null;
15961
+ auto_stopped?: boolean;
15056
15962
  created_at?: string;
15963
+ current_latitude?: number | null;
15964
+ current_longitude?: number | null;
15965
+ current_position_updated_at?: string | null;
15057
15966
  employee_id: string;
15967
+ end_latitude?: number | null;
15968
+ end_longitude?: number | null;
15058
15969
  end_time?: string | null;
15970
+ eta_distance_km?: number | null;
15971
+ eta_minutes?: number | null;
15972
+ eta_updated_at?: string | null;
15973
+ hour_category?: string | null;
15059
15974
  id?: string;
15975
+ last_reminder_at?: string | null;
15060
15976
  notes?: string | null;
15061
15977
  overtime_hours?: number;
15062
15978
  overtime_type?: string | null;
15063
15979
  regular_hours?: number;
15980
+ reminder_count?: number;
15981
+ requires_review?: boolean;
15982
+ start_latitude?: number | null;
15983
+ start_longitude?: number | null;
15064
15984
  start_time?: string;
15065
15985
  travel_cost?: number | null;
15066
15986
  travel_distance_km?: number | null;
15987
+ travel_duration_min?: number | null;
15988
+ travel_time_minutes?: number | null;
15067
15989
  type: string;
15068
15990
  updated_at?: string;
15991
+ work_order_id?: string | null;
15069
15992
  };
15070
15993
  Update: {
15994
+ auto_stop_reason?: string | null;
15995
+ auto_stopped?: boolean;
15071
15996
  created_at?: string;
15997
+ current_latitude?: number | null;
15998
+ current_longitude?: number | null;
15999
+ current_position_updated_at?: string | null;
15072
16000
  employee_id?: string;
16001
+ end_latitude?: number | null;
16002
+ end_longitude?: number | null;
15073
16003
  end_time?: string | null;
16004
+ eta_distance_km?: number | null;
16005
+ eta_minutes?: number | null;
16006
+ eta_updated_at?: string | null;
16007
+ hour_category?: string | null;
15074
16008
  id?: string;
16009
+ last_reminder_at?: string | null;
15075
16010
  notes?: string | null;
15076
16011
  overtime_hours?: number;
15077
16012
  overtime_type?: string | null;
15078
16013
  regular_hours?: number;
16014
+ reminder_count?: number;
16015
+ requires_review?: boolean;
16016
+ start_latitude?: number | null;
16017
+ start_longitude?: number | null;
15079
16018
  start_time?: string;
15080
16019
  travel_cost?: number | null;
15081
16020
  travel_distance_km?: number | null;
16021
+ travel_duration_min?: number | null;
16022
+ travel_time_minutes?: number | null;
15082
16023
  type?: string;
15083
16024
  updated_at?: string;
16025
+ work_order_id?: string | null;
15084
16026
  };
15085
16027
  Relationships: [{
15086
16028
  foreignKeyName: "time_logs_employee_id_fkey";
15087
16029
  columns: ["employee_id"];
15088
16030
  isOneToOne: false;
15089
- referencedRelation: "monteurs";
16031
+ referencedRelation: "profiles";
16032
+ referencedColumns: ["id"];
16033
+ }, {
16034
+ foreignKeyName: "time_logs_work_order_id_fkey";
16035
+ columns: ["work_order_id"];
16036
+ isOneToOne: false;
16037
+ referencedRelation: "work_orders";
15090
16038
  referencedColumns: ["id"];
15091
16039
  }];
15092
16040
  };
@@ -15125,7 +16073,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15125
16073
  foreignKeyName: "time_off_entries_employee_id_fkey";
15126
16074
  columns: ["employee_id"];
15127
16075
  isOneToOne: false;
15128
- referencedRelation: "monteurs";
16076
+ referencedRelation: "profiles";
15129
16077
  referencedColumns: ["id"];
15130
16078
  }];
15131
16079
  };
@@ -15374,12 +16322,16 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15374
16322
  company_name: string | null;
15375
16323
  connected_at: string | null;
15376
16324
  created_at: string;
16325
+ disconnected_at: string | null;
15377
16326
  environment: string;
15378
16327
  id: string;
16328
+ initial_sync_completed_at: string | null;
16329
+ initial_sync_started_at: string | null;
15379
16330
  is_active: boolean;
15380
16331
  label: string | null;
15381
16332
  office_code: string | null;
15382
16333
  redirect_uri: string | null;
16334
+ superseded_at: string | null;
15383
16335
  updated_at: string;
15384
16336
  user_id: string;
15385
16337
  };
@@ -15390,12 +16342,16 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15390
16342
  company_name?: string | null;
15391
16343
  connected_at?: string | null;
15392
16344
  created_at?: string;
16345
+ disconnected_at?: string | null;
15393
16346
  environment: string;
15394
16347
  id?: string;
16348
+ initial_sync_completed_at?: string | null;
16349
+ initial_sync_started_at?: string | null;
15395
16350
  is_active?: boolean;
15396
16351
  label?: string | null;
15397
16352
  office_code?: string | null;
15398
16353
  redirect_uri?: string | null;
16354
+ superseded_at?: string | null;
15399
16355
  updated_at?: string;
15400
16356
  user_id: string;
15401
16357
  };
@@ -15406,12 +16362,16 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15406
16362
  company_name?: string | null;
15407
16363
  connected_at?: string | null;
15408
16364
  created_at?: string;
16365
+ disconnected_at?: string | null;
15409
16366
  environment?: string;
15410
16367
  id?: string;
16368
+ initial_sync_completed_at?: string | null;
16369
+ initial_sync_started_at?: string | null;
15411
16370
  is_active?: boolean;
15412
16371
  label?: string | null;
15413
16372
  office_code?: string | null;
15414
16373
  redirect_uri?: string | null;
16374
+ superseded_at?: string | null;
15415
16375
  updated_at?: string;
15416
16376
  user_id?: string;
15417
16377
  };
@@ -15430,14 +16390,48 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15430
16390
  };
15431
16391
  Update: {
15432
16392
  created_at?: string;
15433
- id?: number;
15434
- secret?: string;
16393
+ id?: number;
16394
+ secret?: string;
16395
+ };
16396
+ Relationships: [];
16397
+ };
16398
+ twinfield_cron_locks: {
16399
+ Row: {
16400
+ created_at: string;
16401
+ heartbeat_at: string;
16402
+ job_name: string;
16403
+ last_error: string | null;
16404
+ last_finished_at: string | null;
16405
+ locked_at: string;
16406
+ run_id: string;
16407
+ updated_at: string;
16408
+ };
16409
+ Insert: {
16410
+ created_at?: string;
16411
+ heartbeat_at?: string;
16412
+ job_name: string;
16413
+ last_error?: string | null;
16414
+ last_finished_at?: string | null;
16415
+ locked_at?: string;
16416
+ run_id?: string;
16417
+ updated_at?: string;
16418
+ };
16419
+ Update: {
16420
+ created_at?: string;
16421
+ heartbeat_at?: string;
16422
+ job_name?: string;
16423
+ last_error?: string | null;
16424
+ last_finished_at?: string | null;
16425
+ locked_at?: string;
16426
+ run_id?: string;
16427
+ updated_at?: string;
15435
16428
  };
15436
16429
  Relationships: [];
15437
16430
  };
15438
16431
  twinfield_customers: {
15439
16432
  Row: {
15440
16433
  address: string | null;
16434
+ administration_code: string;
15441
16435
  city: string | null;
15442
16436
  country: string | null;
15443
16437
  created_at: string;
@@ -15457,6 +16451,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15457
16451
  };
15458
16452
  Insert: {
15459
16453
  address?: string | null;
16454
+ administration_code?: string;
15460
16455
  city?: string | null;
15461
16456
  country?: string | null;
15462
16457
  created_at?: string;
@@ -15476,6 +16471,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15476
16471
  };
15477
16472
  Update: {
15478
16473
  address?: string | null;
16474
+ administration_code?: string;
15479
16475
  city?: string | null;
15480
16476
  country?: string | null;
15481
16477
  created_at?: string;
@@ -15689,7 +16685,9 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15689
16685
  };
15690
16686
  twinfield_invoice_settings: {
15691
16687
  Row: {
16688
+ administration_code: string | null;
15692
16689
  auto_invoice_enabled: boolean;
16690
+ auto_invoice_start_date: string | null;
15693
16691
  auto_invoice_trigger_statuses: string[];
15694
16692
  created_at: string;
15695
16693
  debtor_gl_account: string;
@@ -15703,15 +16701,19 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15703
16701
  invoice_enabled_fo: boolean;
15704
16702
  invoice_enabled_ho: boolean;
15705
16703
  invoice_enabled_mo: boolean;
16704
+ needs_review: boolean;
15706
16705
  payment_gl_account: string;
15707
16706
  payment_journal_code: string;
16707
+ settings_confirmed_at: string | null;
15708
16708
  updated_at: string;
15709
16709
  user_id: string;
15710
16710
  vat_code_eu_reverse: string | null;
15711
16711
  vat_code_export: string | null;
15712
16712
  };
15713
16713
  Insert: {
16714
+ administration_code?: string | null;
15714
16715
  auto_invoice_enabled?: boolean;
16716
+ auto_invoice_start_date?: string | null;
15715
16717
  auto_invoice_trigger_statuses?: string[];
15716
16718
  created_at?: string;
15717
16719
  debtor_gl_account?: string;
@@ -15725,15 +16727,19 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15725
16727
  invoice_enabled_fo?: boolean;
15726
16728
  invoice_enabled_ho?: boolean;
15727
16729
  invoice_enabled_mo?: boolean;
16730
+ needs_review?: boolean;
15728
16731
  payment_gl_account?: string;
15729
16732
  payment_journal_code?: string;
16733
+ settings_confirmed_at?: string | null;
15730
16734
  updated_at?: string;
15731
16735
  user_id: string;
15732
16736
  vat_code_eu_reverse?: string | null;
15733
16737
  vat_code_export?: string | null;
15734
16738
  };
15735
16739
  Update: {
16740
+ administration_code?: string | null;
15736
16741
  auto_invoice_enabled?: boolean;
16742
+ auto_invoice_start_date?: string | null;
15737
16743
  auto_invoice_trigger_statuses?: string[];
15738
16744
  created_at?: string;
15739
16745
  debtor_gl_account?: string;
@@ -15747,8 +16753,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
15747
16753
  invoice_enabled_fo?: boolean;
15748
16754
  invoice_enabled_ho?: boolean;
15749
16755
  invoice_enabled_mo?: boolean;
16756
+ needs_review?: boolean;
15750
16757
  payment_gl_account?: string;
15751
16758
  payment_journal_code?: string;
16759
+ settings_confirmed_at?: string | null;
15752
16760
  updated_at?: string;
15753
16761
  user_id?: string;
15754
16762
  vat_code_eu_reverse?: string | null;
@@ -16035,6 +17043,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
16035
17043
  twinfield_push_queue: {
16036
17044
  Row: {
16037
17045
  action: string;
17046
+ attempt_started_at: string | null;
16038
17047
  attempts: number;
16039
17048
  connection_id: string | null;
16040
17049
  created_at: string;
@@ -16051,6 +17060,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
16051
17060
  };
16052
17061
  Insert: {
16053
17062
  action?: string;
17063
+ attempt_started_at?: string | null;
16054
17064
  attempts?: number;
16055
17065
  connection_id?: string | null;
16056
17066
  created_at?: string;
@@ -16067,6 +17077,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
16067
17077
  };
16068
17078
  Update: {
16069
17079
  action?: string;
17080
+ attempt_started_at?: string | null;
16070
17081
  attempts?: number;
16071
17082
  connection_id?: string | null;
16072
17083
  created_at?: string;
@@ -16264,13 +17275,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
16264
17275
  workday_end?: string | null;
16265
17276
  workday_start?: string | null;
16266
17277
  };
16267
- Relationships: [{
16268
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
16269
- columns: ["monteur_id"];
16270
- isOneToOne: true;
16271
- referencedRelation: "monteurs";
16272
- referencedColumns: ["id"];
16273
- }];
17278
+ Relationships: [];
16274
17279
  };
16275
17280
  uren_entries: {
16276
17281
  Row: {
@@ -16316,12 +17321,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
16316
17321
  werkbon_id?: string | null;
16317
17322
  };
16318
17323
  Relationships: [{
16319
- foreignKeyName: "uren_entries_monteur_id_fkey";
16320
- columns: ["monteur_id"];
16321
- isOneToOne: false;
16322
- referencedRelation: "monteurs";
16323
- referencedColumns: ["id"];
16324
- }, {
16325
17324
  foreignKeyName: "uren_entries_werkbon_id_fkey";
16326
17325
  columns: ["werkbon_id"];
16327
17326
  isOneToOne: false;
@@ -16362,114 +17361,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
16362
17361
  };
16363
17362
  Relationships: [];
16364
17363
  };
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
17364
  uren_offerte_regels: {
16474
17365
  Row: {
16475
17366
  created_at: string;
@@ -16789,13 +17680,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
16789
17680
  submitted_at?: string | null;
16790
17681
  updated_at?: string;
16791
17682
  };
16792
- Relationships: [{
16793
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16794
- columns: ["monteur_id"];
16795
- isOneToOne: false;
16796
- referencedRelation: "monteurs";
16797
- referencedColumns: ["id"];
16798
- }];
17683
+ Relationships: [];
16799
17684
  };
16800
17685
  user_module_permissions: {
16801
17686
  Row: {
@@ -16854,6 +17739,51 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
16854
17739
  referencedColumns: ["id"];
16855
17740
  }];
16856
17741
  };
17742
+ van_inventories: {
17743
+ Row: {
17744
+ barcode: string | null;
17745
+ created_at: string;
17746
+ id: string;
17747
+ monteur_id: string | null;
17748
+ price_per_unit: number;
17749
+ product_name: string;
17750
+ quantity_current: number;
17751
+ quantity_min: number;
17752
+ unit: string;
17753
+ updated_at: string;
17754
+ };
17755
+ Insert: {
17756
+ barcode?: string | null;
17757
+ created_at?: string;
17758
+ id?: string;
17759
+ monteur_id?: string | null;
17760
+ price_per_unit?: number;
17761
+ product_name: string;
17762
+ quantity_current?: number;
17763
+ quantity_min?: number;
17764
+ unit?: string;
17765
+ updated_at?: string;
17766
+ };
17767
+ Update: {
17768
+ barcode?: string | null;
17769
+ created_at?: string;
17770
+ id?: string;
17771
+ monteur_id?: string | null;
17772
+ price_per_unit?: number;
17773
+ product_name?: string;
17774
+ quantity_current?: number;
17775
+ quantity_min?: number;
17776
+ unit?: string;
17777
+ updated_at?: string;
17778
+ };
17779
+ Relationships: [{
17780
+ foreignKeyName: "van_inventories_monteur_id_fkey";
17781
+ columns: ["monteur_id"];
17782
+ isOneToOne: false;
17783
+ referencedRelation: "profiles";
17784
+ referencedColumns: ["id"];
17785
+ }];
17786
+ };
16857
17787
  voorraad_custom_fields: {
16858
17788
  Row: {
16859
17789
  created_at: string;
@@ -17684,6 +18614,9 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
17684
18614
  scheduled_end_time: string | null;
17685
18615
  scheduled_start_time: string | null;
17686
18616
  sequence_number: number;
18617
+ signature_accepted_at: string | null;
18618
+ signature_by_user_id: string | null;
18619
+ signature_name: string | null;
17687
18620
  source_email_meta: import("../integrations/supabase/types.js").Json | null;
17688
18621
  source_mailbox_message_id: string | null;
17689
18622
  source_pdf_path: string | null;
@@ -17719,6 +18652,9 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
17719
18652
  scheduled_end_time?: string | null;
17720
18653
  scheduled_start_time?: string | null;
17721
18654
  sequence_number: number;
18655
+ signature_accepted_at?: string | null;
18656
+ signature_by_user_id?: string | null;
18657
+ signature_name?: string | null;
17722
18658
  source_email_meta?: import("../integrations/supabase/types.js").Json | null;
17723
18659
  source_mailbox_message_id?: string | null;
17724
18660
  source_pdf_path?: string | null;
@@ -17754,6 +18690,9 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
17754
18690
  scheduled_end_time?: string | null;
17755
18691
  scheduled_start_time?: string | null;
17756
18692
  sequence_number?: number;
18693
+ signature_accepted_at?: string | null;
18694
+ signature_by_user_id?: string | null;
18695
+ signature_name?: string | null;
17757
18696
  source_email_meta?: import("../integrations/supabase/types.js").Json | null;
17758
18697
  source_mailbox_message_id?: string | null;
17759
18698
  source_pdf_path?: string | null;
@@ -17804,7 +18743,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
17804
18743
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17805
18744
  columns: ["monteur_id"];
17806
18745
  isOneToOne: false;
17807
- referencedRelation: "monteurs";
18746
+ referencedRelation: "profiles";
17808
18747
  referencedColumns: ["id"];
17809
18748
  }, {
17810
18749
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17814,6 +18753,60 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
17814
18753
  referencedColumns: ["id"];
17815
18754
  }];
17816
18755
  };
18756
+ work_order_photos: {
18757
+ Row: {
18758
+ ai_caption: string | null;
18759
+ ai_categorized_at: string | null;
18760
+ ai_labels: import("../integrations/supabase/types.js").Json | null;
18761
+ caption: string | null;
18762
+ created_at: string;
18763
+ id: string;
18764
+ monteur_id: string | null;
18765
+ photo_type: string;
18766
+ storage_path: string;
18767
+ updated_at: string;
18768
+ work_order_id: string;
18769
+ };
18770
+ Insert: {
18771
+ ai_caption?: string | null;
18772
+ ai_categorized_at?: string | null;
18773
+ ai_labels?: import("../integrations/supabase/types.js").Json | null;
18774
+ caption?: string | null;
18775
+ created_at?: string;
18776
+ id?: string;
18777
+ monteur_id?: string | null;
18778
+ photo_type?: string;
18779
+ storage_path: string;
18780
+ updated_at?: string;
18781
+ work_order_id: string;
18782
+ };
18783
+ Update: {
18784
+ ai_caption?: string | null;
18785
+ ai_categorized_at?: string | null;
18786
+ ai_labels?: import("../integrations/supabase/types.js").Json | null;
18787
+ caption?: string | null;
18788
+ created_at?: string;
18789
+ id?: string;
18790
+ monteur_id?: string | null;
18791
+ photo_type?: string;
18792
+ storage_path?: string;
18793
+ updated_at?: string;
18794
+ work_order_id?: string;
18795
+ };
18796
+ Relationships: [{
18797
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
18798
+ columns: ["monteur_id"];
18799
+ isOneToOne: false;
18800
+ referencedRelation: "profiles";
18801
+ referencedColumns: ["id"];
18802
+ }, {
18803
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
18804
+ columns: ["work_order_id"];
18805
+ isOneToOne: false;
18806
+ referencedRelation: "work_orders";
18807
+ referencedColumns: ["id"];
18808
+ }];
18809
+ };
17817
18810
  work_orders: {
17818
18811
  Row: {
17819
18812
  assigned_to: string | null;
@@ -17845,7 +18838,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
17845
18838
  scheduled_end_time: string | null;
17846
18839
  scheduled_start_time: string | null;
17847
18840
  status: string;
17848
- tenant_id: string;
17849
18841
  total_hours_worked: number | null;
17850
18842
  total_price: number | null;
17851
18843
  travel_time_minutes: number | null;
@@ -17883,7 +18875,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
17883
18875
  scheduled_end_time?: string | null;
17884
18876
  scheduled_start_time?: string | null;
17885
18877
  status?: string;
17886
- tenant_id: string;
17887
18878
  total_hours_worked?: number | null;
17888
18879
  total_price?: number | null;
17889
18880
  travel_time_minutes?: number | null;
@@ -17921,7 +18912,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
17921
18912
  scheduled_end_time?: string | null;
17922
18913
  scheduled_start_time?: string | null;
17923
18914
  status?: string;
17924
- tenant_id?: string;
17925
18915
  total_hours_worked?: number | null;
17926
18916
  total_price?: number | null;
17927
18917
  travel_time_minutes?: number | null;
@@ -17935,12 +18925,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
17935
18925
  isOneToOne: false;
17936
18926
  referencedRelation: "work_orders";
17937
18927
  referencedColumns: ["id"];
17938
- }, {
17939
- foreignKeyName: "work_orders_tenant_id_fkey";
17940
- columns: ["tenant_id"];
17941
- isOneToOne: false;
17942
- referencedRelation: "tenants";
17943
- referencedColumns: ["id"];
17944
18928
  }];
17945
18929
  };
17946
18930
  };
@@ -18211,19 +19195,127 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
18211
19195
  total_stock: number | null;
18212
19196
  };
18213
19197
  Relationships: [{
18214
- foreignKeyName: "product_group_items_product_group_id_fkey";
18215
- columns: ["product_group_id"];
19198
+ foreignKeyName: "product_group_items_product_group_id_fkey";
19199
+ columns: ["product_group_id"];
19200
+ isOneToOne: false;
19201
+ referencedRelation: "product_groups";
19202
+ referencedColumns: ["id"];
19203
+ }];
19204
+ };
19205
+ trade_item_stock_view: {
19206
+ Row: {
19207
+ stock: number | null;
19208
+ trade_item_id: string | null;
19209
+ };
19210
+ Relationships: [];
19211
+ };
19212
+ uren_facturen: {
19213
+ Row: {
19214
+ created_at: string | null;
19215
+ created_by: string | null;
19216
+ customer_id: string | null;
19217
+ customer_name: string | null;
19218
+ id: string | null;
19219
+ invoice_number: string | null;
19220
+ note: string | null;
19221
+ status: string | null;
19222
+ total_excl_cents: number | null;
19223
+ total_incl_cents: number | null;
19224
+ updated_at: string | null;
19225
+ vat_cents: number | null;
19226
+ vat_percentage: number | null;
19227
+ werkbon_id: string | null;
19228
+ };
19229
+ Insert: {
19230
+ created_at?: string | null;
19231
+ created_by?: string | null;
19232
+ customer_id?: string | null;
19233
+ customer_name?: string | null;
19234
+ id?: string | null;
19235
+ invoice_number?: string | null;
19236
+ note?: string | null;
19237
+ status?: string | null;
19238
+ total_excl_cents?: number | null;
19239
+ total_incl_cents?: number | null;
19240
+ updated_at?: string | null;
19241
+ vat_cents?: number | null;
19242
+ vat_percentage?: number | null;
19243
+ werkbon_id?: never;
19244
+ };
19245
+ Update: {
19246
+ created_at?: string | null;
19247
+ created_by?: string | null;
19248
+ customer_id?: string | null;
19249
+ customer_name?: string | null;
19250
+ id?: string | null;
19251
+ invoice_number?: string | null;
19252
+ note?: string | null;
19253
+ status?: string | null;
19254
+ total_excl_cents?: number | null;
19255
+ total_incl_cents?: number | null;
19256
+ updated_at?: string | null;
19257
+ vat_cents?: number | null;
19258
+ vat_percentage?: number | null;
19259
+ werkbon_id?: never;
19260
+ };
19261
+ Relationships: [{
19262
+ foreignKeyName: "invoices_customer_id_fkey";
19263
+ columns: ["customer_id"];
18216
19264
  isOneToOne: false;
18217
- referencedRelation: "product_groups";
19265
+ referencedRelation: "itk_customers";
18218
19266
  referencedColumns: ["id"];
18219
19267
  }];
18220
19268
  };
18221
- trade_item_stock_view: {
19269
+ uren_factuur_regels: {
18222
19270
  Row: {
18223
- stock: number | null;
18224
- trade_item_id: string | null;
19271
+ created_at: string | null;
19272
+ description: string | null;
19273
+ factuur_id: string | null;
19274
+ id: string | null;
19275
+ kind: string | null;
19276
+ quantity: number | null;
19277
+ sort_order: number | null;
19278
+ total_cents: number | null;
19279
+ unit: string | null;
19280
+ unit_price_cents: number | null;
18225
19281
  };
18226
- Relationships: [];
19282
+ Insert: {
19283
+ created_at?: string | null;
19284
+ description?: string | null;
19285
+ factuur_id?: string | null;
19286
+ id?: string | null;
19287
+ kind?: string | null;
19288
+ quantity?: number | null;
19289
+ sort_order?: number | null;
19290
+ total_cents?: number | null;
19291
+ unit?: string | null;
19292
+ unit_price_cents?: number | null;
19293
+ };
19294
+ Update: {
19295
+ created_at?: string | null;
19296
+ description?: string | null;
19297
+ factuur_id?: string | null;
19298
+ id?: string | null;
19299
+ kind?: string | null;
19300
+ quantity?: number | null;
19301
+ sort_order?: number | null;
19302
+ total_cents?: number | null;
19303
+ unit?: string | null;
19304
+ unit_price_cents?: number | null;
19305
+ };
19306
+ Relationships: [{
19307
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19308
+ columns: ["factuur_id"];
19309
+ isOneToOne: false;
19310
+ referencedRelation: "invoices";
19311
+ referencedColumns: ["id"];
19312
+ }, {
19313
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19314
+ columns: ["factuur_id"];
19315
+ isOneToOne: false;
19316
+ referencedRelation: "uren_facturen";
19317
+ referencedColumns: ["id"];
19318
+ }];
18227
19319
  };
18228
19320
  v_external_customers_exact: {
18229
19321
  Row: {
@@ -18625,6 +19717,19 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
18625
19717
  };
18626
19718
  Returns: undefined;
18627
19719
  };
19720
+ approve_mailbox_order_proposal: {
19721
+ Args: {
19722
+ p_custom_fields: import("../integrations/supabase/types.js").Json;
19723
+ p_customer_id: string;
19724
+ p_delivery_date: string;
19725
+ p_field_values?: import("../integrations/supabase/types.js").Json;
19726
+ p_lines: import("../integrations/supabase/types.js").Json;
19727
+ p_notes: string;
19728
+ p_proposal_id: string;
19729
+ p_reviewed_by: string;
19730
+ };
19731
+ Returns: import("../integrations/supabase/types.js").Json;
19732
+ };
18628
19733
  assign_cart_numbers: {
18629
19734
  Args: {
18630
19735
  p_carts: import("../integrations/supabase/types.js").Json;
@@ -18676,6 +19781,10 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
18676
19781
  };
18677
19782
  Returns: number;
18678
19783
  };
19784
+ can_manage_hours: {
19785
+ Args: never;
19786
+ Returns: boolean;
19787
+ };
18679
19788
  check_offer_product_available_stock: {
18680
19789
  Args: {
18681
19790
  p_campaign_product_id: string;
@@ -18713,6 +19822,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
18713
19822
  gebruiker_id: string | null;
18714
19823
  gebruiker_naam: string;
18715
19824
  gestart_op: string | null;
19825
+ herkomst: string | null;
18716
19826
  id: string;
18717
19827
  idempotentie_sleutel: string | null;
18718
19828
  is_herprint: boolean;
@@ -18833,6 +19943,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
18833
19943
  gebruiker_id: string | null;
18834
19944
  gebruiker_naam: string;
18835
19945
  gestart_op: string | null;
19946
+ herkomst: string | null;
18836
19947
  id: string;
18837
19948
  idempotentie_sleutel: string | null;
18838
19949
  is_herprint: boolean;
@@ -18865,6 +19976,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
18865
19976
  };
18866
19977
  Returns: {
18867
19978
  action: string;
19979
+ attempt_started_at: string | null;
18868
19980
  attempts: number;
18869
19981
  connection_id: string | null;
18870
19982
  created_at: string;
@@ -18952,6 +20064,30 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
18952
20064
  agent_naam: string;
18953
20065
  }[];
18954
20066
  };
20067
+ consume_van_inventory: {
20068
+ Args: {
20069
+ p_inventory_id: string;
20070
+ p_quantity: number;
20071
+ };
20072
+ Returns: {
20073
+ barcode: string | null;
20074
+ created_at: string;
20075
+ id: string;
20076
+ monteur_id: string | null;
20077
+ price_per_unit: number;
20078
+ product_name: string;
20079
+ quantity_current: number;
20080
+ quantity_min: number;
20081
+ unit: string;
20082
+ updated_at: string;
20083
+ };
20084
+ SetofOptions: {
20085
+ from: "*";
20086
+ to: "van_inventories";
20087
+ isOneToOne: true;
20088
+ isSetofReturn: false;
20089
+ };
20090
+ };
18955
20091
  control_get_todays_carts: {
18956
20092
  Args: never;
18957
20093
  Returns: {
@@ -19027,7 +20163,7 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
19027
20163
  Returns: string;
19028
20164
  } | {
19029
20165
  Args: {
19030
- _feature_id?: string;
20166
+ _feature_id: string;
19031
20167
  _module_id: string;
19032
20168
  _user_id: string;
19033
20169
  };
@@ -19078,6 +20214,13 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
19078
20214
  };
19079
20215
  Returns: string;
19080
20216
  };
20217
+ employee_day_hours: {
20218
+ Args: {
20219
+ _day: string;
20220
+ _employee_id: string;
20221
+ };
20222
+ Returns: number;
20223
+ };
19081
20224
  enqueue_cart_replan_if_unlocked: {
19082
20225
  Args: {
19083
20226
  p_order_id: string;
@@ -19383,12 +20526,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
19383
20526
  Args: never;
19384
20527
  Returns: string;
19385
20528
  };
19386
- get_work_order_tenant_id: {
19387
- Args: {
19388
- wo_id: string;
19389
- };
19390
- Returns: string;
19391
- };
19392
20529
  has_module_permission: {
19393
20530
  Args: {
19394
20531
  _min: string;
@@ -19408,6 +20545,46 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
19408
20545
  Args: never;
19409
20546
  Returns: boolean;
19410
20547
  };
20548
+ invoice_create_from_source: {
20549
+ Args: {
20550
+ _payload?: import("../integrations/supabase/types.js").Json;
20551
+ _source_id: string;
20552
+ _source_type: string;
20553
+ };
20554
+ Returns: import("../integrations/supabase/types.js").Json;
20555
+ };
20556
+ invoice_get_billable_lines: {
20557
+ Args: {
20558
+ _invoice_id: string;
20559
+ };
20560
+ Returns: import("../integrations/supabase/types.js").Json;
20561
+ };
20562
+ invoice_get_for_source: {
20563
+ Args: {
20564
+ _source_id: string;
20565
+ _source_type: string;
20566
+ };
20567
+ Returns: import("../integrations/supabase/types.js").Json;
20568
+ };
20569
+ invoice_get_summary: {
20570
+ Args: {
20571
+ _invoice_id: string;
20572
+ };
20573
+ Returns: import("../integrations/supabase/types.js").Json;
20574
+ };
20575
+ invoice_list_sources: {
20576
+ Args: {
20577
+ _limit?: number;
20578
+ _source_type?: string;
20579
+ };
20580
+ Returns: import("../integrations/supabase/types.js").Json;
20581
+ };
20582
+ invoice_recalc_totals: {
20583
+ Args: {
20584
+ _invoice_id: string;
20585
+ };
20586
+ Returns: import("../integrations/supabase/types.js").Json;
20587
+ };
19411
20588
  is_authenticated: {
19412
20589
  Args: never;
19413
20590
  Returns: boolean;
@@ -19422,6 +20599,13 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
19422
20599
  };
19423
20600
  Returns: boolean;
19424
20601
  };
20602
+ is_time_log_week_locked: {
20603
+ Args: {
20604
+ p_employee_id: string;
20605
+ p_start_time: string;
20606
+ };
20607
+ Returns: boolean;
20608
+ };
19425
20609
  is_user_admin: {
19426
20610
  Args: never;
19427
20611
  Returns: boolean;
@@ -19430,12 +20614,59 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
19430
20614
  Args: never;
19431
20615
  Returns: boolean;
19432
20616
  };
20617
+ itk_offerte_naar_werkbon: {
20618
+ Args: {
20619
+ _offerte_id: string;
20620
+ };
20621
+ Returns: string;
20622
+ };
20623
+ itk_offerte_restant_mandaat: {
20624
+ Args: {
20625
+ _exclude_offerte_id?: string;
20626
+ _werkbon_id: string;
20627
+ };
20628
+ Returns: number;
20629
+ };
19433
20630
  jwt_has_role: {
19434
20631
  Args: {
19435
20632
  _role: import("../integrations/supabase/types.js").Database["public"]["Enums"]["app_role"];
19436
20633
  };
19437
20634
  Returns: boolean;
19438
20635
  };
20636
+ list_medewerkers: {
20637
+ Args: never;
20638
+ Returns: {
20639
+ avatar_url: string;
20640
+ color: string;
20641
+ display_name: string;
20642
+ email: string;
20643
+ hours_fri: number;
20644
+ hours_mon: number;
20645
+ hours_thu: number;
20646
+ hours_tue: number;
20647
+ hours_wed: number;
20648
+ id: string;
20649
+ is_active: boolean;
20650
+ leave_balance_hours: number;
20651
+ persnr: string;
20652
+ phone: string;
20653
+ roles: string[];
20654
+ }[];
20655
+ };
20656
+ list_monteur_absences: {
20657
+ Args: {
20658
+ _from: string;
20659
+ _to: string;
20660
+ };
20661
+ Returns: {
20662
+ absence_date: string;
20663
+ end_time: string;
20664
+ full_day: boolean;
20665
+ kind: string;
20666
+ monteur_id: string;
20667
+ start_time: string;
20668
+ }[];
20669
+ };
19439
20670
  list_monteurs: {
19440
20671
  Args: never;
19441
20672
  Returns: {
@@ -19768,17 +20999,6 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
19768
20999
  Returns: string;
19769
21000
  };
19770
21001
  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
21002
  Args: {
19783
21003
  p_event_type: string;
19784
21004
  p_idempotency_key?: string;
@@ -19867,6 +21087,23 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
19867
21087
  };
19868
21088
  Returns: string;
19869
21089
  };
21090
+ logistics_floriday_finish_push_v2: {
21091
+ Args: {
21092
+ _error?: string;
21093
+ _error_code?: string;
21094
+ _fulfillment_order_id?: string;
21095
+ _gateway_status?: number;
21096
+ _id: string;
21097
+ _max_age_hours?: number;
21098
+ _max_attempts?: number;
21099
+ _ok: boolean;
21100
+ _permanent?: boolean;
21101
+ _response?: import("../integrations/supabase/types.js").Json;
21102
+ _revision: number;
21103
+ _sent_hash?: string;
21104
+ };
21105
+ Returns: string;
21106
+ };
19870
21107
  logistics_floriday_prune_pushes: {
19871
21108
  Args: {
19872
21109
  _days?: number;
@@ -20409,6 +21646,13 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
20409
21646
  isSetofReturn: false;
20410
21647
  };
20411
21648
  };
21649
+ pick_cleanup_maintenance: {
21650
+ Args: {
21651
+ _heartbeat_hours?: number;
21652
+ _log_days?: number;
21653
+ };
21654
+ Returns: import("../integrations/supabase/types.js").Json;
21655
+ };
20412
21656
  pick_complete_print: {
20413
21657
  Args: {
20414
21658
  _printer_id: string;
@@ -20460,6 +21704,14 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
20460
21704
  Args: never;
20461
21705
  Returns: string;
20462
21706
  };
21707
+ pick_day_counts: {
21708
+ Args: {
21709
+ _pick_day?: string;
21710
+ _screen_id?: string;
21711
+ _station_id?: string;
21712
+ };
21713
+ Returns: import("../integrations/supabase/types.js").Json;
21714
+ };
20463
21715
  pick_document_layout_data: {
20464
21716
  Args: {
20465
21717
  _layout_id: string;
@@ -20497,6 +21749,14 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
20497
21749
  };
20498
21750
  Returns: undefined;
20499
21751
  };
21752
+ pick_reprint_document: {
21753
+ Args: {
21754
+ _queue_item_id: string;
21755
+ _session_id: string;
21756
+ _throttle_seconds?: number;
21757
+ };
21758
+ Returns: string;
21759
+ };
20500
21760
  pick_reset_print: {
20501
21761
  Args: {
20502
21762
  _queue_item_id: string;
@@ -20562,6 +21822,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
20562
21822
  };
20563
21823
  Returns: string;
20564
21824
  };
21825
+ pick_sync_queue_throttled: {
21826
+ Args: {
21827
+ _min_seconds?: number;
21828
+ };
21829
+ Returns: import("../integrations/supabase/types.js").Json;
21830
+ };
20565
21831
  pickstation_get_orders_raw: {
20566
21832
  Args: never;
20567
21833
  Returns: import("../integrations/supabase/types.js").Json;
@@ -20623,6 +21889,37 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
20623
21889
  };
20624
21890
  Returns: undefined;
20625
21891
  };
21892
+ quote_create_from_source: {
21893
+ Args: {
21894
+ _payload?: import("../integrations/supabase/types.js").Json;
21895
+ _source_id: string;
21896
+ _source_type: string;
21897
+ };
21898
+ Returns: string;
21899
+ };
21900
+ quote_get_billable_lines: {
21901
+ Args: {
21902
+ _quotation_id: string;
21903
+ };
21904
+ Returns: import("../integrations/supabase/types.js").Json;
21905
+ };
21906
+ quote_get_summary: {
21907
+ Args: {
21908
+ _quotation_id: string;
21909
+ };
21910
+ Returns: import("../integrations/supabase/types.js").Json;
21911
+ };
21912
+ quote_list_packages: {
21913
+ Args: never;
21914
+ Returns: import("../integrations/supabase/types.js").Json;
21915
+ };
21916
+ quote_list_sources: {
21917
+ Args: {
21918
+ _limit?: number;
21919
+ _source_type?: string;
21920
+ };
21921
+ Returns: import("../integrations/supabase/types.js").Json;
21922
+ };
20626
21923
  recompute_all_reserved_stock: {
20627
21924
  Args: never;
20628
21925
  Returns: undefined;
@@ -20676,6 +21973,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
20676
21973
  };
20677
21974
  Returns: boolean;
20678
21975
  };
21976
+ release_stale_order_invoice_links: {
21977
+ Args: {
21978
+ _minutes?: number;
21979
+ };
21980
+ Returns: number;
21981
+ };
20679
21982
  reorder_customer_price_groups: {
20680
21983
  Args: {
20681
21984
  _ids: string[];
@@ -21114,6 +22417,16 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
21114
22417
  };
21115
22418
  Returns: string[];
21116
22419
  };
22420
+ switch_time_log: {
22421
+ Args: {
22422
+ p_employee_id: string;
22423
+ p_start_lat?: number;
22424
+ p_start_lng?: number;
22425
+ p_type: string;
22426
+ p_work_order_id?: string;
22427
+ };
22428
+ Returns: import("../integrations/supabase/types.js").Json;
22429
+ };
21117
22430
  sync_all_layer_stocks: {
21118
22431
  Args: never;
21119
22432
  Returns: undefined;
@@ -21148,6 +22461,12 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
21148
22461
  };
21149
22462
  Returns: undefined;
21150
22463
  };
22464
+ sync_sick_time_off: {
22465
+ Args: {
22466
+ _period_id: string;
22467
+ };
22468
+ Returns: number;
22469
+ };
21151
22470
  trade_item_stock_duplicates: {
21152
22471
  Args: never;
21153
22472
  Returns: {
@@ -21164,6 +22483,38 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
21164
22483
  };
21165
22484
  Returns: boolean;
21166
22485
  };
22486
+ twinfield_cron_lock_acquire: {
22487
+ Args: {
22488
+ _job_name: string;
22489
+ _stale_seconds?: number;
22490
+ };
22491
+ Returns: boolean;
22492
+ };
22493
+ twinfield_cron_lock_release: {
22494
+ Args: {
22495
+ _error?: string;
22496
+ _job_name: string;
22497
+ };
22498
+ Returns: undefined;
22499
+ };
22500
+ twinfield_deactivate_connection: {
22501
+ Args: {
22502
+ p_connection_id: string;
22503
+ p_user_id: string;
22504
+ };
22505
+ Returns: import("../integrations/supabase/types.js").Json;
22506
+ };
22507
+ twinfield_handle_administration_change: {
22508
+ Args: {
22509
+ _administration_code: string;
22510
+ _user_id: string;
22511
+ };
22512
+ Returns: undefined;
22513
+ };
22514
+ twinfield_prune_push_queue: {
22515
+ Args: never;
22516
+ Returns: number;
22517
+ };
21167
22518
  twinfield_register_cron: {
21168
22519
  Args: {
21169
22520
  apikey?: string;
@@ -21179,10 +22530,11 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
21179
22530
  p_company_name?: string;
21180
22531
  p_environment: string;
21181
22532
  p_office_code?: string;
22533
+ p_reset_sync?: boolean;
21182
22534
  p_status?: string;
21183
22535
  p_user_id: string;
21184
22536
  };
21185
- Returns: string;
22537
+ Returns: import("../integrations/supabase/types.js").Json;
21186
22538
  };
21187
22539
  upsert_auto_fulfillment_log: {
21188
22540
  Args: {
@@ -21203,11 +22555,31 @@ export declare const getFlorydayLogisticLabel: import("@tanstack/start-client-co
21203
22555
  Args: never;
21204
22556
  Returns: string;
21205
22557
  };
22558
+ wo_create_from_source: {
22559
+ Args: {
22560
+ _payload?: import("../integrations/supabase/types.js").Json;
22561
+ _source_id: string;
22562
+ _source_type: string;
22563
+ };
22564
+ Returns: string;
22565
+ };
22566
+ wo_get_billable_lines: {
22567
+ Args: {
22568
+ _work_order_id: string;
22569
+ };
22570
+ Returns: import("../integrations/supabase/types.js").Json;
22571
+ };
22572
+ wo_get_summary: {
22573
+ Args: {
22574
+ _work_order_id: string;
22575
+ };
22576
+ Returns: import("../integrations/supabase/types.js").Json;
22577
+ };
21206
22578
  };
21207
22579
  Enums: {
21208
22580
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
21209
22581
  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";
22582
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
21211
22583
  doc_orientation: "portrait" | "landscape";
21212
22584
  exact_env: "staging" | "live";
21213
22585
  exact_push_status: "pending" | "sent" | "error";