@flowselections/floriday-afhandeling-module 1.0.33 → 1.0.35

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 (28) hide show
  1. package/dist-lib/components/afhandeling/NieuweVervoerderPage.d.ts +1 -0
  2. package/dist-lib/components/afhandeling/NieuweVervoerderPage.d.ts.map +1 -1
  3. package/dist-lib/components/afhandeling/NieuweVervoerderPage.js +1 -0
  4. package/dist-lib/components/afhandeling/VervoerderBewerkenPage.d.ts +9 -2
  5. package/dist-lib/components/afhandeling/VervoerderBewerkenPage.d.ts.map +1 -1
  6. package/dist-lib/components/afhandeling/VervoerderBewerkenPage.js +29 -2
  7. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts +3 -1
  8. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
  9. package/dist-lib/components/afhandeling/VervoerdersPage.js +3 -5
  10. package/dist-lib/integrations/supabase/auth-middleware.d.ts +847 -150
  11. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/client.server.d.ts +847 -150
  13. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/moduleClient.d.ts +847 -150
  15. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/types.d.ts +874 -150
  17. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  18. package/dist-lib/lib/afhandelingSettings.functions.d.ts +1610 -216
  19. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/carriers.functions.d.ts +4025 -540
  21. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/cartAssignments.functions.d.ts +4025 -540
  23. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/cartControl.functions.d.ts +8050 -1080
  25. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday.functions.d.ts +847 -150
  27. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  28. package/package.json +120 -114
@@ -7366,6 +7366,60 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7366
7366
  };
7367
7367
  Relationships: [];
7368
7368
  };
7369
+ invoice_items: {
7370
+ Row: {
7371
+ created_at: string;
7372
+ description: string;
7373
+ id: string;
7374
+ invoice_id: string;
7375
+ kind: string;
7376
+ quantity: number;
7377
+ sort_order: number;
7378
+ source_line_ref: string | null;
7379
+ total_cents: number;
7380
+ unit: string;
7381
+ unit_price_cents: number;
7382
+ };
7383
+ Insert: {
7384
+ created_at?: string;
7385
+ description?: string;
7386
+ id?: string;
7387
+ invoice_id: string;
7388
+ kind?: string;
7389
+ quantity?: number;
7390
+ sort_order?: number;
7391
+ source_line_ref?: string | null;
7392
+ total_cents?: number;
7393
+ unit?: string;
7394
+ unit_price_cents?: number;
7395
+ };
7396
+ Update: {
7397
+ created_at?: string;
7398
+ description?: string;
7399
+ id?: string;
7400
+ invoice_id?: string;
7401
+ kind?: string;
7402
+ quantity?: number;
7403
+ sort_order?: number;
7404
+ source_line_ref?: string | null;
7405
+ total_cents?: number;
7406
+ unit?: string;
7407
+ unit_price_cents?: number;
7408
+ };
7409
+ Relationships: [{
7410
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7411
+ columns: ["invoice_id"];
7412
+ isOneToOne: false;
7413
+ referencedRelation: "invoices";
7414
+ referencedColumns: ["id"];
7415
+ }, {
7416
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7417
+ columns: ["invoice_id"];
7418
+ isOneToOne: false;
7419
+ referencedRelation: "uren_facturen";
7420
+ referencedColumns: ["id"];
7421
+ }];
7422
+ };
7369
7423
  invoice_post_idempotency: {
7370
7424
  Row: {
7371
7425
  client_request_id: string;
@@ -7591,6 +7645,75 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7591
7645
  };
7592
7646
  Relationships: [];
7593
7647
  };
7648
+ invoices: {
7649
+ Row: {
7650
+ created_at: string;
7651
+ created_by: string | null;
7652
+ customer_id: string | null;
7653
+ customer_name: string | null;
7654
+ due_date: string | null;
7655
+ id: string;
7656
+ invoice_date: string;
7657
+ invoice_number: string | null;
7658
+ note: string | null;
7659
+ source_number: string | null;
7660
+ source_ref: string | null;
7661
+ source_type: string;
7662
+ status: string;
7663
+ subtotal_cents: number;
7664
+ total_cents: number;
7665
+ updated_at: string;
7666
+ vat_cents: number;
7667
+ vat_rate: number;
7668
+ };
7669
+ Insert: {
7670
+ created_at?: string;
7671
+ created_by?: string | null;
7672
+ customer_id?: string | null;
7673
+ customer_name?: string | null;
7674
+ due_date?: string | null;
7675
+ id?: string;
7676
+ invoice_date?: string;
7677
+ invoice_number?: string | null;
7678
+ note?: string | null;
7679
+ source_number?: string | null;
7680
+ source_ref?: string | null;
7681
+ source_type?: string;
7682
+ status?: string;
7683
+ subtotal_cents?: number;
7684
+ total_cents?: number;
7685
+ updated_at?: string;
7686
+ vat_cents?: number;
7687
+ vat_rate?: number;
7688
+ };
7689
+ Update: {
7690
+ created_at?: string;
7691
+ created_by?: string | null;
7692
+ customer_id?: string | null;
7693
+ customer_name?: string | null;
7694
+ due_date?: string | null;
7695
+ id?: string;
7696
+ invoice_date?: string;
7697
+ invoice_number?: string | null;
7698
+ note?: string | null;
7699
+ source_number?: string | null;
7700
+ source_ref?: string | null;
7701
+ source_type?: string;
7702
+ status?: string;
7703
+ subtotal_cents?: number;
7704
+ total_cents?: number;
7705
+ updated_at?: string;
7706
+ vat_cents?: number;
7707
+ vat_rate?: number;
7708
+ };
7709
+ Relationships: [{
7710
+ foreignKeyName: "invoices_customer_id_fkey";
7711
+ columns: ["customer_id"];
7712
+ isOneToOne: false;
7713
+ referencedRelation: "itk_customers";
7714
+ referencedColumns: ["id"];
7715
+ }];
7716
+ };
7594
7717
  itk_contact_persons: {
7595
7718
  Row: {
7596
7719
  created_at: string;
@@ -7786,6 +7909,258 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7786
7909
  };
7787
7910
  Relationships: [];
7788
7911
  };
