@flowselections/floriday-authenticatie-module 1.0.38 → 1.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist-lib/components/TemplatePage.d.ts +1 -1
  2. package/dist-lib/components/TemplatePage.d.ts.map +1 -1
  3. package/dist-lib/components/floriday/FlorydayConnectionPage.d.ts +1 -1
  4. package/dist-lib/components/floriday/FlorydayConnectionPage.d.ts.map +1 -1
  5. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +1 -1
  6. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +1 -1
  7. package/dist-lib/components/floriday/FlorydaySyncJobsCard.d.ts +1 -1
  8. package/dist-lib/components/floriday/FlorydaySyncJobsCard.d.ts.map +1 -1
  9. package/dist-lib/components/floriday/TokenHealthCard.d.ts +1 -1
  10. package/dist-lib/components/floriday/TokenHealthCard.d.ts.map +1 -1
  11. package/dist-lib/components/settings/FloricodeSettingsCard.d.ts +1 -1
  12. package/dist-lib/components/settings/FloricodeSettingsCard.d.ts.map +1 -1
  13. package/dist-lib/components/settings/FlorydaySettingsCard.d.ts +1 -1
  14. package/dist-lib/components/settings/FlorydaySettingsCard.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1599 -318
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.d.ts +1599 -318
  18. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/client.server.d.ts +1599 -318
  20. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/types.d.ts +1675 -362
  22. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/types.js +3 -0
  24. package/dist-lib/lib/error-page.js +30 -30
  25. package/dist-lib/lib/floricode.functions.d.ts +10626 -1659
  26. package/dist-lib/lib/floricode.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday-auction-letters.functions.d.ts +1599 -318
  28. package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/floriday-labels.functions.d.ts +1599 -318
  30. package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/floriday-public.functions.d.ts +9108 -1422
  32. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floriday-stickers.functions.d.ts +1599 -318
  34. package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/floriday-sync.functions.d.ts +47058 -7347
  36. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/floriday-writes.functions.d.ts +9114 -1428
  38. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/floriday.functions.d.ts +28842 -4503
  40. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/print/floriday-print.d.ts +36 -0
  42. package/dist-lib/lib/print/floriday-print.d.ts.map +1 -0
  43. package/dist-lib/lib/print/floriday-print.js +204 -0
  44. package/dist-lib/lib/print/index.d.ts +3 -0
  45. package/dist-lib/lib/print/index.d.ts.map +1 -0
  46. package/dist-lib/lib/print/index.js +2 -0
  47. package/dist-lib/lib/print/pdf-to-base64.d.ts +5 -0
  48. package/dist-lib/lib/print/pdf-to-base64.d.ts.map +1 -0
  49. package/dist-lib/lib/print/pdf-to-base64.js +27 -0
  50. package/package.json +12 -2
  51. package/dist-lib/assets/floriday-logo.png.asset.json +0 -11
@@ -871,6 +871,126 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
871
871
  };
872
872
  Relationships: [];
873
873
  };
874
+ cao_holidays: {
875
+ Row: {
876
+ created_at: string;
877
+ description: string | null;
878
+ holiday_date: string;
879
+ id: string;
880
+ updated_at: string;
881
+ };
882
+ Insert: {
883
+ created_at?: string;
884
+ description?: string | null;
885
+ holiday_date: string;
886
+ id?: string;
887
+ updated_at?: string;
888
+ };
889
+ Update: {
890
+ created_at?: string;
891
+ description?: string | null;
892
+ holiday_date?: string;
893
+ id?: string;
894
+ updated_at?: string;
895
+ };
896
+ Relationships: [];
897
+ };
898
+ cao_settings: {
899
+ Row: {
900
+ auto_break_after_hours: number;
901
+ auto_break_minutes: number;
902
+ auto_break_unpaid: boolean;
903
+ auto_stop_after_hours: number;
904
+ callout_fee: number;
905
+ created_at: string;
906
+ daily_regular_hours: number;
907
+ default_hourly_rate: number;
908
+ id: string;
909
+ materials_markup_percent: number;
910
+ max_daily_hours: number;
911
+ max_weekly_hours: number;
912
+ meal_allowance_amount: number;
913
+ overtime_pct_178: number;
914
+ overtime_pct_189: number;
915
+ overtime_pct_212: number;
916
+ reminder_after_hours: number;
917
+ standby_evening_amount: number;
918
+ standby_weekend_amount: number;
919
+ travel_cost_per_km: number | null;
920
+ travel_cost_threshold_km: number | null;
921
+ travel_counts_as_work: boolean;
922
+ travel_hourly_rate: number;
923
+ travel_rate_per_hour: number;
924
+ travel_threshold_minutes: number;
925
+ updated_at: string;
926
+ weekend_always_212: boolean;
927
+ window_end: string;
928
+ window_start: string;
929
+ };
930
+ Insert: {
931
+ auto_break_after_hours?: number;
932
+ auto_break_minutes?: number;
933
+ auto_break_unpaid?: boolean;
934
+ auto_stop_after_hours?: number;
935
+ callout_fee?: number;
936
+ created_at?: string;
937
+ daily_regular_hours?: number;
938
+ default_hourly_rate?: number;
939
+ id?: string;
940
+ materials_markup_percent?: number;
941
+ max_daily_hours?: number;
942
+ max_weekly_hours?: number;
943
+ meal_allowance_amount?: number;
944
+ overtime_pct_178?: number;
945
+ overtime_pct_189?: number;
946
+ overtime_pct_212?: number;
947
+ reminder_after_hours?: number;
948
+ standby_evening_amount?: number;
949
+ standby_weekend_amount?: number;
950
+ travel_cost_per_km?: number | null;
951
+ travel_cost_threshold_km?: number | null;
952
+ travel_counts_as_work?: boolean;
953
+ travel_hourly_rate?: number;
954
+ travel_rate_per_hour?: number;
955
+ travel_threshold_minutes?: number;
956
+ updated_at?: string;
957
+ weekend_always_212?: boolean;
958
+ window_end?: string;
959
+ window_start?: string;
960
+ };
961
+ Update: {
962
+ auto_break_after_hours?: number;
963
+ auto_break_minutes?: number;
964
+ auto_break_unpaid?: boolean;
965
+ auto_stop_after_hours?: number;
966
+ callout_fee?: number;
967
+ created_at?: string;
968
+ daily_regular_hours?: number;
969
+ default_hourly_rate?: number;
970
+ id?: string;
971
+ materials_markup_percent?: number;
972
+ max_daily_hours?: number;
973
+ max_weekly_hours?: number;
974
+ meal_allowance_amount?: number;
975
+ overtime_pct_178?: number;
976
+ overtime_pct_189?: number;
977
+ overtime_pct_212?: number;
978
+ reminder_after_hours?: number;
979
+ standby_evening_amount?: number;
980
+ standby_weekend_amount?: number;
981
+ travel_cost_per_km?: number | null;
982
+ travel_cost_threshold_km?: number | null;
983
+ travel_counts_as_work?: boolean;
984
+ travel_hourly_rate?: number;
985
+ travel_rate_per_hour?: number;
986
+ travel_threshold_minutes?: number;
987
+ updated_at?: string;
988
+ weekend_always_212?: boolean;
989
+ window_end?: string;
990
+ window_start?: string;
991
+ };
992
+ Relationships: [];
993
+ };
874
994
  carrier_shipping_rates: {
875
995
  Row: {
876
996
  carrier_id: string;
@@ -2638,6 +2758,42 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2638
2758
  };
2639
2759
  Relationships: [];
2640
2760
  };
2761
+ document_bronregels: {
2762
+ Row: {
2763
+ bron: string;
2764
+ created_at: string;
2765
+ documenttype: string;
2766
+ herkomst: string;
2767
+ id: string;
2768
+ layout_id: string | null;
2769
+ updated_at: string;
2770
+ };
2771
+ Insert: {
2772
+ bron?: string;
2773
+ created_at?: string;
2774
+ documenttype: string;
2775
+ herkomst: string;
2776
+ id?: string;
2777
+ layout_id?: string | null;
2778
+ updated_at?: string;
2779
+ };
2780
+ Update: {
2781
+ bron?: string;
2782
+ created_at?: string;
2783
+ documenttype?: string;
2784
+ herkomst?: string;
2785
+ id?: string;
2786
+ layout_id?: string | null;
2787
+ updated_at?: string;
2788
+ };
2789
+ Relationships: [{
2790
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2791
+ columns: ["layout_id"];
2792
+ isOneToOne: false;
2793
+ referencedRelation: "document_layouts";
2794
+ referencedColumns: ["id"];
2795
+ }];
2796
+ };
2641
2797
  document_formaat_printers: {
2642
2798
  Row: {
2643
2799
  created_at: string;
@@ -2983,6 +3139,42 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2983
3139
  };
2984
3140
  Relationships: [];
2985
3141
  };
