@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
@@ -883,6 +883,126 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
883
883
  };
884
884
  Relationships: [];
885
885
  };
886
+ cao_holidays: {
887
+ Row: {
888
+ created_at: string;
889
+ description: string | null;
890
+ holiday_date: string;
891
+ id: string;
892
+ updated_at: string;
893
+ };
894
+ Insert: {
895
+ created_at?: string;
896
+ description?: string | null;
897
+ holiday_date: string;
898
+ id?: string;
899
+ updated_at?: string;
900
+ };
901
+ Update: {
902
+ created_at?: string;
903
+ description?: string | null;
904
+ holiday_date?: string;
905
+ id?: string;
906
+ updated_at?: string;
907
+ };
908
+ Relationships: [];
909
+ };
910
+ cao_settings: {
911
+ Row: {
912
+ auto_break_after_hours: number;
913
+ auto_break_minutes: number;
914
+ auto_break_unpaid: boolean;
915
+ auto_stop_after_hours: number;
916
+ callout_fee: number;
917
+ created_at: string;
918
+ daily_regular_hours: number;
919
+ default_hourly_rate: number;
920
+ id: string;
921
+ materials_markup_percent: number;
922
+ max_daily_hours: number;
923
+ max_weekly_hours: number;
924
+ meal_allowance_amount: number;
925
+ overtime_pct_178: number;
926
+ overtime_pct_189: number;
927
+ overtime_pct_212: number;
928
+ reminder_after_hours: number;
929
+ standby_evening_amount: number;
930
+ standby_weekend_amount: number;
931
+ travel_cost_per_km: number | null;
932
+ travel_cost_threshold_km: number | null;
933
+ travel_counts_as_work: boolean;
934
+ travel_hourly_rate: number;
935
+ travel_rate_per_hour: number;
936
+ travel_threshold_minutes: number;
937
+ updated_at: string;
938
+ weekend_always_212: boolean;
939
+ window_end: string;
940
+ window_start: string;
941
+ };
942
+ Insert: {
943
+ auto_break_after_hours?: number;
944
+ auto_break_minutes?: number;
945
+ auto_break_unpaid?: boolean;
946
+ auto_stop_after_hours?: number;
947
+ callout_fee?: number;
948
+ created_at?: string;
949
+ daily_regular_hours?: number;
950
+ default_hourly_rate?: number;
951
+ id?: string;
952
+ materials_markup_percent?: number;
953
+ max_daily_hours?: number;
954
+ max_weekly_hours?: number;
955
+ meal_allowance_amount?: number;
956
+ overtime_pct_178?: number;
957
+ overtime_pct_189?: number;
958
+ overtime_pct_212?: number;
959
+ reminder_after_hours?: number;
960
+ standby_evening_amount?: number;
961
+ standby_weekend_amount?: number;
962
+ travel_cost_per_km?: number | null;
963
+ travel_cost_threshold_km?: number | null;
964
+ travel_counts_as_work?: boolean;
965
+ travel_hourly_rate?: number;
966
+ travel_rate_per_hour?: number;
967
+ travel_threshold_minutes?: number;
968
+ updated_at?: string;
969
+ weekend_always_212?: boolean;
970
+ window_end?: string;
971
+ window_start?: string;
972
+ };
973
+ Update: {
974
+ auto_break_after_hours?: number;
975
+ auto_break_minutes?: number;
976
+ auto_break_unpaid?: boolean;
977
+ auto_stop_after_hours?: number;
978
+ callout_fee?: number;
979
+ created_at?: string;
980
+ daily_regular_hours?: number;
981
+ default_hourly_rate?: number;
982
+ id?: string;
983
+ materials_markup_percent?: number;
984
+ max_daily_hours?: number;
985
+ max_weekly_hours?: number;
986
+ meal_allowance_amount?: number;
987
+ overtime_pct_178?: number;
988
+ overtime_pct_189?: number;
989
+ overtime_pct_212?: number;
990
+ reminder_after_hours?: number;
991
+ standby_evening_amount?: number;
992
+ standby_weekend_amount?: number;
993
+ travel_cost_per_km?: number | null;
994
+ travel_cost_threshold_km?: number | null;
995
+ travel_counts_as_work?: boolean;
996
+ travel_hourly_rate?: number;
997
+ travel_rate_per_hour?: number;
998
+ travel_threshold_minutes?: number;
999
+ updated_at?: string;
1000
+ weekend_always_212?: boolean;
1001
+ window_end?: string;
1002
+ window_start?: string;
1003
+ };
1004
+ Relationships: [];
1005
+ };
886
1006
  carrier_shipping_rates: {
887
1007
  Row: {
888
1008
  carrier_id: string;
@@ -2650,6 +2770,42 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
2650
2770
  };
2651
2771
  Relationships: [];
2652
2772
  };