7912
+ itk_offerte_events: {
7913
+ Row: {
7914
+ created_at: string;
7915
+ event_type: string;
7916
+ id: string;
7917
+ metadata: import("../integrations/supabase/types").Json;
7918
+ offerte_id: string;
7919
+ omschrijving: string | null;
7920
+ user_id: string | null;
7921
+ };
7922
+ Insert: {
7923
+ created_at?: string;
7924
+ event_type: string;
7925
+ id?: string;
7926
+ metadata?: import("../integrations/supabase/types").Json;
7927
+ offerte_id: string;
7928
+ omschrijving?: string | null;
7929
+ user_id?: string | null;
7930
+ };
7931
+ Update: {
7932
+ created_at?: string;
7933
+ event_type?: string;
7934
+ id?: string;
7935
+ metadata?: import("../integrations/supabase/types").Json;
7936
+ offerte_id?: string;
7937
+ omschrijving?: string | null;
7938
+ user_id?: string | null;
7939
+ };
7940
+ Relationships: [{
7941
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
7942
+ columns: ["offerte_id"];
7943
+ isOneToOne: false;
7944
+ referencedRelation: "itk_offertes";
7945
+ referencedColumns: ["id"];
7946
+ }];
7947
+ };
7948
+ itk_offerte_regels: {
7949
+ Row: {
7950
+ created_at: string;
7951
+ id: string;
7952
+ line_total_cents: number;
7953
+ offerte_id: string;
7954
+ omschrijving: string;
7955
+ package_id: string | null;
7956
+ quantity: number;
7957
+ sort_order: number;
7958
+ source: string;
7959
+ unit_price_cents: number;
7960
+ updated_at: string;
7961
+ };
7962
+ Insert: {
7963
+ created_at?: string;
7964
+ id?: string;
7965
+ line_total_cents?: number;
7966
+ offerte_id: string;
7967
+ omschrijving?: string;
7968
+ package_id?: string | null;
7969
+ quantity?: number;
7970
+ sort_order?: number;
7971
+ source?: string;
7972
+ unit_price_cents?: number;
7973
+ updated_at?: string;
7974
+ };
7975
+ Update: {
7976
+ created_at?: string;
7977
+ id?: string;
7978
+ line_total_cents?: number;
7979
+ offerte_id?: string;
7980
+ omschrijving?: string;
7981
+ package_id?: string | null;
7982
+ quantity?: number;
7983
+ sort_order?: number;
7984
+ source?: string;
7985
+ unit_price_cents?: number;
7986
+ updated_at?: string;
7987
+ };
7988
+ Relationships: [{
7989
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
7990
+ columns: ["offerte_id"];
7991
+ isOneToOne: false;
7992
+ referencedRelation: "itk_offertes";
7993
+ referencedColumns: ["id"];
7994
+ }, {
7995
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
7996
+ columns: ["package_id"];
7997
+ isOneToOne: false;
7998
+ referencedRelation: "werkbon_packages";
7999
+ referencedColumns: ["id"];
8000
+ }];
8001
+ };
8002
+ itk_offerte_settings: {
8003
+ Row: {
8004
+ auto_convert_binnen_mandaat: boolean;
8005
+ created_at: string;
8006
+ default_geldigheid_dagen: number;
8007
+ default_vat_rate: number;
8008
+ id: string;
8009
+ singleton: boolean;
8010
+ updated_at: string;
8011
+ };
8012
+ Insert: {
8013
+ auto_convert_binnen_mandaat?: boolean;
8014
+ created_at?: string;
8015
+ default_geldigheid_dagen?: number;
8016
+ default_vat_rate?: number;
8017
+ id?: string;
8018
+ singleton?: boolean;
8019
+ updated_at?: string;
8020
+ };
8021
+ Update: {
8022
+ auto_convert_binnen_mandaat?: boolean;
8023
+ created_at?: string;
8024
+ default_geldigheid_dagen?: number;
8025
+ default_vat_rate?: number;
8026
+ id?: string;
8027
+ singleton?: boolean;
8028
+ updated_at?: string;
8029
+ };
8030
+ Relationships: [];
8031
+ };
8032
+ itk_offertes: {
8033
+ Row: {
8034
+ ai_generated: boolean;
8035
+ approved_at: string | null;
8036
+ binnen_mandaat: boolean;
8037
+ contact_id: string | null;
8038
+ converted_at: string | null;
8039
+ created_at: string;
8040
+ created_by: string | null;
8041
+ customer_id: string | null;
8042
+ follow_up_werkbon_id: string | null;
8043
+ id: string;
8044
+ jaar: number;
8045
+ mandaat_restant_cents: number;
8046
+ notities: string | null;
8047
+ offerte_number: string | null;
8048
+ omschrijving: string;
8049
+ rejected_at: string | null;
8050
+ sent_at: string | null;
8051
+ source_number: string | null;
8052
+ source_ref: string | null;
8053
+ source_type: string;
8054
+ status: string;
8055
+ subtotal_cents: number;
8056
+ total_cents: number;
8057
+ updated_at: string;
8058
+ valid_until: string | null;
8059
+ vat_cents: number;
8060
+ vat_rate: number;
8061
+ viewed_at: string | null;
8062
+ volgnummer: number | null;
8063
+ werkbon_id: string | null;
8064
+ work_location_id: string | null;
8065
+ };
8066
+ Insert: {
8067
+ ai_generated?: boolean;
8068
+ approved_at?: string | null;
8069
+ binnen_mandaat?: boolean;
8070
+ contact_id?: string | null;
8071
+ converted_at?: string | null;
8072
+ created_at?: string;
8073
+ created_by?: string | null;
8074
+ customer_id?: string | null;
8075
+ follow_up_werkbon_id?: string | null;
8076
+ id?: string;
8077
+ jaar?: number;
8078
+ mandaat_restant_cents?: number;
8079
+ notities?: string | null;
8080
+ offerte_number?: string | null;
8081
+ omschrijving?: string;
8082
+ rejected_at?: string | null;
8083
+ sent_at?: string | null;
8084
+ source_number?: string | null;
8085
+ source_ref?: string | null;
8086
+ source_type?: string;
8087
+ status?: string;
8088
+ subtotal_cents?: number;
8089
+ total_cents?: number;
8090
+ updated_at?: string;
8091
+ valid_until?: string | null;
8092
+ vat_cents?: number;
8093
+ vat_rate?: number;
8094
+ viewed_at?: string | null;
8095
+ volgnummer?: number | null;
8096
+ werkbon_id?: string | null;
8097
+ work_location_id?: string | null;
8098
+ };
8099
+ Update: {
8100
+ ai_generated?: boolean;
8101
+ approved_at?: string | null;
8102
+ binnen_mandaat?: boolean;
8103
+ contact_id?: string | null;
8104
+ converted_at?: string | null;
8105
+ created_at?: string;
8106
+ created_by?: string | null;
8107
+ customer_id?: string | null;
8108
+ follow_up_werkbon_id?: string | null;
8109
+ id?: string;
8110
+ jaar?: number;
8111
+ mandaat_restant_cents?: number;
8112
+ notities?: string | null;
8113
+ offerte_number?: string | null;
8114
+ omschrijving?: string;
8115
+ rejected_at?: string | null;
8116
+ sent_at?: string | null;
8117
+ source_number?: string | null;
8118
+ source_ref?: string | null;
8119
+ source_type?: string;
8120
+ status?: string;
8121
+ subtotal_cents?: number;
8122
+ total_cents?: number;
8123
+ updated_at?: string;
8124
+ valid_until?: string | null;
8125
+ vat_cents?: number;
8126
+ vat_rate?: number;
8127
+ viewed_at?: string | null;
8128
+ volgnummer?: number | null;
8129
+ werkbon_id?: string | null;
8130
+ work_location_id?: string | null;
8131
+ };
8132
+ Relationships: [{
8133
+ foreignKeyName: "itk_offertes_contact_id_fkey";
8134
+ columns: ["contact_id"];
8135
+ isOneToOne: false;
8136
+ referencedRelation: "itk_contact_persons";
8137
+ referencedColumns: ["id"];
8138
+ }, {
8139
+ foreignKeyName: "itk_offertes_customer_id_fkey";
8140
+ columns: ["customer_id"];
8141
+ isOneToOne: false;
8142
+ referencedRelation: "itk_customers";
8143
+ referencedColumns: ["id"];
8144
+ }, {
8145
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
8146
+ columns: ["follow_up_werkbon_id"];
8147
+ isOneToOne: false;
8148
+ referencedRelation: "werkbonnen";
8149
+ referencedColumns: ["id"];
8150
+ }, {
8151
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8152
+ columns: ["werkbon_id"];
8153
+ isOneToOne: false;
8154
+ referencedRelation: "werkbonnen";
8155
+ referencedColumns: ["id"];
8156
+ }, {
8157
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8158
+ columns: ["work_location_id"];
8159
+ isOneToOne: false;
8160
+ referencedRelation: "itk_work_locations";
8161
+ referencedColumns: ["id"];
8162
+ }];
8163
+ };
7789
8164
  itk_work_locations: {
7790
8165
  Row: {
7791
8166
  city: string | null;
@@ -10159,6 +10534,63 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10159
10534
  referencedColumns: ["id"];
10160
10535
  }];
10161
10536
  };
