@flowselections/floriday-verkoop-module 1.0.41 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +5 -2
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.js +27 -13
- package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/VerkoopOrdersPage.js +141 -27
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1428 -172
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1428 -172
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1428 -172
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1453 -170
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +3 -0
- package/dist-lib/lib/cart-lock.functions.d.ts +1428 -172
- package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-planning-settings.functions.d.ts +15224 -1408
- package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.d.ts +4152 -384
- package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.d.ts +65255 -1978
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.js +48 -1
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +4152 -384
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +1428 -172
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.d.ts +1428 -172
- package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.js +6 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +9688 -896
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +6920 -640
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.functions.d.ts +5536 -512
- package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.server.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.server.js +1 -0
- package/dist-lib/lib/load-carriers.functions.d.ts +1428 -172
- package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-engine.functions.d.ts +6920 -640
- package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-stock.functions.d.ts +2768 -256
- package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-addresses.functions.d.ts +1428 -172
- package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-buffers.functions.d.ts +4152 -384
- package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-cancel.server.d.ts +24 -0
- package/dist-lib/lib/order-cancel.server.d.ts.map +1 -0
- package/dist-lib/lib/order-cancel.server.js +130 -0
- package/dist-lib/lib/order-carrier.functions.d.ts +2768 -256
- package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-pickup.functions.d.ts +2768 -256
- package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-shipments.functions.d.ts +5536 -512
- package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.functions.d.ts +1428 -172
- package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.server.js +4 -60
- package/dist-lib/lib/salesorders-mapping.d.ts +6 -0
- package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-mapping.js +17 -0
- package/dist-lib/lib/salesorders.functions.d.ts +6920 -640
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/tradeitems.functions.d.ts +1428 -172
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -872,6 +872,126 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
872
872
|
};
|
|
873
873
|
Relationships: [];
|
|
874
874
|
};
|
|
875
|
+
cao_holidays: {
|
|
876
|
+
Row: {
|
|
877
|
+
created_at: string;
|
|
878
|
+
description: string | null;
|
|
879
|
+
holiday_date: string;
|
|
880
|
+
id: string;
|
|
881
|
+
updated_at: string;
|
|
882
|
+
};
|
|
883
|
+
Insert: {
|
|
884
|
+
created_at?: string;
|
|
885
|
+
description?: string | null;
|
|
886
|
+
holiday_date: string;
|
|
887
|
+
id?: string;
|
|
888
|
+
updated_at?: string;
|
|
889
|
+
};
|
|
890
|
+
Update: {
|
|
891
|
+
created_at?: string;
|
|
892
|
+
description?: string | null;
|
|
893
|
+
holiday_date?: string;
|
|
894
|
+
id?: string;
|
|
895
|
+
updated_at?: string;
|
|
896
|
+
};
|
|
897
|
+
Relationships: [];
|
|
898
|
+
};
|
|
899
|
+
cao_settings: {
|
|
900
|
+
Row: {
|
|
901
|
+
auto_break_after_hours: number;
|
|
902
|
+
auto_break_minutes: number;
|
|
903
|
+
auto_break_unpaid: boolean;
|
|
904
|
+
auto_stop_after_hours: number;
|
|
905
|
+
callout_fee: number;
|
|
906
|
+
created_at: string;
|
|
907
|
+
daily_regular_hours: number;
|
|
908
|
+
default_hourly_rate: number;
|
|
909
|
+
id: string;
|
|
910
|
+
materials_markup_percent: number;
|
|
911
|
+
max_daily_hours: number;
|
|
912
|
+
max_weekly_hours: number;
|
|
913
|
+
meal_allowance_amount: number;
|
|
914
|
+
overtime_pct_178: number;
|
|
915
|
+
overtime_pct_189: number;
|
|
916
|
+
overtime_pct_212: number;
|
|
917
|
+
reminder_after_hours: number;
|
|
918
|
+
standby_evening_amount: number;
|
|
919
|
+
standby_weekend_amount: number;
|
|
920
|
+
travel_cost_per_km: number | null;
|
|
921
|
+
travel_cost_threshold_km: number | null;
|
|
922
|
+
travel_counts_as_work: boolean;
|
|
923
|
+
travel_hourly_rate: number;
|
|
924
|
+
travel_rate_per_hour: number;
|
|
925
|
+
travel_threshold_minutes: number;
|
|
926
|
+
updated_at: string;
|
|
927
|
+
weekend_always_212: boolean;
|
|
928
|
+
window_end: string;
|
|
929
|
+
window_start: string;
|
|
930
|
+
};
|
|
931
|
+
Insert: {
|
|
932
|
+
auto_break_after_hours?: number;
|
|
933
|
+
auto_break_minutes?: number;
|
|
934
|
+
auto_break_unpaid?: boolean;
|
|
935
|
+
auto_stop_after_hours?: number;
|
|
936
|
+
callout_fee?: number;
|
|
937
|
+
created_at?: string;
|
|
938
|
+
daily_regular_hours?: number;
|
|
939
|
+
default_hourly_rate?: number;
|
|
940
|
+
id?: string;
|
|
941
|
+
materials_markup_percent?: number;
|
|
942
|
+
max_daily_hours?: number;
|
|
943
|
+
max_weekly_hours?: number;
|
|
944
|
+
meal_allowance_amount?: number;
|
|
945
|
+
overtime_pct_178?: number;
|
|
946
|
+
overtime_pct_189?: number;
|
|
947
|
+
overtime_pct_212?: number;
|
|
948
|
+
reminder_after_hours?: number;
|
|
949
|
+
standby_evening_amount?: number;
|
|
950
|
+
standby_weekend_amount?: number;
|
|
951
|
+
travel_cost_per_km?: number | null;
|
|
952
|
+
travel_cost_threshold_km?: number | null;
|
|
953
|
+
travel_counts_as_work?: boolean;
|
|
954
|
+
travel_hourly_rate?: number;
|
|
955
|
+
travel_rate_per_hour?: number;
|
|
956
|
+
travel_threshold_minutes?: number;
|
|
957
|
+
updated_at?: string;
|
|
958
|
+
weekend_always_212?: boolean;
|
|
959
|
+
window_end?: string;
|
|
960
|
+
window_start?: string;
|
|
961
|
+
};
|
|
962
|
+
Update: {
|
|
963
|
+
auto_break_after_hours?: number;
|
|
964
|
+
auto_break_minutes?: number;
|
|
965
|
+
auto_break_unpaid?: boolean;
|
|
966
|
+
auto_stop_after_hours?: number;
|
|
967
|
+
callout_fee?: number;
|
|
968
|
+
created_at?: string;
|
|
969
|
+
daily_regular_hours?: number;
|
|
970
|
+
default_hourly_rate?: number;
|
|
971
|
+
id?: string;
|
|
972
|
+
materials_markup_percent?: number;
|
|
973
|
+
max_daily_hours?: number;
|
|
974
|
+
max_weekly_hours?: number;
|
|
975
|
+
meal_allowance_amount?: number;
|
|
976
|
+
overtime_pct_178?: number;
|
|
977
|
+
overtime_pct_189?: number;
|
|
978
|
+
overtime_pct_212?: number;
|
|
979
|
+
reminder_after_hours?: number;
|
|
980
|
+
standby_evening_amount?: number;
|
|
981
|
+
standby_weekend_amount?: number;
|
|
982
|
+
travel_cost_per_km?: number | null;
|
|
983
|
+
travel_cost_threshold_km?: number | null;
|
|
984
|
+
travel_counts_as_work?: boolean;
|
|
985
|
+
travel_hourly_rate?: number;
|
|
986
|
+
travel_rate_per_hour?: number;
|
|
987
|
+
travel_threshold_minutes?: number;
|
|
988
|
+
updated_at?: string;
|
|
989
|
+
weekend_always_212?: boolean;
|
|
990
|
+
window_end?: string;
|
|
991
|
+
window_start?: string;
|
|
992
|
+
};
|
|
993
|
+
Relationships: [];
|
|
994
|
+
};
|
|
875
995
|
carrier_shipping_rates: {
|
|
876
996
|
Row: {
|
|
877
997
|
carrier_id: string;
|
|
@@ -4925,6 +5045,42 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
4925
5045
|
};
|
|
4926
5046
|
Relationships: [];
|
|
4927
5047
|
};
|
|
5048
|
+
facturen: {
|
|
5049
|
+
Row: {
|
|
5050
|
+
bedrag_incl_btw: number;
|
|
5051
|
+
created_at: string;
|
|
5052
|
+
datum: string;
|
|
5053
|
+
factuurnummer: string;
|
|
5054
|
+
id: string;
|
|
5055
|
+
klantnaam: string;
|
|
5056
|
+
status: string;
|
|
5057
|
+
updated_at: string;
|
|
5058
|
+
user_id: string;
|
|
5059
|
+
};
|
|
5060
|
+
Insert: {
|
|
5061
|
+
bedrag_incl_btw: number;
|
|
5062
|
+
created_at?: string;
|
|
5063
|
+
datum?: string;
|
|
5064
|
+
factuurnummer: string;
|
|
5065
|
+
id?: string;
|
|
5066
|
+
klantnaam: string;
|
|
5067
|
+
status?: string;
|
|
5068
|
+
updated_at?: string;
|
|
5069
|
+
user_id?: string;
|
|
5070
|
+
};
|
|
5071
|
+
Update: {
|
|
5072
|
+
bedrag_incl_btw?: number;
|
|
5073
|
+
created_at?: string;
|
|
5074
|
+
datum?: string;
|
|
5075
|
+
factuurnummer?: string;
|
|
5076
|
+
id?: string;
|
|
5077
|
+
klantnaam?: string;
|
|
5078
|
+
status?: string;
|
|
5079
|
+
updated_at?: string;
|
|
5080
|
+
user_id?: string;
|
|
5081
|
+
};
|
|
5082
|
+
Relationships: [];
|
|
5083
|
+
};
|
|
4928
5084
|
floricode_connection_settings: {
|
|
4929
5085
|
Row: {
|
|
4930
5086
|
catalog_key: string | null;
|
|
@@ -7649,6 +7805,258 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
7649
7805
|
};
|
|
7650
7806
|
Relationships: [];
|
|
7651
7807
|
};
|
|
7808
|
+
itk_offerte_events: {
|
|
7809
|
+
Row: {
|
|
7810
|
+
created_at: string;
|
|
7811
|
+
event_type: string;
|
|
7812
|
+
id: string;
|
|
7813
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
7814
|
+
offerte_id: string;
|
|
7815
|
+
omschrijving: string | null;
|
|
7816
|
+
user_id: string | null;
|
|
7817
|
+
};
|
|
7818
|
+
Insert: {
|
|
7819
|
+
created_at?: string;
|
|
7820
|
+
event_type: string;
|
|
7821
|
+
id?: string;
|
|
7822
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7823
|
+
offerte_id: string;
|
|
7824
|
+
omschrijving?: string | null;
|
|
7825
|
+
user_id?: string | null;
|
|
7826
|
+
};
|
|
7827
|
+
Update: {
|
|
7828
|
+
created_at?: string;
|
|
7829
|
+
event_type?: string;
|
|
7830
|
+
id?: string;
|
|
7831
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7832
|
+
offerte_id?: string;
|
|
7833
|
+
omschrijving?: string | null;
|
|
7834
|
+
user_id?: string | null;
|
|
7835
|
+
};
|
|
7836
|
+
Relationships: [{
|
|
7837
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
7838
|
+
columns: ["offerte_id"];
|
|
7839
|
+
isOneToOne: false;
|
|
7840
|
+
referencedRelation: "itk_offertes";
|
|
7841
|
+
referencedColumns: ["id"];
|
|
7842
|
+
}];
|
|
7843
|
+
};
|
|
7844
|
+
itk_offerte_regels: {
|
|
7845
|
+
Row: {
|
|
7846
|
+
created_at: string;
|
|
7847
|
+
id: string;
|
|
7848
|
+
line_total_cents: number;
|
|
7849
|
+
offerte_id: string;
|
|
7850
|
+
omschrijving: string;
|
|
7851
|
+
package_id: string | null;
|
|
7852
|
+
quantity: number;
|
|
7853
|
+
sort_order: number;
|
|
7854
|
+
source: string;
|
|
7855
|
+
unit_price_cents: number;
|
|
7856
|
+
updated_at: string;
|
|
7857
|
+
};
|
|
7858
|
+
Insert: {
|
|
7859
|
+
created_at?: string;
|
|
7860
|
+
id?: string;
|
|
7861
|
+
line_total_cents?: number;
|
|
7862
|
+
offerte_id: string;
|
|
7863
|
+
omschrijving?: string;
|
|
7864
|
+
package_id?: string | null;
|
|
7865
|
+
quantity?: number;
|
|
7866
|
+
sort_order?: number;
|
|
7867
|
+
source?: string;
|
|
7868
|
+
unit_price_cents?: number;
|
|
7869
|
+
updated_at?: string;
|
|
7870
|
+
};
|
|
7871
|
+
Update: {
|
|
7872
|
+
created_at?: string;
|
|
7873
|
+
id?: string;
|
|
7874
|
+
line_total_cents?: number;
|
|
7875
|
+
offerte_id?: string;
|
|
7876
|
+
omschrijving?: string;
|
|
7877
|
+
package_id?: string | null;
|
|
7878
|
+
quantity?: number;
|
|
7879
|
+
sort_order?: number;
|
|
7880
|
+
source?: string;
|
|
7881
|
+
unit_price_cents?: number;
|
|
7882
|
+
updated_at?: string;
|
|
7883
|
+
};
|
|
7884
|
+
Relationships: [{
|
|
7885
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
7886
|
+
columns: ["offerte_id"];
|
|
7887
|
+
isOneToOne: false;
|
|
7888
|
+
referencedRelation: "itk_offertes";
|
|
7889
|
+
referencedColumns: ["id"];
|
|
7890
|
+
}, {
|
|
7891
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
7892
|
+
columns: ["package_id"];
|
|
7893
|
+
isOneToOne: false;
|
|
7894
|
+
referencedRelation: "werkbon_packages";
|
|
7895
|
+
referencedColumns: ["id"];
|
|
7896
|
+
}];
|
|
7897
|
+
};
|
|
7898
|
+
itk_offerte_settings: {
|
|
7899
|
+
Row: {
|
|
7900
|
+
auto_convert_binnen_mandaat: boolean;
|
|
7901
|
+
created_at: string;
|
|
7902
|
+
default_geldigheid_dagen: number;
|
|
7903
|
+
default_vat_rate: number;
|
|
7904
|
+
id: string;
|
|
7905
|
+
singleton: boolean;
|
|
7906
|
+
updated_at: string;
|
|
7907
|
+
};
|
|
7908
|
+
Insert: {
|
|
7909
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7910
|
+
created_at?: string;
|
|
7911
|
+
default_geldigheid_dagen?: number;
|
|
7912
|
+
default_vat_rate?: number;
|
|
7913
|
+
id?: string;
|
|
7914
|
+
singleton?: boolean;
|
|
7915
|
+
updated_at?: string;
|
|
7916
|
+
};
|
|
7917
|
+
Update: {
|
|
7918
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7919
|
+
created_at?: string;
|
|
7920
|
+
default_geldigheid_dagen?: number;
|
|
7921
|
+
default_vat_rate?: number;
|
|
7922
|
+
id?: string;
|
|
7923
|
+
singleton?: boolean;
|
|
7924
|
+
updated_at?: string;
|
|
7925
|
+
};
|
|
7926
|
+
Relationships: [];
|
|
7927
|
+
};
|
|
7928
|
+
itk_offertes: {
|
|
7929
|
+
Row: {
|
|
7930
|
+
ai_generated: boolean;
|
|
7931
|
+
approved_at: string | null;
|
|
7932
|
+
binnen_mandaat: boolean;
|
|
7933
|
+
contact_id: string | null;
|
|
7934
|
+
converted_at: string | null;
|
|
7935
|
+
created_at: string;
|
|
7936
|
+
created_by: string | null;
|
|
7937
|
+
customer_id: string | null;
|
|
7938
|
+
follow_up_werkbon_id: string | null;
|
|
7939
|
+
id: string;
|
|
7940
|
+
jaar: number;
|
|
7941
|
+
mandaat_restant_cents: number;
|
|
7942
|
+
notities: string | null;
|
|
7943
|
+
offerte_number: string | null;
|
|
7944
|
+
omschrijving: string;
|
|
7945
|
+
rejected_at: string | null;
|
|
7946
|
+
sent_at: string | null;
|
|
7947
|
+
source_number: string | null;
|
|
7948
|
+
source_ref: string | null;
|
|
7949
|
+
source_type: string;
|
|
7950
|
+
status: string;
|
|
7951
|
+
subtotal_cents: number;
|
|
7952
|
+
total_cents: number;
|
|
7953
|
+
updated_at: string;
|
|
7954
|
+
valid_until: string | null;
|
|
7955
|
+
vat_cents: number;
|
|
7956
|
+
vat_rate: number;
|
|
7957
|
+
viewed_at: string | null;
|
|
7958
|
+
volgnummer: number | null;
|
|
7959
|
+
werkbon_id: string | null;
|
|
7960
|
+
work_location_id: string | null;
|
|
7961
|
+
};
|
|
7962
|
+
Insert: {
|
|
7963
|
+
ai_generated?: boolean;
|
|
7964
|
+
approved_at?: string | null;
|
|
7965
|
+
binnen_mandaat?: boolean;
|
|
7966
|
+
contact_id?: string | null;
|
|
7967
|
+
converted_at?: string | null;
|
|
7968
|
+
created_at?: string;
|
|
7969
|
+
created_by?: string | null;
|
|
7970
|
+
customer_id?: string | null;
|
|
7971
|
+
follow_up_werkbon_id?: string | null;
|
|
7972
|
+
id?: string;
|
|
7973
|
+
jaar?: number;
|
|
7974
|
+
mandaat_restant_cents?: number;
|
|
7975
|
+
notities?: string | null;
|
|
7976
|
+
offerte_number?: string | null;
|
|
7977
|
+
omschrijving?: string;
|
|
7978
|
+
rejected_at?: string | null;
|
|
7979
|
+
sent_at?: string | null;
|
|
7980
|
+
source_number?: string | null;
|
|
7981
|
+
source_ref?: string | null;
|
|
7982
|
+
source_type?: string;
|
|
7983
|
+
status?: string;
|
|
7984
|
+
subtotal_cents?: number;
|
|
7985
|
+
total_cents?: number;
|
|
7986
|
+
updated_at?: string;
|
|
7987
|
+
valid_until?: string | null;
|
|
7988
|
+
vat_cents?: number;
|
|
7989
|
+
vat_rate?: number;
|
|
7990
|
+
viewed_at?: string | null;
|
|
7991
|
+
volgnummer?: number | null;
|
|
7992
|
+
werkbon_id?: string | null;
|
|
7993
|
+
work_location_id?: string | null;
|
|
7994
|
+
};
|
|
7995
|
+
Update: {
|
|
7996
|
+
ai_generated?: boolean;
|
|
7997
|
+
approved_at?: string | null;
|
|
7998
|
+
binnen_mandaat?: boolean;
|
|
7999
|
+
contact_id?: string | null;
|
|
8000
|
+
converted_at?: string | null;
|
|
8001
|
+
created_at?: string;
|
|
8002
|
+
created_by?: string | null;
|
|
8003
|
+
customer_id?: string | null;
|
|
8004
|
+
follow_up_werkbon_id?: string | null;
|
|
8005
|
+
id?: string;
|
|
8006
|
+
jaar?: number;
|
|
8007
|
+
mandaat_restant_cents?: number;
|
|
8008
|
+
notities?: string | null;
|
|
8009
|
+
offerte_number?: string | null;
|
|
8010
|
+
omschrijving?: string;
|
|
8011
|
+
rejected_at?: string | null;
|
|
8012
|
+
sent_at?: string | null;
|
|
8013
|
+
source_number?: string | null;
|
|
8014
|
+
source_ref?: string | null;
|
|
8015
|
+
source_type?: string;
|
|
8016
|
+
status?: string;
|
|
8017
|
+
subtotal_cents?: number;
|
|
8018
|
+
total_cents?: number;
|
|
8019
|
+
updated_at?: string;
|
|
8020
|
+
valid_until?: string | null;
|
|
8021
|
+
vat_cents?: number;
|
|
8022
|
+
vat_rate?: number;
|
|
8023
|
+
viewed_at?: string | null;
|
|
8024
|
+
volgnummer?: number | null;
|
|
8025
|
+
werkbon_id?: string | null;
|
|
8026
|
+
work_location_id?: string | null;
|
|
8027
|
+
};
|
|
8028
|
+
Relationships: [{
|
|
8029
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
8030
|
+
columns: ["contact_id"];
|
|
8031
|
+
isOneToOne: false;
|
|
8032
|
+
referencedRelation: "itk_contact_persons";
|
|
8033
|
+
referencedColumns: ["id"];
|
|
8034
|
+
}, {
|
|
8035
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
8036
|
+
columns: ["customer_id"];
|
|
8037
|
+
isOneToOne: false;
|
|
8038
|
+
referencedRelation: "itk_customers";
|
|
8039
|
+
referencedColumns: ["id"];
|
|
8040
|
+
}, {
|
|
8041
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
8042
|
+
columns: ["follow_up_werkbon_id"];
|
|
8043
|
+
isOneToOne: false;
|
|
8044
|
+
referencedRelation: "werkbonnen";
|
|
8045
|
+
referencedColumns: ["id"];
|
|
8046
|
+
}, {
|
|
8047
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
8048
|
+
columns: ["werkbon_id"];
|
|
8049
|
+
isOneToOne: false;
|
|
8050
|
+
referencedRelation: "werkbonnen";
|
|
8051
|
+
referencedColumns: ["id"];
|
|
8052
|
+
}, {
|
|
8053
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
8054
|
+
columns: ["work_location_id"];
|
|
8055
|
+
isOneToOne: false;
|
|
8056
|
+
referencedRelation: "itk_work_locations";
|
|
8057
|
+
referencedColumns: ["id"];
|
|
8058
|
+
}];
|
|
8059
|
+
};
|
|
7652
8060
|
itk_work_locations: {
|
|
7653
8061
|
Row: {
|
|
7654
8062
|
city: string | null;
|
|
@@ -7766,7 +8174,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
7766
8174
|
start_date: string;
|
|
7767
8175
|
start_time: string | null;
|
|
7768
8176
|
status: string;
|
|
7769
|
-
tenant_id: string;
|
|
7770
8177
|
updated_at: string;
|
|
7771
8178
|
user_id: string;
|
|
7772
8179
|
};
|
|
@@ -7784,7 +8191,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
7784
8191
|
start_date: string;
|
|
7785
8192
|
start_time?: string | null;
|
|
7786
8193
|
status?: string;
|
|
7787
|
-
tenant_id?: string;
|
|
7788
8194
|
updated_at?: string;
|
|
7789
8195
|
user_id: string;
|
|
7790
8196
|
};
|
|
@@ -7802,7 +8208,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
7802
8208
|
start_date?: string;
|
|
7803
8209
|
start_time?: string | null;
|
|
7804
8210
|
status?: string;
|
|
7805
|
-
tenant_id?: string;
|
|
7806
8211
|
updated_at?: string;
|
|
7807
8212
|
user_id?: string;
|
|
7808
8213
|
};
|
|
@@ -7810,13 +8215,13 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
7810
8215
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
7811
8216
|
columns: ["monteur_id"];
|
|
7812
8217
|
isOneToOne: false;
|
|
7813
|
-
referencedRelation: "
|
|
8218
|
+
referencedRelation: "profiles";
|
|
7814
8219
|
referencedColumns: ["id"];
|
|
7815
8220
|
}, {
|
|
7816
8221
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
7817
8222
|
columns: ["user_id"];
|
|
7818
8223
|
isOneToOne: false;
|
|
7819
|
-
referencedRelation: "
|
|
8224
|
+
referencedRelation: "profiles";
|
|
7820
8225
|
referencedColumns: ["id"];
|
|
7821
8226
|
}];
|
|
7822
8227
|
};
|
|
@@ -8684,21 +9089,60 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
8684
9089
|
};
|
|
8685
9090
|
Relationships: [];
|
|
8686
9091
|
};
|
|
8687
|
-
|
|
9092
|
+
logistics_plan_queue: {
|
|
8688
9093
|
Row: {
|
|
8689
|
-
|
|
9094
|
+
attempts: number;
|
|
9095
|
+
claimed_at: string | null;
|
|
9096
|
+
enqueued_at: string;
|
|
8690
9097
|
error: string | null;
|
|
8691
9098
|
id: string;
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
|
|
8695
|
-
rule_version: number | null;
|
|
8696
|
-
settings_hash: string | null;
|
|
8697
|
-
settings_snapshot: import("../integrations/supabase/types").Json;
|
|
8698
|
-
source_module: string | null;
|
|
9099
|
+
next_attempt_at: string;
|
|
9100
|
+
order_id: string;
|
|
9101
|
+
reason: string;
|
|
8699
9102
|
status: string;
|
|
8700
|
-
|
|
8701
|
-
|
|
9103
|
+
updated_at: string;
|
|
9104
|
+
};
|
|
9105
|
+
Insert: {
|
|
9106
|
+
attempts?: number;
|
|
9107
|
+
claimed_at?: string | null;
|
|
9108
|
+
enqueued_at?: string;
|
|
9109
|
+
error?: string | null;
|
|
9110
|
+
id?: string;
|
|
9111
|
+
next_attempt_at?: string;
|
|
9112
|
+
order_id: string;
|
|
9113
|
+
reason?: string;
|
|
9114
|
+
status?: string;
|
|
9115
|
+
updated_at?: string;
|
|
9116
|
+
};
|
|
9117
|
+
Update: {
|
|
9118
|
+
attempts?: number;
|
|
9119
|
+
claimed_at?: string | null;
|
|
9120
|
+
enqueued_at?: string;
|
|
9121
|
+
error?: string | null;
|
|
9122
|
+
id?: string;
|
|
9123
|
+
next_attempt_at?: string;
|
|
9124
|
+
order_id?: string;
|
|
9125
|
+
reason?: string;
|
|
9126
|
+
status?: string;
|
|
9127
|
+
updated_at?: string;
|
|
9128
|
+
};
|
|
9129
|
+
Relationships: [];
|
|
9130
|
+
};
|
|
9131
|
+
logistics_plan_runs: {
|
|
9132
|
+
Row: {
|
|
9133
|
+
created_at: string;
|
|
9134
|
+
error: string | null;
|
|
9135
|
+
id: string;
|
|
9136
|
+
input: import("../integrations/supabase/types").Json;
|
|
9137
|
+
order_ref: string;
|
|
9138
|
+
rule_config_id: string | null;
|
|
9139
|
+
rule_version: number | null;
|
|
9140
|
+
settings_hash: string | null;
|
|
9141
|
+
settings_snapshot: import("../integrations/supabase/types").Json;
|
|
9142
|
+
source_module: string | null;
|
|
9143
|
+
status: string;
|
|
9144
|
+
strategy_id: string | null;
|
|
9145
|
+
tasks_created: number;
|
|
8702
9146
|
tasks_revised: number;
|
|
8703
9147
|
trigger: string;
|
|
8704
9148
|
updated_at: string;
|
|
@@ -8759,6 +9203,24 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
8759
9203
|
referencedColumns: ["id"];
|
|
8760
9204
|
}];
|
|
8761
9205
|
};
|
|
9206
|
+
logistics_plan_settings: {
|
|
9207
|
+
Row: {
|
|
9208
|
+
key: string;
|
|
9209
|
+
updated_at: string;
|
|
9210
|
+
value: string;
|
|
9211
|
+
};
|
|
9212
|
+
Insert: {
|
|
9213
|
+
key: string;
|
|
9214
|
+
updated_at?: string;
|
|
9215
|
+
value: string;
|
|
9216
|
+
};
|
|
9217
|
+
Update: {
|
|
9218
|
+
key?: string;
|
|
9219
|
+
updated_at?: string;
|
|
9220
|
+
value?: string;
|
|
9221
|
+
};
|
|
9222
|
+
Relationships: [];
|
|
9223
|
+
};
|
|
8762
9224
|
logistics_rebuffer_state: {
|
|
8763
9225
|
Row: {
|
|
8764
9226
|
created_at: string;
|
|
@@ -9914,6 +10376,147 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
9914
10376
|
};
|
|
9915
10377
|
Relationships: [];
|
|
9916
10378
|
};
|
|
10379
|
+
material_usage: {
|
|
10380
|
+
Row: {
|
|
10381
|
+
created_at: string;
|
|
10382
|
+
id: string;
|
|
10383
|
+
material_name: string;
|
|
10384
|
+
monteur_id: string | null;
|
|
10385
|
+
price_at_time: number;
|
|
10386
|
+
quantity_used: number;
|
|
10387
|
+
updated_at: string;
|
|
10388
|
+
van_inventory_id: string | null;
|
|
10389
|
+
work_order_id: string;
|
|
10390
|
+
};
|
|
10391
|
+
Insert: {
|
|
10392
|
+
created_at?: string;
|
|
10393
|
+
id?: string;
|
|
10394
|
+
material_name: string;
|
|
10395
|
+
monteur_id?: string | null;
|
|
10396
|
+
price_at_time?: number;
|
|
10397
|
+
quantity_used?: number;
|
|
10398
|
+
updated_at?: string;
|
|
10399
|
+
van_inventory_id?: string | null;
|
|
10400
|
+
work_order_id: string;
|
|
10401
|
+
};
|
|
10402
|
+
Update: {
|
|
10403
|
+
created_at?: string;
|
|
10404
|
+
id?: string;
|
|
10405
|
+
material_name?: string;
|
|
10406
|
+
monteur_id?: string | null;
|
|
10407
|
+
price_at_time?: number;
|
|
10408
|
+
quantity_used?: number;
|
|
10409
|
+
updated_at?: string;
|
|
10410
|
+
van_inventory_id?: string | null;
|
|
10411
|
+
work_order_id?: string;
|
|
10412
|
+
};
|
|
10413
|
+
Relationships: [{
|
|
10414
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
10415
|
+
columns: ["monteur_id"];
|
|
10416
|
+
isOneToOne: false;
|
|
10417
|
+
referencedRelation: "profiles";
|
|
10418
|
+
referencedColumns: ["id"];
|
|
10419
|
+
}, {
|
|
10420
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
10421
|
+
columns: ["van_inventory_id"];
|
|
10422
|
+
isOneToOne: false;
|
|
10423
|
+
referencedRelation: "van_inventories";
|
|
10424
|
+
referencedColumns: ["id"];
|
|
10425
|
+
}, {
|
|
10426
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
10427
|
+
columns: ["work_order_id"];
|
|
10428
|
+
isOneToOne: false;
|
|
10429
|
+
referencedRelation: "work_orders";
|
|
10430
|
+
referencedColumns: ["id"];
|
|
10431
|
+
}];
|
|
10432
|
+
};
|
|
10433
|
+
medewerker_details: {
|
|
10434
|
+
Row: {
|
|
10435
|
+
color: string | null;
|
|
10436
|
+
created_at: string;
|
|
10437
|
+
hours_fri: number | null;
|
|
10438
|
+
hours_mon: number | null;
|
|
10439
|
+
hours_thu: number | null;
|
|
10440
|
+
hours_tue: number | null;
|
|
10441
|
+
hours_wed: number | null;
|
|
10442
|
+
id: string;
|
|
10443
|
+
is_active: boolean;
|
|
10444
|
+
leave_balance_hours: number;
|
|
10445
|
+
persnr: string | null;
|
|
10446
|
+
phone: string | null;
|
|
10447
|
+
profile_id: string;
|
|
10448
|
+
updated_at: string;
|
|
10449
|
+
};
|
|
10450
|
+
Insert: {
|
|
10451
|
+
color?: string | null;
|
|
10452
|
+
created_at?: string;
|
|
10453
|
+
hours_fri?: number | null;
|
|
10454
|
+
hours_mon?: number | null;
|
|
10455
|
+
hours_thu?: number | null;
|
|
10456
|
+
hours_tue?: number | null;
|
|
10457
|
+
hours_wed?: number | null;
|
|
10458
|
+
id?: string;
|
|
10459
|
+
is_active?: boolean;
|
|
10460
|
+
leave_balance_hours?: number;
|
|
10461
|
+
persnr?: string | null;
|
|
10462
|
+
phone?: string | null;
|
|
10463
|
+
profile_id: string;
|
|
10464
|
+
updated_at?: string;
|
|
10465
|
+
};
|
|
10466
|
+
Update: {
|
|
10467
|
+
color?: string | null;
|
|
10468
|
+
created_at?: string;
|
|
10469
|
+
hours_fri?: number | null;
|
|
10470
|
+
hours_mon?: number | null;
|
|
10471
|
+
hours_thu?: number | null;
|
|
10472
|
+
hours_tue?: number | null;
|
|
10473
|
+
hours_wed?: number | null;
|
|
10474
|
+
id?: string;
|
|
10475
|
+
is_active?: boolean;
|
|
10476
|
+
leave_balance_hours?: number;
|
|
10477
|
+
persnr?: string | null;
|
|
10478
|
+
phone?: string | null;
|
|
10479
|
+
profile_id?: string;
|
|
10480
|
+
updated_at?: string;
|
|
10481
|
+
};
|
|
10482
|
+
Relationships: [{
|
|
10483
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
10484
|
+
columns: ["profile_id"];
|
|
10485
|
+
isOneToOne: true;
|
|
10486
|
+
referencedRelation: "profiles";
|
|
10487
|
+
referencedColumns: ["id"];
|
|
10488
|
+
}];
|
|
10489
|
+
};
|
|
10490
|
+
module_features: {
|
|
10491
|
+
Row: {
|
|
10492
|
+
created_at: string;
|
|
10493
|
+
feature_id: string;
|
|
10494
|
+
id: string;
|
|
10495
|
+
is_active: boolean;
|
|
10496
|
+
last_seen_at: string;
|
|
10497
|
+
module_id: string;
|
|
10498
|
+
name: string;
|
|
10499
|
+
};
|
|
10500
|
+
Insert: {
|
|
10501
|
+
created_at?: string;
|
|
10502
|
+
feature_id: string;
|
|
10503
|
+
id?: string;
|
|
10504
|
+
is_active?: boolean;
|
|
10505
|
+
last_seen_at?: string;
|
|
10506
|
+
module_id: string;
|
|
10507
|
+
name: string;
|
|
10508
|
+
};
|
|
10509
|
+
Update: {
|
|
10510
|
+
created_at?: string;
|
|
10511
|
+
feature_id?: string;
|
|
10512
|
+
id?: string;
|
|
10513
|
+
is_active?: boolean;
|
|
10514
|
+
last_seen_at?: string;
|
|
10515
|
+
module_id?: string;
|
|
10516
|
+
name?: string;
|
|
10517
|
+
};
|
|
10518
|
+
Relationships: [];
|
|
10519
|
+
};
|
|
9917
10520
|
module_permissions: {
|
|
9918
10521
|
Row: {
|
|
9919
10522
|
created_at: string;
|
|
@@ -9944,6 +10547,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
9944
10547
|
module_registry: {
|
|
9945
10548
|
Row: {
|
|
9946
10549
|
created_at: string;
|
|
10550
|
+
enforce: boolean;
|
|
9947
10551
|
is_active: boolean;
|
|
9948
10552
|
last_seen_at: string;
|
|
9949
10553
|
module_id: string;
|
|
@@ -9953,6 +10557,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
9953
10557
|
};
|
|
9954
10558
|
Insert: {
|
|
9955
10559
|
created_at?: string;
|
|
10560
|
+
enforce?: boolean;
|
|
9956
10561
|
is_active?: boolean;
|
|
9957
10562
|
last_seen_at?: string;
|
|
9958
10563
|
module_id: string;
|
|
@@ -9962,6 +10567,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
9962
10567
|
};
|
|
9963
10568
|
Update: {
|
|
9964
10569
|
created_at?: string;
|
|
10570
|
+
enforce?: boolean;
|
|
9965
10571
|
is_active?: boolean;
|
|
9966
10572
|
last_seen_at?: string;
|
|
9967
10573
|
module_id?: string;
|
|
@@ -10022,63 +10628,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
10022
10628
|
};
|
|
10023
10629
|
Relationships: [];
|
|
10024
10630
|
};
|
|
10025
|
-
monteurs: {
|
|
10026
|
-
Row: {
|
|
10027
|
-
avatar_url: string | null;
|
|
10028
|
-
color: string | null;
|
|
10029
|
-
created_at: string;
|
|
10030
|
-
email: string | null;
|
|
10031
|
-
id: string;
|
|
10032
|
-
is_active: boolean;
|
|
10033
|
-
leave_balance_hours: number;
|
|
10034
|
-
name: string;
|
|
10035
|
-
persnr: number | null;
|
|
10036
|
-
phone: string | null;
|
|
10037
|
-
role: string;
|
|
10038
|
-
tenant_id: string;
|
|
10039
|
-
updated_at: string;
|
|
10040
|
-
user_id: string | null;
|
|
10041
|
-
};
|
|
10042
|
-
Insert: {
|
|
10043
|
-
avatar_url?: string | null;
|
|
10044
|
-
color?: string | null;
|
|
10045
|
-
created_at?: string;
|
|
10046
|
-
email?: string | null;
|
|
10047
|
-
id?: string;
|
|
10048
|
-
is_active?: boolean;
|
|
10049
|
-
leave_balance_hours?: number;
|
|
10050
|
-
name: string;
|
|
10051
|
-
persnr?: number | null;
|
|
10052
|
-
phone?: string | null;
|
|
10053
|
-
role?: string;
|
|
10054
|
-
tenant_id: string;
|
|
10055
|
-
updated_at?: string;
|
|
10056
|
-
user_id?: string | null;
|
|
10057
|
-
};
|
|
10058
|
-
Update: {
|
|
10059
|
-
avatar_url?: string | null;
|
|
10060
|
-
color?: string | null;
|
|
10061
|
-
created_at?: string;
|
|
10062
|
-
email?: string | null;
|
|
10063
|
-
id?: string;
|
|
10064
|
-
is_active?: boolean;
|
|
10065
|
-
leave_balance_hours?: number;
|
|
10066
|
-
name?: string;
|
|
10067
|
-
persnr?: number | null;
|
|
10068
|
-
phone?: string | null;
|
|
10069
|
-
role?: string;
|
|
10070
|
-
tenant_id?: string;
|
|
10071
|
-
updated_at?: string;
|
|
10072
|
-
user_id?: string | null;
|
|
10073
|
-
};
|
|
10074
|
-
Relationships: [{
|
|
10075
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
10076
|
-
columns: ["tenant_id"];
|
|
10077
|
-
isOneToOne: false;
|
|
10078
|
-
referencedRelation: "tenants";
|
|
10079
|
-
referencedColumns: ["id"];
|
|
10080
|
-
}];
|
|
10081
|
-
};
|
|
10082
10631
|
nmbrs_component_mapping: {
|
|
10083
10632
|
Row: {
|
|
10084
10633
|
created_at: string;
|
|
@@ -10149,13 +10698,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
10149
10698
|
nmbrs_employee_number?: string;
|
|
10150
10699
|
updated_at?: string;
|
|
10151
10700
|
};
|
|
10152
|
-
Relationships: [
|
|
10153
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10154
|
-
columns: ["monteur_id"];
|
|
10155
|
-
isOneToOne: true;
|
|
10156
|
-
referencedRelation: "monteurs";
|
|
10157
|
-
referencedColumns: ["id"];
|
|
10158
|
-
}];
|
|
10701
|
+
Relationships: [];
|
|
10159
10702
|
};
|
|
10160
10703
|
nmbrs_export_lines: {
|
|
10161
10704
|
Row: {
|
|
@@ -10204,12 +10747,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
10204
10747
|
wage_code?: string;
|
|
10205
10748
|
};
|
|
10206
10749
|
Relationships: [{
|
|
10207
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10208
|
-
columns: ["monteur_id"];
|
|
10209
|
-
isOneToOne: false;
|
|
10210
|
-
referencedRelation: "monteurs";
|
|
10211
|
-
referencedColumns: ["id"];
|
|
10212
|
-
}, {
|
|
10213
10750
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10214
10751
|
columns: ["run_id"];
|
|
10215
10752
|
isOneToOne: false;
|
|
@@ -11037,6 +11574,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
11037
11574
|
error_message: string | null;
|
|
11038
11575
|
id: string;
|
|
11039
11576
|
invoice_number: string | null;
|
|
11577
|
+
next_attempt_at: string;
|
|
11040
11578
|
order_id: string;
|
|
11041
11579
|
processed_at: string | null;
|
|
11042
11580
|
status: string;
|
|
@@ -11048,6 +11586,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
11048
11586
|
error_message?: string | null;
|
|
11049
11587
|
id?: string;
|
|
11050
11588
|
invoice_number?: string | null;
|
|
11589
|
+
next_attempt_at?: string;
|
|
11051
11590
|
order_id: string;
|
|
11052
11591
|
processed_at?: string | null;
|
|
11053
11592
|
status?: string;
|
|
@@ -11059,6 +11598,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
11059
11598
|
error_message?: string | null;
|
|
11060
11599
|
id?: string;
|
|
11061
11600
|
invoice_number?: string | null;
|
|
11601
|
+
next_attempt_at?: string;
|
|
11062
11602
|
order_id?: string;
|
|
11063
11603
|
processed_at?: string | null;
|
|
11064
11604
|
status?: string;
|
|
@@ -11240,6 +11780,8 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
11240
11780
|
orders: {
|
|
11241
11781
|
Row: {
|
|
11242
11782
|
buffer_id: string | null;
|
|
11783
|
+
cancel_reason: string | null;
|
|
11784
|
+
cancelled_at: string | null;
|
|
11243
11785
|
created_at: string;
|
|
11244
11786
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
11245
11787
|
customer_id: string | null;
|
|
@@ -11262,6 +11804,8 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
11262
11804
|
};
|
|
11263
11805
|
Insert: {
|
|
11264
11806
|
buffer_id?: string | null;
|
|
11807
|
+
cancel_reason?: string | null;
|
|
11808
|
+
cancelled_at?: string | null;
|
|
11265
11809
|
created_at?: string;
|
|
11266
11810
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11267
11811
|
customer_id?: string | null;
|
|
@@ -11284,6 +11828,8 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
11284
11828
|
};
|
|
11285
11829
|
Update: {
|
|
11286
11830
|
buffer_id?: string | null;
|
|
11831
|
+
cancel_reason?: string | null;
|
|
11832
|
+
cancelled_at?: string | null;
|
|
11287
11833
|
created_at?: string;
|
|
11288
11834
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11289
11835
|
customer_id?: string | null;
|
|
@@ -12597,6 +13143,9 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
12597
13143
|
created_at: string;
|
|
12598
13144
|
id: string;
|
|
12599
13145
|
laatst_gezien: string;
|
|
13146
|
+
laatste_fout: string | null;
|
|
13147
|
+
laatste_request_id: number | null;
|
|
13148
|
+
mislukte_posts: number;
|
|
12600
13149
|
tick_sleutel: string;
|
|
12601
13150
|
updated_at: string;
|
|
12602
13151
|
};
|
|
@@ -12606,6 +13155,9 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
12606
13155
|
created_at?: string;
|
|
12607
13156
|
id?: string;
|
|
12608
13157
|
laatst_gezien?: string;
|
|
13158
|
+
laatste_fout?: string | null;
|
|
13159
|
+
laatste_request_id?: number | null;
|
|
13160
|
+
mislukte_posts?: number;
|
|
12609
13161
|
tick_sleutel?: string;
|
|
12610
13162
|
updated_at?: string;
|
|
12611
13163
|
};
|
|
@@ -12615,6 +13167,9 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
12615
13167
|
created_at?: string;
|
|
12616
13168
|
id?: string;
|
|
12617
13169
|
laatst_gezien?: string;
|
|
13170
|
+
laatste_fout?: string | null;
|
|
13171
|
+
laatste_request_id?: number | null;
|
|
13172
|
+
mislukte_posts?: number;
|
|
12618
13173
|
tick_sleutel?: string;
|
|
12619
13174
|
updated_at?: string;
|
|
12620
13175
|
};
|
|
@@ -13337,54 +13892,147 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
13337
13892
|
};
|
|
13338
13893
|
Relationships: [];
|
|
13339
13894
|
};
|
|
13340
|
-
|
|
13895
|
+
profile_modules: {
|
|
13341
13896
|
Row: {
|
|
13342
|
-
address: string | null;
|
|
13343
|
-
avatar_url: string | null;
|
|
13344
13897
|
created_at: string;
|
|
13345
|
-
display_name: string | null;
|
|
13346
|
-
email: string | null;
|
|
13347
13898
|
id: string;
|
|
13348
|
-
|
|
13349
|
-
|
|
13350
|
-
tenant_id: string | null;
|
|
13351
|
-
updated_at: string;
|
|
13899
|
+
module_id: string;
|
|
13900
|
+
profile_id: string;
|
|
13352
13901
|
};
|
|
13353
13902
|
Insert: {
|
|
13354
|
-
address?: string | null;
|
|
13355
|
-
avatar_url?: string | null;
|
|
13356
13903
|
created_at?: string;
|
|
13357
|
-
|
|
13358
|
-
|
|
13359
|
-
|
|
13360
|
-
is_superadmin?: boolean;
|
|
13361
|
-
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
13362
|
-
tenant_id?: string | null;
|
|
13363
|
-
updated_at?: string;
|
|
13904
|
+
id?: string;
|
|
13905
|
+
module_id: string;
|
|
13906
|
+
profile_id: string;
|
|
13364
13907
|
};
|
|
13365
13908
|
Update: {
|
|
13366
|
-
address?: string | null;
|
|
13367
|
-
avatar_url?: string | null;
|
|
13368
13909
|
created_at?: string;
|
|
13369
|
-
display_name?: string | null;
|
|
13370
|
-
email?: string | null;
|
|
13371
13910
|
id?: string;
|
|
13372
|
-
|
|
13373
|
-
|
|
13374
|
-
tenant_id?: string | null;
|
|
13375
|
-
updated_at?: string;
|
|
13911
|
+
module_id?: string;
|
|
13912
|
+
profile_id?: string;
|
|
13376
13913
|
};
|
|
13377
13914
|
Relationships: [{
|
|
13378
|
-
foreignKeyName: "
|
|
13379
|
-
columns: ["
|
|
13915
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
13916
|
+
columns: ["profile_id"];
|
|
13380
13917
|
isOneToOne: false;
|
|
13381
|
-
referencedRelation: "
|
|
13918
|
+
referencedRelation: "profiles_org";
|
|
13382
13919
|
referencedColumns: ["id"];
|
|
13383
13920
|
}];
|
|
13384
13921
|
};
|
|
13385
|
-
|
|
13922
|
+
profile_roles: {
|
|
13386
13923
|
Row: {
|
|
13387
|
-
|
|
13924
|
+
created_at: string;
|
|
13925
|
+
id: string;
|
|
13926
|
+
profile_id: string;
|
|
13927
|
+
role_id: string;
|
|
13928
|
+
};
|
|
13929
|
+
Insert: {
|
|
13930
|
+
created_at?: string;
|
|
13931
|
+
id?: string;
|
|
13932
|
+
profile_id: string;
|
|
13933
|
+
role_id: string;
|
|
13934
|
+
};
|
|
13935
|
+
Update: {
|
|
13936
|
+
created_at?: string;
|
|
13937
|
+
id?: string;
|
|
13938
|
+
profile_id?: string;
|
|
13939
|
+
role_id?: string;
|
|
13940
|
+
};
|
|
13941
|
+
Relationships: [{
|
|
13942
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
13943
|
+
columns: ["profile_id"];
|
|
13944
|
+
isOneToOne: false;
|
|
13945
|
+
referencedRelation: "profiles_org";
|
|
13946
|
+
referencedColumns: ["id"];
|
|
13947
|
+
}, {
|
|
13948
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
13949
|
+
columns: ["role_id"];
|
|
13950
|
+
isOneToOne: false;
|
|
13951
|
+
referencedRelation: "roles";
|
|
13952
|
+
referencedColumns: ["id"];
|
|
13953
|
+
}];
|
|
13954
|
+
};
|
|
13955
|
+
profiles: {
|
|
13956
|
+
Row: {
|
|
13957
|
+
address: string | null;
|
|
13958
|
+
avatar_url: string | null;
|
|
13959
|
+
created_at: string;
|
|
13960
|
+
display_name: string | null;
|
|
13961
|
+
email: string | null;
|
|
13962
|
+
id: string;
|
|
13963
|
+
is_superadmin: boolean;
|
|
13964
|
+
notification_preferences: import("../integrations/supabase/types").Json;
|
|
13965
|
+
tenant_id: string | null;
|
|
13966
|
+
updated_at: string;
|
|
13967
|
+
};
|
|
13968
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
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
|
+
Relationships: [{
|
|
13993
|
+
foreignKeyName: "profiles_tenant_id_fkey";
|
|
13994
|
+
columns: ["tenant_id"];
|
|
13995
|
+
isOneToOne: false;
|
|
13996
|
+
referencedRelation: "tenants";
|
|
13997
|
+
referencedColumns: ["id"];
|
|
13998
|
+
}];
|
|
13999
|
+
};
|
|
14000
|
+
profiles_org: {
|
|
14001
|
+
Row: {
|
|
14002
|
+
created_at: string;
|
|
14003
|
+
id: string;
|
|
14004
|
+
is_default: boolean;
|
|
14005
|
+
name: string;
|
|
14006
|
+
tenant_id: string | null;
|
|
14007
|
+
updated_at: string;
|
|
14008
|
+
};
|
|
14009
|
+
Insert: {
|
|
14010
|
+
created_at?: string;
|
|
14011
|
+
id?: string;
|
|
14012
|
+
is_default?: boolean;
|
|
14013
|
+
name: string;
|
|
14014
|
+
tenant_id?: string | null;
|
|
14015
|
+
updated_at?: string;
|
|
14016
|
+
};
|
|
14017
|
+
Update: {
|
|
14018
|
+
created_at?: string;
|
|
14019
|
+
id?: string;
|
|
14020
|
+
is_default?: boolean;
|
|
14021
|
+
name?: string;
|
|
14022
|
+
tenant_id?: string | null;
|
|
14023
|
+
updated_at?: string;
|
|
14024
|
+
};
|
|
14025
|
+
Relationships: [{
|
|
14026
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
14027
|
+
columns: ["tenant_id"];
|
|
14028
|
+
isOneToOne: false;
|
|
14029
|
+
referencedRelation: "tenants";
|
|
14030
|
+
referencedColumns: ["id"];
|
|
14031
|
+
}];
|
|
14032
|
+
};
|
|
14033
|
+
projects: {
|
|
14034
|
+
Row: {
|
|
14035
|
+
contact_name: string | null;
|
|
13388
14036
|
created_at: string;
|
|
13389
14037
|
email: string | null;
|
|
13390
14038
|
id: string;
|
|
@@ -14123,6 +14771,96 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
14123
14771
|
referencedColumns: ["id"];
|
|
14124
14772
|
}];
|
|
14125
14773
|
};
|
|
14774
|
+
role_assignments: {
|
|
14775
|
+
Row: {
|
|
14776
|
+
created_at: string;
|
|
14777
|
+
id: string;
|
|
14778
|
+
role_id: string;
|
|
14779
|
+
user_id: string;
|
|
14780
|
+
};
|
|
14781
|
+
Insert: {
|
|
14782
|
+
created_at?: string;
|
|
14783
|
+
id?: string;
|
|
14784
|
+
role_id: string;
|
|
14785
|
+
user_id: string;
|
|
14786
|
+
};
|
|
14787
|
+
Update: {
|
|
14788
|
+
created_at?: string;
|
|
14789
|
+
id?: string;
|
|
14790
|
+
role_id?: string;
|
|
14791
|
+
user_id?: string;
|
|
14792
|
+
};
|
|
14793
|
+
Relationships: [{
|
|
14794
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
14795
|
+
columns: ["role_id"];
|
|
14796
|
+
isOneToOne: false;
|
|
14797
|
+
referencedRelation: "roles";
|
|
14798
|
+
referencedColumns: ["id"];
|
|
14799
|
+
}];
|
|
14800
|
+
};
|
|
14801
|
+
role_permissions: {
|
|
14802
|
+
Row: {
|
|
14803
|
+
can_edit: boolean;
|
|
14804
|
+
can_view: boolean;
|
|
14805
|
+
feature_id: string;
|
|
14806
|
+
id: string;
|
|
14807
|
+
module_id: string;
|
|
14808
|
+
role_id: string;
|
|
14809
|
+
updated_at: string;
|
|
14810
|
+
};
|
|
14811
|
+
Insert: {
|
|
14812
|
+
can_edit?: boolean;
|
|
14813
|
+
can_view?: boolean;
|
|
14814
|
+
feature_id?: string;
|
|
14815
|
+
id?: string;
|
|
14816
|
+
module_id: string;
|
|
14817
|
+
role_id: string;
|
|
14818
|
+
updated_at?: string;
|
|
14819
|
+
};
|
|
14820
|
+
Update: {
|
|
14821
|
+
can_edit?: boolean;
|
|
14822
|
+
can_view?: boolean;
|
|
14823
|
+
feature_id?: string;
|
|
14824
|
+
id?: string;
|
|
14825
|
+
module_id?: string;
|
|
14826
|
+
role_id?: string;
|
|
14827
|
+
updated_at?: string;
|
|
14828
|
+
};
|
|
14829
|
+
Relationships: [{
|
|
14830
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
14831
|
+
columns: ["role_id"];
|
|
14832
|
+
isOneToOne: false;
|
|
14833
|
+
referencedRelation: "roles";
|
|
14834
|
+
referencedColumns: ["id"];
|
|
14835
|
+
}];
|
|
14836
|
+
};
|
|
14837
|
+
roles: {
|
|
14838
|
+
Row: {
|
|
14839
|
+
created_at: string;
|
|
14840
|
+
id: string;
|
|
14841
|
+
is_protected: boolean;
|
|
14842
|
+
key: string;
|
|
14843
|
+
name: string;
|
|
14844
|
+
updated_at: string;
|
|
14845
|
+
};
|
|
14846
|
+
Insert: {
|
|
14847
|
+
created_at?: string;
|
|
14848
|
+
id?: string;
|
|
14849
|
+
is_protected?: boolean;
|
|
14850
|
+
key: string;
|
|
14851
|
+
name: string;
|
|
14852
|
+
updated_at?: string;
|
|
14853
|
+
};
|
|
14854
|
+
Update: {
|
|
14855
|
+
created_at?: string;
|
|
14856
|
+
id?: string;
|
|
14857
|
+
is_protected?: boolean;
|
|
14858
|
+
key?: string;
|
|
14859
|
+
name?: string;
|
|
14860
|
+
updated_at?: string;
|
|
14861
|
+
};
|
|
14862
|
+
Relationships: [];
|
|
14863
|
+
};
|
|
14126
14864
|
rooms: {
|
|
14127
14865
|
Row: {
|
|
14128
14866
|
capacity: number;
|
|
@@ -14466,6 +15204,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
14466
15204
|
type: string;
|
|
14467
15205
|
updated_at: string;
|
|
14468
15206
|
vereist_medewerker: boolean;
|
|
15207
|
+
werkplek: string | null;
|
|
14469
15208
|
};
|
|
14470
15209
|
Insert: {
|
|
14471
15210
|
actief?: boolean;
|
|
@@ -14479,6 +15218,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
14479
15218
|
type?: string;
|
|
14480
15219
|
updated_at?: string;
|
|
14481
15220
|
vereist_medewerker?: boolean;
|
|
15221
|
+
werkplek?: string | null;
|
|
14482
15222
|
};
|
|
14483
15223
|
Update: {
|
|
14484
15224
|
actief?: boolean;
|
|
@@ -14492,9 +15232,46 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
14492
15232
|
type?: string;
|
|
14493
15233
|
updated_at?: string;
|
|
14494
15234
|
vereist_medewerker?: boolean;
|
|
15235
|
+
werkplek?: string | null;
|
|
14495
15236
|
};
|
|
14496
15237
|
Relationships: [];
|
|
14497
15238
|
};
|
|
15239
|
+
sick_periods: {
|
|
15240
|
+
Row: {
|
|
15241
|
+
created_at: string;
|
|
15242
|
+
employee_id: string;
|
|
15243
|
+
end_date: string | null;
|
|
15244
|
+
id: string;
|
|
15245
|
+
notes: string | null;
|
|
15246
|
+
start_date: string;
|
|
15247
|
+
updated_at: string;
|
|
15248
|
+
};
|
|
15249
|
+
Insert: {
|
|
15250
|
+
created_at?: string;
|
|
15251
|
+
employee_id: string;
|
|
15252
|
+
end_date?: string | null;
|
|
15253
|
+
id?: string;
|
|
15254
|
+
notes?: string | null;
|
|
15255
|
+
start_date: string;
|
|
15256
|
+
updated_at?: string;
|
|
15257
|
+
};
|
|
15258
|
+
Update: {
|
|
15259
|
+
created_at?: string;
|
|
15260
|
+
employee_id?: string;
|
|
15261
|
+
end_date?: string | null;
|
|
15262
|
+
id?: string;
|
|
15263
|
+
notes?: string | null;
|
|
15264
|
+
start_date?: string;
|
|
15265
|
+
updated_at?: string;
|
|
15266
|
+
};
|
|
15267
|
+
Relationships: [{
|
|
15268
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
15269
|
+
columns: ["employee_id"];
|
|
15270
|
+
isOneToOne: false;
|
|
15271
|
+
referencedRelation: "profiles";
|
|
15272
|
+
referencedColumns: ["id"];
|
|
15273
|
+
}];
|
|
15274
|
+
};
|
|
14498
15275
|
sidebar_config: {
|
|
14499
15276
|
Row: {
|
|
14500
15277
|
id: string;
|
|
@@ -14792,6 +15569,54 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
14792
15569
|
};
|
|
14793
15570
|
Relationships: [];
|
|
14794
15571
|
};
|
|
15572
|
+
time_compensation_entries: {
|
|
15573
|
+
Row: {
|
|
15574
|
+
created_at: string;
|
|
15575
|
+
employee_id: string;
|
|
15576
|
+
entry_date: string;
|
|
15577
|
+
id: string;
|
|
15578
|
+
km: number;
|
|
15579
|
+
meal_allowance: number;
|
|
15580
|
+
notes: string | null;
|
|
15581
|
+
standby_evening: number;
|
|
15582
|
+
standby_weekend: number;
|
|
15583
|
+
tvt_change: number;
|
|
15584
|
+
updated_at: string;
|
|
15585
|
+
};
|
|
15586
|
+
Insert: {
|
|
15587
|
+
created_at?: string;
|
|
15588
|
+
employee_id: string;
|
|
15589
|
+
entry_date: string;
|
|
15590
|
+
id?: string;
|
|
15591
|
+
km?: number;
|
|
15592
|
+
meal_allowance?: number;
|
|
15593
|
+
notes?: string | null;
|
|
15594
|
+
standby_evening?: number;
|
|
15595
|
+
standby_weekend?: number;
|
|
15596
|
+
tvt_change?: number;
|
|
15597
|
+
updated_at?: string;
|
|
15598
|
+
};
|
|
15599
|
+
Update: {
|
|
15600
|
+
created_at?: string;
|
|
15601
|
+
employee_id?: string;
|
|
15602
|
+
entry_date?: string;
|
|
15603
|
+
id?: string;
|
|
15604
|
+
km?: number;
|
|
15605
|
+
meal_allowance?: number;
|
|
15606
|
+
notes?: string | null;
|
|
15607
|
+
standby_evening?: number;
|
|
15608
|
+
standby_weekend?: number;
|
|
15609
|
+
tvt_change?: number;
|
|
15610
|
+
updated_at?: string;
|
|
15611
|
+
};
|
|
15612
|
+
Relationships: [{
|
|
15613
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
15614
|
+
columns: ["employee_id"];
|
|
15615
|
+
isOneToOne: false;
|
|
15616
|
+
referencedRelation: "profiles";
|
|
15617
|
+
referencedColumns: ["id"];
|
|
15618
|
+
}];
|
|
15619
|
+
};
|
|
14795
15620
|
time_entries: {
|
|
14796
15621
|
Row: {
|
|
14797
15622
|
created_at: string;
|
|
@@ -14826,65 +15651,170 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
14826
15651
|
undertime?: number;
|
|
14827
15652
|
updated_at?: string;
|
|
14828
15653
|
};
|
|
15654
|
+
Relationships: [];
|
|
15655
|
+
};
|
|
15656
|
+
time_log_week_approvals: {
|
|
15657
|
+
Row: {
|
|
15658
|
+
approved_at: string | null;
|
|
15659
|
+
approved_by: string | null;
|
|
15660
|
+
created_at: string;
|
|
15661
|
+
employee_id: string;
|
|
15662
|
+
id: string;
|
|
15663
|
+
locked: boolean;
|
|
15664
|
+
notes: string | null;
|
|
15665
|
+
status: string;
|
|
15666
|
+
submitted_at: string | null;
|
|
15667
|
+
updated_at: string;
|
|
15668
|
+
week_start: string;
|
|
15669
|
+
};
|
|
15670
|
+
Insert: {
|
|
15671
|
+
approved_at?: string | null;
|
|
15672
|
+
approved_by?: string | null;
|
|
15673
|
+
created_at?: string;
|
|
15674
|
+
employee_id: string;
|
|
15675
|
+
id?: string;
|
|
15676
|
+
locked?: boolean;
|
|
15677
|
+
notes?: string | null;
|
|
15678
|
+
status?: string;
|
|
15679
|
+
submitted_at?: string | null;
|
|
15680
|
+
updated_at?: string;
|
|
15681
|
+
week_start: string;
|
|
15682
|
+
};
|
|
15683
|
+
Update: {
|
|
15684
|
+
approved_at?: string | null;
|
|
15685
|
+
approved_by?: string | null;
|
|
15686
|
+
created_at?: string;
|
|
15687
|
+
employee_id?: string;
|
|
15688
|
+
id?: string;
|
|
15689
|
+
locked?: boolean;
|
|
15690
|
+
notes?: string | null;
|
|
15691
|
+
status?: string;
|
|
15692
|
+
submitted_at?: string | null;
|
|
15693
|
+
updated_at?: string;
|
|
15694
|
+
week_start?: string;
|
|
15695
|
+
};
|
|
14829
15696
|
Relationships: [{
|
|
14830
|
-
foreignKeyName: "
|
|
15697
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
14831
15698
|
columns: ["employee_id"];
|
|
14832
15699
|
isOneToOne: false;
|
|
14833
|
-
referencedRelation: "
|
|
15700
|
+
referencedRelation: "profiles";
|
|
14834
15701
|
referencedColumns: ["id"];
|
|
14835
15702
|
}];
|
|
14836
15703
|
};
|
|
14837
15704
|
time_logs: {
|
|
14838
15705
|
Row: {
|
|
15706
|
+
auto_stop_reason: string | null;
|
|
15707
|
+
auto_stopped: boolean;
|
|
14839
15708
|
created_at: string;
|
|
15709
|
+
current_latitude: number | null;
|
|
15710
|
+
current_longitude: number | null;
|
|
15711
|
+
current_position_updated_at: string | null;
|
|
14840
15712
|
employee_id: string;
|
|
15713
|
+
end_latitude: number | null;
|
|
15714
|
+
end_longitude: number | null;
|
|
14841
15715
|
end_time: string | null;
|
|
15716
|
+
eta_distance_km: number | null;
|
|
15717
|
+
eta_minutes: number | null;
|
|
15718
|
+
eta_updated_at: string | null;
|
|
15719
|
+
hour_category: string | null;
|
|
14842
15720
|
id: string;
|
|
15721
|
+
last_reminder_at: string | null;
|
|
14843
15722
|
notes: string | null;
|
|
14844
15723
|
overtime_hours: number;
|
|
14845
15724
|
overtime_type: string | null;
|
|
14846
15725
|
regular_hours: number;
|
|
15726
|
+
reminder_count: number;
|
|
15727
|
+
requires_review: boolean;
|
|
15728
|
+
start_latitude: number | null;
|
|
15729
|
+
start_longitude: number | null;
|
|
14847
15730
|
start_time: string;
|
|
14848
15731
|
travel_cost: number | null;
|
|
14849
15732
|
travel_distance_km: number | null;
|
|
15733
|
+
travel_duration_min: number | null;
|
|
15734
|
+
travel_time_minutes: number | null;
|
|
14850
15735
|
type: string;
|
|
14851
15736
|
updated_at: string;
|
|
15737
|
+
work_order_id: string | null;
|
|
14852
15738
|
};
|
|
14853
15739
|
Insert: {
|
|
15740
|
+
auto_stop_reason?: string | null;
|
|
15741
|
+
auto_stopped?: boolean;
|
|
14854
15742
|
created_at?: string;
|
|
15743
|
+
current_latitude?: number | null;
|
|
15744
|
+
current_longitude?: number | null;
|
|
15745
|
+
current_position_updated_at?: string | null;
|
|
14855
15746
|
employee_id: string;
|
|
15747
|
+
end_latitude?: number | null;
|
|
15748
|
+
end_longitude?: number | null;
|
|
14856
15749
|
end_time?: string | null;
|
|
15750
|
+
eta_distance_km?: number | null;
|
|
15751
|
+
eta_minutes?: number | null;
|
|
15752
|
+
eta_updated_at?: string | null;
|
|
15753
|
+
hour_category?: string | null;
|
|
14857
15754
|
id?: string;
|
|
15755
|
+
last_reminder_at?: string | null;
|
|
14858
15756
|
notes?: string | null;
|
|
14859
15757
|
overtime_hours?: number;
|
|
14860
15758
|
overtime_type?: string | null;
|
|
14861
15759
|
regular_hours?: number;
|
|
15760
|
+
reminder_count?: number;
|
|
15761
|
+
requires_review?: boolean;
|
|
15762
|
+
start_latitude?: number | null;
|
|
15763
|
+
start_longitude?: number | null;
|
|
14862
15764
|
start_time?: string;
|
|
14863
15765
|
travel_cost?: number | null;
|
|
14864
15766
|
travel_distance_km?: number | null;
|
|
15767
|
+
travel_duration_min?: number | null;
|
|
15768
|
+
travel_time_minutes?: number | null;
|
|
14865
15769
|
type: string;
|
|
14866
15770
|
updated_at?: string;
|
|
15771
|
+
work_order_id?: string | null;
|
|
14867
15772
|
};
|
|
14868
15773
|
Update: {
|
|
15774
|
+
auto_stop_reason?: string | null;
|
|
15775
|
+
auto_stopped?: boolean;
|
|
14869
15776
|
created_at?: string;
|
|
15777
|
+
current_latitude?: number | null;
|
|
15778
|
+
current_longitude?: number | null;
|
|
15779
|
+
current_position_updated_at?: string | null;
|
|
14870
15780
|
employee_id?: string;
|
|
15781
|
+
end_latitude?: number | null;
|
|
15782
|
+
end_longitude?: number | null;
|
|
14871
15783
|
end_time?: string | null;
|
|
15784
|
+
eta_distance_km?: number | null;
|
|
15785
|
+
eta_minutes?: number | null;
|
|
15786
|
+
eta_updated_at?: string | null;
|
|
15787
|
+
hour_category?: string | null;
|
|
14872
15788
|
id?: string;
|
|
15789
|
+
last_reminder_at?: string | null;
|
|
14873
15790
|
notes?: string | null;
|
|
14874
15791
|
overtime_hours?: number;
|
|
14875
15792
|
overtime_type?: string | null;
|
|
14876
15793
|
regular_hours?: number;
|
|
15794
|
+
reminder_count?: number;
|
|
15795
|
+
requires_review?: boolean;
|
|
15796
|
+
start_latitude?: number | null;
|
|
15797
|
+
start_longitude?: number | null;
|
|
14877
15798
|
start_time?: string;
|
|
14878
15799
|
travel_cost?: number | null;
|
|
14879
15800
|
travel_distance_km?: number | null;
|
|
15801
|
+
travel_duration_min?: number | null;
|
|
15802
|
+
travel_time_minutes?: number | null;
|
|
14880
15803
|
type?: string;
|
|
14881
15804
|
updated_at?: string;
|
|
15805
|
+
work_order_id?: string | null;
|
|
14882
15806
|
};
|
|
14883
15807
|
Relationships: [{
|
|
14884
15808
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
14885
15809
|
columns: ["employee_id"];
|
|
14886
15810
|
isOneToOne: false;
|
|
14887
|
-
referencedRelation: "
|
|
15811
|
+
referencedRelation: "profiles";
|
|
15812
|
+
referencedColumns: ["id"];
|
|
15813
|
+
}, {
|
|
15814
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
15815
|
+
columns: ["work_order_id"];
|
|
15816
|
+
isOneToOne: false;
|
|
15817
|
+
referencedRelation: "work_orders";
|
|
14888
15818
|
referencedColumns: ["id"];
|
|
14889
15819
|
}];
|
|
14890
15820
|
};
|
|
@@ -14923,7 +15853,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
14923
15853
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
14924
15854
|
columns: ["employee_id"];
|
|
14925
15855
|
isOneToOne: false;
|
|
14926
|
-
referencedRelation: "
|
|
15856
|
+
referencedRelation: "profiles";
|
|
14927
15857
|
referencedColumns: ["id"];
|
|
14928
15858
|
}];
|
|
14929
15859
|
};
|
|
@@ -15233,6 +16163,39 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
15233
16163
|
};
|
|
15234
16164
|
Relationships: [];
|
|
15235
16165
|
};
|
|
16166
|
+
twinfield_cron_locks: {
|
|
16167
|
+
Row: {
|
|
16168
|
+
created_at: string;
|
|
16169
|
+
heartbeat_at: string;
|
|
16170
|
+
job_name: string;
|
|
16171
|
+
last_error: string | null;
|
|
16172
|
+
last_finished_at: string | null;
|
|
16173
|
+
locked_at: string;
|
|
16174
|
+
run_id: string;
|
|
16175
|
+
updated_at: string;
|
|
16176
|
+
};
|
|
16177
|
+
Insert: {
|
|
16178
|
+
created_at?: string;
|
|
16179
|
+
heartbeat_at?: string;
|
|
16180
|
+
job_name: string;
|
|
16181
|
+
last_error?: string | null;
|
|
16182
|
+
last_finished_at?: string | null;
|
|
16183
|
+
locked_at?: string;
|
|
16184
|
+
run_id?: string;
|
|
16185
|
+
updated_at?: string;
|
|
16186
|
+
};
|
|
16187
|
+
Update: {
|
|
16188
|
+
created_at?: string;
|
|
16189
|
+
heartbeat_at?: string;
|
|
16190
|
+
job_name?: string;
|
|
16191
|
+
last_error?: string | null;
|
|
16192
|
+
last_finished_at?: string | null;
|
|
16193
|
+
locked_at?: string;
|
|
16194
|
+
run_id?: string;
|
|
16195
|
+
updated_at?: string;
|
|
16196
|
+
};
|
|
16197
|
+
Relationships: [];
|
|
16198
|
+
};
|
|
15236
16199
|
twinfield_customers: {
|
|
15237
16200
|
Row: {
|
|
15238
16201
|
address: string | null;
|
|
@@ -15833,6 +16796,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
15833
16796
|
twinfield_push_queue: {
|
|
15834
16797
|
Row: {
|
|
15835
16798
|
action: string;
|
|
16799
|
+
attempt_started_at: string | null;
|
|
15836
16800
|
attempts: number;
|
|
15837
16801
|
connection_id: string | null;
|
|
15838
16802
|
created_at: string;
|
|
@@ -15849,6 +16813,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
15849
16813
|
};
|
|
15850
16814
|
Insert: {
|
|
15851
16815
|
action?: string;
|
|
16816
|
+
attempt_started_at?: string | null;
|
|
15852
16817
|
attempts?: number;
|
|
15853
16818
|
connection_id?: string | null;
|
|
15854
16819
|
created_at?: string;
|
|
@@ -15865,6 +16830,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
15865
16830
|
};
|
|
15866
16831
|
Update: {
|
|
15867
16832
|
action?: string;
|
|
16833
|
+
attempt_started_at?: string | null;
|
|
15868
16834
|
attempts?: number;
|
|
15869
16835
|
connection_id?: string | null;
|
|
15870
16836
|
created_at?: string;
|
|
@@ -16062,13 +17028,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
16062
17028
|
workday_end?: string | null;
|
|
16063
17029
|
workday_start?: string | null;
|
|
16064
17030
|
};
|
|
16065
|
-
Relationships: [
|
|
16066
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
16067
|
-
columns: ["monteur_id"];
|
|
16068
|
-
isOneToOne: true;
|
|
16069
|
-
referencedRelation: "monteurs";
|
|
16070
|
-
referencedColumns: ["id"];
|
|
16071
|
-
}];
|
|
17031
|
+
Relationships: [];
|
|
16072
17032
|
};
|
|
16073
17033
|
uren_entries: {
|
|
16074
17034
|
Row: {
|
|
@@ -16112,14 +17072,8 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
16112
17072
|
travel_km?: number;
|
|
16113
17073
|
updated_at?: string;
|
|
16114
17074
|
werkbon_id?: string | null;
|
|
16115
|
-
};
|
|
16116
|
-
Relationships: [{
|
|
16117
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16118
|
-
columns: ["monteur_id"];
|
|
16119
|
-
isOneToOne: false;
|
|
16120
|
-
referencedRelation: "monteurs";
|
|
16121
|
-
referencedColumns: ["id"];
|
|
16122
|
-
}, {
|
|
17075
|
+
};
|
|
17076
|
+
Relationships: [{
|
|
16123
17077
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16124
17078
|
columns: ["werkbon_id"];
|
|
16125
17079
|
isOneToOne: false;
|
|
@@ -16587,17 +17541,12 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
16587
17541
|
submitted_at?: string | null;
|
|
16588
17542
|
updated_at?: string;
|
|
16589
17543
|
};
|
|
16590
|
-
Relationships: [
|
|
16591
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
16592
|
-
columns: ["monteur_id"];
|
|
16593
|
-
isOneToOne: false;
|
|
16594
|
-
referencedRelation: "monteurs";
|
|
16595
|
-
referencedColumns: ["id"];
|
|
16596
|
-
}];
|
|
17544
|
+
Relationships: [];
|
|
16597
17545
|
};
|
|
16598
17546
|
user_module_permissions: {
|
|
16599
17547
|
Row: {
|
|
16600
17548
|
created_at: string;
|
|
17549
|
+
feature_id: string;
|
|
16601
17550
|
id: string;
|
|
16602
17551
|
module_id: string;
|
|
16603
17552
|
permission: string;
|
|
@@ -16606,6 +17555,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
16606
17555
|
};
|
|
16607
17556
|
Insert: {
|
|
16608
17557
|
created_at?: string;
|
|
17558
|
+
feature_id?: string;
|
|
16609
17559
|
id?: string;
|
|
16610
17560
|
module_id: string;
|
|
16611
17561
|
permission: string;
|
|
@@ -16614,6 +17564,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
16614
17564
|
};
|
|
16615
17565
|
Update: {
|
|
16616
17566
|
created_at?: string;
|
|
17567
|
+
feature_id?: string;
|
|
16617
17568
|
id?: string;
|
|
16618
17569
|
module_id?: string;
|
|
16619
17570
|
permission?: string;
|
|
@@ -16649,6 +17600,51 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
16649
17600
|
referencedColumns: ["id"];
|
|
16650
17601
|
}];
|
|
16651
17602
|
};
|
|
17603
|
+
van_inventories: {
|
|
17604
|
+
Row: {
|
|
17605
|
+
barcode: string | null;
|
|
17606
|
+
created_at: string;
|
|
17607
|
+
id: string;
|
|
17608
|
+
monteur_id: string | null;
|
|
17609
|
+
price_per_unit: number;
|
|
17610
|
+
product_name: string;
|
|
17611
|
+
quantity_current: number;
|
|
17612
|
+
quantity_min: number;
|
|
17613
|
+
unit: string;
|
|
17614
|
+
updated_at: string;
|
|
17615
|
+
};
|
|
17616
|
+
Insert: {
|
|
17617
|
+
barcode?: string | null;
|
|
17618
|
+
created_at?: string;
|
|
17619
|
+
id?: string;
|
|
17620
|
+
monteur_id?: string | null;
|
|
17621
|
+
price_per_unit?: number;
|
|
17622
|
+
product_name: string;
|
|
17623
|
+
quantity_current?: number;
|
|
17624
|
+
quantity_min?: number;
|
|
17625
|
+
unit?: string;
|
|
17626
|
+
updated_at?: string;
|
|
17627
|
+
};
|
|
17628
|
+
Update: {
|
|
17629
|
+
barcode?: string | null;
|
|
17630
|
+
created_at?: string;
|
|
17631
|
+
id?: string;
|
|
17632
|
+
monteur_id?: string | null;
|
|
17633
|
+
price_per_unit?: number;
|
|
17634
|
+
product_name?: string;
|
|
17635
|
+
quantity_current?: number;
|
|
17636
|
+
quantity_min?: number;
|
|
17637
|
+
unit?: string;
|
|
17638
|
+
updated_at?: string;
|
|
17639
|
+
};
|
|
17640
|
+
Relationships: [{
|
|
17641
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
17642
|
+
columns: ["monteur_id"];
|
|
17643
|
+
isOneToOne: false;
|
|
17644
|
+
referencedRelation: "profiles";
|
|
17645
|
+
referencedColumns: ["id"];
|
|
17646
|
+
}];
|
|
17647
|
+
};
|
|
16652
17648
|
voorraad_custom_fields: {
|
|
16653
17649
|
Row: {
|
|
16654
17650
|
created_at: string;
|
|
@@ -17599,7 +18595,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
17599
18595
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
17600
18596
|
columns: ["monteur_id"];
|
|
17601
18597
|
isOneToOne: false;
|
|
17602
|
-
referencedRelation: "
|
|
18598
|
+
referencedRelation: "profiles";
|
|
17603
18599
|
referencedColumns: ["id"];
|
|
17604
18600
|
}, {
|
|
17605
18601
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -17609,6 +18605,60 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
17609
18605
|
referencedColumns: ["id"];
|
|
17610
18606
|
}];
|
|
17611
18607
|
};
|
|
18608
|
+
work_order_photos: {
|
|
18609
|
+
Row: {
|
|
18610
|
+
ai_caption: string | null;
|
|
18611
|
+
ai_categorized_at: string | null;
|
|
18612
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
18613
|
+
caption: string | null;
|
|
18614
|
+
created_at: string;
|
|
18615
|
+
id: string;
|
|
18616
|
+
monteur_id: string | null;
|
|
18617
|
+
photo_type: string;
|
|
18618
|
+
storage_path: string;
|
|
18619
|
+
updated_at: string;
|
|
18620
|
+
work_order_id: string;
|
|
18621
|
+
};
|
|
18622
|
+
Insert: {
|
|
18623
|
+
ai_caption?: string | null;
|
|
18624
|
+
ai_categorized_at?: string | null;
|
|
18625
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18626
|
+
caption?: string | null;
|
|
18627
|
+
created_at?: string;
|
|
18628
|
+
id?: string;
|
|
18629
|
+
monteur_id?: string | null;
|
|
18630
|
+
photo_type?: string;
|
|
18631
|
+
storage_path: string;
|
|
18632
|
+
updated_at?: string;
|
|
18633
|
+
work_order_id: string;
|
|
18634
|
+
};
|
|
18635
|
+
Update: {
|
|
18636
|
+
ai_caption?: string | null;
|
|
18637
|
+
ai_categorized_at?: string | null;
|
|
18638
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18639
|
+
caption?: string | null;
|
|
18640
|
+
created_at?: string;
|
|
18641
|
+
id?: string;
|
|
18642
|
+
monteur_id?: string | null;
|
|
18643
|
+
photo_type?: string;
|
|
18644
|
+
storage_path?: string;
|
|
18645
|
+
updated_at?: string;
|
|
18646
|
+
work_order_id?: string;
|
|
18647
|
+
};
|
|
18648
|
+
Relationships: [{
|
|
18649
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
18650
|
+
columns: ["monteur_id"];
|
|
18651
|
+
isOneToOne: false;
|
|
18652
|
+
referencedRelation: "profiles";
|
|
18653
|
+
referencedColumns: ["id"];
|
|
18654
|
+
}, {
|
|
18655
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
18656
|
+
columns: ["work_order_id"];
|
|
18657
|
+
isOneToOne: false;
|
|
18658
|
+
referencedRelation: "work_orders";
|
|
18659
|
+
referencedColumns: ["id"];
|
|
18660
|
+
}];
|
|
18661
|
+
};
|
|
17612
18662
|
work_orders: {
|
|
17613
18663
|
Row: {
|
|
17614
18664
|
assigned_to: string | null;
|
|
@@ -17640,7 +18690,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
17640
18690
|
scheduled_end_time: string | null;
|
|
17641
18691
|
scheduled_start_time: string | null;
|
|
17642
18692
|
status: string;
|
|
17643
|
-
tenant_id: string;
|
|
17644
18693
|
total_hours_worked: number | null;
|
|
17645
18694
|
total_price: number | null;
|
|
17646
18695
|
travel_time_minutes: number | null;
|
|
@@ -17678,7 +18727,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
17678
18727
|
scheduled_end_time?: string | null;
|
|
17679
18728
|
scheduled_start_time?: string | null;
|
|
17680
18729
|
status?: string;
|
|
17681
|
-
tenant_id: string;
|
|
17682
18730
|
total_hours_worked?: number | null;
|
|
17683
18731
|
total_price?: number | null;
|
|
17684
18732
|
travel_time_minutes?: number | null;
|
|
@@ -17716,7 +18764,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
17716
18764
|
scheduled_end_time?: string | null;
|
|
17717
18765
|
scheduled_start_time?: string | null;
|
|
17718
18766
|
status?: string;
|
|
17719
|
-
tenant_id?: string;
|
|
17720
18767
|
total_hours_worked?: number | null;
|
|
17721
18768
|
total_price?: number | null;
|
|
17722
18769
|
travel_time_minutes?: number | null;
|
|
@@ -17730,12 +18777,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
17730
18777
|
isOneToOne: false;
|
|
17731
18778
|
referencedRelation: "work_orders";
|
|
17732
18779
|
referencedColumns: ["id"];
|
|
17733
|
-
}, {
|
|
17734
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
17735
|
-
columns: ["tenant_id"];
|
|
17736
|
-
isOneToOne: false;
|
|
17737
|
-
referencedRelation: "tenants";
|
|
17738
|
-
referencedColumns: ["id"];
|
|
17739
18780
|
}];
|
|
17740
18781
|
};
|
|
17741
18782
|
};
|
|
@@ -18420,6 +19461,19 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
18420
19461
|
};
|
|
18421
19462
|
Returns: undefined;
|
|
18422
19463
|
};
|
|
19464
|
+
approve_mailbox_order_proposal: {
|
|
19465
|
+
Args: {
|
|
19466
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
19467
|
+
p_customer_id: string;
|
|
19468
|
+
p_delivery_date: string;
|
|
19469
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
19470
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
19471
|
+
p_notes: string;
|
|
19472
|
+
p_proposal_id: string;
|
|
19473
|
+
p_reviewed_by: string;
|
|
19474
|
+
};
|
|
19475
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
19476
|
+
};
|
|
18423
19477
|
assign_cart_numbers: {
|
|
18424
19478
|
Args: {
|
|
18425
19479
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -18471,6 +19525,10 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
18471
19525
|
};
|
|
18472
19526
|
Returns: number;
|
|
18473
19527
|
};
|
|
19528
|
+
can_manage_hours: {
|
|
19529
|
+
Args: never;
|
|
19530
|
+
Returns: boolean;
|
|
19531
|
+
};
|
|
18474
19532
|
check_offer_product_available_stock: {
|
|
18475
19533
|
Args: {
|
|
18476
19534
|
p_campaign_product_id: string;
|
|
@@ -18660,6 +19718,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
18660
19718
|
};
|
|
18661
19719
|
Returns: {
|
|
18662
19720
|
action: string;
|
|
19721
|
+
attempt_started_at: string | null;
|
|
18663
19722
|
attempts: number;
|
|
18664
19723
|
connection_id: string | null;
|
|
18665
19724
|
created_at: string;
|
|
@@ -18747,6 +19806,30 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
18747
19806
|
agent_naam: string;
|
|
18748
19807
|
}[];
|
|
18749
19808
|
};
|
|
19809
|
+
consume_van_inventory: {
|
|
19810
|
+
Args: {
|
|
19811
|
+
p_inventory_id: string;
|
|
19812
|
+
p_quantity: number;
|
|
19813
|
+
};
|
|
19814
|
+
Returns: {
|
|
19815
|
+
barcode: string | null;
|
|
19816
|
+
created_at: string;
|
|
19817
|
+
id: string;
|
|
19818
|
+
monteur_id: string | null;
|
|
19819
|
+
price_per_unit: number;
|
|
19820
|
+
product_name: string;
|
|
19821
|
+
quantity_current: number;
|
|
19822
|
+
quantity_min: number;
|
|
19823
|
+
unit: string;
|
|
19824
|
+
updated_at: string;
|
|
19825
|
+
};
|
|
19826
|
+
SetofOptions: {
|
|
19827
|
+
from: "*";
|
|
19828
|
+
to: "van_inventories";
|
|
19829
|
+
isOneToOne: true;
|
|
19830
|
+
isSetofReturn: false;
|
|
19831
|
+
};
|
|
19832
|
+
};
|
|
18750
19833
|
control_get_todays_carts: {
|
|
18751
19834
|
Args: never;
|
|
18752
19835
|
Returns: {
|
|
@@ -18820,6 +19903,13 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
18820
19903
|
_user_id: string;
|
|
18821
19904
|
};
|
|
18822
19905
|
Returns: string;
|
|
19906
|
+
} | {
|
|
19907
|
+
Args: {
|
|
19908
|
+
_feature_id: string;
|
|
19909
|
+
_module_id: string;
|
|
19910
|
+
_user_id: string;
|
|
19911
|
+
};
|
|
19912
|
+
Returns: string;
|
|
18823
19913
|
};
|
|
18824
19914
|
email_auth_decrypt: {
|
|
18825
19915
|
Args: {
|
|
@@ -18866,6 +19956,13 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
18866
19956
|
};
|
|
18867
19957
|
Returns: string;
|
|
18868
19958
|
};
|
|
19959
|
+
employee_day_hours: {
|
|
19960
|
+
Args: {
|
|
19961
|
+
_day: string;
|
|
19962
|
+
_employee_id: string;
|
|
19963
|
+
};
|
|
19964
|
+
Returns: number;
|
|
19965
|
+
};
|
|
18869
19966
|
enqueue_cart_replan_if_unlocked: {
|
|
18870
19967
|
Args: {
|
|
18871
19968
|
p_order_id: string;
|
|
@@ -19171,12 +20268,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
19171
20268
|
Args: never;
|
|
19172
20269
|
Returns: string;
|
|
19173
20270
|
};
|
|
19174
|
-
get_work_order_tenant_id: {
|
|
19175
|
-
Args: {
|
|
19176
|
-
wo_id: string;
|
|
19177
|
-
};
|
|
19178
|
-
Returns: string;
|
|
19179
|
-
};
|
|
19180
20271
|
has_module_permission: {
|
|
19181
20272
|
Args: {
|
|
19182
20273
|
_min: string;
|
|
@@ -19210,6 +20301,13 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
19210
20301
|
};
|
|
19211
20302
|
Returns: boolean;
|
|
19212
20303
|
};
|
|
20304
|
+
is_time_log_week_locked: {
|
|
20305
|
+
Args: {
|
|
20306
|
+
p_employee_id: string;
|
|
20307
|
+
p_start_time: string;
|
|
20308
|
+
};
|
|
20309
|
+
Returns: boolean;
|
|
20310
|
+
};
|
|
19213
20311
|
is_user_admin: {
|
|
19214
20312
|
Args: never;
|
|
19215
20313
|
Returns: boolean;
|
|
@@ -19218,19 +20316,43 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
19218
20316
|
Args: never;
|
|
19219
20317
|
Returns: boolean;
|
|
19220
20318
|
};
|
|
20319
|
+
itk_offerte_naar_werkbon: {
|
|
20320
|
+
Args: {
|
|
20321
|
+
_offerte_id: string;
|
|
20322
|
+
};
|
|
20323
|
+
Returns: string;
|
|
20324
|
+
};
|
|
20325
|
+
itk_offerte_restant_mandaat: {
|
|
20326
|
+
Args: {
|
|
20327
|
+
_exclude_offerte_id?: string;
|
|
20328
|
+
_werkbon_id: string;
|
|
20329
|
+
};
|
|
20330
|
+
Returns: number;
|
|
20331
|
+
};
|
|
19221
20332
|
jwt_has_role: {
|
|
19222
20333
|
Args: {
|
|
19223
20334
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
19224
20335
|
};
|
|
19225
20336
|
Returns: boolean;
|
|
19226
20337
|
};
|
|
19227
|
-
|
|
20338
|
+
list_medewerkers: {
|
|
19228
20339
|
Args: never;
|
|
19229
20340
|
Returns: {
|
|
19230
20341
|
avatar_url: string;
|
|
20342
|
+
color: string;
|
|
19231
20343
|
display_name: string;
|
|
19232
20344
|
email: string;
|
|
20345
|
+
hours_fri: number;
|
|
20346
|
+
hours_mon: number;
|
|
20347
|
+
hours_thu: number;
|
|
20348
|
+
hours_tue: number;
|
|
20349
|
+
hours_wed: number;
|
|
19233
20350
|
id: string;
|
|
20351
|
+
is_active: boolean;
|
|
20352
|
+
leave_balance_hours: number;
|
|
20353
|
+
persnr: string;
|
|
20354
|
+
phone: string;
|
|
20355
|
+
roles: string[];
|
|
19234
20356
|
}[];
|
|
19235
20357
|
};
|
|
19236
20358
|
list_my_planning_items: {
|
|
@@ -19556,17 +20678,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
19556
20678
|
Returns: string;
|
|
19557
20679
|
};
|
|
19558
20680
|
logistics_emit_event: {
|
|
19559
|
-
Args: {
|
|
19560
|
-
p_event_type: string;
|
|
19561
|
-
p_idempotency_key?: string;
|
|
19562
|
-
p_order_ref: string;
|
|
19563
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
19564
|
-
p_shadow?: boolean;
|
|
19565
|
-
p_source_module: string;
|
|
19566
|
-
p_strategy_id?: string;
|
|
19567
|
-
};
|
|
19568
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
19569
|
-
} | {
|
|
19570
20681
|
Args: {
|
|
19571
20682
|
p_event_type: string;
|
|
19572
20683
|
p_idempotency_key?: string;
|
|
@@ -19721,6 +20832,65 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
19721
20832
|
};
|
|
19722
20833
|
Returns: number;
|
|
19723
20834
|
};
|
|
20835
|
+
logistics_plan_claim: {
|
|
20836
|
+
Args: {
|
|
20837
|
+
p_limit?: number;
|
|
20838
|
+
};
|
|
20839
|
+
Returns: {
|
|
20840
|
+
attempts: number;
|
|
20841
|
+
id: string;
|
|
20842
|
+
order_id: string;
|
|
20843
|
+
}[];
|
|
20844
|
+
};
|
|
20845
|
+
logistics_plan_enqueue: {
|
|
20846
|
+
Args: {
|
|
20847
|
+
p_order_id: string;
|
|
20848
|
+
p_reason?: string;
|
|
20849
|
+
};
|
|
20850
|
+
Returns: undefined;
|
|
20851
|
+
};
|
|
20852
|
+
logistics_plan_ensure_event: {
|
|
20853
|
+
Args: {
|
|
20854
|
+
p_order_id: string;
|
|
20855
|
+
};
|
|
20856
|
+
Returns: boolean;
|
|
20857
|
+
};
|
|
20858
|
+
logistics_plan_finish: {
|
|
20859
|
+
Args: {
|
|
20860
|
+
p_error?: string;
|
|
20861
|
+
p_id: string;
|
|
20862
|
+
};
|
|
20863
|
+
Returns: undefined;
|
|
20864
|
+
};
|
|
20865
|
+
logistics_plan_impact_orders: {
|
|
20866
|
+
Args: {
|
|
20867
|
+
p_order_id: string;
|
|
20868
|
+
};
|
|
20869
|
+
Returns: {
|
|
20870
|
+
buffer_id: string;
|
|
20871
|
+
order_id: string;
|
|
20872
|
+
plan_date: string;
|
|
20873
|
+
}[];
|
|
20874
|
+
};
|
|
20875
|
+
logistics_plan_kick: {
|
|
20876
|
+
Args: never;
|
|
20877
|
+
Returns: undefined;
|
|
20878
|
+
};
|
|
20879
|
+
logistics_plan_prune: {
|
|
20880
|
+
Args: never;
|
|
20881
|
+
Returns: number;
|
|
20882
|
+
};
|
|
20883
|
+
logistics_plan_release_stale: {
|
|
20884
|
+
Args: never;
|
|
20885
|
+
Returns: number;
|
|
20886
|
+
};
|
|
20887
|
+
logistics_plan_setting: {
|
|
20888
|
+
Args: {
|
|
20889
|
+
p_default: number;
|
|
20890
|
+
p_key: string;
|
|
20891
|
+
};
|
|
20892
|
+
Returns: number;
|
|
20893
|
+
};
|
|
19724
20894
|
logistics_queue_capacity_email: {
|
|
19725
20895
|
Args: {
|
|
19726
20896
|
p_alert_id: string;
|
|
@@ -19962,6 +21132,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
19962
21132
|
my_module_permissions: {
|
|
19963
21133
|
Args: never;
|
|
19964
21134
|
Returns: {
|
|
21135
|
+
feature_id: string;
|
|
19965
21136
|
module_id: string;
|
|
19966
21137
|
permission: string;
|
|
19967
21138
|
}[];
|
|
@@ -20351,6 +21522,37 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
20351
21522
|
};
|
|
20352
21523
|
Returns: undefined;
|
|
20353
21524
|
};
|
|
21525
|
+
quote_create_from_source: {
|
|
21526
|
+
Args: {
|
|
21527
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
21528
|
+
_source_id: string;
|
|
21529
|
+
_source_type: string;
|
|
21530
|
+
};
|
|
21531
|
+
Returns: string;
|
|
21532
|
+
};
|
|
21533
|
+
quote_get_billable_lines: {
|
|
21534
|
+
Args: {
|
|
21535
|
+
_quotation_id: string;
|
|
21536
|
+
};
|
|
21537
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21538
|
+
};
|
|
21539
|
+
quote_get_summary: {
|
|
21540
|
+
Args: {
|
|
21541
|
+
_quotation_id: string;
|
|
21542
|
+
};
|
|
21543
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21544
|
+
};
|
|
21545
|
+
quote_list_packages: {
|
|
21546
|
+
Args: never;
|
|
21547
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21548
|
+
};
|
|
21549
|
+
quote_list_sources: {
|
|
21550
|
+
Args: {
|
|
21551
|
+
_limit?: number;
|
|
21552
|
+
_source_type?: string;
|
|
21553
|
+
};
|
|
21554
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21555
|
+
};
|
|
20354
21556
|
recompute_all_reserved_stock: {
|
|
20355
21557
|
Args: never;
|
|
20356
21558
|
Returns: undefined;
|
|
@@ -20842,6 +22044,16 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
20842
22044
|
};
|
|
20843
22045
|
Returns: string[];
|
|
20844
22046
|
};
|
|
22047
|
+
switch_time_log: {
|
|
22048
|
+
Args: {
|
|
22049
|
+
p_employee_id: string;
|
|
22050
|
+
p_start_lat?: number;
|
|
22051
|
+
p_start_lng?: number;
|
|
22052
|
+
p_type: string;
|
|
22053
|
+
p_work_order_id?: string;
|
|
22054
|
+
};
|
|
22055
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22056
|
+
};
|
|
20845
22057
|
sync_all_layer_stocks: {
|
|
20846
22058
|
Args: never;
|
|
20847
22059
|
Returns: undefined;
|
|
@@ -20876,6 +22088,12 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
20876
22088
|
};
|
|
20877
22089
|
Returns: undefined;
|
|
20878
22090
|
};
|
|
22091
|
+
sync_sick_time_off: {
|
|
22092
|
+
Args: {
|
|
22093
|
+
_period_id: string;
|
|
22094
|
+
};
|
|
22095
|
+
Returns: number;
|
|
22096
|
+
};
|
|
20879
22097
|
trade_item_stock_duplicates: {
|
|
20880
22098
|
Args: never;
|
|
20881
22099
|
Returns: {
|
|
@@ -20892,6 +22110,24 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
20892
22110
|
};
|
|
20893
22111
|
Returns: boolean;
|
|
20894
22112
|
};
|
|
22113
|
+
twinfield_cron_lock_acquire: {
|
|
22114
|
+
Args: {
|
|
22115
|
+
_job_name: string;
|
|
22116
|
+
_stale_seconds?: number;
|
|
22117
|
+
};
|
|
22118
|
+
Returns: boolean;
|
|
22119
|
+
};
|
|
22120
|
+
twinfield_cron_lock_release: {
|
|
22121
|
+
Args: {
|
|
22122
|
+
_error?: string;
|
|
22123
|
+
_job_name: string;
|
|
22124
|
+
};
|
|
22125
|
+
Returns: undefined;
|
|
22126
|
+
};
|
|
22127
|
+
twinfield_prune_push_queue: {
|
|
22128
|
+
Args: never;
|
|
22129
|
+
Returns: number;
|
|
22130
|
+
};
|
|
20895
22131
|
twinfield_register_cron: {
|
|
20896
22132
|
Args: {
|
|
20897
22133
|
apikey?: string;
|
|
@@ -20931,11 +22167,31 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
|
|
|
20931
22167
|
Args: never;
|
|
20932
22168
|
Returns: string;
|
|
20933
22169
|
};
|
|
22170
|
+
wo_create_from_source: {
|
|
22171
|
+
Args: {
|
|
22172
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
22173
|
+
_source_id: string;
|
|
22174
|
+
_source_type: string;
|
|
22175
|
+
};
|
|
22176
|
+
Returns: string;
|
|
22177
|
+
};
|
|
22178
|
+
wo_get_billable_lines: {
|
|
22179
|
+
Args: {
|
|
22180
|
+
_work_order_id: string;
|
|
22181
|
+
};
|
|
22182
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22183
|
+
};
|
|
22184
|
+
wo_get_summary: {
|
|
22185
|
+
Args: {
|
|
22186
|
+
_work_order_id: string;
|
|
22187
|
+
};
|
|
22188
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22189
|
+
};
|
|
20934
22190
|
};
|
|
20935
22191
|
Enums: {
|
|
20936
22192
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
20937
22193
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
20938
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
22194
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
20939
22195
|
doc_orientation: "portrait" | "landscape";
|
|
20940
22196
|
exact_env: "staging" | "live";
|
|
20941
22197
|
exact_push_status: "pending" | "sent" | "error";
|