@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
@@ -5054,6 +5054,42 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
5054
5054
  };
5055
5055
  Relationships: [];
5056
5056
  };
5057
+ facturen: {
5058
+ Row: {
5059
+ bedrag_incl_btw: number;
5060
+ created_at: string;
5061
+ datum: string;
5062
+ factuurnummer: string;
5063
+ id: string;
5064
+ klantnaam: string;
5065
+ status: string;
5066
+ updated_at: string;
5067
+ user_id: string;
5068
+ };
5069
+ Insert: {
5070
+ bedrag_incl_btw: number;
5071
+ created_at?: string;
5072
+ datum?: string;
5073
+ factuurnummer: string;
5074
+ id?: string;
5075
+ klantnaam: string;
5076
+ status?: string;
5077
+ updated_at?: string;
5078
+ user_id?: string;
5079
+ };
5080
+ Update: {
5081
+ bedrag_incl_btw?: number;
5082
+ created_at?: string;
5083
+ datum?: string;
5084
+ factuurnummer?: string;
5085
+ id?: string;
5086
+ klantnaam?: string;
5087
+ status?: string;
5088
+ updated_at?: string;
5089
+ user_id?: string;
5090
+ };
5091
+ Relationships: [];
5092
+ };
5057
5093
  floricode_connection_settings: {
5058
5094
  Row: {
5059
5095
  catalog_key: string | null;
@@ -7778,6 +7814,258 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
7778
7814
  };
7779
7815
  Relationships: [];
7780
7816
  };