10537
+ medewerker_details: {
10538
+ Row: {
10539
+ color: string | null;
10540
+ created_at: string;
10541
+ hours_fri: number | null;
10542
+ hours_mon: number | null;
10543
+ hours_thu: number | null;
10544
+ hours_tue: number | null;
10545
+ hours_wed: number | null;
10546
+ id: string;
10547
+ is_active: boolean;
10548
+ leave_balance_hours: number;
10549
+ persnr: string | null;
10550
+ phone: string | null;
10551
+ profile_id: string;
10552
+ updated_at: string;
10553
+ };
10554
+ Insert: {
10555
+ color?: string | null;
10556
+ created_at?: string;
10557
+ hours_fri?: number | null;
10558
+ hours_mon?: number | null;
10559
+ hours_thu?: number | null;
10560
+ hours_tue?: number | null;
10561
+ hours_wed?: number | null;
10562
+ id?: string;
10563
+ is_active?: boolean;
10564
+ leave_balance_hours?: number;
10565
+ persnr?: string | null;
10566
+ phone?: string | null;
10567
+ profile_id: string;
10568
+ updated_at?: string;
10569
+ };
10570
+ Update: {
10571
+ color?: string | null;
10572
+ created_at?: string;
10573
+ hours_fri?: number | null;
10574
+ hours_mon?: number | null;
10575
+ hours_thu?: number | null;
10576
+ hours_tue?: number | null;
10577
+ hours_wed?: number | null;
10578
+ id?: string;
10579
+ is_active?: boolean;
10580
+ leave_balance_hours?: number;
10581
+ persnr?: string | null;
10582
+ phone?: string | null;
10583
+ profile_id?: string;
10584
+ updated_at?: string;
10585
+ };
10586
+ Relationships: [{
10587
+ foreignKeyName: "medewerker_details_profile_id_fkey";
10588
+ columns: ["profile_id"];
10589
+ isOneToOne: true;
10590
+ referencedRelation: "profiles";
10591
+ referencedColumns: ["id"];
10592
+ }];
10593
+ };
10162
10594
  module_features: {
10163
10595
  Row: {
10164
10596
  created_at: string;
@@ -11452,6 +11884,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
11452
11884
  orders: {
11453
11885
  Row: {
11454
11886
  buffer_id: string | null;
11887
+ cancel_reason: string | null;
11888
+ cancelled_at: string | null;
11455
11889
  created_at: string;
11456
11890
  custom_fields: import("../integrations/supabase/types").Json;
11457
11891
  customer_id: string | null;
@@ -11474,6 +11908,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
11474
11908
  };
11475
11909
  Insert: {
11476
11910
  buffer_id?: string | null;
11911
+ cancel_reason?: string | null;
11912
+ cancelled_at?: string | null;
11477
11913
  created_at?: string;
11478
11914
  custom_fields?: import("../integrations/supabase/types").Json;
11479
11915
  customer_id?: string | null;
@@ -11496,6 +11932,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
11496
11932
  };
11497
11933
  Update: {
11498
11934
  buffer_id?: string | null;
11935
+ cancel_reason?: string | null;
11936
+ cancelled_at?: string | null;
11499
11937
  created_at?: string;
11500
11938
  custom_fields?: import("../integrations/supabase/types").Json;
11501
11939
  customer_id?: string | null;
@@ -13558,6 +13996,66 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13558
13996
  };
13559
13997
  Relationships: [];
13560
13998
  };
13999
+ profile_modules: {
14000
+ Row: {
14001
+ created_at: string;
14002
+ id: string;
14003
+ module_id: string;
14004
+ profile_id: string;
14005
+ };
14006
+ Insert: {
14007
+ created_at?: string;
14008
+ id?: string;
14009
+ module_id: string;
14010
+ profile_id: string;
14011
+ };
14012
+ Update: {
14013
+ created_at?: string;
14014
+ id?: string;
14015
+ module_id?: string;
14016
+ profile_id?: string;
14017
+ };
14018
+ Relationships: [{
14019
+ foreignKeyName: "profile_modules_profile_id_fkey";
14020
+ columns: ["profile_id"];
14021
+ isOneToOne: false;
14022
+ referencedRelation: "profiles_org";
14023
+ referencedColumns: ["id"];
14024
+ }];
14025
+ };
14026
+ profile_roles: {
14027
+ Row: {
14028
+ created_at: string;
14029
+ id: string;
14030
+ profile_id: string;
14031
+ role_id: string;
14032
+ };
14033
+ Insert: {
14034
+ created_at?: string;
14035
+ id?: string;
14036
+ profile_id: string;
14037
+ role_id: string;
14038
+ };
14039
+ Update: {
14040
+ created_at?: string;
14041
+ id?: string;
14042
+ profile_id?: string;
14043
+ role_id?: string;
14044
+ };
14045
+ Relationships: [{
14046
+ foreignKeyName: "profile_roles_profile_id_fkey";
14047
+ columns: ["profile_id"];
14048
+ isOneToOne: false;
14049
+ referencedRelation: "profiles_org";
14050
+ referencedColumns: ["id"];
14051
+ }, {
14052
+ foreignKeyName: "profile_roles_role_id_fkey";
14053
+ columns: ["role_id"];
14054
+ isOneToOne: false;
14055
+ referencedRelation: "roles";
14056
+ referencedColumns: ["id"];
14057
+ }];
14058
+ };
13561
14059
  profiles: {
13562
14060
  Row: {
13563
14061
  address: string | null;
@@ -13603,6 +14101,39 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13603
14101
  referencedColumns: ["id"];
13604
14102
  }];
13605
14103
  };
14104
+ profiles_org: {
14105
+ Row: {
14106
+ created_at: string;
14107
+ id: string;
14108
+ is_default: boolean;
14109
+ name: string;
14110
+ tenant_id: string | null;
14111
+ updated_at: string;
14112
+ };
14113
+ Insert: {
14114
+ created_at?: string;
14115
+ id?: string;
14116
+ is_default?: boolean;
14117
+ name: string;
14118
+ tenant_id?: string | null;
14119
+ updated_at?: string;
14120
+ };
14121
+ Update: {
14122
+ created_at?: string;
14123
+ id?: string;
14124
+ is_default?: boolean;
14125
+ name?: string;
14126
+ tenant_id?: string | null;
14127
+ updated_at?: string;
14128
+ };
14129
+ Relationships: [{
14130
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14131
+ columns: ["tenant_id"];
14132
+ isOneToOne: false;
14133
+ referencedRelation: "tenants";
14134
+ referencedColumns: ["id"];
14135
+ }];
14136
+ };
13606
14137
  projects: {
13607
14138
  Row: {
13608
14139
  contact_name: string | null;
@@ -14777,6 +15308,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
14777
15308
  type: string;
14778
15309
  updated_at: string;
14779
15310
  vereist_medewerker: boolean;
15311
+ werkplek: string | null;
14780
15312
  };
14781
15313
  Insert: {
14782
15314
  actief?: boolean;
@@ -14790,6 +15322,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
14790
15322
  type?: string;
14791
15323
  updated_at?: string;
14792
15324
  vereist_medewerker?: boolean;
15325
+ werkplek?: string | null;
14793
15326
  };
14794
15327
  Update: {
14795
15328
  actief?: boolean;
@@ -14803,9 +15336,46 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
14803
15336
  type?: string;
14804
15337
  updated_at?: string;
14805
15338
  vereist_medewerker?: boolean;
15339
+ werkplek?: string | null;
14806
15340
  };
14807
15341
  Relationships: [];
14808
15342
  };
15343
+ sick_periods: {
15344
+ Row: {
15345
+ created_at: string;
15346
+ employee_id: string;
15347
+ end_date: string | null;
15348
+ id: string;
15349
+ notes: string | null;
15350
+ start_date: string;
15351
+ updated_at: string;
15352
+ };
15353
+ Insert: {
15354
+ created_at?: string;
15355
+ employee_id: string;
15356
+ end_date?: string | null;
15357
+ id?: string;
15358
+ notes?: string | null;
15359
+ start_date: string;
15360
+ updated_at?: string;
15361
+ };
15362
+ Update: {
15363
+ created_at?: string;
15364
+ employee_id?: string;
15365
+ end_date?: string | null;
15366
+ id?: string;
15367
+ notes?: string | null;
15368
+ start_date?: string;
15369
+ updated_at?: string;
15370
+ };
15371
+ Relationships: [{
15372
+ foreignKeyName: "sick_periods_employee_id_fkey";
15373
+ columns: ["employee_id"];
15374
+ isOneToOne: false;
15375
+ referencedRelation: "profiles";
15376
+ referencedColumns: ["id"];
15377
+ }];
15378
+ };
14809
15379
  sidebar_config: {
14810
15380
  Row: {
14811
15381
  id: string;
@@ -16648,114 +17218,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16648
17218
  };
16649
17219
  Relationships: [];
16650
17220
  };
16651
- uren_facturen: {
16652
- Row: {
16653
- created_at: string;
16654
- created_by: string | null;
16655
- customer_id: string | null;
16656
- customer_name: string | null;
16657
- id: string;
16658
- invoice_number: string | null;
16659
- note: string | null;
16660
- status: string;
16661
- total_excl_cents: number;
16662
- total_incl_cents: number;
16663
- updated_at: string;
16664
- vat_cents: number;
16665
- vat_percentage: number;
16666
- werkbon_id: string | null;
16667
- };
16668
- Insert: {
16669
- created_at?: string;
16670
- created_by?: string | null;
16671
- customer_id?: string | null;
16672
- customer_name?: string | null;
16673
- id?: string;
16674
- invoice_number?: string | null;
16675
- note?: string | null;
16676
- status?: string;
16677
- total_excl_cents?: number;
16678
- total_incl_cents?: number;
16679
- updated_at?: string;
16680
- vat_cents?: number;
16681
- vat_percentage?: number;
16682
- werkbon_id?: string | null;
16683
- };
16684
- Update: {
16685
- created_at?: string;
16686
- created_by?: string | null;
16687
- customer_id?: string | null;
16688
- customer_name?: string | null;
16689
- id?: string;
16690
- invoice_number?: string | null;
16691
- note?: string | null;
16692
- status?: string;
16693
- total_excl_cents?: number;
16694
- total_incl_cents?: number;
16695
- updated_at?: string;
16696
- vat_cents?: number;
16697
- vat_percentage?: number;
16698
- werkbon_id?: string | null;
16699
- };
16700
- Relationships: [{
16701
- foreignKeyName: "uren_facturen_customer_id_fkey";
16702
- columns: ["customer_id"];
16703
- isOneToOne: false;
16704
- referencedRelation: "itk_customers";
16705
- referencedColumns: ["id"];
16706
- }, {
16707
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
16708
- columns: ["werkbon_id"];
16709
- isOneToOne: true;
16710
- referencedRelation: "werkbonnen";
16711
- referencedColumns: ["id"];
16712
- }];
16713
- };
16714
- uren_factuur_regels: {
16715
- Row: {
16716
- created_at: string;
16717
- description: string;
16718
- factuur_id: string;
16719
- id: string;
16720
- kind: string | null;
16721
- quantity: number;
16722
- sort_order: number;
16723
- total_cents: number;
16724
- unit: string;
16725
- unit_price_cents: number;
16726
- };
16727
- Insert: {
16728
- created_at?: string;
16729
- description: string;
16730
- factuur_id: string;
16731
- id?: string;
16732
- kind?: string | null;
16733
- quantity?: number;
16734
- sort_order?: number;
16735
- total_cents?: number;
16736
- unit?: string;
16737
- unit_price_cents?: number;
16738
- };
16739
- Update: {
16740
- created_at?: string;
16741
- description?: string;
16742
- factuur_id?: string;
16743
- id?: string;
16744
- kind?: string | null;
16745
- quantity?: number;
16746
- sort_order?: number;
16747
- total_cents?: number;
16748
- unit?: string;
16749
- unit_price_cents?: number;
16750
- };
16751
- Relationships: [{
16752
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
16753
- columns: ["factuur_id"];
16754
- isOneToOne: false;
16755
- referencedRelation: "uren_facturen";
16756
- referencedColumns: ["id"];
16757
- }];
16758
- };
16759
17221
  uren_offerte_regels: {
16760
17222
  Row: {
16761
17223
  created_at: string;
@@ -18595,6 +19057,114 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18595
19057
  };
18596
19058
  Relationships: [];
18597
19059
  };
19060
+ uren_facturen: {
19061
+ Row: {
19062
+ created_at: string | null;
19063
+ created_by: string | null;
19064
+ customer_id: string | null;
19065
+ customer_name: string | null;
19066
+ id: string | null;
19067
+ invoice_number: string | null;
19068
+ note: string | null;
19069
+ status: string | null;
19070
+ total_excl_cents: number | null;
19071
+ total_incl_cents: number | null;
19072
+ updated_at: string | null;
19073
+ vat_cents: number | null;
19074
+ vat_percentage: number | null;
19075
+ werkbon_id: string | null;
19076
+ };
19077
+ Insert: {
19078
+ created_at?: string | null;
19079
+ created_by?: string | null;
19080
+ customer_id?: string | null;
19081
+ customer_name?: string | null;
19082
+ id?: string | null;
19083
+ invoice_number?: string | null;
19084
+ note?: string | null;
19085
+ status?: string | null;
19086
+ total_excl_cents?: number | null;
19087
+ total_incl_cents?: number | null;
19088
+ updated_at?: string | null;
19089
+ vat_cents?: number | null;
19090
+ vat_percentage?: number | null;
19091
+ werkbon_id?: never;
19092
+ };
19093
+ Update: {
19094
+ created_at?: string | null;
19095
+ created_by?: string | null;
19096
+ customer_id?: string | null;
19097
+ customer_name?: string | null;
19098
+ id?: string | null;
19099
+ invoice_number?: string | null;
19100
+ note?: string | null;
19101
+ status?: string | null;
19102
+ total_excl_cents?: number | null;
19103
+ total_incl_cents?: number | null;
19104
+ updated_at?: string | null;
19105
+ vat_cents?: number | null;
19106
+ vat_percentage?: number | null;
19107
+ werkbon_id?: never;
19108
+ };
19109
+ Relationships: [{
19110
+ foreignKeyName: "invoices_customer_id_fkey";
19111
+ columns: ["customer_id"];
19112
+ isOneToOne: false;
19113
+ referencedRelation: "itk_customers";
19114
+ referencedColumns: ["id"];
19115
+ }];
19116
+ };
19117
+ uren_factuur_regels: {
19118
+ Row: {
19119
+ created_at: string | null;
19120
+ description: string | null;
19121
+ factuur_id: string | null;
19122
+ id: string | null;
19123
+ kind: string | null;
19124
+ quantity: number | null;
19125
+ sort_order: number | null;
19126
+ total_cents: number | null;
19127
+ unit: string | null;
19128
+ unit_price_cents: number | null;
19129
+ };
19130
+ Insert: {
19131
+ created_at?: string | null;
19132
+ description?: string | null;
19133
+ factuur_id?: string | null;
19134
+ id?: string | null;
19135
+ kind?: string | null;
19136
+ quantity?: number | null;
19137
+ sort_order?: number | null;
19138
+ total_cents?: number | null;
19139
+ unit?: string | null;
19140
+ unit_price_cents?: number | null;
19141
+ };
19142
+ Update: {
19143
+ created_at?: string | null;
19144
+ description?: string | null;
19145
+ factuur_id?: string | null;
19146
+ id?: string | null;
19147
+ kind?: string | null;
19148
+ quantity?: number | null;
19149
+ sort_order?: number | null;
19150
+ total_cents?: number | null;
19151
+ unit?: string | null;
19152
+ unit_price_cents?: number | null;
19153
+ };
19154
+ Relationships: [{
19155
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19156
+ columns: ["factuur_id"];
19157
+ isOneToOne: false;
19158
+ referencedRelation: "invoices";
19159
+ referencedColumns: ["id"];
19160
+ }, {
19161
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19162
+ columns: ["factuur_id"];
19163
+ isOneToOne: false;
19164
+ referencedRelation: "uren_facturen";
19165
+ referencedColumns: ["id"];
19166
+ }];
19167
+ };
18598
19168
  v_external_customers_exact: {
18599
19169
  Row: {
18600
19170
  account_number: string | null;
@@ -19490,6 +20060,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
19490
20060
  };
19491
20061
  Returns: string;
19492
20062
  };
20063
+ employee_day_hours: {
20064
+ Args: {
20065
+ _day: string;
20066
+ _employee_id: string;
20067
+ };
20068
+ Returns: number;
20069
+ };
19493
20070
  enqueue_cart_replan_if_unlocked: {
19494
20071
  Args: {
19495
20072
  p_order_id: string;
@@ -19814,6 +20391,46 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
19814
20391
  Args: never;
19815
20392
  Returns: boolean;
19816
20393
  };
20394
+ invoice_create_from_source: {
20395
+ Args: {
20396
+ _payload?: import("../integrations/supabase/types").Json;
20397
+ _source_id: string;
20398
+ _source_type: string;
20399
+ };
20400
+ Returns: import("../integrations/supabase/types").Json;
20401
+ };
20402
+ invoice_get_billable_lines: {
20403
+ Args: {
20404
+ _invoice_id: string;
20405
+ };
20406
+ Returns: import("../integrations/supabase/types").Json;
20407
+ };
20408
+ invoice_get_for_source: {
20409
+ Args: {
20410
+ _source_id: string;
20411
+ _source_type: string;
20412
+ };
20413
+ Returns: import("../integrations/supabase/types").Json;
20414
+ };
20415
+ invoice_get_summary: {
20416
+ Args: {
20417
+ _invoice_id: string;
20418
+ };
20419
+ Returns: import("../integrations/supabase/types").Json;
20420
+ };
20421
+ invoice_list_sources: {
20422
+ Args: {
20423
+ _limit?: number;
20424
+ _source_type?: string;
20425
+ };
20426
+ Returns: import("../integrations/supabase/types").Json;
20427
+ };
20428
+ invoice_recalc_totals: {
20429
+ Args: {
20430
+ _invoice_id: string;
20431
+ };
20432
+ Returns: import("../integrations/supabase/types").Json;
20433
+ };
19817
20434
  is_authenticated: {
19818
20435
  Args: never;
19819
20436
  Returns: boolean;
@@ -19843,6 +20460,19 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
19843
20460
  Args: never;
19844
20461
  Returns: boolean;
19845
20462
  };
20463
+ itk_offerte_naar_werkbon: {
20464
+ Args: {
20465
+ _offerte_id: string;
20466
+ };
20467
+ Returns: string;
20468
+ };
20469
+ itk_offerte_restant_mandaat: {
20470
+ Args: {
20471
+ _exclude_offerte_id?: string;
20472
+ _werkbon_id: string;
20473
+ };
20474
+ Returns: number;
20475
+ };
19846
20476
  jwt_has_role: {
19847
20477
  Args: {
19848
20478
  _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
@@ -19853,9 +20483,19 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
19853
20483
  Args: never;
19854
20484
  Returns: {
19855
20485
  avatar_url: string;
20486
+ color: string;
19856
20487
  display_name: string;
19857
20488
  email: string;
20489
+ hours_fri: number;
20490
+ hours_mon: number;
20491
+ hours_thu: number;
20492
+ hours_tue: number;
20493
+ hours_wed: number;
19858
20494
  id: string;
20495
+ is_active: boolean;
20496
+ leave_balance_hours: number;
20497
+ persnr: string;
20498
+ phone: string;
19859
20499
  roles: string[];
19860
20500
  }[];
19861
20501
  };
@@ -21026,6 +21666,37 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21026
21666
  };
21027
21667
  Returns: undefined;
21028
21668
  };
21669
+ quote_create_from_source: {
21670
+ Args: {
21671
+ _payload?: import("../integrations/supabase/types").Json;
21672
+ _source_id: string;
21673
+ _source_type: string;
21674
+ };
21675
+ Returns: string;
21676
+ };
21677
+ quote_get_billable_lines: {
21678
+ Args: {
21679
+ _quotation_id: string;
21680
+ };
21681
+ Returns: import("../integrations/supabase/types").Json;
21682
+ };
21683
+ quote_get_summary: {
21684
+ Args: {
21685
+ _quotation_id: string;
21686
+ };
21687
+ Returns: import("../integrations/supabase/types").Json;
21688
+ };
21689
+ quote_list_packages: {
21690
+ Args: never;
21691
+ Returns: import("../integrations/supabase/types").Json;
21692
+ };
21693
+ quote_list_sources: {
21694
+ Args: {
21695
+ _limit?: number;
21696
+ _source_type?: string;
21697
+ };
21698
+ Returns: import("../integrations/supabase/types").Json;
21699
+ };
21029
21700
  recompute_all_reserved_stock: {
21030
21701
  Args: never;
21031
21702
  Returns: undefined;
@@ -21561,6 +22232,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21561
22232
  };
21562
22233
  Returns: undefined;
21563
22234
  };