3142
+ document_werkplek_printers: {
3143
+ Row: {
3144
+ created_at: string;
3145
+ documenttype: string;
3146
+ id: string;
3147
+ papierformaat: string | null;
3148
+ printer_id: string | null;
3149
+ updated_at: string;
3150
+ werkplek: string;
3151
+ };
3152
+ Insert: {
3153
+ created_at?: string;
3154
+ documenttype: string;
3155
+ id?: string;
3156
+ papierformaat?: string | null;
3157
+ printer_id?: string | null;
3158
+ updated_at?: string;
3159
+ werkplek: string;
3160
+ };
3161
+ Update: {
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
+ Relationships: [{
3171
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3172
+ columns: ["printer_id"];
3173
+ isOneToOne: false;
3174
+ referencedRelation: "printers";
3175
+ referencedColumns: ["id"];
3176
+ }];
3177
+ };
2986
3178
  email_auth_connections: {
2987
3179
  Row: {
2988
3180
  access_token_encrypted: string | null;
@@ -7228,8 +7420,63 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7228
7420
  };
7229
7421
  Relationships: [];
7230
7422
  };
7423
+ invoice_items: {
7424
+ Row: {
7425
+ created_at: string;
7426
+ description: string;
7427
+ id: string;
7428
+ invoice_id: string;
7429
+ kind: string;
7430
+ quantity: number;
7431
+ sort_order: number;
7432
+ source_line_ref: string | null;
7433
+ total_cents: number;
7434
+ unit: string;
7435
+ unit_price_cents: number;
7436
+ };
7437
+ Insert: {
7438
+ created_at?: string;
7439
+ description?: string;
7440
+ id?: string;
7441
+ invoice_id: string;
7442
+ kind?: string;
7443
+ quantity?: number;
7444
+ sort_order?: number;
7445
+ source_line_ref?: string | null;
7446
+ total_cents?: number;
7447
+ unit?: string;
7448
+ unit_price_cents?: number;
7449
+ };
7450
+ Update: {
7451
+ created_at?: string;
7452
+ description?: string;
7453
+ id?: string;
7454
+ invoice_id?: string;
7455
+ kind?: string;
7456
+ quantity?: number;
7457
+ sort_order?: number;
7458
+ source_line_ref?: string | null;
7459
+ total_cents?: number;
7460
+ unit?: string;
7461
+ unit_price_cents?: number;
7462
+ };
7463
+ Relationships: [{
7464
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7465
+ columns: ["invoice_id"];
7466
+ isOneToOne: false;
7467
+ referencedRelation: "invoices";
7468
+ referencedColumns: ["id"];
7469
+ }, {
7470
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7471
+ columns: ["invoice_id"];
7472
+ isOneToOne: false;
7473
+ referencedRelation: "uren_facturen";
7474
+ referencedColumns: ["id"];
7475
+ }];
7476
+ };
7231
7477
  invoice_post_idempotency: {
7232
7478
  Row: {
7479
+ administration_code: string;
7233
7480
  client_request_id: string;
7234
7481
  completed_at: string | null;
7235
7482
  created_at: string;
@@ -7239,6 +7486,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7239
7486
  user_id: string;
7240
7487
  };
7241
7488
  Insert: {
7489
+ administration_code?: string;
7242
7490
  client_request_id: string;
7243
7491
  completed_at?: string | null;
7244
7492
  created_at?: string;
@@ -7248,6 +7496,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7248
7496
  user_id: string;
7249
7497
  };
7250
7498
  Update: {
7499
+ administration_code?: string;
7251
7500
  client_request_id?: string;
7252
7501
  completed_at?: string | null;
7253
7502
  created_at?: string;
@@ -7453,6 +7702,75 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7453
7702
  };
7454
7703
  Relationships: [];
7455
7704
  };
7705
+ invoices: {
7706
+ Row: {
7707
+ created_at: string;
7708
+ created_by: string | null;
7709
+ customer_id: string | null;
7710
+ customer_name: string | null;
7711
+ due_date: string | null;
7712
+ id: string;
7713
+ invoice_date: string;
7714
+ invoice_number: string | null;
7715
+ note: string | null;
7716
+ source_number: string | null;
7717
+ source_ref: string | null;
7718
+ source_type: string;
7719
+ status: string;
7720
+ subtotal_cents: number;
7721
+ total_cents: number;
7722
+ updated_at: string;
7723
+ vat_cents: number;
7724
+ vat_rate: number;
7725
+ };
7726
+ Insert: {
7727
+ created_at?: string;
7728
+ created_by?: string | null;
7729
+ customer_id?: string | null;
7730
+ customer_name?: string | null;
7731
+ due_date?: string | null;
7732
+ id?: string;
7733
+ invoice_date?: string;
7734
+ invoice_number?: string | null;
7735
+ note?: string | null;
7736
+ source_number?: string | null;
7737
+ source_ref?: string | null;
7738
+ source_type?: string;
7739
+ status?: string;
7740
+ subtotal_cents?: number;
7741
+ total_cents?: number;
7742
+ updated_at?: string;
7743
+ vat_cents?: number;
7744
+ vat_rate?: number;
7745
+ };
7746
+ Update: {
7747
+ created_at?: string;
7748
+ created_by?: string | null;
7749
+ customer_id?: string | null;
7750
+ customer_name?: string | null;
7751
+ due_date?: string | null;
7752
+ id?: string;
7753
+ invoice_date?: string;
7754
+ invoice_number?: string | null;
7755
+ note?: string | null;
7756
+ source_number?: string | null;
7757
+ source_ref?: string | null;
7758
+ source_type?: string;
7759
+ status?: string;
7760
+ subtotal_cents?: number;
7761
+ total_cents?: number;
7762
+ updated_at?: string;
7763
+ vat_cents?: number;
7764
+ vat_rate?: number;
7765
+ };
7766
+ Relationships: [{
7767
+ foreignKeyName: "invoices_customer_id_fkey";
7768
+ columns: ["customer_id"];
7769
+ isOneToOne: false;
7770
+ referencedRelation: "itk_customers";
7771
+ referencedColumns: ["id"];
7772
+ }];
7773
+ };
7456
7774
  itk_contact_persons: {
7457
7775
  Row: {
7458
7776
  created_at: string;
@@ -7648,77 +7966,329 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7648
7966
  };
7649
7967
  Relationships: [];
7650
7968
  };
7651
- itk_work_locations: {
7969
+ itk_offerte_events: {
7652
7970
  Row: {
7653
- city: string | null;
7654
7971
  created_at: string;
7655
- customer_id: string;
7972
+ event_type: string;
7656
7973
  id: string;
7657
- instructions: string | null;
7658
- label: string;
7659
- latitude: number | null;
7660
- longitude: number | null;
7661
- postcode: string | null;
7662
- street: string | null;
7663
- updated_at: string;
7974
+ metadata: import("./types.js").Json;
7975
+ offerte_id: string;
7976
+ omschrijving: string | null;
7977
+ user_id: string | null;
7664
7978
  };
7665
7979
  Insert: {
7666
- city?: string | null;
7667
7980
  created_at?: string;
7668
- customer_id: string;
7981
+ event_type: string;
7669
7982
  id?: string;
7670
- instructions?: string | null;
7671
- label: string;
7672
- latitude?: number | null;
7673
- longitude?: number | null;
7674
- postcode?: string | null;
7675
- street?: string | null;
7676
- updated_at?: string;
7983
+ metadata?: import("./types.js").Json;
7984
+ offerte_id: string;
7985
+ omschrijving?: string | null;
7986
+ user_id?: string | null;
7677
7987
  };
7678
7988
  Update: {
7679
- city?: string | null;
7680
7989
  created_at?: string;
7681
- customer_id?: string;
7990
+ event_type?: string;
7682
7991
  id?: string;
7683
- instructions?: string | null;
7684
- label?: string;
7685
- latitude?: number | null;
7686
- longitude?: number | null;
7687
- postcode?: string | null;
7688
- street?: string | null;
7689
- updated_at?: string;
7992
+ metadata?: import("./types.js").Json;
7993
+ offerte_id?: string;
7994
+ omschrijving?: string | null;
7995
+ user_id?: string | null;
7690
7996
  };
7691
7997
  Relationships: [{
7692
- foreignKeyName: "itk_work_locations_customer_id_fkey";
7693
- columns: ["customer_id"];
7998
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
7999
+ columns: ["offerte_id"];
7694
8000
  isOneToOne: false;
7695
- referencedRelation: "itk_customers";
8001
+ referencedRelation: "itk_offertes";
7696
8002
  referencedColumns: ["id"];
7697
8003
  }];
7698
8004
  };
7699
- layout_logos: {
8005
+ itk_offerte_regels: {
7700
8006
  Row: {
7701
- bestand_url: string;
7702
- bestandsgrootte: number;
7703
- bestandspad: string | null;
7704
- bestandstype: string;
7705
- breedte: number;
7706
- categorie: string;
7707
8007
  created_at: string;
7708
- hash: string | null;
7709
- hoogte: number;
7710
8008
  id: string;
7711
- is_standaard: boolean;
7712
- naam: string;
8009
+ line_total_cents: number;
8010
+ offerte_id: string;
7713
8011
  omschrijving: string;
7714
- transparant: boolean;
8012
+ package_id: string | null;
8013
+ quantity: number;
8014
+ sort_order: number;
8015
+ source: string;
8016
+ unit_price_cents: number;
7715
8017
  updated_at: string;
7716
8018
  };
7717
8019
  Insert: {
7718
- bestand_url: string;
7719
- bestandsgrootte?: number;
7720
- bestandspad?: string | null;
7721
- bestandstype?: string;
8020
+ created_at?: string;
8021
+ id?: string;
8022
+ line_total_cents?: number;
8023
+ offerte_id: string;
8024
+ omschrijving?: string;
8025
+ package_id?: string | null;
8026
+ quantity?: number;
8027
+ sort_order?: number;
8028
+ source?: string;
8029
+ unit_price_cents?: number;
8030
+ updated_at?: string;
8031
+ };
8032
+ Update: {
8033
+ created_at?: string;
8034
+ id?: string;
8035
+ line_total_cents?: number;
8036
+ offerte_id?: string;
8037
+ omschrijving?: string;
8038
+ package_id?: string | null;
8039
+ quantity?: number;
8040
+ sort_order?: number;
8041
+ source?: string;
8042
+ unit_price_cents?: number;
8043
+ updated_at?: string;
8044
+ };
8045
+ Relationships: [{
8046
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8047
+ columns: ["offerte_id"];
8048
+ isOneToOne: false;
8049
+ referencedRelation: "itk_offertes";
8050
+ referencedColumns: ["id"];
8051
+ }, {
8052
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
8053
+ columns: ["package_id"];
8054
+ isOneToOne: false;
8055
+ referencedRelation: "werkbon_packages";
8056
+ referencedColumns: ["id"];
8057
+ }];
8058
+ };
8059
+ itk_offerte_settings: {
8060
+ Row: {
8061
+ auto_convert_binnen_mandaat: boolean;
8062
+ created_at: string;
8063
+ default_geldigheid_dagen: number;
8064
+ default_vat_rate: number;
8065
+ id: string;
8066
+ singleton: boolean;
8067
+ updated_at: string;
8068
+ };
8069
+ Insert: {
8070
+ auto_convert_binnen_mandaat?: boolean;
8071
+ created_at?: string;
8072
+ default_geldigheid_dagen?: number;
8073
+ default_vat_rate?: number;
8074
+ id?: string;
8075
+ singleton?: boolean;
8076
+ updated_at?: string;
8077
+ };
8078
+ Update: {
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
+ Relationships: [];
8088
+ };
8089
+ itk_offertes: {
8090
+ Row: {
8091
+ ai_generated: boolean;
8092
+ approved_at: string | null;
8093
+ binnen_mandaat: boolean;
8094
+ contact_id: string | null;
8095
+ converted_at: string | null;
8096
+ created_at: string;
8097
+ created_by: string | null;
8098
+ customer_id: string | null;
8099
+ follow_up_werkbon_id: string | null;
8100
+ id: string;
8101
+ jaar: number;
8102
+ mandaat_restant_cents: number;
8103
+ notities: string | null;
8104
+ offerte_number: string | null;
8105
+ omschrijving: string;
8106
+ rejected_at: string | null;
8107
+ sent_at: string | null;
8108
+ source_number: string | null;
8109
+ source_ref: string | null;
8110
+ source_type: string;
8111
+ status: string;
8112
+ subtotal_cents: number;
8113
+ total_cents: number;
8114
+ updated_at: string;
8115
+ valid_until: string | null;
8116
+ vat_cents: number;
8117
+ vat_rate: number;
8118
+ viewed_at: string | null;
8119
+ volgnummer: number | null;
8120
+ werkbon_id: string | null;
8121
+ work_location_id: string | null;
8122
+ };
8123
+ Insert: {
8124
+ ai_generated?: boolean;
8125
+ approved_at?: string | null;
8126
+ binnen_mandaat?: boolean;
8127
+ contact_id?: string | null;
8128
+ converted_at?: string | null;
8129
+ created_at?: string;
8130
+ created_by?: string | null;
8131
+ customer_id?: string | null;
8132
+ follow_up_werkbon_id?: string | null;
8133
+ id?: string;
8134
+ jaar?: number;
8135
+ mandaat_restant_cents?: number;
8136
+ notities?: string | null;
8137
+ offerte_number?: string | null;
8138
+ omschrijving?: string;
8139
+ rejected_at?: string | null;
8140
+ sent_at?: string | null;
8141
+ source_number?: string | null;
8142
+ source_ref?: string | null;
8143
+ source_type?: string;
8144
+ status?: string;
8145
+ subtotal_cents?: number;
8146
+ total_cents?: number;
8147
+ updated_at?: string;
8148
+ valid_until?: string | null;
8149
+ vat_cents?: number;
8150
+ vat_rate?: number;
8151
+ viewed_at?: string | null;
8152
+ volgnummer?: number | null;
8153
+ werkbon_id?: string | null;
8154
+ work_location_id?: string | null;
8155
+ };
8156
+ Update: {
8157
+ ai_generated?: boolean;
8158
+ approved_at?: string | null;
8159
+ binnen_mandaat?: boolean;
8160
+ contact_id?: string | null;
8161
+ converted_at?: string | null;
8162
+ created_at?: string;
8163
+ created_by?: string | null;
8164
+ customer_id?: string | null;
8165
+ follow_up_werkbon_id?: string | null;
8166
+ id?: string;
8167
+ jaar?: number;
8168
+ mandaat_restant_cents?: number;
8169
+ notities?: string | null;
8170
+ offerte_number?: string | null;
8171
+ omschrijving?: string;
8172
+ rejected_at?: string | null;
8173
+ sent_at?: string | null;
8174
+ source_number?: string | null;
8175
+ source_ref?: string | null;
8176
+ source_type?: string;
8177
+ status?: string;
8178
+ subtotal_cents?: number;
8179
+ total_cents?: number;
8180
+ updated_at?: string;
8181
+ valid_until?: string | null;
8182
+ vat_cents?: number;
8183
+ vat_rate?: number;
8184
+ viewed_at?: string | null;
8185
+ volgnummer?: number | null;
8186
+ werkbon_id?: string | null;
8187
+ work_location_id?: string | null;
8188
+ };
8189
+ Relationships: [{
8190
+ foreignKeyName: "itk_offertes_contact_id_fkey";
8191
+ columns: ["contact_id"];
8192
+ isOneToOne: false;
8193
+ referencedRelation: "itk_contact_persons";
8194
+ referencedColumns: ["id"];
8195
+ }, {
8196
+ foreignKeyName: "itk_offertes_customer_id_fkey";
8197
+ columns: ["customer_id"];
8198
+ isOneToOne: false;
8199
+ referencedRelation: "itk_customers";
8200
+ referencedColumns: ["id"];
8201
+ }, {
8202
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
8203
+ columns: ["follow_up_werkbon_id"];
8204
+ isOneToOne: false;
8205
+ referencedRelation: "werkbonnen";
8206
+ referencedColumns: ["id"];
8207
+ }, {
8208
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8209
+ columns: ["werkbon_id"];
8210
+ isOneToOne: false;
8211
+ referencedRelation: "werkbonnen";
8212
+ referencedColumns: ["id"];
8213
+ }, {
8214
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8215
+ columns: ["work_location_id"];
8216
+ isOneToOne: false;
8217
+ referencedRelation: "itk_work_locations";
8218
+ referencedColumns: ["id"];
8219
+ }];
8220
+ };
8221
+ itk_work_locations: {
8222
+ Row: {
8223
+ city: string | null;
8224
+ created_at: string;
8225
+ customer_id: string;
8226
+ id: string;
8227
+ instructions: string | null;
8228
+ label: string;
8229
+ latitude: number | null;
8230
+ longitude: number | null;
8231
+ postcode: string | null;
8232
+ street: string | null;
8233
+ updated_at: string;
8234
+ };
8235
+ Insert: {
8236
+ city?: string | null;
8237
+ created_at?: string;
8238
+ customer_id: string;
8239
+ id?: string;
8240
+ instructions?: string | null;
8241
+ label: string;
8242
+ latitude?: number | null;
8243
+ longitude?: number | null;
8244
+ postcode?: string | null;
8245
+ street?: string | null;
8246
+ updated_at?: string;
8247
+ };
8248
+ Update: {
8249
+ city?: string | null;
8250
+ created_at?: string;
8251
+ customer_id?: string;
8252
+ id?: string;
8253
+ instructions?: string | null;
8254
+ label?: string;
8255
+ latitude?: number | null;
8256
+ longitude?: number | null;
8257
+ postcode?: string | null;
8258
+ street?: string | null;
8259
+ updated_at?: string;
8260
+ };
8261
+ Relationships: [{
8262
+ foreignKeyName: "itk_work_locations_customer_id_fkey";
8263
+ columns: ["customer_id"];
8264
+ isOneToOne: false;
8265
+ referencedRelation: "itk_customers";
8266
+ referencedColumns: ["id"];
8267
+ }];
8268
+ };
8269
+ layout_logos: {
8270
+ Row: {
8271
+ bestand_url: string;
8272
+ bestandsgrootte: number;
8273
+ bestandspad: string | null;
8274
+ bestandstype: string;
8275
+ breedte: number;
8276
+ categorie: string;
8277
+ created_at: string;
8278
+ hash: string | null;
8279
+ hoogte: number;
8280
+ id: string;
8281
+ is_standaard: boolean;
8282
+ naam: string;
8283
+ omschrijving: string;
8284
+ transparant: boolean;
8285
+ updated_at: string;
8286
+ };
8287
+ Insert: {
8288
+ bestand_url: string;
8289
+ bestandsgrootte?: number;
8290
+ bestandspad?: string | null;
8291
+ bestandstype?: string;
7722
8292
  breedte?: number;
7723
8293
  categorie?: string;
7724
8294
  created_at?: string;
@@ -7765,7 +8335,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7765
8335
  start_date: string;
7766
8336
  start_time: string | null;
7767
8337
  status: string;
7768
- tenant_id: string;
7769
8338
  updated_at: string;
7770
8339
  user_id: string;
7771
8340
  };
@@ -7783,7 +8352,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7783
8352
  start_date: string;
7784
8353
  start_time?: string | null;
7785
8354
  status?: string;
7786
- tenant_id?: string;
7787
8355
  updated_at?: string;
7788
8356
  user_id: string;
7789
8357
  };
@@ -7801,7 +8369,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7801
8369
  start_date?: string;
7802
8370
  start_time?: string | null;
7803
8371
  status?: string;
7804
- tenant_id?: string;
7805
8372
  updated_at?: string;
7806
8373
  user_id?: string;
7807
8374
  };
@@ -7809,13 +8376,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7809
8376
  foreignKeyName: "leave_requests_monteur_id_fkey";
7810
8377
  columns: ["monteur_id"];
7811
8378
  isOneToOne: false;
7812
- referencedRelation: "monteurs";
8379
+ referencedRelation: "profiles";
7813
8380
  referencedColumns: ["id"];
7814
8381
  }, {
7815
8382
  foreignKeyName: "leave_requests_user_id_fkey";
7816
8383
  columns: ["user_id"];
7817
8384
  isOneToOne: false;
7818
- referencedRelation: "monteurs";
8385
+ referencedRelation: "profiles";
7819
8386
  referencedColumns: ["id"];
7820
8387
  }];
7821
8388
  };
