@flowselections/floriday-verkoop-module 1.0.42 → 1.0.44

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 (66) hide show
  1. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +5 -2
  2. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  3. package/dist-lib/components/verkoop/SalesOrdersTable.js +27 -13
  4. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  5. package/dist-lib/components/verkoop/VerkoopOrdersPage.js +114 -35
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts +571 -12
  7. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/client.d.ts +571 -12
  9. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/client.server.d.ts +571 -12
  11. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/types.d.ts +594 -13
  13. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/types.js +3 -0
  15. package/dist-lib/lib/cart-lock.functions.d.ts +571 -12
  16. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/cart-planning-settings.functions.d.ts +6281 -132
  18. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/cart-replan.functions.d.ts +1713 -36
  20. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/create-order.functions.d.ts +31355 -193
  22. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/create-order.functions.js +18 -1
  24. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +1713 -36
  25. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +571 -12
  27. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday-mirror.functions.d.ts +571 -12
  29. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floriday-mirror.functions.js +6 -1
  31. package/dist-lib/lib/floriday-public.functions.d.ts +3997 -84
  32. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floriday-writes.functions.d.ts +2855 -60
  34. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/invoice-timing.functions.d.ts +2284 -48
  36. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/invoice-timing.server.d.ts.map +1 -1
  38. package/dist-lib/lib/invoice-timing.server.js +1 -0
  39. package/dist-lib/lib/load-carriers.functions.d.ts +571 -12
  40. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/logistics-engine.functions.d.ts +2855 -60
  42. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/logistics-stock.functions.d.ts +1142 -24
  44. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/order-addresses.functions.d.ts +571 -12
  46. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  47. package/dist-lib/lib/order-buffers.functions.d.ts +1713 -36
  48. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/order-cancel.server.d.ts +24 -0
  50. package/dist-lib/lib/order-cancel.server.d.ts.map +1 -0
  51. package/dist-lib/lib/order-cancel.server.js +130 -0
  52. package/dist-lib/lib/order-carrier.functions.d.ts +1142 -24
  53. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/order-pickup.functions.d.ts +1142 -24
  55. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/order-shipments.functions.d.ts +2284 -48
  57. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/salesorders-list.functions.d.ts +571 -12
  59. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  60. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  61. package/dist-lib/lib/salesorders-list.server.js +4 -60
  62. package/dist-lib/lib/salesorders.functions.d.ts +2855 -60
  63. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/tradeitems.functions.d.ts +571 -12
  65. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  66. package/package.json +1 -1
@@ -5045,6 +5045,42 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
5045
5045
  };
5046
5046
  Relationships: [];
5047
5047
  };
5048
+ facturen: {
5049
+ Row: {
5050
+ bedrag_incl_btw: number;
5051
+ created_at: string;
5052
+ datum: string;
5053
+ factuurnummer: string;
5054
+ id: string;
5055
+ klantnaam: string;
5056
+ status: string;
5057
+ updated_at: string;
5058
+ user_id: string;
5059
+ };
5060
+ Insert: {
5061
+ bedrag_incl_btw: number;
5062
+ created_at?: string;
5063
+ datum?: string;
5064
+ factuurnummer: string;
5065
+ id?: string;
5066
+ klantnaam: string;
5067
+ status?: string;
5068
+ updated_at?: string;
5069
+ user_id?: string;
5070
+ };
5071
+ Update: {
5072
+ bedrag_incl_btw?: number;
5073
+ created_at?: string;
5074
+ datum?: string;
5075
+ factuurnummer?: string;
5076
+ id?: string;
5077
+ klantnaam?: string;
5078
+ status?: string;
5079
+ updated_at?: string;
5080
+ user_id?: string;
5081
+ };
5082
+ Relationships: [];
5083
+ };
5048
5084
  floricode_connection_settings: {
5049
5085
  Row: {
5050
5086
  catalog_key: string | null;
@@ -7769,6 +7805,258 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
7769
7805
  };
7770
7806
  Relationships: [];
7771
7807
  };
