@flowselections/floriday-afhandeling-module 1.0.31 → 1.0.33
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/afhandeling/AutoProcessStatus.js +1 -1
- package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts +6 -6
- package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/ControleLijstPrint.js +73 -48
- package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/ControlePage.js +47 -14
- package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/DagDetailDialog.js +48 -24
- package/dist-lib/components/afhandeling/VervoerdersPage.d.ts +8 -1
- package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/VervoerdersPage.js +17 -2
- package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/WeekAgendaView.js +16 -5
- package/dist-lib/components/afhandeling/WerkplekWaarschuwing.d.ts +10 -0
- package/dist-lib/components/afhandeling/WerkplekWaarschuwing.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/WerkplekWaarschuwing.js +28 -0
- package/dist-lib/components/pickstation/PakbonTemplate.js +70 -70
- package/dist-lib/components/pickstation/printDocuments.d.ts +9 -2
- package/dist-lib/components/pickstation/printDocuments.d.ts.map +1 -1
- package/dist-lib/components/pickstation/printDocuments.js +8 -52
- package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -1
- package/dist-lib/components/settings/AfhandelingSettingsCard.js +12 -1
- package/dist-lib/hooks/useEngineTasks.js +1 -1
- package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
- package/dist-lib/hooks/useOrderPlanning.js +32 -14
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +695 -128
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +695 -128
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/{client.d.ts → moduleClient.d.ts} +697 -129
- package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -0
- package/dist-lib/integrations/supabase/moduleClient.js +38 -0
- package/dist-lib/integrations/supabase/types.d.ts +727 -155
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +3 -0
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +1390 -256
- package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
- package/dist-lib/lib/carrierSignupMail.server.js +26 -26
- package/dist-lib/lib/carriers.functions.d.ts +3475 -640
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartAssignments.functions.d.ts +3475 -640
- package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.d.ts +6950 -1280
- package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
- package/dist-lib/lib/deliveryNotePrint.d.ts +14 -6
- package/dist-lib/lib/deliveryNotePrint.d.ts.map +1 -1
- package/dist-lib/lib/deliveryNotePrint.js +61 -14
- package/dist-lib/lib/floriday.functions.d.ts +695 -128
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/floridayAutoProcess.js +1 -1
- package/dist-lib/lib/logisticsEngine/capacity.js +1 -1
- package/dist-lib/lib/logisticsEngine/emitQueue.d.ts +20 -0
- package/dist-lib/lib/logisticsEngine/emitQueue.d.ts.map +1 -0
- package/dist-lib/lib/logisticsEngine/emitQueue.js +88 -0
- package/dist-lib/lib/logisticsEngine/engine.js +1 -1
- package/dist-lib/lib/logisticsEngine/reschedule.js +1 -1
- package/dist-lib/lib/logisticsEngine/staffPlanning.js +1 -1
- package/dist-lib/lib/printing.d.ts +56 -0
- package/dist-lib/lib/printing.d.ts.map +1 -0
- package/dist-lib/lib/printing.js +209 -0
- package/package.json +3 -7
- package/dist-lib/integrations/supabase/auth-attacher.d.ts +0 -2
- package/dist-lib/integrations/supabase/auth-attacher.d.ts.map +0 -1
- package/dist-lib/integrations/supabase/auth-attacher.js +0 -12
- package/dist-lib/integrations/supabase/client.d.ts.map +0 -1
- package/dist-lib/integrations/supabase/client.js +0 -13
|
@@ -871,6 +871,126 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
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;
|
|
@@ -7765,7 +7885,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7765
7885
|
start_date: string;
|
|
7766
7886
|
start_time: string | null;
|
|
7767
7887
|
status: string;
|
|
7768
|
-
tenant_id: string;
|
|
7769
7888
|
updated_at: string;
|
|
7770
7889
|
user_id: string;
|
|
7771
7890
|
};
|
|
@@ -7783,7 +7902,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7783
7902
|
start_date: string;
|
|
7784
7903
|
start_time?: string | null;
|
|
7785
7904
|
status?: string;
|
|
7786
|
-
tenant_id?: string;
|
|
7787
7905
|
updated_at?: string;
|
|
7788
7906
|
user_id: string;
|
|
7789
7907
|
};
|
|
@@ -7801,7 +7919,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7801
7919
|
start_date?: string;
|
|
7802
7920
|
start_time?: string | null;
|
|
7803
7921
|
status?: string;
|
|
7804
|
-
tenant_id?: string;
|
|
7805
7922
|
updated_at?: string;
|
|
7806
7923
|
user_id?: string;
|
|
7807
7924
|
};
|
|
@@ -7809,13 +7926,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7809
7926
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
7810
7927
|
columns: ["monteur_id"];
|
|
7811
7928
|
isOneToOne: false;
|
|
7812
|
-
referencedRelation: "
|
|
7929
|
+
referencedRelation: "profiles";
|
|
7813
7930
|
referencedColumns: ["id"];
|
|
7814
7931
|
}, {
|
|
7815
7932
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
7816
7933
|
columns: ["user_id"];
|
|
7817
7934
|
isOneToOne: false;
|
|
7818
|
-
referencedRelation: "
|
|
7935
|
+
referencedRelation: "profiles";
|
|
7819
7936
|
referencedColumns: ["id"];
|
|
7820
7937
|
}];
|
|
7821
7938
|
};
|
|
@@ -9970,6 +10087,90 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
9970
10087
|
};
|
|
9971
10088
|
Relationships: [];
|
|
9972
10089
|
};
|
|
10090
|
+
material_usage: {
|
|
10091
|
+
Row: {
|
|
10092
|
+
created_at: string;
|
|
10093
|
+
id: string;
|
|
10094
|
+
material_name: string;
|
|
10095
|
+
monteur_id: string | null;
|
|
10096
|
+
price_at_time: number;
|
|
10097
|
+
quantity_used: number;
|
|
10098
|
+
updated_at: string;
|
|
10099
|
+
van_inventory_id: string | null;
|
|
10100
|
+
work_order_id: string;
|
|
10101
|
+
};
|
|
10102
|
+
Insert: {
|
|
10103
|
+
created_at?: string;
|
|
10104
|
+
id?: string;
|
|
10105
|
+
material_name: string;
|
|
10106
|
+
monteur_id?: string | null;
|
|
10107
|
+
price_at_time?: number;
|
|
10108
|
+
quantity_used?: number;
|
|
10109
|
+
updated_at?: string;
|
|
10110
|
+
van_inventory_id?: string | null;
|
|
10111
|
+
work_order_id: string;
|
|
10112
|
+
};
|
|
10113
|
+
Update: {
|
|
10114
|
+
created_at?: string;
|
|
10115
|
+
id?: string;
|
|
10116
|
+
material_name?: string;
|
|
10117
|
+
monteur_id?: string | null;
|
|
10118
|
+
price_at_time?: number;
|
|
10119
|
+
quantity_used?: number;
|
|
10120
|
+
updated_at?: string;
|
|
10121
|
+
van_inventory_id?: string | null;
|
|
10122
|
+
work_order_id?: string;
|
|
10123
|
+
};
|
|
10124
|
+
Relationships: [{
|
|
10125
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
10126
|
+
columns: ["monteur_id"];
|
|
10127
|
+
isOneToOne: false;
|
|
10128
|
+
referencedRelation: "profiles";
|
|
10129
|
+
referencedColumns: ["id"];
|
|
10130
|
+
}, {
|
|
10131
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
10132
|
+
columns: ["van_inventory_id"];
|
|
10133
|
+
isOneToOne: false;
|
|
10134
|
+
referencedRelation: "van_inventories";
|
|
10135
|
+
referencedColumns: ["id"];
|
|
10136
|
+
}, {
|
|
10137
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
10138
|
+
columns: ["work_order_id"];
|
|
10139
|
+
isOneToOne: false;
|
|
10140
|
+
referencedRelation: "work_orders";
|
|
10141
|
+
referencedColumns: ["id"];
|
|
10142
|
+
}];
|
|
10143
|
+
};
|
|
10144
|
+
module_features: {
|
|
10145
|
+
Row: {
|
|
10146
|
+
created_at: string;
|
|
10147
|
+
feature_id: string;
|
|
10148
|
+
id: string;
|
|
10149
|
+
is_active: boolean;
|
|
10150
|
+
last_seen_at: string;
|
|
10151
|
+
module_id: string;
|
|
10152
|
+
name: string;
|
|
10153
|
+
};
|
|
10154
|
+
Insert: {
|
|
10155
|
+
created_at?: string;
|
|
10156
|
+
feature_id: string;
|
|
10157
|
+
id?: string;
|
|
10158
|
+
is_active?: boolean;
|
|
10159
|
+
last_seen_at?: string;
|
|
10160
|
+
module_id: string;
|
|
10161
|
+
name: string;
|
|
10162
|
+
};
|
|
10163
|
+
Update: {
|
|
10164
|
+
created_at?: string;
|
|
10165
|
+
feature_id?: string;
|
|
10166
|
+
id?: string;
|
|
10167
|
+
is_active?: boolean;
|
|
10168
|
+
last_seen_at?: string;
|
|
10169
|
+
module_id?: string;
|
|
10170
|
+
name?: string;
|
|
10171
|
+
};
|
|
10172
|
+
Relationships: [];
|
|
10173
|
+
};
|
|
9973
10174
|
module_permissions: {
|
|
9974
10175
|
Row: {
|
|
9975
10176
|
created_at: string;
|
|
@@ -10000,6 +10201,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
10000
10201
|
module_registry: {
|
|
10001
10202
|
Row: {
|
|
10002
10203
|
created_at: string;
|
|
10204
|
+
enforce: boolean;
|
|
10003
10205
|
is_active: boolean;
|
|
10004
10206
|
last_seen_at: string;
|
|
10005
10207
|
module_id: string;
|
|
@@ -10009,6 +10211,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
10009
10211
|
};
|
|
10010
10212
|
Insert: {
|
|
10011
10213
|
created_at?: string;
|
|
10214
|
+
enforce?: boolean;
|
|
10012
10215
|
is_active?: boolean;
|
|
10013
10216
|
last_seen_at?: string;
|
|
10014
10217
|
module_id: string;
|
|
@@ -10018,6 +10221,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
10018
10221
|
};
|
|
10019
10222
|
Update: {
|
|
10020
10223
|
created_at?: string;
|
|
10224
|
+
enforce?: boolean;
|
|
10021
10225
|
is_active?: boolean;
|
|
10022
10226
|
last_seen_at?: string;
|
|
10023
10227
|
module_id?: string;
|
|
@@ -10078,63 +10282,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
10078
10282
|
};
|
|
10079
10283
|
Relationships: [];
|
|
10080
10284
|
};
|
|
10081
|
-
monteurs: {
|
|
10082
|
-
Row: {
|
|
10083
|
-
avatar_url: string | null;
|
|
10084
|
-
color: string | null;
|
|
10085
|
-
created_at: string;
|
|
10086
|
-
email: string | null;
|
|
10087
|
-
id: string;
|
|
10088
|
-
is_active: boolean;
|
|
10089
|
-
leave_balance_hours: number;
|
|
10090
|
-
name: string;
|
|
10091
|
-
persnr: number | null;
|
|
10092
|
-
phone: string | null;
|
|
10093
|
-
role: string;
|
|
10094
|
-
tenant_id: string;
|
|
10095
|
-
updated_at: string;
|
|
10096
|
-
user_id: string | null;
|
|
10097
|
-
};
|
|
10098
|
-
Insert: {
|
|
10099
|
-
avatar_url?: string | null;
|
|
10100
|
-
color?: string | null;
|
|
10101
|
-
created_at?: string;
|
|
10102
|
-
email?: string | null;
|
|
10103
|
-
id?: string;
|
|
10104
|
-
is_active?: boolean;
|
|
10105
|
-
leave_balance_hours?: number;
|
|
10106
|
-
name: string;
|
|
10107
|
-
persnr?: number | null;
|
|
10108
|
-
phone?: string | null;
|
|
10109
|
-
role?: string;
|
|
10110
|
-
tenant_id: string;
|
|
10111
|
-
updated_at?: string;
|
|
10112
|
-
user_id?: string | null;
|
|
10113
|
-
};
|
|
10114
|
-
Update: {
|
|
10115
|
-
avatar_url?: string | null;
|
|
10116
|
-
color?: string | null;
|
|
10117
|
-
created_at?: string;
|
|
10118
|
-
email?: string | null;
|
|
10119
|
-
id?: string;
|
|
10120
|
-
is_active?: boolean;
|
|
10121
|
-
leave_balance_hours?: number;
|
|
10122
|
-
name?: string;
|
|
10123
|
-
persnr?: number | null;
|
|
10124
|
-
phone?: string | null;
|
|
10125
|
-
role?: string;
|
|
10126
|
-
tenant_id?: string;
|
|
10127
|
-
updated_at?: string;
|
|
10128
|
-
user_id?: string | null;
|
|
10129
|
-
};
|
|
10130
|
-
Relationships: [{
|
|
10131
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
10132
|
-
columns: ["tenant_id"];
|
|
10133
|
-
isOneToOne: false;
|
|
10134
|
-
referencedRelation: "tenants";
|
|
10135
|
-
referencedColumns: ["id"];
|
|
10136
|
-
}];
|
|
10137
|
-
};
|
|
10138
10285
|
nmbrs_component_mapping: {
|
|
10139
10286
|
Row: {
|
|
10140
10287
|
created_at: string;
|
|
@@ -10205,13 +10352,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
10205
10352
|
nmbrs_employee_number?: string;
|
|
10206
10353
|
updated_at?: string;
|
|
10207
10354
|
};
|
|
10208
|
-
Relationships: [
|
|
10209
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10210
|
-
columns: ["monteur_id"];
|
|
10211
|
-
isOneToOne: true;
|
|
10212
|
-
referencedRelation: "monteurs";
|
|
10213
|
-
referencedColumns: ["id"];
|
|
10214
|
-
}];
|
|
10355
|
+
Relationships: [];
|
|
10215
10356
|
};
|
|
10216
10357
|
nmbrs_export_lines: {
|
|
10217
10358
|
Row: {
|
|
@@ -10260,12 +10401,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
10260
10401
|
wage_code?: string;
|
|
10261
10402
|
};
|
|
10262
10403
|
Relationships: [{
|
|
10263
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10264
|
-
columns: ["monteur_id"];
|
|
10265
|
-
isOneToOne: false;
|
|
10266
|
-
referencedRelation: "monteurs";
|
|
10267
|
-
referencedColumns: ["id"];
|
|
10268
|
-
}, {
|
|
10269
10404
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10270
10405
|
columns: ["run_id"];
|
|
10271
10406
|
isOneToOne: false;
|
|
@@ -12656,6 +12791,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
12656
12791
|
created_at: string;
|
|
12657
12792
|
id: string;
|
|
12658
12793
|
laatst_gezien: string;
|
|
12794
|
+
laatste_fout: string | null;
|
|
12795
|
+
laatste_request_id: number | null;
|
|
12796
|
+
mislukte_posts: number;
|
|
12659
12797
|
tick_sleutel: string;
|
|
12660
12798
|
updated_at: string;
|
|
12661
12799
|
};
|
|
@@ -12665,6 +12803,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
12665
12803
|
created_at?: string;
|
|
12666
12804
|
id?: string;
|
|
12667
12805
|
laatst_gezien?: string;
|
|
12806
|
+
laatste_fout?: string | null;
|
|
12807
|
+
laatste_request_id?: number | null;
|
|
12808
|
+
mislukte_posts?: number;
|
|
12668
12809
|
tick_sleutel?: string;
|
|
12669
12810
|
updated_at?: string;
|
|
12670
12811
|
};
|
|
@@ -12674,6 +12815,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
12674
12815
|
created_at?: string;
|
|
12675
12816
|
id?: string;
|
|
12676
12817
|
laatst_gezien?: string;
|
|
12818
|
+
laatste_fout?: string | null;
|
|
12819
|
+
laatste_request_id?: number | null;
|
|
12820
|
+
mislukte_posts?: number;
|
|
12677
12821
|
tick_sleutel?: string;
|
|
12678
12822
|
updated_at?: string;
|
|
12679
12823
|
};
|
|
@@ -14182,6 +14326,96 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
14182
14326
|
referencedColumns: ["id"];
|
|
14183
14327
|
}];
|
|
14184
14328
|
};
|
|
14329
|
+
role_assignments: {
|
|
14330
|
+
Row: {
|
|
14331
|
+
created_at: string;
|
|
14332
|
+
id: string;
|
|
14333
|
+
role_id: string;
|
|
14334
|
+
user_id: string;
|
|
14335
|
+
};
|
|
14336
|
+
Insert: {
|
|
14337
|
+
created_at?: string;
|
|
14338
|
+
id?: string;
|
|
14339
|
+
role_id: string;
|
|
14340
|
+
user_id: string;
|
|
14341
|
+
};
|
|
14342
|
+
Update: {
|
|
14343
|
+
created_at?: string;
|
|
14344
|
+
id?: string;
|
|
14345
|
+
role_id?: string;
|
|
14346
|
+
user_id?: string;
|
|
14347
|
+
};
|
|
14348
|
+
Relationships: [{
|
|
14349
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
14350
|
+
columns: ["role_id"];
|
|
14351
|
+
isOneToOne: false;
|
|
14352
|
+
referencedRelation: "roles";
|
|
14353
|
+
referencedColumns: ["id"];
|
|
14354
|
+
}];
|
|
14355
|
+
};
|
|
14356
|
+
role_permissions: {
|
|
14357
|
+
Row: {
|
|
14358
|
+
can_edit: boolean;
|
|
14359
|
+
can_view: boolean;
|
|
14360
|
+
feature_id: string;
|
|
14361
|
+
id: string;
|
|
14362
|
+
module_id: string;
|
|
14363
|
+
role_id: string;
|
|
14364
|
+
updated_at: string;
|
|
14365
|
+
};
|
|
14366
|
+
Insert: {
|
|
14367
|
+
can_edit?: boolean;
|
|
14368
|
+
can_view?: boolean;
|
|
14369
|
+
feature_id?: string;
|
|
14370
|
+
id?: string;
|
|
14371
|
+
module_id: string;
|
|
14372
|
+
role_id: string;
|
|
14373
|
+
updated_at?: string;
|
|
14374
|
+
};
|
|
14375
|
+
Update: {
|
|
14376
|
+
can_edit?: boolean;
|
|
14377
|
+
can_view?: boolean;
|
|
14378
|
+
feature_id?: string;
|
|
14379
|
+
id?: string;
|
|
14380
|
+
module_id?: string;
|
|
14381
|
+
role_id?: string;
|
|
14382
|
+
updated_at?: string;
|
|
14383
|
+
};
|
|
14384
|
+
Relationships: [{
|
|
14385
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
14386
|
+
columns: ["role_id"];
|
|
14387
|
+
isOneToOne: false;
|
|
14388
|
+
referencedRelation: "roles";
|
|
14389
|
+
referencedColumns: ["id"];
|
|
14390
|
+
}];
|
|
14391
|
+
};
|
|
14392
|
+
roles: {
|
|
14393
|
+
Row: {
|
|
14394
|
+
created_at: string;
|
|
14395
|
+
id: string;
|
|
14396
|
+
is_protected: boolean;
|
|
14397
|
+
key: string;
|
|
14398
|
+
name: string;
|
|
14399
|
+
updated_at: string;
|
|
14400
|
+
};
|
|
14401
|
+
Insert: {
|
|
14402
|
+
created_at?: string;
|
|
14403
|
+
id?: string;
|
|
14404
|
+
is_protected?: boolean;
|
|
14405
|
+
key: string;
|
|
14406
|
+
name: string;
|
|
14407
|
+
updated_at?: string;
|
|
14408
|
+
};
|
|
14409
|
+
Update: {
|
|
14410
|
+
created_at?: string;
|
|
14411
|
+
id?: string;
|
|
14412
|
+
is_protected?: boolean;
|
|
14413
|
+
key?: string;
|
|
14414
|
+
name?: string;
|
|
14415
|
+
updated_at?: string;
|
|
14416
|
+
};
|
|
14417
|
+
Relationships: [];
|
|
14418
|
+
};
|
|
14185
14419
|
rooms: {
|
|
14186
14420
|
Row: {
|
|
14187
14421
|
capacity: number;
|
|
@@ -14851,6 +15085,54 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
14851
15085
|
};
|
|
14852
15086
|
Relationships: [];
|
|
14853
15087
|
};
|
|
15088
|
+
time_compensation_entries: {
|
|
15089
|
+
Row: {
|
|
15090
|
+
created_at: string;
|
|
15091
|
+
employee_id: string;
|
|
15092
|
+
entry_date: string;
|
|
15093
|
+
id: string;
|
|
15094
|
+
km: number;
|
|
15095
|
+
meal_allowance: number;
|
|
15096
|
+
notes: string | null;
|
|
15097
|
+
standby_evening: number;
|
|
15098
|
+
standby_weekend: number;
|
|
15099
|
+
tvt_change: number;
|
|
15100
|
+
updated_at: string;
|
|
15101
|
+
};
|
|
15102
|
+
Insert: {
|
|
15103
|
+
created_at?: string;
|
|
15104
|
+
employee_id: string;
|
|
15105
|
+
entry_date: string;
|
|
15106
|
+
id?: string;
|
|
15107
|
+
km?: number;
|
|
15108
|
+
meal_allowance?: number;
|
|
15109
|
+
notes?: string | null;
|
|
15110
|
+
standby_evening?: number;
|
|
15111
|
+
standby_weekend?: number;
|
|
15112
|
+
tvt_change?: number;
|
|
15113
|
+
updated_at?: string;
|
|
15114
|
+
};
|
|
15115
|
+
Update: {
|
|
15116
|
+
created_at?: string;
|
|
15117
|
+
employee_id?: string;
|
|
15118
|
+
entry_date?: string;
|
|
15119
|
+
id?: string;
|
|
15120
|
+
km?: number;
|
|
15121
|
+
meal_allowance?: number;
|
|
15122
|
+
notes?: string | null;
|
|
15123
|
+
standby_evening?: number;
|
|
15124
|
+
standby_weekend?: number;
|
|
15125
|
+
tvt_change?: number;
|
|
15126
|
+
updated_at?: string;
|
|
15127
|
+
};
|
|
15128
|
+
Relationships: [{
|
|
15129
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
15130
|
+
columns: ["employee_id"];
|
|
15131
|
+
isOneToOne: false;
|
|
15132
|
+
referencedRelation: "profiles";
|
|
15133
|
+
referencedColumns: ["id"];
|
|
15134
|
+
}];
|
|
15135
|
+
};
|
|
14854
15136
|
time_entries: {
|
|
14855
15137
|
Row: {
|
|
14856
15138
|
created_at: string;
|
|
@@ -14885,65 +15167,170 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
14885
15167
|
undertime?: number;
|
|
14886
15168
|
updated_at?: string;
|
|
14887
15169
|
};
|
|
15170
|
+
Relationships: [];
|
|
15171
|
+
};
|
|
15172
|
+
time_log_week_approvals: {
|
|
15173
|
+
Row: {
|
|
15174
|
+
approved_at: string | null;
|
|
15175
|
+
approved_by: string | null;
|
|
15176
|
+
created_at: string;
|
|
15177
|
+
employee_id: string;
|
|
15178
|
+
id: string;
|
|
15179
|
+
locked: boolean;
|
|
15180
|
+
notes: string | null;
|
|
15181
|
+
status: string;
|
|
15182
|
+
submitted_at: string | null;
|
|
15183
|
+
updated_at: string;
|
|
15184
|
+
week_start: string;
|
|
15185
|
+
};
|
|
15186
|
+
Insert: {
|
|
15187
|
+
approved_at?: string | null;
|
|
15188
|
+
approved_by?: string | null;
|
|
15189
|
+
created_at?: string;
|
|
15190
|
+
employee_id: string;
|
|
15191
|
+
id?: string;
|
|
15192
|
+
locked?: boolean;
|
|
15193
|
+
notes?: string | null;
|
|
15194
|
+
status?: string;
|
|
15195
|
+
submitted_at?: string | null;
|
|
15196
|
+
updated_at?: string;
|
|
15197
|
+
week_start: string;
|
|
15198
|
+
};
|
|
15199
|
+
Update: {
|
|
15200
|
+
approved_at?: string | null;
|
|
15201
|
+
approved_by?: string | null;
|
|
15202
|
+
created_at?: string;
|
|
15203
|
+
employee_id?: string;
|
|
15204
|
+
id?: string;
|
|
15205
|
+
locked?: boolean;
|
|
15206
|
+
notes?: string | null;
|
|
15207
|
+
status?: string;
|
|
15208
|
+
submitted_at?: string | null;
|
|
15209
|
+
updated_at?: string;
|
|
15210
|
+
week_start?: string;
|
|
15211
|
+
};
|
|
14888
15212
|
Relationships: [{
|
|
14889
|
-
foreignKeyName: "
|
|
15213
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
14890
15214
|
columns: ["employee_id"];
|
|
14891
15215
|
isOneToOne: false;
|
|
14892
|
-
referencedRelation: "
|
|
15216
|
+
referencedRelation: "profiles";
|
|
14893
15217
|
referencedColumns: ["id"];
|
|
14894
15218
|
}];
|
|
14895
15219
|
};
|
|
14896
15220
|
time_logs: {
|
|
14897
15221
|
Row: {
|
|
15222
|
+
auto_stop_reason: string | null;
|
|
15223
|
+
auto_stopped: boolean;
|
|
14898
15224
|
created_at: string;
|
|
15225
|
+
current_latitude: number | null;
|
|
15226
|
+
current_longitude: number | null;
|
|
15227
|
+
current_position_updated_at: string | null;
|
|
14899
15228
|
employee_id: string;
|
|
15229
|
+
end_latitude: number | null;
|
|
15230
|
+
end_longitude: number | null;
|
|
14900
15231
|
end_time: string | null;
|
|
15232
|
+
eta_distance_km: number | null;
|
|
15233
|
+
eta_minutes: number | null;
|
|
15234
|
+
eta_updated_at: string | null;
|
|
15235
|
+
hour_category: string | null;
|
|
14901
15236
|
id: string;
|
|
15237
|
+
last_reminder_at: string | null;
|
|
14902
15238
|
notes: string | null;
|
|
14903
15239
|
overtime_hours: number;
|
|
14904
15240
|
overtime_type: string | null;
|
|
14905
15241
|
regular_hours: number;
|
|
15242
|
+
reminder_count: number;
|
|
15243
|
+
requires_review: boolean;
|
|
15244
|
+
start_latitude: number | null;
|
|
15245
|
+
start_longitude: number | null;
|
|
14906
15246
|
start_time: string;
|
|
14907
15247
|
travel_cost: number | null;
|
|
14908
15248
|
travel_distance_km: number | null;
|
|
15249
|
+
travel_duration_min: number | null;
|
|
15250
|
+
travel_time_minutes: number | null;
|
|
14909
15251
|
type: string;
|
|
14910
15252
|
updated_at: string;
|
|
15253
|
+
work_order_id: string | null;
|
|
14911
15254
|
};
|
|
14912
15255
|
Insert: {
|
|
15256
|
+
auto_stop_reason?: string | null;
|
|
15257
|
+
auto_stopped?: boolean;
|
|
14913
15258
|
created_at?: string;
|
|
15259
|
+
current_latitude?: number | null;
|
|
15260
|
+
current_longitude?: number | null;
|
|
15261
|
+
current_position_updated_at?: string | null;
|
|
14914
15262
|
employee_id: string;
|
|
15263
|
+
end_latitude?: number | null;
|
|
15264
|
+
end_longitude?: number | null;
|
|
14915
15265
|
end_time?: string | null;
|
|
15266
|
+
eta_distance_km?: number | null;
|
|
15267
|
+
eta_minutes?: number | null;
|
|
15268
|
+
eta_updated_at?: string | null;
|
|
15269
|
+
hour_category?: string | null;
|
|
14916
15270
|
id?: string;
|
|
15271
|
+
last_reminder_at?: string | null;
|
|
14917
15272
|
notes?: string | null;
|
|
14918
15273
|
overtime_hours?: number;
|
|
14919
15274
|
overtime_type?: string | null;
|
|
14920
15275
|
regular_hours?: number;
|
|
15276
|
+
reminder_count?: number;
|
|
15277
|
+
requires_review?: boolean;
|
|
15278
|
+
start_latitude?: number | null;
|
|
15279
|
+
start_longitude?: number | null;
|
|
14921
15280
|
start_time?: string;
|
|
14922
15281
|
travel_cost?: number | null;
|
|
14923
15282
|
travel_distance_km?: number | null;
|
|
15283
|
+
travel_duration_min?: number | null;
|
|
15284
|
+
travel_time_minutes?: number | null;
|
|
14924
15285
|
type: string;
|
|
14925
15286
|
updated_at?: string;
|
|
15287
|
+
work_order_id?: string | null;
|
|
14926
15288
|
};
|
|
14927
15289
|
Update: {
|
|
15290
|
+
auto_stop_reason?: string | null;
|
|
15291
|
+
auto_stopped?: boolean;
|
|
14928
15292
|
created_at?: string;
|
|
15293
|
+
current_latitude?: number | null;
|
|
15294
|
+
current_longitude?: number | null;
|
|
15295
|
+
current_position_updated_at?: string | null;
|
|
14929
15296
|
employee_id?: string;
|
|
15297
|
+
end_latitude?: number | null;
|
|
15298
|
+
end_longitude?: number | null;
|
|
14930
15299
|
end_time?: string | null;
|
|
15300
|
+
eta_distance_km?: number | null;
|
|
15301
|
+
eta_minutes?: number | null;
|
|
15302
|
+
eta_updated_at?: string | null;
|
|
15303
|
+
hour_category?: string | null;
|
|
14931
15304
|
id?: string;
|
|
15305
|
+
last_reminder_at?: string | null;
|
|
14932
15306
|
notes?: string | null;
|
|
14933
15307
|
overtime_hours?: number;
|
|
14934
15308
|
overtime_type?: string | null;
|
|
14935
15309
|
regular_hours?: number;
|
|
15310
|
+
reminder_count?: number;
|
|
15311
|
+
requires_review?: boolean;
|
|
15312
|
+
start_latitude?: number | null;
|
|
15313
|
+
start_longitude?: number | null;
|
|
14936
15314
|
start_time?: string;
|
|
14937
15315
|
travel_cost?: number | null;
|
|
14938
15316
|
travel_distance_km?: number | null;
|
|
15317
|
+
travel_duration_min?: number | null;
|
|
15318
|
+
travel_time_minutes?: number | null;
|
|
14939
15319
|
type?: string;
|
|
14940
15320
|
updated_at?: string;
|
|
15321
|
+
work_order_id?: string | null;
|
|
14941
15322
|
};
|
|
14942
15323
|
Relationships: [{
|
|
14943
15324
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
14944
15325
|
columns: ["employee_id"];
|
|
14945
15326
|
isOneToOne: false;
|
|
14946
|
-
referencedRelation: "
|
|
15327
|
+
referencedRelation: "profiles";
|
|
15328
|
+
referencedColumns: ["id"];
|
|
15329
|
+
}, {
|
|
15330
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
15331
|
+
columns: ["work_order_id"];
|
|
15332
|
+
isOneToOne: false;
|
|
15333
|
+
referencedRelation: "work_orders";
|
|
14947
15334
|
referencedColumns: ["id"];
|
|
14948
15335
|
}];
|
|
14949
15336
|
};
|
|
@@ -14982,7 +15369,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
14982
15369
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
14983
15370
|
columns: ["employee_id"];
|
|
14984
15371
|
isOneToOne: false;
|
|
14985
|
-
referencedRelation: "
|
|
15372
|
+
referencedRelation: "profiles";
|
|
14986
15373
|
referencedColumns: ["id"];
|
|
14987
15374
|
}];
|
|
14988
15375
|
};
|
|
@@ -15292,6 +15679,39 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
15292
15679
|
};
|
|
15293
15680
|
Relationships: [];
|
|
15294
15681
|
};
|
|
15682
|
+
twinfield_cron_locks: {
|
|
15683
|
+
Row: {
|
|
15684
|
+
created_at: string;
|
|
15685
|
+
heartbeat_at: string;
|
|
15686
|
+
job_name: string;
|
|
15687
|
+
last_error: string | null;
|
|
15688
|
+
last_finished_at: string | null;
|
|
15689
|
+
locked_at: string;
|
|
15690
|
+
run_id: string;
|
|
15691
|
+
updated_at: string;
|
|
15692
|
+
};
|
|
15693
|
+
Insert: {
|
|
15694
|
+
created_at?: string;
|
|
15695
|
+
heartbeat_at?: string;
|
|
15696
|
+
job_name: string;
|
|
15697
|
+
last_error?: string | null;
|
|
15698
|
+
last_finished_at?: string | null;
|
|
15699
|
+
locked_at?: string;
|
|
15700
|
+
run_id?: string;
|
|
15701
|
+
updated_at?: string;
|
|
15702
|
+
};
|
|
15703
|
+
Update: {
|
|
15704
|
+
created_at?: string;
|
|
15705
|
+
heartbeat_at?: string;
|
|
15706
|
+
job_name?: string;
|
|
15707
|
+
last_error?: string | null;
|
|
15708
|
+
last_finished_at?: string | null;
|
|
15709
|
+
locked_at?: string;
|
|
15710
|
+
run_id?: string;
|
|
15711
|
+
updated_at?: string;
|
|
15712
|
+
};
|
|
15713
|
+
Relationships: [];
|
|
15714
|
+
};
|
|
15295
15715
|
twinfield_customers: {
|
|
15296
15716
|
Row: {
|
|
15297
15717
|
address: string | null;
|
|
@@ -15892,6 +16312,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
15892
16312
|
twinfield_push_queue: {
|
|
15893
16313
|
Row: {
|
|
15894
16314
|
action: string;
|
|
16315
|
+
attempt_started_at: string | null;
|
|
15895
16316
|
attempts: number;
|
|
15896
16317
|
connection_id: string | null;
|
|
15897
16318
|
created_at: string;
|
|
@@ -15908,6 +16329,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
15908
16329
|
};
|
|
15909
16330
|
Insert: {
|
|
15910
16331
|
action?: string;
|
|
16332
|
+
attempt_started_at?: string | null;
|
|
15911
16333
|
attempts?: number;
|
|
15912
16334
|
connection_id?: string | null;
|
|
15913
16335
|
created_at?: string;
|
|
@@ -15924,6 +16346,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
15924
16346
|
};
|
|
15925
16347
|
Update: {
|
|
15926
16348
|
action?: string;
|
|
16349
|
+
attempt_started_at?: string | null;
|
|
15927
16350
|
attempts?: number;
|
|
15928
16351
|
connection_id?: string | null;
|
|
15929
16352
|
created_at?: string;
|
|
@@ -16121,13 +16544,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
16121
16544
|
workday_end?: string | null;
|
|
16122
16545
|
workday_start?: string | null;
|
|
16123
16546
|
};
|
|
16124
|
-
Relationships: [
|
|
16125
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
16126
|
-
columns: ["monteur_id"];
|
|
16127
|
-
isOneToOne: true;
|
|
16128
|
-
referencedRelation: "monteurs";
|
|
16129
|
-
referencedColumns: ["id"];
|
|
16130
|
-
}];
|
|
16547
|
+
Relationships: [];
|
|
16131
16548
|
};
|
|
16132
16549
|
uren_entries: {
|
|
16133
16550
|
Row: {
|
|
@@ -16173,12 +16590,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
16173
16590
|
werkbon_id?: string | null;
|
|
16174
16591
|
};
|
|
16175
16592
|
Relationships: [{
|
|
16176
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16177
|
-
columns: ["monteur_id"];
|
|
16178
|
-
isOneToOne: false;
|
|
16179
|
-
referencedRelation: "monteurs";
|
|
16180
|
-
referencedColumns: ["id"];
|
|
16181
|
-
}, {
|
|
16182
16593
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16183
16594
|
columns: ["werkbon_id"];
|
|
16184
16595
|
isOneToOne: false;
|
|
@@ -16646,17 +17057,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
16646
17057
|
submitted_at?: string | null;
|
|
16647
17058
|
updated_at?: string;
|
|
16648
17059
|
};
|
|
16649
|
-
Relationships: [
|
|
16650
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
16651
|
-
columns: ["monteur_id"];
|
|
16652
|
-
isOneToOne: false;
|
|
16653
|
-
referencedRelation: "monteurs";
|
|
16654
|
-
referencedColumns: ["id"];
|
|
16655
|
-
}];
|
|
17060
|
+
Relationships: [];
|
|
16656
17061
|
};
|
|
16657
17062
|
user_module_permissions: {
|
|
16658
17063
|
Row: {
|
|
16659
17064
|
created_at: string;
|
|
17065
|
+
feature_id: string;
|
|
16660
17066
|
id: string;
|
|
16661
17067
|
module_id: string;
|
|
16662
17068
|
permission: string;
|
|
@@ -16665,6 +17071,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
16665
17071
|
};
|
|
16666
17072
|
Insert: {
|
|
16667
17073
|
created_at?: string;
|
|
17074
|
+
feature_id?: string;
|
|
16668
17075
|
id?: string;
|
|
16669
17076
|
module_id: string;
|
|
16670
17077
|
permission: string;
|
|
@@ -16673,6 +17080,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
16673
17080
|
};
|
|
16674
17081
|
Update: {
|
|
16675
17082
|
created_at?: string;
|
|
17083
|
+
feature_id?: string;
|
|
16676
17084
|
id?: string;
|
|
16677
17085
|
module_id?: string;
|
|
16678
17086
|
permission?: string;
|
|
@@ -16708,6 +17116,51 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
16708
17116
|
referencedColumns: ["id"];
|
|
16709
17117
|
}];
|
|
16710
17118
|
};
|
|
17119
|
+
van_inventories: {
|
|
17120
|
+
Row: {
|
|
17121
|
+
barcode: string | null;
|
|
17122
|
+
created_at: string;
|
|
17123
|
+
id: string;
|
|
17124
|
+
monteur_id: string | null;
|
|
17125
|
+
price_per_unit: number;
|
|
17126
|
+
product_name: string;
|
|
17127
|
+
quantity_current: number;
|
|
17128
|
+
quantity_min: number;
|
|
17129
|
+
unit: string;
|
|
17130
|
+
updated_at: string;
|
|
17131
|
+
};
|
|
17132
|
+
Insert: {
|
|
17133
|
+
barcode?: string | null;
|
|
17134
|
+
created_at?: string;
|
|
17135
|
+
id?: string;
|
|
17136
|
+
monteur_id?: string | null;
|
|
17137
|
+
price_per_unit?: number;
|
|
17138
|
+
product_name: string;
|
|
17139
|
+
quantity_current?: number;
|
|
17140
|
+
quantity_min?: number;
|
|
17141
|
+
unit?: string;
|
|
17142
|
+
updated_at?: string;
|
|
17143
|
+
};
|
|
17144
|
+
Update: {
|
|
17145
|
+
barcode?: string | null;
|
|
17146
|
+
created_at?: string;
|
|
17147
|
+
id?: string;
|
|
17148
|
+
monteur_id?: string | null;
|
|
17149
|
+
price_per_unit?: number;
|
|
17150
|
+
product_name?: string;
|
|
17151
|
+
quantity_current?: number;
|
|
17152
|
+
quantity_min?: number;
|
|
17153
|
+
unit?: string;
|
|
17154
|
+
updated_at?: string;
|
|
17155
|
+
};
|
|
17156
|
+
Relationships: [{
|
|
17157
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
17158
|
+
columns: ["monteur_id"];
|
|
17159
|
+
isOneToOne: false;
|
|
17160
|
+
referencedRelation: "profiles";
|
|
17161
|
+
referencedColumns: ["id"];
|
|
17162
|
+
}];
|
|
17163
|
+
};
|
|
16711
17164
|
voorraad_custom_fields: {
|
|
16712
17165
|
Row: {
|
|
16713
17166
|
created_at: string;
|
|
@@ -17658,7 +18111,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
17658
18111
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
17659
18112
|
columns: ["monteur_id"];
|
|
17660
18113
|
isOneToOne: false;
|
|
17661
|
-
referencedRelation: "
|
|
18114
|
+
referencedRelation: "profiles";
|
|
17662
18115
|
referencedColumns: ["id"];
|
|
17663
18116
|
}, {
|
|
17664
18117
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -17668,6 +18121,60 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
17668
18121
|
referencedColumns: ["id"];
|
|
17669
18122
|
}];
|
|
17670
18123
|
};
|
|
18124
|
+
work_order_photos: {
|
|
18125
|
+
Row: {
|
|
18126
|
+
ai_caption: string | null;
|
|
18127
|
+
ai_categorized_at: string | null;
|
|
18128
|
+
ai_labels: import("./types").Json | null;
|
|
18129
|
+
caption: string | null;
|
|
18130
|
+
created_at: string;
|
|
18131
|
+
id: string;
|
|
18132
|
+
monteur_id: string | null;
|
|
18133
|
+
photo_type: string;
|
|
18134
|
+
storage_path: string;
|
|
18135
|
+
updated_at: string;
|
|
18136
|
+
work_order_id: string;
|
|
18137
|
+
};
|
|
18138
|
+
Insert: {
|
|
18139
|
+
ai_caption?: string | null;
|
|
18140
|
+
ai_categorized_at?: string | null;
|
|
18141
|
+
ai_labels?: import("./types").Json | null;
|
|
18142
|
+
caption?: string | null;
|
|
18143
|
+
created_at?: string;
|
|
18144
|
+
id?: string;
|
|
18145
|
+
monteur_id?: string | null;
|
|
18146
|
+
photo_type?: string;
|
|
18147
|
+
storage_path: string;
|
|
18148
|
+
updated_at?: string;
|
|
18149
|
+
work_order_id: string;
|
|
18150
|
+
};
|
|
18151
|
+
Update: {
|
|
18152
|
+
ai_caption?: string | null;
|
|
18153
|
+
ai_categorized_at?: string | null;
|
|
18154
|
+
ai_labels?: import("./types").Json | null;
|
|
18155
|
+
caption?: string | null;
|
|
18156
|
+
created_at?: string;
|
|
18157
|
+
id?: string;
|
|
18158
|
+
monteur_id?: string | null;
|
|
18159
|
+
photo_type?: string;
|
|
18160
|
+
storage_path?: string;
|
|
18161
|
+
updated_at?: string;
|
|
18162
|
+
work_order_id?: string;
|
|
18163
|
+
};
|
|
18164
|
+
Relationships: [{
|
|
18165
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
18166
|
+
columns: ["monteur_id"];
|
|
18167
|
+
isOneToOne: false;
|
|
18168
|
+
referencedRelation: "profiles";
|
|
18169
|
+
referencedColumns: ["id"];
|
|
18170
|
+
}, {
|
|
18171
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
18172
|
+
columns: ["work_order_id"];
|
|
18173
|
+
isOneToOne: false;
|
|
18174
|
+
referencedRelation: "work_orders";
|
|
18175
|
+
referencedColumns: ["id"];
|
|
18176
|
+
}];
|
|
18177
|
+
};
|
|
17671
18178
|
work_orders: {
|
|
17672
18179
|
Row: {
|
|
17673
18180
|
assigned_to: string | null;
|
|
@@ -17699,7 +18206,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
17699
18206
|
scheduled_end_time: string | null;
|
|
17700
18207
|
scheduled_start_time: string | null;
|
|
17701
18208
|
status: string;
|
|
17702
|
-
tenant_id: string;
|
|
17703
18209
|
total_hours_worked: number | null;
|
|
17704
18210
|
total_price: number | null;
|
|
17705
18211
|
travel_time_minutes: number | null;
|
|
@@ -17737,7 +18243,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
17737
18243
|
scheduled_end_time?: string | null;
|
|
17738
18244
|
scheduled_start_time?: string | null;
|
|
17739
18245
|
status?: string;
|
|
17740
|
-
tenant_id: string;
|
|
17741
18246
|
total_hours_worked?: number | null;
|
|
17742
18247
|
total_price?: number | null;
|
|
17743
18248
|
travel_time_minutes?: number | null;
|
|
@@ -17775,7 +18280,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
17775
18280
|
scheduled_end_time?: string | null;
|
|
17776
18281
|
scheduled_start_time?: string | null;
|
|
17777
18282
|
status?: string;
|
|
17778
|
-
tenant_id?: string;
|
|
17779
18283
|
total_hours_worked?: number | null;
|
|
17780
18284
|
total_price?: number | null;
|
|
17781
18285
|
travel_time_minutes?: number | null;
|
|
@@ -17789,12 +18293,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
17789
18293
|
isOneToOne: false;
|
|
17790
18294
|
referencedRelation: "work_orders";
|
|
17791
18295
|
referencedColumns: ["id"];
|
|
17792
|
-
}, {
|
|
17793
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
17794
|
-
columns: ["tenant_id"];
|
|
17795
|
-
isOneToOne: false;
|
|
17796
|
-
referencedRelation: "tenants";
|
|
17797
|
-
referencedColumns: ["id"];
|
|
17798
18296
|
}];
|
|
17799
18297
|
};
|
|
17800
18298
|
};
|
|
@@ -18479,6 +18977,19 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
18479
18977
|
};
|
|
18480
18978
|
Returns: undefined;
|
|
18481
18979
|
};
|
|
18980
|
+
approve_mailbox_order_proposal: {
|
|
18981
|
+
Args: {
|
|
18982
|
+
p_custom_fields: import("./types").Json;
|
|
18983
|
+
p_customer_id: string;
|
|
18984
|
+
p_delivery_date: string;
|
|
18985
|
+
p_field_values?: import("./types").Json;
|
|
18986
|
+
p_lines: import("./types").Json;
|
|
18987
|
+
p_notes: string;
|
|
18988
|
+
p_proposal_id: string;
|
|
18989
|
+
p_reviewed_by: string;
|
|
18990
|
+
};
|
|
18991
|
+
Returns: import("./types").Json;
|
|
18992
|
+
};
|
|
18482
18993
|
assign_cart_numbers: {
|
|
18483
18994
|
Args: {
|
|
18484
18995
|
p_carts: import("./types").Json;
|
|
@@ -18530,6 +19041,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
18530
19041
|
};
|
|
18531
19042
|
Returns: number;
|
|
18532
19043
|
};
|
|
19044
|
+
can_manage_hours: {
|
|
19045
|
+
Args: never;
|
|
19046
|
+
Returns: boolean;
|
|
19047
|
+
};
|
|
18533
19048
|
check_offer_product_available_stock: {
|
|
18534
19049
|
Args: {
|
|
18535
19050
|
p_campaign_product_id: string;
|
|
@@ -18719,6 +19234,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
18719
19234
|
};
|
|
18720
19235
|
Returns: {
|
|
18721
19236
|
action: string;
|
|
19237
|
+
attempt_started_at: string | null;
|
|
18722
19238
|
attempts: number;
|
|
18723
19239
|
connection_id: string | null;
|
|
18724
19240
|
created_at: string;
|
|
@@ -18806,6 +19322,30 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
18806
19322
|
agent_naam: string;
|
|
18807
19323
|
}[];
|
|
18808
19324
|
};
|
|
19325
|
+
consume_van_inventory: {
|
|
19326
|
+
Args: {
|
|
19327
|
+
p_inventory_id: string;
|
|
19328
|
+
p_quantity: number;
|
|
19329
|
+
};
|
|
19330
|
+
Returns: {
|
|
19331
|
+
barcode: string | null;
|
|
19332
|
+
created_at: string;
|
|
19333
|
+
id: string;
|
|
19334
|
+
monteur_id: string | null;
|
|
19335
|
+
price_per_unit: number;
|
|
19336
|
+
product_name: string;
|
|
19337
|
+
quantity_current: number;
|
|
19338
|
+
quantity_min: number;
|
|
19339
|
+
unit: string;
|
|
19340
|
+
updated_at: string;
|
|
19341
|
+
};
|
|
19342
|
+
SetofOptions: {
|
|
19343
|
+
from: "*";
|
|
19344
|
+
to: "van_inventories";
|
|
19345
|
+
isOneToOne: true;
|
|
19346
|
+
isSetofReturn: false;
|
|
19347
|
+
};
|
|
19348
|
+
};
|
|
18809
19349
|
control_get_todays_carts: {
|
|
18810
19350
|
Args: never;
|
|
18811
19351
|
Returns: {
|
|
@@ -18879,6 +19419,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
18879
19419
|
_user_id: string;
|
|
18880
19420
|
};
|
|
18881
19421
|
Returns: string;
|
|
19422
|
+
} | {
|
|
19423
|
+
Args: {
|
|
19424
|
+
_feature_id: string;
|
|
19425
|
+
_module_id: string;
|
|
19426
|
+
_user_id: string;
|
|
19427
|
+
};
|
|
19428
|
+
Returns: string;
|
|
18882
19429
|
};
|
|
18883
19430
|
email_auth_decrypt: {
|
|
18884
19431
|
Args: {
|
|
@@ -19230,12 +19777,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
19230
19777
|
Args: never;
|
|
19231
19778
|
Returns: string;
|
|
19232
19779
|
};
|
|
19233
|
-
get_work_order_tenant_id: {
|
|
19234
|
-
Args: {
|
|
19235
|
-
wo_id: string;
|
|
19236
|
-
};
|
|
19237
|
-
Returns: string;
|
|
19238
|
-
};
|
|
19239
19780
|
has_module_permission: {
|
|
19240
19781
|
Args: {
|
|
19241
19782
|
_min: string;
|
|
@@ -19269,6 +19810,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
19269
19810
|
};
|
|
19270
19811
|
Returns: boolean;
|
|
19271
19812
|
};
|
|
19813
|
+
is_time_log_week_locked: {
|
|
19814
|
+
Args: {
|
|
19815
|
+
p_employee_id: string;
|
|
19816
|
+
p_start_time: string;
|
|
19817
|
+
};
|
|
19818
|
+
Returns: boolean;
|
|
19819
|
+
};
|
|
19272
19820
|
is_user_admin: {
|
|
19273
19821
|
Args: never;
|
|
19274
19822
|
Returns: boolean;
|
|
@@ -19283,13 +19831,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
19283
19831
|
};
|
|
19284
19832
|
Returns: boolean;
|
|
19285
19833
|
};
|
|
19286
|
-
|
|
19834
|
+
list_medewerkers: {
|
|
19287
19835
|
Args: never;
|
|
19288
19836
|
Returns: {
|
|
19289
19837
|
avatar_url: string;
|
|
19290
19838
|
display_name: string;
|
|
19291
19839
|
email: string;
|
|
19292
19840
|
id: string;
|
|
19841
|
+
roles: string[];
|
|
19293
19842
|
}[];
|
|
19294
19843
|
};
|
|
19295
19844
|
list_my_planning_items: {
|
|
@@ -19615,17 +20164,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
19615
20164
|
Returns: string;
|
|
19616
20165
|
};
|
|
19617
20166
|
logistics_emit_event: {
|
|
19618
|
-
Args: {
|
|
19619
|
-
p_event_type: string;
|
|
19620
|
-
p_idempotency_key?: string;
|
|
19621
|
-
p_order_ref: string;
|
|
19622
|
-
p_payload?: import("./types").Json;
|
|
19623
|
-
p_shadow?: boolean;
|
|
19624
|
-
p_source_module: string;
|
|
19625
|
-
p_strategy_id?: string;
|
|
19626
|
-
};
|
|
19627
|
-
Returns: import("./types").Json;
|
|
19628
|
-
} | {
|
|
19629
20167
|
Args: {
|
|
19630
20168
|
p_event_type: string;
|
|
19631
20169
|
p_idempotency_key?: string;
|
|
@@ -20080,6 +20618,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
20080
20618
|
my_module_permissions: {
|
|
20081
20619
|
Args: never;
|
|
20082
20620
|
Returns: {
|
|
20621
|
+
feature_id: string;
|
|
20083
20622
|
module_id: string;
|
|
20084
20623
|
permission: string;
|
|
20085
20624
|
}[];
|
|
@@ -20960,6 +21499,16 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
20960
21499
|
};
|
|
20961
21500
|
Returns: string[];
|
|
20962
21501
|
};
|
|
21502
|
+
switch_time_log: {
|
|
21503
|
+
Args: {
|
|
21504
|
+
p_employee_id: string;
|
|
21505
|
+
p_start_lat?: number;
|
|
21506
|
+
p_start_lng?: number;
|
|
21507
|
+
p_type: string;
|
|
21508
|
+
p_work_order_id?: string;
|
|
21509
|
+
};
|
|
21510
|
+
Returns: import("./types").Json;
|
|
21511
|
+
};
|
|
20963
21512
|
sync_all_layer_stocks: {
|
|
20964
21513
|
Args: never;
|
|
20965
21514
|
Returns: undefined;
|
|
@@ -21010,6 +21559,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
21010
21559
|
};
|
|
21011
21560
|
Returns: boolean;
|
|
21012
21561
|
};
|
|
21562
|
+
twinfield_cron_lock_acquire: {
|
|
21563
|
+
Args: {
|
|
21564
|
+
_job_name: string;
|
|
21565
|
+
_stale_seconds?: number;
|
|
21566
|
+
};
|
|
21567
|
+
Returns: boolean;
|
|
21568
|
+
};
|
|
21569
|
+
twinfield_cron_lock_release: {
|
|
21570
|
+
Args: {
|
|
21571
|
+
_error?: string;
|
|
21572
|
+
_job_name: string;
|
|
21573
|
+
};
|
|
21574
|
+
Returns: undefined;
|
|
21575
|
+
};
|
|
21576
|
+
twinfield_prune_push_queue: {
|
|
21577
|
+
Args: never;
|
|
21578
|
+
Returns: number;
|
|
21579
|
+
};
|
|
21013
21580
|
twinfield_register_cron: {
|
|
21014
21581
|
Args: {
|
|
21015
21582
|
apikey?: string;
|
|
@@ -21053,7 +21620,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
21053
21620
|
Enums: {
|
|
21054
21621
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
21055
21622
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
21056
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
21623
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
21057
21624
|
doc_orientation: "portrait" | "landscape";
|
|
21058
21625
|
exact_env: "staging" | "live";
|
|
21059
21626
|
exact_push_status: "pending" | "sent" | "error";
|