@flowselections/floriday-afhandeling-module 1.0.31 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/ControlePage.js +23 -10
- package/dist-lib/components/afhandeling/VervoerdersPage.d.ts +8 -1
- package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/VervoerdersPage.js +17 -2
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +678 -116
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +678 -116
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +678 -116
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +694 -127
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +1356 -232
- package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
- package/dist-lib/lib/carriers.functions.d.ts +3390 -580
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartAssignments.functions.d.ts +3390 -580
- package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.d.ts +6780 -1160
- package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.d.ts +678 -116
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/package.json +1 -7
|
@@ -889,6 +889,126 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
889
889
|
};
|
|
890
890
|
Relationships: [];
|
|
891
891
|
};
|
|
892
|
+
cao_holidays: {
|
|
893
|
+
Row: {
|
|
894
|
+
created_at: string;
|
|
895
|
+
description: string | null;
|
|
896
|
+
holiday_date: string;
|
|
897
|
+
id: string;
|
|
898
|
+
updated_at: string;
|
|
899
|
+
};
|
|
900
|
+
Insert: {
|
|
901
|
+
created_at?: string;
|
|
902
|
+
description?: string | null;
|
|
903
|
+
holiday_date: string;
|
|
904
|
+
id?: string;
|
|
905
|
+
updated_at?: string;
|
|
906
|
+
};
|
|
907
|
+
Update: {
|
|
908
|
+
created_at?: string;
|
|
909
|
+
description?: string | null;
|
|
910
|
+
holiday_date?: string;
|
|
911
|
+
id?: string;
|
|
912
|
+
updated_at?: string;
|
|
913
|
+
};
|
|
914
|
+
Relationships: [];
|
|
915
|
+
};
|
|
916
|
+
cao_settings: {
|
|
917
|
+
Row: {
|
|
918
|
+
auto_break_after_hours: number;
|
|
919
|
+
auto_break_minutes: number;
|
|
920
|
+
auto_break_unpaid: boolean;
|
|
921
|
+
auto_stop_after_hours: number;
|
|
922
|
+
callout_fee: number;
|
|
923
|
+
created_at: string;
|
|
924
|
+
daily_regular_hours: number;
|
|
925
|
+
default_hourly_rate: number;
|
|
926
|
+
id: string;
|
|
927
|
+
materials_markup_percent: number;
|
|
928
|
+
max_daily_hours: number;
|
|
929
|
+
max_weekly_hours: number;
|
|
930
|
+
meal_allowance_amount: number;
|
|
931
|
+
overtime_pct_178: number;
|
|
932
|
+
overtime_pct_189: number;
|
|
933
|
+
overtime_pct_212: number;
|
|
934
|
+
reminder_after_hours: number;
|
|
935
|
+
standby_evening_amount: number;
|
|
936
|
+
standby_weekend_amount: number;
|
|
937
|
+
travel_cost_per_km: number | null;
|
|
938
|
+
travel_cost_threshold_km: number | null;
|
|
939
|
+
travel_counts_as_work: boolean;
|
|
940
|
+
travel_hourly_rate: number;
|
|
941
|
+
travel_rate_per_hour: number;
|
|
942
|
+
travel_threshold_minutes: number;
|
|
943
|
+
updated_at: string;
|
|
944
|
+
weekend_always_212: boolean;
|
|
945
|
+
window_end: string;
|
|
946
|
+
window_start: string;
|
|
947
|
+
};
|
|
948
|
+
Insert: {
|
|
949
|
+
auto_break_after_hours?: number;
|
|
950
|
+
auto_break_minutes?: number;
|
|
951
|
+
auto_break_unpaid?: boolean;
|
|
952
|
+
auto_stop_after_hours?: number;
|
|
953
|
+
callout_fee?: number;
|
|
954
|
+
created_at?: string;
|
|
955
|
+
daily_regular_hours?: number;
|
|
956
|
+
default_hourly_rate?: number;
|
|
957
|
+
id?: string;
|
|
958
|
+
materials_markup_percent?: number;
|
|
959
|
+
max_daily_hours?: number;
|
|
960
|
+
max_weekly_hours?: number;
|
|
961
|
+
meal_allowance_amount?: number;
|
|
962
|
+
overtime_pct_178?: number;
|
|
963
|
+
overtime_pct_189?: number;
|
|
964
|
+
overtime_pct_212?: number;
|
|
965
|
+
reminder_after_hours?: number;
|
|
966
|
+
standby_evening_amount?: number;
|
|
967
|
+
standby_weekend_amount?: number;
|
|
968
|
+
travel_cost_per_km?: number | null;
|
|
969
|
+
travel_cost_threshold_km?: number | null;
|
|
970
|
+
travel_counts_as_work?: boolean;
|
|
971
|
+
travel_hourly_rate?: number;
|
|
972
|
+
travel_rate_per_hour?: number;
|
|
973
|
+
travel_threshold_minutes?: number;
|
|
974
|
+
updated_at?: string;
|
|
975
|
+
weekend_always_212?: boolean;
|
|
976
|
+
window_end?: string;
|
|
977
|
+
window_start?: string;
|
|
978
|
+
};
|
|
979
|
+
Update: {
|
|
980
|
+
auto_break_after_hours?: number;
|
|
981
|
+
auto_break_minutes?: number;
|
|
982
|
+
auto_break_unpaid?: boolean;
|
|
983
|
+
auto_stop_after_hours?: number;
|
|
984
|
+
callout_fee?: number;
|
|
985
|
+
created_at?: string;
|
|
986
|
+
daily_regular_hours?: number;
|
|
987
|
+
default_hourly_rate?: number;
|
|
988
|
+
id?: string;
|
|
989
|
+
materials_markup_percent?: number;
|
|
990
|
+
max_daily_hours?: number;
|
|
991
|
+
max_weekly_hours?: number;
|
|
992
|
+
meal_allowance_amount?: number;
|
|
993
|
+
overtime_pct_178?: number;
|
|
994
|
+
overtime_pct_189?: number;
|
|
995
|
+
overtime_pct_212?: number;
|
|
996
|
+
reminder_after_hours?: number;
|
|
997
|
+
standby_evening_amount?: number;
|
|
998
|
+
standby_weekend_amount?: number;
|
|
999
|
+
travel_cost_per_km?: number | null;
|
|
1000
|
+
travel_cost_threshold_km?: number | null;
|
|
1001
|
+
travel_counts_as_work?: boolean;
|
|
1002
|
+
travel_hourly_rate?: number;
|
|
1003
|
+
travel_rate_per_hour?: number;
|
|
1004
|
+
travel_threshold_minutes?: number;
|
|
1005
|
+
updated_at?: string;
|
|
1006
|
+
weekend_always_212?: boolean;
|
|
1007
|
+
window_end?: string;
|
|
1008
|
+
window_start?: string;
|
|
1009
|
+
};
|
|
1010
|
+
Relationships: [];
|
|
1011
|
+
};
|
|
892
1012
|
carrier_shipping_rates: {
|
|
893
1013
|
Row: {
|
|
894
1014
|
carrier_id: string;
|
|
@@ -7783,7 +7903,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7783
7903
|
start_date: string;
|
|
7784
7904
|
start_time: string | null;
|
|
7785
7905
|
status: string;
|
|
7786
|
-
tenant_id: string;
|
|
7787
7906
|
updated_at: string;
|
|
7788
7907
|
user_id: string;
|
|
7789
7908
|
};
|
|
@@ -7801,7 +7920,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7801
7920
|
start_date: string;
|
|
7802
7921
|
start_time?: string | null;
|
|
7803
7922
|
status?: string;
|
|
7804
|
-
tenant_id?: string;
|
|
7805
7923
|
updated_at?: string;
|
|
7806
7924
|
user_id: string;
|
|
7807
7925
|
};
|
|
@@ -7819,7 +7937,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7819
7937
|
start_date?: string;
|
|
7820
7938
|
start_time?: string | null;
|
|
7821
7939
|
status?: string;
|
|
7822
|
-
tenant_id?: string;
|
|
7823
7940
|
updated_at?: string;
|
|
7824
7941
|
user_id?: string;
|
|
7825
7942
|
};
|
|
@@ -7827,13 +7944,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7827
7944
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
7828
7945
|
columns: ["monteur_id"];
|
|
7829
7946
|
isOneToOne: false;
|
|
7830
|
-
referencedRelation: "
|
|
7947
|
+
referencedRelation: "profiles";
|
|
7831
7948
|
referencedColumns: ["id"];
|
|
7832
7949
|
}, {
|
|
7833
7950
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
7834
7951
|
columns: ["user_id"];
|
|
7835
7952
|
isOneToOne: false;
|
|
7836
|
-
referencedRelation: "
|
|
7953
|
+
referencedRelation: "profiles";
|
|
7837
7954
|
referencedColumns: ["id"];
|
|
7838
7955
|
}];
|
|
7839
7956
|
};
|
|
@@ -9988,6 +10105,90 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9988
10105
|
};
|
|
9989
10106
|
Relationships: [];
|
|
9990
10107
|
};
|
|
10108
|
+
material_usage: {
|
|
10109
|
+
Row: {
|
|
10110
|
+
created_at: string;
|
|
10111
|
+
id: string;
|
|
10112
|
+
material_name: string;
|
|
10113
|
+
monteur_id: string | null;
|
|
10114
|
+
price_at_time: number;
|
|
10115
|
+
quantity_used: number;
|
|
10116
|
+
updated_at: string;
|
|
10117
|
+
van_inventory_id: string | null;
|
|
10118
|
+
work_order_id: string;
|
|
10119
|
+
};
|
|
10120
|
+
Insert: {
|
|
10121
|
+
created_at?: string;
|
|
10122
|
+
id?: string;
|
|
10123
|
+
material_name: string;
|
|
10124
|
+
monteur_id?: string | null;
|
|
10125
|
+
price_at_time?: number;
|
|
10126
|
+
quantity_used?: number;
|
|
10127
|
+
updated_at?: string;
|
|
10128
|
+
van_inventory_id?: string | null;
|
|
10129
|
+
work_order_id: string;
|
|
10130
|
+
};
|
|
10131
|
+
Update: {
|
|
10132
|
+
created_at?: string;
|
|
10133
|
+
id?: string;
|
|
10134
|
+
material_name?: string;
|
|
10135
|
+
monteur_id?: string | null;
|
|
10136
|
+
price_at_time?: number;
|
|
10137
|
+
quantity_used?: number;
|
|
10138
|
+
updated_at?: string;
|
|
10139
|
+
van_inventory_id?: string | null;
|
|
10140
|
+
work_order_id?: string;
|
|
10141
|
+
};
|
|
10142
|
+
Relationships: [{
|
|
10143
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
10144
|
+
columns: ["monteur_id"];
|
|
10145
|
+
isOneToOne: false;
|
|
10146
|
+
referencedRelation: "profiles";
|
|
10147
|
+
referencedColumns: ["id"];
|
|
10148
|
+
}, {
|
|
10149
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
10150
|
+
columns: ["van_inventory_id"];
|
|
10151
|
+
isOneToOne: false;
|
|
10152
|
+
referencedRelation: "van_inventories";
|
|
10153
|
+
referencedColumns: ["id"];
|
|
10154
|
+
}, {
|
|
10155
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
10156
|
+
columns: ["work_order_id"];
|
|
10157
|
+
isOneToOne: false;
|
|
10158
|
+
referencedRelation: "work_orders";
|
|
10159
|
+
referencedColumns: ["id"];
|
|
10160
|
+
}];
|
|
10161
|
+
};
|
|
10162
|
+
module_features: {
|
|
10163
|
+
Row: {
|
|
10164
|
+
created_at: string;
|
|
10165
|
+
feature_id: string;
|
|
10166
|
+
id: string;
|
|
10167
|
+
is_active: boolean;
|
|
10168
|
+
last_seen_at: string;
|
|
10169
|
+
module_id: string;
|
|
10170
|
+
name: string;
|
|
10171
|
+
};
|
|
10172
|
+
Insert: {
|
|
10173
|
+
created_at?: string;
|
|
10174
|
+
feature_id: string;
|
|
10175
|
+
id?: string;
|
|
10176
|
+
is_active?: boolean;
|
|
10177
|
+
last_seen_at?: string;
|
|
10178
|
+
module_id: string;
|
|
10179
|
+
name: string;
|
|
10180
|
+
};
|
|
10181
|
+
Update: {
|
|
10182
|
+
created_at?: string;
|
|
10183
|
+
feature_id?: string;
|
|
10184
|
+
id?: string;
|
|
10185
|
+
is_active?: boolean;
|
|
10186
|
+
last_seen_at?: string;
|
|
10187
|
+
module_id?: string;
|
|
10188
|
+
name?: string;
|
|
10189
|
+
};
|
|
10190
|
+
Relationships: [];
|
|
10191
|
+
};
|
|
9991
10192
|
module_permissions: {
|
|
9992
10193
|
Row: {
|
|
9993
10194
|
created_at: string;
|
|
@@ -10096,63 +10297,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10096
10297
|
};
|
|
10097
10298
|
Relationships: [];
|
|
10098
10299
|
};
|
|
10099
|
-
monteurs: {
|
|
10100
|
-
Row: {
|
|
10101
|
-
avatar_url: string | null;
|
|
10102
|
-
color: string | null;
|
|
10103
|
-
created_at: string;
|
|
10104
|
-
email: string | null;
|
|
10105
|
-
id: string;
|
|
10106
|
-
is_active: boolean;
|
|
10107
|
-
leave_balance_hours: number;
|
|
10108
|
-
name: string;
|
|
10109
|
-
persnr: number | null;
|
|
10110
|
-
phone: string | null;
|
|
10111
|
-
role: string;
|
|
10112
|
-
tenant_id: string;
|
|
10113
|
-
updated_at: string;
|
|
10114
|
-
user_id: string | null;
|
|
10115
|
-
};
|
|
10116
|
-
Insert: {
|
|
10117
|
-
avatar_url?: string | null;
|
|
10118
|
-
color?: string | null;
|
|
10119
|
-
created_at?: string;
|
|
10120
|
-
email?: string | null;
|
|
10121
|
-
id?: string;
|
|
10122
|
-
is_active?: boolean;
|
|
10123
|
-
leave_balance_hours?: number;
|
|
10124
|
-
name: string;
|
|
10125
|
-
persnr?: number | null;
|
|
10126
|
-
phone?: string | null;
|
|
10127
|
-
role?: string;
|
|
10128
|
-
tenant_id: string;
|
|
10129
|
-
updated_at?: string;
|
|
10130
|
-
user_id?: string | null;
|
|
10131
|
-
};
|
|
10132
|
-
Update: {
|
|
10133
|
-
avatar_url?: string | null;
|
|
10134
|
-
color?: string | null;
|
|
10135
|
-
created_at?: string;
|
|
10136
|
-
email?: string | null;
|
|
10137
|
-
id?: string;
|
|
10138
|
-
is_active?: boolean;
|
|
10139
|
-
leave_balance_hours?: number;
|
|
10140
|
-
name?: string;
|
|
10141
|
-
persnr?: number | null;
|
|
10142
|
-
phone?: string | null;
|
|
10143
|
-
role?: string;
|
|
10144
|
-
tenant_id?: string;
|
|
10145
|
-
updated_at?: string;
|
|
10146
|
-
user_id?: string | null;
|
|
10147
|
-
};
|
|
10148
|
-
Relationships: [{
|
|
10149
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
10150
|
-
columns: ["tenant_id"];
|
|
10151
|
-
isOneToOne: false;
|
|
10152
|
-
referencedRelation: "tenants";
|
|
10153
|
-
referencedColumns: ["id"];
|
|
10154
|
-
}];
|
|
10155
|
-
};
|
|
10156
10300
|
nmbrs_component_mapping: {
|
|
10157
10301
|
Row: {
|
|
10158
10302
|
created_at: string;
|
|
@@ -10223,13 +10367,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10223
10367
|
nmbrs_employee_number?: string;
|
|
10224
10368
|
updated_at?: string;
|
|
10225
10369
|
};
|
|
10226
|
-
Relationships: [
|
|
10227
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10228
|
-
columns: ["monteur_id"];
|
|
10229
|
-
isOneToOne: true;
|
|
10230
|
-
referencedRelation: "monteurs";
|
|
10231
|
-
referencedColumns: ["id"];
|
|
10232
|
-
}];
|
|
10370
|
+
Relationships: [];
|
|
10233
10371
|
};
|
|
10234
10372
|
nmbrs_export_lines: {
|
|
10235
10373
|
Row: {
|
|
@@ -10278,12 +10416,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10278
10416
|
wage_code?: string;
|
|
10279
10417
|
};
|
|
10280
10418
|
Relationships: [{
|
|
10281
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10282
|
-
columns: ["monteur_id"];
|
|
10283
|
-
isOneToOne: false;
|
|
10284
|
-
referencedRelation: "monteurs";
|
|
10285
|
-
referencedColumns: ["id"];
|
|
10286
|
-
}, {
|
|
10287
10419
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10288
10420
|
columns: ["run_id"];
|
|
10289
10421
|
isOneToOne: false;
|
|
@@ -12674,6 +12806,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
12674
12806
|
created_at: string;
|
|
12675
12807
|
id: string;
|
|
12676
12808
|
laatst_gezien: string;
|
|
12809
|
+
laatste_fout: string | null;
|
|
12810
|
+
laatste_request_id: number | null;
|
|
12811
|
+
mislukte_posts: number;
|
|
12677
12812
|
tick_sleutel: string;
|
|
12678
12813
|
updated_at: string;
|
|
12679
12814
|
};
|
|
@@ -12683,6 +12818,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
12683
12818
|
created_at?: string;
|
|
12684
12819
|
id?: string;
|
|
12685
12820
|
laatst_gezien?: string;
|
|
12821
|
+
laatste_fout?: string | null;
|
|
12822
|
+
laatste_request_id?: number | null;
|
|
12823
|
+
mislukte_posts?: number;
|
|
12686
12824
|
tick_sleutel?: string;
|
|
12687
12825
|
updated_at?: string;
|
|
12688
12826
|
};
|
|
@@ -12692,6 +12830,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
12692
12830
|
created_at?: string;
|
|
12693
12831
|
id?: string;
|
|
12694
12832
|
laatst_gezien?: string;
|
|
12833
|
+
laatste_fout?: string | null;
|
|
12834
|
+
laatste_request_id?: number | null;
|
|
12835
|
+
mislukte_posts?: number;
|
|
12695
12836
|
tick_sleutel?: string;
|
|
12696
12837
|
updated_at?: string;
|
|
12697
12838
|
};
|
|
@@ -14200,6 +14341,96 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
14200
14341
|
referencedColumns: ["id"];
|
|
14201
14342
|
}];
|
|
14202
14343
|
};
|
|
14344
|
+
role_assignments: {
|
|
14345
|
+
Row: {
|
|
14346
|
+
created_at: string;
|
|
14347
|
+
id: string;
|
|
14348
|
+
role_id: string;
|
|
14349
|
+
user_id: string;
|
|
14350
|
+
};
|
|
14351
|
+
Insert: {
|
|
14352
|
+
created_at?: string;
|
|
14353
|
+
id?: string;
|
|
14354
|
+
role_id: string;
|
|
14355
|
+
user_id: string;
|
|
14356
|
+
};
|
|
14357
|
+
Update: {
|
|
14358
|
+
created_at?: string;
|
|
14359
|
+
id?: string;
|
|
14360
|
+
role_id?: string;
|
|
14361
|
+
user_id?: string;
|
|
14362
|
+
};
|
|
14363
|
+
Relationships: [{
|
|
14364
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
14365
|
+
columns: ["role_id"];
|
|
14366
|
+
isOneToOne: false;
|
|
14367
|
+
referencedRelation: "roles";
|
|
14368
|
+
referencedColumns: ["id"];
|
|
14369
|
+
}];
|
|
14370
|
+
};
|
|
14371
|
+
role_permissions: {
|
|
14372
|
+
Row: {
|
|
14373
|
+
can_edit: boolean;
|
|
14374
|
+
can_view: boolean;
|
|
14375
|
+
feature_id: string;
|
|
14376
|
+
id: string;
|
|
14377
|
+
module_id: string;
|
|
14378
|
+
role_id: string;
|
|
14379
|
+
updated_at: string;
|
|
14380
|
+
};
|
|
14381
|
+
Insert: {
|
|
14382
|
+
can_edit?: boolean;
|
|
14383
|
+
can_view?: boolean;
|
|
14384
|
+
feature_id?: string;
|
|
14385
|
+
id?: string;
|
|
14386
|
+
module_id: string;
|
|
14387
|
+
role_id: string;
|
|
14388
|
+
updated_at?: string;
|
|
14389
|
+
};
|
|
14390
|
+
Update: {
|
|
14391
|
+
can_edit?: boolean;
|
|
14392
|
+
can_view?: boolean;
|
|
14393
|
+
feature_id?: string;
|
|
14394
|
+
id?: string;
|
|
14395
|
+
module_id?: string;
|
|
14396
|
+
role_id?: string;
|
|
14397
|
+
updated_at?: string;
|
|
14398
|
+
};
|
|
14399
|
+
Relationships: [{
|
|
14400
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
14401
|
+
columns: ["role_id"];
|
|
14402
|
+
isOneToOne: false;
|
|
14403
|
+
referencedRelation: "roles";
|
|
14404
|
+
referencedColumns: ["id"];
|
|
14405
|
+
}];
|
|
14406
|
+
};
|
|
14407
|
+
roles: {
|
|
14408
|
+
Row: {
|
|
14409
|
+
created_at: string;
|
|
14410
|
+
id: string;
|
|
14411
|
+
is_protected: boolean;
|
|
14412
|
+
key: string;
|
|
14413
|
+
name: string;
|
|
14414
|
+
updated_at: string;
|
|
14415
|
+
};
|
|
14416
|
+
Insert: {
|
|
14417
|
+
created_at?: string;
|
|
14418
|
+
id?: string;
|
|
14419
|
+
is_protected?: boolean;
|
|
14420
|
+
key: string;
|
|
14421
|
+
name: string;
|
|
14422
|
+
updated_at?: string;
|
|
14423
|
+
};
|
|
14424
|
+
Update: {
|
|
14425
|
+
created_at?: string;
|
|
14426
|
+
id?: string;
|
|
14427
|
+
is_protected?: boolean;
|
|
14428
|
+
key?: string;
|
|
14429
|
+
name?: string;
|
|
14430
|
+
updated_at?: string;
|
|
14431
|
+
};
|
|
14432
|
+
Relationships: [];
|
|
14433
|
+
};
|
|
14203
14434
|
rooms: {
|
|
14204
14435
|
Row: {
|
|
14205
14436
|
capacity: number;
|
|
@@ -14869,6 +15100,54 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
14869
15100
|
};
|
|
14870
15101
|
Relationships: [];
|
|
14871
15102
|
};
|
|
15103
|
+
time_compensation_entries: {
|
|
15104
|
+
Row: {
|
|
15105
|
+
created_at: string;
|
|
15106
|
+
employee_id: string;
|
|
15107
|
+
entry_date: string;
|
|
15108
|
+
id: string;
|
|
15109
|
+
km: number;
|
|
15110
|
+
meal_allowance: number;
|
|
15111
|
+
notes: string | null;
|
|
15112
|
+
standby_evening: number;
|
|
15113
|
+
standby_weekend: number;
|
|
15114
|
+
tvt_change: number;
|
|
15115
|
+
updated_at: string;
|
|
15116
|
+
};
|
|
15117
|
+
Insert: {
|
|
15118
|
+
created_at?: string;
|
|
15119
|
+
employee_id: string;
|
|
15120
|
+
entry_date: string;
|
|
15121
|
+
id?: string;
|
|
15122
|
+
km?: number;
|
|
15123
|
+
meal_allowance?: number;
|
|
15124
|
+
notes?: string | null;
|
|
15125
|
+
standby_evening?: number;
|
|
15126
|
+
standby_weekend?: number;
|
|
15127
|
+
tvt_change?: number;
|
|
15128
|
+
updated_at?: string;
|
|
15129
|
+
};
|
|
15130
|
+
Update: {
|
|
15131
|
+
created_at?: string;
|
|
15132
|
+
employee_id?: string;
|
|
15133
|
+
entry_date?: string;
|
|
15134
|
+
id?: string;
|
|
15135
|
+
km?: number;
|
|
15136
|
+
meal_allowance?: number;
|
|
15137
|
+
notes?: string | null;
|
|
15138
|
+
standby_evening?: number;
|
|
15139
|
+
standby_weekend?: number;
|
|
15140
|
+
tvt_change?: number;
|
|
15141
|
+
updated_at?: string;
|
|
15142
|
+
};
|
|
15143
|
+
Relationships: [{
|
|
15144
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
15145
|
+
columns: ["employee_id"];
|
|
15146
|
+
isOneToOne: false;
|
|
15147
|
+
referencedRelation: "profiles";
|
|
15148
|
+
referencedColumns: ["id"];
|
|
15149
|
+
}];
|
|
15150
|
+
};
|
|
14872
15151
|
time_entries: {
|
|
14873
15152
|
Row: {
|
|
14874
15153
|
created_at: string;
|
|
@@ -14903,65 +15182,170 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
14903
15182
|
undertime?: number;
|
|
14904
15183
|
updated_at?: string;
|
|
14905
15184
|
};
|
|
15185
|
+
Relationships: [];
|
|
15186
|
+
};
|
|
15187
|
+
time_log_week_approvals: {
|
|
15188
|
+
Row: {
|
|
15189
|
+
approved_at: string | null;
|
|
15190
|
+
approved_by: string | null;
|
|
15191
|
+
created_at: string;
|
|
15192
|
+
employee_id: string;
|
|
15193
|
+
id: string;
|
|
15194
|
+
locked: boolean;
|
|
15195
|
+
notes: string | null;
|
|
15196
|
+
status: string;
|
|
15197
|
+
submitted_at: string | null;
|
|
15198
|
+
updated_at: string;
|
|
15199
|
+
week_start: string;
|
|
15200
|
+
};
|
|
15201
|
+
Insert: {
|
|
15202
|
+
approved_at?: string | null;
|
|
15203
|
+
approved_by?: string | null;
|
|
15204
|
+
created_at?: string;
|
|
15205
|
+
employee_id: string;
|
|
15206
|
+
id?: string;
|
|
15207
|
+
locked?: boolean;
|
|
15208
|
+
notes?: string | null;
|
|
15209
|
+
status?: string;
|
|
15210
|
+
submitted_at?: string | null;
|
|
15211
|
+
updated_at?: string;
|
|
15212
|
+
week_start: string;
|
|
15213
|
+
};
|
|
15214
|
+
Update: {
|
|
15215
|
+
approved_at?: string | null;
|
|
15216
|
+
approved_by?: string | null;
|
|
15217
|
+
created_at?: string;
|
|
15218
|
+
employee_id?: string;
|
|
15219
|
+
id?: string;
|
|
15220
|
+
locked?: boolean;
|
|
15221
|
+
notes?: string | null;
|
|
15222
|
+
status?: string;
|
|
15223
|
+
submitted_at?: string | null;
|
|
15224
|
+
updated_at?: string;
|
|
15225
|
+
week_start?: string;
|
|
15226
|
+
};
|
|
14906
15227
|
Relationships: [{
|
|
14907
|
-
foreignKeyName: "
|
|
15228
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
14908
15229
|
columns: ["employee_id"];
|
|
14909
15230
|
isOneToOne: false;
|
|
14910
|
-
referencedRelation: "
|
|
15231
|
+
referencedRelation: "profiles";
|
|
14911
15232
|
referencedColumns: ["id"];
|
|
14912
15233
|
}];
|
|
14913
15234
|
};
|
|
14914
15235
|
time_logs: {
|
|
14915
15236
|
Row: {
|
|
15237
|
+
auto_stop_reason: string | null;
|
|
15238
|
+
auto_stopped: boolean;
|
|
14916
15239
|
created_at: string;
|
|
15240
|
+
current_latitude: number | null;
|
|
15241
|
+
current_longitude: number | null;
|
|
15242
|
+
current_position_updated_at: string | null;
|
|
14917
15243
|
employee_id: string;
|
|
15244
|
+
end_latitude: number | null;
|
|
15245
|
+
end_longitude: number | null;
|
|
14918
15246
|
end_time: string | null;
|
|
15247
|
+
eta_distance_km: number | null;
|
|
15248
|
+
eta_minutes: number | null;
|
|
15249
|
+
eta_updated_at: string | null;
|
|
15250
|
+
hour_category: string | null;
|
|
14919
15251
|
id: string;
|
|
15252
|
+
last_reminder_at: string | null;
|
|
14920
15253
|
notes: string | null;
|
|
14921
15254
|
overtime_hours: number;
|
|
14922
15255
|
overtime_type: string | null;
|
|
14923
15256
|
regular_hours: number;
|
|
15257
|
+
reminder_count: number;
|
|
15258
|
+
requires_review: boolean;
|
|
15259
|
+
start_latitude: number | null;
|
|
15260
|
+
start_longitude: number | null;
|
|
14924
15261
|
start_time: string;
|
|
14925
15262
|
travel_cost: number | null;
|
|
14926
15263
|
travel_distance_km: number | null;
|
|
15264
|
+
travel_duration_min: number | null;
|
|
15265
|
+
travel_time_minutes: number | null;
|
|
14927
15266
|
type: string;
|
|
14928
15267
|
updated_at: string;
|
|
15268
|
+
work_order_id: string | null;
|
|
14929
15269
|
};
|
|
14930
15270
|
Insert: {
|
|
15271
|
+
auto_stop_reason?: string | null;
|
|
15272
|
+
auto_stopped?: boolean;
|
|
14931
15273
|
created_at?: string;
|
|
15274
|
+
current_latitude?: number | null;
|
|
15275
|
+
current_longitude?: number | null;
|
|
15276
|
+
current_position_updated_at?: string | null;
|
|
14932
15277
|
employee_id: string;
|
|
15278
|
+
end_latitude?: number | null;
|
|
15279
|
+
end_longitude?: number | null;
|
|
14933
15280
|
end_time?: string | null;
|
|
15281
|
+
eta_distance_km?: number | null;
|
|
15282
|
+
eta_minutes?: number | null;
|
|
15283
|
+
eta_updated_at?: string | null;
|
|
15284
|
+
hour_category?: string | null;
|
|
14934
15285
|
id?: string;
|
|
15286
|
+
last_reminder_at?: string | null;
|
|
14935
15287
|
notes?: string | null;
|
|
14936
15288
|
overtime_hours?: number;
|
|
14937
15289
|
overtime_type?: string | null;
|
|
14938
15290
|
regular_hours?: number;
|
|
15291
|
+
reminder_count?: number;
|
|
15292
|
+
requires_review?: boolean;
|
|
15293
|
+
start_latitude?: number | null;
|
|
15294
|
+
start_longitude?: number | null;
|
|
14939
15295
|
start_time?: string;
|
|
14940
15296
|
travel_cost?: number | null;
|
|
14941
15297
|
travel_distance_km?: number | null;
|
|
15298
|
+
travel_duration_min?: number | null;
|
|
15299
|
+
travel_time_minutes?: number | null;
|
|
14942
15300
|
type: string;
|
|
14943
15301
|
updated_at?: string;
|
|
15302
|
+
work_order_id?: string | null;
|
|
14944
15303
|
};
|
|
14945
15304
|
Update: {
|
|
15305
|
+
auto_stop_reason?: string | null;
|
|
15306
|
+
auto_stopped?: boolean;
|
|
14946
15307
|
created_at?: string;
|
|
15308
|
+
current_latitude?: number | null;
|
|
15309
|
+
current_longitude?: number | null;
|
|
15310
|
+
current_position_updated_at?: string | null;
|
|
14947
15311
|
employee_id?: string;
|
|
15312
|
+
end_latitude?: number | null;
|
|
15313
|
+
end_longitude?: number | null;
|
|
14948
15314
|
end_time?: string | null;
|
|
15315
|
+
eta_distance_km?: number | null;
|
|
15316
|
+
eta_minutes?: number | null;
|
|
15317
|
+
eta_updated_at?: string | null;
|
|
15318
|
+
hour_category?: string | null;
|
|
14949
15319
|
id?: string;
|
|
15320
|
+
last_reminder_at?: string | null;
|
|
14950
15321
|
notes?: string | null;
|
|
14951
15322
|
overtime_hours?: number;
|
|
14952
15323
|
overtime_type?: string | null;
|
|
14953
15324
|
regular_hours?: number;
|
|
15325
|
+
reminder_count?: number;
|
|
15326
|
+
requires_review?: boolean;
|
|
15327
|
+
start_latitude?: number | null;
|
|
15328
|
+
start_longitude?: number | null;
|
|
14954
15329
|
start_time?: string;
|
|
14955
15330
|
travel_cost?: number | null;
|
|
14956
15331
|
travel_distance_km?: number | null;
|
|
15332
|
+
travel_duration_min?: number | null;
|
|
15333
|
+
travel_time_minutes?: number | null;
|
|
14957
15334
|
type?: string;
|
|
14958
15335
|
updated_at?: string;
|
|
15336
|
+
work_order_id?: string | null;
|
|
14959
15337
|
};
|
|
14960
15338
|
Relationships: [{
|
|
14961
15339
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
14962
15340
|
columns: ["employee_id"];
|
|
14963
15341
|
isOneToOne: false;
|
|
14964
|
-
referencedRelation: "
|
|
15342
|
+
referencedRelation: "profiles";
|
|
15343
|
+
referencedColumns: ["id"];
|
|
15344
|
+
}, {
|
|
15345
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
15346
|
+
columns: ["work_order_id"];
|
|
15347
|
+
isOneToOne: false;
|
|
15348
|
+
referencedRelation: "work_orders";
|
|
14965
15349
|
referencedColumns: ["id"];
|
|
14966
15350
|
}];
|
|
14967
15351
|
};
|
|
@@ -15000,7 +15384,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
15000
15384
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
15001
15385
|
columns: ["employee_id"];
|
|
15002
15386
|
isOneToOne: false;
|
|
15003
|
-
referencedRelation: "
|
|
15387
|
+
referencedRelation: "profiles";
|
|
15004
15388
|
referencedColumns: ["id"];
|
|
15005
15389
|
}];
|
|
15006
15390
|
};
|
|
@@ -15310,6 +15694,39 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
15310
15694
|
};
|
|
15311
15695
|
Relationships: [];
|
|
15312
15696
|
};
|
|
15697
|
+
twinfield_cron_locks: {
|
|
15698
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
15719
|
+
created_at?: string;
|
|
15720
|
+
heartbeat_at?: string;
|
|
15721
|
+
job_name?: string;
|
|
15722
|
+
last_error?: string | null;
|
|
15723
|
+
last_finished_at?: string | null;
|
|
15724
|
+
locked_at?: string;
|
|
15725
|
+
run_id?: string;
|
|
15726
|
+
updated_at?: string;
|
|
15727
|
+
};
|
|
15728
|
+
Relationships: [];
|
|
15729
|
+
};
|
|
15313
15730
|
twinfield_customers: {
|
|
15314
15731
|
Row: {
|
|
15315
15732
|
address: string | null;
|
|
@@ -15910,6 +16327,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
15910
16327
|
twinfield_push_queue: {
|
|
15911
16328
|
Row: {
|
|
15912
16329
|
action: string;
|
|
16330
|
+
attempt_started_at: string | null;
|
|
15913
16331
|
attempts: number;
|
|
15914
16332
|
connection_id: string | null;
|
|
15915
16333
|
created_at: string;
|
|
@@ -15926,6 +16344,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
15926
16344
|
};
|
|
15927
16345
|
Insert: {
|
|
15928
16346
|
action?: string;
|
|
16347
|
+
attempt_started_at?: string | null;
|
|
15929
16348
|
attempts?: number;
|
|
15930
16349
|
connection_id?: string | null;
|
|
15931
16350
|
created_at?: string;
|
|
@@ -15942,6 +16361,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
15942
16361
|
};
|
|
15943
16362
|
Update: {
|
|
15944
16363
|
action?: string;
|
|
16364
|
+
attempt_started_at?: string | null;
|
|
15945
16365
|
attempts?: number;
|
|
15946
16366
|
connection_id?: string | null;
|
|
15947
16367
|
created_at?: string;
|
|
@@ -16139,13 +16559,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
16139
16559
|
workday_end?: string | null;
|
|
16140
16560
|
workday_start?: string | null;
|
|
16141
16561
|
};
|
|
16142
|
-
Relationships: [
|
|
16143
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
16144
|
-
columns: ["monteur_id"];
|
|
16145
|
-
isOneToOne: true;
|
|
16146
|
-
referencedRelation: "monteurs";
|
|
16147
|
-
referencedColumns: ["id"];
|
|
16148
|
-
}];
|
|
16562
|
+
Relationships: [];
|
|
16149
16563
|
};
|
|
16150
16564
|
uren_entries: {
|
|
16151
16565
|
Row: {
|
|
@@ -16191,12 +16605,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
16191
16605
|
werkbon_id?: string | null;
|
|
16192
16606
|
};
|
|
16193
16607
|
Relationships: [{
|
|
16194
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16195
|
-
columns: ["monteur_id"];
|
|
16196
|
-
isOneToOne: false;
|
|
16197
|
-
referencedRelation: "monteurs";
|
|
16198
|
-
referencedColumns: ["id"];
|
|
16199
|
-
}, {
|
|
16200
16608
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16201
16609
|
columns: ["werkbon_id"];
|
|
16202
16610
|
isOneToOne: false;
|
|
@@ -16664,17 +17072,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
16664
17072
|
submitted_at?: string | null;
|
|
16665
17073
|
updated_at?: string;
|
|
16666
17074
|
};
|
|
16667
|
-
Relationships: [
|
|
16668
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
16669
|
-
columns: ["monteur_id"];
|
|
16670
|
-
isOneToOne: false;
|
|
16671
|
-
referencedRelation: "monteurs";
|
|
16672
|
-
referencedColumns: ["id"];
|
|
16673
|
-
}];
|
|
17075
|
+
Relationships: [];
|
|
16674
17076
|
};
|
|
16675
17077
|
user_module_permissions: {
|
|
16676
17078
|
Row: {
|
|
16677
17079
|
created_at: string;
|
|
17080
|
+
feature_id: string;
|
|
16678
17081
|
id: string;
|
|
16679
17082
|
module_id: string;
|
|
16680
17083
|
permission: string;
|
|
@@ -16683,6 +17086,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
16683
17086
|
};
|
|
16684
17087
|
Insert: {
|
|
16685
17088
|
created_at?: string;
|
|
17089
|
+
feature_id?: string;
|
|
16686
17090
|
id?: string;
|
|
16687
17091
|
module_id: string;
|
|
16688
17092
|
permission: string;
|
|
@@ -16691,6 +17095,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
16691
17095
|
};
|
|
16692
17096
|
Update: {
|
|
16693
17097
|
created_at?: string;
|
|
17098
|
+
feature_id?: string;
|
|
16694
17099
|
id?: string;
|
|
16695
17100
|
module_id?: string;
|
|
16696
17101
|
permission?: string;
|
|
@@ -16726,6 +17131,51 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
16726
17131
|
referencedColumns: ["id"];
|
|
16727
17132
|
}];
|
|
16728
17133
|
};
|
|
17134
|
+
van_inventories: {
|
|
17135
|
+
Row: {
|
|
17136
|
+
barcode: string | null;
|
|
17137
|
+
created_at: string;
|
|
17138
|
+
id: string;
|
|
17139
|
+
monteur_id: string | null;
|
|
17140
|
+
price_per_unit: number;
|
|
17141
|
+
product_name: string;
|
|
17142
|
+
quantity_current: number;
|
|
17143
|
+
quantity_min: number;
|
|
17144
|
+
unit: string;
|
|
17145
|
+
updated_at: string;
|
|
17146
|
+
};
|
|
17147
|
+
Insert: {
|
|
17148
|
+
barcode?: string | null;
|
|
17149
|
+
created_at?: string;
|
|
17150
|
+
id?: string;
|
|
17151
|
+
monteur_id?: string | null;
|
|
17152
|
+
price_per_unit?: number;
|
|
17153
|
+
product_name: string;
|
|
17154
|
+
quantity_current?: number;
|
|
17155
|
+
quantity_min?: number;
|
|
17156
|
+
unit?: string;
|
|
17157
|
+
updated_at?: string;
|
|
17158
|
+
};
|
|
17159
|
+
Update: {
|
|
17160
|
+
barcode?: string | null;
|
|
17161
|
+
created_at?: string;
|
|
17162
|
+
id?: string;
|
|
17163
|
+
monteur_id?: string | null;
|
|
17164
|
+
price_per_unit?: number;
|
|
17165
|
+
product_name?: string;
|
|
17166
|
+
quantity_current?: number;
|
|
17167
|
+
quantity_min?: number;
|
|
17168
|
+
unit?: string;
|
|
17169
|
+
updated_at?: string;
|
|
17170
|
+
};
|
|
17171
|
+
Relationships: [{
|
|
17172
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
17173
|
+
columns: ["monteur_id"];
|
|
17174
|
+
isOneToOne: false;
|
|
17175
|
+
referencedRelation: "profiles";
|
|
17176
|
+
referencedColumns: ["id"];
|
|
17177
|
+
}];
|
|
17178
|
+
};
|
|
16729
17179
|
voorraad_custom_fields: {
|
|
16730
17180
|
Row: {
|
|
16731
17181
|
created_at: string;
|
|
@@ -17676,7 +18126,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
17676
18126
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
17677
18127
|
columns: ["monteur_id"];
|
|
17678
18128
|
isOneToOne: false;
|
|
17679
|
-
referencedRelation: "
|
|
18129
|
+
referencedRelation: "profiles";
|
|
17680
18130
|
referencedColumns: ["id"];
|
|
17681
18131
|
}, {
|
|
17682
18132
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -17686,6 +18136,60 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
17686
18136
|
referencedColumns: ["id"];
|
|
17687
18137
|
}];
|
|
17688
18138
|
};
|
|
18139
|
+
work_order_photos: {
|
|
18140
|
+
Row: {
|
|
18141
|
+
ai_caption: string | null;
|
|
18142
|
+
ai_categorized_at: string | null;
|
|
18143
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
18144
|
+
caption: string | null;
|
|
18145
|
+
created_at: string;
|
|
18146
|
+
id: string;
|
|
18147
|
+
monteur_id: string | null;
|
|
18148
|
+
photo_type: string;
|
|
18149
|
+
storage_path: string;
|
|
18150
|
+
updated_at: string;
|
|
18151
|
+
work_order_id: string;
|
|
18152
|
+
};
|
|
18153
|
+
Insert: {
|
|
18154
|
+
ai_caption?: string | null;
|
|
18155
|
+
ai_categorized_at?: string | null;
|
|
18156
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18157
|
+
caption?: string | null;
|
|
18158
|
+
created_at?: string;
|
|
18159
|
+
id?: string;
|
|
18160
|
+
monteur_id?: string | null;
|
|
18161
|
+
photo_type?: string;
|
|
18162
|
+
storage_path: string;
|
|
18163
|
+
updated_at?: string;
|
|
18164
|
+
work_order_id: string;
|
|
18165
|
+
};
|
|
18166
|
+
Update: {
|
|
18167
|
+
ai_caption?: string | null;
|
|
18168
|
+
ai_categorized_at?: string | null;
|
|
18169
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18170
|
+
caption?: string | null;
|
|
18171
|
+
created_at?: string;
|
|
18172
|
+
id?: string;
|
|
18173
|
+
monteur_id?: string | null;
|
|
18174
|
+
photo_type?: string;
|
|
18175
|
+
storage_path?: string;
|
|
18176
|
+
updated_at?: string;
|
|
18177
|
+
work_order_id?: string;
|
|
18178
|
+
};
|
|
18179
|
+
Relationships: [{
|
|
18180
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
18181
|
+
columns: ["monteur_id"];
|
|
18182
|
+
isOneToOne: false;
|
|
18183
|
+
referencedRelation: "profiles";
|
|
18184
|
+
referencedColumns: ["id"];
|
|
18185
|
+
}, {
|
|
18186
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
18187
|
+
columns: ["work_order_id"];
|
|
18188
|
+
isOneToOne: false;
|
|
18189
|
+
referencedRelation: "work_orders";
|
|
18190
|
+
referencedColumns: ["id"];
|
|
18191
|
+
}];
|
|
18192
|
+
};
|
|
17689
18193
|
work_orders: {
|
|
17690
18194
|
Row: {
|
|
17691
18195
|
assigned_to: string | null;
|
|
@@ -17717,7 +18221,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
17717
18221
|
scheduled_end_time: string | null;
|
|
17718
18222
|
scheduled_start_time: string | null;
|
|
17719
18223
|
status: string;
|
|
17720
|
-
tenant_id: string;
|
|
17721
18224
|
total_hours_worked: number | null;
|
|
17722
18225
|
total_price: number | null;
|
|
17723
18226
|
travel_time_minutes: number | null;
|
|
@@ -17755,7 +18258,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
17755
18258
|
scheduled_end_time?: string | null;
|
|
17756
18259
|
scheduled_start_time?: string | null;
|
|
17757
18260
|
status?: string;
|
|
17758
|
-
tenant_id: string;
|
|
17759
18261
|
total_hours_worked?: number | null;
|
|
17760
18262
|
total_price?: number | null;
|
|
17761
18263
|
travel_time_minutes?: number | null;
|
|
@@ -17793,7 +18295,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
17793
18295
|
scheduled_end_time?: string | null;
|
|
17794
18296
|
scheduled_start_time?: string | null;
|
|
17795
18297
|
status?: string;
|
|
17796
|
-
tenant_id?: string;
|
|
17797
18298
|
total_hours_worked?: number | null;
|
|
17798
18299
|
total_price?: number | null;
|
|
17799
18300
|
travel_time_minutes?: number | null;
|
|
@@ -17807,12 +18308,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
17807
18308
|
isOneToOne: false;
|
|
17808
18309
|
referencedRelation: "work_orders";
|
|
17809
18310
|
referencedColumns: ["id"];
|
|
17810
|
-
}, {
|
|
17811
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
17812
|
-
columns: ["tenant_id"];
|
|
17813
|
-
isOneToOne: false;
|
|
17814
|
-
referencedRelation: "tenants";
|
|
17815
|
-
referencedColumns: ["id"];
|
|
17816
18311
|
}];
|
|
17817
18312
|
};
|
|
17818
18313
|
};
|
|
@@ -18548,6 +19043,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
18548
19043
|
};
|
|
18549
19044
|
Returns: number;
|
|
18550
19045
|
};
|
|
19046
|
+
can_manage_hours: {
|
|
19047
|
+
Args: never;
|
|
19048
|
+
Returns: boolean;
|
|
19049
|
+
};
|
|
18551
19050
|
check_offer_product_available_stock: {
|
|
18552
19051
|
Args: {
|
|
18553
19052
|
p_campaign_product_id: string;
|
|
@@ -18737,6 +19236,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
18737
19236
|
};
|
|
18738
19237
|
Returns: {
|
|
18739
19238
|
action: string;
|
|
19239
|
+
attempt_started_at: string | null;
|
|
18740
19240
|
attempts: number;
|
|
18741
19241
|
connection_id: string | null;
|
|
18742
19242
|
created_at: string;
|
|
@@ -18824,6 +19324,30 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
18824
19324
|
agent_naam: string;
|
|
18825
19325
|
}[];
|
|
18826
19326
|
};
|
|
19327
|
+
consume_van_inventory: {
|
|
19328
|
+
Args: {
|
|
19329
|
+
p_inventory_id: string;
|
|
19330
|
+
p_quantity: number;
|
|
19331
|
+
};
|
|
19332
|
+
Returns: {
|
|
19333
|
+
barcode: string | null;
|
|
19334
|
+
created_at: string;
|
|
19335
|
+
id: string;
|
|
19336
|
+
monteur_id: string | null;
|
|
19337
|
+
price_per_unit: number;
|
|
19338
|
+
product_name: string;
|
|
19339
|
+
quantity_current: number;
|
|
19340
|
+
quantity_min: number;
|
|
19341
|
+
unit: string;
|
|
19342
|
+
updated_at: string;
|
|
19343
|
+
};
|
|
19344
|
+
SetofOptions: {
|
|
19345
|
+
from: "*";
|
|
19346
|
+
to: "van_inventories";
|
|
19347
|
+
isOneToOne: true;
|
|
19348
|
+
isSetofReturn: false;
|
|
19349
|
+
};
|
|
19350
|
+
};
|
|
18827
19351
|
control_get_todays_carts: {
|
|
18828
19352
|
Args: never;
|
|
18829
19353
|
Returns: {
|
|
@@ -18897,6 +19421,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
18897
19421
|
_user_id: string;
|
|
18898
19422
|
};
|
|
18899
19423
|
Returns: string;
|
|
19424
|
+
} | {
|
|
19425
|
+
Args: {
|
|
19426
|
+
_feature_id?: string;
|
|
19427
|
+
_module_id: string;
|
|
19428
|
+
_user_id: string;
|
|
19429
|
+
};
|
|
19430
|
+
Returns: string;
|
|
18900
19431
|
};
|
|
18901
19432
|
email_auth_decrypt: {
|
|
18902
19433
|
Args: {
|
|
@@ -19248,12 +19779,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
19248
19779
|
Args: never;
|
|
19249
19780
|
Returns: string;
|
|
19250
19781
|
};
|
|
19251
|
-
get_work_order_tenant_id: {
|
|
19252
|
-
Args: {
|
|
19253
|
-
wo_id: string;
|
|
19254
|
-
};
|
|
19255
|
-
Returns: string;
|
|
19256
|
-
};
|
|
19257
19782
|
has_module_permission: {
|
|
19258
19783
|
Args: {
|
|
19259
19784
|
_min: string;
|
|
@@ -19287,6 +19812,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
19287
19812
|
};
|
|
19288
19813
|
Returns: boolean;
|
|
19289
19814
|
};
|
|
19815
|
+
is_time_log_week_locked: {
|
|
19816
|
+
Args: {
|
|
19817
|
+
p_employee_id: string;
|
|
19818
|
+
p_start_time: string;
|
|
19819
|
+
};
|
|
19820
|
+
Returns: boolean;
|
|
19821
|
+
};
|
|
19290
19822
|
is_user_admin: {
|
|
19291
19823
|
Args: never;
|
|
19292
19824
|
Returns: boolean;
|
|
@@ -19301,13 +19833,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
19301
19833
|
};
|
|
19302
19834
|
Returns: boolean;
|
|
19303
19835
|
};
|
|
19304
|
-
|
|
19836
|
+
list_medewerkers: {
|
|
19305
19837
|
Args: never;
|
|
19306
19838
|
Returns: {
|
|
19307
19839
|
avatar_url: string;
|
|
19308
19840
|
display_name: string;
|
|
19309
19841
|
email: string;
|
|
19310
19842
|
id: string;
|
|
19843
|
+
roles: string[];
|
|
19311
19844
|
}[];
|
|
19312
19845
|
};
|
|
19313
19846
|
list_my_planning_items: {
|
|
@@ -20098,6 +20631,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
20098
20631
|
my_module_permissions: {
|
|
20099
20632
|
Args: never;
|
|
20100
20633
|
Returns: {
|
|
20634
|
+
feature_id: string;
|
|
20101
20635
|
module_id: string;
|
|
20102
20636
|
permission: string;
|
|
20103
20637
|
}[];
|
|
@@ -20978,6 +21512,16 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
20978
21512
|
};
|
|
20979
21513
|
Returns: string[];
|
|
20980
21514
|
};
|
|
21515
|
+
switch_time_log: {
|
|
21516
|
+
Args: {
|
|
21517
|
+
p_employee_id: string;
|
|
21518
|
+
p_start_lat?: number;
|
|
21519
|
+
p_start_lng?: number;
|
|
21520
|
+
p_type: string;
|
|
21521
|
+
p_work_order_id?: string;
|
|
21522
|
+
};
|
|
21523
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21524
|
+
};
|
|
20981
21525
|
sync_all_layer_stocks: {
|
|
20982
21526
|
Args: never;
|
|
20983
21527
|
Returns: undefined;
|
|
@@ -21028,6 +21572,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
21028
21572
|
};
|
|
21029
21573
|
Returns: boolean;
|
|
21030
21574
|
};
|
|
21575
|
+
twinfield_cron_lock_acquire: {
|
|
21576
|
+
Args: {
|
|
21577
|
+
_job_name: string;
|
|
21578
|
+
_stale_seconds?: number;
|
|
21579
|
+
};
|
|
21580
|
+
Returns: boolean;
|
|
21581
|
+
};
|
|
21582
|
+
twinfield_cron_lock_release: {
|
|
21583
|
+
Args: {
|
|
21584
|
+
_error?: string;
|
|
21585
|
+
_job_name: string;
|
|
21586
|
+
};
|
|
21587
|
+
Returns: undefined;
|
|
21588
|
+
};
|
|
21589
|
+
twinfield_prune_push_queue: {
|
|
21590
|
+
Args: never;
|
|
21591
|
+
Returns: number;
|
|
21592
|
+
};
|
|
21031
21593
|
twinfield_register_cron: {
|
|
21032
21594
|
Args: {
|
|
21033
21595
|
apikey?: string;
|
|
@@ -21963,6 +22525,126 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
21963
22525
|
};
|
|
21964
22526
|
Relationships: [];
|
|
21965
22527
|
};
|
|
22528
|
+
cao_holidays: {
|
|
22529
|
+
Row: {
|
|
22530
|
+
created_at: string;
|
|
22531
|
+
description: string | null;
|
|
22532
|
+
holiday_date: string;
|
|
22533
|
+
id: string;
|
|
22534
|
+
updated_at: string;
|
|
22535
|
+
};
|
|
22536
|
+
Insert: {
|
|
22537
|
+
created_at?: string;
|
|
22538
|
+
description?: string | null;
|
|
22539
|
+
holiday_date: string;
|
|
22540
|
+
id?: string;
|
|
22541
|
+
updated_at?: string;
|
|
22542
|
+
};
|
|
22543
|
+
Update: {
|
|
22544
|
+
created_at?: string;
|
|
22545
|
+
description?: string | null;
|
|
22546
|
+
holiday_date?: string;
|
|
22547
|
+
id?: string;
|
|
22548
|
+
updated_at?: string;
|
|
22549
|
+
};
|
|
22550
|
+
Relationships: [];
|
|
22551
|
+
};
|
|
22552
|
+
cao_settings: {
|
|
22553
|
+
Row: {
|
|
22554
|
+
auto_break_after_hours: number;
|
|
22555
|
+
auto_break_minutes: number;
|
|
22556
|
+
auto_break_unpaid: boolean;
|
|
22557
|
+
auto_stop_after_hours: number;
|
|
22558
|
+
callout_fee: number;
|
|
22559
|
+
created_at: string;
|
|
22560
|
+
daily_regular_hours: number;
|
|
22561
|
+
default_hourly_rate: number;
|
|
22562
|
+
id: string;
|
|
22563
|
+
materials_markup_percent: number;
|
|
22564
|
+
max_daily_hours: number;
|
|
22565
|
+
max_weekly_hours: number;
|
|
22566
|
+
meal_allowance_amount: number;
|
|
22567
|
+
overtime_pct_178: number;
|
|
22568
|
+
overtime_pct_189: number;
|
|
22569
|
+
overtime_pct_212: number;
|
|
22570
|
+
reminder_after_hours: number;
|
|
22571
|
+
standby_evening_amount: number;
|
|
22572
|
+
standby_weekend_amount: number;
|
|
22573
|
+
travel_cost_per_km: number | null;
|
|
22574
|
+
travel_cost_threshold_km: number | null;
|
|
22575
|
+
travel_counts_as_work: boolean;
|
|
22576
|
+
travel_hourly_rate: number;
|
|
22577
|
+
travel_rate_per_hour: number;
|
|
22578
|
+
travel_threshold_minutes: number;
|
|
22579
|
+
updated_at: string;
|
|
22580
|
+
weekend_always_212: boolean;
|
|
22581
|
+
window_end: string;
|
|
22582
|
+
window_start: string;
|
|
22583
|
+
};
|
|
22584
|
+
Insert: {
|
|
22585
|
+
auto_break_after_hours?: number;
|
|
22586
|
+
auto_break_minutes?: number;
|
|
22587
|
+
auto_break_unpaid?: boolean;
|
|
22588
|
+
auto_stop_after_hours?: number;
|
|
22589
|
+
callout_fee?: number;
|
|
22590
|
+
created_at?: string;
|
|
22591
|
+
daily_regular_hours?: number;
|
|
22592
|
+
default_hourly_rate?: number;
|
|
22593
|
+
id?: string;
|
|
22594
|
+
materials_markup_percent?: number;
|
|
22595
|
+
max_daily_hours?: number;
|
|
22596
|
+
max_weekly_hours?: number;
|
|
22597
|
+
meal_allowance_amount?: number;
|
|
22598
|
+
overtime_pct_178?: number;
|
|
22599
|
+
overtime_pct_189?: number;
|
|
22600
|
+
overtime_pct_212?: number;
|
|
22601
|
+
reminder_after_hours?: number;
|
|
22602
|
+
standby_evening_amount?: number;
|
|
22603
|
+
standby_weekend_amount?: number;
|
|
22604
|
+
travel_cost_per_km?: number | null;
|
|
22605
|
+
travel_cost_threshold_km?: number | null;
|
|
22606
|
+
travel_counts_as_work?: boolean;
|
|
22607
|
+
travel_hourly_rate?: number;
|
|
22608
|
+
travel_rate_per_hour?: number;
|
|
22609
|
+
travel_threshold_minutes?: number;
|
|
22610
|
+
updated_at?: string;
|
|
22611
|
+
weekend_always_212?: boolean;
|
|
22612
|
+
window_end?: string;
|
|
22613
|
+
window_start?: string;
|
|
22614
|
+
};
|
|
22615
|
+
Update: {
|
|
22616
|
+
auto_break_after_hours?: number;
|
|
22617
|
+
auto_break_minutes?: number;
|
|
22618
|
+
auto_break_unpaid?: boolean;
|
|
22619
|
+
auto_stop_after_hours?: number;
|
|
22620
|
+
callout_fee?: number;
|
|
22621
|
+
created_at?: string;
|
|
22622
|
+
daily_regular_hours?: number;
|
|
22623
|
+
default_hourly_rate?: number;
|
|
22624
|
+
id?: string;
|
|
22625
|
+
materials_markup_percent?: number;
|
|
22626
|
+
max_daily_hours?: number;
|
|
22627
|
+
max_weekly_hours?: number;
|
|
22628
|
+
meal_allowance_amount?: number;
|
|
22629
|
+
overtime_pct_178?: number;
|
|
22630
|
+
overtime_pct_189?: number;
|
|
22631
|
+
overtime_pct_212?: number;
|
|
22632
|
+
reminder_after_hours?: number;
|
|
22633
|
+
standby_evening_amount?: number;
|
|
22634
|
+
standby_weekend_amount?: number;
|
|
22635
|
+
travel_cost_per_km?: number | null;
|
|
22636
|
+
travel_cost_threshold_km?: number | null;
|
|
22637
|
+
travel_counts_as_work?: boolean;
|
|
22638
|
+
travel_hourly_rate?: number;
|
|
22639
|
+
travel_rate_per_hour?: number;
|
|
22640
|
+
travel_threshold_minutes?: number;
|
|
22641
|
+
updated_at?: string;
|
|
22642
|
+
weekend_always_212?: boolean;
|
|
22643
|
+
window_end?: string;
|
|
22644
|
+
window_start?: string;
|
|
22645
|
+
};
|
|
22646
|
+
Relationships: [];
|
|
22647
|
+
};
|
|
21966
22648
|
carrier_shipping_rates: {
|
|
21967
22649
|
Row: {
|
|
21968
22650
|
carrier_id: string;
|
|
@@ -28857,7 +29539,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
28857
29539
|
start_date: string;
|
|
28858
29540
|
start_time: string | null;
|
|
28859
29541
|
status: string;
|
|
28860
|
-
tenant_id: string;
|
|
28861
29542
|
updated_at: string;
|
|
28862
29543
|
user_id: string;
|
|
28863
29544
|
};
|
|
@@ -28875,7 +29556,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
28875
29556
|
start_date: string;
|
|
28876
29557
|
start_time?: string | null;
|
|
28877
29558
|
status?: string;
|
|
28878
|
-
tenant_id?: string;
|
|
28879
29559
|
updated_at?: string;
|
|
28880
29560
|
user_id: string;
|
|
28881
29561
|
};
|
|
@@ -28893,7 +29573,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
28893
29573
|
start_date?: string;
|
|
28894
29574
|
start_time?: string | null;
|
|
28895
29575
|
status?: string;
|
|
28896
|
-
tenant_id?: string;
|
|
28897
29576
|
updated_at?: string;
|
|
28898
29577
|
user_id?: string;
|
|
28899
29578
|
};
|
|
@@ -28901,13 +29580,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
28901
29580
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
28902
29581
|
columns: ["monteur_id"];
|
|
28903
29582
|
isOneToOne: false;
|
|
28904
|
-
referencedRelation: "
|
|
29583
|
+
referencedRelation: "profiles";
|
|
28905
29584
|
referencedColumns: ["id"];
|
|
28906
29585
|
}, {
|
|
28907
29586
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
28908
29587
|
columns: ["user_id"];
|
|
28909
29588
|
isOneToOne: false;
|
|
28910
|
-
referencedRelation: "
|
|
29589
|
+
referencedRelation: "profiles";
|
|
28911
29590
|
referencedColumns: ["id"];
|
|
28912
29591
|
}];
|
|
28913
29592
|
};
|
|
@@ -31062,6 +31741,90 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
31062
31741
|
};
|
|
31063
31742
|
Relationships: [];
|
|
31064
31743
|
};
|
|
31744
|
+
material_usage: {
|
|
31745
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
31768
|
+
created_at?: string;
|
|
31769
|
+
id?: string;
|
|
31770
|
+
material_name?: string;
|
|
31771
|
+
monteur_id?: string | null;
|
|
31772
|
+
price_at_time?: number;
|
|
31773
|
+
quantity_used?: number;
|
|
31774
|
+
updated_at?: string;
|
|
31775
|
+
van_inventory_id?: string | null;
|
|
31776
|
+
work_order_id?: string;
|
|
31777
|
+
};
|
|
31778
|
+
Relationships: [{
|
|
31779
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
31780
|
+
columns: ["monteur_id"];
|
|
31781
|
+
isOneToOne: false;
|
|
31782
|
+
referencedRelation: "profiles";
|
|
31783
|
+
referencedColumns: ["id"];
|
|
31784
|
+
}, {
|
|
31785
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
31786
|
+
columns: ["van_inventory_id"];
|
|
31787
|
+
isOneToOne: false;
|
|
31788
|
+
referencedRelation: "van_inventories";
|
|
31789
|
+
referencedColumns: ["id"];
|
|
31790
|
+
}, {
|
|
31791
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
31792
|
+
columns: ["work_order_id"];
|
|
31793
|
+
isOneToOne: false;
|
|
31794
|
+
referencedRelation: "work_orders";
|
|
31795
|
+
referencedColumns: ["id"];
|
|
31796
|
+
}];
|
|
31797
|
+
};
|
|
31798
|
+
module_features: {
|
|
31799
|
+
Row: {
|
|
31800
|
+
created_at: string;
|
|
31801
|
+
feature_id: string;
|
|
31802
|
+
id: string;
|
|
31803
|
+
is_active: boolean;
|
|
31804
|
+
last_seen_at: string;
|
|
31805
|
+
module_id: string;
|
|
31806
|
+
name: string;
|
|
31807
|
+
};
|
|
31808
|
+
Insert: {
|
|
31809
|
+
created_at?: string;
|
|
31810
|
+
feature_id: string;
|
|
31811
|
+
id?: string;
|
|
31812
|
+
is_active?: boolean;
|
|
31813
|
+
last_seen_at?: string;
|
|
31814
|
+
module_id: string;
|
|
31815
|
+
name: string;
|
|
31816
|
+
};
|
|
31817
|
+
Update: {
|
|
31818
|
+
created_at?: string;
|
|
31819
|
+
feature_id?: string;
|
|
31820
|
+
id?: string;
|
|
31821
|
+
is_active?: boolean;
|
|
31822
|
+
last_seen_at?: string;
|
|
31823
|
+
module_id?: string;
|
|
31824
|
+
name?: string;
|
|
31825
|
+
};
|
|
31826
|
+
Relationships: [];
|
|
31827
|
+
};
|
|
31065
31828
|
module_permissions: {
|
|
31066
31829
|
Row: {
|
|
31067
31830
|
created_at: string;
|
|
@@ -31170,63 +31933,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
31170
31933
|
};
|
|
31171
31934
|
Relationships: [];
|
|
31172
31935
|
};
|
|
31173
|
-
monteurs: {
|
|
31174
|
-
Row: {
|
|
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
|
-
Insert: {
|
|
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
|
-
Update: {
|
|
31207
|
-
avatar_url?: string | null;
|
|
31208
|
-
color?: string | null;
|
|
31209
|
-
created_at?: string;
|
|
31210
|
-
email?: string | null;
|
|
31211
|
-
id?: string;
|
|
31212
|
-
is_active?: boolean;
|
|
31213
|
-
leave_balance_hours?: number;
|
|
31214
|
-
name?: string;
|
|
31215
|
-
persnr?: number | null;
|
|
31216
|
-
phone?: string | null;
|
|
31217
|
-
role?: string;
|
|
31218
|
-
tenant_id?: string;
|
|
31219
|
-
updated_at?: string;
|
|
31220
|
-
user_id?: string | null;
|
|
31221
|
-
};
|
|
31222
|
-
Relationships: [{
|
|
31223
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
31224
|
-
columns: ["tenant_id"];
|
|
31225
|
-
isOneToOne: false;
|
|
31226
|
-
referencedRelation: "tenants";
|
|
31227
|
-
referencedColumns: ["id"];
|
|
31228
|
-
}];
|
|
31229
|
-
};
|
|
31230
31936
|
nmbrs_component_mapping: {
|
|
31231
31937
|
Row: {
|
|
31232
31938
|
created_at: string;
|
|
@@ -31297,13 +32003,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
31297
32003
|
nmbrs_employee_number?: string;
|
|
31298
32004
|
updated_at?: string;
|
|
31299
32005
|
};
|
|
31300
|
-
Relationships: [
|
|
31301
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
31302
|
-
columns: ["monteur_id"];
|
|
31303
|
-
isOneToOne: true;
|
|
31304
|
-
referencedRelation: "monteurs";
|
|
31305
|
-
referencedColumns: ["id"];
|
|
31306
|
-
}];
|
|
32006
|
+
Relationships: [];
|
|
31307
32007
|
};
|
|
31308
32008
|
nmbrs_export_lines: {
|
|
31309
32009
|
Row: {
|
|
@@ -31352,12 +32052,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
31352
32052
|
wage_code?: string;
|
|
31353
32053
|
};
|
|
31354
32054
|
Relationships: [{
|
|
31355
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
31356
|
-
columns: ["monteur_id"];
|
|
31357
|
-
isOneToOne: false;
|
|
31358
|
-
referencedRelation: "monteurs";
|
|
31359
|
-
referencedColumns: ["id"];
|
|
31360
|
-
}, {
|
|
31361
32055
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
31362
32056
|
columns: ["run_id"];
|
|
31363
32057
|
isOneToOne: false;
|
|
@@ -33748,6 +34442,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
33748
34442
|
created_at: string;
|
|
33749
34443
|
id: string;
|
|
33750
34444
|
laatst_gezien: string;
|
|
34445
|
+
laatste_fout: string | null;
|
|
34446
|
+
laatste_request_id: number | null;
|
|
34447
|
+
mislukte_posts: number;
|
|
33751
34448
|
tick_sleutel: string;
|
|
33752
34449
|
updated_at: string;
|
|
33753
34450
|
};
|
|
@@ -33757,6 +34454,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
33757
34454
|
created_at?: string;
|
|
33758
34455
|
id?: string;
|
|
33759
34456
|
laatst_gezien?: string;
|
|
34457
|
+
laatste_fout?: string | null;
|
|
34458
|
+
laatste_request_id?: number | null;
|
|
34459
|
+
mislukte_posts?: number;
|
|
33760
34460
|
tick_sleutel?: string;
|
|
33761
34461
|
updated_at?: string;
|
|
33762
34462
|
};
|
|
@@ -33766,6 +34466,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
33766
34466
|
created_at?: string;
|
|
33767
34467
|
id?: string;
|
|
33768
34468
|
laatst_gezien?: string;
|
|
34469
|
+
laatste_fout?: string | null;
|
|
34470
|
+
laatste_request_id?: number | null;
|
|
34471
|
+
mislukte_posts?: number;
|
|
33769
34472
|
tick_sleutel?: string;
|
|
33770
34473
|
updated_at?: string;
|
|
33771
34474
|
};
|
|
@@ -35274,6 +35977,96 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
35274
35977
|
referencedColumns: ["id"];
|
|
35275
35978
|
}];
|
|
35276
35979
|
};
|
|
35980
|
+
role_assignments: {
|
|
35981
|
+
Row: {
|
|
35982
|
+
created_at: string;
|
|
35983
|
+
id: string;
|
|
35984
|
+
role_id: string;
|
|
35985
|
+
user_id: string;
|
|
35986
|
+
};
|
|
35987
|
+
Insert: {
|
|
35988
|
+
created_at?: string;
|
|
35989
|
+
id?: string;
|
|
35990
|
+
role_id: string;
|
|
35991
|
+
user_id: string;
|
|
35992
|
+
};
|
|
35993
|
+
Update: {
|
|
35994
|
+
created_at?: string;
|
|
35995
|
+
id?: string;
|
|
35996
|
+
role_id?: string;
|
|
35997
|
+
user_id?: string;
|
|
35998
|
+
};
|
|
35999
|
+
Relationships: [{
|
|
36000
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
36001
|
+
columns: ["role_id"];
|
|
36002
|
+
isOneToOne: false;
|
|
36003
|
+
referencedRelation: "roles";
|
|
36004
|
+
referencedColumns: ["id"];
|
|
36005
|
+
}];
|
|
36006
|
+
};
|
|
36007
|
+
role_permissions: {
|
|
36008
|
+
Row: {
|
|
36009
|
+
can_edit: boolean;
|
|
36010
|
+
can_view: boolean;
|
|
36011
|
+
feature_id: string;
|
|
36012
|
+
id: string;
|
|
36013
|
+
module_id: string;
|
|
36014
|
+
role_id: string;
|
|
36015
|
+
updated_at: string;
|
|
36016
|
+
};
|
|
36017
|
+
Insert: {
|
|
36018
|
+
can_edit?: boolean;
|
|
36019
|
+
can_view?: boolean;
|
|
36020
|
+
feature_id?: string;
|
|
36021
|
+
id?: string;
|
|
36022
|
+
module_id: string;
|
|
36023
|
+
role_id: string;
|
|
36024
|
+
updated_at?: string;
|
|
36025
|
+
};
|
|
36026
|
+
Update: {
|
|
36027
|
+
can_edit?: boolean;
|
|
36028
|
+
can_view?: boolean;
|
|
36029
|
+
feature_id?: string;
|
|
36030
|
+
id?: string;
|
|
36031
|
+
module_id?: string;
|
|
36032
|
+
role_id?: string;
|
|
36033
|
+
updated_at?: string;
|
|
36034
|
+
};
|
|
36035
|
+
Relationships: [{
|
|
36036
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
36037
|
+
columns: ["role_id"];
|
|
36038
|
+
isOneToOne: false;
|
|
36039
|
+
referencedRelation: "roles";
|
|
36040
|
+
referencedColumns: ["id"];
|
|
36041
|
+
}];
|
|
36042
|
+
};
|
|
36043
|
+
roles: {
|
|
36044
|
+
Row: {
|
|
36045
|
+
created_at: string;
|
|
36046
|
+
id: string;
|
|
36047
|
+
is_protected: boolean;
|
|
36048
|
+
key: string;
|
|
36049
|
+
name: string;
|
|
36050
|
+
updated_at: string;
|
|
36051
|
+
};
|
|
36052
|
+
Insert: {
|
|
36053
|
+
created_at?: string;
|
|
36054
|
+
id?: string;
|
|
36055
|
+
is_protected?: boolean;
|
|
36056
|
+
key: string;
|
|
36057
|
+
name: string;
|
|
36058
|
+
updated_at?: string;
|
|
36059
|
+
};
|
|
36060
|
+
Update: {
|
|
36061
|
+
created_at?: string;
|
|
36062
|
+
id?: string;
|
|
36063
|
+
is_protected?: boolean;
|
|
36064
|
+
key?: string;
|
|
36065
|
+
name?: string;
|
|
36066
|
+
updated_at?: string;
|
|
36067
|
+
};
|
|
36068
|
+
Relationships: [];
|
|
36069
|
+
};
|
|
35277
36070
|
rooms: {
|
|
35278
36071
|
Row: {
|
|
35279
36072
|
capacity: number;
|
|
@@ -35943,6 +36736,54 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
35943
36736
|
};
|
|
35944
36737
|
Relationships: [];
|
|
35945
36738
|
};
|
|
36739
|
+
time_compensation_entries: {
|
|
36740
|
+
Row: {
|
|
36741
|
+
created_at: string;
|
|
36742
|
+
employee_id: string;
|
|
36743
|
+
entry_date: string;
|
|
36744
|
+
id: string;
|
|
36745
|
+
km: number;
|
|
36746
|
+
meal_allowance: number;
|
|
36747
|
+
notes: string | null;
|
|
36748
|
+
standby_evening: number;
|
|
36749
|
+
standby_weekend: number;
|
|
36750
|
+
tvt_change: number;
|
|
36751
|
+
updated_at: string;
|
|
36752
|
+
};
|
|
36753
|
+
Insert: {
|
|
36754
|
+
created_at?: string;
|
|
36755
|
+
employee_id: string;
|
|
36756
|
+
entry_date: string;
|
|
36757
|
+
id?: string;
|
|
36758
|
+
km?: number;
|
|
36759
|
+
meal_allowance?: number;
|
|
36760
|
+
notes?: string | null;
|
|
36761
|
+
standby_evening?: number;
|
|
36762
|
+
standby_weekend?: number;
|
|
36763
|
+
tvt_change?: number;
|
|
36764
|
+
updated_at?: string;
|
|
36765
|
+
};
|
|
36766
|
+
Update: {
|
|
36767
|
+
created_at?: string;
|
|
36768
|
+
employee_id?: string;
|
|
36769
|
+
entry_date?: string;
|
|
36770
|
+
id?: string;
|
|
36771
|
+
km?: number;
|
|
36772
|
+
meal_allowance?: number;
|
|
36773
|
+
notes?: string | null;
|
|
36774
|
+
standby_evening?: number;
|
|
36775
|
+
standby_weekend?: number;
|
|
36776
|
+
tvt_change?: number;
|
|
36777
|
+
updated_at?: string;
|
|
36778
|
+
};
|
|
36779
|
+
Relationships: [{
|
|
36780
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
36781
|
+
columns: ["employee_id"];
|
|
36782
|
+
isOneToOne: false;
|
|
36783
|
+
referencedRelation: "profiles";
|
|
36784
|
+
referencedColumns: ["id"];
|
|
36785
|
+
}];
|
|
36786
|
+
};
|
|
35946
36787
|
time_entries: {
|
|
35947
36788
|
Row: {
|
|
35948
36789
|
created_at: string;
|
|
@@ -35977,65 +36818,170 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
35977
36818
|
undertime?: number;
|
|
35978
36819
|
updated_at?: string;
|
|
35979
36820
|
};
|
|
36821
|
+
Relationships: [];
|
|
36822
|
+
};
|
|
36823
|
+
time_log_week_approvals: {
|
|
36824
|
+
Row: {
|
|
36825
|
+
approved_at: string | null;
|
|
36826
|
+
approved_by: string | null;
|
|
36827
|
+
created_at: string;
|
|
36828
|
+
employee_id: string;
|
|
36829
|
+
id: string;
|
|
36830
|
+
locked: boolean;
|
|
36831
|
+
notes: string | null;
|
|
36832
|
+
status: string;
|
|
36833
|
+
submitted_at: string | null;
|
|
36834
|
+
updated_at: string;
|
|
36835
|
+
week_start: string;
|
|
36836
|
+
};
|
|
36837
|
+
Insert: {
|
|
36838
|
+
approved_at?: string | null;
|
|
36839
|
+
approved_by?: string | null;
|
|
36840
|
+
created_at?: string;
|
|
36841
|
+
employee_id: string;
|
|
36842
|
+
id?: string;
|
|
36843
|
+
locked?: boolean;
|
|
36844
|
+
notes?: string | null;
|
|
36845
|
+
status?: string;
|
|
36846
|
+
submitted_at?: string | null;
|
|
36847
|
+
updated_at?: string;
|
|
36848
|
+
week_start: string;
|
|
36849
|
+
};
|
|
36850
|
+
Update: {
|
|
36851
|
+
approved_at?: string | null;
|
|
36852
|
+
approved_by?: string | null;
|
|
36853
|
+
created_at?: string;
|
|
36854
|
+
employee_id?: string;
|
|
36855
|
+
id?: string;
|
|
36856
|
+
locked?: boolean;
|
|
36857
|
+
notes?: string | null;
|
|
36858
|
+
status?: string;
|
|
36859
|
+
submitted_at?: string | null;
|
|
36860
|
+
updated_at?: string;
|
|
36861
|
+
week_start?: string;
|
|
36862
|
+
};
|
|
35980
36863
|
Relationships: [{
|
|
35981
|
-
foreignKeyName: "
|
|
36864
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
35982
36865
|
columns: ["employee_id"];
|
|
35983
36866
|
isOneToOne: false;
|
|
35984
|
-
referencedRelation: "
|
|
36867
|
+
referencedRelation: "profiles";
|
|
35985
36868
|
referencedColumns: ["id"];
|
|
35986
36869
|
}];
|
|
35987
36870
|
};
|
|
35988
36871
|
time_logs: {
|
|
35989
36872
|
Row: {
|
|
36873
|
+
auto_stop_reason: string | null;
|
|
36874
|
+
auto_stopped: boolean;
|
|
35990
36875
|
created_at: string;
|
|
36876
|
+
current_latitude: number | null;
|
|
36877
|
+
current_longitude: number | null;
|
|
36878
|
+
current_position_updated_at: string | null;
|
|
35991
36879
|
employee_id: string;
|
|
36880
|
+
end_latitude: number | null;
|
|
36881
|
+
end_longitude: number | null;
|
|
35992
36882
|
end_time: string | null;
|
|
36883
|
+
eta_distance_km: number | null;
|
|
36884
|
+
eta_minutes: number | null;
|
|
36885
|
+
eta_updated_at: string | null;
|
|
36886
|
+
hour_category: string | null;
|
|
35993
36887
|
id: string;
|
|
36888
|
+
last_reminder_at: string | null;
|
|
35994
36889
|
notes: string | null;
|
|
35995
36890
|
overtime_hours: number;
|
|
35996
36891
|
overtime_type: string | null;
|
|
35997
36892
|
regular_hours: number;
|
|
36893
|
+
reminder_count: number;
|
|
36894
|
+
requires_review: boolean;
|
|
36895
|
+
start_latitude: number | null;
|
|
36896
|
+
start_longitude: number | null;
|
|
35998
36897
|
start_time: string;
|
|
35999
36898
|
travel_cost: number | null;
|
|
36000
36899
|
travel_distance_km: number | null;
|
|
36900
|
+
travel_duration_min: number | null;
|
|
36901
|
+
travel_time_minutes: number | null;
|
|
36001
36902
|
type: string;
|
|
36002
36903
|
updated_at: string;
|
|
36904
|
+
work_order_id: string | null;
|
|
36003
36905
|
};
|
|
36004
36906
|
Insert: {
|
|
36907
|
+
auto_stop_reason?: string | null;
|
|
36908
|
+
auto_stopped?: boolean;
|
|
36005
36909
|
created_at?: string;
|
|
36910
|
+
current_latitude?: number | null;
|
|
36911
|
+
current_longitude?: number | null;
|
|
36912
|
+
current_position_updated_at?: string | null;
|
|
36006
36913
|
employee_id: string;
|
|
36914
|
+
end_latitude?: number | null;
|
|
36915
|
+
end_longitude?: number | null;
|
|
36007
36916
|
end_time?: string | null;
|
|
36917
|
+
eta_distance_km?: number | null;
|
|
36918
|
+
eta_minutes?: number | null;
|
|
36919
|
+
eta_updated_at?: string | null;
|
|
36920
|
+
hour_category?: string | null;
|
|
36008
36921
|
id?: string;
|
|
36922
|
+
last_reminder_at?: string | null;
|
|
36009
36923
|
notes?: string | null;
|
|
36010
36924
|
overtime_hours?: number;
|
|
36011
36925
|
overtime_type?: string | null;
|
|
36012
36926
|
regular_hours?: number;
|
|
36927
|
+
reminder_count?: number;
|
|
36928
|
+
requires_review?: boolean;
|
|
36929
|
+
start_latitude?: number | null;
|
|
36930
|
+
start_longitude?: number | null;
|
|
36013
36931
|
start_time?: string;
|
|
36014
36932
|
travel_cost?: number | null;
|
|
36015
36933
|
travel_distance_km?: number | null;
|
|
36934
|
+
travel_duration_min?: number | null;
|
|
36935
|
+
travel_time_minutes?: number | null;
|
|
36016
36936
|
type: string;
|
|
36017
36937
|
updated_at?: string;
|
|
36938
|
+
work_order_id?: string | null;
|
|
36018
36939
|
};
|
|
36019
36940
|
Update: {
|
|
36941
|
+
auto_stop_reason?: string | null;
|
|
36942
|
+
auto_stopped?: boolean;
|
|
36020
36943
|
created_at?: string;
|
|
36944
|
+
current_latitude?: number | null;
|
|
36945
|
+
current_longitude?: number | null;
|
|
36946
|
+
current_position_updated_at?: string | null;
|
|
36021
36947
|
employee_id?: string;
|
|
36948
|
+
end_latitude?: number | null;
|
|
36949
|
+
end_longitude?: number | null;
|
|
36022
36950
|
end_time?: string | null;
|
|
36951
|
+
eta_distance_km?: number | null;
|
|
36952
|
+
eta_minutes?: number | null;
|
|
36953
|
+
eta_updated_at?: string | null;
|
|
36954
|
+
hour_category?: string | null;
|
|
36023
36955
|
id?: string;
|
|
36956
|
+
last_reminder_at?: string | null;
|
|
36024
36957
|
notes?: string | null;
|
|
36025
36958
|
overtime_hours?: number;
|
|
36026
36959
|
overtime_type?: string | null;
|
|
36027
36960
|
regular_hours?: number;
|
|
36961
|
+
reminder_count?: number;
|
|
36962
|
+
requires_review?: boolean;
|
|
36963
|
+
start_latitude?: number | null;
|
|
36964
|
+
start_longitude?: number | null;
|
|
36028
36965
|
start_time?: string;
|
|
36029
36966
|
travel_cost?: number | null;
|
|
36030
36967
|
travel_distance_km?: number | null;
|
|
36968
|
+
travel_duration_min?: number | null;
|
|
36969
|
+
travel_time_minutes?: number | null;
|
|
36031
36970
|
type?: string;
|
|
36032
36971
|
updated_at?: string;
|
|
36972
|
+
work_order_id?: string | null;
|
|
36033
36973
|
};
|
|
36034
36974
|
Relationships: [{
|
|
36035
36975
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
36036
36976
|
columns: ["employee_id"];
|
|
36037
36977
|
isOneToOne: false;
|
|
36038
|
-
referencedRelation: "
|
|
36978
|
+
referencedRelation: "profiles";
|
|
36979
|
+
referencedColumns: ["id"];
|
|
36980
|
+
}, {
|
|
36981
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
36982
|
+
columns: ["work_order_id"];
|
|
36983
|
+
isOneToOne: false;
|
|
36984
|
+
referencedRelation: "work_orders";
|
|
36039
36985
|
referencedColumns: ["id"];
|
|
36040
36986
|
}];
|
|
36041
36987
|
};
|
|
@@ -36074,7 +37020,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
36074
37020
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
36075
37021
|
columns: ["employee_id"];
|
|
36076
37022
|
isOneToOne: false;
|
|
36077
|
-
referencedRelation: "
|
|
37023
|
+
referencedRelation: "profiles";
|
|
36078
37024
|
referencedColumns: ["id"];
|
|
36079
37025
|
}];
|
|
36080
37026
|
};
|
|
@@ -36384,6 +37330,39 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
36384
37330
|
};
|
|
36385
37331
|
Relationships: [];
|
|
36386
37332
|
};
|
|
37333
|
+
twinfield_cron_locks: {
|
|
37334
|
+
Row: {
|
|
37335
|
+
created_at: string;
|
|
37336
|
+
heartbeat_at: string;
|
|
37337
|
+
job_name: string;
|
|
37338
|
+
last_error: string | null;
|
|
37339
|
+
last_finished_at: string | null;
|
|
37340
|
+
locked_at: string;
|
|
37341
|
+
run_id: string;
|
|
37342
|
+
updated_at: string;
|
|
37343
|
+
};
|
|
37344
|
+
Insert: {
|
|
37345
|
+
created_at?: string;
|
|
37346
|
+
heartbeat_at?: string;
|
|
37347
|
+
job_name: string;
|
|
37348
|
+
last_error?: string | null;
|
|
37349
|
+
last_finished_at?: string | null;
|
|
37350
|
+
locked_at?: string;
|
|
37351
|
+
run_id?: string;
|
|
37352
|
+
updated_at?: string;
|
|
37353
|
+
};
|
|
37354
|
+
Update: {
|
|
37355
|
+
created_at?: string;
|
|
37356
|
+
heartbeat_at?: string;
|
|
37357
|
+
job_name?: string;
|
|
37358
|
+
last_error?: string | null;
|
|
37359
|
+
last_finished_at?: string | null;
|
|
37360
|
+
locked_at?: string;
|
|
37361
|
+
run_id?: string;
|
|
37362
|
+
updated_at?: string;
|
|
37363
|
+
};
|
|
37364
|
+
Relationships: [];
|
|
37365
|
+
};
|
|
36387
37366
|
twinfield_customers: {
|
|
36388
37367
|
Row: {
|
|
36389
37368
|
address: string | null;
|
|
@@ -36984,6 +37963,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
36984
37963
|
twinfield_push_queue: {
|
|
36985
37964
|
Row: {
|
|
36986
37965
|
action: string;
|
|
37966
|
+
attempt_started_at: string | null;
|
|
36987
37967
|
attempts: number;
|
|
36988
37968
|
connection_id: string | null;
|
|
36989
37969
|
created_at: string;
|
|
@@ -37000,6 +37980,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
37000
37980
|
};
|
|
37001
37981
|
Insert: {
|
|
37002
37982
|
action?: string;
|
|
37983
|
+
attempt_started_at?: string | null;
|
|
37003
37984
|
attempts?: number;
|
|
37004
37985
|
connection_id?: string | null;
|
|
37005
37986
|
created_at?: string;
|
|
@@ -37016,6 +37997,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
37016
37997
|
};
|
|
37017
37998
|
Update: {
|
|
37018
37999
|
action?: string;
|
|
38000
|
+
attempt_started_at?: string | null;
|
|
37019
38001
|
attempts?: number;
|
|
37020
38002
|
connection_id?: string | null;
|
|
37021
38003
|
created_at?: string;
|
|
@@ -37213,13 +38195,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
37213
38195
|
workday_end?: string | null;
|
|
37214
38196
|
workday_start?: string | null;
|
|
37215
38197
|
};
|
|
37216
|
-
Relationships: [
|
|
37217
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
37218
|
-
columns: ["monteur_id"];
|
|
37219
|
-
isOneToOne: true;
|
|
37220
|
-
referencedRelation: "monteurs";
|
|
37221
|
-
referencedColumns: ["id"];
|
|
37222
|
-
}];
|
|
38198
|
+
Relationships: [];
|
|
37223
38199
|
};
|
|
37224
38200
|
uren_entries: {
|
|
37225
38201
|
Row: {
|
|
@@ -37265,12 +38241,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
37265
38241
|
werkbon_id?: string | null;
|
|
37266
38242
|
};
|
|
37267
38243
|
Relationships: [{
|
|
37268
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
37269
|
-
columns: ["monteur_id"];
|
|
37270
|
-
isOneToOne: false;
|
|
37271
|
-
referencedRelation: "monteurs";
|
|
37272
|
-
referencedColumns: ["id"];
|
|
37273
|
-
}, {
|
|
37274
38244
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
37275
38245
|
columns: ["werkbon_id"];
|
|
37276
38246
|
isOneToOne: false;
|
|
@@ -37738,17 +38708,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
37738
38708
|
submitted_at?: string | null;
|
|
37739
38709
|
updated_at?: string;
|
|
37740
38710
|
};
|
|
37741
|
-
Relationships: [
|
|
37742
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
37743
|
-
columns: ["monteur_id"];
|
|
37744
|
-
isOneToOne: false;
|
|
37745
|
-
referencedRelation: "monteurs";
|
|
37746
|
-
referencedColumns: ["id"];
|
|
37747
|
-
}];
|
|
38711
|
+
Relationships: [];
|
|
37748
38712
|
};
|
|
37749
38713
|
user_module_permissions: {
|
|
37750
38714
|
Row: {
|
|
37751
38715
|
created_at: string;
|
|
38716
|
+
feature_id: string;
|
|
37752
38717
|
id: string;
|
|
37753
38718
|
module_id: string;
|
|
37754
38719
|
permission: string;
|
|
@@ -37757,6 +38722,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
37757
38722
|
};
|
|
37758
38723
|
Insert: {
|
|
37759
38724
|
created_at?: string;
|
|
38725
|
+
feature_id?: string;
|
|
37760
38726
|
id?: string;
|
|
37761
38727
|
module_id: string;
|
|
37762
38728
|
permission: string;
|
|
@@ -37765,6 +38731,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
37765
38731
|
};
|
|
37766
38732
|
Update: {
|
|
37767
38733
|
created_at?: string;
|
|
38734
|
+
feature_id?: string;
|
|
37768
38735
|
id?: string;
|
|
37769
38736
|
module_id?: string;
|
|
37770
38737
|
permission?: string;
|
|
@@ -37800,6 +38767,51 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
37800
38767
|
referencedColumns: ["id"];
|
|
37801
38768
|
}];
|
|
37802
38769
|
};
|
|
38770
|
+
van_inventories: {
|
|
38771
|
+
Row: {
|
|
38772
|
+
barcode: string | null;
|
|
38773
|
+
created_at: string;
|
|
38774
|
+
id: string;
|
|
38775
|
+
monteur_id: string | null;
|
|
38776
|
+
price_per_unit: number;
|
|
38777
|
+
product_name: string;
|
|
38778
|
+
quantity_current: number;
|
|
38779
|
+
quantity_min: number;
|
|
38780
|
+
unit: string;
|
|
38781
|
+
updated_at: string;
|
|
38782
|
+
};
|
|
38783
|
+
Insert: {
|
|
38784
|
+
barcode?: string | null;
|
|
38785
|
+
created_at?: string;
|
|
38786
|
+
id?: string;
|
|
38787
|
+
monteur_id?: string | null;
|
|
38788
|
+
price_per_unit?: number;
|
|
38789
|
+
product_name: string;
|
|
38790
|
+
quantity_current?: number;
|
|
38791
|
+
quantity_min?: number;
|
|
38792
|
+
unit?: string;
|
|
38793
|
+
updated_at?: string;
|
|
38794
|
+
};
|
|
38795
|
+
Update: {
|
|
38796
|
+
barcode?: string | null;
|
|
38797
|
+
created_at?: string;
|
|
38798
|
+
id?: string;
|
|
38799
|
+
monteur_id?: string | null;
|
|
38800
|
+
price_per_unit?: number;
|
|
38801
|
+
product_name?: string;
|
|
38802
|
+
quantity_current?: number;
|
|
38803
|
+
quantity_min?: number;
|
|
38804
|
+
unit?: string;
|
|
38805
|
+
updated_at?: string;
|
|
38806
|
+
};
|
|
38807
|
+
Relationships: [{
|
|
38808
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
38809
|
+
columns: ["monteur_id"];
|
|
38810
|
+
isOneToOne: false;
|
|
38811
|
+
referencedRelation: "profiles";
|
|
38812
|
+
referencedColumns: ["id"];
|
|
38813
|
+
}];
|
|
38814
|
+
};
|
|
37803
38815
|
voorraad_custom_fields: {
|
|
37804
38816
|
Row: {
|
|
37805
38817
|
created_at: string;
|
|
@@ -38750,7 +39762,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
38750
39762
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
38751
39763
|
columns: ["monteur_id"];
|
|
38752
39764
|
isOneToOne: false;
|
|
38753
|
-
referencedRelation: "
|
|
39765
|
+
referencedRelation: "profiles";
|
|
38754
39766
|
referencedColumns: ["id"];
|
|
38755
39767
|
}, {
|
|
38756
39768
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -38760,6 +39772,60 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
38760
39772
|
referencedColumns: ["id"];
|
|
38761
39773
|
}];
|
|
38762
39774
|
};
|
|
39775
|
+
work_order_photos: {
|
|
39776
|
+
Row: {
|
|
39777
|
+
ai_caption: string | null;
|
|
39778
|
+
ai_categorized_at: string | null;
|
|
39779
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
39780
|
+
caption: string | null;
|
|
39781
|
+
created_at: string;
|
|
39782
|
+
id: string;
|
|
39783
|
+
monteur_id: string | null;
|
|
39784
|
+
photo_type: string;
|
|
39785
|
+
storage_path: string;
|
|
39786
|
+
updated_at: string;
|
|
39787
|
+
work_order_id: string;
|
|
39788
|
+
};
|
|
39789
|
+
Insert: {
|
|
39790
|
+
ai_caption?: string | null;
|
|
39791
|
+
ai_categorized_at?: string | null;
|
|
39792
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
39793
|
+
caption?: string | null;
|
|
39794
|
+
created_at?: string;
|
|
39795
|
+
id?: string;
|
|
39796
|
+
monteur_id?: string | null;
|
|
39797
|
+
photo_type?: string;
|
|
39798
|
+
storage_path: string;
|
|
39799
|
+
updated_at?: string;
|
|
39800
|
+
work_order_id: string;
|
|
39801
|
+
};
|
|
39802
|
+
Update: {
|
|
39803
|
+
ai_caption?: string | null;
|
|
39804
|
+
ai_categorized_at?: string | null;
|
|
39805
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
39806
|
+
caption?: string | null;
|
|
39807
|
+
created_at?: string;
|
|
39808
|
+
id?: string;
|
|
39809
|
+
monteur_id?: string | null;
|
|
39810
|
+
photo_type?: string;
|
|
39811
|
+
storage_path?: string;
|
|
39812
|
+
updated_at?: string;
|
|
39813
|
+
work_order_id?: string;
|
|
39814
|
+
};
|
|
39815
|
+
Relationships: [{
|
|
39816
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
39817
|
+
columns: ["monteur_id"];
|
|
39818
|
+
isOneToOne: false;
|
|
39819
|
+
referencedRelation: "profiles";
|
|
39820
|
+
referencedColumns: ["id"];
|
|
39821
|
+
}, {
|
|
39822
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
39823
|
+
columns: ["work_order_id"];
|
|
39824
|
+
isOneToOne: false;
|
|
39825
|
+
referencedRelation: "work_orders";
|
|
39826
|
+
referencedColumns: ["id"];
|
|
39827
|
+
}];
|
|
39828
|
+
};
|
|
38763
39829
|
work_orders: {
|
|
38764
39830
|
Row: {
|
|
38765
39831
|
assigned_to: string | null;
|
|
@@ -38791,7 +39857,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
38791
39857
|
scheduled_end_time: string | null;
|
|
38792
39858
|
scheduled_start_time: string | null;
|
|
38793
39859
|
status: string;
|
|
38794
|
-
tenant_id: string;
|
|
38795
39860
|
total_hours_worked: number | null;
|
|
38796
39861
|
total_price: number | null;
|
|
38797
39862
|
travel_time_minutes: number | null;
|
|
@@ -38829,7 +39894,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
38829
39894
|
scheduled_end_time?: string | null;
|
|
38830
39895
|
scheduled_start_time?: string | null;
|
|
38831
39896
|
status?: string;
|
|
38832
|
-
tenant_id: string;
|
|
38833
39897
|
total_hours_worked?: number | null;
|
|
38834
39898
|
total_price?: number | null;
|
|
38835
39899
|
travel_time_minutes?: number | null;
|
|
@@ -38867,7 +39931,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
38867
39931
|
scheduled_end_time?: string | null;
|
|
38868
39932
|
scheduled_start_time?: string | null;
|
|
38869
39933
|
status?: string;
|
|
38870
|
-
tenant_id?: string;
|
|
38871
39934
|
total_hours_worked?: number | null;
|
|
38872
39935
|
total_price?: number | null;
|
|
38873
39936
|
travel_time_minutes?: number | null;
|
|
@@ -38881,12 +39944,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
38881
39944
|
isOneToOne: false;
|
|
38882
39945
|
referencedRelation: "work_orders";
|
|
38883
39946
|
referencedColumns: ["id"];
|
|
38884
|
-
}, {
|
|
38885
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
38886
|
-
columns: ["tenant_id"];
|
|
38887
|
-
isOneToOne: false;
|
|
38888
|
-
referencedRelation: "tenants";
|
|
38889
|
-
referencedColumns: ["id"];
|
|
38890
39947
|
}];
|
|
38891
39948
|
};
|
|
38892
39949
|
};
|
|
@@ -39622,6 +40679,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
39622
40679
|
};
|
|
39623
40680
|
Returns: number;
|
|
39624
40681
|
};
|
|
40682
|
+
can_manage_hours: {
|
|
40683
|
+
Args: never;
|
|
40684
|
+
Returns: boolean;
|
|
40685
|
+
};
|
|
39625
40686
|
check_offer_product_available_stock: {
|
|
39626
40687
|
Args: {
|
|
39627
40688
|
p_campaign_product_id: string;
|
|
@@ -39811,6 +40872,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
39811
40872
|
};
|
|
39812
40873
|
Returns: {
|
|
39813
40874
|
action: string;
|
|
40875
|
+
attempt_started_at: string | null;
|
|
39814
40876
|
attempts: number;
|
|
39815
40877
|
connection_id: string | null;
|
|
39816
40878
|
created_at: string;
|
|
@@ -39898,6 +40960,30 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
39898
40960
|
agent_naam: string;
|
|
39899
40961
|
}[];
|
|
39900
40962
|
};
|
|
40963
|
+
consume_van_inventory: {
|
|
40964
|
+
Args: {
|
|
40965
|
+
p_inventory_id: string;
|
|
40966
|
+
p_quantity: number;
|
|
40967
|
+
};
|
|
40968
|
+
Returns: {
|
|
40969
|
+
barcode: string | null;
|
|
40970
|
+
created_at: string;
|
|
40971
|
+
id: string;
|
|
40972
|
+
monteur_id: string | null;
|
|
40973
|
+
price_per_unit: number;
|
|
40974
|
+
product_name: string;
|
|
40975
|
+
quantity_current: number;
|
|
40976
|
+
quantity_min: number;
|
|
40977
|
+
unit: string;
|
|
40978
|
+
updated_at: string;
|
|
40979
|
+
};
|
|
40980
|
+
SetofOptions: {
|
|
40981
|
+
from: "*";
|
|
40982
|
+
to: "van_inventories";
|
|
40983
|
+
isOneToOne: true;
|
|
40984
|
+
isSetofReturn: false;
|
|
40985
|
+
};
|
|
40986
|
+
};
|
|
39901
40987
|
control_get_todays_carts: {
|
|
39902
40988
|
Args: never;
|
|
39903
40989
|
Returns: {
|
|
@@ -39971,6 +41057,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
39971
41057
|
_user_id: string;
|
|
39972
41058
|
};
|
|
39973
41059
|
Returns: string;
|
|
41060
|
+
} | {
|
|
41061
|
+
Args: {
|
|
41062
|
+
_feature_id?: string;
|
|
41063
|
+
_module_id: string;
|
|
41064
|
+
_user_id: string;
|
|
41065
|
+
};
|
|
41066
|
+
Returns: string;
|
|
39974
41067
|
};
|
|
39975
41068
|
email_auth_decrypt: {
|
|
39976
41069
|
Args: {
|
|
@@ -40322,12 +41415,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
40322
41415
|
Args: never;
|
|
40323
41416
|
Returns: string;
|
|
40324
41417
|
};
|
|
40325
|
-
get_work_order_tenant_id: {
|
|
40326
|
-
Args: {
|
|
40327
|
-
wo_id: string;
|
|
40328
|
-
};
|
|
40329
|
-
Returns: string;
|
|
40330
|
-
};
|
|
40331
41418
|
has_module_permission: {
|
|
40332
41419
|
Args: {
|
|
40333
41420
|
_min: string;
|
|
@@ -40361,6 +41448,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
40361
41448
|
};
|
|
40362
41449
|
Returns: boolean;
|
|
40363
41450
|
};
|
|
41451
|
+
is_time_log_week_locked: {
|
|
41452
|
+
Args: {
|
|
41453
|
+
p_employee_id: string;
|
|
41454
|
+
p_start_time: string;
|
|
41455
|
+
};
|
|
41456
|
+
Returns: boolean;
|
|
41457
|
+
};
|
|
40364
41458
|
is_user_admin: {
|
|
40365
41459
|
Args: never;
|
|
40366
41460
|
Returns: boolean;
|
|
@@ -40375,13 +41469,14 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
40375
41469
|
};
|
|
40376
41470
|
Returns: boolean;
|
|
40377
41471
|
};
|
|
40378
|
-
|
|
41472
|
+
list_medewerkers: {
|
|
40379
41473
|
Args: never;
|
|
40380
41474
|
Returns: {
|
|
40381
41475
|
avatar_url: string;
|
|
40382
41476
|
display_name: string;
|
|
40383
41477
|
email: string;
|
|
40384
41478
|
id: string;
|
|
41479
|
+
roles: string[];
|
|
40385
41480
|
}[];
|
|
40386
41481
|
};
|
|
40387
41482
|
list_my_planning_items: {
|
|
@@ -41172,6 +42267,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
41172
42267
|
my_module_permissions: {
|
|
41173
42268
|
Args: never;
|
|
41174
42269
|
Returns: {
|
|
42270
|
+
feature_id: string;
|
|
41175
42271
|
module_id: string;
|
|
41176
42272
|
permission: string;
|
|
41177
42273
|
}[];
|
|
@@ -42052,6 +43148,16 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
42052
43148
|
};
|
|
42053
43149
|
Returns: string[];
|
|
42054
43150
|
};
|
|
43151
|
+
switch_time_log: {
|
|
43152
|
+
Args: {
|
|
43153
|
+
p_employee_id: string;
|
|
43154
|
+
p_start_lat?: number;
|
|
43155
|
+
p_start_lng?: number;
|
|
43156
|
+
p_type: string;
|
|
43157
|
+
p_work_order_id?: string;
|
|
43158
|
+
};
|
|
43159
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43160
|
+
};
|
|
42055
43161
|
sync_all_layer_stocks: {
|
|
42056
43162
|
Args: never;
|
|
42057
43163
|
Returns: undefined;
|
|
@@ -42102,6 +43208,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
42102
43208
|
};
|
|
42103
43209
|
Returns: boolean;
|
|
42104
43210
|
};
|
|
43211
|
+
twinfield_cron_lock_acquire: {
|
|
43212
|
+
Args: {
|
|
43213
|
+
_job_name: string;
|
|
43214
|
+
_stale_seconds?: number;
|
|
43215
|
+
};
|
|
43216
|
+
Returns: boolean;
|
|
43217
|
+
};
|
|
43218
|
+
twinfield_cron_lock_release: {
|
|
43219
|
+
Args: {
|
|
43220
|
+
_error?: string;
|
|
43221
|
+
_job_name: string;
|
|
43222
|
+
};
|
|
43223
|
+
Returns: undefined;
|
|
43224
|
+
};
|
|
43225
|
+
twinfield_prune_push_queue: {
|
|
43226
|
+
Args: never;
|
|
43227
|
+
Returns: number;
|
|
43228
|
+
};
|
|
42105
43229
|
twinfield_register_cron: {
|
|
42106
43230
|
Args: {
|
|
42107
43231
|
apikey?: string;
|