22235
+ sync_sick_time_off: {
22236
+ Args: {
22237
+ _period_id: string;
22238
+ };
22239
+ Returns: number;
22240
+ };
21564
22241
  trade_item_stock_duplicates: {
21565
22242
  Args: never;
21566
22243
  Returns: {
@@ -21634,6 +22311,26 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21634
22311
  Args: never;
21635
22312
  Returns: string;
21636
22313
  };
22314
+ wo_create_from_source: {
22315
+ Args: {
22316
+ _payload?: import("../integrations/supabase/types").Json;
22317
+ _source_id: string;
22318
+ _source_type: string;
22319
+ };
22320
+ Returns: string;
22321
+ };
22322
+ wo_get_billable_lines: {
22323
+ Args: {
22324
+ _work_order_id: string;
22325
+ };
22326
+ Returns: import("../integrations/supabase/types").Json;
22327
+ };
22328
+ wo_get_summary: {
22329
+ Args: {
22330
+ _work_order_id: string;
22331
+ };
22332
+ Returns: import("../integrations/supabase/types").Json;
22333
+ };
21637
22334
  };
21638
22335
  Enums: {
21639
22336
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
@@ -29007,6 +29704,60 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29007
29704
  };
29008
29705
  Relationships: [];
29009
29706
  };