@@ -9970,6 +10537,117 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9970
10537
  };
9971
10538
  Relationships: [];
9972
10539
  };
10540
+ material_usage: {
10541
+ Row: {
10542
+ created_at: string;
10543
+ id: string;
10544
+ material_name: string;
10545
+ monteur_id: string | null;
10546
+ price_at_time: number;
10547
+ quantity_used: number;
10548
+ updated_at: string;
10549
+ van_inventory_id: string | null;
10550
+ work_order_id: string;
10551
+ };
10552
+ Insert: {
10553
+ created_at?: string;
10554
+ id?: string;
10555
+ material_name: string;
10556
+ monteur_id?: string | null;
10557
+ price_at_time?: number;
10558
+ quantity_used?: number;
10559
+ updated_at?: string;
10560
+ van_inventory_id?: string | null;
10561
+ work_order_id: string;
10562
+ };
10563
+ Update: {
10564
+ created_at?: string;
10565
+ id?: string;
10566
+ material_name?: string;
10567
+ monteur_id?: string | null;
10568
+ price_at_time?: number;
10569
+ quantity_used?: number;
10570
+ updated_at?: string;
10571
+ van_inventory_id?: string | null;
10572
+ work_order_id?: string;
10573
+ };
10574
+ Relationships: [{
10575
+ foreignKeyName: "material_usage_monteur_id_fkey";
10576
+ columns: ["monteur_id"];
10577
+ isOneToOne: false;
10578
+ referencedRelation: "profiles";
10579
+ referencedColumns: ["id"];
10580
+ }, {
10581
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
10582
+ columns: ["van_inventory_id"];
10583
+ isOneToOne: false;
10584
+ referencedRelation: "van_inventories";
10585
+ referencedColumns: ["id"];
10586
+ }, {
10587
+ foreignKeyName: "material_usage_work_order_id_fkey";
10588
+ columns: ["work_order_id"];
10589
+ isOneToOne: false;
10590
+ referencedRelation: "work_orders";
10591
+ referencedColumns: ["id"];
10592
+ }];
10593
+ };
10594
+ medewerker_details: {
10595
+ Row: {
10596
+ color: string | null;
10597
+ created_at: string;
10598
+ hours_fri: number | null;
10599
+ hours_mon: number | null;
10600
+ hours_thu: number | null;
10601
+ hours_tue: number | null;
10602
+ hours_wed: number | null;
10603
+ id: string;
10604
+ is_active: boolean;
10605
+ leave_balance_hours: number;
10606
+ persnr: string | null;
10607
+ phone: string | null;
10608
+ profile_id: string;
10609
+ updated_at: string;
10610
+ };
10611
+ Insert: {
10612
+ color?: string | null;
10613
+ created_at?: string;
10614
+ hours_fri?: number | null;
10615
+ hours_mon?: number | null;
10616
+ hours_thu?: number | null;
10617
+ hours_tue?: number | null;
10618
+ hours_wed?: number | null;
10619
+ id?: string;
10620
+ is_active?: boolean;
10621
+ leave_balance_hours?: number;
10622
+ persnr?: string | null;
10623
+ phone?: string | null;
10624
+ profile_id: string;
10625
+ updated_at?: string;
10626
+ };
10627
+ Update: {
10628
+ color?: string | null;
10629
+ created_at?: string;
10630
+ hours_fri?: number | null;
10631
+ hours_mon?: number | null;
10632
+ hours_thu?: number | null;
10633
+ hours_tue?: number | null;
10634
+ hours_wed?: number | null;
10635
+ id?: string;
10636
+ is_active?: boolean;
10637
+ leave_balance_hours?: number;
10638
+ persnr?: string | null;
10639
+ phone?: string | null;
10640
+ profile_id?: string;
10641
+ updated_at?: string;
10642
+ };
10643
+ Relationships: [{
10644
+ foreignKeyName: "medewerker_details_profile_id_fkey";
10645
+ columns: ["profile_id"];
10646
+ isOneToOne: true;
10647
+ referencedRelation: "profiles";
10648
+ referencedColumns: ["id"];
10649
+ }];
10650
+ };
9973
10651
  module_features: {
9974
10652
  Row: {
9975
10653
  created_at: string;
@@ -10030,8 +10708,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10030
10708
  module_registry: {
10031
10709
  Row: {
10032
10710
  created_at: string;
10711
+ enforce: boolean;
10033
10712
  is_active: boolean;
10034
10713
  last_seen_at: string;
10714
+ missing_count: number;
10035
10715
  module_id: string;
10036
10716
  name: string;
10037
10717
  shell_id: string | null;
@@ -10039,8 +10719,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10039
10719
  };
10040
10720
  Insert: {
10041
10721
  created_at?: string;
10722
+ enforce?: boolean;
10042
10723
  is_active?: boolean;
10043
10724
  last_seen_at?: string;
10725
+ missing_count?: number;
10044
10726
  module_id: string;
10045
10727
  name: string;
10046
10728
  shell_id?: string | null;
@@ -10048,8 +10730,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10048
10730
  };
10049
10731
  Update: {
10050
10732
  created_at?: string;
10733
+ enforce?: boolean;
10051
10734
  is_active?: boolean;
10052
10735
  last_seen_at?: string;
10736
+ missing_count?: number;
10053
10737
  module_id?: string;
10054
10738
  name?: string;
10055
10739
  shell_id?: string | null;
@@ -10082,88 +10766,31 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10082
10766
  id: string;
10083
10767
  is_active: boolean;
10084
10768
  last_seen_at: string | null;
10085
- module_key: string;
10086
- module_name: string;
10087
- updated_at: string;
10088
- };
10089
- Insert: {
10090
- created_at?: string;
10091
- description?: string | null;
10092
- id?: string;
10093
- is_active?: boolean;
10094
- last_seen_at?: string | null;
10095
- module_key: string;
10096
- module_name: string;
10097
- updated_at?: string;
10098
- };
10099
- Update: {
10100
- created_at?: string;
10101
- description?: string | null;
10102
- id?: string;
10103
- is_active?: boolean;
10104
- last_seen_at?: string | null;
10105
- module_key?: string;
10106
- module_name?: string;
10107
- updated_at?: string;
10108
- };
10109
- Relationships: [];
10110
- };
10111
- monteurs: {
10112
- Row: {
10113
- avatar_url: string | null;
10114
- color: string | null;
10115
- created_at: string;
10116
- email: string | null;
10117
- id: string;
10118
- is_active: boolean;
10119
- leave_balance_hours: number;
10120
- name: string;
10121
- persnr: number | null;
10122
- phone: string | null;
10123
- role: string;
10124
- tenant_id: string;
10769
+ module_key: string;
10770
+ module_name: string;
10125
10771
  updated_at: string;
10126
- user_id: string | null;
10127
10772
  };
10128
10773
  Insert: {
10129
- avatar_url?: string | null;
10130
- color?: string | null;
10131
10774
  created_at?: string;
10132
- email?: string | null;
10775
+ description?: string | null;
10133
10776
  id?: string;
10134
10777
  is_active?: boolean;
10135
- leave_balance_hours?: number;
10136
- name: string;
10137
- persnr?: number | null;
10138
- phone?: string | null;
10139
- role?: string;
10140
- tenant_id: string;
10778
+ last_seen_at?: string | null;
10779
+ module_key: string;
10780
+ module_name: string;
10141
10781
  updated_at?: string;
10142
- user_id?: string | null;
10143
10782
  };
10144
10783
  Update: {
10145
- avatar_url?: string | null;
10146
- color?: string | null;
10147
10784
  created_at?: string;
10148
- email?: string | null;
10785
+ description?: string | null;
10149
10786
  id?: string;
10150
10787
  is_active?: boolean;
10151
- leave_balance_hours?: number;
10152
- name?: string;
10153
- persnr?: number | null;
10154
- phone?: string | null;
10155
- role?: string;
10156
- tenant_id?: string;
10788
+ last_seen_at?: string | null;
10789
+ module_key?: string;
10790
+ module_name?: string;
10157
10791
  updated_at?: string;
10158
- user_id?: string | null;
10159
10792
  };
10160
- Relationships: [{
10161
- foreignKeyName: "monteurs_tenant_id_fkey";
10162
- columns: ["tenant_id"];
10163
- isOneToOne: false;
10164
- referencedRelation: "tenants";
10165
- referencedColumns: ["id"];
10166
- }];
10793
+ Relationships: [];
10167
10794
  };
10168
10795
  nmbrs_component_mapping: {
10169
10796
  Row: {
@@ -10235,13 +10862,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10235
10862
  nmbrs_employee_number?: string;
10236
10863
  updated_at?: string;
10237
10864
  };
10238
- Relationships: [{
10239
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
10240
- columns: ["monteur_id"];
10241
- isOneToOne: true;
10242
- referencedRelation: "monteurs";
10243
- referencedColumns: ["id"];
10244
- }];
10865
+ Relationships: [];
10245
10866
  };
10246
10867
  nmbrs_export_lines: {
10247
10868
  Row: {
@@ -10290,12 +10911,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10290
10911
  wage_code?: string;
10291
10912
  };
10292
10913
  Relationships: [{
10293
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10294
- columns: ["monteur_id"];
10295
- isOneToOne: false;
10296
- referencedRelation: "monteurs";
10297
- referencedColumns: ["id"];
10298
- }, {
10299
10914
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10300
10915
  columns: ["run_id"];
10301
10916
  isOneToOne: false;
@@ -11118,6 +11733,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11118
11733
  };
11119
11734
  order_invoice_links: {
11120
11735
  Row: {
11736
+ administration_code: string | null;
11121
11737
  attempts: number;
11122
11738
  created_at: string;
11123
11739
  error_message: string | null;
@@ -11130,6 +11746,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11130
11746
  updated_at: string;
11131
11747
  };
11132
11748
  Insert: {
11749
+ administration_code?: string | null;
11133
11750
  attempts?: number;
11134
11751
  created_at?: string;
11135
11752
  error_message?: string | null;
@@ -11142,6 +11759,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11142
11759
  updated_at?: string;
11143
11760
  };
11144
11761
  Update: {
11762
+ administration_code?: string | null;
11145
11763
  attempts?: number;
11146
11764
  created_at?: string;
11147
11765
  error_message?: string | null;
@@ -11329,6 +11947,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11329
11947
  orders: {
11330
11948
  Row: {
11331
11949
  buffer_id: string | null;
11950
+ cancel_reason: string | null;
11951
+ cancelled_at: string | null;
11332
11952
  created_at: string;
11333
11953
  custom_fields: import("./types.js").Json;
11334
11954
  customer_id: string | null;
@@ -11351,6 +11971,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11351
11971
  };
11352
11972
  Insert: {
11353
11973
  buffer_id?: string | null;
11974
+ cancel_reason?: string | null;
11975
+ cancelled_at?: string | null;
11354
11976
  created_at?: string;
11355
11977
  custom_fields?: import("./types.js").Json;
11356
11978
  customer_id?: string | null;
@@ -11373,6 +11995,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11373
11995
  };
11374
11996
  Update: {
11375
11997
  buffer_id?: string | null;
11998
+ cancel_reason?: string | null;
11999
+ cancelled_at?: string | null;
11376
12000
  created_at?: string;
11377
12001
  custom_fields?: import("./types.js").Json;
11378
12002
  customer_id?: string | null;
@@ -12583,6 +13207,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12583
13207
  gebruiker_id: string | null;
12584
13208
  gebruiker_naam: string;
12585
13209
  gestart_op: string | null;
13210
+ herkomst: string | null;
12586
13211
  id: string;
12587
13212
  idempotentie_sleutel: string | null;
12588
13213
  is_herprint: boolean;
@@ -12612,6 +13237,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12612
13237
  gebruiker_id?: string | null;
12613
13238
  gebruiker_naam?: string;
12614
13239
  gestart_op?: string | null;
13240
+ herkomst?: string | null;
12615
13241
  id?: string;
12616
13242
  idempotentie_sleutel?: string | null;
12617
13243
  is_herprint?: boolean;
@@ -12641,6 +13267,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12641
13267
  gebruiker_id?: string | null;
12642
13268
  gebruiker_naam?: string;
12643
13269
  gestart_op?: string | null;
13270
+ herkomst?: string | null;
12644
13271
  id?: string;
12645
13272
  idempotentie_sleutel?: string | null;
12646
13273
  is_herprint?: boolean;
@@ -13435,6 +14062,66 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13435
14062
  };
13436
14063
  Relationships: [];
13437
14064
  };
14065
+ profile_modules: {
14066
+ Row: {
14067
+ created_at: string;
14068
+ id: string;
14069
+ module_id: string;
14070
+ profile_id: string;
14071
+ };
14072
+ Insert: {
14073
+ created_at?: string;
14074
+ id?: string;
14075
+ module_id: string;
14076
+ profile_id: string;
14077
+ };
14078
+ Update: {
14079
+ created_at?: string;
14080
+ id?: string;
14081
+ module_id?: string;
14082
+ profile_id?: string;
14083
+ };
14084
+ Relationships: [{
14085
+ foreignKeyName: "profile_modules_profile_id_fkey";
14086
+ columns: ["profile_id"];
14087
+ isOneToOne: false;
14088
+ referencedRelation: "profiles_org";
14089
+ referencedColumns: ["id"];
14090
+ }];
14091
+ };
14092
+ profile_roles: {
14093
+ Row: {
14094
+ created_at: string;
14095
+ id: string;
14096
+ profile_id: string;
14097
+ role_id: string;
14098
+ };
14099
+ Insert: {
14100
+ created_at?: string;
14101
+ id?: string;
14102
+ profile_id: string;
14103
+ role_id: string;
14104
+ };
14105
+ Update: {
14106
+ created_at?: string;
14107
+ id?: string;
14108
+ profile_id?: string;
14109
+ role_id?: string;
14110
+ };
14111
+ Relationships: [{
14112
+ foreignKeyName: "profile_roles_profile_id_fkey";
14113
+ columns: ["profile_id"];
14114
+ isOneToOne: false;
14115
+ referencedRelation: "profiles_org";
14116
+ referencedColumns: ["id"];
14117
+ }, {
14118
+ foreignKeyName: "profile_roles_role_id_fkey";
14119
+ columns: ["role_id"];
14120
+ isOneToOne: false;
14121
+ referencedRelation: "roles";
14122
+ referencedColumns: ["id"];
14123
+ }];
14124
+ };
13438
14125
  profiles: {
13439
14126
  Row: {
13440
14127
  address: string | null;
@@ -13480,6 +14167,39 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13480
14167
  referencedColumns: ["id"];
13481
14168
  }];
13482
14169
  };
14170
+ profiles_org: {
14171
+ Row: {
14172
+ created_at: string;
14173
+ id: string;
14174
+ is_default: boolean;
14175
+ name: string;
14176
+ tenant_id: string | null;
14177
+ updated_at: string;
14178
+ };
14179
+ Insert: {
14180
+ created_at?: string;
14181
+ id?: string;
14182
+ is_default?: boolean;
14183
+ name: string;
14184
+ tenant_id?: string | null;
14185
+ updated_at?: string;
14186
+ };
14187
+ Update: {
14188
+ created_at?: string;
14189
+ id?: string;
14190
+ is_default?: boolean;
14191
+ name?: string;
14192
+ tenant_id?: string | null;
14193
+ updated_at?: string;
14194
+ };
14195
+ Relationships: [{
14196
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14197
+ columns: ["tenant_id"];
14198
+ isOneToOne: false;
14199
+ referencedRelation: "tenants";
14200
+ referencedColumns: ["id"];
14201
+ }];
14202
+ };
13483
14203
  projects: {
13484
14204
  Row: {
13485
14205
  contact_name: string | null;
@@ -14654,6 +15374,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14654
15374
  type: string;
14655
15375
  updated_at: string;
14656
15376
  vereist_medewerker: boolean;
15377
+ werkplek: string | null;
14657
15378
  };
14658
15379
  Insert: {
14659
15380
  actief?: boolean;
@@ -14667,6 +15388,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14667
15388
  type?: string;
14668
15389
  updated_at?: string;
14669
15390
  vereist_medewerker?: boolean;
15391
+ werkplek?: string | null;
14670
15392
  };
14671
15393
  Update: {
14672
15394
  actief?: boolean;
@@ -14680,9 +15402,46 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14680
15402
  type?: string;
14681
15403
  updated_at?: string;
14682
15404
  vereist_medewerker?: boolean;
15405
+ werkplek?: string | null;
14683
15406
  };
14684
15407
  Relationships: [];
14685
15408
  };
15409
+ sick_periods: {
15410
+ Row: {
15411
+ created_at: string;
15412
+ employee_id: string;
15413
+ end_date: string | null;
15414
+ id: string;
15415
+ notes: string | null;
15416
+ start_date: string;
15417
+ updated_at: string;
15418
+ };
15419
+ Insert: {
15420
+ created_at?: string;
15421
+ employee_id: string;
15422
+ end_date?: string | null;
15423
+ id?: string;
15424
+ notes?: string | null;
15425
+ start_date: string;
15426
+ updated_at?: string;
15427
+ };
15428
+ Update: {
15429
+ created_at?: string;
15430
+ employee_id?: string;
15431
+ end_date?: string | null;
15432
+ id?: string;
15433
+ notes?: string | null;
15434
+ start_date?: string;
15435
+ updated_at?: string;
15436
+ };
15437
+ Relationships: [{
15438
+ foreignKeyName: "sick_periods_employee_id_fkey";
15439
+ columns: ["employee_id"];
15440
+ isOneToOne: false;
15441
+ referencedRelation: "profiles";
15442
+ referencedColumns: ["id"];
15443
+ }];
15444
+ };
14686
15445
  sidebar_config: {
14687
15446
  Row: {
14688
15447
  id: string;
@@ -14980,6 +15739,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14980
15739
  };
14981
15740
  Relationships: [];
14982
15741
  };
15742
+ time_compensation_entries: {
15743
+ Row: {
15744
+ created_at: string;
15745
+ employee_id: string;
15746
+ entry_date: string;
15747
+ id: string;
15748
+ km: number;
15749
+ meal_allowance: number;
15750
+ notes: string | null;
15751
+ standby_evening: number;
15752
+ standby_weekend: number;
15753
+ tvt_change: number;
15754
+ updated_at: string;
15755
+ };
15756
+ Insert: {
15757
+ created_at?: string;
15758
+ employee_id: string;
15759
+ entry_date: string;
15760
+ id?: string;
15761
+ km?: number;
15762
+ meal_allowance?: number;
15763
+ notes?: string | null;
15764
+ standby_evening?: number;
15765
+ standby_weekend?: number;
15766
+ tvt_change?: number;
15767
+ updated_at?: string;
15768
+ };
15769
+ Update: {
15770
+ created_at?: string;
15771
+ employee_id?: string;
15772
+ entry_date?: string;
15773
+ id?: string;
15774
+ km?: number;
15775
+ meal_allowance?: number;
15776
+ notes?: string | null;
15777
+ standby_evening?: number;
15778
+ standby_weekend?: number;
15779
+ tvt_change?: number;
15780
+ updated_at?: string;
15781
+ };
15782
+ Relationships: [{
15783
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
15784
+ columns: ["employee_id"];
15785
+ isOneToOne: false;
15786
+ referencedRelation: "profiles";
15787
+ referencedColumns: ["id"];
15788
+ }];
15789
+ };
14983
15790
  time_entries: {
14984
15791
  Row: {
14985
15792
  created_at: string;
@@ -15014,65 +15821,170 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15014
15821
  undertime?: number;
15015
15822
  updated_at?: string;
15016
15823
  };
15824
+ Relationships: [];
15825
+ };
15826
+ time_log_week_approvals: {
15827
+ Row: {
15828
+ approved_at: string | null;
15829
+ approved_by: string | null;
15830
+ created_at: string;
15831
+ employee_id: string;
15832
+ id: string;
15833
+ locked: boolean;
15834
+ notes: string | null;
15835
+ status: string;
15836
+ submitted_at: string | null;
15837
+ updated_at: string;
15838
+ week_start: string;
15839
+ };
15840
+ Insert: {
15841
+ approved_at?: string | null;
15842
+ approved_by?: string | null;
15843
+ created_at?: string;
15844
+ employee_id: string;
15845
+ id?: string;
15846
+ locked?: boolean;
15847
+ notes?: string | null;
15848
+ status?: string;
15849
+ submitted_at?: string | null;
15850
+ updated_at?: string;
15851
+ week_start: string;
15852
+ };
15853
+ Update: {
15854
+ approved_at?: string | null;
15855
+ approved_by?: string | null;
15856
+ created_at?: string;
15857
+ employee_id?: string;
15858
+ id?: string;
15859
+ locked?: boolean;
15860
+ notes?: string | null;
15861
+ status?: string;
15862
+ submitted_at?: string | null;
15863
+ updated_at?: string;
15864
+ week_start?: string;
15865
+ };
15017
15866
  Relationships: [{
15018
- foreignKeyName: "time_entries_employee_id_fkey";
15867
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
15019
15868
  columns: ["employee_id"];
15020
15869
  isOneToOne: false;
15021
- referencedRelation: "monteurs";
15870
+ referencedRelation: "profiles";
15022
15871
  referencedColumns: ["id"];
15023
15872
  }];
15024
15873
  };
15025
15874
  time_logs: {
15026
15875
  Row: {
15876
+ auto_stop_reason: string | null;
15877
+ auto_stopped: boolean;
15027
15878
  created_at: string;
15879
+ current_latitude: number | null;
15880
+ current_longitude: number | null;
15881
+ current_position_updated_at: string | null;
15028
15882
  employee_id: string;
15883
+ end_latitude: number | null;
15884
+ end_longitude: number | null;
15029
15885
  end_time: string | null;
15886
+ eta_distance_km: number | null;
15887
+ eta_minutes: number | null;
15888
+ eta_updated_at: string | null;
15889
+ hour_category: string | null;
15030
15890
  id: string;
15891
+ last_reminder_at: string | null;
15031
15892
  notes: string | null;
15032
15893
  overtime_hours: number;
15033
15894
  overtime_type: string | null;
15034
15895
  regular_hours: number;
15896
+ reminder_count: number;
15897
+ requires_review: boolean;
15898
+ start_latitude: number | null;
15899
+ start_longitude: number | null;
15035
15900
  start_time: string;
15036
15901
  travel_cost: number | null;
15037
15902
  travel_distance_km: number | null;
15903
+ travel_duration_min: number | null;
15904
+ travel_time_minutes: number | null;
15038
15905
  type: string;
15039
15906
  updated_at: string;
15907
+ work_order_id: string | null;
15040
15908
  };
15041
15909
  Insert: {
15910
+ auto_stop_reason?: string | null;
15911
+ auto_stopped?: boolean;
15042
15912
  created_at?: string;
15913
+ current_latitude?: number | null;
15914
+ current_longitude?: number | null;
15915
+ current_position_updated_at?: string | null;
15043
15916
  employee_id: string;
15917
+ end_latitude?: number | null;
15918
+ end_longitude?: number | null;
15044
15919
  end_time?: string | null;
15920
+ eta_distance_km?: number | null;
15921
+ eta_minutes?: number | null;
15922
+ eta_updated_at?: string | null;
15923
+ hour_category?: string | null;
15045
15924
  id?: string;
15925
+ last_reminder_at?: string | null;
15046
15926
  notes?: string | null;
15047
15927
  overtime_hours?: number;
15048
15928
  overtime_type?: string | null;
15049
15929
  regular_hours?: number;
15930
+ reminder_count?: number;
15931
+ requires_review?: boolean;
15932
+ start_latitude?: number | null;
15933
+ start_longitude?: number | null;
15050
15934
  start_time?: string;
15051
15935
  travel_cost?: number | null;
15052
15936
  travel_distance_km?: number | null;
15937
+ travel_duration_min?: number | null;
15938
+ travel_time_minutes?: number | null;
15053
15939
  type: string;
15054
15940
  updated_at?: string;
15941
+ work_order_id?: string | null;
15055
15942
  };
15056
15943
  Update: {
15944
+ auto_stop_reason?: string | null;
15945
+ auto_stopped?: boolean;
15057
15946
  created_at?: string;
15947
+ current_latitude?: number | null;
15948
+ current_longitude?: number | null;
15949
+ current_position_updated_at?: string | null;
15058
15950
  employee_id?: string;
15951
+ end_latitude?: number | null;
15952
+ end_longitude?: number | null;
15059
15953
  end_time?: string | null;
15954
+ eta_distance_km?: number | null;
15955
+ eta_minutes?: number | null;
15956
+ eta_updated_at?: string | null;
15957
+ hour_category?: string | null;
15060
15958
  id?: string;
15959
+ last_reminder_at?: string | null;
15061
15960
  notes?: string | null;
15062
15961
  overtime_hours?: number;
15063
15962
  overtime_type?: string | null;
15064
15963
  regular_hours?: number;
15964
+ reminder_count?: number;
15965
+ requires_review?: boolean;
15966
+ start_latitude?: number | null;
15967
+ start_longitude?: number | null;
15065
15968
  start_time?: string;
15066
15969
  travel_cost?: number | null;
15067
15970
  travel_distance_km?: number | null;
15971
+ travel_duration_min?: number | null;
15972
+ travel_time_minutes?: number | null;
15068
15973
  type?: string;
15069
15974
  updated_at?: string;
15975
+ work_order_id?: string | null;
15070
15976
  };
15071
15977
  Relationships: [{
15072
15978
  foreignKeyName: "time_logs_employee_id_fkey";
15073
15979
  columns: ["employee_id"];
15074
15980
  isOneToOne: false;
15075
- referencedRelation: "monteurs";
15981
+ referencedRelation: "profiles";
15982
+ referencedColumns: ["id"];
15983
+ }, {
15984
+ foreignKeyName: "time_logs_work_order_id_fkey";
15985
+ columns: ["work_order_id"];
15986
+ isOneToOne: false;
15987
+ referencedRelation: "work_orders";
15076
15988
  referencedColumns: ["id"];
15077
15989
  }];
15078
15990
  };
@@ -15111,7 +16023,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15111
16023
  foreignKeyName: "time_off_entries_employee_id_fkey";
15112
16024
  columns: ["employee_id"];
15113
16025
  isOneToOne: false;
15114
- referencedRelation: "monteurs";
16026
+ referencedRelation: "profiles";
15115
16027
  referencedColumns: ["id"];
15116
16028
  }];
15117
16029
  };
@@ -15360,12 +16272,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15360
16272
  company_name: string | null;
15361
16273
  connected_at: string | null;
15362
16274
  created_at: string;
16275
+ disconnected_at: string | null;
15363
16276
  environment: string;
15364
16277
  id: string;
16278
+ initial_sync_completed_at: string | null;
16279
+ initial_sync_started_at: string | null;
15365
16280
  is_active: boolean;
15366
16281
  label: string | null;
15367
16282
  office_code: string | null;
15368
16283
  redirect_uri: string | null;
16284
+ superseded_at: string | null;
15369
16285
  updated_at: string;
15370
16286
  user_id: string;
15371
16287
  };
@@ -15376,12 +16292,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15376
16292
  company_name?: string | null;
15377
16293
  connected_at?: string | null;
15378
16294
  created_at?: string;
16295
+ disconnected_at?: string | null;
15379
16296
  environment: string;
15380
16297
  id?: string;
16298
+ initial_sync_completed_at?: string | null;
16299
+ initial_sync_started_at?: string | null;
15381
16300
  is_active?: boolean;
15382
16301
  label?: string | null;
15383
16302
  office_code?: string | null;
15384
16303
  redirect_uri?: string | null;
16304
+ superseded_at?: string | null;
15385
16305
  updated_at?: string;
15386
16306
  user_id: string;
15387
16307
  };