7808
+ itk_offerte_events: {
7809
+ Row: {
7810
+ created_at: string;
7811
+ event_type: string;
7812
+ id: string;
7813
+ metadata: import("../integrations/supabase/types").Json;
7814
+ offerte_id: string;
7815
+ omschrijving: string | null;
7816
+ user_id: string | null;
7817
+ };
7818
+ Insert: {
7819
+ created_at?: string;
7820
+ event_type: string;
7821
+ id?: string;
7822
+ metadata?: import("../integrations/supabase/types").Json;
7823
+ offerte_id: string;
7824
+ omschrijving?: string | null;
7825
+ user_id?: string | null;
7826
+ };
7827
+ Update: {
7828
+ created_at?: string;
7829
+ event_type?: string;
7830
+ id?: string;
7831
+ metadata?: import("../integrations/supabase/types").Json;
7832
+ offerte_id?: string;
7833
+ omschrijving?: string | null;
7834
+ user_id?: string | null;
7835
+ };
7836
+ Relationships: [{
7837
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
7838
+ columns: ["offerte_id"];
7839
+ isOneToOne: false;
7840
+ referencedRelation: "itk_offertes";
7841
+ referencedColumns: ["id"];
7842
+ }];
7843
+ };
7844
+ itk_offerte_regels: {
7845
+ Row: {
7846
+ created_at: string;
7847
+ id: string;
7848
+ line_total_cents: number;
7849
+ offerte_id: string;
7850
+ omschrijving: string;
7851
+ package_id: string | null;
7852
+ quantity: number;
7853
+ sort_order: number;
7854
+ source: string;
7855
+ unit_price_cents: number;
7856
+ updated_at: string;
7857
+ };
7858
+ Insert: {
7859
+ created_at?: string;
7860
+ id?: string;
7861
+ line_total_cents?: number;
7862
+ offerte_id: string;
7863
+ omschrijving?: string;
7864
+ package_id?: string | null;
7865
+ quantity?: number;
7866
+ sort_order?: number;
7867
+ source?: string;
7868
+ unit_price_cents?: number;
7869
+ updated_at?: string;
7870
+ };
7871
+ Update: {
7872
+ created_at?: string;
7873
+ id?: string;
7874
+ line_total_cents?: number;
7875
+ offerte_id?: string;
7876
+ omschrijving?: string;
7877
+ package_id?: string | null;
7878
+ quantity?: number;
7879
+ sort_order?: number;
7880
+ source?: string;
7881
+ unit_price_cents?: number;
7882
+ updated_at?: string;
7883
+ };
7884
+ Relationships: [{
7885
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
7886
+ columns: ["offerte_id"];
7887
+ isOneToOne: false;
7888
+ referencedRelation: "itk_offertes";
7889
+ referencedColumns: ["id"];
7890
+ }, {
7891
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
7892
+ columns: ["package_id"];
7893
+ isOneToOne: false;
7894
+ referencedRelation: "werkbon_packages";
7895
+ referencedColumns: ["id"];
7896
+ }];
7897
+ };
7898
+ itk_offerte_settings: {
7899
+ Row: {
7900
+ auto_convert_binnen_mandaat: boolean;
7901
+ created_at: string;
7902
+ default_geldigheid_dagen: number;
7903
+ default_vat_rate: number;
7904
+ id: string;
7905
+ singleton: boolean;
7906
+ updated_at: string;
7907
+ };
7908
+ Insert: {
7909
+ auto_convert_binnen_mandaat?: boolean;
7910
+ created_at?: string;
7911
+ default_geldigheid_dagen?: number;
7912
+ default_vat_rate?: number;
7913
+ id?: string;
7914
+ singleton?: boolean;
7915
+ updated_at?: string;
7916
+ };
7917
+ Update: {
7918
+ auto_convert_binnen_mandaat?: boolean;
7919
+ created_at?: string;
7920
+ default_geldigheid_dagen?: number;
7921
+ default_vat_rate?: number;
7922
+ id?: string;
7923
+ singleton?: boolean;
7924
+ updated_at?: string;
7925
+ };
7926
+ Relationships: [];
7927
+ };
7928
+ itk_offertes: {
7929
+ Row: {
7930
+ ai_generated: boolean;
7931
+ approved_at: string | null;
7932
+ binnen_mandaat: boolean;
7933
+ contact_id: string | null;
7934
+ converted_at: string | null;
7935
+ created_at: string;
7936
+ created_by: string | null;
7937
+ customer_id: string | null;
7938
+ follow_up_werkbon_id: string | null;
7939
+ id: string;
7940
+ jaar: number;
7941
+ mandaat_restant_cents: number;
7942
+ notities: string | null;
7943
+ offerte_number: string | null;
7944
+ omschrijving: string;
7945
+ rejected_at: string | null;
7946
+ sent_at: string | null;
7947
+ source_number: string | null;
7948
+ source_ref: string | null;
7949
+ source_type: string;
7950
+ status: string;
7951
+ subtotal_cents: number;
7952
+ total_cents: number;
7953
+ updated_at: string;
7954
+ valid_until: string | null;
7955
+ vat_cents: number;
7956
+ vat_rate: number;
7957
+ viewed_at: string | null;
7958
+ volgnummer: number | null;
7959
+ werkbon_id: string | null;
7960
+ work_location_id: string | null;
7961
+ };
7962
+ Insert: {
7963
+ ai_generated?: boolean;
7964
+ approved_at?: string | null;
7965
+ binnen_mandaat?: boolean;
7966
+ contact_id?: string | null;
7967
+ converted_at?: string | null;
7968
+ created_at?: string;
7969
+ created_by?: string | null;
7970
+ customer_id?: string | null;
7971
+ follow_up_werkbon_id?: string | null;
7972
+ id?: string;
7973
+ jaar?: number;
7974
+ mandaat_restant_cents?: number;
7975
+ notities?: string | null;
7976
+ offerte_number?: string | null;
7977
+ omschrijving?: string;
7978
+ rejected_at?: string | null;
7979
+ sent_at?: string | null;
7980
+ source_number?: string | null;
7981
+ source_ref?: string | null;
7982
+ source_type?: string;
7983
+ status?: string;
7984
+ subtotal_cents?: number;
7985
+ total_cents?: number;
7986
+ updated_at?: string;
7987
+ valid_until?: string | null;
7988
+ vat_cents?: number;
7989
+ vat_rate?: number;
7990
+ viewed_at?: string | null;
7991
+ volgnummer?: number | null;
7992
+ werkbon_id?: string | null;
7993
+ work_location_id?: string | null;
7994
+ };
7995
+ Update: {
7996
+ ai_generated?: boolean;
7997
+ approved_at?: string | null;
7998
+ binnen_mandaat?: boolean;
7999
+ contact_id?: string | null;
8000
+ converted_at?: string | null;
8001
+ created_at?: string;
8002
+ created_by?: string | null;
8003
+ customer_id?: string | null;
8004
+ follow_up_werkbon_id?: string | null;
8005
+ id?: string;
8006
+ jaar?: number;
8007
+ mandaat_restant_cents?: number;
8008
+ notities?: string | null;
8009
+ offerte_number?: string | null;
8010
+ omschrijving?: string;
8011
+ rejected_at?: string | null;
8012
+ sent_at?: string | null;
8013
+ source_number?: string | null;
8014
+ source_ref?: string | null;
8015
+ source_type?: string;
8016
+ status?: string;
8017
+ subtotal_cents?: number;
8018
+ total_cents?: number;
8019
+ updated_at?: string;
8020
+ valid_until?: string | null;
8021
+ vat_cents?: number;
8022
+ vat_rate?: number;
8023
+ viewed_at?: string | null;
8024
+ volgnummer?: number | null;
8025
+ werkbon_id?: string | null;
8026
+ work_location_id?: string | null;
8027
+ };
8028
+ Relationships: [{
8029
+ foreignKeyName: "itk_offertes_contact_id_fkey";
8030
+ columns: ["contact_id"];
8031
+ isOneToOne: false;
8032
+ referencedRelation: "itk_contact_persons";
8033
+ referencedColumns: ["id"];
8034
+ }, {
8035
+ foreignKeyName: "itk_offertes_customer_id_fkey";
8036
+ columns: ["customer_id"];
8037
+ isOneToOne: false;
8038
+ referencedRelation: "itk_customers";
8039
+ referencedColumns: ["id"];
8040
+ }, {
8041
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
8042
+ columns: ["follow_up_werkbon_id"];
8043
+ isOneToOne: false;
8044
+ referencedRelation: "werkbonnen";
8045
+ referencedColumns: ["id"];
8046
+ }, {
8047
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8048
+ columns: ["werkbon_id"];
8049
+ isOneToOne: false;
8050
+ referencedRelation: "werkbonnen";
8051
+ referencedColumns: ["id"];
8052
+ }, {
8053
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8054
+ columns: ["work_location_id"];
8055
+ isOneToOne: false;
8056
+ referencedRelation: "itk_work_locations";
8057
+ referencedColumns: ["id"];
8058
+ }];
8059
+ };
7772
8060
  itk_work_locations: {
7773
8061
  Row: {
7774
8062
  city: string | null;
@@ -10142,6 +10430,63 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
10142
10430
  referencedColumns: ["id"];
10143
10431
  }];