2773
+ document_bronregels: {
2774
+ Row: {
2775
+ bron: string;
2776
+ created_at: string;
2777
+ documenttype: string;
2778
+ herkomst: string;
2779
+ id: string;
2780
+ layout_id: string | null;
2781
+ updated_at: string;
2782
+ };
2783
+ Insert: {
2784
+ bron?: string;
2785
+ created_at?: string;
2786
+ documenttype: string;
2787
+ herkomst: string;
2788
+ id?: string;
2789
+ layout_id?: string | null;
2790
+ updated_at?: string;
2791
+ };
2792
+ Update: {
2793
+ bron?: string;
2794
+ created_at?: string;
2795
+ documenttype?: string;
2796
+ herkomst?: string;
2797
+ id?: string;
2798
+ layout_id?: string | null;
2799
+ updated_at?: string;
2800
+ };
2801
+ Relationships: [{
2802
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2803
+ columns: ["layout_id"];
2804
+ isOneToOne: false;
2805
+ referencedRelation: "document_layouts";
2806
+ referencedColumns: ["id"];
2807
+ }];
2808
+ };
2653
2809
  document_formaat_printers: {
2654
2810
  Row: {
2655
2811
  created_at: string;
@@ -2927,6 +3083,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
2927
3083
  Row: {
2928
3084
  actief: boolean;
2929
3085
  breedte_mm: number;
3086
+ bron: string;
2930
3087
  config: import("../integrations/supabase/types.js").Json;
2931
3088
  created_at: string;
2932
3089
  created_by: string | null;
@@ -2944,12 +3101,14 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
2944
3101
  orientatie: import("../integrations/supabase/types.js").Database["public"]["Enums"]["doc_orientation"];
2945
3102
  page_settings: import("../integrations/supabase/types.js").Json;
2946
3103
  papierformaat: string;
3104
+ systeem: boolean;
2947
3105
  thumbnail_url: string | null;
2948
3106
  updated_at: string;
2949
3107
  };
2950
3108
  Insert: {
2951
3109
  actief?: boolean;
2952
3110
  breedte_mm?: number;
3111
+ bron?: string;
2953
3112
  config?: import("../integrations/supabase/types.js").Json;
2954
3113
  created_at?: string;
2955
3114
  created_by?: string | null;
@@ -2967,12 +3126,14 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
2967
3126
  orientatie?: import("../integrations/supabase/types.js").Database["public"]["Enums"]["doc_orientation"];
2968
3127
  page_settings?: import("../integrations/supabase/types.js").Json;
2969
3128
  papierformaat?: string;
3129
+ systeem?: boolean;
2970
3130
  thumbnail_url?: string | null;
2971
3131
  updated_at?: string;
2972
3132
  };
2973
3133
  Update: {
2974
3134
  actief?: boolean;
2975
3135
  breedte_mm?: number;
3136
+ bron?: string;
2976
3137
  config?: import("../integrations/supabase/types.js").Json;
2977
3138
  created_at?: string;
2978
3139
  created_by?: string | null;
@@ -2990,11 +3151,48 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
2990
3151
  orientatie?: import("../integrations/supabase/types.js").Database["public"]["Enums"]["doc_orientation"];
2991
3152
  page_settings?: import("../integrations/supabase/types.js").Json;
2992
3153
  papierformaat?: string;
3154
+ systeem?: boolean;
2993
3155
  thumbnail_url?: string | null;
2994
3156
  updated_at?: string;
2995
3157
  };
2996
3158
  Relationships: [];
2997
3159
  };
3160
+ document_werkplek_printers: {
3161
+ Row: {
3162
+ created_at: string;
3163
+ documenttype: string;
3164
+ id: string;
3165
+ papierformaat: string | null;
3166
+ printer_id: string | null;
3167
+ updated_at: string;
3168
+ werkplek: string;
3169
+ };
3170
+ Insert: {
3171
+ created_at?: string;
3172
+ documenttype: string;
3173
+ id?: string;
3174
+ papierformaat?: string | null;
3175
+ printer_id?: string | null;
3176
+ updated_at?: string;
3177
+ werkplek: string;
3178
+ };
3179
+ Update: {
3180
+ created_at?: string;
3181
+ documenttype?: string;
3182
+ id?: string;
3183
+ papierformaat?: string | null;
3184
+ printer_id?: string | null;
3185
+ updated_at?: string;
3186
+ werkplek?: string;
3187
+ };
3188
+ Relationships: [{
3189
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3190
+ columns: ["printer_id"];
3191
+ isOneToOne: false;
3192
+ referencedRelation: "printers";
3193
+ referencedColumns: ["id"];
3194
+ }];
3195
+ };
2998
3196
  email_auth_connections: {
2999
3197
  Row: {
3000
3198
  access_token_encrypted: string | null;
@@ -7240,8 +7438,63 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
7240
7438
  };
7241
7439
  Relationships: [];
7242
7440
  };
7441
+ invoice_items: {
7442
+ Row: {
7443
+ created_at: string;
7444
+ description: string;
7445
+ id: string;
7446
+ invoice_id: string;
7447
+ kind: string;
7448
+ quantity: number;
7449
+ sort_order: number;
7450
+ source_line_ref: string | null;
7451
+ total_cents: number;
7452
+ unit: string;
7453
+ unit_price_cents: number;
7454
+ };
7455
+ Insert: {
7456
+ created_at?: string;
7457
+ description?: string;
7458
+ id?: string;
7459
+ invoice_id: string;
7460
+ kind?: string;
7461
+ quantity?: number;
7462
+ sort_order?: number;
7463
+ source_line_ref?: string | null;
7464
+ total_cents?: number;
7465
+ unit?: string;
7466
+ unit_price_cents?: number;
7467
+ };
7468
+ Update: {
7469
+ created_at?: string;
7470
+ description?: string;
7471
+ id?: string;
7472
+ invoice_id?: string;
7473
+ kind?: string;
7474
+ quantity?: number;
7475
+ sort_order?: number;
7476
+ source_line_ref?: string | null;
7477
+ total_cents?: number;
7478
+ unit?: string;
7479
+ unit_price_cents?: number;
7480
+ };
7481
+ Relationships: [{
7482
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7483
+ columns: ["invoice_id"];
7484
+ isOneToOne: false;
7485
+ referencedRelation: "invoices";
7486
+ referencedColumns: ["id"];
7487
+ }, {
7488
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7489
+ columns: ["invoice_id"];
7490
+ isOneToOne: false;
7491
+ referencedRelation: "uren_facturen";
7492
+ referencedColumns: ["id"];
7493
+ }];
7494
+ };
7243
7495
  invoice_post_idempotency: {
7244
7496
  Row: {
7497
+ administration_code: string;
7245
7498
  client_request_id: string;
7246
7499
  completed_at: string | null;
7247
7500
  created_at: string;
@@ -7251,6 +7504,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
7251
7504
  user_id: string;
7252
7505
  };
7253
7506
  Insert: {
7507
+ administration_code?: string;
7254
7508
  client_request_id: string;
7255
7509
  completed_at?: string | null;
7256
7510
  created_at?: string;
@@ -7260,6 +7514,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
7260
7514
  user_id: string;
7261
7515
  };
7262
7516
  Update: {
7517
+ administration_code?: string;
7263
7518
  client_request_id?: string;
7264
7519
  completed_at?: string | null;
7265
7520
  created_at?: string;
@@ -7465,6 +7720,75 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
7465
7720
  };
7466
7721
  Relationships: [];
7467
7722
  };
7723
+ invoices: {
7724
+ Row: {
7725
+ created_at: string;
7726
+ created_by: string | null;
7727
+ customer_id: string | null;
7728
+ customer_name: string | null;
7729
+ due_date: string | null;
7730
+ id: string;
7731
+ invoice_date: string;
7732
+ invoice_number: string | null;
7733
+ note: string | null;
7734
+ source_number: string | null;
7735
+ source_ref: string | null;
7736
+ source_type: string;
7737
+ status: string;
7738
+ subtotal_cents: number;
7739
+ total_cents: number;
7740
+ updated_at: string;
7741
+ vat_cents: number;
7742
+ vat_rate: number;
7743
+ };
7744
+ Insert: {
7745
+ created_at?: string;
7746
+ created_by?: string | null;
7747
+ customer_id?: string | null;
7748
+ customer_name?: string | null;
7749
+ due_date?: string | null;
7750
+ id?: string;
7751
+ invoice_date?: string;
7752
+ invoice_number?: string | null;
7753
+ note?: string | null;
7754
+ source_number?: string | null;
7755
+ source_ref?: string | null;
7756
+ source_type?: string;
7757
+ status?: string;
7758
+ subtotal_cents?: number;
7759
+ total_cents?: number;
7760
+ updated_at?: string;
7761
+ vat_cents?: number;
7762
+ vat_rate?: number;
7763
+ };
7764
+ Update: {
7765
+ created_at?: string;
7766
+ created_by?: string | null;
7767
+ customer_id?: string | null;
7768
+ customer_name?: string | null;
7769
+ due_date?: string | null;
7770
+ id?: string;
7771
+ invoice_date?: string;
7772
+ invoice_number?: string | null;
7773
+ note?: string | null;
7774
+ source_number?: string | null;
7775
+ source_ref?: string | null;
7776
+ source_type?: string;
7777
+ status?: string;
7778
+ subtotal_cents?: number;
7779
+ total_cents?: number;
7780
+ updated_at?: string;
7781
+ vat_cents?: number;
7782
+ vat_rate?: number;
7783
+ };
7784
+ Relationships: [{
7785
+ foreignKeyName: "invoices_customer_id_fkey";
7786
+ columns: ["customer_id"];
7787
+ isOneToOne: false;
7788
+ referencedRelation: "itk_customers";
7789
+ referencedColumns: ["id"];
7790
+ }];
7791
+ };
7468
7792
  itk_contact_persons: {
7469
7793
  Row: {
7470
7794
  created_at: string;
@@ -7660,77 +7984,329 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
7660
7984
  };
7661
7985
  Relationships: [];
7662
7986
  };
7663
- itk_work_locations: {
7987
+ itk_offerte_events: {
7664
7988
  Row: {
7665
- city: string | null;
7666
7989
  created_at: string;
7667
- customer_id: string;
7990
+ event_type: string;
7668
7991
  id: string;
7669
- instructions: string | null;
7670
- label: string;
7671
- latitude: number | null;
7672
- longitude: number | null;
7673
- postcode: string | null;
7674
- street: string | null;
7675
- updated_at: string;
7992
+ metadata: import("../integrations/supabase/types.js").Json;
7993
+ offerte_id: string;
7994
+ omschrijving: string | null;
7995
+ user_id: string | null;
7676
7996
  };
7677
7997
  Insert: {
7678
- city?: string | null;
7679
7998
  created_at?: string;
7680
- customer_id: string;
7999
+ event_type: string;
7681
8000
  id?: string;
7682
- instructions?: string | null;
7683
- label: string;
7684
- latitude?: number | null;
7685
- longitude?: number | null;
7686
- postcode?: string | null;
7687
- street?: string | null;
7688
- updated_at?: string;
8001
+ metadata?: import("../integrations/supabase/types.js").Json;
8002
+ offerte_id: string;
8003
+ omschrijving?: string | null;
8004
+ user_id?: string | null;
7689
8005
  };
7690
8006
  Update: {
7691
- city?: string | null;
7692
8007
  created_at?: string;
7693
- customer_id?: string;
8008
+ event_type?: string;
7694
8009
  id?: string;
7695
- instructions?: string | null;
7696
- label?: string;
7697
- latitude?: number | null;
7698
- longitude?: number | null;
7699
- postcode?: string | null;
7700
- street?: string | null;
7701
- updated_at?: string;
8010
+ metadata?: import("../integrations/supabase/types.js").Json;
8011
+ offerte_id?: string;
8012
+ omschrijving?: string | null;
8013
+ user_id?: string | null;
7702
8014
  };
7703
8015
  Relationships: [{
7704
- foreignKeyName: "itk_work_locations_customer_id_fkey";
7705
- columns: ["customer_id"];
8016
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8017
+ columns: ["offerte_id"];
7706
8018
  isOneToOne: false;
7707
- referencedRelation: "itk_customers";
8019
+ referencedRelation: "itk_offertes";
7708
8020
  referencedColumns: ["id"];
7709
8021
  }];
7710
8022
  };
7711
- layout_logos: {
8023
+ itk_offerte_regels: {
7712
8024
  Row: {
7713
- bestand_url: string;
7714
- bestandsgrootte: number;
7715
- bestandspad: string | null;
7716
- bestandstype: string;
7717
- breedte: number;
7718
- categorie: string;
7719
8025
  created_at: string;
7720
- hash: string | null;
7721
- hoogte: number;
7722
8026
  id: string;
7723
- is_standaard: boolean;
7724
- naam: string;
8027
+ line_total_cents: number;
8028
+ offerte_id: string;
7725
8029
  omschrijving: string;
7726
- transparant: boolean;
8030
+ package_id: string | null;
8031
+ quantity: number;
8032
+ sort_order: number;
8033
+ source: string;
8034
+ unit_price_cents: number;
7727
8035
  updated_at: string;
7728
8036
  };
7729
8037
  Insert: {
7730
- bestand_url: string;
7731
- bestandsgrootte?: number;
7732
- bestandspad?: string | null;
7733
- bestandstype?: string;
8038
+ created_at?: string;
8039
+ id?: string;
8040
+ line_total_cents?: number;
8041
+ offerte_id: string;
8042
+ omschrijving?: string;
8043
+ package_id?: string | null;
8044
+ quantity?: number;
8045
+ sort_order?: number;
8046
+ source?: string;
8047
+ unit_price_cents?: number;
8048
+ updated_at?: string;
8049
+ };
8050
+ Update: {
8051
+ created_at?: string;
8052
+ id?: string;
8053
+ line_total_cents?: number;
8054
+ offerte_id?: string;
8055
+ omschrijving?: string;
8056
+ package_id?: string | null;
8057
+ quantity?: number;
8058
+ sort_order?: number;
8059
+ source?: string;
8060
+ unit_price_cents?: number;
8061
+ updated_at?: string;
8062
+ };
8063
+ Relationships: [{
8064
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8065
+ columns: ["offerte_id"];
8066
+ isOneToOne: false;
8067
+ referencedRelation: "itk_offertes";
8068
+ referencedColumns: ["id"];
8069
+ }, {
8070
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
8071
+ columns: ["package_id"];
8072
+ isOneToOne: false;
8073
+ referencedRelation: "werkbon_packages";
8074
+ referencedColumns: ["id"];
8075
+ }];
8076
+ };
8077
+ itk_offerte_settings: {
8078
+ Row: {
8079
+ auto_convert_binnen_mandaat: boolean;
8080
+ created_at: string;
8081
+ default_geldigheid_dagen: number;
8082
+ default_vat_rate: number;
8083
+ id: string;
8084
+ singleton: boolean;
8085
+ updated_at: string;
8086
+ };
8087
+ Insert: {
8088
+ auto_convert_binnen_mandaat?: boolean;
8089
+ created_at?: string;
8090
+ default_geldigheid_dagen?: number;
8091
+ default_vat_rate?: number;
8092
+ id?: string;
8093
+ singleton?: boolean;
8094
+ updated_at?: string;
8095
+ };
8096
+ Update: {
8097
+ auto_convert_binnen_mandaat?: boolean;
8098
+ created_at?: string;
8099
+ default_geldigheid_dagen?: number;
8100
+ default_vat_rate?: number;
8101
+ id?: string;
8102
+ singleton?: boolean;
8103
+ updated_at?: string;
8104
+ };
8105
+ Relationships: [];
8106
+ };
8107
+ itk_offertes: {
8108
+ Row: {
8109
+ ai_generated: boolean;
8110
+ approved_at: string | null;
8111
+ binnen_mandaat: boolean;
8112
+ contact_id: string | null;
8113
+ converted_at: string | null;
8114
+ created_at: string;
8115
+ created_by: string | null;
8116
+ customer_id: string | null;
8117
+ follow_up_werkbon_id: string | null;
8118
+ id: string;
8119
+ jaar: number;
8120
+ mandaat_restant_cents: number;
8121
+ notities: string | null;
8122
+ offerte_number: string | null;
8123
+ omschrijving: string;
8124
+ rejected_at: string | null;
8125
+ sent_at: string | null;
8126
+ source_number: string | null;
8127
+ source_ref: string | null;
8128
+ source_type: string;
8129
+ status: string;
8130
+ subtotal_cents: number;
8131
+ total_cents: number;
8132
+ updated_at: string;
8133
+ valid_until: string | null;
8134
+ vat_cents: number;
8135
+ vat_rate: number;
8136
+ viewed_at: string | null;
8137
+ volgnummer: number | null;
8138
+ werkbon_id: string | null;
8139
+ work_location_id: string | null;
8140
+ };
8141
+ Insert: {
8142
+ ai_generated?: boolean;
8143
+ approved_at?: string | null;
8144
+ binnen_mandaat?: boolean;
8145
+ contact_id?: string | null;
8146
+ converted_at?: string | null;
8147
+ created_at?: string;
8148
+ created_by?: string | null;
8149
+ customer_id?: string | null;
8150
+ follow_up_werkbon_id?: string | null;
8151
+ id?: string;
8152
+ jaar?: number;
8153
+ mandaat_restant_cents?: number;
8154
+ notities?: string | null;
8155
+ offerte_number?: string | null;
8156
+ omschrijving?: string;
8157
+ rejected_at?: string | null;
8158
+ sent_at?: string | null;
8159
+ source_number?: string | null;
8160
+ source_ref?: string | null;
8161
+ source_type?: string;
8162
+ status?: string;
8163
+ subtotal_cents?: number;
8164
+ total_cents?: number;
8165
+ updated_at?: string;
8166
+ valid_until?: string | null;
8167
+ vat_cents?: number;
8168
+ vat_rate?: number;
8169
+ viewed_at?: string | null;
8170
+ volgnummer?: number | null;
8171
+ werkbon_id?: string | null;
8172
+ work_location_id?: string | null;
8173
+ };
8174
+ Update: {
8175
+ ai_generated?: boolean;
8176
+ approved_at?: string | null;
8177
+ binnen_mandaat?: boolean;
8178
+ contact_id?: string | null;
8179
+ converted_at?: string | null;
8180
+ created_at?: string;
8181
+ created_by?: string | null;
8182
+ customer_id?: string | null;
8183
+ follow_up_werkbon_id?: string | null;
8184
+ id?: string;
8185
+ jaar?: number;
8186
+ mandaat_restant_cents?: number;
8187
+ notities?: string | null;
8188
+ offerte_number?: string | null;
8189
+ omschrijving?: string;
8190
+ rejected_at?: string | null;
8191
+ sent_at?: string | null;
8192
+ source_number?: string | null;
8193
+ source_ref?: string | null;
8194
+ source_type?: string;
8195
+ status?: string;
8196
+ subtotal_cents?: number;
8197
+ total_cents?: number;
8198
+ updated_at?: string;
8199
+ valid_until?: string | null;
8200
+ vat_cents?: number;
8201
+ vat_rate?: number;
8202
+ viewed_at?: string | null;
8203
+ volgnummer?: number | null;
8204
+ werkbon_id?: string | null;
8205
+ work_location_id?: string | null;
8206
+ };
8207
+ Relationships: [{
8208
+ foreignKeyName: "itk_offertes_contact_id_fkey";
8209
+ columns: ["contact_id"];
8210
+ isOneToOne: false;
8211
+ referencedRelation: "itk_contact_persons";
8212
+ referencedColumns: ["id"];
8213
+ }, {
8214
+ foreignKeyName: "itk_offertes_customer_id_fkey";
8215
+ columns: ["customer_id"];
8216
+ isOneToOne: false;
8217
+ referencedRelation: "itk_customers";
8218
+ referencedColumns: ["id"];
8219
+ }, {
8220
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
8221
+ columns: ["follow_up_werkbon_id"];
8222
+ isOneToOne: false;
8223
+ referencedRelation: "werkbonnen";
8224
+ referencedColumns: ["id"];
8225
+ }, {
8226
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8227
+ columns: ["werkbon_id"];
8228
+ isOneToOne: false;
8229
+ referencedRelation: "werkbonnen";
8230
+ referencedColumns: ["id"];
8231
+ }, {
8232
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8233
+ columns: ["work_location_id"];
8234
+ isOneToOne: false;
8235
+ referencedRelation: "itk_work_locations";
8236
+ referencedColumns: ["id"];
8237
+ }];
8238
+ };
8239
+ itk_work_locations: {
8240
+ Row: {
8241
+ city: string | null;
8242
+ created_at: string;
8243
+ customer_id: string;
8244
+ id: string;
8245
+ instructions: string | null;
8246
+ label: string;
8247
+ latitude: number | null;
8248
+ longitude: number | null;
8249
+ postcode: string | null;
8250
+ street: string | null;
8251
+ updated_at: string;
8252
+ };
8253
+ Insert: {
8254
+ city?: string | null;
8255
+ created_at?: string;
8256
+ customer_id: string;
8257
+ id?: string;
8258
+ instructions?: string | null;
8259
+ label: string;
8260
+ latitude?: number | null;
8261
+ longitude?: number | null;
8262
+ postcode?: string | null;
8263
+ street?: string | null;
8264
+ updated_at?: string;
8265
+ };
8266
+ Update: {
8267
+ city?: string | null;
8268
+ created_at?: string;
8269
+ customer_id?: string;
8270
+ id?: string;
8271
+ instructions?: string | null;
8272
+ label?: string;
8273
+ latitude?: number | null;
8274
+ longitude?: number | null;
8275
+ postcode?: string | null;
8276
+ street?: string | null;
8277
+ updated_at?: string;
8278
+ };
8279
+ Relationships: [{
8280
+ foreignKeyName: "itk_work_locations_customer_id_fkey";
8281
+ columns: ["customer_id"];
8282
+ isOneToOne: false;
8283
+ referencedRelation: "itk_customers";
8284
+ referencedColumns: ["id"];
8285
+ }];
8286
+ };
8287
+ layout_logos: {
8288
+ Row: {
8289
+ bestand_url: string;
8290
+ bestandsgrootte: number;
8291
+ bestandspad: string | null;
8292
+ bestandstype: string;
8293
+ breedte: number;
8294
+ categorie: string;
8295
+ created_at: string;
8296
+ hash: string | null;
8297
+ hoogte: number;
8298
+ id: string;
8299
+ is_standaard: boolean;
8300
+ naam: string;
8301
+ omschrijving: string;
8302
+ transparant: boolean;
8303
+ updated_at: string;
8304
+ };
8305
+ Insert: {
8306
+ bestand_url: string;
8307
+ bestandsgrootte?: number;
8308
+ bestandspad?: string | null;
8309
+ bestandstype?: string;
7734
8310
  breedte?: number;
7735
8311
  categorie?: string;
7736
8312
  created_at?: string;
@@ -7777,7 +8353,6 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
7777
8353
  start_date: string;
7778
8354
  start_time: string | null;
7779
8355
  status: string;
7780
- tenant_id: string;
7781
8356
  updated_at: string;
7782
8357
  user_id: string;
7783
8358
  };
@@ -7795,7 +8370,6 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
7795
8370
  start_date: string;
7796
8371
  start_time?: string | null;
7797
8372
  status?: string;
7798
- tenant_id?: string;
7799
8373
  updated_at?: string;
7800
8374
  user_id: string;
7801
8375
  };
@@ -7813,7 +8387,6 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
7813
8387
  start_date?: string;
7814
8388
  start_time?: string | null;
7815
8389
  status?: string;
7816
- tenant_id?: string;
7817
8390
  updated_at?: string;
7818
8391
  user_id?: string;
7819
8392
  };
@@ -7821,13 +8394,13 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
7821
8394
  foreignKeyName: "leave_requests_monteur_id_fkey";
7822
8395
  columns: ["monteur_id"];
7823
8396
  isOneToOne: false;
7824
- referencedRelation: "monteurs";
8397
+ referencedRelation: "profiles";
7825
8398
  referencedColumns: ["id"];
7826
8399
  }, {
7827
8400
  foreignKeyName: "leave_requests_user_id_fkey";
7828
8401
  columns: ["user_id"];
7829
8402
  isOneToOne: false;
7830
- referencedRelation: "monteurs";
8403
+ referencedRelation: "profiles";
7831
8404
  referencedColumns: ["id"];
7832
8405
  }];
