@flowselections/floriday-verkoop-module 1.0.42 → 1.0.43

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
@@ -5049,6 +5049,42 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5049
5049
  };
5050
5050
  Relationships: [];
5051
5051
  };
5052
+ facturen: {
5053
+ Row: {
5054
+ bedrag_incl_btw: number;
5055
+ created_at: string;
5056
+ datum: string;
5057
+ factuurnummer: string;
5058
+ id: string;
5059
+ klantnaam: string;
5060
+ status: string;
5061
+ updated_at: string;
5062
+ user_id: string;
5063
+ };
5064
+ Insert: {
5065
+ bedrag_incl_btw: number;
5066
+ created_at?: string;
5067
+ datum?: string;
5068
+ factuurnummer: string;
5069
+ id?: string;
5070
+ klantnaam: string;
5071
+ status?: string;
5072
+ updated_at?: string;
5073
+ user_id?: string;
5074
+ };
5075
+ Update: {
5076
+ bedrag_incl_btw?: number;
5077
+ created_at?: string;
5078
+ datum?: string;
5079
+ factuurnummer?: string;
5080
+ id?: string;
5081
+ klantnaam?: string;
5082
+ status?: string;
5083
+ updated_at?: string;
5084
+ user_id?: string;
5085
+ };
5086
+ Relationships: [];
5087
+ };
5052
5088
  floricode_connection_settings: {
5053
5089
  Row: {
5054
5090
  catalog_key: string | null;
@@ -7773,6 +7809,258 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7773
7809
  };
7774
7810
  Relationships: [];
7775
7811
  };