10144
10432
  };
10433
+ medewerker_details: {
10434
+ Row: {
10435
+ color: string | null;
10436
+ created_at: string;
10437
+ hours_fri: number | null;
10438
+ hours_mon: number | null;
10439
+ hours_thu: number | null;
10440
+ hours_tue: number | null;
10441
+ hours_wed: number | null;
10442
+ id: string;
10443
+ is_active: boolean;
10444
+ leave_balance_hours: number;
10445
+ persnr: string | null;
10446
+ phone: string | null;
10447
+ profile_id: string;
10448
+ updated_at: string;
10449
+ };
10450
+ Insert: {
10451
+ color?: string | null;
10452
+ created_at?: string;
10453
+ hours_fri?: number | null;
10454
+ hours_mon?: number | null;
10455
+ hours_thu?: number | null;
10456
+ hours_tue?: number | null;
10457
+ hours_wed?: number | null;
10458
+ id?: string;
10459
+ is_active?: boolean;
10460
+ leave_balance_hours?: number;
10461
+ persnr?: string | null;
10462
+ phone?: string | null;
10463
+ profile_id: string;
10464
+ updated_at?: string;
10465
+ };
10466
+ Update: {
10467
+ color?: string | null;
10468
+ created_at?: string;
10469
+ hours_fri?: number | null;
10470
+ hours_mon?: number | null;
10471
+ hours_thu?: number | null;
10472
+ hours_tue?: number | null;
10473
+ hours_wed?: number | null;
10474
+ id?: string;
10475
+ is_active?: boolean;
10476
+ leave_balance_hours?: number;
10477
+ persnr?: string | null;
10478
+ phone?: string | null;
10479
+ profile_id?: string;
10480
+ updated_at?: string;
10481
+ };
10482
+ Relationships: [{
10483
+ foreignKeyName: "medewerker_details_profile_id_fkey";
10484
+ columns: ["profile_id"];
10485
+ isOneToOne: true;
10486
+ referencedRelation: "profiles";
10487
+ referencedColumns: ["id"];
10488
+ }];
10489
+ };
10145
10490
  module_features: {
10146
10491
  Row: {
10147
10492
  created_at: string;
@@ -11435,6 +11780,8 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
11435
11780
  orders: {
11436
11781
  Row: {
11437
11782
  buffer_id: string | null;
11783
+ cancel_reason: string | null;
11784
+ cancelled_at: string | null;
11438
11785
  created_at: string;
11439
11786
  custom_fields: import("../integrations/supabase/types").Json;
11440
11787
  customer_id: string | null;
@@ -11457,6 +11804,8 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
11457
11804
  };
11458
11805
  Insert: {
11459
11806
  buffer_id?: string | null;
11807
+ cancel_reason?: string | null;
11808
+ cancelled_at?: string | null;
11460
11809
  created_at?: string;
11461
11810
  custom_fields?: import("../integrations/supabase/types").Json;
11462
11811
  customer_id?: string | null;
@@ -11479,6 +11828,8 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
11479
11828
  };
11480
11829
  Update: {
11481
11830
  buffer_id?: string | null;
11831
+ cancel_reason?: string | null;
11832
+ cancelled_at?: string | null;
11482
11833
  created_at?: string;
11483
11834
  custom_fields?: import("../integrations/supabase/types").Json;
11484
11835
  customer_id?: string | null;
@@ -13541,6 +13892,66 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
13541
13892
  };
13542
13893
  Relationships: [];
13543
13894
  };
13895
+ profile_modules: {
13896
+ Row: {
13897
+ created_at: string;
13898
+ id: string;
13899
+ module_id: string;
13900
+ profile_id: string;
13901
+ };
13902
+ Insert: {
13903
+ created_at?: string;
13904
+ id?: string;
13905
+ module_id: string;
13906
+ profile_id: string;
13907
+ };
13908
+ Update: {
13909
+ created_at?: string;
13910
+ id?: string;
13911
+ module_id?: string;
13912
+ profile_id?: string;
13913
+ };
13914
+ Relationships: [{
13915
+ foreignKeyName: "profile_modules_profile_id_fkey";
13916
+ columns: ["profile_id"];
13917
+ isOneToOne: false;
13918
+ referencedRelation: "profiles_org";
13919
+ referencedColumns: ["id"];
13920
+ }];
13921
+ };
13922
+ profile_roles: {
13923
+ Row: {
13924
+ created_at: string;
13925
+ id: string;
13926
+ profile_id: string;
13927
+ role_id: string;
13928
+ };
13929
+ Insert: {
13930
+ created_at?: string;
13931
+ id?: string;
13932
+ profile_id: string;
13933
+ role_id: string;
13934
+ };
13935
+ Update: {
13936
+ created_at?: string;
13937
+ id?: string;
13938
+ profile_id?: string;
13939
+ role_id?: string;
13940
+ };
13941
+ Relationships: [{
13942
+ foreignKeyName: "profile_roles_profile_id_fkey";
13943
+ columns: ["profile_id"];
13944
+ isOneToOne: false;
13945
+ referencedRelation: "profiles_org";
13946
+ referencedColumns: ["id"];
13947
+ }, {
13948
+ foreignKeyName: "profile_roles_role_id_fkey";
13949
+ columns: ["role_id"];
13950
+ isOneToOne: false;
13951
+ referencedRelation: "roles";
13952
+ referencedColumns: ["id"];
13953
+ }];
13954
+ };
13544
13955
  profiles: {
13545
13956
  Row: {
13546
13957
  address: string | null;
@@ -13586,6 +13997,39 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
13586
13997
  referencedColumns: ["id"];
13587
13998
  }];
13588
13999
  };
14000
+ profiles_org: {
14001
+ Row: {
14002
+ created_at: string;
14003
+ id: string;
14004
+ is_default: boolean;
14005
+ name: string;
14006
+ tenant_id: string | null;
14007
+ updated_at: string;
14008
+ };
14009
+ Insert: {
14010
+ created_at?: string;
14011
+ id?: string;
14012
+ is_default?: boolean;
14013
+ name: string;
14014
+ tenant_id?: string | null;
14015
+ updated_at?: string;
14016
+ };
14017
+ Update: {
14018
+ created_at?: string;
14019
+ id?: string;
14020
+ is_default?: boolean;
14021
+ name?: string;
14022
+ tenant_id?: string | null;
14023
+ updated_at?: string;
14024
+ };
14025
+ Relationships: [{
14026
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14027
+ columns: ["tenant_id"];
14028
+ isOneToOne: false;
14029
+ referencedRelation: "tenants";
14030
+ referencedColumns: ["id"];
14031
+ }];
14032
+ };
13589
14033
  projects: {
13590
14034
  Row: {
13591
14035
  contact_name: string | null;
@@ -14760,6 +15204,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
14760
15204
  type: string;
14761
15205
  updated_at: string;
14762
15206
  vereist_medewerker: boolean;
15207
+ werkplek: string | null;
14763
15208
  };
14764
15209
  Insert: {
14765
15210
  actief?: boolean;
@@ -14773,6 +15218,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
14773
15218
  type?: string;
14774
15219
  updated_at?: string;
14775
15220
  vereist_medewerker?: boolean;
15221
+ werkplek?: string | null;
14776
15222
  };
14777
15223
  Update: {
14778
15224
  actief?: boolean;
@@ -14786,9 +15232,46 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
14786
15232
  type?: string;
14787
15233
  updated_at?: string;
14788
15234
  vereist_medewerker?: boolean;
15235
+ werkplek?: string | null;
14789
15236
  };
14790
15237
  Relationships: [];
14791
15238
  };
15239
+ sick_periods: {
15240
+ Row: {
15241
+ created_at: string;
15242
+ employee_id: string;
15243
+ end_date: string | null;
15244
+ id: string;
15245
+ notes: string | null;
15246
+ start_date: string;
15247
+ updated_at: string;
15248
+ };
15249
+ Insert: {
15250
+ created_at?: string;
15251
+ employee_id: string;
15252
+ end_date?: string | null;
15253
+ id?: string;
15254
+ notes?: string | null;
15255
+ start_date: string;
15256
+ updated_at?: string;
15257
+ };
15258
+ Update: {
15259
+ created_at?: string;
15260
+ employee_id?: string;
15261
+ end_date?: string | null;
15262
+ id?: string;
15263
+ notes?: string | null;
15264
+ start_date?: string;
15265
+ updated_at?: string;
15266
+ };
15267
+ Relationships: [{
15268
+ foreignKeyName: "sick_periods_employee_id_fkey";
15269
+ columns: ["employee_id"];
15270
+ isOneToOne: false;
15271
+ referencedRelation: "profiles";
15272
+ referencedColumns: ["id"];
15273
+ }];
15274
+ };
14792
15275
  sidebar_config: {
14793
15276
  Row: {
14794
15277
  id: string;
@@ -19473,6 +19956,13 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
19473
19956
  };
19474
19957
  Returns: string;
19475
19958
  };
19959
+ employee_day_hours: {
19960
+ Args: {
19961
+ _day: string;
19962
+ _employee_id: string;
19963
+ };
19964
+ Returns: number;
19965
+ };
19476
19966
  enqueue_cart_replan_if_unlocked: {
19477
19967
  Args: {
19478
19968
  p_order_id: string;
@@ -19826,6 +20316,19 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
19826
20316
  Args: never;
19827
20317
  Returns: boolean;
19828
20318
  };
20319
+ itk_offerte_naar_werkbon: {
20320
+ Args: {
20321
+ _offerte_id: string;
20322
+ };
20323
+ Returns: string;
20324
+ };
20325
+ itk_offerte_restant_mandaat: {
20326
+ Args: {
20327
+ _exclude_offerte_id?: string;
20328
+ _werkbon_id: string;
20329
+ };
20330
+ Returns: number;
20331
+ };
19829
20332
  jwt_has_role: {
19830
20333
  Args: {
19831
20334
  _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
@@ -19836,9 +20339,19 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
19836
20339
  Args: never;
19837
20340
  Returns: {
19838
20341
  avatar_url: string;
20342
+ color: string;
19839
20343
  display_name: string;
19840
20344
  email: string;
20345
+ hours_fri: number;
20346
+ hours_mon: number;
20347
+ hours_thu: number;
20348
+ hours_tue: number;
20349
+ hours_wed: number;
19841
20350
  id: string;
20351
+ is_active: boolean;
20352
+ leave_balance_hours: number;
20353
+ persnr: string;
20354
+ phone: string;
19842
20355
  roles: string[];
19843
20356
  }[];
19844
20357
  };
@@ -20165,17 +20678,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
20165
20678
  Returns: string;
20166
20679
  };
20167
20680
  logistics_emit_event: {
20168
- Args: {
20169
- p_event_type: string;
20170
- p_idempotency_key?: string;
20171
- p_order_ref: string;
20172
- p_payload?: import("../integrations/supabase/types").Json;
20173
- p_shadow?: boolean;
20174
- p_source_module: string;
20175
- p_strategy_id?: string;
20176
- };
20177
- Returns: import("../integrations/supabase/types").Json;
20178
- } | {
20179
20681
  Args: {
20180
20682
  p_event_type: string;
20181
20683
  p_idempotency_key?: string;
@@ -21020,6 +21522,37 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
21020
21522
  };
21021
21523
  Returns: undefined;
21022
21524
  };
21525
+ quote_create_from_source: {
21526
+ Args: {
21527
+ _payload?: import("../integrations/supabase/types").Json;
21528
+ _source_id: string;
21529
+ _source_type: string;
21530
+ };
21531
+ Returns: string;
21532
+ };
21533
+ quote_get_billable_lines: {
21534
+ Args: {
21535
+ _quotation_id: string;
21536
+ };
21537
+ Returns: import("../integrations/supabase/types").Json;
21538
+ };
21539
+ quote_get_summary: {
21540
+ Args: {
21541
+ _quotation_id: string;
21542
+ };
21543
+ Returns: import("../integrations/supabase/types").Json;
21544
+ };
21545
+ quote_list_packages: {
21546
+ Args: never;
21547
+ Returns: import("../integrations/supabase/types").Json;
21548
+ };
21549
+ quote_list_sources: {
21550
+ Args: {
21551
+ _limit?: number;
21552
+ _source_type?: string;
21553
+ };
21554
+ Returns: import("../integrations/supabase/types").Json;
21555
+ };
21023
21556
  recompute_all_reserved_stock: {
21024
21557
  Args: never;
21025
21558
  Returns: undefined;
@@ -21555,6 +22088,12 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
21555
22088
  };
21556
22089
  Returns: undefined;
21557
22090
  };
22091
+ sync_sick_time_off: {
22092
+ Args: {
22093
+ _period_id: string;
22094
+ };
22095
+ Returns: number;
22096
+ };
21558
22097
  trade_item_stock_duplicates: {
21559
22098
  Args: never;
21560
22099
  Returns: {
@@ -21628,11 +22167,31 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
21628
22167
  Args: never;
21629
22168
  Returns: string;
21630
22169
  };
22170
+ wo_create_from_source: {
22171
+ Args: {
22172
+ _payload?: import("../integrations/supabase/types").Json;
22173
+ _source_id: string;
22174
+ _source_type: string;
22175
+ };
22176
+ Returns: string;
22177
+ };
22178
+ wo_get_billable_lines: {
22179
+ Args: {
22180
+ _work_order_id: string;
22181
+ };
22182
+ Returns: import("../integrations/supabase/types").Json;
22183
+ };
22184
+ wo_get_summary: {
22185
+ Args: {
22186
+ _work_order_id: string;
22187
+ };
22188
+ Returns: import("../integrations/supabase/types").Json;
22189
+ };
21631
22190
  };
21632
22191
  Enums: {
21633
22192
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
21634
22193
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
21635
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
22194
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
21636
22195
  doc_orientation: "portrait" | "landscape";
21637
22196
  exact_env: "staging" | "live";
21638
22197
  exact_push_status: "pending" | "sent" | "error";