@@ -15392,12 +16312,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15392
16312
  company_name?: string | null;
15393
16313
  connected_at?: string | null;
15394
16314
  created_at?: string;
16315
+ disconnected_at?: string | null;
15395
16316
  environment?: string;
15396
16317
  id?: string;
16318
+ initial_sync_completed_at?: string | null;
16319
+ initial_sync_started_at?: string | null;
15397
16320
  is_active?: boolean;
15398
16321
  label?: string | null;
15399
16322
  office_code?: string | null;
15400
16323
  redirect_uri?: string | null;
16324
+ superseded_at?: string | null;
15401
16325
  updated_at?: string;
15402
16326
  user_id?: string;
15403
16327
  };
@@ -15416,14 +16340,48 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15416
16340
  };
15417
16341
  Update: {
15418
16342
  created_at?: string;
15419
- id?: number;
15420
- secret?: string;
16343
+ id?: number;
16344
+ secret?: string;
16345
+ };
16346
+ Relationships: [];
16347
+ };
16348
+ twinfield_cron_locks: {
16349
+ Row: {
16350
+ created_at: string;
16351
+ heartbeat_at: string;
16352
+ job_name: string;
16353
+ last_error: string | null;
16354
+ last_finished_at: string | null;
16355
+ locked_at: string;
16356
+ run_id: string;
16357
+ updated_at: string;
16358
+ };
16359
+ Insert: {
16360
+ created_at?: string;
16361
+ heartbeat_at?: string;
16362
+ job_name: string;
16363
+ last_error?: string | null;
16364
+ last_finished_at?: string | null;
16365
+ locked_at?: string;
16366
+ run_id?: string;
16367
+ updated_at?: string;
16368
+ };
16369
+ Update: {
16370
+ created_at?: string;
16371
+ heartbeat_at?: string;
16372
+ job_name?: string;
16373
+ last_error?: string | null;
16374
+ last_finished_at?: string | null;
16375
+ locked_at?: string;
16376
+ run_id?: string;
16377
+ updated_at?: string;
15421
16378
  };
15422
16379
  Relationships: [];
15423
16380
  };
