@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
|
@@ -876,6 +876,126 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
876
876
|
};
|
|
877
877
|
Relationships: [];
|
|
878
878
|
};
|
|
879
|
+
cao_holidays: {
|
|
880
|
+
Row: {
|
|
881
|
+
created_at: string;
|
|
882
|
+
description: string | null;
|
|
883
|
+
holiday_date: string;
|
|
884
|
+
id: string;
|
|
885
|
+
updated_at: string;
|
|
886
|
+
};
|
|
887
|
+
Insert: {
|
|
888
|
+
created_at?: string;
|
|
889
|
+
description?: string | null;
|
|
890
|
+
holiday_date: string;
|
|
891
|
+
id?: string;
|
|
892
|
+
updated_at?: string;
|
|
893
|
+
};
|
|
894
|
+
Update: {
|
|
895
|
+
created_at?: string;
|
|
896
|
+
description?: string | null;
|
|
897
|
+
holiday_date?: string;
|
|
898
|
+
id?: string;
|
|
899
|
+
updated_at?: string;
|
|
900
|
+
};
|
|
901
|
+
Relationships: [];
|
|
902
|
+
};
|
|
903
|
+
cao_settings: {
|
|
904
|
+
Row: {
|
|
905
|
+
auto_break_after_hours: number;
|
|
906
|
+
auto_break_minutes: number;
|
|
907
|
+
auto_break_unpaid: boolean;
|
|
908
|
+
auto_stop_after_hours: number;
|
|
909
|
+
callout_fee: number;
|
|
910
|
+
created_at: string;
|
|
911
|
+
daily_regular_hours: number;
|
|
912
|
+
default_hourly_rate: number;
|
|
913
|
+
id: string;
|
|
914
|
+
materials_markup_percent: number;
|
|
915
|
+
max_daily_hours: number;
|
|
916
|
+
max_weekly_hours: number;
|
|
917
|
+
meal_allowance_amount: number;
|
|
918
|
+
overtime_pct_178: number;
|
|
919
|
+
overtime_pct_189: number;
|
|
920
|
+
overtime_pct_212: number;
|
|
921
|
+
reminder_after_hours: number;
|
|
922
|
+
standby_evening_amount: number;
|
|
923
|
+
standby_weekend_amount: number;
|
|
924
|
+
travel_cost_per_km: number | null;
|
|
925
|
+
travel_cost_threshold_km: number | null;
|
|
926
|
+
travel_counts_as_work: boolean;
|
|
927
|
+
travel_hourly_rate: number;
|
|
928
|
+
travel_rate_per_hour: number;
|
|
929
|
+
travel_threshold_minutes: number;
|
|
930
|
+
updated_at: string;
|
|
931
|
+
weekend_always_212: boolean;
|
|
932
|
+
window_end: string;
|
|
933
|
+
window_start: string;
|
|
934
|
+
};
|
|
935
|
+
Insert: {
|
|
936
|
+
auto_break_after_hours?: number;
|
|
937
|
+
auto_break_minutes?: number;
|
|
938
|
+
auto_break_unpaid?: boolean;
|
|
939
|
+
auto_stop_after_hours?: number;
|
|
940
|
+
callout_fee?: number;
|
|
941
|
+
created_at?: string;
|
|
942
|
+
daily_regular_hours?: number;
|
|
943
|
+
default_hourly_rate?: number;
|
|
944
|
+
id?: string;
|
|
945
|
+
materials_markup_percent?: number;
|
|
946
|
+
max_daily_hours?: number;
|
|
947
|
+
max_weekly_hours?: number;
|
|
948
|
+
meal_allowance_amount?: number;
|
|
949
|
+
overtime_pct_178?: number;
|
|
950
|
+
overtime_pct_189?: number;
|
|
951
|
+
overtime_pct_212?: number;
|
|
952
|
+
reminder_after_hours?: number;
|
|
953
|
+
standby_evening_amount?: number;
|
|
954
|
+
standby_weekend_amount?: number;
|
|
955
|
+
travel_cost_per_km?: number | null;
|
|
956
|
+
travel_cost_threshold_km?: number | null;
|
|
957
|
+
travel_counts_as_work?: boolean;
|
|
958
|
+
travel_hourly_rate?: number;
|
|
959
|
+
travel_rate_per_hour?: number;
|
|
960
|
+
travel_threshold_minutes?: number;
|
|
961
|
+
updated_at?: string;
|
|
962
|
+
weekend_always_212?: boolean;
|
|
963
|
+
window_end?: string;
|
|
964
|
+
window_start?: string;
|
|
965
|
+
};
|
|
966
|
+
Update: {
|
|
967
|
+
auto_break_after_hours?: number;
|
|
968
|
+
auto_break_minutes?: number;
|
|
969
|
+
auto_break_unpaid?: boolean;
|
|
970
|
+
auto_stop_after_hours?: number;
|
|
971
|
+
callout_fee?: number;
|
|
972
|
+
created_at?: string;
|
|
973
|
+
daily_regular_hours?: number;
|
|
974
|
+
default_hourly_rate?: number;
|
|
975
|
+
id?: string;
|
|
976
|
+
materials_markup_percent?: number;
|
|
977
|
+
max_daily_hours?: number;
|
|
978
|
+
max_weekly_hours?: number;
|
|
979
|
+
meal_allowance_amount?: number;
|
|
980
|
+
overtime_pct_178?: number;
|
|
981
|
+
overtime_pct_189?: number;
|
|
982
|
+
overtime_pct_212?: number;
|
|
983
|
+
reminder_after_hours?: number;
|
|
984
|
+
standby_evening_amount?: number;
|
|
985
|
+
standby_weekend_amount?: number;
|
|
986
|
+
travel_cost_per_km?: number | null;
|
|
987
|
+
travel_cost_threshold_km?: number | null;
|
|
988
|
+
travel_counts_as_work?: boolean;
|
|
989
|
+
travel_hourly_rate?: number;
|
|
990
|
+
travel_rate_per_hour?: number;
|
|
991
|
+
travel_threshold_minutes?: number;
|
|
992
|
+
updated_at?: string;
|
|
993
|
+
weekend_always_212?: boolean;
|
|
994
|
+
window_end?: string;
|
|
995
|
+
window_start?: string;
|
|
996
|
+
};
|
|
997
|
+
Relationships: [];
|
|
998
|
+
};
|
|
879
999
|
carrier_shipping_rates: {
|
|
880
1000
|
Row: {
|
|
881
1001
|
carrier_id: string;
|
|
@@ -7770,7 +7890,6 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
7770
7890
|
start_date: string;
|
|
7771
7891
|
start_time: string | null;
|
|
7772
7892
|
status: string;
|
|
7773
|
-
tenant_id: string;
|
|
7774
7893
|
updated_at: string;
|
|
7775
7894
|
user_id: string;
|
|
7776
7895
|
};
|
|
@@ -7788,7 +7907,6 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
7788
7907
|
start_date: string;
|
|
7789
7908
|
start_time?: string | null;
|
|
7790
7909
|
status?: string;
|
|
7791
|
-
tenant_id?: string;
|
|
7792
7910
|
updated_at?: string;
|
|
7793
7911
|
user_id: string;
|
|
7794
7912
|
};
|
|
@@ -7806,7 +7924,6 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
7806
7924
|
start_date?: string;
|
|
7807
7925
|
start_time?: string | null;
|
|
7808
7926
|
status?: string;
|
|
7809
|
-
tenant_id?: string;
|
|
7810
7927
|
updated_at?: string;
|
|
7811
7928
|
user_id?: string;
|
|
7812
7929
|
};
|
|
@@ -7814,13 +7931,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
7814
7931
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
7815
7932
|
columns: ["monteur_id"];
|
|
7816
7933
|
isOneToOne: false;
|
|
7817
|
-
referencedRelation: "
|
|
7934
|
+
referencedRelation: "profiles";
|
|
7818
7935
|
referencedColumns: ["id"];
|
|
7819
7936
|
}, {
|
|
7820
7937
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
7821
7938
|
columns: ["user_id"];
|
|
7822
7939
|
isOneToOne: false;
|
|
7823
|
-
referencedRelation: "
|
|
7940
|
+
referencedRelation: "profiles";
|
|
7824
7941
|
referencedColumns: ["id"];
|
|
7825
7942
|
}];
|
|
7826
7943
|
};
|
|
@@ -9975,6 +10092,90 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
9975
10092
|
};
|
|
9976
10093
|
Relationships: [];
|
|
9977
10094
|
};
|
|
10095
|
+
material_usage: {
|
|
10096
|
+
Row: {
|
|
10097
|
+
created_at: string;
|
|
10098
|
+
id: string;
|
|
10099
|
+
material_name: string;
|
|
10100
|
+
monteur_id: string | null;
|
|
10101
|
+
price_at_time: number;
|
|
10102
|
+
quantity_used: number;
|
|
10103
|
+
updated_at: string;
|
|
10104
|
+
van_inventory_id: string | null;
|
|
10105
|
+
work_order_id: string;
|
|
10106
|
+
};
|
|
10107
|
+
Insert: {
|
|
10108
|
+
created_at?: string;
|
|
10109
|
+
id?: string;
|
|
10110
|
+
material_name: string;
|
|
10111
|
+
monteur_id?: string | null;
|
|
10112
|
+
price_at_time?: number;
|
|
10113
|
+
quantity_used?: number;
|
|
10114
|
+
updated_at?: string;
|
|
10115
|
+
van_inventory_id?: string | null;
|
|
10116
|
+
work_order_id: string;
|
|
10117
|
+
};
|
|
10118
|
+
Update: {
|
|
10119
|
+
created_at?: string;
|
|
10120
|
+
id?: string;
|
|
10121
|
+
material_name?: string;
|
|
10122
|
+
monteur_id?: string | null;
|
|
10123
|
+
price_at_time?: number;
|
|
10124
|
+
quantity_used?: number;
|
|
10125
|
+
updated_at?: string;
|
|
10126
|
+
van_inventory_id?: string | null;
|
|
10127
|
+
work_order_id?: string;
|
|
10128
|
+
};
|
|
10129
|
+
Relationships: [{
|
|
10130
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
10131
|
+
columns: ["monteur_id"];
|
|
10132
|
+
isOneToOne: false;
|
|
10133
|
+
referencedRelation: "profiles";
|
|
10134
|
+
referencedColumns: ["id"];
|
|
10135
|
+
}, {
|
|
10136
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
10137
|
+
columns: ["van_inventory_id"];
|
|
10138
|
+
isOneToOne: false;
|
|
10139
|
+
referencedRelation: "van_inventories";
|
|
10140
|
+
referencedColumns: ["id"];
|
|
10141
|
+
}, {
|
|
10142
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
10143
|
+
columns: ["work_order_id"];
|
|
10144
|
+
isOneToOne: false;
|
|
10145
|
+
referencedRelation: "work_orders";
|
|
10146
|
+
referencedColumns: ["id"];
|
|
10147
|
+
}];
|
|
10148
|
+
};
|
|
10149
|
+
module_features: {
|
|
10150
|
+
Row: {
|
|
10151
|
+
created_at: string;
|
|
10152
|
+
feature_id: string;
|
|
10153
|
+
id: string;
|
|
10154
|
+
is_active: boolean;
|
|
10155
|
+
last_seen_at: string;
|
|
10156
|
+
module_id: string;
|
|
10157
|
+
name: string;
|
|
10158
|
+
};
|
|
10159
|
+
Insert: {
|
|
10160
|
+
created_at?: string;
|
|
10161
|
+
feature_id: string;
|
|
10162
|
+
id?: string;
|
|
10163
|
+
is_active?: boolean;
|
|
10164
|
+
last_seen_at?: string;
|
|
10165
|
+
module_id: string;
|
|
10166
|
+
name: string;
|
|
10167
|
+
};
|
|
10168
|
+
Update: {
|
|
10169
|
+
created_at?: string;
|
|
10170
|
+
feature_id?: string;
|
|
10171
|
+
id?: string;
|
|
10172
|
+
is_active?: boolean;
|
|
10173
|
+
last_seen_at?: string;
|
|
10174
|
+
module_id?: string;
|
|
10175
|
+
name?: string;
|
|
10176
|
+
};
|
|
10177
|
+
Relationships: [];
|
|
10178
|
+
};
|
|
9978
10179
|
module_permissions: {
|
|
9979
10180
|
Row: {
|
|
9980
10181
|
created_at: string;
|
|
@@ -10005,6 +10206,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
10005
10206
|
module_registry: {
|
|
10006
10207
|
Row: {
|
|
10007
10208
|
created_at: string;
|
|
10209
|
+
enforce: boolean;
|
|
10008
10210
|
is_active: boolean;
|
|
10009
10211
|
last_seen_at: string;
|
|
10010
10212
|
module_id: string;
|
|
@@ -10014,6 +10216,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
10014
10216
|
};
|
|
10015
10217
|
Insert: {
|
|
10016
10218
|
created_at?: string;
|
|
10219
|
+
enforce?: boolean;
|
|
10017
10220
|
is_active?: boolean;
|
|
10018
10221
|
last_seen_at?: string;
|
|
10019
10222
|
module_id: string;
|
|
@@ -10023,6 +10226,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
10023
10226
|
};
|
|
10024
10227
|
Update: {
|
|
10025
10228
|
created_at?: string;
|
|
10229
|
+
enforce?: boolean;
|
|
10026
10230
|
is_active?: boolean;
|
|
10027
10231
|
last_seen_at?: string;
|
|
10028
10232
|
module_id?: string;
|
|
@@ -10083,63 +10287,6 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
10083
10287
|
};
|
|
10084
10288
|
Relationships: [];
|
|
10085
10289
|
};
|
|
10086
|
-
monteurs: {
|
|
10087
|
-
Row: {
|
|
10088
|
-
avatar_url: string | null;
|
|
10089
|
-
color: string | null;
|
|
10090
|
-
created_at: string;
|
|
10091
|
-
email: string | null;
|
|
10092
|
-
id: string;
|
|
10093
|
-
is_active: boolean;
|
|
10094
|
-
leave_balance_hours: number;
|
|
10095
|
-
name: string;
|
|
10096
|
-
persnr: number | null;
|
|
10097
|
-
phone: string | null;
|
|
10098
|
-
role: string;
|
|
10099
|
-
tenant_id: string;
|
|
10100
|
-
updated_at: string;
|
|
10101
|
-
user_id: string | null;
|
|
10102
|
-
};
|
|
10103
|
-
Insert: {
|
|
10104
|
-
avatar_url?: string | null;
|
|
10105
|
-
color?: string | null;
|
|
10106
|
-
created_at?: string;
|
|
10107
|
-
email?: string | null;
|
|
10108
|
-
id?: string;
|
|
10109
|
-
is_active?: boolean;
|
|
10110
|
-
leave_balance_hours?: number;
|
|
10111
|
-
name: string;
|
|
10112
|
-
persnr?: number | null;
|
|
10113
|
-
phone?: string | null;
|
|
10114
|
-
role?: string;
|
|
10115
|
-
tenant_id: string;
|
|
10116
|
-
updated_at?: string;
|
|
10117
|
-
user_id?: string | null;
|
|
10118
|
-
};
|
|
10119
|
-
Update: {
|
|
10120
|
-
avatar_url?: string | null;
|
|
10121
|
-
color?: string | null;
|
|
10122
|
-
created_at?: string;
|
|
10123
|
-
email?: string | null;
|
|
10124
|
-
id?: string;
|
|
10125
|
-
is_active?: boolean;
|
|
10126
|
-
leave_balance_hours?: number;
|
|
10127
|
-
name?: string;
|
|
10128
|
-
persnr?: number | null;
|
|
10129
|
-
phone?: string | null;
|
|
10130
|
-
role?: string;
|
|
10131
|
-
tenant_id?: string;
|
|
10132
|
-
updated_at?: string;
|
|
10133
|
-
user_id?: string | null;
|
|
10134
|
-
};
|
|
10135
|
-
Relationships: [{
|
|
10136
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
10137
|
-
columns: ["tenant_id"];
|
|
10138
|
-
isOneToOne: false;
|
|
10139
|
-
referencedRelation: "tenants";
|
|
10140
|
-
referencedColumns: ["id"];
|
|
10141
|
-
}];
|
|
10142
|
-
};
|
|
10143
10290
|
nmbrs_component_mapping: {
|
|
10144
10291
|
Row: {
|
|
10145
10292
|
created_at: string;
|
|
@@ -10210,13 +10357,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
10210
10357
|
nmbrs_employee_number?: string;
|
|
10211
10358
|
updated_at?: string;
|
|
10212
10359
|
};
|
|
10213
|
-
Relationships: [
|
|
10214
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10215
|
-
columns: ["monteur_id"];
|
|
10216
|
-
isOneToOne: true;
|
|
10217
|
-
referencedRelation: "monteurs";
|
|
10218
|
-
referencedColumns: ["id"];
|
|
10219
|
-
}];
|
|
10360
|
+
Relationships: [];
|
|
10220
10361
|
};
|
|
10221
10362
|
nmbrs_export_lines: {
|
|
10222
10363
|
Row: {
|
|
@@ -10265,12 +10406,6 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
10265
10406
|
wage_code?: string;
|
|
10266
10407
|
};
|
|
10267
10408
|
Relationships: [{
|
|
10268
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10269
|
-
columns: ["monteur_id"];
|
|
10270
|
-
isOneToOne: false;
|
|
10271
|
-
referencedRelation: "monteurs";
|
|
10272
|
-
referencedColumns: ["id"];
|
|
10273
|
-
}, {
|
|
10274
10409
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10275
10410
|
columns: ["run_id"];
|
|
10276
10411
|
isOneToOne: false;
|
|
@@ -12661,6 +12796,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
12661
12796
|
created_at: string;
|
|
12662
12797
|
id: string;
|
|
12663
12798
|
laatst_gezien: string;
|
|
12799
|
+
laatste_fout: string | null;
|
|
12800
|
+
laatste_request_id: number | null;
|
|
12801
|
+
mislukte_posts: number;
|
|
12664
12802
|
tick_sleutel: string;
|
|
12665
12803
|
updated_at: string;
|
|
12666
12804
|
};
|
|
@@ -12670,6 +12808,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
12670
12808
|
created_at?: string;
|
|
12671
12809
|
id?: string;
|
|
12672
12810
|
laatst_gezien?: string;
|
|
12811
|
+
laatste_fout?: string | null;
|
|
12812
|
+
laatste_request_id?: number | null;
|
|
12813
|
+
mislukte_posts?: number;
|
|
12673
12814
|
tick_sleutel?: string;
|
|
12674
12815
|
updated_at?: string;
|
|
12675
12816
|
};
|
|
@@ -12679,6 +12820,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
12679
12820
|
created_at?: string;
|
|
12680
12821
|
id?: string;
|
|
12681
12822
|
laatst_gezien?: string;
|
|
12823
|
+
laatste_fout?: string | null;
|
|
12824
|
+
laatste_request_id?: number | null;
|
|
12825
|
+
mislukte_posts?: number;
|
|
12682
12826
|
tick_sleutel?: string;
|
|
12683
12827
|
updated_at?: string;
|
|
12684
12828
|
};
|
|
@@ -14187,6 +14331,96 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
14187
14331
|
referencedColumns: ["id"];
|
|
14188
14332
|
}];
|
|
14189
14333
|
};
|
|
14334
|
+
role_assignments: {
|
|
14335
|
+
Row: {
|
|
14336
|
+
created_at: string;
|
|
14337
|
+
id: string;
|
|
14338
|
+
role_id: string;
|
|
14339
|
+
user_id: string;
|
|
14340
|
+
};
|
|
14341
|
+
Insert: {
|
|
14342
|
+
created_at?: string;
|
|
14343
|
+
id?: string;
|
|
14344
|
+
role_id: string;
|
|
14345
|
+
user_id: string;
|
|
14346
|
+
};
|
|
14347
|
+
Update: {
|
|
14348
|
+
created_at?: string;
|
|
14349
|
+
id?: string;
|
|
14350
|
+
role_id?: string;
|
|
14351
|
+
user_id?: string;
|
|
14352
|
+
};
|
|
14353
|
+
Relationships: [{
|
|
14354
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
14355
|
+
columns: ["role_id"];
|
|
14356
|
+
isOneToOne: false;
|
|
14357
|
+
referencedRelation: "roles";
|
|
14358
|
+
referencedColumns: ["id"];
|
|
14359
|
+
}];
|
|
14360
|
+
};
|
|
14361
|
+
role_permissions: {
|
|
14362
|
+
Row: {
|
|
14363
|
+
can_edit: boolean;
|
|
14364
|
+
can_view: boolean;
|
|
14365
|
+
feature_id: string;
|
|
14366
|
+
id: string;
|
|
14367
|
+
module_id: string;
|
|
14368
|
+
role_id: string;
|
|
14369
|
+
updated_at: string;
|
|
14370
|
+
};
|
|
14371
|
+
Insert: {
|
|
14372
|
+
can_edit?: boolean;
|
|
14373
|
+
can_view?: boolean;
|
|
14374
|
+
feature_id?: string;
|
|
14375
|
+
id?: string;
|
|
14376
|
+
module_id: string;
|
|
14377
|
+
role_id: string;
|
|
14378
|
+
updated_at?: string;
|
|
14379
|
+
};
|
|
14380
|
+
Update: {
|
|
14381
|
+
can_edit?: boolean;
|
|
14382
|
+
can_view?: boolean;
|
|
14383
|
+
feature_id?: string;
|
|
14384
|
+
id?: string;
|
|
14385
|
+
module_id?: string;
|
|
14386
|
+
role_id?: string;
|
|
14387
|
+
updated_at?: string;
|
|
14388
|
+
};
|
|
14389
|
+
Relationships: [{
|
|
14390
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
14391
|
+
columns: ["role_id"];
|
|
14392
|
+
isOneToOne: false;
|
|
14393
|
+
referencedRelation: "roles";
|
|
14394
|
+
referencedColumns: ["id"];
|
|
14395
|
+
}];
|
|
14396
|
+
};
|
|
14397
|
+
roles: {
|
|
14398
|
+
Row: {
|
|
14399
|
+
created_at: string;
|
|
14400
|
+
id: string;
|
|
14401
|
+
is_protected: boolean;
|
|
14402
|
+
key: string;
|
|
14403
|
+
name: string;
|
|
14404
|
+
updated_at: string;
|
|
14405
|
+
};
|
|
14406
|
+
Insert: {
|
|
14407
|
+
created_at?: string;
|
|
14408
|
+
id?: string;
|
|
14409
|
+
is_protected?: boolean;
|
|
14410
|
+
key: string;
|
|
14411
|
+
name: string;
|
|
14412
|
+
updated_at?: string;
|
|
14413
|
+
};
|
|
14414
|
+
Update: {
|
|
14415
|
+
created_at?: string;
|
|
14416
|
+
id?: string;
|
|
14417
|
+
is_protected?: boolean;
|
|
14418
|
+
key?: string;
|
|
14419
|
+
name?: string;
|
|
14420
|
+
updated_at?: string;
|
|
14421
|
+
};
|
|
14422
|
+
Relationships: [];
|
|
14423
|
+
};
|
|
14190
14424
|
rooms: {
|
|
14191
14425
|
Row: {
|
|
14192
14426
|
capacity: number;
|
|
@@ -14856,6 +15090,54 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
14856
15090
|
};
|
|
14857
15091
|
Relationships: [];
|
|
14858
15092
|
};
|
|
15093
|
+
time_compensation_entries: {
|
|
15094
|
+
Row: {
|
|
15095
|
+
created_at: string;
|
|
15096
|
+
employee_id: string;
|
|
15097
|
+
entry_date: string;
|
|
15098
|
+
id: string;
|
|
15099
|
+
km: number;
|
|
15100
|
+
meal_allowance: number;
|
|
15101
|
+
notes: string | null;
|
|
15102
|
+
standby_evening: number;
|
|
15103
|
+
standby_weekend: number;
|
|
15104
|
+
tvt_change: number;
|
|
15105
|
+
updated_at: string;
|
|
15106
|
+
};
|
|
15107
|
+
Insert: {
|
|
15108
|
+
created_at?: string;
|
|
15109
|
+
employee_id: string;
|
|
15110
|
+
entry_date: string;
|
|
15111
|
+
id?: string;
|
|
15112
|
+
km?: number;
|
|
15113
|
+
meal_allowance?: number;
|
|
15114
|
+
notes?: string | null;
|
|
15115
|
+
standby_evening?: number;
|
|
15116
|
+
standby_weekend?: number;
|
|
15117
|
+
tvt_change?: number;
|
|
15118
|
+
updated_at?: string;
|
|
15119
|
+
};
|
|
15120
|
+
Update: {
|
|
15121
|
+
created_at?: string;
|
|
15122
|
+
employee_id?: string;
|
|
15123
|
+
entry_date?: string;
|
|
15124
|
+
id?: string;
|
|
15125
|
+
km?: number;
|
|
15126
|
+
meal_allowance?: number;
|
|
15127
|
+
notes?: string | null;
|
|
15128
|
+
standby_evening?: number;
|
|
15129
|
+
standby_weekend?: number;
|
|
15130
|
+
tvt_change?: number;
|
|
15131
|
+
updated_at?: string;
|
|
15132
|
+
};
|
|
15133
|
+
Relationships: [{
|
|
15134
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
15135
|
+
columns: ["employee_id"];
|
|
15136
|
+
isOneToOne: false;
|
|
15137
|
+
referencedRelation: "profiles";
|
|
15138
|
+
referencedColumns: ["id"];
|
|
15139
|
+
}];
|
|
15140
|
+
};
|
|
14859
15141
|
time_entries: {
|
|
14860
15142
|
Row: {
|
|
14861
15143
|
created_at: string;
|
|
@@ -14890,65 +15172,170 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
14890
15172
|
undertime?: number;
|
|
14891
15173
|
updated_at?: string;
|
|
14892
15174
|
};
|
|
15175
|
+
Relationships: [];
|
|
15176
|
+
};
|
|
15177
|
+
time_log_week_approvals: {
|
|
15178
|
+
Row: {
|
|
15179
|
+
approved_at: string | null;
|
|
15180
|
+
approved_by: string | null;
|
|
15181
|
+
created_at: string;
|
|
15182
|
+
employee_id: string;
|
|
15183
|
+
id: string;
|
|
15184
|
+
locked: boolean;
|
|
15185
|
+
notes: string | null;
|
|
15186
|
+
status: string;
|
|
15187
|
+
submitted_at: string | null;
|
|
15188
|
+
updated_at: string;
|
|
15189
|
+
week_start: string;
|
|
15190
|
+
};
|
|
15191
|
+
Insert: {
|
|
15192
|
+
approved_at?: string | null;
|
|
15193
|
+
approved_by?: string | null;
|
|
15194
|
+
created_at?: string;
|
|
15195
|
+
employee_id: string;
|
|
15196
|
+
id?: string;
|
|
15197
|
+
locked?: boolean;
|
|
15198
|
+
notes?: string | null;
|
|
15199
|
+
status?: string;
|
|
15200
|
+
submitted_at?: string | null;
|
|
15201
|
+
updated_at?: string;
|
|
15202
|
+
week_start: string;
|
|
15203
|
+
};
|
|
15204
|
+
Update: {
|
|
15205
|
+
approved_at?: string | null;
|
|
15206
|
+
approved_by?: string | null;
|
|
15207
|
+
created_at?: string;
|
|
15208
|
+
employee_id?: string;
|
|
15209
|
+
id?: string;
|
|
15210
|
+
locked?: boolean;
|
|
15211
|
+
notes?: string | null;
|
|
15212
|
+
status?: string;
|
|
15213
|
+
submitted_at?: string | null;
|
|
15214
|
+
updated_at?: string;
|
|
15215
|
+
week_start?: string;
|
|
15216
|
+
};
|
|
14893
15217
|
Relationships: [{
|
|
14894
|
-
foreignKeyName: "
|
|
15218
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
14895
15219
|
columns: ["employee_id"];
|
|
14896
15220
|
isOneToOne: false;
|
|
14897
|
-
referencedRelation: "
|
|
15221
|
+
referencedRelation: "profiles";
|
|
14898
15222
|
referencedColumns: ["id"];
|
|
14899
15223
|
}];
|
|
14900
15224
|
};
|
|
14901
15225
|
time_logs: {
|
|
14902
15226
|
Row: {
|
|
15227
|
+
auto_stop_reason: string | null;
|
|
15228
|
+
auto_stopped: boolean;
|
|
14903
15229
|
created_at: string;
|
|
15230
|
+
current_latitude: number | null;
|
|
15231
|
+
current_longitude: number | null;
|
|
15232
|
+
current_position_updated_at: string | null;
|
|
14904
15233
|
employee_id: string;
|
|
15234
|
+
end_latitude: number | null;
|
|
15235
|
+
end_longitude: number | null;
|
|
14905
15236
|
end_time: string | null;
|
|
15237
|
+
eta_distance_km: number | null;
|
|
15238
|
+
eta_minutes: number | null;
|
|
15239
|
+
eta_updated_at: string | null;
|
|
15240
|
+
hour_category: string | null;
|
|
14906
15241
|
id: string;
|
|
15242
|
+
last_reminder_at: string | null;
|
|
14907
15243
|
notes: string | null;
|
|
14908
15244
|
overtime_hours: number;
|
|
14909
15245
|
overtime_type: string | null;
|
|
14910
15246
|
regular_hours: number;
|
|
15247
|
+
reminder_count: number;
|
|
15248
|
+
requires_review: boolean;
|
|
15249
|
+
start_latitude: number | null;
|
|
15250
|
+
start_longitude: number | null;
|
|
14911
15251
|
start_time: string;
|
|
14912
15252
|
travel_cost: number | null;
|
|
14913
15253
|
travel_distance_km: number | null;
|
|
15254
|
+
travel_duration_min: number | null;
|
|
15255
|
+
travel_time_minutes: number | null;
|
|
14914
15256
|
type: string;
|
|
14915
15257
|
updated_at: string;
|
|
15258
|
+
work_order_id: string | null;
|
|
14916
15259
|
};
|
|
14917
15260
|
Insert: {
|
|
15261
|
+
auto_stop_reason?: string | null;
|
|
15262
|
+
auto_stopped?: boolean;
|
|
14918
15263
|
created_at?: string;
|
|
15264
|
+
current_latitude?: number | null;
|
|
15265
|
+
current_longitude?: number | null;
|
|
15266
|
+
current_position_updated_at?: string | null;
|
|
14919
15267
|
employee_id: string;
|
|
15268
|
+
end_latitude?: number | null;
|
|
15269
|
+
end_longitude?: number | null;
|
|
14920
15270
|
end_time?: string | null;
|
|
15271
|
+
eta_distance_km?: number | null;
|
|
15272
|
+
eta_minutes?: number | null;
|
|
15273
|
+
eta_updated_at?: string | null;
|
|
15274
|
+
hour_category?: string | null;
|
|
14921
15275
|
id?: string;
|
|
15276
|
+
last_reminder_at?: string | null;
|
|
14922
15277
|
notes?: string | null;
|
|
14923
15278
|
overtime_hours?: number;
|
|
14924
15279
|
overtime_type?: string | null;
|
|
14925
15280
|
regular_hours?: number;
|
|
15281
|
+
reminder_count?: number;
|
|
15282
|
+
requires_review?: boolean;
|
|
15283
|
+
start_latitude?: number | null;
|
|
15284
|
+
start_longitude?: number | null;
|
|
14926
15285
|
start_time?: string;
|
|
14927
15286
|
travel_cost?: number | null;
|
|
14928
15287
|
travel_distance_km?: number | null;
|
|
15288
|
+
travel_duration_min?: number | null;
|
|
15289
|
+
travel_time_minutes?: number | null;
|
|
14929
15290
|
type: string;
|
|
14930
15291
|
updated_at?: string;
|
|
15292
|
+
work_order_id?: string | null;
|
|
14931
15293
|
};
|
|
14932
15294
|
Update: {
|
|
15295
|
+
auto_stop_reason?: string | null;
|
|
15296
|
+
auto_stopped?: boolean;
|
|
14933
15297
|
created_at?: string;
|
|
15298
|
+
current_latitude?: number | null;
|
|
15299
|
+
current_longitude?: number | null;
|
|
15300
|
+
current_position_updated_at?: string | null;
|
|
14934
15301
|
employee_id?: string;
|
|
15302
|
+
end_latitude?: number | null;
|
|
15303
|
+
end_longitude?: number | null;
|
|
14935
15304
|
end_time?: string | null;
|
|
15305
|
+
eta_distance_km?: number | null;
|
|
15306
|
+
eta_minutes?: number | null;
|
|
15307
|
+
eta_updated_at?: string | null;
|
|
15308
|
+
hour_category?: string | null;
|
|
14936
15309
|
id?: string;
|
|
15310
|
+
last_reminder_at?: string | null;
|
|
14937
15311
|
notes?: string | null;
|
|
14938
15312
|
overtime_hours?: number;
|
|
14939
15313
|
overtime_type?: string | null;
|
|
14940
15314
|
regular_hours?: number;
|
|
15315
|
+
reminder_count?: number;
|
|
15316
|
+
requires_review?: boolean;
|
|
15317
|
+
start_latitude?: number | null;
|
|
15318
|
+
start_longitude?: number | null;
|
|
14941
15319
|
start_time?: string;
|
|
14942
15320
|
travel_cost?: number | null;
|
|
14943
15321
|
travel_distance_km?: number | null;
|
|
15322
|
+
travel_duration_min?: number | null;
|
|
15323
|
+
travel_time_minutes?: number | null;
|
|
14944
15324
|
type?: string;
|
|
14945
15325
|
updated_at?: string;
|
|
15326
|
+
work_order_id?: string | null;
|
|
14946
15327
|
};
|
|
14947
15328
|
Relationships: [{
|
|
14948
15329
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
14949
15330
|
columns: ["employee_id"];
|
|
14950
15331
|
isOneToOne: false;
|
|
14951
|
-
referencedRelation: "
|
|
15332
|
+
referencedRelation: "profiles";
|
|
15333
|
+
referencedColumns: ["id"];
|
|
15334
|
+
}, {
|
|
15335
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
15336
|
+
columns: ["work_order_id"];
|
|
15337
|
+
isOneToOne: false;
|
|
15338
|
+
referencedRelation: "work_orders";
|
|
14952
15339
|
referencedColumns: ["id"];
|
|
14953
15340
|
}];
|
|
14954
15341
|
};
|
|
@@ -14987,7 +15374,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
14987
15374
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
14988
15375
|
columns: ["employee_id"];
|
|
14989
15376
|
isOneToOne: false;
|
|
14990
|
-
referencedRelation: "
|
|
15377
|
+
referencedRelation: "profiles";
|
|
14991
15378
|
referencedColumns: ["id"];
|
|
14992
15379
|
}];
|
|
14993
15380
|
};
|
|
@@ -15297,6 +15684,39 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
15297
15684
|
};
|
|
15298
15685
|
Relationships: [];
|
|
15299
15686
|
};
|
|
15687
|
+
twinfield_cron_locks: {
|
|
15688
|
+
Row: {
|
|
15689
|
+
created_at: string;
|
|
15690
|
+
heartbeat_at: string;
|
|
15691
|
+
job_name: string;
|
|
15692
|
+
last_error: string | null;
|
|
15693
|
+
last_finished_at: string | null;
|
|
15694
|
+
locked_at: string;
|
|
15695
|
+
run_id: string;
|
|
15696
|
+
updated_at: string;
|
|
15697
|
+
};
|
|
15698
|
+
Insert: {
|
|
15699
|
+
created_at?: string;
|
|
15700
|
+
heartbeat_at?: string;
|
|
15701
|
+
job_name: string;
|
|
15702
|
+
last_error?: string | null;
|
|
15703
|
+
last_finished_at?: string | null;
|
|
15704
|
+
locked_at?: string;
|
|
15705
|
+
run_id?: string;
|
|
15706
|
+
updated_at?: string;
|
|
15707
|
+
};
|
|
15708
|
+
Update: {
|
|
15709
|
+
created_at?: string;
|
|
15710
|
+
heartbeat_at?: string;
|
|
15711
|
+
job_name?: string;
|
|
15712
|
+
last_error?: string | null;
|
|
15713
|
+
last_finished_at?: string | null;
|
|
15714
|
+
locked_at?: string;
|
|
15715
|
+
run_id?: string;
|
|
15716
|
+
updated_at?: string;
|
|
15717
|
+
};
|
|
15718
|
+
Relationships: [];
|
|
15719
|
+
};
|
|
15300
15720
|
twinfield_customers: {
|
|
15301
15721
|
Row: {
|
|
15302
15722
|
address: string | null;
|
|
@@ -15897,6 +16317,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
15897
16317
|
twinfield_push_queue: {
|
|
15898
16318
|
Row: {
|
|
15899
16319
|
action: string;
|
|
16320
|
+
attempt_started_at: string | null;
|
|
15900
16321
|
attempts: number;
|
|
15901
16322
|
connection_id: string | null;
|
|
15902
16323
|
created_at: string;
|
|
@@ -15913,6 +16334,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
15913
16334
|
};
|
|
15914
16335
|
Insert: {
|
|
15915
16336
|
action?: string;
|
|
16337
|
+
attempt_started_at?: string | null;
|
|
15916
16338
|
attempts?: number;
|
|
15917
16339
|
connection_id?: string | null;
|
|
15918
16340
|
created_at?: string;
|
|
@@ -15929,6 +16351,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
15929
16351
|
};
|
|
15930
16352
|
Update: {
|
|
15931
16353
|
action?: string;
|
|
16354
|
+
attempt_started_at?: string | null;
|
|
15932
16355
|
attempts?: number;
|
|
15933
16356
|
connection_id?: string | null;
|
|
15934
16357
|
created_at?: string;
|
|
@@ -16126,13 +16549,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
16126
16549
|
workday_end?: string | null;
|
|
16127
16550
|
workday_start?: string | null;
|
|
16128
16551
|
};
|
|
16129
|
-
Relationships: [
|
|
16130
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
16131
|
-
columns: ["monteur_id"];
|
|
16132
|
-
isOneToOne: true;
|
|
16133
|
-
referencedRelation: "monteurs";
|
|
16134
|
-
referencedColumns: ["id"];
|
|
16135
|
-
}];
|
|
16552
|
+
Relationships: [];
|
|
16136
16553
|
};
|
|
16137
16554
|
uren_entries: {
|
|
16138
16555
|
Row: {
|
|
@@ -16178,12 +16595,6 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
16178
16595
|
werkbon_id?: string | null;
|
|
16179
16596
|
};
|
|
16180
16597
|
Relationships: [{
|
|
16181
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16182
|
-
columns: ["monteur_id"];
|
|
16183
|
-
isOneToOne: false;
|
|
16184
|
-
referencedRelation: "monteurs";
|
|
16185
|
-
referencedColumns: ["id"];
|
|
16186
|
-
}, {
|
|
16187
16598
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16188
16599
|
columns: ["werkbon_id"];
|
|
16189
16600
|
isOneToOne: false;
|
|
@@ -16651,17 +17062,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
16651
17062
|
submitted_at?: string | null;
|
|
16652
17063
|
updated_at?: string;
|
|
16653
17064
|
};
|
|
16654
|
-
Relationships: [
|
|
16655
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
16656
|
-
columns: ["monteur_id"];
|
|
16657
|
-
isOneToOne: false;
|
|
16658
|
-
referencedRelation: "monteurs";
|
|
16659
|
-
referencedColumns: ["id"];
|
|
16660
|
-
}];
|
|
17065
|
+
Relationships: [];
|
|
16661
17066
|
};
|
|
16662
17067
|
user_module_permissions: {
|
|
16663
17068
|
Row: {
|
|
16664
17069
|
created_at: string;
|
|
17070
|
+
feature_id: string;
|
|
16665
17071
|
id: string;
|
|
16666
17072
|
module_id: string;
|
|
16667
17073
|
permission: string;
|
|
@@ -16670,6 +17076,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
16670
17076
|
};
|
|
16671
17077
|
Insert: {
|
|
16672
17078
|
created_at?: string;
|
|
17079
|
+
feature_id?: string;
|
|
16673
17080
|
id?: string;
|
|
16674
17081
|
module_id: string;
|
|
16675
17082
|
permission: string;
|
|
@@ -16678,6 +17085,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
16678
17085
|
};
|
|
16679
17086
|
Update: {
|
|
16680
17087
|
created_at?: string;
|
|
17088
|
+
feature_id?: string;
|
|
16681
17089
|
id?: string;
|
|
16682
17090
|
module_id?: string;
|
|
16683
17091
|
permission?: string;
|
|
@@ -16713,6 +17121,51 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
16713
17121
|
referencedColumns: ["id"];
|
|
16714
17122
|
}];
|
|
16715
17123
|
};
|
|
17124
|
+
van_inventories: {
|
|
17125
|
+
Row: {
|
|
17126
|
+
barcode: string | null;
|
|
17127
|
+
created_at: string;
|
|
17128
|
+
id: string;
|
|
17129
|
+
monteur_id: string | null;
|
|
17130
|
+
price_per_unit: number;
|
|
17131
|
+
product_name: string;
|
|
17132
|
+
quantity_current: number;
|
|
17133
|
+
quantity_min: number;
|
|
17134
|
+
unit: string;
|
|
17135
|
+
updated_at: string;
|
|
17136
|
+
};
|
|
17137
|
+
Insert: {
|
|
17138
|
+
barcode?: string | null;
|
|
17139
|
+
created_at?: string;
|
|
17140
|
+
id?: string;
|
|
17141
|
+
monteur_id?: string | null;
|
|
17142
|
+
price_per_unit?: number;
|
|
17143
|
+
product_name: string;
|
|
17144
|
+
quantity_current?: number;
|
|
17145
|
+
quantity_min?: number;
|
|
17146
|
+
unit?: string;
|
|
17147
|
+
updated_at?: string;
|
|
17148
|
+
};
|
|
17149
|
+
Update: {
|
|
17150
|
+
barcode?: string | null;
|
|
17151
|
+
created_at?: string;
|
|
17152
|
+
id?: string;
|
|
17153
|
+
monteur_id?: string | null;
|
|
17154
|
+
price_per_unit?: number;
|
|
17155
|
+
product_name?: string;
|
|
17156
|
+
quantity_current?: number;
|
|
17157
|
+
quantity_min?: number;
|
|
17158
|
+
unit?: string;
|
|
17159
|
+
updated_at?: string;
|
|
17160
|
+
};
|
|
17161
|
+
Relationships: [{
|
|
17162
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
17163
|
+
columns: ["monteur_id"];
|
|
17164
|
+
isOneToOne: false;
|
|
17165
|
+
referencedRelation: "profiles";
|
|
17166
|
+
referencedColumns: ["id"];
|
|
17167
|
+
}];
|
|
17168
|
+
};
|
|
16716
17169
|
voorraad_custom_fields: {
|
|
16717
17170
|
Row: {
|
|
16718
17171
|
created_at: string;
|
|
@@ -17663,7 +18116,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
17663
18116
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
17664
18117
|
columns: ["monteur_id"];
|
|
17665
18118
|
isOneToOne: false;
|
|
17666
|
-
referencedRelation: "
|
|
18119
|
+
referencedRelation: "profiles";
|
|
17667
18120
|
referencedColumns: ["id"];
|
|
17668
18121
|
}, {
|
|
17669
18122
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -17673,6 +18126,60 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
17673
18126
|
referencedColumns: ["id"];
|
|
17674
18127
|
}];
|
|
17675
18128
|
};
|
|
18129
|
+
work_order_photos: {
|
|
18130
|
+
Row: {
|
|
18131
|
+
ai_caption: string | null;
|
|
18132
|
+
ai_categorized_at: string | null;
|
|
18133
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
18134
|
+
caption: string | null;
|
|
18135
|
+
created_at: string;
|
|
18136
|
+
id: string;
|
|
18137
|
+
monteur_id: string | null;
|
|
18138
|
+
photo_type: string;
|
|
18139
|
+
storage_path: string;
|
|
18140
|
+
updated_at: string;
|
|
18141
|
+
work_order_id: string;
|
|
18142
|
+
};
|
|
18143
|
+
Insert: {
|
|
18144
|
+
ai_caption?: string | null;
|
|
18145
|
+
ai_categorized_at?: string | null;
|
|
18146
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18147
|
+
caption?: string | null;
|
|
18148
|
+
created_at?: string;
|
|
18149
|
+
id?: string;
|
|
18150
|
+
monteur_id?: string | null;
|
|
18151
|
+
photo_type?: string;
|
|
18152
|
+
storage_path: string;
|
|
18153
|
+
updated_at?: string;
|
|
18154
|
+
work_order_id: string;
|
|
18155
|
+
};
|
|
18156
|
+
Update: {
|
|
18157
|
+
ai_caption?: string | null;
|
|
18158
|
+
ai_categorized_at?: string | null;
|
|
18159
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18160
|
+
caption?: string | null;
|
|
18161
|
+
created_at?: string;
|
|
18162
|
+
id?: string;
|
|
18163
|
+
monteur_id?: string | null;
|
|
18164
|
+
photo_type?: string;
|
|
18165
|
+
storage_path?: string;
|
|
18166
|
+
updated_at?: string;
|
|
18167
|
+
work_order_id?: string;
|
|
18168
|
+
};
|
|
18169
|
+
Relationships: [{
|
|
18170
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
18171
|
+
columns: ["monteur_id"];
|
|
18172
|
+
isOneToOne: false;
|
|
18173
|
+
referencedRelation: "profiles";
|
|
18174
|
+
referencedColumns: ["id"];
|
|
18175
|
+
}, {
|
|
18176
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
18177
|
+
columns: ["work_order_id"];
|
|
18178
|
+
isOneToOne: false;
|
|
18179
|
+
referencedRelation: "work_orders";
|
|
18180
|
+
referencedColumns: ["id"];
|
|
18181
|
+
}];
|
|
18182
|
+
};
|
|
17676
18183
|
work_orders: {
|
|
17677
18184
|
Row: {
|
|
17678
18185
|
assigned_to: string | null;
|
|
@@ -17704,7 +18211,6 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
17704
18211
|
scheduled_end_time: string | null;
|
|
17705
18212
|
scheduled_start_time: string | null;
|
|
17706
18213
|
status: string;
|
|
17707
|
-
tenant_id: string;
|
|
17708
18214
|
total_hours_worked: number | null;
|
|
17709
18215
|
total_price: number | null;
|
|
17710
18216
|
travel_time_minutes: number | null;
|
|
@@ -17742,7 +18248,6 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
17742
18248
|
scheduled_end_time?: string | null;
|
|
17743
18249
|
scheduled_start_time?: string | null;
|
|
17744
18250
|
status?: string;
|
|
17745
|
-
tenant_id: string;
|
|
17746
18251
|
total_hours_worked?: number | null;
|
|
17747
18252
|
total_price?: number | null;
|
|
17748
18253
|
travel_time_minutes?: number | null;
|
|
@@ -17780,7 +18285,6 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
17780
18285
|
scheduled_end_time?: string | null;
|
|
17781
18286
|
scheduled_start_time?: string | null;
|
|
17782
18287
|
status?: string;
|
|
17783
|
-
tenant_id?: string;
|
|
17784
18288
|
total_hours_worked?: number | null;
|
|
17785
18289
|
total_price?: number | null;
|
|
17786
18290
|
travel_time_minutes?: number | null;
|
|
@@ -17794,12 +18298,6 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
17794
18298
|
isOneToOne: false;
|
|
17795
18299
|
referencedRelation: "work_orders";
|
|
17796
18300
|
referencedColumns: ["id"];
|
|
17797
|
-
}, {
|
|
17798
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
17799
|
-
columns: ["tenant_id"];
|
|
17800
|
-
isOneToOne: false;
|
|
17801
|
-
referencedRelation: "tenants";
|
|
17802
|
-
referencedColumns: ["id"];
|
|
17803
18301
|
}];
|
|
17804
18302
|
};
|
|
17805
18303
|
};
|
|
@@ -18484,6 +18982,19 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
18484
18982
|
};
|
|
18485
18983
|
Returns: undefined;
|
|
18486
18984
|
};
|
|
18985
|
+
approve_mailbox_order_proposal: {
|
|
18986
|
+
Args: {
|
|
18987
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
18988
|
+
p_customer_id: string;
|
|
18989
|
+
p_delivery_date: string;
|
|
18990
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
18991
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
18992
|
+
p_notes: string;
|
|
18993
|
+
p_proposal_id: string;
|
|
18994
|
+
p_reviewed_by: string;
|
|
18995
|
+
};
|
|
18996
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
18997
|
+
};
|
|
18487
18998
|
assign_cart_numbers: {
|
|
18488
18999
|
Args: {
|
|
18489
19000
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -18535,6 +19046,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
18535
19046
|
};
|
|
18536
19047
|
Returns: number;
|
|
18537
19048
|
};
|
|
19049
|
+
can_manage_hours: {
|
|
19050
|
+
Args: never;
|
|
19051
|
+
Returns: boolean;
|
|
19052
|
+
};
|
|
18538
19053
|
check_offer_product_available_stock: {
|
|
18539
19054
|
Args: {
|
|
18540
19055
|
p_campaign_product_id: string;
|
|
@@ -18724,6 +19239,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
18724
19239
|
};
|
|
18725
19240
|
Returns: {
|
|
18726
19241
|
action: string;
|
|
19242
|
+
attempt_started_at: string | null;
|
|
18727
19243
|
attempts: number;
|
|
18728
19244
|
connection_id: string | null;
|
|
18729
19245
|
created_at: string;
|
|
@@ -18811,6 +19327,30 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
18811
19327
|
agent_naam: string;
|
|
18812
19328
|
}[];
|
|
18813
19329
|
};
|
|
19330
|
+
consume_van_inventory: {
|
|
19331
|
+
Args: {
|
|
19332
|
+
p_inventory_id: string;
|
|
19333
|
+
p_quantity: number;
|
|
19334
|
+
};
|
|
19335
|
+
Returns: {
|
|
19336
|
+
barcode: string | null;
|
|
19337
|
+
created_at: string;
|
|
19338
|
+
id: string;
|
|
19339
|
+
monteur_id: string | null;
|
|
19340
|
+
price_per_unit: number;
|
|
19341
|
+
product_name: string;
|
|
19342
|
+
quantity_current: number;
|
|
19343
|
+
quantity_min: number;
|
|
19344
|
+
unit: string;
|
|
19345
|
+
updated_at: string;
|
|
19346
|
+
};
|
|
19347
|
+
SetofOptions: {
|
|
19348
|
+
from: "*";
|
|
19349
|
+
to: "van_inventories";
|
|
19350
|
+
isOneToOne: true;
|
|
19351
|
+
isSetofReturn: false;
|
|
19352
|
+
};
|
|
19353
|
+
};
|
|
18814
19354
|
control_get_todays_carts: {
|
|
18815
19355
|
Args: never;
|
|
18816
19356
|
Returns: {
|
|
@@ -18884,6 +19424,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
18884
19424
|
_user_id: string;
|
|
18885
19425
|
};
|
|
18886
19426
|
Returns: string;
|
|
19427
|
+
} | {
|
|
19428
|
+
Args: {
|
|
19429
|
+
_feature_id: string;
|
|
19430
|
+
_module_id: string;
|
|
19431
|
+
_user_id: string;
|
|
19432
|
+
};
|
|
19433
|
+
Returns: string;
|
|
18887
19434
|
};
|
|
18888
19435
|
email_auth_decrypt: {
|
|
18889
19436
|
Args: {
|
|
@@ -19235,12 +19782,6 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
19235
19782
|
Args: never;
|
|
19236
19783
|
Returns: string;
|
|
19237
19784
|
};
|
|
19238
|
-
get_work_order_tenant_id: {
|
|
19239
|
-
Args: {
|
|
19240
|
-
wo_id: string;
|
|
19241
|
-
};
|
|
19242
|
-
Returns: string;
|
|
19243
|
-
};
|
|
19244
19785
|
has_module_permission: {
|
|
19245
19786
|
Args: {
|
|
19246
19787
|
_min: string;
|
|
@@ -19274,6 +19815,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
19274
19815
|
};
|
|
19275
19816
|
Returns: boolean;
|
|
19276
19817
|
};
|
|
19818
|
+
is_time_log_week_locked: {
|
|
19819
|
+
Args: {
|
|
19820
|
+
p_employee_id: string;
|
|
19821
|
+
p_start_time: string;
|
|
19822
|
+
};
|
|
19823
|
+
Returns: boolean;
|
|
19824
|
+
};
|
|
19277
19825
|
is_user_admin: {
|
|
19278
19826
|
Args: never;
|
|
19279
19827
|
Returns: boolean;
|
|
@@ -19288,13 +19836,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
19288
19836
|
};
|
|
19289
19837
|
Returns: boolean;
|
|
19290
19838
|
};
|
|
19291
|
-
|
|
19839
|
+
list_medewerkers: {
|
|
19292
19840
|
Args: never;
|
|
19293
19841
|
Returns: {
|
|
19294
19842
|
avatar_url: string;
|
|
19295
19843
|
display_name: string;
|
|
19296
19844
|
email: string;
|
|
19297
19845
|
id: string;
|
|
19846
|
+
roles: string[];
|
|
19298
19847
|
}[];
|
|
19299
19848
|
};
|
|
19300
19849
|
list_my_planning_items: {
|
|
@@ -19620,17 +20169,6 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
19620
20169
|
Returns: string;
|
|
19621
20170
|
};
|
|
19622
20171
|
logistics_emit_event: {
|
|
19623
|
-
Args: {
|
|
19624
|
-
p_event_type: string;
|
|
19625
|
-
p_idempotency_key?: string;
|
|
19626
|
-
p_order_ref: string;
|
|
19627
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
19628
|
-
p_shadow?: boolean;
|
|
19629
|
-
p_source_module: string;
|
|
19630
|
-
p_strategy_id?: string;
|
|
19631
|
-
};
|
|
19632
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
19633
|
-
} | {
|
|
19634
20172
|
Args: {
|
|
19635
20173
|
p_event_type: string;
|
|
19636
20174
|
p_idempotency_key?: string;
|
|
@@ -20085,6 +20623,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
20085
20623
|
my_module_permissions: {
|
|
20086
20624
|
Args: never;
|
|
20087
20625
|
Returns: {
|
|
20626
|
+
feature_id: string;
|
|
20088
20627
|
module_id: string;
|
|
20089
20628
|
permission: string;
|
|
20090
20629
|
}[];
|
|
@@ -20965,6 +21504,16 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
20965
21504
|
};
|
|
20966
21505
|
Returns: string[];
|
|
20967
21506
|
};
|
|
21507
|
+
switch_time_log: {
|
|
21508
|
+
Args: {
|
|
21509
|
+
p_employee_id: string;
|
|
21510
|
+
p_start_lat?: number;
|
|
21511
|
+
p_start_lng?: number;
|
|
21512
|
+
p_type: string;
|
|
21513
|
+
p_work_order_id?: string;
|
|
21514
|
+
};
|
|
21515
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21516
|
+
};
|
|
20968
21517
|
sync_all_layer_stocks: {
|
|
20969
21518
|
Args: never;
|
|
20970
21519
|
Returns: undefined;
|
|
@@ -21015,6 +21564,24 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
21015
21564
|
};
|
|
21016
21565
|
Returns: boolean;
|
|
21017
21566
|
};
|
|
21567
|
+
twinfield_cron_lock_acquire: {
|
|
21568
|
+
Args: {
|
|
21569
|
+
_job_name: string;
|
|
21570
|
+
_stale_seconds?: number;
|
|
21571
|
+
};
|
|
21572
|
+
Returns: boolean;
|
|
21573
|
+
};
|
|
21574
|
+
twinfield_cron_lock_release: {
|
|
21575
|
+
Args: {
|
|
21576
|
+
_error?: string;
|
|
21577
|
+
_job_name: string;
|
|
21578
|
+
};
|
|
21579
|
+
Returns: undefined;
|
|
21580
|
+
};
|
|
21581
|
+
twinfield_prune_push_queue: {
|
|
21582
|
+
Args: never;
|
|
21583
|
+
Returns: number;
|
|
21584
|
+
};
|
|
21018
21585
|
twinfield_register_cron: {
|
|
21019
21586
|
Args: {
|
|
21020
21587
|
apikey?: string;
|
|
@@ -21058,7 +21625,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
|
|
|
21058
21625
|
Enums: {
|
|
21059
21626
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
21060
21627
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
21061
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
21628
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
21062
21629
|
doc_orientation: "portrait" | "landscape";
|
|
21063
21630
|
exact_env: "staging" | "live";
|
|
21064
21631
|
exact_push_status: "pending" | "sent" | "error";
|