@flowselections/floriday-verkoop-module 1.0.41 → 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.
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +5 -2
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.js +27 -13
- package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/VerkoopOrdersPage.js +141 -27
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1428 -172
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1428 -172
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1428 -172
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1453 -170
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +3 -0
- package/dist-lib/lib/cart-lock.functions.d.ts +1428 -172
- package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-planning-settings.functions.d.ts +15224 -1408
- package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.d.ts +4152 -384
- package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.d.ts +65255 -1978
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.js +48 -1
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +4152 -384
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +1428 -172
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.d.ts +1428 -172
- package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.js +6 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +9688 -896
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +6920 -640
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.functions.d.ts +5536 -512
- package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.server.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.server.js +1 -0
- package/dist-lib/lib/load-carriers.functions.d.ts +1428 -172
- package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-engine.functions.d.ts +6920 -640
- package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-stock.functions.d.ts +2768 -256
- package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-addresses.functions.d.ts +1428 -172
- package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-buffers.functions.d.ts +4152 -384
- package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-cancel.server.d.ts +24 -0
- package/dist-lib/lib/order-cancel.server.d.ts.map +1 -0
- package/dist-lib/lib/order-cancel.server.js +130 -0
- package/dist-lib/lib/order-carrier.functions.d.ts +2768 -256
- package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-pickup.functions.d.ts +2768 -256
- package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-shipments.functions.d.ts +5536 -512
- package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.functions.d.ts +1428 -172
- package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.server.js +4 -60
- package/dist-lib/lib/salesorders-mapping.d.ts +6 -0
- package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-mapping.js +17 -0
- package/dist-lib/lib/salesorders.functions.d.ts +6920 -640
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/tradeitems.functions.d.ts +1428 -172
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -872,6 +872,126 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
872
872
|
};
|
|
873
873
|
Relationships: [];
|
|
874
874
|
};
|
|
875
|
+
cao_holidays: {
|
|
876
|
+
Row: {
|
|
877
|
+
created_at: string;
|
|
878
|
+
description: string | null;
|
|
879
|
+
holiday_date: string;
|
|
880
|
+
id: string;
|
|
881
|
+
updated_at: string;
|
|
882
|
+
};
|
|
883
|
+
Insert: {
|
|
884
|
+
created_at?: string;
|
|
885
|
+
description?: string | null;
|
|
886
|
+
holiday_date: string;
|
|
887
|
+
id?: string;
|
|
888
|
+
updated_at?: string;
|
|
889
|
+
};
|
|
890
|
+
Update: {
|
|
891
|
+
created_at?: string;
|
|
892
|
+
description?: string | null;
|
|
893
|
+
holiday_date?: string;
|
|
894
|
+
id?: string;
|
|
895
|
+
updated_at?: string;
|
|
896
|
+
};
|
|
897
|
+
Relationships: [];
|
|
898
|
+
};
|
|
899
|
+
cao_settings: {
|
|
900
|
+
Row: {
|
|
901
|
+
auto_break_after_hours: number;
|
|
902
|
+
auto_break_minutes: number;
|
|
903
|
+
auto_break_unpaid: boolean;
|
|
904
|
+
auto_stop_after_hours: number;
|
|
905
|
+
callout_fee: number;
|
|
906
|
+
created_at: string;
|
|
907
|
+
daily_regular_hours: number;
|
|
908
|
+
default_hourly_rate: number;
|
|
909
|
+
id: string;
|
|
910
|
+
materials_markup_percent: number;
|
|
911
|
+
max_daily_hours: number;
|
|
912
|
+
max_weekly_hours: number;
|
|
913
|
+
meal_allowance_amount: number;
|
|
914
|
+
overtime_pct_178: number;
|
|
915
|
+
overtime_pct_189: number;
|
|
916
|
+
overtime_pct_212: number;
|
|
917
|
+
reminder_after_hours: number;
|
|
918
|
+
standby_evening_amount: number;
|
|
919
|
+
standby_weekend_amount: number;
|
|
920
|
+
travel_cost_per_km: number | null;
|
|
921
|
+
travel_cost_threshold_km: number | null;
|
|
922
|
+
travel_counts_as_work: boolean;
|
|
923
|
+
travel_hourly_rate: number;
|
|
924
|
+
travel_rate_per_hour: number;
|
|
925
|
+
travel_threshold_minutes: number;
|
|
926
|
+
updated_at: string;
|
|
927
|
+
weekend_always_212: boolean;
|
|
928
|
+
window_end: string;
|
|
929
|
+
window_start: string;
|
|
930
|
+
};
|
|
931
|
+
Insert: {
|
|
932
|
+
auto_break_after_hours?: number;
|
|
933
|
+
auto_break_minutes?: number;
|
|
934
|
+
auto_break_unpaid?: boolean;
|
|
935
|
+
auto_stop_after_hours?: number;
|
|
936
|
+
callout_fee?: number;
|
|
937
|
+
created_at?: string;
|
|
938
|
+
daily_regular_hours?: number;
|
|
939
|
+
default_hourly_rate?: number;
|
|
940
|
+
id?: string;
|
|
941
|
+
materials_markup_percent?: number;
|
|
942
|
+
max_daily_hours?: number;
|
|
943
|
+
max_weekly_hours?: number;
|
|
944
|
+
meal_allowance_amount?: number;
|
|
945
|
+
overtime_pct_178?: number;
|
|
946
|
+
overtime_pct_189?: number;
|
|
947
|
+
overtime_pct_212?: number;
|
|
948
|
+
reminder_after_hours?: number;
|
|
949
|
+
standby_evening_amount?: number;
|
|
950
|
+
standby_weekend_amount?: number;
|
|
951
|
+
travel_cost_per_km?: number | null;
|
|
952
|
+
travel_cost_threshold_km?: number | null;
|
|
953
|
+
travel_counts_as_work?: boolean;
|
|
954
|
+
travel_hourly_rate?: number;
|
|
955
|
+
travel_rate_per_hour?: number;
|
|
956
|
+
travel_threshold_minutes?: number;
|
|
957
|
+
updated_at?: string;
|
|
958
|
+
weekend_always_212?: boolean;
|
|
959
|
+
window_end?: string;
|
|
960
|
+
window_start?: string;
|
|
961
|
+
};
|
|
962
|
+
Update: {
|
|
963
|
+
auto_break_after_hours?: number;
|
|
964
|
+
auto_break_minutes?: number;
|
|
965
|
+
auto_break_unpaid?: boolean;
|
|
966
|
+
auto_stop_after_hours?: number;
|
|
967
|
+
callout_fee?: number;
|
|
968
|
+
created_at?: string;
|
|
969
|
+
daily_regular_hours?: number;
|
|
970
|
+
default_hourly_rate?: number;
|
|
971
|
+
id?: string;
|
|
972
|
+
materials_markup_percent?: number;
|
|
973
|
+
max_daily_hours?: number;
|
|
974
|
+
max_weekly_hours?: number;
|
|
975
|
+
meal_allowance_amount?: number;
|
|
976
|
+
overtime_pct_178?: number;
|
|
977
|
+
overtime_pct_189?: number;
|
|
978
|
+
overtime_pct_212?: number;
|
|
979
|
+
reminder_after_hours?: number;
|
|
980
|
+
standby_evening_amount?: number;
|
|
981
|
+
standby_weekend_amount?: number;
|
|
982
|
+
travel_cost_per_km?: number | null;
|
|
983
|
+
travel_cost_threshold_km?: number | null;
|
|
984
|
+
travel_counts_as_work?: boolean;
|
|
985
|
+
travel_hourly_rate?: number;
|
|
986
|
+
travel_rate_per_hour?: number;
|
|
987
|
+
travel_threshold_minutes?: number;
|
|
988
|
+
updated_at?: string;
|
|
989
|
+
weekend_always_212?: boolean;
|
|
990
|
+
window_end?: string;
|
|
991
|
+
window_start?: string;
|
|
992
|
+
};
|
|
993
|
+
Relationships: [];
|
|
994
|
+
};
|
|
875
995
|
carrier_shipping_rates: {
|
|
876
996
|
Row: {
|
|
877
997
|
carrier_id: string;
|
|
@@ -4925,6 +5045,42 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
4925
5045
|
};
|
|
4926
5046
|
Relationships: [];
|
|
4927
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
|
+
};
|
|
4928
5084
|
floricode_connection_settings: {
|
|
4929
5085
|
Row: {
|
|
4930
5086
|
catalog_key: string | null;
|
|
@@ -7649,6 +7805,258 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
7649
7805
|
};
|
|
7650
7806
|
Relationships: [];
|
|
7651
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
|
+
};
|
|
7652
8060
|
itk_work_locations: {
|
|
7653
8061
|
Row: {
|
|
7654
8062
|
city: string | null;
|
|
@@ -7766,7 +8174,6 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
7766
8174
|
start_date: string;
|
|
7767
8175
|
start_time: string | null;
|
|
7768
8176
|
status: string;
|
|
7769
|
-
tenant_id: string;
|
|
7770
8177
|
updated_at: string;
|
|
7771
8178
|
user_id: string;
|
|
7772
8179
|
};
|
|
@@ -7784,7 +8191,6 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
7784
8191
|
start_date: string;
|
|
7785
8192
|
start_time?: string | null;
|
|
7786
8193
|
status?: string;
|
|
7787
|
-
tenant_id?: string;
|
|
7788
8194
|
updated_at?: string;
|
|
7789
8195
|
user_id: string;
|
|
7790
8196
|
};
|
|
@@ -7802,7 +8208,6 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
7802
8208
|
start_date?: string;
|
|
7803
8209
|
start_time?: string | null;
|
|
7804
8210
|
status?: string;
|
|
7805
|
-
tenant_id?: string;
|
|
7806
8211
|
updated_at?: string;
|
|
7807
8212
|
user_id?: string;
|
|
7808
8213
|
};
|
|
@@ -7810,13 +8215,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
7810
8215
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
7811
8216
|
columns: ["monteur_id"];
|
|
7812
8217
|
isOneToOne: false;
|
|
7813
|
-
referencedRelation: "
|
|
8218
|
+
referencedRelation: "profiles";
|
|
7814
8219
|
referencedColumns: ["id"];
|
|
7815
8220
|
}, {
|
|
7816
8221
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
7817
8222
|
columns: ["user_id"];
|
|
7818
8223
|
isOneToOne: false;
|
|
7819
|
-
referencedRelation: "
|
|
8224
|
+
referencedRelation: "profiles";
|
|
7820
8225
|
referencedColumns: ["id"];
|
|
7821
8226
|
}];
|
|
7822
8227
|
};
|
|
@@ -8684,6 +9089,45 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
8684
9089
|
};
|
|
8685
9090
|
Relationships: [];
|
|
8686
9091
|
};
|
|
9092
|
+
logistics_plan_queue: {
|
|
9093
|
+
Row: {
|
|
9094
|
+
attempts: number;
|
|
9095
|
+
claimed_at: string | null;
|
|
9096
|
+
enqueued_at: string;
|
|
9097
|
+
error: string | null;
|
|
9098
|
+
id: string;
|
|
9099
|
+
next_attempt_at: string;
|
|
9100
|
+
order_id: string;
|
|
9101
|
+
reason: string;
|
|
9102
|
+
status: string;
|
|
9103
|
+
updated_at: string;
|
|
9104
|
+
};
|
|
9105
|
+
Insert: {
|
|
9106
|
+
attempts?: number;
|
|
9107
|
+
claimed_at?: string | null;
|
|
9108
|
+
enqueued_at?: string;
|
|
9109
|
+
error?: string | null;
|
|
9110
|
+
id?: string;
|
|
9111
|
+
next_attempt_at?: string;
|
|
9112
|
+
order_id: string;
|
|
9113
|
+
reason?: string;
|
|
9114
|
+
status?: string;
|
|
9115
|
+
updated_at?: string;
|
|
9116
|
+
};
|
|
9117
|
+
Update: {
|
|
9118
|
+
attempts?: number;
|
|
9119
|
+
claimed_at?: string | null;
|
|
9120
|
+
enqueued_at?: string;
|
|
9121
|
+
error?: string | null;
|
|
9122
|
+
id?: string;
|
|
9123
|
+
next_attempt_at?: string;
|
|
9124
|
+
order_id?: string;
|
|
9125
|
+
reason?: string;
|
|
9126
|
+
status?: string;
|
|
9127
|
+
updated_at?: string;
|
|
9128
|
+
};
|
|
9129
|
+
Relationships: [];
|
|
9130
|
+
};
|
|
8687
9131
|
logistics_plan_runs: {
|
|
8688
9132
|
Row: {
|
|
8689
9133
|
created_at: string;
|
|
@@ -8759,6 +9203,24 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
8759
9203
|
referencedColumns: ["id"];
|
|
8760
9204
|
}];
|
|
8761
9205
|
};
|
|
9206
|
+
logistics_plan_settings: {
|
|
9207
|
+
Row: {
|
|
9208
|
+
key: string;
|
|
9209
|
+
updated_at: string;
|
|
9210
|
+
value: string;
|
|
9211
|
+
};
|
|
9212
|
+
Insert: {
|
|
9213
|
+
key: string;
|
|
9214
|
+
updated_at?: string;
|
|
9215
|
+
value: string;
|
|
9216
|
+
};
|
|
9217
|
+
Update: {
|
|
9218
|
+
key?: string;
|
|
9219
|
+
updated_at?: string;
|
|
9220
|
+
value?: string;
|
|
9221
|
+
};
|
|
9222
|
+
Relationships: [];
|
|
9223
|
+
};
|
|
8762
9224
|
logistics_rebuffer_state: {
|
|
8763
9225
|
Row: {
|
|
8764
9226
|
created_at: string;
|
|
@@ -9914,6 +10376,147 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
9914
10376
|
};
|
|
9915
10377
|
Relationships: [];
|
|
9916
10378
|
};
|
|
10379
|
+
material_usage: {
|
|
10380
|
+
Row: {
|
|
10381
|
+
created_at: string;
|
|
10382
|
+
id: string;
|
|
10383
|
+
material_name: string;
|
|
10384
|
+
monteur_id: string | null;
|
|
10385
|
+
price_at_time: number;
|
|
10386
|
+
quantity_used: number;
|
|
10387
|
+
updated_at: string;
|
|
10388
|
+
van_inventory_id: string | null;
|
|
10389
|
+
work_order_id: string;
|
|
10390
|
+
};
|
|
10391
|
+
Insert: {
|
|
10392
|
+
created_at?: string;
|
|
10393
|
+
id?: string;
|
|
10394
|
+
material_name: string;
|
|
10395
|
+
monteur_id?: string | null;
|
|
10396
|
+
price_at_time?: number;
|
|
10397
|
+
quantity_used?: number;
|
|
10398
|
+
updated_at?: string;
|
|
10399
|
+
van_inventory_id?: string | null;
|
|
10400
|
+
work_order_id: string;
|
|
10401
|
+
};
|
|
10402
|
+
Update: {
|
|
10403
|
+
created_at?: string;
|
|
10404
|
+
id?: string;
|
|
10405
|
+
material_name?: string;
|
|
10406
|
+
monteur_id?: string | null;
|
|
10407
|
+
price_at_time?: number;
|
|
10408
|
+
quantity_used?: number;
|
|
10409
|
+
updated_at?: string;
|
|
10410
|
+
van_inventory_id?: string | null;
|
|
10411
|
+
work_order_id?: string;
|
|
10412
|
+
};
|
|
10413
|
+
Relationships: [{
|
|
10414
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
10415
|
+
columns: ["monteur_id"];
|
|
10416
|
+
isOneToOne: false;
|
|
10417
|
+
referencedRelation: "profiles";
|
|
10418
|
+
referencedColumns: ["id"];
|
|
10419
|
+
}, {
|
|
10420
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
10421
|
+
columns: ["van_inventory_id"];
|
|
10422
|
+
isOneToOne: false;
|
|
10423
|
+
referencedRelation: "van_inventories";
|
|
10424
|
+
referencedColumns: ["id"];
|
|
10425
|
+
}, {
|
|
10426
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
10427
|
+
columns: ["work_order_id"];
|
|
10428
|
+
isOneToOne: false;
|
|
10429
|
+
referencedRelation: "work_orders";
|
|
10430
|
+
referencedColumns: ["id"];
|
|
10431
|
+
}];
|
|
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
|
+
};
|
|
10490
|
+
module_features: {
|
|
10491
|
+
Row: {
|
|
10492
|
+
created_at: string;
|
|
10493
|
+
feature_id: string;
|
|
10494
|
+
id: string;
|
|
10495
|
+
is_active: boolean;
|
|
10496
|
+
last_seen_at: string;
|
|
10497
|
+
module_id: string;
|
|
10498
|
+
name: string;
|
|
10499
|
+
};
|
|
10500
|
+
Insert: {
|
|
10501
|
+
created_at?: string;
|
|
10502
|
+
feature_id: string;
|
|
10503
|
+
id?: string;
|
|
10504
|
+
is_active?: boolean;
|
|
10505
|
+
last_seen_at?: string;
|
|
10506
|
+
module_id: string;
|
|
10507
|
+
name: string;
|
|
10508
|
+
};
|
|
10509
|
+
Update: {
|
|
10510
|
+
created_at?: string;
|
|
10511
|
+
feature_id?: string;
|
|
10512
|
+
id?: string;
|
|
10513
|
+
is_active?: boolean;
|
|
10514
|
+
last_seen_at?: string;
|
|
10515
|
+
module_id?: string;
|
|
10516
|
+
name?: string;
|
|
10517
|
+
};
|
|
10518
|
+
Relationships: [];
|
|
10519
|
+
};
|
|
9917
10520
|
module_permissions: {
|
|
9918
10521
|
Row: {
|
|
9919
10522
|
created_at: string;
|
|
@@ -9944,6 +10547,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
9944
10547
|
module_registry: {
|
|
9945
10548
|
Row: {
|
|
9946
10549
|
created_at: string;
|
|
10550
|
+
enforce: boolean;
|
|
9947
10551
|
is_active: boolean;
|
|
9948
10552
|
last_seen_at: string;
|
|
9949
10553
|
module_id: string;
|
|
@@ -9953,6 +10557,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
9953
10557
|
};
|
|
9954
10558
|
Insert: {
|
|
9955
10559
|
created_at?: string;
|
|
10560
|
+
enforce?: boolean;
|
|
9956
10561
|
is_active?: boolean;
|
|
9957
10562
|
last_seen_at?: string;
|
|
9958
10563
|
module_id: string;
|
|
@@ -9962,6 +10567,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
9962
10567
|
};
|
|
9963
10568
|
Update: {
|
|
9964
10569
|
created_at?: string;
|
|
10570
|
+
enforce?: boolean;
|
|
9965
10571
|
is_active?: boolean;
|
|
9966
10572
|
last_seen_at?: string;
|
|
9967
10573
|
module_id?: string;
|
|
@@ -10022,63 +10628,6 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
10022
10628
|
};
|
|
10023
10629
|
Relationships: [];
|
|
10024
10630
|
};
|
|
10025
|
-
monteurs: {
|
|
10026
|
-
Row: {
|
|
10027
|
-
avatar_url: string | null;
|
|
10028
|
-
color: string | null;
|
|
10029
|
-
created_at: string;
|
|
10030
|
-
email: string | null;
|
|
10031
|
-
id: string;
|
|
10032
|
-
is_active: boolean;
|
|
10033
|
-
leave_balance_hours: number;
|
|
10034
|
-
name: string;
|
|
10035
|
-
persnr: number | null;
|
|
10036
|
-
phone: string | null;
|
|
10037
|
-
role: string;
|
|
10038
|
-
tenant_id: string;
|
|
10039
|
-
updated_at: string;
|
|
10040
|
-
user_id: string | null;
|
|
10041
|
-
};
|
|
10042
|
-
Insert: {
|
|
10043
|
-
avatar_url?: string | null;
|
|
10044
|
-
color?: string | null;
|
|
10045
|
-
created_at?: string;
|
|
10046
|
-
email?: string | null;
|
|
10047
|
-
id?: string;
|
|
10048
|
-
is_active?: boolean;
|
|
10049
|
-
leave_balance_hours?: number;
|
|
10050
|
-
name: string;
|
|
10051
|
-
persnr?: number | null;
|
|
10052
|
-
phone?: string | null;
|
|
10053
|
-
role?: string;
|
|
10054
|
-
tenant_id: string;
|
|
10055
|
-
updated_at?: string;
|
|
10056
|
-
user_id?: string | null;
|
|
10057
|
-
};
|
|
10058
|
-
Update: {
|
|
10059
|
-
avatar_url?: string | null;
|
|
10060
|
-
color?: string | null;
|
|
10061
|
-
created_at?: string;
|
|
10062
|
-
email?: string | null;
|
|
10063
|
-
id?: string;
|
|
10064
|
-
is_active?: boolean;
|
|
10065
|
-
leave_balance_hours?: number;
|
|
10066
|
-
name?: string;
|
|
10067
|
-
persnr?: number | null;
|
|
10068
|
-
phone?: string | null;
|
|
10069
|
-
role?: string;
|
|
10070
|
-
tenant_id?: string;
|
|
10071
|
-
updated_at?: string;
|
|
10072
|
-
user_id?: string | null;
|
|
10073
|
-
};
|
|
10074
|
-
Relationships: [{
|
|
10075
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
10076
|
-
columns: ["tenant_id"];
|
|
10077
|
-
isOneToOne: false;
|
|
10078
|
-
referencedRelation: "tenants";
|
|
10079
|
-
referencedColumns: ["id"];
|
|
10080
|
-
}];
|
|
10081
|
-
};
|
|
10082
10631
|
nmbrs_component_mapping: {
|
|
10083
10632
|
Row: {
|
|
10084
10633
|
created_at: string;
|
|
@@ -10149,13 +10698,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
10149
10698
|
nmbrs_employee_number?: string;
|
|
10150
10699
|
updated_at?: string;
|
|
10151
10700
|
};
|
|
10152
|
-
Relationships: [
|
|
10153
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10154
|
-
columns: ["monteur_id"];
|
|
10155
|
-
isOneToOne: true;
|
|
10156
|
-
referencedRelation: "monteurs";
|
|
10157
|
-
referencedColumns: ["id"];
|
|
10158
|
-
}];
|
|
10701
|
+
Relationships: [];
|
|
10159
10702
|
};
|
|
10160
10703
|
nmbrs_export_lines: {
|
|
10161
10704
|
Row: {
|
|
@@ -10204,12 +10747,6 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
10204
10747
|
wage_code?: string;
|
|
10205
10748
|
};
|
|
10206
10749
|
Relationships: [{
|
|
10207
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10208
|
-
columns: ["monteur_id"];
|
|
10209
|
-
isOneToOne: false;
|
|
10210
|
-
referencedRelation: "monteurs";
|
|
10211
|
-
referencedColumns: ["id"];
|
|
10212
|
-
}, {
|
|
10213
10750
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10214
10751
|
columns: ["run_id"];
|
|
10215
10752
|
isOneToOne: false;
|
|
@@ -11037,6 +11574,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
11037
11574
|
error_message: string | null;
|
|
11038
11575
|
id: string;
|
|
11039
11576
|
invoice_number: string | null;
|
|
11577
|
+
next_attempt_at: string;
|
|
11040
11578
|
order_id: string;
|
|
11041
11579
|
processed_at: string | null;
|
|
11042
11580
|
status: string;
|
|
@@ -11048,6 +11586,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
11048
11586
|
error_message?: string | null;
|
|
11049
11587
|
id?: string;
|
|
11050
11588
|
invoice_number?: string | null;
|
|
11589
|
+
next_attempt_at?: string;
|
|
11051
11590
|
order_id: string;
|
|
11052
11591
|
processed_at?: string | null;
|
|
11053
11592
|
status?: string;
|
|
@@ -11059,6 +11598,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
11059
11598
|
error_message?: string | null;
|
|
11060
11599
|
id?: string;
|
|
11061
11600
|
invoice_number?: string | null;
|
|
11601
|
+
next_attempt_at?: string;
|
|
11062
11602
|
order_id?: string;
|
|
11063
11603
|
processed_at?: string | null;
|
|
11064
11604
|
status?: string;
|
|
@@ -11240,6 +11780,8 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
11240
11780
|
orders: {
|
|
11241
11781
|
Row: {
|
|
11242
11782
|
buffer_id: string | null;
|
|
11783
|
+
cancel_reason: string | null;
|
|
11784
|
+
cancelled_at: string | null;
|
|
11243
11785
|
created_at: string;
|
|
11244
11786
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
11245
11787
|
customer_id: string | null;
|
|
@@ -11262,6 +11804,8 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
11262
11804
|
};
|
|
11263
11805
|
Insert: {
|
|
11264
11806
|
buffer_id?: string | null;
|
|
11807
|
+
cancel_reason?: string | null;
|
|
11808
|
+
cancelled_at?: string | null;
|
|
11265
11809
|
created_at?: string;
|
|
11266
11810
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11267
11811
|
customer_id?: string | null;
|
|
@@ -11284,6 +11828,8 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
11284
11828
|
};
|
|
11285
11829
|
Update: {
|
|
11286
11830
|
buffer_id?: string | null;
|
|
11831
|
+
cancel_reason?: string | null;
|
|
11832
|
+
cancelled_at?: string | null;
|
|
11287
11833
|
created_at?: string;
|
|
11288
11834
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11289
11835
|
customer_id?: string | null;
|
|
@@ -12597,6 +13143,9 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
12597
13143
|
created_at: string;
|
|
12598
13144
|
id: string;
|
|
12599
13145
|
laatst_gezien: string;
|
|
13146
|
+
laatste_fout: string | null;
|
|
13147
|
+
laatste_request_id: number | null;
|
|
13148
|
+
mislukte_posts: number;
|
|
12600
13149
|
tick_sleutel: string;
|
|
12601
13150
|
updated_at: string;
|
|
12602
13151
|
};
|
|
@@ -12606,6 +13155,9 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
12606
13155
|
created_at?: string;
|
|
12607
13156
|
id?: string;
|
|
12608
13157
|
laatst_gezien?: string;
|
|
13158
|
+
laatste_fout?: string | null;
|
|
13159
|
+
laatste_request_id?: number | null;
|
|
13160
|
+
mislukte_posts?: number;
|
|
12609
13161
|
tick_sleutel?: string;
|
|
12610
13162
|
updated_at?: string;
|
|
12611
13163
|
};
|
|
@@ -12615,6 +13167,9 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
12615
13167
|
created_at?: string;
|
|
12616
13168
|
id?: string;
|
|
12617
13169
|
laatst_gezien?: string;
|
|
13170
|
+
laatste_fout?: string | null;
|
|
13171
|
+
laatste_request_id?: number | null;
|
|
13172
|
+
mislukte_posts?: number;
|
|
12618
13173
|
tick_sleutel?: string;
|
|
12619
13174
|
updated_at?: string;
|
|
12620
13175
|
};
|
|
@@ -13337,6 +13892,66 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
13337
13892
|
};
|
|
13338
13893
|
Relationships: [];
|
|
13339
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
|
+
};
|
|
13340
13955
|
profiles: {
|
|
13341
13956
|
Row: {
|
|
13342
13957
|
address: string | null;
|
|
@@ -13382,6 +13997,39 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
13382
13997
|
referencedColumns: ["id"];
|
|
13383
13998
|
}];
|
|
13384
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
|
+
};
|
|
13385
14033
|
projects: {
|
|
13386
14034
|
Row: {
|
|
13387
14035
|
contact_name: string | null;
|
|
@@ -14123,6 +14771,96 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
14123
14771
|
referencedColumns: ["id"];
|
|
14124
14772
|
}];
|
|
14125
14773
|
};
|
|
14774
|
+
role_assignments: {
|
|
14775
|
+
Row: {
|
|
14776
|
+
created_at: string;
|
|
14777
|
+
id: string;
|
|
14778
|
+
role_id: string;
|
|
14779
|
+
user_id: string;
|
|
14780
|
+
};
|
|
14781
|
+
Insert: {
|
|
14782
|
+
created_at?: string;
|
|
14783
|
+
id?: string;
|
|
14784
|
+
role_id: string;
|
|
14785
|
+
user_id: string;
|
|
14786
|
+
};
|
|
14787
|
+
Update: {
|
|
14788
|
+
created_at?: string;
|
|
14789
|
+
id?: string;
|
|
14790
|
+
role_id?: string;
|
|
14791
|
+
user_id?: string;
|
|
14792
|
+
};
|
|
14793
|
+
Relationships: [{
|
|
14794
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
14795
|
+
columns: ["role_id"];
|
|
14796
|
+
isOneToOne: false;
|
|
14797
|
+
referencedRelation: "roles";
|
|
14798
|
+
referencedColumns: ["id"];
|
|
14799
|
+
}];
|
|
14800
|
+
};
|
|
14801
|
+
role_permissions: {
|
|
14802
|
+
Row: {
|
|
14803
|
+
can_edit: boolean;
|
|
14804
|
+
can_view: boolean;
|
|
14805
|
+
feature_id: string;
|
|
14806
|
+
id: string;
|
|
14807
|
+
module_id: string;
|
|
14808
|
+
role_id: string;
|
|
14809
|
+
updated_at: string;
|
|
14810
|
+
};
|
|
14811
|
+
Insert: {
|
|
14812
|
+
can_edit?: boolean;
|
|
14813
|
+
can_view?: boolean;
|
|
14814
|
+
feature_id?: string;
|
|
14815
|
+
id?: string;
|
|
14816
|
+
module_id: string;
|
|
14817
|
+
role_id: string;
|
|
14818
|
+
updated_at?: string;
|
|
14819
|
+
};
|
|
14820
|
+
Update: {
|
|
14821
|
+
can_edit?: boolean;
|
|
14822
|
+
can_view?: boolean;
|
|
14823
|
+
feature_id?: string;
|
|
14824
|
+
id?: string;
|
|
14825
|
+
module_id?: string;
|
|
14826
|
+
role_id?: string;
|
|
14827
|
+
updated_at?: string;
|
|
14828
|
+
};
|
|
14829
|
+
Relationships: [{
|
|
14830
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
14831
|
+
columns: ["role_id"];
|
|
14832
|
+
isOneToOne: false;
|
|
14833
|
+
referencedRelation: "roles";
|
|
14834
|
+
referencedColumns: ["id"];
|
|
14835
|
+
}];
|
|
14836
|
+
};
|
|
14837
|
+
roles: {
|
|
14838
|
+
Row: {
|
|
14839
|
+
created_at: string;
|
|
14840
|
+
id: string;
|
|
14841
|
+
is_protected: boolean;
|
|
14842
|
+
key: string;
|
|
14843
|
+
name: string;
|
|
14844
|
+
updated_at: string;
|
|
14845
|
+
};
|
|
14846
|
+
Insert: {
|
|
14847
|
+
created_at?: string;
|
|
14848
|
+
id?: string;
|
|
14849
|
+
is_protected?: boolean;
|
|
14850
|
+
key: string;
|
|
14851
|
+
name: string;
|
|
14852
|
+
updated_at?: string;
|
|
14853
|
+
};
|
|
14854
|
+
Update: {
|
|
14855
|
+
created_at?: string;
|
|
14856
|
+
id?: string;
|
|
14857
|
+
is_protected?: boolean;
|
|
14858
|
+
key?: string;
|
|
14859
|
+
name?: string;
|
|
14860
|
+
updated_at?: string;
|
|
14861
|
+
};
|
|
14862
|
+
Relationships: [];
|
|
14863
|
+
};
|
|
14126
14864
|
rooms: {
|
|
14127
14865
|
Row: {
|
|
14128
14866
|
capacity: number;
|
|
@@ -14466,6 +15204,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
14466
15204
|
type: string;
|
|
14467
15205
|
updated_at: string;
|
|
14468
15206
|
vereist_medewerker: boolean;
|
|
15207
|
+
werkplek: string | null;
|
|
14469
15208
|
};
|
|
14470
15209
|
Insert: {
|
|
14471
15210
|
actief?: boolean;
|
|
@@ -14479,6 +15218,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
14479
15218
|
type?: string;
|
|
14480
15219
|
updated_at?: string;
|
|
14481
15220
|
vereist_medewerker?: boolean;
|
|
15221
|
+
werkplek?: string | null;
|
|
14482
15222
|
};
|
|
14483
15223
|
Update: {
|
|
14484
15224
|
actief?: boolean;
|
|
@@ -14492,9 +15232,46 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
14492
15232
|
type?: string;
|
|
14493
15233
|
updated_at?: string;
|
|
14494
15234
|
vereist_medewerker?: boolean;
|
|
15235
|
+
werkplek?: string | null;
|
|
14495
15236
|
};
|
|
14496
15237
|
Relationships: [];
|
|
14497
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
|
+
};
|
|
14498
15275
|
sidebar_config: {
|
|
14499
15276
|
Row: {
|
|
14500
15277
|
id: string;
|
|
@@ -14792,6 +15569,54 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
14792
15569
|
};
|
|
14793
15570
|
Relationships: [];
|
|
14794
15571
|
};
|
|
15572
|
+
time_compensation_entries: {
|
|
15573
|
+
Row: {
|
|
15574
|
+
created_at: string;
|
|
15575
|
+
employee_id: string;
|
|
15576
|
+
entry_date: string;
|
|
15577
|
+
id: string;
|
|
15578
|
+
km: number;
|
|
15579
|
+
meal_allowance: number;
|
|
15580
|
+
notes: string | null;
|
|
15581
|
+
standby_evening: number;
|
|
15582
|
+
standby_weekend: number;
|
|
15583
|
+
tvt_change: number;
|
|
15584
|
+
updated_at: string;
|
|
15585
|
+
};
|
|
15586
|
+
Insert: {
|
|
15587
|
+
created_at?: string;
|
|
15588
|
+
employee_id: string;
|
|
15589
|
+
entry_date: string;
|
|
15590
|
+
id?: string;
|
|
15591
|
+
km?: number;
|
|
15592
|
+
meal_allowance?: number;
|
|
15593
|
+
notes?: string | null;
|
|
15594
|
+
standby_evening?: number;
|
|
15595
|
+
standby_weekend?: number;
|
|
15596
|
+
tvt_change?: number;
|
|
15597
|
+
updated_at?: string;
|
|
15598
|
+
};
|
|
15599
|
+
Update: {
|
|
15600
|
+
created_at?: string;
|
|
15601
|
+
employee_id?: string;
|
|
15602
|
+
entry_date?: string;
|
|
15603
|
+
id?: string;
|
|
15604
|
+
km?: number;
|
|
15605
|
+
meal_allowance?: number;
|
|
15606
|
+
notes?: string | null;
|
|
15607
|
+
standby_evening?: number;
|
|
15608
|
+
standby_weekend?: number;
|
|
15609
|
+
tvt_change?: number;
|
|
15610
|
+
updated_at?: string;
|
|
15611
|
+
};
|
|
15612
|
+
Relationships: [{
|
|
15613
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
15614
|
+
columns: ["employee_id"];
|
|
15615
|
+
isOneToOne: false;
|
|
15616
|
+
referencedRelation: "profiles";
|
|
15617
|
+
referencedColumns: ["id"];
|
|
15618
|
+
}];
|
|
15619
|
+
};
|
|
14795
15620
|
time_entries: {
|
|
14796
15621
|
Row: {
|
|
14797
15622
|
created_at: string;
|
|
@@ -14826,65 +15651,170 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
14826
15651
|
undertime?: number;
|
|
14827
15652
|
updated_at?: string;
|
|
14828
15653
|
};
|
|
15654
|
+
Relationships: [];
|
|
15655
|
+
};
|
|
15656
|
+
time_log_week_approvals: {
|
|
15657
|
+
Row: {
|
|
15658
|
+
approved_at: string | null;
|
|
15659
|
+
approved_by: string | null;
|
|
15660
|
+
created_at: string;
|
|
15661
|
+
employee_id: string;
|
|
15662
|
+
id: string;
|
|
15663
|
+
locked: boolean;
|
|
15664
|
+
notes: string | null;
|
|
15665
|
+
status: string;
|
|
15666
|
+
submitted_at: string | null;
|
|
15667
|
+
updated_at: string;
|
|
15668
|
+
week_start: string;
|
|
15669
|
+
};
|
|
15670
|
+
Insert: {
|
|
15671
|
+
approved_at?: string | null;
|
|
15672
|
+
approved_by?: string | null;
|
|
15673
|
+
created_at?: string;
|
|
15674
|
+
employee_id: string;
|
|
15675
|
+
id?: string;
|
|
15676
|
+
locked?: boolean;
|
|
15677
|
+
notes?: string | null;
|
|
15678
|
+
status?: string;
|
|
15679
|
+
submitted_at?: string | null;
|
|
15680
|
+
updated_at?: string;
|
|
15681
|
+
week_start: string;
|
|
15682
|
+
};
|
|
15683
|
+
Update: {
|
|
15684
|
+
approved_at?: string | null;
|
|
15685
|
+
approved_by?: string | null;
|
|
15686
|
+
created_at?: string;
|
|
15687
|
+
employee_id?: string;
|
|
15688
|
+
id?: string;
|
|
15689
|
+
locked?: boolean;
|
|
15690
|
+
notes?: string | null;
|
|
15691
|
+
status?: string;
|
|
15692
|
+
submitted_at?: string | null;
|
|
15693
|
+
updated_at?: string;
|
|
15694
|
+
week_start?: string;
|
|
15695
|
+
};
|
|
14829
15696
|
Relationships: [{
|
|
14830
|
-
foreignKeyName: "
|
|
15697
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
14831
15698
|
columns: ["employee_id"];
|
|
14832
15699
|
isOneToOne: false;
|
|
14833
|
-
referencedRelation: "
|
|
15700
|
+
referencedRelation: "profiles";
|
|
14834
15701
|
referencedColumns: ["id"];
|
|
14835
15702
|
}];
|
|
14836
15703
|
};
|
|
14837
15704
|
time_logs: {
|
|
14838
15705
|
Row: {
|
|
15706
|
+
auto_stop_reason: string | null;
|
|
15707
|
+
auto_stopped: boolean;
|
|
14839
15708
|
created_at: string;
|
|
15709
|
+
current_latitude: number | null;
|
|
15710
|
+
current_longitude: number | null;
|
|
15711
|
+
current_position_updated_at: string | null;
|
|
14840
15712
|
employee_id: string;
|
|
15713
|
+
end_latitude: number | null;
|
|
15714
|
+
end_longitude: number | null;
|
|
14841
15715
|
end_time: string | null;
|
|
15716
|
+
eta_distance_km: number | null;
|
|
15717
|
+
eta_minutes: number | null;
|
|
15718
|
+
eta_updated_at: string | null;
|
|
15719
|
+
hour_category: string | null;
|
|
14842
15720
|
id: string;
|
|
15721
|
+
last_reminder_at: string | null;
|
|
14843
15722
|
notes: string | null;
|
|
14844
15723
|
overtime_hours: number;
|
|
14845
15724
|
overtime_type: string | null;
|
|
14846
15725
|
regular_hours: number;
|
|
15726
|
+
reminder_count: number;
|
|
15727
|
+
requires_review: boolean;
|
|
15728
|
+
start_latitude: number | null;
|
|
15729
|
+
start_longitude: number | null;
|
|
14847
15730
|
start_time: string;
|
|
14848
15731
|
travel_cost: number | null;
|
|
14849
15732
|
travel_distance_km: number | null;
|
|
15733
|
+
travel_duration_min: number | null;
|
|
15734
|
+
travel_time_minutes: number | null;
|
|
14850
15735
|
type: string;
|
|
14851
15736
|
updated_at: string;
|
|
15737
|
+
work_order_id: string | null;
|
|
14852
15738
|
};
|
|
14853
15739
|
Insert: {
|
|
15740
|
+
auto_stop_reason?: string | null;
|
|
15741
|
+
auto_stopped?: boolean;
|
|
14854
15742
|
created_at?: string;
|
|
15743
|
+
current_latitude?: number | null;
|
|
15744
|
+
current_longitude?: number | null;
|
|
15745
|
+
current_position_updated_at?: string | null;
|
|
14855
15746
|
employee_id: string;
|
|
15747
|
+
end_latitude?: number | null;
|
|
15748
|
+
end_longitude?: number | null;
|
|
14856
15749
|
end_time?: string | null;
|
|
15750
|
+
eta_distance_km?: number | null;
|
|
15751
|
+
eta_minutes?: number | null;
|
|
15752
|
+
eta_updated_at?: string | null;
|
|
15753
|
+
hour_category?: string | null;
|
|
14857
15754
|
id?: string;
|
|
15755
|
+
last_reminder_at?: string | null;
|
|
14858
15756
|
notes?: string | null;
|
|
14859
15757
|
overtime_hours?: number;
|
|
14860
15758
|
overtime_type?: string | null;
|
|
14861
15759
|
regular_hours?: number;
|
|
15760
|
+
reminder_count?: number;
|
|
15761
|
+
requires_review?: boolean;
|
|
15762
|
+
start_latitude?: number | null;
|
|
15763
|
+
start_longitude?: number | null;
|
|
14862
15764
|
start_time?: string;
|
|
14863
15765
|
travel_cost?: number | null;
|
|
14864
15766
|
travel_distance_km?: number | null;
|
|
15767
|
+
travel_duration_min?: number | null;
|
|
15768
|
+
travel_time_minutes?: number | null;
|
|
14865
15769
|
type: string;
|
|
14866
15770
|
updated_at?: string;
|
|
15771
|
+
work_order_id?: string | null;
|
|
14867
15772
|
};
|
|
14868
15773
|
Update: {
|
|
15774
|
+
auto_stop_reason?: string | null;
|
|
15775
|
+
auto_stopped?: boolean;
|
|
14869
15776
|
created_at?: string;
|
|
15777
|
+
current_latitude?: number | null;
|
|
15778
|
+
current_longitude?: number | null;
|
|
15779
|
+
current_position_updated_at?: string | null;
|
|
14870
15780
|
employee_id?: string;
|
|
15781
|
+
end_latitude?: number | null;
|
|
15782
|
+
end_longitude?: number | null;
|
|
14871
15783
|
end_time?: string | null;
|
|
15784
|
+
eta_distance_km?: number | null;
|
|
15785
|
+
eta_minutes?: number | null;
|
|
15786
|
+
eta_updated_at?: string | null;
|
|
15787
|
+
hour_category?: string | null;
|
|
14872
15788
|
id?: string;
|
|
15789
|
+
last_reminder_at?: string | null;
|
|
14873
15790
|
notes?: string | null;
|
|
14874
15791
|
overtime_hours?: number;
|
|
14875
15792
|
overtime_type?: string | null;
|
|
14876
15793
|
regular_hours?: number;
|
|
15794
|
+
reminder_count?: number;
|
|
15795
|
+
requires_review?: boolean;
|
|
15796
|
+
start_latitude?: number | null;
|
|
15797
|
+
start_longitude?: number | null;
|
|
14877
15798
|
start_time?: string;
|
|
14878
15799
|
travel_cost?: number | null;
|
|
14879
15800
|
travel_distance_km?: number | null;
|
|
15801
|
+
travel_duration_min?: number | null;
|
|
15802
|
+
travel_time_minutes?: number | null;
|
|
14880
15803
|
type?: string;
|
|
14881
15804
|
updated_at?: string;
|
|
15805
|
+
work_order_id?: string | null;
|
|
14882
15806
|
};
|
|
14883
15807
|
Relationships: [{
|
|
14884
15808
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
14885
15809
|
columns: ["employee_id"];
|
|
14886
15810
|
isOneToOne: false;
|
|
14887
|
-
referencedRelation: "
|
|
15811
|
+
referencedRelation: "profiles";
|
|
15812
|
+
referencedColumns: ["id"];
|
|
15813
|
+
}, {
|
|
15814
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
15815
|
+
columns: ["work_order_id"];
|
|
15816
|
+
isOneToOne: false;
|
|
15817
|
+
referencedRelation: "work_orders";
|
|
14888
15818
|
referencedColumns: ["id"];
|
|
14889
15819
|
}];
|
|
14890
15820
|
};
|
|
@@ -14923,7 +15853,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
14923
15853
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
14924
15854
|
columns: ["employee_id"];
|
|
14925
15855
|
isOneToOne: false;
|
|
14926
|
-
referencedRelation: "
|
|
15856
|
+
referencedRelation: "profiles";
|
|
14927
15857
|
referencedColumns: ["id"];
|
|
14928
15858
|
}];
|
|
14929
15859
|
};
|
|
@@ -15233,6 +16163,39 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
15233
16163
|
};
|
|
15234
16164
|
Relationships: [];
|
|
15235
16165
|
};
|
|
16166
|
+
twinfield_cron_locks: {
|
|
16167
|
+
Row: {
|
|
16168
|
+
created_at: string;
|
|
16169
|
+
heartbeat_at: string;
|
|
16170
|
+
job_name: string;
|
|
16171
|
+
last_error: string | null;
|
|
16172
|
+
last_finished_at: string | null;
|
|
16173
|
+
locked_at: string;
|
|
16174
|
+
run_id: string;
|
|
16175
|
+
updated_at: string;
|
|
16176
|
+
};
|
|
16177
|
+
Insert: {
|
|
16178
|
+
created_at?: string;
|
|
16179
|
+
heartbeat_at?: string;
|
|
16180
|
+
job_name: string;
|
|
16181
|
+
last_error?: string | null;
|
|
16182
|
+
last_finished_at?: string | null;
|
|
16183
|
+
locked_at?: string;
|
|
16184
|
+
run_id?: string;
|
|
16185
|
+
updated_at?: string;
|
|
16186
|
+
};
|
|
16187
|
+
Update: {
|
|
16188
|
+
created_at?: string;
|
|
16189
|
+
heartbeat_at?: string;
|
|
16190
|
+
job_name?: string;
|
|
16191
|
+
last_error?: string | null;
|
|
16192
|
+
last_finished_at?: string | null;
|
|
16193
|
+
locked_at?: string;
|
|
16194
|
+
run_id?: string;
|
|
16195
|
+
updated_at?: string;
|
|
16196
|
+
};
|
|
16197
|
+
Relationships: [];
|
|
16198
|
+
};
|
|
15236
16199
|
twinfield_customers: {
|
|
15237
16200
|
Row: {
|
|
15238
16201
|
address: string | null;
|
|
@@ -15833,6 +16796,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
15833
16796
|
twinfield_push_queue: {
|
|
15834
16797
|
Row: {
|
|
15835
16798
|
action: string;
|
|
16799
|
+
attempt_started_at: string | null;
|
|
15836
16800
|
attempts: number;
|
|
15837
16801
|
connection_id: string | null;
|
|
15838
16802
|
created_at: string;
|
|
@@ -15849,6 +16813,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
15849
16813
|
};
|
|
15850
16814
|
Insert: {
|
|
15851
16815
|
action?: string;
|
|
16816
|
+
attempt_started_at?: string | null;
|
|
15852
16817
|
attempts?: number;
|
|
15853
16818
|
connection_id?: string | null;
|
|
15854
16819
|
created_at?: string;
|
|
@@ -15865,6 +16830,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
15865
16830
|
};
|
|
15866
16831
|
Update: {
|
|
15867
16832
|
action?: string;
|
|
16833
|
+
attempt_started_at?: string | null;
|
|
15868
16834
|
attempts?: number;
|
|
15869
16835
|
connection_id?: string | null;
|
|
15870
16836
|
created_at?: string;
|
|
@@ -16062,13 +17028,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
16062
17028
|
workday_end?: string | null;
|
|
16063
17029
|
workday_start?: string | null;
|
|
16064
17030
|
};
|
|
16065
|
-
Relationships: [
|
|
16066
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
16067
|
-
columns: ["monteur_id"];
|
|
16068
|
-
isOneToOne: true;
|
|
16069
|
-
referencedRelation: "monteurs";
|
|
16070
|
-
referencedColumns: ["id"];
|
|
16071
|
-
}];
|
|
17031
|
+
Relationships: [];
|
|
16072
17032
|
};
|
|
16073
17033
|
uren_entries: {
|
|
16074
17034
|
Row: {
|
|
@@ -16114,12 +17074,6 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
16114
17074
|
werkbon_id?: string | null;
|
|
16115
17075
|
};
|
|
16116
17076
|
Relationships: [{
|
|
16117
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16118
|
-
columns: ["monteur_id"];
|
|
16119
|
-
isOneToOne: false;
|
|
16120
|
-
referencedRelation: "monteurs";
|
|
16121
|
-
referencedColumns: ["id"];
|
|
16122
|
-
}, {
|
|
16123
17077
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16124
17078
|
columns: ["werkbon_id"];
|
|
16125
17079
|
isOneToOne: false;
|
|
@@ -16587,17 +17541,12 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
16587
17541
|
submitted_at?: string | null;
|
|
16588
17542
|
updated_at?: string;
|
|
16589
17543
|
};
|
|
16590
|
-
Relationships: [
|
|
16591
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
16592
|
-
columns: ["monteur_id"];
|
|
16593
|
-
isOneToOne: false;
|
|
16594
|
-
referencedRelation: "monteurs";
|
|
16595
|
-
referencedColumns: ["id"];
|
|
16596
|
-
}];
|
|
17544
|
+
Relationships: [];
|
|
16597
17545
|
};
|
|
16598
17546
|
user_module_permissions: {
|
|
16599
17547
|
Row: {
|
|
16600
17548
|
created_at: string;
|
|
17549
|
+
feature_id: string;
|
|
16601
17550
|
id: string;
|
|
16602
17551
|
module_id: string;
|
|
16603
17552
|
permission: string;
|
|
@@ -16606,6 +17555,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
16606
17555
|
};
|
|
16607
17556
|
Insert: {
|
|
16608
17557
|
created_at?: string;
|
|
17558
|
+
feature_id?: string;
|
|
16609
17559
|
id?: string;
|
|
16610
17560
|
module_id: string;
|
|
16611
17561
|
permission: string;
|
|
@@ -16614,6 +17564,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
16614
17564
|
};
|
|
16615
17565
|
Update: {
|
|
16616
17566
|
created_at?: string;
|
|
17567
|
+
feature_id?: string;
|
|
16617
17568
|
id?: string;
|
|
16618
17569
|
module_id?: string;
|
|
16619
17570
|
permission?: string;
|
|
@@ -16649,6 +17600,51 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
16649
17600
|
referencedColumns: ["id"];
|
|
16650
17601
|
}];
|
|
16651
17602
|
};
|
|
17603
|
+
van_inventories: {
|
|
17604
|
+
Row: {
|
|
17605
|
+
barcode: string | null;
|
|
17606
|
+
created_at: string;
|
|
17607
|
+
id: string;
|
|
17608
|
+
monteur_id: string | null;
|
|
17609
|
+
price_per_unit: number;
|
|
17610
|
+
product_name: string;
|
|
17611
|
+
quantity_current: number;
|
|
17612
|
+
quantity_min: number;
|
|
17613
|
+
unit: string;
|
|
17614
|
+
updated_at: string;
|
|
17615
|
+
};
|
|
17616
|
+
Insert: {
|
|
17617
|
+
barcode?: string | null;
|
|
17618
|
+
created_at?: string;
|
|
17619
|
+
id?: string;
|
|
17620
|
+
monteur_id?: string | null;
|
|
17621
|
+
price_per_unit?: number;
|
|
17622
|
+
product_name: string;
|
|
17623
|
+
quantity_current?: number;
|
|
17624
|
+
quantity_min?: number;
|
|
17625
|
+
unit?: string;
|
|
17626
|
+
updated_at?: string;
|
|
17627
|
+
};
|
|
17628
|
+
Update: {
|
|
17629
|
+
barcode?: string | null;
|
|
17630
|
+
created_at?: string;
|
|
17631
|
+
id?: string;
|
|
17632
|
+
monteur_id?: string | null;
|
|
17633
|
+
price_per_unit?: number;
|
|
17634
|
+
product_name?: string;
|
|
17635
|
+
quantity_current?: number;
|
|
17636
|
+
quantity_min?: number;
|
|
17637
|
+
unit?: string;
|
|
17638
|
+
updated_at?: string;
|
|
17639
|
+
};
|
|
17640
|
+
Relationships: [{
|
|
17641
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
17642
|
+
columns: ["monteur_id"];
|
|
17643
|
+
isOneToOne: false;
|
|
17644
|
+
referencedRelation: "profiles";
|
|
17645
|
+
referencedColumns: ["id"];
|
|
17646
|
+
}];
|
|
17647
|
+
};
|
|
16652
17648
|
voorraad_custom_fields: {
|
|
16653
17649
|
Row: {
|
|
16654
17650
|
created_at: string;
|
|
@@ -17599,7 +18595,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
17599
18595
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
17600
18596
|
columns: ["monteur_id"];
|
|
17601
18597
|
isOneToOne: false;
|
|
17602
|
-
referencedRelation: "
|
|
18598
|
+
referencedRelation: "profiles";
|
|
17603
18599
|
referencedColumns: ["id"];
|
|
17604
18600
|
}, {
|
|
17605
18601
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -17609,6 +18605,60 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
17609
18605
|
referencedColumns: ["id"];
|
|
17610
18606
|
}];
|
|
17611
18607
|
};
|
|
18608
|
+
work_order_photos: {
|
|
18609
|
+
Row: {
|
|
18610
|
+
ai_caption: string | null;
|
|
18611
|
+
ai_categorized_at: string | null;
|
|
18612
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
18613
|
+
caption: string | null;
|
|
18614
|
+
created_at: string;
|
|
18615
|
+
id: string;
|
|
18616
|
+
monteur_id: string | null;
|
|
18617
|
+
photo_type: string;
|
|
18618
|
+
storage_path: string;
|
|
18619
|
+
updated_at: string;
|
|
18620
|
+
work_order_id: string;
|
|
18621
|
+
};
|
|
18622
|
+
Insert: {
|
|
18623
|
+
ai_caption?: string | null;
|
|
18624
|
+
ai_categorized_at?: string | null;
|
|
18625
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18626
|
+
caption?: string | null;
|
|
18627
|
+
created_at?: string;
|
|
18628
|
+
id?: string;
|
|
18629
|
+
monteur_id?: string | null;
|
|
18630
|
+
photo_type?: string;
|
|
18631
|
+
storage_path: string;
|
|
18632
|
+
updated_at?: string;
|
|
18633
|
+
work_order_id: string;
|
|
18634
|
+
};
|
|
18635
|
+
Update: {
|
|
18636
|
+
ai_caption?: string | null;
|
|
18637
|
+
ai_categorized_at?: string | null;
|
|
18638
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18639
|
+
caption?: string | null;
|
|
18640
|
+
created_at?: string;
|
|
18641
|
+
id?: string;
|
|
18642
|
+
monteur_id?: string | null;
|
|
18643
|
+
photo_type?: string;
|
|
18644
|
+
storage_path?: string;
|
|
18645
|
+
updated_at?: string;
|
|
18646
|
+
work_order_id?: string;
|
|
18647
|
+
};
|
|
18648
|
+
Relationships: [{
|
|
18649
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
18650
|
+
columns: ["monteur_id"];
|
|
18651
|
+
isOneToOne: false;
|
|
18652
|
+
referencedRelation: "profiles";
|
|
18653
|
+
referencedColumns: ["id"];
|
|
18654
|
+
}, {
|
|
18655
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
18656
|
+
columns: ["work_order_id"];
|
|
18657
|
+
isOneToOne: false;
|
|
18658
|
+
referencedRelation: "work_orders";
|
|
18659
|
+
referencedColumns: ["id"];
|
|
18660
|
+
}];
|
|
18661
|
+
};
|
|
17612
18662
|
work_orders: {
|
|
17613
18663
|
Row: {
|
|
17614
18664
|
assigned_to: string | null;
|
|
@@ -17640,7 +18690,6 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
17640
18690
|
scheduled_end_time: string | null;
|
|
17641
18691
|
scheduled_start_time: string | null;
|
|
17642
18692
|
status: string;
|
|
17643
|
-
tenant_id: string;
|
|
17644
18693
|
total_hours_worked: number | null;
|
|
17645
18694
|
total_price: number | null;
|
|
17646
18695
|
travel_time_minutes: number | null;
|
|
@@ -17678,7 +18727,6 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
17678
18727
|
scheduled_end_time?: string | null;
|
|
17679
18728
|
scheduled_start_time?: string | null;
|
|
17680
18729
|
status?: string;
|
|
17681
|
-
tenant_id: string;
|
|
17682
18730
|
total_hours_worked?: number | null;
|
|
17683
18731
|
total_price?: number | null;
|
|
17684
18732
|
travel_time_minutes?: number | null;
|
|
@@ -17716,7 +18764,6 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
17716
18764
|
scheduled_end_time?: string | null;
|
|
17717
18765
|
scheduled_start_time?: string | null;
|
|
17718
18766
|
status?: string;
|
|
17719
|
-
tenant_id?: string;
|
|
17720
18767
|
total_hours_worked?: number | null;
|
|
17721
18768
|
total_price?: number | null;
|
|
17722
18769
|
travel_time_minutes?: number | null;
|
|
@@ -17730,12 +18777,6 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
17730
18777
|
isOneToOne: false;
|
|
17731
18778
|
referencedRelation: "work_orders";
|
|
17732
18779
|
referencedColumns: ["id"];
|
|
17733
|
-
}, {
|
|
17734
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
17735
|
-
columns: ["tenant_id"];
|
|
17736
|
-
isOneToOne: false;
|
|
17737
|
-
referencedRelation: "tenants";
|
|
17738
|
-
referencedColumns: ["id"];
|
|
17739
18780
|
}];
|
|
17740
18781
|
};
|
|
17741
18782
|
};
|
|
@@ -18420,6 +19461,19 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
18420
19461
|
};
|
|
18421
19462
|
Returns: undefined;
|
|
18422
19463
|
};
|
|
19464
|
+
approve_mailbox_order_proposal: {
|
|
19465
|
+
Args: {
|
|
19466
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
19467
|
+
p_customer_id: string;
|
|
19468
|
+
p_delivery_date: string;
|
|
19469
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
19470
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
19471
|
+
p_notes: string;
|
|
19472
|
+
p_proposal_id: string;
|
|
19473
|
+
p_reviewed_by: string;
|
|
19474
|
+
};
|
|
19475
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
19476
|
+
};
|
|
18423
19477
|
assign_cart_numbers: {
|
|
18424
19478
|
Args: {
|
|
18425
19479
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -18471,6 +19525,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
18471
19525
|
};
|
|
18472
19526
|
Returns: number;
|
|
18473
19527
|
};
|
|
19528
|
+
can_manage_hours: {
|
|
19529
|
+
Args: never;
|
|
19530
|
+
Returns: boolean;
|
|
19531
|
+
};
|
|
18474
19532
|
check_offer_product_available_stock: {
|
|
18475
19533
|
Args: {
|
|
18476
19534
|
p_campaign_product_id: string;
|
|
@@ -18660,6 +19718,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
18660
19718
|
};
|
|
18661
19719
|
Returns: {
|
|
18662
19720
|
action: string;
|
|
19721
|
+
attempt_started_at: string | null;
|
|
18663
19722
|
attempts: number;
|
|
18664
19723
|
connection_id: string | null;
|
|
18665
19724
|
created_at: string;
|
|
@@ -18747,6 +19806,30 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
18747
19806
|
agent_naam: string;
|
|
18748
19807
|
}[];
|
|
18749
19808
|
};
|
|
19809
|
+
consume_van_inventory: {
|
|
19810
|
+
Args: {
|
|
19811
|
+
p_inventory_id: string;
|
|
19812
|
+
p_quantity: number;
|
|
19813
|
+
};
|
|
19814
|
+
Returns: {
|
|
19815
|
+
barcode: string | null;
|
|
19816
|
+
created_at: string;
|
|
19817
|
+
id: string;
|
|
19818
|
+
monteur_id: string | null;
|
|
19819
|
+
price_per_unit: number;
|
|
19820
|
+
product_name: string;
|
|
19821
|
+
quantity_current: number;
|
|
19822
|
+
quantity_min: number;
|
|
19823
|
+
unit: string;
|
|
19824
|
+
updated_at: string;
|
|
19825
|
+
};
|
|
19826
|
+
SetofOptions: {
|
|
19827
|
+
from: "*";
|
|
19828
|
+
to: "van_inventories";
|
|
19829
|
+
isOneToOne: true;
|
|
19830
|
+
isSetofReturn: false;
|
|
19831
|
+
};
|
|
19832
|
+
};
|
|
18750
19833
|
control_get_todays_carts: {
|
|
18751
19834
|
Args: never;
|
|
18752
19835
|
Returns: {
|
|
@@ -18820,6 +19903,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
18820
19903
|
_user_id: string;
|
|
18821
19904
|
};
|
|
18822
19905
|
Returns: string;
|
|
19906
|
+
} | {
|
|
19907
|
+
Args: {
|
|
19908
|
+
_feature_id: string;
|
|
19909
|
+
_module_id: string;
|
|
19910
|
+
_user_id: string;
|
|
19911
|
+
};
|
|
19912
|
+
Returns: string;
|
|
18823
19913
|
};
|
|
18824
19914
|
email_auth_decrypt: {
|
|
18825
19915
|
Args: {
|
|
@@ -18866,6 +19956,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
18866
19956
|
};
|
|
18867
19957
|
Returns: string;
|
|
18868
19958
|
};
|
|
19959
|
+
employee_day_hours: {
|
|
19960
|
+
Args: {
|
|
19961
|
+
_day: string;
|
|
19962
|
+
_employee_id: string;
|
|
19963
|
+
};
|
|
19964
|
+
Returns: number;
|
|
19965
|
+
};
|
|
18869
19966
|
enqueue_cart_replan_if_unlocked: {
|
|
18870
19967
|
Args: {
|
|
18871
19968
|
p_order_id: string;
|
|
@@ -19171,12 +20268,6 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
19171
20268
|
Args: never;
|
|
19172
20269
|
Returns: string;
|
|
19173
20270
|
};
|
|
19174
|
-
get_work_order_tenant_id: {
|
|
19175
|
-
Args: {
|
|
19176
|
-
wo_id: string;
|
|
19177
|
-
};
|
|
19178
|
-
Returns: string;
|
|
19179
|
-
};
|
|
19180
20271
|
has_module_permission: {
|
|
19181
20272
|
Args: {
|
|
19182
20273
|
_min: string;
|
|
@@ -19210,6 +20301,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
19210
20301
|
};
|
|
19211
20302
|
Returns: boolean;
|
|
19212
20303
|
};
|
|
20304
|
+
is_time_log_week_locked: {
|
|
20305
|
+
Args: {
|
|
20306
|
+
p_employee_id: string;
|
|
20307
|
+
p_start_time: string;
|
|
20308
|
+
};
|
|
20309
|
+
Returns: boolean;
|
|
20310
|
+
};
|
|
19213
20311
|
is_user_admin: {
|
|
19214
20312
|
Args: never;
|
|
19215
20313
|
Returns: boolean;
|
|
@@ -19218,19 +20316,43 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
19218
20316
|
Args: never;
|
|
19219
20317
|
Returns: boolean;
|
|
19220
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
|
+
};
|
|
19221
20332
|
jwt_has_role: {
|
|
19222
20333
|
Args: {
|
|
19223
20334
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
19224
20335
|
};
|
|
19225
20336
|
Returns: boolean;
|
|
19226
20337
|
};
|
|
19227
|
-
|
|
20338
|
+
list_medewerkers: {
|
|
19228
20339
|
Args: never;
|
|
19229
20340
|
Returns: {
|
|
19230
20341
|
avatar_url: string;
|
|
20342
|
+
color: string;
|
|
19231
20343
|
display_name: string;
|
|
19232
20344
|
email: string;
|
|
20345
|
+
hours_fri: number;
|
|
20346
|
+
hours_mon: number;
|
|
20347
|
+
hours_thu: number;
|
|
20348
|
+
hours_tue: number;
|
|
20349
|
+
hours_wed: number;
|
|
19233
20350
|
id: string;
|
|
20351
|
+
is_active: boolean;
|
|
20352
|
+
leave_balance_hours: number;
|
|
20353
|
+
persnr: string;
|
|
20354
|
+
phone: string;
|
|
20355
|
+
roles: string[];
|
|
19234
20356
|
}[];
|
|
19235
20357
|
};
|
|
19236
20358
|
list_my_planning_items: {
|
|
@@ -19556,17 +20678,6 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
19556
20678
|
Returns: string;
|
|
19557
20679
|
};
|
|
19558
20680
|
logistics_emit_event: {
|
|
19559
|
-
Args: {
|
|
19560
|
-
p_event_type: string;
|
|
19561
|
-
p_idempotency_key?: string;
|
|
19562
|
-
p_order_ref: string;
|
|
19563
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
19564
|
-
p_shadow?: boolean;
|
|
19565
|
-
p_source_module: string;
|
|
19566
|
-
p_strategy_id?: string;
|
|
19567
|
-
};
|
|
19568
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
19569
|
-
} | {
|
|
19570
20681
|
Args: {
|
|
19571
20682
|
p_event_type: string;
|
|
19572
20683
|
p_idempotency_key?: string;
|
|
@@ -19721,6 +20832,65 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
19721
20832
|
};
|
|
19722
20833
|
Returns: number;
|
|
19723
20834
|
};
|
|
20835
|
+
logistics_plan_claim: {
|
|
20836
|
+
Args: {
|
|
20837
|
+
p_limit?: number;
|
|
20838
|
+
};
|
|
20839
|
+
Returns: {
|
|
20840
|
+
attempts: number;
|
|
20841
|
+
id: string;
|
|
20842
|
+
order_id: string;
|
|
20843
|
+
}[];
|
|
20844
|
+
};
|
|
20845
|
+
logistics_plan_enqueue: {
|
|
20846
|
+
Args: {
|
|
20847
|
+
p_order_id: string;
|
|
20848
|
+
p_reason?: string;
|
|
20849
|
+
};
|
|
20850
|
+
Returns: undefined;
|
|
20851
|
+
};
|
|
20852
|
+
logistics_plan_ensure_event: {
|
|
20853
|
+
Args: {
|
|
20854
|
+
p_order_id: string;
|
|
20855
|
+
};
|
|
20856
|
+
Returns: boolean;
|
|
20857
|
+
};
|
|
20858
|
+
logistics_plan_finish: {
|
|
20859
|
+
Args: {
|
|
20860
|
+
p_error?: string;
|
|
20861
|
+
p_id: string;
|
|
20862
|
+
};
|
|
20863
|
+
Returns: undefined;
|
|
20864
|
+
};
|
|
20865
|
+
logistics_plan_impact_orders: {
|
|
20866
|
+
Args: {
|
|
20867
|
+
p_order_id: string;
|
|
20868
|
+
};
|
|
20869
|
+
Returns: {
|
|
20870
|
+
buffer_id: string;
|
|
20871
|
+
order_id: string;
|
|
20872
|
+
plan_date: string;
|
|
20873
|
+
}[];
|
|
20874
|
+
};
|
|
20875
|
+
logistics_plan_kick: {
|
|
20876
|
+
Args: never;
|
|
20877
|
+
Returns: undefined;
|
|
20878
|
+
};
|
|
20879
|
+
logistics_plan_prune: {
|
|
20880
|
+
Args: never;
|
|
20881
|
+
Returns: number;
|
|
20882
|
+
};
|
|
20883
|
+
logistics_plan_release_stale: {
|
|
20884
|
+
Args: never;
|
|
20885
|
+
Returns: number;
|
|
20886
|
+
};
|
|
20887
|
+
logistics_plan_setting: {
|
|
20888
|
+
Args: {
|
|
20889
|
+
p_default: number;
|
|
20890
|
+
p_key: string;
|
|
20891
|
+
};
|
|
20892
|
+
Returns: number;
|
|
20893
|
+
};
|
|
19724
20894
|
logistics_queue_capacity_email: {
|
|
19725
20895
|
Args: {
|
|
19726
20896
|
p_alert_id: string;
|
|
@@ -19962,6 +21132,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
19962
21132
|
my_module_permissions: {
|
|
19963
21133
|
Args: never;
|
|
19964
21134
|
Returns: {
|
|
21135
|
+
feature_id: string;
|
|
19965
21136
|
module_id: string;
|
|
19966
21137
|
permission: string;
|
|
19967
21138
|
}[];
|
|
@@ -20351,6 +21522,37 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
20351
21522
|
};
|
|
20352
21523
|
Returns: undefined;
|
|
20353
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
|
+
};
|
|
20354
21556
|
recompute_all_reserved_stock: {
|
|
20355
21557
|
Args: never;
|
|
20356
21558
|
Returns: undefined;
|
|
@@ -20842,6 +22044,16 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
20842
22044
|
};
|
|
20843
22045
|
Returns: string[];
|
|
20844
22046
|
};
|
|
22047
|
+
switch_time_log: {
|
|
22048
|
+
Args: {
|
|
22049
|
+
p_employee_id: string;
|
|
22050
|
+
p_start_lat?: number;
|
|
22051
|
+
p_start_lng?: number;
|
|
22052
|
+
p_type: string;
|
|
22053
|
+
p_work_order_id?: string;
|
|
22054
|
+
};
|
|
22055
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22056
|
+
};
|
|
20845
22057
|
sync_all_layer_stocks: {
|
|
20846
22058
|
Args: never;
|
|
20847
22059
|
Returns: undefined;
|
|
@@ -20876,6 +22088,12 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
20876
22088
|
};
|
|
20877
22089
|
Returns: undefined;
|
|
20878
22090
|
};
|
|
22091
|
+
sync_sick_time_off: {
|
|
22092
|
+
Args: {
|
|
22093
|
+
_period_id: string;
|
|
22094
|
+
};
|
|
22095
|
+
Returns: number;
|
|
22096
|
+
};
|
|
20879
22097
|
trade_item_stock_duplicates: {
|
|
20880
22098
|
Args: never;
|
|
20881
22099
|
Returns: {
|
|
@@ -20892,6 +22110,24 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
20892
22110
|
};
|
|
20893
22111
|
Returns: boolean;
|
|
20894
22112
|
};
|
|
22113
|
+
twinfield_cron_lock_acquire: {
|
|
22114
|
+
Args: {
|
|
22115
|
+
_job_name: string;
|
|
22116
|
+
_stale_seconds?: number;
|
|
22117
|
+
};
|
|
22118
|
+
Returns: boolean;
|
|
22119
|
+
};
|
|
22120
|
+
twinfield_cron_lock_release: {
|
|
22121
|
+
Args: {
|
|
22122
|
+
_error?: string;
|
|
22123
|
+
_job_name: string;
|
|
22124
|
+
};
|
|
22125
|
+
Returns: undefined;
|
|
22126
|
+
};
|
|
22127
|
+
twinfield_prune_push_queue: {
|
|
22128
|
+
Args: never;
|
|
22129
|
+
Returns: number;
|
|
22130
|
+
};
|
|
20895
22131
|
twinfield_register_cron: {
|
|
20896
22132
|
Args: {
|
|
20897
22133
|
apikey?: string;
|
|
@@ -20931,11 +22167,31 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
|
|
|
20931
22167
|
Args: never;
|
|
20932
22168
|
Returns: string;
|
|
20933
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
|
+
};
|
|
20934
22190
|
};
|
|
20935
22191
|
Enums: {
|
|
20936
22192
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
20937
22193
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
20938
|
-
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";
|
|
20939
22195
|
doc_orientation: "portrait" | "landscape";
|
|
20940
22196
|
exact_env: "staging" | "live";
|
|
20941
22197
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -21834,6 +23090,126 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
21834
23090
|
};
|
|
21835
23091
|
Relationships: [];
|
|
21836
23092
|
};
|
|
23093
|
+
cao_holidays: {
|
|
23094
|
+
Row: {
|
|
23095
|
+
created_at: string;
|
|
23096
|
+
description: string | null;
|
|
23097
|
+
holiday_date: string;
|
|
23098
|
+
id: string;
|
|
23099
|
+
updated_at: string;
|
|
23100
|
+
};
|
|
23101
|
+
Insert: {
|
|
23102
|
+
created_at?: string;
|
|
23103
|
+
description?: string | null;
|
|
23104
|
+
holiday_date: string;
|
|
23105
|
+
id?: string;
|
|
23106
|
+
updated_at?: string;
|
|
23107
|
+
};
|
|
23108
|
+
Update: {
|
|
23109
|
+
created_at?: string;
|
|
23110
|
+
description?: string | null;
|
|
23111
|
+
holiday_date?: string;
|
|
23112
|
+
id?: string;
|
|
23113
|
+
updated_at?: string;
|
|
23114
|
+
};
|
|
23115
|
+
Relationships: [];
|
|
23116
|
+
};
|
|
23117
|
+
cao_settings: {
|
|
23118
|
+
Row: {
|
|
23119
|
+
auto_break_after_hours: number;
|
|
23120
|
+
auto_break_minutes: number;
|
|
23121
|
+
auto_break_unpaid: boolean;
|
|
23122
|
+
auto_stop_after_hours: number;
|
|
23123
|
+
callout_fee: number;
|
|
23124
|
+
created_at: string;
|
|
23125
|
+
daily_regular_hours: number;
|
|
23126
|
+
default_hourly_rate: number;
|
|
23127
|
+
id: string;
|
|
23128
|
+
materials_markup_percent: number;
|
|
23129
|
+
max_daily_hours: number;
|
|
23130
|
+
max_weekly_hours: number;
|
|
23131
|
+
meal_allowance_amount: number;
|
|
23132
|
+
overtime_pct_178: number;
|
|
23133
|
+
overtime_pct_189: number;
|
|
23134
|
+
overtime_pct_212: number;
|
|
23135
|
+
reminder_after_hours: number;
|
|
23136
|
+
standby_evening_amount: number;
|
|
23137
|
+
standby_weekend_amount: number;
|
|
23138
|
+
travel_cost_per_km: number | null;
|
|
23139
|
+
travel_cost_threshold_km: number | null;
|
|
23140
|
+
travel_counts_as_work: boolean;
|
|
23141
|
+
travel_hourly_rate: number;
|
|
23142
|
+
travel_rate_per_hour: number;
|
|
23143
|
+
travel_threshold_minutes: number;
|
|
23144
|
+
updated_at: string;
|
|
23145
|
+
weekend_always_212: boolean;
|
|
23146
|
+
window_end: string;
|
|
23147
|
+
window_start: string;
|
|
23148
|
+
};
|
|
23149
|
+
Insert: {
|
|
23150
|
+
auto_break_after_hours?: number;
|
|
23151
|
+
auto_break_minutes?: number;
|
|
23152
|
+
auto_break_unpaid?: boolean;
|
|
23153
|
+
auto_stop_after_hours?: number;
|
|
23154
|
+
callout_fee?: number;
|
|
23155
|
+
created_at?: string;
|
|
23156
|
+
daily_regular_hours?: number;
|
|
23157
|
+
default_hourly_rate?: number;
|
|
23158
|
+
id?: string;
|
|
23159
|
+
materials_markup_percent?: number;
|
|
23160
|
+
max_daily_hours?: number;
|
|
23161
|
+
max_weekly_hours?: number;
|
|
23162
|
+
meal_allowance_amount?: number;
|
|
23163
|
+
overtime_pct_178?: number;
|
|
23164
|
+
overtime_pct_189?: number;
|
|
23165
|
+
overtime_pct_212?: number;
|
|
23166
|
+
reminder_after_hours?: number;
|
|
23167
|
+
standby_evening_amount?: number;
|
|
23168
|
+
standby_weekend_amount?: number;
|
|
23169
|
+
travel_cost_per_km?: number | null;
|
|
23170
|
+
travel_cost_threshold_km?: number | null;
|
|
23171
|
+
travel_counts_as_work?: boolean;
|
|
23172
|
+
travel_hourly_rate?: number;
|
|
23173
|
+
travel_rate_per_hour?: number;
|
|
23174
|
+
travel_threshold_minutes?: number;
|
|
23175
|
+
updated_at?: string;
|
|
23176
|
+
weekend_always_212?: boolean;
|
|
23177
|
+
window_end?: string;
|
|
23178
|
+
window_start?: string;
|
|
23179
|
+
};
|
|
23180
|
+
Update: {
|
|
23181
|
+
auto_break_after_hours?: number;
|
|
23182
|
+
auto_break_minutes?: number;
|
|
23183
|
+
auto_break_unpaid?: boolean;
|
|
23184
|
+
auto_stop_after_hours?: number;
|
|
23185
|
+
callout_fee?: number;
|
|
23186
|
+
created_at?: string;
|
|
23187
|
+
daily_regular_hours?: number;
|
|
23188
|
+
default_hourly_rate?: number;
|
|
23189
|
+
id?: string;
|
|
23190
|
+
materials_markup_percent?: number;
|
|
23191
|
+
max_daily_hours?: number;
|
|
23192
|
+
max_weekly_hours?: number;
|
|
23193
|
+
meal_allowance_amount?: number;
|
|
23194
|
+
overtime_pct_178?: number;
|
|
23195
|
+
overtime_pct_189?: number;
|
|
23196
|
+
overtime_pct_212?: number;
|
|
23197
|
+
reminder_after_hours?: number;
|
|
23198
|
+
standby_evening_amount?: number;
|
|
23199
|
+
standby_weekend_amount?: number;
|
|
23200
|
+
travel_cost_per_km?: number | null;
|
|
23201
|
+
travel_cost_threshold_km?: number | null;
|
|
23202
|
+
travel_counts_as_work?: boolean;
|
|
23203
|
+
travel_hourly_rate?: number;
|
|
23204
|
+
travel_rate_per_hour?: number;
|
|
23205
|
+
travel_threshold_minutes?: number;
|
|
23206
|
+
updated_at?: string;
|
|
23207
|
+
weekend_always_212?: boolean;
|
|
23208
|
+
window_end?: string;
|
|
23209
|
+
window_start?: string;
|
|
23210
|
+
};
|
|
23211
|
+
Relationships: [];
|
|
23212
|
+
};
|
|
21837
23213
|
carrier_shipping_rates: {
|
|
21838
23214
|
Row: {
|
|
21839
23215
|
carrier_id: string;
|
|
@@ -25887,6 +27263,42 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
25887
27263
|
};
|
|
25888
27264
|
Relationships: [];
|
|
25889
27265
|
};
|
|
27266
|
+
facturen: {
|
|
27267
|
+
Row: {
|
|
27268
|
+
bedrag_incl_btw: number;
|
|
27269
|
+
created_at: string;
|
|
27270
|
+
datum: string;
|
|
27271
|
+
factuurnummer: string;
|
|
27272
|
+
id: string;
|
|
27273
|
+
klantnaam: string;
|
|
27274
|
+
status: string;
|
|
27275
|
+
updated_at: string;
|
|
27276
|
+
user_id: string;
|
|
27277
|
+
};
|
|
27278
|
+
Insert: {
|
|
27279
|
+
bedrag_incl_btw: number;
|
|
27280
|
+
created_at?: string;
|
|
27281
|
+
datum?: string;
|
|
27282
|
+
factuurnummer: string;
|
|
27283
|
+
id?: string;
|
|
27284
|
+
klantnaam: string;
|
|
27285
|
+
status?: string;
|
|
27286
|
+
updated_at?: string;
|
|
27287
|
+
user_id?: string;
|
|
27288
|
+
};
|
|
27289
|
+
Update: {
|
|
27290
|
+
bedrag_incl_btw?: number;
|
|
27291
|
+
created_at?: string;
|
|
27292
|
+
datum?: string;
|
|
27293
|
+
factuurnummer?: string;
|
|
27294
|
+
id?: string;
|
|
27295
|
+
klantnaam?: string;
|
|
27296
|
+
status?: string;
|
|
27297
|
+
updated_at?: string;
|
|
27298
|
+
user_id?: string;
|
|
27299
|
+
};
|
|
27300
|
+
Relationships: [];
|
|
27301
|
+
};
|
|
25890
27302
|
floricode_connection_settings: {
|
|
25891
27303
|
Row: {
|
|
25892
27304
|
catalog_key: string | null;
|
|
@@ -28611,6 +30023,258 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
28611
30023
|
};
|
|
28612
30024
|
Relationships: [];
|
|
28613
30025
|
};
|
|
30026
|
+
itk_offerte_events: {
|
|
30027
|
+
Row: {
|
|
30028
|
+
created_at: string;
|
|
30029
|
+
event_type: string;
|
|
30030
|
+
id: string;
|
|
30031
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
30032
|
+
offerte_id: string;
|
|
30033
|
+
omschrijving: string | null;
|
|
30034
|
+
user_id: string | null;
|
|
30035
|
+
};
|
|
30036
|
+
Insert: {
|
|
30037
|
+
created_at?: string;
|
|
30038
|
+
event_type: string;
|
|
30039
|
+
id?: string;
|
|
30040
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
30041
|
+
offerte_id: string;
|
|
30042
|
+
omschrijving?: string | null;
|
|
30043
|
+
user_id?: string | null;
|
|
30044
|
+
};
|
|
30045
|
+
Update: {
|
|
30046
|
+
created_at?: string;
|
|
30047
|
+
event_type?: string;
|
|
30048
|
+
id?: string;
|
|
30049
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
30050
|
+
offerte_id?: string;
|
|
30051
|
+
omschrijving?: string | null;
|
|
30052
|
+
user_id?: string | null;
|
|
30053
|
+
};
|
|
30054
|
+
Relationships: [{
|
|
30055
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
30056
|
+
columns: ["offerte_id"];
|
|
30057
|
+
isOneToOne: false;
|
|
30058
|
+
referencedRelation: "itk_offertes";
|
|
30059
|
+
referencedColumns: ["id"];
|
|
30060
|
+
}];
|
|
30061
|
+
};
|
|
30062
|
+
itk_offerte_regels: {
|
|
30063
|
+
Row: {
|
|
30064
|
+
created_at: string;
|
|
30065
|
+
id: string;
|
|
30066
|
+
line_total_cents: number;
|
|
30067
|
+
offerte_id: string;
|
|
30068
|
+
omschrijving: string;
|
|
30069
|
+
package_id: string | null;
|
|
30070
|
+
quantity: number;
|
|
30071
|
+
sort_order: number;
|
|
30072
|
+
source: string;
|
|
30073
|
+
unit_price_cents: number;
|
|
30074
|
+
updated_at: string;
|
|
30075
|
+
};
|
|
30076
|
+
Insert: {
|
|
30077
|
+
created_at?: string;
|
|
30078
|
+
id?: string;
|
|
30079
|
+
line_total_cents?: number;
|
|
30080
|
+
offerte_id: string;
|
|
30081
|
+
omschrijving?: string;
|
|
30082
|
+
package_id?: string | null;
|
|
30083
|
+
quantity?: number;
|
|
30084
|
+
sort_order?: number;
|
|
30085
|
+
source?: string;
|
|
30086
|
+
unit_price_cents?: number;
|
|
30087
|
+
updated_at?: string;
|
|
30088
|
+
};
|
|
30089
|
+
Update: {
|
|
30090
|
+
created_at?: string;
|
|
30091
|
+
id?: string;
|
|
30092
|
+
line_total_cents?: number;
|
|
30093
|
+
offerte_id?: string;
|
|
30094
|
+
omschrijving?: string;
|
|
30095
|
+
package_id?: string | null;
|
|
30096
|
+
quantity?: number;
|
|
30097
|
+
sort_order?: number;
|
|
30098
|
+
source?: string;
|
|
30099
|
+
unit_price_cents?: number;
|
|
30100
|
+
updated_at?: string;
|
|
30101
|
+
};
|
|
30102
|
+
Relationships: [{
|
|
30103
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
30104
|
+
columns: ["offerte_id"];
|
|
30105
|
+
isOneToOne: false;
|
|
30106
|
+
referencedRelation: "itk_offertes";
|
|
30107
|
+
referencedColumns: ["id"];
|
|
30108
|
+
}, {
|
|
30109
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
30110
|
+
columns: ["package_id"];
|
|
30111
|
+
isOneToOne: false;
|
|
30112
|
+
referencedRelation: "werkbon_packages";
|
|
30113
|
+
referencedColumns: ["id"];
|
|
30114
|
+
}];
|
|
30115
|
+
};
|
|
30116
|
+
itk_offerte_settings: {
|
|
30117
|
+
Row: {
|
|
30118
|
+
auto_convert_binnen_mandaat: boolean;
|
|
30119
|
+
created_at: string;
|
|
30120
|
+
default_geldigheid_dagen: number;
|
|
30121
|
+
default_vat_rate: number;
|
|
30122
|
+
id: string;
|
|
30123
|
+
singleton: boolean;
|
|
30124
|
+
updated_at: string;
|
|
30125
|
+
};
|
|
30126
|
+
Insert: {
|
|
30127
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
30128
|
+
created_at?: string;
|
|
30129
|
+
default_geldigheid_dagen?: number;
|
|
30130
|
+
default_vat_rate?: number;
|
|
30131
|
+
id?: string;
|
|
30132
|
+
singleton?: boolean;
|
|
30133
|
+
updated_at?: string;
|
|
30134
|
+
};
|
|
30135
|
+
Update: {
|
|
30136
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
30137
|
+
created_at?: string;
|
|
30138
|
+
default_geldigheid_dagen?: number;
|
|
30139
|
+
default_vat_rate?: number;
|
|
30140
|
+
id?: string;
|
|
30141
|
+
singleton?: boolean;
|
|
30142
|
+
updated_at?: string;
|
|
30143
|
+
};
|
|
30144
|
+
Relationships: [];
|
|
30145
|
+
};
|
|
30146
|
+
itk_offertes: {
|
|
30147
|
+
Row: {
|
|
30148
|
+
ai_generated: boolean;
|
|
30149
|
+
approved_at: string | null;
|
|
30150
|
+
binnen_mandaat: boolean;
|
|
30151
|
+
contact_id: string | null;
|
|
30152
|
+
converted_at: string | null;
|
|
30153
|
+
created_at: string;
|
|
30154
|
+
created_by: string | null;
|
|
30155
|
+
customer_id: string | null;
|
|
30156
|
+
follow_up_werkbon_id: string | null;
|
|
30157
|
+
id: string;
|
|
30158
|
+
jaar: number;
|
|
30159
|
+
mandaat_restant_cents: number;
|
|
30160
|
+
notities: string | null;
|
|
30161
|
+
offerte_number: string | null;
|
|
30162
|
+
omschrijving: string;
|
|
30163
|
+
rejected_at: string | null;
|
|
30164
|
+
sent_at: string | null;
|
|
30165
|
+
source_number: string | null;
|
|
30166
|
+
source_ref: string | null;
|
|
30167
|
+
source_type: string;
|
|
30168
|
+
status: string;
|
|
30169
|
+
subtotal_cents: number;
|
|
30170
|
+
total_cents: number;
|
|
30171
|
+
updated_at: string;
|
|
30172
|
+
valid_until: string | null;
|
|
30173
|
+
vat_cents: number;
|
|
30174
|
+
vat_rate: number;
|
|
30175
|
+
viewed_at: string | null;
|
|
30176
|
+
volgnummer: number | null;
|
|
30177
|
+
werkbon_id: string | null;
|
|
30178
|
+
work_location_id: string | null;
|
|
30179
|
+
};
|
|
30180
|
+
Insert: {
|
|
30181
|
+
ai_generated?: boolean;
|
|
30182
|
+
approved_at?: string | null;
|
|
30183
|
+
binnen_mandaat?: boolean;
|
|
30184
|
+
contact_id?: string | null;
|
|
30185
|
+
converted_at?: string | null;
|
|
30186
|
+
created_at?: string;
|
|
30187
|
+
created_by?: string | null;
|
|
30188
|
+
customer_id?: string | null;
|
|
30189
|
+
follow_up_werkbon_id?: string | null;
|
|
30190
|
+
id?: string;
|
|
30191
|
+
jaar?: number;
|
|
30192
|
+
mandaat_restant_cents?: number;
|
|
30193
|
+
notities?: string | null;
|
|
30194
|
+
offerte_number?: string | null;
|
|
30195
|
+
omschrijving?: string;
|
|
30196
|
+
rejected_at?: string | null;
|
|
30197
|
+
sent_at?: string | null;
|
|
30198
|
+
source_number?: string | null;
|
|
30199
|
+
source_ref?: string | null;
|
|
30200
|
+
source_type?: string;
|
|
30201
|
+
status?: string;
|
|
30202
|
+
subtotal_cents?: number;
|
|
30203
|
+
total_cents?: number;
|
|
30204
|
+
updated_at?: string;
|
|
30205
|
+
valid_until?: string | null;
|
|
30206
|
+
vat_cents?: number;
|
|
30207
|
+
vat_rate?: number;
|
|
30208
|
+
viewed_at?: string | null;
|
|
30209
|
+
volgnummer?: number | null;
|
|
30210
|
+
werkbon_id?: string | null;
|
|
30211
|
+
work_location_id?: string | null;
|
|
30212
|
+
};
|
|
30213
|
+
Update: {
|
|
30214
|
+
ai_generated?: boolean;
|
|
30215
|
+
approved_at?: string | null;
|
|
30216
|
+
binnen_mandaat?: boolean;
|
|
30217
|
+
contact_id?: string | null;
|
|
30218
|
+
converted_at?: string | null;
|
|
30219
|
+
created_at?: string;
|
|
30220
|
+
created_by?: string | null;
|
|
30221
|
+
customer_id?: string | null;
|
|
30222
|
+
follow_up_werkbon_id?: string | null;
|
|
30223
|
+
id?: string;
|
|
30224
|
+
jaar?: number;
|
|
30225
|
+
mandaat_restant_cents?: number;
|
|
30226
|
+
notities?: string | null;
|
|
30227
|
+
offerte_number?: string | null;
|
|
30228
|
+
omschrijving?: string;
|
|
30229
|
+
rejected_at?: string | null;
|
|
30230
|
+
sent_at?: string | null;
|
|
30231
|
+
source_number?: string | null;
|
|
30232
|
+
source_ref?: string | null;
|
|
30233
|
+
source_type?: string;
|
|
30234
|
+
status?: string;
|
|
30235
|
+
subtotal_cents?: number;
|
|
30236
|
+
total_cents?: number;
|
|
30237
|
+
updated_at?: string;
|
|
30238
|
+
valid_until?: string | null;
|
|
30239
|
+
vat_cents?: number;
|
|
30240
|
+
vat_rate?: number;
|
|
30241
|
+
viewed_at?: string | null;
|
|
30242
|
+
volgnummer?: number | null;
|
|
30243
|
+
werkbon_id?: string | null;
|
|
30244
|
+
work_location_id?: string | null;
|
|
30245
|
+
};
|
|
30246
|
+
Relationships: [{
|
|
30247
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
30248
|
+
columns: ["contact_id"];
|
|
30249
|
+
isOneToOne: false;
|
|
30250
|
+
referencedRelation: "itk_contact_persons";
|
|
30251
|
+
referencedColumns: ["id"];
|
|
30252
|
+
}, {
|
|
30253
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
30254
|
+
columns: ["customer_id"];
|
|
30255
|
+
isOneToOne: false;
|
|
30256
|
+
referencedRelation: "itk_customers";
|
|
30257
|
+
referencedColumns: ["id"];
|
|
30258
|
+
}, {
|
|
30259
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
30260
|
+
columns: ["follow_up_werkbon_id"];
|
|
30261
|
+
isOneToOne: false;
|
|
30262
|
+
referencedRelation: "werkbonnen";
|
|
30263
|
+
referencedColumns: ["id"];
|
|
30264
|
+
}, {
|
|
30265
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
30266
|
+
columns: ["werkbon_id"];
|
|
30267
|
+
isOneToOne: false;
|
|
30268
|
+
referencedRelation: "werkbonnen";
|
|
30269
|
+
referencedColumns: ["id"];
|
|
30270
|
+
}, {
|
|
30271
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
30272
|
+
columns: ["work_location_id"];
|
|
30273
|
+
isOneToOne: false;
|
|
30274
|
+
referencedRelation: "itk_work_locations";
|
|
30275
|
+
referencedColumns: ["id"];
|
|
30276
|
+
}];
|
|
30277
|
+
};
|
|
28614
30278
|
itk_work_locations: {
|
|
28615
30279
|
Row: {
|
|
28616
30280
|
city: string | null;
|
|
@@ -28728,7 +30392,6 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
28728
30392
|
start_date: string;
|
|
28729
30393
|
start_time: string | null;
|
|
28730
30394
|
status: string;
|
|
28731
|
-
tenant_id: string;
|
|
28732
30395
|
updated_at: string;
|
|
28733
30396
|
user_id: string;
|
|
28734
30397
|
};
|
|
@@ -28746,7 +30409,6 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
28746
30409
|
start_date: string;
|
|
28747
30410
|
start_time?: string | null;
|
|
28748
30411
|
status?: string;
|
|
28749
|
-
tenant_id?: string;
|
|
28750
30412
|
updated_at?: string;
|
|
28751
30413
|
user_id: string;
|
|
28752
30414
|
};
|
|
@@ -28764,7 +30426,6 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
28764
30426
|
start_date?: string;
|
|
28765
30427
|
start_time?: string | null;
|
|
28766
30428
|
status?: string;
|
|
28767
|
-
tenant_id?: string;
|
|
28768
30429
|
updated_at?: string;
|
|
28769
30430
|
user_id?: string;
|
|
28770
30431
|
};
|
|
@@ -28772,13 +30433,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
28772
30433
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
28773
30434
|
columns: ["monteur_id"];
|
|
28774
30435
|
isOneToOne: false;
|
|
28775
|
-
referencedRelation: "
|
|
30436
|
+
referencedRelation: "profiles";
|
|
28776
30437
|
referencedColumns: ["id"];
|
|
28777
30438
|
}, {
|
|
28778
30439
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
28779
30440
|
columns: ["user_id"];
|
|
28780
30441
|
isOneToOne: false;
|
|
28781
|
-
referencedRelation: "
|
|
30442
|
+
referencedRelation: "profiles";
|
|
28782
30443
|
referencedColumns: ["id"];
|
|
28783
30444
|
}];
|
|
28784
30445
|
};
|
|
@@ -29646,6 +31307,45 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
29646
31307
|
};
|
|
29647
31308
|
Relationships: [];
|
|
29648
31309
|
};
|
|
31310
|
+
logistics_plan_queue: {
|
|
31311
|
+
Row: {
|
|
31312
|
+
attempts: number;
|
|
31313
|
+
claimed_at: string | null;
|
|
31314
|
+
enqueued_at: string;
|
|
31315
|
+
error: string | null;
|
|
31316
|
+
id: string;
|
|
31317
|
+
next_attempt_at: string;
|
|
31318
|
+
order_id: string;
|
|
31319
|
+
reason: string;
|
|
31320
|
+
status: string;
|
|
31321
|
+
updated_at: string;
|
|
31322
|
+
};
|
|
31323
|
+
Insert: {
|
|
31324
|
+
attempts?: number;
|
|
31325
|
+
claimed_at?: string | null;
|
|
31326
|
+
enqueued_at?: string;
|
|
31327
|
+
error?: string | null;
|
|
31328
|
+
id?: string;
|
|
31329
|
+
next_attempt_at?: string;
|
|
31330
|
+
order_id: string;
|
|
31331
|
+
reason?: string;
|
|
31332
|
+
status?: string;
|
|
31333
|
+
updated_at?: string;
|
|
31334
|
+
};
|
|
31335
|
+
Update: {
|
|
31336
|
+
attempts?: number;
|
|
31337
|
+
claimed_at?: string | null;
|
|
31338
|
+
enqueued_at?: string;
|
|
31339
|
+
error?: string | null;
|
|
31340
|
+
id?: string;
|
|
31341
|
+
next_attempt_at?: string;
|
|
31342
|
+
order_id?: string;
|
|
31343
|
+
reason?: string;
|
|
31344
|
+
status?: string;
|
|
31345
|
+
updated_at?: string;
|
|
31346
|
+
};
|
|
31347
|
+
Relationships: [];
|
|
31348
|
+
};
|
|
29649
31349
|
logistics_plan_runs: {
|
|
29650
31350
|
Row: {
|
|
29651
31351
|
created_at: string;
|
|
@@ -29721,6 +31421,24 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
29721
31421
|
referencedColumns: ["id"];
|
|
29722
31422
|
}];
|
|
29723
31423
|
};
|
|
31424
|
+
logistics_plan_settings: {
|
|
31425
|
+
Row: {
|
|
31426
|
+
key: string;
|
|
31427
|
+
updated_at: string;
|
|
31428
|
+
value: string;
|
|
31429
|
+
};
|
|
31430
|
+
Insert: {
|
|
31431
|
+
key: string;
|
|
31432
|
+
updated_at?: string;
|
|
31433
|
+
value: string;
|
|
31434
|
+
};
|
|
31435
|
+
Update: {
|
|
31436
|
+
key?: string;
|
|
31437
|
+
updated_at?: string;
|
|
31438
|
+
value?: string;
|
|
31439
|
+
};
|
|
31440
|
+
Relationships: [];
|
|
31441
|
+
};
|
|
29724
31442
|
logistics_rebuffer_state: {
|
|
29725
31443
|
Row: {
|
|
29726
31444
|
created_at: string;
|
|
@@ -30876,6 +32594,147 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
30876
32594
|
};
|
|
30877
32595
|
Relationships: [];
|
|
30878
32596
|
};
|
|
32597
|
+
material_usage: {
|
|
32598
|
+
Row: {
|
|
32599
|
+
created_at: string;
|
|
32600
|
+
id: string;
|
|
32601
|
+
material_name: string;
|
|
32602
|
+
monteur_id: string | null;
|
|
32603
|
+
price_at_time: number;
|
|
32604
|
+
quantity_used: number;
|
|
32605
|
+
updated_at: string;
|
|
32606
|
+
van_inventory_id: string | null;
|
|
32607
|
+
work_order_id: string;
|
|
32608
|
+
};
|
|
32609
|
+
Insert: {
|
|
32610
|
+
created_at?: string;
|
|
32611
|
+
id?: string;
|
|
32612
|
+
material_name: string;
|
|
32613
|
+
monteur_id?: string | null;
|
|
32614
|
+
price_at_time?: number;
|
|
32615
|
+
quantity_used?: number;
|
|
32616
|
+
updated_at?: string;
|
|
32617
|
+
van_inventory_id?: string | null;
|
|
32618
|
+
work_order_id: string;
|
|
32619
|
+
};
|
|
32620
|
+
Update: {
|
|
32621
|
+
created_at?: string;
|
|
32622
|
+
id?: string;
|
|
32623
|
+
material_name?: string;
|
|
32624
|
+
monteur_id?: string | null;
|
|
32625
|
+
price_at_time?: number;
|
|
32626
|
+
quantity_used?: number;
|
|
32627
|
+
updated_at?: string;
|
|
32628
|
+
van_inventory_id?: string | null;
|
|
32629
|
+
work_order_id?: string;
|
|
32630
|
+
};
|
|
32631
|
+
Relationships: [{
|
|
32632
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
32633
|
+
columns: ["monteur_id"];
|
|
32634
|
+
isOneToOne: false;
|
|
32635
|
+
referencedRelation: "profiles";
|
|
32636
|
+
referencedColumns: ["id"];
|
|
32637
|
+
}, {
|
|
32638
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
32639
|
+
columns: ["van_inventory_id"];
|
|
32640
|
+
isOneToOne: false;
|
|
32641
|
+
referencedRelation: "van_inventories";
|
|
32642
|
+
referencedColumns: ["id"];
|
|
32643
|
+
}, {
|
|
32644
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
32645
|
+
columns: ["work_order_id"];
|
|
32646
|
+
isOneToOne: false;
|
|
32647
|
+
referencedRelation: "work_orders";
|
|
32648
|
+
referencedColumns: ["id"];
|
|
32649
|
+
}];
|
|
32650
|
+
};
|
|
32651
|
+
medewerker_details: {
|
|
32652
|
+
Row: {
|
|
32653
|
+
color: string | null;
|
|
32654
|
+
created_at: string;
|
|
32655
|
+
hours_fri: number | null;
|
|
32656
|
+
hours_mon: number | null;
|
|
32657
|
+
hours_thu: number | null;
|
|
32658
|
+
hours_tue: number | null;
|
|
32659
|
+
hours_wed: number | null;
|
|
32660
|
+
id: string;
|
|
32661
|
+
is_active: boolean;
|
|
32662
|
+
leave_balance_hours: number;
|
|
32663
|
+
persnr: string | null;
|
|
32664
|
+
phone: string | null;
|
|
32665
|
+
profile_id: string;
|
|
32666
|
+
updated_at: string;
|
|
32667
|
+
};
|
|
32668
|
+
Insert: {
|
|
32669
|
+
color?: string | null;
|
|
32670
|
+
created_at?: string;
|
|
32671
|
+
hours_fri?: number | null;
|
|
32672
|
+
hours_mon?: number | null;
|
|
32673
|
+
hours_thu?: number | null;
|
|
32674
|
+
hours_tue?: number | null;
|
|
32675
|
+
hours_wed?: number | null;
|
|
32676
|
+
id?: string;
|
|
32677
|
+
is_active?: boolean;
|
|
32678
|
+
leave_balance_hours?: number;
|
|
32679
|
+
persnr?: string | null;
|
|
32680
|
+
phone?: string | null;
|
|
32681
|
+
profile_id: string;
|
|
32682
|
+
updated_at?: string;
|
|
32683
|
+
};
|
|
32684
|
+
Update: {
|
|
32685
|
+
color?: string | null;
|
|
32686
|
+
created_at?: string;
|
|
32687
|
+
hours_fri?: number | null;
|
|
32688
|
+
hours_mon?: number | null;
|
|
32689
|
+
hours_thu?: number | null;
|
|
32690
|
+
hours_tue?: number | null;
|
|
32691
|
+
hours_wed?: number | null;
|
|
32692
|
+
id?: string;
|
|
32693
|
+
is_active?: boolean;
|
|
32694
|
+
leave_balance_hours?: number;
|
|
32695
|
+
persnr?: string | null;
|
|
32696
|
+
phone?: string | null;
|
|
32697
|
+
profile_id?: string;
|
|
32698
|
+
updated_at?: string;
|
|
32699
|
+
};
|
|
32700
|
+
Relationships: [{
|
|
32701
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
32702
|
+
columns: ["profile_id"];
|
|
32703
|
+
isOneToOne: true;
|
|
32704
|
+
referencedRelation: "profiles";
|
|
32705
|
+
referencedColumns: ["id"];
|
|
32706
|
+
}];
|
|
32707
|
+
};
|
|
32708
|
+
module_features: {
|
|
32709
|
+
Row: {
|
|
32710
|
+
created_at: string;
|
|
32711
|
+
feature_id: string;
|
|
32712
|
+
id: string;
|
|
32713
|
+
is_active: boolean;
|
|
32714
|
+
last_seen_at: string;
|
|
32715
|
+
module_id: string;
|
|
32716
|
+
name: string;
|
|
32717
|
+
};
|
|
32718
|
+
Insert: {
|
|
32719
|
+
created_at?: string;
|
|
32720
|
+
feature_id: string;
|
|
32721
|
+
id?: string;
|
|
32722
|
+
is_active?: boolean;
|
|
32723
|
+
last_seen_at?: string;
|
|
32724
|
+
module_id: string;
|
|
32725
|
+
name: string;
|
|
32726
|
+
};
|
|
32727
|
+
Update: {
|
|
32728
|
+
created_at?: string;
|
|
32729
|
+
feature_id?: string;
|
|
32730
|
+
id?: string;
|
|
32731
|
+
is_active?: boolean;
|
|
32732
|
+
last_seen_at?: string;
|
|
32733
|
+
module_id?: string;
|
|
32734
|
+
name?: string;
|
|
32735
|
+
};
|
|
32736
|
+
Relationships: [];
|
|
32737
|
+
};
|
|
30879
32738
|
module_permissions: {
|
|
30880
32739
|
Row: {
|
|
30881
32740
|
created_at: string;
|
|
@@ -30906,6 +32765,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
30906
32765
|
module_registry: {
|
|
30907
32766
|
Row: {
|
|
30908
32767
|
created_at: string;
|
|
32768
|
+
enforce: boolean;
|
|
30909
32769
|
is_active: boolean;
|
|
30910
32770
|
last_seen_at: string;
|
|
30911
32771
|
module_id: string;
|
|
@@ -30915,6 +32775,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
30915
32775
|
};
|
|
30916
32776
|
Insert: {
|
|
30917
32777
|
created_at?: string;
|
|
32778
|
+
enforce?: boolean;
|
|
30918
32779
|
is_active?: boolean;
|
|
30919
32780
|
last_seen_at?: string;
|
|
30920
32781
|
module_id: string;
|
|
@@ -30924,6 +32785,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
30924
32785
|
};
|
|
30925
32786
|
Update: {
|
|
30926
32787
|
created_at?: string;
|
|
32788
|
+
enforce?: boolean;
|
|
30927
32789
|
is_active?: boolean;
|
|
30928
32790
|
last_seen_at?: string;
|
|
30929
32791
|
module_id?: string;
|
|
@@ -30984,63 +32846,6 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
30984
32846
|
};
|
|
30985
32847
|
Relationships: [];
|
|
30986
32848
|
};
|
|
30987
|
-
monteurs: {
|
|
30988
|
-
Row: {
|
|
30989
|
-
avatar_url: string | null;
|
|
30990
|
-
color: string | null;
|
|
30991
|
-
created_at: string;
|
|
30992
|
-
email: string | null;
|
|
30993
|
-
id: string;
|
|
30994
|
-
is_active: boolean;
|
|
30995
|
-
leave_balance_hours: number;
|
|
30996
|
-
name: string;
|
|
30997
|
-
persnr: number | null;
|
|
30998
|
-
phone: string | null;
|
|
30999
|
-
role: string;
|
|
31000
|
-
tenant_id: string;
|
|
31001
|
-
updated_at: string;
|
|
31002
|
-
user_id: string | null;
|
|
31003
|
-
};
|
|
31004
|
-
Insert: {
|
|
31005
|
-
avatar_url?: string | null;
|
|
31006
|
-
color?: string | null;
|
|
31007
|
-
created_at?: string;
|
|
31008
|
-
email?: string | null;
|
|
31009
|
-
id?: string;
|
|
31010
|
-
is_active?: boolean;
|
|
31011
|
-
leave_balance_hours?: number;
|
|
31012
|
-
name: string;
|
|
31013
|
-
persnr?: number | null;
|
|
31014
|
-
phone?: string | null;
|
|
31015
|
-
role?: string;
|
|
31016
|
-
tenant_id: string;
|
|
31017
|
-
updated_at?: string;
|
|
31018
|
-
user_id?: string | null;
|
|
31019
|
-
};
|
|
31020
|
-
Update: {
|
|
31021
|
-
avatar_url?: string | null;
|
|
31022
|
-
color?: string | null;
|
|
31023
|
-
created_at?: string;
|
|
31024
|
-
email?: string | null;
|
|
31025
|
-
id?: string;
|
|
31026
|
-
is_active?: boolean;
|
|
31027
|
-
leave_balance_hours?: number;
|
|
31028
|
-
name?: string;
|
|
31029
|
-
persnr?: number | null;
|
|
31030
|
-
phone?: string | null;
|
|
31031
|
-
role?: string;
|
|
31032
|
-
tenant_id?: string;
|
|
31033
|
-
updated_at?: string;
|
|
31034
|
-
user_id?: string | null;
|
|
31035
|
-
};
|
|
31036
|
-
Relationships: [{
|
|
31037
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
31038
|
-
columns: ["tenant_id"];
|
|
31039
|
-
isOneToOne: false;
|
|
31040
|
-
referencedRelation: "tenants";
|
|
31041
|
-
referencedColumns: ["id"];
|
|
31042
|
-
}];
|
|
31043
|
-
};
|
|
31044
32849
|
nmbrs_component_mapping: {
|
|
31045
32850
|
Row: {
|
|
31046
32851
|
created_at: string;
|
|
@@ -31111,13 +32916,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
31111
32916
|
nmbrs_employee_number?: string;
|
|
31112
32917
|
updated_at?: string;
|
|
31113
32918
|
};
|
|
31114
|
-
Relationships: [
|
|
31115
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
31116
|
-
columns: ["monteur_id"];
|
|
31117
|
-
isOneToOne: true;
|
|
31118
|
-
referencedRelation: "monteurs";
|
|
31119
|
-
referencedColumns: ["id"];
|
|
31120
|
-
}];
|
|
32919
|
+
Relationships: [];
|
|
31121
32920
|
};
|
|
31122
32921
|
nmbrs_export_lines: {
|
|
31123
32922
|
Row: {
|
|
@@ -31166,12 +32965,6 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
31166
32965
|
wage_code?: string;
|
|
31167
32966
|
};
|
|
31168
32967
|
Relationships: [{
|
|
31169
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
31170
|
-
columns: ["monteur_id"];
|
|
31171
|
-
isOneToOne: false;
|
|
31172
|
-
referencedRelation: "monteurs";
|
|
31173
|
-
referencedColumns: ["id"];
|
|
31174
|
-
}, {
|
|
31175
32968
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
31176
32969
|
columns: ["run_id"];
|
|
31177
32970
|
isOneToOne: false;
|
|
@@ -31999,6 +33792,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
31999
33792
|
error_message: string | null;
|
|
32000
33793
|
id: string;
|
|
32001
33794
|
invoice_number: string | null;
|
|
33795
|
+
next_attempt_at: string;
|
|
32002
33796
|
order_id: string;
|
|
32003
33797
|
processed_at: string | null;
|
|
32004
33798
|
status: string;
|
|
@@ -32010,6 +33804,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
32010
33804
|
error_message?: string | null;
|
|
32011
33805
|
id?: string;
|
|
32012
33806
|
invoice_number?: string | null;
|
|
33807
|
+
next_attempt_at?: string;
|
|
32013
33808
|
order_id: string;
|
|
32014
33809
|
processed_at?: string | null;
|
|
32015
33810
|
status?: string;
|
|
@@ -32021,6 +33816,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
32021
33816
|
error_message?: string | null;
|
|
32022
33817
|
id?: string;
|
|
32023
33818
|
invoice_number?: string | null;
|
|
33819
|
+
next_attempt_at?: string;
|
|
32024
33820
|
order_id?: string;
|
|
32025
33821
|
processed_at?: string | null;
|
|
32026
33822
|
status?: string;
|
|
@@ -32202,6 +33998,8 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
32202
33998
|
orders: {
|
|
32203
33999
|
Row: {
|
|
32204
34000
|
buffer_id: string | null;
|
|
34001
|
+
cancel_reason: string | null;
|
|
34002
|
+
cancelled_at: string | null;
|
|
32205
34003
|
created_at: string;
|
|
32206
34004
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
32207
34005
|
customer_id: string | null;
|
|
@@ -32224,6 +34022,8 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
32224
34022
|
};
|
|
32225
34023
|
Insert: {
|
|
32226
34024
|
buffer_id?: string | null;
|
|
34025
|
+
cancel_reason?: string | null;
|
|
34026
|
+
cancelled_at?: string | null;
|
|
32227
34027
|
created_at?: string;
|
|
32228
34028
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
32229
34029
|
customer_id?: string | null;
|
|
@@ -32246,6 +34046,8 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
32246
34046
|
};
|
|
32247
34047
|
Update: {
|
|
32248
34048
|
buffer_id?: string | null;
|
|
34049
|
+
cancel_reason?: string | null;
|
|
34050
|
+
cancelled_at?: string | null;
|
|
32249
34051
|
created_at?: string;
|
|
32250
34052
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
32251
34053
|
customer_id?: string | null;
|
|
@@ -33559,6 +35361,9 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
33559
35361
|
created_at: string;
|
|
33560
35362
|
id: string;
|
|
33561
35363
|
laatst_gezien: string;
|
|
35364
|
+
laatste_fout: string | null;
|
|
35365
|
+
laatste_request_id: number | null;
|
|
35366
|
+
mislukte_posts: number;
|
|
33562
35367
|
tick_sleutel: string;
|
|
33563
35368
|
updated_at: string;
|
|
33564
35369
|
};
|
|
@@ -33568,6 +35373,9 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
33568
35373
|
created_at?: string;
|
|
33569
35374
|
id?: string;
|
|
33570
35375
|
laatst_gezien?: string;
|
|
35376
|
+
laatste_fout?: string | null;
|
|
35377
|
+
laatste_request_id?: number | null;
|
|
35378
|
+
mislukte_posts?: number;
|
|
33571
35379
|
tick_sleutel?: string;
|
|
33572
35380
|
updated_at?: string;
|
|
33573
35381
|
};
|
|
@@ -33577,6 +35385,9 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
33577
35385
|
created_at?: string;
|
|
33578
35386
|
id?: string;
|
|
33579
35387
|
laatst_gezien?: string;
|
|
35388
|
+
laatste_fout?: string | null;
|
|
35389
|
+
laatste_request_id?: number | null;
|
|
35390
|
+
mislukte_posts?: number;
|
|
33580
35391
|
tick_sleutel?: string;
|
|
33581
35392
|
updated_at?: string;
|
|
33582
35393
|
};
|
|
@@ -34299,6 +36110,66 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
34299
36110
|
};
|
|
34300
36111
|
Relationships: [];
|
|
34301
36112
|
};
|
|
36113
|
+
profile_modules: {
|
|
36114
|
+
Row: {
|
|
36115
|
+
created_at: string;
|
|
36116
|
+
id: string;
|
|
36117
|
+
module_id: string;
|
|
36118
|
+
profile_id: string;
|
|
36119
|
+
};
|
|
36120
|
+
Insert: {
|
|
36121
|
+
created_at?: string;
|
|
36122
|
+
id?: string;
|
|
36123
|
+
module_id: string;
|
|
36124
|
+
profile_id: string;
|
|
36125
|
+
};
|
|
36126
|
+
Update: {
|
|
36127
|
+
created_at?: string;
|
|
36128
|
+
id?: string;
|
|
36129
|
+
module_id?: string;
|
|
36130
|
+
profile_id?: string;
|
|
36131
|
+
};
|
|
36132
|
+
Relationships: [{
|
|
36133
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
36134
|
+
columns: ["profile_id"];
|
|
36135
|
+
isOneToOne: false;
|
|
36136
|
+
referencedRelation: "profiles_org";
|
|
36137
|
+
referencedColumns: ["id"];
|
|
36138
|
+
}];
|
|
36139
|
+
};
|
|
36140
|
+
profile_roles: {
|
|
36141
|
+
Row: {
|
|
36142
|
+
created_at: string;
|
|
36143
|
+
id: string;
|
|
36144
|
+
profile_id: string;
|
|
36145
|
+
role_id: string;
|
|
36146
|
+
};
|
|
36147
|
+
Insert: {
|
|
36148
|
+
created_at?: string;
|
|
36149
|
+
id?: string;
|
|
36150
|
+
profile_id: string;
|
|
36151
|
+
role_id: string;
|
|
36152
|
+
};
|
|
36153
|
+
Update: {
|
|
36154
|
+
created_at?: string;
|
|
36155
|
+
id?: string;
|
|
36156
|
+
profile_id?: string;
|
|
36157
|
+
role_id?: string;
|
|
36158
|
+
};
|
|
36159
|
+
Relationships: [{
|
|
36160
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
36161
|
+
columns: ["profile_id"];
|
|
36162
|
+
isOneToOne: false;
|
|
36163
|
+
referencedRelation: "profiles_org";
|
|
36164
|
+
referencedColumns: ["id"];
|
|
36165
|
+
}, {
|
|
36166
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
36167
|
+
columns: ["role_id"];
|
|
36168
|
+
isOneToOne: false;
|
|
36169
|
+
referencedRelation: "roles";
|
|
36170
|
+
referencedColumns: ["id"];
|
|
36171
|
+
}];
|
|
36172
|
+
};
|
|
34302
36173
|
profiles: {
|
|
34303
36174
|
Row: {
|
|
34304
36175
|
address: string | null;
|
|
@@ -34344,6 +36215,39 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
34344
36215
|
referencedColumns: ["id"];
|
|
34345
36216
|
}];
|
|
34346
36217
|
};
|
|
36218
|
+
profiles_org: {
|
|
36219
|
+
Row: {
|
|
36220
|
+
created_at: string;
|
|
36221
|
+
id: string;
|
|
36222
|
+
is_default: boolean;
|
|
36223
|
+
name: string;
|
|
36224
|
+
tenant_id: string | null;
|
|
36225
|
+
updated_at: string;
|
|
36226
|
+
};
|
|
36227
|
+
Insert: {
|
|
36228
|
+
created_at?: string;
|
|
36229
|
+
id?: string;
|
|
36230
|
+
is_default?: boolean;
|
|
36231
|
+
name: string;
|
|
36232
|
+
tenant_id?: string | null;
|
|
36233
|
+
updated_at?: string;
|
|
36234
|
+
};
|
|
36235
|
+
Update: {
|
|
36236
|
+
created_at?: string;
|
|
36237
|
+
id?: string;
|
|
36238
|
+
is_default?: boolean;
|
|
36239
|
+
name?: string;
|
|
36240
|
+
tenant_id?: string | null;
|
|
36241
|
+
updated_at?: string;
|
|
36242
|
+
};
|
|
36243
|
+
Relationships: [{
|
|
36244
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
36245
|
+
columns: ["tenant_id"];
|
|
36246
|
+
isOneToOne: false;
|
|
36247
|
+
referencedRelation: "tenants";
|
|
36248
|
+
referencedColumns: ["id"];
|
|
36249
|
+
}];
|
|
36250
|
+
};
|
|
34347
36251
|
projects: {
|
|
34348
36252
|
Row: {
|
|
34349
36253
|
contact_name: string | null;
|
|
@@ -35085,6 +36989,96 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
35085
36989
|
referencedColumns: ["id"];
|
|
35086
36990
|
}];
|
|
35087
36991
|
};
|
|
36992
|
+
role_assignments: {
|
|
36993
|
+
Row: {
|
|
36994
|
+
created_at: string;
|
|
36995
|
+
id: string;
|
|
36996
|
+
role_id: string;
|
|
36997
|
+
user_id: string;
|
|
36998
|
+
};
|
|
36999
|
+
Insert: {
|
|
37000
|
+
created_at?: string;
|
|
37001
|
+
id?: string;
|
|
37002
|
+
role_id: string;
|
|
37003
|
+
user_id: string;
|
|
37004
|
+
};
|
|
37005
|
+
Update: {
|
|
37006
|
+
created_at?: string;
|
|
37007
|
+
id?: string;
|
|
37008
|
+
role_id?: string;
|
|
37009
|
+
user_id?: string;
|
|
37010
|
+
};
|
|
37011
|
+
Relationships: [{
|
|
37012
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
37013
|
+
columns: ["role_id"];
|
|
37014
|
+
isOneToOne: false;
|
|
37015
|
+
referencedRelation: "roles";
|
|
37016
|
+
referencedColumns: ["id"];
|
|
37017
|
+
}];
|
|
37018
|
+
};
|
|
37019
|
+
role_permissions: {
|
|
37020
|
+
Row: {
|
|
37021
|
+
can_edit: boolean;
|
|
37022
|
+
can_view: boolean;
|
|
37023
|
+
feature_id: string;
|
|
37024
|
+
id: string;
|
|
37025
|
+
module_id: string;
|
|
37026
|
+
role_id: string;
|
|
37027
|
+
updated_at: string;
|
|
37028
|
+
};
|
|
37029
|
+
Insert: {
|
|
37030
|
+
can_edit?: boolean;
|
|
37031
|
+
can_view?: boolean;
|
|
37032
|
+
feature_id?: string;
|
|
37033
|
+
id?: string;
|
|
37034
|
+
module_id: string;
|
|
37035
|
+
role_id: string;
|
|
37036
|
+
updated_at?: string;
|
|
37037
|
+
};
|
|
37038
|
+
Update: {
|
|
37039
|
+
can_edit?: boolean;
|
|
37040
|
+
can_view?: boolean;
|
|
37041
|
+
feature_id?: string;
|
|
37042
|
+
id?: string;
|
|
37043
|
+
module_id?: string;
|
|
37044
|
+
role_id?: string;
|
|
37045
|
+
updated_at?: string;
|
|
37046
|
+
};
|
|
37047
|
+
Relationships: [{
|
|
37048
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
37049
|
+
columns: ["role_id"];
|
|
37050
|
+
isOneToOne: false;
|
|
37051
|
+
referencedRelation: "roles";
|
|
37052
|
+
referencedColumns: ["id"];
|
|
37053
|
+
}];
|
|
37054
|
+
};
|
|
37055
|
+
roles: {
|
|
37056
|
+
Row: {
|
|
37057
|
+
created_at: string;
|
|
37058
|
+
id: string;
|
|
37059
|
+
is_protected: boolean;
|
|
37060
|
+
key: string;
|
|
37061
|
+
name: string;
|
|
37062
|
+
updated_at: string;
|
|
37063
|
+
};
|
|
37064
|
+
Insert: {
|
|
37065
|
+
created_at?: string;
|
|
37066
|
+
id?: string;
|
|
37067
|
+
is_protected?: boolean;
|
|
37068
|
+
key: string;
|
|
37069
|
+
name: string;
|
|
37070
|
+
updated_at?: string;
|
|
37071
|
+
};
|
|
37072
|
+
Update: {
|
|
37073
|
+
created_at?: string;
|
|
37074
|
+
id?: string;
|
|
37075
|
+
is_protected?: boolean;
|
|
37076
|
+
key?: string;
|
|
37077
|
+
name?: string;
|
|
37078
|
+
updated_at?: string;
|
|
37079
|
+
};
|
|
37080
|
+
Relationships: [];
|
|
37081
|
+
};
|
|
35088
37082
|
rooms: {
|
|
35089
37083
|
Row: {
|
|
35090
37084
|
capacity: number;
|
|
@@ -35428,6 +37422,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
35428
37422
|
type: string;
|
|
35429
37423
|
updated_at: string;
|
|
35430
37424
|
vereist_medewerker: boolean;
|
|
37425
|
+
werkplek: string | null;
|
|
35431
37426
|
};
|
|
35432
37427
|
Insert: {
|
|
35433
37428
|
actief?: boolean;
|
|
@@ -35441,6 +37436,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
35441
37436
|
type?: string;
|
|
35442
37437
|
updated_at?: string;
|
|
35443
37438
|
vereist_medewerker?: boolean;
|
|
37439
|
+
werkplek?: string | null;
|
|
35444
37440
|
};
|
|
35445
37441
|
Update: {
|
|
35446
37442
|
actief?: boolean;
|
|
@@ -35454,9 +37450,46 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
35454
37450
|
type?: string;
|
|
35455
37451
|
updated_at?: string;
|
|
35456
37452
|
vereist_medewerker?: boolean;
|
|
37453
|
+
werkplek?: string | null;
|
|
35457
37454
|
};
|
|
35458
37455
|
Relationships: [];
|
|
35459
37456
|
};
|
|
37457
|
+
sick_periods: {
|
|
37458
|
+
Row: {
|
|
37459
|
+
created_at: string;
|
|
37460
|
+
employee_id: string;
|
|
37461
|
+
end_date: string | null;
|
|
37462
|
+
id: string;
|
|
37463
|
+
notes: string | null;
|
|
37464
|
+
start_date: string;
|
|
37465
|
+
updated_at: string;
|
|
37466
|
+
};
|
|
37467
|
+
Insert: {
|
|
37468
|
+
created_at?: string;
|
|
37469
|
+
employee_id: string;
|
|
37470
|
+
end_date?: string | null;
|
|
37471
|
+
id?: string;
|
|
37472
|
+
notes?: string | null;
|
|
37473
|
+
start_date: string;
|
|
37474
|
+
updated_at?: string;
|
|
37475
|
+
};
|
|
37476
|
+
Update: {
|
|
37477
|
+
created_at?: string;
|
|
37478
|
+
employee_id?: string;
|
|
37479
|
+
end_date?: string | null;
|
|
37480
|
+
id?: string;
|
|
37481
|
+
notes?: string | null;
|
|
37482
|
+
start_date?: string;
|
|
37483
|
+
updated_at?: string;
|
|
37484
|
+
};
|
|
37485
|
+
Relationships: [{
|
|
37486
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
37487
|
+
columns: ["employee_id"];
|
|
37488
|
+
isOneToOne: false;
|
|
37489
|
+
referencedRelation: "profiles";
|
|
37490
|
+
referencedColumns: ["id"];
|
|
37491
|
+
}];
|
|
37492
|
+
};
|
|
35460
37493
|
sidebar_config: {
|
|
35461
37494
|
Row: {
|
|
35462
37495
|
id: string;
|
|
@@ -35754,6 +37787,54 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
35754
37787
|
};
|
|
35755
37788
|
Relationships: [];
|
|
35756
37789
|
};
|
|
37790
|
+
time_compensation_entries: {
|
|
37791
|
+
Row: {
|
|
37792
|
+
created_at: string;
|
|
37793
|
+
employee_id: string;
|
|
37794
|
+
entry_date: string;
|
|
37795
|
+
id: string;
|
|
37796
|
+
km: number;
|
|
37797
|
+
meal_allowance: number;
|
|
37798
|
+
notes: string | null;
|
|
37799
|
+
standby_evening: number;
|
|
37800
|
+
standby_weekend: number;
|
|
37801
|
+
tvt_change: number;
|
|
37802
|
+
updated_at: string;
|
|
37803
|
+
};
|
|
37804
|
+
Insert: {
|
|
37805
|
+
created_at?: string;
|
|
37806
|
+
employee_id: string;
|
|
37807
|
+
entry_date: string;
|
|
37808
|
+
id?: string;
|
|
37809
|
+
km?: number;
|
|
37810
|
+
meal_allowance?: number;
|
|
37811
|
+
notes?: string | null;
|
|
37812
|
+
standby_evening?: number;
|
|
37813
|
+
standby_weekend?: number;
|
|
37814
|
+
tvt_change?: number;
|
|
37815
|
+
updated_at?: string;
|
|
37816
|
+
};
|
|
37817
|
+
Update: {
|
|
37818
|
+
created_at?: string;
|
|
37819
|
+
employee_id?: string;
|
|
37820
|
+
entry_date?: string;
|
|
37821
|
+
id?: string;
|
|
37822
|
+
km?: number;
|
|
37823
|
+
meal_allowance?: number;
|
|
37824
|
+
notes?: string | null;
|
|
37825
|
+
standby_evening?: number;
|
|
37826
|
+
standby_weekend?: number;
|
|
37827
|
+
tvt_change?: number;
|
|
37828
|
+
updated_at?: string;
|
|
37829
|
+
};
|
|
37830
|
+
Relationships: [{
|
|
37831
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
37832
|
+
columns: ["employee_id"];
|
|
37833
|
+
isOneToOne: false;
|
|
37834
|
+
referencedRelation: "profiles";
|
|
37835
|
+
referencedColumns: ["id"];
|
|
37836
|
+
}];
|
|
37837
|
+
};
|
|
35757
37838
|
time_entries: {
|
|
35758
37839
|
Row: {
|
|
35759
37840
|
created_at: string;
|
|
@@ -35788,65 +37869,170 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
35788
37869
|
undertime?: number;
|
|
35789
37870
|
updated_at?: string;
|
|
35790
37871
|
};
|
|
37872
|
+
Relationships: [];
|
|
37873
|
+
};
|
|
37874
|
+
time_log_week_approvals: {
|
|
37875
|
+
Row: {
|
|
37876
|
+
approved_at: string | null;
|
|
37877
|
+
approved_by: string | null;
|
|
37878
|
+
created_at: string;
|
|
37879
|
+
employee_id: string;
|
|
37880
|
+
id: string;
|
|
37881
|
+
locked: boolean;
|
|
37882
|
+
notes: string | null;
|
|
37883
|
+
status: string;
|
|
37884
|
+
submitted_at: string | null;
|
|
37885
|
+
updated_at: string;
|
|
37886
|
+
week_start: string;
|
|
37887
|
+
};
|
|
37888
|
+
Insert: {
|
|
37889
|
+
approved_at?: string | null;
|
|
37890
|
+
approved_by?: string | null;
|
|
37891
|
+
created_at?: string;
|
|
37892
|
+
employee_id: string;
|
|
37893
|
+
id?: string;
|
|
37894
|
+
locked?: boolean;
|
|
37895
|
+
notes?: string | null;
|
|
37896
|
+
status?: string;
|
|
37897
|
+
submitted_at?: string | null;
|
|
37898
|
+
updated_at?: string;
|
|
37899
|
+
week_start: string;
|
|
37900
|
+
};
|
|
37901
|
+
Update: {
|
|
37902
|
+
approved_at?: string | null;
|
|
37903
|
+
approved_by?: string | null;
|
|
37904
|
+
created_at?: string;
|
|
37905
|
+
employee_id?: string;
|
|
37906
|
+
id?: string;
|
|
37907
|
+
locked?: boolean;
|
|
37908
|
+
notes?: string | null;
|
|
37909
|
+
status?: string;
|
|
37910
|
+
submitted_at?: string | null;
|
|
37911
|
+
updated_at?: string;
|
|
37912
|
+
week_start?: string;
|
|
37913
|
+
};
|
|
35791
37914
|
Relationships: [{
|
|
35792
|
-
foreignKeyName: "
|
|
37915
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
35793
37916
|
columns: ["employee_id"];
|
|
35794
37917
|
isOneToOne: false;
|
|
35795
|
-
referencedRelation: "
|
|
37918
|
+
referencedRelation: "profiles";
|
|
35796
37919
|
referencedColumns: ["id"];
|
|
35797
37920
|
}];
|
|
35798
37921
|
};
|
|
35799
37922
|
time_logs: {
|
|
35800
37923
|
Row: {
|
|
37924
|
+
auto_stop_reason: string | null;
|
|
37925
|
+
auto_stopped: boolean;
|
|
35801
37926
|
created_at: string;
|
|
37927
|
+
current_latitude: number | null;
|
|
37928
|
+
current_longitude: number | null;
|
|
37929
|
+
current_position_updated_at: string | null;
|
|
35802
37930
|
employee_id: string;
|
|
37931
|
+
end_latitude: number | null;
|
|
37932
|
+
end_longitude: number | null;
|
|
35803
37933
|
end_time: string | null;
|
|
37934
|
+
eta_distance_km: number | null;
|
|
37935
|
+
eta_minutes: number | null;
|
|
37936
|
+
eta_updated_at: string | null;
|
|
37937
|
+
hour_category: string | null;
|
|
35804
37938
|
id: string;
|
|
37939
|
+
last_reminder_at: string | null;
|
|
35805
37940
|
notes: string | null;
|
|
35806
37941
|
overtime_hours: number;
|
|
35807
37942
|
overtime_type: string | null;
|
|
35808
37943
|
regular_hours: number;
|
|
37944
|
+
reminder_count: number;
|
|
37945
|
+
requires_review: boolean;
|
|
37946
|
+
start_latitude: number | null;
|
|
37947
|
+
start_longitude: number | null;
|
|
35809
37948
|
start_time: string;
|
|
35810
37949
|
travel_cost: number | null;
|
|
35811
37950
|
travel_distance_km: number | null;
|
|
37951
|
+
travel_duration_min: number | null;
|
|
37952
|
+
travel_time_minutes: number | null;
|
|
35812
37953
|
type: string;
|
|
35813
37954
|
updated_at: string;
|
|
37955
|
+
work_order_id: string | null;
|
|
35814
37956
|
};
|
|
35815
37957
|
Insert: {
|
|
37958
|
+
auto_stop_reason?: string | null;
|
|
37959
|
+
auto_stopped?: boolean;
|
|
35816
37960
|
created_at?: string;
|
|
37961
|
+
current_latitude?: number | null;
|
|
37962
|
+
current_longitude?: number | null;
|
|
37963
|
+
current_position_updated_at?: string | null;
|
|
35817
37964
|
employee_id: string;
|
|
37965
|
+
end_latitude?: number | null;
|
|
37966
|
+
end_longitude?: number | null;
|
|
35818
37967
|
end_time?: string | null;
|
|
37968
|
+
eta_distance_km?: number | null;
|
|
37969
|
+
eta_minutes?: number | null;
|
|
37970
|
+
eta_updated_at?: string | null;
|
|
37971
|
+
hour_category?: string | null;
|
|
35819
37972
|
id?: string;
|
|
37973
|
+
last_reminder_at?: string | null;
|
|
35820
37974
|
notes?: string | null;
|
|
35821
37975
|
overtime_hours?: number;
|
|
35822
37976
|
overtime_type?: string | null;
|
|
35823
37977
|
regular_hours?: number;
|
|
37978
|
+
reminder_count?: number;
|
|
37979
|
+
requires_review?: boolean;
|
|
37980
|
+
start_latitude?: number | null;
|
|
37981
|
+
start_longitude?: number | null;
|
|
35824
37982
|
start_time?: string;
|
|
35825
37983
|
travel_cost?: number | null;
|
|
35826
37984
|
travel_distance_km?: number | null;
|
|
37985
|
+
travel_duration_min?: number | null;
|
|
37986
|
+
travel_time_minutes?: number | null;
|
|
35827
37987
|
type: string;
|
|
35828
37988
|
updated_at?: string;
|
|
37989
|
+
work_order_id?: string | null;
|
|
35829
37990
|
};
|
|
35830
37991
|
Update: {
|
|
37992
|
+
auto_stop_reason?: string | null;
|
|
37993
|
+
auto_stopped?: boolean;
|
|
35831
37994
|
created_at?: string;
|
|
37995
|
+
current_latitude?: number | null;
|
|
37996
|
+
current_longitude?: number | null;
|
|
37997
|
+
current_position_updated_at?: string | null;
|
|
35832
37998
|
employee_id?: string;
|
|
37999
|
+
end_latitude?: number | null;
|
|
38000
|
+
end_longitude?: number | null;
|
|
35833
38001
|
end_time?: string | null;
|
|
38002
|
+
eta_distance_km?: number | null;
|
|
38003
|
+
eta_minutes?: number | null;
|
|
38004
|
+
eta_updated_at?: string | null;
|
|
38005
|
+
hour_category?: string | null;
|
|
35834
38006
|
id?: string;
|
|
38007
|
+
last_reminder_at?: string | null;
|
|
35835
38008
|
notes?: string | null;
|
|
35836
38009
|
overtime_hours?: number;
|
|
35837
38010
|
overtime_type?: string | null;
|
|
35838
38011
|
regular_hours?: number;
|
|
38012
|
+
reminder_count?: number;
|
|
38013
|
+
requires_review?: boolean;
|
|
38014
|
+
start_latitude?: number | null;
|
|
38015
|
+
start_longitude?: number | null;
|
|
35839
38016
|
start_time?: string;
|
|
35840
38017
|
travel_cost?: number | null;
|
|
35841
38018
|
travel_distance_km?: number | null;
|
|
38019
|
+
travel_duration_min?: number | null;
|
|
38020
|
+
travel_time_minutes?: number | null;
|
|
35842
38021
|
type?: string;
|
|
35843
38022
|
updated_at?: string;
|
|
38023
|
+
work_order_id?: string | null;
|
|
35844
38024
|
};
|
|
35845
38025
|
Relationships: [{
|
|
35846
38026
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
35847
38027
|
columns: ["employee_id"];
|
|
35848
38028
|
isOneToOne: false;
|
|
35849
|
-
referencedRelation: "
|
|
38029
|
+
referencedRelation: "profiles";
|
|
38030
|
+
referencedColumns: ["id"];
|
|
38031
|
+
}, {
|
|
38032
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
38033
|
+
columns: ["work_order_id"];
|
|
38034
|
+
isOneToOne: false;
|
|
38035
|
+
referencedRelation: "work_orders";
|
|
35850
38036
|
referencedColumns: ["id"];
|
|
35851
38037
|
}];
|
|
35852
38038
|
};
|
|
@@ -35885,7 +38071,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
35885
38071
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
35886
38072
|
columns: ["employee_id"];
|
|
35887
38073
|
isOneToOne: false;
|
|
35888
|
-
referencedRelation: "
|
|
38074
|
+
referencedRelation: "profiles";
|
|
35889
38075
|
referencedColumns: ["id"];
|
|
35890
38076
|
}];
|
|
35891
38077
|
};
|
|
@@ -36195,6 +38381,39 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
36195
38381
|
};
|
|
36196
38382
|
Relationships: [];
|
|
36197
38383
|
};
|
|
38384
|
+
twinfield_cron_locks: {
|
|
38385
|
+
Row: {
|
|
38386
|
+
created_at: string;
|
|
38387
|
+
heartbeat_at: string;
|
|
38388
|
+
job_name: string;
|
|
38389
|
+
last_error: string | null;
|
|
38390
|
+
last_finished_at: string | null;
|
|
38391
|
+
locked_at: string;
|
|
38392
|
+
run_id: string;
|
|
38393
|
+
updated_at: string;
|
|
38394
|
+
};
|
|
38395
|
+
Insert: {
|
|
38396
|
+
created_at?: string;
|
|
38397
|
+
heartbeat_at?: string;
|
|
38398
|
+
job_name: string;
|
|
38399
|
+
last_error?: string | null;
|
|
38400
|
+
last_finished_at?: string | null;
|
|
38401
|
+
locked_at?: string;
|
|
38402
|
+
run_id?: string;
|
|
38403
|
+
updated_at?: string;
|
|
38404
|
+
};
|
|
38405
|
+
Update: {
|
|
38406
|
+
created_at?: string;
|
|
38407
|
+
heartbeat_at?: string;
|
|
38408
|
+
job_name?: string;
|
|
38409
|
+
last_error?: string | null;
|
|
38410
|
+
last_finished_at?: string | null;
|
|
38411
|
+
locked_at?: string;
|
|
38412
|
+
run_id?: string;
|
|
38413
|
+
updated_at?: string;
|
|
38414
|
+
};
|
|
38415
|
+
Relationships: [];
|
|
38416
|
+
};
|
|
36198
38417
|
twinfield_customers: {
|
|
36199
38418
|
Row: {
|
|
36200
38419
|
address: string | null;
|
|
@@ -36795,6 +39014,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
36795
39014
|
twinfield_push_queue: {
|
|
36796
39015
|
Row: {
|
|
36797
39016
|
action: string;
|
|
39017
|
+
attempt_started_at: string | null;
|
|
36798
39018
|
attempts: number;
|
|
36799
39019
|
connection_id: string | null;
|
|
36800
39020
|
created_at: string;
|
|
@@ -36811,6 +39031,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
36811
39031
|
};
|
|
36812
39032
|
Insert: {
|
|
36813
39033
|
action?: string;
|
|
39034
|
+
attempt_started_at?: string | null;
|
|
36814
39035
|
attempts?: number;
|
|
36815
39036
|
connection_id?: string | null;
|
|
36816
39037
|
created_at?: string;
|
|
@@ -36827,6 +39048,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
36827
39048
|
};
|
|
36828
39049
|
Update: {
|
|
36829
39050
|
action?: string;
|
|
39051
|
+
attempt_started_at?: string | null;
|
|
36830
39052
|
attempts?: number;
|
|
36831
39053
|
connection_id?: string | null;
|
|
36832
39054
|
created_at?: string;
|
|
@@ -37024,13 +39246,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
37024
39246
|
workday_end?: string | null;
|
|
37025
39247
|
workday_start?: string | null;
|
|
37026
39248
|
};
|
|
37027
|
-
Relationships: [
|
|
37028
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
37029
|
-
columns: ["monteur_id"];
|
|
37030
|
-
isOneToOne: true;
|
|
37031
|
-
referencedRelation: "monteurs";
|
|
37032
|
-
referencedColumns: ["id"];
|
|
37033
|
-
}];
|
|
39249
|
+
Relationships: [];
|
|
37034
39250
|
};
|
|
37035
39251
|
uren_entries: {
|
|
37036
39252
|
Row: {
|
|
@@ -37076,12 +39292,6 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
37076
39292
|
werkbon_id?: string | null;
|
|
37077
39293
|
};
|
|
37078
39294
|
Relationships: [{
|
|
37079
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
37080
|
-
columns: ["monteur_id"];
|
|
37081
|
-
isOneToOne: false;
|
|
37082
|
-
referencedRelation: "monteurs";
|
|
37083
|
-
referencedColumns: ["id"];
|
|
37084
|
-
}, {
|
|
37085
39295
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
37086
39296
|
columns: ["werkbon_id"];
|
|
37087
39297
|
isOneToOne: false;
|
|
@@ -37549,17 +39759,12 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
37549
39759
|
submitted_at?: string | null;
|
|
37550
39760
|
updated_at?: string;
|
|
37551
39761
|
};
|
|
37552
|
-
Relationships: [
|
|
37553
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
37554
|
-
columns: ["monteur_id"];
|
|
37555
|
-
isOneToOne: false;
|
|
37556
|
-
referencedRelation: "monteurs";
|
|
37557
|
-
referencedColumns: ["id"];
|
|
37558
|
-
}];
|
|
39762
|
+
Relationships: [];
|
|
37559
39763
|
};
|
|
37560
39764
|
user_module_permissions: {
|
|
37561
39765
|
Row: {
|
|
37562
39766
|
created_at: string;
|
|
39767
|
+
feature_id: string;
|
|
37563
39768
|
id: string;
|
|
37564
39769
|
module_id: string;
|
|
37565
39770
|
permission: string;
|
|
@@ -37568,6 +39773,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
37568
39773
|
};
|
|
37569
39774
|
Insert: {
|
|
37570
39775
|
created_at?: string;
|
|
39776
|
+
feature_id?: string;
|
|
37571
39777
|
id?: string;
|
|
37572
39778
|
module_id: string;
|
|
37573
39779
|
permission: string;
|
|
@@ -37576,6 +39782,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
37576
39782
|
};
|
|
37577
39783
|
Update: {
|
|
37578
39784
|
created_at?: string;
|
|
39785
|
+
feature_id?: string;
|
|
37579
39786
|
id?: string;
|
|
37580
39787
|
module_id?: string;
|
|
37581
39788
|
permission?: string;
|
|
@@ -37611,6 +39818,51 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
37611
39818
|
referencedColumns: ["id"];
|
|
37612
39819
|
}];
|
|
37613
39820
|
};
|
|
39821
|
+
van_inventories: {
|
|
39822
|
+
Row: {
|
|
39823
|
+
barcode: string | null;
|
|
39824
|
+
created_at: string;
|
|
39825
|
+
id: string;
|
|
39826
|
+
monteur_id: string | null;
|
|
39827
|
+
price_per_unit: number;
|
|
39828
|
+
product_name: string;
|
|
39829
|
+
quantity_current: number;
|
|
39830
|
+
quantity_min: number;
|
|
39831
|
+
unit: string;
|
|
39832
|
+
updated_at: string;
|
|
39833
|
+
};
|
|
39834
|
+
Insert: {
|
|
39835
|
+
barcode?: string | null;
|
|
39836
|
+
created_at?: string;
|
|
39837
|
+
id?: string;
|
|
39838
|
+
monteur_id?: string | null;
|
|
39839
|
+
price_per_unit?: number;
|
|
39840
|
+
product_name: string;
|
|
39841
|
+
quantity_current?: number;
|
|
39842
|
+
quantity_min?: number;
|
|
39843
|
+
unit?: string;
|
|
39844
|
+
updated_at?: string;
|
|
39845
|
+
};
|
|
39846
|
+
Update: {
|
|
39847
|
+
barcode?: string | null;
|
|
39848
|
+
created_at?: string;
|
|
39849
|
+
id?: string;
|
|
39850
|
+
monteur_id?: string | null;
|
|
39851
|
+
price_per_unit?: number;
|
|
39852
|
+
product_name?: string;
|
|
39853
|
+
quantity_current?: number;
|
|
39854
|
+
quantity_min?: number;
|
|
39855
|
+
unit?: string;
|
|
39856
|
+
updated_at?: string;
|
|
39857
|
+
};
|
|
39858
|
+
Relationships: [{
|
|
39859
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
39860
|
+
columns: ["monteur_id"];
|
|
39861
|
+
isOneToOne: false;
|
|
39862
|
+
referencedRelation: "profiles";
|
|
39863
|
+
referencedColumns: ["id"];
|
|
39864
|
+
}];
|
|
39865
|
+
};
|
|
37614
39866
|
voorraad_custom_fields: {
|
|
37615
39867
|
Row: {
|
|
37616
39868
|
created_at: string;
|
|
@@ -38561,7 +40813,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
38561
40813
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
38562
40814
|
columns: ["monteur_id"];
|
|
38563
40815
|
isOneToOne: false;
|
|
38564
|
-
referencedRelation: "
|
|
40816
|
+
referencedRelation: "profiles";
|
|
38565
40817
|
referencedColumns: ["id"];
|
|
38566
40818
|
}, {
|
|
38567
40819
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -38571,6 +40823,60 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
38571
40823
|
referencedColumns: ["id"];
|
|
38572
40824
|
}];
|
|
38573
40825
|
};
|
|
40826
|
+
work_order_photos: {
|
|
40827
|
+
Row: {
|
|
40828
|
+
ai_caption: string | null;
|
|
40829
|
+
ai_categorized_at: string | null;
|
|
40830
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
40831
|
+
caption: string | null;
|
|
40832
|
+
created_at: string;
|
|
40833
|
+
id: string;
|
|
40834
|
+
monteur_id: string | null;
|
|
40835
|
+
photo_type: string;
|
|
40836
|
+
storage_path: string;
|
|
40837
|
+
updated_at: string;
|
|
40838
|
+
work_order_id: string;
|
|
40839
|
+
};
|
|
40840
|
+
Insert: {
|
|
40841
|
+
ai_caption?: string | null;
|
|
40842
|
+
ai_categorized_at?: string | null;
|
|
40843
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
40844
|
+
caption?: string | null;
|
|
40845
|
+
created_at?: string;
|
|
40846
|
+
id?: string;
|
|
40847
|
+
monteur_id?: string | null;
|
|
40848
|
+
photo_type?: string;
|
|
40849
|
+
storage_path: string;
|
|
40850
|
+
updated_at?: string;
|
|
40851
|
+
work_order_id: string;
|
|
40852
|
+
};
|
|
40853
|
+
Update: {
|
|
40854
|
+
ai_caption?: string | null;
|
|
40855
|
+
ai_categorized_at?: string | null;
|
|
40856
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
40857
|
+
caption?: string | null;
|
|
40858
|
+
created_at?: string;
|
|
40859
|
+
id?: string;
|
|
40860
|
+
monteur_id?: string | null;
|
|
40861
|
+
photo_type?: string;
|
|
40862
|
+
storage_path?: string;
|
|
40863
|
+
updated_at?: string;
|
|
40864
|
+
work_order_id?: string;
|
|
40865
|
+
};
|
|
40866
|
+
Relationships: [{
|
|
40867
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
40868
|
+
columns: ["monteur_id"];
|
|
40869
|
+
isOneToOne: false;
|
|
40870
|
+
referencedRelation: "profiles";
|
|
40871
|
+
referencedColumns: ["id"];
|
|
40872
|
+
}, {
|
|
40873
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
40874
|
+
columns: ["work_order_id"];
|
|
40875
|
+
isOneToOne: false;
|
|
40876
|
+
referencedRelation: "work_orders";
|
|
40877
|
+
referencedColumns: ["id"];
|
|
40878
|
+
}];
|
|
40879
|
+
};
|
|
38574
40880
|
work_orders: {
|
|
38575
40881
|
Row: {
|
|
38576
40882
|
assigned_to: string | null;
|
|
@@ -38602,7 +40908,6 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
38602
40908
|
scheduled_end_time: string | null;
|
|
38603
40909
|
scheduled_start_time: string | null;
|
|
38604
40910
|
status: string;
|
|
38605
|
-
tenant_id: string;
|
|
38606
40911
|
total_hours_worked: number | null;
|
|
38607
40912
|
total_price: number | null;
|
|
38608
40913
|
travel_time_minutes: number | null;
|
|
@@ -38640,7 +40945,6 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
38640
40945
|
scheduled_end_time?: string | null;
|
|
38641
40946
|
scheduled_start_time?: string | null;
|
|
38642
40947
|
status?: string;
|
|
38643
|
-
tenant_id: string;
|
|
38644
40948
|
total_hours_worked?: number | null;
|
|
38645
40949
|
total_price?: number | null;
|
|
38646
40950
|
travel_time_minutes?: number | null;
|
|
@@ -38678,7 +40982,6 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
38678
40982
|
scheduled_end_time?: string | null;
|
|
38679
40983
|
scheduled_start_time?: string | null;
|
|
38680
40984
|
status?: string;
|
|
38681
|
-
tenant_id?: string;
|
|
38682
40985
|
total_hours_worked?: number | null;
|
|
38683
40986
|
total_price?: number | null;
|
|
38684
40987
|
travel_time_minutes?: number | null;
|
|
@@ -38692,12 +40995,6 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
38692
40995
|
isOneToOne: false;
|
|
38693
40996
|
referencedRelation: "work_orders";
|
|
38694
40997
|
referencedColumns: ["id"];
|
|
38695
|
-
}, {
|
|
38696
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
38697
|
-
columns: ["tenant_id"];
|
|
38698
|
-
isOneToOne: false;
|
|
38699
|
-
referencedRelation: "tenants";
|
|
38700
|
-
referencedColumns: ["id"];
|
|
38701
40998
|
}];
|
|
38702
40999
|
};
|
|
38703
41000
|
};
|
|
@@ -39382,6 +41679,19 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
39382
41679
|
};
|
|
39383
41680
|
Returns: undefined;
|
|
39384
41681
|
};
|
|
41682
|
+
approve_mailbox_order_proposal: {
|
|
41683
|
+
Args: {
|
|
41684
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
41685
|
+
p_customer_id: string;
|
|
41686
|
+
p_delivery_date: string;
|
|
41687
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
41688
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
41689
|
+
p_notes: string;
|
|
41690
|
+
p_proposal_id: string;
|
|
41691
|
+
p_reviewed_by: string;
|
|
41692
|
+
};
|
|
41693
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
41694
|
+
};
|
|
39385
41695
|
assign_cart_numbers: {
|
|
39386
41696
|
Args: {
|
|
39387
41697
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -39433,6 +41743,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
39433
41743
|
};
|
|
39434
41744
|
Returns: number;
|
|
39435
41745
|
};
|
|
41746
|
+
can_manage_hours: {
|
|
41747
|
+
Args: never;
|
|
41748
|
+
Returns: boolean;
|
|
41749
|
+
};
|
|
39436
41750
|
check_offer_product_available_stock: {
|
|
39437
41751
|
Args: {
|
|
39438
41752
|
p_campaign_product_id: string;
|
|
@@ -39622,6 +41936,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
39622
41936
|
};
|
|
39623
41937
|
Returns: {
|
|
39624
41938
|
action: string;
|
|
41939
|
+
attempt_started_at: string | null;
|
|
39625
41940
|
attempts: number;
|
|
39626
41941
|
connection_id: string | null;
|
|
39627
41942
|
created_at: string;
|
|
@@ -39709,6 +42024,30 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
39709
42024
|
agent_naam: string;
|
|
39710
42025
|
}[];
|
|
39711
42026
|
};
|
|
42027
|
+
consume_van_inventory: {
|
|
42028
|
+
Args: {
|
|
42029
|
+
p_inventory_id: string;
|
|
42030
|
+
p_quantity: number;
|
|
42031
|
+
};
|
|
42032
|
+
Returns: {
|
|
42033
|
+
barcode: string | null;
|
|
42034
|
+
created_at: string;
|
|
42035
|
+
id: string;
|
|
42036
|
+
monteur_id: string | null;
|
|
42037
|
+
price_per_unit: number;
|
|
42038
|
+
product_name: string;
|
|
42039
|
+
quantity_current: number;
|
|
42040
|
+
quantity_min: number;
|
|
42041
|
+
unit: string;
|
|
42042
|
+
updated_at: string;
|
|
42043
|
+
};
|
|
42044
|
+
SetofOptions: {
|
|
42045
|
+
from: "*";
|
|
42046
|
+
to: "van_inventories";
|
|
42047
|
+
isOneToOne: true;
|
|
42048
|
+
isSetofReturn: false;
|
|
42049
|
+
};
|
|
42050
|
+
};
|
|
39712
42051
|
control_get_todays_carts: {
|
|
39713
42052
|
Args: never;
|
|
39714
42053
|
Returns: {
|
|
@@ -39782,6 +42121,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
39782
42121
|
_user_id: string;
|
|
39783
42122
|
};
|
|
39784
42123
|
Returns: string;
|
|
42124
|
+
} | {
|
|
42125
|
+
Args: {
|
|
42126
|
+
_feature_id: string;
|
|
42127
|
+
_module_id: string;
|
|
42128
|
+
_user_id: string;
|
|
42129
|
+
};
|
|
42130
|
+
Returns: string;
|
|
39785
42131
|
};
|
|
39786
42132
|
email_auth_decrypt: {
|
|
39787
42133
|
Args: {
|
|
@@ -39828,6 +42174,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
39828
42174
|
};
|
|
39829
42175
|
Returns: string;
|
|
39830
42176
|
};
|
|
42177
|
+
employee_day_hours: {
|
|
42178
|
+
Args: {
|
|
42179
|
+
_day: string;
|
|
42180
|
+
_employee_id: string;
|
|
42181
|
+
};
|
|
42182
|
+
Returns: number;
|
|
42183
|
+
};
|
|
39831
42184
|
enqueue_cart_replan_if_unlocked: {
|
|
39832
42185
|
Args: {
|
|
39833
42186
|
p_order_id: string;
|
|
@@ -40133,12 +42486,6 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
40133
42486
|
Args: never;
|
|
40134
42487
|
Returns: string;
|
|
40135
42488
|
};
|
|
40136
|
-
get_work_order_tenant_id: {
|
|
40137
|
-
Args: {
|
|
40138
|
-
wo_id: string;
|
|
40139
|
-
};
|
|
40140
|
-
Returns: string;
|
|
40141
|
-
};
|
|
40142
42489
|
has_module_permission: {
|
|
40143
42490
|
Args: {
|
|
40144
42491
|
_min: string;
|
|
@@ -40172,6 +42519,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
40172
42519
|
};
|
|
40173
42520
|
Returns: boolean;
|
|
40174
42521
|
};
|
|
42522
|
+
is_time_log_week_locked: {
|
|
42523
|
+
Args: {
|
|
42524
|
+
p_employee_id: string;
|
|
42525
|
+
p_start_time: string;
|
|
42526
|
+
};
|
|
42527
|
+
Returns: boolean;
|
|
42528
|
+
};
|
|
40175
42529
|
is_user_admin: {
|
|
40176
42530
|
Args: never;
|
|
40177
42531
|
Returns: boolean;
|
|
@@ -40180,19 +42534,43 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
40180
42534
|
Args: never;
|
|
40181
42535
|
Returns: boolean;
|
|
40182
42536
|
};
|
|
42537
|
+
itk_offerte_naar_werkbon: {
|
|
42538
|
+
Args: {
|
|
42539
|
+
_offerte_id: string;
|
|
42540
|
+
};
|
|
42541
|
+
Returns: string;
|
|
42542
|
+
};
|
|
42543
|
+
itk_offerte_restant_mandaat: {
|
|
42544
|
+
Args: {
|
|
42545
|
+
_exclude_offerte_id?: string;
|
|
42546
|
+
_werkbon_id: string;
|
|
42547
|
+
};
|
|
42548
|
+
Returns: number;
|
|
42549
|
+
};
|
|
40183
42550
|
jwt_has_role: {
|
|
40184
42551
|
Args: {
|
|
40185
42552
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
40186
42553
|
};
|
|
40187
42554
|
Returns: boolean;
|
|
40188
42555
|
};
|
|
40189
|
-
|
|
42556
|
+
list_medewerkers: {
|
|
40190
42557
|
Args: never;
|
|
40191
42558
|
Returns: {
|
|
40192
42559
|
avatar_url: string;
|
|
42560
|
+
color: string;
|
|
40193
42561
|
display_name: string;
|
|
40194
42562
|
email: string;
|
|
42563
|
+
hours_fri: number;
|
|
42564
|
+
hours_mon: number;
|
|
42565
|
+
hours_thu: number;
|
|
42566
|
+
hours_tue: number;
|
|
42567
|
+
hours_wed: number;
|
|
40195
42568
|
id: string;
|
|
42569
|
+
is_active: boolean;
|
|
42570
|
+
leave_balance_hours: number;
|
|
42571
|
+
persnr: string;
|
|
42572
|
+
phone: string;
|
|
42573
|
+
roles: string[];
|
|
40196
42574
|
}[];
|
|
40197
42575
|
};
|
|
40198
42576
|
list_my_planning_items: {
|
|
@@ -40518,17 +42896,6 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
40518
42896
|
Returns: string;
|
|
40519
42897
|
};
|
|
40520
42898
|
logistics_emit_event: {
|
|
40521
|
-
Args: {
|
|
40522
|
-
p_event_type: string;
|
|
40523
|
-
p_idempotency_key?: string;
|
|
40524
|
-
p_order_ref: string;
|
|
40525
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
40526
|
-
p_shadow?: boolean;
|
|
40527
|
-
p_source_module: string;
|
|
40528
|
-
p_strategy_id?: string;
|
|
40529
|
-
};
|
|
40530
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
40531
|
-
} | {
|
|
40532
42899
|
Args: {
|
|
40533
42900
|
p_event_type: string;
|
|
40534
42901
|
p_idempotency_key?: string;
|
|
@@ -40683,6 +43050,65 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
40683
43050
|
};
|
|
40684
43051
|
Returns: number;
|
|
40685
43052
|
};
|
|
43053
|
+
logistics_plan_claim: {
|
|
43054
|
+
Args: {
|
|
43055
|
+
p_limit?: number;
|
|
43056
|
+
};
|
|
43057
|
+
Returns: {
|
|
43058
|
+
attempts: number;
|
|
43059
|
+
id: string;
|
|
43060
|
+
order_id: string;
|
|
43061
|
+
}[];
|
|
43062
|
+
};
|
|
43063
|
+
logistics_plan_enqueue: {
|
|
43064
|
+
Args: {
|
|
43065
|
+
p_order_id: string;
|
|
43066
|
+
p_reason?: string;
|
|
43067
|
+
};
|
|
43068
|
+
Returns: undefined;
|
|
43069
|
+
};
|
|
43070
|
+
logistics_plan_ensure_event: {
|
|
43071
|
+
Args: {
|
|
43072
|
+
p_order_id: string;
|
|
43073
|
+
};
|
|
43074
|
+
Returns: boolean;
|
|
43075
|
+
};
|
|
43076
|
+
logistics_plan_finish: {
|
|
43077
|
+
Args: {
|
|
43078
|
+
p_error?: string;
|
|
43079
|
+
p_id: string;
|
|
43080
|
+
};
|
|
43081
|
+
Returns: undefined;
|
|
43082
|
+
};
|
|
43083
|
+
logistics_plan_impact_orders: {
|
|
43084
|
+
Args: {
|
|
43085
|
+
p_order_id: string;
|
|
43086
|
+
};
|
|
43087
|
+
Returns: {
|
|
43088
|
+
buffer_id: string;
|
|
43089
|
+
order_id: string;
|
|
43090
|
+
plan_date: string;
|
|
43091
|
+
}[];
|
|
43092
|
+
};
|
|
43093
|
+
logistics_plan_kick: {
|
|
43094
|
+
Args: never;
|
|
43095
|
+
Returns: undefined;
|
|
43096
|
+
};
|
|
43097
|
+
logistics_plan_prune: {
|
|
43098
|
+
Args: never;
|
|
43099
|
+
Returns: number;
|
|
43100
|
+
};
|
|
43101
|
+
logistics_plan_release_stale: {
|
|
43102
|
+
Args: never;
|
|
43103
|
+
Returns: number;
|
|
43104
|
+
};
|
|
43105
|
+
logistics_plan_setting: {
|
|
43106
|
+
Args: {
|
|
43107
|
+
p_default: number;
|
|
43108
|
+
p_key: string;
|
|
43109
|
+
};
|
|
43110
|
+
Returns: number;
|
|
43111
|
+
};
|
|
40686
43112
|
logistics_queue_capacity_email: {
|
|
40687
43113
|
Args: {
|
|
40688
43114
|
p_alert_id: string;
|
|
@@ -40924,6 +43350,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
40924
43350
|
my_module_permissions: {
|
|
40925
43351
|
Args: never;
|
|
40926
43352
|
Returns: {
|
|
43353
|
+
feature_id: string;
|
|
40927
43354
|
module_id: string;
|
|
40928
43355
|
permission: string;
|
|
40929
43356
|
}[];
|
|
@@ -41313,6 +43740,37 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
41313
43740
|
};
|
|
41314
43741
|
Returns: undefined;
|
|
41315
43742
|
};
|
|
43743
|
+
quote_create_from_source: {
|
|
43744
|
+
Args: {
|
|
43745
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
43746
|
+
_source_id: string;
|
|
43747
|
+
_source_type: string;
|
|
43748
|
+
};
|
|
43749
|
+
Returns: string;
|
|
43750
|
+
};
|
|
43751
|
+
quote_get_billable_lines: {
|
|
43752
|
+
Args: {
|
|
43753
|
+
_quotation_id: string;
|
|
43754
|
+
};
|
|
43755
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43756
|
+
};
|
|
43757
|
+
quote_get_summary: {
|
|
43758
|
+
Args: {
|
|
43759
|
+
_quotation_id: string;
|
|
43760
|
+
};
|
|
43761
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43762
|
+
};
|
|
43763
|
+
quote_list_packages: {
|
|
43764
|
+
Args: never;
|
|
43765
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43766
|
+
};
|
|
43767
|
+
quote_list_sources: {
|
|
43768
|
+
Args: {
|
|
43769
|
+
_limit?: number;
|
|
43770
|
+
_source_type?: string;
|
|
43771
|
+
};
|
|
43772
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43773
|
+
};
|
|
41316
43774
|
recompute_all_reserved_stock: {
|
|
41317
43775
|
Args: never;
|
|
41318
43776
|
Returns: undefined;
|
|
@@ -41804,6 +44262,16 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
41804
44262
|
};
|
|
41805
44263
|
Returns: string[];
|
|
41806
44264
|
};
|
|
44265
|
+
switch_time_log: {
|
|
44266
|
+
Args: {
|
|
44267
|
+
p_employee_id: string;
|
|
44268
|
+
p_start_lat?: number;
|
|
44269
|
+
p_start_lng?: number;
|
|
44270
|
+
p_type: string;
|
|
44271
|
+
p_work_order_id?: string;
|
|
44272
|
+
};
|
|
44273
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44274
|
+
};
|
|
41807
44275
|
sync_all_layer_stocks: {
|
|
41808
44276
|
Args: never;
|
|
41809
44277
|
Returns: undefined;
|
|
@@ -41838,6 +44306,12 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
41838
44306
|
};
|
|
41839
44307
|
Returns: undefined;
|
|
41840
44308
|
};
|
|
44309
|
+
sync_sick_time_off: {
|
|
44310
|
+
Args: {
|
|
44311
|
+
_period_id: string;
|
|
44312
|
+
};
|
|
44313
|
+
Returns: number;
|
|
44314
|
+
};
|
|
41841
44315
|
trade_item_stock_duplicates: {
|
|
41842
44316
|
Args: never;
|
|
41843
44317
|
Returns: {
|
|
@@ -41854,6 +44328,24 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
41854
44328
|
};
|
|
41855
44329
|
Returns: boolean;
|
|
41856
44330
|
};
|
|
44331
|
+
twinfield_cron_lock_acquire: {
|
|
44332
|
+
Args: {
|
|
44333
|
+
_job_name: string;
|
|
44334
|
+
_stale_seconds?: number;
|
|
44335
|
+
};
|
|
44336
|
+
Returns: boolean;
|
|
44337
|
+
};
|
|
44338
|
+
twinfield_cron_lock_release: {
|
|
44339
|
+
Args: {
|
|
44340
|
+
_error?: string;
|
|
44341
|
+
_job_name: string;
|
|
44342
|
+
};
|
|
44343
|
+
Returns: undefined;
|
|
44344
|
+
};
|
|
44345
|
+
twinfield_prune_push_queue: {
|
|
44346
|
+
Args: never;
|
|
44347
|
+
Returns: number;
|
|
44348
|
+
};
|
|
41857
44349
|
twinfield_register_cron: {
|
|
41858
44350
|
Args: {
|
|
41859
44351
|
apikey?: string;
|
|
@@ -41893,11 +44385,31 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
|
|
|
41893
44385
|
Args: never;
|
|
41894
44386
|
Returns: string;
|
|
41895
44387
|
};
|
|
44388
|
+
wo_create_from_source: {
|
|
44389
|
+
Args: {
|
|
44390
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
44391
|
+
_source_id: string;
|
|
44392
|
+
_source_type: string;
|
|
44393
|
+
};
|
|
44394
|
+
Returns: string;
|
|
44395
|
+
};
|
|
44396
|
+
wo_get_billable_lines: {
|
|
44397
|
+
Args: {
|
|
44398
|
+
_work_order_id: string;
|
|
44399
|
+
};
|
|
44400
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44401
|
+
};
|
|
44402
|
+
wo_get_summary: {
|
|
44403
|
+
Args: {
|
|
44404
|
+
_work_order_id: string;
|
|
44405
|
+
};
|
|
44406
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44407
|
+
};
|
|
41896
44408
|
};
|
|
41897
44409
|
Enums: {
|
|
41898
44410
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
41899
44411
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
41900
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
44412
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
41901
44413
|
doc_orientation: "portrait" | "landscape";
|
|
41902
44414
|
exact_env: "staging" | "live";
|
|
41903
44415
|
exact_push_status: "pending" | "sent" | "error";
|