7833
8406
  };
@@ -8563,6 +9136,9 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
8563
9136
  id: string;
8564
9137
  last_error: string | null;
8565
9138
  last_error_at: string | null;
9139
+ last_error_code: string | null;
9140
+ last_gateway_status: number | null;
9141
+ last_response: import("../integrations/supabase/types.js").Json | null;
8566
9142
  last_sent_hash: string | null;
8567
9143
  locked_by: string | null;
8568
9144
  locked_until: string | null;
@@ -8583,6 +9159,9 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
8583
9159
  id?: string;
8584
9160
  last_error?: string | null;
8585
9161
  last_error_at?: string | null;
9162
+ last_error_code?: string | null;
9163
+ last_gateway_status?: number | null;
9164
+ last_response?: import("../integrations/supabase/types.js").Json | null;
8586
9165
  last_sent_hash?: string | null;
8587
9166
  locked_by?: string | null;
8588
9167
  locked_until?: string | null;
@@ -8603,6 +9182,9 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
8603
9182
  id?: string;
8604
9183
  last_error?: string | null;
8605
9184
  last_error_at?: string | null;
9185
+ last_error_code?: string | null;
9186
+ last_gateway_status?: number | null;
9187
+ last_response?: import("../integrations/supabase/types.js").Json | null;
8606
9188
  last_sent_hash?: string | null;
8607
9189
  locked_by?: string | null;
8608
9190
  locked_until?: string | null;
@@ -9982,6 +10564,117 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
9982
10564
  };
9983
10565
  Relationships: [];
9984
10566
  };