15424
16381
  twinfield_customers: {
15425
16382
  Row: {
15426
16383
  address: string | null;
16384
+ administration_code: string;
15427
16385
  city: string | null;
15428
16386
  country: string | null;
15429
16387
  created_at: string;
@@ -15443,6 +16401,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15443
16401
  };
15444
16402
  Insert: {
15445
16403
  address?: string | null;
16404
+ administration_code?: string;
15446
16405
  city?: string | null;
15447
16406
  country?: string | null;
15448
16407
  created_at?: string;
@@ -15462,6 +16421,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15462
16421
  };
15463
16422
  Update: {
15464
16423
  address?: string | null;
16424
+ administration_code?: string;
15465
16425
  city?: string | null;
15466
16426
  country?: string | null;
15467
16427
  created_at?: string;
@@ -15675,7 +16635,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15675
16635
  };
15676
16636
  twinfield_invoice_settings: {
15677
16637
  Row: {
16638
+ administration_code: string | null;
15678
16639
  auto_invoice_enabled: boolean;
16640
+ auto_invoice_start_date: string | null;
15679
16641
  auto_invoice_trigger_statuses: string[];
15680
16642
  created_at: string;
15681
16643
  debtor_gl_account: string;
@@ -15689,15 +16651,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15689
16651
  invoice_enabled_fo: boolean;
15690
16652
  invoice_enabled_ho: boolean;
15691
16653
  invoice_enabled_mo: boolean;
16654
+ needs_review: boolean;
15692
16655
  payment_gl_account: string;
15693
16656
  payment_journal_code: string;
16657
+ settings_confirmed_at: string | null;
15694
16658
  updated_at: string;
15695
16659
  user_id: string;
15696
16660
  vat_code_eu_reverse: string | null;
15697
16661
  vat_code_export: string | null;
15698
16662
  };
15699
16663
  Insert: {
16664
+ administration_code?: string | null;
15700
16665
  auto_invoice_enabled?: boolean;
16666
+ auto_invoice_start_date?: string | null;
15701
16667
  auto_invoice_trigger_statuses?: string[];
15702
16668
  created_at?: string;
15703
16669
  debtor_gl_account?: string;
@@ -15711,15 +16677,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15711
16677
  invoice_enabled_fo?: boolean;
15712
16678
  invoice_enabled_ho?: boolean;
15713
16679
  invoice_enabled_mo?: boolean;
16680
+ needs_review?: boolean;
15714
16681
  payment_gl_account?: string;
15715
16682
  payment_journal_code?: string;
16683
+ settings_confirmed_at?: string | null;
15716
16684
  updated_at?: string;
15717
16685
  user_id: string;
15718
16686
  vat_code_eu_reverse?: string | null;
15719
16687
  vat_code_export?: string | null;
15720
16688
  };
15721
16689
  Update: {
16690
+ administration_code?: string | null;
15722
16691
  auto_invoice_enabled?: boolean;
16692
+ auto_invoice_start_date?: string | null;
15723
16693
  auto_invoice_trigger_statuses?: string[];
15724
16694
  created_at?: string;
15725
16695
  debtor_gl_account?: string;
@@ -15733,8 +16703,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15733
16703
  invoice_enabled_fo?: boolean;
15734
16704
  invoice_enabled_ho?: boolean;
15735
16705
  invoice_enabled_mo?: boolean;
16706
+ needs_review?: boolean;
15736
16707
  payment_gl_account?: string;
15737
16708
  payment_journal_code?: string;
16709
+ settings_confirmed_at?: string | null;
15738
16710
  updated_at?: string;
15739
16711
  user_id?: string;
15740
16712
  vat_code_eu_reverse?: string | null;
@@ -16021,6 +16993,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16021
16993
  twinfield_push_queue: {
16022
16994
  Row: {
16023
16995
  action: string;
16996
+ attempt_started_at: string | null;
16024
16997
  attempts: number;
16025
16998
  connection_id: string | null;
16026
16999
  created_at: string;
@@ -16037,6 +17010,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16037
17010
  };
16038
17011
  Insert: {
16039
17012
  action?: string;
17013
+ attempt_started_at?: string | null;
16040
17014
  attempts?: number;
16041
17015
  connection_id?: string | null;
16042
17016
  created_at?: string;
@@ -16053,6 +17027,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16053
17027
  };
16054
17028
  Update: {
16055
17029
  action?: string;
17030
+ attempt_started_at?: string | null;
16056
17031
  attempts?: number;
16057
17032
  connection_id?: string | null;
16058
17033
  created_at?: string;
@@ -16250,13 +17225,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16250
17225
  workday_end?: string | null;
16251
17226
  workday_start?: string | null;
16252
17227
  };
16253
- Relationships: [{
16254
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
16255
- columns: ["monteur_id"];
16256
- isOneToOne: true;
16257
- referencedRelation: "monteurs";
16258
- referencedColumns: ["id"];
16259
- }];
17228
+ Relationships: [];
16260
17229
  };
16261
17230
  uren_entries: {
16262
17231
  Row: {
@@ -16302,12 +17271,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16302
17271
  werkbon_id?: string | null;
16303
17272
  };
16304
17273
  Relationships: [{
16305
- foreignKeyName: "uren_entries_monteur_id_fkey";
16306
- columns: ["monteur_id"];
16307
- isOneToOne: false;
16308
- referencedRelation: "monteurs";
16309
- referencedColumns: ["id"];
16310
- }, {
16311
17274
  foreignKeyName: "uren_entries_werkbon_id_fkey";
16312
17275
  columns: ["werkbon_id"];
16313
17276
  isOneToOne: false;
@@ -16348,114 +17311,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16348
17311
  };
16349
17312
  Relationships: [];
16350
17313
  };
16351
- uren_facturen: {
16352
- Row: {
16353
- created_at: string;
16354
- created_by: string | null;
16355
- customer_id: string | null;
16356
- customer_name: string | null;
16357
- id: string;
16358
- invoice_number: string | null;
16359
- note: string | null;
16360
- status: string;
16361
- total_excl_cents: number;
16362
- total_incl_cents: number;
16363
- updated_at: string;
16364
- vat_cents: number;
16365
- vat_percentage: number;
16366
- werkbon_id: string | null;
16367
- };
16368
- Insert: {
16369
- created_at?: string;
16370
- created_by?: string | null;
16371
- customer_id?: string | null;
16372
- customer_name?: string | null;
16373
- id?: string;
16374
- invoice_number?: string | null;
16375
- note?: string | null;
16376
- status?: string;
16377
- total_excl_cents?: number;
16378
- total_incl_cents?: number;
16379
- updated_at?: string;
16380
- vat_cents?: number;
16381
- vat_percentage?: number;
16382
- werkbon_id?: string | null;
16383
- };
16384
- Update: {
16385
- created_at?: string;
16386
- created_by?: string | null;
16387
- customer_id?: string | null;
16388
- customer_name?: string | null;
16389
- id?: string;
16390
- invoice_number?: string | null;
16391
- note?: string | null;
16392
- status?: string;
16393
- total_excl_cents?: number;
16394
- total_incl_cents?: number;
16395
- updated_at?: string;
16396
- vat_cents?: number;
16397
- vat_percentage?: number;
16398
- werkbon_id?: string | null;
16399
- };
16400
- Relationships: [{
16401
- foreignKeyName: "uren_facturen_customer_id_fkey";
16402
- columns: ["customer_id"];
16403
- isOneToOne: false;
16404
- referencedRelation: "itk_customers";
16405
- referencedColumns: ["id"];
16406
- }, {
16407
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
16408
- columns: ["werkbon_id"];
16409
- isOneToOne: true;
16410
- referencedRelation: "werkbonnen";
16411
- referencedColumns: ["id"];
16412
- }];
16413
- };
16414
- uren_factuur_regels: {
16415
- Row: {
16416
- created_at: string;
16417
- description: string;
16418
- factuur_id: string;
16419
- id: string;
16420
- kind: string | null;
16421
- quantity: number;
16422
- sort_order: number;
16423
- total_cents: number;
16424
- unit: string;
16425
- unit_price_cents: number;
16426
- };
16427
- Insert: {
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
- Update: {
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
- Relationships: [{
16452
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
16453
- columns: ["factuur_id"];
16454
- isOneToOne: false;
16455
- referencedRelation: "uren_facturen";
16456
- referencedColumns: ["id"];
16457
- }];
16458
- };
16459
17314
  uren_offerte_regels: {
16460
17315
  Row: {
16461
17316
  created_at: string;
@@ -16775,13 +17630,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16775
17630
  submitted_at?: string | null;
16776
17631
  updated_at?: string;
16777
17632
  };
16778
- Relationships: [{
16779
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16780
- columns: ["monteur_id"];
16781
- isOneToOne: false;
16782
- referencedRelation: "monteurs";
16783
- referencedColumns: ["id"];
16784
- }];
17633
+ Relationships: [];
16785
17634
  };
16786
17635
  user_module_permissions: {
16787
17636
  Row: {
@@ -16840,6 +17689,51 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16840
17689
  referencedColumns: ["id"];
16841
17690
  }];
16842
17691
  };
17692
+ van_inventories: {
17693
+ Row: {
17694
+ barcode: string | null;
17695
+ created_at: string;
17696
+ id: string;
17697
+ monteur_id: string | null;
17698
+ price_per_unit: number;
17699
+ product_name: string;
17700
+ quantity_current: number;
17701
+ quantity_min: number;
17702
+ unit: string;
17703
+ updated_at: string;
17704
+ };
17705
+ Insert: {
17706
+ barcode?: string | null;
17707
+ created_at?: string;
17708
+ id?: string;
17709
+ monteur_id?: string | null;
17710
+ price_per_unit?: number;
17711
+ product_name: string;
17712
+ quantity_current?: number;
17713
+ quantity_min?: number;
17714
+ unit?: string;
17715
+ updated_at?: string;
17716
+ };
17717
+ Update: {
17718
+ barcode?: string | null;
17719
+ created_at?: string;
17720
+ id?: string;
17721
+ monteur_id?: string | null;
17722
+ price_per_unit?: number;
17723
+ product_name?: string;
17724
+ quantity_current?: number;
17725
+ quantity_min?: number;
17726
+ unit?: string;
17727
+ updated_at?: string;
17728
+ };
17729
+ Relationships: [{
17730
+ foreignKeyName: "van_inventories_monteur_id_fkey";
17731
+ columns: ["monteur_id"];
17732
+ isOneToOne: false;
17733
+ referencedRelation: "profiles";
17734
+ referencedColumns: ["id"];
17735
+ }];
17736
+ };
16843
17737
  voorraad_custom_fields: {
16844
17738
  Row: {
16845
17739
  created_at: string;
@@ -17790,7 +18684,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17790
18684
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17791
18685
  columns: ["monteur_id"];
17792
18686
  isOneToOne: false;
17793
- referencedRelation: "monteurs";
18687
+ referencedRelation: "profiles";
17794
18688
  referencedColumns: ["id"];
17795
18689
  }, {
17796
18690
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17800,6 +18694,60 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17800
18694
  referencedColumns: ["id"];
17801
18695
  }];
17802
18696
  };
18697
+ work_order_photos: {
18698
+ Row: {
18699
+ ai_caption: string | null;
18700
+ ai_categorized_at: string | null;
18701
+ ai_labels: import("./types.js").Json | null;
18702
+ caption: string | null;
18703
+ created_at: string;
18704
+ id: string;
18705
+ monteur_id: string | null;
18706
+ photo_type: string;
18707
+ storage_path: string;
18708
+ updated_at: string;
18709
+ work_order_id: string;
18710
+ };
18711
+ Insert: {
18712
+ ai_caption?: string | null;
18713
+ ai_categorized_at?: string | null;
18714
+ ai_labels?: import("./types.js").Json | null;
18715
+ caption?: string | null;
18716
+ created_at?: string;
18717
+ id?: string;
18718
+ monteur_id?: string | null;
18719
+ photo_type?: string;
18720
+ storage_path: string;
18721
+ updated_at?: string;
18722
+ work_order_id: string;
18723
+ };
18724
+ Update: {
18725
+ ai_caption?: string | null;
18726
+ ai_categorized_at?: string | null;
18727
+ ai_labels?: import("./types.js").Json | null;
18728
+ caption?: string | null;
18729
+ created_at?: string;
18730
+ id?: string;
18731
+ monteur_id?: string | null;
18732
+ photo_type?: string;
18733
+ storage_path?: string;
18734
+ updated_at?: string;
18735
+ work_order_id?: string;
18736
+ };
18737
+ Relationships: [{
18738
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
18739
+ columns: ["monteur_id"];
18740
+ isOneToOne: false;
18741
+ referencedRelation: "profiles";
18742
+ referencedColumns: ["id"];
18743
+ }, {
18744
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
18745
+ columns: ["work_order_id"];
18746
+ isOneToOne: false;
18747
+ referencedRelation: "work_orders";
18748
+ referencedColumns: ["id"];
18749
+ }];
18750
+ };
17803
18751
  work_orders: {
17804
18752
  Row: {
17805
18753
  assigned_to: string | null;
@@ -17831,7 +18779,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17831
18779
  scheduled_end_time: string | null;
17832
18780
  scheduled_start_time: string | null;
17833
18781
  status: string;
17834
- tenant_id: string;
17835
18782
  total_hours_worked: number | null;
17836
18783
  total_price: number | null;
17837
18784
  travel_time_minutes: number | null;
@@ -17869,7 +18816,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17869
18816
  scheduled_end_time?: string | null;
17870
18817
  scheduled_start_time?: string | null;
17871
18818
  status?: string;
17872
- tenant_id: string;
17873
18819
  total_hours_worked?: number | null;
17874
18820
  total_price?: number | null;
17875
18821
  travel_time_minutes?: number | null;
@@ -17907,7 +18853,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17907
18853
  scheduled_end_time?: string | null;
17908
18854
  scheduled_start_time?: string | null;
17909
18855
  status?: string;
17910
- tenant_id?: string;
17911
18856
  total_hours_worked?: number | null;
17912
18857
  total_price?: number | null;
17913
18858
  travel_time_minutes?: number | null;
@@ -17921,12 +18866,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17921
18866
  isOneToOne: false;
17922
18867
  referencedRelation: "work_orders";
17923
18868
  referencedColumns: ["id"];
17924
- }, {
17925
- foreignKeyName: "work_orders_tenant_id_fkey";
17926
- columns: ["tenant_id"];
17927
- isOneToOne: false;
17928
- referencedRelation: "tenants";
17929
- referencedColumns: ["id"];
17930
18869
  }];
17931
18870
  };
17932
18871
  };
@@ -18180,36 +19119,144 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18180
19119
  valid_from: string | null;
18181
19120
  valid_until: string | null;
18182
19121
  };
18183
- Relationships: [];
18184
- };
18185
- manufacture_product_possible_stock_view: {
18186
- Row: {
18187
- component_count: number | null;
18188
- manufacture_product_id: string | null;
18189
- possible_stock: number | null;
19122
+ Relationships: [];
19123
+ };
19124
+ manufacture_product_possible_stock_view: {
19125
+ Row: {
19126
+ component_count: number | null;
19127
+ manufacture_product_id: string | null;
19128
+ possible_stock: number | null;
19129
+ };
19130
+ Relationships: [];
19131
+ };
19132
+ product_group_stock_view: {
19133
+ Row: {
19134
+ item_count: number | null;
19135
+ product_group_id: string | null;
19136
+ total_stock: number | null;
19137
+ };
19138
+ Relationships: [{
19139
+ foreignKeyName: "product_group_items_product_group_id_fkey";
19140
+ columns: ["product_group_id"];
19141
+ isOneToOne: false;
19142
+ referencedRelation: "product_groups";
19143
+ referencedColumns: ["id"];
19144
+ }];
19145
+ };
19146
+ trade_item_stock_view: {
19147
+ Row: {
19148
+ stock: number | null;
19149
+ trade_item_id: string | null;
19150
+ };
19151
+ Relationships: [];
19152
+ };
19153
+ uren_facturen: {
19154
+ Row: {
19155
+ created_at: string | null;
19156
+ created_by: string | null;
19157
+ customer_id: string | null;
19158
+ customer_name: string | null;
19159
+ id: string | null;
19160
+ invoice_number: string | null;
19161
+ note: string | null;
19162
+ status: string | null;
19163
+ total_excl_cents: number | null;
19164
+ total_incl_cents: number | null;
19165
+ updated_at: string | null;
19166
+ vat_cents: number | null;
19167
+ vat_percentage: number | null;
19168
+ werkbon_id: string | null;
19169
+ };
19170
+ Insert: {
19171
+ created_at?: string | null;
19172
+ created_by?: string | null;
19173
+ customer_id?: string | null;
19174
+ customer_name?: string | null;
19175
+ id?: string | null;
19176
+ invoice_number?: string | null;
19177
+ note?: string | null;
19178
+ status?: string | null;
19179
+ total_excl_cents?: number | null;
19180
+ total_incl_cents?: number | null;
19181
+ updated_at?: string | null;
19182
+ vat_cents?: number | null;
19183
+ vat_percentage?: number | null;
19184
+ werkbon_id?: never;
18190
19185
  };
18191
- Relationships: [];
18192
- };
18193
- product_group_stock_view: {
18194
- Row: {
18195
- item_count: number | null;
18196
- product_group_id: string | null;
18197
- total_stock: number | null;
19186
+ Update: {
19187
+ created_at?: string | null;
19188
+ created_by?: string | null;
19189
+ customer_id?: string | null;
19190
+ customer_name?: string | null;
19191
+ id?: string | null;
19192
+ invoice_number?: string | null;
19193
+ note?: string | null;
19194
+ status?: string | null;
19195
+ total_excl_cents?: number | null;
19196
+ total_incl_cents?: number | null;
19197
+ updated_at?: string | null;
19198
+ vat_cents?: number | null;
19199
+ vat_percentage?: number | null;
19200
+ werkbon_id?: never;
18198
19201
  };
18199
19202
  Relationships: [{
18200
- foreignKeyName: "product_group_items_product_group_id_fkey";
18201
- columns: ["product_group_id"];
19203
+ foreignKeyName: "invoices_customer_id_fkey";
19204
+ columns: ["customer_id"];
18202
19205
  isOneToOne: false;
18203
- referencedRelation: "product_groups";
19206
+ referencedRelation: "itk_customers";
18204
19207
  referencedColumns: ["id"];
18205
19208
  }];
18206
19209
  };
18207
- trade_item_stock_view: {
19210
+ uren_factuur_regels: {
18208
19211
  Row: {
18209
- stock: number | null;
18210
- trade_item_id: string | null;
19212
+ created_at: string | null;
19213
+ description: string | null;
19214
+ factuur_id: string | null;
19215
+ id: string | null;
19216
+ kind: string | null;
19217
+ quantity: number | null;
19218
+ sort_order: number | null;
19219
+ total_cents: number | null;
19220
+ unit: string | null;
19221
+ unit_price_cents: number | null;
18211
19222
  };
18212
- Relationships: [];
19223
+ Insert: {
19224
+ created_at?: string | null;
19225
+ description?: string | null;
19226
+ factuur_id?: string | null;
19227
+ id?: string | null;
19228
+ kind?: string | null;
19229
+ quantity?: number | null;
19230
+ sort_order?: number | null;
19231
+ total_cents?: number | null;
19232
+ unit?: string | null;
19233
+ unit_price_cents?: number | null;
19234
+ };
19235
+ Update: {
19236
+ created_at?: string | null;
19237
+ description?: string | null;
19238
+ factuur_id?: string | null;
19239
+ id?: string | null;
19240
+ kind?: string | null;
19241
+ quantity?: number | null;
19242
+ sort_order?: number | null;
19243
+ total_cents?: number | null;
19244
+ unit?: string | null;
19245
+ unit_price_cents?: number | null;
19246
+ };
19247
+ Relationships: [{
19248
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19249
+ columns: ["factuur_id"];
19250
+ isOneToOne: false;
19251
+ referencedRelation: "invoices";
19252
+ referencedColumns: ["id"];
19253
+ }, {
19254
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19255
+ columns: ["factuur_id"];
19256
+ isOneToOne: false;
19257
+ referencedRelation: "uren_facturen";
19258
+ referencedColumns: ["id"];
19259
+ }];
18213
19260
  };
18214
19261
  v_external_customers_exact: {
18215
19262
  Row: {
@@ -18611,6 +19658,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18611
19658
  };
18612
19659
  Returns: undefined;
18613
19660
  };
19661
+ approve_mailbox_order_proposal: {
19662
+ Args: {
19663
+ p_custom_fields: import("./types.js").Json;
19664
+ p_customer_id: string;
19665
+ p_delivery_date: string;
19666
+ p_field_values?: import("./types.js").Json;
19667
+ p_lines: import("./types.js").Json;
19668
+ p_notes: string;
19669
+ p_proposal_id: string;
19670
+ p_reviewed_by: string;
19671
+ };
19672
+ Returns: import("./types.js").Json;
19673
+ };
18614
19674
  assign_cart_numbers: {
18615
19675
  Args: {
18616
19676
  p_carts: import("./types.js").Json;
@@ -18662,6 +19722,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18662
19722
  };
18663
19723
  Returns: number;
18664
19724
  };
19725
+ can_manage_hours: {
19726
+ Args: never;
19727
+ Returns: boolean;
19728
+ };
18665
19729
  check_offer_product_available_stock: {
18666
19730
  Args: {
18667
19731
  p_campaign_product_id: string;
@@ -18699,6 +19763,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18699
19763
  gebruiker_id: string | null;
18700
19764
  gebruiker_naam: string;
18701
19765
  gestart_op: string | null;
19766
+ herkomst: string | null;
18702
19767
  id: string;
18703
19768
  idempotentie_sleutel: string | null;
18704
19769
  is_herprint: boolean;
@@ -18819,6 +19884,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18819
19884
  gebruiker_id: string | null;
18820
19885
  gebruiker_naam: string;
18821
19886
  gestart_op: string | null;
19887
+ herkomst: string | null;
18822
19888
  id: string;
18823
19889
  idempotentie_sleutel: string | null;
18824
19890
  is_herprint: boolean;
@@ -18851,6 +19917,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18851
19917
  };
18852
19918
  Returns: {
18853
19919
  action: string;
19920
+ attempt_started_at: string | null;
18854
19921
  attempts: number;
18855
19922
  connection_id: string | null;
18856
19923
  created_at: string;
@@ -18938,6 +20005,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18938
20005
  agent_naam: string;
18939
20006
  }[];
18940
20007
  };
20008
+ consume_van_inventory: {
20009
+ Args: {
20010
+ p_inventory_id: string;
20011
+ p_quantity: number;
20012
+ };
20013
+ Returns: {
20014
+ barcode: string | null;
20015
+ created_at: string;
20016
+ id: string;
20017
+ monteur_id: string | null;
20018
+ price_per_unit: number;
20019
+ product_name: string;
20020
+ quantity_current: number;
20021
+ quantity_min: number;
20022
+ unit: string;
20023
+ updated_at: string;
20024
+ };
20025
+ SetofOptions: {
20026
+ from: "*";
20027
+ to: "van_inventories";
20028
+ isOneToOne: true;
20029
+ isSetofReturn: false;
20030
+ };
20031
+ };
18941
20032
  control_get_todays_carts: {
18942
20033
  Args: never;
18943
20034
  Returns: {
@@ -19013,7 +20104,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19013
20104
  Returns: string;
19014
20105
  } | {
19015
20106
  Args: {
19016
- _feature_id?: string;
20107
+ _feature_id: string;
19017
20108
  _module_id: string;
19018
20109
  _user_id: string;
19019
20110
  };
@@ -19064,6 +20155,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19064
20155
  };
19065
20156
  Returns: string;
19066
20157
  };
20158
+ employee_day_hours: {
20159
+ Args: {
20160
+ _day: string;
20161
+ _employee_id: string;
20162
+ };
20163
+ Returns: number;
20164
+ };
19067
20165
  enqueue_cart_replan_if_unlocked: {
19068
20166
  Args: {
19069
20167
  p_order_id: string;
@@ -19369,12 +20467,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19369
20467
  Args: never;
19370
20468
  Returns: string;
19371
20469
  };
19372
- get_work_order_tenant_id: {
19373
- Args: {
19374
- wo_id: string;
19375
- };
19376
- Returns: string;
19377
- };
19378
20470
  has_module_permission: {
19379
20471
  Args: {
19380
20472
  _min: string;
@@ -19394,6 +20486,46 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19394
20486
  Args: never;
19395
20487
  Returns: boolean;
19396
20488
  };
20489
+ invoice_create_from_source: {
20490
+ Args: {
20491
+ _payload?: import("./types.js").Json;
20492
+ _source_id: string;
20493
+ _source_type: string;
20494
+ };
20495
+ Returns: import("./types.js").Json;
20496
+ };
20497
+ invoice_get_billable_lines: {
20498
+ Args: {
20499
+ _invoice_id: string;
20500
+ };
20501
+ Returns: import("./types.js").Json;
20502
+ };
20503
+ invoice_get_for_source: {
20504
+ Args: {
20505
+ _source_id: string;
20506
+ _source_type: string;
20507
+ };
20508
+ Returns: import("./types.js").Json;
20509
+ };
20510
+ invoice_get_summary: {
20511
+ Args: {
20512
+ _invoice_id: string;
20513
+ };
20514
+ Returns: import("./types.js").Json;
20515
+ };
20516
+ invoice_list_sources: {
20517
+ Args: {
20518
+ _limit?: number;
20519
+ _source_type?: string;
20520
+ };
20521
+ Returns: import("./types.js").Json;
20522
+ };
20523
+ invoice_recalc_totals: {
20524
+ Args: {
20525
+ _invoice_id: string;
20526
+ };
20527
+ Returns: import("./types.js").Json;
20528
+ };
19397
20529
  is_authenticated: {
19398
20530
  Args: never;
19399
20531
  Returns: boolean;
@@ -19408,6 +20540,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19408
20540
  };
19409
20541
  Returns: boolean;
19410
20542
  };
20543
+ is_time_log_week_locked: {
20544
+ Args: {
20545
+ p_employee_id: string;
20546
+ p_start_time: string;
20547
+ };
20548
+ Returns: boolean;
20549
+ };
19411
20550
  is_user_admin: {
19412
20551
  Args: never;
19413
20552
  Returns: boolean;
@@ -19416,12 +20555,59 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19416
20555
  Args: never;
19417
20556
  Returns: boolean;
19418
20557
  };
20558
+ itk_offerte_naar_werkbon: {
20559
+ Args: {
20560
+ _offerte_id: string;
20561
+ };
20562
+ Returns: string;
20563
+ };
20564
+ itk_offerte_restant_mandaat: {
20565
+ Args: {
20566
+ _exclude_offerte_id?: string;
20567
+ _werkbon_id: string;
20568
+ };
20569
+ Returns: number;
20570
+ };
19419
20571
  jwt_has_role: {
19420
20572
  Args: {
19421
20573
  _role: Database["public"]["Enums"]["app_role"];
19422
20574
  };
19423
20575
  Returns: boolean;
19424
20576
  };
20577
+ list_medewerkers: {
20578
+ Args: never;
20579
+ Returns: {
20580
+ avatar_url: string;
20581
+ color: string;
20582
+ display_name: string;
20583
+ email: string;
20584
+ hours_fri: number;
20585
+ hours_mon: number;
20586
+ hours_thu: number;
20587
+ hours_tue: number;
20588
+ hours_wed: number;
20589
+ id: string;
20590
+ is_active: boolean;
20591
+ leave_balance_hours: number;
20592
+ persnr: string;
20593
+ phone: string;
20594
+ roles: string[];
20595
+ }[];
20596
+ };
20597
+ list_monteur_absences: {
20598
+ Args: {
20599
+ _from: string;
20600
+ _to: string;
20601
+ };
20602
+ Returns: {
20603
+ absence_date: string;
20604
+ end_time: string;
20605
+ full_day: boolean;
20606
+ kind: string;
20607
+ monteur_id: string;
20608
+ start_time: string;
20609
+ }[];
20610
+ };
19425
20611
  list_monteurs: {
19426
20612
  Args: never;
19427
20613
  Returns: {
@@ -19754,17 +20940,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19754
20940
  Returns: string;
19755
20941
  };
19756
20942
  logistics_emit_event: {
19757
- Args: {
19758
- p_event_type: string;
19759
- p_idempotency_key?: string;
19760
- p_order_ref: string;
19761
- p_payload?: import("./types.js").Json;
19762
- p_shadow?: boolean;
19763
- p_source_module: string;
19764
- p_strategy_id?: string;
19765
- };
19766
- Returns: import("./types.js").Json;
19767
- } | {
19768
20943
  Args: {
19769
20944
  p_event_type: string;
19770
20945
  p_idempotency_key?: string;
@@ -20609,6 +21784,37 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20609
21784
  };
20610
21785
  Returns: undefined;
20611
21786
  };
21787
+ quote_create_from_source: {
21788
+ Args: {
21789
+ _payload?: import("./types.js").Json;
21790
+ _source_id: string;
21791
+ _source_type: string;
21792
+ };
21793
+ Returns: string;
21794
+ };
21795
+ quote_get_billable_lines: {
21796
+ Args: {
21797
+ _quotation_id: string;
21798
+ };
21799
+ Returns: import("./types.js").Json;
21800
+ };
21801
+ quote_get_summary: {
21802
+ Args: {
21803
+ _quotation_id: string;
21804
+ };
21805
+ Returns: import("./types.js").Json;
21806
+ };
21807
+ quote_list_packages: {
21808
+ Args: never;
21809
+ Returns: import("./types.js").Json;
21810
+ };
21811
+ quote_list_sources: {
21812
+ Args: {
21813
+ _limit?: number;
21814
+ _source_type?: string;
21815
+ };
21816
+ Returns: import("./types.js").Json;
21817
+ };
20612
21818
  recompute_all_reserved_stock: {
20613
21819
  Args: never;
20614
21820
  Returns: undefined;
@@ -20662,6 +21868,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20662
21868
  };
20663
21869
  Returns: boolean;
20664
21870
  };
21871
+ release_stale_order_invoice_links: {
21872
+ Args: {
21873
+ _minutes?: number;
21874
+ };
21875
+ Returns: number;
21876
+ };
20665
21877
  reorder_customer_price_groups: {
20666
21878
  Args: {
20667
21879
  _ids: string[];
@@ -21100,6 +22312,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21100
22312
  };
21101
22313
  Returns: string[];
21102
22314
  };
22315
+ switch_time_log: {
22316
+ Args: {
22317
+ p_employee_id: string;
22318
+ p_start_lat?: number;
22319
+ p_start_lng?: number;
22320
+ p_type: string;
22321
+ p_work_order_id?: string;
22322
+ };
22323
+ Returns: import("./types.js").Json;
22324
+ };
21103
22325
  sync_all_layer_stocks: {
21104
22326
  Args: never;
21105
22327
  Returns: undefined;
@@ -21134,6 +22356,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21134
22356
  };
21135
22357
  Returns: undefined;
21136
22358
  };
22359
+ sync_sick_time_off: {
22360
+ Args: {
22361
+ _period_id: string;
22362
+ };
22363
+ Returns: number;
22364
+ };
21137
22365
  trade_item_stock_duplicates: {
21138
22366
  Args: never;
21139
22367
  Returns: {
@@ -21150,6 +22378,38 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21150
22378
  };
21151
22379
  Returns: boolean;
21152
22380
  };
22381
+ twinfield_cron_lock_acquire: {
22382
+ Args: {
22383
+ _job_name: string;
22384
+ _stale_seconds?: number;
22385
+ };
22386
+ Returns: boolean;
22387
+ };
22388
+ twinfield_cron_lock_release: {
22389
+ Args: {
22390
+ _error?: string;
22391
+ _job_name: string;
22392
+ };
22393
+ Returns: undefined;
22394
+ };
22395
+ twinfield_deactivate_connection: {
22396
+ Args: {
22397
+ p_connection_id: string;
22398
+ p_user_id: string;
22399
+ };
22400
+ Returns: import("./types.js").Json;
22401
+ };
22402
+ twinfield_handle_administration_change: {
22403
+ Args: {
22404
+ _administration_code: string;
22405
+ _user_id: string;
22406
+ };
22407
+ Returns: undefined;
22408
+ };
22409
+ twinfield_prune_push_queue: {
22410
+ Args: never;
22411
+ Returns: number;
22412
+ };
21153
22413
  twinfield_register_cron: {
21154
22414
  Args: {
21155
22415
  apikey?: string;
@@ -21165,10 +22425,11 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21165
22425
  p_company_name?: string;
21166
22426
  p_environment: string;
21167
22427
  p_office_code?: string;
22428
+ p_reset_sync?: boolean;
21168
22429
  p_status?: string;
21169
22430
  p_user_id: string;
21170
22431
  };
21171
- Returns: string;
22432
+ Returns: import("./types.js").Json;
21172
22433
  };
21173
22434
  upsert_auto_fulfillment_log: {
21174
22435
  Args: {
@@ -21189,11 +22450,31 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21189
22450
  Args: never;
21190
22451
  Returns: string;
21191
22452
  };
22453
+ wo_create_from_source: {
22454
+ Args: {
22455
+ _payload?: import("./types.js").Json;
22456
+ _source_id: string;
22457
+ _source_type: string;
22458
+ };
22459
+ Returns: string;
22460
+ };
22461
+ wo_get_billable_lines: {
22462
+ Args: {
22463
+ _work_order_id: string;
22464
+ };
22465
+ Returns: import("./types.js").Json;
22466
+ };
22467
+ wo_get_summary: {
22468
+ Args: {
22469
+ _work_order_id: string;
22470
+ };
22471
+ Returns: import("./types.js").Json;
22472
+ };
21192
22473
  };
21193
22474
  Enums: {
21194
22475
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
21195
22476
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
21196
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
22477
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
21197
22478
  doc_orientation: "portrait" | "landscape";
21198
22479
  exact_env: "staging" | "live";
21199
22480
  exact_push_status: "pending" | "sent" | "error";