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