10567
+ material_usage: {
10568
+ Row: {
10569
+ created_at: string;
10570
+ id: string;
10571
+ material_name: string;
10572
+ monteur_id: string | null;
10573
+ price_at_time: number;
10574
+ quantity_used: number;
10575
+ updated_at: string;
10576
+ van_inventory_id: string | null;
10577
+ work_order_id: string;
10578
+ };
10579
+ Insert: {
10580
+ created_at?: string;
10581
+ id?: string;
10582
+ material_name: string;
10583
+ monteur_id?: string | null;
10584
+ price_at_time?: number;
10585
+ quantity_used?: number;
10586
+ updated_at?: string;
10587
+ van_inventory_id?: string | null;
10588
+ work_order_id: string;
10589
+ };
10590
+ Update: {
10591
+ created_at?: string;
10592
+ id?: string;
10593
+ material_name?: string;
10594
+ monteur_id?: string | null;
10595
+ price_at_time?: number;
10596
+ quantity_used?: number;
10597
+ updated_at?: string;
10598
+ van_inventory_id?: string | null;
10599
+ work_order_id?: string;
10600
+ };
10601
+ Relationships: [{
10602
+ foreignKeyName: "material_usage_monteur_id_fkey";
10603
+ columns: ["monteur_id"];
10604
+ isOneToOne: false;
10605
+ referencedRelation: "profiles";
10606
+ referencedColumns: ["id"];
10607
+ }, {
10608
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
10609
+ columns: ["van_inventory_id"];
10610
+ isOneToOne: false;
10611
+ referencedRelation: "van_inventories";
10612
+ referencedColumns: ["id"];
10613
+ }, {
10614
+ foreignKeyName: "material_usage_work_order_id_fkey";
10615
+ columns: ["work_order_id"];
10616
+ isOneToOne: false;
10617
+ referencedRelation: "work_orders";
10618
+ referencedColumns: ["id"];
10619
+ }];
10620
+ };
10621
+ medewerker_details: {
10622
+ Row: {
10623
+ color: string | null;
10624
+ created_at: string;
10625
+ hours_fri: number | null;
10626
+ hours_mon: number | null;
10627
+ hours_thu: number | null;
10628
+ hours_tue: number | null;
10629
+ hours_wed: number | null;
10630
+ id: string;
10631
+ is_active: boolean;
10632
+ leave_balance_hours: number;
10633
+ persnr: string | null;
10634
+ phone: string | null;
10635
+ profile_id: string;
10636
+ updated_at: string;
10637
+ };
10638
+ Insert: {
10639
+ color?: string | null;
10640
+ created_at?: string;
10641
+ hours_fri?: number | null;
10642
+ hours_mon?: number | null;
10643
+ hours_thu?: number | null;
10644
+ hours_tue?: number | null;
10645
+ hours_wed?: number | null;
10646
+ id?: string;
10647
+ is_active?: boolean;
10648
+ leave_balance_hours?: number;
10649
+ persnr?: string | null;
10650
+ phone?: string | null;
10651
+ profile_id: string;
10652
+ updated_at?: string;
10653
+ };
10654
+ Update: {
10655
+ color?: string | null;
10656
+ created_at?: string;
10657
+ hours_fri?: number | null;
10658
+ hours_mon?: number | null;
10659
+ hours_thu?: number | null;
10660
+ hours_tue?: number | null;
10661
+ hours_wed?: number | null;
10662
+ id?: string;
10663
+ is_active?: boolean;
10664
+ leave_balance_hours?: number;
10665
+ persnr?: string | null;
10666
+ phone?: string | null;
10667
+ profile_id?: string;
10668
+ updated_at?: string;
10669
+ };
10670
+ Relationships: [{
10671
+ foreignKeyName: "medewerker_details_profile_id_fkey";
10672
+ columns: ["profile_id"];
10673
+ isOneToOne: true;
10674
+ referencedRelation: "profiles";
10675
+ referencedColumns: ["id"];
10676
+ }];
10677
+ };
9985
10678
  module_features: {
9986
10679
  Row: {
9987
10680
  created_at: string;
@@ -10042,8 +10735,10 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
10042
10735
  module_registry: {
10043
10736
  Row: {
10044
10737
  created_at: string;
10738
+ enforce: boolean;
10045
10739
  is_active: boolean;
10046
10740
  last_seen_at: string;
10741
+ missing_count: number;
10047
10742
  module_id: string;
10048
10743
  name: string;
10049
10744
  shell_id: string | null;
@@ -10051,8 +10746,10 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
10051
10746
  };
10052
10747
  Insert: {
10053
10748
  created_at?: string;
10749
+ enforce?: boolean;
10054
10750
  is_active?: boolean;
10055
10751
  last_seen_at?: string;
10752
+ missing_count?: number;
10056
10753
  module_id: string;
10057
10754
  name: string;
10058
10755
  shell_id?: string | null;
@@ -10060,8 +10757,10 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
10060
10757
  };
10061
10758
  Update: {
10062
10759
  created_at?: string;
10760
+ enforce?: boolean;
10063
10761
  is_active?: boolean;
10064
10762
  last_seen_at?: string;
10763
+ missing_count?: number;
10065
10764
  module_id?: string;
10066
10765
  name?: string;
10067
10766
  shell_id?: string | null;
@@ -10110,72 +10809,15 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
10110
10809
  };
10111
10810
  Update: {
10112
10811
  created_at?: string;
10113
- description?: string | null;
10114
- id?: string;
10115
- is_active?: boolean;
10116
- last_seen_at?: string | null;
10117
- module_key?: string;
10118
- module_name?: string;
10119
- updated_at?: string;
10120
- };
10121
- Relationships: [];
10122
- };
10123
- monteurs: {
10124
- Row: {
10125
- avatar_url: string | null;
10126
- color: string | null;
10127
- created_at: string;
10128
- email: string | null;
10129
- id: string;
10130
- is_active: boolean;
10131
- leave_balance_hours: number;
10132
- name: string;
10133
- persnr: number | null;
10134
- phone: string | null;
10135
- role: string;
10136
- tenant_id: string;
10137
- updated_at: string;
10138
- user_id: string | null;
10139
- };
10140
- Insert: {
10141
- avatar_url?: string | null;
10142
- color?: string | null;
10143
- created_at?: string;
10144
- email?: string | null;
10145
- id?: string;
10146
- is_active?: boolean;
10147
- leave_balance_hours?: number;
10148
- name: string;
10149
- persnr?: number | null;
10150
- phone?: string | null;
10151
- role?: string;
10152
- tenant_id: string;
10153
- updated_at?: string;
10154
- user_id?: string | null;
10155
- };
10156
- Update: {
10157
- avatar_url?: string | null;
10158
- color?: string | null;
10159
- created_at?: string;
10160
- email?: string | null;
10161
- id?: string;
10162
- is_active?: boolean;
10163
- leave_balance_hours?: number;
10164
- name?: string;
10165
- persnr?: number | null;
10166
- phone?: string | null;
10167
- role?: string;
10168
- tenant_id?: string;
10812
+ description?: string | null;
10813
+ id?: string;
10814
+ is_active?: boolean;
10815
+ last_seen_at?: string | null;
10816
+ module_key?: string;
10817
+ module_name?: string;
10169
10818
  updated_at?: string;
10170
- user_id?: string | null;
10171
10819
  };
10172
- Relationships: [{
10173
- foreignKeyName: "monteurs_tenant_id_fkey";
10174
- columns: ["tenant_id"];
10175
- isOneToOne: false;
10176
- referencedRelation: "tenants";
10177
- referencedColumns: ["id"];
10178
- }];
10820
+ Relationships: [];
10179
10821
  };
10180
10822
  nmbrs_component_mapping: {
10181
10823
  Row: {
@@ -10247,13 +10889,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
10247
10889
  nmbrs_employee_number?: string;
10248
10890
  updated_at?: string;
10249
10891
  };
10250
- Relationships: [{
10251
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
10252
- columns: ["monteur_id"];
10253
- isOneToOne: true;
10254
- referencedRelation: "monteurs";
10255
- referencedColumns: ["id"];
10256
- }];
10892
+ Relationships: [];
10257
10893
  };
10258
10894
  nmbrs_export_lines: {
10259
10895
  Row: {
@@ -10302,12 +10938,6 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
10302
10938
  wage_code?: string;
10303
10939
  };
10304
10940
  Relationships: [{
10305
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10306
- columns: ["monteur_id"];
10307
- isOneToOne: false;
10308
- referencedRelation: "monteurs";
10309
- referencedColumns: ["id"];
10310
- }, {
10311
10941
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10312
10942
  columns: ["run_id"];
10313
10943
  isOneToOne: false;
@@ -11130,6 +11760,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
11130
11760
  };
11131
11761
  order_invoice_links: {
11132
11762
  Row: {
11763
+ administration_code: string | null;
11133
11764
  attempts: number;
11134
11765
  created_at: string;
11135
11766
  error_message: string | null;
@@ -11142,6 +11773,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
11142
11773
  updated_at: string;
11143
11774
  };
11144
11775
  Insert: {
11776
+ administration_code?: string | null;
11145
11777
  attempts?: number;
11146
11778
  created_at?: string;
11147
11779
  error_message?: string | null;
@@ -11154,6 +11786,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
11154
11786
  updated_at?: string;
11155
11787
  };
11156
11788
  Update: {
11789
+ administration_code?: string | null;
11157
11790
  attempts?: number;
11158
11791
  created_at?: string;
11159
11792
  error_message?: string | null;
@@ -11341,6 +11974,8 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
11341
11974
  orders: {
11342
11975
  Row: {
11343
11976
  buffer_id: string | null;
11977
+ cancel_reason: string | null;
11978
+ cancelled_at: string | null;
11344
11979
  created_at: string;
11345
11980
  custom_fields: import("../integrations/supabase/types.js").Json;
11346
11981
  customer_id: string | null;
@@ -11363,6 +11998,8 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
11363
11998
  };
11364
11999
  Insert: {
11365
12000
  buffer_id?: string | null;
12001
+ cancel_reason?: string | null;
12002
+ cancelled_at?: string | null;
11366
12003
  created_at?: string;
11367
12004
  custom_fields?: import("../integrations/supabase/types.js").Json;
11368
12005
  customer_id?: string | null;
@@ -11385,6 +12022,8 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
11385
12022
  };
11386
12023
  Update: {
11387
12024
  buffer_id?: string | null;
12025
+ cancel_reason?: string | null;
12026
+ cancelled_at?: string | null;
11388
12027
  created_at?: string;
11389
12028
  custom_fields?: import("../integrations/supabase/types.js").Json;
11390
12029
  customer_id?: string | null;
@@ -12313,6 +12952,27 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
12313
12952
  referencedColumns: ["id"];
12314
12953
  }];
12315
12954
  };
12955
+ pick_sync_state: {
12956
+ Row: {
12957
+ id: boolean;
12958
+ last_cleanup_at: string | null;
12959
+ last_sync_at: string | null;
12960
+ updated_at: string;
12961
+ };
12962
+ Insert: {
12963
+ id?: boolean;
12964
+ last_cleanup_at?: string | null;
12965
+ last_sync_at?: string | null;
12966
+ updated_at?: string;
12967
+ };
12968
+ Update: {
12969
+ id?: boolean;
12970
+ last_cleanup_at?: string | null;
12971
+ last_sync_at?: string | null;
12972
+ updated_at?: string;
12973
+ };
12974
+ Relationships: [];
12975
+ };
12316
12976
  pick_task_document_types: {
12317
12977
  Row: {
12318
12978
  created_at: string;
@@ -12595,6 +13255,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
12595
13255
  gebruiker_id: string | null;
12596
13256
  gebruiker_naam: string;
12597
13257
  gestart_op: string | null;
13258
+ herkomst: string | null;
12598
13259
  id: string;
12599
13260
  idempotentie_sleutel: string | null;
12600
13261
  is_herprint: boolean;
@@ -12624,6 +13285,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
12624
13285
  gebruiker_id?: string | null;
12625
13286
  gebruiker_naam?: string;
12626
13287
  gestart_op?: string | null;
13288
+ herkomst?: string | null;
12627
13289
  id?: string;
12628
13290
  idempotentie_sleutel?: string | null;
12629
13291
  is_herprint?: boolean;
@@ -12653,6 +13315,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
12653
13315
  gebruiker_id?: string | null;
12654
13316
  gebruiker_naam?: string;
12655
13317
  gestart_op?: string | null;
13318
+ herkomst?: string | null;
12656
13319
  id?: string;
12657
13320
  idempotentie_sleutel?: string | null;
12658
13321
  is_herprint?: boolean;
@@ -13447,6 +14110,66 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
13447
14110
  };
13448
14111
  Relationships: [];
13449
14112
  };
14113
+ profile_modules: {
14114
+ Row: {
14115
+ created_at: string;
14116
+ id: string;
14117
+ module_id: string;
14118
+ profile_id: string;
14119
+ };
14120
+ Insert: {
14121
+ created_at?: string;
14122
+ id?: string;
14123
+ module_id: string;
14124
+ profile_id: string;
14125
+ };
14126
+ Update: {
14127
+ created_at?: string;
14128
+ id?: string;
14129
+ module_id?: string;
14130
+ profile_id?: string;
14131
+ };
14132
+ Relationships: [{
14133
+ foreignKeyName: "profile_modules_profile_id_fkey";
14134
+ columns: ["profile_id"];
14135
+ isOneToOne: false;
14136
+ referencedRelation: "profiles_org";
14137
+ referencedColumns: ["id"];
14138
+ }];
14139
+ };
14140
+ profile_roles: {
14141
+ Row: {
14142
+ created_at: string;
14143
+ id: string;
14144
+ profile_id: string;
14145
+ role_id: string;
14146
+ };
14147
+ Insert: {
14148
+ created_at?: string;
14149
+ id?: string;
14150
+ profile_id: string;
14151
+ role_id: string;
14152
+ };
14153
+ Update: {
14154
+ created_at?: string;
14155
+ id?: string;
14156
+ profile_id?: string;
14157
+ role_id?: string;
14158
+ };
14159
+ Relationships: [{
14160
+ foreignKeyName: "profile_roles_profile_id_fkey";
14161
+ columns: ["profile_id"];
14162
+ isOneToOne: false;
14163
+ referencedRelation: "profiles_org";
14164
+ referencedColumns: ["id"];
14165
+ }, {
14166
+ foreignKeyName: "profile_roles_role_id_fkey";
14167
+ columns: ["role_id"];
14168
+ isOneToOne: false;
14169
+ referencedRelation: "roles";
14170
+ referencedColumns: ["id"];
14171
+ }];
14172
+ };
13450
14173
  profiles: {
13451
14174
  Row: {
13452
14175
  address: string | null;
@@ -13492,6 +14215,39 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
13492
14215
  referencedColumns: ["id"];
13493
14216
  }];
13494
14217
  };
14218
+ profiles_org: {
14219
+ Row: {
14220
+ created_at: string;
14221
+ id: string;
14222
+ is_default: boolean;
14223
+ name: string;
14224
+ tenant_id: string | null;
14225
+ updated_at: string;
14226
+ };
14227
+ Insert: {
14228
+ created_at?: string;
14229
+ id?: string;
14230
+ is_default?: boolean;
14231
+ name: string;
14232
+ tenant_id?: string | null;
14233
+ updated_at?: string;
14234
+ };
14235
+ Update: {
14236
+ created_at?: string;
14237
+ id?: string;
14238
+ is_default?: boolean;
14239
+ name?: string;
14240
+ tenant_id?: string | null;
14241
+ updated_at?: string;
14242
+ };
14243
+ Relationships: [{
14244
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14245
+ columns: ["tenant_id"];
14246
+ isOneToOne: false;
14247
+ referencedRelation: "tenants";
14248
+ referencedColumns: ["id"];
14249
+ }];
14250
+ };
13495
14251
  projects: {
13496
14252
  Row: {
13497
14253
  contact_name: string | null;
@@ -14666,6 +15422,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
14666
15422
  type: string;
14667
15423
  updated_at: string;
14668
15424
  vereist_medewerker: boolean;
15425
+ werkplek: string | null;
14669
15426
  };
14670
15427
  Insert: {
14671
15428
  actief?: boolean;
@@ -14679,6 +15436,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
14679
15436
  type?: string;
14680
15437
  updated_at?: string;
14681
15438
  vereist_medewerker?: boolean;
15439
+ werkplek?: string | null;
14682
15440
  };
14683
15441
  Update: {
14684
15442
  actief?: boolean;
@@ -14692,9 +15450,46 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
14692
15450
  type?: string;
14693
15451
  updated_at?: string;
14694
15452
  vereist_medewerker?: boolean;
15453
+ werkplek?: string | null;
14695
15454
  };
14696
15455
  Relationships: [];
14697
15456
  };
15457
+ sick_periods: {
15458
+ Row: {
15459
+ created_at: string;
15460
+ employee_id: string;
15461
+ end_date: string | null;
15462
+ id: string;
15463
+ notes: string | null;
15464
+ start_date: string;
15465
+ updated_at: string;
15466
+ };
15467
+ Insert: {
15468
+ created_at?: string;
15469
+ employee_id: string;
15470
+ end_date?: string | null;
15471
+ id?: string;
15472
+ notes?: string | null;
15473
+ start_date: string;
15474
+ updated_at?: string;
15475
+ };
15476
+ Update: {
15477
+ created_at?: string;
15478
+ employee_id?: string;
15479
+ end_date?: string | null;
15480
+ id?: string;
15481
+ notes?: string | null;
15482
+ start_date?: string;
15483
+ updated_at?: string;
15484
+ };
15485
+ Relationships: [{
15486
+ foreignKeyName: "sick_periods_employee_id_fkey";
15487
+ columns: ["employee_id"];
15488
+ isOneToOne: false;
15489
+ referencedRelation: "profiles";
15490
+ referencedColumns: ["id"];
15491
+ }];
15492
+ };
14698
15493
  sidebar_config: {
14699
15494
  Row: {
14700
15495
  id: string;
@@ -14992,6 +15787,54 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
14992
15787
  };
14993
15788
  Relationships: [];
14994
15789
  };
15790
+ time_compensation_entries: {
15791
+ Row: {
15792
+ created_at: string;
15793
+ employee_id: string;
15794
+ entry_date: string;
15795
+ id: string;
15796
+ km: number;
15797
+ meal_allowance: number;
15798
+ notes: string | null;
15799
+ standby_evening: number;
15800
+ standby_weekend: number;
15801
+ tvt_change: number;
15802
+ updated_at: string;
15803
+ };
15804
+ Insert: {
15805
+ created_at?: string;
15806
+ employee_id: string;
15807
+ entry_date: string;
15808
+ id?: string;
15809
+ km?: number;
15810
+ meal_allowance?: number;
15811
+ notes?: string | null;
15812
+ standby_evening?: number;
15813
+ standby_weekend?: number;
15814
+ tvt_change?: number;
15815
+ updated_at?: string;
15816
+ };
15817
+ Update: {
15818
+ created_at?: string;
15819
+ employee_id?: string;
15820
+ entry_date?: string;
15821
+ id?: string;
15822
+ km?: number;
15823
+ meal_allowance?: number;
15824
+ notes?: string | null;
15825
+ standby_evening?: number;
15826
+ standby_weekend?: number;
15827
+ tvt_change?: number;
15828
+ updated_at?: string;
15829
+ };
15830
+ Relationships: [{
15831
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
15832
+ columns: ["employee_id"];
15833
+ isOneToOne: false;
15834
+ referencedRelation: "profiles";
15835
+ referencedColumns: ["id"];
15836
+ }];
15837
+ };
14995
15838
  time_entries: {
14996
15839
  Row: {
14997
15840
  created_at: string;
@@ -15026,65 +15869,170 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
15026
15869
  undertime?: number;
15027
15870
  updated_at?: string;
15028
15871
  };
15872
+ Relationships: [];
15873
+ };
15874
+ time_log_week_approvals: {
15875
+ Row: {
15876
+ approved_at: string | null;
15877
+ approved_by: string | null;
15878
+ created_at: string;
15879
+ employee_id: string;
15880
+ id: string;
15881
+ locked: boolean;
15882
+ notes: string | null;
15883
+ status: string;
15884
+ submitted_at: string | null;
15885
+ updated_at: string;
15886
+ week_start: string;
15887
+ };
15888
+ Insert: {
15889
+ approved_at?: string | null;
15890
+ approved_by?: string | null;
15891
+ created_at?: string;
15892
+ employee_id: string;
15893
+ id?: string;
15894
+ locked?: boolean;
15895
+ notes?: string | null;
15896
+ status?: string;
15897
+ submitted_at?: string | null;
15898
+ updated_at?: string;
15899
+ week_start: string;
15900
+ };
15901
+ Update: {
15902
+ approved_at?: string | null;
15903
+ approved_by?: string | null;
15904
+ created_at?: string;
15905
+ employee_id?: string;
15906
+ id?: string;
15907
+ locked?: boolean;
15908
+ notes?: string | null;
15909
+ status?: string;
15910
+ submitted_at?: string | null;
15911
+ updated_at?: string;
15912
+ week_start?: string;
15913
+ };
15029
15914
  Relationships: [{
15030
- foreignKeyName: "time_entries_employee_id_fkey";
15915
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
15031
15916
  columns: ["employee_id"];
15032
15917
  isOneToOne: false;
15033
- referencedRelation: "monteurs";
15918
+ referencedRelation: "profiles";
15034
15919
  referencedColumns: ["id"];
15035
15920
  }];
15036
15921
  };
15037
15922
  time_logs: {
15038
15923
  Row: {
15924
+ auto_stop_reason: string | null;
15925
+ auto_stopped: boolean;
15039
15926
  created_at: string;
15927
+ current_latitude: number | null;
15928
+ current_longitude: number | null;
15929
+ current_position_updated_at: string | null;
15040
15930
  employee_id: string;
15931
+ end_latitude: number | null;
15932
+ end_longitude: number | null;
15041
15933
  end_time: string | null;
15934
+ eta_distance_km: number | null;
15935
+ eta_minutes: number | null;
15936
+ eta_updated_at: string | null;
15937
+ hour_category: string | null;
15042
15938
  id: string;
15939
+ last_reminder_at: string | null;
15043
15940
  notes: string | null;
15044
15941
  overtime_hours: number;
15045
15942
  overtime_type: string | null;
15046
15943
  regular_hours: number;
15944
+ reminder_count: number;
15945
+ requires_review: boolean;
15946
+ start_latitude: number | null;
15947
+ start_longitude: number | null;
15047
15948
  start_time: string;
15048
15949
  travel_cost: number | null;
15049
15950
  travel_distance_km: number | null;
15951
+ travel_duration_min: number | null;
15952
+ travel_time_minutes: number | null;
15050
15953
  type: string;
15051
15954
  updated_at: string;
15955
+ work_order_id: string | null;
15052
15956
  };
15053
15957
  Insert: {
15958
+ auto_stop_reason?: string | null;
15959
+ auto_stopped?: boolean;
15054
15960
  created_at?: string;
15961
+ current_latitude?: number | null;
15962
+ current_longitude?: number | null;
15963
+ current_position_updated_at?: string | null;
15055
15964
  employee_id: string;
15965
+ end_latitude?: number | null;
15966
+ end_longitude?: number | null;
15056
15967
  end_time?: string | null;
15968
+ eta_distance_km?: number | null;
15969
+ eta_minutes?: number | null;
15970
+ eta_updated_at?: string | null;
15971
+ hour_category?: string | null;
15057
15972
  id?: string;
15973
+ last_reminder_at?: string | null;
15058
15974
  notes?: string | null;
15059
15975
  overtime_hours?: number;
15060
15976
  overtime_type?: string | null;
15061
15977
  regular_hours?: number;
15978
+ reminder_count?: number;
15979
+ requires_review?: boolean;
15980
+ start_latitude?: number | null;
15981
+ start_longitude?: number | null;
15062
15982
  start_time?: string;
15063
15983
  travel_cost?: number | null;
15064
15984
  travel_distance_km?: number | null;
15985
+ travel_duration_min?: number | null;
15986
+ travel_time_minutes?: number | null;
15065
15987
  type: string;
15066
15988
  updated_at?: string;
15989
+ work_order_id?: string | null;
15067
15990
  };
15068
15991
  Update: {
15992
+ auto_stop_reason?: string | null;
15993
+ auto_stopped?: boolean;
15069
15994
  created_at?: string;
15995
+ current_latitude?: number | null;
15996
+ current_longitude?: number | null;
15997
+ current_position_updated_at?: string | null;
15070
15998
  employee_id?: string;
15999
+ end_latitude?: number | null;
16000
+ end_longitude?: number | null;
15071
16001
  end_time?: string | null;
16002
+ eta_distance_km?: number | null;
16003
+ eta_minutes?: number | null;
16004
+ eta_updated_at?: string | null;
16005
+ hour_category?: string | null;
15072
16006
  id?: string;
16007
+ last_reminder_at?: string | null;
15073
16008
  notes?: string | null;
15074
16009
  overtime_hours?: number;
15075
16010
  overtime_type?: string | null;
15076
16011
  regular_hours?: number;
16012
+ reminder_count?: number;
16013
+ requires_review?: boolean;
16014
+ start_latitude?: number | null;
16015
+ start_longitude?: number | null;
15077
16016
  start_time?: string;
15078
16017
  travel_cost?: number | null;
15079
16018
  travel_distance_km?: number | null;
16019
+ travel_duration_min?: number | null;
16020
+ travel_time_minutes?: number | null;
15080
16021
  type?: string;
15081
16022
  updated_at?: string;
16023
+ work_order_id?: string | null;
15082
16024
  };
15083
16025
  Relationships: [{
15084
16026
  foreignKeyName: "time_logs_employee_id_fkey";
15085
16027
  columns: ["employee_id"];
15086
16028
  isOneToOne: false;
15087
- referencedRelation: "monteurs";
16029
+ referencedRelation: "profiles";
16030
+ referencedColumns: ["id"];
16031
+ }, {
16032
+ foreignKeyName: "time_logs_work_order_id_fkey";
16033
+ columns: ["work_order_id"];
16034
+ isOneToOne: false;
16035
+ referencedRelation: "work_orders";
15088
16036
  referencedColumns: ["id"];
15089
16037
  }];
15090
16038
  };
@@ -15123,7 +16071,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
15123
16071
  foreignKeyName: "time_off_entries_employee_id_fkey";
15124
16072
  columns: ["employee_id"];
15125
16073
  isOneToOne: false;
15126
- referencedRelation: "monteurs";
16074
+ referencedRelation: "profiles";
15127
16075
  referencedColumns: ["id"];
15128
16076
  }];
15129
16077
  };
@@ -15372,12 +16320,16 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
15372
16320
  company_name: string | null;
15373
16321
  connected_at: string | null;
15374
16322
  created_at: string;
16323
+ disconnected_at: string | null;
15375
16324
  environment: string;
15376
16325
  id: string;
16326
+ initial_sync_completed_at: string | null;
16327
+ initial_sync_started_at: string | null;
15377
16328
  is_active: boolean;
15378
16329
  label: string | null;
15379
16330
  office_code: string | null;
15380
16331
  redirect_uri: string | null;
16332
+ superseded_at: string | null;
15381
16333
  updated_at: string;
15382
16334
  user_id: string;
15383
16335
  };
