@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
|
@@ -884,6 +884,126 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
884
884
|
};
|
|
885
885
|
Relationships: [];
|
|
886
886
|
};
|
|
887
|
+
cao_holidays: {
|
|
888
|
+
Row: {
|
|
889
|
+
created_at: string;
|
|
890
|
+
description: string | null;
|
|
891
|
+
holiday_date: string;
|
|
892
|
+
id: string;
|
|
893
|
+
updated_at: string;
|
|
894
|
+
};
|
|
895
|
+
Insert: {
|
|
896
|
+
created_at?: string;
|
|
897
|
+
description?: string | null;
|
|
898
|
+
holiday_date: string;
|
|
899
|
+
id?: string;
|
|
900
|
+
updated_at?: string;
|
|
901
|
+
};
|
|
902
|
+
Update: {
|
|
903
|
+
created_at?: string;
|
|
904
|
+
description?: string | null;
|
|
905
|
+
holiday_date?: string;
|
|
906
|
+
id?: string;
|
|
907
|
+
updated_at?: string;
|
|
908
|
+
};
|
|
909
|
+
Relationships: [];
|
|
910
|
+
};
|
|
911
|
+
cao_settings: {
|
|
912
|
+
Row: {
|
|
913
|
+
auto_break_after_hours: number;
|
|
914
|
+
auto_break_minutes: number;
|
|
915
|
+
auto_break_unpaid: boolean;
|
|
916
|
+
auto_stop_after_hours: number;
|
|
917
|
+
callout_fee: number;
|
|
918
|
+
created_at: string;
|
|
919
|
+
daily_regular_hours: number;
|
|
920
|
+
default_hourly_rate: number;
|
|
921
|
+
id: string;
|
|
922
|
+
materials_markup_percent: number;
|
|
923
|
+
max_daily_hours: number;
|
|
924
|
+
max_weekly_hours: number;
|
|
925
|
+
meal_allowance_amount: number;
|
|
926
|
+
overtime_pct_178: number;
|
|
927
|
+
overtime_pct_189: number;
|
|
928
|
+
overtime_pct_212: number;
|
|
929
|
+
reminder_after_hours: number;
|
|
930
|
+
standby_evening_amount: number;
|
|
931
|
+
standby_weekend_amount: number;
|
|
932
|
+
travel_cost_per_km: number | null;
|
|
933
|
+
travel_cost_threshold_km: number | null;
|
|
934
|
+
travel_counts_as_work: boolean;
|
|
935
|
+
travel_hourly_rate: number;
|
|
936
|
+
travel_rate_per_hour: number;
|
|
937
|
+
travel_threshold_minutes: number;
|
|
938
|
+
updated_at: string;
|
|
939
|
+
weekend_always_212: boolean;
|
|
940
|
+
window_end: string;
|
|
941
|
+
window_start: string;
|
|
942
|
+
};
|
|
943
|
+
Insert: {
|
|
944
|
+
auto_break_after_hours?: number;
|
|
945
|
+
auto_break_minutes?: number;
|
|
946
|
+
auto_break_unpaid?: boolean;
|
|
947
|
+
auto_stop_after_hours?: number;
|
|
948
|
+
callout_fee?: number;
|
|
949
|
+
created_at?: string;
|
|
950
|
+
daily_regular_hours?: number;
|
|
951
|
+
default_hourly_rate?: number;
|
|
952
|
+
id?: string;
|
|
953
|
+
materials_markup_percent?: number;
|
|
954
|
+
max_daily_hours?: number;
|
|
955
|
+
max_weekly_hours?: number;
|
|
956
|
+
meal_allowance_amount?: number;
|
|
957
|
+
overtime_pct_178?: number;
|
|
958
|
+
overtime_pct_189?: number;
|
|
959
|
+
overtime_pct_212?: number;
|
|
960
|
+
reminder_after_hours?: number;
|
|
961
|
+
standby_evening_amount?: number;
|
|
962
|
+
standby_weekend_amount?: number;
|
|
963
|
+
travel_cost_per_km?: number | null;
|
|
964
|
+
travel_cost_threshold_km?: number | null;
|
|
965
|
+
travel_counts_as_work?: boolean;
|
|
966
|
+
travel_hourly_rate?: number;
|
|
967
|
+
travel_rate_per_hour?: number;
|
|
968
|
+
travel_threshold_minutes?: number;
|
|
969
|
+
updated_at?: string;
|
|
970
|
+
weekend_always_212?: boolean;
|
|
971
|
+
window_end?: string;
|
|
972
|
+
window_start?: string;
|
|
973
|
+
};
|
|
974
|
+
Update: {
|
|
975
|
+
auto_break_after_hours?: number;
|
|
976
|
+
auto_break_minutes?: number;
|
|
977
|
+
auto_break_unpaid?: boolean;
|
|
978
|
+
auto_stop_after_hours?: number;
|
|
979
|
+
callout_fee?: number;
|
|
980
|
+
created_at?: string;
|
|
981
|
+
daily_regular_hours?: number;
|
|
982
|
+
default_hourly_rate?: number;
|
|
983
|
+
id?: string;
|
|
984
|
+
materials_markup_percent?: number;
|
|
985
|
+
max_daily_hours?: number;
|
|
986
|
+
max_weekly_hours?: number;
|
|
987
|
+
meal_allowance_amount?: number;
|
|
988
|
+
overtime_pct_178?: number;
|
|
989
|
+
overtime_pct_189?: number;
|
|
990
|
+
overtime_pct_212?: number;
|
|
991
|
+
reminder_after_hours?: number;
|
|
992
|
+
standby_evening_amount?: number;
|
|
993
|
+
standby_weekend_amount?: number;
|
|
994
|
+
travel_cost_per_km?: number | null;
|
|
995
|
+
travel_cost_threshold_km?: number | null;
|
|
996
|
+
travel_counts_as_work?: boolean;
|
|
997
|
+
travel_hourly_rate?: number;
|
|
998
|
+
travel_rate_per_hour?: number;
|
|
999
|
+
travel_threshold_minutes?: number;
|
|
1000
|
+
updated_at?: string;
|
|
1001
|
+
weekend_always_212?: boolean;
|
|
1002
|
+
window_end?: string;
|
|
1003
|
+
window_start?: string;
|
|
1004
|
+
};
|
|
1005
|
+
Relationships: [];
|
|
1006
|
+
};
|
|
887
1007
|
carrier_shipping_rates: {
|
|
888
1008
|
Row: {
|
|
889
1009
|
carrier_id: string;
|
|
@@ -4937,6 +5057,42 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
4937
5057
|
};
|
|
4938
5058
|
Relationships: [];
|
|
4939
5059
|
};
|
|
5060
|
+
facturen: {
|
|
5061
|
+
Row: {
|
|
5062
|
+
bedrag_incl_btw: number;
|
|
5063
|
+
created_at: string;
|
|
5064
|
+
datum: string;
|
|
5065
|
+
factuurnummer: string;
|
|
5066
|
+
id: string;
|
|
5067
|
+
klantnaam: string;
|
|
5068
|
+
status: string;
|
|
5069
|
+
updated_at: string;
|
|
5070
|
+
user_id: string;
|
|
5071
|
+
};
|
|
5072
|
+
Insert: {
|
|
5073
|
+
bedrag_incl_btw: number;
|
|
5074
|
+
created_at?: string;
|
|
5075
|
+
datum?: string;
|
|
5076
|
+
factuurnummer: string;
|
|
5077
|
+
id?: string;
|
|
5078
|
+
klantnaam: string;
|
|
5079
|
+
status?: string;
|
|
5080
|
+
updated_at?: string;
|
|
5081
|
+
user_id?: string;
|
|
5082
|
+
};
|
|
5083
|
+
Update: {
|
|
5084
|
+
bedrag_incl_btw?: number;
|
|
5085
|
+
created_at?: string;
|
|
5086
|
+
datum?: string;
|
|
5087
|
+
factuurnummer?: string;
|
|
5088
|
+
id?: string;
|
|
5089
|
+
klantnaam?: string;
|
|
5090
|
+
status?: string;
|
|
5091
|
+
updated_at?: string;
|
|
5092
|
+
user_id?: string;
|
|
5093
|
+
};
|
|
5094
|
+
Relationships: [];
|
|
5095
|
+
};
|
|
4940
5096
|
floricode_connection_settings: {
|
|
4941
5097
|
Row: {
|
|
4942
5098
|
catalog_key: string | null;
|
|
@@ -7661,6 +7817,258 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
7661
7817
|
};
|
|
7662
7818
|
Relationships: [];
|
|
7663
7819
|
};
|
|
7820
|
+
itk_offerte_events: {
|
|
7821
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
7840
|
+
created_at?: string;
|
|
7841
|
+
event_type?: string;
|
|
7842
|
+
id?: string;
|
|
7843
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7844
|
+
offerte_id?: string;
|
|
7845
|
+
omschrijving?: string | null;
|
|
7846
|
+
user_id?: string | null;
|
|
7847
|
+
};
|
|
7848
|
+
Relationships: [{
|
|
7849
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
7850
|
+
columns: ["offerte_id"];
|
|
7851
|
+
isOneToOne: false;
|
|
7852
|
+
referencedRelation: "itk_offertes";
|
|
7853
|
+
referencedColumns: ["id"];
|
|
7854
|
+
}];
|
|
7855
|
+
};
|
|
7856
|
+
itk_offerte_regels: {
|
|
7857
|
+
Row: {
|
|
7858
|
+
created_at: string;
|
|
7859
|
+
id: string;
|
|
7860
|
+
line_total_cents: number;
|
|
7861
|
+
offerte_id: string;
|
|
7862
|
+
omschrijving: string;
|
|
7863
|
+
package_id: string | null;
|
|
7864
|
+
quantity: number;
|
|
7865
|
+
sort_order: number;
|
|
7866
|
+
source: string;
|
|
7867
|
+
unit_price_cents: number;
|
|
7868
|
+
updated_at: string;
|
|
7869
|
+
};
|
|
7870
|
+
Insert: {
|
|
7871
|
+
created_at?: string;
|
|
7872
|
+
id?: string;
|
|
7873
|
+
line_total_cents?: number;
|
|
7874
|
+
offerte_id: string;
|
|
7875
|
+
omschrijving?: string;
|
|
7876
|
+
package_id?: string | null;
|
|
7877
|
+
quantity?: number;
|
|
7878
|
+
sort_order?: number;
|
|
7879
|
+
source?: string;
|
|
7880
|
+
unit_price_cents?: number;
|
|
7881
|
+
updated_at?: string;
|
|
7882
|
+
};
|
|
7883
|
+
Update: {
|
|
7884
|
+
created_at?: string;
|
|
7885
|
+
id?: string;
|
|
7886
|
+
line_total_cents?: number;
|
|
7887
|
+
offerte_id?: string;
|
|
7888
|
+
omschrijving?: string;
|
|
7889
|
+
package_id?: string | null;
|
|
7890
|
+
quantity?: number;
|
|
7891
|
+
sort_order?: number;
|
|
7892
|
+
source?: string;
|
|
7893
|
+
unit_price_cents?: number;
|
|
7894
|
+
updated_at?: string;
|
|
7895
|
+
};
|
|
7896
|
+
Relationships: [{
|
|
7897
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
7898
|
+
columns: ["offerte_id"];
|
|
7899
|
+
isOneToOne: false;
|
|
7900
|
+
referencedRelation: "itk_offertes";
|
|
7901
|
+
referencedColumns: ["id"];
|
|
7902
|
+
}, {
|
|
7903
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
7904
|
+
columns: ["package_id"];
|
|
7905
|
+
isOneToOne: false;
|
|
7906
|
+
referencedRelation: "werkbon_packages";
|
|
7907
|
+
referencedColumns: ["id"];
|
|
7908
|
+
}];
|
|
7909
|
+
};
|
|
7910
|
+
itk_offerte_settings: {
|
|
7911
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
7930
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7931
|
+
created_at?: string;
|
|
7932
|
+
default_geldigheid_dagen?: number;
|
|
7933
|
+
default_vat_rate?: number;
|
|
7934
|
+
id?: string;
|
|
7935
|
+
singleton?: boolean;
|
|
7936
|
+
updated_at?: string;
|
|
7937
|
+
};
|
|
7938
|
+
Relationships: [];
|
|
7939
|
+
};
|
|
7940
|
+
itk_offertes: {
|
|
7941
|
+
Row: {
|
|
7942
|
+
ai_generated: boolean;
|
|
7943
|
+
approved_at: string | null;
|
|
7944
|
+
binnen_mandaat: boolean;
|
|
7945
|
+
contact_id: string | null;
|
|
7946
|
+
converted_at: string | null;
|
|
7947
|
+
created_at: string;
|
|
7948
|
+
created_by: string | null;
|
|
7949
|
+
customer_id: string | null;
|
|
7950
|
+
follow_up_werkbon_id: string | null;
|
|
7951
|
+
id: string;
|
|
7952
|
+
jaar: number;
|
|
7953
|
+
mandaat_restant_cents: number;
|
|
7954
|
+
notities: string | null;
|
|
7955
|
+
offerte_number: string | null;
|
|
7956
|
+
omschrijving: string;
|
|
7957
|
+
rejected_at: string | null;
|
|
7958
|
+
sent_at: string | null;
|
|
7959
|
+
source_number: string | null;
|
|
7960
|
+
source_ref: string | null;
|
|
7961
|
+
source_type: string;
|
|
7962
|
+
status: string;
|
|
7963
|
+
subtotal_cents: number;
|
|
7964
|
+
total_cents: number;
|
|
7965
|
+
updated_at: string;
|
|
7966
|
+
valid_until: string | null;
|
|
7967
|
+
vat_cents: number;
|
|
7968
|
+
vat_rate: number;
|
|
7969
|
+
viewed_at: string | null;
|
|
7970
|
+
volgnummer: number | null;
|
|
7971
|
+
werkbon_id: string | null;
|
|
7972
|
+
work_location_id: string | null;
|
|
7973
|
+
};
|
|
7974
|
+
Insert: {
|
|
7975
|
+
ai_generated?: boolean;
|
|
7976
|
+
approved_at?: string | null;
|
|
7977
|
+
binnen_mandaat?: boolean;
|
|
7978
|
+
contact_id?: string | null;
|
|
7979
|
+
converted_at?: string | null;
|
|
7980
|
+
created_at?: string;
|
|
7981
|
+
created_by?: string | null;
|
|
7982
|
+
customer_id?: string | null;
|
|
7983
|
+
follow_up_werkbon_id?: string | null;
|
|
7984
|
+
id?: string;
|
|
7985
|
+
jaar?: number;
|
|
7986
|
+
mandaat_restant_cents?: number;
|
|
7987
|
+
notities?: string | null;
|
|
7988
|
+
offerte_number?: string | null;
|
|
7989
|
+
omschrijving?: string;
|
|
7990
|
+
rejected_at?: string | null;
|
|
7991
|
+
sent_at?: string | null;
|
|
7992
|
+
source_number?: string | null;
|
|
7993
|
+
source_ref?: string | null;
|
|
7994
|
+
source_type?: string;
|
|
7995
|
+
status?: string;
|
|
7996
|
+
subtotal_cents?: number;
|
|
7997
|
+
total_cents?: number;
|
|
7998
|
+
updated_at?: string;
|
|
7999
|
+
valid_until?: string | null;
|
|
8000
|
+
vat_cents?: number;
|
|
8001
|
+
vat_rate?: number;
|
|
8002
|
+
viewed_at?: string | null;
|
|
8003
|
+
volgnummer?: number | null;
|
|
8004
|
+
werkbon_id?: string | null;
|
|
8005
|
+
work_location_id?: string | null;
|
|
8006
|
+
};
|
|
8007
|
+
Update: {
|
|
8008
|
+
ai_generated?: boolean;
|
|
8009
|
+
approved_at?: string | null;
|
|
8010
|
+
binnen_mandaat?: boolean;
|
|
8011
|
+
contact_id?: string | null;
|
|
8012
|
+
converted_at?: string | null;
|
|
8013
|
+
created_at?: string;
|
|
8014
|
+
created_by?: string | null;
|
|
8015
|
+
customer_id?: string | null;
|
|
8016
|
+
follow_up_werkbon_id?: string | null;
|
|
8017
|
+
id?: string;
|
|
8018
|
+
jaar?: number;
|
|
8019
|
+
mandaat_restant_cents?: number;
|
|
8020
|
+
notities?: string | null;
|
|
8021
|
+
offerte_number?: string | null;
|
|
8022
|
+
omschrijving?: string;
|
|
8023
|
+
rejected_at?: string | null;
|
|
8024
|
+
sent_at?: string | null;
|
|
8025
|
+
source_number?: string | null;
|
|
8026
|
+
source_ref?: string | null;
|
|
8027
|
+
source_type?: string;
|
|
8028
|
+
status?: string;
|
|
8029
|
+
subtotal_cents?: number;
|
|
8030
|
+
total_cents?: number;
|
|
8031
|
+
updated_at?: string;
|
|
8032
|
+
valid_until?: string | null;
|
|
8033
|
+
vat_cents?: number;
|
|
8034
|
+
vat_rate?: number;
|
|
8035
|
+
viewed_at?: string | null;
|
|
8036
|
+
volgnummer?: number | null;
|
|
8037
|
+
werkbon_id?: string | null;
|
|
8038
|
+
work_location_id?: string | null;
|
|
8039
|
+
};
|
|
8040
|
+
Relationships: [{
|
|
8041
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
8042
|
+
columns: ["contact_id"];
|
|
8043
|
+
isOneToOne: false;
|
|
8044
|
+
referencedRelation: "itk_contact_persons";
|
|
8045
|
+
referencedColumns: ["id"];
|
|
8046
|
+
}, {
|
|
8047
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
8048
|
+
columns: ["customer_id"];
|
|
8049
|
+
isOneToOne: false;
|
|
8050
|
+
referencedRelation: "itk_customers";
|
|
8051
|
+
referencedColumns: ["id"];
|
|
8052
|
+
}, {
|
|
8053
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
8054
|
+
columns: ["follow_up_werkbon_id"];
|
|
8055
|
+
isOneToOne: false;
|
|
8056
|
+
referencedRelation: "werkbonnen";
|
|
8057
|
+
referencedColumns: ["id"];
|
|
8058
|
+
}, {
|
|
8059
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
8060
|
+
columns: ["werkbon_id"];
|
|
8061
|
+
isOneToOne: false;
|
|
8062
|
+
referencedRelation: "werkbonnen";
|
|
8063
|
+
referencedColumns: ["id"];
|
|
8064
|
+
}, {
|
|
8065
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
8066
|
+
columns: ["work_location_id"];
|
|
8067
|
+
isOneToOne: false;
|
|
8068
|
+
referencedRelation: "itk_work_locations";
|
|
8069
|
+
referencedColumns: ["id"];
|
|
8070
|
+
}];
|
|
8071
|
+
};
|
|
7664
8072
|
itk_work_locations: {
|
|
7665
8073
|
Row: {
|
|
7666
8074
|
city: string | null;
|
|
@@ -7778,7 +8186,6 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
7778
8186
|
start_date: string;
|
|
7779
8187
|
start_time: string | null;
|
|
7780
8188
|
status: string;
|
|
7781
|
-
tenant_id: string;
|
|
7782
8189
|
updated_at: string;
|
|
7783
8190
|
user_id: string;
|
|
7784
8191
|
};
|
|
@@ -7796,7 +8203,6 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
7796
8203
|
start_date: string;
|
|
7797
8204
|
start_time?: string | null;
|
|
7798
8205
|
status?: string;
|
|
7799
|
-
tenant_id?: string;
|
|
7800
8206
|
updated_at?: string;
|
|
7801
8207
|
user_id: string;
|
|
7802
8208
|
};
|
|
@@ -7814,7 +8220,6 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
7814
8220
|
start_date?: string;
|
|
7815
8221
|
start_time?: string | null;
|
|
7816
8222
|
status?: string;
|
|
7817
|
-
tenant_id?: string;
|
|
7818
8223
|
updated_at?: string;
|
|
7819
8224
|
user_id?: string;
|
|
7820
8225
|
};
|
|
@@ -7822,13 +8227,13 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
7822
8227
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
7823
8228
|
columns: ["monteur_id"];
|
|
7824
8229
|
isOneToOne: false;
|
|
7825
|
-
referencedRelation: "
|
|
8230
|
+
referencedRelation: "profiles";
|
|
7826
8231
|
referencedColumns: ["id"];
|
|
7827
8232
|
}, {
|
|
7828
8233
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
7829
8234
|
columns: ["user_id"];
|
|
7830
8235
|
isOneToOne: false;
|
|
7831
|
-
referencedRelation: "
|
|
8236
|
+
referencedRelation: "profiles";
|
|
7832
8237
|
referencedColumns: ["id"];
|
|
7833
8238
|
}];
|
|
7834
8239
|
};
|
|
@@ -8696,21 +9101,60 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
8696
9101
|
};
|
|
8697
9102
|
Relationships: [];
|
|
8698
9103
|
};
|
|
8699
|
-
|
|
9104
|
+
logistics_plan_queue: {
|
|
8700
9105
|
Row: {
|
|
8701
|
-
|
|
9106
|
+
attempts: number;
|
|
9107
|
+
claimed_at: string | null;
|
|
9108
|
+
enqueued_at: string;
|
|
8702
9109
|
error: string | null;
|
|
8703
9110
|
id: string;
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
rule_version: number | null;
|
|
8708
|
-
settings_hash: string | null;
|
|
8709
|
-
settings_snapshot: import("../integrations/supabase/types").Json;
|
|
8710
|
-
source_module: string | null;
|
|
9111
|
+
next_attempt_at: string;
|
|
9112
|
+
order_id: string;
|
|
9113
|
+
reason: string;
|
|
8711
9114
|
status: string;
|
|
8712
|
-
|
|
8713
|
-
|
|
9115
|
+
updated_at: string;
|
|
9116
|
+
};
|
|
9117
|
+
Insert: {
|
|
9118
|
+
attempts?: number;
|
|
9119
|
+
claimed_at?: string | null;
|
|
9120
|
+
enqueued_at?: string;
|
|
9121
|
+
error?: string | null;
|
|
9122
|
+
id?: string;
|
|
9123
|
+
next_attempt_at?: string;
|
|
9124
|
+
order_id: string;
|
|
9125
|
+
reason?: string;
|
|
9126
|
+
status?: string;
|
|
9127
|
+
updated_at?: string;
|
|
9128
|
+
};
|
|
9129
|
+
Update: {
|
|
9130
|
+
attempts?: number;
|
|
9131
|
+
claimed_at?: string | null;
|
|
9132
|
+
enqueued_at?: string;
|
|
9133
|
+
error?: string | null;
|
|
9134
|
+
id?: string;
|
|
9135
|
+
next_attempt_at?: string;
|
|
9136
|
+
order_id?: string;
|
|
9137
|
+
reason?: string;
|
|
9138
|
+
status?: string;
|
|
9139
|
+
updated_at?: string;
|
|
9140
|
+
};
|
|
9141
|
+
Relationships: [];
|
|
9142
|
+
};
|
|
9143
|
+
logistics_plan_runs: {
|
|
9144
|
+
Row: {
|
|
9145
|
+
created_at: string;
|
|
9146
|
+
error: string | null;
|
|
9147
|
+
id: string;
|
|
9148
|
+
input: import("../integrations/supabase/types").Json;
|
|
9149
|
+
order_ref: string;
|
|
9150
|
+
rule_config_id: string | null;
|
|
9151
|
+
rule_version: number | null;
|
|
9152
|
+
settings_hash: string | null;
|
|
9153
|
+
settings_snapshot: import("../integrations/supabase/types").Json;
|
|
9154
|
+
source_module: string | null;
|
|
9155
|
+
status: string;
|
|
9156
|
+
strategy_id: string | null;
|
|
9157
|
+
tasks_created: number;
|
|
8714
9158
|
tasks_revised: number;
|
|
8715
9159
|
trigger: string;
|
|
8716
9160
|
updated_at: string;
|
|
@@ -8771,6 +9215,24 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
8771
9215
|
referencedColumns: ["id"];
|
|
8772
9216
|
}];
|
|
8773
9217
|
};
|
|
9218
|
+
logistics_plan_settings: {
|
|
9219
|
+
Row: {
|
|
9220
|
+
key: string;
|
|
9221
|
+
updated_at: string;
|
|
9222
|
+
value: string;
|
|
9223
|
+
};
|
|
9224
|
+
Insert: {
|
|
9225
|
+
key: string;
|
|
9226
|
+
updated_at?: string;
|
|
9227
|
+
value: string;
|
|
9228
|
+
};
|
|
9229
|
+
Update: {
|
|
9230
|
+
key?: string;
|
|
9231
|
+
updated_at?: string;
|
|
9232
|
+
value?: string;
|
|
9233
|
+
};
|
|
9234
|
+
Relationships: [];
|
|
9235
|
+
};
|
|
8774
9236
|
logistics_rebuffer_state: {
|
|
8775
9237
|
Row: {
|
|
8776
9238
|
created_at: string;
|
|
@@ -9926,6 +10388,147 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
9926
10388
|
};
|
|
9927
10389
|
Relationships: [];
|
|
9928
10390
|
};
|
|
10391
|
+
material_usage: {
|
|
10392
|
+
Row: {
|
|
10393
|
+
created_at: string;
|
|
10394
|
+
id: string;
|
|
10395
|
+
material_name: string;
|
|
10396
|
+
monteur_id: string | null;
|
|
10397
|
+
price_at_time: number;
|
|
10398
|
+
quantity_used: number;
|
|
10399
|
+
updated_at: string;
|
|
10400
|
+
van_inventory_id: string | null;
|
|
10401
|
+
work_order_id: string;
|
|
10402
|
+
};
|
|
10403
|
+
Insert: {
|
|
10404
|
+
created_at?: string;
|
|
10405
|
+
id?: string;
|
|
10406
|
+
material_name: string;
|
|
10407
|
+
monteur_id?: string | null;
|
|
10408
|
+
price_at_time?: number;
|
|
10409
|
+
quantity_used?: number;
|
|
10410
|
+
updated_at?: string;
|
|
10411
|
+
van_inventory_id?: string | null;
|
|
10412
|
+
work_order_id: string;
|
|
10413
|
+
};
|
|
10414
|
+
Update: {
|
|
10415
|
+
created_at?: string;
|
|
10416
|
+
id?: string;
|
|
10417
|
+
material_name?: string;
|
|
10418
|
+
monteur_id?: string | null;
|
|
10419
|
+
price_at_time?: number;
|
|
10420
|
+
quantity_used?: number;
|
|
10421
|
+
updated_at?: string;
|
|
10422
|
+
van_inventory_id?: string | null;
|
|
10423
|
+
work_order_id?: string;
|
|
10424
|
+
};
|
|
10425
|
+
Relationships: [{
|
|
10426
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
10427
|
+
columns: ["monteur_id"];
|
|
10428
|
+
isOneToOne: false;
|
|
10429
|
+
referencedRelation: "profiles";
|
|
10430
|
+
referencedColumns: ["id"];
|
|
10431
|
+
}, {
|
|
10432
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
10433
|
+
columns: ["van_inventory_id"];
|
|
10434
|
+
isOneToOne: false;
|
|
10435
|
+
referencedRelation: "van_inventories";
|
|
10436
|
+
referencedColumns: ["id"];
|
|
10437
|
+
}, {
|
|
10438
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
10439
|
+
columns: ["work_order_id"];
|
|
10440
|
+
isOneToOne: false;
|
|
10441
|
+
referencedRelation: "work_orders";
|
|
10442
|
+
referencedColumns: ["id"];
|
|
10443
|
+
}];
|
|
10444
|
+
};
|
|
10445
|
+
medewerker_details: {
|
|
10446
|
+
Row: {
|
|
10447
|
+
color: string | null;
|
|
10448
|
+
created_at: string;
|
|
10449
|
+
hours_fri: number | null;
|
|
10450
|
+
hours_mon: number | null;
|
|
10451
|
+
hours_thu: number | null;
|
|
10452
|
+
hours_tue: number | null;
|
|
10453
|
+
hours_wed: number | null;
|
|
10454
|
+
id: string;
|
|
10455
|
+
is_active: boolean;
|
|
10456
|
+
leave_balance_hours: number;
|
|
10457
|
+
persnr: string | null;
|
|
10458
|
+
phone: string | null;
|
|
10459
|
+
profile_id: string;
|
|
10460
|
+
updated_at: string;
|
|
10461
|
+
};
|
|
10462
|
+
Insert: {
|
|
10463
|
+
color?: string | null;
|
|
10464
|
+
created_at?: string;
|
|
10465
|
+
hours_fri?: number | null;
|
|
10466
|
+
hours_mon?: number | null;
|
|
10467
|
+
hours_thu?: number | null;
|
|
10468
|
+
hours_tue?: number | null;
|
|
10469
|
+
hours_wed?: number | null;
|
|
10470
|
+
id?: string;
|
|
10471
|
+
is_active?: boolean;
|
|
10472
|
+
leave_balance_hours?: number;
|
|
10473
|
+
persnr?: string | null;
|
|
10474
|
+
phone?: string | null;
|
|
10475
|
+
profile_id: string;
|
|
10476
|
+
updated_at?: string;
|
|
10477
|
+
};
|
|
10478
|
+
Update: {
|
|
10479
|
+
color?: string | null;
|
|
10480
|
+
created_at?: string;
|
|
10481
|
+
hours_fri?: number | null;
|
|
10482
|
+
hours_mon?: number | null;
|
|
10483
|
+
hours_thu?: number | null;
|
|
10484
|
+
hours_tue?: number | null;
|
|
10485
|
+
hours_wed?: number | null;
|
|
10486
|
+
id?: string;
|
|
10487
|
+
is_active?: boolean;
|
|
10488
|
+
leave_balance_hours?: number;
|
|
10489
|
+
persnr?: string | null;
|
|
10490
|
+
phone?: string | null;
|
|
10491
|
+
profile_id?: string;
|
|
10492
|
+
updated_at?: string;
|
|
10493
|
+
};
|
|
10494
|
+
Relationships: [{
|
|
10495
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
10496
|
+
columns: ["profile_id"];
|
|
10497
|
+
isOneToOne: true;
|
|
10498
|
+
referencedRelation: "profiles";
|
|
10499
|
+
referencedColumns: ["id"];
|
|
10500
|
+
}];
|
|
10501
|
+
};
|
|
10502
|
+
module_features: {
|
|
10503
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
10522
|
+
created_at?: string;
|
|
10523
|
+
feature_id?: string;
|
|
10524
|
+
id?: string;
|
|
10525
|
+
is_active?: boolean;
|
|
10526
|
+
last_seen_at?: string;
|
|
10527
|
+
module_id?: string;
|
|
10528
|
+
name?: string;
|
|
10529
|
+
};
|
|
10530
|
+
Relationships: [];
|
|
10531
|
+
};
|
|
9929
10532
|
module_permissions: {
|
|
9930
10533
|
Row: {
|
|
9931
10534
|
created_at: string;
|
|
@@ -9956,6 +10559,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
9956
10559
|
module_registry: {
|
|
9957
10560
|
Row: {
|
|
9958
10561
|
created_at: string;
|
|
10562
|
+
enforce: boolean;
|
|
9959
10563
|
is_active: boolean;
|
|
9960
10564
|
last_seen_at: string;
|
|
9961
10565
|
module_id: string;
|
|
@@ -9965,6 +10569,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
9965
10569
|
};
|
|
9966
10570
|
Insert: {
|
|
9967
10571
|
created_at?: string;
|
|
10572
|
+
enforce?: boolean;
|
|
9968
10573
|
is_active?: boolean;
|
|
9969
10574
|
last_seen_at?: string;
|
|
9970
10575
|
module_id: string;
|
|
@@ -9974,6 +10579,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
9974
10579
|
};
|
|
9975
10580
|
Update: {
|
|
9976
10581
|
created_at?: string;
|
|
10582
|
+
enforce?: boolean;
|
|
9977
10583
|
is_active?: boolean;
|
|
9978
10584
|
last_seen_at?: string;
|
|
9979
10585
|
module_id?: string;
|
|
@@ -10034,63 +10640,6 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
10034
10640
|
};
|
|
10035
10641
|
Relationships: [];
|
|
10036
10642
|
};
|
|
10037
|
-
monteurs: {
|
|
10038
|
-
Row: {
|
|
10039
|
-
avatar_url: string | null;
|
|
10040
|
-
color: string | null;
|
|
10041
|
-
created_at: string;
|
|
10042
|
-
email: string | null;
|
|
10043
|
-
id: string;
|
|
10044
|
-
is_active: boolean;
|
|
10045
|
-
leave_balance_hours: number;
|
|
10046
|
-
name: string;
|
|
10047
|
-
persnr: number | null;
|
|
10048
|
-
phone: string | null;
|
|
10049
|
-
role: string;
|
|
10050
|
-
tenant_id: string;
|
|
10051
|
-
updated_at: string;
|
|
10052
|
-
user_id: string | null;
|
|
10053
|
-
};
|
|
10054
|
-
Insert: {
|
|
10055
|
-
avatar_url?: string | null;
|
|
10056
|
-
color?: string | null;
|
|
10057
|
-
created_at?: string;
|
|
10058
|
-
email?: string | null;
|
|
10059
|
-
id?: string;
|
|
10060
|
-
is_active?: boolean;
|
|
10061
|
-
leave_balance_hours?: number;
|
|
10062
|
-
name: string;
|
|
10063
|
-
persnr?: number | null;
|
|
10064
|
-
phone?: string | null;
|
|
10065
|
-
role?: string;
|
|
10066
|
-
tenant_id: string;
|
|
10067
|
-
updated_at?: string;
|
|
10068
|
-
user_id?: string | null;
|
|
10069
|
-
};
|
|
10070
|
-
Update: {
|
|
10071
|
-
avatar_url?: string | null;
|
|
10072
|
-
color?: string | null;
|
|
10073
|
-
created_at?: string;
|
|
10074
|
-
email?: string | null;
|
|
10075
|
-
id?: string;
|
|
10076
|
-
is_active?: boolean;
|
|
10077
|
-
leave_balance_hours?: number;
|
|
10078
|
-
name?: string;
|
|
10079
|
-
persnr?: number | null;
|
|
10080
|
-
phone?: string | null;
|
|
10081
|
-
role?: string;
|
|
10082
|
-
tenant_id?: string;
|
|
10083
|
-
updated_at?: string;
|
|
10084
|
-
user_id?: string | null;
|
|
10085
|
-
};
|
|
10086
|
-
Relationships: [{
|
|
10087
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
10088
|
-
columns: ["tenant_id"];
|
|
10089
|
-
isOneToOne: false;
|
|
10090
|
-
referencedRelation: "tenants";
|
|
10091
|
-
referencedColumns: ["id"];
|
|
10092
|
-
}];
|
|
10093
|
-
};
|
|
10094
10643
|
nmbrs_component_mapping: {
|
|
10095
10644
|
Row: {
|
|
10096
10645
|
created_at: string;
|
|
@@ -10161,13 +10710,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
10161
10710
|
nmbrs_employee_number?: string;
|
|
10162
10711
|
updated_at?: string;
|
|
10163
10712
|
};
|
|
10164
|
-
Relationships: [
|
|
10165
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10166
|
-
columns: ["monteur_id"];
|
|
10167
|
-
isOneToOne: true;
|
|
10168
|
-
referencedRelation: "monteurs";
|
|
10169
|
-
referencedColumns: ["id"];
|
|
10170
|
-
}];
|
|
10713
|
+
Relationships: [];
|
|
10171
10714
|
};
|
|
10172
10715
|
nmbrs_export_lines: {
|
|
10173
10716
|
Row: {
|
|
@@ -10216,12 +10759,6 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
10216
10759
|
wage_code?: string;
|
|
10217
10760
|
};
|
|
10218
10761
|
Relationships: [{
|
|
10219
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10220
|
-
columns: ["monteur_id"];
|
|
10221
|
-
isOneToOne: false;
|
|
10222
|
-
referencedRelation: "monteurs";
|
|
10223
|
-
referencedColumns: ["id"];
|
|
10224
|
-
}, {
|
|
10225
10762
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10226
10763
|
columns: ["run_id"];
|
|
10227
10764
|
isOneToOne: false;
|
|
@@ -11049,6 +11586,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
11049
11586
|
error_message: string | null;
|
|
11050
11587
|
id: string;
|
|
11051
11588
|
invoice_number: string | null;
|
|
11589
|
+
next_attempt_at: string;
|
|
11052
11590
|
order_id: string;
|
|
11053
11591
|
processed_at: string | null;
|
|
11054
11592
|
status: string;
|
|
@@ -11060,6 +11598,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
11060
11598
|
error_message?: string | null;
|
|
11061
11599
|
id?: string;
|
|
11062
11600
|
invoice_number?: string | null;
|
|
11601
|
+
next_attempt_at?: string;
|
|
11063
11602
|
order_id: string;
|
|
11064
11603
|
processed_at?: string | null;
|
|
11065
11604
|
status?: string;
|
|
@@ -11071,6 +11610,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
11071
11610
|
error_message?: string | null;
|
|
11072
11611
|
id?: string;
|
|
11073
11612
|
invoice_number?: string | null;
|
|
11613
|
+
next_attempt_at?: string;
|
|
11074
11614
|
order_id?: string;
|
|
11075
11615
|
processed_at?: string | null;
|
|
11076
11616
|
status?: string;
|
|
@@ -11252,6 +11792,8 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
11252
11792
|
orders: {
|
|
11253
11793
|
Row: {
|
|
11254
11794
|
buffer_id: string | null;
|
|
11795
|
+
cancel_reason: string | null;
|
|
11796
|
+
cancelled_at: string | null;
|
|
11255
11797
|
created_at: string;
|
|
11256
11798
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
11257
11799
|
customer_id: string | null;
|
|
@@ -11274,6 +11816,8 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
11274
11816
|
};
|
|
11275
11817
|
Insert: {
|
|
11276
11818
|
buffer_id?: string | null;
|
|
11819
|
+
cancel_reason?: string | null;
|
|
11820
|
+
cancelled_at?: string | null;
|
|
11277
11821
|
created_at?: string;
|
|
11278
11822
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11279
11823
|
customer_id?: string | null;
|
|
@@ -11296,6 +11840,8 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
11296
11840
|
};
|
|
11297
11841
|
Update: {
|
|
11298
11842
|
buffer_id?: string | null;
|
|
11843
|
+
cancel_reason?: string | null;
|
|
11844
|
+
cancelled_at?: string | null;
|
|
11299
11845
|
created_at?: string;
|
|
11300
11846
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11301
11847
|
customer_id?: string | null;
|
|
@@ -12609,6 +13155,9 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
12609
13155
|
created_at: string;
|
|
12610
13156
|
id: string;
|
|
12611
13157
|
laatst_gezien: string;
|
|
13158
|
+
laatste_fout: string | null;
|
|
13159
|
+
laatste_request_id: number | null;
|
|
13160
|
+
mislukte_posts: number;
|
|
12612
13161
|
tick_sleutel: string;
|
|
12613
13162
|
updated_at: string;
|
|
12614
13163
|
};
|
|
@@ -12618,6 +13167,9 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
12618
13167
|
created_at?: string;
|
|
12619
13168
|
id?: string;
|
|
12620
13169
|
laatst_gezien?: string;
|
|
13170
|
+
laatste_fout?: string | null;
|
|
13171
|
+
laatste_request_id?: number | null;
|
|
13172
|
+
mislukte_posts?: number;
|
|
12621
13173
|
tick_sleutel?: string;
|
|
12622
13174
|
updated_at?: string;
|
|
12623
13175
|
};
|
|
@@ -12627,6 +13179,9 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
12627
13179
|
created_at?: string;
|
|
12628
13180
|
id?: string;
|
|
12629
13181
|
laatst_gezien?: string;
|
|
13182
|
+
laatste_fout?: string | null;
|
|
13183
|
+
laatste_request_id?: number | null;
|
|
13184
|
+
mislukte_posts?: number;
|
|
12630
13185
|
tick_sleutel?: string;
|
|
12631
13186
|
updated_at?: string;
|
|
12632
13187
|
};
|
|
@@ -13349,54 +13904,147 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
13349
13904
|
};
|
|
13350
13905
|
Relationships: [];
|
|
13351
13906
|
};
|
|
13352
|
-
|
|
13907
|
+
profile_modules: {
|
|
13353
13908
|
Row: {
|
|
13354
|
-
address: string | null;
|
|
13355
|
-
avatar_url: string | null;
|
|
13356
13909
|
created_at: string;
|
|
13357
|
-
display_name: string | null;
|
|
13358
|
-
email: string | null;
|
|
13359
13910
|
id: string;
|
|
13360
|
-
|
|
13361
|
-
|
|
13362
|
-
tenant_id: string | null;
|
|
13363
|
-
updated_at: string;
|
|
13911
|
+
module_id: string;
|
|
13912
|
+
profile_id: string;
|
|
13364
13913
|
};
|
|
13365
13914
|
Insert: {
|
|
13366
|
-
address?: string | null;
|
|
13367
|
-
avatar_url?: string | null;
|
|
13368
13915
|
created_at?: string;
|
|
13369
|
-
|
|
13370
|
-
|
|
13371
|
-
|
|
13372
|
-
is_superadmin?: boolean;
|
|
13373
|
-
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
13374
|
-
tenant_id?: string | null;
|
|
13375
|
-
updated_at?: string;
|
|
13916
|
+
id?: string;
|
|
13917
|
+
module_id: string;
|
|
13918
|
+
profile_id: string;
|
|
13376
13919
|
};
|
|
13377
13920
|
Update: {
|
|
13378
|
-
address?: string | null;
|
|
13379
|
-
avatar_url?: string | null;
|
|
13380
13921
|
created_at?: string;
|
|
13381
|
-
display_name?: string | null;
|
|
13382
|
-
email?: string | null;
|
|
13383
13922
|
id?: string;
|
|
13384
|
-
|
|
13385
|
-
|
|
13386
|
-
tenant_id?: string | null;
|
|
13387
|
-
updated_at?: string;
|
|
13923
|
+
module_id?: string;
|
|
13924
|
+
profile_id?: string;
|
|
13388
13925
|
};
|
|
13389
13926
|
Relationships: [{
|
|
13390
|
-
foreignKeyName: "
|
|
13391
|
-
columns: ["
|
|
13927
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
13928
|
+
columns: ["profile_id"];
|
|
13392
13929
|
isOneToOne: false;
|
|
13393
|
-
referencedRelation: "
|
|
13930
|
+
referencedRelation: "profiles_org";
|
|
13394
13931
|
referencedColumns: ["id"];
|
|
13395
13932
|
}];
|
|
13396
13933
|
};
|
|
13397
|
-
|
|
13934
|
+
profile_roles: {
|
|
13398
13935
|
Row: {
|
|
13399
|
-
|
|
13936
|
+
created_at: string;
|
|
13937
|
+
id: string;
|
|
13938
|
+
profile_id: string;
|
|
13939
|
+
role_id: string;
|
|
13940
|
+
};
|
|
13941
|
+
Insert: {
|
|
13942
|
+
created_at?: string;
|
|
13943
|
+
id?: string;
|
|
13944
|
+
profile_id: string;
|
|
13945
|
+
role_id: string;
|
|
13946
|
+
};
|
|
13947
|
+
Update: {
|
|
13948
|
+
created_at?: string;
|
|
13949
|
+
id?: string;
|
|
13950
|
+
profile_id?: string;
|
|
13951
|
+
role_id?: string;
|
|
13952
|
+
};
|
|
13953
|
+
Relationships: [{
|
|
13954
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
13955
|
+
columns: ["profile_id"];
|
|
13956
|
+
isOneToOne: false;
|
|
13957
|
+
referencedRelation: "profiles_org";
|
|
13958
|
+
referencedColumns: ["id"];
|
|
13959
|
+
}, {
|
|
13960
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
13961
|
+
columns: ["role_id"];
|
|
13962
|
+
isOneToOne: false;
|
|
13963
|
+
referencedRelation: "roles";
|
|
13964
|
+
referencedColumns: ["id"];
|
|
13965
|
+
}];
|
|
13966
|
+
};
|
|
13967
|
+
profiles: {
|
|
13968
|
+
Row: {
|
|
13969
|
+
address: string | null;
|
|
13970
|
+
avatar_url: string | null;
|
|
13971
|
+
created_at: string;
|
|
13972
|
+
display_name: string | null;
|
|
13973
|
+
email: string | null;
|
|
13974
|
+
id: string;
|
|
13975
|
+
is_superadmin: boolean;
|
|
13976
|
+
notification_preferences: import("../integrations/supabase/types").Json;
|
|
13977
|
+
tenant_id: string | null;
|
|
13978
|
+
updated_at: string;
|
|
13979
|
+
};
|
|
13980
|
+
Insert: {
|
|
13981
|
+
address?: string | null;
|
|
13982
|
+
avatar_url?: string | null;
|
|
13983
|
+
created_at?: string;
|
|
13984
|
+
display_name?: string | null;
|
|
13985
|
+
email?: string | null;
|
|
13986
|
+
id: string;
|
|
13987
|
+
is_superadmin?: boolean;
|
|
13988
|
+
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
13989
|
+
tenant_id?: string | null;
|
|
13990
|
+
updated_at?: string;
|
|
13991
|
+
};
|
|
13992
|
+
Update: {
|
|
13993
|
+
address?: string | null;
|
|
13994
|
+
avatar_url?: string | null;
|
|
13995
|
+
created_at?: string;
|
|
13996
|
+
display_name?: string | null;
|
|
13997
|
+
email?: string | null;
|
|
13998
|
+
id?: string;
|
|
13999
|
+
is_superadmin?: boolean;
|
|
14000
|
+
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
14001
|
+
tenant_id?: string | null;
|
|
14002
|
+
updated_at?: string;
|
|
14003
|
+
};
|
|
14004
|
+
Relationships: [{
|
|
14005
|
+
foreignKeyName: "profiles_tenant_id_fkey";
|
|
14006
|
+
columns: ["tenant_id"];
|
|
14007
|
+
isOneToOne: false;
|
|
14008
|
+
referencedRelation: "tenants";
|
|
14009
|
+
referencedColumns: ["id"];
|
|
14010
|
+
}];
|
|
14011
|
+
};
|
|
14012
|
+
profiles_org: {
|
|
14013
|
+
Row: {
|
|
14014
|
+
created_at: string;
|
|
14015
|
+
id: string;
|
|
14016
|
+
is_default: boolean;
|
|
14017
|
+
name: string;
|
|
14018
|
+
tenant_id: string | null;
|
|
14019
|
+
updated_at: string;
|
|
14020
|
+
};
|
|
14021
|
+
Insert: {
|
|
14022
|
+
created_at?: string;
|
|
14023
|
+
id?: string;
|
|
14024
|
+
is_default?: boolean;
|
|
14025
|
+
name: string;
|
|
14026
|
+
tenant_id?: string | null;
|
|
14027
|
+
updated_at?: string;
|
|
14028
|
+
};
|
|
14029
|
+
Update: {
|
|
14030
|
+
created_at?: string;
|
|
14031
|
+
id?: string;
|
|
14032
|
+
is_default?: boolean;
|
|
14033
|
+
name?: string;
|
|
14034
|
+
tenant_id?: string | null;
|
|
14035
|
+
updated_at?: string;
|
|
14036
|
+
};
|
|
14037
|
+
Relationships: [{
|
|
14038
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
14039
|
+
columns: ["tenant_id"];
|
|
14040
|
+
isOneToOne: false;
|
|
14041
|
+
referencedRelation: "tenants";
|
|
14042
|
+
referencedColumns: ["id"];
|
|
14043
|
+
}];
|
|
14044
|
+
};
|
|
14045
|
+
projects: {
|
|
14046
|
+
Row: {
|
|
14047
|
+
contact_name: string | null;
|
|
13400
14048
|
created_at: string;
|
|
13401
14049
|
email: string | null;
|
|
13402
14050
|
id: string;
|
|
@@ -14135,6 +14783,96 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
14135
14783
|
referencedColumns: ["id"];
|
|
14136
14784
|
}];
|
|
14137
14785
|
};
|
|
14786
|
+
role_assignments: {
|
|
14787
|
+
Row: {
|
|
14788
|
+
created_at: string;
|
|
14789
|
+
id: string;
|
|
14790
|
+
role_id: string;
|
|
14791
|
+
user_id: string;
|
|
14792
|
+
};
|
|
14793
|
+
Insert: {
|
|
14794
|
+
created_at?: string;
|
|
14795
|
+
id?: string;
|
|
14796
|
+
role_id: string;
|
|
14797
|
+
user_id: string;
|
|
14798
|
+
};
|
|
14799
|
+
Update: {
|
|
14800
|
+
created_at?: string;
|
|
14801
|
+
id?: string;
|
|
14802
|
+
role_id?: string;
|
|
14803
|
+
user_id?: string;
|
|
14804
|
+
};
|
|
14805
|
+
Relationships: [{
|
|
14806
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
14807
|
+
columns: ["role_id"];
|
|
14808
|
+
isOneToOne: false;
|
|
14809
|
+
referencedRelation: "roles";
|
|
14810
|
+
referencedColumns: ["id"];
|
|
14811
|
+
}];
|
|
14812
|
+
};
|
|
14813
|
+
role_permissions: {
|
|
14814
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
14833
|
+
can_edit?: boolean;
|
|
14834
|
+
can_view?: boolean;
|
|
14835
|
+
feature_id?: string;
|
|
14836
|
+
id?: string;
|
|
14837
|
+
module_id?: string;
|
|
14838
|
+
role_id?: string;
|
|
14839
|
+
updated_at?: string;
|
|
14840
|
+
};
|
|
14841
|
+
Relationships: [{
|
|
14842
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
14843
|
+
columns: ["role_id"];
|
|
14844
|
+
isOneToOne: false;
|
|
14845
|
+
referencedRelation: "roles";
|
|
14846
|
+
referencedColumns: ["id"];
|
|
14847
|
+
}];
|
|
14848
|
+
};
|
|
14849
|
+
roles: {
|
|
14850
|
+
Row: {
|
|
14851
|
+
created_at: string;
|
|
14852
|
+
id: string;
|
|
14853
|
+
is_protected: boolean;
|
|
14854
|
+
key: string;
|
|
14855
|
+
name: string;
|
|
14856
|
+
updated_at: string;
|
|
14857
|
+
};
|
|
14858
|
+
Insert: {
|
|
14859
|
+
created_at?: string;
|
|
14860
|
+
id?: string;
|
|
14861
|
+
is_protected?: boolean;
|
|
14862
|
+
key: string;
|
|
14863
|
+
name: string;
|
|
14864
|
+
updated_at?: string;
|
|
14865
|
+
};
|
|
14866
|
+
Update: {
|
|
14867
|
+
created_at?: string;
|
|
14868
|
+
id?: string;
|
|
14869
|
+
is_protected?: boolean;
|
|
14870
|
+
key?: string;
|
|
14871
|
+
name?: string;
|
|
14872
|
+
updated_at?: string;
|
|
14873
|
+
};
|
|
14874
|
+
Relationships: [];
|
|
14875
|
+
};
|
|
14138
14876
|
rooms: {
|
|
14139
14877
|
Row: {
|
|
14140
14878
|
capacity: number;
|
|
@@ -14478,6 +15216,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
14478
15216
|
type: string;
|
|
14479
15217
|
updated_at: string;
|
|
14480
15218
|
vereist_medewerker: boolean;
|
|
15219
|
+
werkplek: string | null;
|
|
14481
15220
|
};
|
|
14482
15221
|
Insert: {
|
|
14483
15222
|
actief?: boolean;
|
|
@@ -14491,6 +15230,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
14491
15230
|
type?: string;
|
|
14492
15231
|
updated_at?: string;
|
|
14493
15232
|
vereist_medewerker?: boolean;
|
|
15233
|
+
werkplek?: string | null;
|
|
14494
15234
|
};
|
|
14495
15235
|
Update: {
|
|
14496
15236
|
actief?: boolean;
|
|
@@ -14504,9 +15244,46 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
14504
15244
|
type?: string;
|
|
14505
15245
|
updated_at?: string;
|
|
14506
15246
|
vereist_medewerker?: boolean;
|
|
15247
|
+
werkplek?: string | null;
|
|
14507
15248
|
};
|
|
14508
15249
|
Relationships: [];
|
|
14509
15250
|
};
|
|
15251
|
+
sick_periods: {
|
|
15252
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
15271
|
+
created_at?: string;
|
|
15272
|
+
employee_id?: string;
|
|
15273
|
+
end_date?: string | null;
|
|
15274
|
+
id?: string;
|
|
15275
|
+
notes?: string | null;
|
|
15276
|
+
start_date?: string;
|
|
15277
|
+
updated_at?: string;
|
|
15278
|
+
};
|
|
15279
|
+
Relationships: [{
|
|
15280
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
15281
|
+
columns: ["employee_id"];
|
|
15282
|
+
isOneToOne: false;
|
|
15283
|
+
referencedRelation: "profiles";
|
|
15284
|
+
referencedColumns: ["id"];
|
|
15285
|
+
}];
|
|
15286
|
+
};
|
|
14510
15287
|
sidebar_config: {
|
|
14511
15288
|
Row: {
|
|
14512
15289
|
id: string;
|
|
@@ -14804,6 +15581,54 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
14804
15581
|
};
|
|
14805
15582
|
Relationships: [];
|
|
14806
15583
|
};
|
|
15584
|
+
time_compensation_entries: {
|
|
15585
|
+
Row: {
|
|
15586
|
+
created_at: string;
|
|
15587
|
+
employee_id: string;
|
|
15588
|
+
entry_date: string;
|
|
15589
|
+
id: string;
|
|
15590
|
+
km: number;
|
|
15591
|
+
meal_allowance: number;
|
|
15592
|
+
notes: string | null;
|
|
15593
|
+
standby_evening: number;
|
|
15594
|
+
standby_weekend: number;
|
|
15595
|
+
tvt_change: number;
|
|
15596
|
+
updated_at: string;
|
|
15597
|
+
};
|
|
15598
|
+
Insert: {
|
|
15599
|
+
created_at?: string;
|
|
15600
|
+
employee_id: string;
|
|
15601
|
+
entry_date: string;
|
|
15602
|
+
id?: string;
|
|
15603
|
+
km?: number;
|
|
15604
|
+
meal_allowance?: number;
|
|
15605
|
+
notes?: string | null;
|
|
15606
|
+
standby_evening?: number;
|
|
15607
|
+
standby_weekend?: number;
|
|
15608
|
+
tvt_change?: number;
|
|
15609
|
+
updated_at?: string;
|
|
15610
|
+
};
|
|
15611
|
+
Update: {
|
|
15612
|
+
created_at?: string;
|
|
15613
|
+
employee_id?: string;
|
|
15614
|
+
entry_date?: string;
|
|
15615
|
+
id?: string;
|
|
15616
|
+
km?: number;
|
|
15617
|
+
meal_allowance?: number;
|
|
15618
|
+
notes?: string | null;
|
|
15619
|
+
standby_evening?: number;
|
|
15620
|
+
standby_weekend?: number;
|
|
15621
|
+
tvt_change?: number;
|
|
15622
|
+
updated_at?: string;
|
|
15623
|
+
};
|
|
15624
|
+
Relationships: [{
|
|
15625
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
15626
|
+
columns: ["employee_id"];
|
|
15627
|
+
isOneToOne: false;
|
|
15628
|
+
referencedRelation: "profiles";
|
|
15629
|
+
referencedColumns: ["id"];
|
|
15630
|
+
}];
|
|
15631
|
+
};
|
|
14807
15632
|
time_entries: {
|
|
14808
15633
|
Row: {
|
|
14809
15634
|
created_at: string;
|
|
@@ -14838,65 +15663,170 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
14838
15663
|
undertime?: number;
|
|
14839
15664
|
updated_at?: string;
|
|
14840
15665
|
};
|
|
15666
|
+
Relationships: [];
|
|
15667
|
+
};
|
|
15668
|
+
time_log_week_approvals: {
|
|
15669
|
+
Row: {
|
|
15670
|
+
approved_at: string | null;
|
|
15671
|
+
approved_by: string | null;
|
|
15672
|
+
created_at: string;
|
|
15673
|
+
employee_id: string;
|
|
15674
|
+
id: string;
|
|
15675
|
+
locked: boolean;
|
|
15676
|
+
notes: string | null;
|
|
15677
|
+
status: string;
|
|
15678
|
+
submitted_at: string | null;
|
|
15679
|
+
updated_at: string;
|
|
15680
|
+
week_start: string;
|
|
15681
|
+
};
|
|
15682
|
+
Insert: {
|
|
15683
|
+
approved_at?: string | null;
|
|
15684
|
+
approved_by?: string | null;
|
|
15685
|
+
created_at?: string;
|
|
15686
|
+
employee_id: string;
|
|
15687
|
+
id?: string;
|
|
15688
|
+
locked?: boolean;
|
|
15689
|
+
notes?: string | null;
|
|
15690
|
+
status?: string;
|
|
15691
|
+
submitted_at?: string | null;
|
|
15692
|
+
updated_at?: string;
|
|
15693
|
+
week_start: string;
|
|
15694
|
+
};
|
|
15695
|
+
Update: {
|
|
15696
|
+
approved_at?: string | null;
|
|
15697
|
+
approved_by?: string | null;
|
|
15698
|
+
created_at?: string;
|
|
15699
|
+
employee_id?: string;
|
|
15700
|
+
id?: string;
|
|
15701
|
+
locked?: boolean;
|
|
15702
|
+
notes?: string | null;
|
|
15703
|
+
status?: string;
|
|
15704
|
+
submitted_at?: string | null;
|
|
15705
|
+
updated_at?: string;
|
|
15706
|
+
week_start?: string;
|
|
15707
|
+
};
|
|
14841
15708
|
Relationships: [{
|
|
14842
|
-
foreignKeyName: "
|
|
15709
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
14843
15710
|
columns: ["employee_id"];
|
|
14844
15711
|
isOneToOne: false;
|
|
14845
|
-
referencedRelation: "
|
|
15712
|
+
referencedRelation: "profiles";
|
|
14846
15713
|
referencedColumns: ["id"];
|
|
14847
15714
|
}];
|
|
14848
15715
|
};
|
|
14849
15716
|
time_logs: {
|
|
14850
15717
|
Row: {
|
|
15718
|
+
auto_stop_reason: string | null;
|
|
15719
|
+
auto_stopped: boolean;
|
|
14851
15720
|
created_at: string;
|
|
15721
|
+
current_latitude: number | null;
|
|
15722
|
+
current_longitude: number | null;
|
|
15723
|
+
current_position_updated_at: string | null;
|
|
14852
15724
|
employee_id: string;
|
|
15725
|
+
end_latitude: number | null;
|
|
15726
|
+
end_longitude: number | null;
|
|
14853
15727
|
end_time: string | null;
|
|
15728
|
+
eta_distance_km: number | null;
|
|
15729
|
+
eta_minutes: number | null;
|
|
15730
|
+
eta_updated_at: string | null;
|
|
15731
|
+
hour_category: string | null;
|
|
14854
15732
|
id: string;
|
|
15733
|
+
last_reminder_at: string | null;
|
|
14855
15734
|
notes: string | null;
|
|
14856
15735
|
overtime_hours: number;
|
|
14857
15736
|
overtime_type: string | null;
|
|
14858
15737
|
regular_hours: number;
|
|
15738
|
+
reminder_count: number;
|
|
15739
|
+
requires_review: boolean;
|
|
15740
|
+
start_latitude: number | null;
|
|
15741
|
+
start_longitude: number | null;
|
|
14859
15742
|
start_time: string;
|
|
14860
15743
|
travel_cost: number | null;
|
|
14861
15744
|
travel_distance_km: number | null;
|
|
15745
|
+
travel_duration_min: number | null;
|
|
15746
|
+
travel_time_minutes: number | null;
|
|
14862
15747
|
type: string;
|
|
14863
15748
|
updated_at: string;
|
|
15749
|
+
work_order_id: string | null;
|
|
14864
15750
|
};
|
|
14865
15751
|
Insert: {
|
|
15752
|
+
auto_stop_reason?: string | null;
|
|
15753
|
+
auto_stopped?: boolean;
|
|
14866
15754
|
created_at?: string;
|
|
15755
|
+
current_latitude?: number | null;
|
|
15756
|
+
current_longitude?: number | null;
|
|
15757
|
+
current_position_updated_at?: string | null;
|
|
14867
15758
|
employee_id: string;
|
|
15759
|
+
end_latitude?: number | null;
|
|
15760
|
+
end_longitude?: number | null;
|
|
14868
15761
|
end_time?: string | null;
|
|
15762
|
+
eta_distance_km?: number | null;
|
|
15763
|
+
eta_minutes?: number | null;
|
|
15764
|
+
eta_updated_at?: string | null;
|
|
15765
|
+
hour_category?: string | null;
|
|
14869
15766
|
id?: string;
|
|
15767
|
+
last_reminder_at?: string | null;
|
|
14870
15768
|
notes?: string | null;
|
|
14871
15769
|
overtime_hours?: number;
|
|
14872
15770
|
overtime_type?: string | null;
|
|
14873
15771
|
regular_hours?: number;
|
|
15772
|
+
reminder_count?: number;
|
|
15773
|
+
requires_review?: boolean;
|
|
15774
|
+
start_latitude?: number | null;
|
|
15775
|
+
start_longitude?: number | null;
|
|
14874
15776
|
start_time?: string;
|
|
14875
15777
|
travel_cost?: number | null;
|
|
14876
15778
|
travel_distance_km?: number | null;
|
|
15779
|
+
travel_duration_min?: number | null;
|
|
15780
|
+
travel_time_minutes?: number | null;
|
|
14877
15781
|
type: string;
|
|
14878
15782
|
updated_at?: string;
|
|
15783
|
+
work_order_id?: string | null;
|
|
14879
15784
|
};
|
|
14880
15785
|
Update: {
|
|
15786
|
+
auto_stop_reason?: string | null;
|
|
15787
|
+
auto_stopped?: boolean;
|
|
14881
15788
|
created_at?: string;
|
|
15789
|
+
current_latitude?: number | null;
|
|
15790
|
+
current_longitude?: number | null;
|
|
15791
|
+
current_position_updated_at?: string | null;
|
|
14882
15792
|
employee_id?: string;
|
|
15793
|
+
end_latitude?: number | null;
|
|
15794
|
+
end_longitude?: number | null;
|
|
14883
15795
|
end_time?: string | null;
|
|
15796
|
+
eta_distance_km?: number | null;
|
|
15797
|
+
eta_minutes?: number | null;
|
|
15798
|
+
eta_updated_at?: string | null;
|
|
15799
|
+
hour_category?: string | null;
|
|
14884
15800
|
id?: string;
|
|
15801
|
+
last_reminder_at?: string | null;
|
|
14885
15802
|
notes?: string | null;
|
|
14886
15803
|
overtime_hours?: number;
|
|
14887
15804
|
overtime_type?: string | null;
|
|
14888
15805
|
regular_hours?: number;
|
|
15806
|
+
reminder_count?: number;
|
|
15807
|
+
requires_review?: boolean;
|
|
15808
|
+
start_latitude?: number | null;
|
|
15809
|
+
start_longitude?: number | null;
|
|
14889
15810
|
start_time?: string;
|
|
14890
15811
|
travel_cost?: number | null;
|
|
14891
15812
|
travel_distance_km?: number | null;
|
|
15813
|
+
travel_duration_min?: number | null;
|
|
15814
|
+
travel_time_minutes?: number | null;
|
|
14892
15815
|
type?: string;
|
|
14893
15816
|
updated_at?: string;
|
|
15817
|
+
work_order_id?: string | null;
|
|
14894
15818
|
};
|
|
14895
15819
|
Relationships: [{
|
|
14896
15820
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
14897
15821
|
columns: ["employee_id"];
|
|
14898
15822
|
isOneToOne: false;
|
|
14899
|
-
referencedRelation: "
|
|
15823
|
+
referencedRelation: "profiles";
|
|
15824
|
+
referencedColumns: ["id"];
|
|
15825
|
+
}, {
|
|
15826
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
15827
|
+
columns: ["work_order_id"];
|
|
15828
|
+
isOneToOne: false;
|
|
15829
|
+
referencedRelation: "work_orders";
|
|
14900
15830
|
referencedColumns: ["id"];
|
|
14901
15831
|
}];
|
|
14902
15832
|
};
|
|
@@ -14935,7 +15865,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
14935
15865
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
14936
15866
|
columns: ["employee_id"];
|
|
14937
15867
|
isOneToOne: false;
|
|
14938
|
-
referencedRelation: "
|
|
15868
|
+
referencedRelation: "profiles";
|
|
14939
15869
|
referencedColumns: ["id"];
|
|
14940
15870
|
}];
|
|
14941
15871
|
};
|
|
@@ -15245,6 +16175,39 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
15245
16175
|
};
|
|
15246
16176
|
Relationships: [];
|
|
15247
16177
|
};
|
|
16178
|
+
twinfield_cron_locks: {
|
|
16179
|
+
Row: {
|
|
16180
|
+
created_at: string;
|
|
16181
|
+
heartbeat_at: string;
|
|
16182
|
+
job_name: string;
|
|
16183
|
+
last_error: string | null;
|
|
16184
|
+
last_finished_at: string | null;
|
|
16185
|
+
locked_at: string;
|
|
16186
|
+
run_id: string;
|
|
16187
|
+
updated_at: string;
|
|
16188
|
+
};
|
|
16189
|
+
Insert: {
|
|
16190
|
+
created_at?: string;
|
|
16191
|
+
heartbeat_at?: string;
|
|
16192
|
+
job_name: string;
|
|
16193
|
+
last_error?: string | null;
|
|
16194
|
+
last_finished_at?: string | null;
|
|
16195
|
+
locked_at?: string;
|
|
16196
|
+
run_id?: string;
|
|
16197
|
+
updated_at?: string;
|
|
16198
|
+
};
|
|
16199
|
+
Update: {
|
|
16200
|
+
created_at?: string;
|
|
16201
|
+
heartbeat_at?: string;
|
|
16202
|
+
job_name?: string;
|
|
16203
|
+
last_error?: string | null;
|
|
16204
|
+
last_finished_at?: string | null;
|
|
16205
|
+
locked_at?: string;
|
|
16206
|
+
run_id?: string;
|
|
16207
|
+
updated_at?: string;
|
|
16208
|
+
};
|
|
16209
|
+
Relationships: [];
|
|
16210
|
+
};
|
|
15248
16211
|
twinfield_customers: {
|
|
15249
16212
|
Row: {
|
|
15250
16213
|
address: string | null;
|
|
@@ -15845,6 +16808,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
15845
16808
|
twinfield_push_queue: {
|
|
15846
16809
|
Row: {
|
|
15847
16810
|
action: string;
|
|
16811
|
+
attempt_started_at: string | null;
|
|
15848
16812
|
attempts: number;
|
|
15849
16813
|
connection_id: string | null;
|
|
15850
16814
|
created_at: string;
|
|
@@ -15861,6 +16825,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
15861
16825
|
};
|
|
15862
16826
|
Insert: {
|
|
15863
16827
|
action?: string;
|
|
16828
|
+
attempt_started_at?: string | null;
|
|
15864
16829
|
attempts?: number;
|
|
15865
16830
|
connection_id?: string | null;
|
|
15866
16831
|
created_at?: string;
|
|
@@ -15877,6 +16842,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
15877
16842
|
};
|
|
15878
16843
|
Update: {
|
|
15879
16844
|
action?: string;
|
|
16845
|
+
attempt_started_at?: string | null;
|
|
15880
16846
|
attempts?: number;
|
|
15881
16847
|
connection_id?: string | null;
|
|
15882
16848
|
created_at?: string;
|
|
@@ -16074,13 +17040,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
16074
17040
|
workday_end?: string | null;
|
|
16075
17041
|
workday_start?: string | null;
|
|
16076
17042
|
};
|
|
16077
|
-
Relationships: [
|
|
16078
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
16079
|
-
columns: ["monteur_id"];
|
|
16080
|
-
isOneToOne: true;
|
|
16081
|
-
referencedRelation: "monteurs";
|
|
16082
|
-
referencedColumns: ["id"];
|
|
16083
|
-
}];
|
|
17043
|
+
Relationships: [];
|
|
16084
17044
|
};
|
|
16085
17045
|
uren_entries: {
|
|
16086
17046
|
Row: {
|
|
@@ -16124,14 +17084,8 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
16124
17084
|
travel_km?: number;
|
|
16125
17085
|
updated_at?: string;
|
|
16126
17086
|
werkbon_id?: string | null;
|
|
16127
|
-
};
|
|
16128
|
-
Relationships: [{
|
|
16129
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16130
|
-
columns: ["monteur_id"];
|
|
16131
|
-
isOneToOne: false;
|
|
16132
|
-
referencedRelation: "monteurs";
|
|
16133
|
-
referencedColumns: ["id"];
|
|
16134
|
-
}, {
|
|
17087
|
+
};
|
|
17088
|
+
Relationships: [{
|
|
16135
17089
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16136
17090
|
columns: ["werkbon_id"];
|
|
16137
17091
|
isOneToOne: false;
|
|
@@ -16599,17 +17553,12 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
16599
17553
|
submitted_at?: string | null;
|
|
16600
17554
|
updated_at?: string;
|
|
16601
17555
|
};
|
|
16602
|
-
Relationships: [
|
|
16603
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
16604
|
-
columns: ["monteur_id"];
|
|
16605
|
-
isOneToOne: false;
|
|
16606
|
-
referencedRelation: "monteurs";
|
|
16607
|
-
referencedColumns: ["id"];
|
|
16608
|
-
}];
|
|
17556
|
+
Relationships: [];
|
|
16609
17557
|
};
|
|
16610
17558
|
user_module_permissions: {
|
|
16611
17559
|
Row: {
|
|
16612
17560
|
created_at: string;
|
|
17561
|
+
feature_id: string;
|
|
16613
17562
|
id: string;
|
|
16614
17563
|
module_id: string;
|
|
16615
17564
|
permission: string;
|
|
@@ -16618,6 +17567,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
16618
17567
|
};
|
|
16619
17568
|
Insert: {
|
|
16620
17569
|
created_at?: string;
|
|
17570
|
+
feature_id?: string;
|
|
16621
17571
|
id?: string;
|
|
16622
17572
|
module_id: string;
|
|
16623
17573
|
permission: string;
|
|
@@ -16626,6 +17576,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
16626
17576
|
};
|
|
16627
17577
|
Update: {
|
|
16628
17578
|
created_at?: string;
|
|
17579
|
+
feature_id?: string;
|
|
16629
17580
|
id?: string;
|
|
16630
17581
|
module_id?: string;
|
|
16631
17582
|
permission?: string;
|
|
@@ -16661,6 +17612,51 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
16661
17612
|
referencedColumns: ["id"];
|
|
16662
17613
|
}];
|
|
16663
17614
|
};
|
|
17615
|
+
van_inventories: {
|
|
17616
|
+
Row: {
|
|
17617
|
+
barcode: string | null;
|
|
17618
|
+
created_at: string;
|
|
17619
|
+
id: string;
|
|
17620
|
+
monteur_id: string | null;
|
|
17621
|
+
price_per_unit: number;
|
|
17622
|
+
product_name: string;
|
|
17623
|
+
quantity_current: number;
|
|
17624
|
+
quantity_min: number;
|
|
17625
|
+
unit: string;
|
|
17626
|
+
updated_at: string;
|
|
17627
|
+
};
|
|
17628
|
+
Insert: {
|
|
17629
|
+
barcode?: string | null;
|
|
17630
|
+
created_at?: string;
|
|
17631
|
+
id?: string;
|
|
17632
|
+
monteur_id?: string | null;
|
|
17633
|
+
price_per_unit?: number;
|
|
17634
|
+
product_name: string;
|
|
17635
|
+
quantity_current?: number;
|
|
17636
|
+
quantity_min?: number;
|
|
17637
|
+
unit?: string;
|
|
17638
|
+
updated_at?: string;
|
|
17639
|
+
};
|
|
17640
|
+
Update: {
|
|
17641
|
+
barcode?: string | null;
|
|
17642
|
+
created_at?: string;
|
|
17643
|
+
id?: string;
|
|
17644
|
+
monteur_id?: string | null;
|
|
17645
|
+
price_per_unit?: number;
|
|
17646
|
+
product_name?: string;
|
|
17647
|
+
quantity_current?: number;
|
|
17648
|
+
quantity_min?: number;
|
|
17649
|
+
unit?: string;
|
|
17650
|
+
updated_at?: string;
|
|
17651
|
+
};
|
|
17652
|
+
Relationships: [{
|
|
17653
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
17654
|
+
columns: ["monteur_id"];
|
|
17655
|
+
isOneToOne: false;
|
|
17656
|
+
referencedRelation: "profiles";
|
|
17657
|
+
referencedColumns: ["id"];
|
|
17658
|
+
}];
|
|
17659
|
+
};
|
|
16664
17660
|
voorraad_custom_fields: {
|
|
16665
17661
|
Row: {
|
|
16666
17662
|
created_at: string;
|
|
@@ -17611,7 +18607,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
17611
18607
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
17612
18608
|
columns: ["monteur_id"];
|
|
17613
18609
|
isOneToOne: false;
|
|
17614
|
-
referencedRelation: "
|
|
18610
|
+
referencedRelation: "profiles";
|
|
17615
18611
|
referencedColumns: ["id"];
|
|
17616
18612
|
}, {
|
|
17617
18613
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -17621,6 +18617,60 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
17621
18617
|
referencedColumns: ["id"];
|
|
17622
18618
|
}];
|
|
17623
18619
|
};
|
|
18620
|
+
work_order_photos: {
|
|
18621
|
+
Row: {
|
|
18622
|
+
ai_caption: string | null;
|
|
18623
|
+
ai_categorized_at: string | null;
|
|
18624
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
18625
|
+
caption: string | null;
|
|
18626
|
+
created_at: string;
|
|
18627
|
+
id: string;
|
|
18628
|
+
monteur_id: string | null;
|
|
18629
|
+
photo_type: string;
|
|
18630
|
+
storage_path: string;
|
|
18631
|
+
updated_at: string;
|
|
18632
|
+
work_order_id: string;
|
|
18633
|
+
};
|
|
18634
|
+
Insert: {
|
|
18635
|
+
ai_caption?: string | null;
|
|
18636
|
+
ai_categorized_at?: string | null;
|
|
18637
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18638
|
+
caption?: string | null;
|
|
18639
|
+
created_at?: string;
|
|
18640
|
+
id?: string;
|
|
18641
|
+
monteur_id?: string | null;
|
|
18642
|
+
photo_type?: string;
|
|
18643
|
+
storage_path: string;
|
|
18644
|
+
updated_at?: string;
|
|
18645
|
+
work_order_id: string;
|
|
18646
|
+
};
|
|
18647
|
+
Update: {
|
|
18648
|
+
ai_caption?: string | null;
|
|
18649
|
+
ai_categorized_at?: string | null;
|
|
18650
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18651
|
+
caption?: string | null;
|
|
18652
|
+
created_at?: string;
|
|
18653
|
+
id?: string;
|
|
18654
|
+
monteur_id?: string | null;
|
|
18655
|
+
photo_type?: string;
|
|
18656
|
+
storage_path?: string;
|
|
18657
|
+
updated_at?: string;
|
|
18658
|
+
work_order_id?: string;
|
|
18659
|
+
};
|
|
18660
|
+
Relationships: [{
|
|
18661
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
18662
|
+
columns: ["monteur_id"];
|
|
18663
|
+
isOneToOne: false;
|
|
18664
|
+
referencedRelation: "profiles";
|
|
18665
|
+
referencedColumns: ["id"];
|
|
18666
|
+
}, {
|
|
18667
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
18668
|
+
columns: ["work_order_id"];
|
|
18669
|
+
isOneToOne: false;
|
|
18670
|
+
referencedRelation: "work_orders";
|
|
18671
|
+
referencedColumns: ["id"];
|
|
18672
|
+
}];
|
|
18673
|
+
};
|
|
17624
18674
|
work_orders: {
|
|
17625
18675
|
Row: {
|
|
17626
18676
|
assigned_to: string | null;
|
|
@@ -17652,7 +18702,6 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
17652
18702
|
scheduled_end_time: string | null;
|
|
17653
18703
|
scheduled_start_time: string | null;
|
|
17654
18704
|
status: string;
|
|
17655
|
-
tenant_id: string;
|
|
17656
18705
|
total_hours_worked: number | null;
|
|
17657
18706
|
total_price: number | null;
|
|
17658
18707
|
travel_time_minutes: number | null;
|
|
@@ -17690,7 +18739,6 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
17690
18739
|
scheduled_end_time?: string | null;
|
|
17691
18740
|
scheduled_start_time?: string | null;
|
|
17692
18741
|
status?: string;
|
|
17693
|
-
tenant_id: string;
|
|
17694
18742
|
total_hours_worked?: number | null;
|
|
17695
18743
|
total_price?: number | null;
|
|
17696
18744
|
travel_time_minutes?: number | null;
|
|
@@ -17728,7 +18776,6 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
17728
18776
|
scheduled_end_time?: string | null;
|
|
17729
18777
|
scheduled_start_time?: string | null;
|
|
17730
18778
|
status?: string;
|
|
17731
|
-
tenant_id?: string;
|
|
17732
18779
|
total_hours_worked?: number | null;
|
|
17733
18780
|
total_price?: number | null;
|
|
17734
18781
|
travel_time_minutes?: number | null;
|
|
@@ -17742,12 +18789,6 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
17742
18789
|
isOneToOne: false;
|
|
17743
18790
|
referencedRelation: "work_orders";
|
|
17744
18791
|
referencedColumns: ["id"];
|
|
17745
|
-
}, {
|
|
17746
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
17747
|
-
columns: ["tenant_id"];
|
|
17748
|
-
isOneToOne: false;
|
|
17749
|
-
referencedRelation: "tenants";
|
|
17750
|
-
referencedColumns: ["id"];
|
|
17751
18792
|
}];
|
|
17752
18793
|
};
|
|
17753
18794
|
};
|
|
@@ -18432,6 +19473,19 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
18432
19473
|
};
|
|
18433
19474
|
Returns: undefined;
|
|
18434
19475
|
};
|
|
19476
|
+
approve_mailbox_order_proposal: {
|
|
19477
|
+
Args: {
|
|
19478
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
19479
|
+
p_customer_id: string;
|
|
19480
|
+
p_delivery_date: string;
|
|
19481
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
19482
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
19483
|
+
p_notes: string;
|
|
19484
|
+
p_proposal_id: string;
|
|
19485
|
+
p_reviewed_by: string;
|
|
19486
|
+
};
|
|
19487
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
19488
|
+
};
|
|
18435
19489
|
assign_cart_numbers: {
|
|
18436
19490
|
Args: {
|
|
18437
19491
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -18483,6 +19537,10 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
18483
19537
|
};
|
|
18484
19538
|
Returns: number;
|
|
18485
19539
|
};
|
|
19540
|
+
can_manage_hours: {
|
|
19541
|
+
Args: never;
|
|
19542
|
+
Returns: boolean;
|
|
19543
|
+
};
|
|
18486
19544
|
check_offer_product_available_stock: {
|
|
18487
19545
|
Args: {
|
|
18488
19546
|
p_campaign_product_id: string;
|
|
@@ -18672,6 +19730,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
18672
19730
|
};
|
|
18673
19731
|
Returns: {
|
|
18674
19732
|
action: string;
|
|
19733
|
+
attempt_started_at: string | null;
|
|
18675
19734
|
attempts: number;
|
|
18676
19735
|
connection_id: string | null;
|
|
18677
19736
|
created_at: string;
|
|
@@ -18759,6 +19818,30 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
18759
19818
|
agent_naam: string;
|
|
18760
19819
|
}[];
|
|
18761
19820
|
};
|
|
19821
|
+
consume_van_inventory: {
|
|
19822
|
+
Args: {
|
|
19823
|
+
p_inventory_id: string;
|
|
19824
|
+
p_quantity: number;
|
|
19825
|
+
};
|
|
19826
|
+
Returns: {
|
|
19827
|
+
barcode: string | null;
|
|
19828
|
+
created_at: string;
|
|
19829
|
+
id: string;
|
|
19830
|
+
monteur_id: string | null;
|
|
19831
|
+
price_per_unit: number;
|
|
19832
|
+
product_name: string;
|
|
19833
|
+
quantity_current: number;
|
|
19834
|
+
quantity_min: number;
|
|
19835
|
+
unit: string;
|
|
19836
|
+
updated_at: string;
|
|
19837
|
+
};
|
|
19838
|
+
SetofOptions: {
|
|
19839
|
+
from: "*";
|
|
19840
|
+
to: "van_inventories";
|
|
19841
|
+
isOneToOne: true;
|
|
19842
|
+
isSetofReturn: false;
|
|
19843
|
+
};
|
|
19844
|
+
};
|
|
18762
19845
|
control_get_todays_carts: {
|
|
18763
19846
|
Args: never;
|
|
18764
19847
|
Returns: {
|
|
@@ -18832,6 +19915,13 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
18832
19915
|
_user_id: string;
|
|
18833
19916
|
};
|
|
18834
19917
|
Returns: string;
|
|
19918
|
+
} | {
|
|
19919
|
+
Args: {
|
|
19920
|
+
_feature_id: string;
|
|
19921
|
+
_module_id: string;
|
|
19922
|
+
_user_id: string;
|
|
19923
|
+
};
|
|
19924
|
+
Returns: string;
|
|
18835
19925
|
};
|
|
18836
19926
|
email_auth_decrypt: {
|
|
18837
19927
|
Args: {
|
|
@@ -18878,6 +19968,13 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
18878
19968
|
};
|
|
18879
19969
|
Returns: string;
|
|
18880
19970
|
};
|
|
19971
|
+
employee_day_hours: {
|
|
19972
|
+
Args: {
|
|
19973
|
+
_day: string;
|
|
19974
|
+
_employee_id: string;
|
|
19975
|
+
};
|
|
19976
|
+
Returns: number;
|
|
19977
|
+
};
|
|
18881
19978
|
enqueue_cart_replan_if_unlocked: {
|
|
18882
19979
|
Args: {
|
|
18883
19980
|
p_order_id: string;
|
|
@@ -19183,12 +20280,6 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
19183
20280
|
Args: never;
|
|
19184
20281
|
Returns: string;
|
|
19185
20282
|
};
|
|
19186
|
-
get_work_order_tenant_id: {
|
|
19187
|
-
Args: {
|
|
19188
|
-
wo_id: string;
|
|
19189
|
-
};
|
|
19190
|
-
Returns: string;
|
|
19191
|
-
};
|
|
19192
20283
|
has_module_permission: {
|
|
19193
20284
|
Args: {
|
|
19194
20285
|
_min: string;
|
|
@@ -19222,6 +20313,13 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
19222
20313
|
};
|
|
19223
20314
|
Returns: boolean;
|
|
19224
20315
|
};
|
|
20316
|
+
is_time_log_week_locked: {
|
|
20317
|
+
Args: {
|
|
20318
|
+
p_employee_id: string;
|
|
20319
|
+
p_start_time: string;
|
|
20320
|
+
};
|
|
20321
|
+
Returns: boolean;
|
|
20322
|
+
};
|
|
19225
20323
|
is_user_admin: {
|
|
19226
20324
|
Args: never;
|
|
19227
20325
|
Returns: boolean;
|
|
@@ -19230,19 +20328,43 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
19230
20328
|
Args: never;
|
|
19231
20329
|
Returns: boolean;
|
|
19232
20330
|
};
|
|
20331
|
+
itk_offerte_naar_werkbon: {
|
|
20332
|
+
Args: {
|
|
20333
|
+
_offerte_id: string;
|
|
20334
|
+
};
|
|
20335
|
+
Returns: string;
|
|
20336
|
+
};
|
|
20337
|
+
itk_offerte_restant_mandaat: {
|
|
20338
|
+
Args: {
|
|
20339
|
+
_exclude_offerte_id?: string;
|
|
20340
|
+
_werkbon_id: string;
|
|
20341
|
+
};
|
|
20342
|
+
Returns: number;
|
|
20343
|
+
};
|
|
19233
20344
|
jwt_has_role: {
|
|
19234
20345
|
Args: {
|
|
19235
20346
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
19236
20347
|
};
|
|
19237
20348
|
Returns: boolean;
|
|
19238
20349
|
};
|
|
19239
|
-
|
|
20350
|
+
list_medewerkers: {
|
|
19240
20351
|
Args: never;
|
|
19241
20352
|
Returns: {
|
|
19242
20353
|
avatar_url: string;
|
|
20354
|
+
color: string;
|
|
19243
20355
|
display_name: string;
|
|
19244
20356
|
email: string;
|
|
20357
|
+
hours_fri: number;
|
|
20358
|
+
hours_mon: number;
|
|
20359
|
+
hours_thu: number;
|
|
20360
|
+
hours_tue: number;
|
|
20361
|
+
hours_wed: number;
|
|
19245
20362
|
id: string;
|
|
20363
|
+
is_active: boolean;
|
|
20364
|
+
leave_balance_hours: number;
|
|
20365
|
+
persnr: string;
|
|
20366
|
+
phone: string;
|
|
20367
|
+
roles: string[];
|
|
19246
20368
|
}[];
|
|
19247
20369
|
};
|
|
19248
20370
|
list_my_planning_items: {
|
|
@@ -19568,17 +20690,6 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
19568
20690
|
Returns: string;
|
|
19569
20691
|
};
|
|
19570
20692
|
logistics_emit_event: {
|
|
19571
|
-
Args: {
|
|
19572
|
-
p_event_type: string;
|
|
19573
|
-
p_idempotency_key?: string;
|
|
19574
|
-
p_order_ref: string;
|
|
19575
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
19576
|
-
p_shadow?: boolean;
|
|
19577
|
-
p_source_module: string;
|
|
19578
|
-
p_strategy_id?: string;
|
|
19579
|
-
};
|
|
19580
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
19581
|
-
} | {
|
|
19582
20693
|
Args: {
|
|
19583
20694
|
p_event_type: string;
|
|
19584
20695
|
p_idempotency_key?: string;
|
|
@@ -19733,6 +20844,65 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
19733
20844
|
};
|
|
19734
20845
|
Returns: number;
|
|
19735
20846
|
};
|
|
20847
|
+
logistics_plan_claim: {
|
|
20848
|
+
Args: {
|
|
20849
|
+
p_limit?: number;
|
|
20850
|
+
};
|
|
20851
|
+
Returns: {
|
|
20852
|
+
attempts: number;
|
|
20853
|
+
id: string;
|
|
20854
|
+
order_id: string;
|
|
20855
|
+
}[];
|
|
20856
|
+
};
|
|
20857
|
+
logistics_plan_enqueue: {
|
|
20858
|
+
Args: {
|
|
20859
|
+
p_order_id: string;
|
|
20860
|
+
p_reason?: string;
|
|
20861
|
+
};
|
|
20862
|
+
Returns: undefined;
|
|
20863
|
+
};
|
|
20864
|
+
logistics_plan_ensure_event: {
|
|
20865
|
+
Args: {
|
|
20866
|
+
p_order_id: string;
|
|
20867
|
+
};
|
|
20868
|
+
Returns: boolean;
|
|
20869
|
+
};
|
|
20870
|
+
logistics_plan_finish: {
|
|
20871
|
+
Args: {
|
|
20872
|
+
p_error?: string;
|
|
20873
|
+
p_id: string;
|
|
20874
|
+
};
|
|
20875
|
+
Returns: undefined;
|
|
20876
|
+
};
|
|
20877
|
+
logistics_plan_impact_orders: {
|
|
20878
|
+
Args: {
|
|
20879
|
+
p_order_id: string;
|
|
20880
|
+
};
|
|
20881
|
+
Returns: {
|
|
20882
|
+
buffer_id: string;
|
|
20883
|
+
order_id: string;
|
|
20884
|
+
plan_date: string;
|
|
20885
|
+
}[];
|
|
20886
|
+
};
|
|
20887
|
+
logistics_plan_kick: {
|
|
20888
|
+
Args: never;
|
|
20889
|
+
Returns: undefined;
|
|
20890
|
+
};
|
|
20891
|
+
logistics_plan_prune: {
|
|
20892
|
+
Args: never;
|
|
20893
|
+
Returns: number;
|
|
20894
|
+
};
|
|
20895
|
+
logistics_plan_release_stale: {
|
|
20896
|
+
Args: never;
|
|
20897
|
+
Returns: number;
|
|
20898
|
+
};
|
|
20899
|
+
logistics_plan_setting: {
|
|
20900
|
+
Args: {
|
|
20901
|
+
p_default: number;
|
|
20902
|
+
p_key: string;
|
|
20903
|
+
};
|
|
20904
|
+
Returns: number;
|
|
20905
|
+
};
|
|
19736
20906
|
logistics_queue_capacity_email: {
|
|
19737
20907
|
Args: {
|
|
19738
20908
|
p_alert_id: string;
|
|
@@ -19974,6 +21144,7 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
19974
21144
|
my_module_permissions: {
|
|
19975
21145
|
Args: never;
|
|
19976
21146
|
Returns: {
|
|
21147
|
+
feature_id: string;
|
|
19977
21148
|
module_id: string;
|
|
19978
21149
|
permission: string;
|
|
19979
21150
|
}[];
|
|
@@ -20363,6 +21534,37 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
20363
21534
|
};
|
|
20364
21535
|
Returns: undefined;
|
|
20365
21536
|
};
|
|
21537
|
+
quote_create_from_source: {
|
|
21538
|
+
Args: {
|
|
21539
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
21540
|
+
_source_id: string;
|
|
21541
|
+
_source_type: string;
|
|
21542
|
+
};
|
|
21543
|
+
Returns: string;
|
|
21544
|
+
};
|
|
21545
|
+
quote_get_billable_lines: {
|
|
21546
|
+
Args: {
|
|
21547
|
+
_quotation_id: string;
|
|
21548
|
+
};
|
|
21549
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21550
|
+
};
|
|
21551
|
+
quote_get_summary: {
|
|
21552
|
+
Args: {
|
|
21553
|
+
_quotation_id: string;
|
|
21554
|
+
};
|
|
21555
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21556
|
+
};
|
|
21557
|
+
quote_list_packages: {
|
|
21558
|
+
Args: never;
|
|
21559
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21560
|
+
};
|
|
21561
|
+
quote_list_sources: {
|
|
21562
|
+
Args: {
|
|
21563
|
+
_limit?: number;
|
|
21564
|
+
_source_type?: string;
|
|
21565
|
+
};
|
|
21566
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21567
|
+
};
|
|
20366
21568
|
recompute_all_reserved_stock: {
|
|
20367
21569
|
Args: never;
|
|
20368
21570
|
Returns: undefined;
|
|
@@ -20854,6 +22056,16 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
20854
22056
|
};
|
|
20855
22057
|
Returns: string[];
|
|
20856
22058
|
};
|
|
22059
|
+
switch_time_log: {
|
|
22060
|
+
Args: {
|
|
22061
|
+
p_employee_id: string;
|
|
22062
|
+
p_start_lat?: number;
|
|
22063
|
+
p_start_lng?: number;
|
|
22064
|
+
p_type: string;
|
|
22065
|
+
p_work_order_id?: string;
|
|
22066
|
+
};
|
|
22067
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22068
|
+
};
|
|
20857
22069
|
sync_all_layer_stocks: {
|
|
20858
22070
|
Args: never;
|
|
20859
22071
|
Returns: undefined;
|
|
@@ -20888,6 +22100,12 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
20888
22100
|
};
|
|
20889
22101
|
Returns: undefined;
|
|
20890
22102
|
};
|
|
22103
|
+
sync_sick_time_off: {
|
|
22104
|
+
Args: {
|
|
22105
|
+
_period_id: string;
|
|
22106
|
+
};
|
|
22107
|
+
Returns: number;
|
|
22108
|
+
};
|
|
20891
22109
|
trade_item_stock_duplicates: {
|
|
20892
22110
|
Args: never;
|
|
20893
22111
|
Returns: {
|
|
@@ -20904,6 +22122,24 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
20904
22122
|
};
|
|
20905
22123
|
Returns: boolean;
|
|
20906
22124
|
};
|
|
22125
|
+
twinfield_cron_lock_acquire: {
|
|
22126
|
+
Args: {
|
|
22127
|
+
_job_name: string;
|
|
22128
|
+
_stale_seconds?: number;
|
|
22129
|
+
};
|
|
22130
|
+
Returns: boolean;
|
|
22131
|
+
};
|
|
22132
|
+
twinfield_cron_lock_release: {
|
|
22133
|
+
Args: {
|
|
22134
|
+
_error?: string;
|
|
22135
|
+
_job_name: string;
|
|
22136
|
+
};
|
|
22137
|
+
Returns: undefined;
|
|
22138
|
+
};
|
|
22139
|
+
twinfield_prune_push_queue: {
|
|
22140
|
+
Args: never;
|
|
22141
|
+
Returns: number;
|
|
22142
|
+
};
|
|
20907
22143
|
twinfield_register_cron: {
|
|
20908
22144
|
Args: {
|
|
20909
22145
|
apikey?: string;
|
|
@@ -20943,11 +22179,31 @@ export declare const getOrderAddresses: import("@tanstack/start-client-core").Op
|
|
|
20943
22179
|
Args: never;
|
|
20944
22180
|
Returns: string;
|
|
20945
22181
|
};
|
|
22182
|
+
wo_create_from_source: {
|
|
22183
|
+
Args: {
|
|
22184
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
22185
|
+
_source_id: string;
|
|
22186
|
+
_source_type: string;
|
|
22187
|
+
};
|
|
22188
|
+
Returns: string;
|
|
22189
|
+
};
|
|
22190
|
+
wo_get_billable_lines: {
|
|
22191
|
+
Args: {
|
|
22192
|
+
_work_order_id: string;
|
|
22193
|
+
};
|
|
22194
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22195
|
+
};
|
|
22196
|
+
wo_get_summary: {
|
|
22197
|
+
Args: {
|
|
22198
|
+
_work_order_id: string;
|
|
22199
|
+
};
|
|
22200
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22201
|
+
};
|
|
20946
22202
|
};
|
|
20947
22203
|
Enums: {
|
|
20948
22204
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
20949
22205
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
20950
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
22206
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
20951
22207
|
doc_orientation: "portrait" | "landscape";
|
|
20952
22208
|
exact_env: "staging" | "live";
|
|
20953
22209
|
exact_push_status: "pending" | "sent" | "error";
|