7812
+ itk_offerte_events: {
7813
+ Row: {
7814
+ created_at: string;
7815
+ event_type: string;
7816
+ id: string;
7817
+ metadata: import("../integrations/supabase/types").Json;
7818
+ offerte_id: string;
7819
+ omschrijving: string | null;
7820
+ user_id: string | null;
7821
+ };
7822
+ Insert: {
7823
+ created_at?: string;
7824
+ event_type: string;
7825
+ id?: string;
7826
+ metadata?: import("../integrations/supabase/types").Json;
7827
+ offerte_id: string;
7828
+ omschrijving?: string | null;
7829
+ user_id?: string | null;
7830
+ };
7831
+ Update: {
7832
+ created_at?: string;
7833
+ event_type?: string;
7834
+ id?: string;
7835
+ metadata?: import("../integrations/supabase/types").Json;
7836
+ offerte_id?: string;
7837
+ omschrijving?: string | null;
7838
+ user_id?: string | null;
7839
+ };
7840
+ Relationships: [{
7841
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
7842
+ columns: ["offerte_id"];
7843
+ isOneToOne: false;
7844
+ referencedRelation: "itk_offertes";
7845
+ referencedColumns: ["id"];
7846
+ }];
7847
+ };
7848
+ itk_offerte_regels: {
7849
+ Row: {
7850
+ created_at: string;
7851
+ id: string;
7852
+ line_total_cents: number;
7853
+ offerte_id: string;
7854
+ omschrijving: string;
7855
+ package_id: string | null;
7856
+ quantity: number;
7857
+ sort_order: number;
7858
+ source: string;
7859
+ unit_price_cents: number;
7860
+ updated_at: string;
7861
+ };
7862
+ Insert: {
7863
+ created_at?: string;
7864
+ id?: string;
7865
+ line_total_cents?: number;
7866
+ offerte_id: string;
7867
+ omschrijving?: string;
7868
+ package_id?: string | null;
7869
+ quantity?: number;
7870
+ sort_order?: number;
7871
+ source?: string;
7872
+ unit_price_cents?: number;
7873
+ updated_at?: string;
7874
+ };
7875
+ Update: {
7876
+ created_at?: string;
7877
+ id?: string;
7878
+ line_total_cents?: number;
7879
+ offerte_id?: string;
7880
+ omschrijving?: string;
7881
+ package_id?: string | null;
7882
+ quantity?: number;
7883
+ sort_order?: number;
7884
+ source?: string;
7885
+ unit_price_cents?: number;
7886
+ updated_at?: string;
7887
+ };
7888
+ Relationships: [{
7889
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
7890
+ columns: ["offerte_id"];
7891
+ isOneToOne: false;
7892
+ referencedRelation: "itk_offertes";
7893
+ referencedColumns: ["id"];
7894
+ }, {
7895
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
7896
+ columns: ["package_id"];
7897
+ isOneToOne: false;
7898
+ referencedRelation: "werkbon_packages";
7899
+ referencedColumns: ["id"];
7900
+ }];
7901
+ };
7902
+ itk_offerte_settings: {
7903
+ Row: {
7904
+ auto_convert_binnen_mandaat: boolean;
7905
+ created_at: string;
7906
+ default_geldigheid_dagen: number;
7907
+ default_vat_rate: number;
7908
+ id: string;
7909
+ singleton: boolean;
7910
+ updated_at: string;
7911
+ };
7912
+ Insert: {
7913
+ auto_convert_binnen_mandaat?: boolean;
7914
+ created_at?: string;
7915
+ default_geldigheid_dagen?: number;
7916
+ default_vat_rate?: number;
7917
+ id?: string;
7918
+ singleton?: boolean;
7919
+ updated_at?: string;
7920
+ };
7921
+ Update: {
7922
+ auto_convert_binnen_mandaat?: boolean;
7923
+ created_at?: string;
7924
+ default_geldigheid_dagen?: number;
7925
+ default_vat_rate?: number;
7926
+ id?: string;
7927
+ singleton?: boolean;
7928
+ updated_at?: string;
7929
+ };
7930
+ Relationships: [];
7931
+ };
7932
+ itk_offertes: {
7933
+ Row: {
7934
+ ai_generated: boolean;
7935
+ approved_at: string | null;
7936
+ binnen_mandaat: boolean;
7937
+ contact_id: string | null;
7938
+ converted_at: string | null;
7939
+ created_at: string;
7940
+ created_by: string | null;
7941
+ customer_id: string | null;
7942
+ follow_up_werkbon_id: string | null;
7943
+ id: string;
7944
+ jaar: number;
7945
+ mandaat_restant_cents: number;
7946
+ notities: string | null;
7947
+ offerte_number: string | null;
7948
+ omschrijving: string;
7949
+ rejected_at: string | null;
7950
+ sent_at: string | null;
7951
+ source_number: string | null;
7952
+ source_ref: string | null;
7953
+ source_type: string;
7954
+ status: string;
7955
+ subtotal_cents: number;
7956
+ total_cents: number;
7957
+ updated_at: string;
7958
+ valid_until: string | null;
7959
+ vat_cents: number;
7960
+ vat_rate: number;
7961
+ viewed_at: string | null;
7962
+ volgnummer: number | null;
7963
+ werkbon_id: string | null;
7964
+ work_location_id: string | null;
7965
+ };
7966
+ Insert: {
7967
+ ai_generated?: boolean;
7968
+ approved_at?: string | null;
7969
+ binnen_mandaat?: boolean;
7970
+ contact_id?: string | null;
7971
+ converted_at?: string | null;
7972
+ created_at?: string;
7973
+ created_by?: string | null;
7974
+ customer_id?: string | null;
7975
+ follow_up_werkbon_id?: string | null;
7976
+ id?: string;
7977
+ jaar?: number;
7978
+ mandaat_restant_cents?: number;
7979
+ notities?: string | null;
7980
+ offerte_number?: string | null;
7981
+ omschrijving?: string;
7982
+ rejected_at?: string | null;
7983
+ sent_at?: string | null;
7984
+ source_number?: string | null;
7985
+ source_ref?: string | null;
7986
+ source_type?: string;
7987
+ status?: string;
7988
+ subtotal_cents?: number;
7989
+ total_cents?: number;
7990
+ updated_at?: string;
7991
+ valid_until?: string | null;
7992
+ vat_cents?: number;
7993
+ vat_rate?: number;
7994
+ viewed_at?: string | null;
7995
+ volgnummer?: number | null;
7996
+ werkbon_id?: string | null;
7997
+ work_location_id?: string | null;
7998
+ };
7999
+ Update: {
8000
+ ai_generated?: boolean;
8001
+ approved_at?: string | null;
8002
+ binnen_mandaat?: boolean;
8003
+ contact_id?: string | null;
8004
+ converted_at?: string | null;
8005
+ created_at?: string;
8006
+ created_by?: string | null;
8007
+ customer_id?: string | null;
8008
+ follow_up_werkbon_id?: string | null;
8009
+ id?: string;
8010
+ jaar?: number;
8011
+ mandaat_restant_cents?: number;
8012
+ notities?: string | null;
8013
+ offerte_number?: string | null;
8014
+ omschrijving?: string;
8015
+ rejected_at?: string | null;
8016
+ sent_at?: string | null;
8017
+ source_number?: string | null;
8018
+ source_ref?: string | null;
8019
+ source_type?: string;
8020
+ status?: string;
8021
+ subtotal_cents?: number;
8022
+ total_cents?: number;
8023
+ updated_at?: string;
8024
+ valid_until?: string | null;
8025
+ vat_cents?: number;
8026
+ vat_rate?: number;
8027
+ viewed_at?: string | null;
8028
+ volgnummer?: number | null;
8029
+ werkbon_id?: string | null;
8030
+ work_location_id?: string | null;
8031
+ };
8032
+ Relationships: [{
8033
+ foreignKeyName: "itk_offertes_contact_id_fkey";
8034
+ columns: ["contact_id"];
8035
+ isOneToOne: false;
8036
+ referencedRelation: "itk_contact_persons";
8037
+ referencedColumns: ["id"];
8038
+ }, {
8039
+ foreignKeyName: "itk_offertes_customer_id_fkey";
8040
+ columns: ["customer_id"];
8041
+ isOneToOne: false;
8042
+ referencedRelation: "itk_customers";
8043
+ referencedColumns: ["id"];
8044
+ }, {
8045
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
8046
+ columns: ["follow_up_werkbon_id"];
8047
+ isOneToOne: false;
8048
+ referencedRelation: "werkbonnen";
8049
+ referencedColumns: ["id"];
8050
+ }, {
8051
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8052
+ columns: ["werkbon_id"];
8053
+ isOneToOne: false;
8054
+ referencedRelation: "werkbonnen";
8055
+ referencedColumns: ["id"];
8056
+ }, {
8057
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8058
+ columns: ["work_location_id"];
8059
+ isOneToOne: false;
8060
+ referencedRelation: "itk_work_locations";
8061
+ referencedColumns: ["id"];
8062
+ }];
8063
+ };
7776
8064
  itk_work_locations: {
7777
8065
  Row: {
7778
8066
  city: string | null;
@@ -10146,6 +10434,63 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10146
10434
  referencedColumns: ["id"];
10147
10435
  }];