7817
+ itk_offerte_events: {
7818
+ Row: {
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
+ Insert: {
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
+ Update: {
7837
+ created_at?: string;
7838
+ event_type?: string;
7839
+ id?: string;
7840
+ metadata?: import("../integrations/supabase/types").Json;
7841
+ offerte_id?: string;
7842
+ omschrijving?: string | null;
7843
+ user_id?: string | null;
7844
+ };
7845
+ Relationships: [{
7846
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
7847
+ columns: ["offerte_id"];
7848
+ isOneToOne: false;
7849
+ referencedRelation: "itk_offertes";
7850
+ referencedColumns: ["id"];
7851
+ }];
7852
+ };
7853
+ itk_offerte_regels: {
7854
+ Row: {
7855
+ created_at: string;
7856
+ id: string;
7857
+ line_total_cents: number;
7858
+ offerte_id: string;
7859
+ omschrijving: string;
7860
+ package_id: string | null;
7861
+ quantity: number;
7862
+ sort_order: number;
7863
+ source: string;
7864
+ unit_price_cents: number;
7865
+ updated_at: string;
7866
+ };
7867
+ Insert: {
7868
+ created_at?: string;
7869
+ id?: string;
7870
+ line_total_cents?: number;
7871
+ offerte_id: string;
7872
+ omschrijving?: string;
7873
+ package_id?: string | null;
7874
+ quantity?: number;
7875
+ sort_order?: number;
7876
+ source?: string;
7877
+ unit_price_cents?: number;
7878
+ updated_at?: string;
7879
+ };
7880
+ Update: {
7881
+ created_at?: string;
7882
+ id?: string;
7883
+ line_total_cents?: number;
7884
+ offerte_id?: string;
7885
+ omschrijving?: string;
7886
+ package_id?: string | null;
7887
+ quantity?: number;
7888
+ sort_order?: number;
7889
+ source?: string;
7890
+ unit_price_cents?: number;
7891
+ updated_at?: string;
7892
+ };
7893
+ Relationships: [{
7894
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
7895
+ columns: ["offerte_id"];
7896
+ isOneToOne: false;
7897
+ referencedRelation: "itk_offertes";
7898
+ referencedColumns: ["id"];
7899
+ }, {
7900
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
7901
+ columns: ["package_id"];
7902
+ isOneToOne: false;
7903
+ referencedRelation: "werkbon_packages";
7904
+ referencedColumns: ["id"];
7905
+ }];
7906
+ };
7907
+ itk_offerte_settings: {
7908
+ Row: {
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
+ Insert: {
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
+ Update: {
7927
+ auto_convert_binnen_mandaat?: boolean;
7928
+ created_at?: string;
7929
+ default_geldigheid_dagen?: number;
7930
+ default_vat_rate?: number;
7931
+ id?: string;
7932
+ singleton?: boolean;
7933
+ updated_at?: string;
7934
+ };
7935
+ Relationships: [];
7936
+ };
7937
+ itk_offertes: {
7938
+ Row: {
7939
+ ai_generated: boolean;
7940
+ approved_at: string | null;
7941
+ binnen_mandaat: boolean;
7942
+ contact_id: string | null;
7943
+ converted_at: string | null;
7944
+ created_at: string;
7945
+ created_by: string | null;
7946
+ customer_id: string | null;
7947
+ follow_up_werkbon_id: string | null;
7948
+ id: string;
7949
+ jaar: number;
7950
+ mandaat_restant_cents: number;
7951
+ notities: string | null;
7952
+ offerte_number: string | null;
7953
+ omschrijving: string;
7954
+ rejected_at: string | null;
7955
+ sent_at: string | null;
7956
+ source_number: string | null;
7957
+ source_ref: string | null;
7958
+ source_type: string;
7959
+ status: string;
7960
+ subtotal_cents: number;
7961
+ total_cents: number;
7962
+ updated_at: string;
7963
+ valid_until: string | null;
7964
+ vat_cents: number;
7965
+ vat_rate: number;
7966
+ viewed_at: string | null;
7967
+ volgnummer: number | null;
7968
+ werkbon_id: string | null;
7969
+ work_location_id: string | null;
7970
+ };
7971
+ Insert: {
7972
+ ai_generated?: boolean;
7973
+ approved_at?: string | null;
7974
+ binnen_mandaat?: boolean;
7975
+ contact_id?: string | null;
7976
+ converted_at?: string | null;
7977
+ created_at?: string;
7978
+ created_by?: string | null;
7979
+ customer_id?: string | null;
7980
+ follow_up_werkbon_id?: string | null;
7981
+ id?: string;
7982
+ jaar?: number;
7983
+ mandaat_restant_cents?: number;
7984
+ notities?: string | null;
7985
+ offerte_number?: string | null;
7986
+ omschrijving?: string;
7987
+ rejected_at?: string | null;
7988
+ sent_at?: string | null;
7989
+ source_number?: string | null;
7990
+ source_ref?: string | null;
7991
+ source_type?: string;
7992
+ status?: string;
7993
+ subtotal_cents?: number;
7994
+ total_cents?: number;
7995
+ updated_at?: string;
7996
+ valid_until?: string | null;
7997
+ vat_cents?: number;
7998
+ vat_rate?: number;
7999
+ viewed_at?: string | null;
8000
+ volgnummer?: number | null;
8001
+ werkbon_id?: string | null;
8002
+ work_location_id?: string | null;
8003
+ };
8004
+ Update: {
8005
+ ai_generated?: boolean;
8006
+ approved_at?: string | null;
8007
+ binnen_mandaat?: boolean;
8008
+ contact_id?: string | null;
8009
+ converted_at?: string | null;
8010
+ created_at?: string;
8011
+ created_by?: string | null;
8012
+ customer_id?: string | null;
8013
+ follow_up_werkbon_id?: string | null;
8014
+ id?: string;
8015
+ jaar?: number;
8016
+ mandaat_restant_cents?: number;
8017
+ notities?: string | null;
8018
+ offerte_number?: string | null;
8019
+ omschrijving?: string;
8020
+ rejected_at?: string | null;
8021
+ sent_at?: string | null;
8022
+ source_number?: string | null;
8023
+ source_ref?: string | null;
8024
+ source_type?: string;
8025
+ status?: string;
8026
+ subtotal_cents?: number;
8027
+ total_cents?: number;
8028
+ updated_at?: string;
8029
+ valid_until?: string | null;
8030
+ vat_cents?: number;
8031
+ vat_rate?: number;
8032
+ viewed_at?: string | null;
8033
+ volgnummer?: number | null;
8034
+ werkbon_id?: string | null;
8035
+ work_location_id?: string | null;
8036
+ };
8037
+ Relationships: [{
8038
+ foreignKeyName: "itk_offertes_contact_id_fkey";
8039
+ columns: ["contact_id"];
8040
+ isOneToOne: false;
8041
+ referencedRelation: "itk_contact_persons";
8042
+ referencedColumns: ["id"];
8043
+ }, {
8044
+ foreignKeyName: "itk_offertes_customer_id_fkey";
8045
+ columns: ["customer_id"];
8046
+ isOneToOne: false;
8047
+ referencedRelation: "itk_customers";
8048
+ referencedColumns: ["id"];
8049
+ }, {
8050
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
8051
+ columns: ["follow_up_werkbon_id"];
8052
+ isOneToOne: false;
8053
+ referencedRelation: "werkbonnen";
8054
+ referencedColumns: ["id"];
8055
+ }, {
8056
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8057
+ columns: ["werkbon_id"];
8058
+ isOneToOne: false;
8059
+ referencedRelation: "werkbonnen";
8060
+ referencedColumns: ["id"];
8061
+ }, {
8062
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8063
+ columns: ["work_location_id"];
8064
+ isOneToOne: false;
8065
+ referencedRelation: "itk_work_locations";
8066
+ referencedColumns: ["id"];
8067
+ }];
8068
+ };
7781
8069
  itk_work_locations: {
7782
8070
  Row: {
7783
8071
  city: string | null;
@@ -10151,6 +10439,63 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
10151
10439
  referencedColumns: ["id"];
10152
10440
  }];
10153
10441
  };
10442
+ medewerker_details: {
10443
+ Row: {
10444
+ color: string | null;
10445
+ created_at: string;
10446
+ hours_fri: number | null;
10447
+ hours_mon: number | null;
10448
+ hours_thu: number | null;
10449
+ hours_tue: number | null;
10450
+ hours_wed: number | null;
10451
+ id: string;
10452
+ is_active: boolean;
10453
+ leave_balance_hours: number;
10454
+ persnr: string | null;
10455
+ phone: string | null;
10456
+ profile_id: string;
10457
+ updated_at: string;
10458
+ };
10459
+ Insert: {
10460
+ color?: string | null;
10461
+ created_at?: string;
10462
+ hours_fri?: number | null;
10463
+ hours_mon?: number | null;
10464
+ hours_thu?: number | null;
10465
+ hours_tue?: number | null;
10466
+ hours_wed?: number | null;
10467
+ id?: string;
10468
+ is_active?: boolean;
10469
+ leave_balance_hours?: number;
10470
+ persnr?: string | null;
10471
+ phone?: string | null;
10472
+ profile_id: string;
10473
+ updated_at?: string;
10474
+ };
10475
+ Update: {
10476
+ color?: string | null;
10477
+ created_at?: string;
10478
+ hours_fri?: number | null;
10479
+ hours_mon?: number | null;
10480
+ hours_thu?: number | null;
10481
+ hours_tue?: number | null;
10482
+ hours_wed?: number | null;
10483
+ id?: string;
10484
+ is_active?: boolean;
10485
+ leave_balance_hours?: number;
10486
+ persnr?: string | null;
10487
+ phone?: string | null;
10488
+ profile_id?: string;
10489
+ updated_at?: string;
10490
+ };
10491
+ Relationships: [{
10492
+ foreignKeyName: "medewerker_details_profile_id_fkey";
10493
+ columns: ["profile_id"];
10494
+ isOneToOne: true;
10495
+ referencedRelation: "profiles";
10496
+ referencedColumns: ["id"];
10497
+ }];
10498
+ };
10154
10499
  module_features: {
10155
10500
  Row: {
10156
10501
  created_at: string;
@@ -11444,6 +11789,8 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
11444
11789
  orders: {
11445
11790
  Row: {
11446
11791
  buffer_id: string | null;
11792
+ cancel_reason: string | null;
11793
+ cancelled_at: string | null;
11447
11794
  created_at: string;
11448
11795
  custom_fields: import("../integrations/supabase/types").Json;
11449
11796
  customer_id: string | null;
@@ -11466,6 +11813,8 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
11466
11813
  };
11467
11814
  Insert: {
11468
11815
  buffer_id?: string | null;
11816
+ cancel_reason?: string | null;
11817
+ cancelled_at?: string | null;
11469
11818
  created_at?: string;
11470
11819
  custom_fields?: import("../integrations/supabase/types").Json;
11471
11820
  customer_id?: string | null;
@@ -11488,6 +11837,8 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
11488
11837
  };
11489
11838
  Update: {
11490
11839
  buffer_id?: string | null;
11840
+ cancel_reason?: string | null;
11841
+ cancelled_at?: string | null;
11491
11842
  created_at?: string;
11492
11843
  custom_fields?: import("../integrations/supabase/types").Json;
11493
11844
  customer_id?: string | null;
@@ -13550,6 +13901,66 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
13550
13901
  };
13551
13902
  Relationships: [];
13552
13903
  };
13904
+ profile_modules: {
13905
+ Row: {
13906
+ created_at: string;
13907
+ id: string;
13908
+ module_id: string;
13909
+ profile_id: string;
13910
+ };
13911
+ Insert: {
13912
+ created_at?: string;
13913
+ id?: string;
13914
+ module_id: string;
13915
+ profile_id: string;
13916
+ };
13917
+ Update: {
13918
+ created_at?: string;
13919
+ id?: string;
13920
+ module_id?: string;
13921
+ profile_id?: string;
13922
+ };
13923
+ Relationships: [{
13924
+ foreignKeyName: "profile_modules_profile_id_fkey";
13925
+ columns: ["profile_id"];
13926
+ isOneToOne: false;
13927
+ referencedRelation: "profiles_org";
13928
+ referencedColumns: ["id"];
13929
+ }];
13930
+ };
13931
+ profile_roles: {
13932
+ Row: {
13933
+ created_at: string;
13934
+ id: string;
13935
+ profile_id: string;
13936
+ role_id: string;
13937
+ };
13938
+ Insert: {
13939
+ created_at?: string;
13940
+ id?: string;
13941
+ profile_id: string;
13942
+ role_id: string;
13943
+ };
13944
+ Update: {
13945
+ created_at?: string;
13946
+ id?: string;
13947
+ profile_id?: string;
13948
+ role_id?: string;
13949
+ };
13950
+ Relationships: [{
13951
+ foreignKeyName: "profile_roles_profile_id_fkey";
13952
+ columns: ["profile_id"];
13953
+ isOneToOne: false;
13954
+ referencedRelation: "profiles_org";
13955
+ referencedColumns: ["id"];
13956
+ }, {
13957
+ foreignKeyName: "profile_roles_role_id_fkey";
13958
+ columns: ["role_id"];
13959
+ isOneToOne: false;
13960
+ referencedRelation: "roles";
13961
+ referencedColumns: ["id"];
13962
+ }];
13963
+ };
13553
13964
  profiles: {
13554
13965
  Row: {
13555
13966
  address: string | null;
@@ -13595,6 +14006,39 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
13595
14006
  referencedColumns: ["id"];
13596
14007
  }];
13597
14008
  };
14009
+ profiles_org: {
14010
+ Row: {
14011
+ created_at: string;
14012
+ id: string;
14013
+ is_default: boolean;
14014
+ name: string;
14015
+ tenant_id: string | null;
14016
+ updated_at: string;
14017
+ };
14018
+ Insert: {
14019
+ created_at?: string;
14020
+ id?: string;
14021
+ is_default?: boolean;
14022
+ name: string;
14023
+ tenant_id?: string | null;
14024
+ updated_at?: string;
14025
+ };
14026
+ Update: {
14027
+ created_at?: string;
14028
+ id?: string;
14029
+ is_default?: boolean;
14030
+ name?: string;
14031
+ tenant_id?: string | null;
14032
+ updated_at?: string;
14033
+ };
14034
+ Relationships: [{
14035
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14036
+ columns: ["tenant_id"];
14037
+ isOneToOne: false;
14038
+ referencedRelation: "tenants";
14039
+ referencedColumns: ["id"];
14040
+ }];
14041
+ };
13598
14042
  projects: {
13599
14043
  Row: {
13600
14044
  contact_name: string | null;
@@ -14769,6 +15213,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
14769
15213
  type: string;
14770
15214
  updated_at: string;
14771
15215
  vereist_medewerker: boolean;
15216
+ werkplek: string | null;
14772
15217
  };
14773
15218
  Insert: {
14774
15219
  actief?: boolean;
@@ -14782,6 +15227,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
14782
15227
  type?: string;
14783
15228
  updated_at?: string;
14784
15229
  vereist_medewerker?: boolean;
15230
+ werkplek?: string | null;
14785
15231
  };
14786
15232
  Update: {
14787
15233
  actief?: boolean;
@@ -14795,9 +15241,46 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
14795
15241
  type?: string;
14796
15242
  updated_at?: string;
14797
15243
  vereist_medewerker?: boolean;
15244
+ werkplek?: string | null;
14798
15245
  };
14799
15246
  Relationships: [];
14800
15247
  };
15248
+ sick_periods: {
15249
+ Row: {
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
+ Insert: {
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
+ Update: {
15268
+ created_at?: string;
15269
+ employee_id?: string;
15270
+ end_date?: string | null;
15271
+ id?: string;
15272
+ notes?: string | null;
15273
+ start_date?: string;
15274
+ updated_at?: string;
15275
+ };
15276
+ Relationships: [{
15277
+ foreignKeyName: "sick_periods_employee_id_fkey";
15278
+ columns: ["employee_id"];
15279
+ isOneToOne: false;
15280
+ referencedRelation: "profiles";
15281
+ referencedColumns: ["id"];
15282
+ }];
15283
+ };
14801
15284
  sidebar_config: {
14802
15285
  Row: {
14803
15286
  id: string;
@@ -19482,6 +19965,13 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
19482
19965
  };
19483
19966
  Returns: string;
19484
19967
  };
19968
+ employee_day_hours: {
19969
+ Args: {
19970
+ _day: string;
19971
+ _employee_id: string;
19972
+ };
19973
+ Returns: number;
19974
+ };
19485
19975
  enqueue_cart_replan_if_unlocked: {
19486
19976
  Args: {
19487
19977
  p_order_id: string;
@@ -19835,6 +20325,19 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
19835
20325
  Args: never;
19836
20326
  Returns: boolean;
19837
20327
  };
20328
+ itk_offerte_naar_werkbon: {
20329
+ Args: {
20330
+ _offerte_id: string;
20331
+ };
20332
+ Returns: string;
20333
+ };
20334
+ itk_offerte_restant_mandaat: {
20335
+ Args: {
20336
+ _exclude_offerte_id?: string;
20337
+ _werkbon_id: string;
20338
+ };
20339
+ Returns: number;
20340
+ };
19838
20341
  jwt_has_role: {
19839
20342
  Args: {
19840
20343
  _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
@@ -19845,9 +20348,19 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
19845
20348
  Args: never;
19846
20349
  Returns: {
19847
20350
  avatar_url: string;
20351
+ color: string;
19848
20352
  display_name: string;
19849
20353
  email: string;
20354
+ hours_fri: number;
20355
+ hours_mon: number;
20356
+ hours_thu: number;
20357
+ hours_tue: number;
20358
+ hours_wed: number;
19850
20359
  id: string;
20360
+ is_active: boolean;
20361
+ leave_balance_hours: number;
20362
+ persnr: string;
20363
+ phone: string;
19851
20364
  roles: string[];
19852
20365
  }[];
19853
20366
  };
@@ -20174,17 +20687,6 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
20174
20687
  Returns: string;
20175
20688
  };
20176
20689
  logistics_emit_event: {
20177
- Args: {
20178
- p_event_type: string;
20179
- p_idempotency_key?: string;
20180
- p_order_ref: string;
20181
- p_payload?: import("../integrations/supabase/types").Json;
20182
- p_shadow?: boolean;
20183
- p_source_module: string;
20184
- p_strategy_id?: string;
20185
- };
20186
- Returns: import("../integrations/supabase/types").Json;
20187
- } | {
20188
20690
  Args: {
20189
20691
  p_event_type: string;
20190
20692
  p_idempotency_key?: string;
@@ -21029,6 +21531,37 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
21029
21531
  };
21030
21532
  Returns: undefined;
21031
21533
  };
21534
+ quote_create_from_source: {
21535
+ Args: {
21536
+ _payload?: import("../integrations/supabase/types").Json;
21537
+ _source_id: string;
21538
+ _source_type: string;
21539
+ };
21540
+ Returns: string;
21541
+ };
21542
+ quote_get_billable_lines: {
21543
+ Args: {
21544
+ _quotation_id: string;
21545
+ };
21546
+ Returns: import("../integrations/supabase/types").Json;
21547
+ };
21548
+ quote_get_summary: {
21549
+ Args: {
21550
+ _quotation_id: string;
21551
+ };
21552
+ Returns: import("../integrations/supabase/types").Json;
21553
+ };
21554
+ quote_list_packages: {
21555
+ Args: never;
21556
+ Returns: import("../integrations/supabase/types").Json;
21557
+ };
21558
+ quote_list_sources: {
21559
+ Args: {
21560
+ _limit?: number;
21561
+ _source_type?: string;
21562
+ };
21563
+ Returns: import("../integrations/supabase/types").Json;
21564
+ };
21032
21565
  recompute_all_reserved_stock: {
21033
21566
  Args: never;
21034
21567
  Returns: undefined;
@@ -21564,6 +22097,12 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
21564
22097
  };
21565
22098
  Returns: undefined;
21566
22099
  };
22100
+ sync_sick_time_off: {
22101
+ Args: {
22102
+ _period_id: string;
22103
+ };
22104
+ Returns: number;
22105
+ };
21567
22106
  trade_item_stock_duplicates: {
21568
22107
  Args: never;
21569
22108
  Returns: {
@@ -21637,11 +22176,31 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
21637
22176
  Args: never;
21638
22177
  Returns: string;
21639
22178
  };
22179
+ wo_create_from_source: {
22180
+ Args: {
22181
+ _payload?: import("../integrations/supabase/types").Json;
22182
+ _source_id: string;
22183
+ _source_type: string;
22184
+ };
22185
+ Returns: string;
22186
+ };
22187
+ wo_get_billable_lines: {
22188
+ Args: {
22189
+ _work_order_id: string;
22190
+ };
22191
+ Returns: import("../integrations/supabase/types").Json;
22192
+ };
22193
+ wo_get_summary: {
22194
+ Args: {
22195
+ _work_order_id: string;
22196
+ };
22197
+ Returns: import("../integrations/supabase/types").Json;
22198
+ };
21640
22199
  };
21641
22200
  Enums: {
21642
22201
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
21643
22202
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
21644
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
22203
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
21645
22204
  doc_orientation: "portrait" | "landscape";
21646
22205
  exact_env: "staging" | "live";
21647
22206
  exact_push_status: "pending" | "sent" | "error";