@@ -15388,12 +16340,16 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
15388
16340
  company_name?: string | null;
15389
16341
  connected_at?: string | null;
15390
16342
  created_at?: string;
16343
+ disconnected_at?: string | null;
15391
16344
  environment: string;
15392
16345
  id?: string;
16346
+ initial_sync_completed_at?: string | null;
16347
+ initial_sync_started_at?: string | null;
15393
16348
  is_active?: boolean;
15394
16349
  label?: string | null;
15395
16350
  office_code?: string | null;
15396
16351
  redirect_uri?: string | null;
16352
+ superseded_at?: string | null;
15397
16353
  updated_at?: string;
15398
16354
  user_id: string;
15399
16355
  };
@@ -15404,12 +16360,16 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
15404
16360
  company_name?: string | null;
15405
16361
  connected_at?: string | null;
15406
16362
  created_at?: string;
16363
+ disconnected_at?: string | null;
15407
16364
  environment?: string;
15408
16365
  id?: string;
16366
+ initial_sync_completed_at?: string | null;
16367
+ initial_sync_started_at?: string | null;
15409
16368
  is_active?: boolean;
15410
16369
  label?: string | null;
15411
16370
  office_code?: string | null;
15412
16371
  redirect_uri?: string | null;
16372
+ superseded_at?: string | null;
15413
16373
  updated_at?: string;
15414
16374
  user_id?: string;
15415
16375
  };
@@ -15428,14 +16388,48 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
15428
16388
  };
15429
16389
  Update: {
15430
16390
  created_at?: string;
15431
- id?: number;
15432
- secret?: string;
16391
+ id?: number;
16392
+ secret?: string;
16393
+ };
16394
+ Relationships: [];
16395
+ };
16396
+ twinfield_cron_locks: {
16397
+ Row: {
16398
+ created_at: string;
16399
+ heartbeat_at: string;
16400
+ job_name: string;
16401
+ last_error: string | null;
16402
+ last_finished_at: string | null;
16403
+ locked_at: string;
16404
+ run_id: string;
16405
+ updated_at: string;
16406
+ };
16407
+ Insert: {
16408
+ created_at?: string;
16409
+ heartbeat_at?: string;
16410
+ job_name: string;
16411
+ last_error?: string | null;
16412
+ last_finished_at?: string | null;
16413
+ locked_at?: string;
16414
+ run_id?: string;
16415
+ updated_at?: string;
16416
+ };
16417
+ Update: {
16418
+ created_at?: string;
16419
+ heartbeat_at?: string;
16420
+ job_name?: string;
16421
+ last_error?: string | null;
16422
+ last_finished_at?: string | null;
16423
+ locked_at?: string;
16424
+ run_id?: string;
16425
+ updated_at?: string;
15433
16426
  };
15434
16427
  Relationships: [];
15435
16428
  };