29707
+ invoice_items: {
29708
+ Row: {
29709
+ created_at: string;
29710
+ description: string;
29711
+ id: string;
29712
+ invoice_id: string;
29713
+ kind: string;
29714
+ quantity: number;
29715
+ sort_order: number;
29716
+ source_line_ref: string | null;
29717
+ total_cents: number;
29718
+ unit: string;
29719
+ unit_price_cents: number;
29720
+ };
29721
+ Insert: {
29722
+ created_at?: string;
29723
+ description?: string;
29724
+ id?: string;
29725
+ invoice_id: string;
29726
+ kind?: string;
29727
+ quantity?: number;
29728
+ sort_order?: number;
29729
+ source_line_ref?: string | null;
29730
+ total_cents?: number;
29731
+ unit?: string;
29732
+ unit_price_cents?: number;
29733
+ };
29734
+ Update: {
29735
+ created_at?: string;
29736
+ description?: string;
29737
+ id?: string;
29738
+ invoice_id?: string;
29739
+ kind?: string;
29740
+ quantity?: number;
29741
+ sort_order?: number;
29742
+ source_line_ref?: string | null;
29743
+ total_cents?: number;
29744
+ unit?: string;
29745
+ unit_price_cents?: number;
29746
+ };
29747
+ Relationships: [{
29748
+ foreignKeyName: "invoice_items_invoice_id_fkey";
29749
+ columns: ["invoice_id"];
29750
+ isOneToOne: false;
29751
+ referencedRelation: "invoices";
29752
+ referencedColumns: ["id"];
29753
+ }, {
29754
+ foreignKeyName: "invoice_items_invoice_id_fkey";
29755
+ columns: ["invoice_id"];
29756
+ isOneToOne: false;
29757
+ referencedRelation: "uren_facturen";
29758
+ referencedColumns: ["id"];
29759
+ }];
29760
+ };
29010
29761
  invoice_post_idempotency: {
29011
29762
  Row: {
29012
29763
  client_request_id: string;
@@ -29232,6 +29983,75 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29232
29983
  };
29233
29984
  Relationships: [];
29234
29985
  };
29986
+ invoices: {
29987
+ Row: {
29988
+ created_at: string;
29989
+ created_by: string | null;
29990
+ customer_id: string | null;
29991
+ customer_name: string | null;
29992
+ due_date: string | null;
29993
+ id: string;
29994
+ invoice_date: string;
29995
+ invoice_number: string | null;
29996
+ note: string | null;
29997
+ source_number: string | null;
29998
+ source_ref: string | null;
29999
+ source_type: string;
30000
+ status: string;
30001
+ subtotal_cents: number;
30002
+ total_cents: number;
30003
+ updated_at: string;
30004
+ vat_cents: number;
30005
+ vat_rate: number;
30006
+ };
30007
+ Insert: {
30008
+ created_at?: string;
30009
+ created_by?: string | null;
30010
+ customer_id?: string | null;
30011
+ customer_name?: string | null;
30012
+ due_date?: string | null;
30013
+ id?: string;
30014
+ invoice_date?: string;
30015
+ invoice_number?: string | null;
30016
+ note?: string | null;
30017
+ source_number?: string | null;
30018
+ source_ref?: string | null;
30019
+ source_type?: string;
30020
+ status?: string;
30021
+ subtotal_cents?: number;
30022
+ total_cents?: number;
30023
+ updated_at?: string;
30024
+ vat_cents?: number;
30025
+ vat_rate?: number;
30026
+ };
30027
+ Update: {
30028
+ created_at?: string;
30029
+ created_by?: string | null;
30030
+ customer_id?: string | null;
30031
+ customer_name?: string | null;
30032
+ due_date?: string | null;
30033
+ id?: string;
30034
+ invoice_date?: string;
30035
+ invoice_number?: string | null;
30036
+ note?: string | null;
30037
+ source_number?: string | null;
30038
+ source_ref?: string | null;
30039
+ source_type?: string;
30040
+ status?: string;
30041
+ subtotal_cents?: number;
30042
+ total_cents?: number;
30043
+ updated_at?: string;
30044
+ vat_cents?: number;
30045
+ vat_rate?: number;
30046
+ };
30047
+ Relationships: [{
30048
+ foreignKeyName: "invoices_customer_id_fkey";
30049
+ columns: ["customer_id"];
30050
+ isOneToOne: false;
30051
+ referencedRelation: "itk_customers";
30052
+ referencedColumns: ["id"];
30053
+ }];
30054
+ };
29235
30055
  itk_contact_persons: {
29236
30056
  Row: {
29237
30057
  created_at: string;
@@ -29427,6 +30247,258 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29427
30247
  };
29428
30248
  Relationships: [];
29429
30249
  };
