@flowselections/floriday-afhandeling-module 1.0.31 → 1.0.32
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/ControlePage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/ControlePage.js +23 -10
- 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/integrations/supabase/auth-middleware.d.ts +678 -116
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +678 -116
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +678 -116
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +694 -127
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +1356 -232
- package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
- package/dist-lib/lib/carriers.functions.d.ts +3390 -580
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartAssignments.functions.d.ts +3390 -580
- package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.d.ts +6780 -1160
- package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.d.ts +678 -116
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/package.json +1 -7
|
@@ -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;
|
|
@@ -7765,7 +7885,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
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 supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
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 supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
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 supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
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 supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
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;
|
|
@@ -10078,63 +10279,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10078
10279
|
};
|
|
10079
10280
|
Relationships: [];
|
|
10080
10281
|
};
|
|
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
10282
|
nmbrs_component_mapping: {
|
|
10139
10283
|
Row: {
|
|
10140
10284
|
created_at: string;
|
|
@@ -10205,13 +10349,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10205
10349
|
nmbrs_employee_number?: string;
|
|
10206
10350
|
updated_at?: string;
|
|
10207
10351
|
};
|
|
10208
|
-
Relationships: [
|
|
10209
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10210
|
-
columns: ["monteur_id"];
|
|
10211
|
-
isOneToOne: true;
|
|
10212
|
-
referencedRelation: "monteurs";
|
|
10213
|
-
referencedColumns: ["id"];
|
|
10214
|
-
}];
|
|
10352
|
+
Relationships: [];
|
|
10215
10353
|
};
|
|
10216
10354
|
nmbrs_export_lines: {
|
|
10217
10355
|
Row: {
|
|
@@ -10260,12 +10398,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10260
10398
|
wage_code?: string;
|
|
10261
10399
|
};
|
|
10262
10400
|
Relationships: [{
|
|
10263
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10264
|
-
columns: ["monteur_id"];
|
|
10265
|
-
isOneToOne: false;
|
|
10266
|
-
referencedRelation: "monteurs";
|
|
10267
|
-
referencedColumns: ["id"];
|
|
10268
|
-
}, {
|
|
10269
10401
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10270
10402
|
columns: ["run_id"];
|
|
10271
10403
|
isOneToOne: false;
|
|
@@ -12656,6 +12788,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12656
12788
|
created_at: string;
|
|
12657
12789
|
id: string;
|
|
12658
12790
|
laatst_gezien: string;
|
|
12791
|
+
laatste_fout: string | null;
|
|
12792
|
+
laatste_request_id: number | null;
|
|
12793
|
+
mislukte_posts: number;
|
|
12659
12794
|
tick_sleutel: string;
|
|
12660
12795
|
updated_at: string;
|
|
12661
12796
|
};
|
|
@@ -12665,6 +12800,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12665
12800
|
created_at?: string;
|
|
12666
12801
|
id?: string;
|
|
12667
12802
|
laatst_gezien?: string;
|
|
12803
|
+
laatste_fout?: string | null;
|
|
12804
|
+
laatste_request_id?: number | null;
|
|
12805
|
+
mislukte_posts?: number;
|
|
12668
12806
|
tick_sleutel?: string;
|
|
12669
12807
|
updated_at?: string;
|
|
12670
12808
|
};
|
|
@@ -12674,6 +12812,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12674
12812
|
created_at?: string;
|
|
12675
12813
|
id?: string;
|
|
12676
12814
|
laatst_gezien?: string;
|
|
12815
|
+
laatste_fout?: string | null;
|
|
12816
|
+
laatste_request_id?: number | null;
|
|
12817
|
+
mislukte_posts?: number;
|
|
12677
12818
|
tick_sleutel?: string;
|
|
12678
12819
|
updated_at?: string;
|
|
12679
12820
|
};
|
|
@@ -14182,6 +14323,96 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
14182
14323
|
referencedColumns: ["id"];
|
|
14183
14324
|
}];
|
|
14184
14325
|
};
|
|
14326
|
+
role_assignments: {
|
|
14327
|
+
Row: {
|
|
14328
|
+
created_at: string;
|
|
14329
|
+
id: string;
|
|
14330
|
+
role_id: string;
|
|
14331
|
+
user_id: string;
|
|
14332
|
+
};
|
|
14333
|
+
Insert: {
|
|
14334
|
+
created_at?: string;
|
|
14335
|
+
id?: string;
|
|
14336
|
+
role_id: string;
|
|
14337
|
+
user_id: string;
|
|
14338
|
+
};
|
|
14339
|
+
Update: {
|
|
14340
|
+
created_at?: string;
|
|
14341
|
+
id?: string;
|
|
14342
|
+
role_id?: string;
|
|
14343
|
+
user_id?: string;
|
|
14344
|
+
};
|
|
14345
|
+
Relationships: [{
|
|
14346
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
14347
|
+
columns: ["role_id"];
|
|
14348
|
+
isOneToOne: false;
|
|
14349
|
+
referencedRelation: "roles";
|
|
14350
|
+
referencedColumns: ["id"];
|
|
14351
|
+
}];
|
|
14352
|
+
};
|
|
14353
|
+
role_permissions: {
|
|
14354
|
+
Row: {
|
|
14355
|
+
can_edit: boolean;
|
|
14356
|
+
can_view: boolean;
|
|
14357
|
+
feature_id: string;
|
|
14358
|
+
id: string;
|
|
14359
|
+
module_id: string;
|
|
14360
|
+
role_id: string;
|
|
14361
|
+
updated_at: string;
|
|
14362
|
+
};
|
|
14363
|
+
Insert: {
|
|
14364
|
+
can_edit?: boolean;
|
|
14365
|
+
can_view?: boolean;
|
|
14366
|
+
feature_id?: string;
|
|
14367
|
+
id?: string;
|
|
14368
|
+
module_id: string;
|
|
14369
|
+
role_id: string;
|
|
14370
|
+
updated_at?: string;
|
|
14371
|
+
};
|
|
14372
|
+
Update: {
|
|
14373
|
+
can_edit?: boolean;
|
|
14374
|
+
can_view?: boolean;
|
|
14375
|
+
feature_id?: string;
|
|
14376
|
+
id?: string;
|
|
14377
|
+
module_id?: string;
|
|
14378
|
+
role_id?: string;
|
|
14379
|
+
updated_at?: string;
|
|
14380
|
+
};
|
|
14381
|
+
Relationships: [{
|
|
14382
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
14383
|
+
columns: ["role_id"];
|
|
14384
|
+
isOneToOne: false;
|
|
14385
|
+
referencedRelation: "roles";
|
|
14386
|
+
referencedColumns: ["id"];
|
|
14387
|
+
}];
|
|
14388
|
+
};
|
|
14389
|
+
roles: {
|
|
14390
|
+
Row: {
|
|
14391
|
+
created_at: string;
|
|
14392
|
+
id: string;
|
|
14393
|
+
is_protected: boolean;
|
|
14394
|
+
key: string;
|
|
14395
|
+
name: string;
|
|
14396
|
+
updated_at: string;
|
|
14397
|
+
};
|
|
14398
|
+
Insert: {
|
|
14399
|
+
created_at?: string;
|
|
14400
|
+
id?: string;
|
|
14401
|
+
is_protected?: boolean;
|
|
14402
|
+
key: string;
|
|
14403
|
+
name: string;
|
|
14404
|
+
updated_at?: string;
|
|
14405
|
+
};
|
|
14406
|
+
Update: {
|
|
14407
|
+
created_at?: string;
|
|
14408
|
+
id?: string;
|
|
14409
|
+
is_protected?: boolean;
|
|
14410
|
+
key?: string;
|
|
14411
|
+
name?: string;
|
|
14412
|
+
updated_at?: string;
|
|
14413
|
+
};
|
|
14414
|
+
Relationships: [];
|
|
14415
|
+
};
|
|
14185
14416
|
rooms: {
|
|
14186
14417
|
Row: {
|
|
14187
14418
|
capacity: number;
|
|
@@ -14851,6 +15082,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
14851
15082
|
};
|
|
14852
15083
|
Relationships: [];
|
|
14853
15084
|
};
|
|
15085
|
+
time_compensation_entries: {
|
|
15086
|
+
Row: {
|
|
15087
|
+
created_at: string;
|
|
15088
|
+
employee_id: string;
|
|
15089
|
+
entry_date: string;
|
|
15090
|
+
id: string;
|
|
15091
|
+
km: number;
|
|
15092
|
+
meal_allowance: number;
|
|
15093
|
+
notes: string | null;
|
|
15094
|
+
standby_evening: number;
|
|
15095
|
+
standby_weekend: number;
|
|
15096
|
+
tvt_change: number;
|
|
15097
|
+
updated_at: string;
|
|
15098
|
+
};
|
|
15099
|
+
Insert: {
|
|
15100
|
+
created_at?: string;
|
|
15101
|
+
employee_id: string;
|
|
15102
|
+
entry_date: string;
|
|
15103
|
+
id?: string;
|
|
15104
|
+
km?: number;
|
|
15105
|
+
meal_allowance?: number;
|
|
15106
|
+
notes?: string | null;
|
|
15107
|
+
standby_evening?: number;
|
|
15108
|
+
standby_weekend?: number;
|
|
15109
|
+
tvt_change?: number;
|
|
15110
|
+
updated_at?: string;
|
|
15111
|
+
};
|
|
15112
|
+
Update: {
|
|
15113
|
+
created_at?: string;
|
|
15114
|
+
employee_id?: string;
|
|
15115
|
+
entry_date?: string;
|
|
15116
|
+
id?: string;
|
|
15117
|
+
km?: number;
|
|
15118
|
+
meal_allowance?: number;
|
|
15119
|
+
notes?: string | null;
|
|
15120
|
+
standby_evening?: number;
|
|
15121
|
+
standby_weekend?: number;
|
|
15122
|
+
tvt_change?: number;
|
|
15123
|
+
updated_at?: string;
|
|
15124
|
+
};
|
|
15125
|
+
Relationships: [{
|
|
15126
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
15127
|
+
columns: ["employee_id"];
|
|
15128
|
+
isOneToOne: false;
|
|
15129
|
+
referencedRelation: "profiles";
|
|
15130
|
+
referencedColumns: ["id"];
|
|
15131
|
+
}];
|
|
15132
|
+
};
|
|
14854
15133
|
time_entries: {
|
|
14855
15134
|
Row: {
|
|
14856
15135
|
created_at: string;
|
|
@@ -14885,65 +15164,170 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
14885
15164
|
undertime?: number;
|
|
14886
15165
|
updated_at?: string;
|
|
14887
15166
|
};
|
|
15167
|
+
Relationships: [];
|
|
15168
|
+
};
|
|
15169
|
+
time_log_week_approvals: {
|
|
15170
|
+
Row: {
|
|
15171
|
+
approved_at: string | null;
|
|
15172
|
+
approved_by: string | null;
|
|
15173
|
+
created_at: string;
|
|
15174
|
+
employee_id: string;
|
|
15175
|
+
id: string;
|
|
15176
|
+
locked: boolean;
|
|
15177
|
+
notes: string | null;
|
|
15178
|
+
status: string;
|
|
15179
|
+
submitted_at: string | null;
|
|
15180
|
+
updated_at: string;
|
|
15181
|
+
week_start: string;
|
|
15182
|
+
};
|
|
15183
|
+
Insert: {
|
|
15184
|
+
approved_at?: string | null;
|
|
15185
|
+
approved_by?: string | null;
|
|
15186
|
+
created_at?: string;
|
|
15187
|
+
employee_id: string;
|
|
15188
|
+
id?: string;
|
|
15189
|
+
locked?: boolean;
|
|
15190
|
+
notes?: string | null;
|
|
15191
|
+
status?: string;
|
|
15192
|
+
submitted_at?: string | null;
|
|
15193
|
+
updated_at?: string;
|
|
15194
|
+
week_start: string;
|
|
15195
|
+
};
|
|
15196
|
+
Update: {
|
|
15197
|
+
approved_at?: string | null;
|
|
15198
|
+
approved_by?: string | null;
|
|
15199
|
+
created_at?: string;
|
|
15200
|
+
employee_id?: string;
|
|
15201
|
+
id?: string;
|
|
15202
|
+
locked?: boolean;
|
|
15203
|
+
notes?: string | null;
|
|
15204
|
+
status?: string;
|
|
15205
|
+
submitted_at?: string | null;
|
|
15206
|
+
updated_at?: string;
|
|
15207
|
+
week_start?: string;
|
|
15208
|
+
};
|
|
14888
15209
|
Relationships: [{
|
|
14889
|
-
foreignKeyName: "
|
|
15210
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
14890
15211
|
columns: ["employee_id"];
|
|
14891
15212
|
isOneToOne: false;
|
|
14892
|
-
referencedRelation: "
|
|
15213
|
+
referencedRelation: "profiles";
|
|
14893
15214
|
referencedColumns: ["id"];
|
|
14894
15215
|
}];
|
|
14895
15216
|
};
|
|
14896
15217
|
time_logs: {
|
|
14897
15218
|
Row: {
|
|
15219
|
+
auto_stop_reason: string | null;
|
|
15220
|
+
auto_stopped: boolean;
|
|
14898
15221
|
created_at: string;
|
|
15222
|
+
current_latitude: number | null;
|
|
15223
|
+
current_longitude: number | null;
|
|
15224
|
+
current_position_updated_at: string | null;
|
|
14899
15225
|
employee_id: string;
|
|
15226
|
+
end_latitude: number | null;
|
|
15227
|
+
end_longitude: number | null;
|
|
14900
15228
|
end_time: string | null;
|
|
15229
|
+
eta_distance_km: number | null;
|
|
15230
|
+
eta_minutes: number | null;
|
|
15231
|
+
eta_updated_at: string | null;
|
|
15232
|
+
hour_category: string | null;
|
|
14901
15233
|
id: string;
|
|
15234
|
+
last_reminder_at: string | null;
|
|
14902
15235
|
notes: string | null;
|
|
14903
15236
|
overtime_hours: number;
|
|
14904
15237
|
overtime_type: string | null;
|
|
14905
15238
|
regular_hours: number;
|
|
15239
|
+
reminder_count: number;
|
|
15240
|
+
requires_review: boolean;
|
|
15241
|
+
start_latitude: number | null;
|
|
15242
|
+
start_longitude: number | null;
|
|
14906
15243
|
start_time: string;
|
|
14907
15244
|
travel_cost: number | null;
|
|
14908
15245
|
travel_distance_km: number | null;
|
|
15246
|
+
travel_duration_min: number | null;
|
|
15247
|
+
travel_time_minutes: number | null;
|
|
14909
15248
|
type: string;
|
|
14910
15249
|
updated_at: string;
|
|
15250
|
+
work_order_id: string | null;
|
|
14911
15251
|
};
|
|
14912
15252
|
Insert: {
|
|
15253
|
+
auto_stop_reason?: string | null;
|
|
15254
|
+
auto_stopped?: boolean;
|
|
14913
15255
|
created_at?: string;
|
|
15256
|
+
current_latitude?: number | null;
|
|
15257
|
+
current_longitude?: number | null;
|
|
15258
|
+
current_position_updated_at?: string | null;
|
|
14914
15259
|
employee_id: string;
|
|
15260
|
+
end_latitude?: number | null;
|
|
15261
|
+
end_longitude?: number | null;
|
|
14915
15262
|
end_time?: string | null;
|
|
15263
|
+
eta_distance_km?: number | null;
|
|
15264
|
+
eta_minutes?: number | null;
|
|
15265
|
+
eta_updated_at?: string | null;
|
|
15266
|
+
hour_category?: string | null;
|
|
14916
15267
|
id?: string;
|
|
15268
|
+
last_reminder_at?: string | null;
|
|
14917
15269
|
notes?: string | null;
|
|
14918
15270
|
overtime_hours?: number;
|
|
14919
15271
|
overtime_type?: string | null;
|
|
14920
15272
|
regular_hours?: number;
|
|
15273
|
+
reminder_count?: number;
|
|
15274
|
+
requires_review?: boolean;
|
|
15275
|
+
start_latitude?: number | null;
|
|
15276
|
+
start_longitude?: number | null;
|
|
14921
15277
|
start_time?: string;
|
|
14922
15278
|
travel_cost?: number | null;
|
|
14923
15279
|
travel_distance_km?: number | null;
|
|
15280
|
+
travel_duration_min?: number | null;
|
|
15281
|
+
travel_time_minutes?: number | null;
|
|
14924
15282
|
type: string;
|
|
14925
15283
|
updated_at?: string;
|
|
15284
|
+
work_order_id?: string | null;
|
|
14926
15285
|
};
|
|
14927
15286
|
Update: {
|
|
15287
|
+
auto_stop_reason?: string | null;
|
|
15288
|
+
auto_stopped?: boolean;
|
|
14928
15289
|
created_at?: string;
|
|
15290
|
+
current_latitude?: number | null;
|
|
15291
|
+
current_longitude?: number | null;
|
|
15292
|
+
current_position_updated_at?: string | null;
|
|
14929
15293
|
employee_id?: string;
|
|
15294
|
+
end_latitude?: number | null;
|
|
15295
|
+
end_longitude?: number | null;
|
|
14930
15296
|
end_time?: string | null;
|
|
15297
|
+
eta_distance_km?: number | null;
|
|
15298
|
+
eta_minutes?: number | null;
|
|
15299
|
+
eta_updated_at?: string | null;
|
|
15300
|
+
hour_category?: string | null;
|
|
14931
15301
|
id?: string;
|
|
15302
|
+
last_reminder_at?: string | null;
|
|
14932
15303
|
notes?: string | null;
|
|
14933
15304
|
overtime_hours?: number;
|
|
14934
15305
|
overtime_type?: string | null;
|
|
14935
15306
|
regular_hours?: number;
|
|
15307
|
+
reminder_count?: number;
|
|
15308
|
+
requires_review?: boolean;
|
|
15309
|
+
start_latitude?: number | null;
|
|
15310
|
+
start_longitude?: number | null;
|
|
14936
15311
|
start_time?: string;
|
|
14937
15312
|
travel_cost?: number | null;
|
|
14938
15313
|
travel_distance_km?: number | null;
|
|
15314
|
+
travel_duration_min?: number | null;
|
|
15315
|
+
travel_time_minutes?: number | null;
|
|
14939
15316
|
type?: string;
|
|
14940
15317
|
updated_at?: string;
|
|
15318
|
+
work_order_id?: string | null;
|
|
14941
15319
|
};
|
|
14942
15320
|
Relationships: [{
|
|
14943
15321
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
14944
15322
|
columns: ["employee_id"];
|
|
14945
15323
|
isOneToOne: false;
|
|
14946
|
-
referencedRelation: "
|
|
15324
|
+
referencedRelation: "profiles";
|
|
15325
|
+
referencedColumns: ["id"];
|
|
15326
|
+
}, {
|
|
15327
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
15328
|
+
columns: ["work_order_id"];
|
|
15329
|
+
isOneToOne: false;
|
|
15330
|
+
referencedRelation: "work_orders";
|
|
14947
15331
|
referencedColumns: ["id"];
|
|
14948
15332
|
}];
|
|
14949
15333
|
};
|
|
@@ -14982,7 +15366,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
14982
15366
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
14983
15367
|
columns: ["employee_id"];
|
|
14984
15368
|
isOneToOne: false;
|
|
14985
|
-
referencedRelation: "
|
|
15369
|
+
referencedRelation: "profiles";
|
|
14986
15370
|
referencedColumns: ["id"];
|
|
14987
15371
|
}];
|
|
14988
15372
|
};
|
|
@@ -15292,6 +15676,39 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15292
15676
|
};
|
|
15293
15677
|
Relationships: [];
|
|
15294
15678
|
};
|
|
15679
|
+
twinfield_cron_locks: {
|
|
15680
|
+
Row: {
|
|
15681
|
+
created_at: string;
|
|
15682
|
+
heartbeat_at: string;
|
|
15683
|
+
job_name: string;
|
|
15684
|
+
last_error: string | null;
|
|
15685
|
+
last_finished_at: string | null;
|
|
15686
|
+
locked_at: string;
|
|
15687
|
+
run_id: string;
|
|
15688
|
+
updated_at: string;
|
|
15689
|
+
};
|
|
15690
|
+
Insert: {
|
|
15691
|
+
created_at?: string;
|
|
15692
|
+
heartbeat_at?: string;
|
|
15693
|
+
job_name: string;
|
|
15694
|
+
last_error?: string | null;
|
|
15695
|
+
last_finished_at?: string | null;
|
|
15696
|
+
locked_at?: string;
|
|
15697
|
+
run_id?: string;
|
|
15698
|
+
updated_at?: string;
|
|
15699
|
+
};
|
|
15700
|
+
Update: {
|
|
15701
|
+
created_at?: string;
|
|
15702
|
+
heartbeat_at?: string;
|
|
15703
|
+
job_name?: string;
|
|
15704
|
+
last_error?: string | null;
|
|
15705
|
+
last_finished_at?: string | null;
|
|
15706
|
+
locked_at?: string;
|
|
15707
|
+
run_id?: string;
|
|
15708
|
+
updated_at?: string;
|
|
15709
|
+
};
|
|
15710
|
+
Relationships: [];
|
|
15711
|
+
};
|
|
15295
15712
|
twinfield_customers: {
|
|
15296
15713
|
Row: {
|
|
15297
15714
|
address: string | null;
|
|
@@ -15892,6 +16309,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15892
16309
|
twinfield_push_queue: {
|
|
15893
16310
|
Row: {
|
|
15894
16311
|
action: string;
|
|
16312
|
+
attempt_started_at: string | null;
|
|
15895
16313
|
attempts: number;
|
|
15896
16314
|
connection_id: string | null;
|
|
15897
16315
|
created_at: string;
|
|
@@ -15908,6 +16326,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15908
16326
|
};
|
|
15909
16327
|
Insert: {
|
|
15910
16328
|
action?: string;
|
|
16329
|
+
attempt_started_at?: string | null;
|
|
15911
16330
|
attempts?: number;
|
|
15912
16331
|
connection_id?: string | null;
|
|
15913
16332
|
created_at?: string;
|
|
@@ -15924,6 +16343,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15924
16343
|
};
|
|
15925
16344
|
Update: {
|
|
15926
16345
|
action?: string;
|
|
16346
|
+
attempt_started_at?: string | null;
|
|
15927
16347
|
attempts?: number;
|
|
15928
16348
|
connection_id?: string | null;
|
|
15929
16349
|
created_at?: string;
|
|
@@ -16121,13 +16541,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
16121
16541
|
workday_end?: string | null;
|
|
16122
16542
|
workday_start?: string | null;
|
|
16123
16543
|
};
|
|
16124
|
-
Relationships: [
|
|
16125
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
16126
|
-
columns: ["monteur_id"];
|
|
16127
|
-
isOneToOne: true;
|
|
16128
|
-
referencedRelation: "monteurs";
|
|
16129
|
-
referencedColumns: ["id"];
|
|
16130
|
-
}];
|
|
16544
|
+
Relationships: [];
|
|
16131
16545
|
};
|
|
16132
16546
|
uren_entries: {
|
|
16133
16547
|
Row: {
|
|
@@ -16173,12 +16587,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
16173
16587
|
werkbon_id?: string | null;
|
|
16174
16588
|
};
|
|
16175
16589
|
Relationships: [{
|
|
16176
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16177
|
-
columns: ["monteur_id"];
|
|
16178
|
-
isOneToOne: false;
|
|
16179
|
-
referencedRelation: "monteurs";
|
|
16180
|
-
referencedColumns: ["id"];
|
|
16181
|
-
}, {
|
|
16182
16590
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16183
16591
|
columns: ["werkbon_id"];
|
|
16184
16592
|
isOneToOne: false;
|
|
@@ -16646,17 +17054,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
16646
17054
|
submitted_at?: string | null;
|
|
16647
17055
|
updated_at?: string;
|
|
16648
17056
|
};
|
|
16649
|
-
Relationships: [
|
|
16650
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
16651
|
-
columns: ["monteur_id"];
|
|
16652
|
-
isOneToOne: false;
|
|
16653
|
-
referencedRelation: "monteurs";
|
|
16654
|
-
referencedColumns: ["id"];
|
|
16655
|
-
}];
|
|
17057
|
+
Relationships: [];
|
|
16656
17058
|
};
|
|
16657
17059
|
user_module_permissions: {
|
|
16658
17060
|
Row: {
|
|
16659
17061
|
created_at: string;
|
|
17062
|
+
feature_id: string;
|
|
16660
17063
|
id: string;
|
|
16661
17064
|
module_id: string;
|
|
16662
17065
|
permission: string;
|
|
@@ -16665,6 +17068,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
16665
17068
|
};
|
|
16666
17069
|
Insert: {
|
|
16667
17070
|
created_at?: string;
|
|
17071
|
+
feature_id?: string;
|
|
16668
17072
|
id?: string;
|
|
16669
17073
|
module_id: string;
|
|
16670
17074
|
permission: string;
|
|
@@ -16673,6 +17077,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
16673
17077
|
};
|
|
16674
17078
|
Update: {
|
|
16675
17079
|
created_at?: string;
|
|
17080
|
+
feature_id?: string;
|
|
16676
17081
|
id?: string;
|
|
16677
17082
|
module_id?: string;
|
|
16678
17083
|
permission?: string;
|
|
@@ -16708,6 +17113,51 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
16708
17113
|
referencedColumns: ["id"];
|
|
16709
17114
|
}];
|
|
16710
17115
|
};
|
|
17116
|
+
van_inventories: {
|
|
17117
|
+
Row: {
|
|
17118
|
+
barcode: string | null;
|
|
17119
|
+
created_at: string;
|
|
17120
|
+
id: string;
|
|
17121
|
+
monteur_id: string | null;
|
|
17122
|
+
price_per_unit: number;
|
|
17123
|
+
product_name: string;
|
|
17124
|
+
quantity_current: number;
|
|
17125
|
+
quantity_min: number;
|
|
17126
|
+
unit: string;
|
|
17127
|
+
updated_at: string;
|
|
17128
|
+
};
|
|
17129
|
+
Insert: {
|
|
17130
|
+
barcode?: string | null;
|
|
17131
|
+
created_at?: string;
|
|
17132
|
+
id?: string;
|
|
17133
|
+
monteur_id?: string | null;
|
|
17134
|
+
price_per_unit?: number;
|
|
17135
|
+
product_name: string;
|
|
17136
|
+
quantity_current?: number;
|
|
17137
|
+
quantity_min?: number;
|
|
17138
|
+
unit?: string;
|
|
17139
|
+
updated_at?: string;
|
|
17140
|
+
};
|
|
17141
|
+
Update: {
|
|
17142
|
+
barcode?: string | null;
|
|
17143
|
+
created_at?: string;
|
|
17144
|
+
id?: string;
|
|
17145
|
+
monteur_id?: string | null;
|
|
17146
|
+
price_per_unit?: number;
|
|
17147
|
+
product_name?: string;
|
|
17148
|
+
quantity_current?: number;
|
|
17149
|
+
quantity_min?: number;
|
|
17150
|
+
unit?: string;
|
|
17151
|
+
updated_at?: string;
|
|
17152
|
+
};
|
|
17153
|
+
Relationships: [{
|
|
17154
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
17155
|
+
columns: ["monteur_id"];
|
|
17156
|
+
isOneToOne: false;
|
|
17157
|
+
referencedRelation: "profiles";
|
|
17158
|
+
referencedColumns: ["id"];
|
|
17159
|
+
}];
|
|
17160
|
+
};
|
|
16711
17161
|
voorraad_custom_fields: {
|
|
16712
17162
|
Row: {
|
|
16713
17163
|
created_at: string;
|
|
@@ -17658,7 +18108,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17658
18108
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
17659
18109
|
columns: ["monteur_id"];
|
|
17660
18110
|
isOneToOne: false;
|
|
17661
|
-
referencedRelation: "
|
|
18111
|
+
referencedRelation: "profiles";
|
|
17662
18112
|
referencedColumns: ["id"];
|
|
17663
18113
|
}, {
|
|
17664
18114
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -17668,6 +18118,60 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17668
18118
|
referencedColumns: ["id"];
|
|
17669
18119
|
}];
|
|
17670
18120
|
};
|
|
18121
|
+
work_order_photos: {
|
|
18122
|
+
Row: {
|
|
18123
|
+
ai_caption: string | null;
|
|
18124
|
+
ai_categorized_at: string | null;
|
|
18125
|
+
ai_labels: import("./types").Json | null;
|
|
18126
|
+
caption: string | null;
|
|
18127
|
+
created_at: string;
|
|
18128
|
+
id: string;
|
|
18129
|
+
monteur_id: string | null;
|
|
18130
|
+
photo_type: string;
|
|
18131
|
+
storage_path: string;
|
|
18132
|
+
updated_at: string;
|
|
18133
|
+
work_order_id: string;
|
|
18134
|
+
};
|
|
18135
|
+
Insert: {
|
|
18136
|
+
ai_caption?: string | null;
|
|
18137
|
+
ai_categorized_at?: string | null;
|
|
18138
|
+
ai_labels?: import("./types").Json | null;
|
|
18139
|
+
caption?: string | null;
|
|
18140
|
+
created_at?: string;
|
|
18141
|
+
id?: string;
|
|
18142
|
+
monteur_id?: string | null;
|
|
18143
|
+
photo_type?: string;
|
|
18144
|
+
storage_path: string;
|
|
18145
|
+
updated_at?: string;
|
|
18146
|
+
work_order_id: string;
|
|
18147
|
+
};
|
|
18148
|
+
Update: {
|
|
18149
|
+
ai_caption?: string | null;
|
|
18150
|
+
ai_categorized_at?: string | null;
|
|
18151
|
+
ai_labels?: import("./types").Json | null;
|
|
18152
|
+
caption?: string | null;
|
|
18153
|
+
created_at?: string;
|
|
18154
|
+
id?: string;
|
|
18155
|
+
monteur_id?: string | null;
|
|
18156
|
+
photo_type?: string;
|
|
18157
|
+
storage_path?: string;
|
|
18158
|
+
updated_at?: string;
|
|
18159
|
+
work_order_id?: string;
|
|
18160
|
+
};
|
|
18161
|
+
Relationships: [{
|
|
18162
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
18163
|
+
columns: ["monteur_id"];
|
|
18164
|
+
isOneToOne: false;
|
|
18165
|
+
referencedRelation: "profiles";
|
|
18166
|
+
referencedColumns: ["id"];
|
|
18167
|
+
}, {
|
|
18168
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
18169
|
+
columns: ["work_order_id"];
|
|
18170
|
+
isOneToOne: false;
|
|
18171
|
+
referencedRelation: "work_orders";
|
|
18172
|
+
referencedColumns: ["id"];
|
|
18173
|
+
}];
|
|
18174
|
+
};
|
|
17671
18175
|
work_orders: {
|
|
17672
18176
|
Row: {
|
|
17673
18177
|
assigned_to: string | null;
|
|
@@ -17699,7 +18203,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17699
18203
|
scheduled_end_time: string | null;
|
|
17700
18204
|
scheduled_start_time: string | null;
|
|
17701
18205
|
status: string;
|
|
17702
|
-
tenant_id: string;
|
|
17703
18206
|
total_hours_worked: number | null;
|
|
17704
18207
|
total_price: number | null;
|
|
17705
18208
|
travel_time_minutes: number | null;
|
|
@@ -17737,7 +18240,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17737
18240
|
scheduled_end_time?: string | null;
|
|
17738
18241
|
scheduled_start_time?: string | null;
|
|
17739
18242
|
status?: string;
|
|
17740
|
-
tenant_id: string;
|
|
17741
18243
|
total_hours_worked?: number | null;
|
|
17742
18244
|
total_price?: number | null;
|
|
17743
18245
|
travel_time_minutes?: number | null;
|
|
@@ -17775,7 +18277,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17775
18277
|
scheduled_end_time?: string | null;
|
|
17776
18278
|
scheduled_start_time?: string | null;
|
|
17777
18279
|
status?: string;
|
|
17778
|
-
tenant_id?: string;
|
|
17779
18280
|
total_hours_worked?: number | null;
|
|
17780
18281
|
total_price?: number | null;
|
|
17781
18282
|
travel_time_minutes?: number | null;
|
|
@@ -17789,12 +18290,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17789
18290
|
isOneToOne: false;
|
|
17790
18291
|
referencedRelation: "work_orders";
|
|
17791
18292
|
referencedColumns: ["id"];
|
|
17792
|
-
}, {
|
|
17793
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
17794
|
-
columns: ["tenant_id"];
|
|
17795
|
-
isOneToOne: false;
|
|
17796
|
-
referencedRelation: "tenants";
|
|
17797
|
-
referencedColumns: ["id"];
|
|
17798
18293
|
}];
|
|
17799
18294
|
};
|
|
17800
18295
|
};
|
|
@@ -18530,6 +19025,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18530
19025
|
};
|
|
18531
19026
|
Returns: number;
|
|
18532
19027
|
};
|
|
19028
|
+
can_manage_hours: {
|
|
19029
|
+
Args: never;
|
|
19030
|
+
Returns: boolean;
|
|
19031
|
+
};
|
|
18533
19032
|
check_offer_product_available_stock: {
|
|
18534
19033
|
Args: {
|
|
18535
19034
|
p_campaign_product_id: string;
|
|
@@ -18719,6 +19218,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18719
19218
|
};
|
|
18720
19219
|
Returns: {
|
|
18721
19220
|
action: string;
|
|
19221
|
+
attempt_started_at: string | null;
|
|
18722
19222
|
attempts: number;
|
|
18723
19223
|
connection_id: string | null;
|
|
18724
19224
|
created_at: string;
|
|
@@ -18806,6 +19306,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18806
19306
|
agent_naam: string;
|
|
18807
19307
|
}[];
|
|
18808
19308
|
};
|
|
19309
|
+
consume_van_inventory: {
|
|
19310
|
+
Args: {
|
|
19311
|
+
p_inventory_id: string;
|
|
19312
|
+
p_quantity: number;
|
|
19313
|
+
};
|
|
19314
|
+
Returns: {
|
|
19315
|
+
barcode: string | null;
|
|
19316
|
+
created_at: string;
|
|
19317
|
+
id: string;
|
|
19318
|
+
monteur_id: string | null;
|
|
19319
|
+
price_per_unit: number;
|
|
19320
|
+
product_name: string;
|
|
19321
|
+
quantity_current: number;
|
|
19322
|
+
quantity_min: number;
|
|
19323
|
+
unit: string;
|
|
19324
|
+
updated_at: string;
|
|
19325
|
+
};
|
|
19326
|
+
SetofOptions: {
|
|
19327
|
+
from: "*";
|
|
19328
|
+
to: "van_inventories";
|
|
19329
|
+
isOneToOne: true;
|
|
19330
|
+
isSetofReturn: false;
|
|
19331
|
+
};
|
|
19332
|
+
};
|
|
18809
19333
|
control_get_todays_carts: {
|
|
18810
19334
|
Args: never;
|
|
18811
19335
|
Returns: {
|
|
@@ -18879,6 +19403,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18879
19403
|
_user_id: string;
|
|
18880
19404
|
};
|
|
18881
19405
|
Returns: string;
|
|
19406
|
+
} | {
|
|
19407
|
+
Args: {
|
|
19408
|
+
_feature_id?: string;
|
|
19409
|
+
_module_id: string;
|
|
19410
|
+
_user_id: string;
|
|
19411
|
+
};
|
|
19412
|
+
Returns: string;
|
|
18882
19413
|
};
|
|
18883
19414
|
email_auth_decrypt: {
|
|
18884
19415
|
Args: {
|
|
@@ -19230,12 +19761,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
19230
19761
|
Args: never;
|
|
19231
19762
|
Returns: string;
|
|
19232
19763
|
};
|
|
19233
|
-
get_work_order_tenant_id: {
|
|
19234
|
-
Args: {
|
|
19235
|
-
wo_id: string;
|
|
19236
|
-
};
|
|
19237
|
-
Returns: string;
|
|
19238
|
-
};
|
|
19239
19764
|
has_module_permission: {
|
|
19240
19765
|
Args: {
|
|
19241
19766
|
_min: string;
|
|
@@ -19269,6 +19794,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
19269
19794
|
};
|
|
19270
19795
|
Returns: boolean;
|
|
19271
19796
|
};
|
|
19797
|
+
is_time_log_week_locked: {
|
|
19798
|
+
Args: {
|
|
19799
|
+
p_employee_id: string;
|
|
19800
|
+
p_start_time: string;
|
|
19801
|
+
};
|
|
19802
|
+
Returns: boolean;
|
|
19803
|
+
};
|
|
19272
19804
|
is_user_admin: {
|
|
19273
19805
|
Args: never;
|
|
19274
19806
|
Returns: boolean;
|
|
@@ -19283,13 +19815,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
19283
19815
|
};
|
|
19284
19816
|
Returns: boolean;
|
|
19285
19817
|
};
|
|
19286
|
-
|
|
19818
|
+
list_medewerkers: {
|
|
19287
19819
|
Args: never;
|
|
19288
19820
|
Returns: {
|
|
19289
19821
|
avatar_url: string;
|
|
19290
19822
|
display_name: string;
|
|
19291
19823
|
email: string;
|
|
19292
19824
|
id: string;
|
|
19825
|
+
roles: string[];
|
|
19293
19826
|
}[];
|
|
19294
19827
|
};
|
|
19295
19828
|
list_my_planning_items: {
|
|
@@ -20080,6 +20613,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20080
20613
|
my_module_permissions: {
|
|
20081
20614
|
Args: never;
|
|
20082
20615
|
Returns: {
|
|
20616
|
+
feature_id: string;
|
|
20083
20617
|
module_id: string;
|
|
20084
20618
|
permission: string;
|
|
20085
20619
|
}[];
|
|
@@ -20960,6 +21494,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20960
21494
|
};
|
|
20961
21495
|
Returns: string[];
|
|
20962
21496
|
};
|
|
21497
|
+
switch_time_log: {
|
|
21498
|
+
Args: {
|
|
21499
|
+
p_employee_id: string;
|
|
21500
|
+
p_start_lat?: number;
|
|
21501
|
+
p_start_lng?: number;
|
|
21502
|
+
p_type: string;
|
|
21503
|
+
p_work_order_id?: string;
|
|
21504
|
+
};
|
|
21505
|
+
Returns: import("./types").Json;
|
|
21506
|
+
};
|
|
20963
21507
|
sync_all_layer_stocks: {
|
|
20964
21508
|
Args: never;
|
|
20965
21509
|
Returns: undefined;
|
|
@@ -21010,6 +21554,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
21010
21554
|
};
|
|
21011
21555
|
Returns: boolean;
|
|
21012
21556
|
};
|
|
21557
|
+
twinfield_cron_lock_acquire: {
|
|
21558
|
+
Args: {
|
|
21559
|
+
_job_name: string;
|
|
21560
|
+
_stale_seconds?: number;
|
|
21561
|
+
};
|
|
21562
|
+
Returns: boolean;
|
|
21563
|
+
};
|
|
21564
|
+
twinfield_cron_lock_release: {
|
|
21565
|
+
Args: {
|
|
21566
|
+
_error?: string;
|
|
21567
|
+
_job_name: string;
|
|
21568
|
+
};
|
|
21569
|
+
Returns: undefined;
|
|
21570
|
+
};
|
|
21571
|
+
twinfield_prune_push_queue: {
|
|
21572
|
+
Args: never;
|
|
21573
|
+
Returns: number;
|
|
21574
|
+
};
|
|
21013
21575
|
twinfield_register_cron: {
|
|
21014
21576
|
Args: {
|
|
21015
21577
|
apikey?: string;
|