15436
16429
  twinfield_customers: {
15437
16430
  Row: {
15438
16431
  address: string | null;
16432
+ administration_code: string;
15439
16433
  city: string | null;
15440
16434
  country: string | null;
15441
16435
  created_at: string;
@@ -15455,6 +16449,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
15455
16449
  };
15456
16450
  Insert: {
15457
16451
  address?: string | null;
16452
+ administration_code?: string;
15458
16453
  city?: string | null;
15459
16454
  country?: string | null;
15460
16455
  created_at?: string;
@@ -15474,6 +16469,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
15474
16469
  };
15475
16470
  Update: {
15476
16471
  address?: string | null;
16472
+ administration_code?: string;
15477
16473
  city?: string | null;
15478
16474
  country?: string | null;
15479
16475
  created_at?: string;
@@ -15687,7 +16683,9 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
15687
16683
  };
15688
16684
  twinfield_invoice_settings: {
15689
16685
  Row: {
16686
+ administration_code: string | null;
15690
16687
  auto_invoice_enabled: boolean;
16688
+ auto_invoice_start_date: string | null;
15691
16689
  auto_invoice_trigger_statuses: string[];
15692
16690
  created_at: string;
15693
16691
  debtor_gl_account: string;
@@ -15701,15 +16699,19 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
15701
16699
  invoice_enabled_fo: boolean;
15702
16700
  invoice_enabled_ho: boolean;
15703
16701
  invoice_enabled_mo: boolean;
16702
+ needs_review: boolean;
15704
16703
  payment_gl_account: string;
15705
16704
  payment_journal_code: string;
16705
+ settings_confirmed_at: string | null;
15706
16706
  updated_at: string;
15707
16707
  user_id: string;
15708
16708
  vat_code_eu_reverse: string | null;
15709
16709
  vat_code_export: string | null;
15710
16710
  };
15711
16711
  Insert: {
16712
+ administration_code?: string | null;
15712
16713
  auto_invoice_enabled?: boolean;
16714
+ auto_invoice_start_date?: string | null;
15713
16715
  auto_invoice_trigger_statuses?: string[];
15714
16716
  created_at?: string;
15715
16717
  debtor_gl_account?: string;
@@ -15723,15 +16725,19 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
15723
16725
  invoice_enabled_fo?: boolean;
15724
16726
  invoice_enabled_ho?: boolean;
15725
16727
  invoice_enabled_mo?: boolean;
16728
+ needs_review?: boolean;
15726
16729
  payment_gl_account?: string;
15727
16730
  payment_journal_code?: string;
16731
+ settings_confirmed_at?: string | null;
15728
16732
  updated_at?: string;
15729
16733
  user_id: string;
15730
16734
  vat_code_eu_reverse?: string | null;
15731
16735
  vat_code_export?: string | null;
15732
16736
  };
15733
16737
  Update: {
16738
+ administration_code?: string | null;
15734
16739
  auto_invoice_enabled?: boolean;
16740
+ auto_invoice_start_date?: string | null;
15735
16741
  auto_invoice_trigger_statuses?: string[];
15736
16742
  created_at?: string;
15737
16743
  debtor_gl_account?: string;
@@ -15745,8 +16751,10 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
15745
16751
  invoice_enabled_fo?: boolean;
15746
16752
  invoice_enabled_ho?: boolean;
15747
16753
  invoice_enabled_mo?: boolean;
16754
+ needs_review?: boolean;
15748
16755
  payment_gl_account?: string;
15749
16756
  payment_journal_code?: string;
16757
+ settings_confirmed_at?: string | null;
15750
16758
  updated_at?: string;
15751
16759
  user_id?: string;
15752
16760
  vat_code_eu_reverse?: string | null;
@@ -16033,6 +17041,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
16033
17041
  twinfield_push_queue: {
16034
17042
  Row: {
16035
17043
  action: string;
17044
+ attempt_started_at: string | null;
16036
17045
  attempts: number;
16037
17046
  connection_id: string | null;
16038
17047
  created_at: string;
@@ -16049,6 +17058,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
16049
17058
  };
16050
17059
  Insert: {
16051
17060
  action?: string;
17061
+ attempt_started_at?: string | null;
16052
17062
  attempts?: number;
16053
17063
  connection_id?: string | null;
16054
17064
  created_at?: string;
@@ -16065,6 +17075,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
16065
17075
  };
16066
17076
  Update: {
16067
17077
  action?: string;
17078
+ attempt_started_at?: string | null;
16068
17079
  attempts?: number;
16069
17080
  connection_id?: string | null;
16070
17081
  created_at?: string;
@@ -16262,13 +17273,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
16262
17273
  workday_end?: string | null;
16263
17274
  workday_start?: string | null;
16264
17275
  };
16265
- Relationships: [{
16266
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
16267
- columns: ["monteur_id"];
16268
- isOneToOne: true;
16269
- referencedRelation: "monteurs";
16270
- referencedColumns: ["id"];
16271
- }];
17276
+ Relationships: [];
16272
17277
  };
16273
17278
  uren_entries: {
16274
17279
  Row: {
@@ -16314,12 +17319,6 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
16314
17319
  werkbon_id?: string | null;
16315
17320
  };
16316
17321
  Relationships: [{
16317
- foreignKeyName: "uren_entries_monteur_id_fkey";
16318
- columns: ["monteur_id"];
16319
- isOneToOne: false;
16320
- referencedRelation: "monteurs";
16321
- referencedColumns: ["id"];
16322
- }, {
16323
17322
  foreignKeyName: "uren_entries_werkbon_id_fkey";
16324
17323
  columns: ["werkbon_id"];
16325
17324
  isOneToOne: false;
@@ -16360,114 +17359,6 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
16360
17359
  };
16361
17360
  Relationships: [];
16362
17361
  };
16363
- uren_facturen: {
16364
- Row: {
16365
- created_at: string;
16366
- created_by: string | null;
16367
- customer_id: string | null;
16368
- customer_name: string | null;
16369
- id: string;
16370
- invoice_number: string | null;
16371
- note: string | null;
16372
- status: string;
16373
- total_excl_cents: number;
16374
- total_incl_cents: number;
16375
- updated_at: string;
16376
- vat_cents: number;
16377
- vat_percentage: number;
16378
- werkbon_id: string | null;
16379
- };
16380
- Insert: {
16381
- created_at?: string;
16382
- created_by?: string | null;
16383
- customer_id?: string | null;
16384
- customer_name?: string | null;
16385
- id?: string;
16386
- invoice_number?: string | null;
16387
- note?: string | null;
16388
- status?: string;
16389
- total_excl_cents?: number;
16390
- total_incl_cents?: number;
16391
- updated_at?: string;
16392
- vat_cents?: number;
16393
- vat_percentage?: number;
16394
- werkbon_id?: string | null;
16395
- };
16396
- Update: {
16397
- created_at?: string;
16398
- created_by?: string | null;
16399
- customer_id?: string | null;
16400
- customer_name?: string | null;
16401
- id?: string;
16402
- invoice_number?: string | null;
16403
- note?: string | null;
16404
- status?: string;
16405
- total_excl_cents?: number;
16406
- total_incl_cents?: number;
16407
- updated_at?: string;
16408
- vat_cents?: number;
16409
- vat_percentage?: number;
16410
- werkbon_id?: string | null;
16411
- };
16412
- Relationships: [{
16413
- foreignKeyName: "uren_facturen_customer_id_fkey";
16414
- columns: ["customer_id"];
16415
- isOneToOne: false;
16416
- referencedRelation: "itk_customers";
16417
- referencedColumns: ["id"];
16418
- }, {
16419
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
16420
- columns: ["werkbon_id"];
16421
- isOneToOne: true;
16422
- referencedRelation: "werkbonnen";
16423
- referencedColumns: ["id"];
16424
- }];
16425
- };
16426
- uren_factuur_regels: {
16427
- Row: {
16428
- created_at: string;
16429
- description: string;
16430
- factuur_id: string;
16431
- id: string;
16432
- kind: string | null;
16433
- quantity: number;
16434
- sort_order: number;
16435
- total_cents: number;
16436
- unit: string;
16437
- unit_price_cents: number;
16438
- };
16439
- Insert: {
16440
- created_at?: string;
16441
- description: string;
16442
- factuur_id: string;
16443
- id?: string;
16444
- kind?: string | null;
16445
- quantity?: number;
16446
- sort_order?: number;
16447
- total_cents?: number;
16448
- unit?: string;
16449
- unit_price_cents?: number;
16450
- };
16451
- Update: {
16452
- created_at?: string;
16453
- description?: string;
16454
- factuur_id?: string;
16455
- id?: string;
16456
- kind?: string | null;
16457
- quantity?: number;
16458
- sort_order?: number;
16459
- total_cents?: number;
16460
- unit?: string;
16461
- unit_price_cents?: number;
16462
- };
16463
- Relationships: [{
16464
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
16465
- columns: ["factuur_id"];
16466
- isOneToOne: false;
16467
- referencedRelation: "uren_facturen";
16468
- referencedColumns: ["id"];
16469
- }];
16470
- };
16471
17362
  uren_offerte_regels: {
16472
17363
  Row: {
16473
17364
  created_at: string;
@@ -16787,13 +17678,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
16787
17678
  submitted_at?: string | null;
16788
17679
  updated_at?: string;
16789
17680
  };
16790
- Relationships: [{
16791
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16792
- columns: ["monteur_id"];
16793
- isOneToOne: false;
16794
- referencedRelation: "monteurs";
16795
- referencedColumns: ["id"];
16796
- }];
17681
+ Relationships: [];
16797
17682
  };
16798
17683
  user_module_permissions: {
16799
17684
  Row: {
@@ -16852,6 +17737,51 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
16852
17737
  referencedColumns: ["id"];
16853
17738
  }];
16854
17739
  };
17740
+ van_inventories: {
17741
+ Row: {
17742
+ barcode: string | null;
17743
+ created_at: string;
17744
+ id: string;
17745
+ monteur_id: string | null;
17746
+ price_per_unit: number;
17747
+ product_name: string;
17748
+ quantity_current: number;
17749
+ quantity_min: number;
17750
+ unit: string;
17751
+ updated_at: string;
17752
+ };
17753
+ Insert: {
17754
+ barcode?: string | null;
17755
+ created_at?: string;
17756
+ id?: string;
17757
+ monteur_id?: string | null;
17758
+ price_per_unit?: number;
17759
+ product_name: string;
17760
+ quantity_current?: number;
17761
+ quantity_min?: number;
17762
+ unit?: string;
17763
+ updated_at?: string;
17764
+ };
17765
+ Update: {
17766
+ barcode?: string | null;
17767
+ created_at?: string;
17768
+ id?: string;
17769
+ monteur_id?: string | null;
17770
+ price_per_unit?: number;
17771
+ product_name?: string;
17772
+ quantity_current?: number;
17773
+ quantity_min?: number;
17774
+ unit?: string;
17775
+ updated_at?: string;
17776
+ };
17777
+ Relationships: [{
17778
+ foreignKeyName: "van_inventories_monteur_id_fkey";
17779
+ columns: ["monteur_id"];
17780
+ isOneToOne: false;
17781
+ referencedRelation: "profiles";
17782
+ referencedColumns: ["id"];
17783
+ }];
17784
+ };
16855
17785
  voorraad_custom_fields: {
16856
17786
  Row: {
16857
17787
  created_at: string;
@@ -17682,6 +18612,9 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
17682
18612
  scheduled_end_time: string | null;
17683
18613
  scheduled_start_time: string | null;
17684
18614
  sequence_number: number;
18615
+ signature_accepted_at: string | null;
18616
+ signature_by_user_id: string | null;
18617
+ signature_name: string | null;
17685
18618
  source_email_meta: import("../integrations/supabase/types.js").Json | null;
17686
18619
  source_mailbox_message_id: string | null;
17687
18620
  source_pdf_path: string | null;
@@ -17717,6 +18650,9 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
17717
18650
  scheduled_end_time?: string | null;
17718
18651
  scheduled_start_time?: string | null;
17719
18652
  sequence_number: number;
18653
+ signature_accepted_at?: string | null;
18654
+ signature_by_user_id?: string | null;
18655
+ signature_name?: string | null;
17720
18656
  source_email_meta?: import("../integrations/supabase/types.js").Json | null;
17721
18657
  source_mailbox_message_id?: string | null;
17722
18658
  source_pdf_path?: string | null;
@@ -17752,6 +18688,9 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
17752
18688
  scheduled_end_time?: string | null;
17753
18689
  scheduled_start_time?: string | null;
17754
18690
  sequence_number?: number;
18691
+ signature_accepted_at?: string | null;
18692
+ signature_by_user_id?: string | null;
18693
+ signature_name?: string | null;
17755
18694
  source_email_meta?: import("../integrations/supabase/types.js").Json | null;
17756
18695
  source_mailbox_message_id?: string | null;
17757
18696
  source_pdf_path?: string | null;
@@ -17802,7 +18741,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
17802
18741
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17803
18742
  columns: ["monteur_id"];
17804
18743
  isOneToOne: false;
17805
- referencedRelation: "monteurs";
18744
+ referencedRelation: "profiles";
17806
18745
  referencedColumns: ["id"];
17807
18746
  }, {
17808
18747
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17812,6 +18751,60 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
17812
18751
  referencedColumns: ["id"];
17813
18752
  }];
17814
18753
  };
18754
+ work_order_photos: {
18755
+ Row: {
18756
+ ai_caption: string | null;
18757
+ ai_categorized_at: string | null;
18758
+ ai_labels: import("../integrations/supabase/types.js").Json | null;
18759
+ caption: string | null;
18760
+ created_at: string;
18761
+ id: string;
18762
+ monteur_id: string | null;
18763
+ photo_type: string;
18764
+ storage_path: string;
18765
+ updated_at: string;
18766
+ work_order_id: string;
18767
+ };
18768
+ Insert: {
18769
+ ai_caption?: string | null;
18770
+ ai_categorized_at?: string | null;
18771
+ ai_labels?: import("../integrations/supabase/types.js").Json | null;
18772
+ caption?: string | null;
18773
+ created_at?: string;
18774
+ id?: string;
18775
+ monteur_id?: string | null;
18776
+ photo_type?: string;
18777
+ storage_path: string;
18778
+ updated_at?: string;
18779
+ work_order_id: string;
18780
+ };
18781
+ Update: {
18782
+ ai_caption?: string | null;
18783
+ ai_categorized_at?: string | null;
18784
+ ai_labels?: import("../integrations/supabase/types.js").Json | null;
18785
+ caption?: string | null;
18786
+ created_at?: string;
18787
+ id?: string;
18788
+ monteur_id?: string | null;
18789
+ photo_type?: string;
18790
+ storage_path?: string;
18791
+ updated_at?: string;
18792
+ work_order_id?: string;
18793
+ };
18794
+ Relationships: [{
18795
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
18796
+ columns: ["monteur_id"];
18797
+ isOneToOne: false;
18798
+ referencedRelation: "profiles";
18799
+ referencedColumns: ["id"];
18800
+ }, {
18801
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
18802
+ columns: ["work_order_id"];
18803
+ isOneToOne: false;
18804
+ referencedRelation: "work_orders";
18805
+ referencedColumns: ["id"];
18806
+ }];
18807
+ };
17815
18808
  work_orders: {
17816
18809
  Row: {
17817
18810
  assigned_to: string | null;
@@ -17843,7 +18836,6 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
17843
18836
  scheduled_end_time: string | null;
17844
18837
  scheduled_start_time: string | null;
17845
18838
  status: string;
17846
- tenant_id: string;
17847
18839
  total_hours_worked: number | null;
17848
18840
  total_price: number | null;
17849
18841
  travel_time_minutes: number | null;
@@ -17881,7 +18873,6 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
17881
18873
  scheduled_end_time?: string | null;
17882
18874
  scheduled_start_time?: string | null;
17883
18875
  status?: string;
17884
- tenant_id: string;
17885
18876
  total_hours_worked?: number | null;
17886
18877
  total_price?: number | null;
17887
18878
  travel_time_minutes?: number | null;
@@ -17919,7 +18910,6 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
17919
18910
  scheduled_end_time?: string | null;
17920
18911
  scheduled_start_time?: string | null;
17921
18912
  status?: string;
17922
- tenant_id?: string;
17923
18913
  total_hours_worked?: number | null;
17924
18914
  total_price?: number | null;
17925
18915
  travel_time_minutes?: number | null;
@@ -17933,12 +18923,6 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
17933
18923
  isOneToOne: false;
17934
18924
  referencedRelation: "work_orders";
17935
18925
  referencedColumns: ["id"];
17936
- }, {
17937
- foreignKeyName: "work_orders_tenant_id_fkey";
17938
- columns: ["tenant_id"];
17939
- isOneToOne: false;
17940
- referencedRelation: "tenants";
17941
- referencedColumns: ["id"];
17942
18926
  }];
17943
18927
  };
17944
18928
  };