30250
+ itk_offerte_events: {
30251
+ Row: {
30252
+ created_at: string;
30253
+ event_type: string;
30254
+ id: string;
30255
+ metadata: import("../integrations/supabase/types").Json;
30256
+ offerte_id: string;
30257
+ omschrijving: string | null;
30258
+ user_id: string | null;
30259
+ };
30260
+ Insert: {
30261
+ created_at?: string;
30262
+ event_type: string;
30263
+ id?: string;
30264
+ metadata?: import("../integrations/supabase/types").Json;
30265
+ offerte_id: string;
30266
+ omschrijving?: string | null;
30267
+ user_id?: string | null;
30268
+ };
30269
+ Update: {
30270
+ created_at?: string;
30271
+ event_type?: string;
30272
+ id?: string;
30273
+ metadata?: import("../integrations/supabase/types").Json;
30274
+ offerte_id?: string;
30275
+ omschrijving?: string | null;
30276
+ user_id?: string | null;
30277
+ };
30278
+ Relationships: [{
30279
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
30280
+ columns: ["offerte_id"];
30281
+ isOneToOne: false;
30282
+ referencedRelation: "itk_offertes";
30283
+ referencedColumns: ["id"];
30284
+ }];
30285
+ };
30286
+ itk_offerte_regels: {
30287
+ Row: {
30288
+ created_at: string;
30289
+ id: string;
30290
+ line_total_cents: number;
30291
+ offerte_id: string;
30292
+ omschrijving: string;
30293
+ package_id: string | null;
30294
+ quantity: number;
30295
+ sort_order: number;
30296
+ source: string;
30297
+ unit_price_cents: number;
30298
+ updated_at: string;
30299
+ };
30300
+ Insert: {
30301
+ created_at?: string;
30302
+ id?: string;
30303
+ line_total_cents?: number;
30304
+ offerte_id: string;
30305
+ omschrijving?: string;
30306
+ package_id?: string | null;
30307
+ quantity?: number;
30308
+ sort_order?: number;
30309
+ source?: string;
30310
+ unit_price_cents?: number;
30311
+ updated_at?: string;
30312
+ };
30313
+ Update: {
30314
+ created_at?: string;
30315
+ id?: string;
30316
+ line_total_cents?: number;
30317
+ offerte_id?: string;
30318
+ omschrijving?: string;
30319
+ package_id?: string | null;
30320
+ quantity?: number;
30321
+ sort_order?: number;
30322
+ source?: string;
30323
+ unit_price_cents?: number;
30324
+ updated_at?: string;
30325
+ };
30326
+ Relationships: [{
30327
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
30328
+ columns: ["offerte_id"];
30329
+ isOneToOne: false;
30330
+ referencedRelation: "itk_offertes";
30331
+ referencedColumns: ["id"];
30332
+ }, {
30333
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
30334
+ columns: ["package_id"];
30335
+ isOneToOne: false;
30336
+ referencedRelation: "werkbon_packages";
30337
+ referencedColumns: ["id"];
30338
+ }];
30339
+ };
30340
+ itk_offerte_settings: {
30341
+ Row: {
30342
+ auto_convert_binnen_mandaat: boolean;
30343
+ created_at: string;
30344
+ default_geldigheid_dagen: number;
30345
+ default_vat_rate: number;
30346
+ id: string;
30347
+ singleton: boolean;
30348
+ updated_at: string;
30349
+ };
30350
+ Insert: {
30351
+ auto_convert_binnen_mandaat?: boolean;
30352
+ created_at?: string;
30353
+ default_geldigheid_dagen?: number;
30354
+ default_vat_rate?: number;
30355
+ id?: string;
30356
+ singleton?: boolean;
30357
+ updated_at?: string;
30358
+ };
30359
+ Update: {
30360
+ auto_convert_binnen_mandaat?: boolean;
30361
+ created_at?: string;
30362
+ default_geldigheid_dagen?: number;
30363
+ default_vat_rate?: number;
30364
+ id?: string;
30365
+ singleton?: boolean;
30366
+ updated_at?: string;
30367
+ };
30368
+ Relationships: [];
30369
+ };
30370
+ itk_offertes: {
30371
+ Row: {
30372
+ ai_generated: boolean;
30373
+ approved_at: string | null;
30374
+ binnen_mandaat: boolean;
30375
+ contact_id: string | null;
30376
+ converted_at: string | null;
30377
+ created_at: string;
30378
+ created_by: string | null;
30379
+ customer_id: string | null;
30380
+ follow_up_werkbon_id: string | null;
30381
+ id: string;
30382
+ jaar: number;
30383
+ mandaat_restant_cents: number;
30384
+ notities: string | null;
30385
+ offerte_number: string | null;
30386
+ omschrijving: string;
30387
+ rejected_at: string | null;
30388
+ sent_at: string | null;
30389
+ source_number: string | null;
30390
+ source_ref: string | null;
30391
+ source_type: string;
30392
+ status: string;
30393
+ subtotal_cents: number;
30394
+ total_cents: number;
30395
+ updated_at: string;
30396
+ valid_until: string | null;
30397
+ vat_cents: number;
30398
+ vat_rate: number;
30399
+ viewed_at: string | null;
30400
+ volgnummer: number | null;
30401
+ werkbon_id: string | null;
30402
+ work_location_id: string | null;
30403
+ };
30404
+ Insert: {
30405
+ ai_generated?: boolean;
30406
+ approved_at?: string | null;
30407
+ binnen_mandaat?: boolean;
30408
+ contact_id?: string | null;
30409
+ converted_at?: string | null;
30410
+ created_at?: string;
30411
+ created_by?: string | null;
30412
+ customer_id?: string | null;
30413
+ follow_up_werkbon_id?: string | null;
30414
+ id?: string;
30415
+ jaar?: number;
30416
+ mandaat_restant_cents?: number;
30417
+ notities?: string | null;
30418
+ offerte_number?: string | null;
30419
+ omschrijving?: string;
30420
+ rejected_at?: string | null;
30421
+ sent_at?: string | null;
30422
+ source_number?: string | null;
30423
+ source_ref?: string | null;
30424
+ source_type?: string;
30425
+ status?: string;
30426
+ subtotal_cents?: number;
30427
+ total_cents?: number;
30428
+ updated_at?: string;
30429
+ valid_until?: string | null;
30430
+ vat_cents?: number;
30431
+ vat_rate?: number;
30432
+ viewed_at?: string | null;
30433
+ volgnummer?: number | null;
30434
+ werkbon_id?: string | null;
30435
+ work_location_id?: string | null;
30436
+ };
30437
+ Update: {
30438
+ ai_generated?: boolean;
30439
+ approved_at?: string | null;
30440
+ binnen_mandaat?: boolean;
30441
+ contact_id?: string | null;
30442
+ converted_at?: string | null;
30443
+ created_at?: string;
30444
+ created_by?: string | null;
30445
+ customer_id?: string | null;
30446
+ follow_up_werkbon_id?: string | null;
30447
+ id?: string;
30448
+ jaar?: number;
30449
+ mandaat_restant_cents?: number;
30450
+ notities?: string | null;
30451
+ offerte_number?: string | null;
30452
+ omschrijving?: string;
30453
+ rejected_at?: string | null;
30454
+ sent_at?: string | null;
30455
+ source_number?: string | null;
30456
+ source_ref?: string | null;
30457
+ source_type?: string;
30458
+ status?: string;
30459
+ subtotal_cents?: number;
30460
+ total_cents?: number;
30461
+ updated_at?: string;
30462
+ valid_until?: string | null;
30463
+ vat_cents?: number;
30464
+ vat_rate?: number;
30465
+ viewed_at?: string | null;
30466
+ volgnummer?: number | null;
30467
+ werkbon_id?: string | null;
30468
+ work_location_id?: string | null;
30469
+ };
30470
+ Relationships: [{
30471
+ foreignKeyName: "itk_offertes_contact_id_fkey";
30472
+ columns: ["contact_id"];
30473
+ isOneToOne: false;
30474
+ referencedRelation: "itk_contact_persons";
30475
+ referencedColumns: ["id"];
30476
+ }, {
30477
+ foreignKeyName: "itk_offertes_customer_id_fkey";
30478
+ columns: ["customer_id"];
30479
+ isOneToOne: false;
30480
+ referencedRelation: "itk_customers";
30481
+ referencedColumns: ["id"];
30482
+ }, {
30483
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
30484
+ columns: ["follow_up_werkbon_id"];
30485
+ isOneToOne: false;
30486
+ referencedRelation: "werkbonnen";
30487
+ referencedColumns: ["id"];
30488
+ }, {
30489
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
30490
+ columns: ["werkbon_id"];
30491
+ isOneToOne: false;
30492
+ referencedRelation: "werkbonnen";
30493
+ referencedColumns: ["id"];
30494
+ }, {
30495
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
30496
+ columns: ["work_location_id"];
30497
+ isOneToOne: false;
30498
+ referencedRelation: "itk_work_locations";
30499
+ referencedColumns: ["id"];
30500
+ }];
30501
+ };
29430
30502
  itk_work_locations: {
29431
30503
  Row: {
29432
30504
  city: string | null;
@@ -31800,6 +32872,63 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
31800
32872
  referencedColumns: ["id"];
31801
32873
  }];
31802
32874
  };
