@flowselections/logistiek-engine 1.0.7 → 1.0.9
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/README.md +24 -24
- package/dist-lib/components/RuleEnginePage.d.ts +1 -1
- package/dist-lib/components/RuleEnginePage.d.ts.map +1 -1
- package/dist-lib/components/RuleEnginePage.js +22 -2
- package/dist-lib/hooks/useRecalcJob.js +1 -1
- package/dist-lib/hooks/useRuleEngine.d.ts.map +1 -1
- package/dist-lib/hooks/useRuleEngine.js +3 -1
- package/dist-lib/integrations/supabase/auth-attacher.js +1 -1
- 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.d.ts +8 -787
- package/dist-lib/integrations/supabase/client.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/moduleClient.d.ts +21640 -0
- package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -0
- package/dist-lib/integrations/supabase/moduleClient.js +31 -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/floridayDocuments.functions.d.ts +2085 -384
- package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
- package/dist-lib/lib/floridayPush.functions.d.ts +695 -128
- package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
- package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +3505 -645
- package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +1390 -256
- package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsRecalculate.functions.d.ts +695 -128
- package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
- package/dist-lib/lib/modulePrompts.d.ts +0 -1
- package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
- package/dist-lib/lib/modulePrompts.js +970 -960
- package/package.json +1 -1
|
@@ -872,6 +872,126 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
872
872
|
};
|
|
873
873
|
Relationships: [];
|
|
874
874
|
};
|
|
875
|
+
cao_holidays: {
|
|
876
|
+
Row: {
|
|
877
|
+
created_at: string;
|
|
878
|
+
description: string | null;
|
|
879
|
+
holiday_date: string;
|
|
880
|
+
id: string;
|
|
881
|
+
updated_at: string;
|
|
882
|
+
};
|
|
883
|
+
Insert: {
|
|
884
|
+
created_at?: string;
|
|
885
|
+
description?: string | null;
|
|
886
|
+
holiday_date: string;
|
|
887
|
+
id?: string;
|
|
888
|
+
updated_at?: string;
|
|
889
|
+
};
|
|
890
|
+
Update: {
|
|
891
|
+
created_at?: string;
|
|
892
|
+
description?: string | null;
|
|
893
|
+
holiday_date?: string;
|
|
894
|
+
id?: string;
|
|
895
|
+
updated_at?: string;
|
|
896
|
+
};
|
|
897
|
+
Relationships: [];
|
|
898
|
+
};
|
|
899
|
+
cao_settings: {
|
|
900
|
+
Row: {
|
|
901
|
+
auto_break_after_hours: number;
|
|
902
|
+
auto_break_minutes: number;
|
|
903
|
+
auto_break_unpaid: boolean;
|
|
904
|
+
auto_stop_after_hours: number;
|
|
905
|
+
callout_fee: number;
|
|
906
|
+
created_at: string;
|
|
907
|
+
daily_regular_hours: number;
|
|
908
|
+
default_hourly_rate: number;
|
|
909
|
+
id: string;
|
|
910
|
+
materials_markup_percent: number;
|
|
911
|
+
max_daily_hours: number;
|
|
912
|
+
max_weekly_hours: number;
|
|
913
|
+
meal_allowance_amount: number;
|
|
914
|
+
overtime_pct_178: number;
|
|
915
|
+
overtime_pct_189: number;
|
|
916
|
+
overtime_pct_212: number;
|
|
917
|
+
reminder_after_hours: number;
|
|
918
|
+
standby_evening_amount: number;
|
|
919
|
+
standby_weekend_amount: number;
|
|
920
|
+
travel_cost_per_km: number | null;
|
|
921
|
+
travel_cost_threshold_km: number | null;
|
|
922
|
+
travel_counts_as_work: boolean;
|
|
923
|
+
travel_hourly_rate: number;
|
|
924
|
+
travel_rate_per_hour: number;
|
|
925
|
+
travel_threshold_minutes: number;
|
|
926
|
+
updated_at: string;
|
|
927
|
+
weekend_always_212: boolean;
|
|
928
|
+
window_end: string;
|
|
929
|
+
window_start: string;
|
|
930
|
+
};
|
|
931
|
+
Insert: {
|
|
932
|
+
auto_break_after_hours?: number;
|
|
933
|
+
auto_break_minutes?: number;
|
|
934
|
+
auto_break_unpaid?: boolean;
|
|
935
|
+
auto_stop_after_hours?: number;
|
|
936
|
+
callout_fee?: number;
|
|
937
|
+
created_at?: string;
|
|
938
|
+
daily_regular_hours?: number;
|
|
939
|
+
default_hourly_rate?: number;
|
|
940
|
+
id?: string;
|
|
941
|
+
materials_markup_percent?: number;
|
|
942
|
+
max_daily_hours?: number;
|
|
943
|
+
max_weekly_hours?: number;
|
|
944
|
+
meal_allowance_amount?: number;
|
|
945
|
+
overtime_pct_178?: number;
|
|
946
|
+
overtime_pct_189?: number;
|
|
947
|
+
overtime_pct_212?: number;
|
|
948
|
+
reminder_after_hours?: number;
|
|
949
|
+
standby_evening_amount?: number;
|
|
950
|
+
standby_weekend_amount?: number;
|
|
951
|
+
travel_cost_per_km?: number | null;
|
|
952
|
+
travel_cost_threshold_km?: number | null;
|
|
953
|
+
travel_counts_as_work?: boolean;
|
|
954
|
+
travel_hourly_rate?: number;
|
|
955
|
+
travel_rate_per_hour?: number;
|
|
956
|
+
travel_threshold_minutes?: number;
|
|
957
|
+
updated_at?: string;
|
|
958
|
+
weekend_always_212?: boolean;
|
|
959
|
+
window_end?: string;
|
|
960
|
+
window_start?: string;
|
|
961
|
+
};
|
|
962
|
+
Update: {
|
|
963
|
+
auto_break_after_hours?: number;
|
|
964
|
+
auto_break_minutes?: number;
|
|
965
|
+
auto_break_unpaid?: boolean;
|
|
966
|
+
auto_stop_after_hours?: number;
|
|
967
|
+
callout_fee?: number;
|
|
968
|
+
created_at?: string;
|
|
969
|
+
daily_regular_hours?: number;
|
|
970
|
+
default_hourly_rate?: number;
|
|
971
|
+
id?: string;
|
|
972
|
+
materials_markup_percent?: number;
|
|
973
|
+
max_daily_hours?: number;
|
|
974
|
+
max_weekly_hours?: number;
|
|
975
|
+
meal_allowance_amount?: number;
|
|
976
|
+
overtime_pct_178?: number;
|
|
977
|
+
overtime_pct_189?: number;
|
|
978
|
+
overtime_pct_212?: number;
|
|
979
|
+
reminder_after_hours?: number;
|
|
980
|
+
standby_evening_amount?: number;
|
|
981
|
+
standby_weekend_amount?: number;
|
|
982
|
+
travel_cost_per_km?: number | null;
|
|
983
|
+
travel_cost_threshold_km?: number | null;
|
|
984
|
+
travel_counts_as_work?: boolean;
|
|
985
|
+
travel_hourly_rate?: number;
|
|
986
|
+
travel_rate_per_hour?: number;
|
|
987
|
+
travel_threshold_minutes?: number;
|
|
988
|
+
updated_at?: string;
|
|
989
|
+
weekend_always_212?: boolean;
|
|
990
|
+
window_end?: string;
|
|
991
|
+
window_start?: string;
|
|
992
|
+
};
|
|
993
|
+
Relationships: [];
|
|
994
|
+
};
|
|
875
995
|
carrier_shipping_rates: {
|
|
876
996
|
Row: {
|
|
877
997
|
carrier_id: string;
|
|
@@ -7766,7 +7886,6 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
7766
7886
|
start_date: string;
|
|
7767
7887
|
start_time: string | null;
|
|
7768
7888
|
status: string;
|
|
7769
|
-
tenant_id: string;
|
|
7770
7889
|
updated_at: string;
|
|
7771
7890
|
user_id: string;
|
|
7772
7891
|
};
|
|
@@ -7784,7 +7903,6 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
7784
7903
|
start_date: string;
|
|
7785
7904
|
start_time?: string | null;
|
|
7786
7905
|
status?: string;
|
|
7787
|
-
tenant_id?: string;
|
|
7788
7906
|
updated_at?: string;
|
|
7789
7907
|
user_id: string;
|
|
7790
7908
|
};
|
|
@@ -7802,7 +7920,6 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
7802
7920
|
start_date?: string;
|
|
7803
7921
|
start_time?: string | null;
|
|
7804
7922
|
status?: string;
|
|
7805
|
-
tenant_id?: string;
|
|
7806
7923
|
updated_at?: string;
|
|
7807
7924
|
user_id?: string;
|
|
7808
7925
|
};
|
|
@@ -7810,13 +7927,13 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
7810
7927
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
7811
7928
|
columns: ["monteur_id"];
|
|
7812
7929
|
isOneToOne: false;
|
|
7813
|
-
referencedRelation: "
|
|
7930
|
+
referencedRelation: "profiles";
|
|
7814
7931
|
referencedColumns: ["id"];
|
|
7815
7932
|
}, {
|
|
7816
7933
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
7817
7934
|
columns: ["user_id"];
|
|
7818
7935
|
isOneToOne: false;
|
|
7819
|
-
referencedRelation: "
|
|
7936
|
+
referencedRelation: "profiles";
|
|
7820
7937
|
referencedColumns: ["id"];
|
|
7821
7938
|
}];
|
|
7822
7939
|
};
|
|
@@ -9971,6 +10088,90 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
9971
10088
|
};
|
|
9972
10089
|
Relationships: [];
|
|
9973
10090
|
};
|
|
10091
|
+
material_usage: {
|
|
10092
|
+
Row: {
|
|
10093
|
+
created_at: string;
|
|
10094
|
+
id: string;
|
|
10095
|
+
material_name: string;
|
|
10096
|
+
monteur_id: string | null;
|
|
10097
|
+
price_at_time: number;
|
|
10098
|
+
quantity_used: number;
|
|
10099
|
+
updated_at: string;
|
|
10100
|
+
van_inventory_id: string | null;
|
|
10101
|
+
work_order_id: string;
|
|
10102
|
+
};
|
|
10103
|
+
Insert: {
|
|
10104
|
+
created_at?: string;
|
|
10105
|
+
id?: string;
|
|
10106
|
+
material_name: string;
|
|
10107
|
+
monteur_id?: string | null;
|
|
10108
|
+
price_at_time?: number;
|
|
10109
|
+
quantity_used?: number;
|
|
10110
|
+
updated_at?: string;
|
|
10111
|
+
van_inventory_id?: string | null;
|
|
10112
|
+
work_order_id: string;
|
|
10113
|
+
};
|
|
10114
|
+
Update: {
|
|
10115
|
+
created_at?: string;
|
|
10116
|
+
id?: string;
|
|
10117
|
+
material_name?: string;
|
|
10118
|
+
monteur_id?: string | null;
|
|
10119
|
+
price_at_time?: number;
|
|
10120
|
+
quantity_used?: number;
|
|
10121
|
+
updated_at?: string;
|
|
10122
|
+
van_inventory_id?: string | null;
|
|
10123
|
+
work_order_id?: string;
|
|
10124
|
+
};
|
|
10125
|
+
Relationships: [{
|
|
10126
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
10127
|
+
columns: ["monteur_id"];
|
|
10128
|
+
isOneToOne: false;
|
|
10129
|
+
referencedRelation: "profiles";
|
|
10130
|
+
referencedColumns: ["id"];
|
|
10131
|
+
}, {
|
|
10132
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
10133
|
+
columns: ["van_inventory_id"];
|
|
10134
|
+
isOneToOne: false;
|
|
10135
|
+
referencedRelation: "van_inventories";
|
|
10136
|
+
referencedColumns: ["id"];
|
|
10137
|
+
}, {
|
|
10138
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
10139
|
+
columns: ["work_order_id"];
|
|
10140
|
+
isOneToOne: false;
|
|
10141
|
+
referencedRelation: "work_orders";
|
|
10142
|
+
referencedColumns: ["id"];
|
|
10143
|
+
}];
|
|
10144
|
+
};
|
|
10145
|
+
module_features: {
|
|
10146
|
+
Row: {
|
|
10147
|
+
created_at: string;
|
|
10148
|
+
feature_id: string;
|
|
10149
|
+
id: string;
|
|
10150
|
+
is_active: boolean;
|
|
10151
|
+
last_seen_at: string;
|
|
10152
|
+
module_id: string;
|
|
10153
|
+
name: string;
|
|
10154
|
+
};
|
|
10155
|
+
Insert: {
|
|
10156
|
+
created_at?: string;
|
|
10157
|
+
feature_id: string;
|
|
10158
|
+
id?: string;
|
|
10159
|
+
is_active?: boolean;
|
|
10160
|
+
last_seen_at?: string;
|
|
10161
|
+
module_id: string;
|
|
10162
|
+
name: string;
|
|
10163
|
+
};
|
|
10164
|
+
Update: {
|
|
10165
|
+
created_at?: string;
|
|
10166
|
+
feature_id?: string;
|
|
10167
|
+
id?: string;
|
|
10168
|
+
is_active?: boolean;
|
|
10169
|
+
last_seen_at?: string;
|
|
10170
|
+
module_id?: string;
|
|
10171
|
+
name?: string;
|
|
10172
|
+
};
|
|
10173
|
+
Relationships: [];
|
|
10174
|
+
};
|
|
9974
10175
|
module_permissions: {
|
|
9975
10176
|
Row: {
|
|
9976
10177
|
created_at: string;
|
|
@@ -10001,6 +10202,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
10001
10202
|
module_registry: {
|
|
10002
10203
|
Row: {
|
|
10003
10204
|
created_at: string;
|
|
10205
|
+
enforce: boolean;
|
|
10004
10206
|
is_active: boolean;
|
|
10005
10207
|
last_seen_at: string;
|
|
10006
10208
|
module_id: string;
|
|
@@ -10010,6 +10212,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
10010
10212
|
};
|
|
10011
10213
|
Insert: {
|
|
10012
10214
|
created_at?: string;
|
|
10215
|
+
enforce?: boolean;
|
|
10013
10216
|
is_active?: boolean;
|
|
10014
10217
|
last_seen_at?: string;
|
|
10015
10218
|
module_id: string;
|
|
@@ -10019,6 +10222,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
10019
10222
|
};
|
|
10020
10223
|
Update: {
|
|
10021
10224
|
created_at?: string;
|
|
10225
|
+
enforce?: boolean;
|
|
10022
10226
|
is_active?: boolean;
|
|
10023
10227
|
last_seen_at?: string;
|
|
10024
10228
|
module_id?: string;
|
|
@@ -10079,63 +10283,6 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
10079
10283
|
};
|
|
10080
10284
|
Relationships: [];
|
|
10081
10285
|
};
|
|
10082
|
-
monteurs: {
|
|
10083
|
-
Row: {
|
|
10084
|
-
avatar_url: string | null;
|
|
10085
|
-
color: string | null;
|
|
10086
|
-
created_at: string;
|
|
10087
|
-
email: string | null;
|
|
10088
|
-
id: string;
|
|
10089
|
-
is_active: boolean;
|
|
10090
|
-
leave_balance_hours: number;
|
|
10091
|
-
name: string;
|
|
10092
|
-
persnr: number | null;
|
|
10093
|
-
phone: string | null;
|
|
10094
|
-
role: string;
|
|
10095
|
-
tenant_id: string;
|
|
10096
|
-
updated_at: string;
|
|
10097
|
-
user_id: string | null;
|
|
10098
|
-
};
|
|
10099
|
-
Insert: {
|
|
10100
|
-
avatar_url?: string | null;
|
|
10101
|
-
color?: string | null;
|
|
10102
|
-
created_at?: string;
|
|
10103
|
-
email?: string | null;
|
|
10104
|
-
id?: string;
|
|
10105
|
-
is_active?: boolean;
|
|
10106
|
-
leave_balance_hours?: number;
|
|
10107
|
-
name: string;
|
|
10108
|
-
persnr?: number | null;
|
|
10109
|
-
phone?: string | null;
|
|
10110
|
-
role?: string;
|
|
10111
|
-
tenant_id: string;
|
|
10112
|
-
updated_at?: string;
|
|
10113
|
-
user_id?: string | null;
|
|
10114
|
-
};
|
|
10115
|
-
Update: {
|
|
10116
|
-
avatar_url?: string | null;
|
|
10117
|
-
color?: string | null;
|
|
10118
|
-
created_at?: string;
|
|
10119
|
-
email?: string | null;
|
|
10120
|
-
id?: string;
|
|
10121
|
-
is_active?: boolean;
|
|
10122
|
-
leave_balance_hours?: number;
|
|
10123
|
-
name?: string;
|
|
10124
|
-
persnr?: number | null;
|
|
10125
|
-
phone?: string | null;
|
|
10126
|
-
role?: string;
|
|
10127
|
-
tenant_id?: string;
|
|
10128
|
-
updated_at?: string;
|
|
10129
|
-
user_id?: string | null;
|
|
10130
|
-
};
|
|
10131
|
-
Relationships: [{
|
|
10132
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
10133
|
-
columns: ["tenant_id"];
|
|
10134
|
-
isOneToOne: false;
|
|
10135
|
-
referencedRelation: "tenants";
|
|
10136
|
-
referencedColumns: ["id"];
|
|
10137
|
-
}];
|
|
10138
|
-
};
|
|
10139
10286
|
nmbrs_component_mapping: {
|
|
10140
10287
|
Row: {
|
|
10141
10288
|
created_at: string;
|
|
@@ -10206,13 +10353,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
10206
10353
|
nmbrs_employee_number?: string;
|
|
10207
10354
|
updated_at?: string;
|
|
10208
10355
|
};
|
|
10209
|
-
Relationships: [
|
|
10210
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10211
|
-
columns: ["monteur_id"];
|
|
10212
|
-
isOneToOne: true;
|
|
10213
|
-
referencedRelation: "monteurs";
|
|
10214
|
-
referencedColumns: ["id"];
|
|
10215
|
-
}];
|
|
10356
|
+
Relationships: [];
|
|
10216
10357
|
};
|
|
10217
10358
|
nmbrs_export_lines: {
|
|
10218
10359
|
Row: {
|
|
@@ -10261,12 +10402,6 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
10261
10402
|
wage_code?: string;
|
|
10262
10403
|
};
|
|
10263
10404
|
Relationships: [{
|
|
10264
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10265
|
-
columns: ["monteur_id"];
|
|
10266
|
-
isOneToOne: false;
|
|
10267
|
-
referencedRelation: "monteurs";
|
|
10268
|
-
referencedColumns: ["id"];
|
|
10269
|
-
}, {
|
|
10270
10405
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10271
10406
|
columns: ["run_id"];
|
|
10272
10407
|
isOneToOne: false;
|
|
@@ -12657,6 +12792,9 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
12657
12792
|
created_at: string;
|
|
12658
12793
|
id: string;
|
|
12659
12794
|
laatst_gezien: string;
|
|
12795
|
+
laatste_fout: string | null;
|
|
12796
|
+
laatste_request_id: number | null;
|
|
12797
|
+
mislukte_posts: number;
|
|
12660
12798
|
tick_sleutel: string;
|
|
12661
12799
|
updated_at: string;
|
|
12662
12800
|
};
|
|
@@ -12666,6 +12804,9 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
12666
12804
|
created_at?: string;
|
|
12667
12805
|
id?: string;
|
|
12668
12806
|
laatst_gezien?: string;
|
|
12807
|
+
laatste_fout?: string | null;
|
|
12808
|
+
laatste_request_id?: number | null;
|
|
12809
|
+
mislukte_posts?: number;
|
|
12669
12810
|
tick_sleutel?: string;
|
|
12670
12811
|
updated_at?: string;
|
|
12671
12812
|
};
|
|
@@ -12675,6 +12816,9 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
12675
12816
|
created_at?: string;
|
|
12676
12817
|
id?: string;
|
|
12677
12818
|
laatst_gezien?: string;
|
|
12819
|
+
laatste_fout?: string | null;
|
|
12820
|
+
laatste_request_id?: number | null;
|
|
12821
|
+
mislukte_posts?: number;
|
|
12678
12822
|
tick_sleutel?: string;
|
|
12679
12823
|
updated_at?: string;
|
|
12680
12824
|
};
|
|
@@ -14183,6 +14327,96 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
14183
14327
|
referencedColumns: ["id"];
|
|
14184
14328
|
}];
|
|
14185
14329
|
};
|
|
14330
|
+
role_assignments: {
|
|
14331
|
+
Row: {
|
|
14332
|
+
created_at: string;
|
|
14333
|
+
id: string;
|
|
14334
|
+
role_id: string;
|
|
14335
|
+
user_id: string;
|
|
14336
|
+
};
|
|
14337
|
+
Insert: {
|
|
14338
|
+
created_at?: string;
|
|
14339
|
+
id?: string;
|
|
14340
|
+
role_id: string;
|
|
14341
|
+
user_id: string;
|
|
14342
|
+
};
|
|
14343
|
+
Update: {
|
|
14344
|
+
created_at?: string;
|
|
14345
|
+
id?: string;
|
|
14346
|
+
role_id?: string;
|
|
14347
|
+
user_id?: string;
|
|
14348
|
+
};
|
|
14349
|
+
Relationships: [{
|
|
14350
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
14351
|
+
columns: ["role_id"];
|
|
14352
|
+
isOneToOne: false;
|
|
14353
|
+
referencedRelation: "roles";
|
|
14354
|
+
referencedColumns: ["id"];
|
|
14355
|
+
}];
|
|
14356
|
+
};
|
|
14357
|
+
role_permissions: {
|
|
14358
|
+
Row: {
|
|
14359
|
+
can_edit: boolean;
|
|
14360
|
+
can_view: boolean;
|
|
14361
|
+
feature_id: string;
|
|
14362
|
+
id: string;
|
|
14363
|
+
module_id: string;
|
|
14364
|
+
role_id: string;
|
|
14365
|
+
updated_at: string;
|
|
14366
|
+
};
|
|
14367
|
+
Insert: {
|
|
14368
|
+
can_edit?: boolean;
|
|
14369
|
+
can_view?: boolean;
|
|
14370
|
+
feature_id?: string;
|
|
14371
|
+
id?: string;
|
|
14372
|
+
module_id: string;
|
|
14373
|
+
role_id: string;
|
|
14374
|
+
updated_at?: string;
|
|
14375
|
+
};
|
|
14376
|
+
Update: {
|
|
14377
|
+
can_edit?: boolean;
|
|
14378
|
+
can_view?: boolean;
|
|
14379
|
+
feature_id?: string;
|
|
14380
|
+
id?: string;
|
|
14381
|
+
module_id?: string;
|
|
14382
|
+
role_id?: string;
|
|
14383
|
+
updated_at?: string;
|
|
14384
|
+
};
|
|
14385
|
+
Relationships: [{
|
|
14386
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
14387
|
+
columns: ["role_id"];
|
|
14388
|
+
isOneToOne: false;
|
|
14389
|
+
referencedRelation: "roles";
|
|
14390
|
+
referencedColumns: ["id"];
|
|
14391
|
+
}];
|
|
14392
|
+
};
|
|
14393
|
+
roles: {
|
|
14394
|
+
Row: {
|
|
14395
|
+
created_at: string;
|
|
14396
|
+
id: string;
|
|
14397
|
+
is_protected: boolean;
|
|
14398
|
+
key: string;
|
|
14399
|
+
name: string;
|
|
14400
|
+
updated_at: string;
|
|
14401
|
+
};
|
|
14402
|
+
Insert: {
|
|
14403
|
+
created_at?: string;
|
|
14404
|
+
id?: string;
|
|
14405
|
+
is_protected?: boolean;
|
|
14406
|
+
key: string;
|
|
14407
|
+
name: string;
|
|
14408
|
+
updated_at?: string;
|
|
14409
|
+
};
|
|
14410
|
+
Update: {
|
|
14411
|
+
created_at?: string;
|
|
14412
|
+
id?: string;
|
|
14413
|
+
is_protected?: boolean;
|
|
14414
|
+
key?: string;
|
|
14415
|
+
name?: string;
|
|
14416
|
+
updated_at?: string;
|
|
14417
|
+
};
|
|
14418
|
+
Relationships: [];
|
|
14419
|
+
};
|
|
14186
14420
|
rooms: {
|
|
14187
14421
|
Row: {
|
|
14188
14422
|
capacity: number;
|
|
@@ -14852,6 +15086,54 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
14852
15086
|
};
|
|
14853
15087
|
Relationships: [];
|
|
14854
15088
|
};
|
|
15089
|
+
time_compensation_entries: {
|
|
15090
|
+
Row: {
|
|
15091
|
+
created_at: string;
|
|
15092
|
+
employee_id: string;
|
|
15093
|
+
entry_date: string;
|
|
15094
|
+
id: string;
|
|
15095
|
+
km: number;
|
|
15096
|
+
meal_allowance: number;
|
|
15097
|
+
notes: string | null;
|
|
15098
|
+
standby_evening: number;
|
|
15099
|
+
standby_weekend: number;
|
|
15100
|
+
tvt_change: number;
|
|
15101
|
+
updated_at: string;
|
|
15102
|
+
};
|
|
15103
|
+
Insert: {
|
|
15104
|
+
created_at?: string;
|
|
15105
|
+
employee_id: string;
|
|
15106
|
+
entry_date: string;
|
|
15107
|
+
id?: string;
|
|
15108
|
+
km?: number;
|
|
15109
|
+
meal_allowance?: number;
|
|
15110
|
+
notes?: string | null;
|
|
15111
|
+
standby_evening?: number;
|
|
15112
|
+
standby_weekend?: number;
|
|
15113
|
+
tvt_change?: number;
|
|
15114
|
+
updated_at?: string;
|
|
15115
|
+
};
|
|
15116
|
+
Update: {
|
|
15117
|
+
created_at?: string;
|
|
15118
|
+
employee_id?: string;
|
|
15119
|
+
entry_date?: string;
|
|
15120
|
+
id?: string;
|
|
15121
|
+
km?: number;
|
|
15122
|
+
meal_allowance?: number;
|
|
15123
|
+
notes?: string | null;
|
|
15124
|
+
standby_evening?: number;
|
|
15125
|
+
standby_weekend?: number;
|
|
15126
|
+
tvt_change?: number;
|
|
15127
|
+
updated_at?: string;
|
|
15128
|
+
};
|
|
15129
|
+
Relationships: [{
|
|
15130
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
15131
|
+
columns: ["employee_id"];
|
|
15132
|
+
isOneToOne: false;
|
|
15133
|
+
referencedRelation: "profiles";
|
|
15134
|
+
referencedColumns: ["id"];
|
|
15135
|
+
}];
|
|
15136
|
+
};
|
|
14855
15137
|
time_entries: {
|
|
14856
15138
|
Row: {
|
|
14857
15139
|
created_at: string;
|
|
@@ -14886,65 +15168,170 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
14886
15168
|
undertime?: number;
|
|
14887
15169
|
updated_at?: string;
|
|
14888
15170
|
};
|
|
15171
|
+
Relationships: [];
|
|
15172
|
+
};
|
|
15173
|
+
time_log_week_approvals: {
|
|
15174
|
+
Row: {
|
|
15175
|
+
approved_at: string | null;
|
|
15176
|
+
approved_by: string | null;
|
|
15177
|
+
created_at: string;
|
|
15178
|
+
employee_id: string;
|
|
15179
|
+
id: string;
|
|
15180
|
+
locked: boolean;
|
|
15181
|
+
notes: string | null;
|
|
15182
|
+
status: string;
|
|
15183
|
+
submitted_at: string | null;
|
|
15184
|
+
updated_at: string;
|
|
15185
|
+
week_start: string;
|
|
15186
|
+
};
|
|
15187
|
+
Insert: {
|
|
15188
|
+
approved_at?: string | null;
|
|
15189
|
+
approved_by?: string | null;
|
|
15190
|
+
created_at?: string;
|
|
15191
|
+
employee_id: string;
|
|
15192
|
+
id?: string;
|
|
15193
|
+
locked?: boolean;
|
|
15194
|
+
notes?: string | null;
|
|
15195
|
+
status?: string;
|
|
15196
|
+
submitted_at?: string | null;
|
|
15197
|
+
updated_at?: string;
|
|
15198
|
+
week_start: string;
|
|
15199
|
+
};
|
|
15200
|
+
Update: {
|
|
15201
|
+
approved_at?: string | null;
|
|
15202
|
+
approved_by?: string | null;
|
|
15203
|
+
created_at?: string;
|
|
15204
|
+
employee_id?: string;
|
|
15205
|
+
id?: string;
|
|
15206
|
+
locked?: boolean;
|
|
15207
|
+
notes?: string | null;
|
|
15208
|
+
status?: string;
|
|
15209
|
+
submitted_at?: string | null;
|
|
15210
|
+
updated_at?: string;
|
|
15211
|
+
week_start?: string;
|
|
15212
|
+
};
|
|
14889
15213
|
Relationships: [{
|
|
14890
|
-
foreignKeyName: "
|
|
15214
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
14891
15215
|
columns: ["employee_id"];
|
|
14892
15216
|
isOneToOne: false;
|
|
14893
|
-
referencedRelation: "
|
|
15217
|
+
referencedRelation: "profiles";
|
|
14894
15218
|
referencedColumns: ["id"];
|
|
14895
15219
|
}];
|
|
14896
15220
|
};
|
|
14897
15221
|
time_logs: {
|
|
14898
15222
|
Row: {
|
|
15223
|
+
auto_stop_reason: string | null;
|
|
15224
|
+
auto_stopped: boolean;
|
|
14899
15225
|
created_at: string;
|
|
15226
|
+
current_latitude: number | null;
|
|
15227
|
+
current_longitude: number | null;
|
|
15228
|
+
current_position_updated_at: string | null;
|
|
14900
15229
|
employee_id: string;
|
|
15230
|
+
end_latitude: number | null;
|
|
15231
|
+
end_longitude: number | null;
|
|
14901
15232
|
end_time: string | null;
|
|
15233
|
+
eta_distance_km: number | null;
|
|
15234
|
+
eta_minutes: number | null;
|
|
15235
|
+
eta_updated_at: string | null;
|
|
15236
|
+
hour_category: string | null;
|
|
14902
15237
|
id: string;
|
|
15238
|
+
last_reminder_at: string | null;
|
|
14903
15239
|
notes: string | null;
|
|
14904
15240
|
overtime_hours: number;
|
|
14905
15241
|
overtime_type: string | null;
|
|
14906
15242
|
regular_hours: number;
|
|
15243
|
+
reminder_count: number;
|
|
15244
|
+
requires_review: boolean;
|
|
15245
|
+
start_latitude: number | null;
|
|
15246
|
+
start_longitude: number | null;
|
|
14907
15247
|
start_time: string;
|
|
14908
15248
|
travel_cost: number | null;
|
|
14909
15249
|
travel_distance_km: number | null;
|
|
15250
|
+
travel_duration_min: number | null;
|
|
15251
|
+
travel_time_minutes: number | null;
|
|
14910
15252
|
type: string;
|
|
14911
15253
|
updated_at: string;
|
|
15254
|
+
work_order_id: string | null;
|
|
14912
15255
|
};
|
|
14913
15256
|
Insert: {
|
|
15257
|
+
auto_stop_reason?: string | null;
|
|
15258
|
+
auto_stopped?: boolean;
|
|
14914
15259
|
created_at?: string;
|
|
15260
|
+
current_latitude?: number | null;
|
|
15261
|
+
current_longitude?: number | null;
|
|
15262
|
+
current_position_updated_at?: string | null;
|
|
14915
15263
|
employee_id: string;
|
|
15264
|
+
end_latitude?: number | null;
|
|
15265
|
+
end_longitude?: number | null;
|
|
14916
15266
|
end_time?: string | null;
|
|
15267
|
+
eta_distance_km?: number | null;
|
|
15268
|
+
eta_minutes?: number | null;
|
|
15269
|
+
eta_updated_at?: string | null;
|
|
15270
|
+
hour_category?: string | null;
|
|
14917
15271
|
id?: string;
|
|
15272
|
+
last_reminder_at?: string | null;
|
|
14918
15273
|
notes?: string | null;
|
|
14919
15274
|
overtime_hours?: number;
|
|
14920
15275
|
overtime_type?: string | null;
|
|
14921
15276
|
regular_hours?: number;
|
|
15277
|
+
reminder_count?: number;
|
|
15278
|
+
requires_review?: boolean;
|
|
15279
|
+
start_latitude?: number | null;
|
|
15280
|
+
start_longitude?: number | null;
|
|
14922
15281
|
start_time?: string;
|
|
14923
15282
|
travel_cost?: number | null;
|
|
14924
15283
|
travel_distance_km?: number | null;
|
|
15284
|
+
travel_duration_min?: number | null;
|
|
15285
|
+
travel_time_minutes?: number | null;
|
|
14925
15286
|
type: string;
|
|
14926
15287
|
updated_at?: string;
|
|
15288
|
+
work_order_id?: string | null;
|
|
14927
15289
|
};
|
|
14928
15290
|
Update: {
|
|
15291
|
+
auto_stop_reason?: string | null;
|
|
15292
|
+
auto_stopped?: boolean;
|
|
14929
15293
|
created_at?: string;
|
|
15294
|
+
current_latitude?: number | null;
|
|
15295
|
+
current_longitude?: number | null;
|
|
15296
|
+
current_position_updated_at?: string | null;
|
|
14930
15297
|
employee_id?: string;
|
|
15298
|
+
end_latitude?: number | null;
|
|
15299
|
+
end_longitude?: number | null;
|
|
14931
15300
|
end_time?: string | null;
|
|
15301
|
+
eta_distance_km?: number | null;
|
|
15302
|
+
eta_minutes?: number | null;
|
|
15303
|
+
eta_updated_at?: string | null;
|
|
15304
|
+
hour_category?: string | null;
|
|
14932
15305
|
id?: string;
|
|
15306
|
+
last_reminder_at?: string | null;
|
|
14933
15307
|
notes?: string | null;
|
|
14934
15308
|
overtime_hours?: number;
|
|
14935
15309
|
overtime_type?: string | null;
|
|
14936
15310
|
regular_hours?: number;
|
|
15311
|
+
reminder_count?: number;
|
|
15312
|
+
requires_review?: boolean;
|
|
15313
|
+
start_latitude?: number | null;
|
|
15314
|
+
start_longitude?: number | null;
|
|
14937
15315
|
start_time?: string;
|
|
14938
15316
|
travel_cost?: number | null;
|
|
14939
15317
|
travel_distance_km?: number | null;
|
|
15318
|
+
travel_duration_min?: number | null;
|
|
15319
|
+
travel_time_minutes?: number | null;
|
|
14940
15320
|
type?: string;
|
|
14941
15321
|
updated_at?: string;
|
|
15322
|
+
work_order_id?: string | null;
|
|
14942
15323
|
};
|
|
14943
15324
|
Relationships: [{
|
|
14944
15325
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
14945
15326
|
columns: ["employee_id"];
|
|
14946
15327
|
isOneToOne: false;
|
|
14947
|
-
referencedRelation: "
|
|
15328
|
+
referencedRelation: "profiles";
|
|
15329
|
+
referencedColumns: ["id"];
|
|
15330
|
+
}, {
|
|
15331
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
15332
|
+
columns: ["work_order_id"];
|
|
15333
|
+
isOneToOne: false;
|
|
15334
|
+
referencedRelation: "work_orders";
|
|
14948
15335
|
referencedColumns: ["id"];
|
|
14949
15336
|
}];
|
|
14950
15337
|
};
|
|
@@ -14983,7 +15370,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
14983
15370
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
14984
15371
|
columns: ["employee_id"];
|
|
14985
15372
|
isOneToOne: false;
|
|
14986
|
-
referencedRelation: "
|
|
15373
|
+
referencedRelation: "profiles";
|
|
14987
15374
|
referencedColumns: ["id"];
|
|
14988
15375
|
}];
|
|
14989
15376
|
};
|
|
@@ -15293,6 +15680,39 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
15293
15680
|
};
|
|
15294
15681
|
Relationships: [];
|
|
15295
15682
|
};
|
|
15683
|
+
twinfield_cron_locks: {
|
|
15684
|
+
Row: {
|
|
15685
|
+
created_at: string;
|
|
15686
|
+
heartbeat_at: string;
|
|
15687
|
+
job_name: string;
|
|
15688
|
+
last_error: string | null;
|
|
15689
|
+
last_finished_at: string | null;
|
|
15690
|
+
locked_at: string;
|
|
15691
|
+
run_id: string;
|
|
15692
|
+
updated_at: string;
|
|
15693
|
+
};
|
|
15694
|
+
Insert: {
|
|
15695
|
+
created_at?: string;
|
|
15696
|
+
heartbeat_at?: string;
|
|
15697
|
+
job_name: string;
|
|
15698
|
+
last_error?: string | null;
|
|
15699
|
+
last_finished_at?: string | null;
|
|
15700
|
+
locked_at?: string;
|
|
15701
|
+
run_id?: string;
|
|
15702
|
+
updated_at?: string;
|
|
15703
|
+
};
|
|
15704
|
+
Update: {
|
|
15705
|
+
created_at?: string;
|
|
15706
|
+
heartbeat_at?: string;
|
|
15707
|
+
job_name?: string;
|
|
15708
|
+
last_error?: string | null;
|
|
15709
|
+
last_finished_at?: string | null;
|
|
15710
|
+
locked_at?: string;
|
|
15711
|
+
run_id?: string;
|
|
15712
|
+
updated_at?: string;
|
|
15713
|
+
};
|
|
15714
|
+
Relationships: [];
|
|
15715
|
+
};
|
|
15296
15716
|
twinfield_customers: {
|
|
15297
15717
|
Row: {
|
|
15298
15718
|
address: string | null;
|
|
@@ -15893,6 +16313,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
15893
16313
|
twinfield_push_queue: {
|
|
15894
16314
|
Row: {
|
|
15895
16315
|
action: string;
|
|
16316
|
+
attempt_started_at: string | null;
|
|
15896
16317
|
attempts: number;
|
|
15897
16318
|
connection_id: string | null;
|
|
15898
16319
|
created_at: string;
|
|
@@ -15909,6 +16330,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
15909
16330
|
};
|
|
15910
16331
|
Insert: {
|
|
15911
16332
|
action?: string;
|
|
16333
|
+
attempt_started_at?: string | null;
|
|
15912
16334
|
attempts?: number;
|
|
15913
16335
|
connection_id?: string | null;
|
|
15914
16336
|
created_at?: string;
|
|
@@ -15925,6 +16347,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
15925
16347
|
};
|
|
15926
16348
|
Update: {
|
|
15927
16349
|
action?: string;
|
|
16350
|
+
attempt_started_at?: string | null;
|
|
15928
16351
|
attempts?: number;
|
|
15929
16352
|
connection_id?: string | null;
|
|
15930
16353
|
created_at?: string;
|
|
@@ -16122,13 +16545,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
16122
16545
|
workday_end?: string | null;
|
|
16123
16546
|
workday_start?: string | null;
|
|
16124
16547
|
};
|
|
16125
|
-
Relationships: [
|
|
16126
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
16127
|
-
columns: ["monteur_id"];
|
|
16128
|
-
isOneToOne: true;
|
|
16129
|
-
referencedRelation: "monteurs";
|
|
16130
|
-
referencedColumns: ["id"];
|
|
16131
|
-
}];
|
|
16548
|
+
Relationships: [];
|
|
16132
16549
|
};
|
|
16133
16550
|
uren_entries: {
|
|
16134
16551
|
Row: {
|
|
@@ -16174,12 +16591,6 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
16174
16591
|
werkbon_id?: string | null;
|
|
16175
16592
|
};
|
|
16176
16593
|
Relationships: [{
|
|
16177
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16178
|
-
columns: ["monteur_id"];
|
|
16179
|
-
isOneToOne: false;
|
|
16180
|
-
referencedRelation: "monteurs";
|
|
16181
|
-
referencedColumns: ["id"];
|
|
16182
|
-
}, {
|
|
16183
16594
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16184
16595
|
columns: ["werkbon_id"];
|
|
16185
16596
|
isOneToOne: false;
|
|
@@ -16647,17 +17058,12 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
16647
17058
|
submitted_at?: string | null;
|
|
16648
17059
|
updated_at?: string;
|
|
16649
17060
|
};
|
|
16650
|
-
Relationships: [
|
|
16651
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
16652
|
-
columns: ["monteur_id"];
|
|
16653
|
-
isOneToOne: false;
|
|
16654
|
-
referencedRelation: "monteurs";
|
|
16655
|
-
referencedColumns: ["id"];
|
|
16656
|
-
}];
|
|
17061
|
+
Relationships: [];
|
|
16657
17062
|
};
|
|
16658
17063
|
user_module_permissions: {
|
|
16659
17064
|
Row: {
|
|
16660
17065
|
created_at: string;
|
|
17066
|
+
feature_id: string;
|
|
16661
17067
|
id: string;
|
|
16662
17068
|
module_id: string;
|
|
16663
17069
|
permission: string;
|
|
@@ -16666,6 +17072,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
16666
17072
|
};
|
|
16667
17073
|
Insert: {
|
|
16668
17074
|
created_at?: string;
|
|
17075
|
+
feature_id?: string;
|
|
16669
17076
|
id?: string;
|
|
16670
17077
|
module_id: string;
|
|
16671
17078
|
permission: string;
|
|
@@ -16674,6 +17081,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
16674
17081
|
};
|
|
16675
17082
|
Update: {
|
|
16676
17083
|
created_at?: string;
|
|
17084
|
+
feature_id?: string;
|
|
16677
17085
|
id?: string;
|
|
16678
17086
|
module_id?: string;
|
|
16679
17087
|
permission?: string;
|
|
@@ -16709,6 +17117,51 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
16709
17117
|
referencedColumns: ["id"];
|
|
16710
17118
|
}];
|
|
16711
17119
|
};
|
|
17120
|
+
van_inventories: {
|
|
17121
|
+
Row: {
|
|
17122
|
+
barcode: string | null;
|
|
17123
|
+
created_at: string;
|
|
17124
|
+
id: string;
|
|
17125
|
+
monteur_id: string | null;
|
|
17126
|
+
price_per_unit: number;
|
|
17127
|
+
product_name: string;
|
|
17128
|
+
quantity_current: number;
|
|
17129
|
+
quantity_min: number;
|
|
17130
|
+
unit: string;
|
|
17131
|
+
updated_at: string;
|
|
17132
|
+
};
|
|
17133
|
+
Insert: {
|
|
17134
|
+
barcode?: string | null;
|
|
17135
|
+
created_at?: string;
|
|
17136
|
+
id?: string;
|
|
17137
|
+
monteur_id?: string | null;
|
|
17138
|
+
price_per_unit?: number;
|
|
17139
|
+
product_name: string;
|
|
17140
|
+
quantity_current?: number;
|
|
17141
|
+
quantity_min?: number;
|
|
17142
|
+
unit?: string;
|
|
17143
|
+
updated_at?: string;
|
|
17144
|
+
};
|
|
17145
|
+
Update: {
|
|
17146
|
+
barcode?: string | null;
|
|
17147
|
+
created_at?: string;
|
|
17148
|
+
id?: string;
|
|
17149
|
+
monteur_id?: string | null;
|
|
17150
|
+
price_per_unit?: number;
|
|
17151
|
+
product_name?: string;
|
|
17152
|
+
quantity_current?: number;
|
|
17153
|
+
quantity_min?: number;
|
|
17154
|
+
unit?: string;
|
|
17155
|
+
updated_at?: string;
|
|
17156
|
+
};
|
|
17157
|
+
Relationships: [{
|
|
17158
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
17159
|
+
columns: ["monteur_id"];
|
|
17160
|
+
isOneToOne: false;
|
|
17161
|
+
referencedRelation: "profiles";
|
|
17162
|
+
referencedColumns: ["id"];
|
|
17163
|
+
}];
|
|
17164
|
+
};
|
|
16712
17165
|
voorraad_custom_fields: {
|
|
16713
17166
|
Row: {
|
|
16714
17167
|
created_at: string;
|
|
@@ -17659,7 +18112,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
17659
18112
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
17660
18113
|
columns: ["monteur_id"];
|
|
17661
18114
|
isOneToOne: false;
|
|
17662
|
-
referencedRelation: "
|
|
18115
|
+
referencedRelation: "profiles";
|
|
17663
18116
|
referencedColumns: ["id"];
|
|
17664
18117
|
}, {
|
|
17665
18118
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -17669,6 +18122,60 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
17669
18122
|
referencedColumns: ["id"];
|
|
17670
18123
|
}];
|
|
17671
18124
|
};
|
|
18125
|
+
work_order_photos: {
|
|
18126
|
+
Row: {
|
|
18127
|
+
ai_caption: string | null;
|
|
18128
|
+
ai_categorized_at: string | null;
|
|
18129
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
18130
|
+
caption: string | null;
|
|
18131
|
+
created_at: string;
|
|
18132
|
+
id: string;
|
|
18133
|
+
monteur_id: string | null;
|
|
18134
|
+
photo_type: string;
|
|
18135
|
+
storage_path: string;
|
|
18136
|
+
updated_at: string;
|
|
18137
|
+
work_order_id: string;
|
|
18138
|
+
};
|
|
18139
|
+
Insert: {
|
|
18140
|
+
ai_caption?: string | null;
|
|
18141
|
+
ai_categorized_at?: string | null;
|
|
18142
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18143
|
+
caption?: string | null;
|
|
18144
|
+
created_at?: string;
|
|
18145
|
+
id?: string;
|
|
18146
|
+
monteur_id?: string | null;
|
|
18147
|
+
photo_type?: string;
|
|
18148
|
+
storage_path: string;
|
|
18149
|
+
updated_at?: string;
|
|
18150
|
+
work_order_id: string;
|
|
18151
|
+
};
|
|
18152
|
+
Update: {
|
|
18153
|
+
ai_caption?: string | null;
|
|
18154
|
+
ai_categorized_at?: string | null;
|
|
18155
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18156
|
+
caption?: string | null;
|
|
18157
|
+
created_at?: string;
|
|
18158
|
+
id?: string;
|
|
18159
|
+
monteur_id?: string | null;
|
|
18160
|
+
photo_type?: string;
|
|
18161
|
+
storage_path?: string;
|
|
18162
|
+
updated_at?: string;
|
|
18163
|
+
work_order_id?: string;
|
|
18164
|
+
};
|
|
18165
|
+
Relationships: [{
|
|
18166
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
18167
|
+
columns: ["monteur_id"];
|
|
18168
|
+
isOneToOne: false;
|
|
18169
|
+
referencedRelation: "profiles";
|
|
18170
|
+
referencedColumns: ["id"];
|
|
18171
|
+
}, {
|
|
18172
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
18173
|
+
columns: ["work_order_id"];
|
|
18174
|
+
isOneToOne: false;
|
|
18175
|
+
referencedRelation: "work_orders";
|
|
18176
|
+
referencedColumns: ["id"];
|
|
18177
|
+
}];
|
|
18178
|
+
};
|
|
17672
18179
|
work_orders: {
|
|
17673
18180
|
Row: {
|
|
17674
18181
|
assigned_to: string | null;
|
|
@@ -17700,7 +18207,6 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
17700
18207
|
scheduled_end_time: string | null;
|
|
17701
18208
|
scheduled_start_time: string | null;
|
|
17702
18209
|
status: string;
|
|
17703
|
-
tenant_id: string;
|
|
17704
18210
|
total_hours_worked: number | null;
|
|
17705
18211
|
total_price: number | null;
|
|
17706
18212
|
travel_time_minutes: number | null;
|
|
@@ -17738,7 +18244,6 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
17738
18244
|
scheduled_end_time?: string | null;
|
|
17739
18245
|
scheduled_start_time?: string | null;
|
|
17740
18246
|
status?: string;
|
|
17741
|
-
tenant_id: string;
|
|
17742
18247
|
total_hours_worked?: number | null;
|
|
17743
18248
|
total_price?: number | null;
|
|
17744
18249
|
travel_time_minutes?: number | null;
|
|
@@ -17776,7 +18281,6 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
17776
18281
|
scheduled_end_time?: string | null;
|
|
17777
18282
|
scheduled_start_time?: string | null;
|
|
17778
18283
|
status?: string;
|
|
17779
|
-
tenant_id?: string;
|
|
17780
18284
|
total_hours_worked?: number | null;
|
|
17781
18285
|
total_price?: number | null;
|
|
17782
18286
|
travel_time_minutes?: number | null;
|
|
@@ -17790,12 +18294,6 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
17790
18294
|
isOneToOne: false;
|
|
17791
18295
|
referencedRelation: "work_orders";
|
|
17792
18296
|
referencedColumns: ["id"];
|
|
17793
|
-
}, {
|
|
17794
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
17795
|
-
columns: ["tenant_id"];
|
|
17796
|
-
isOneToOne: false;
|
|
17797
|
-
referencedRelation: "tenants";
|
|
17798
|
-
referencedColumns: ["id"];
|
|
17799
18297
|
}];
|
|
17800
18298
|
};
|
|
17801
18299
|
};
|
|
@@ -18480,6 +18978,19 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
18480
18978
|
};
|
|
18481
18979
|
Returns: undefined;
|
|
18482
18980
|
};
|
|
18981
|
+
approve_mailbox_order_proposal: {
|
|
18982
|
+
Args: {
|
|
18983
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
18984
|
+
p_customer_id: string;
|
|
18985
|
+
p_delivery_date: string;
|
|
18986
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
18987
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
18988
|
+
p_notes: string;
|
|
18989
|
+
p_proposal_id: string;
|
|
18990
|
+
p_reviewed_by: string;
|
|
18991
|
+
};
|
|
18992
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
18993
|
+
};
|
|
18483
18994
|
assign_cart_numbers: {
|
|
18484
18995
|
Args: {
|
|
18485
18996
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -18531,6 +19042,10 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
18531
19042
|
};
|
|
18532
19043
|
Returns: number;
|
|
18533
19044
|
};
|
|
19045
|
+
can_manage_hours: {
|
|
19046
|
+
Args: never;
|
|
19047
|
+
Returns: boolean;
|
|
19048
|
+
};
|
|
18534
19049
|
check_offer_product_available_stock: {
|
|
18535
19050
|
Args: {
|
|
18536
19051
|
p_campaign_product_id: string;
|
|
@@ -18720,6 +19235,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
18720
19235
|
};
|
|
18721
19236
|
Returns: {
|
|
18722
19237
|
action: string;
|
|
19238
|
+
attempt_started_at: string | null;
|
|
18723
19239
|
attempts: number;
|
|
18724
19240
|
connection_id: string | null;
|
|
18725
19241
|
created_at: string;
|
|
@@ -18807,6 +19323,30 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
18807
19323
|
agent_naam: string;
|
|
18808
19324
|
}[];
|
|
18809
19325
|
};
|
|
19326
|
+
consume_van_inventory: {
|
|
19327
|
+
Args: {
|
|
19328
|
+
p_inventory_id: string;
|
|
19329
|
+
p_quantity: number;
|
|
19330
|
+
};
|
|
19331
|
+
Returns: {
|
|
19332
|
+
barcode: string | null;
|
|
19333
|
+
created_at: string;
|
|
19334
|
+
id: string;
|
|
19335
|
+
monteur_id: string | null;
|
|
19336
|
+
price_per_unit: number;
|
|
19337
|
+
product_name: string;
|
|
19338
|
+
quantity_current: number;
|
|
19339
|
+
quantity_min: number;
|
|
19340
|
+
unit: string;
|
|
19341
|
+
updated_at: string;
|
|
19342
|
+
};
|
|
19343
|
+
SetofOptions: {
|
|
19344
|
+
from: "*";
|
|
19345
|
+
to: "van_inventories";
|
|
19346
|
+
isOneToOne: true;
|
|
19347
|
+
isSetofReturn: false;
|
|
19348
|
+
};
|
|
19349
|
+
};
|
|
18810
19350
|
control_get_todays_carts: {
|
|
18811
19351
|
Args: never;
|
|
18812
19352
|
Returns: {
|
|
@@ -18880,6 +19420,13 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
18880
19420
|
_user_id: string;
|
|
18881
19421
|
};
|
|
18882
19422
|
Returns: string;
|
|
19423
|
+
} | {
|
|
19424
|
+
Args: {
|
|
19425
|
+
_feature_id: string;
|
|
19426
|
+
_module_id: string;
|
|
19427
|
+
_user_id: string;
|
|
19428
|
+
};
|
|
19429
|
+
Returns: string;
|
|
18883
19430
|
};
|
|
18884
19431
|
email_auth_decrypt: {
|
|
18885
19432
|
Args: {
|
|
@@ -19231,12 +19778,6 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
19231
19778
|
Args: never;
|
|
19232
19779
|
Returns: string;
|
|
19233
19780
|
};
|
|
19234
|
-
get_work_order_tenant_id: {
|
|
19235
|
-
Args: {
|
|
19236
|
-
wo_id: string;
|
|
19237
|
-
};
|
|
19238
|
-
Returns: string;
|
|
19239
|
-
};
|
|
19240
19781
|
has_module_permission: {
|
|
19241
19782
|
Args: {
|
|
19242
19783
|
_min: string;
|
|
@@ -19270,6 +19811,13 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
19270
19811
|
};
|
|
19271
19812
|
Returns: boolean;
|
|
19272
19813
|
};
|
|
19814
|
+
is_time_log_week_locked: {
|
|
19815
|
+
Args: {
|
|
19816
|
+
p_employee_id: string;
|
|
19817
|
+
p_start_time: string;
|
|
19818
|
+
};
|
|
19819
|
+
Returns: boolean;
|
|
19820
|
+
};
|
|
19273
19821
|
is_user_admin: {
|
|
19274
19822
|
Args: never;
|
|
19275
19823
|
Returns: boolean;
|
|
@@ -19284,13 +19832,14 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
19284
19832
|
};
|
|
19285
19833
|
Returns: boolean;
|
|
19286
19834
|
};
|
|
19287
|
-
|
|
19835
|
+
list_medewerkers: {
|
|
19288
19836
|
Args: never;
|
|
19289
19837
|
Returns: {
|
|
19290
19838
|
avatar_url: string;
|
|
19291
19839
|
display_name: string;
|
|
19292
19840
|
email: string;
|
|
19293
19841
|
id: string;
|
|
19842
|
+
roles: string[];
|
|
19294
19843
|
}[];
|
|
19295
19844
|
};
|
|
19296
19845
|
list_my_planning_items: {
|
|
@@ -19616,17 +20165,6 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
19616
20165
|
Returns: string;
|
|
19617
20166
|
};
|
|
19618
20167
|
logistics_emit_event: {
|
|
19619
|
-
Args: {
|
|
19620
|
-
p_event_type: string;
|
|
19621
|
-
p_idempotency_key?: string;
|
|
19622
|
-
p_order_ref: string;
|
|
19623
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
19624
|
-
p_shadow?: boolean;
|
|
19625
|
-
p_source_module: string;
|
|
19626
|
-
p_strategy_id?: string;
|
|
19627
|
-
};
|
|
19628
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
19629
|
-
} | {
|
|
19630
20168
|
Args: {
|
|
19631
20169
|
p_event_type: string;
|
|
19632
20170
|
p_idempotency_key?: string;
|
|
@@ -20081,6 +20619,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
20081
20619
|
my_module_permissions: {
|
|
20082
20620
|
Args: never;
|
|
20083
20621
|
Returns: {
|
|
20622
|
+
feature_id: string;
|
|
20084
20623
|
module_id: string;
|
|
20085
20624
|
permission: string;
|
|
20086
20625
|
}[];
|
|
@@ -20961,6 +21500,16 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
20961
21500
|
};
|
|
20962
21501
|
Returns: string[];
|
|
20963
21502
|
};
|
|
21503
|
+
switch_time_log: {
|
|
21504
|
+
Args: {
|
|
21505
|
+
p_employee_id: string;
|
|
21506
|
+
p_start_lat?: number;
|
|
21507
|
+
p_start_lng?: number;
|
|
21508
|
+
p_type: string;
|
|
21509
|
+
p_work_order_id?: string;
|
|
21510
|
+
};
|
|
21511
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21512
|
+
};
|
|
20964
21513
|
sync_all_layer_stocks: {
|
|
20965
21514
|
Args: never;
|
|
20966
21515
|
Returns: undefined;
|
|
@@ -21011,6 +21560,24 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
21011
21560
|
};
|
|
21012
21561
|
Returns: boolean;
|
|
21013
21562
|
};
|
|
21563
|
+
twinfield_cron_lock_acquire: {
|
|
21564
|
+
Args: {
|
|
21565
|
+
_job_name: string;
|
|
21566
|
+
_stale_seconds?: number;
|
|
21567
|
+
};
|
|
21568
|
+
Returns: boolean;
|
|
21569
|
+
};
|
|
21570
|
+
twinfield_cron_lock_release: {
|
|
21571
|
+
Args: {
|
|
21572
|
+
_error?: string;
|
|
21573
|
+
_job_name: string;
|
|
21574
|
+
};
|
|
21575
|
+
Returns: undefined;
|
|
21576
|
+
};
|
|
21577
|
+
twinfield_prune_push_queue: {
|
|
21578
|
+
Args: never;
|
|
21579
|
+
Returns: number;
|
|
21580
|
+
};
|
|
21014
21581
|
twinfield_register_cron: {
|
|
21015
21582
|
Args: {
|
|
21016
21583
|
apikey?: string;
|
|
@@ -21054,7 +21621,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
21054
21621
|
Enums: {
|
|
21055
21622
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
21056
21623
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
21057
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
21624
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
21058
21625
|
doc_orientation: "portrait" | "landscape";
|
|
21059
21626
|
exact_env: "staging" | "live";
|
|
21060
21627
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -21947,6 +22514,126 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
21947
22514
|
};
|
|
21948
22515
|
Relationships: [];
|
|
21949
22516
|
};
|
|
22517
|
+
cao_holidays: {
|
|
22518
|
+
Row: {
|
|
22519
|
+
created_at: string;
|
|
22520
|
+
description: string | null;
|
|
22521
|
+
holiday_date: string;
|
|
22522
|
+
id: string;
|
|
22523
|
+
updated_at: string;
|
|
22524
|
+
};
|
|
22525
|
+
Insert: {
|
|
22526
|
+
created_at?: string;
|
|
22527
|
+
description?: string | null;
|
|
22528
|
+
holiday_date: string;
|
|
22529
|
+
id?: string;
|
|
22530
|
+
updated_at?: string;
|
|
22531
|
+
};
|
|
22532
|
+
Update: {
|
|
22533
|
+
created_at?: string;
|
|
22534
|
+
description?: string | null;
|
|
22535
|
+
holiday_date?: string;
|
|
22536
|
+
id?: string;
|
|
22537
|
+
updated_at?: string;
|
|
22538
|
+
};
|
|
22539
|
+
Relationships: [];
|
|
22540
|
+
};
|
|
22541
|
+
cao_settings: {
|
|
22542
|
+
Row: {
|
|
22543
|
+
auto_break_after_hours: number;
|
|
22544
|
+
auto_break_minutes: number;
|
|
22545
|
+
auto_break_unpaid: boolean;
|
|
22546
|
+
auto_stop_after_hours: number;
|
|
22547
|
+
callout_fee: number;
|
|
22548
|
+
created_at: string;
|
|
22549
|
+
daily_regular_hours: number;
|
|
22550
|
+
default_hourly_rate: number;
|
|
22551
|
+
id: string;
|
|
22552
|
+
materials_markup_percent: number;
|
|
22553
|
+
max_daily_hours: number;
|
|
22554
|
+
max_weekly_hours: number;
|
|
22555
|
+
meal_allowance_amount: number;
|
|
22556
|
+
overtime_pct_178: number;
|
|
22557
|
+
overtime_pct_189: number;
|
|
22558
|
+
overtime_pct_212: number;
|
|
22559
|
+
reminder_after_hours: number;
|
|
22560
|
+
standby_evening_amount: number;
|
|
22561
|
+
standby_weekend_amount: number;
|
|
22562
|
+
travel_cost_per_km: number | null;
|
|
22563
|
+
travel_cost_threshold_km: number | null;
|
|
22564
|
+
travel_counts_as_work: boolean;
|
|
22565
|
+
travel_hourly_rate: number;
|
|
22566
|
+
travel_rate_per_hour: number;
|
|
22567
|
+
travel_threshold_minutes: number;
|
|
22568
|
+
updated_at: string;
|
|
22569
|
+
weekend_always_212: boolean;
|
|
22570
|
+
window_end: string;
|
|
22571
|
+
window_start: string;
|
|
22572
|
+
};
|
|
22573
|
+
Insert: {
|
|
22574
|
+
auto_break_after_hours?: number;
|
|
22575
|
+
auto_break_minutes?: number;
|
|
22576
|
+
auto_break_unpaid?: boolean;
|
|
22577
|
+
auto_stop_after_hours?: number;
|
|
22578
|
+
callout_fee?: number;
|
|
22579
|
+
created_at?: string;
|
|
22580
|
+
daily_regular_hours?: number;
|
|
22581
|
+
default_hourly_rate?: number;
|
|
22582
|
+
id?: string;
|
|
22583
|
+
materials_markup_percent?: number;
|
|
22584
|
+
max_daily_hours?: number;
|
|
22585
|
+
max_weekly_hours?: number;
|
|
22586
|
+
meal_allowance_amount?: number;
|
|
22587
|
+
overtime_pct_178?: number;
|
|
22588
|
+
overtime_pct_189?: number;
|
|
22589
|
+
overtime_pct_212?: number;
|
|
22590
|
+
reminder_after_hours?: number;
|
|
22591
|
+
standby_evening_amount?: number;
|
|
22592
|
+
standby_weekend_amount?: number;
|
|
22593
|
+
travel_cost_per_km?: number | null;
|
|
22594
|
+
travel_cost_threshold_km?: number | null;
|
|
22595
|
+
travel_counts_as_work?: boolean;
|
|
22596
|
+
travel_hourly_rate?: number;
|
|
22597
|
+
travel_rate_per_hour?: number;
|
|
22598
|
+
travel_threshold_minutes?: number;
|
|
22599
|
+
updated_at?: string;
|
|
22600
|
+
weekend_always_212?: boolean;
|
|
22601
|
+
window_end?: string;
|
|
22602
|
+
window_start?: string;
|
|
22603
|
+
};
|
|
22604
|
+
Update: {
|
|
22605
|
+
auto_break_after_hours?: number;
|
|
22606
|
+
auto_break_minutes?: number;
|
|
22607
|
+
auto_break_unpaid?: boolean;
|
|
22608
|
+
auto_stop_after_hours?: number;
|
|
22609
|
+
callout_fee?: number;
|
|
22610
|
+
created_at?: string;
|
|
22611
|
+
daily_regular_hours?: number;
|
|
22612
|
+
default_hourly_rate?: number;
|
|
22613
|
+
id?: string;
|
|
22614
|
+
materials_markup_percent?: number;
|
|
22615
|
+
max_daily_hours?: number;
|
|
22616
|
+
max_weekly_hours?: number;
|
|
22617
|
+
meal_allowance_amount?: number;
|
|
22618
|
+
overtime_pct_178?: number;
|
|
22619
|
+
overtime_pct_189?: number;
|
|
22620
|
+
overtime_pct_212?: number;
|
|
22621
|
+
reminder_after_hours?: number;
|
|
22622
|
+
standby_evening_amount?: number;
|
|
22623
|
+
standby_weekend_amount?: number;
|
|
22624
|
+
travel_cost_per_km?: number | null;
|
|
22625
|
+
travel_cost_threshold_km?: number | null;
|
|
22626
|
+
travel_counts_as_work?: boolean;
|
|
22627
|
+
travel_hourly_rate?: number;
|
|
22628
|
+
travel_rate_per_hour?: number;
|
|
22629
|
+
travel_threshold_minutes?: number;
|
|
22630
|
+
updated_at?: string;
|
|
22631
|
+
weekend_always_212?: boolean;
|
|
22632
|
+
window_end?: string;
|
|
22633
|
+
window_start?: string;
|
|
22634
|
+
};
|
|
22635
|
+
Relationships: [];
|
|
22636
|
+
};
|
|
21950
22637
|
carrier_shipping_rates: {
|
|
21951
22638
|
Row: {
|
|
21952
22639
|
carrier_id: string;
|
|
@@ -28841,7 +29528,6 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
28841
29528
|
start_date: string;
|
|
28842
29529
|
start_time: string | null;
|
|
28843
29530
|
status: string;
|
|
28844
|
-
tenant_id: string;
|
|
28845
29531
|
updated_at: string;
|
|
28846
29532
|
user_id: string;
|
|
28847
29533
|
};
|
|
@@ -28859,7 +29545,6 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
28859
29545
|
start_date: string;
|
|
28860
29546
|
start_time?: string | null;
|
|
28861
29547
|
status?: string;
|
|
28862
|
-
tenant_id?: string;
|
|
28863
29548
|
updated_at?: string;
|
|
28864
29549
|
user_id: string;
|
|
28865
29550
|
};
|
|
@@ -28877,7 +29562,6 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
28877
29562
|
start_date?: string;
|
|
28878
29563
|
start_time?: string | null;
|
|
28879
29564
|
status?: string;
|
|
28880
|
-
tenant_id?: string;
|
|
28881
29565
|
updated_at?: string;
|
|
28882
29566
|
user_id?: string;
|
|
28883
29567
|
};
|
|
@@ -28885,13 +29569,13 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
28885
29569
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
28886
29570
|
columns: ["monteur_id"];
|
|
28887
29571
|
isOneToOne: false;
|
|
28888
|
-
referencedRelation: "
|
|
29572
|
+
referencedRelation: "profiles";
|
|
28889
29573
|
referencedColumns: ["id"];
|
|
28890
29574
|
}, {
|
|
28891
29575
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
28892
29576
|
columns: ["user_id"];
|
|
28893
29577
|
isOneToOne: false;
|
|
28894
|
-
referencedRelation: "
|
|
29578
|
+
referencedRelation: "profiles";
|
|
28895
29579
|
referencedColumns: ["id"];
|
|
28896
29580
|
}];
|
|
28897
29581
|
};
|
|
@@ -31046,6 +31730,90 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
31046
31730
|
};
|
|
31047
31731
|
Relationships: [];
|
|
31048
31732
|
};
|
|
31733
|
+
material_usage: {
|
|
31734
|
+
Row: {
|
|
31735
|
+
created_at: string;
|
|
31736
|
+
id: string;
|
|
31737
|
+
material_name: string;
|
|
31738
|
+
monteur_id: string | null;
|
|
31739
|
+
price_at_time: number;
|
|
31740
|
+
quantity_used: number;
|
|
31741
|
+
updated_at: string;
|
|
31742
|
+
van_inventory_id: string | null;
|
|
31743
|
+
work_order_id: string;
|
|
31744
|
+
};
|
|
31745
|
+
Insert: {
|
|
31746
|
+
created_at?: string;
|
|
31747
|
+
id?: string;
|
|
31748
|
+
material_name: string;
|
|
31749
|
+
monteur_id?: string | null;
|
|
31750
|
+
price_at_time?: number;
|
|
31751
|
+
quantity_used?: number;
|
|
31752
|
+
updated_at?: string;
|
|
31753
|
+
van_inventory_id?: string | null;
|
|
31754
|
+
work_order_id: string;
|
|
31755
|
+
};
|
|
31756
|
+
Update: {
|
|
31757
|
+
created_at?: string;
|
|
31758
|
+
id?: string;
|
|
31759
|
+
material_name?: string;
|
|
31760
|
+
monteur_id?: string | null;
|
|
31761
|
+
price_at_time?: number;
|
|
31762
|
+
quantity_used?: number;
|
|
31763
|
+
updated_at?: string;
|
|
31764
|
+
van_inventory_id?: string | null;
|
|
31765
|
+
work_order_id?: string;
|
|
31766
|
+
};
|
|
31767
|
+
Relationships: [{
|
|
31768
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
31769
|
+
columns: ["monteur_id"];
|
|
31770
|
+
isOneToOne: false;
|
|
31771
|
+
referencedRelation: "profiles";
|
|
31772
|
+
referencedColumns: ["id"];
|
|
31773
|
+
}, {
|
|
31774
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
31775
|
+
columns: ["van_inventory_id"];
|
|
31776
|
+
isOneToOne: false;
|
|
31777
|
+
referencedRelation: "van_inventories";
|
|
31778
|
+
referencedColumns: ["id"];
|
|
31779
|
+
}, {
|
|
31780
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
31781
|
+
columns: ["work_order_id"];
|
|
31782
|
+
isOneToOne: false;
|
|
31783
|
+
referencedRelation: "work_orders";
|
|
31784
|
+
referencedColumns: ["id"];
|
|
31785
|
+
}];
|
|
31786
|
+
};
|
|
31787
|
+
module_features: {
|
|
31788
|
+
Row: {
|
|
31789
|
+
created_at: string;
|
|
31790
|
+
feature_id: string;
|
|
31791
|
+
id: string;
|
|
31792
|
+
is_active: boolean;
|
|
31793
|
+
last_seen_at: string;
|
|
31794
|
+
module_id: string;
|
|
31795
|
+
name: string;
|
|
31796
|
+
};
|
|
31797
|
+
Insert: {
|
|
31798
|
+
created_at?: string;
|
|
31799
|
+
feature_id: string;
|
|
31800
|
+
id?: string;
|
|
31801
|
+
is_active?: boolean;
|
|
31802
|
+
last_seen_at?: string;
|
|
31803
|
+
module_id: string;
|
|
31804
|
+
name: string;
|
|
31805
|
+
};
|
|
31806
|
+
Update: {
|
|
31807
|
+
created_at?: string;
|
|
31808
|
+
feature_id?: string;
|
|
31809
|
+
id?: string;
|
|
31810
|
+
is_active?: boolean;
|
|
31811
|
+
last_seen_at?: string;
|
|
31812
|
+
module_id?: string;
|
|
31813
|
+
name?: string;
|
|
31814
|
+
};
|
|
31815
|
+
Relationships: [];
|
|
31816
|
+
};
|
|
31049
31817
|
module_permissions: {
|
|
31050
31818
|
Row: {
|
|
31051
31819
|
created_at: string;
|
|
@@ -31076,6 +31844,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
31076
31844
|
module_registry: {
|
|
31077
31845
|
Row: {
|
|
31078
31846
|
created_at: string;
|
|
31847
|
+
enforce: boolean;
|
|
31079
31848
|
is_active: boolean;
|
|
31080
31849
|
last_seen_at: string;
|
|
31081
31850
|
module_id: string;
|
|
@@ -31085,6 +31854,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
31085
31854
|
};
|
|
31086
31855
|
Insert: {
|
|
31087
31856
|
created_at?: string;
|
|
31857
|
+
enforce?: boolean;
|
|
31088
31858
|
is_active?: boolean;
|
|
31089
31859
|
last_seen_at?: string;
|
|
31090
31860
|
module_id: string;
|
|
@@ -31094,6 +31864,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
31094
31864
|
};
|
|
31095
31865
|
Update: {
|
|
31096
31866
|
created_at?: string;
|
|
31867
|
+
enforce?: boolean;
|
|
31097
31868
|
is_active?: boolean;
|
|
31098
31869
|
last_seen_at?: string;
|
|
31099
31870
|
module_id?: string;
|
|
@@ -31154,63 +31925,6 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
31154
31925
|
};
|
|
31155
31926
|
Relationships: [];
|
|
31156
31927
|
};
|
|
31157
|
-
monteurs: {
|
|
31158
|
-
Row: {
|
|
31159
|
-
avatar_url: string | null;
|
|
31160
|
-
color: string | null;
|
|
31161
|
-
created_at: string;
|
|
31162
|
-
email: string | null;
|
|
31163
|
-
id: string;
|
|
31164
|
-
is_active: boolean;
|
|
31165
|
-
leave_balance_hours: number;
|
|
31166
|
-
name: string;
|
|
31167
|
-
persnr: number | null;
|
|
31168
|
-
phone: string | null;
|
|
31169
|
-
role: string;
|
|
31170
|
-
tenant_id: string;
|
|
31171
|
-
updated_at: string;
|
|
31172
|
-
user_id: string | null;
|
|
31173
|
-
};
|
|
31174
|
-
Insert: {
|
|
31175
|
-
avatar_url?: string | null;
|
|
31176
|
-
color?: string | null;
|
|
31177
|
-
created_at?: string;
|
|
31178
|
-
email?: string | null;
|
|
31179
|
-
id?: string;
|
|
31180
|
-
is_active?: boolean;
|
|
31181
|
-
leave_balance_hours?: number;
|
|
31182
|
-
name: string;
|
|
31183
|
-
persnr?: number | null;
|
|
31184
|
-
phone?: string | null;
|
|
31185
|
-
role?: string;
|
|
31186
|
-
tenant_id: string;
|
|
31187
|
-
updated_at?: string;
|
|
31188
|
-
user_id?: string | null;
|
|
31189
|
-
};
|
|
31190
|
-
Update: {
|
|
31191
|
-
avatar_url?: string | null;
|
|
31192
|
-
color?: string | null;
|
|
31193
|
-
created_at?: string;
|
|
31194
|
-
email?: string | null;
|
|
31195
|
-
id?: string;
|
|
31196
|
-
is_active?: boolean;
|
|
31197
|
-
leave_balance_hours?: number;
|
|
31198
|
-
name?: string;
|
|
31199
|
-
persnr?: number | null;
|
|
31200
|
-
phone?: string | null;
|
|
31201
|
-
role?: string;
|
|
31202
|
-
tenant_id?: string;
|
|
31203
|
-
updated_at?: string;
|
|
31204
|
-
user_id?: string | null;
|
|
31205
|
-
};
|
|
31206
|
-
Relationships: [{
|
|
31207
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
31208
|
-
columns: ["tenant_id"];
|
|
31209
|
-
isOneToOne: false;
|
|
31210
|
-
referencedRelation: "tenants";
|
|
31211
|
-
referencedColumns: ["id"];
|
|
31212
|
-
}];
|
|
31213
|
-
};
|
|
31214
31928
|
nmbrs_component_mapping: {
|
|
31215
31929
|
Row: {
|
|
31216
31930
|
created_at: string;
|
|
@@ -31281,13 +31995,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
31281
31995
|
nmbrs_employee_number?: string;
|
|
31282
31996
|
updated_at?: string;
|
|
31283
31997
|
};
|
|
31284
|
-
Relationships: [
|
|
31285
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
31286
|
-
columns: ["monteur_id"];
|
|
31287
|
-
isOneToOne: true;
|
|
31288
|
-
referencedRelation: "monteurs";
|
|
31289
|
-
referencedColumns: ["id"];
|
|
31290
|
-
}];
|
|
31998
|
+
Relationships: [];
|
|
31291
31999
|
};
|
|
31292
32000
|
nmbrs_export_lines: {
|
|
31293
32001
|
Row: {
|
|
@@ -31336,12 +32044,6 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
31336
32044
|
wage_code?: string;
|
|
31337
32045
|
};
|
|
31338
32046
|
Relationships: [{
|
|
31339
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
31340
|
-
columns: ["monteur_id"];
|
|
31341
|
-
isOneToOne: false;
|
|
31342
|
-
referencedRelation: "monteurs";
|
|
31343
|
-
referencedColumns: ["id"];
|
|
31344
|
-
}, {
|
|
31345
32047
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
31346
32048
|
columns: ["run_id"];
|
|
31347
32049
|
isOneToOne: false;
|
|
@@ -33732,6 +34434,9 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
33732
34434
|
created_at: string;
|
|
33733
34435
|
id: string;
|
|
33734
34436
|
laatst_gezien: string;
|
|
34437
|
+
laatste_fout: string | null;
|
|
34438
|
+
laatste_request_id: number | null;
|
|
34439
|
+
mislukte_posts: number;
|
|
33735
34440
|
tick_sleutel: string;
|
|
33736
34441
|
updated_at: string;
|
|
33737
34442
|
};
|
|
@@ -33741,6 +34446,9 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
33741
34446
|
created_at?: string;
|
|
33742
34447
|
id?: string;
|
|
33743
34448
|
laatst_gezien?: string;
|
|
34449
|
+
laatste_fout?: string | null;
|
|
34450
|
+
laatste_request_id?: number | null;
|
|
34451
|
+
mislukte_posts?: number;
|
|
33744
34452
|
tick_sleutel?: string;
|
|
33745
34453
|
updated_at?: string;
|
|
33746
34454
|
};
|
|
@@ -33750,6 +34458,9 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
33750
34458
|
created_at?: string;
|
|
33751
34459
|
id?: string;
|
|
33752
34460
|
laatst_gezien?: string;
|
|
34461
|
+
laatste_fout?: string | null;
|
|
34462
|
+
laatste_request_id?: number | null;
|
|
34463
|
+
mislukte_posts?: number;
|
|
33753
34464
|
tick_sleutel?: string;
|
|
33754
34465
|
updated_at?: string;
|
|
33755
34466
|
};
|
|
@@ -35258,6 +35969,96 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
35258
35969
|
referencedColumns: ["id"];
|
|
35259
35970
|
}];
|
|
35260
35971
|
};
|
|
35972
|
+
role_assignments: {
|
|
35973
|
+
Row: {
|
|
35974
|
+
created_at: string;
|
|
35975
|
+
id: string;
|
|
35976
|
+
role_id: string;
|
|
35977
|
+
user_id: string;
|
|
35978
|
+
};
|
|
35979
|
+
Insert: {
|
|
35980
|
+
created_at?: string;
|
|
35981
|
+
id?: string;
|
|
35982
|
+
role_id: string;
|
|
35983
|
+
user_id: string;
|
|
35984
|
+
};
|
|
35985
|
+
Update: {
|
|
35986
|
+
created_at?: string;
|
|
35987
|
+
id?: string;
|
|
35988
|
+
role_id?: string;
|
|
35989
|
+
user_id?: string;
|
|
35990
|
+
};
|
|
35991
|
+
Relationships: [{
|
|
35992
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
35993
|
+
columns: ["role_id"];
|
|
35994
|
+
isOneToOne: false;
|
|
35995
|
+
referencedRelation: "roles";
|
|
35996
|
+
referencedColumns: ["id"];
|
|
35997
|
+
}];
|
|
35998
|
+
};
|
|
35999
|
+
role_permissions: {
|
|
36000
|
+
Row: {
|
|
36001
|
+
can_edit: boolean;
|
|
36002
|
+
can_view: boolean;
|
|
36003
|
+
feature_id: string;
|
|
36004
|
+
id: string;
|
|
36005
|
+
module_id: string;
|
|
36006
|
+
role_id: string;
|
|
36007
|
+
updated_at: string;
|
|
36008
|
+
};
|
|
36009
|
+
Insert: {
|
|
36010
|
+
can_edit?: boolean;
|
|
36011
|
+
can_view?: boolean;
|
|
36012
|
+
feature_id?: string;
|
|
36013
|
+
id?: string;
|
|
36014
|
+
module_id: string;
|
|
36015
|
+
role_id: string;
|
|
36016
|
+
updated_at?: string;
|
|
36017
|
+
};
|
|
36018
|
+
Update: {
|
|
36019
|
+
can_edit?: boolean;
|
|
36020
|
+
can_view?: boolean;
|
|
36021
|
+
feature_id?: string;
|
|
36022
|
+
id?: string;
|
|
36023
|
+
module_id?: string;
|
|
36024
|
+
role_id?: string;
|
|
36025
|
+
updated_at?: string;
|
|
36026
|
+
};
|
|
36027
|
+
Relationships: [{
|
|
36028
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
36029
|
+
columns: ["role_id"];
|
|
36030
|
+
isOneToOne: false;
|
|
36031
|
+
referencedRelation: "roles";
|
|
36032
|
+
referencedColumns: ["id"];
|
|
36033
|
+
}];
|
|
36034
|
+
};
|
|
36035
|
+
roles: {
|
|
36036
|
+
Row: {
|
|
36037
|
+
created_at: string;
|
|
36038
|
+
id: string;
|
|
36039
|
+
is_protected: boolean;
|
|
36040
|
+
key: string;
|
|
36041
|
+
name: string;
|
|
36042
|
+
updated_at: string;
|
|
36043
|
+
};
|
|
36044
|
+
Insert: {
|
|
36045
|
+
created_at?: string;
|
|
36046
|
+
id?: string;
|
|
36047
|
+
is_protected?: boolean;
|
|
36048
|
+
key: string;
|
|
36049
|
+
name: string;
|
|
36050
|
+
updated_at?: string;
|
|
36051
|
+
};
|
|
36052
|
+
Update: {
|
|
36053
|
+
created_at?: string;
|
|
36054
|
+
id?: string;
|
|
36055
|
+
is_protected?: boolean;
|
|
36056
|
+
key?: string;
|
|
36057
|
+
name?: string;
|
|
36058
|
+
updated_at?: string;
|
|
36059
|
+
};
|
|
36060
|
+
Relationships: [];
|
|
36061
|
+
};
|
|
35261
36062
|
rooms: {
|
|
35262
36063
|
Row: {
|
|
35263
36064
|
capacity: number;
|
|
@@ -35927,6 +36728,54 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
35927
36728
|
};
|
|
35928
36729
|
Relationships: [];
|
|
35929
36730
|
};
|
|
36731
|
+
time_compensation_entries: {
|
|
36732
|
+
Row: {
|
|
36733
|
+
created_at: string;
|
|
36734
|
+
employee_id: string;
|
|
36735
|
+
entry_date: string;
|
|
36736
|
+
id: string;
|
|
36737
|
+
km: number;
|
|
36738
|
+
meal_allowance: number;
|
|
36739
|
+
notes: string | null;
|
|
36740
|
+
standby_evening: number;
|
|
36741
|
+
standby_weekend: number;
|
|
36742
|
+
tvt_change: number;
|
|
36743
|
+
updated_at: string;
|
|
36744
|
+
};
|
|
36745
|
+
Insert: {
|
|
36746
|
+
created_at?: string;
|
|
36747
|
+
employee_id: string;
|
|
36748
|
+
entry_date: string;
|
|
36749
|
+
id?: string;
|
|
36750
|
+
km?: number;
|
|
36751
|
+
meal_allowance?: number;
|
|
36752
|
+
notes?: string | null;
|
|
36753
|
+
standby_evening?: number;
|
|
36754
|
+
standby_weekend?: number;
|
|
36755
|
+
tvt_change?: number;
|
|
36756
|
+
updated_at?: string;
|
|
36757
|
+
};
|
|
36758
|
+
Update: {
|
|
36759
|
+
created_at?: string;
|
|
36760
|
+
employee_id?: string;
|
|
36761
|
+
entry_date?: string;
|
|
36762
|
+
id?: string;
|
|
36763
|
+
km?: number;
|
|
36764
|
+
meal_allowance?: number;
|
|
36765
|
+
notes?: string | null;
|
|
36766
|
+
standby_evening?: number;
|
|
36767
|
+
standby_weekend?: number;
|
|
36768
|
+
tvt_change?: number;
|
|
36769
|
+
updated_at?: string;
|
|
36770
|
+
};
|
|
36771
|
+
Relationships: [{
|
|
36772
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
36773
|
+
columns: ["employee_id"];
|
|
36774
|
+
isOneToOne: false;
|
|
36775
|
+
referencedRelation: "profiles";
|
|
36776
|
+
referencedColumns: ["id"];
|
|
36777
|
+
}];
|
|
36778
|
+
};
|
|
35930
36779
|
time_entries: {
|
|
35931
36780
|
Row: {
|
|
35932
36781
|
created_at: string;
|
|
@@ -35961,65 +36810,170 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
35961
36810
|
undertime?: number;
|
|
35962
36811
|
updated_at?: string;
|
|
35963
36812
|
};
|
|
36813
|
+
Relationships: [];
|
|
36814
|
+
};
|
|
36815
|
+
time_log_week_approvals: {
|
|
36816
|
+
Row: {
|
|
36817
|
+
approved_at: string | null;
|
|
36818
|
+
approved_by: string | null;
|
|
36819
|
+
created_at: string;
|
|
36820
|
+
employee_id: string;
|
|
36821
|
+
id: string;
|
|
36822
|
+
locked: boolean;
|
|
36823
|
+
notes: string | null;
|
|
36824
|
+
status: string;
|
|
36825
|
+
submitted_at: string | null;
|
|
36826
|
+
updated_at: string;
|
|
36827
|
+
week_start: string;
|
|
36828
|
+
};
|
|
36829
|
+
Insert: {
|
|
36830
|
+
approved_at?: string | null;
|
|
36831
|
+
approved_by?: string | null;
|
|
36832
|
+
created_at?: string;
|
|
36833
|
+
employee_id: string;
|
|
36834
|
+
id?: string;
|
|
36835
|
+
locked?: boolean;
|
|
36836
|
+
notes?: string | null;
|
|
36837
|
+
status?: string;
|
|
36838
|
+
submitted_at?: string | null;
|
|
36839
|
+
updated_at?: string;
|
|
36840
|
+
week_start: string;
|
|
36841
|
+
};
|
|
36842
|
+
Update: {
|
|
36843
|
+
approved_at?: string | null;
|
|
36844
|
+
approved_by?: string | null;
|
|
36845
|
+
created_at?: string;
|
|
36846
|
+
employee_id?: string;
|
|
36847
|
+
id?: string;
|
|
36848
|
+
locked?: boolean;
|
|
36849
|
+
notes?: string | null;
|
|
36850
|
+
status?: string;
|
|
36851
|
+
submitted_at?: string | null;
|
|
36852
|
+
updated_at?: string;
|
|
36853
|
+
week_start?: string;
|
|
36854
|
+
};
|
|
35964
36855
|
Relationships: [{
|
|
35965
|
-
foreignKeyName: "
|
|
36856
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
35966
36857
|
columns: ["employee_id"];
|
|
35967
36858
|
isOneToOne: false;
|
|
35968
|
-
referencedRelation: "
|
|
36859
|
+
referencedRelation: "profiles";
|
|
35969
36860
|
referencedColumns: ["id"];
|
|
35970
36861
|
}];
|
|
35971
36862
|
};
|
|
35972
36863
|
time_logs: {
|
|
35973
36864
|
Row: {
|
|
36865
|
+
auto_stop_reason: string | null;
|
|
36866
|
+
auto_stopped: boolean;
|
|
35974
36867
|
created_at: string;
|
|
36868
|
+
current_latitude: number | null;
|
|
36869
|
+
current_longitude: number | null;
|
|
36870
|
+
current_position_updated_at: string | null;
|
|
35975
36871
|
employee_id: string;
|
|
36872
|
+
end_latitude: number | null;
|
|
36873
|
+
end_longitude: number | null;
|
|
35976
36874
|
end_time: string | null;
|
|
36875
|
+
eta_distance_km: number | null;
|
|
36876
|
+
eta_minutes: number | null;
|
|
36877
|
+
eta_updated_at: string | null;
|
|
36878
|
+
hour_category: string | null;
|
|
35977
36879
|
id: string;
|
|
36880
|
+
last_reminder_at: string | null;
|
|
35978
36881
|
notes: string | null;
|
|
35979
36882
|
overtime_hours: number;
|
|
35980
36883
|
overtime_type: string | null;
|
|
35981
36884
|
regular_hours: number;
|
|
36885
|
+
reminder_count: number;
|
|
36886
|
+
requires_review: boolean;
|
|
36887
|
+
start_latitude: number | null;
|
|
36888
|
+
start_longitude: number | null;
|
|
35982
36889
|
start_time: string;
|
|
35983
36890
|
travel_cost: number | null;
|
|
35984
36891
|
travel_distance_km: number | null;
|
|
36892
|
+
travel_duration_min: number | null;
|
|
36893
|
+
travel_time_minutes: number | null;
|
|
35985
36894
|
type: string;
|
|
35986
36895
|
updated_at: string;
|
|
36896
|
+
work_order_id: string | null;
|
|
35987
36897
|
};
|
|
35988
36898
|
Insert: {
|
|
36899
|
+
auto_stop_reason?: string | null;
|
|
36900
|
+
auto_stopped?: boolean;
|
|
35989
36901
|
created_at?: string;
|
|
36902
|
+
current_latitude?: number | null;
|
|
36903
|
+
current_longitude?: number | null;
|
|
36904
|
+
current_position_updated_at?: string | null;
|
|
35990
36905
|
employee_id: string;
|
|
36906
|
+
end_latitude?: number | null;
|
|
36907
|
+
end_longitude?: number | null;
|
|
35991
36908
|
end_time?: string | null;
|
|
36909
|
+
eta_distance_km?: number | null;
|
|
36910
|
+
eta_minutes?: number | null;
|
|
36911
|
+
eta_updated_at?: string | null;
|
|
36912
|
+
hour_category?: string | null;
|
|
35992
36913
|
id?: string;
|
|
36914
|
+
last_reminder_at?: string | null;
|
|
35993
36915
|
notes?: string | null;
|
|
35994
36916
|
overtime_hours?: number;
|
|
35995
36917
|
overtime_type?: string | null;
|
|
35996
36918
|
regular_hours?: number;
|
|
36919
|
+
reminder_count?: number;
|
|
36920
|
+
requires_review?: boolean;
|
|
36921
|
+
start_latitude?: number | null;
|
|
36922
|
+
start_longitude?: number | null;
|
|
35997
36923
|
start_time?: string;
|
|
35998
36924
|
travel_cost?: number | null;
|
|
35999
36925
|
travel_distance_km?: number | null;
|
|
36926
|
+
travel_duration_min?: number | null;
|
|
36927
|
+
travel_time_minutes?: number | null;
|
|
36000
36928
|
type: string;
|
|
36001
36929
|
updated_at?: string;
|
|
36930
|
+
work_order_id?: string | null;
|
|
36002
36931
|
};
|
|
36003
36932
|
Update: {
|
|
36933
|
+
auto_stop_reason?: string | null;
|
|
36934
|
+
auto_stopped?: boolean;
|
|
36004
36935
|
created_at?: string;
|
|
36936
|
+
current_latitude?: number | null;
|
|
36937
|
+
current_longitude?: number | null;
|
|
36938
|
+
current_position_updated_at?: string | null;
|
|
36005
36939
|
employee_id?: string;
|
|
36940
|
+
end_latitude?: number | null;
|
|
36941
|
+
end_longitude?: number | null;
|
|
36006
36942
|
end_time?: string | null;
|
|
36943
|
+
eta_distance_km?: number | null;
|
|
36944
|
+
eta_minutes?: number | null;
|
|
36945
|
+
eta_updated_at?: string | null;
|
|
36946
|
+
hour_category?: string | null;
|
|
36007
36947
|
id?: string;
|
|
36948
|
+
last_reminder_at?: string | null;
|
|
36008
36949
|
notes?: string | null;
|
|
36009
36950
|
overtime_hours?: number;
|
|
36010
36951
|
overtime_type?: string | null;
|
|
36011
36952
|
regular_hours?: number;
|
|
36953
|
+
reminder_count?: number;
|
|
36954
|
+
requires_review?: boolean;
|
|
36955
|
+
start_latitude?: number | null;
|
|
36956
|
+
start_longitude?: number | null;
|
|
36012
36957
|
start_time?: string;
|
|
36013
36958
|
travel_cost?: number | null;
|
|
36014
36959
|
travel_distance_km?: number | null;
|
|
36960
|
+
travel_duration_min?: number | null;
|
|
36961
|
+
travel_time_minutes?: number | null;
|
|
36015
36962
|
type?: string;
|
|
36016
36963
|
updated_at?: string;
|
|
36964
|
+
work_order_id?: string | null;
|
|
36017
36965
|
};
|
|
36018
36966
|
Relationships: [{
|
|
36019
36967
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
36020
36968
|
columns: ["employee_id"];
|
|
36021
36969
|
isOneToOne: false;
|
|
36022
|
-
referencedRelation: "
|
|
36970
|
+
referencedRelation: "profiles";
|
|
36971
|
+
referencedColumns: ["id"];
|
|
36972
|
+
}, {
|
|
36973
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
36974
|
+
columns: ["work_order_id"];
|
|
36975
|
+
isOneToOne: false;
|
|
36976
|
+
referencedRelation: "work_orders";
|
|
36023
36977
|
referencedColumns: ["id"];
|
|
36024
36978
|
}];
|
|
36025
36979
|
};
|
|
@@ -36058,7 +37012,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
36058
37012
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
36059
37013
|
columns: ["employee_id"];
|
|
36060
37014
|
isOneToOne: false;
|
|
36061
|
-
referencedRelation: "
|
|
37015
|
+
referencedRelation: "profiles";
|
|
36062
37016
|
referencedColumns: ["id"];
|
|
36063
37017
|
}];
|
|
36064
37018
|
};
|
|
@@ -36368,6 +37322,39 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
36368
37322
|
};
|
|
36369
37323
|
Relationships: [];
|
|
36370
37324
|
};
|
|
37325
|
+
twinfield_cron_locks: {
|
|
37326
|
+
Row: {
|
|
37327
|
+
created_at: string;
|
|
37328
|
+
heartbeat_at: string;
|
|
37329
|
+
job_name: string;
|
|
37330
|
+
last_error: string | null;
|
|
37331
|
+
last_finished_at: string | null;
|
|
37332
|
+
locked_at: string;
|
|
37333
|
+
run_id: string;
|
|
37334
|
+
updated_at: string;
|
|
37335
|
+
};
|
|
37336
|
+
Insert: {
|
|
37337
|
+
created_at?: string;
|
|
37338
|
+
heartbeat_at?: string;
|
|
37339
|
+
job_name: string;
|
|
37340
|
+
last_error?: string | null;
|
|
37341
|
+
last_finished_at?: string | null;
|
|
37342
|
+
locked_at?: string;
|
|
37343
|
+
run_id?: string;
|
|
37344
|
+
updated_at?: string;
|
|
37345
|
+
};
|
|
37346
|
+
Update: {
|
|
37347
|
+
created_at?: string;
|
|
37348
|
+
heartbeat_at?: string;
|
|
37349
|
+
job_name?: string;
|
|
37350
|
+
last_error?: string | null;
|
|
37351
|
+
last_finished_at?: string | null;
|
|
37352
|
+
locked_at?: string;
|
|
37353
|
+
run_id?: string;
|
|
37354
|
+
updated_at?: string;
|
|
37355
|
+
};
|
|
37356
|
+
Relationships: [];
|
|
37357
|
+
};
|
|
36371
37358
|
twinfield_customers: {
|
|
36372
37359
|
Row: {
|
|
36373
37360
|
address: string | null;
|
|
@@ -36968,6 +37955,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
36968
37955
|
twinfield_push_queue: {
|
|
36969
37956
|
Row: {
|
|
36970
37957
|
action: string;
|
|
37958
|
+
attempt_started_at: string | null;
|
|
36971
37959
|
attempts: number;
|
|
36972
37960
|
connection_id: string | null;
|
|
36973
37961
|
created_at: string;
|
|
@@ -36984,6 +37972,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
36984
37972
|
};
|
|
36985
37973
|
Insert: {
|
|
36986
37974
|
action?: string;
|
|
37975
|
+
attempt_started_at?: string | null;
|
|
36987
37976
|
attempts?: number;
|
|
36988
37977
|
connection_id?: string | null;
|
|
36989
37978
|
created_at?: string;
|
|
@@ -37000,6 +37989,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
37000
37989
|
};
|
|
37001
37990
|
Update: {
|
|
37002
37991
|
action?: string;
|
|
37992
|
+
attempt_started_at?: string | null;
|
|
37003
37993
|
attempts?: number;
|
|
37004
37994
|
connection_id?: string | null;
|
|
37005
37995
|
created_at?: string;
|
|
@@ -37197,13 +38187,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
37197
38187
|
workday_end?: string | null;
|
|
37198
38188
|
workday_start?: string | null;
|
|
37199
38189
|
};
|
|
37200
|
-
Relationships: [
|
|
37201
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
37202
|
-
columns: ["monteur_id"];
|
|
37203
|
-
isOneToOne: true;
|
|
37204
|
-
referencedRelation: "monteurs";
|
|
37205
|
-
referencedColumns: ["id"];
|
|
37206
|
-
}];
|
|
38190
|
+
Relationships: [];
|
|
37207
38191
|
};
|
|
37208
38192
|
uren_entries: {
|
|
37209
38193
|
Row: {
|
|
@@ -37249,12 +38233,6 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
37249
38233
|
werkbon_id?: string | null;
|
|
37250
38234
|
};
|
|
37251
38235
|
Relationships: [{
|
|
37252
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
37253
|
-
columns: ["monteur_id"];
|
|
37254
|
-
isOneToOne: false;
|
|
37255
|
-
referencedRelation: "monteurs";
|
|
37256
|
-
referencedColumns: ["id"];
|
|
37257
|
-
}, {
|
|
37258
38236
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
37259
38237
|
columns: ["werkbon_id"];
|
|
37260
38238
|
isOneToOne: false;
|
|
@@ -37722,17 +38700,12 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
37722
38700
|
submitted_at?: string | null;
|
|
37723
38701
|
updated_at?: string;
|
|
37724
38702
|
};
|
|
37725
|
-
Relationships: [
|
|
37726
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
37727
|
-
columns: ["monteur_id"];
|
|
37728
|
-
isOneToOne: false;
|
|
37729
|
-
referencedRelation: "monteurs";
|
|
37730
|
-
referencedColumns: ["id"];
|
|
37731
|
-
}];
|
|
38703
|
+
Relationships: [];
|
|
37732
38704
|
};
|
|
37733
38705
|
user_module_permissions: {
|
|
37734
38706
|
Row: {
|
|
37735
38707
|
created_at: string;
|
|
38708
|
+
feature_id: string;
|
|
37736
38709
|
id: string;
|
|
37737
38710
|
module_id: string;
|
|
37738
38711
|
permission: string;
|
|
@@ -37741,6 +38714,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
37741
38714
|
};
|
|
37742
38715
|
Insert: {
|
|
37743
38716
|
created_at?: string;
|
|
38717
|
+
feature_id?: string;
|
|
37744
38718
|
id?: string;
|
|
37745
38719
|
module_id: string;
|
|
37746
38720
|
permission: string;
|
|
@@ -37749,6 +38723,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
37749
38723
|
};
|
|
37750
38724
|
Update: {
|
|
37751
38725
|
created_at?: string;
|
|
38726
|
+
feature_id?: string;
|
|
37752
38727
|
id?: string;
|
|
37753
38728
|
module_id?: string;
|
|
37754
38729
|
permission?: string;
|
|
@@ -37784,6 +38759,51 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
37784
38759
|
referencedColumns: ["id"];
|
|
37785
38760
|
}];
|
|
37786
38761
|
};
|
|
38762
|
+
van_inventories: {
|
|
38763
|
+
Row: {
|
|
38764
|
+
barcode: string | null;
|
|
38765
|
+
created_at: string;
|
|
38766
|
+
id: string;
|
|
38767
|
+
monteur_id: string | null;
|
|
38768
|
+
price_per_unit: number;
|
|
38769
|
+
product_name: string;
|
|
38770
|
+
quantity_current: number;
|
|
38771
|
+
quantity_min: number;
|
|
38772
|
+
unit: string;
|
|
38773
|
+
updated_at: string;
|
|
38774
|
+
};
|
|
38775
|
+
Insert: {
|
|
38776
|
+
barcode?: string | null;
|
|
38777
|
+
created_at?: string;
|
|
38778
|
+
id?: string;
|
|
38779
|
+
monteur_id?: string | null;
|
|
38780
|
+
price_per_unit?: number;
|
|
38781
|
+
product_name: string;
|
|
38782
|
+
quantity_current?: number;
|
|
38783
|
+
quantity_min?: number;
|
|
38784
|
+
unit?: string;
|
|
38785
|
+
updated_at?: string;
|
|
38786
|
+
};
|
|
38787
|
+
Update: {
|
|
38788
|
+
barcode?: string | null;
|
|
38789
|
+
created_at?: string;
|
|
38790
|
+
id?: string;
|
|
38791
|
+
monteur_id?: string | null;
|
|
38792
|
+
price_per_unit?: number;
|
|
38793
|
+
product_name?: string;
|
|
38794
|
+
quantity_current?: number;
|
|
38795
|
+
quantity_min?: number;
|
|
38796
|
+
unit?: string;
|
|
38797
|
+
updated_at?: string;
|
|
38798
|
+
};
|
|
38799
|
+
Relationships: [{
|
|
38800
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
38801
|
+
columns: ["monteur_id"];
|
|
38802
|
+
isOneToOne: false;
|
|
38803
|
+
referencedRelation: "profiles";
|
|
38804
|
+
referencedColumns: ["id"];
|
|
38805
|
+
}];
|
|
38806
|
+
};
|
|
37787
38807
|
voorraad_custom_fields: {
|
|
37788
38808
|
Row: {
|
|
37789
38809
|
created_at: string;
|
|
@@ -38734,7 +39754,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
38734
39754
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
38735
39755
|
columns: ["monteur_id"];
|
|
38736
39756
|
isOneToOne: false;
|
|
38737
|
-
referencedRelation: "
|
|
39757
|
+
referencedRelation: "profiles";
|
|
38738
39758
|
referencedColumns: ["id"];
|
|
38739
39759
|
}, {
|
|
38740
39760
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -38744,6 +39764,60 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
38744
39764
|
referencedColumns: ["id"];
|
|
38745
39765
|
}];
|
|
38746
39766
|
};
|
|
39767
|
+
work_order_photos: {
|
|
39768
|
+
Row: {
|
|
39769
|
+
ai_caption: string | null;
|
|
39770
|
+
ai_categorized_at: string | null;
|
|
39771
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
39772
|
+
caption: string | null;
|
|
39773
|
+
created_at: string;
|
|
39774
|
+
id: string;
|
|
39775
|
+
monteur_id: string | null;
|
|
39776
|
+
photo_type: string;
|
|
39777
|
+
storage_path: string;
|
|
39778
|
+
updated_at: string;
|
|
39779
|
+
work_order_id: string;
|
|
39780
|
+
};
|
|
39781
|
+
Insert: {
|
|
39782
|
+
ai_caption?: string | null;
|
|
39783
|
+
ai_categorized_at?: string | null;
|
|
39784
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
39785
|
+
caption?: string | null;
|
|
39786
|
+
created_at?: string;
|
|
39787
|
+
id?: string;
|
|
39788
|
+
monteur_id?: string | null;
|
|
39789
|
+
photo_type?: string;
|
|
39790
|
+
storage_path: string;
|
|
39791
|
+
updated_at?: string;
|
|
39792
|
+
work_order_id: string;
|
|
39793
|
+
};
|
|
39794
|
+
Update: {
|
|
39795
|
+
ai_caption?: string | null;
|
|
39796
|
+
ai_categorized_at?: string | null;
|
|
39797
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
39798
|
+
caption?: string | null;
|
|
39799
|
+
created_at?: string;
|
|
39800
|
+
id?: string;
|
|
39801
|
+
monteur_id?: string | null;
|
|
39802
|
+
photo_type?: string;
|
|
39803
|
+
storage_path?: string;
|
|
39804
|
+
updated_at?: string;
|
|
39805
|
+
work_order_id?: string;
|
|
39806
|
+
};
|
|
39807
|
+
Relationships: [{
|
|
39808
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
39809
|
+
columns: ["monteur_id"];
|
|
39810
|
+
isOneToOne: false;
|
|
39811
|
+
referencedRelation: "profiles";
|
|
39812
|
+
referencedColumns: ["id"];
|
|
39813
|
+
}, {
|
|
39814
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
39815
|
+
columns: ["work_order_id"];
|
|
39816
|
+
isOneToOne: false;
|
|
39817
|
+
referencedRelation: "work_orders";
|
|
39818
|
+
referencedColumns: ["id"];
|
|
39819
|
+
}];
|
|
39820
|
+
};
|
|
38747
39821
|
work_orders: {
|
|
38748
39822
|
Row: {
|
|
38749
39823
|
assigned_to: string | null;
|
|
@@ -38775,7 +39849,6 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
38775
39849
|
scheduled_end_time: string | null;
|
|
38776
39850
|
scheduled_start_time: string | null;
|
|
38777
39851
|
status: string;
|
|
38778
|
-
tenant_id: string;
|
|
38779
39852
|
total_hours_worked: number | null;
|
|
38780
39853
|
total_price: number | null;
|
|
38781
39854
|
travel_time_minutes: number | null;
|
|
@@ -38813,7 +39886,6 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
38813
39886
|
scheduled_end_time?: string | null;
|
|
38814
39887
|
scheduled_start_time?: string | null;
|
|
38815
39888
|
status?: string;
|
|
38816
|
-
tenant_id: string;
|
|
38817
39889
|
total_hours_worked?: number | null;
|
|
38818
39890
|
total_price?: number | null;
|
|
38819
39891
|
travel_time_minutes?: number | null;
|
|
@@ -38851,7 +39923,6 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
38851
39923
|
scheduled_end_time?: string | null;
|
|
38852
39924
|
scheduled_start_time?: string | null;
|
|
38853
39925
|
status?: string;
|
|
38854
|
-
tenant_id?: string;
|
|
38855
39926
|
total_hours_worked?: number | null;
|
|
38856
39927
|
total_price?: number | null;
|
|
38857
39928
|
travel_time_minutes?: number | null;
|
|
@@ -38865,12 +39936,6 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
38865
39936
|
isOneToOne: false;
|
|
38866
39937
|
referencedRelation: "work_orders";
|
|
38867
39938
|
referencedColumns: ["id"];
|
|
38868
|
-
}, {
|
|
38869
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
38870
|
-
columns: ["tenant_id"];
|
|
38871
|
-
isOneToOne: false;
|
|
38872
|
-
referencedRelation: "tenants";
|
|
38873
|
-
referencedColumns: ["id"];
|
|
38874
39939
|
}];
|
|
38875
39940
|
};
|
|
38876
39941
|
};
|
|
@@ -39555,6 +40620,19 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
39555
40620
|
};
|
|
39556
40621
|
Returns: undefined;
|
|
39557
40622
|
};
|
|
40623
|
+
approve_mailbox_order_proposal: {
|
|
40624
|
+
Args: {
|
|
40625
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
40626
|
+
p_customer_id: string;
|
|
40627
|
+
p_delivery_date: string;
|
|
40628
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
40629
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
40630
|
+
p_notes: string;
|
|
40631
|
+
p_proposal_id: string;
|
|
40632
|
+
p_reviewed_by: string;
|
|
40633
|
+
};
|
|
40634
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
40635
|
+
};
|
|
39558
40636
|
assign_cart_numbers: {
|
|
39559
40637
|
Args: {
|
|
39560
40638
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -39606,6 +40684,10 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
39606
40684
|
};
|
|
39607
40685
|
Returns: number;
|
|
39608
40686
|
};
|
|
40687
|
+
can_manage_hours: {
|
|
40688
|
+
Args: never;
|
|
40689
|
+
Returns: boolean;
|
|
40690
|
+
};
|
|
39609
40691
|
check_offer_product_available_stock: {
|
|
39610
40692
|
Args: {
|
|
39611
40693
|
p_campaign_product_id: string;
|
|
@@ -39795,6 +40877,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
39795
40877
|
};
|
|
39796
40878
|
Returns: {
|
|
39797
40879
|
action: string;
|
|
40880
|
+
attempt_started_at: string | null;
|
|
39798
40881
|
attempts: number;
|
|
39799
40882
|
connection_id: string | null;
|
|
39800
40883
|
created_at: string;
|
|
@@ -39882,6 +40965,30 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
39882
40965
|
agent_naam: string;
|
|
39883
40966
|
}[];
|
|
39884
40967
|
};
|
|
40968
|
+
consume_van_inventory: {
|
|
40969
|
+
Args: {
|
|
40970
|
+
p_inventory_id: string;
|
|
40971
|
+
p_quantity: number;
|
|
40972
|
+
};
|
|
40973
|
+
Returns: {
|
|
40974
|
+
barcode: string | null;
|
|
40975
|
+
created_at: string;
|
|
40976
|
+
id: string;
|
|
40977
|
+
monteur_id: string | null;
|
|
40978
|
+
price_per_unit: number;
|
|
40979
|
+
product_name: string;
|
|
40980
|
+
quantity_current: number;
|
|
40981
|
+
quantity_min: number;
|
|
40982
|
+
unit: string;
|
|
40983
|
+
updated_at: string;
|
|
40984
|
+
};
|
|
40985
|
+
SetofOptions: {
|
|
40986
|
+
from: "*";
|
|
40987
|
+
to: "van_inventories";
|
|
40988
|
+
isOneToOne: true;
|
|
40989
|
+
isSetofReturn: false;
|
|
40990
|
+
};
|
|
40991
|
+
};
|
|
39885
40992
|
control_get_todays_carts: {
|
|
39886
40993
|
Args: never;
|
|
39887
40994
|
Returns: {
|
|
@@ -39955,6 +41062,13 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
39955
41062
|
_user_id: string;
|
|
39956
41063
|
};
|
|
39957
41064
|
Returns: string;
|
|
41065
|
+
} | {
|
|
41066
|
+
Args: {
|
|
41067
|
+
_feature_id: string;
|
|
41068
|
+
_module_id: string;
|
|
41069
|
+
_user_id: string;
|
|
41070
|
+
};
|
|
41071
|
+
Returns: string;
|
|
39958
41072
|
};
|
|
39959
41073
|
email_auth_decrypt: {
|
|
39960
41074
|
Args: {
|
|
@@ -40306,12 +41420,6 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
40306
41420
|
Args: never;
|
|
40307
41421
|
Returns: string;
|
|
40308
41422
|
};
|
|
40309
|
-
get_work_order_tenant_id: {
|
|
40310
|
-
Args: {
|
|
40311
|
-
wo_id: string;
|
|
40312
|
-
};
|
|
40313
|
-
Returns: string;
|
|
40314
|
-
};
|
|
40315
41423
|
has_module_permission: {
|
|
40316
41424
|
Args: {
|
|
40317
41425
|
_min: string;
|
|
@@ -40345,6 +41453,13 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
40345
41453
|
};
|
|
40346
41454
|
Returns: boolean;
|
|
40347
41455
|
};
|
|
41456
|
+
is_time_log_week_locked: {
|
|
41457
|
+
Args: {
|
|
41458
|
+
p_employee_id: string;
|
|
41459
|
+
p_start_time: string;
|
|
41460
|
+
};
|
|
41461
|
+
Returns: boolean;
|
|
41462
|
+
};
|
|
40348
41463
|
is_user_admin: {
|
|
40349
41464
|
Args: never;
|
|
40350
41465
|
Returns: boolean;
|
|
@@ -40359,13 +41474,14 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
40359
41474
|
};
|
|
40360
41475
|
Returns: boolean;
|
|
40361
41476
|
};
|
|
40362
|
-
|
|
41477
|
+
list_medewerkers: {
|
|
40363
41478
|
Args: never;
|
|
40364
41479
|
Returns: {
|
|
40365
41480
|
avatar_url: string;
|
|
40366
41481
|
display_name: string;
|
|
40367
41482
|
email: string;
|
|
40368
41483
|
id: string;
|
|
41484
|
+
roles: string[];
|
|
40369
41485
|
}[];
|
|
40370
41486
|
};
|
|
40371
41487
|
list_my_planning_items: {
|
|
@@ -40691,17 +41807,6 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
40691
41807
|
Returns: string;
|
|
40692
41808
|
};
|
|
40693
41809
|
logistics_emit_event: {
|
|
40694
|
-
Args: {
|
|
40695
|
-
p_event_type: string;
|
|
40696
|
-
p_idempotency_key?: string;
|
|
40697
|
-
p_order_ref: string;
|
|
40698
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
40699
|
-
p_shadow?: boolean;
|
|
40700
|
-
p_source_module: string;
|
|
40701
|
-
p_strategy_id?: string;
|
|
40702
|
-
};
|
|
40703
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
40704
|
-
} | {
|
|
40705
41810
|
Args: {
|
|
40706
41811
|
p_event_type: string;
|
|
40707
41812
|
p_idempotency_key?: string;
|
|
@@ -41156,6 +42261,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
41156
42261
|
my_module_permissions: {
|
|
41157
42262
|
Args: never;
|
|
41158
42263
|
Returns: {
|
|
42264
|
+
feature_id: string;
|
|
41159
42265
|
module_id: string;
|
|
41160
42266
|
permission: string;
|
|
41161
42267
|
}[];
|
|
@@ -42036,6 +43142,16 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
42036
43142
|
};
|
|
42037
43143
|
Returns: string[];
|
|
42038
43144
|
};
|
|
43145
|
+
switch_time_log: {
|
|
43146
|
+
Args: {
|
|
43147
|
+
p_employee_id: string;
|
|
43148
|
+
p_start_lat?: number;
|
|
43149
|
+
p_start_lng?: number;
|
|
43150
|
+
p_type: string;
|
|
43151
|
+
p_work_order_id?: string;
|
|
43152
|
+
};
|
|
43153
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43154
|
+
};
|
|
42039
43155
|
sync_all_layer_stocks: {
|
|
42040
43156
|
Args: never;
|
|
42041
43157
|
Returns: undefined;
|
|
@@ -42086,6 +43202,24 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
42086
43202
|
};
|
|
42087
43203
|
Returns: boolean;
|
|
42088
43204
|
};
|
|
43205
|
+
twinfield_cron_lock_acquire: {
|
|
43206
|
+
Args: {
|
|
43207
|
+
_job_name: string;
|
|
43208
|
+
_stale_seconds?: number;
|
|
43209
|
+
};
|
|
43210
|
+
Returns: boolean;
|
|
43211
|
+
};
|
|
43212
|
+
twinfield_cron_lock_release: {
|
|
43213
|
+
Args: {
|
|
43214
|
+
_error?: string;
|
|
43215
|
+
_job_name: string;
|
|
43216
|
+
};
|
|
43217
|
+
Returns: undefined;
|
|
43218
|
+
};
|
|
43219
|
+
twinfield_prune_push_queue: {
|
|
43220
|
+
Args: never;
|
|
43221
|
+
Returns: number;
|
|
43222
|
+
};
|
|
42089
43223
|
twinfield_register_cron: {
|
|
42090
43224
|
Args: {
|
|
42091
43225
|
apikey?: string;
|
|
@@ -42129,7 +43263,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
42129
43263
|
Enums: {
|
|
42130
43264
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
42131
43265
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
42132
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
43266
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
42133
43267
|
doc_orientation: "portrait" | "landscape";
|
|
42134
43268
|
exact_env: "staging" | "live";
|
|
42135
43269
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -43055,6 +44189,126 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
43055
44189
|
};
|
|
43056
44190
|
Relationships: [];
|
|
43057
44191
|
};
|
|
44192
|
+
cao_holidays: {
|
|
44193
|
+
Row: {
|
|
44194
|
+
created_at: string;
|
|
44195
|
+
description: string | null;
|
|
44196
|
+
holiday_date: string;
|
|
44197
|
+
id: string;
|
|
44198
|
+
updated_at: string;
|
|
44199
|
+
};
|
|
44200
|
+
Insert: {
|
|
44201
|
+
created_at?: string;
|
|
44202
|
+
description?: string | null;
|
|
44203
|
+
holiday_date: string;
|
|
44204
|
+
id?: string;
|
|
44205
|
+
updated_at?: string;
|
|
44206
|
+
};
|
|
44207
|
+
Update: {
|
|
44208
|
+
created_at?: string;
|
|
44209
|
+
description?: string | null;
|
|
44210
|
+
holiday_date?: string;
|
|
44211
|
+
id?: string;
|
|
44212
|
+
updated_at?: string;
|
|
44213
|
+
};
|
|
44214
|
+
Relationships: [];
|
|
44215
|
+
};
|
|
44216
|
+
cao_settings: {
|
|
44217
|
+
Row: {
|
|
44218
|
+
auto_break_after_hours: number;
|
|
44219
|
+
auto_break_minutes: number;
|
|
44220
|
+
auto_break_unpaid: boolean;
|
|
44221
|
+
auto_stop_after_hours: number;
|
|
44222
|
+
callout_fee: number;
|
|
44223
|
+
created_at: string;
|
|
44224
|
+
daily_regular_hours: number;
|
|
44225
|
+
default_hourly_rate: number;
|
|
44226
|
+
id: string;
|
|
44227
|
+
materials_markup_percent: number;
|
|
44228
|
+
max_daily_hours: number;
|
|
44229
|
+
max_weekly_hours: number;
|
|
44230
|
+
meal_allowance_amount: number;
|
|
44231
|
+
overtime_pct_178: number;
|
|
44232
|
+
overtime_pct_189: number;
|
|
44233
|
+
overtime_pct_212: number;
|
|
44234
|
+
reminder_after_hours: number;
|
|
44235
|
+
standby_evening_amount: number;
|
|
44236
|
+
standby_weekend_amount: number;
|
|
44237
|
+
travel_cost_per_km: number | null;
|
|
44238
|
+
travel_cost_threshold_km: number | null;
|
|
44239
|
+
travel_counts_as_work: boolean;
|
|
44240
|
+
travel_hourly_rate: number;
|
|
44241
|
+
travel_rate_per_hour: number;
|
|
44242
|
+
travel_threshold_minutes: number;
|
|
44243
|
+
updated_at: string;
|
|
44244
|
+
weekend_always_212: boolean;
|
|
44245
|
+
window_end: string;
|
|
44246
|
+
window_start: string;
|
|
44247
|
+
};
|
|
44248
|
+
Insert: {
|
|
44249
|
+
auto_break_after_hours?: number;
|
|
44250
|
+
auto_break_minutes?: number;
|
|
44251
|
+
auto_break_unpaid?: boolean;
|
|
44252
|
+
auto_stop_after_hours?: number;
|
|
44253
|
+
callout_fee?: number;
|
|
44254
|
+
created_at?: string;
|
|
44255
|
+
daily_regular_hours?: number;
|
|
44256
|
+
default_hourly_rate?: number;
|
|
44257
|
+
id?: string;
|
|
44258
|
+
materials_markup_percent?: number;
|
|
44259
|
+
max_daily_hours?: number;
|
|
44260
|
+
max_weekly_hours?: number;
|
|
44261
|
+
meal_allowance_amount?: number;
|
|
44262
|
+
overtime_pct_178?: number;
|
|
44263
|
+
overtime_pct_189?: number;
|
|
44264
|
+
overtime_pct_212?: number;
|
|
44265
|
+
reminder_after_hours?: number;
|
|
44266
|
+
standby_evening_amount?: number;
|
|
44267
|
+
standby_weekend_amount?: number;
|
|
44268
|
+
travel_cost_per_km?: number | null;
|
|
44269
|
+
travel_cost_threshold_km?: number | null;
|
|
44270
|
+
travel_counts_as_work?: boolean;
|
|
44271
|
+
travel_hourly_rate?: number;
|
|
44272
|
+
travel_rate_per_hour?: number;
|
|
44273
|
+
travel_threshold_minutes?: number;
|
|
44274
|
+
updated_at?: string;
|
|
44275
|
+
weekend_always_212?: boolean;
|
|
44276
|
+
window_end?: string;
|
|
44277
|
+
window_start?: string;
|
|
44278
|
+
};
|
|
44279
|
+
Update: {
|
|
44280
|
+
auto_break_after_hours?: number;
|
|
44281
|
+
auto_break_minutes?: number;
|
|
44282
|
+
auto_break_unpaid?: boolean;
|
|
44283
|
+
auto_stop_after_hours?: number;
|
|
44284
|
+
callout_fee?: number;
|
|
44285
|
+
created_at?: string;
|
|
44286
|
+
daily_regular_hours?: number;
|
|
44287
|
+
default_hourly_rate?: number;
|
|
44288
|
+
id?: string;
|
|
44289
|
+
materials_markup_percent?: number;
|
|
44290
|
+
max_daily_hours?: number;
|
|
44291
|
+
max_weekly_hours?: number;
|
|
44292
|
+
meal_allowance_amount?: number;
|
|
44293
|
+
overtime_pct_178?: number;
|
|
44294
|
+
overtime_pct_189?: number;
|
|
44295
|
+
overtime_pct_212?: number;
|
|
44296
|
+
reminder_after_hours?: number;
|
|
44297
|
+
standby_evening_amount?: number;
|
|
44298
|
+
standby_weekend_amount?: number;
|
|
44299
|
+
travel_cost_per_km?: number | null;
|
|
44300
|
+
travel_cost_threshold_km?: number | null;
|
|
44301
|
+
travel_counts_as_work?: boolean;
|
|
44302
|
+
travel_hourly_rate?: number;
|
|
44303
|
+
travel_rate_per_hour?: number;
|
|
44304
|
+
travel_threshold_minutes?: number;
|
|
44305
|
+
updated_at?: string;
|
|
44306
|
+
weekend_always_212?: boolean;
|
|
44307
|
+
window_end?: string;
|
|
44308
|
+
window_start?: string;
|
|
44309
|
+
};
|
|
44310
|
+
Relationships: [];
|
|
44311
|
+
};
|
|
43058
44312
|
carrier_shipping_rates: {
|
|
43059
44313
|
Row: {
|
|
43060
44314
|
carrier_id: string;
|
|
@@ -49949,7 +51203,6 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
49949
51203
|
start_date: string;
|
|
49950
51204
|
start_time: string | null;
|
|
49951
51205
|
status: string;
|
|
49952
|
-
tenant_id: string;
|
|
49953
51206
|
updated_at: string;
|
|
49954
51207
|
user_id: string;
|
|
49955
51208
|
};
|
|
@@ -49967,7 +51220,6 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
49967
51220
|
start_date: string;
|
|
49968
51221
|
start_time?: string | null;
|
|
49969
51222
|
status?: string;
|
|
49970
|
-
tenant_id?: string;
|
|
49971
51223
|
updated_at?: string;
|
|
49972
51224
|
user_id: string;
|
|
49973
51225
|
};
|
|
@@ -49985,7 +51237,6 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
49985
51237
|
start_date?: string;
|
|
49986
51238
|
start_time?: string | null;
|
|
49987
51239
|
status?: string;
|
|
49988
|
-
tenant_id?: string;
|
|
49989
51240
|
updated_at?: string;
|
|
49990
51241
|
user_id?: string;
|
|
49991
51242
|
};
|
|
@@ -49993,13 +51244,13 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
49993
51244
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
49994
51245
|
columns: ["monteur_id"];
|
|
49995
51246
|
isOneToOne: false;
|
|
49996
|
-
referencedRelation: "
|
|
51247
|
+
referencedRelation: "profiles";
|
|
49997
51248
|
referencedColumns: ["id"];
|
|
49998
51249
|
}, {
|
|
49999
51250
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
50000
51251
|
columns: ["user_id"];
|
|
50001
51252
|
isOneToOne: false;
|
|
50002
|
-
referencedRelation: "
|
|
51253
|
+
referencedRelation: "profiles";
|
|
50003
51254
|
referencedColumns: ["id"];
|
|
50004
51255
|
}];
|
|
50005
51256
|
};
|
|
@@ -52154,6 +53405,90 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
52154
53405
|
};
|
|
52155
53406
|
Relationships: [];
|
|
52156
53407
|
};
|
|
53408
|
+
material_usage: {
|
|
53409
|
+
Row: {
|
|
53410
|
+
created_at: string;
|
|
53411
|
+
id: string;
|
|
53412
|
+
material_name: string;
|
|
53413
|
+
monteur_id: string | null;
|
|
53414
|
+
price_at_time: number;
|
|
53415
|
+
quantity_used: number;
|
|
53416
|
+
updated_at: string;
|
|
53417
|
+
van_inventory_id: string | null;
|
|
53418
|
+
work_order_id: string;
|
|
53419
|
+
};
|
|
53420
|
+
Insert: {
|
|
53421
|
+
created_at?: string;
|
|
53422
|
+
id?: string;
|
|
53423
|
+
material_name: string;
|
|
53424
|
+
monteur_id?: string | null;
|
|
53425
|
+
price_at_time?: number;
|
|
53426
|
+
quantity_used?: number;
|
|
53427
|
+
updated_at?: string;
|
|
53428
|
+
van_inventory_id?: string | null;
|
|
53429
|
+
work_order_id: string;
|
|
53430
|
+
};
|
|
53431
|
+
Update: {
|
|
53432
|
+
created_at?: string;
|
|
53433
|
+
id?: string;
|
|
53434
|
+
material_name?: string;
|
|
53435
|
+
monteur_id?: string | null;
|
|
53436
|
+
price_at_time?: number;
|
|
53437
|
+
quantity_used?: number;
|
|
53438
|
+
updated_at?: string;
|
|
53439
|
+
van_inventory_id?: string | null;
|
|
53440
|
+
work_order_id?: string;
|
|
53441
|
+
};
|
|
53442
|
+
Relationships: [{
|
|
53443
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
53444
|
+
columns: ["monteur_id"];
|
|
53445
|
+
isOneToOne: false;
|
|
53446
|
+
referencedRelation: "profiles";
|
|
53447
|
+
referencedColumns: ["id"];
|
|
53448
|
+
}, {
|
|
53449
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
53450
|
+
columns: ["van_inventory_id"];
|
|
53451
|
+
isOneToOne: false;
|
|
53452
|
+
referencedRelation: "van_inventories";
|
|
53453
|
+
referencedColumns: ["id"];
|
|
53454
|
+
}, {
|
|
53455
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
53456
|
+
columns: ["work_order_id"];
|
|
53457
|
+
isOneToOne: false;
|
|
53458
|
+
referencedRelation: "work_orders";
|
|
53459
|
+
referencedColumns: ["id"];
|
|
53460
|
+
}];
|
|
53461
|
+
};
|
|
53462
|
+
module_features: {
|
|
53463
|
+
Row: {
|
|
53464
|
+
created_at: string;
|
|
53465
|
+
feature_id: string;
|
|
53466
|
+
id: string;
|
|
53467
|
+
is_active: boolean;
|
|
53468
|
+
last_seen_at: string;
|
|
53469
|
+
module_id: string;
|
|
53470
|
+
name: string;
|
|
53471
|
+
};
|
|
53472
|
+
Insert: {
|
|
53473
|
+
created_at?: string;
|
|
53474
|
+
feature_id: string;
|
|
53475
|
+
id?: string;
|
|
53476
|
+
is_active?: boolean;
|
|
53477
|
+
last_seen_at?: string;
|
|
53478
|
+
module_id: string;
|
|
53479
|
+
name: string;
|
|
53480
|
+
};
|
|
53481
|
+
Update: {
|
|
53482
|
+
created_at?: string;
|
|
53483
|
+
feature_id?: string;
|
|
53484
|
+
id?: string;
|
|
53485
|
+
is_active?: boolean;
|
|
53486
|
+
last_seen_at?: string;
|
|
53487
|
+
module_id?: string;
|
|
53488
|
+
name?: string;
|
|
53489
|
+
};
|
|
53490
|
+
Relationships: [];
|
|
53491
|
+
};
|
|
52157
53492
|
module_permissions: {
|
|
52158
53493
|
Row: {
|
|
52159
53494
|
created_at: string;
|
|
@@ -52184,6 +53519,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
52184
53519
|
module_registry: {
|
|
52185
53520
|
Row: {
|
|
52186
53521
|
created_at: string;
|
|
53522
|
+
enforce: boolean;
|
|
52187
53523
|
is_active: boolean;
|
|
52188
53524
|
last_seen_at: string;
|
|
52189
53525
|
module_id: string;
|
|
@@ -52193,6 +53529,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
52193
53529
|
};
|
|
52194
53530
|
Insert: {
|
|
52195
53531
|
created_at?: string;
|
|
53532
|
+
enforce?: boolean;
|
|
52196
53533
|
is_active?: boolean;
|
|
52197
53534
|
last_seen_at?: string;
|
|
52198
53535
|
module_id: string;
|
|
@@ -52202,6 +53539,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
52202
53539
|
};
|
|
52203
53540
|
Update: {
|
|
52204
53541
|
created_at?: string;
|
|
53542
|
+
enforce?: boolean;
|
|
52205
53543
|
is_active?: boolean;
|
|
52206
53544
|
last_seen_at?: string;
|
|
52207
53545
|
module_id?: string;
|
|
@@ -52262,63 +53600,6 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
52262
53600
|
};
|
|
52263
53601
|
Relationships: [];
|
|
52264
53602
|
};
|
|
52265
|
-
monteurs: {
|
|
52266
|
-
Row: {
|
|
52267
|
-
avatar_url: string | null;
|
|
52268
|
-
color: string | null;
|
|
52269
|
-
created_at: string;
|
|
52270
|
-
email: string | null;
|
|
52271
|
-
id: string;
|
|
52272
|
-
is_active: boolean;
|
|
52273
|
-
leave_balance_hours: number;
|
|
52274
|
-
name: string;
|
|
52275
|
-
persnr: number | null;
|
|
52276
|
-
phone: string | null;
|
|
52277
|
-
role: string;
|
|
52278
|
-
tenant_id: string;
|
|
52279
|
-
updated_at: string;
|
|
52280
|
-
user_id: string | null;
|
|
52281
|
-
};
|
|
52282
|
-
Insert: {
|
|
52283
|
-
avatar_url?: string | null;
|
|
52284
|
-
color?: string | null;
|
|
52285
|
-
created_at?: string;
|
|
52286
|
-
email?: string | null;
|
|
52287
|
-
id?: string;
|
|
52288
|
-
is_active?: boolean;
|
|
52289
|
-
leave_balance_hours?: number;
|
|
52290
|
-
name: string;
|
|
52291
|
-
persnr?: number | null;
|
|
52292
|
-
phone?: string | null;
|
|
52293
|
-
role?: string;
|
|
52294
|
-
tenant_id: string;
|
|
52295
|
-
updated_at?: string;
|
|
52296
|
-
user_id?: string | null;
|
|
52297
|
-
};
|
|
52298
|
-
Update: {
|
|
52299
|
-
avatar_url?: string | null;
|
|
52300
|
-
color?: string | null;
|
|
52301
|
-
created_at?: string;
|
|
52302
|
-
email?: string | null;
|
|
52303
|
-
id?: string;
|
|
52304
|
-
is_active?: boolean;
|
|
52305
|
-
leave_balance_hours?: number;
|
|
52306
|
-
name?: string;
|
|
52307
|
-
persnr?: number | null;
|
|
52308
|
-
phone?: string | null;
|
|
52309
|
-
role?: string;
|
|
52310
|
-
tenant_id?: string;
|
|
52311
|
-
updated_at?: string;
|
|
52312
|
-
user_id?: string | null;
|
|
52313
|
-
};
|
|
52314
|
-
Relationships: [{
|
|
52315
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
52316
|
-
columns: ["tenant_id"];
|
|
52317
|
-
isOneToOne: false;
|
|
52318
|
-
referencedRelation: "tenants";
|
|
52319
|
-
referencedColumns: ["id"];
|
|
52320
|
-
}];
|
|
52321
|
-
};
|
|
52322
53603
|
nmbrs_component_mapping: {
|
|
52323
53604
|
Row: {
|
|
52324
53605
|
created_at: string;
|
|
@@ -52389,13 +53670,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
52389
53670
|
nmbrs_employee_number?: string;
|
|
52390
53671
|
updated_at?: string;
|
|
52391
53672
|
};
|
|
52392
|
-
Relationships: [
|
|
52393
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
52394
|
-
columns: ["monteur_id"];
|
|
52395
|
-
isOneToOne: true;
|
|
52396
|
-
referencedRelation: "monteurs";
|
|
52397
|
-
referencedColumns: ["id"];
|
|
52398
|
-
}];
|
|
53673
|
+
Relationships: [];
|
|
52399
53674
|
};
|
|
52400
53675
|
nmbrs_export_lines: {
|
|
52401
53676
|
Row: {
|
|
@@ -52444,12 +53719,6 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
52444
53719
|
wage_code?: string;
|
|
52445
53720
|
};
|
|
52446
53721
|
Relationships: [{
|
|
52447
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
52448
|
-
columns: ["monteur_id"];
|
|
52449
|
-
isOneToOne: false;
|
|
52450
|
-
referencedRelation: "monteurs";
|
|
52451
|
-
referencedColumns: ["id"];
|
|
52452
|
-
}, {
|
|
52453
53722
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
52454
53723
|
columns: ["run_id"];
|
|
52455
53724
|
isOneToOne: false;
|
|
@@ -54840,6 +56109,9 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
54840
56109
|
created_at: string;
|
|
54841
56110
|
id: string;
|
|
54842
56111
|
laatst_gezien: string;
|
|
56112
|
+
laatste_fout: string | null;
|
|
56113
|
+
laatste_request_id: number | null;
|
|
56114
|
+
mislukte_posts: number;
|
|
54843
56115
|
tick_sleutel: string;
|
|
54844
56116
|
updated_at: string;
|
|
54845
56117
|
};
|
|
@@ -54849,6 +56121,9 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
54849
56121
|
created_at?: string;
|
|
54850
56122
|
id?: string;
|
|
54851
56123
|
laatst_gezien?: string;
|
|
56124
|
+
laatste_fout?: string | null;
|
|
56125
|
+
laatste_request_id?: number | null;
|
|
56126
|
+
mislukte_posts?: number;
|
|
54852
56127
|
tick_sleutel?: string;
|
|
54853
56128
|
updated_at?: string;
|
|
54854
56129
|
};
|
|
@@ -54858,6 +56133,9 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
54858
56133
|
created_at?: string;
|
|
54859
56134
|
id?: string;
|
|
54860
56135
|
laatst_gezien?: string;
|
|
56136
|
+
laatste_fout?: string | null;
|
|
56137
|
+
laatste_request_id?: number | null;
|
|
56138
|
+
mislukte_posts?: number;
|
|
54861
56139
|
tick_sleutel?: string;
|
|
54862
56140
|
updated_at?: string;
|
|
54863
56141
|
};
|
|
@@ -56366,6 +57644,96 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
56366
57644
|
referencedColumns: ["id"];
|
|
56367
57645
|
}];
|
|
56368
57646
|
};
|
|
57647
|
+
role_assignments: {
|
|
57648
|
+
Row: {
|
|
57649
|
+
created_at: string;
|
|
57650
|
+
id: string;
|
|
57651
|
+
role_id: string;
|
|
57652
|
+
user_id: string;
|
|
57653
|
+
};
|
|
57654
|
+
Insert: {
|
|
57655
|
+
created_at?: string;
|
|
57656
|
+
id?: string;
|
|
57657
|
+
role_id: string;
|
|
57658
|
+
user_id: string;
|
|
57659
|
+
};
|
|
57660
|
+
Update: {
|
|
57661
|
+
created_at?: string;
|
|
57662
|
+
id?: string;
|
|
57663
|
+
role_id?: string;
|
|
57664
|
+
user_id?: string;
|
|
57665
|
+
};
|
|
57666
|
+
Relationships: [{
|
|
57667
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
57668
|
+
columns: ["role_id"];
|
|
57669
|
+
isOneToOne: false;
|
|
57670
|
+
referencedRelation: "roles";
|
|
57671
|
+
referencedColumns: ["id"];
|
|
57672
|
+
}];
|
|
57673
|
+
};
|
|
57674
|
+
role_permissions: {
|
|
57675
|
+
Row: {
|
|
57676
|
+
can_edit: boolean;
|
|
57677
|
+
can_view: boolean;
|
|
57678
|
+
feature_id: string;
|
|
57679
|
+
id: string;
|
|
57680
|
+
module_id: string;
|
|
57681
|
+
role_id: string;
|
|
57682
|
+
updated_at: string;
|
|
57683
|
+
};
|
|
57684
|
+
Insert: {
|
|
57685
|
+
can_edit?: boolean;
|
|
57686
|
+
can_view?: boolean;
|
|
57687
|
+
feature_id?: string;
|
|
57688
|
+
id?: string;
|
|
57689
|
+
module_id: string;
|
|
57690
|
+
role_id: string;
|
|
57691
|
+
updated_at?: string;
|
|
57692
|
+
};
|
|
57693
|
+
Update: {
|
|
57694
|
+
can_edit?: boolean;
|
|
57695
|
+
can_view?: boolean;
|
|
57696
|
+
feature_id?: string;
|
|
57697
|
+
id?: string;
|
|
57698
|
+
module_id?: string;
|
|
57699
|
+
role_id?: string;
|
|
57700
|
+
updated_at?: string;
|
|
57701
|
+
};
|
|
57702
|
+
Relationships: [{
|
|
57703
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
57704
|
+
columns: ["role_id"];
|
|
57705
|
+
isOneToOne: false;
|
|
57706
|
+
referencedRelation: "roles";
|
|
57707
|
+
referencedColumns: ["id"];
|
|
57708
|
+
}];
|
|
57709
|
+
};
|
|
57710
|
+
roles: {
|
|
57711
|
+
Row: {
|
|
57712
|
+
created_at: string;
|
|
57713
|
+
id: string;
|
|
57714
|
+
is_protected: boolean;
|
|
57715
|
+
key: string;
|
|
57716
|
+
name: string;
|
|
57717
|
+
updated_at: string;
|
|
57718
|
+
};
|
|
57719
|
+
Insert: {
|
|
57720
|
+
created_at?: string;
|
|
57721
|
+
id?: string;
|
|
57722
|
+
is_protected?: boolean;
|
|
57723
|
+
key: string;
|
|
57724
|
+
name: string;
|
|
57725
|
+
updated_at?: string;
|
|
57726
|
+
};
|
|
57727
|
+
Update: {
|
|
57728
|
+
created_at?: string;
|
|
57729
|
+
id?: string;
|
|
57730
|
+
is_protected?: boolean;
|
|
57731
|
+
key?: string;
|
|
57732
|
+
name?: string;
|
|
57733
|
+
updated_at?: string;
|
|
57734
|
+
};
|
|
57735
|
+
Relationships: [];
|
|
57736
|
+
};
|
|
56369
57737
|
rooms: {
|
|
56370
57738
|
Row: {
|
|
56371
57739
|
capacity: number;
|
|
@@ -57035,6 +58403,54 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
57035
58403
|
};
|
|
57036
58404
|
Relationships: [];
|
|
57037
58405
|
};
|
|
58406
|
+
time_compensation_entries: {
|
|
58407
|
+
Row: {
|
|
58408
|
+
created_at: string;
|
|
58409
|
+
employee_id: string;
|
|
58410
|
+
entry_date: string;
|
|
58411
|
+
id: string;
|
|
58412
|
+
km: number;
|
|
58413
|
+
meal_allowance: number;
|
|
58414
|
+
notes: string | null;
|
|
58415
|
+
standby_evening: number;
|
|
58416
|
+
standby_weekend: number;
|
|
58417
|
+
tvt_change: number;
|
|
58418
|
+
updated_at: string;
|
|
58419
|
+
};
|
|
58420
|
+
Insert: {
|
|
58421
|
+
created_at?: string;
|
|
58422
|
+
employee_id: string;
|
|
58423
|
+
entry_date: string;
|
|
58424
|
+
id?: string;
|
|
58425
|
+
km?: number;
|
|
58426
|
+
meal_allowance?: number;
|
|
58427
|
+
notes?: string | null;
|
|
58428
|
+
standby_evening?: number;
|
|
58429
|
+
standby_weekend?: number;
|
|
58430
|
+
tvt_change?: number;
|
|
58431
|
+
updated_at?: string;
|
|
58432
|
+
};
|
|
58433
|
+
Update: {
|
|
58434
|
+
created_at?: string;
|
|
58435
|
+
employee_id?: string;
|
|
58436
|
+
entry_date?: string;
|
|
58437
|
+
id?: string;
|
|
58438
|
+
km?: number;
|
|
58439
|
+
meal_allowance?: number;
|
|
58440
|
+
notes?: string | null;
|
|
58441
|
+
standby_evening?: number;
|
|
58442
|
+
standby_weekend?: number;
|
|
58443
|
+
tvt_change?: number;
|
|
58444
|
+
updated_at?: string;
|
|
58445
|
+
};
|
|
58446
|
+
Relationships: [{
|
|
58447
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
58448
|
+
columns: ["employee_id"];
|
|
58449
|
+
isOneToOne: false;
|
|
58450
|
+
referencedRelation: "profiles";
|
|
58451
|
+
referencedColumns: ["id"];
|
|
58452
|
+
}];
|
|
58453
|
+
};
|
|
57038
58454
|
time_entries: {
|
|
57039
58455
|
Row: {
|
|
57040
58456
|
created_at: string;
|
|
@@ -57069,65 +58485,170 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
57069
58485
|
undertime?: number;
|
|
57070
58486
|
updated_at?: string;
|
|
57071
58487
|
};
|
|
58488
|
+
Relationships: [];
|
|
58489
|
+
};
|
|
58490
|
+
time_log_week_approvals: {
|
|
58491
|
+
Row: {
|
|
58492
|
+
approved_at: string | null;
|
|
58493
|
+
approved_by: string | null;
|
|
58494
|
+
created_at: string;
|
|
58495
|
+
employee_id: string;
|
|
58496
|
+
id: string;
|
|
58497
|
+
locked: boolean;
|
|
58498
|
+
notes: string | null;
|
|
58499
|
+
status: string;
|
|
58500
|
+
submitted_at: string | null;
|
|
58501
|
+
updated_at: string;
|
|
58502
|
+
week_start: string;
|
|
58503
|
+
};
|
|
58504
|
+
Insert: {
|
|
58505
|
+
approved_at?: string | null;
|
|
58506
|
+
approved_by?: string | null;
|
|
58507
|
+
created_at?: string;
|
|
58508
|
+
employee_id: string;
|
|
58509
|
+
id?: string;
|
|
58510
|
+
locked?: boolean;
|
|
58511
|
+
notes?: string | null;
|
|
58512
|
+
status?: string;
|
|
58513
|
+
submitted_at?: string | null;
|
|
58514
|
+
updated_at?: string;
|
|
58515
|
+
week_start: string;
|
|
58516
|
+
};
|
|
58517
|
+
Update: {
|
|
58518
|
+
approved_at?: string | null;
|
|
58519
|
+
approved_by?: string | null;
|
|
58520
|
+
created_at?: string;
|
|
58521
|
+
employee_id?: string;
|
|
58522
|
+
id?: string;
|
|
58523
|
+
locked?: boolean;
|
|
58524
|
+
notes?: string | null;
|
|
58525
|
+
status?: string;
|
|
58526
|
+
submitted_at?: string | null;
|
|
58527
|
+
updated_at?: string;
|
|
58528
|
+
week_start?: string;
|
|
58529
|
+
};
|
|
57072
58530
|
Relationships: [{
|
|
57073
|
-
foreignKeyName: "
|
|
58531
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
57074
58532
|
columns: ["employee_id"];
|
|
57075
58533
|
isOneToOne: false;
|
|
57076
|
-
referencedRelation: "
|
|
58534
|
+
referencedRelation: "profiles";
|
|
57077
58535
|
referencedColumns: ["id"];
|
|
57078
58536
|
}];
|
|
57079
58537
|
};
|
|
57080
58538
|
time_logs: {
|
|
57081
58539
|
Row: {
|
|
58540
|
+
auto_stop_reason: string | null;
|
|
58541
|
+
auto_stopped: boolean;
|
|
57082
58542
|
created_at: string;
|
|
58543
|
+
current_latitude: number | null;
|
|
58544
|
+
current_longitude: number | null;
|
|
58545
|
+
current_position_updated_at: string | null;
|
|
57083
58546
|
employee_id: string;
|
|
58547
|
+
end_latitude: number | null;
|
|
58548
|
+
end_longitude: number | null;
|
|
57084
58549
|
end_time: string | null;
|
|
58550
|
+
eta_distance_km: number | null;
|
|
58551
|
+
eta_minutes: number | null;
|
|
58552
|
+
eta_updated_at: string | null;
|
|
58553
|
+
hour_category: string | null;
|
|
57085
58554
|
id: string;
|
|
58555
|
+
last_reminder_at: string | null;
|
|
57086
58556
|
notes: string | null;
|
|
57087
58557
|
overtime_hours: number;
|
|
57088
58558
|
overtime_type: string | null;
|
|
57089
58559
|
regular_hours: number;
|
|
58560
|
+
reminder_count: number;
|
|
58561
|
+
requires_review: boolean;
|
|
58562
|
+
start_latitude: number | null;
|
|
58563
|
+
start_longitude: number | null;
|
|
57090
58564
|
start_time: string;
|
|
57091
58565
|
travel_cost: number | null;
|
|
57092
58566
|
travel_distance_km: number | null;
|
|
58567
|
+
travel_duration_min: number | null;
|
|
58568
|
+
travel_time_minutes: number | null;
|
|
57093
58569
|
type: string;
|
|
57094
58570
|
updated_at: string;
|
|
58571
|
+
work_order_id: string | null;
|
|
57095
58572
|
};
|
|
57096
58573
|
Insert: {
|
|
58574
|
+
auto_stop_reason?: string | null;
|
|
58575
|
+
auto_stopped?: boolean;
|
|
57097
58576
|
created_at?: string;
|
|
58577
|
+
current_latitude?: number | null;
|
|
58578
|
+
current_longitude?: number | null;
|
|
58579
|
+
current_position_updated_at?: string | null;
|
|
57098
58580
|
employee_id: string;
|
|
58581
|
+
end_latitude?: number | null;
|
|
58582
|
+
end_longitude?: number | null;
|
|
57099
58583
|
end_time?: string | null;
|
|
58584
|
+
eta_distance_km?: number | null;
|
|
58585
|
+
eta_minutes?: number | null;
|
|
58586
|
+
eta_updated_at?: string | null;
|
|
58587
|
+
hour_category?: string | null;
|
|
57100
58588
|
id?: string;
|
|
58589
|
+
last_reminder_at?: string | null;
|
|
57101
58590
|
notes?: string | null;
|
|
57102
58591
|
overtime_hours?: number;
|
|
57103
58592
|
overtime_type?: string | null;
|
|
57104
58593
|
regular_hours?: number;
|
|
58594
|
+
reminder_count?: number;
|
|
58595
|
+
requires_review?: boolean;
|
|
58596
|
+
start_latitude?: number | null;
|
|
58597
|
+
start_longitude?: number | null;
|
|
57105
58598
|
start_time?: string;
|
|
57106
58599
|
travel_cost?: number | null;
|
|
57107
58600
|
travel_distance_km?: number | null;
|
|
58601
|
+
travel_duration_min?: number | null;
|
|
58602
|
+
travel_time_minutes?: number | null;
|
|
57108
58603
|
type: string;
|
|
57109
58604
|
updated_at?: string;
|
|
58605
|
+
work_order_id?: string | null;
|
|
57110
58606
|
};
|
|
57111
58607
|
Update: {
|
|
58608
|
+
auto_stop_reason?: string | null;
|
|
58609
|
+
auto_stopped?: boolean;
|
|
57112
58610
|
created_at?: string;
|
|
58611
|
+
current_latitude?: number | null;
|
|
58612
|
+
current_longitude?: number | null;
|
|
58613
|
+
current_position_updated_at?: string | null;
|
|
57113
58614
|
employee_id?: string;
|
|
58615
|
+
end_latitude?: number | null;
|
|
58616
|
+
end_longitude?: number | null;
|
|
57114
58617
|
end_time?: string | null;
|
|
58618
|
+
eta_distance_km?: number | null;
|
|
58619
|
+
eta_minutes?: number | null;
|
|
58620
|
+
eta_updated_at?: string | null;
|
|
58621
|
+
hour_category?: string | null;
|
|
57115
58622
|
id?: string;
|
|
58623
|
+
last_reminder_at?: string | null;
|
|
57116
58624
|
notes?: string | null;
|
|
57117
58625
|
overtime_hours?: number;
|
|
57118
58626
|
overtime_type?: string | null;
|
|
57119
58627
|
regular_hours?: number;
|
|
58628
|
+
reminder_count?: number;
|
|
58629
|
+
requires_review?: boolean;
|
|
58630
|
+
start_latitude?: number | null;
|
|
58631
|
+
start_longitude?: number | null;
|
|
57120
58632
|
start_time?: string;
|
|
57121
58633
|
travel_cost?: number | null;
|
|
57122
58634
|
travel_distance_km?: number | null;
|
|
58635
|
+
travel_duration_min?: number | null;
|
|
58636
|
+
travel_time_minutes?: number | null;
|
|
57123
58637
|
type?: string;
|
|
57124
58638
|
updated_at?: string;
|
|
58639
|
+
work_order_id?: string | null;
|
|
57125
58640
|
};
|
|
57126
58641
|
Relationships: [{
|
|
57127
58642
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
57128
58643
|
columns: ["employee_id"];
|
|
57129
58644
|
isOneToOne: false;
|
|
57130
|
-
referencedRelation: "
|
|
58645
|
+
referencedRelation: "profiles";
|
|
58646
|
+
referencedColumns: ["id"];
|
|
58647
|
+
}, {
|
|
58648
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
58649
|
+
columns: ["work_order_id"];
|
|
58650
|
+
isOneToOne: false;
|
|
58651
|
+
referencedRelation: "work_orders";
|
|
57131
58652
|
referencedColumns: ["id"];
|
|
57132
58653
|
}];
|
|
57133
58654
|
};
|
|
@@ -57166,7 +58687,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
57166
58687
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
57167
58688
|
columns: ["employee_id"];
|
|
57168
58689
|
isOneToOne: false;
|
|
57169
|
-
referencedRelation: "
|
|
58690
|
+
referencedRelation: "profiles";
|
|
57170
58691
|
referencedColumns: ["id"];
|
|
57171
58692
|
}];
|
|
57172
58693
|
};
|
|
@@ -57476,6 +58997,39 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
57476
58997
|
};
|
|
57477
58998
|
Relationships: [];
|
|
57478
58999
|
};
|
|
59000
|
+
twinfield_cron_locks: {
|
|
59001
|
+
Row: {
|
|
59002
|
+
created_at: string;
|
|
59003
|
+
heartbeat_at: string;
|
|
59004
|
+
job_name: string;
|
|
59005
|
+
last_error: string | null;
|
|
59006
|
+
last_finished_at: string | null;
|
|
59007
|
+
locked_at: string;
|
|
59008
|
+
run_id: string;
|
|
59009
|
+
updated_at: string;
|
|
59010
|
+
};
|
|
59011
|
+
Insert: {
|
|
59012
|
+
created_at?: string;
|
|
59013
|
+
heartbeat_at?: string;
|
|
59014
|
+
job_name: string;
|
|
59015
|
+
last_error?: string | null;
|
|
59016
|
+
last_finished_at?: string | null;
|
|
59017
|
+
locked_at?: string;
|
|
59018
|
+
run_id?: string;
|
|
59019
|
+
updated_at?: string;
|
|
59020
|
+
};
|
|
59021
|
+
Update: {
|
|
59022
|
+
created_at?: string;
|
|
59023
|
+
heartbeat_at?: string;
|
|
59024
|
+
job_name?: string;
|
|
59025
|
+
last_error?: string | null;
|
|
59026
|
+
last_finished_at?: string | null;
|
|
59027
|
+
locked_at?: string;
|
|
59028
|
+
run_id?: string;
|
|
59029
|
+
updated_at?: string;
|
|
59030
|
+
};
|
|
59031
|
+
Relationships: [];
|
|
59032
|
+
};
|
|
57479
59033
|
twinfield_customers: {
|
|
57480
59034
|
Row: {
|
|
57481
59035
|
address: string | null;
|
|
@@ -58076,6 +59630,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
58076
59630
|
twinfield_push_queue: {
|
|
58077
59631
|
Row: {
|
|
58078
59632
|
action: string;
|
|
59633
|
+
attempt_started_at: string | null;
|
|
58079
59634
|
attempts: number;
|
|
58080
59635
|
connection_id: string | null;
|
|
58081
59636
|
created_at: string;
|
|
@@ -58092,6 +59647,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
58092
59647
|
};
|
|
58093
59648
|
Insert: {
|
|
58094
59649
|
action?: string;
|
|
59650
|
+
attempt_started_at?: string | null;
|
|
58095
59651
|
attempts?: number;
|
|
58096
59652
|
connection_id?: string | null;
|
|
58097
59653
|
created_at?: string;
|
|
@@ -58108,6 +59664,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
58108
59664
|
};
|
|
58109
59665
|
Update: {
|
|
58110
59666
|
action?: string;
|
|
59667
|
+
attempt_started_at?: string | null;
|
|
58111
59668
|
attempts?: number;
|
|
58112
59669
|
connection_id?: string | null;
|
|
58113
59670
|
created_at?: string;
|
|
@@ -58305,13 +59862,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
58305
59862
|
workday_end?: string | null;
|
|
58306
59863
|
workday_start?: string | null;
|
|
58307
59864
|
};
|
|
58308
|
-
Relationships: [
|
|
58309
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
58310
|
-
columns: ["monteur_id"];
|
|
58311
|
-
isOneToOne: true;
|
|
58312
|
-
referencedRelation: "monteurs";
|
|
58313
|
-
referencedColumns: ["id"];
|
|
58314
|
-
}];
|
|
59865
|
+
Relationships: [];
|
|
58315
59866
|
};
|
|
58316
59867
|
uren_entries: {
|
|
58317
59868
|
Row: {
|
|
@@ -58357,12 +59908,6 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
58357
59908
|
werkbon_id?: string | null;
|
|
58358
59909
|
};
|
|
58359
59910
|
Relationships: [{
|
|
58360
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
58361
|
-
columns: ["monteur_id"];
|
|
58362
|
-
isOneToOne: false;
|
|
58363
|
-
referencedRelation: "monteurs";
|
|
58364
|
-
referencedColumns: ["id"];
|
|
58365
|
-
}, {
|
|
58366
59911
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
58367
59912
|
columns: ["werkbon_id"];
|
|
58368
59913
|
isOneToOne: false;
|
|
@@ -58830,17 +60375,12 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
58830
60375
|
submitted_at?: string | null;
|
|
58831
60376
|
updated_at?: string;
|
|
58832
60377
|
};
|
|
58833
|
-
Relationships: [
|
|
58834
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
58835
|
-
columns: ["monteur_id"];
|
|
58836
|
-
isOneToOne: false;
|
|
58837
|
-
referencedRelation: "monteurs";
|
|
58838
|
-
referencedColumns: ["id"];
|
|
58839
|
-
}];
|
|
60378
|
+
Relationships: [];
|
|
58840
60379
|
};
|
|
58841
60380
|
user_module_permissions: {
|
|
58842
60381
|
Row: {
|
|
58843
60382
|
created_at: string;
|
|
60383
|
+
feature_id: string;
|
|
58844
60384
|
id: string;
|
|
58845
60385
|
module_id: string;
|
|
58846
60386
|
permission: string;
|
|
@@ -58849,6 +60389,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
58849
60389
|
};
|
|
58850
60390
|
Insert: {
|
|
58851
60391
|
created_at?: string;
|
|
60392
|
+
feature_id?: string;
|
|
58852
60393
|
id?: string;
|
|
58853
60394
|
module_id: string;
|
|
58854
60395
|
permission: string;
|
|
@@ -58857,6 +60398,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
58857
60398
|
};
|
|
58858
60399
|
Update: {
|
|
58859
60400
|
created_at?: string;
|
|
60401
|
+
feature_id?: string;
|
|
58860
60402
|
id?: string;
|
|
58861
60403
|
module_id?: string;
|
|
58862
60404
|
permission?: string;
|
|
@@ -58892,6 +60434,51 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
58892
60434
|
referencedColumns: ["id"];
|
|
58893
60435
|
}];
|
|
58894
60436
|
};
|
|
60437
|
+
van_inventories: {
|
|
60438
|
+
Row: {
|
|
60439
|
+
barcode: string | null;
|
|
60440
|
+
created_at: string;
|
|
60441
|
+
id: string;
|
|
60442
|
+
monteur_id: string | null;
|
|
60443
|
+
price_per_unit: number;
|
|
60444
|
+
product_name: string;
|
|
60445
|
+
quantity_current: number;
|
|
60446
|
+
quantity_min: number;
|
|
60447
|
+
unit: string;
|
|
60448
|
+
updated_at: string;
|
|
60449
|
+
};
|
|
60450
|
+
Insert: {
|
|
60451
|
+
barcode?: string | null;
|
|
60452
|
+
created_at?: string;
|
|
60453
|
+
id?: string;
|
|
60454
|
+
monteur_id?: string | null;
|
|
60455
|
+
price_per_unit?: number;
|
|
60456
|
+
product_name: string;
|
|
60457
|
+
quantity_current?: number;
|
|
60458
|
+
quantity_min?: number;
|
|
60459
|
+
unit?: string;
|
|
60460
|
+
updated_at?: string;
|
|
60461
|
+
};
|
|
60462
|
+
Update: {
|
|
60463
|
+
barcode?: string | null;
|
|
60464
|
+
created_at?: string;
|
|
60465
|
+
id?: string;
|
|
60466
|
+
monteur_id?: string | null;
|
|
60467
|
+
price_per_unit?: number;
|
|
60468
|
+
product_name?: string;
|
|
60469
|
+
quantity_current?: number;
|
|
60470
|
+
quantity_min?: number;
|
|
60471
|
+
unit?: string;
|
|
60472
|
+
updated_at?: string;
|
|
60473
|
+
};
|
|
60474
|
+
Relationships: [{
|
|
60475
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
60476
|
+
columns: ["monteur_id"];
|
|
60477
|
+
isOneToOne: false;
|
|
60478
|
+
referencedRelation: "profiles";
|
|
60479
|
+
referencedColumns: ["id"];
|
|
60480
|
+
}];
|
|
60481
|
+
};
|
|
58895
60482
|
voorraad_custom_fields: {
|
|
58896
60483
|
Row: {
|
|
58897
60484
|
created_at: string;
|
|
@@ -59842,7 +61429,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
59842
61429
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
59843
61430
|
columns: ["monteur_id"];
|
|
59844
61431
|
isOneToOne: false;
|
|
59845
|
-
referencedRelation: "
|
|
61432
|
+
referencedRelation: "profiles";
|
|
59846
61433
|
referencedColumns: ["id"];
|
|
59847
61434
|
}, {
|
|
59848
61435
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -59852,6 +61439,60 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
59852
61439
|
referencedColumns: ["id"];
|
|
59853
61440
|
}];
|
|
59854
61441
|
};
|
|
61442
|
+
work_order_photos: {
|
|
61443
|
+
Row: {
|
|
61444
|
+
ai_caption: string | null;
|
|
61445
|
+
ai_categorized_at: string | null;
|
|
61446
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
61447
|
+
caption: string | null;
|
|
61448
|
+
created_at: string;
|
|
61449
|
+
id: string;
|
|
61450
|
+
monteur_id: string | null;
|
|
61451
|
+
photo_type: string;
|
|
61452
|
+
storage_path: string;
|
|
61453
|
+
updated_at: string;
|
|
61454
|
+
work_order_id: string;
|
|
61455
|
+
};
|
|
61456
|
+
Insert: {
|
|
61457
|
+
ai_caption?: string | null;
|
|
61458
|
+
ai_categorized_at?: string | null;
|
|
61459
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
61460
|
+
caption?: string | null;
|
|
61461
|
+
created_at?: string;
|
|
61462
|
+
id?: string;
|
|
61463
|
+
monteur_id?: string | null;
|
|
61464
|
+
photo_type?: string;
|
|
61465
|
+
storage_path: string;
|
|
61466
|
+
updated_at?: string;
|
|
61467
|
+
work_order_id: string;
|
|
61468
|
+
};
|
|
61469
|
+
Update: {
|
|
61470
|
+
ai_caption?: string | null;
|
|
61471
|
+
ai_categorized_at?: string | null;
|
|
61472
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
61473
|
+
caption?: string | null;
|
|
61474
|
+
created_at?: string;
|
|
61475
|
+
id?: string;
|
|
61476
|
+
monteur_id?: string | null;
|
|
61477
|
+
photo_type?: string;
|
|
61478
|
+
storage_path?: string;
|
|
61479
|
+
updated_at?: string;
|
|
61480
|
+
work_order_id?: string;
|
|
61481
|
+
};
|
|
61482
|
+
Relationships: [{
|
|
61483
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
61484
|
+
columns: ["monteur_id"];
|
|
61485
|
+
isOneToOne: false;
|
|
61486
|
+
referencedRelation: "profiles";
|
|
61487
|
+
referencedColumns: ["id"];
|
|
61488
|
+
}, {
|
|
61489
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
61490
|
+
columns: ["work_order_id"];
|
|
61491
|
+
isOneToOne: false;
|
|
61492
|
+
referencedRelation: "work_orders";
|
|
61493
|
+
referencedColumns: ["id"];
|
|
61494
|
+
}];
|
|
61495
|
+
};
|
|
59855
61496
|
work_orders: {
|
|
59856
61497
|
Row: {
|
|
59857
61498
|
assigned_to: string | null;
|
|
@@ -59883,7 +61524,6 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
59883
61524
|
scheduled_end_time: string | null;
|
|
59884
61525
|
scheduled_start_time: string | null;
|
|
59885
61526
|
status: string;
|
|
59886
|
-
tenant_id: string;
|
|
59887
61527
|
total_hours_worked: number | null;
|
|
59888
61528
|
total_price: number | null;
|
|
59889
61529
|
travel_time_minutes: number | null;
|
|
@@ -59921,7 +61561,6 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
59921
61561
|
scheduled_end_time?: string | null;
|
|
59922
61562
|
scheduled_start_time?: string | null;
|
|
59923
61563
|
status?: string;
|
|
59924
|
-
tenant_id: string;
|
|
59925
61564
|
total_hours_worked?: number | null;
|
|
59926
61565
|
total_price?: number | null;
|
|
59927
61566
|
travel_time_minutes?: number | null;
|
|
@@ -59959,7 +61598,6 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
59959
61598
|
scheduled_end_time?: string | null;
|
|
59960
61599
|
scheduled_start_time?: string | null;
|
|
59961
61600
|
status?: string;
|
|
59962
|
-
tenant_id?: string;
|
|
59963
61601
|
total_hours_worked?: number | null;
|
|
59964
61602
|
total_price?: number | null;
|
|
59965
61603
|
travel_time_minutes?: number | null;
|
|
@@ -59973,12 +61611,6 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
59973
61611
|
isOneToOne: false;
|
|
59974
61612
|
referencedRelation: "work_orders";
|
|
59975
61613
|
referencedColumns: ["id"];
|
|
59976
|
-
}, {
|
|
59977
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
59978
|
-
columns: ["tenant_id"];
|
|
59979
|
-
isOneToOne: false;
|
|
59980
|
-
referencedRelation: "tenants";
|
|
59981
|
-
referencedColumns: ["id"];
|
|
59982
61614
|
}];
|
|
59983
61615
|
};
|
|
59984
61616
|
};
|
|
@@ -60663,6 +62295,19 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
60663
62295
|
};
|
|
60664
62296
|
Returns: undefined;
|
|
60665
62297
|
};
|
|
62298
|
+
approve_mailbox_order_proposal: {
|
|
62299
|
+
Args: {
|
|
62300
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
62301
|
+
p_customer_id: string;
|
|
62302
|
+
p_delivery_date: string;
|
|
62303
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
62304
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
62305
|
+
p_notes: string;
|
|
62306
|
+
p_proposal_id: string;
|
|
62307
|
+
p_reviewed_by: string;
|
|
62308
|
+
};
|
|
62309
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
62310
|
+
};
|
|
60666
62311
|
assign_cart_numbers: {
|
|
60667
62312
|
Args: {
|
|
60668
62313
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -60714,6 +62359,10 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
60714
62359
|
};
|
|
60715
62360
|
Returns: number;
|
|
60716
62361
|
};
|
|
62362
|
+
can_manage_hours: {
|
|
62363
|
+
Args: never;
|
|
62364
|
+
Returns: boolean;
|
|
62365
|
+
};
|
|
60717
62366
|
check_offer_product_available_stock: {
|
|
60718
62367
|
Args: {
|
|
60719
62368
|
p_campaign_product_id: string;
|
|
@@ -60903,6 +62552,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
60903
62552
|
};
|
|
60904
62553
|
Returns: {
|
|
60905
62554
|
action: string;
|
|
62555
|
+
attempt_started_at: string | null;
|
|
60906
62556
|
attempts: number;
|
|
60907
62557
|
connection_id: string | null;
|
|
60908
62558
|
created_at: string;
|
|
@@ -60990,6 +62640,30 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
60990
62640
|
agent_naam: string;
|
|
60991
62641
|
}[];
|
|
60992
62642
|
};
|
|
62643
|
+
consume_van_inventory: {
|
|
62644
|
+
Args: {
|
|
62645
|
+
p_inventory_id: string;
|
|
62646
|
+
p_quantity: number;
|
|
62647
|
+
};
|
|
62648
|
+
Returns: {
|
|
62649
|
+
barcode: string | null;
|
|
62650
|
+
created_at: string;
|
|
62651
|
+
id: string;
|
|
62652
|
+
monteur_id: string | null;
|
|
62653
|
+
price_per_unit: number;
|
|
62654
|
+
product_name: string;
|
|
62655
|
+
quantity_current: number;
|
|
62656
|
+
quantity_min: number;
|
|
62657
|
+
unit: string;
|
|
62658
|
+
updated_at: string;
|
|
62659
|
+
};
|
|
62660
|
+
SetofOptions: {
|
|
62661
|
+
from: "*";
|
|
62662
|
+
to: "van_inventories";
|
|
62663
|
+
isOneToOne: true;
|
|
62664
|
+
isSetofReturn: false;
|
|
62665
|
+
};
|
|
62666
|
+
};
|
|
60993
62667
|
control_get_todays_carts: {
|
|
60994
62668
|
Args: never;
|
|
60995
62669
|
Returns: {
|
|
@@ -61063,6 +62737,13 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
61063
62737
|
_user_id: string;
|
|
61064
62738
|
};
|
|
61065
62739
|
Returns: string;
|
|
62740
|
+
} | {
|
|
62741
|
+
Args: {
|
|
62742
|
+
_feature_id: string;
|
|
62743
|
+
_module_id: string;
|
|
62744
|
+
_user_id: string;
|
|
62745
|
+
};
|
|
62746
|
+
Returns: string;
|
|
61066
62747
|
};
|
|
61067
62748
|
email_auth_decrypt: {
|
|
61068
62749
|
Args: {
|
|
@@ -61414,12 +63095,6 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
61414
63095
|
Args: never;
|
|
61415
63096
|
Returns: string;
|
|
61416
63097
|
};
|
|
61417
|
-
get_work_order_tenant_id: {
|
|
61418
|
-
Args: {
|
|
61419
|
-
wo_id: string;
|
|
61420
|
-
};
|
|
61421
|
-
Returns: string;
|
|
61422
|
-
};
|
|
61423
63098
|
has_module_permission: {
|
|
61424
63099
|
Args: {
|
|
61425
63100
|
_min: string;
|
|
@@ -61453,6 +63128,13 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
61453
63128
|
};
|
|
61454
63129
|
Returns: boolean;
|
|
61455
63130
|
};
|
|
63131
|
+
is_time_log_week_locked: {
|
|
63132
|
+
Args: {
|
|
63133
|
+
p_employee_id: string;
|
|
63134
|
+
p_start_time: string;
|
|
63135
|
+
};
|
|
63136
|
+
Returns: boolean;
|
|
63137
|
+
};
|
|
61456
63138
|
is_user_admin: {
|
|
61457
63139
|
Args: never;
|
|
61458
63140
|
Returns: boolean;
|
|
@@ -61467,13 +63149,14 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
61467
63149
|
};
|
|
61468
63150
|
Returns: boolean;
|
|
61469
63151
|
};
|
|
61470
|
-
|
|
63152
|
+
list_medewerkers: {
|
|
61471
63153
|
Args: never;
|
|
61472
63154
|
Returns: {
|
|
61473
63155
|
avatar_url: string;
|
|
61474
63156
|
display_name: string;
|
|
61475
63157
|
email: string;
|
|
61476
63158
|
id: string;
|
|
63159
|
+
roles: string[];
|
|
61477
63160
|
}[];
|
|
61478
63161
|
};
|
|
61479
63162
|
list_my_planning_items: {
|
|
@@ -61799,17 +63482,6 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
61799
63482
|
Returns: string;
|
|
61800
63483
|
};
|
|
61801
63484
|
logistics_emit_event: {
|
|
61802
|
-
Args: {
|
|
61803
|
-
p_event_type: string;
|
|
61804
|
-
p_idempotency_key?: string;
|
|
61805
|
-
p_order_ref: string;
|
|
61806
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
61807
|
-
p_shadow?: boolean;
|
|
61808
|
-
p_source_module: string;
|
|
61809
|
-
p_strategy_id?: string;
|
|
61810
|
-
};
|
|
61811
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
61812
|
-
} | {
|
|
61813
63485
|
Args: {
|
|
61814
63486
|
p_event_type: string;
|
|
61815
63487
|
p_idempotency_key?: string;
|
|
@@ -62264,6 +63936,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
62264
63936
|
my_module_permissions: {
|
|
62265
63937
|
Args: never;
|
|
62266
63938
|
Returns: {
|
|
63939
|
+
feature_id: string;
|
|
62267
63940
|
module_id: string;
|
|
62268
63941
|
permission: string;
|
|
62269
63942
|
}[];
|
|
@@ -63144,6 +64817,16 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
63144
64817
|
};
|
|
63145
64818
|
Returns: string[];
|
|
63146
64819
|
};
|
|
64820
|
+
switch_time_log: {
|
|
64821
|
+
Args: {
|
|
64822
|
+
p_employee_id: string;
|
|
64823
|
+
p_start_lat?: number;
|
|
64824
|
+
p_start_lng?: number;
|
|
64825
|
+
p_type: string;
|
|
64826
|
+
p_work_order_id?: string;
|
|
64827
|
+
};
|
|
64828
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
64829
|
+
};
|
|
63147
64830
|
sync_all_layer_stocks: {
|
|
63148
64831
|
Args: never;
|
|
63149
64832
|
Returns: undefined;
|
|
@@ -63194,6 +64877,24 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
63194
64877
|
};
|
|
63195
64878
|
Returns: boolean;
|
|
63196
64879
|
};
|
|
64880
|
+
twinfield_cron_lock_acquire: {
|
|
64881
|
+
Args: {
|
|
64882
|
+
_job_name: string;
|
|
64883
|
+
_stale_seconds?: number;
|
|
64884
|
+
};
|
|
64885
|
+
Returns: boolean;
|
|
64886
|
+
};
|
|
64887
|
+
twinfield_cron_lock_release: {
|
|
64888
|
+
Args: {
|
|
64889
|
+
_error?: string;
|
|
64890
|
+
_job_name: string;
|
|
64891
|
+
};
|
|
64892
|
+
Returns: undefined;
|
|
64893
|
+
};
|
|
64894
|
+
twinfield_prune_push_queue: {
|
|
64895
|
+
Args: never;
|
|
64896
|
+
Returns: number;
|
|
64897
|
+
};
|
|
63197
64898
|
twinfield_register_cron: {
|
|
63198
64899
|
Args: {
|
|
63199
64900
|
apikey?: string;
|
|
@@ -63237,7 +64938,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
63237
64938
|
Enums: {
|
|
63238
64939
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
63239
64940
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
63240
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
64941
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
63241
64942
|
doc_orientation: "portrait" | "landscape";
|
|
63242
64943
|
exact_env: "staging" | "live";
|
|
63243
64944
|
exact_push_status: "pending" | "sent" | "error";
|