@@ -18209,19 +19193,127 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
18209
19193
  total_stock: number | null;
18210
19194
  };
18211
19195
  Relationships: [{
18212
- foreignKeyName: "product_group_items_product_group_id_fkey";
18213
- columns: ["product_group_id"];
19196
+ foreignKeyName: "product_group_items_product_group_id_fkey";
19197
+ columns: ["product_group_id"];
19198
+ isOneToOne: false;
19199
+ referencedRelation: "product_groups";
19200
+ referencedColumns: ["id"];
19201
+ }];
19202
+ };
19203
+ trade_item_stock_view: {
19204
+ Row: {
19205
+ stock: number | null;
19206
+ trade_item_id: string | null;
19207
+ };
19208
+ Relationships: [];
19209
+ };
19210
+ uren_facturen: {
19211
+ Row: {
19212
+ created_at: string | null;
19213
+ created_by: string | null;
19214
+ customer_id: string | null;
19215
+ customer_name: string | null;
19216
+ id: string | null;
19217
+ invoice_number: string | null;
19218
+ note: string | null;
19219
+ status: string | null;
19220
+ total_excl_cents: number | null;
19221
+ total_incl_cents: number | null;
19222
+ updated_at: string | null;
19223
+ vat_cents: number | null;
19224
+ vat_percentage: number | null;
19225
+ werkbon_id: string | null;
19226
+ };
19227
+ Insert: {
19228
+ created_at?: string | null;
19229
+ created_by?: string | null;
19230
+ customer_id?: string | null;
19231
+ customer_name?: string | null;
19232
+ id?: string | null;
19233
+ invoice_number?: string | null;
19234
+ note?: string | null;
19235
+ status?: string | null;
19236
+ total_excl_cents?: number | null;
19237
+ total_incl_cents?: number | null;
19238
+ updated_at?: string | null;
19239
+ vat_cents?: number | null;
19240
+ vat_percentage?: number | null;
19241
+ werkbon_id?: never;
19242
+ };
19243
+ Update: {
19244
+ created_at?: string | null;
19245
+ created_by?: string | null;
19246
+ customer_id?: string | null;
19247
+ customer_name?: string | null;
19248
+ id?: string | null;
19249
+ invoice_number?: string | null;
19250
+ note?: string | null;
19251
+ status?: string | null;
19252
+ total_excl_cents?: number | null;
19253
+ total_incl_cents?: number | null;
19254
+ updated_at?: string | null;
19255
+ vat_cents?: number | null;
19256
+ vat_percentage?: number | null;
19257
+ werkbon_id?: never;
19258
+ };
19259
+ Relationships: [{
19260
+ foreignKeyName: "invoices_customer_id_fkey";
19261
+ columns: ["customer_id"];
18214
19262
  isOneToOne: false;
18215
- referencedRelation: "product_groups";
19263
+ referencedRelation: "itk_customers";
18216
19264
  referencedColumns: ["id"];
18217
19265
  }];
18218
19266
  };