32875
+ medewerker_details: {
32876
+ Row: {
32877
+ color: string | null;
32878
+ created_at: string;
32879
+ hours_fri: number | null;
32880
+ hours_mon: number | null;
32881
+ hours_thu: number | null;
32882
+ hours_tue: number | null;
32883
+ hours_wed: number | null;
32884
+ id: string;
32885
+ is_active: boolean;
32886
+ leave_balance_hours: number;
32887
+ persnr: string | null;
32888
+ phone: string | null;
32889
+ profile_id: string;
32890
+ updated_at: string;
32891
+ };
32892
+ Insert: {
32893
+ color?: string | null;
32894
+ created_at?: string;
32895
+ hours_fri?: number | null;
32896
+ hours_mon?: number | null;
32897
+ hours_thu?: number | null;
32898
+ hours_tue?: number | null;
32899
+ hours_wed?: number | null;
32900
+ id?: string;
32901
+ is_active?: boolean;
32902
+ leave_balance_hours?: number;
32903
+ persnr?: string | null;
32904
+ phone?: string | null;
32905
+ profile_id: string;
32906
+ updated_at?: string;
32907
+ };
32908
+ Update: {
32909
+ color?: string | null;
32910
+ created_at?: string;
32911
+ hours_fri?: number | null;
32912
+ hours_mon?: number | null;
32913
+ hours_thu?: number | null;
32914
+ hours_tue?: number | null;
32915
+ hours_wed?: number | null;
32916
+ id?: string;
32917
+ is_active?: boolean;
32918
+ leave_balance_hours?: number;
32919
+ persnr?: string | null;
32920
+ phone?: string | null;
32921
+ profile_id?: string;
32922
+ updated_at?: string;
32923
+ };
32924
+ Relationships: [{
32925
+ foreignKeyName: "medewerker_details_profile_id_fkey";
32926
+ columns: ["profile_id"];
32927
+ isOneToOne: true;
32928
+ referencedRelation: "profiles";
32929
+ referencedColumns: ["id"];
32930
+ }];
32931
+ };
31803
32932
  module_features: {
31804
32933
  Row: {
31805
32934
  created_at: string;
@@ -33093,6 +34222,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
33093
34222
  orders: {
33094
34223
  Row: {
33095
34224
  buffer_id: string | null;
34225
+ cancel_reason: string | null;
34226
+ cancelled_at: string | null;
33096
34227
  created_at: string;
33097
34228
  custom_fields: import("../integrations/supabase/types").Json;
33098
34229
  customer_id: string | null;
@@ -33115,6 +34246,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
33115
34246
  };
33116
34247
  Insert: {
33117
34248
  buffer_id?: string | null;
34249
+ cancel_reason?: string | null;
34250
+ cancelled_at?: string | null;
33118
34251
  created_at?: string;
33119
34252
  custom_fields?: import("../integrations/supabase/types").Json;
33120
34253
  customer_id?: string | null;
@@ -33137,6 +34270,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
33137
34270
  };
33138
34271
  Update: {
33139
34272
  buffer_id?: string | null;
34273
+ cancel_reason?: string | null;
34274
+ cancelled_at?: string | null;
33140
34275
  created_at?: string;
33141
34276
  custom_fields?: import("../integrations/supabase/types").Json;
33142
34277
  customer_id?: string | null;
@@ -35199,6 +36334,66 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
35199
36334
  };
35200
36335
  Relationships: [];
35201
36336
  };
36337
+ profile_modules: {
36338
+ Row: {
36339
+ created_at: string;
36340
+ id: string;
36341
+ module_id: string;
36342
+ profile_id: string;
36343
+ };
36344
+ Insert: {
36345
+ created_at?: string;
36346
+ id?: string;
36347
+ module_id: string;
36348
+ profile_id: string;
36349
+ };
36350
+ Update: {
36351
+ created_at?: string;
36352
+ id?: string;
36353
+ module_id?: string;
36354
+ profile_id?: string;
36355
+ };
36356
+ Relationships: [{
36357
+ foreignKeyName: "profile_modules_profile_id_fkey";
36358
+ columns: ["profile_id"];
36359
+ isOneToOne: false;
36360
+ referencedRelation: "profiles_org";
36361
+ referencedColumns: ["id"];
36362
+ }];
36363
+ };
36364
+ profile_roles: {
36365
+ Row: {
36366
+ created_at: string;
36367
+ id: string;
36368
+ profile_id: string;
36369
+ role_id: string;
36370
+ };
36371
+ Insert: {
36372
+ created_at?: string;
36373
+ id?: string;
36374
+ profile_id: string;
36375
+ role_id: string;
36376
+ };
36377
+ Update: {
36378
+ created_at?: string;
36379
+ id?: string;
36380
+ profile_id?: string;
36381
+ role_id?: string;
36382
+ };
36383
+ Relationships: [{
36384
+ foreignKeyName: "profile_roles_profile_id_fkey";
36385
+ columns: ["profile_id"];
36386
+ isOneToOne: false;
36387
+ referencedRelation: "profiles_org";
36388
+ referencedColumns: ["id"];
36389
+ }, {
36390
+ foreignKeyName: "profile_roles_role_id_fkey";
36391
+ columns: ["role_id"];
36392
+ isOneToOne: false;
36393
+ referencedRelation: "roles";
36394
+ referencedColumns: ["id"];
36395
+ }];
36396
+ };
35202
36397
  profiles: {
35203
36398
  Row: {
35204
36399
  address: string | null;
@@ -35244,6 +36439,39 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
35244
36439
  referencedColumns: ["id"];
35245
36440
  }];
35246
36441
  };
36442
+ profiles_org: {
36443
+ Row: {
36444
+ created_at: string;
36445
+ id: string;
36446
+ is_default: boolean;
36447
+ name: string;
36448
+ tenant_id: string | null;
36449
+ updated_at: string;
36450
+ };
36451
+ Insert: {
36452
+ created_at?: string;
36453
+ id?: string;
36454
+ is_default?: boolean;
36455
+ name: string;
36456
+ tenant_id?: string | null;
36457
+ updated_at?: string;
36458
+ };
36459
+ Update: {
36460
+ created_at?: string;
36461
+ id?: string;
36462
+ is_default?: boolean;
36463
+ name?: string;
36464
+ tenant_id?: string | null;
36465
+ updated_at?: string;
36466
+ };
36467
+ Relationships: [{
36468
+ foreignKeyName: "profiles_org_tenant_id_fkey";
36469
+ columns: ["tenant_id"];
36470
+ isOneToOne: false;
36471
+ referencedRelation: "tenants";
36472
+ referencedColumns: ["id"];
36473
+ }];
36474
+ };
35247
36475
  projects: {
35248
36476
  Row: {
35249
36477
  contact_name: string | null;
@@ -36418,6 +37646,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36418
37646
  type: string;
36419
37647
  updated_at: string;
36420
37648
  vereist_medewerker: boolean;
37649
+ werkplek: string | null;
36421
37650
  };
36422
37651
  Insert: {
36423
37652
  actief?: boolean;
@@ -36431,6 +37660,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36431
37660
  type?: string;
36432
37661
  updated_at?: string;
36433
37662
  vereist_medewerker?: boolean;
37663
+ werkplek?: string | null;
36434
37664
  };
36435
37665
  Update: {
36436
37666
  actief?: boolean;
@@ -36444,9 +37674,46 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36444
37674
  type?: string;
36445
37675
  updated_at?: string;
36446
37676
  vereist_medewerker?: boolean;
37677
+ werkplek?: string | null;
36447
37678
  };
36448
37679
  Relationships: [];
36449
37680
  };
37681
+ sick_periods: {
37682
+ Row: {
37683
+ created_at: string;
37684
+ employee_id: string;
37685
+ end_date: string | null;
37686
+ id: string;
37687
+ notes: string | null;
37688
+ start_date: string;
37689
+ updated_at: string;
37690
+ };
37691
+ Insert: {
37692
+ created_at?: string;
37693
+ employee_id: string;
37694
+ end_date?: string | null;
37695
+ id?: string;
37696
+ notes?: string | null;
37697
+ start_date: string;
37698
+ updated_at?: string;
37699
+ };
37700
+ Update: {
37701
+ created_at?: string;
37702
+ employee_id?: string;
37703
+ end_date?: string | null;
37704
+ id?: string;
37705
+ notes?: string | null;
37706
+ start_date?: string;
37707
+ updated_at?: string;
37708
+ };
37709
+ Relationships: [{
37710
+ foreignKeyName: "sick_periods_employee_id_fkey";
37711
+ columns: ["employee_id"];
37712
+ isOneToOne: false;
37713
+ referencedRelation: "profiles";
37714
+ referencedColumns: ["id"];
37715
+ }];
37716
+ };
36450
37717
  sidebar_config: {
36451
37718
  Row: {
36452
37719
  id: string;
@@ -38289,114 +39556,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38289
39556
  };
38290
39557
  Relationships: [];
38291
39558
  };
38292
- uren_facturen: {
38293
- Row: {
38294
- created_at: string;
38295
- created_by: string | null;
38296
- customer_id: string | null;
38297
- customer_name: string | null;
38298
- id: string;
38299
- invoice_number: string | null;
38300
- note: string | null;
38301
- status: string;
38302
- total_excl_cents: number;
38303
- total_incl_cents: number;
38304
- updated_at: string;
38305
- vat_cents: number;
38306
- vat_percentage: number;
38307
- werkbon_id: string | null;
38308
- };
38309
- Insert: {
38310
- created_at?: string;
38311
- created_by?: string | null;
38312
- customer_id?: string | null;
38313
- customer_name?: string | null;
38314
- id?: string;
38315
- invoice_number?: string | null;
38316
- note?: string | null;
38317
- status?: string;
38318
- total_excl_cents?: number;
38319
- total_incl_cents?: number;
38320
- updated_at?: string;
38321
- vat_cents?: number;
38322
- vat_percentage?: number;
38323
- werkbon_id?: string | null;
38324
- };
38325
- Update: {
38326
- created_at?: string;
38327
- created_by?: string | null;
38328
- customer_id?: string | null;
38329
- customer_name?: string | null;
38330
- id?: string;
38331
- invoice_number?: string | null;
38332
- note?: string | null;
38333
- status?: string;
38334
- total_excl_cents?: number;
38335
- total_incl_cents?: number;
38336
- updated_at?: string;
38337
- vat_cents?: number;
38338
- vat_percentage?: number;
38339
- werkbon_id?: string | null;
38340
- };
38341
- Relationships: [{
38342
- foreignKeyName: "uren_facturen_customer_id_fkey";
38343
- columns: ["customer_id"];
38344
- isOneToOne: false;
38345
- referencedRelation: "itk_customers";
38346
- referencedColumns: ["id"];
38347
- }, {
38348
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
38349
- columns: ["werkbon_id"];
38350
- isOneToOne: true;
38351
- referencedRelation: "werkbonnen";
38352
- referencedColumns: ["id"];
38353
- }];
38354
- };
38355
- uren_factuur_regels: {
38356
- Row: {
38357
- created_at: string;
38358
- description: string;
38359
- factuur_id: string;
38360
- id: string;
38361
- kind: string | null;
38362
- quantity: number;
38363
- sort_order: number;
38364
- total_cents: number;
38365
- unit: string;
38366
- unit_price_cents: number;
38367
- };
38368
- Insert: {
38369
- created_at?: string;
38370
- description: string;
38371
- factuur_id: string;
38372
- id?: string;
38373
- kind?: string | null;
38374
- quantity?: number;
38375
- sort_order?: number;
38376
- total_cents?: number;
38377
- unit?: string;
38378
- unit_price_cents?: number;
38379
- };
38380
- Update: {
38381
- created_at?: string;
38382
- description?: string;
38383
- factuur_id?: string;
38384
- id?: string;
38385
- kind?: string | null;
38386
- quantity?: number;
38387
- sort_order?: number;
38388
- total_cents?: number;
38389
- unit?: string;
38390
- unit_price_cents?: number;
38391
- };
38392
- Relationships: [{
38393
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
38394
- columns: ["factuur_id"];
38395
- isOneToOne: false;
38396
- referencedRelation: "uren_facturen";
38397
- referencedColumns: ["id"];
38398
- }];
38399
- };
38400
39559
  uren_offerte_regels: {
38401
39560
  Row: {
38402
39561
  created_at: string;
@@ -40236,6 +41395,114 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
40236
41395
  };
40237
41396
  Relationships: [];
40238
41397
  };
41398
+ uren_facturen: {
41399
+ Row: {
41400
+ created_at: string | null;
41401
+ created_by: string | null;
41402
+ customer_id: string | null;
41403
+ customer_name: string | null;
41404
+ id: string | null;
41405
+ invoice_number: string | null;
41406
+ note: string | null;
41407
+ status: string | null;
41408
+ total_excl_cents: number | null;
41409
+ total_incl_cents: number | null;
41410
+ updated_at: string | null;
41411
+ vat_cents: number | null;
41412
+ vat_percentage: number | null;
41413
+ werkbon_id: string | null;
41414
+ };
41415
+ Insert: {
41416
+ created_at?: string | null;
41417
+ created_by?: string | null;
41418
+ customer_id?: string | null;
41419
+ customer_name?: string | null;
41420
+ id?: string | null;
41421
+ invoice_number?: string | null;
41422
+ note?: string | null;
41423
+ status?: string | null;
41424
+ total_excl_cents?: number | null;
41425
+ total_incl_cents?: number | null;
41426
+ updated_at?: string | null;
41427
+ vat_cents?: number | null;
41428
+ vat_percentage?: number | null;
41429
+ werkbon_id?: never;
41430
+ };
41431
+ Update: {
41432
+ created_at?: string | null;
41433
+ created_by?: string | null;
41434
+ customer_id?: string | null;
41435
+ customer_name?: string | null;
41436
+ id?: string | null;
41437
+ invoice_number?: string | null;
41438
+ note?: string | null;
41439
+ status?: string | null;
41440
+ total_excl_cents?: number | null;
41441
+ total_incl_cents?: number | null;
41442
+ updated_at?: string | null;
41443
+ vat_cents?: number | null;
41444
+ vat_percentage?: number | null;
41445
+ werkbon_id?: never;
41446
+ };
41447
+ Relationships: [{
41448
+ foreignKeyName: "invoices_customer_id_fkey";
41449
+ columns: ["customer_id"];
41450
+ isOneToOne: false;
41451
+ referencedRelation: "itk_customers";
41452
+ referencedColumns: ["id"];
41453
+ }];
41454
+ };
41455
+ uren_factuur_regels: {
41456
+ Row: {
41457
+ created_at: string | null;
41458
+ description: string | null;
41459
+ factuur_id: string | null;
41460
+ id: string | null;
41461
+ kind: string | null;
41462
+ quantity: number | null;
41463
+ sort_order: number | null;
41464
+ total_cents: number | null;
41465
+ unit: string | null;
41466
+ unit_price_cents: number | null;
41467
+ };
41468
+ Insert: {
41469
+ created_at?: string | null;
41470
+ description?: string | null;
41471
+ factuur_id?: string | null;
41472
+ id?: string | null;
41473
+ kind?: string | null;
41474
+ quantity?: number | null;
41475
+ sort_order?: number | null;
41476
+ total_cents?: number | null;
41477
+ unit?: string | null;
41478
+ unit_price_cents?: number | null;
41479
+ };
41480
+ Update: {
41481
+ created_at?: string | null;
41482
+ description?: string | null;
41483
+ factuur_id?: string | null;
41484
+ id?: string | null;
41485
+ kind?: string | null;
41486
+ quantity?: number | null;
41487
+ sort_order?: number | null;
41488
+ total_cents?: number | null;
41489
+ unit?: string | null;
41490
+ unit_price_cents?: number | null;
41491
+ };
41492
+ Relationships: [{
41493
+ foreignKeyName: "invoice_items_invoice_id_fkey";
41494
+ columns: ["factuur_id"];
41495
+ isOneToOne: false;
41496
+ referencedRelation: "invoices";
41497
+ referencedColumns: ["id"];
41498
+ }, {
41499
+ foreignKeyName: "invoice_items_invoice_id_fkey";
41500
+ columns: ["factuur_id"];
41501
+ isOneToOne: false;
41502
+ referencedRelation: "uren_facturen";
41503
+ referencedColumns: ["id"];
41504
+ }];
41505
+ };
40239
41506
  v_external_customers_exact: {
40240
41507
  Row: {
40241
41508
  account_number: string | null;
@@ -41131,6 +42398,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
41131
42398
  };
41132
42399
  Returns: string;
41133
42400
  };
42401
+ employee_day_hours: {
42402
+ Args: {
42403
+ _day: string;
42404
+ _employee_id: string;
42405
+ };
42406
+ Returns: number;
42407
+ };
41134
42408
  enqueue_cart_replan_if_unlocked: {
41135
42409
  Args: {
41136
42410
  p_order_id: string;
@@ -41455,6 +42729,46 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
41455
42729
  Args: never;
41456
42730
  Returns: boolean;
41457
42731
  };
42732
+ invoice_create_from_source: {
42733
+ Args: {
42734
+ _payload?: import("../integrations/supabase/types").Json;
42735
+ _source_id: string;
42736
+ _source_type: string;
42737
+ };
42738
+ Returns: import("../integrations/supabase/types").Json;
42739
+ };
42740
+ invoice_get_billable_lines: {
42741
+ Args: {
42742
+ _invoice_id: string;
42743
+ };
42744
+ Returns: import("../integrations/supabase/types").Json;
42745
+ };
42746
+ invoice_get_for_source: {
42747
+ Args: {
42748
+ _source_id: string;
42749
+ _source_type: string;
42750
+ };
42751
+ Returns: import("../integrations/supabase/types").Json;
42752
+ };
42753
+ invoice_get_summary: {
42754
+ Args: {
42755
+ _invoice_id: string;
42756
+ };
42757
+ Returns: import("../integrations/supabase/types").Json;
42758
+ };
42759
+ invoice_list_sources: {
42760
+ Args: {
42761
+ _limit?: number;
42762
+ _source_type?: string;
42763
+ };
42764
+ Returns: import("../integrations/supabase/types").Json;
42765
+ };
42766
+ invoice_recalc_totals: {
42767
+ Args: {
42768
+ _invoice_id: string;
42769
+ };
42770
+ Returns: import("../integrations/supabase/types").Json;
42771
+ };
41458
42772
  is_authenticated: {
41459
42773
  Args: never;
41460
42774
  Returns: boolean;
@@ -41484,6 +42798,19 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
41484
42798
  Args: never;
41485
42799
  Returns: boolean;
41486
42800
  };
42801
+ itk_offerte_naar_werkbon: {
42802
+ Args: {
42803
+ _offerte_id: string;
42804
+ };
42805
+ Returns: string;
42806
+ };
42807
+ itk_offerte_restant_mandaat: {
42808
+ Args: {
42809
+ _exclude_offerte_id?: string;
42810
+ _werkbon_id: string;
42811
+ };
42812
+ Returns: number;
42813
+ };
41487
42814
  jwt_has_role: {
41488
42815
  Args: {
41489
42816
  _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
@@ -41494,9 +42821,19 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
41494
42821
  Args: never;
41495
42822
  Returns: {
41496
42823
  avatar_url: string;
42824
+ color: string;
41497
42825
  display_name: string;
41498
42826
  email: string;
42827
+ hours_fri: number;
42828
+ hours_mon: number;
42829
+ hours_thu: number;
42830
+ hours_tue: number;
42831
+ hours_wed: number;
41499
42832
  id: string;
42833
+ is_active: boolean;
42834
+ leave_balance_hours: number;
42835
+ persnr: string;
42836
+ phone: string;
41500
42837
  roles: string[];
41501
42838
  }[];
41502
42839
  };
@@ -42667,6 +44004,37 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
42667
44004
  };
42668
44005
  Returns: undefined;
42669
44006
  };
44007
+ quote_create_from_source: {
44008
+ Args: {
44009
+ _payload?: import("../integrations/supabase/types").Json;
44010
+ _source_id: string;
44011
+ _source_type: string;
44012
+ };
44013
+ Returns: string;
44014
+ };
44015
+ quote_get_billable_lines: {
44016
+ Args: {
44017
+ _quotation_id: string;
44018
+ };
44019
+ Returns: import("../integrations/supabase/types").Json;
44020
+ };
44021
+ quote_get_summary: {
44022
+ Args: {
44023
+ _quotation_id: string;
44024
+ };
44025
+ Returns: import("../integrations/supabase/types").Json;
44026
+ };
44027
+ quote_list_packages: {
44028
+ Args: never;
44029
+ Returns: import("../integrations/supabase/types").Json;
44030
+ };
44031
+ quote_list_sources: {
44032
+ Args: {
44033
+ _limit?: number;
44034
+ _source_type?: string;
44035
+ };
44036
+ Returns: import("../integrations/supabase/types").Json;
44037
+ };
42670
44038
  recompute_all_reserved_stock: {
42671
44039
  Args: never;
42672
44040
  Returns: undefined;
@@ -43202,6 +44570,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
43202
44570
  };
43203
44571
  Returns: undefined;
43204
44572
  };
44573
+ sync_sick_time_off: {
44574
+ Args: {
44575
+ _period_id: string;
44576
+ };
44577
+ Returns: number;
44578
+ };
43205
44579
  trade_item_stock_duplicates: {
43206
44580
  Args: never;
43207
44581
  Returns: {
@@ -43275,6 +44649,26 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
43275
44649
  Args: never;
43276
44650
  Returns: string;
43277
44651
  };
44652
+ wo_create_from_source: {
44653
+ Args: {
44654
+ _payload?: import("../integrations/supabase/types").Json;
44655
+ _source_id: string;
44656
+ _source_type: string;
44657
+ };
44658
+ Returns: string;
44659
+ };
44660
+ wo_get_billable_lines: {
44661
+ Args: {
44662
+ _work_order_id: string;
44663
+ };
44664
+ Returns: import("../integrations/supabase/types").Json;
44665
+ };
44666
+ wo_get_summary: {
44667
+ Args: {
44668
+ _work_order_id: string;
44669
+ };
44670
+ Returns: import("../integrations/supabase/types").Json;
44671
+ };
43278
44672
  };
43279
44673
  Enums: {
43280
44674
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";