@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
|
@@ -875,6 +875,126 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
875
875
|
};
|
|
876
876
|
Relationships: [];
|
|
877
877
|
};
|
|
878
|
+
cao_holidays: {
|
|
879
|
+
Row: {
|
|
880
|
+
created_at: string;
|
|
881
|
+
description: string | null;
|
|
882
|
+
holiday_date: string;
|
|
883
|
+
id: string;
|
|
884
|
+
updated_at: string;
|
|
885
|
+
};
|
|
886
|
+
Insert: {
|
|
887
|
+
created_at?: string;
|
|
888
|
+
description?: string | null;
|
|
889
|
+
holiday_date: string;
|
|
890
|
+
id?: string;
|
|
891
|
+
updated_at?: string;
|
|
892
|
+
};
|
|
893
|
+
Update: {
|
|
894
|
+
created_at?: string;
|
|
895
|
+
description?: string | null;
|
|
896
|
+
holiday_date?: string;
|
|
897
|
+
id?: string;
|
|
898
|
+
updated_at?: string;
|
|
899
|
+
};
|
|
900
|
+
Relationships: [];
|
|
901
|
+
};
|
|
902
|
+
cao_settings: {
|
|
903
|
+
Row: {
|
|
904
|
+
auto_break_after_hours: number;
|
|
905
|
+
auto_break_minutes: number;
|
|
906
|
+
auto_break_unpaid: boolean;
|
|
907
|
+
auto_stop_after_hours: number;
|
|
908
|
+
callout_fee: number;
|
|
909
|
+
created_at: string;
|
|
910
|
+
daily_regular_hours: number;
|
|
911
|
+
default_hourly_rate: number;
|
|
912
|
+
id: string;
|
|
913
|
+
materials_markup_percent: number;
|
|
914
|
+
max_daily_hours: number;
|
|
915
|
+
max_weekly_hours: number;
|
|
916
|
+
meal_allowance_amount: number;
|
|
917
|
+
overtime_pct_178: number;
|
|
918
|
+
overtime_pct_189: number;
|
|
919
|
+
overtime_pct_212: number;
|
|
920
|
+
reminder_after_hours: number;
|
|
921
|
+
standby_evening_amount: number;
|
|
922
|
+
standby_weekend_amount: number;
|
|
923
|
+
travel_cost_per_km: number | null;
|
|
924
|
+
travel_cost_threshold_km: number | null;
|
|
925
|
+
travel_counts_as_work: boolean;
|
|
926
|
+
travel_hourly_rate: number;
|
|
927
|
+
travel_rate_per_hour: number;
|
|
928
|
+
travel_threshold_minutes: number;
|
|
929
|
+
updated_at: string;
|
|
930
|
+
weekend_always_212: boolean;
|
|
931
|
+
window_end: string;
|
|
932
|
+
window_start: string;
|
|
933
|
+
};
|
|
934
|
+
Insert: {
|
|
935
|
+
auto_break_after_hours?: number;
|
|
936
|
+
auto_break_minutes?: number;
|
|
937
|
+
auto_break_unpaid?: boolean;
|
|
938
|
+
auto_stop_after_hours?: number;
|
|
939
|
+
callout_fee?: number;
|
|
940
|
+
created_at?: string;
|
|
941
|
+
daily_regular_hours?: number;
|
|
942
|
+
default_hourly_rate?: number;
|
|
943
|
+
id?: string;
|
|
944
|
+
materials_markup_percent?: number;
|
|
945
|
+
max_daily_hours?: number;
|
|
946
|
+
max_weekly_hours?: number;
|
|
947
|
+
meal_allowance_amount?: number;
|
|
948
|
+
overtime_pct_178?: number;
|
|
949
|
+
overtime_pct_189?: number;
|
|
950
|
+
overtime_pct_212?: number;
|
|
951
|
+
reminder_after_hours?: number;
|
|
952
|
+
standby_evening_amount?: number;
|
|
953
|
+
standby_weekend_amount?: number;
|
|
954
|
+
travel_cost_per_km?: number | null;
|
|
955
|
+
travel_cost_threshold_km?: number | null;
|
|
956
|
+
travel_counts_as_work?: boolean;
|
|
957
|
+
travel_hourly_rate?: number;
|
|
958
|
+
travel_rate_per_hour?: number;
|
|
959
|
+
travel_threshold_minutes?: number;
|
|
960
|
+
updated_at?: string;
|
|
961
|
+
weekend_always_212?: boolean;
|
|
962
|
+
window_end?: string;
|
|
963
|
+
window_start?: string;
|
|
964
|
+
};
|
|
965
|
+
Update: {
|
|
966
|
+
auto_break_after_hours?: number;
|
|
967
|
+
auto_break_minutes?: number;
|
|
968
|
+
auto_break_unpaid?: boolean;
|
|
969
|
+
auto_stop_after_hours?: number;
|
|
970
|
+
callout_fee?: number;
|
|
971
|
+
created_at?: string;
|
|
972
|
+
daily_regular_hours?: number;
|
|
973
|
+
default_hourly_rate?: number;
|
|
974
|
+
id?: string;
|
|
975
|
+
materials_markup_percent?: number;
|
|
976
|
+
max_daily_hours?: number;
|
|
977
|
+
max_weekly_hours?: number;
|
|
978
|
+
meal_allowance_amount?: number;
|
|
979
|
+
overtime_pct_178?: number;
|
|
980
|
+
overtime_pct_189?: number;
|
|
981
|
+
overtime_pct_212?: number;
|
|
982
|
+
reminder_after_hours?: number;
|
|
983
|
+
standby_evening_amount?: number;
|
|
984
|
+
standby_weekend_amount?: number;
|
|
985
|
+
travel_cost_per_km?: number | null;
|
|
986
|
+
travel_cost_threshold_km?: number | null;
|
|
987
|
+
travel_counts_as_work?: boolean;
|
|
988
|
+
travel_hourly_rate?: number;
|
|
989
|
+
travel_rate_per_hour?: number;
|
|
990
|
+
travel_threshold_minutes?: number;
|
|
991
|
+
updated_at?: string;
|
|
992
|
+
weekend_always_212?: boolean;
|
|
993
|
+
window_end?: string;
|
|
994
|
+
window_start?: string;
|
|
995
|
+
};
|
|
996
|
+
Relationships: [];
|
|
997
|
+
};
|
|
878
998
|
carrier_shipping_rates: {
|
|
879
999
|
Row: {
|
|
880
1000
|
carrier_id: string;
|
|
@@ -4928,6 +5048,42 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
4928
5048
|
};
|
|
4929
5049
|
Relationships: [];
|
|
4930
5050
|
};
|
|
5051
|
+
facturen: {
|
|
5052
|
+
Row: {
|
|
5053
|
+
bedrag_incl_btw: number;
|
|
5054
|
+
created_at: string;
|
|
5055
|
+
datum: string;
|
|
5056
|
+
factuurnummer: string;
|
|
5057
|
+
id: string;
|
|
5058
|
+
klantnaam: string;
|
|
5059
|
+
status: string;
|
|
5060
|
+
updated_at: string;
|
|
5061
|
+
user_id: string;
|
|
5062
|
+
};
|
|
5063
|
+
Insert: {
|
|
5064
|
+
bedrag_incl_btw: number;
|
|
5065
|
+
created_at?: string;
|
|
5066
|
+
datum?: string;
|
|
5067
|
+
factuurnummer: string;
|
|
5068
|
+
id?: string;
|
|
5069
|
+
klantnaam: string;
|
|
5070
|
+
status?: string;
|
|
5071
|
+
updated_at?: string;
|
|
5072
|
+
user_id?: string;
|
|
5073
|
+
};
|
|
5074
|
+
Update: {
|
|
5075
|
+
bedrag_incl_btw?: number;
|
|
5076
|
+
created_at?: string;
|
|
5077
|
+
datum?: string;
|
|
5078
|
+
factuurnummer?: string;
|
|
5079
|
+
id?: string;
|
|
5080
|
+
klantnaam?: string;
|
|
5081
|
+
status?: string;
|
|
5082
|
+
updated_at?: string;
|
|
5083
|
+
user_id?: string;
|
|
5084
|
+
};
|
|
5085
|
+
Relationships: [];
|
|
5086
|
+
};
|
|
4931
5087
|
floricode_connection_settings: {
|
|
4932
5088
|
Row: {
|
|
4933
5089
|
catalog_key: string | null;
|
|
@@ -7652,6 +7808,258 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
7652
7808
|
};
|
|
7653
7809
|
Relationships: [];
|
|
7654
7810
|
};
|
|
7811
|
+
itk_offerte_events: {
|
|
7812
|
+
Row: {
|
|
7813
|
+
created_at: string;
|
|
7814
|
+
event_type: string;
|
|
7815
|
+
id: string;
|
|
7816
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
7817
|
+
offerte_id: string;
|
|
7818
|
+
omschrijving: string | null;
|
|
7819
|
+
user_id: string | null;
|
|
7820
|
+
};
|
|
7821
|
+
Insert: {
|
|
7822
|
+
created_at?: string;
|
|
7823
|
+
event_type: string;
|
|
7824
|
+
id?: string;
|
|
7825
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7826
|
+
offerte_id: string;
|
|
7827
|
+
omschrijving?: string | null;
|
|
7828
|
+
user_id?: string | null;
|
|
7829
|
+
};
|
|
7830
|
+
Update: {
|
|
7831
|
+
created_at?: string;
|
|
7832
|
+
event_type?: string;
|
|
7833
|
+
id?: string;
|
|
7834
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7835
|
+
offerte_id?: string;
|
|
7836
|
+
omschrijving?: string | null;
|
|
7837
|
+
user_id?: string | null;
|
|
7838
|
+
};
|
|
7839
|
+
Relationships: [{
|
|
7840
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
7841
|
+
columns: ["offerte_id"];
|
|
7842
|
+
isOneToOne: false;
|
|
7843
|
+
referencedRelation: "itk_offertes";
|
|
7844
|
+
referencedColumns: ["id"];
|
|
7845
|
+
}];
|
|
7846
|
+
};
|
|
7847
|
+
itk_offerte_regels: {
|
|
7848
|
+
Row: {
|
|
7849
|
+
created_at: string;
|
|
7850
|
+
id: string;
|
|
7851
|
+
line_total_cents: number;
|
|
7852
|
+
offerte_id: string;
|
|
7853
|
+
omschrijving: string;
|
|
7854
|
+
package_id: string | null;
|
|
7855
|
+
quantity: number;
|
|
7856
|
+
sort_order: number;
|
|
7857
|
+
source: string;
|
|
7858
|
+
unit_price_cents: number;
|
|
7859
|
+
updated_at: string;
|
|
7860
|
+
};
|
|
7861
|
+
Insert: {
|
|
7862
|
+
created_at?: string;
|
|
7863
|
+
id?: string;
|
|
7864
|
+
line_total_cents?: number;
|
|
7865
|
+
offerte_id: string;
|
|
7866
|
+
omschrijving?: string;
|
|
7867
|
+
package_id?: string | null;
|
|
7868
|
+
quantity?: number;
|
|
7869
|
+
sort_order?: number;
|
|
7870
|
+
source?: string;
|
|
7871
|
+
unit_price_cents?: number;
|
|
7872
|
+
updated_at?: string;
|
|
7873
|
+
};
|
|
7874
|
+
Update: {
|
|
7875
|
+
created_at?: string;
|
|
7876
|
+
id?: string;
|
|
7877
|
+
line_total_cents?: number;
|
|
7878
|
+
offerte_id?: string;
|
|
7879
|
+
omschrijving?: string;
|
|
7880
|
+
package_id?: string | null;
|
|
7881
|
+
quantity?: number;
|
|
7882
|
+
sort_order?: number;
|
|
7883
|
+
source?: string;
|
|
7884
|
+
unit_price_cents?: number;
|
|
7885
|
+
updated_at?: string;
|
|
7886
|
+
};
|
|
7887
|
+
Relationships: [{
|
|
7888
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
7889
|
+
columns: ["offerte_id"];
|
|
7890
|
+
isOneToOne: false;
|
|
7891
|
+
referencedRelation: "itk_offertes";
|
|
7892
|
+
referencedColumns: ["id"];
|
|
7893
|
+
}, {
|
|
7894
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
7895
|
+
columns: ["package_id"];
|
|
7896
|
+
isOneToOne: false;
|
|
7897
|
+
referencedRelation: "werkbon_packages";
|
|
7898
|
+
referencedColumns: ["id"];
|
|
7899
|
+
}];
|
|
7900
|
+
};
|
|
7901
|
+
itk_offerte_settings: {
|
|
7902
|
+
Row: {
|
|
7903
|
+
auto_convert_binnen_mandaat: boolean;
|
|
7904
|
+
created_at: string;
|
|
7905
|
+
default_geldigheid_dagen: number;
|
|
7906
|
+
default_vat_rate: number;
|
|
7907
|
+
id: string;
|
|
7908
|
+
singleton: boolean;
|
|
7909
|
+
updated_at: string;
|
|
7910
|
+
};
|
|
7911
|
+
Insert: {
|
|
7912
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7913
|
+
created_at?: string;
|
|
7914
|
+
default_geldigheid_dagen?: number;
|
|
7915
|
+
default_vat_rate?: number;
|
|
7916
|
+
id?: string;
|
|
7917
|
+
singleton?: boolean;
|
|
7918
|
+
updated_at?: string;
|
|
7919
|
+
};
|
|
7920
|
+
Update: {
|
|
7921
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7922
|
+
created_at?: string;
|
|
7923
|
+
default_geldigheid_dagen?: number;
|
|
7924
|
+
default_vat_rate?: number;
|
|
7925
|
+
id?: string;
|
|
7926
|
+
singleton?: boolean;
|
|
7927
|
+
updated_at?: string;
|
|
7928
|
+
};
|
|
7929
|
+
Relationships: [];
|
|
7930
|
+
};
|
|
7931
|
+
itk_offertes: {
|
|
7932
|
+
Row: {
|
|
7933
|
+
ai_generated: boolean;
|
|
7934
|
+
approved_at: string | null;
|
|
7935
|
+
binnen_mandaat: boolean;
|
|
7936
|
+
contact_id: string | null;
|
|
7937
|
+
converted_at: string | null;
|
|
7938
|
+
created_at: string;
|
|
7939
|
+
created_by: string | null;
|
|
7940
|
+
customer_id: string | null;
|
|
7941
|
+
follow_up_werkbon_id: string | null;
|
|
7942
|
+
id: string;
|
|
7943
|
+
jaar: number;
|
|
7944
|
+
mandaat_restant_cents: number;
|
|
7945
|
+
notities: string | null;
|
|
7946
|
+
offerte_number: string | null;
|
|
7947
|
+
omschrijving: string;
|
|
7948
|
+
rejected_at: string | null;
|
|
7949
|
+
sent_at: string | null;
|
|
7950
|
+
source_number: string | null;
|
|
7951
|
+
source_ref: string | null;
|
|
7952
|
+
source_type: string;
|
|
7953
|
+
status: string;
|
|
7954
|
+
subtotal_cents: number;
|
|
7955
|
+
total_cents: number;
|
|
7956
|
+
updated_at: string;
|
|
7957
|
+
valid_until: string | null;
|
|
7958
|
+
vat_cents: number;
|
|
7959
|
+
vat_rate: number;
|
|
7960
|
+
viewed_at: string | null;
|
|
7961
|
+
volgnummer: number | null;
|
|
7962
|
+
werkbon_id: string | null;
|
|
7963
|
+
work_location_id: string | null;
|
|
7964
|
+
};
|
|
7965
|
+
Insert: {
|
|
7966
|
+
ai_generated?: boolean;
|
|
7967
|
+
approved_at?: string | null;
|
|
7968
|
+
binnen_mandaat?: boolean;
|
|
7969
|
+
contact_id?: string | null;
|
|
7970
|
+
converted_at?: string | null;
|
|
7971
|
+
created_at?: string;
|
|
7972
|
+
created_by?: string | null;
|
|
7973
|
+
customer_id?: string | null;
|
|
7974
|
+
follow_up_werkbon_id?: string | null;
|
|
7975
|
+
id?: string;
|
|
7976
|
+
jaar?: number;
|
|
7977
|
+
mandaat_restant_cents?: number;
|
|
7978
|
+
notities?: string | null;
|
|
7979
|
+
offerte_number?: string | null;
|
|
7980
|
+
omschrijving?: string;
|
|
7981
|
+
rejected_at?: string | null;
|
|
7982
|
+
sent_at?: string | null;
|
|
7983
|
+
source_number?: string | null;
|
|
7984
|
+
source_ref?: string | null;
|
|
7985
|
+
source_type?: string;
|
|
7986
|
+
status?: string;
|
|
7987
|
+
subtotal_cents?: number;
|
|
7988
|
+
total_cents?: number;
|
|
7989
|
+
updated_at?: string;
|
|
7990
|
+
valid_until?: string | null;
|
|
7991
|
+
vat_cents?: number;
|
|
7992
|
+
vat_rate?: number;
|
|
7993
|
+
viewed_at?: string | null;
|
|
7994
|
+
volgnummer?: number | null;
|
|
7995
|
+
werkbon_id?: string | null;
|
|
7996
|
+
work_location_id?: string | null;
|
|
7997
|
+
};
|
|
7998
|
+
Update: {
|
|
7999
|
+
ai_generated?: boolean;
|
|
8000
|
+
approved_at?: string | null;
|
|
8001
|
+
binnen_mandaat?: boolean;
|
|
8002
|
+
contact_id?: string | null;
|
|
8003
|
+
converted_at?: string | null;
|
|
8004
|
+
created_at?: string;
|
|
8005
|
+
created_by?: string | null;
|
|
8006
|
+
customer_id?: string | null;
|
|
8007
|
+
follow_up_werkbon_id?: string | null;
|
|
8008
|
+
id?: string;
|
|
8009
|
+
jaar?: number;
|
|
8010
|
+
mandaat_restant_cents?: number;
|
|
8011
|
+
notities?: string | null;
|
|
8012
|
+
offerte_number?: string | null;
|
|
8013
|
+
omschrijving?: string;
|
|
8014
|
+
rejected_at?: string | null;
|
|
8015
|
+
sent_at?: string | null;
|
|
8016
|
+
source_number?: string | null;
|
|
8017
|
+
source_ref?: string | null;
|
|
8018
|
+
source_type?: string;
|
|
8019
|
+
status?: string;
|
|
8020
|
+
subtotal_cents?: number;
|
|
8021
|
+
total_cents?: number;
|
|
8022
|
+
updated_at?: string;
|
|
8023
|
+
valid_until?: string | null;
|
|
8024
|
+
vat_cents?: number;
|
|
8025
|
+
vat_rate?: number;
|
|
8026
|
+
viewed_at?: string | null;
|
|
8027
|
+
volgnummer?: number | null;
|
|
8028
|
+
werkbon_id?: string | null;
|
|
8029
|
+
work_location_id?: string | null;
|
|
8030
|
+
};
|
|
8031
|
+
Relationships: [{
|
|
8032
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
8033
|
+
columns: ["contact_id"];
|
|
8034
|
+
isOneToOne: false;
|
|
8035
|
+
referencedRelation: "itk_contact_persons";
|
|
8036
|
+
referencedColumns: ["id"];
|
|
8037
|
+
}, {
|
|
8038
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
8039
|
+
columns: ["customer_id"];
|
|
8040
|
+
isOneToOne: false;
|
|
8041
|
+
referencedRelation: "itk_customers";
|
|
8042
|
+
referencedColumns: ["id"];
|
|
8043
|
+
}, {
|
|
8044
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
8045
|
+
columns: ["follow_up_werkbon_id"];
|
|
8046
|
+
isOneToOne: false;
|
|
8047
|
+
referencedRelation: "werkbonnen";
|
|
8048
|
+
referencedColumns: ["id"];
|
|
8049
|
+
}, {
|
|
8050
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
8051
|
+
columns: ["werkbon_id"];
|
|
8052
|
+
isOneToOne: false;
|
|
8053
|
+
referencedRelation: "werkbonnen";
|
|
8054
|
+
referencedColumns: ["id"];
|
|
8055
|
+
}, {
|
|
8056
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
8057
|
+
columns: ["work_location_id"];
|
|
8058
|
+
isOneToOne: false;
|
|
8059
|
+
referencedRelation: "itk_work_locations";
|
|
8060
|
+
referencedColumns: ["id"];
|
|
8061
|
+
}];
|
|
8062
|
+
};
|
|
7655
8063
|
itk_work_locations: {
|
|
7656
8064
|
Row: {
|
|
7657
8065
|
city: string | null;
|
|
@@ -7769,7 +8177,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
7769
8177
|
start_date: string;
|
|
7770
8178
|
start_time: string | null;
|
|
7771
8179
|
status: string;
|
|
7772
|
-
tenant_id: string;
|
|
7773
8180
|
updated_at: string;
|
|
7774
8181
|
user_id: string;
|
|
7775
8182
|
};
|
|
@@ -7787,7 +8194,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
7787
8194
|
start_date: string;
|
|
7788
8195
|
start_time?: string | null;
|
|
7789
8196
|
status?: string;
|
|
7790
|
-
tenant_id?: string;
|
|
7791
8197
|
updated_at?: string;
|
|
7792
8198
|
user_id: string;
|
|
7793
8199
|
};
|
|
@@ -7805,7 +8211,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
7805
8211
|
start_date?: string;
|
|
7806
8212
|
start_time?: string | null;
|
|
7807
8213
|
status?: string;
|
|
7808
|
-
tenant_id?: string;
|
|
7809
8214
|
updated_at?: string;
|
|
7810
8215
|
user_id?: string;
|
|
7811
8216
|
};
|
|
@@ -7813,13 +8218,13 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
7813
8218
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
7814
8219
|
columns: ["monteur_id"];
|
|
7815
8220
|
isOneToOne: false;
|
|
7816
|
-
referencedRelation: "
|
|
8221
|
+
referencedRelation: "profiles";
|
|
7817
8222
|
referencedColumns: ["id"];
|
|
7818
8223
|
}, {
|
|
7819
8224
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
7820
8225
|
columns: ["user_id"];
|
|
7821
8226
|
isOneToOne: false;
|
|
7822
|
-
referencedRelation: "
|
|
8227
|
+
referencedRelation: "profiles";
|
|
7823
8228
|
referencedColumns: ["id"];
|
|
7824
8229
|
}];
|
|
7825
8230
|
};
|
|
@@ -8687,6 +9092,45 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
8687
9092
|
};
|
|
8688
9093
|
Relationships: [];
|
|
8689
9094
|
};
|
|
9095
|
+
logistics_plan_queue: {
|
|
9096
|
+
Row: {
|
|
9097
|
+
attempts: number;
|
|
9098
|
+
claimed_at: string | null;
|
|
9099
|
+
enqueued_at: string;
|
|
9100
|
+
error: string | null;
|
|
9101
|
+
id: string;
|
|
9102
|
+
next_attempt_at: string;
|
|
9103
|
+
order_id: string;
|
|
9104
|
+
reason: string;
|
|
9105
|
+
status: string;
|
|
9106
|
+
updated_at: string;
|
|
9107
|
+
};
|
|
9108
|
+
Insert: {
|
|
9109
|
+
attempts?: number;
|
|
9110
|
+
claimed_at?: string | null;
|
|
9111
|
+
enqueued_at?: string;
|
|
9112
|
+
error?: string | null;
|
|
9113
|
+
id?: string;
|
|
9114
|
+
next_attempt_at?: string;
|
|
9115
|
+
order_id: string;
|
|
9116
|
+
reason?: string;
|
|
9117
|
+
status?: string;
|
|
9118
|
+
updated_at?: string;
|
|
9119
|
+
};
|
|
9120
|
+
Update: {
|
|
9121
|
+
attempts?: number;
|
|
9122
|
+
claimed_at?: string | null;
|
|
9123
|
+
enqueued_at?: string;
|
|
9124
|
+
error?: string | null;
|
|
9125
|
+
id?: string;
|
|
9126
|
+
next_attempt_at?: string;
|
|
9127
|
+
order_id?: string;
|
|
9128
|
+
reason?: string;
|
|
9129
|
+
status?: string;
|
|
9130
|
+
updated_at?: string;
|
|
9131
|
+
};
|
|
9132
|
+
Relationships: [];
|
|
9133
|
+
};
|
|
8690
9134
|
logistics_plan_runs: {
|
|
8691
9135
|
Row: {
|
|
8692
9136
|
created_at: string;
|
|
@@ -8762,6 +9206,24 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
8762
9206
|
referencedColumns: ["id"];
|
|
8763
9207
|
}];
|
|
8764
9208
|
};
|
|
9209
|
+
logistics_plan_settings: {
|
|
9210
|
+
Row: {
|
|
9211
|
+
key: string;
|
|
9212
|
+
updated_at: string;
|
|
9213
|
+
value: string;
|
|
9214
|
+
};
|
|
9215
|
+
Insert: {
|
|
9216
|
+
key: string;
|
|
9217
|
+
updated_at?: string;
|
|
9218
|
+
value: string;
|
|
9219
|
+
};
|
|
9220
|
+
Update: {
|
|
9221
|
+
key?: string;
|
|
9222
|
+
updated_at?: string;
|
|
9223
|
+
value?: string;
|
|
9224
|
+
};
|
|
9225
|
+
Relationships: [];
|
|
9226
|
+
};
|
|
8765
9227
|
logistics_rebuffer_state: {
|
|
8766
9228
|
Row: {
|
|
8767
9229
|
created_at: string;
|
|
@@ -9917,6 +10379,147 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
9917
10379
|
};
|
|
9918
10380
|
Relationships: [];
|
|
9919
10381
|
};
|
|
10382
|
+
material_usage: {
|
|
10383
|
+
Row: {
|
|
10384
|
+
created_at: string;
|
|
10385
|
+
id: string;
|
|
10386
|
+
material_name: string;
|
|
10387
|
+
monteur_id: string | null;
|
|
10388
|
+
price_at_time: number;
|
|
10389
|
+
quantity_used: number;
|
|
10390
|
+
updated_at: string;
|
|
10391
|
+
van_inventory_id: string | null;
|
|
10392
|
+
work_order_id: string;
|
|
10393
|
+
};
|
|
10394
|
+
Insert: {
|
|
10395
|
+
created_at?: string;
|
|
10396
|
+
id?: string;
|
|
10397
|
+
material_name: string;
|
|
10398
|
+
monteur_id?: string | null;
|
|
10399
|
+
price_at_time?: number;
|
|
10400
|
+
quantity_used?: number;
|
|
10401
|
+
updated_at?: string;
|
|
10402
|
+
van_inventory_id?: string | null;
|
|
10403
|
+
work_order_id: string;
|
|
10404
|
+
};
|
|
10405
|
+
Update: {
|
|
10406
|
+
created_at?: string;
|
|
10407
|
+
id?: string;
|
|
10408
|
+
material_name?: string;
|
|
10409
|
+
monteur_id?: string | null;
|
|
10410
|
+
price_at_time?: number;
|
|
10411
|
+
quantity_used?: number;
|
|
10412
|
+
updated_at?: string;
|
|
10413
|
+
van_inventory_id?: string | null;
|
|
10414
|
+
work_order_id?: string;
|
|
10415
|
+
};
|
|
10416
|
+
Relationships: [{
|
|
10417
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
10418
|
+
columns: ["monteur_id"];
|
|
10419
|
+
isOneToOne: false;
|
|
10420
|
+
referencedRelation: "profiles";
|
|
10421
|
+
referencedColumns: ["id"];
|
|
10422
|
+
}, {
|
|
10423
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
10424
|
+
columns: ["van_inventory_id"];
|
|
10425
|
+
isOneToOne: false;
|
|
10426
|
+
referencedRelation: "van_inventories";
|
|
10427
|
+
referencedColumns: ["id"];
|
|
10428
|
+
}, {
|
|
10429
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
10430
|
+
columns: ["work_order_id"];
|
|
10431
|
+
isOneToOne: false;
|
|
10432
|
+
referencedRelation: "work_orders";
|
|
10433
|
+
referencedColumns: ["id"];
|
|
10434
|
+
}];
|
|
10435
|
+
};
|
|
10436
|
+
medewerker_details: {
|
|
10437
|
+
Row: {
|
|
10438
|
+
color: string | null;
|
|
10439
|
+
created_at: string;
|
|
10440
|
+
hours_fri: number | null;
|
|
10441
|
+
hours_mon: number | null;
|
|
10442
|
+
hours_thu: number | null;
|
|
10443
|
+
hours_tue: number | null;
|
|
10444
|
+
hours_wed: number | null;
|
|
10445
|
+
id: string;
|
|
10446
|
+
is_active: boolean;
|
|
10447
|
+
leave_balance_hours: number;
|
|
10448
|
+
persnr: string | null;
|
|
10449
|
+
phone: string | null;
|
|
10450
|
+
profile_id: string;
|
|
10451
|
+
updated_at: string;
|
|
10452
|
+
};
|
|
10453
|
+
Insert: {
|
|
10454
|
+
color?: string | null;
|
|
10455
|
+
created_at?: string;
|
|
10456
|
+
hours_fri?: number | null;
|
|
10457
|
+
hours_mon?: number | null;
|
|
10458
|
+
hours_thu?: number | null;
|
|
10459
|
+
hours_tue?: number | null;
|
|
10460
|
+
hours_wed?: number | null;
|
|
10461
|
+
id?: string;
|
|
10462
|
+
is_active?: boolean;
|
|
10463
|
+
leave_balance_hours?: number;
|
|
10464
|
+
persnr?: string | null;
|
|
10465
|
+
phone?: string | null;
|
|
10466
|
+
profile_id: string;
|
|
10467
|
+
updated_at?: string;
|
|
10468
|
+
};
|
|
10469
|
+
Update: {
|
|
10470
|
+
color?: string | null;
|
|
10471
|
+
created_at?: string;
|
|
10472
|
+
hours_fri?: number | null;
|
|
10473
|
+
hours_mon?: number | null;
|
|
10474
|
+
hours_thu?: number | null;
|
|
10475
|
+
hours_tue?: number | null;
|
|
10476
|
+
hours_wed?: number | null;
|
|
10477
|
+
id?: string;
|
|
10478
|
+
is_active?: boolean;
|
|
10479
|
+
leave_balance_hours?: number;
|
|
10480
|
+
persnr?: string | null;
|
|
10481
|
+
phone?: string | null;
|
|
10482
|
+
profile_id?: string;
|
|
10483
|
+
updated_at?: string;
|
|
10484
|
+
};
|
|
10485
|
+
Relationships: [{
|
|
10486
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
10487
|
+
columns: ["profile_id"];
|
|
10488
|
+
isOneToOne: true;
|
|
10489
|
+
referencedRelation: "profiles";
|
|
10490
|
+
referencedColumns: ["id"];
|
|
10491
|
+
}];
|
|
10492
|
+
};
|
|
10493
|
+
module_features: {
|
|
10494
|
+
Row: {
|
|
10495
|
+
created_at: string;
|
|
10496
|
+
feature_id: string;
|
|
10497
|
+
id: string;
|
|
10498
|
+
is_active: boolean;
|
|
10499
|
+
last_seen_at: string;
|
|
10500
|
+
module_id: string;
|
|
10501
|
+
name: string;
|
|
10502
|
+
};
|
|
10503
|
+
Insert: {
|
|
10504
|
+
created_at?: string;
|
|
10505
|
+
feature_id: string;
|
|
10506
|
+
id?: string;
|
|
10507
|
+
is_active?: boolean;
|
|
10508
|
+
last_seen_at?: string;
|
|
10509
|
+
module_id: string;
|
|
10510
|
+
name: string;
|
|
10511
|
+
};
|
|
10512
|
+
Update: {
|
|
10513
|
+
created_at?: string;
|
|
10514
|
+
feature_id?: string;
|
|
10515
|
+
id?: string;
|
|
10516
|
+
is_active?: boolean;
|
|
10517
|
+
last_seen_at?: string;
|
|
10518
|
+
module_id?: string;
|
|
10519
|
+
name?: string;
|
|
10520
|
+
};
|
|
10521
|
+
Relationships: [];
|
|
10522
|
+
};
|
|
9920
10523
|
module_permissions: {
|
|
9921
10524
|
Row: {
|
|
9922
10525
|
created_at: string;
|
|
@@ -9947,6 +10550,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
9947
10550
|
module_registry: {
|
|
9948
10551
|
Row: {
|
|
9949
10552
|
created_at: string;
|
|
10553
|
+
enforce: boolean;
|
|
9950
10554
|
is_active: boolean;
|
|
9951
10555
|
last_seen_at: string;
|
|
9952
10556
|
module_id: string;
|
|
@@ -9956,6 +10560,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
9956
10560
|
};
|
|
9957
10561
|
Insert: {
|
|
9958
10562
|
created_at?: string;
|
|
10563
|
+
enforce?: boolean;
|
|
9959
10564
|
is_active?: boolean;
|
|
9960
10565
|
last_seen_at?: string;
|
|
9961
10566
|
module_id: string;
|
|
@@ -9965,6 +10570,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
9965
10570
|
};
|
|
9966
10571
|
Update: {
|
|
9967
10572
|
created_at?: string;
|
|
10573
|
+
enforce?: boolean;
|
|
9968
10574
|
is_active?: boolean;
|
|
9969
10575
|
last_seen_at?: string;
|
|
9970
10576
|
module_id?: string;
|
|
@@ -10025,63 +10631,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
10025
10631
|
};
|
|
10026
10632
|
Relationships: [];
|
|
10027
10633
|
};
|
|
10028
|
-
monteurs: {
|
|
10029
|
-
Row: {
|
|
10030
|
-
avatar_url: string | null;
|
|
10031
|
-
color: string | null;
|
|
10032
|
-
created_at: string;
|
|
10033
|
-
email: string | null;
|
|
10034
|
-
id: string;
|
|
10035
|
-
is_active: boolean;
|
|
10036
|
-
leave_balance_hours: number;
|
|
10037
|
-
name: string;
|
|
10038
|
-
persnr: number | null;
|
|
10039
|
-
phone: string | null;
|
|
10040
|
-
role: string;
|
|
10041
|
-
tenant_id: string;
|
|
10042
|
-
updated_at: string;
|
|
10043
|
-
user_id: string | null;
|
|
10044
|
-
};
|
|
10045
|
-
Insert: {
|
|
10046
|
-
avatar_url?: string | null;
|
|
10047
|
-
color?: string | null;
|
|
10048
|
-
created_at?: string;
|
|
10049
|
-
email?: string | null;
|
|
10050
|
-
id?: string;
|
|
10051
|
-
is_active?: boolean;
|
|
10052
|
-
leave_balance_hours?: number;
|
|
10053
|
-
name: string;
|
|
10054
|
-
persnr?: number | null;
|
|
10055
|
-
phone?: string | null;
|
|
10056
|
-
role?: string;
|
|
10057
|
-
tenant_id: string;
|
|
10058
|
-
updated_at?: string;
|
|
10059
|
-
user_id?: string | null;
|
|
10060
|
-
};
|
|
10061
|
-
Update: {
|
|
10062
|
-
avatar_url?: string | null;
|
|
10063
|
-
color?: string | null;
|
|
10064
|
-
created_at?: string;
|
|
10065
|
-
email?: string | null;
|
|
10066
|
-
id?: string;
|
|
10067
|
-
is_active?: boolean;
|
|
10068
|
-
leave_balance_hours?: number;
|
|
10069
|
-
name?: string;
|
|
10070
|
-
persnr?: number | null;
|
|
10071
|
-
phone?: string | null;
|
|
10072
|
-
role?: string;
|
|
10073
|
-
tenant_id?: string;
|
|
10074
|
-
updated_at?: string;
|
|
10075
|
-
user_id?: string | null;
|
|
10076
|
-
};
|
|
10077
|
-
Relationships: [{
|
|
10078
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
10079
|
-
columns: ["tenant_id"];
|
|
10080
|
-
isOneToOne: false;
|
|
10081
|
-
referencedRelation: "tenants";
|
|
10082
|
-
referencedColumns: ["id"];
|
|
10083
|
-
}];
|
|
10084
|
-
};
|
|
10085
10634
|
nmbrs_component_mapping: {
|
|
10086
10635
|
Row: {
|
|
10087
10636
|
created_at: string;
|
|
@@ -10152,13 +10701,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
10152
10701
|
nmbrs_employee_number?: string;
|
|
10153
10702
|
updated_at?: string;
|
|
10154
10703
|
};
|
|
10155
|
-
Relationships: [
|
|
10156
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10157
|
-
columns: ["monteur_id"];
|
|
10158
|
-
isOneToOne: true;
|
|
10159
|
-
referencedRelation: "monteurs";
|
|
10160
|
-
referencedColumns: ["id"];
|
|
10161
|
-
}];
|
|
10704
|
+
Relationships: [];
|
|
10162
10705
|
};
|
|
10163
10706
|
nmbrs_export_lines: {
|
|
10164
10707
|
Row: {
|
|
@@ -10207,12 +10750,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
10207
10750
|
wage_code?: string;
|
|
10208
10751
|
};
|
|
10209
10752
|
Relationships: [{
|
|
10210
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10211
|
-
columns: ["monteur_id"];
|
|
10212
|
-
isOneToOne: false;
|
|
10213
|
-
referencedRelation: "monteurs";
|
|
10214
|
-
referencedColumns: ["id"];
|
|
10215
|
-
}, {
|
|
10216
10753
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10217
10754
|
columns: ["run_id"];
|
|
10218
10755
|
isOneToOne: false;
|
|
@@ -11040,6 +11577,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
11040
11577
|
error_message: string | null;
|
|
11041
11578
|
id: string;
|
|
11042
11579
|
invoice_number: string | null;
|
|
11580
|
+
next_attempt_at: string;
|
|
11043
11581
|
order_id: string;
|
|
11044
11582
|
processed_at: string | null;
|
|
11045
11583
|
status: string;
|
|
@@ -11051,6 +11589,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
11051
11589
|
error_message?: string | null;
|
|
11052
11590
|
id?: string;
|
|
11053
11591
|
invoice_number?: string | null;
|
|
11592
|
+
next_attempt_at?: string;
|
|
11054
11593
|
order_id: string;
|
|
11055
11594
|
processed_at?: string | null;
|
|
11056
11595
|
status?: string;
|
|
@@ -11062,6 +11601,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
11062
11601
|
error_message?: string | null;
|
|
11063
11602
|
id?: string;
|
|
11064
11603
|
invoice_number?: string | null;
|
|
11604
|
+
next_attempt_at?: string;
|
|
11065
11605
|
order_id?: string;
|
|
11066
11606
|
processed_at?: string | null;
|
|
11067
11607
|
status?: string;
|
|
@@ -11243,6 +11783,8 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
11243
11783
|
orders: {
|
|
11244
11784
|
Row: {
|
|
11245
11785
|
buffer_id: string | null;
|
|
11786
|
+
cancel_reason: string | null;
|
|
11787
|
+
cancelled_at: string | null;
|
|
11246
11788
|
created_at: string;
|
|
11247
11789
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
11248
11790
|
customer_id: string | null;
|
|
@@ -11265,6 +11807,8 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
11265
11807
|
};
|
|
11266
11808
|
Insert: {
|
|
11267
11809
|
buffer_id?: string | null;
|
|
11810
|
+
cancel_reason?: string | null;
|
|
11811
|
+
cancelled_at?: string | null;
|
|
11268
11812
|
created_at?: string;
|
|
11269
11813
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11270
11814
|
customer_id?: string | null;
|
|
@@ -11287,6 +11831,8 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
11287
11831
|
};
|
|
11288
11832
|
Update: {
|
|
11289
11833
|
buffer_id?: string | null;
|
|
11834
|
+
cancel_reason?: string | null;
|
|
11835
|
+
cancelled_at?: string | null;
|
|
11290
11836
|
created_at?: string;
|
|
11291
11837
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11292
11838
|
customer_id?: string | null;
|
|
@@ -12600,6 +13146,9 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
12600
13146
|
created_at: string;
|
|
12601
13147
|
id: string;
|
|
12602
13148
|
laatst_gezien: string;
|
|
13149
|
+
laatste_fout: string | null;
|
|
13150
|
+
laatste_request_id: number | null;
|
|
13151
|
+
mislukte_posts: number;
|
|
12603
13152
|
tick_sleutel: string;
|
|
12604
13153
|
updated_at: string;
|
|
12605
13154
|
};
|
|
@@ -12609,6 +13158,9 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
12609
13158
|
created_at?: string;
|
|
12610
13159
|
id?: string;
|
|
12611
13160
|
laatst_gezien?: string;
|
|
13161
|
+
laatste_fout?: string | null;
|
|
13162
|
+
laatste_request_id?: number | null;
|
|
13163
|
+
mislukte_posts?: number;
|
|
12612
13164
|
tick_sleutel?: string;
|
|
12613
13165
|
updated_at?: string;
|
|
12614
13166
|
};
|
|
@@ -12618,6 +13170,9 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
12618
13170
|
created_at?: string;
|
|
12619
13171
|
id?: string;
|
|
12620
13172
|
laatst_gezien?: string;
|
|
13173
|
+
laatste_fout?: string | null;
|
|
13174
|
+
laatste_request_id?: number | null;
|
|
13175
|
+
mislukte_posts?: number;
|
|
12621
13176
|
tick_sleutel?: string;
|
|
12622
13177
|
updated_at?: string;
|
|
12623
13178
|
};
|
|
@@ -13340,6 +13895,66 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
13340
13895
|
};
|
|
13341
13896
|
Relationships: [];
|
|
13342
13897
|
};
|
|
13898
|
+
profile_modules: {
|
|
13899
|
+
Row: {
|
|
13900
|
+
created_at: string;
|
|
13901
|
+
id: string;
|
|
13902
|
+
module_id: string;
|
|
13903
|
+
profile_id: string;
|
|
13904
|
+
};
|
|
13905
|
+
Insert: {
|
|
13906
|
+
created_at?: string;
|
|
13907
|
+
id?: string;
|
|
13908
|
+
module_id: string;
|
|
13909
|
+
profile_id: string;
|
|
13910
|
+
};
|
|
13911
|
+
Update: {
|
|
13912
|
+
created_at?: string;
|
|
13913
|
+
id?: string;
|
|
13914
|
+
module_id?: string;
|
|
13915
|
+
profile_id?: string;
|
|
13916
|
+
};
|
|
13917
|
+
Relationships: [{
|
|
13918
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
13919
|
+
columns: ["profile_id"];
|
|
13920
|
+
isOneToOne: false;
|
|
13921
|
+
referencedRelation: "profiles_org";
|
|
13922
|
+
referencedColumns: ["id"];
|
|
13923
|
+
}];
|
|
13924
|
+
};
|
|
13925
|
+
profile_roles: {
|
|
13926
|
+
Row: {
|
|
13927
|
+
created_at: string;
|
|
13928
|
+
id: string;
|
|
13929
|
+
profile_id: string;
|
|
13930
|
+
role_id: string;
|
|
13931
|
+
};
|
|
13932
|
+
Insert: {
|
|
13933
|
+
created_at?: string;
|
|
13934
|
+
id?: string;
|
|
13935
|
+
profile_id: string;
|
|
13936
|
+
role_id: string;
|
|
13937
|
+
};
|
|
13938
|
+
Update: {
|
|
13939
|
+
created_at?: string;
|
|
13940
|
+
id?: string;
|
|
13941
|
+
profile_id?: string;
|
|
13942
|
+
role_id?: string;
|
|
13943
|
+
};
|
|
13944
|
+
Relationships: [{
|
|
13945
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
13946
|
+
columns: ["profile_id"];
|
|
13947
|
+
isOneToOne: false;
|
|
13948
|
+
referencedRelation: "profiles_org";
|
|
13949
|
+
referencedColumns: ["id"];
|
|
13950
|
+
}, {
|
|
13951
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
13952
|
+
columns: ["role_id"];
|
|
13953
|
+
isOneToOne: false;
|
|
13954
|
+
referencedRelation: "roles";
|
|
13955
|
+
referencedColumns: ["id"];
|
|
13956
|
+
}];
|
|
13957
|
+
};
|
|
13343
13958
|
profiles: {
|
|
13344
13959
|
Row: {
|
|
13345
13960
|
address: string | null;
|
|
@@ -13385,6 +14000,39 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
13385
14000
|
referencedColumns: ["id"];
|
|
13386
14001
|
}];
|
|
13387
14002
|
};
|
|
14003
|
+
profiles_org: {
|
|
14004
|
+
Row: {
|
|
14005
|
+
created_at: string;
|
|
14006
|
+
id: string;
|
|
14007
|
+
is_default: boolean;
|
|
14008
|
+
name: string;
|
|
14009
|
+
tenant_id: string | null;
|
|
14010
|
+
updated_at: string;
|
|
14011
|
+
};
|
|
14012
|
+
Insert: {
|
|
14013
|
+
created_at?: string;
|
|
14014
|
+
id?: string;
|
|
14015
|
+
is_default?: boolean;
|
|
14016
|
+
name: string;
|
|
14017
|
+
tenant_id?: string | null;
|
|
14018
|
+
updated_at?: string;
|
|
14019
|
+
};
|
|
14020
|
+
Update: {
|
|
14021
|
+
created_at?: string;
|
|
14022
|
+
id?: string;
|
|
14023
|
+
is_default?: boolean;
|
|
14024
|
+
name?: string;
|
|
14025
|
+
tenant_id?: string | null;
|
|
14026
|
+
updated_at?: string;
|
|
14027
|
+
};
|
|
14028
|
+
Relationships: [{
|
|
14029
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
14030
|
+
columns: ["tenant_id"];
|
|
14031
|
+
isOneToOne: false;
|
|
14032
|
+
referencedRelation: "tenants";
|
|
14033
|
+
referencedColumns: ["id"];
|
|
14034
|
+
}];
|
|
14035
|
+
};
|
|
13388
14036
|
projects: {
|
|
13389
14037
|
Row: {
|
|
13390
14038
|
contact_name: string | null;
|
|
@@ -14126,6 +14774,96 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
14126
14774
|
referencedColumns: ["id"];
|
|
14127
14775
|
}];
|
|
14128
14776
|
};
|
|
14777
|
+
role_assignments: {
|
|
14778
|
+
Row: {
|
|
14779
|
+
created_at: string;
|
|
14780
|
+
id: string;
|
|
14781
|
+
role_id: string;
|
|
14782
|
+
user_id: string;
|
|
14783
|
+
};
|
|
14784
|
+
Insert: {
|
|
14785
|
+
created_at?: string;
|
|
14786
|
+
id?: string;
|
|
14787
|
+
role_id: string;
|
|
14788
|
+
user_id: string;
|
|
14789
|
+
};
|
|
14790
|
+
Update: {
|
|
14791
|
+
created_at?: string;
|
|
14792
|
+
id?: string;
|
|
14793
|
+
role_id?: string;
|
|
14794
|
+
user_id?: string;
|
|
14795
|
+
};
|
|
14796
|
+
Relationships: [{
|
|
14797
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
14798
|
+
columns: ["role_id"];
|
|
14799
|
+
isOneToOne: false;
|
|
14800
|
+
referencedRelation: "roles";
|
|
14801
|
+
referencedColumns: ["id"];
|
|
14802
|
+
}];
|
|
14803
|
+
};
|
|
14804
|
+
role_permissions: {
|
|
14805
|
+
Row: {
|
|
14806
|
+
can_edit: boolean;
|
|
14807
|
+
can_view: boolean;
|
|
14808
|
+
feature_id: string;
|
|
14809
|
+
id: string;
|
|
14810
|
+
module_id: string;
|
|
14811
|
+
role_id: string;
|
|
14812
|
+
updated_at: string;
|
|
14813
|
+
};
|
|
14814
|
+
Insert: {
|
|
14815
|
+
can_edit?: boolean;
|
|
14816
|
+
can_view?: boolean;
|
|
14817
|
+
feature_id?: string;
|
|
14818
|
+
id?: string;
|
|
14819
|
+
module_id: string;
|
|
14820
|
+
role_id: string;
|
|
14821
|
+
updated_at?: string;
|
|
14822
|
+
};
|
|
14823
|
+
Update: {
|
|
14824
|
+
can_edit?: boolean;
|
|
14825
|
+
can_view?: boolean;
|
|
14826
|
+
feature_id?: string;
|
|
14827
|
+
id?: string;
|
|
14828
|
+
module_id?: string;
|
|
14829
|
+
role_id?: string;
|
|
14830
|
+
updated_at?: string;
|
|
14831
|
+
};
|
|
14832
|
+
Relationships: [{
|
|
14833
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
14834
|
+
columns: ["role_id"];
|
|
14835
|
+
isOneToOne: false;
|
|
14836
|
+
referencedRelation: "roles";
|
|
14837
|
+
referencedColumns: ["id"];
|
|
14838
|
+
}];
|
|
14839
|
+
};
|
|
14840
|
+
roles: {
|
|
14841
|
+
Row: {
|
|
14842
|
+
created_at: string;
|
|
14843
|
+
id: string;
|
|
14844
|
+
is_protected: boolean;
|
|
14845
|
+
key: string;
|
|
14846
|
+
name: string;
|
|
14847
|
+
updated_at: string;
|
|
14848
|
+
};
|
|
14849
|
+
Insert: {
|
|
14850
|
+
created_at?: string;
|
|
14851
|
+
id?: string;
|
|
14852
|
+
is_protected?: boolean;
|
|
14853
|
+
key: string;
|
|
14854
|
+
name: string;
|
|
14855
|
+
updated_at?: string;
|
|
14856
|
+
};
|
|
14857
|
+
Update: {
|
|
14858
|
+
created_at?: string;
|
|
14859
|
+
id?: string;
|
|
14860
|
+
is_protected?: boolean;
|
|
14861
|
+
key?: string;
|
|
14862
|
+
name?: string;
|
|
14863
|
+
updated_at?: string;
|
|
14864
|
+
};
|
|
14865
|
+
Relationships: [];
|
|
14866
|
+
};
|
|
14129
14867
|
rooms: {
|
|
14130
14868
|
Row: {
|
|
14131
14869
|
capacity: number;
|
|
@@ -14469,6 +15207,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
14469
15207
|
type: string;
|
|
14470
15208
|
updated_at: string;
|
|
14471
15209
|
vereist_medewerker: boolean;
|
|
15210
|
+
werkplek: string | null;
|
|
14472
15211
|
};
|
|
14473
15212
|
Insert: {
|
|
14474
15213
|
actief?: boolean;
|
|
@@ -14482,6 +15221,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
14482
15221
|
type?: string;
|
|
14483
15222
|
updated_at?: string;
|
|
14484
15223
|
vereist_medewerker?: boolean;
|
|
15224
|
+
werkplek?: string | null;
|
|
14485
15225
|
};
|
|
14486
15226
|
Update: {
|
|
14487
15227
|
actief?: boolean;
|
|
@@ -14495,9 +15235,46 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
14495
15235
|
type?: string;
|
|
14496
15236
|
updated_at?: string;
|
|
14497
15237
|
vereist_medewerker?: boolean;
|
|
15238
|
+
werkplek?: string | null;
|
|
14498
15239
|
};
|
|
14499
15240
|
Relationships: [];
|
|
14500
15241
|
};
|
|
15242
|
+
sick_periods: {
|
|
15243
|
+
Row: {
|
|
15244
|
+
created_at: string;
|
|
15245
|
+
employee_id: string;
|
|
15246
|
+
end_date: string | null;
|
|
15247
|
+
id: string;
|
|
15248
|
+
notes: string | null;
|
|
15249
|
+
start_date: string;
|
|
15250
|
+
updated_at: string;
|
|
15251
|
+
};
|
|
15252
|
+
Insert: {
|
|
15253
|
+
created_at?: string;
|
|
15254
|
+
employee_id: string;
|
|
15255
|
+
end_date?: string | null;
|
|
15256
|
+
id?: string;
|
|
15257
|
+
notes?: string | null;
|
|
15258
|
+
start_date: string;
|
|
15259
|
+
updated_at?: string;
|
|
15260
|
+
};
|
|
15261
|
+
Update: {
|
|
15262
|
+
created_at?: string;
|
|
15263
|
+
employee_id?: string;
|
|
15264
|
+
end_date?: string | null;
|
|
15265
|
+
id?: string;
|
|
15266
|
+
notes?: string | null;
|
|
15267
|
+
start_date?: string;
|
|
15268
|
+
updated_at?: string;
|
|
15269
|
+
};
|
|
15270
|
+
Relationships: [{
|
|
15271
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
15272
|
+
columns: ["employee_id"];
|
|
15273
|
+
isOneToOne: false;
|
|
15274
|
+
referencedRelation: "profiles";
|
|
15275
|
+
referencedColumns: ["id"];
|
|
15276
|
+
}];
|
|
15277
|
+
};
|
|
14501
15278
|
sidebar_config: {
|
|
14502
15279
|
Row: {
|
|
14503
15280
|
id: string;
|
|
@@ -14795,6 +15572,54 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
14795
15572
|
};
|
|
14796
15573
|
Relationships: [];
|
|
14797
15574
|
};
|
|
15575
|
+
time_compensation_entries: {
|
|
15576
|
+
Row: {
|
|
15577
|
+
created_at: string;
|
|
15578
|
+
employee_id: string;
|
|
15579
|
+
entry_date: string;
|
|
15580
|
+
id: string;
|
|
15581
|
+
km: number;
|
|
15582
|
+
meal_allowance: number;
|
|
15583
|
+
notes: string | null;
|
|
15584
|
+
standby_evening: number;
|
|
15585
|
+
standby_weekend: number;
|
|
15586
|
+
tvt_change: number;
|
|
15587
|
+
updated_at: string;
|
|
15588
|
+
};
|
|
15589
|
+
Insert: {
|
|
15590
|
+
created_at?: string;
|
|
15591
|
+
employee_id: string;
|
|
15592
|
+
entry_date: string;
|
|
15593
|
+
id?: string;
|
|
15594
|
+
km?: number;
|
|
15595
|
+
meal_allowance?: number;
|
|
15596
|
+
notes?: string | null;
|
|
15597
|
+
standby_evening?: number;
|
|
15598
|
+
standby_weekend?: number;
|
|
15599
|
+
tvt_change?: number;
|
|
15600
|
+
updated_at?: string;
|
|
15601
|
+
};
|
|
15602
|
+
Update: {
|
|
15603
|
+
created_at?: string;
|
|
15604
|
+
employee_id?: string;
|
|
15605
|
+
entry_date?: string;
|
|
15606
|
+
id?: string;
|
|
15607
|
+
km?: number;
|
|
15608
|
+
meal_allowance?: number;
|
|
15609
|
+
notes?: string | null;
|
|
15610
|
+
standby_evening?: number;
|
|
15611
|
+
standby_weekend?: number;
|
|
15612
|
+
tvt_change?: number;
|
|
15613
|
+
updated_at?: string;
|
|
15614
|
+
};
|
|
15615
|
+
Relationships: [{
|
|
15616
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
15617
|
+
columns: ["employee_id"];
|
|
15618
|
+
isOneToOne: false;
|
|
15619
|
+
referencedRelation: "profiles";
|
|
15620
|
+
referencedColumns: ["id"];
|
|
15621
|
+
}];
|
|
15622
|
+
};
|
|
14798
15623
|
time_entries: {
|
|
14799
15624
|
Row: {
|
|
14800
15625
|
created_at: string;
|
|
@@ -14829,65 +15654,170 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
14829
15654
|
undertime?: number;
|
|
14830
15655
|
updated_at?: string;
|
|
14831
15656
|
};
|
|
15657
|
+
Relationships: [];
|
|
15658
|
+
};
|
|
15659
|
+
time_log_week_approvals: {
|
|
15660
|
+
Row: {
|
|
15661
|
+
approved_at: string | null;
|
|
15662
|
+
approved_by: string | null;
|
|
15663
|
+
created_at: string;
|
|
15664
|
+
employee_id: string;
|
|
15665
|
+
id: string;
|
|
15666
|
+
locked: boolean;
|
|
15667
|
+
notes: string | null;
|
|
15668
|
+
status: string;
|
|
15669
|
+
submitted_at: string | null;
|
|
15670
|
+
updated_at: string;
|
|
15671
|
+
week_start: string;
|
|
15672
|
+
};
|
|
15673
|
+
Insert: {
|
|
15674
|
+
approved_at?: string | null;
|
|
15675
|
+
approved_by?: string | null;
|
|
15676
|
+
created_at?: string;
|
|
15677
|
+
employee_id: string;
|
|
15678
|
+
id?: string;
|
|
15679
|
+
locked?: boolean;
|
|
15680
|
+
notes?: string | null;
|
|
15681
|
+
status?: string;
|
|
15682
|
+
submitted_at?: string | null;
|
|
15683
|
+
updated_at?: string;
|
|
15684
|
+
week_start: string;
|
|
15685
|
+
};
|
|
15686
|
+
Update: {
|
|
15687
|
+
approved_at?: string | null;
|
|
15688
|
+
approved_by?: string | null;
|
|
15689
|
+
created_at?: string;
|
|
15690
|
+
employee_id?: string;
|
|
15691
|
+
id?: string;
|
|
15692
|
+
locked?: boolean;
|
|
15693
|
+
notes?: string | null;
|
|
15694
|
+
status?: string;
|
|
15695
|
+
submitted_at?: string | null;
|
|
15696
|
+
updated_at?: string;
|
|
15697
|
+
week_start?: string;
|
|
15698
|
+
};
|
|
14832
15699
|
Relationships: [{
|
|
14833
|
-
foreignKeyName: "
|
|
15700
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
14834
15701
|
columns: ["employee_id"];
|
|
14835
15702
|
isOneToOne: false;
|
|
14836
|
-
referencedRelation: "
|
|
15703
|
+
referencedRelation: "profiles";
|
|
14837
15704
|
referencedColumns: ["id"];
|
|
14838
15705
|
}];
|
|
14839
15706
|
};
|
|
14840
15707
|
time_logs: {
|
|
14841
15708
|
Row: {
|
|
15709
|
+
auto_stop_reason: string | null;
|
|
15710
|
+
auto_stopped: boolean;
|
|
14842
15711
|
created_at: string;
|
|
15712
|
+
current_latitude: number | null;
|
|
15713
|
+
current_longitude: number | null;
|
|
15714
|
+
current_position_updated_at: string | null;
|
|
14843
15715
|
employee_id: string;
|
|
15716
|
+
end_latitude: number | null;
|
|
15717
|
+
end_longitude: number | null;
|
|
14844
15718
|
end_time: string | null;
|
|
15719
|
+
eta_distance_km: number | null;
|
|
15720
|
+
eta_minutes: number | null;
|
|
15721
|
+
eta_updated_at: string | null;
|
|
15722
|
+
hour_category: string | null;
|
|
14845
15723
|
id: string;
|
|
15724
|
+
last_reminder_at: string | null;
|
|
14846
15725
|
notes: string | null;
|
|
14847
15726
|
overtime_hours: number;
|
|
14848
15727
|
overtime_type: string | null;
|
|
14849
15728
|
regular_hours: number;
|
|
15729
|
+
reminder_count: number;
|
|
15730
|
+
requires_review: boolean;
|
|
15731
|
+
start_latitude: number | null;
|
|
15732
|
+
start_longitude: number | null;
|
|
14850
15733
|
start_time: string;
|
|
14851
15734
|
travel_cost: number | null;
|
|
14852
15735
|
travel_distance_km: number | null;
|
|
15736
|
+
travel_duration_min: number | null;
|
|
15737
|
+
travel_time_minutes: number | null;
|
|
14853
15738
|
type: string;
|
|
14854
15739
|
updated_at: string;
|
|
15740
|
+
work_order_id: string | null;
|
|
14855
15741
|
};
|
|
14856
15742
|
Insert: {
|
|
15743
|
+
auto_stop_reason?: string | null;
|
|
15744
|
+
auto_stopped?: boolean;
|
|
14857
15745
|
created_at?: string;
|
|
15746
|
+
current_latitude?: number | null;
|
|
15747
|
+
current_longitude?: number | null;
|
|
15748
|
+
current_position_updated_at?: string | null;
|
|
14858
15749
|
employee_id: string;
|
|
15750
|
+
end_latitude?: number | null;
|
|
15751
|
+
end_longitude?: number | null;
|
|
14859
15752
|
end_time?: string | null;
|
|
15753
|
+
eta_distance_km?: number | null;
|
|
15754
|
+
eta_minutes?: number | null;
|
|
15755
|
+
eta_updated_at?: string | null;
|
|
15756
|
+
hour_category?: string | null;
|
|
14860
15757
|
id?: string;
|
|
15758
|
+
last_reminder_at?: string | null;
|
|
14861
15759
|
notes?: string | null;
|
|
14862
15760
|
overtime_hours?: number;
|
|
14863
15761
|
overtime_type?: string | null;
|
|
14864
15762
|
regular_hours?: number;
|
|
15763
|
+
reminder_count?: number;
|
|
15764
|
+
requires_review?: boolean;
|
|
15765
|
+
start_latitude?: number | null;
|
|
15766
|
+
start_longitude?: number | null;
|
|
14865
15767
|
start_time?: string;
|
|
14866
15768
|
travel_cost?: number | null;
|
|
14867
15769
|
travel_distance_km?: number | null;
|
|
15770
|
+
travel_duration_min?: number | null;
|
|
15771
|
+
travel_time_minutes?: number | null;
|
|
14868
15772
|
type: string;
|
|
14869
15773
|
updated_at?: string;
|
|
15774
|
+
work_order_id?: string | null;
|
|
14870
15775
|
};
|
|
14871
15776
|
Update: {
|
|
15777
|
+
auto_stop_reason?: string | null;
|
|
15778
|
+
auto_stopped?: boolean;
|
|
14872
15779
|
created_at?: string;
|
|
15780
|
+
current_latitude?: number | null;
|
|
15781
|
+
current_longitude?: number | null;
|
|
15782
|
+
current_position_updated_at?: string | null;
|
|
14873
15783
|
employee_id?: string;
|
|
15784
|
+
end_latitude?: number | null;
|
|
15785
|
+
end_longitude?: number | null;
|
|
14874
15786
|
end_time?: string | null;
|
|
15787
|
+
eta_distance_km?: number | null;
|
|
15788
|
+
eta_minutes?: number | null;
|
|
15789
|
+
eta_updated_at?: string | null;
|
|
15790
|
+
hour_category?: string | null;
|
|
14875
15791
|
id?: string;
|
|
15792
|
+
last_reminder_at?: string | null;
|
|
14876
15793
|
notes?: string | null;
|
|
14877
15794
|
overtime_hours?: number;
|
|
14878
15795
|
overtime_type?: string | null;
|
|
14879
15796
|
regular_hours?: number;
|
|
15797
|
+
reminder_count?: number;
|
|
15798
|
+
requires_review?: boolean;
|
|
15799
|
+
start_latitude?: number | null;
|
|
15800
|
+
start_longitude?: number | null;
|
|
14880
15801
|
start_time?: string;
|
|
14881
15802
|
travel_cost?: number | null;
|
|
14882
15803
|
travel_distance_km?: number | null;
|
|
15804
|
+
travel_duration_min?: number | null;
|
|
15805
|
+
travel_time_minutes?: number | null;
|
|
14883
15806
|
type?: string;
|
|
14884
15807
|
updated_at?: string;
|
|
15808
|
+
work_order_id?: string | null;
|
|
14885
15809
|
};
|
|
14886
15810
|
Relationships: [{
|
|
14887
15811
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
14888
15812
|
columns: ["employee_id"];
|
|
14889
15813
|
isOneToOne: false;
|
|
14890
|
-
referencedRelation: "
|
|
15814
|
+
referencedRelation: "profiles";
|
|
15815
|
+
referencedColumns: ["id"];
|
|
15816
|
+
}, {
|
|
15817
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
15818
|
+
columns: ["work_order_id"];
|
|
15819
|
+
isOneToOne: false;
|
|
15820
|
+
referencedRelation: "work_orders";
|
|
14891
15821
|
referencedColumns: ["id"];
|
|
14892
15822
|
}];
|
|
14893
15823
|
};
|
|
@@ -14926,7 +15856,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
14926
15856
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
14927
15857
|
columns: ["employee_id"];
|
|
14928
15858
|
isOneToOne: false;
|
|
14929
|
-
referencedRelation: "
|
|
15859
|
+
referencedRelation: "profiles";
|
|
14930
15860
|
referencedColumns: ["id"];
|
|
14931
15861
|
}];
|
|
14932
15862
|
};
|
|
@@ -15236,6 +16166,39 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
15236
16166
|
};
|
|
15237
16167
|
Relationships: [];
|
|
15238
16168
|
};
|
|
16169
|
+
twinfield_cron_locks: {
|
|
16170
|
+
Row: {
|
|
16171
|
+
created_at: string;
|
|
16172
|
+
heartbeat_at: string;
|
|
16173
|
+
job_name: string;
|
|
16174
|
+
last_error: string | null;
|
|
16175
|
+
last_finished_at: string | null;
|
|
16176
|
+
locked_at: string;
|
|
16177
|
+
run_id: string;
|
|
16178
|
+
updated_at: string;
|
|
16179
|
+
};
|
|
16180
|
+
Insert: {
|
|
16181
|
+
created_at?: string;
|
|
16182
|
+
heartbeat_at?: string;
|
|
16183
|
+
job_name: string;
|
|
16184
|
+
last_error?: string | null;
|
|
16185
|
+
last_finished_at?: string | null;
|
|
16186
|
+
locked_at?: string;
|
|
16187
|
+
run_id?: string;
|
|
16188
|
+
updated_at?: string;
|
|
16189
|
+
};
|
|
16190
|
+
Update: {
|
|
16191
|
+
created_at?: string;
|
|
16192
|
+
heartbeat_at?: string;
|
|
16193
|
+
job_name?: string;
|
|
16194
|
+
last_error?: string | null;
|
|
16195
|
+
last_finished_at?: string | null;
|
|
16196
|
+
locked_at?: string;
|
|
16197
|
+
run_id?: string;
|
|
16198
|
+
updated_at?: string;
|
|
16199
|
+
};
|
|
16200
|
+
Relationships: [];
|
|
16201
|
+
};
|
|
15239
16202
|
twinfield_customers: {
|
|
15240
16203
|
Row: {
|
|
15241
16204
|
address: string | null;
|
|
@@ -15836,6 +16799,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
15836
16799
|
twinfield_push_queue: {
|
|
15837
16800
|
Row: {
|
|
15838
16801
|
action: string;
|
|
16802
|
+
attempt_started_at: string | null;
|
|
15839
16803
|
attempts: number;
|
|
15840
16804
|
connection_id: string | null;
|
|
15841
16805
|
created_at: string;
|
|
@@ -15852,6 +16816,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
15852
16816
|
};
|
|
15853
16817
|
Insert: {
|
|
15854
16818
|
action?: string;
|
|
16819
|
+
attempt_started_at?: string | null;
|
|
15855
16820
|
attempts?: number;
|
|
15856
16821
|
connection_id?: string | null;
|
|
15857
16822
|
created_at?: string;
|
|
@@ -15868,6 +16833,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
15868
16833
|
};
|
|
15869
16834
|
Update: {
|
|
15870
16835
|
action?: string;
|
|
16836
|
+
attempt_started_at?: string | null;
|
|
15871
16837
|
attempts?: number;
|
|
15872
16838
|
connection_id?: string | null;
|
|
15873
16839
|
created_at?: string;
|
|
@@ -16065,13 +17031,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
16065
17031
|
workday_end?: string | null;
|
|
16066
17032
|
workday_start?: string | null;
|
|
16067
17033
|
};
|
|
16068
|
-
Relationships: [
|
|
16069
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
16070
|
-
columns: ["monteur_id"];
|
|
16071
|
-
isOneToOne: true;
|
|
16072
|
-
referencedRelation: "monteurs";
|
|
16073
|
-
referencedColumns: ["id"];
|
|
16074
|
-
}];
|
|
17034
|
+
Relationships: [];
|
|
16075
17035
|
};
|
|
16076
17036
|
uren_entries: {
|
|
16077
17037
|
Row: {
|
|
@@ -16117,12 +17077,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
16117
17077
|
werkbon_id?: string | null;
|
|
16118
17078
|
};
|
|
16119
17079
|
Relationships: [{
|
|
16120
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16121
|
-
columns: ["monteur_id"];
|
|
16122
|
-
isOneToOne: false;
|
|
16123
|
-
referencedRelation: "monteurs";
|
|
16124
|
-
referencedColumns: ["id"];
|
|
16125
|
-
}, {
|
|
16126
17080
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16127
17081
|
columns: ["werkbon_id"];
|
|
16128
17082
|
isOneToOne: false;
|
|
@@ -16590,17 +17544,12 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
16590
17544
|
submitted_at?: string | null;
|
|
16591
17545
|
updated_at?: string;
|
|
16592
17546
|
};
|
|
16593
|
-
Relationships: [
|
|
16594
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
16595
|
-
columns: ["monteur_id"];
|
|
16596
|
-
isOneToOne: false;
|
|
16597
|
-
referencedRelation: "monteurs";
|
|
16598
|
-
referencedColumns: ["id"];
|
|
16599
|
-
}];
|
|
17547
|
+
Relationships: [];
|
|
16600
17548
|
};
|
|
16601
17549
|
user_module_permissions: {
|
|
16602
17550
|
Row: {
|
|
16603
17551
|
created_at: string;
|
|
17552
|
+
feature_id: string;
|
|
16604
17553
|
id: string;
|
|
16605
17554
|
module_id: string;
|
|
16606
17555
|
permission: string;
|
|
@@ -16609,6 +17558,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
16609
17558
|
};
|
|
16610
17559
|
Insert: {
|
|
16611
17560
|
created_at?: string;
|
|
17561
|
+
feature_id?: string;
|
|
16612
17562
|
id?: string;
|
|
16613
17563
|
module_id: string;
|
|
16614
17564
|
permission: string;
|
|
@@ -16617,6 +17567,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
16617
17567
|
};
|
|
16618
17568
|
Update: {
|
|
16619
17569
|
created_at?: string;
|
|
17570
|
+
feature_id?: string;
|
|
16620
17571
|
id?: string;
|
|
16621
17572
|
module_id?: string;
|
|
16622
17573
|
permission?: string;
|
|
@@ -16652,6 +17603,51 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
16652
17603
|
referencedColumns: ["id"];
|
|
16653
17604
|
}];
|
|
16654
17605
|
};
|
|
17606
|
+
van_inventories: {
|
|
17607
|
+
Row: {
|
|
17608
|
+
barcode: string | null;
|
|
17609
|
+
created_at: string;
|
|
17610
|
+
id: string;
|
|
17611
|
+
monteur_id: string | null;
|
|
17612
|
+
price_per_unit: number;
|
|
17613
|
+
product_name: string;
|
|
17614
|
+
quantity_current: number;
|
|
17615
|
+
quantity_min: number;
|
|
17616
|
+
unit: string;
|
|
17617
|
+
updated_at: string;
|
|
17618
|
+
};
|
|
17619
|
+
Insert: {
|
|
17620
|
+
barcode?: string | null;
|
|
17621
|
+
created_at?: string;
|
|
17622
|
+
id?: string;
|
|
17623
|
+
monteur_id?: string | null;
|
|
17624
|
+
price_per_unit?: number;
|
|
17625
|
+
product_name: string;
|
|
17626
|
+
quantity_current?: number;
|
|
17627
|
+
quantity_min?: number;
|
|
17628
|
+
unit?: string;
|
|
17629
|
+
updated_at?: string;
|
|
17630
|
+
};
|
|
17631
|
+
Update: {
|
|
17632
|
+
barcode?: string | null;
|
|
17633
|
+
created_at?: string;
|
|
17634
|
+
id?: string;
|
|
17635
|
+
monteur_id?: string | null;
|
|
17636
|
+
price_per_unit?: number;
|
|
17637
|
+
product_name?: string;
|
|
17638
|
+
quantity_current?: number;
|
|
17639
|
+
quantity_min?: number;
|
|
17640
|
+
unit?: string;
|
|
17641
|
+
updated_at?: string;
|
|
17642
|
+
};
|
|
17643
|
+
Relationships: [{
|
|
17644
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
17645
|
+
columns: ["monteur_id"];
|
|
17646
|
+
isOneToOne: false;
|
|
17647
|
+
referencedRelation: "profiles";
|
|
17648
|
+
referencedColumns: ["id"];
|
|
17649
|
+
}];
|
|
17650
|
+
};
|
|
16655
17651
|
voorraad_custom_fields: {
|
|
16656
17652
|
Row: {
|
|
16657
17653
|
created_at: string;
|
|
@@ -17602,7 +18598,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
17602
18598
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
17603
18599
|
columns: ["monteur_id"];
|
|
17604
18600
|
isOneToOne: false;
|
|
17605
|
-
referencedRelation: "
|
|
18601
|
+
referencedRelation: "profiles";
|
|
17606
18602
|
referencedColumns: ["id"];
|
|
17607
18603
|
}, {
|
|
17608
18604
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -17612,6 +18608,60 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
17612
18608
|
referencedColumns: ["id"];
|
|
17613
18609
|
}];
|
|
17614
18610
|
};
|
|
18611
|
+
work_order_photos: {
|
|
18612
|
+
Row: {
|
|
18613
|
+
ai_caption: string | null;
|
|
18614
|
+
ai_categorized_at: string | null;
|
|
18615
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
18616
|
+
caption: string | null;
|
|
18617
|
+
created_at: string;
|
|
18618
|
+
id: string;
|
|
18619
|
+
monteur_id: string | null;
|
|
18620
|
+
photo_type: string;
|
|
18621
|
+
storage_path: string;
|
|
18622
|
+
updated_at: string;
|
|
18623
|
+
work_order_id: string;
|
|
18624
|
+
};
|
|
18625
|
+
Insert: {
|
|
18626
|
+
ai_caption?: string | null;
|
|
18627
|
+
ai_categorized_at?: string | null;
|
|
18628
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18629
|
+
caption?: string | null;
|
|
18630
|
+
created_at?: string;
|
|
18631
|
+
id?: string;
|
|
18632
|
+
monteur_id?: string | null;
|
|
18633
|
+
photo_type?: string;
|
|
18634
|
+
storage_path: string;
|
|
18635
|
+
updated_at?: string;
|
|
18636
|
+
work_order_id: string;
|
|
18637
|
+
};
|
|
18638
|
+
Update: {
|
|
18639
|
+
ai_caption?: string | null;
|
|
18640
|
+
ai_categorized_at?: string | null;
|
|
18641
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18642
|
+
caption?: string | null;
|
|
18643
|
+
created_at?: string;
|
|
18644
|
+
id?: string;
|
|
18645
|
+
monteur_id?: string | null;
|
|
18646
|
+
photo_type?: string;
|
|
18647
|
+
storage_path?: string;
|
|
18648
|
+
updated_at?: string;
|
|
18649
|
+
work_order_id?: string;
|
|
18650
|
+
};
|
|
18651
|
+
Relationships: [{
|
|
18652
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
18653
|
+
columns: ["monteur_id"];
|
|
18654
|
+
isOneToOne: false;
|
|
18655
|
+
referencedRelation: "profiles";
|
|
18656
|
+
referencedColumns: ["id"];
|
|
18657
|
+
}, {
|
|
18658
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
18659
|
+
columns: ["work_order_id"];
|
|
18660
|
+
isOneToOne: false;
|
|
18661
|
+
referencedRelation: "work_orders";
|
|
18662
|
+
referencedColumns: ["id"];
|
|
18663
|
+
}];
|
|
18664
|
+
};
|
|
17615
18665
|
work_orders: {
|
|
17616
18666
|
Row: {
|
|
17617
18667
|
assigned_to: string | null;
|
|
@@ -17643,7 +18693,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
17643
18693
|
scheduled_end_time: string | null;
|
|
17644
18694
|
scheduled_start_time: string | null;
|
|
17645
18695
|
status: string;
|
|
17646
|
-
tenant_id: string;
|
|
17647
18696
|
total_hours_worked: number | null;
|
|
17648
18697
|
total_price: number | null;
|
|
17649
18698
|
travel_time_minutes: number | null;
|
|
@@ -17681,7 +18730,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
17681
18730
|
scheduled_end_time?: string | null;
|
|
17682
18731
|
scheduled_start_time?: string | null;
|
|
17683
18732
|
status?: string;
|
|
17684
|
-
tenant_id: string;
|
|
17685
18733
|
total_hours_worked?: number | null;
|
|
17686
18734
|
total_price?: number | null;
|
|
17687
18735
|
travel_time_minutes?: number | null;
|
|
@@ -17719,7 +18767,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
17719
18767
|
scheduled_end_time?: string | null;
|
|
17720
18768
|
scheduled_start_time?: string | null;
|
|
17721
18769
|
status?: string;
|
|
17722
|
-
tenant_id?: string;
|
|
17723
18770
|
total_hours_worked?: number | null;
|
|
17724
18771
|
total_price?: number | null;
|
|
17725
18772
|
travel_time_minutes?: number | null;
|
|
@@ -17733,12 +18780,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
17733
18780
|
isOneToOne: false;
|
|
17734
18781
|
referencedRelation: "work_orders";
|
|
17735
18782
|
referencedColumns: ["id"];
|
|
17736
|
-
}, {
|
|
17737
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
17738
|
-
columns: ["tenant_id"];
|
|
17739
|
-
isOneToOne: false;
|
|
17740
|
-
referencedRelation: "tenants";
|
|
17741
|
-
referencedColumns: ["id"];
|
|
17742
18783
|
}];
|
|
17743
18784
|
};
|
|
17744
18785
|
};
|
|
@@ -18423,6 +19464,19 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
18423
19464
|
};
|
|
18424
19465
|
Returns: undefined;
|
|
18425
19466
|
};
|
|
19467
|
+
approve_mailbox_order_proposal: {
|
|
19468
|
+
Args: {
|
|
19469
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
19470
|
+
p_customer_id: string;
|
|
19471
|
+
p_delivery_date: string;
|
|
19472
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
19473
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
19474
|
+
p_notes: string;
|
|
19475
|
+
p_proposal_id: string;
|
|
19476
|
+
p_reviewed_by: string;
|
|
19477
|
+
};
|
|
19478
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
19479
|
+
};
|
|
18426
19480
|
assign_cart_numbers: {
|
|
18427
19481
|
Args: {
|
|
18428
19482
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -18474,6 +19528,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
18474
19528
|
};
|
|
18475
19529
|
Returns: number;
|
|
18476
19530
|
};
|
|
19531
|
+
can_manage_hours: {
|
|
19532
|
+
Args: never;
|
|
19533
|
+
Returns: boolean;
|
|
19534
|
+
};
|
|
18477
19535
|
check_offer_product_available_stock: {
|
|
18478
19536
|
Args: {
|
|
18479
19537
|
p_campaign_product_id: string;
|
|
@@ -18663,6 +19721,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
18663
19721
|
};
|
|
18664
19722
|
Returns: {
|
|
18665
19723
|
action: string;
|
|
19724
|
+
attempt_started_at: string | null;
|
|
18666
19725
|
attempts: number;
|
|
18667
19726
|
connection_id: string | null;
|
|
18668
19727
|
created_at: string;
|
|
@@ -18750,6 +19809,30 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
18750
19809
|
agent_naam: string;
|
|
18751
19810
|
}[];
|
|
18752
19811
|
};
|
|
19812
|
+
consume_van_inventory: {
|
|
19813
|
+
Args: {
|
|
19814
|
+
p_inventory_id: string;
|
|
19815
|
+
p_quantity: number;
|
|
19816
|
+
};
|
|
19817
|
+
Returns: {
|
|
19818
|
+
barcode: string | null;
|
|
19819
|
+
created_at: string;
|
|
19820
|
+
id: string;
|
|
19821
|
+
monteur_id: string | null;
|
|
19822
|
+
price_per_unit: number;
|
|
19823
|
+
product_name: string;
|
|
19824
|
+
quantity_current: number;
|
|
19825
|
+
quantity_min: number;
|
|
19826
|
+
unit: string;
|
|
19827
|
+
updated_at: string;
|
|
19828
|
+
};
|
|
19829
|
+
SetofOptions: {
|
|
19830
|
+
from: "*";
|
|
19831
|
+
to: "van_inventories";
|
|
19832
|
+
isOneToOne: true;
|
|
19833
|
+
isSetofReturn: false;
|
|
19834
|
+
};
|
|
19835
|
+
};
|
|
18753
19836
|
control_get_todays_carts: {
|
|
18754
19837
|
Args: never;
|
|
18755
19838
|
Returns: {
|
|
@@ -18823,6 +19906,13 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
18823
19906
|
_user_id: string;
|
|
18824
19907
|
};
|
|
18825
19908
|
Returns: string;
|
|
19909
|
+
} | {
|
|
19910
|
+
Args: {
|
|
19911
|
+
_feature_id: string;
|
|
19912
|
+
_module_id: string;
|
|
19913
|
+
_user_id: string;
|
|
19914
|
+
};
|
|
19915
|
+
Returns: string;
|
|
18826
19916
|
};
|
|
18827
19917
|
email_auth_decrypt: {
|
|
18828
19918
|
Args: {
|
|
@@ -18869,6 +19959,13 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
18869
19959
|
};
|
|
18870
19960
|
Returns: string;
|
|
18871
19961
|
};
|
|
19962
|
+
employee_day_hours: {
|
|
19963
|
+
Args: {
|
|
19964
|
+
_day: string;
|
|
19965
|
+
_employee_id: string;
|
|
19966
|
+
};
|
|
19967
|
+
Returns: number;
|
|
19968
|
+
};
|
|
18872
19969
|
enqueue_cart_replan_if_unlocked: {
|
|
18873
19970
|
Args: {
|
|
18874
19971
|
p_order_id: string;
|
|
@@ -19174,12 +20271,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
19174
20271
|
Args: never;
|
|
19175
20272
|
Returns: string;
|
|
19176
20273
|
};
|
|
19177
|
-
get_work_order_tenant_id: {
|
|
19178
|
-
Args: {
|
|
19179
|
-
wo_id: string;
|
|
19180
|
-
};
|
|
19181
|
-
Returns: string;
|
|
19182
|
-
};
|
|
19183
20274
|
has_module_permission: {
|
|
19184
20275
|
Args: {
|
|
19185
20276
|
_min: string;
|
|
@@ -19213,6 +20304,13 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
19213
20304
|
};
|
|
19214
20305
|
Returns: boolean;
|
|
19215
20306
|
};
|
|
20307
|
+
is_time_log_week_locked: {
|
|
20308
|
+
Args: {
|
|
20309
|
+
p_employee_id: string;
|
|
20310
|
+
p_start_time: string;
|
|
20311
|
+
};
|
|
20312
|
+
Returns: boolean;
|
|
20313
|
+
};
|
|
19216
20314
|
is_user_admin: {
|
|
19217
20315
|
Args: never;
|
|
19218
20316
|
Returns: boolean;
|
|
@@ -19221,19 +20319,43 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
19221
20319
|
Args: never;
|
|
19222
20320
|
Returns: boolean;
|
|
19223
20321
|
};
|
|
20322
|
+
itk_offerte_naar_werkbon: {
|
|
20323
|
+
Args: {
|
|
20324
|
+
_offerte_id: string;
|
|
20325
|
+
};
|
|
20326
|
+
Returns: string;
|
|
20327
|
+
};
|
|
20328
|
+
itk_offerte_restant_mandaat: {
|
|
20329
|
+
Args: {
|
|
20330
|
+
_exclude_offerte_id?: string;
|
|
20331
|
+
_werkbon_id: string;
|
|
20332
|
+
};
|
|
20333
|
+
Returns: number;
|
|
20334
|
+
};
|
|
19224
20335
|
jwt_has_role: {
|
|
19225
20336
|
Args: {
|
|
19226
20337
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
19227
20338
|
};
|
|
19228
20339
|
Returns: boolean;
|
|
19229
20340
|
};
|
|
19230
|
-
|
|
20341
|
+
list_medewerkers: {
|
|
19231
20342
|
Args: never;
|
|
19232
20343
|
Returns: {
|
|
19233
20344
|
avatar_url: string;
|
|
20345
|
+
color: string;
|
|
19234
20346
|
display_name: string;
|
|
19235
20347
|
email: string;
|
|
20348
|
+
hours_fri: number;
|
|
20349
|
+
hours_mon: number;
|
|
20350
|
+
hours_thu: number;
|
|
20351
|
+
hours_tue: number;
|
|
20352
|
+
hours_wed: number;
|
|
19236
20353
|
id: string;
|
|
20354
|
+
is_active: boolean;
|
|
20355
|
+
leave_balance_hours: number;
|
|
20356
|
+
persnr: string;
|
|
20357
|
+
phone: string;
|
|
20358
|
+
roles: string[];
|
|
19237
20359
|
}[];
|
|
19238
20360
|
};
|
|
19239
20361
|
list_my_planning_items: {
|
|
@@ -19559,17 +20681,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
19559
20681
|
Returns: string;
|
|
19560
20682
|
};
|
|
19561
20683
|
logistics_emit_event: {
|
|
19562
|
-
Args: {
|
|
19563
|
-
p_event_type: string;
|
|
19564
|
-
p_idempotency_key?: string;
|
|
19565
|
-
p_order_ref: string;
|
|
19566
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
19567
|
-
p_shadow?: boolean;
|
|
19568
|
-
p_source_module: string;
|
|
19569
|
-
p_strategy_id?: string;
|
|
19570
|
-
};
|
|
19571
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
19572
|
-
} | {
|
|
19573
20684
|
Args: {
|
|
19574
20685
|
p_event_type: string;
|
|
19575
20686
|
p_idempotency_key?: string;
|
|
@@ -19724,6 +20835,65 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
19724
20835
|
};
|
|
19725
20836
|
Returns: number;
|
|
19726
20837
|
};
|
|
20838
|
+
logistics_plan_claim: {
|
|
20839
|
+
Args: {
|
|
20840
|
+
p_limit?: number;
|
|
20841
|
+
};
|
|
20842
|
+
Returns: {
|
|
20843
|
+
attempts: number;
|
|
20844
|
+
id: string;
|
|
20845
|
+
order_id: string;
|
|
20846
|
+
}[];
|
|
20847
|
+
};
|
|
20848
|
+
logistics_plan_enqueue: {
|
|
20849
|
+
Args: {
|
|
20850
|
+
p_order_id: string;
|
|
20851
|
+
p_reason?: string;
|
|
20852
|
+
};
|
|
20853
|
+
Returns: undefined;
|
|
20854
|
+
};
|
|
20855
|
+
logistics_plan_ensure_event: {
|
|
20856
|
+
Args: {
|
|
20857
|
+
p_order_id: string;
|
|
20858
|
+
};
|
|
20859
|
+
Returns: boolean;
|
|
20860
|
+
};
|
|
20861
|
+
logistics_plan_finish: {
|
|
20862
|
+
Args: {
|
|
20863
|
+
p_error?: string;
|
|
20864
|
+
p_id: string;
|
|
20865
|
+
};
|
|
20866
|
+
Returns: undefined;
|
|
20867
|
+
};
|
|
20868
|
+
logistics_plan_impact_orders: {
|
|
20869
|
+
Args: {
|
|
20870
|
+
p_order_id: string;
|
|
20871
|
+
};
|
|
20872
|
+
Returns: {
|
|
20873
|
+
buffer_id: string;
|
|
20874
|
+
order_id: string;
|
|
20875
|
+
plan_date: string;
|
|
20876
|
+
}[];
|
|
20877
|
+
};
|
|
20878
|
+
logistics_plan_kick: {
|
|
20879
|
+
Args: never;
|
|
20880
|
+
Returns: undefined;
|
|
20881
|
+
};
|
|
20882
|
+
logistics_plan_prune: {
|
|
20883
|
+
Args: never;
|
|
20884
|
+
Returns: number;
|
|
20885
|
+
};
|
|
20886
|
+
logistics_plan_release_stale: {
|
|
20887
|
+
Args: never;
|
|
20888
|
+
Returns: number;
|
|
20889
|
+
};
|
|
20890
|
+
logistics_plan_setting: {
|
|
20891
|
+
Args: {
|
|
20892
|
+
p_default: number;
|
|
20893
|
+
p_key: string;
|
|
20894
|
+
};
|
|
20895
|
+
Returns: number;
|
|
20896
|
+
};
|
|
19727
20897
|
logistics_queue_capacity_email: {
|
|
19728
20898
|
Args: {
|
|
19729
20899
|
p_alert_id: string;
|
|
@@ -19965,6 +21135,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
19965
21135
|
my_module_permissions: {
|
|
19966
21136
|
Args: never;
|
|
19967
21137
|
Returns: {
|
|
21138
|
+
feature_id: string;
|
|
19968
21139
|
module_id: string;
|
|
19969
21140
|
permission: string;
|
|
19970
21141
|
}[];
|
|
@@ -20354,6 +21525,37 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
20354
21525
|
};
|
|
20355
21526
|
Returns: undefined;
|
|
20356
21527
|
};
|
|
21528
|
+
quote_create_from_source: {
|
|
21529
|
+
Args: {
|
|
21530
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
21531
|
+
_source_id: string;
|
|
21532
|
+
_source_type: string;
|
|
21533
|
+
};
|
|
21534
|
+
Returns: string;
|
|
21535
|
+
};
|
|
21536
|
+
quote_get_billable_lines: {
|
|
21537
|
+
Args: {
|
|
21538
|
+
_quotation_id: string;
|
|
21539
|
+
};
|
|
21540
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21541
|
+
};
|
|
21542
|
+
quote_get_summary: {
|
|
21543
|
+
Args: {
|
|
21544
|
+
_quotation_id: string;
|
|
21545
|
+
};
|
|
21546
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21547
|
+
};
|
|
21548
|
+
quote_list_packages: {
|
|
21549
|
+
Args: never;
|
|
21550
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21551
|
+
};
|
|
21552
|
+
quote_list_sources: {
|
|
21553
|
+
Args: {
|
|
21554
|
+
_limit?: number;
|
|
21555
|
+
_source_type?: string;
|
|
21556
|
+
};
|
|
21557
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21558
|
+
};
|
|
20357
21559
|
recompute_all_reserved_stock: {
|
|
20358
21560
|
Args: never;
|
|
20359
21561
|
Returns: undefined;
|
|
@@ -20845,6 +22047,16 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
20845
22047
|
};
|
|
20846
22048
|
Returns: string[];
|
|
20847
22049
|
};
|
|
22050
|
+
switch_time_log: {
|
|
22051
|
+
Args: {
|
|
22052
|
+
p_employee_id: string;
|
|
22053
|
+
p_start_lat?: number;
|
|
22054
|
+
p_start_lng?: number;
|
|
22055
|
+
p_type: string;
|
|
22056
|
+
p_work_order_id?: string;
|
|
22057
|
+
};
|
|
22058
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22059
|
+
};
|
|
20848
22060
|
sync_all_layer_stocks: {
|
|
20849
22061
|
Args: never;
|
|
20850
22062
|
Returns: undefined;
|
|
@@ -20879,6 +22091,12 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
20879
22091
|
};
|
|
20880
22092
|
Returns: undefined;
|
|
20881
22093
|
};
|
|
22094
|
+
sync_sick_time_off: {
|
|
22095
|
+
Args: {
|
|
22096
|
+
_period_id: string;
|
|
22097
|
+
};
|
|
22098
|
+
Returns: number;
|
|
22099
|
+
};
|
|
20882
22100
|
trade_item_stock_duplicates: {
|
|
20883
22101
|
Args: never;
|
|
20884
22102
|
Returns: {
|
|
@@ -20895,6 +22113,24 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
20895
22113
|
};
|
|
20896
22114
|
Returns: boolean;
|
|
20897
22115
|
};
|
|
22116
|
+
twinfield_cron_lock_acquire: {
|
|
22117
|
+
Args: {
|
|
22118
|
+
_job_name: string;
|
|
22119
|
+
_stale_seconds?: number;
|
|
22120
|
+
};
|
|
22121
|
+
Returns: boolean;
|
|
22122
|
+
};
|
|
22123
|
+
twinfield_cron_lock_release: {
|
|
22124
|
+
Args: {
|
|
22125
|
+
_error?: string;
|
|
22126
|
+
_job_name: string;
|
|
22127
|
+
};
|
|
22128
|
+
Returns: undefined;
|
|
22129
|
+
};
|
|
22130
|
+
twinfield_prune_push_queue: {
|
|
22131
|
+
Args: never;
|
|
22132
|
+
Returns: number;
|
|
22133
|
+
};
|
|
20898
22134
|
twinfield_register_cron: {
|
|
20899
22135
|
Args: {
|
|
20900
22136
|
apikey?: string;
|
|
@@ -20934,11 +22170,31 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
20934
22170
|
Args: never;
|
|
20935
22171
|
Returns: string;
|
|
20936
22172
|
};
|
|
22173
|
+
wo_create_from_source: {
|
|
22174
|
+
Args: {
|
|
22175
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
22176
|
+
_source_id: string;
|
|
22177
|
+
_source_type: string;
|
|
22178
|
+
};
|
|
22179
|
+
Returns: string;
|
|
22180
|
+
};
|
|
22181
|
+
wo_get_billable_lines: {
|
|
22182
|
+
Args: {
|
|
22183
|
+
_work_order_id: string;
|
|
22184
|
+
};
|
|
22185
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22186
|
+
};
|
|
22187
|
+
wo_get_summary: {
|
|
22188
|
+
Args: {
|
|
22189
|
+
_work_order_id: string;
|
|
22190
|
+
};
|
|
22191
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22192
|
+
};
|
|
20937
22193
|
};
|
|
20938
22194
|
Enums: {
|
|
20939
22195
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
20940
22196
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
20941
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
22197
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
20942
22198
|
doc_orientation: "portrait" | "landscape";
|
|
20943
22199
|
exact_env: "staging" | "live";
|
|
20944
22200
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -21837,6 +23093,126 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
21837
23093
|
};
|
|
21838
23094
|
Relationships: [];
|
|
21839
23095
|
};
|
|
23096
|
+
cao_holidays: {
|
|
23097
|
+
Row: {
|
|
23098
|
+
created_at: string;
|
|
23099
|
+
description: string | null;
|
|
23100
|
+
holiday_date: string;
|
|
23101
|
+
id: string;
|
|
23102
|
+
updated_at: string;
|
|
23103
|
+
};
|
|
23104
|
+
Insert: {
|
|
23105
|
+
created_at?: string;
|
|
23106
|
+
description?: string | null;
|
|
23107
|
+
holiday_date: string;
|
|
23108
|
+
id?: string;
|
|
23109
|
+
updated_at?: string;
|
|
23110
|
+
};
|
|
23111
|
+
Update: {
|
|
23112
|
+
created_at?: string;
|
|
23113
|
+
description?: string | null;
|
|
23114
|
+
holiday_date?: string;
|
|
23115
|
+
id?: string;
|
|
23116
|
+
updated_at?: string;
|
|
23117
|
+
};
|
|
23118
|
+
Relationships: [];
|
|
23119
|
+
};
|
|
23120
|
+
cao_settings: {
|
|
23121
|
+
Row: {
|
|
23122
|
+
auto_break_after_hours: number;
|
|
23123
|
+
auto_break_minutes: number;
|
|
23124
|
+
auto_break_unpaid: boolean;
|
|
23125
|
+
auto_stop_after_hours: number;
|
|
23126
|
+
callout_fee: number;
|
|
23127
|
+
created_at: string;
|
|
23128
|
+
daily_regular_hours: number;
|
|
23129
|
+
default_hourly_rate: number;
|
|
23130
|
+
id: string;
|
|
23131
|
+
materials_markup_percent: number;
|
|
23132
|
+
max_daily_hours: number;
|
|
23133
|
+
max_weekly_hours: number;
|
|
23134
|
+
meal_allowance_amount: number;
|
|
23135
|
+
overtime_pct_178: number;
|
|
23136
|
+
overtime_pct_189: number;
|
|
23137
|
+
overtime_pct_212: number;
|
|
23138
|
+
reminder_after_hours: number;
|
|
23139
|
+
standby_evening_amount: number;
|
|
23140
|
+
standby_weekend_amount: number;
|
|
23141
|
+
travel_cost_per_km: number | null;
|
|
23142
|
+
travel_cost_threshold_km: number | null;
|
|
23143
|
+
travel_counts_as_work: boolean;
|
|
23144
|
+
travel_hourly_rate: number;
|
|
23145
|
+
travel_rate_per_hour: number;
|
|
23146
|
+
travel_threshold_minutes: number;
|
|
23147
|
+
updated_at: string;
|
|
23148
|
+
weekend_always_212: boolean;
|
|
23149
|
+
window_end: string;
|
|
23150
|
+
window_start: string;
|
|
23151
|
+
};
|
|
23152
|
+
Insert: {
|
|
23153
|
+
auto_break_after_hours?: number;
|
|
23154
|
+
auto_break_minutes?: number;
|
|
23155
|
+
auto_break_unpaid?: boolean;
|
|
23156
|
+
auto_stop_after_hours?: number;
|
|
23157
|
+
callout_fee?: number;
|
|
23158
|
+
created_at?: string;
|
|
23159
|
+
daily_regular_hours?: number;
|
|
23160
|
+
default_hourly_rate?: number;
|
|
23161
|
+
id?: string;
|
|
23162
|
+
materials_markup_percent?: number;
|
|
23163
|
+
max_daily_hours?: number;
|
|
23164
|
+
max_weekly_hours?: number;
|
|
23165
|
+
meal_allowance_amount?: number;
|
|
23166
|
+
overtime_pct_178?: number;
|
|
23167
|
+
overtime_pct_189?: number;
|
|
23168
|
+
overtime_pct_212?: number;
|
|
23169
|
+
reminder_after_hours?: number;
|
|
23170
|
+
standby_evening_amount?: number;
|
|
23171
|
+
standby_weekend_amount?: number;
|
|
23172
|
+
travel_cost_per_km?: number | null;
|
|
23173
|
+
travel_cost_threshold_km?: number | null;
|
|
23174
|
+
travel_counts_as_work?: boolean;
|
|
23175
|
+
travel_hourly_rate?: number;
|
|
23176
|
+
travel_rate_per_hour?: number;
|
|
23177
|
+
travel_threshold_minutes?: number;
|
|
23178
|
+
updated_at?: string;
|
|
23179
|
+
weekend_always_212?: boolean;
|
|
23180
|
+
window_end?: string;
|
|
23181
|
+
window_start?: string;
|
|
23182
|
+
};
|
|
23183
|
+
Update: {
|
|
23184
|
+
auto_break_after_hours?: number;
|
|
23185
|
+
auto_break_minutes?: number;
|
|
23186
|
+
auto_break_unpaid?: boolean;
|
|
23187
|
+
auto_stop_after_hours?: number;
|
|
23188
|
+
callout_fee?: number;
|
|
23189
|
+
created_at?: string;
|
|
23190
|
+
daily_regular_hours?: number;
|
|
23191
|
+
default_hourly_rate?: number;
|
|
23192
|
+
id?: string;
|
|
23193
|
+
materials_markup_percent?: number;
|
|
23194
|
+
max_daily_hours?: number;
|
|
23195
|
+
max_weekly_hours?: number;
|
|
23196
|
+
meal_allowance_amount?: number;
|
|
23197
|
+
overtime_pct_178?: number;
|
|
23198
|
+
overtime_pct_189?: number;
|
|
23199
|
+
overtime_pct_212?: number;
|
|
23200
|
+
reminder_after_hours?: number;
|
|
23201
|
+
standby_evening_amount?: number;
|
|
23202
|
+
standby_weekend_amount?: number;
|
|
23203
|
+
travel_cost_per_km?: number | null;
|
|
23204
|
+
travel_cost_threshold_km?: number | null;
|
|
23205
|
+
travel_counts_as_work?: boolean;
|
|
23206
|
+
travel_hourly_rate?: number;
|
|
23207
|
+
travel_rate_per_hour?: number;
|
|
23208
|
+
travel_threshold_minutes?: number;
|
|
23209
|
+
updated_at?: string;
|
|
23210
|
+
weekend_always_212?: boolean;
|
|
23211
|
+
window_end?: string;
|
|
23212
|
+
window_start?: string;
|
|
23213
|
+
};
|
|
23214
|
+
Relationships: [];
|
|
23215
|
+
};
|
|
21840
23216
|
carrier_shipping_rates: {
|
|
21841
23217
|
Row: {
|
|
21842
23218
|
carrier_id: string;
|
|
@@ -25890,6 +27266,42 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
25890
27266
|
};
|
|
25891
27267
|
Relationships: [];
|
|
25892
27268
|
};
|
|
27269
|
+
facturen: {
|
|
27270
|
+
Row: {
|
|
27271
|
+
bedrag_incl_btw: number;
|
|
27272
|
+
created_at: string;
|
|
27273
|
+
datum: string;
|
|
27274
|
+
factuurnummer: string;
|
|
27275
|
+
id: string;
|
|
27276
|
+
klantnaam: string;
|
|
27277
|
+
status: string;
|
|
27278
|
+
updated_at: string;
|
|
27279
|
+
user_id: string;
|
|
27280
|
+
};
|
|
27281
|
+
Insert: {
|
|
27282
|
+
bedrag_incl_btw: number;
|
|
27283
|
+
created_at?: string;
|
|
27284
|
+
datum?: string;
|
|
27285
|
+
factuurnummer: string;
|
|
27286
|
+
id?: string;
|
|
27287
|
+
klantnaam: string;
|
|
27288
|
+
status?: string;
|
|
27289
|
+
updated_at?: string;
|
|
27290
|
+
user_id?: string;
|
|
27291
|
+
};
|
|
27292
|
+
Update: {
|
|
27293
|
+
bedrag_incl_btw?: number;
|
|
27294
|
+
created_at?: string;
|
|
27295
|
+
datum?: string;
|
|
27296
|
+
factuurnummer?: string;
|
|
27297
|
+
id?: string;
|
|
27298
|
+
klantnaam?: string;
|
|
27299
|
+
status?: string;
|
|
27300
|
+
updated_at?: string;
|
|
27301
|
+
user_id?: string;
|
|
27302
|
+
};
|
|
27303
|
+
Relationships: [];
|
|
27304
|
+
};
|
|
25893
27305
|
floricode_connection_settings: {
|
|
25894
27306
|
Row: {
|
|
25895
27307
|
catalog_key: string | null;
|
|
@@ -28614,6 +30026,258 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
28614
30026
|
};
|
|
28615
30027
|
Relationships: [];
|
|
28616
30028
|
};
|
|
30029
|
+
itk_offerte_events: {
|
|
30030
|
+
Row: {
|
|
30031
|
+
created_at: string;
|
|
30032
|
+
event_type: string;
|
|
30033
|
+
id: string;
|
|
30034
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
30035
|
+
offerte_id: string;
|
|
30036
|
+
omschrijving: string | null;
|
|
30037
|
+
user_id: string | null;
|
|
30038
|
+
};
|
|
30039
|
+
Insert: {
|
|
30040
|
+
created_at?: string;
|
|
30041
|
+
event_type: string;
|
|
30042
|
+
id?: string;
|
|
30043
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
30044
|
+
offerte_id: string;
|
|
30045
|
+
omschrijving?: string | null;
|
|
30046
|
+
user_id?: string | null;
|
|
30047
|
+
};
|
|
30048
|
+
Update: {
|
|
30049
|
+
created_at?: string;
|
|
30050
|
+
event_type?: string;
|
|
30051
|
+
id?: string;
|
|
30052
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
30053
|
+
offerte_id?: string;
|
|
30054
|
+
omschrijving?: string | null;
|
|
30055
|
+
user_id?: string | null;
|
|
30056
|
+
};
|
|
30057
|
+
Relationships: [{
|
|
30058
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
30059
|
+
columns: ["offerte_id"];
|
|
30060
|
+
isOneToOne: false;
|
|
30061
|
+
referencedRelation: "itk_offertes";
|
|
30062
|
+
referencedColumns: ["id"];
|
|
30063
|
+
}];
|
|
30064
|
+
};
|
|
30065
|
+
itk_offerte_regels: {
|
|
30066
|
+
Row: {
|
|
30067
|
+
created_at: string;
|
|
30068
|
+
id: string;
|
|
30069
|
+
line_total_cents: number;
|
|
30070
|
+
offerte_id: string;
|
|
30071
|
+
omschrijving: string;
|
|
30072
|
+
package_id: string | null;
|
|
30073
|
+
quantity: number;
|
|
30074
|
+
sort_order: number;
|
|
30075
|
+
source: string;
|
|
30076
|
+
unit_price_cents: number;
|
|
30077
|
+
updated_at: string;
|
|
30078
|
+
};
|
|
30079
|
+
Insert: {
|
|
30080
|
+
created_at?: string;
|
|
30081
|
+
id?: string;
|
|
30082
|
+
line_total_cents?: number;
|
|
30083
|
+
offerte_id: string;
|
|
30084
|
+
omschrijving?: string;
|
|
30085
|
+
package_id?: string | null;
|
|
30086
|
+
quantity?: number;
|
|
30087
|
+
sort_order?: number;
|
|
30088
|
+
source?: string;
|
|
30089
|
+
unit_price_cents?: number;
|
|
30090
|
+
updated_at?: string;
|
|
30091
|
+
};
|
|
30092
|
+
Update: {
|
|
30093
|
+
created_at?: string;
|
|
30094
|
+
id?: string;
|
|
30095
|
+
line_total_cents?: number;
|
|
30096
|
+
offerte_id?: string;
|
|
30097
|
+
omschrijving?: string;
|
|
30098
|
+
package_id?: string | null;
|
|
30099
|
+
quantity?: number;
|
|
30100
|
+
sort_order?: number;
|
|
30101
|
+
source?: string;
|
|
30102
|
+
unit_price_cents?: number;
|
|
30103
|
+
updated_at?: string;
|
|
30104
|
+
};
|
|
30105
|
+
Relationships: [{
|
|
30106
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
30107
|
+
columns: ["offerte_id"];
|
|
30108
|
+
isOneToOne: false;
|
|
30109
|
+
referencedRelation: "itk_offertes";
|
|
30110
|
+
referencedColumns: ["id"];
|
|
30111
|
+
}, {
|
|
30112
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
30113
|
+
columns: ["package_id"];
|
|
30114
|
+
isOneToOne: false;
|
|
30115
|
+
referencedRelation: "werkbon_packages";
|
|
30116
|
+
referencedColumns: ["id"];
|
|
30117
|
+
}];
|
|
30118
|
+
};
|
|
30119
|
+
itk_offerte_settings: {
|
|
30120
|
+
Row: {
|
|
30121
|
+
auto_convert_binnen_mandaat: boolean;
|
|
30122
|
+
created_at: string;
|
|
30123
|
+
default_geldigheid_dagen: number;
|
|
30124
|
+
default_vat_rate: number;
|
|
30125
|
+
id: string;
|
|
30126
|
+
singleton: boolean;
|
|
30127
|
+
updated_at: string;
|
|
30128
|
+
};
|
|
30129
|
+
Insert: {
|
|
30130
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
30131
|
+
created_at?: string;
|
|
30132
|
+
default_geldigheid_dagen?: number;
|
|
30133
|
+
default_vat_rate?: number;
|
|
30134
|
+
id?: string;
|
|
30135
|
+
singleton?: boolean;
|
|
30136
|
+
updated_at?: string;
|
|
30137
|
+
};
|
|
30138
|
+
Update: {
|
|
30139
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
30140
|
+
created_at?: string;
|
|
30141
|
+
default_geldigheid_dagen?: number;
|
|
30142
|
+
default_vat_rate?: number;
|
|
30143
|
+
id?: string;
|
|
30144
|
+
singleton?: boolean;
|
|
30145
|
+
updated_at?: string;
|
|
30146
|
+
};
|
|
30147
|
+
Relationships: [];
|
|
30148
|
+
};
|
|
30149
|
+
itk_offertes: {
|
|
30150
|
+
Row: {
|
|
30151
|
+
ai_generated: boolean;
|
|
30152
|
+
approved_at: string | null;
|
|
30153
|
+
binnen_mandaat: boolean;
|
|
30154
|
+
contact_id: string | null;
|
|
30155
|
+
converted_at: string | null;
|
|
30156
|
+
created_at: string;
|
|
30157
|
+
created_by: string | null;
|
|
30158
|
+
customer_id: string | null;
|
|
30159
|
+
follow_up_werkbon_id: string | null;
|
|
30160
|
+
id: string;
|
|
30161
|
+
jaar: number;
|
|
30162
|
+
mandaat_restant_cents: number;
|
|
30163
|
+
notities: string | null;
|
|
30164
|
+
offerte_number: string | null;
|
|
30165
|
+
omschrijving: string;
|
|
30166
|
+
rejected_at: string | null;
|
|
30167
|
+
sent_at: string | null;
|
|
30168
|
+
source_number: string | null;
|
|
30169
|
+
source_ref: string | null;
|
|
30170
|
+
source_type: string;
|
|
30171
|
+
status: string;
|
|
30172
|
+
subtotal_cents: number;
|
|
30173
|
+
total_cents: number;
|
|
30174
|
+
updated_at: string;
|
|
30175
|
+
valid_until: string | null;
|
|
30176
|
+
vat_cents: number;
|
|
30177
|
+
vat_rate: number;
|
|
30178
|
+
viewed_at: string | null;
|
|
30179
|
+
volgnummer: number | null;
|
|
30180
|
+
werkbon_id: string | null;
|
|
30181
|
+
work_location_id: string | null;
|
|
30182
|
+
};
|
|
30183
|
+
Insert: {
|
|
30184
|
+
ai_generated?: boolean;
|
|
30185
|
+
approved_at?: string | null;
|
|
30186
|
+
binnen_mandaat?: boolean;
|
|
30187
|
+
contact_id?: string | null;
|
|
30188
|
+
converted_at?: string | null;
|
|
30189
|
+
created_at?: string;
|
|
30190
|
+
created_by?: string | null;
|
|
30191
|
+
customer_id?: string | null;
|
|
30192
|
+
follow_up_werkbon_id?: string | null;
|
|
30193
|
+
id?: string;
|
|
30194
|
+
jaar?: number;
|
|
30195
|
+
mandaat_restant_cents?: number;
|
|
30196
|
+
notities?: string | null;
|
|
30197
|
+
offerte_number?: string | null;
|
|
30198
|
+
omschrijving?: string;
|
|
30199
|
+
rejected_at?: string | null;
|
|
30200
|
+
sent_at?: string | null;
|
|
30201
|
+
source_number?: string | null;
|
|
30202
|
+
source_ref?: string | null;
|
|
30203
|
+
source_type?: string;
|
|
30204
|
+
status?: string;
|
|
30205
|
+
subtotal_cents?: number;
|
|
30206
|
+
total_cents?: number;
|
|
30207
|
+
updated_at?: string;
|
|
30208
|
+
valid_until?: string | null;
|
|
30209
|
+
vat_cents?: number;
|
|
30210
|
+
vat_rate?: number;
|
|
30211
|
+
viewed_at?: string | null;
|
|
30212
|
+
volgnummer?: number | null;
|
|
30213
|
+
werkbon_id?: string | null;
|
|
30214
|
+
work_location_id?: string | null;
|
|
30215
|
+
};
|
|
30216
|
+
Update: {
|
|
30217
|
+
ai_generated?: boolean;
|
|
30218
|
+
approved_at?: string | null;
|
|
30219
|
+
binnen_mandaat?: boolean;
|
|
30220
|
+
contact_id?: string | null;
|
|
30221
|
+
converted_at?: string | null;
|
|
30222
|
+
created_at?: string;
|
|
30223
|
+
created_by?: string | null;
|
|
30224
|
+
customer_id?: string | null;
|
|
30225
|
+
follow_up_werkbon_id?: string | null;
|
|
30226
|
+
id?: string;
|
|
30227
|
+
jaar?: number;
|
|
30228
|
+
mandaat_restant_cents?: number;
|
|
30229
|
+
notities?: string | null;
|
|
30230
|
+
offerte_number?: string | null;
|
|
30231
|
+
omschrijving?: string;
|
|
30232
|
+
rejected_at?: string | null;
|
|
30233
|
+
sent_at?: string | null;
|
|
30234
|
+
source_number?: string | null;
|
|
30235
|
+
source_ref?: string | null;
|
|
30236
|
+
source_type?: string;
|
|
30237
|
+
status?: string;
|
|
30238
|
+
subtotal_cents?: number;
|
|
30239
|
+
total_cents?: number;
|
|
30240
|
+
updated_at?: string;
|
|
30241
|
+
valid_until?: string | null;
|
|
30242
|
+
vat_cents?: number;
|
|
30243
|
+
vat_rate?: number;
|
|
30244
|
+
viewed_at?: string | null;
|
|
30245
|
+
volgnummer?: number | null;
|
|
30246
|
+
werkbon_id?: string | null;
|
|
30247
|
+
work_location_id?: string | null;
|
|
30248
|
+
};
|
|
30249
|
+
Relationships: [{
|
|
30250
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
30251
|
+
columns: ["contact_id"];
|
|
30252
|
+
isOneToOne: false;
|
|
30253
|
+
referencedRelation: "itk_contact_persons";
|
|
30254
|
+
referencedColumns: ["id"];
|
|
30255
|
+
}, {
|
|
30256
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
30257
|
+
columns: ["customer_id"];
|
|
30258
|
+
isOneToOne: false;
|
|
30259
|
+
referencedRelation: "itk_customers";
|
|
30260
|
+
referencedColumns: ["id"];
|
|
30261
|
+
}, {
|
|
30262
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
30263
|
+
columns: ["follow_up_werkbon_id"];
|
|
30264
|
+
isOneToOne: false;
|
|
30265
|
+
referencedRelation: "werkbonnen";
|
|
30266
|
+
referencedColumns: ["id"];
|
|
30267
|
+
}, {
|
|
30268
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
30269
|
+
columns: ["werkbon_id"];
|
|
30270
|
+
isOneToOne: false;
|
|
30271
|
+
referencedRelation: "werkbonnen";
|
|
30272
|
+
referencedColumns: ["id"];
|
|
30273
|
+
}, {
|
|
30274
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
30275
|
+
columns: ["work_location_id"];
|
|
30276
|
+
isOneToOne: false;
|
|
30277
|
+
referencedRelation: "itk_work_locations";
|
|
30278
|
+
referencedColumns: ["id"];
|
|
30279
|
+
}];
|
|
30280
|
+
};
|
|
28617
30281
|
itk_work_locations: {
|
|
28618
30282
|
Row: {
|
|
28619
30283
|
city: string | null;
|
|
@@ -28731,7 +30395,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
28731
30395
|
start_date: string;
|
|
28732
30396
|
start_time: string | null;
|
|
28733
30397
|
status: string;
|
|
28734
|
-
tenant_id: string;
|
|
28735
30398
|
updated_at: string;
|
|
28736
30399
|
user_id: string;
|
|
28737
30400
|
};
|
|
@@ -28749,7 +30412,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
28749
30412
|
start_date: string;
|
|
28750
30413
|
start_time?: string | null;
|
|
28751
30414
|
status?: string;
|
|
28752
|
-
tenant_id?: string;
|
|
28753
30415
|
updated_at?: string;
|
|
28754
30416
|
user_id: string;
|
|
28755
30417
|
};
|
|
@@ -28767,7 +30429,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
28767
30429
|
start_date?: string;
|
|
28768
30430
|
start_time?: string | null;
|
|
28769
30431
|
status?: string;
|
|
28770
|
-
tenant_id?: string;
|
|
28771
30432
|
updated_at?: string;
|
|
28772
30433
|
user_id?: string;
|
|
28773
30434
|
};
|
|
@@ -28775,13 +30436,13 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
28775
30436
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
28776
30437
|
columns: ["monteur_id"];
|
|
28777
30438
|
isOneToOne: false;
|
|
28778
|
-
referencedRelation: "
|
|
30439
|
+
referencedRelation: "profiles";
|
|
28779
30440
|
referencedColumns: ["id"];
|
|
28780
30441
|
}, {
|
|
28781
30442
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
28782
30443
|
columns: ["user_id"];
|
|
28783
30444
|
isOneToOne: false;
|
|
28784
|
-
referencedRelation: "
|
|
30445
|
+
referencedRelation: "profiles";
|
|
28785
30446
|
referencedColumns: ["id"];
|
|
28786
30447
|
}];
|
|
28787
30448
|
};
|
|
@@ -29649,6 +31310,45 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
29649
31310
|
};
|
|
29650
31311
|
Relationships: [];
|
|
29651
31312
|
};
|
|
31313
|
+
logistics_plan_queue: {
|
|
31314
|
+
Row: {
|
|
31315
|
+
attempts: number;
|
|
31316
|
+
claimed_at: string | null;
|
|
31317
|
+
enqueued_at: string;
|
|
31318
|
+
error: string | null;
|
|
31319
|
+
id: string;
|
|
31320
|
+
next_attempt_at: string;
|
|
31321
|
+
order_id: string;
|
|
31322
|
+
reason: string;
|
|
31323
|
+
status: string;
|
|
31324
|
+
updated_at: string;
|
|
31325
|
+
};
|
|
31326
|
+
Insert: {
|
|
31327
|
+
attempts?: number;
|
|
31328
|
+
claimed_at?: string | null;
|
|
31329
|
+
enqueued_at?: string;
|
|
31330
|
+
error?: string | null;
|
|
31331
|
+
id?: string;
|
|
31332
|
+
next_attempt_at?: string;
|
|
31333
|
+
order_id: string;
|
|
31334
|
+
reason?: string;
|
|
31335
|
+
status?: string;
|
|
31336
|
+
updated_at?: string;
|
|
31337
|
+
};
|
|
31338
|
+
Update: {
|
|
31339
|
+
attempts?: number;
|
|
31340
|
+
claimed_at?: string | null;
|
|
31341
|
+
enqueued_at?: string;
|
|
31342
|
+
error?: string | null;
|
|
31343
|
+
id?: string;
|
|
31344
|
+
next_attempt_at?: string;
|
|
31345
|
+
order_id?: string;
|
|
31346
|
+
reason?: string;
|
|
31347
|
+
status?: string;
|
|
31348
|
+
updated_at?: string;
|
|
31349
|
+
};
|
|
31350
|
+
Relationships: [];
|
|
31351
|
+
};
|
|
29652
31352
|
logistics_plan_runs: {
|
|
29653
31353
|
Row: {
|
|
29654
31354
|
created_at: string;
|
|
@@ -29724,6 +31424,24 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
29724
31424
|
referencedColumns: ["id"];
|
|
29725
31425
|
}];
|
|
29726
31426
|
};
|
|
31427
|
+
logistics_plan_settings: {
|
|
31428
|
+
Row: {
|
|
31429
|
+
key: string;
|
|
31430
|
+
updated_at: string;
|
|
31431
|
+
value: string;
|
|
31432
|
+
};
|
|
31433
|
+
Insert: {
|
|
31434
|
+
key: string;
|
|
31435
|
+
updated_at?: string;
|
|
31436
|
+
value: string;
|
|
31437
|
+
};
|
|
31438
|
+
Update: {
|
|
31439
|
+
key?: string;
|
|
31440
|
+
updated_at?: string;
|
|
31441
|
+
value?: string;
|
|
31442
|
+
};
|
|
31443
|
+
Relationships: [];
|
|
31444
|
+
};
|
|
29727
31445
|
logistics_rebuffer_state: {
|
|
29728
31446
|
Row: {
|
|
29729
31447
|
created_at: string;
|
|
@@ -30879,6 +32597,147 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
30879
32597
|
};
|
|
30880
32598
|
Relationships: [];
|
|
30881
32599
|
};
|
|
32600
|
+
material_usage: {
|
|
32601
|
+
Row: {
|
|
32602
|
+
created_at: string;
|
|
32603
|
+
id: string;
|
|
32604
|
+
material_name: string;
|
|
32605
|
+
monteur_id: string | null;
|
|
32606
|
+
price_at_time: number;
|
|
32607
|
+
quantity_used: number;
|
|
32608
|
+
updated_at: string;
|
|
32609
|
+
van_inventory_id: string | null;
|
|
32610
|
+
work_order_id: string;
|
|
32611
|
+
};
|
|
32612
|
+
Insert: {
|
|
32613
|
+
created_at?: string;
|
|
32614
|
+
id?: string;
|
|
32615
|
+
material_name: string;
|
|
32616
|
+
monteur_id?: string | null;
|
|
32617
|
+
price_at_time?: number;
|
|
32618
|
+
quantity_used?: number;
|
|
32619
|
+
updated_at?: string;
|
|
32620
|
+
van_inventory_id?: string | null;
|
|
32621
|
+
work_order_id: string;
|
|
32622
|
+
};
|
|
32623
|
+
Update: {
|
|
32624
|
+
created_at?: string;
|
|
32625
|
+
id?: string;
|
|
32626
|
+
material_name?: string;
|
|
32627
|
+
monteur_id?: string | null;
|
|
32628
|
+
price_at_time?: number;
|
|
32629
|
+
quantity_used?: number;
|
|
32630
|
+
updated_at?: string;
|
|
32631
|
+
van_inventory_id?: string | null;
|
|
32632
|
+
work_order_id?: string;
|
|
32633
|
+
};
|
|
32634
|
+
Relationships: [{
|
|
32635
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
32636
|
+
columns: ["monteur_id"];
|
|
32637
|
+
isOneToOne: false;
|
|
32638
|
+
referencedRelation: "profiles";
|
|
32639
|
+
referencedColumns: ["id"];
|
|
32640
|
+
}, {
|
|
32641
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
32642
|
+
columns: ["van_inventory_id"];
|
|
32643
|
+
isOneToOne: false;
|
|
32644
|
+
referencedRelation: "van_inventories";
|
|
32645
|
+
referencedColumns: ["id"];
|
|
32646
|
+
}, {
|
|
32647
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
32648
|
+
columns: ["work_order_id"];
|
|
32649
|
+
isOneToOne: false;
|
|
32650
|
+
referencedRelation: "work_orders";
|
|
32651
|
+
referencedColumns: ["id"];
|
|
32652
|
+
}];
|
|
32653
|
+
};
|
|
32654
|
+
medewerker_details: {
|
|
32655
|
+
Row: {
|
|
32656
|
+
color: string | null;
|
|
32657
|
+
created_at: string;
|
|
32658
|
+
hours_fri: number | null;
|
|
32659
|
+
hours_mon: number | null;
|
|
32660
|
+
hours_thu: number | null;
|
|
32661
|
+
hours_tue: number | null;
|
|
32662
|
+
hours_wed: number | null;
|
|
32663
|
+
id: string;
|
|
32664
|
+
is_active: boolean;
|
|
32665
|
+
leave_balance_hours: number;
|
|
32666
|
+
persnr: string | null;
|
|
32667
|
+
phone: string | null;
|
|
32668
|
+
profile_id: string;
|
|
32669
|
+
updated_at: string;
|
|
32670
|
+
};
|
|
32671
|
+
Insert: {
|
|
32672
|
+
color?: string | null;
|
|
32673
|
+
created_at?: string;
|
|
32674
|
+
hours_fri?: number | null;
|
|
32675
|
+
hours_mon?: number | null;
|
|
32676
|
+
hours_thu?: number | null;
|
|
32677
|
+
hours_tue?: number | null;
|
|
32678
|
+
hours_wed?: number | null;
|
|
32679
|
+
id?: string;
|
|
32680
|
+
is_active?: boolean;
|
|
32681
|
+
leave_balance_hours?: number;
|
|
32682
|
+
persnr?: string | null;
|
|
32683
|
+
phone?: string | null;
|
|
32684
|
+
profile_id: string;
|
|
32685
|
+
updated_at?: string;
|
|
32686
|
+
};
|
|
32687
|
+
Update: {
|
|
32688
|
+
color?: string | null;
|
|
32689
|
+
created_at?: string;
|
|
32690
|
+
hours_fri?: number | null;
|
|
32691
|
+
hours_mon?: number | null;
|
|
32692
|
+
hours_thu?: number | null;
|
|
32693
|
+
hours_tue?: number | null;
|
|
32694
|
+
hours_wed?: number | null;
|
|
32695
|
+
id?: string;
|
|
32696
|
+
is_active?: boolean;
|
|
32697
|
+
leave_balance_hours?: number;
|
|
32698
|
+
persnr?: string | null;
|
|
32699
|
+
phone?: string | null;
|
|
32700
|
+
profile_id?: string;
|
|
32701
|
+
updated_at?: string;
|
|
32702
|
+
};
|
|
32703
|
+
Relationships: [{
|
|
32704
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
32705
|
+
columns: ["profile_id"];
|
|
32706
|
+
isOneToOne: true;
|
|
32707
|
+
referencedRelation: "profiles";
|
|
32708
|
+
referencedColumns: ["id"];
|
|
32709
|
+
}];
|
|
32710
|
+
};
|
|
32711
|
+
module_features: {
|
|
32712
|
+
Row: {
|
|
32713
|
+
created_at: string;
|
|
32714
|
+
feature_id: string;
|
|
32715
|
+
id: string;
|
|
32716
|
+
is_active: boolean;
|
|
32717
|
+
last_seen_at: string;
|
|
32718
|
+
module_id: string;
|
|
32719
|
+
name: string;
|
|
32720
|
+
};
|
|
32721
|
+
Insert: {
|
|
32722
|
+
created_at?: string;
|
|
32723
|
+
feature_id: string;
|
|
32724
|
+
id?: string;
|
|
32725
|
+
is_active?: boolean;
|
|
32726
|
+
last_seen_at?: string;
|
|
32727
|
+
module_id: string;
|
|
32728
|
+
name: string;
|
|
32729
|
+
};
|
|
32730
|
+
Update: {
|
|
32731
|
+
created_at?: string;
|
|
32732
|
+
feature_id?: string;
|
|
32733
|
+
id?: string;
|
|
32734
|
+
is_active?: boolean;
|
|
32735
|
+
last_seen_at?: string;
|
|
32736
|
+
module_id?: string;
|
|
32737
|
+
name?: string;
|
|
32738
|
+
};
|
|
32739
|
+
Relationships: [];
|
|
32740
|
+
};
|
|
30882
32741
|
module_permissions: {
|
|
30883
32742
|
Row: {
|
|
30884
32743
|
created_at: string;
|
|
@@ -30909,6 +32768,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
30909
32768
|
module_registry: {
|
|
30910
32769
|
Row: {
|
|
30911
32770
|
created_at: string;
|
|
32771
|
+
enforce: boolean;
|
|
30912
32772
|
is_active: boolean;
|
|
30913
32773
|
last_seen_at: string;
|
|
30914
32774
|
module_id: string;
|
|
@@ -30918,6 +32778,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
30918
32778
|
};
|
|
30919
32779
|
Insert: {
|
|
30920
32780
|
created_at?: string;
|
|
32781
|
+
enforce?: boolean;
|
|
30921
32782
|
is_active?: boolean;
|
|
30922
32783
|
last_seen_at?: string;
|
|
30923
32784
|
module_id: string;
|
|
@@ -30927,6 +32788,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
30927
32788
|
};
|
|
30928
32789
|
Update: {
|
|
30929
32790
|
created_at?: string;
|
|
32791
|
+
enforce?: boolean;
|
|
30930
32792
|
is_active?: boolean;
|
|
30931
32793
|
last_seen_at?: string;
|
|
30932
32794
|
module_id?: string;
|
|
@@ -30987,63 +32849,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
30987
32849
|
};
|
|
30988
32850
|
Relationships: [];
|
|
30989
32851
|
};
|
|
30990
|
-
monteurs: {
|
|
30991
|
-
Row: {
|
|
30992
|
-
avatar_url: string | null;
|
|
30993
|
-
color: string | null;
|
|
30994
|
-
created_at: string;
|
|
30995
|
-
email: string | null;
|
|
30996
|
-
id: string;
|
|
30997
|
-
is_active: boolean;
|
|
30998
|
-
leave_balance_hours: number;
|
|
30999
|
-
name: string;
|
|
31000
|
-
persnr: number | null;
|
|
31001
|
-
phone: string | null;
|
|
31002
|
-
role: string;
|
|
31003
|
-
tenant_id: string;
|
|
31004
|
-
updated_at: string;
|
|
31005
|
-
user_id: string | null;
|
|
31006
|
-
};
|
|
31007
|
-
Insert: {
|
|
31008
|
-
avatar_url?: string | null;
|
|
31009
|
-
color?: string | null;
|
|
31010
|
-
created_at?: string;
|
|
31011
|
-
email?: string | null;
|
|
31012
|
-
id?: string;
|
|
31013
|
-
is_active?: boolean;
|
|
31014
|
-
leave_balance_hours?: number;
|
|
31015
|
-
name: string;
|
|
31016
|
-
persnr?: number | null;
|
|
31017
|
-
phone?: string | null;
|
|
31018
|
-
role?: string;
|
|
31019
|
-
tenant_id: string;
|
|
31020
|
-
updated_at?: string;
|
|
31021
|
-
user_id?: string | null;
|
|
31022
|
-
};
|
|
31023
|
-
Update: {
|
|
31024
|
-
avatar_url?: string | null;
|
|
31025
|
-
color?: string | null;
|
|
31026
|
-
created_at?: string;
|
|
31027
|
-
email?: string | null;
|
|
31028
|
-
id?: string;
|
|
31029
|
-
is_active?: boolean;
|
|
31030
|
-
leave_balance_hours?: number;
|
|
31031
|
-
name?: string;
|
|
31032
|
-
persnr?: number | null;
|
|
31033
|
-
phone?: string | null;
|
|
31034
|
-
role?: string;
|
|
31035
|
-
tenant_id?: string;
|
|
31036
|
-
updated_at?: string;
|
|
31037
|
-
user_id?: string | null;
|
|
31038
|
-
};
|
|
31039
|
-
Relationships: [{
|
|
31040
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
31041
|
-
columns: ["tenant_id"];
|
|
31042
|
-
isOneToOne: false;
|
|
31043
|
-
referencedRelation: "tenants";
|
|
31044
|
-
referencedColumns: ["id"];
|
|
31045
|
-
}];
|
|
31046
|
-
};
|
|
31047
32852
|
nmbrs_component_mapping: {
|
|
31048
32853
|
Row: {
|
|
31049
32854
|
created_at: string;
|
|
@@ -31114,13 +32919,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
31114
32919
|
nmbrs_employee_number?: string;
|
|
31115
32920
|
updated_at?: string;
|
|
31116
32921
|
};
|
|
31117
|
-
Relationships: [
|
|
31118
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
31119
|
-
columns: ["monteur_id"];
|
|
31120
|
-
isOneToOne: true;
|
|
31121
|
-
referencedRelation: "monteurs";
|
|
31122
|
-
referencedColumns: ["id"];
|
|
31123
|
-
}];
|
|
32922
|
+
Relationships: [];
|
|
31124
32923
|
};
|
|
31125
32924
|
nmbrs_export_lines: {
|
|
31126
32925
|
Row: {
|
|
@@ -31169,12 +32968,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
31169
32968
|
wage_code?: string;
|
|
31170
32969
|
};
|
|
31171
32970
|
Relationships: [{
|
|
31172
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
31173
|
-
columns: ["monteur_id"];
|
|
31174
|
-
isOneToOne: false;
|
|
31175
|
-
referencedRelation: "monteurs";
|
|
31176
|
-
referencedColumns: ["id"];
|
|
31177
|
-
}, {
|
|
31178
32971
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
31179
32972
|
columns: ["run_id"];
|
|
31180
32973
|
isOneToOne: false;
|
|
@@ -32002,6 +33795,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
32002
33795
|
error_message: string | null;
|
|
32003
33796
|
id: string;
|
|
32004
33797
|
invoice_number: string | null;
|
|
33798
|
+
next_attempt_at: string;
|
|
32005
33799
|
order_id: string;
|
|
32006
33800
|
processed_at: string | null;
|
|
32007
33801
|
status: string;
|
|
@@ -32013,6 +33807,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
32013
33807
|
error_message?: string | null;
|
|
32014
33808
|
id?: string;
|
|
32015
33809
|
invoice_number?: string | null;
|
|
33810
|
+
next_attempt_at?: string;
|
|
32016
33811
|
order_id: string;
|
|
32017
33812
|
processed_at?: string | null;
|
|
32018
33813
|
status?: string;
|
|
@@ -32024,6 +33819,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
32024
33819
|
error_message?: string | null;
|
|
32025
33820
|
id?: string;
|
|
32026
33821
|
invoice_number?: string | null;
|
|
33822
|
+
next_attempt_at?: string;
|
|
32027
33823
|
order_id?: string;
|
|
32028
33824
|
processed_at?: string | null;
|
|
32029
33825
|
status?: string;
|
|
@@ -32205,6 +34001,8 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
32205
34001
|
orders: {
|
|
32206
34002
|
Row: {
|
|
32207
34003
|
buffer_id: string | null;
|
|
34004
|
+
cancel_reason: string | null;
|
|
34005
|
+
cancelled_at: string | null;
|
|
32208
34006
|
created_at: string;
|
|
32209
34007
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
32210
34008
|
customer_id: string | null;
|
|
@@ -32227,6 +34025,8 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
32227
34025
|
};
|
|
32228
34026
|
Insert: {
|
|
32229
34027
|
buffer_id?: string | null;
|
|
34028
|
+
cancel_reason?: string | null;
|
|
34029
|
+
cancelled_at?: string | null;
|
|
32230
34030
|
created_at?: string;
|
|
32231
34031
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
32232
34032
|
customer_id?: string | null;
|
|
@@ -32249,6 +34049,8 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
32249
34049
|
};
|
|
32250
34050
|
Update: {
|
|
32251
34051
|
buffer_id?: string | null;
|
|
34052
|
+
cancel_reason?: string | null;
|
|
34053
|
+
cancelled_at?: string | null;
|
|
32252
34054
|
created_at?: string;
|
|
32253
34055
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
32254
34056
|
customer_id?: string | null;
|
|
@@ -33562,6 +35364,9 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
33562
35364
|
created_at: string;
|
|
33563
35365
|
id: string;
|
|
33564
35366
|
laatst_gezien: string;
|
|
35367
|
+
laatste_fout: string | null;
|
|
35368
|
+
laatste_request_id: number | null;
|
|
35369
|
+
mislukte_posts: number;
|
|
33565
35370
|
tick_sleutel: string;
|
|
33566
35371
|
updated_at: string;
|
|
33567
35372
|
};
|
|
@@ -33571,6 +35376,9 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
33571
35376
|
created_at?: string;
|
|
33572
35377
|
id?: string;
|
|
33573
35378
|
laatst_gezien?: string;
|
|
35379
|
+
laatste_fout?: string | null;
|
|
35380
|
+
laatste_request_id?: number | null;
|
|
35381
|
+
mislukte_posts?: number;
|
|
33574
35382
|
tick_sleutel?: string;
|
|
33575
35383
|
updated_at?: string;
|
|
33576
35384
|
};
|
|
@@ -33580,6 +35388,9 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
33580
35388
|
created_at?: string;
|
|
33581
35389
|
id?: string;
|
|
33582
35390
|
laatst_gezien?: string;
|
|
35391
|
+
laatste_fout?: string | null;
|
|
35392
|
+
laatste_request_id?: number | null;
|
|
35393
|
+
mislukte_posts?: number;
|
|
33583
35394
|
tick_sleutel?: string;
|
|
33584
35395
|
updated_at?: string;
|
|
33585
35396
|
};
|
|
@@ -34302,6 +36113,66 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
34302
36113
|
};
|
|
34303
36114
|
Relationships: [];
|
|
34304
36115
|
};
|
|
36116
|
+
profile_modules: {
|
|
36117
|
+
Row: {
|
|
36118
|
+
created_at: string;
|
|
36119
|
+
id: string;
|
|
36120
|
+
module_id: string;
|
|
36121
|
+
profile_id: string;
|
|
36122
|
+
};
|
|
36123
|
+
Insert: {
|
|
36124
|
+
created_at?: string;
|
|
36125
|
+
id?: string;
|
|
36126
|
+
module_id: string;
|
|
36127
|
+
profile_id: string;
|
|
36128
|
+
};
|
|
36129
|
+
Update: {
|
|
36130
|
+
created_at?: string;
|
|
36131
|
+
id?: string;
|
|
36132
|
+
module_id?: string;
|
|
36133
|
+
profile_id?: string;
|
|
36134
|
+
};
|
|
36135
|
+
Relationships: [{
|
|
36136
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
36137
|
+
columns: ["profile_id"];
|
|
36138
|
+
isOneToOne: false;
|
|
36139
|
+
referencedRelation: "profiles_org";
|
|
36140
|
+
referencedColumns: ["id"];
|
|
36141
|
+
}];
|
|
36142
|
+
};
|
|
36143
|
+
profile_roles: {
|
|
36144
|
+
Row: {
|
|
36145
|
+
created_at: string;
|
|
36146
|
+
id: string;
|
|
36147
|
+
profile_id: string;
|
|
36148
|
+
role_id: string;
|
|
36149
|
+
};
|
|
36150
|
+
Insert: {
|
|
36151
|
+
created_at?: string;
|
|
36152
|
+
id?: string;
|
|
36153
|
+
profile_id: string;
|
|
36154
|
+
role_id: string;
|
|
36155
|
+
};
|
|
36156
|
+
Update: {
|
|
36157
|
+
created_at?: string;
|
|
36158
|
+
id?: string;
|
|
36159
|
+
profile_id?: string;
|
|
36160
|
+
role_id?: string;
|
|
36161
|
+
};
|
|
36162
|
+
Relationships: [{
|
|
36163
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
36164
|
+
columns: ["profile_id"];
|
|
36165
|
+
isOneToOne: false;
|
|
36166
|
+
referencedRelation: "profiles_org";
|
|
36167
|
+
referencedColumns: ["id"];
|
|
36168
|
+
}, {
|
|
36169
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
36170
|
+
columns: ["role_id"];
|
|
36171
|
+
isOneToOne: false;
|
|
36172
|
+
referencedRelation: "roles";
|
|
36173
|
+
referencedColumns: ["id"];
|
|
36174
|
+
}];
|
|
36175
|
+
};
|
|
34305
36176
|
profiles: {
|
|
34306
36177
|
Row: {
|
|
34307
36178
|
address: string | null;
|
|
@@ -34347,6 +36218,39 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
34347
36218
|
referencedColumns: ["id"];
|
|
34348
36219
|
}];
|
|
34349
36220
|
};
|
|
36221
|
+
profiles_org: {
|
|
36222
|
+
Row: {
|
|
36223
|
+
created_at: string;
|
|
36224
|
+
id: string;
|
|
36225
|
+
is_default: boolean;
|
|
36226
|
+
name: string;
|
|
36227
|
+
tenant_id: string | null;
|
|
36228
|
+
updated_at: string;
|
|
36229
|
+
};
|
|
36230
|
+
Insert: {
|
|
36231
|
+
created_at?: string;
|
|
36232
|
+
id?: string;
|
|
36233
|
+
is_default?: boolean;
|
|
36234
|
+
name: string;
|
|
36235
|
+
tenant_id?: string | null;
|
|
36236
|
+
updated_at?: string;
|
|
36237
|
+
};
|
|
36238
|
+
Update: {
|
|
36239
|
+
created_at?: string;
|
|
36240
|
+
id?: string;
|
|
36241
|
+
is_default?: boolean;
|
|
36242
|
+
name?: string;
|
|
36243
|
+
tenant_id?: string | null;
|
|
36244
|
+
updated_at?: string;
|
|
36245
|
+
};
|
|
36246
|
+
Relationships: [{
|
|
36247
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
36248
|
+
columns: ["tenant_id"];
|
|
36249
|
+
isOneToOne: false;
|
|
36250
|
+
referencedRelation: "tenants";
|
|
36251
|
+
referencedColumns: ["id"];
|
|
36252
|
+
}];
|
|
36253
|
+
};
|
|
34350
36254
|
projects: {
|
|
34351
36255
|
Row: {
|
|
34352
36256
|
contact_name: string | null;
|
|
@@ -35088,6 +36992,96 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
35088
36992
|
referencedColumns: ["id"];
|
|
35089
36993
|
}];
|
|
35090
36994
|
};
|
|
36995
|
+
role_assignments: {
|
|
36996
|
+
Row: {
|
|
36997
|
+
created_at: string;
|
|
36998
|
+
id: string;
|
|
36999
|
+
role_id: string;
|
|
37000
|
+
user_id: string;
|
|
37001
|
+
};
|
|
37002
|
+
Insert: {
|
|
37003
|
+
created_at?: string;
|
|
37004
|
+
id?: string;
|
|
37005
|
+
role_id: string;
|
|
37006
|
+
user_id: string;
|
|
37007
|
+
};
|
|
37008
|
+
Update: {
|
|
37009
|
+
created_at?: string;
|
|
37010
|
+
id?: string;
|
|
37011
|
+
role_id?: string;
|
|
37012
|
+
user_id?: string;
|
|
37013
|
+
};
|
|
37014
|
+
Relationships: [{
|
|
37015
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
37016
|
+
columns: ["role_id"];
|
|
37017
|
+
isOneToOne: false;
|
|
37018
|
+
referencedRelation: "roles";
|
|
37019
|
+
referencedColumns: ["id"];
|
|
37020
|
+
}];
|
|
37021
|
+
};
|
|
37022
|
+
role_permissions: {
|
|
37023
|
+
Row: {
|
|
37024
|
+
can_edit: boolean;
|
|
37025
|
+
can_view: boolean;
|
|
37026
|
+
feature_id: string;
|
|
37027
|
+
id: string;
|
|
37028
|
+
module_id: string;
|
|
37029
|
+
role_id: string;
|
|
37030
|
+
updated_at: string;
|
|
37031
|
+
};
|
|
37032
|
+
Insert: {
|
|
37033
|
+
can_edit?: boolean;
|
|
37034
|
+
can_view?: boolean;
|
|
37035
|
+
feature_id?: string;
|
|
37036
|
+
id?: string;
|
|
37037
|
+
module_id: string;
|
|
37038
|
+
role_id: string;
|
|
37039
|
+
updated_at?: string;
|
|
37040
|
+
};
|
|
37041
|
+
Update: {
|
|
37042
|
+
can_edit?: boolean;
|
|
37043
|
+
can_view?: boolean;
|
|
37044
|
+
feature_id?: string;
|
|
37045
|
+
id?: string;
|
|
37046
|
+
module_id?: string;
|
|
37047
|
+
role_id?: string;
|
|
37048
|
+
updated_at?: string;
|
|
37049
|
+
};
|
|
37050
|
+
Relationships: [{
|
|
37051
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
37052
|
+
columns: ["role_id"];
|
|
37053
|
+
isOneToOne: false;
|
|
37054
|
+
referencedRelation: "roles";
|
|
37055
|
+
referencedColumns: ["id"];
|
|
37056
|
+
}];
|
|
37057
|
+
};
|
|
37058
|
+
roles: {
|
|
37059
|
+
Row: {
|
|
37060
|
+
created_at: string;
|
|
37061
|
+
id: string;
|
|
37062
|
+
is_protected: boolean;
|
|
37063
|
+
key: string;
|
|
37064
|
+
name: string;
|
|
37065
|
+
updated_at: string;
|
|
37066
|
+
};
|
|
37067
|
+
Insert: {
|
|
37068
|
+
created_at?: string;
|
|
37069
|
+
id?: string;
|
|
37070
|
+
is_protected?: boolean;
|
|
37071
|
+
key: string;
|
|
37072
|
+
name: string;
|
|
37073
|
+
updated_at?: string;
|
|
37074
|
+
};
|
|
37075
|
+
Update: {
|
|
37076
|
+
created_at?: string;
|
|
37077
|
+
id?: string;
|
|
37078
|
+
is_protected?: boolean;
|
|
37079
|
+
key?: string;
|
|
37080
|
+
name?: string;
|
|
37081
|
+
updated_at?: string;
|
|
37082
|
+
};
|
|
37083
|
+
Relationships: [];
|
|
37084
|
+
};
|
|
35091
37085
|
rooms: {
|
|
35092
37086
|
Row: {
|
|
35093
37087
|
capacity: number;
|
|
@@ -35431,6 +37425,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
35431
37425
|
type: string;
|
|
35432
37426
|
updated_at: string;
|
|
35433
37427
|
vereist_medewerker: boolean;
|
|
37428
|
+
werkplek: string | null;
|
|
35434
37429
|
};
|
|
35435
37430
|
Insert: {
|
|
35436
37431
|
actief?: boolean;
|
|
@@ -35444,6 +37439,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
35444
37439
|
type?: string;
|
|
35445
37440
|
updated_at?: string;
|
|
35446
37441
|
vereist_medewerker?: boolean;
|
|
37442
|
+
werkplek?: string | null;
|
|
35447
37443
|
};
|
|
35448
37444
|
Update: {
|
|
35449
37445
|
actief?: boolean;
|
|
@@ -35457,9 +37453,46 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
35457
37453
|
type?: string;
|
|
35458
37454
|
updated_at?: string;
|
|
35459
37455
|
vereist_medewerker?: boolean;
|
|
37456
|
+
werkplek?: string | null;
|
|
35460
37457
|
};
|
|
35461
37458
|
Relationships: [];
|
|
35462
37459
|
};
|
|
37460
|
+
sick_periods: {
|
|
37461
|
+
Row: {
|
|
37462
|
+
created_at: string;
|
|
37463
|
+
employee_id: string;
|
|
37464
|
+
end_date: string | null;
|
|
37465
|
+
id: string;
|
|
37466
|
+
notes: string | null;
|
|
37467
|
+
start_date: string;
|
|
37468
|
+
updated_at: string;
|
|
37469
|
+
};
|
|
37470
|
+
Insert: {
|
|
37471
|
+
created_at?: string;
|
|
37472
|
+
employee_id: string;
|
|
37473
|
+
end_date?: string | null;
|
|
37474
|
+
id?: string;
|
|
37475
|
+
notes?: string | null;
|
|
37476
|
+
start_date: string;
|
|
37477
|
+
updated_at?: string;
|
|
37478
|
+
};
|
|
37479
|
+
Update: {
|
|
37480
|
+
created_at?: string;
|
|
37481
|
+
employee_id?: string;
|
|
37482
|
+
end_date?: string | null;
|
|
37483
|
+
id?: string;
|
|
37484
|
+
notes?: string | null;
|
|
37485
|
+
start_date?: string;
|
|
37486
|
+
updated_at?: string;
|
|
37487
|
+
};
|
|
37488
|
+
Relationships: [{
|
|
37489
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
37490
|
+
columns: ["employee_id"];
|
|
37491
|
+
isOneToOne: false;
|
|
37492
|
+
referencedRelation: "profiles";
|
|
37493
|
+
referencedColumns: ["id"];
|
|
37494
|
+
}];
|
|
37495
|
+
};
|
|
35463
37496
|
sidebar_config: {
|
|
35464
37497
|
Row: {
|
|
35465
37498
|
id: string;
|
|
@@ -35757,6 +37790,54 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
35757
37790
|
};
|
|
35758
37791
|
Relationships: [];
|
|
35759
37792
|
};
|
|
37793
|
+
time_compensation_entries: {
|
|
37794
|
+
Row: {
|
|
37795
|
+
created_at: string;
|
|
37796
|
+
employee_id: string;
|
|
37797
|
+
entry_date: string;
|
|
37798
|
+
id: string;
|
|
37799
|
+
km: number;
|
|
37800
|
+
meal_allowance: number;
|
|
37801
|
+
notes: string | null;
|
|
37802
|
+
standby_evening: number;
|
|
37803
|
+
standby_weekend: number;
|
|
37804
|
+
tvt_change: number;
|
|
37805
|
+
updated_at: string;
|
|
37806
|
+
};
|
|
37807
|
+
Insert: {
|
|
37808
|
+
created_at?: string;
|
|
37809
|
+
employee_id: string;
|
|
37810
|
+
entry_date: string;
|
|
37811
|
+
id?: string;
|
|
37812
|
+
km?: number;
|
|
37813
|
+
meal_allowance?: number;
|
|
37814
|
+
notes?: string | null;
|
|
37815
|
+
standby_evening?: number;
|
|
37816
|
+
standby_weekend?: number;
|
|
37817
|
+
tvt_change?: number;
|
|
37818
|
+
updated_at?: string;
|
|
37819
|
+
};
|
|
37820
|
+
Update: {
|
|
37821
|
+
created_at?: string;
|
|
37822
|
+
employee_id?: string;
|
|
37823
|
+
entry_date?: string;
|
|
37824
|
+
id?: string;
|
|
37825
|
+
km?: number;
|
|
37826
|
+
meal_allowance?: number;
|
|
37827
|
+
notes?: string | null;
|
|
37828
|
+
standby_evening?: number;
|
|
37829
|
+
standby_weekend?: number;
|
|
37830
|
+
tvt_change?: number;
|
|
37831
|
+
updated_at?: string;
|
|
37832
|
+
};
|
|
37833
|
+
Relationships: [{
|
|
37834
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
37835
|
+
columns: ["employee_id"];
|
|
37836
|
+
isOneToOne: false;
|
|
37837
|
+
referencedRelation: "profiles";
|
|
37838
|
+
referencedColumns: ["id"];
|
|
37839
|
+
}];
|
|
37840
|
+
};
|
|
35760
37841
|
time_entries: {
|
|
35761
37842
|
Row: {
|
|
35762
37843
|
created_at: string;
|
|
@@ -35791,65 +37872,170 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
35791
37872
|
undertime?: number;
|
|
35792
37873
|
updated_at?: string;
|
|
35793
37874
|
};
|
|
37875
|
+
Relationships: [];
|
|
37876
|
+
};
|
|
37877
|
+
time_log_week_approvals: {
|
|
37878
|
+
Row: {
|
|
37879
|
+
approved_at: string | null;
|
|
37880
|
+
approved_by: string | null;
|
|
37881
|
+
created_at: string;
|
|
37882
|
+
employee_id: string;
|
|
37883
|
+
id: string;
|
|
37884
|
+
locked: boolean;
|
|
37885
|
+
notes: string | null;
|
|
37886
|
+
status: string;
|
|
37887
|
+
submitted_at: string | null;
|
|
37888
|
+
updated_at: string;
|
|
37889
|
+
week_start: string;
|
|
37890
|
+
};
|
|
37891
|
+
Insert: {
|
|
37892
|
+
approved_at?: string | null;
|
|
37893
|
+
approved_by?: string | null;
|
|
37894
|
+
created_at?: string;
|
|
37895
|
+
employee_id: string;
|
|
37896
|
+
id?: string;
|
|
37897
|
+
locked?: boolean;
|
|
37898
|
+
notes?: string | null;
|
|
37899
|
+
status?: string;
|
|
37900
|
+
submitted_at?: string | null;
|
|
37901
|
+
updated_at?: string;
|
|
37902
|
+
week_start: string;
|
|
37903
|
+
};
|
|
37904
|
+
Update: {
|
|
37905
|
+
approved_at?: string | null;
|
|
37906
|
+
approved_by?: string | null;
|
|
37907
|
+
created_at?: string;
|
|
37908
|
+
employee_id?: string;
|
|
37909
|
+
id?: string;
|
|
37910
|
+
locked?: boolean;
|
|
37911
|
+
notes?: string | null;
|
|
37912
|
+
status?: string;
|
|
37913
|
+
submitted_at?: string | null;
|
|
37914
|
+
updated_at?: string;
|
|
37915
|
+
week_start?: string;
|
|
37916
|
+
};
|
|
35794
37917
|
Relationships: [{
|
|
35795
|
-
foreignKeyName: "
|
|
37918
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
35796
37919
|
columns: ["employee_id"];
|
|
35797
37920
|
isOneToOne: false;
|
|
35798
|
-
referencedRelation: "
|
|
37921
|
+
referencedRelation: "profiles";
|
|
35799
37922
|
referencedColumns: ["id"];
|
|
35800
37923
|
}];
|
|
35801
37924
|
};
|
|
35802
37925
|
time_logs: {
|
|
35803
37926
|
Row: {
|
|
37927
|
+
auto_stop_reason: string | null;
|
|
37928
|
+
auto_stopped: boolean;
|
|
35804
37929
|
created_at: string;
|
|
37930
|
+
current_latitude: number | null;
|
|
37931
|
+
current_longitude: number | null;
|
|
37932
|
+
current_position_updated_at: string | null;
|
|
35805
37933
|
employee_id: string;
|
|
37934
|
+
end_latitude: number | null;
|
|
37935
|
+
end_longitude: number | null;
|
|
35806
37936
|
end_time: string | null;
|
|
37937
|
+
eta_distance_km: number | null;
|
|
37938
|
+
eta_minutes: number | null;
|
|
37939
|
+
eta_updated_at: string | null;
|
|
37940
|
+
hour_category: string | null;
|
|
35807
37941
|
id: string;
|
|
37942
|
+
last_reminder_at: string | null;
|
|
35808
37943
|
notes: string | null;
|
|
35809
37944
|
overtime_hours: number;
|
|
35810
37945
|
overtime_type: string | null;
|
|
35811
37946
|
regular_hours: number;
|
|
37947
|
+
reminder_count: number;
|
|
37948
|
+
requires_review: boolean;
|
|
37949
|
+
start_latitude: number | null;
|
|
37950
|
+
start_longitude: number | null;
|
|
35812
37951
|
start_time: string;
|
|
35813
37952
|
travel_cost: number | null;
|
|
35814
37953
|
travel_distance_km: number | null;
|
|
37954
|
+
travel_duration_min: number | null;
|
|
37955
|
+
travel_time_minutes: number | null;
|
|
35815
37956
|
type: string;
|
|
35816
37957
|
updated_at: string;
|
|
37958
|
+
work_order_id: string | null;
|
|
35817
37959
|
};
|
|
35818
37960
|
Insert: {
|
|
37961
|
+
auto_stop_reason?: string | null;
|
|
37962
|
+
auto_stopped?: boolean;
|
|
35819
37963
|
created_at?: string;
|
|
37964
|
+
current_latitude?: number | null;
|
|
37965
|
+
current_longitude?: number | null;
|
|
37966
|
+
current_position_updated_at?: string | null;
|
|
35820
37967
|
employee_id: string;
|
|
37968
|
+
end_latitude?: number | null;
|
|
37969
|
+
end_longitude?: number | null;
|
|
35821
37970
|
end_time?: string | null;
|
|
37971
|
+
eta_distance_km?: number | null;
|
|
37972
|
+
eta_minutes?: number | null;
|
|
37973
|
+
eta_updated_at?: string | null;
|
|
37974
|
+
hour_category?: string | null;
|
|
35822
37975
|
id?: string;
|
|
37976
|
+
last_reminder_at?: string | null;
|
|
35823
37977
|
notes?: string | null;
|
|
35824
37978
|
overtime_hours?: number;
|
|
35825
37979
|
overtime_type?: string | null;
|
|
35826
37980
|
regular_hours?: number;
|
|
37981
|
+
reminder_count?: number;
|
|
37982
|
+
requires_review?: boolean;
|
|
37983
|
+
start_latitude?: number | null;
|
|
37984
|
+
start_longitude?: number | null;
|
|
35827
37985
|
start_time?: string;
|
|
35828
37986
|
travel_cost?: number | null;
|
|
35829
37987
|
travel_distance_km?: number | null;
|
|
37988
|
+
travel_duration_min?: number | null;
|
|
37989
|
+
travel_time_minutes?: number | null;
|
|
35830
37990
|
type: string;
|
|
35831
37991
|
updated_at?: string;
|
|
37992
|
+
work_order_id?: string | null;
|
|
35832
37993
|
};
|
|
35833
37994
|
Update: {
|
|
37995
|
+
auto_stop_reason?: string | null;
|
|
37996
|
+
auto_stopped?: boolean;
|
|
35834
37997
|
created_at?: string;
|
|
37998
|
+
current_latitude?: number | null;
|
|
37999
|
+
current_longitude?: number | null;
|
|
38000
|
+
current_position_updated_at?: string | null;
|
|
35835
38001
|
employee_id?: string;
|
|
38002
|
+
end_latitude?: number | null;
|
|
38003
|
+
end_longitude?: number | null;
|
|
35836
38004
|
end_time?: string | null;
|
|
38005
|
+
eta_distance_km?: number | null;
|
|
38006
|
+
eta_minutes?: number | null;
|
|
38007
|
+
eta_updated_at?: string | null;
|
|
38008
|
+
hour_category?: string | null;
|
|
35837
38009
|
id?: string;
|
|
38010
|
+
last_reminder_at?: string | null;
|
|
35838
38011
|
notes?: string | null;
|
|
35839
38012
|
overtime_hours?: number;
|
|
35840
38013
|
overtime_type?: string | null;
|
|
35841
38014
|
regular_hours?: number;
|
|
38015
|
+
reminder_count?: number;
|
|
38016
|
+
requires_review?: boolean;
|
|
38017
|
+
start_latitude?: number | null;
|
|
38018
|
+
start_longitude?: number | null;
|
|
35842
38019
|
start_time?: string;
|
|
35843
38020
|
travel_cost?: number | null;
|
|
35844
38021
|
travel_distance_km?: number | null;
|
|
38022
|
+
travel_duration_min?: number | null;
|
|
38023
|
+
travel_time_minutes?: number | null;
|
|
35845
38024
|
type?: string;
|
|
35846
38025
|
updated_at?: string;
|
|
38026
|
+
work_order_id?: string | null;
|
|
35847
38027
|
};
|
|
35848
38028
|
Relationships: [{
|
|
35849
38029
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
35850
38030
|
columns: ["employee_id"];
|
|
35851
38031
|
isOneToOne: false;
|
|
35852
|
-
referencedRelation: "
|
|
38032
|
+
referencedRelation: "profiles";
|
|
38033
|
+
referencedColumns: ["id"];
|
|
38034
|
+
}, {
|
|
38035
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
38036
|
+
columns: ["work_order_id"];
|
|
38037
|
+
isOneToOne: false;
|
|
38038
|
+
referencedRelation: "work_orders";
|
|
35853
38039
|
referencedColumns: ["id"];
|
|
35854
38040
|
}];
|
|
35855
38041
|
};
|
|
@@ -35888,7 +38074,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
35888
38074
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
35889
38075
|
columns: ["employee_id"];
|
|
35890
38076
|
isOneToOne: false;
|
|
35891
|
-
referencedRelation: "
|
|
38077
|
+
referencedRelation: "profiles";
|
|
35892
38078
|
referencedColumns: ["id"];
|
|
35893
38079
|
}];
|
|
35894
38080
|
};
|
|
@@ -36198,6 +38384,39 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
36198
38384
|
};
|
|
36199
38385
|
Relationships: [];
|
|
36200
38386
|
};
|
|
38387
|
+
twinfield_cron_locks: {
|
|
38388
|
+
Row: {
|
|
38389
|
+
created_at: string;
|
|
38390
|
+
heartbeat_at: string;
|
|
38391
|
+
job_name: string;
|
|
38392
|
+
last_error: string | null;
|
|
38393
|
+
last_finished_at: string | null;
|
|
38394
|
+
locked_at: string;
|
|
38395
|
+
run_id: string;
|
|
38396
|
+
updated_at: string;
|
|
38397
|
+
};
|
|
38398
|
+
Insert: {
|
|
38399
|
+
created_at?: string;
|
|
38400
|
+
heartbeat_at?: string;
|
|
38401
|
+
job_name: string;
|
|
38402
|
+
last_error?: string | null;
|
|
38403
|
+
last_finished_at?: string | null;
|
|
38404
|
+
locked_at?: string;
|
|
38405
|
+
run_id?: string;
|
|
38406
|
+
updated_at?: string;
|
|
38407
|
+
};
|
|
38408
|
+
Update: {
|
|
38409
|
+
created_at?: string;
|
|
38410
|
+
heartbeat_at?: string;
|
|
38411
|
+
job_name?: string;
|
|
38412
|
+
last_error?: string | null;
|
|
38413
|
+
last_finished_at?: string | null;
|
|
38414
|
+
locked_at?: string;
|
|
38415
|
+
run_id?: string;
|
|
38416
|
+
updated_at?: string;
|
|
38417
|
+
};
|
|
38418
|
+
Relationships: [];
|
|
38419
|
+
};
|
|
36201
38420
|
twinfield_customers: {
|
|
36202
38421
|
Row: {
|
|
36203
38422
|
address: string | null;
|
|
@@ -36798,6 +39017,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
36798
39017
|
twinfield_push_queue: {
|
|
36799
39018
|
Row: {
|
|
36800
39019
|
action: string;
|
|
39020
|
+
attempt_started_at: string | null;
|
|
36801
39021
|
attempts: number;
|
|
36802
39022
|
connection_id: string | null;
|
|
36803
39023
|
created_at: string;
|
|
@@ -36814,6 +39034,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
36814
39034
|
};
|
|
36815
39035
|
Insert: {
|
|
36816
39036
|
action?: string;
|
|
39037
|
+
attempt_started_at?: string | null;
|
|
36817
39038
|
attempts?: number;
|
|
36818
39039
|
connection_id?: string | null;
|
|
36819
39040
|
created_at?: string;
|
|
@@ -36830,6 +39051,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
36830
39051
|
};
|
|
36831
39052
|
Update: {
|
|
36832
39053
|
action?: string;
|
|
39054
|
+
attempt_started_at?: string | null;
|
|
36833
39055
|
attempts?: number;
|
|
36834
39056
|
connection_id?: string | null;
|
|
36835
39057
|
created_at?: string;
|
|
@@ -37027,13 +39249,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
37027
39249
|
workday_end?: string | null;
|
|
37028
39250
|
workday_start?: string | null;
|
|
37029
39251
|
};
|
|
37030
|
-
Relationships: [
|
|
37031
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
37032
|
-
columns: ["monteur_id"];
|
|
37033
|
-
isOneToOne: true;
|
|
37034
|
-
referencedRelation: "monteurs";
|
|
37035
|
-
referencedColumns: ["id"];
|
|
37036
|
-
}];
|
|
39252
|
+
Relationships: [];
|
|
37037
39253
|
};
|
|
37038
39254
|
uren_entries: {
|
|
37039
39255
|
Row: {
|
|
@@ -37079,12 +39295,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
37079
39295
|
werkbon_id?: string | null;
|
|
37080
39296
|
};
|
|
37081
39297
|
Relationships: [{
|
|
37082
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
37083
|
-
columns: ["monteur_id"];
|
|
37084
|
-
isOneToOne: false;
|
|
37085
|
-
referencedRelation: "monteurs";
|
|
37086
|
-
referencedColumns: ["id"];
|
|
37087
|
-
}, {
|
|
37088
39298
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
37089
39299
|
columns: ["werkbon_id"];
|
|
37090
39300
|
isOneToOne: false;
|
|
@@ -37552,17 +39762,12 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
37552
39762
|
submitted_at?: string | null;
|
|
37553
39763
|
updated_at?: string;
|
|
37554
39764
|
};
|
|
37555
|
-
Relationships: [
|
|
37556
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
37557
|
-
columns: ["monteur_id"];
|
|
37558
|
-
isOneToOne: false;
|
|
37559
|
-
referencedRelation: "monteurs";
|
|
37560
|
-
referencedColumns: ["id"];
|
|
37561
|
-
}];
|
|
39765
|
+
Relationships: [];
|
|
37562
39766
|
};
|
|
37563
39767
|
user_module_permissions: {
|
|
37564
39768
|
Row: {
|
|
37565
39769
|
created_at: string;
|
|
39770
|
+
feature_id: string;
|
|
37566
39771
|
id: string;
|
|
37567
39772
|
module_id: string;
|
|
37568
39773
|
permission: string;
|
|
@@ -37571,6 +39776,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
37571
39776
|
};
|
|
37572
39777
|
Insert: {
|
|
37573
39778
|
created_at?: string;
|
|
39779
|
+
feature_id?: string;
|
|
37574
39780
|
id?: string;
|
|
37575
39781
|
module_id: string;
|
|
37576
39782
|
permission: string;
|
|
@@ -37579,6 +39785,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
37579
39785
|
};
|
|
37580
39786
|
Update: {
|
|
37581
39787
|
created_at?: string;
|
|
39788
|
+
feature_id?: string;
|
|
37582
39789
|
id?: string;
|
|
37583
39790
|
module_id?: string;
|
|
37584
39791
|
permission?: string;
|
|
@@ -37614,6 +39821,51 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
37614
39821
|
referencedColumns: ["id"];
|
|
37615
39822
|
}];
|
|
37616
39823
|
};
|
|
39824
|
+
van_inventories: {
|
|
39825
|
+
Row: {
|
|
39826
|
+
barcode: string | null;
|
|
39827
|
+
created_at: string;
|
|
39828
|
+
id: string;
|
|
39829
|
+
monteur_id: string | null;
|
|
39830
|
+
price_per_unit: number;
|
|
39831
|
+
product_name: string;
|
|
39832
|
+
quantity_current: number;
|
|
39833
|
+
quantity_min: number;
|
|
39834
|
+
unit: string;
|
|
39835
|
+
updated_at: string;
|
|
39836
|
+
};
|
|
39837
|
+
Insert: {
|
|
39838
|
+
barcode?: string | null;
|
|
39839
|
+
created_at?: string;
|
|
39840
|
+
id?: string;
|
|
39841
|
+
monteur_id?: string | null;
|
|
39842
|
+
price_per_unit?: number;
|
|
39843
|
+
product_name: string;
|
|
39844
|
+
quantity_current?: number;
|
|
39845
|
+
quantity_min?: number;
|
|
39846
|
+
unit?: string;
|
|
39847
|
+
updated_at?: string;
|
|
39848
|
+
};
|
|
39849
|
+
Update: {
|
|
39850
|
+
barcode?: string | null;
|
|
39851
|
+
created_at?: string;
|
|
39852
|
+
id?: string;
|
|
39853
|
+
monteur_id?: string | null;
|
|
39854
|
+
price_per_unit?: number;
|
|
39855
|
+
product_name?: string;
|
|
39856
|
+
quantity_current?: number;
|
|
39857
|
+
quantity_min?: number;
|
|
39858
|
+
unit?: string;
|
|
39859
|
+
updated_at?: string;
|
|
39860
|
+
};
|
|
39861
|
+
Relationships: [{
|
|
39862
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
39863
|
+
columns: ["monteur_id"];
|
|
39864
|
+
isOneToOne: false;
|
|
39865
|
+
referencedRelation: "profiles";
|
|
39866
|
+
referencedColumns: ["id"];
|
|
39867
|
+
}];
|
|
39868
|
+
};
|
|
37617
39869
|
voorraad_custom_fields: {
|
|
37618
39870
|
Row: {
|
|
37619
39871
|
created_at: string;
|
|
@@ -38564,7 +40816,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
38564
40816
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
38565
40817
|
columns: ["monteur_id"];
|
|
38566
40818
|
isOneToOne: false;
|
|
38567
|
-
referencedRelation: "
|
|
40819
|
+
referencedRelation: "profiles";
|
|
38568
40820
|
referencedColumns: ["id"];
|
|
38569
40821
|
}, {
|
|
38570
40822
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -38574,6 +40826,60 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
38574
40826
|
referencedColumns: ["id"];
|
|
38575
40827
|
}];
|
|
38576
40828
|
};
|
|
40829
|
+
work_order_photos: {
|
|
40830
|
+
Row: {
|
|
40831
|
+
ai_caption: string | null;
|
|
40832
|
+
ai_categorized_at: string | null;
|
|
40833
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
40834
|
+
caption: string | null;
|
|
40835
|
+
created_at: string;
|
|
40836
|
+
id: string;
|
|
40837
|
+
monteur_id: string | null;
|
|
40838
|
+
photo_type: string;
|
|
40839
|
+
storage_path: string;
|
|
40840
|
+
updated_at: string;
|
|
40841
|
+
work_order_id: string;
|
|
40842
|
+
};
|
|
40843
|
+
Insert: {
|
|
40844
|
+
ai_caption?: string | null;
|
|
40845
|
+
ai_categorized_at?: string | null;
|
|
40846
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
40847
|
+
caption?: string | null;
|
|
40848
|
+
created_at?: string;
|
|
40849
|
+
id?: string;
|
|
40850
|
+
monteur_id?: string | null;
|
|
40851
|
+
photo_type?: string;
|
|
40852
|
+
storage_path: string;
|
|
40853
|
+
updated_at?: string;
|
|
40854
|
+
work_order_id: string;
|
|
40855
|
+
};
|
|
40856
|
+
Update: {
|
|
40857
|
+
ai_caption?: string | null;
|
|
40858
|
+
ai_categorized_at?: string | null;
|
|
40859
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
40860
|
+
caption?: string | null;
|
|
40861
|
+
created_at?: string;
|
|
40862
|
+
id?: string;
|
|
40863
|
+
monteur_id?: string | null;
|
|
40864
|
+
photo_type?: string;
|
|
40865
|
+
storage_path?: string;
|
|
40866
|
+
updated_at?: string;
|
|
40867
|
+
work_order_id?: string;
|
|
40868
|
+
};
|
|
40869
|
+
Relationships: [{
|
|
40870
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
40871
|
+
columns: ["monteur_id"];
|
|
40872
|
+
isOneToOne: false;
|
|
40873
|
+
referencedRelation: "profiles";
|
|
40874
|
+
referencedColumns: ["id"];
|
|
40875
|
+
}, {
|
|
40876
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
40877
|
+
columns: ["work_order_id"];
|
|
40878
|
+
isOneToOne: false;
|
|
40879
|
+
referencedRelation: "work_orders";
|
|
40880
|
+
referencedColumns: ["id"];
|
|
40881
|
+
}];
|
|
40882
|
+
};
|
|
38577
40883
|
work_orders: {
|
|
38578
40884
|
Row: {
|
|
38579
40885
|
assigned_to: string | null;
|
|
@@ -38605,7 +40911,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
38605
40911
|
scheduled_end_time: string | null;
|
|
38606
40912
|
scheduled_start_time: string | null;
|
|
38607
40913
|
status: string;
|
|
38608
|
-
tenant_id: string;
|
|
38609
40914
|
total_hours_worked: number | null;
|
|
38610
40915
|
total_price: number | null;
|
|
38611
40916
|
travel_time_minutes: number | null;
|
|
@@ -38643,7 +40948,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
38643
40948
|
scheduled_end_time?: string | null;
|
|
38644
40949
|
scheduled_start_time?: string | null;
|
|
38645
40950
|
status?: string;
|
|
38646
|
-
tenant_id: string;
|
|
38647
40951
|
total_hours_worked?: number | null;
|
|
38648
40952
|
total_price?: number | null;
|
|
38649
40953
|
travel_time_minutes?: number | null;
|
|
@@ -38681,7 +40985,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
38681
40985
|
scheduled_end_time?: string | null;
|
|
38682
40986
|
scheduled_start_time?: string | null;
|
|
38683
40987
|
status?: string;
|
|
38684
|
-
tenant_id?: string;
|
|
38685
40988
|
total_hours_worked?: number | null;
|
|
38686
40989
|
total_price?: number | null;
|
|
38687
40990
|
travel_time_minutes?: number | null;
|
|
@@ -38695,12 +40998,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
38695
40998
|
isOneToOne: false;
|
|
38696
40999
|
referencedRelation: "work_orders";
|
|
38697
41000
|
referencedColumns: ["id"];
|
|
38698
|
-
}, {
|
|
38699
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
38700
|
-
columns: ["tenant_id"];
|
|
38701
|
-
isOneToOne: false;
|
|
38702
|
-
referencedRelation: "tenants";
|
|
38703
|
-
referencedColumns: ["id"];
|
|
38704
41001
|
}];
|
|
38705
41002
|
};
|
|
38706
41003
|
};
|
|
@@ -39385,6 +41682,19 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
39385
41682
|
};
|
|
39386
41683
|
Returns: undefined;
|
|
39387
41684
|
};
|
|
41685
|
+
approve_mailbox_order_proposal: {
|
|
41686
|
+
Args: {
|
|
41687
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
41688
|
+
p_customer_id: string;
|
|
41689
|
+
p_delivery_date: string;
|
|
41690
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
41691
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
41692
|
+
p_notes: string;
|
|
41693
|
+
p_proposal_id: string;
|
|
41694
|
+
p_reviewed_by: string;
|
|
41695
|
+
};
|
|
41696
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
41697
|
+
};
|
|
39388
41698
|
assign_cart_numbers: {
|
|
39389
41699
|
Args: {
|
|
39390
41700
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -39436,6 +41746,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
39436
41746
|
};
|
|
39437
41747
|
Returns: number;
|
|
39438
41748
|
};
|
|
41749
|
+
can_manage_hours: {
|
|
41750
|
+
Args: never;
|
|
41751
|
+
Returns: boolean;
|
|
41752
|
+
};
|
|
39439
41753
|
check_offer_product_available_stock: {
|
|
39440
41754
|
Args: {
|
|
39441
41755
|
p_campaign_product_id: string;
|
|
@@ -39625,6 +41939,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
39625
41939
|
};
|
|
39626
41940
|
Returns: {
|
|
39627
41941
|
action: string;
|
|
41942
|
+
attempt_started_at: string | null;
|
|
39628
41943
|
attempts: number;
|
|
39629
41944
|
connection_id: string | null;
|
|
39630
41945
|
created_at: string;
|
|
@@ -39712,6 +42027,30 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
39712
42027
|
agent_naam: string;
|
|
39713
42028
|
}[];
|
|
39714
42029
|
};
|
|
42030
|
+
consume_van_inventory: {
|
|
42031
|
+
Args: {
|
|
42032
|
+
p_inventory_id: string;
|
|
42033
|
+
p_quantity: number;
|
|
42034
|
+
};
|
|
42035
|
+
Returns: {
|
|
42036
|
+
barcode: string | null;
|
|
42037
|
+
created_at: string;
|
|
42038
|
+
id: string;
|
|
42039
|
+
monteur_id: string | null;
|
|
42040
|
+
price_per_unit: number;
|
|
42041
|
+
product_name: string;
|
|
42042
|
+
quantity_current: number;
|
|
42043
|
+
quantity_min: number;
|
|
42044
|
+
unit: string;
|
|
42045
|
+
updated_at: string;
|
|
42046
|
+
};
|
|
42047
|
+
SetofOptions: {
|
|
42048
|
+
from: "*";
|
|
42049
|
+
to: "van_inventories";
|
|
42050
|
+
isOneToOne: true;
|
|
42051
|
+
isSetofReturn: false;
|
|
42052
|
+
};
|
|
42053
|
+
};
|
|
39715
42054
|
control_get_todays_carts: {
|
|
39716
42055
|
Args: never;
|
|
39717
42056
|
Returns: {
|
|
@@ -39785,6 +42124,13 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
39785
42124
|
_user_id: string;
|
|
39786
42125
|
};
|
|
39787
42126
|
Returns: string;
|
|
42127
|
+
} | {
|
|
42128
|
+
Args: {
|
|
42129
|
+
_feature_id: string;
|
|
42130
|
+
_module_id: string;
|
|
42131
|
+
_user_id: string;
|
|
42132
|
+
};
|
|
42133
|
+
Returns: string;
|
|
39788
42134
|
};
|
|
39789
42135
|
email_auth_decrypt: {
|
|
39790
42136
|
Args: {
|
|
@@ -39831,6 +42177,13 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
39831
42177
|
};
|
|
39832
42178
|
Returns: string;
|
|
39833
42179
|
};
|
|
42180
|
+
employee_day_hours: {
|
|
42181
|
+
Args: {
|
|
42182
|
+
_day: string;
|
|
42183
|
+
_employee_id: string;
|
|
42184
|
+
};
|
|
42185
|
+
Returns: number;
|
|
42186
|
+
};
|
|
39834
42187
|
enqueue_cart_replan_if_unlocked: {
|
|
39835
42188
|
Args: {
|
|
39836
42189
|
p_order_id: string;
|
|
@@ -40136,12 +42489,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
40136
42489
|
Args: never;
|
|
40137
42490
|
Returns: string;
|
|
40138
42491
|
};
|
|
40139
|
-
get_work_order_tenant_id: {
|
|
40140
|
-
Args: {
|
|
40141
|
-
wo_id: string;
|
|
40142
|
-
};
|
|
40143
|
-
Returns: string;
|
|
40144
|
-
};
|
|
40145
42492
|
has_module_permission: {
|
|
40146
42493
|
Args: {
|
|
40147
42494
|
_min: string;
|
|
@@ -40175,6 +42522,13 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
40175
42522
|
};
|
|
40176
42523
|
Returns: boolean;
|
|
40177
42524
|
};
|
|
42525
|
+
is_time_log_week_locked: {
|
|
42526
|
+
Args: {
|
|
42527
|
+
p_employee_id: string;
|
|
42528
|
+
p_start_time: string;
|
|
42529
|
+
};
|
|
42530
|
+
Returns: boolean;
|
|
42531
|
+
};
|
|
40178
42532
|
is_user_admin: {
|
|
40179
42533
|
Args: never;
|
|
40180
42534
|
Returns: boolean;
|
|
@@ -40183,19 +42537,43 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
40183
42537
|
Args: never;
|
|
40184
42538
|
Returns: boolean;
|
|
40185
42539
|
};
|
|
42540
|
+
itk_offerte_naar_werkbon: {
|
|
42541
|
+
Args: {
|
|
42542
|
+
_offerte_id: string;
|
|
42543
|
+
};
|
|
42544
|
+
Returns: string;
|
|
42545
|
+
};
|
|
42546
|
+
itk_offerte_restant_mandaat: {
|
|
42547
|
+
Args: {
|
|
42548
|
+
_exclude_offerte_id?: string;
|
|
42549
|
+
_werkbon_id: string;
|
|
42550
|
+
};
|
|
42551
|
+
Returns: number;
|
|
42552
|
+
};
|
|
40186
42553
|
jwt_has_role: {
|
|
40187
42554
|
Args: {
|
|
40188
42555
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
40189
42556
|
};
|
|
40190
42557
|
Returns: boolean;
|
|
40191
42558
|
};
|
|
40192
|
-
|
|
42559
|
+
list_medewerkers: {
|
|
40193
42560
|
Args: never;
|
|
40194
42561
|
Returns: {
|
|
40195
42562
|
avatar_url: string;
|
|
42563
|
+
color: string;
|
|
40196
42564
|
display_name: string;
|
|
40197
42565
|
email: string;
|
|
42566
|
+
hours_fri: number;
|
|
42567
|
+
hours_mon: number;
|
|
42568
|
+
hours_thu: number;
|
|
42569
|
+
hours_tue: number;
|
|
42570
|
+
hours_wed: number;
|
|
40198
42571
|
id: string;
|
|
42572
|
+
is_active: boolean;
|
|
42573
|
+
leave_balance_hours: number;
|
|
42574
|
+
persnr: string;
|
|
42575
|
+
phone: string;
|
|
42576
|
+
roles: string[];
|
|
40199
42577
|
}[];
|
|
40200
42578
|
};
|
|
40201
42579
|
list_my_planning_items: {
|
|
@@ -40521,17 +42899,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
40521
42899
|
Returns: string;
|
|
40522
42900
|
};
|
|
40523
42901
|
logistics_emit_event: {
|
|
40524
|
-
Args: {
|
|
40525
|
-
p_event_type: string;
|
|
40526
|
-
p_idempotency_key?: string;
|
|
40527
|
-
p_order_ref: string;
|
|
40528
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
40529
|
-
p_shadow?: boolean;
|
|
40530
|
-
p_source_module: string;
|
|
40531
|
-
p_strategy_id?: string;
|
|
40532
|
-
};
|
|
40533
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
40534
|
-
} | {
|
|
40535
42902
|
Args: {
|
|
40536
42903
|
p_event_type: string;
|
|
40537
42904
|
p_idempotency_key?: string;
|
|
@@ -40686,6 +43053,65 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
40686
43053
|
};
|
|
40687
43054
|
Returns: number;
|
|
40688
43055
|
};
|
|
43056
|
+
logistics_plan_claim: {
|
|
43057
|
+
Args: {
|
|
43058
|
+
p_limit?: number;
|
|
43059
|
+
};
|
|
43060
|
+
Returns: {
|
|
43061
|
+
attempts: number;
|
|
43062
|
+
id: string;
|
|
43063
|
+
order_id: string;
|
|
43064
|
+
}[];
|
|
43065
|
+
};
|
|
43066
|
+
logistics_plan_enqueue: {
|
|
43067
|
+
Args: {
|
|
43068
|
+
p_order_id: string;
|
|
43069
|
+
p_reason?: string;
|
|
43070
|
+
};
|
|
43071
|
+
Returns: undefined;
|
|
43072
|
+
};
|
|
43073
|
+
logistics_plan_ensure_event: {
|
|
43074
|
+
Args: {
|
|
43075
|
+
p_order_id: string;
|
|
43076
|
+
};
|
|
43077
|
+
Returns: boolean;
|
|
43078
|
+
};
|
|
43079
|
+
logistics_plan_finish: {
|
|
43080
|
+
Args: {
|
|
43081
|
+
p_error?: string;
|
|
43082
|
+
p_id: string;
|
|
43083
|
+
};
|
|
43084
|
+
Returns: undefined;
|
|
43085
|
+
};
|
|
43086
|
+
logistics_plan_impact_orders: {
|
|
43087
|
+
Args: {
|
|
43088
|
+
p_order_id: string;
|
|
43089
|
+
};
|
|
43090
|
+
Returns: {
|
|
43091
|
+
buffer_id: string;
|
|
43092
|
+
order_id: string;
|
|
43093
|
+
plan_date: string;
|
|
43094
|
+
}[];
|
|
43095
|
+
};
|
|
43096
|
+
logistics_plan_kick: {
|
|
43097
|
+
Args: never;
|
|
43098
|
+
Returns: undefined;
|
|
43099
|
+
};
|
|
43100
|
+
logistics_plan_prune: {
|
|
43101
|
+
Args: never;
|
|
43102
|
+
Returns: number;
|
|
43103
|
+
};
|
|
43104
|
+
logistics_plan_release_stale: {
|
|
43105
|
+
Args: never;
|
|
43106
|
+
Returns: number;
|
|
43107
|
+
};
|
|
43108
|
+
logistics_plan_setting: {
|
|
43109
|
+
Args: {
|
|
43110
|
+
p_default: number;
|
|
43111
|
+
p_key: string;
|
|
43112
|
+
};
|
|
43113
|
+
Returns: number;
|
|
43114
|
+
};
|
|
40689
43115
|
logistics_queue_capacity_email: {
|
|
40690
43116
|
Args: {
|
|
40691
43117
|
p_alert_id: string;
|
|
@@ -40927,6 +43353,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
40927
43353
|
my_module_permissions: {
|
|
40928
43354
|
Args: never;
|
|
40929
43355
|
Returns: {
|
|
43356
|
+
feature_id: string;
|
|
40930
43357
|
module_id: string;
|
|
40931
43358
|
permission: string;
|
|
40932
43359
|
}[];
|
|
@@ -41316,6 +43743,37 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
41316
43743
|
};
|
|
41317
43744
|
Returns: undefined;
|
|
41318
43745
|
};
|
|
43746
|
+
quote_create_from_source: {
|
|
43747
|
+
Args: {
|
|
43748
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
43749
|
+
_source_id: string;
|
|
43750
|
+
_source_type: string;
|
|
43751
|
+
};
|
|
43752
|
+
Returns: string;
|
|
43753
|
+
};
|
|
43754
|
+
quote_get_billable_lines: {
|
|
43755
|
+
Args: {
|
|
43756
|
+
_quotation_id: string;
|
|
43757
|
+
};
|
|
43758
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43759
|
+
};
|
|
43760
|
+
quote_get_summary: {
|
|
43761
|
+
Args: {
|
|
43762
|
+
_quotation_id: string;
|
|
43763
|
+
};
|
|
43764
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43765
|
+
};
|
|
43766
|
+
quote_list_packages: {
|
|
43767
|
+
Args: never;
|
|
43768
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43769
|
+
};
|
|
43770
|
+
quote_list_sources: {
|
|
43771
|
+
Args: {
|
|
43772
|
+
_limit?: number;
|
|
43773
|
+
_source_type?: string;
|
|
43774
|
+
};
|
|
43775
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43776
|
+
};
|
|
41319
43777
|
recompute_all_reserved_stock: {
|
|
41320
43778
|
Args: never;
|
|
41321
43779
|
Returns: undefined;
|
|
@@ -41807,6 +44265,16 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
41807
44265
|
};
|
|
41808
44266
|
Returns: string[];
|
|
41809
44267
|
};
|
|
44268
|
+
switch_time_log: {
|
|
44269
|
+
Args: {
|
|
44270
|
+
p_employee_id: string;
|
|
44271
|
+
p_start_lat?: number;
|
|
44272
|
+
p_start_lng?: number;
|
|
44273
|
+
p_type: string;
|
|
44274
|
+
p_work_order_id?: string;
|
|
44275
|
+
};
|
|
44276
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44277
|
+
};
|
|
41810
44278
|
sync_all_layer_stocks: {
|
|
41811
44279
|
Args: never;
|
|
41812
44280
|
Returns: undefined;
|
|
@@ -41841,6 +44309,12 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
41841
44309
|
};
|
|
41842
44310
|
Returns: undefined;
|
|
41843
44311
|
};
|
|
44312
|
+
sync_sick_time_off: {
|
|
44313
|
+
Args: {
|
|
44314
|
+
_period_id: string;
|
|
44315
|
+
};
|
|
44316
|
+
Returns: number;
|
|
44317
|
+
};
|
|
41844
44318
|
trade_item_stock_duplicates: {
|
|
41845
44319
|
Args: never;
|
|
41846
44320
|
Returns: {
|
|
@@ -41857,6 +44331,24 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
41857
44331
|
};
|
|
41858
44332
|
Returns: boolean;
|
|
41859
44333
|
};
|
|
44334
|
+
twinfield_cron_lock_acquire: {
|
|
44335
|
+
Args: {
|
|
44336
|
+
_job_name: string;
|
|
44337
|
+
_stale_seconds?: number;
|
|
44338
|
+
};
|
|
44339
|
+
Returns: boolean;
|
|
44340
|
+
};
|
|
44341
|
+
twinfield_cron_lock_release: {
|
|
44342
|
+
Args: {
|
|
44343
|
+
_error?: string;
|
|
44344
|
+
_job_name: string;
|
|
44345
|
+
};
|
|
44346
|
+
Returns: undefined;
|
|
44347
|
+
};
|
|
44348
|
+
twinfield_prune_push_queue: {
|
|
44349
|
+
Args: never;
|
|
44350
|
+
Returns: number;
|
|
44351
|
+
};
|
|
41860
44352
|
twinfield_register_cron: {
|
|
41861
44353
|
Args: {
|
|
41862
44354
|
apikey?: string;
|
|
@@ -41896,11 +44388,31 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
41896
44388
|
Args: never;
|
|
41897
44389
|
Returns: string;
|
|
41898
44390
|
};
|
|
44391
|
+
wo_create_from_source: {
|
|
44392
|
+
Args: {
|
|
44393
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
44394
|
+
_source_id: string;
|
|
44395
|
+
_source_type: string;
|
|
44396
|
+
};
|
|
44397
|
+
Returns: string;
|
|
44398
|
+
};
|
|
44399
|
+
wo_get_billable_lines: {
|
|
44400
|
+
Args: {
|
|
44401
|
+
_work_order_id: string;
|
|
44402
|
+
};
|
|
44403
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44404
|
+
};
|
|
44405
|
+
wo_get_summary: {
|
|
44406
|
+
Args: {
|
|
44407
|
+
_work_order_id: string;
|
|
44408
|
+
};
|
|
44409
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44410
|
+
};
|
|
41899
44411
|
};
|
|
41900
44412
|
Enums: {
|
|
41901
44413
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
41902
44414
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
41903
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
44415
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
41904
44416
|
doc_orientation: "portrait" | "landscape";
|
|
41905
44417
|
exact_env: "staging" | "live";
|
|
41906
44418
|
exact_push_status: "pending" | "sent" | "error";
|