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