18219
- trade_item_stock_view: {
19267
+ uren_factuur_regels: {
18220
19268
  Row: {
18221
- stock: number | null;
18222
- trade_item_id: string | null;
19269
+ created_at: string | null;
19270
+ description: string | null;
19271
+ factuur_id: string | null;
19272
+ id: string | null;
19273
+ kind: string | null;
19274
+ quantity: number | null;
19275
+ sort_order: number | null;
19276
+ total_cents: number | null;
19277
+ unit: string | null;
19278
+ unit_price_cents: number | null;
18223
19279
  };
18224
- Relationships: [];
19280
+ Insert: {
19281
+ created_at?: string | null;
19282
+ description?: string | null;
19283
+ factuur_id?: string | null;
19284
+ id?: string | null;
19285
+ kind?: string | null;
19286
+ quantity?: number | null;
19287
+ sort_order?: number | null;
19288
+ total_cents?: number | null;
19289
+ unit?: string | null;
19290
+ unit_price_cents?: number | null;
19291
+ };
19292
+ Update: {
19293
+ created_at?: string | null;
19294
+ description?: string | null;
19295
+ factuur_id?: string | null;
19296
+ id?: string | null;
19297
+ kind?: string | null;
19298
+ quantity?: number | null;
19299
+ sort_order?: number | null;
19300
+ total_cents?: number | null;
19301
+ unit?: string | null;
19302
+ unit_price_cents?: number | null;
19303
+ };
19304
+ Relationships: [{
19305
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19306
+ columns: ["factuur_id"];
19307
+ isOneToOne: false;
19308
+ referencedRelation: "invoices";
19309
+ referencedColumns: ["id"];
19310
+ }, {
19311
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19312
+ columns: ["factuur_id"];
19313
+ isOneToOne: false;
19314
+ referencedRelation: "uren_facturen";
19315
+ referencedColumns: ["id"];
19316
+ }];
18225
19317
  };
18226
19318
  v_external_customers_exact: {
18227
19319
  Row: {
@@ -18623,6 +19715,19 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
18623
19715
  };
18624
19716
  Returns: undefined;
18625
19717
  };
19718
+ approve_mailbox_order_proposal: {
19719
+ Args: {
19720
+ p_custom_fields: import("../integrations/supabase/types.js").Json;
19721
+ p_customer_id: string;
19722
+ p_delivery_date: string;
19723
+ p_field_values?: import("../integrations/supabase/types.js").Json;
19724
+ p_lines: import("../integrations/supabase/types.js").Json;
19725
+ p_notes: string;
19726
+ p_proposal_id: string;
19727
+ p_reviewed_by: string;
19728
+ };
19729
+ Returns: import("../integrations/supabase/types.js").Json;
19730
+ };
18626
19731
  assign_cart_numbers: {
18627
19732
  Args: {
18628
19733
  p_carts: import("../integrations/supabase/types.js").Json;
@@ -18674,6 +19779,10 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
18674
19779
  };
18675
19780
  Returns: number;
18676
19781
  };
19782
+ can_manage_hours: {
19783
+ Args: never;
19784
+ Returns: boolean;
19785
+ };
18677
19786
  check_offer_product_available_stock: {
18678
19787
  Args: {
18679
19788
  p_campaign_product_id: string;
@@ -18711,6 +19820,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
18711
19820
  gebruiker_id: string | null;
18712
19821
  gebruiker_naam: string;
18713
19822
  gestart_op: string | null;
19823
+ herkomst: string | null;
18714
19824
  id: string;
18715
19825
  idempotentie_sleutel: string | null;
18716
19826
  is_herprint: boolean;
@@ -18831,6 +19941,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
18831
19941
  gebruiker_id: string | null;
18832
19942
  gebruiker_naam: string;
18833
19943
  gestart_op: string | null;
19944
+ herkomst: string | null;
18834
19945
  id: string;
18835
19946
  idempotentie_sleutel: string | null;
18836
19947
  is_herprint: boolean;
@@ -18863,6 +19974,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
18863
19974
  };
18864
19975
  Returns: {
18865
19976
  action: string;
19977
+ attempt_started_at: string | null;
18866
19978
  attempts: number;
18867
19979
  connection_id: string | null;
18868
19980
  created_at: string;
@@ -18950,6 +20062,30 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
18950
20062
  agent_naam: string;
18951
20063
  }[];
18952
20064
  };
20065
+ consume_van_inventory: {
20066
+ Args: {
20067
+ p_inventory_id: string;
20068
+ p_quantity: number;
20069
+ };
20070
+ Returns: {
20071
+ barcode: string | null;
20072
+ created_at: string;
20073
+ id: string;
20074
+ monteur_id: string | null;
20075
+ price_per_unit: number;
20076
+ product_name: string;
20077
+ quantity_current: number;
20078
+ quantity_min: number;
20079
+ unit: string;
20080
+ updated_at: string;
20081
+ };
20082
+ SetofOptions: {
20083
+ from: "*";
20084
+ to: "van_inventories";
20085
+ isOneToOne: true;
20086
+ isSetofReturn: false;
20087
+ };
20088
+ };
18953
20089
  control_get_todays_carts: {
18954
20090
  Args: never;
18955
20091
  Returns: {
@@ -19025,7 +20161,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
19025
20161
  Returns: string;
19026
20162
  } | {
19027
20163
  Args: {
19028
- _feature_id?: string;
20164
+ _feature_id: string;
19029
20165
  _module_id: string;
19030
20166
  _user_id: string;
19031
20167
  };
@@ -19076,6 +20212,13 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
19076
20212
  };
19077
20213
  Returns: string;
19078
20214
  };
20215
+ employee_day_hours: {
20216
+ Args: {
20217
+ _day: string;
20218
+ _employee_id: string;
20219
+ };
20220
+ Returns: number;
20221
+ };
19079
20222
  enqueue_cart_replan_if_unlocked: {
19080
20223
  Args: {
19081
20224
  p_order_id: string;
@@ -19381,12 +20524,6 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
19381
20524
  Args: never;
19382
20525
  Returns: string;
19383
20526
  };
19384
- get_work_order_tenant_id: {
19385
- Args: {
19386
- wo_id: string;
19387
- };
19388
- Returns: string;
19389
- };
19390
20527
  has_module_permission: {
19391
20528
  Args: {
19392
20529
  _min: string;
@@ -19406,6 +20543,46 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
19406
20543
  Args: never;
19407
20544
  Returns: boolean;
19408
20545
  };
20546
+ invoice_create_from_source: {
20547
+ Args: {
20548
+ _payload?: import("../integrations/supabase/types.js").Json;
20549
+ _source_id: string;
20550
+ _source_type: string;
20551
+ };
20552
+ Returns: import("../integrations/supabase/types.js").Json;
20553
+ };
20554
+ invoice_get_billable_lines: {
20555
+ Args: {
20556
+ _invoice_id: string;
20557
+ };
20558
+ Returns: import("../integrations/supabase/types.js").Json;
20559
+ };
20560
+ invoice_get_for_source: {
20561
+ Args: {
20562
+ _source_id: string;
20563
+ _source_type: string;
20564
+ };
20565
+ Returns: import("../integrations/supabase/types.js").Json;
20566
+ };
20567
+ invoice_get_summary: {
20568
+ Args: {
20569
+ _invoice_id: string;
20570
+ };
20571
+ Returns: import("../integrations/supabase/types.js").Json;
20572
+ };
20573
+ invoice_list_sources: {
20574
+ Args: {
20575
+ _limit?: number;
20576
+ _source_type?: string;
20577
+ };
20578
+ Returns: import("../integrations/supabase/types.js").Json;
20579
+ };
20580
+ invoice_recalc_totals: {
20581
+ Args: {
20582
+ _invoice_id: string;
20583
+ };
20584
+ Returns: import("../integrations/supabase/types.js").Json;
20585
+ };
19409
20586
  is_authenticated: {
19410
20587
  Args: never;
19411
20588
  Returns: boolean;
@@ -19420,6 +20597,13 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
19420
20597
  };
19421
20598
  Returns: boolean;
19422
20599
  };
20600
+ is_time_log_week_locked: {
20601
+ Args: {
20602
+ p_employee_id: string;
20603
+ p_start_time: string;
20604
+ };
20605
+ Returns: boolean;
20606
+ };
19423
20607
  is_user_admin: {
19424
20608
  Args: never;
19425
20609
  Returns: boolean;
@@ -19428,12 +20612,59 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
19428
20612
  Args: never;
19429
20613
  Returns: boolean;
19430
20614
  };
20615
+ itk_offerte_naar_werkbon: {
20616
+ Args: {
20617
+ _offerte_id: string;
20618
+ };
20619
+ Returns: string;
20620
+ };
20621
+ itk_offerte_restant_mandaat: {
20622
+ Args: {
20623
+ _exclude_offerte_id?: string;
20624
+ _werkbon_id: string;
20625
+ };
20626
+ Returns: number;
20627
+ };
19431
20628
  jwt_has_role: {
19432
20629
  Args: {
19433
20630
  _role: import("../integrations/supabase/types.js").Database["public"]["Enums"]["app_role"];
19434
20631
  };
19435
20632
  Returns: boolean;
19436
20633
  };
20634
+ list_medewerkers: {
20635
+ Args: never;
20636
+ Returns: {
20637
+ avatar_url: string;
20638
+ color: string;
20639
+ display_name: string;
20640
+ email: string;
20641
+ hours_fri: number;
20642
+ hours_mon: number;
20643
+ hours_thu: number;
20644
+ hours_tue: number;
20645
+ hours_wed: number;
20646
+ id: string;
20647
+ is_active: boolean;
20648
+ leave_balance_hours: number;
20649
+ persnr: string;
20650
+ phone: string;
20651
+ roles: string[];
20652
+ }[];
20653
+ };
20654
+ list_monteur_absences: {
20655
+ Args: {
20656
+ _from: string;
20657
+ _to: string;
20658
+ };
20659
+ Returns: {
20660
+ absence_date: string;
20661
+ end_time: string;
20662
+ full_day: boolean;
20663
+ kind: string;
20664
+ monteur_id: string;
20665
+ start_time: string;
20666
+ }[];
20667
+ };
19437
20668
  list_monteurs: {
19438
20669
  Args: never;
19439
20670
  Returns: {
@@ -19766,17 +20997,6 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
19766
20997
  Returns: string;
19767
20998
  };
19768
20999
  logistics_emit_event: {
19769
- Args: {
19770
- p_event_type: string;
19771
- p_idempotency_key?: string;
19772
- p_order_ref: string;
19773
- p_payload?: import("../integrations/supabase/types.js").Json;
19774
- p_shadow?: boolean;
19775
- p_source_module: string;
19776
- p_strategy_id?: string;
19777
- };
19778
- Returns: import("../integrations/supabase/types.js").Json;
19779
- } | {
19780
21000
  Args: {
19781
21001
  p_event_type: string;
19782
21002
  p_idempotency_key?: string;
@@ -19865,6 +21085,23 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
19865
21085
  };
19866
21086
  Returns: string;
19867
21087
  };
21088
+ logistics_floriday_finish_push_v2: {
21089
+ Args: {
21090
+ _error?: string;
21091
+ _error_code?: string;
21092
+ _fulfillment_order_id?: string;
21093
+ _gateway_status?: number;
21094
+ _id: string;
21095
+ _max_age_hours?: number;
21096
+ _max_attempts?: number;
21097
+ _ok: boolean;
21098
+ _permanent?: boolean;
21099
+ _response?: import("../integrations/supabase/types.js").Json;
21100
+ _revision: number;
21101
+ _sent_hash?: string;
21102
+ };
21103
+ Returns: string;
21104
+ };
19868
21105
  logistics_floriday_prune_pushes: {
19869
21106
  Args: {
19870
21107
  _days?: number;
@@ -20407,6 +21644,13 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
20407
21644
  isSetofReturn: false;
20408
21645
  };
20409
21646
  };
21647
+ pick_cleanup_maintenance: {
21648
+ Args: {
21649
+ _heartbeat_hours?: number;
21650
+ _log_days?: number;
21651
+ };
21652
+ Returns: import("../integrations/supabase/types.js").Json;
21653
+ };
20410
21654
  pick_complete_print: {
20411
21655
  Args: {
20412
21656
  _printer_id: string;
@@ -20458,6 +21702,14 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
20458
21702
  Args: never;
20459
21703
  Returns: string;
20460
21704
  };
21705
+ pick_day_counts: {
21706
+ Args: {
21707
+ _pick_day?: string;
21708
+ _screen_id?: string;
21709
+ _station_id?: string;
21710
+ };
21711
+ Returns: import("../integrations/supabase/types.js").Json;
21712
+ };
20461
21713
  pick_document_layout_data: {
20462
21714
  Args: {
20463
21715
  _layout_id: string;
@@ -20495,6 +21747,14 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
20495
21747
  };
20496
21748
  Returns: undefined;
20497
21749
  };
21750
+ pick_reprint_document: {
21751
+ Args: {
21752
+ _queue_item_id: string;
21753
+ _session_id: string;
21754
+ _throttle_seconds?: number;
21755
+ };
21756
+ Returns: string;
21757
+ };
20498
21758
  pick_reset_print: {
20499
21759
  Args: {
20500
21760
  _queue_item_id: string;
@@ -20560,6 +21820,12 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
20560
21820
  };
20561
21821
  Returns: string;
20562
21822
  };
21823
+ pick_sync_queue_throttled: {
21824
+ Args: {
21825
+ _min_seconds?: number;
21826
+ };
21827
+ Returns: import("../integrations/supabase/types.js").Json;
21828
+ };
20563
21829
  pickstation_get_orders_raw: {
20564
21830
  Args: never;
20565
21831
  Returns: import("../integrations/supabase/types.js").Json;
@@ -20621,6 +21887,37 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
20621
21887
  };
20622
21888
  Returns: undefined;
20623
21889
  };
21890
+ quote_create_from_source: {
21891
+ Args: {
21892
+ _payload?: import("../integrations/supabase/types.js").Json;
21893
+ _source_id: string;
21894
+ _source_type: string;
21895
+ };
21896
+ Returns: string;
21897
+ };
21898
+ quote_get_billable_lines: {
21899
+ Args: {
21900
+ _quotation_id: string;
21901
+ };
21902
+ Returns: import("../integrations/supabase/types.js").Json;
21903
+ };
21904
+ quote_get_summary: {
21905
+ Args: {
21906
+ _quotation_id: string;
21907
+ };
21908
+ Returns: import("../integrations/supabase/types.js").Json;
21909
+ };
21910
+ quote_list_packages: {
21911
+ Args: never;
21912
+ Returns: import("../integrations/supabase/types.js").Json;
21913
+ };
21914
+ quote_list_sources: {
21915
+ Args: {
21916
+ _limit?: number;
21917
+ _source_type?: string;
21918
+ };
21919
+ Returns: import("../integrations/supabase/types.js").Json;
21920
+ };
20624
21921
  recompute_all_reserved_stock: {
20625
21922
  Args: never;
20626
21923
  Returns: undefined;
@@ -20674,6 +21971,12 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
20674
21971
  };
20675
21972
  Returns: boolean;
20676
21973
  };
21974
+ release_stale_order_invoice_links: {
21975
+ Args: {
21976
+ _minutes?: number;
21977
+ };
21978
+ Returns: number;
21979
+ };
20677
21980
  reorder_customer_price_groups: {
20678
21981
  Args: {
20679
21982
  _ids: string[];
@@ -21112,6 +22415,16 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
21112
22415
  };
21113
22416
  Returns: string[];
21114
22417
  };
22418
+ switch_time_log: {
22419
+ Args: {
22420
+ p_employee_id: string;
22421
+ p_start_lat?: number;
22422
+ p_start_lng?: number;
22423
+ p_type: string;
22424
+ p_work_order_id?: string;
22425
+ };
22426
+ Returns: import("../integrations/supabase/types.js").Json;
22427
+ };
21115
22428
  sync_all_layer_stocks: {
21116
22429
  Args: never;
21117
22430
  Returns: undefined;
@@ -21146,6 +22459,12 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
21146
22459
  };
21147
22460
  Returns: undefined;
21148
22461
  };
22462
+ sync_sick_time_off: {
22463
+ Args: {
22464
+ _period_id: string;
22465
+ };
22466
+ Returns: number;
22467
+ };
21149
22468
  trade_item_stock_duplicates: {
21150
22469
  Args: never;
21151
22470
  Returns: {
@@ -21162,6 +22481,38 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
21162
22481
  };
21163
22482
  Returns: boolean;
21164
22483
  };
22484
+ twinfield_cron_lock_acquire: {
22485
+ Args: {
22486
+ _job_name: string;
22487
+ _stale_seconds?: number;
22488
+ };
22489
+ Returns: boolean;
22490
+ };
22491
+ twinfield_cron_lock_release: {
22492
+ Args: {
22493
+ _error?: string;
22494
+ _job_name: string;
22495
+ };
22496
+ Returns: undefined;
22497
+ };
22498
+ twinfield_deactivate_connection: {
22499
+ Args: {
22500
+ p_connection_id: string;
22501
+ p_user_id: string;
22502
+ };
22503
+ Returns: import("../integrations/supabase/types.js").Json;
22504
+ };
22505
+ twinfield_handle_administration_change: {
22506
+ Args: {
22507
+ _administration_code: string;
22508
+ _user_id: string;
22509
+ };
22510
+ Returns: undefined;
22511
+ };
22512
+ twinfield_prune_push_queue: {
22513
+ Args: never;
22514
+ Returns: number;
22515
+ };
21165
22516
  twinfield_register_cron: {
21166
22517
  Args: {
21167
22518
  apikey?: string;
@@ -21177,10 +22528,11 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
21177
22528
  p_company_name?: string;
21178
22529
  p_environment: string;
21179
22530
  p_office_code?: string;
22531
+ p_reset_sync?: boolean;
21180
22532
  p_status?: string;
21181
22533
  p_user_id: string;
21182
22534
  };
21183
- Returns: string;
22535
+ Returns: import("../integrations/supabase/types.js").Json;
21184
22536
  };
21185
22537
  upsert_auto_fulfillment_log: {
21186
22538
  Args: {
@@ -21201,11 +22553,31 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
21201
22553
  Args: never;
21202
22554
  Returns: string;
21203
22555
  };
22556
+ wo_create_from_source: {
22557
+ Args: {
22558
+ _payload?: import("../integrations/supabase/types.js").Json;
22559
+ _source_id: string;
22560
+ _source_type: string;
22561
+ };
22562
+ Returns: string;
22563
+ };
22564
+ wo_get_billable_lines: {
22565
+ Args: {
22566
+ _work_order_id: string;
22567
+ };
22568
+ Returns: import("../integrations/supabase/types.js").Json;
22569
+ };
22570
+ wo_get_summary: {
22571
+ Args: {
22572
+ _work_order_id: string;
22573
+ };
22574
+ Returns: import("../integrations/supabase/types.js").Json;
22575
+ };
21204
22576
  };
21205
22577
  Enums: {
21206
22578
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
21207
22579
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
21208
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
22580
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
21209
22581
  doc_orientation: "portrait" | "landscape";
21210
22582
  exact_env: "staging" | "live";
21211
22583
  exact_push_status: "pending" | "sent" | "error";