10148
10436
  };
10437
+ medewerker_details: {
10438
+ Row: {
10439
+ color: string | null;
10440
+ created_at: string;
10441
+ hours_fri: number | null;
10442
+ hours_mon: number | null;
10443
+ hours_thu: number | null;
10444
+ hours_tue: number | null;
10445
+ hours_wed: number | null;
10446
+ id: string;
10447
+ is_active: boolean;
10448
+ leave_balance_hours: number;
10449
+ persnr: string | null;
10450
+ phone: string | null;
10451
+ profile_id: string;
10452
+ updated_at: string;
10453
+ };
10454
+ Insert: {
10455
+ color?: string | null;
10456
+ created_at?: string;
10457
+ hours_fri?: number | null;
10458
+ hours_mon?: number | null;
10459
+ hours_thu?: number | null;
10460
+ hours_tue?: number | null;
10461
+ hours_wed?: number | null;
10462
+ id?: string;
10463
+ is_active?: boolean;
10464
+ leave_balance_hours?: number;
10465
+ persnr?: string | null;
10466
+ phone?: string | null;
10467
+ profile_id: string;
10468
+ updated_at?: string;
10469
+ };
10470
+ Update: {
10471
+ color?: string | null;
10472
+ created_at?: string;
10473
+ hours_fri?: number | null;
10474
+ hours_mon?: number | null;
10475
+ hours_thu?: number | null;
10476
+ hours_tue?: number | null;
10477
+ hours_wed?: number | null;
10478
+ id?: string;
10479
+ is_active?: boolean;
10480
+ leave_balance_hours?: number;
10481
+ persnr?: string | null;
10482
+ phone?: string | null;
10483
+ profile_id?: string;
10484
+ updated_at?: string;
10485
+ };
10486
+ Relationships: [{
10487
+ foreignKeyName: "medewerker_details_profile_id_fkey";
10488
+ columns: ["profile_id"];
10489
+ isOneToOne: true;
10490
+ referencedRelation: "profiles";
10491
+ referencedColumns: ["id"];
10492
+ }];
10493
+ };
10149
10494
  module_features: {
10150
10495
  Row: {
10151
10496
  created_at: string;
@@ -11439,6 +11784,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11439
11784
  orders: {
11440
11785
  Row: {
11441
11786
  buffer_id: string | null;
11787
+ cancel_reason: string | null;
11788
+ cancelled_at: string | null;
11442
11789
  created_at: string;
11443
11790
  custom_fields: import("../integrations/supabase/types").Json;
11444
11791
  customer_id: string | null;
@@ -11461,6 +11808,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11461
11808
  };
11462
11809
  Insert: {
11463
11810
  buffer_id?: string | null;
11811
+ cancel_reason?: string | null;
11812
+ cancelled_at?: string | null;
11464
11813
  created_at?: string;
11465
11814
  custom_fields?: import("../integrations/supabase/types").Json;
11466
11815
  customer_id?: string | null;
@@ -11483,6 +11832,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11483
11832
  };
11484
11833
  Update: {
11485
11834
  buffer_id?: string | null;
11835
+ cancel_reason?: string | null;
11836
+ cancelled_at?: string | null;
11486
11837
  created_at?: string;
11487
11838
  custom_fields?: import("../integrations/supabase/types").Json;
11488
11839
  customer_id?: string | null;
@@ -13545,6 +13896,66 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13545
13896
  };
13546
13897
  Relationships: [];
13547
13898
  };
13899
+ profile_modules: {
13900
+ Row: {
13901
+ created_at: string;
13902
+ id: string;
13903
+ module_id: string;
13904
+ profile_id: string;
13905
+ };
13906
+ Insert: {
13907
+ created_at?: string;
13908
+ id?: string;
13909
+ module_id: string;
13910
+ profile_id: string;
13911
+ };
13912
+ Update: {
13913
+ created_at?: string;
13914
+ id?: string;
13915
+ module_id?: string;
13916
+ profile_id?: string;
13917
+ };
13918
+ Relationships: [{
13919
+ foreignKeyName: "profile_modules_profile_id_fkey";
13920
+ columns: ["profile_id"];
13921
+ isOneToOne: false;
13922
+ referencedRelation: "profiles_org";
13923
+ referencedColumns: ["id"];
13924
+ }];
13925
+ };
13926
+ profile_roles: {
13927
+ Row: {
13928
+ created_at: string;
13929
+ id: string;
13930
+ profile_id: string;
13931
+ role_id: string;
13932
+ };
13933
+ Insert: {
13934
+ created_at?: string;
13935
+ id?: string;
13936
+ profile_id: string;
13937
+ role_id: string;
13938
+ };
13939
+ Update: {
13940
+ created_at?: string;
13941
+ id?: string;
13942
+ profile_id?: string;
13943
+ role_id?: string;
13944
+ };
13945
+ Relationships: [{
13946
+ foreignKeyName: "profile_roles_profile_id_fkey";
13947
+ columns: ["profile_id"];
13948
+ isOneToOne: false;
13949
+ referencedRelation: "profiles_org";
13950
+ referencedColumns: ["id"];
13951
+ }, {
13952
+ foreignKeyName: "profile_roles_role_id_fkey";
13953
+ columns: ["role_id"];
13954
+ isOneToOne: false;
13955
+ referencedRelation: "roles";
13956
+ referencedColumns: ["id"];
13957
+ }];
13958
+ };
13548
13959
  profiles: {
13549
13960
  Row: {
13550
13961
  address: string | null;
@@ -13590,6 +14001,39 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13590
14001
  referencedColumns: ["id"];
13591
14002
  }];
13592
14003
  };
14004
+ profiles_org: {
14005
+ Row: {
14006
+ created_at: string;
14007
+ id: string;
14008
+ is_default: boolean;
14009
+ name: string;
14010
+ tenant_id: string | null;
14011
+ updated_at: string;
14012
+ };
14013
+ Insert: {
14014
+ created_at?: string;
14015
+ id?: string;
14016
+ is_default?: boolean;
14017
+ name: string;
14018
+ tenant_id?: string | null;
14019
+ updated_at?: string;
14020
+ };
14021
+ Update: {
14022
+ created_at?: string;
14023
+ id?: string;
14024
+ is_default?: boolean;
14025
+ name?: string;
14026
+ tenant_id?: string | null;
14027
+ updated_at?: string;
14028
+ };
14029
+ Relationships: [{
14030
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14031
+ columns: ["tenant_id"];
14032
+ isOneToOne: false;
14033
+ referencedRelation: "tenants";
14034
+ referencedColumns: ["id"];
14035
+ }];
14036
+ };
13593
14037
  projects: {
13594
14038
  Row: {
13595
14039
  contact_name: string | null;
@@ -14764,6 +15208,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
14764
15208
  type: string;
14765
15209
  updated_at: string;
14766
15210
  vereist_medewerker: boolean;
15211
+ werkplek: string | null;
14767
15212
  };
14768
15213
  Insert: {
14769
15214
  actief?: boolean;
@@ -14777,6 +15222,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
14777
15222
  type?: string;
14778
15223
  updated_at?: string;
14779
15224
  vereist_medewerker?: boolean;
15225
+ werkplek?: string | null;
14780
15226
  };
14781
15227
  Update: {
14782
15228
  actief?: boolean;
@@ -14790,9 +15236,46 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
14790
15236
  type?: string;
14791
15237
  updated_at?: string;
14792
15238
  vereist_medewerker?: boolean;
15239
+ werkplek?: string | null;
14793
15240
  };
14794
15241
  Relationships: [];
14795
15242
  };
15243
+ sick_periods: {
15244
+ Row: {
15245
+ created_at: string;
15246
+ employee_id: string;
15247
+ end_date: string | null;
15248
+ id: string;
15249
+ notes: string | null;
15250
+ start_date: string;
15251
+ updated_at: string;
15252
+ };
15253
+ Insert: {
15254
+ created_at?: string;
15255
+ employee_id: string;
15256
+ end_date?: string | null;
15257
+ id?: string;
15258
+ notes?: string | null;
15259
+ start_date: string;
15260
+ updated_at?: string;
15261
+ };
15262
+ Update: {
15263
+ created_at?: string;
15264
+ employee_id?: string;
15265
+ end_date?: string | null;
15266
+ id?: string;
15267
+ notes?: string | null;
15268
+ start_date?: string;
15269
+ updated_at?: string;
15270
+ };
15271
+ Relationships: [{
15272
+ foreignKeyName: "sick_periods_employee_id_fkey";
15273
+ columns: ["employee_id"];
15274
+ isOneToOne: false;
15275
+ referencedRelation: "profiles";
15276
+ referencedColumns: ["id"];
15277
+ }];
15278
+ };
14796
15279
  sidebar_config: {
14797
15280
  Row: {
14798
15281
  id: string;
@@ -19477,6 +19960,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19477
19960
  };
19478
19961
  Returns: string;
19479
19962
  };
19963
+ employee_day_hours: {
19964
+ Args: {
19965
+ _day: string;
19966
+ _employee_id: string;
19967
+ };
19968
+ Returns: number;
19969
+ };
19480
19970
  enqueue_cart_replan_if_unlocked: {
19481
19971
  Args: {
19482
19972
  p_order_id: string;
@@ -19830,6 +20320,19 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19830
20320
  Args: never;
19831
20321
  Returns: boolean;
19832
20322
  };
20323
+ itk_offerte_naar_werkbon: {
20324
+ Args: {
20325
+ _offerte_id: string;
20326
+ };
20327
+ Returns: string;
20328
+ };
20329
+ itk_offerte_restant_mandaat: {
20330
+ Args: {
20331
+ _exclude_offerte_id?: string;
20332
+ _werkbon_id: string;
20333
+ };
20334
+ Returns: number;
20335
+ };
19833
20336
  jwt_has_role: {
19834
20337
  Args: {
19835
20338
  _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
@@ -19840,9 +20343,19 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19840
20343
  Args: never;
19841
20344
  Returns: {
19842
20345
  avatar_url: string;
20346
+ color: string;
19843
20347
  display_name: string;
19844
20348
  email: string;
20349
+ hours_fri: number;
20350
+ hours_mon: number;
20351
+ hours_thu: number;
20352
+ hours_tue: number;
20353
+ hours_wed: number;
19845
20354
  id: string;
20355
+ is_active: boolean;
20356
+ leave_balance_hours: number;
20357
+ persnr: string;
20358
+ phone: string;
19846
20359
  roles: string[];
19847
20360
  }[];
19848
20361
  };
@@ -20169,17 +20682,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
20169
20682
  Returns: string;
20170
20683
  };
20171
20684
  logistics_emit_event: {
20172
- Args: {
20173
- p_event_type: string;
20174
- p_idempotency_key?: string;
20175
- p_order_ref: string;
20176
- p_payload?: import("../integrations/supabase/types").Json;
20177
- p_shadow?: boolean;
20178
- p_source_module: string;
20179
- p_strategy_id?: string;
20180
- };
20181
- Returns: import("../integrations/supabase/types").Json;
20182
- } | {
20183
20685
  Args: {
20184
20686
  p_event_type: string;
20185
20687
  p_idempotency_key?: string;
@@ -21024,6 +21526,37 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21024
21526
  };
21025
21527
  Returns: undefined;
21026
21528
  };
21529
+ quote_create_from_source: {
21530
+ Args: {
21531
+ _payload?: import("../integrations/supabase/types").Json;
21532
+ _source_id: string;
21533
+ _source_type: string;
21534
+ };
21535
+ Returns: string;
21536
+ };
21537
+ quote_get_billable_lines: {
21538
+ Args: {
21539
+ _quotation_id: string;
21540
+ };
21541
+ Returns: import("../integrations/supabase/types").Json;
21542
+ };
21543
+ quote_get_summary: {
21544
+ Args: {
21545
+ _quotation_id: string;
21546
+ };
21547
+ Returns: import("../integrations/supabase/types").Json;
21548
+ };
21549
+ quote_list_packages: {
21550
+ Args: never;
21551
+ Returns: import("../integrations/supabase/types").Json;
21552
+ };
21553
+ quote_list_sources: {
21554
+ Args: {
21555
+ _limit?: number;
21556
+ _source_type?: string;
21557
+ };
21558
+ Returns: import("../integrations/supabase/types").Json;
21559
+ };
21027
21560
  recompute_all_reserved_stock: {
21028
21561
  Args: never;
21029
21562
  Returns: undefined;
@@ -21559,6 +22092,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21559
22092
  };
21560
22093
  Returns: undefined;
21561
22094
  };
22095
+ sync_sick_time_off: {
22096
+ Args: {
22097
+ _period_id: string;
22098
+ };
22099
+ Returns: number;
22100
+ };
21562
22101
  trade_item_stock_duplicates: {
21563
22102
  Args: never;
21564
22103
  Returns: {
@@ -21632,11 +22171,31 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
21632
22171
  Args: never;
21633
22172
  Returns: string;
21634
22173
  };
22174
+ wo_create_from_source: {
22175
+ Args: {
22176
+ _payload?: import("../integrations/supabase/types").Json;
22177
+ _source_id: string;
22178
+ _source_type: string;
22179
+ };
22180
+ Returns: string;
22181
+ };
22182
+ wo_get_billable_lines: {
22183
+ Args: {
22184
+ _work_order_id: string;
22185
+ };
22186
+ Returns: import("../integrations/supabase/types").Json;
22187
+ };
22188
+ wo_get_summary: {
22189
+ Args: {
22190
+ _work_order_id: string;
22191
+ };
22192
+ Returns: import("../integrations/supabase/types").Json;
22193
+ };
21635
22194
  };
21636
22195
  Enums: {
21637
22196
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
21638
22197
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
21639
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
22198
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
21640
22199
  doc_orientation: "portrait" | "landscape";
21641
22200
  exact_env: "staging" | "live";
21642
22201
  exact_push_status: "pending" | "sent" | "error";