@flowselections/floriday-afhandeling-module 1.0.31 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/afhandeling/AutoProcessStatus.js +1 -1
- package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts +6 -6
- package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/ControleLijstPrint.js +73 -48
- package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/ControlePage.js +47 -14
- package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/DagDetailDialog.js +48 -24
- package/dist-lib/components/afhandeling/VervoerdersPage.d.ts +8 -1
- package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/VervoerdersPage.js +17 -2
- package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/WeekAgendaView.js +16 -5
- package/dist-lib/components/afhandeling/WerkplekWaarschuwing.d.ts +10 -0
- package/dist-lib/components/afhandeling/WerkplekWaarschuwing.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/WerkplekWaarschuwing.js +28 -0
- package/dist-lib/components/pickstation/PakbonTemplate.js +70 -70
- package/dist-lib/components/pickstation/printDocuments.d.ts +9 -2
- package/dist-lib/components/pickstation/printDocuments.d.ts.map +1 -1
- package/dist-lib/components/pickstation/printDocuments.js +8 -52
- package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -1
- package/dist-lib/components/settings/AfhandelingSettingsCard.js +12 -1
- package/dist-lib/hooks/useEngineTasks.js +1 -1
- package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
- package/dist-lib/hooks/useOrderPlanning.js +32 -14
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +695 -128
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +695 -128
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/{client.d.ts → moduleClient.d.ts} +697 -129
- package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -0
- package/dist-lib/integrations/supabase/moduleClient.js +38 -0
- package/dist-lib/integrations/supabase/types.d.ts +727 -155
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +3 -0
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +1390 -256
- package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
- package/dist-lib/lib/carrierSignupMail.server.js +26 -26
- package/dist-lib/lib/carriers.functions.d.ts +3475 -640
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartAssignments.functions.d.ts +3475 -640
- package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.d.ts +6950 -1280
- package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
- package/dist-lib/lib/deliveryNotePrint.d.ts +14 -6
- package/dist-lib/lib/deliveryNotePrint.d.ts.map +1 -1
- package/dist-lib/lib/deliveryNotePrint.js +61 -14
- package/dist-lib/lib/floriday.functions.d.ts +695 -128
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/floridayAutoProcess.js +1 -1
- package/dist-lib/lib/logisticsEngine/capacity.js +1 -1
- package/dist-lib/lib/logisticsEngine/emitQueue.d.ts +20 -0
- package/dist-lib/lib/logisticsEngine/emitQueue.d.ts.map +1 -0
- package/dist-lib/lib/logisticsEngine/emitQueue.js +88 -0
- package/dist-lib/lib/logisticsEngine/engine.js +1 -1
- package/dist-lib/lib/logisticsEngine/reschedule.js +1 -1
- package/dist-lib/lib/logisticsEngine/staffPlanning.js +1 -1
- package/dist-lib/lib/printing.d.ts +56 -0
- package/dist-lib/lib/printing.d.ts.map +1 -0
- package/dist-lib/lib/printing.js +209 -0
- package/package.json +3 -7
- package/dist-lib/integrations/supabase/auth-attacher.d.ts +0 -2
- package/dist-lib/integrations/supabase/auth-attacher.d.ts.map +0 -1
- package/dist-lib/integrations/supabase/auth-attacher.js +0 -12
- package/dist-lib/integrations/supabase/client.d.ts.map +0 -1
- package/dist-lib/integrations/supabase/client.js +0 -13
|
@@ -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;
|
|
@@ -10018,6 +10219,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10018
10219
|
module_registry: {
|
|
10019
10220
|
Row: {
|
|
10020
10221
|
created_at: string;
|
|
10222
|
+
enforce: boolean;
|
|
10021
10223
|
is_active: boolean;
|
|
10022
10224
|
last_seen_at: string;
|
|
10023
10225
|
module_id: string;
|
|
@@ -10027,6 +10229,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10027
10229
|
};
|
|
10028
10230
|
Insert: {
|
|
10029
10231
|
created_at?: string;
|
|
10232
|
+
enforce?: boolean;
|
|
10030
10233
|
is_active?: boolean;
|
|
10031
10234
|
last_seen_at?: string;
|
|
10032
10235
|
module_id: string;
|
|
@@ -10036,6 +10239,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10036
10239
|
};
|
|
10037
10240
|
Update: {
|
|
10038
10241
|
created_at?: string;
|
|
10242
|
+
enforce?: boolean;
|
|
10039
10243
|
is_active?: boolean;
|
|
10040
10244
|
last_seen_at?: string;
|
|
10041
10245
|
module_id?: string;
|
|
@@ -10096,63 +10300,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10096
10300
|
};
|
|
10097
10301
|
Relationships: [];
|
|
10098
10302
|
};
|
|
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
10303
|
nmbrs_component_mapping: {
|
|
10157
10304
|
Row: {
|
|
10158
10305
|
created_at: string;
|
|
@@ -10223,13 +10370,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10223
10370
|
nmbrs_employee_number?: string;
|
|
10224
10371
|
updated_at?: string;
|
|
10225
10372
|
};
|
|
10226
|
-
Relationships: [
|
|
10227
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10228
|
-
columns: ["monteur_id"];
|
|
10229
|
-
isOneToOne: true;
|
|
10230
|
-
referencedRelation: "monteurs";
|
|
10231
|
-
referencedColumns: ["id"];
|
|
10232
|
-
}];
|
|
10373
|
+
Relationships: [];
|
|
10233
10374
|
};
|
|
10234
10375
|
nmbrs_export_lines: {
|
|
10235
10376
|
Row: {
|
|
@@ -10278,12 +10419,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10278
10419
|
wage_code?: string;
|
|
10279
10420
|
};
|
|
10280
10421
|
Relationships: [{
|
|
10281
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10282
|
-
columns: ["monteur_id"];
|
|
10283
|
-
isOneToOne: false;
|
|
10284
|
-
referencedRelation: "monteurs";
|
|
10285
|
-
referencedColumns: ["id"];
|
|
10286
|
-
}, {
|
|
10287
10422
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10288
10423
|
columns: ["run_id"];
|
|
10289
10424
|
isOneToOne: false;
|
|
@@ -12674,6 +12809,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
12674
12809
|
created_at: string;
|
|
12675
12810
|
id: string;
|
|
12676
12811
|
laatst_gezien: string;
|
|
12812
|
+
laatste_fout: string | null;
|
|
12813
|
+
laatste_request_id: number | null;
|
|
12814
|
+
mislukte_posts: number;
|
|
12677
12815
|
tick_sleutel: string;
|
|
12678
12816
|
updated_at: string;
|
|
12679
12817
|
};
|
|
@@ -12683,6 +12821,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
12683
12821
|
created_at?: string;
|
|
12684
12822
|
id?: string;
|
|
12685
12823
|
laatst_gezien?: string;
|
|
12824
|
+
laatste_fout?: string | null;
|
|
12825
|
+
laatste_request_id?: number | null;
|
|
12826
|
+
mislukte_posts?: number;
|
|
12686
12827
|
tick_sleutel?: string;
|
|
12687
12828
|
updated_at?: string;
|
|
12688
12829
|
};
|
|
@@ -12692,6 +12833,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
12692
12833
|
created_at?: string;
|
|
12693
12834
|
id?: string;
|
|
12694
12835
|
laatst_gezien?: string;
|
|
12836
|
+
laatste_fout?: string | null;
|
|
12837
|
+
laatste_request_id?: number | null;
|
|
12838
|
+
mislukte_posts?: number;
|
|
12695
12839
|
tick_sleutel?: string;
|
|
12696
12840
|
updated_at?: string;
|
|
12697
12841
|
};
|
|
@@ -14200,6 +14344,96 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
14200
14344
|
referencedColumns: ["id"];
|
|
14201
14345
|
}];
|
|
14202
14346
|
};
|
|
14347
|
+
role_assignments: {
|
|
14348
|
+
Row: {
|
|
14349
|
+
created_at: string;
|
|
14350
|
+
id: string;
|
|
14351
|
+
role_id: string;
|
|
14352
|
+
user_id: string;
|
|
14353
|
+
};
|
|
14354
|
+
Insert: {
|
|
14355
|
+
created_at?: string;
|
|
14356
|
+
id?: string;
|
|
14357
|
+
role_id: string;
|
|
14358
|
+
user_id: string;
|
|
14359
|
+
};
|
|
14360
|
+
Update: {
|
|
14361
|
+
created_at?: string;
|
|
14362
|
+
id?: string;
|
|
14363
|
+
role_id?: string;
|
|
14364
|
+
user_id?: string;
|
|
14365
|
+
};
|
|
14366
|
+
Relationships: [{
|
|
14367
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
14368
|
+
columns: ["role_id"];
|
|
14369
|
+
isOneToOne: false;
|
|
14370
|
+
referencedRelation: "roles";
|
|
14371
|
+
referencedColumns: ["id"];
|
|
14372
|
+
}];
|
|
14373
|
+
};
|
|
14374
|
+
role_permissions: {
|
|
14375
|
+
Row: {
|
|
14376
|
+
can_edit: boolean;
|
|
14377
|
+
can_view: boolean;
|
|
14378
|
+
feature_id: string;
|
|
14379
|
+
id: string;
|
|
14380
|
+
module_id: string;
|
|
14381
|
+
role_id: string;
|
|
14382
|
+
updated_at: string;
|
|
14383
|
+
};
|
|
14384
|
+
Insert: {
|
|
14385
|
+
can_edit?: boolean;
|
|
14386
|
+
can_view?: boolean;
|
|
14387
|
+
feature_id?: string;
|
|
14388
|
+
id?: string;
|
|
14389
|
+
module_id: string;
|
|
14390
|
+
role_id: string;
|
|
14391
|
+
updated_at?: string;
|
|
14392
|
+
};
|
|
14393
|
+
Update: {
|
|
14394
|
+
can_edit?: boolean;
|
|
14395
|
+
can_view?: boolean;
|
|
14396
|
+
feature_id?: string;
|
|
14397
|
+
id?: string;
|
|
14398
|
+
module_id?: string;
|
|
14399
|
+
role_id?: string;
|
|
14400
|
+
updated_at?: string;
|
|
14401
|
+
};
|
|
14402
|
+
Relationships: [{
|
|
14403
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
14404
|
+
columns: ["role_id"];
|
|
14405
|
+
isOneToOne: false;
|
|
14406
|
+
referencedRelation: "roles";
|
|
14407
|
+
referencedColumns: ["id"];
|
|
14408
|
+
}];
|
|
14409
|
+
};
|
|
14410
|
+
roles: {
|
|
14411
|
+
Row: {
|
|
14412
|
+
created_at: string;
|
|
14413
|
+
id: string;
|
|
14414
|
+
is_protected: boolean;
|
|
14415
|
+
key: string;
|
|
14416
|
+
name: string;
|
|
14417
|
+
updated_at: string;
|
|
14418
|
+
};
|
|
14419
|
+
Insert: {
|
|
14420
|
+
created_at?: string;
|
|
14421
|
+
id?: string;
|
|
14422
|
+
is_protected?: boolean;
|
|
14423
|
+
key: string;
|
|
14424
|
+
name: string;
|
|
14425
|
+
updated_at?: string;
|
|
14426
|
+
};
|
|
14427
|
+
Update: {
|
|
14428
|
+
created_at?: string;
|
|
14429
|
+
id?: string;
|
|
14430
|
+
is_protected?: boolean;
|
|
14431
|
+
key?: string;
|
|
14432
|
+
name?: string;
|
|
14433
|
+
updated_at?: string;
|
|
14434
|
+
};
|
|
14435
|
+
Relationships: [];
|
|
14436
|
+
};
|
|
14203
14437
|
rooms: {
|
|
14204
14438
|
Row: {
|
|
14205
14439
|
capacity: number;
|
|
@@ -14869,6 +15103,54 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
14869
15103
|
};
|
|
14870
15104
|
Relationships: [];
|
|
14871
15105
|
};
|
|
15106
|
+
time_compensation_entries: {
|
|
15107
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
15134
|
+
created_at?: string;
|
|
15135
|
+
employee_id?: string;
|
|
15136
|
+
entry_date?: string;
|
|
15137
|
+
id?: string;
|
|
15138
|
+
km?: number;
|
|
15139
|
+
meal_allowance?: number;
|
|
15140
|
+
notes?: string | null;
|
|
15141
|
+
standby_evening?: number;
|
|
15142
|
+
standby_weekend?: number;
|
|
15143
|
+
tvt_change?: number;
|
|
15144
|
+
updated_at?: string;
|
|
15145
|
+
};
|
|
15146
|
+
Relationships: [{
|
|
15147
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
15148
|
+
columns: ["employee_id"];
|
|
15149
|
+
isOneToOne: false;
|
|
15150
|
+
referencedRelation: "profiles";
|
|
15151
|
+
referencedColumns: ["id"];
|
|
15152
|
+
}];
|
|
15153
|
+
};
|
|
14872
15154
|
time_entries: {
|
|
14873
15155
|
Row: {
|
|
14874
15156
|
created_at: string;
|
|
@@ -14903,65 +15185,170 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
14903
15185
|
undertime?: number;
|
|
14904
15186
|
updated_at?: string;
|
|
14905
15187
|
};
|
|
15188
|
+
Relationships: [];
|
|
15189
|
+
};
|
|
15190
|
+
time_log_week_approvals: {
|
|
15191
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
};
|
|
15217
|
+
Update: {
|
|
15218
|
+
approved_at?: string | null;
|
|
15219
|
+
approved_by?: string | null;
|
|
15220
|
+
created_at?: string;
|
|
15221
|
+
employee_id?: string;
|
|
15222
|
+
id?: string;
|
|
15223
|
+
locked?: boolean;
|
|
15224
|
+
notes?: string | null;
|
|
15225
|
+
status?: string;
|
|
15226
|
+
submitted_at?: string | null;
|
|
15227
|
+
updated_at?: string;
|
|
15228
|
+
week_start?: string;
|
|
15229
|
+
};
|
|
14906
15230
|
Relationships: [{
|
|
14907
|
-
foreignKeyName: "
|
|
15231
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
14908
15232
|
columns: ["employee_id"];
|
|
14909
15233
|
isOneToOne: false;
|
|
14910
|
-
referencedRelation: "
|
|
15234
|
+
referencedRelation: "profiles";
|
|
14911
15235
|
referencedColumns: ["id"];
|
|
14912
15236
|
}];
|
|
14913
15237
|
};
|
|
14914
15238
|
time_logs: {
|
|
14915
15239
|
Row: {
|
|
15240
|
+
auto_stop_reason: string | null;
|
|
15241
|
+
auto_stopped: boolean;
|
|
14916
15242
|
created_at: string;
|
|
15243
|
+
current_latitude: number | null;
|
|
15244
|
+
current_longitude: number | null;
|
|
15245
|
+
current_position_updated_at: string | null;
|
|
14917
15246
|
employee_id: string;
|
|
15247
|
+
end_latitude: number | null;
|
|
15248
|
+
end_longitude: number | null;
|
|
14918
15249
|
end_time: string | null;
|
|
15250
|
+
eta_distance_km: number | null;
|
|
15251
|
+
eta_minutes: number | null;
|
|
15252
|
+
eta_updated_at: string | null;
|
|
15253
|
+
hour_category: string | null;
|
|
14919
15254
|
id: string;
|
|
15255
|
+
last_reminder_at: string | null;
|
|
14920
15256
|
notes: string | null;
|
|
14921
15257
|
overtime_hours: number;
|
|
14922
15258
|
overtime_type: string | null;
|
|
14923
15259
|
regular_hours: number;
|
|
15260
|
+
reminder_count: number;
|
|
15261
|
+
requires_review: boolean;
|
|
15262
|
+
start_latitude: number | null;
|
|
15263
|
+
start_longitude: number | null;
|
|
14924
15264
|
start_time: string;
|
|
14925
15265
|
travel_cost: number | null;
|
|
14926
15266
|
travel_distance_km: number | null;
|
|
15267
|
+
travel_duration_min: number | null;
|
|
15268
|
+
travel_time_minutes: number | null;
|
|
14927
15269
|
type: string;
|
|
14928
15270
|
updated_at: string;
|
|
15271
|
+
work_order_id: string | null;
|
|
14929
15272
|
};
|
|
14930
15273
|
Insert: {
|
|
15274
|
+
auto_stop_reason?: string | null;
|
|
15275
|
+
auto_stopped?: boolean;
|
|
14931
15276
|
created_at?: string;
|
|
15277
|
+
current_latitude?: number | null;
|
|
15278
|
+
current_longitude?: number | null;
|
|
15279
|
+
current_position_updated_at?: string | null;
|
|
14932
15280
|
employee_id: string;
|
|
15281
|
+
end_latitude?: number | null;
|
|
15282
|
+
end_longitude?: number | null;
|
|
14933
15283
|
end_time?: string | null;
|
|
15284
|
+
eta_distance_km?: number | null;
|
|
15285
|
+
eta_minutes?: number | null;
|
|
15286
|
+
eta_updated_at?: string | null;
|
|
15287
|
+
hour_category?: string | null;
|
|
14934
15288
|
id?: string;
|
|
15289
|
+
last_reminder_at?: string | null;
|
|
14935
15290
|
notes?: string | null;
|
|
14936
15291
|
overtime_hours?: number;
|
|
14937
15292
|
overtime_type?: string | null;
|
|
14938
15293
|
regular_hours?: number;
|
|
15294
|
+
reminder_count?: number;
|
|
15295
|
+
requires_review?: boolean;
|
|
15296
|
+
start_latitude?: number | null;
|
|
15297
|
+
start_longitude?: number | null;
|
|
14939
15298
|
start_time?: string;
|
|
14940
15299
|
travel_cost?: number | null;
|
|
14941
15300
|
travel_distance_km?: number | null;
|
|
15301
|
+
travel_duration_min?: number | null;
|
|
15302
|
+
travel_time_minutes?: number | null;
|
|
14942
15303
|
type: string;
|
|
14943
15304
|
updated_at?: string;
|
|
15305
|
+
work_order_id?: string | null;
|
|
14944
15306
|
};
|
|
14945
15307
|
Update: {
|
|
15308
|
+
auto_stop_reason?: string | null;
|
|
15309
|
+
auto_stopped?: boolean;
|
|
14946
15310
|
created_at?: string;
|
|
15311
|
+
current_latitude?: number | null;
|
|
15312
|
+
current_longitude?: number | null;
|
|
15313
|
+
current_position_updated_at?: string | null;
|
|
14947
15314
|
employee_id?: string;
|
|
15315
|
+
end_latitude?: number | null;
|
|
15316
|
+
end_longitude?: number | null;
|
|
14948
15317
|
end_time?: string | null;
|
|
15318
|
+
eta_distance_km?: number | null;
|
|
15319
|
+
eta_minutes?: number | null;
|
|
15320
|
+
eta_updated_at?: string | null;
|
|
15321
|
+
hour_category?: string | null;
|
|
14949
15322
|
id?: string;
|
|
15323
|
+
last_reminder_at?: string | null;
|
|
14950
15324
|
notes?: string | null;
|
|
14951
15325
|
overtime_hours?: number;
|
|
14952
15326
|
overtime_type?: string | null;
|
|
14953
15327
|
regular_hours?: number;
|
|
15328
|
+
reminder_count?: number;
|
|
15329
|
+
requires_review?: boolean;
|
|
15330
|
+
start_latitude?: number | null;
|
|
15331
|
+
start_longitude?: number | null;
|
|
14954
15332
|
start_time?: string;
|
|
14955
15333
|
travel_cost?: number | null;
|
|
14956
15334
|
travel_distance_km?: number | null;
|
|
15335
|
+
travel_duration_min?: number | null;
|
|
15336
|
+
travel_time_minutes?: number | null;
|
|
14957
15337
|
type?: string;
|
|
14958
15338
|
updated_at?: string;
|
|
15339
|
+
work_order_id?: string | null;
|
|
14959
15340
|
};
|
|
14960
15341
|
Relationships: [{
|
|
14961
15342
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
14962
15343
|
columns: ["employee_id"];
|
|
14963
15344
|
isOneToOne: false;
|
|
14964
|
-
referencedRelation: "
|
|
15345
|
+
referencedRelation: "profiles";
|
|
15346
|
+
referencedColumns: ["id"];
|
|
15347
|
+
}, {
|
|
15348
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
15349
|
+
columns: ["work_order_id"];
|
|
15350
|
+
isOneToOne: false;
|
|
15351
|
+
referencedRelation: "work_orders";
|
|
14965
15352
|
referencedColumns: ["id"];
|
|
14966
15353
|
}];
|
|
14967
15354
|
};
|
|
@@ -15000,7 +15387,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
15000
15387
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
15001
15388
|
columns: ["employee_id"];
|
|
15002
15389
|
isOneToOne: false;
|
|
15003
|
-
referencedRelation: "
|
|
15390
|
+
referencedRelation: "profiles";
|
|
15004
15391
|
referencedColumns: ["id"];
|
|
15005
15392
|
}];
|
|
15006
15393
|
};
|
|
@@ -15310,6 +15697,39 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
15310
15697
|
};
|
|
15311
15698
|
Relationships: [];
|
|
15312
15699
|
};
|
|
15700
|
+
twinfield_cron_locks: {
|
|
15701
|
+
Row: {
|
|
15702
|
+
created_at: string;
|
|
15703
|
+
heartbeat_at: string;
|
|
15704
|
+
job_name: string;
|
|
15705
|
+
last_error: string | null;
|
|
15706
|
+
last_finished_at: string | null;
|
|
15707
|
+
locked_at: string;
|
|
15708
|
+
run_id: string;
|
|
15709
|
+
updated_at: string;
|
|
15710
|
+
};
|
|
15711
|
+
Insert: {
|
|
15712
|
+
created_at?: string;
|
|
15713
|
+
heartbeat_at?: string;
|
|
15714
|
+
job_name: string;
|
|
15715
|
+
last_error?: string | null;
|
|
15716
|
+
last_finished_at?: string | null;
|
|
15717
|
+
locked_at?: string;
|
|
15718
|
+
run_id?: string;
|
|
15719
|
+
updated_at?: string;
|
|
15720
|
+
};
|
|
15721
|
+
Update: {
|
|
15722
|
+
created_at?: string;
|
|
15723
|
+
heartbeat_at?: string;
|
|
15724
|
+
job_name?: string;
|
|
15725
|
+
last_error?: string | null;
|
|
15726
|
+
last_finished_at?: string | null;
|
|
15727
|
+
locked_at?: string;
|
|
15728
|
+
run_id?: string;
|
|
15729
|
+
updated_at?: string;
|
|
15730
|
+
};
|
|
15731
|
+
Relationships: [];
|
|
15732
|
+
};
|
|
15313
15733
|
twinfield_customers: {
|
|
15314
15734
|
Row: {
|
|
15315
15735
|
address: string | null;
|
|
@@ -15910,6 +16330,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
15910
16330
|
twinfield_push_queue: {
|
|
15911
16331
|
Row: {
|
|
15912
16332
|
action: string;
|
|
16333
|
+
attempt_started_at: string | null;
|
|
15913
16334
|
attempts: number;
|
|
15914
16335
|
connection_id: string | null;
|
|
15915
16336
|
created_at: string;
|
|
@@ -15926,6 +16347,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
15926
16347
|
};
|
|
15927
16348
|
Insert: {
|
|
15928
16349
|
action?: string;
|
|
16350
|
+
attempt_started_at?: string | null;
|
|
15929
16351
|
attempts?: number;
|
|
15930
16352
|
connection_id?: string | null;
|
|
15931
16353
|
created_at?: string;
|
|
@@ -15942,6 +16364,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
15942
16364
|
};
|
|
15943
16365
|
Update: {
|
|
15944
16366
|
action?: string;
|
|
16367
|
+
attempt_started_at?: string | null;
|
|
15945
16368
|
attempts?: number;
|
|
15946
16369
|
connection_id?: string | null;
|
|
15947
16370
|
created_at?: string;
|
|
@@ -16139,13 +16562,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
16139
16562
|
workday_end?: string | null;
|
|
16140
16563
|
workday_start?: string | null;
|
|
16141
16564
|
};
|
|
16142
|
-
Relationships: [
|
|
16143
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
16144
|
-
columns: ["monteur_id"];
|
|
16145
|
-
isOneToOne: true;
|
|
16146
|
-
referencedRelation: "monteurs";
|
|
16147
|
-
referencedColumns: ["id"];
|
|
16148
|
-
}];
|
|
16565
|
+
Relationships: [];
|
|
16149
16566
|
};
|
|
16150
16567
|
uren_entries: {
|
|
16151
16568
|
Row: {
|
|
@@ -16191,12 +16608,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
16191
16608
|
werkbon_id?: string | null;
|
|
16192
16609
|
};
|
|
16193
16610
|
Relationships: [{
|
|
16194
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16195
|
-
columns: ["monteur_id"];
|
|
16196
|
-
isOneToOne: false;
|
|
16197
|
-
referencedRelation: "monteurs";
|
|
16198
|
-
referencedColumns: ["id"];
|
|
16199
|
-
}, {
|
|
16200
16611
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16201
16612
|
columns: ["werkbon_id"];
|
|
16202
16613
|
isOneToOne: false;
|
|
@@ -16664,17 +17075,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
16664
17075
|
submitted_at?: string | null;
|
|
16665
17076
|
updated_at?: string;
|
|
16666
17077
|
};
|
|
16667
|
-
Relationships: [
|
|
16668
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
16669
|
-
columns: ["monteur_id"];
|
|
16670
|
-
isOneToOne: false;
|
|
16671
|
-
referencedRelation: "monteurs";
|
|
16672
|
-
referencedColumns: ["id"];
|
|
16673
|
-
}];
|
|
17078
|
+
Relationships: [];
|
|
16674
17079
|
};
|
|
16675
17080
|
user_module_permissions: {
|
|
16676
17081
|
Row: {
|
|
16677
17082
|
created_at: string;
|
|
17083
|
+
feature_id: string;
|
|
16678
17084
|
id: string;
|
|
16679
17085
|
module_id: string;
|
|
16680
17086
|
permission: string;
|
|
@@ -16683,6 +17089,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
16683
17089
|
};
|
|
16684
17090
|
Insert: {
|
|
16685
17091
|
created_at?: string;
|
|
17092
|
+
feature_id?: string;
|
|
16686
17093
|
id?: string;
|
|
16687
17094
|
module_id: string;
|
|
16688
17095
|
permission: string;
|
|
@@ -16691,6 +17098,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
16691
17098
|
};
|
|
16692
17099
|
Update: {
|
|
16693
17100
|
created_at?: string;
|
|
17101
|
+
feature_id?: string;
|
|
16694
17102
|
id?: string;
|
|
16695
17103
|
module_id?: string;
|
|
16696
17104
|
permission?: string;
|
|
@@ -16726,6 +17134,51 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
16726
17134
|
referencedColumns: ["id"];
|
|
16727
17135
|
}];
|
|
16728
17136
|
};
|
|
17137
|
+
van_inventories: {
|
|
17138
|
+
Row: {
|
|
17139
|
+
barcode: string | null;
|
|
17140
|
+
created_at: string;
|
|
17141
|
+
id: string;
|
|
17142
|
+
monteur_id: string | null;
|
|
17143
|
+
price_per_unit: number;
|
|
17144
|
+
product_name: string;
|
|
17145
|
+
quantity_current: number;
|
|
17146
|
+
quantity_min: number;
|
|
17147
|
+
unit: string;
|
|
17148
|
+
updated_at: string;
|
|
17149
|
+
};
|
|
17150
|
+
Insert: {
|
|
17151
|
+
barcode?: string | null;
|
|
17152
|
+
created_at?: string;
|
|
17153
|
+
id?: string;
|
|
17154
|
+
monteur_id?: string | null;
|
|
17155
|
+
price_per_unit?: number;
|
|
17156
|
+
product_name: string;
|
|
17157
|
+
quantity_current?: number;
|
|
17158
|
+
quantity_min?: number;
|
|
17159
|
+
unit?: string;
|
|
17160
|
+
updated_at?: string;
|
|
17161
|
+
};
|
|
17162
|
+
Update: {
|
|
17163
|
+
barcode?: string | null;
|
|
17164
|
+
created_at?: string;
|
|
17165
|
+
id?: string;
|
|
17166
|
+
monteur_id?: string | null;
|
|
17167
|
+
price_per_unit?: number;
|
|
17168
|
+
product_name?: string;
|
|
17169
|
+
quantity_current?: number;
|
|
17170
|
+
quantity_min?: number;
|
|
17171
|
+
unit?: string;
|
|
17172
|
+
updated_at?: string;
|
|
17173
|
+
};
|
|
17174
|
+
Relationships: [{
|
|
17175
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
17176
|
+
columns: ["monteur_id"];
|
|
17177
|
+
isOneToOne: false;
|
|
17178
|
+
referencedRelation: "profiles";
|
|
17179
|
+
referencedColumns: ["id"];
|
|
17180
|
+
}];
|
|
17181
|
+
};
|
|
16729
17182
|
voorraad_custom_fields: {
|
|
16730
17183
|
Row: {
|
|
16731
17184
|
created_at: string;
|
|
@@ -17676,7 +18129,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
17676
18129
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
17677
18130
|
columns: ["monteur_id"];
|
|
17678
18131
|
isOneToOne: false;
|
|
17679
|
-
referencedRelation: "
|
|
18132
|
+
referencedRelation: "profiles";
|
|
17680
18133
|
referencedColumns: ["id"];
|
|
17681
18134
|
}, {
|
|
17682
18135
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -17686,6 +18139,60 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
17686
18139
|
referencedColumns: ["id"];
|
|
17687
18140
|
}];
|
|
17688
18141
|
};
|
|
18142
|
+
work_order_photos: {
|
|
18143
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
18170
|
+
ai_caption?: string | null;
|
|
18171
|
+
ai_categorized_at?: string | null;
|
|
18172
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18173
|
+
caption?: string | null;
|
|
18174
|
+
created_at?: string;
|
|
18175
|
+
id?: string;
|
|
18176
|
+
monteur_id?: string | null;
|
|
18177
|
+
photo_type?: string;
|
|
18178
|
+
storage_path?: string;
|
|
18179
|
+
updated_at?: string;
|
|
18180
|
+
work_order_id?: string;
|
|
18181
|
+
};
|
|
18182
|
+
Relationships: [{
|
|
18183
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
18184
|
+
columns: ["monteur_id"];
|
|
18185
|
+
isOneToOne: false;
|
|
18186
|
+
referencedRelation: "profiles";
|
|
18187
|
+
referencedColumns: ["id"];
|
|
18188
|
+
}, {
|
|
18189
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
18190
|
+
columns: ["work_order_id"];
|
|
18191
|
+
isOneToOne: false;
|
|
18192
|
+
referencedRelation: "work_orders";
|
|
18193
|
+
referencedColumns: ["id"];
|
|
18194
|
+
}];
|
|
18195
|
+
};
|
|
17689
18196
|
work_orders: {
|
|
17690
18197
|
Row: {
|
|
17691
18198
|
assigned_to: string | null;
|
|
@@ -17717,7 +18224,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
17717
18224
|
scheduled_end_time: string | null;
|
|
17718
18225
|
scheduled_start_time: string | null;
|
|
17719
18226
|
status: string;
|
|
17720
|
-
tenant_id: string;
|
|
17721
18227
|
total_hours_worked: number | null;
|
|
17722
18228
|
total_price: number | null;
|
|
17723
18229
|
travel_time_minutes: number | null;
|
|
@@ -17755,7 +18261,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
17755
18261
|
scheduled_end_time?: string | null;
|
|
17756
18262
|
scheduled_start_time?: string | null;
|
|
17757
18263
|
status?: string;
|
|
17758
|
-
tenant_id: string;
|
|
17759
18264
|
total_hours_worked?: number | null;
|
|
17760
18265
|
total_price?: number | null;
|
|
17761
18266
|
travel_time_minutes?: number | null;
|
|
@@ -17793,7 +18298,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
17793
18298
|
scheduled_end_time?: string | null;
|
|
17794
18299
|
scheduled_start_time?: string | null;
|
|
17795
18300
|
status?: string;
|
|
17796
|
-
tenant_id?: string;
|
|
17797
18301
|
total_hours_worked?: number | null;
|
|
17798
18302
|
total_price?: number | null;
|
|
17799
18303
|
travel_time_minutes?: number | null;
|
|
@@ -17807,12 +18311,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
17807
18311
|
isOneToOne: false;
|
|
17808
18312
|
referencedRelation: "work_orders";
|
|
17809
18313
|
referencedColumns: ["id"];
|
|
17810
|
-
}, {
|
|
17811
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
17812
|
-
columns: ["tenant_id"];
|
|
17813
|
-
isOneToOne: false;
|
|
17814
|
-
referencedRelation: "tenants";
|
|
17815
|
-
referencedColumns: ["id"];
|
|
17816
18314
|
}];
|
|
17817
18315
|
};
|
|
17818
18316
|
};
|
|
@@ -18497,6 +18995,19 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
18497
18995
|
};
|
|
18498
18996
|
Returns: undefined;
|
|
18499
18997
|
};
|
|
18998
|
+
approve_mailbox_order_proposal: {
|
|
18999
|
+
Args: {
|
|
19000
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
19001
|
+
p_customer_id: string;
|
|
19002
|
+
p_delivery_date: string;
|
|
19003
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
19004
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
19005
|
+
p_notes: string;
|
|
19006
|
+
p_proposal_id: string;
|
|
19007
|
+
p_reviewed_by: string;
|
|
19008
|
+
};
|
|
19009
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
19010
|
+
};
|
|
18500
19011
|
assign_cart_numbers: {
|
|
18501
19012
|
Args: {
|
|
18502
19013
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -18548,6 +19059,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
18548
19059
|
};
|
|
18549
19060
|
Returns: number;
|
|
18550
19061
|
};
|
|
19062
|
+
can_manage_hours: {
|
|
19063
|
+
Args: never;
|
|
19064
|
+
Returns: boolean;
|
|
19065
|
+
};
|
|
18551
19066
|
check_offer_product_available_stock: {
|
|
18552
19067
|
Args: {
|
|
18553
19068
|
p_campaign_product_id: string;
|
|
@@ -18737,6 +19252,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
18737
19252
|
};
|
|
18738
19253
|
Returns: {
|
|
18739
19254
|
action: string;
|
|
19255
|
+
attempt_started_at: string | null;
|
|
18740
19256
|
attempts: number;
|
|
18741
19257
|
connection_id: string | null;
|
|
18742
19258
|
created_at: string;
|
|
@@ -18824,6 +19340,30 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
18824
19340
|
agent_naam: string;
|
|
18825
19341
|
}[];
|
|
18826
19342
|
};
|
|
19343
|
+
consume_van_inventory: {
|
|
19344
|
+
Args: {
|
|
19345
|
+
p_inventory_id: string;
|
|
19346
|
+
p_quantity: number;
|
|
19347
|
+
};
|
|
19348
|
+
Returns: {
|
|
19349
|
+
barcode: string | null;
|
|
19350
|
+
created_at: string;
|
|
19351
|
+
id: string;
|
|
19352
|
+
monteur_id: string | null;
|
|
19353
|
+
price_per_unit: number;
|
|
19354
|
+
product_name: string;
|
|
19355
|
+
quantity_current: number;
|
|
19356
|
+
quantity_min: number;
|
|
19357
|
+
unit: string;
|
|
19358
|
+
updated_at: string;
|
|
19359
|
+
};
|
|
19360
|
+
SetofOptions: {
|
|
19361
|
+
from: "*";
|
|
19362
|
+
to: "van_inventories";
|
|
19363
|
+
isOneToOne: true;
|
|
19364
|
+
isSetofReturn: false;
|
|
19365
|
+
};
|
|
19366
|
+
};
|
|
18827
19367
|
control_get_todays_carts: {
|
|
18828
19368
|
Args: never;
|
|
18829
19369
|
Returns: {
|
|
@@ -18897,6 +19437,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
18897
19437
|
_user_id: string;
|
|
18898
19438
|
};
|
|
18899
19439
|
Returns: string;
|
|
19440
|
+
} | {
|
|
19441
|
+
Args: {
|
|
19442
|
+
_feature_id: string;
|
|
19443
|
+
_module_id: string;
|
|
19444
|
+
_user_id: string;
|
|
19445
|
+
};
|
|
19446
|
+
Returns: string;
|
|
18900
19447
|
};
|
|
18901
19448
|
email_auth_decrypt: {
|
|
18902
19449
|
Args: {
|
|
@@ -19248,12 +19795,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
19248
19795
|
Args: never;
|
|
19249
19796
|
Returns: string;
|
|
19250
19797
|
};
|
|
19251
|
-
get_work_order_tenant_id: {
|
|
19252
|
-
Args: {
|
|
19253
|
-
wo_id: string;
|
|
19254
|
-
};
|
|
19255
|
-
Returns: string;
|
|
19256
|
-
};
|
|
19257
19798
|
has_module_permission: {
|
|
19258
19799
|
Args: {
|
|
19259
19800
|
_min: string;
|
|
@@ -19287,6 +19828,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
19287
19828
|
};
|
|
19288
19829
|
Returns: boolean;
|
|
19289
19830
|
};
|
|
19831
|
+
is_time_log_week_locked: {
|
|
19832
|
+
Args: {
|
|
19833
|
+
p_employee_id: string;
|
|
19834
|
+
p_start_time: string;
|
|
19835
|
+
};
|
|
19836
|
+
Returns: boolean;
|
|
19837
|
+
};
|
|
19290
19838
|
is_user_admin: {
|
|
19291
19839
|
Args: never;
|
|
19292
19840
|
Returns: boolean;
|
|
@@ -19301,13 +19849,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
19301
19849
|
};
|
|
19302
19850
|
Returns: boolean;
|
|
19303
19851
|
};
|
|
19304
|
-
|
|
19852
|
+
list_medewerkers: {
|
|
19305
19853
|
Args: never;
|
|
19306
19854
|
Returns: {
|
|
19307
19855
|
avatar_url: string;
|
|
19308
19856
|
display_name: string;
|
|
19309
19857
|
email: string;
|
|
19310
19858
|
id: string;
|
|
19859
|
+
roles: string[];
|
|
19311
19860
|
}[];
|
|
19312
19861
|
};
|
|
19313
19862
|
list_my_planning_items: {
|
|
@@ -19633,17 +20182,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
19633
20182
|
Returns: string;
|
|
19634
20183
|
};
|
|
19635
20184
|
logistics_emit_event: {
|
|
19636
|
-
Args: {
|
|
19637
|
-
p_event_type: string;
|
|
19638
|
-
p_idempotency_key?: string;
|
|
19639
|
-
p_order_ref: string;
|
|
19640
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
19641
|
-
p_shadow?: boolean;
|
|
19642
|
-
p_source_module: string;
|
|
19643
|
-
p_strategy_id?: string;
|
|
19644
|
-
};
|
|
19645
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
19646
|
-
} | {
|
|
19647
20185
|
Args: {
|
|
19648
20186
|
p_event_type: string;
|
|
19649
20187
|
p_idempotency_key?: string;
|
|
@@ -20098,6 +20636,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
20098
20636
|
my_module_permissions: {
|
|
20099
20637
|
Args: never;
|
|
20100
20638
|
Returns: {
|
|
20639
|
+
feature_id: string;
|
|
20101
20640
|
module_id: string;
|
|
20102
20641
|
permission: string;
|
|
20103
20642
|
}[];
|
|
@@ -20978,6 +21517,16 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
20978
21517
|
};
|
|
20979
21518
|
Returns: string[];
|
|
20980
21519
|
};
|
|
21520
|
+
switch_time_log: {
|
|
21521
|
+
Args: {
|
|
21522
|
+
p_employee_id: string;
|
|
21523
|
+
p_start_lat?: number;
|
|
21524
|
+
p_start_lng?: number;
|
|
21525
|
+
p_type: string;
|
|
21526
|
+
p_work_order_id?: string;
|
|
21527
|
+
};
|
|
21528
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21529
|
+
};
|
|
20981
21530
|
sync_all_layer_stocks: {
|
|
20982
21531
|
Args: never;
|
|
20983
21532
|
Returns: undefined;
|
|
@@ -21028,6 +21577,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
21028
21577
|
};
|
|
21029
21578
|
Returns: boolean;
|
|
21030
21579
|
};
|
|
21580
|
+
twinfield_cron_lock_acquire: {
|
|
21581
|
+
Args: {
|
|
21582
|
+
_job_name: string;
|
|
21583
|
+
_stale_seconds?: number;
|
|
21584
|
+
};
|
|
21585
|
+
Returns: boolean;
|
|
21586
|
+
};
|
|
21587
|
+
twinfield_cron_lock_release: {
|
|
21588
|
+
Args: {
|
|
21589
|
+
_error?: string;
|
|
21590
|
+
_job_name: string;
|
|
21591
|
+
};
|
|
21592
|
+
Returns: undefined;
|
|
21593
|
+
};
|
|
21594
|
+
twinfield_prune_push_queue: {
|
|
21595
|
+
Args: never;
|
|
21596
|
+
Returns: number;
|
|
21597
|
+
};
|
|
21031
21598
|
twinfield_register_cron: {
|
|
21032
21599
|
Args: {
|
|
21033
21600
|
apikey?: string;
|
|
@@ -21071,7 +21638,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
21071
21638
|
Enums: {
|
|
21072
21639
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
21073
21640
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
21074
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
21641
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
21075
21642
|
doc_orientation: "portrait" | "landscape";
|
|
21076
21643
|
exact_env: "staging" | "live";
|
|
21077
21644
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -21963,6 +22530,126 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
21963
22530
|
};
|
|
21964
22531
|
Relationships: [];
|
|
21965
22532
|
};
|
|
22533
|
+
cao_holidays: {
|
|
22534
|
+
Row: {
|
|
22535
|
+
created_at: string;
|
|
22536
|
+
description: string | null;
|
|
22537
|
+
holiday_date: string;
|
|
22538
|
+
id: string;
|
|
22539
|
+
updated_at: string;
|
|
22540
|
+
};
|
|
22541
|
+
Insert: {
|
|
22542
|
+
created_at?: string;
|
|
22543
|
+
description?: string | null;
|
|
22544
|
+
holiday_date: string;
|
|
22545
|
+
id?: string;
|
|
22546
|
+
updated_at?: string;
|
|
22547
|
+
};
|
|
22548
|
+
Update: {
|
|
22549
|
+
created_at?: string;
|
|
22550
|
+
description?: string | null;
|
|
22551
|
+
holiday_date?: string;
|
|
22552
|
+
id?: string;
|
|
22553
|
+
updated_at?: string;
|
|
22554
|
+
};
|
|
22555
|
+
Relationships: [];
|
|
22556
|
+
};
|
|
22557
|
+
cao_settings: {
|
|
22558
|
+
Row: {
|
|
22559
|
+
auto_break_after_hours: number;
|
|
22560
|
+
auto_break_minutes: number;
|
|
22561
|
+
auto_break_unpaid: boolean;
|
|
22562
|
+
auto_stop_after_hours: number;
|
|
22563
|
+
callout_fee: number;
|
|
22564
|
+
created_at: string;
|
|
22565
|
+
daily_regular_hours: number;
|
|
22566
|
+
default_hourly_rate: number;
|
|
22567
|
+
id: string;
|
|
22568
|
+
materials_markup_percent: number;
|
|
22569
|
+
max_daily_hours: number;
|
|
22570
|
+
max_weekly_hours: number;
|
|
22571
|
+
meal_allowance_amount: number;
|
|
22572
|
+
overtime_pct_178: number;
|
|
22573
|
+
overtime_pct_189: number;
|
|
22574
|
+
overtime_pct_212: number;
|
|
22575
|
+
reminder_after_hours: number;
|
|
22576
|
+
standby_evening_amount: number;
|
|
22577
|
+
standby_weekend_amount: number;
|
|
22578
|
+
travel_cost_per_km: number | null;
|
|
22579
|
+
travel_cost_threshold_km: number | null;
|
|
22580
|
+
travel_counts_as_work: boolean;
|
|
22581
|
+
travel_hourly_rate: number;
|
|
22582
|
+
travel_rate_per_hour: number;
|
|
22583
|
+
travel_threshold_minutes: number;
|
|
22584
|
+
updated_at: string;
|
|
22585
|
+
weekend_always_212: boolean;
|
|
22586
|
+
window_end: string;
|
|
22587
|
+
window_start: string;
|
|
22588
|
+
};
|
|
22589
|
+
Insert: {
|
|
22590
|
+
auto_break_after_hours?: number;
|
|
22591
|
+
auto_break_minutes?: number;
|
|
22592
|
+
auto_break_unpaid?: boolean;
|
|
22593
|
+
auto_stop_after_hours?: number;
|
|
22594
|
+
callout_fee?: number;
|
|
22595
|
+
created_at?: string;
|
|
22596
|
+
daily_regular_hours?: number;
|
|
22597
|
+
default_hourly_rate?: number;
|
|
22598
|
+
id?: string;
|
|
22599
|
+
materials_markup_percent?: number;
|
|
22600
|
+
max_daily_hours?: number;
|
|
22601
|
+
max_weekly_hours?: number;
|
|
22602
|
+
meal_allowance_amount?: number;
|
|
22603
|
+
overtime_pct_178?: number;
|
|
22604
|
+
overtime_pct_189?: number;
|
|
22605
|
+
overtime_pct_212?: number;
|
|
22606
|
+
reminder_after_hours?: number;
|
|
22607
|
+
standby_evening_amount?: number;
|
|
22608
|
+
standby_weekend_amount?: number;
|
|
22609
|
+
travel_cost_per_km?: number | null;
|
|
22610
|
+
travel_cost_threshold_km?: number | null;
|
|
22611
|
+
travel_counts_as_work?: boolean;
|
|
22612
|
+
travel_hourly_rate?: number;
|
|
22613
|
+
travel_rate_per_hour?: number;
|
|
22614
|
+
travel_threshold_minutes?: number;
|
|
22615
|
+
updated_at?: string;
|
|
22616
|
+
weekend_always_212?: boolean;
|
|
22617
|
+
window_end?: string;
|
|
22618
|
+
window_start?: string;
|
|
22619
|
+
};
|
|
22620
|
+
Update: {
|
|
22621
|
+
auto_break_after_hours?: number;
|
|
22622
|
+
auto_break_minutes?: number;
|
|
22623
|
+
auto_break_unpaid?: boolean;
|
|
22624
|
+
auto_stop_after_hours?: number;
|
|
22625
|
+
callout_fee?: number;
|
|
22626
|
+
created_at?: string;
|
|
22627
|
+
daily_regular_hours?: number;
|
|
22628
|
+
default_hourly_rate?: number;
|
|
22629
|
+
id?: string;
|
|
22630
|
+
materials_markup_percent?: number;
|
|
22631
|
+
max_daily_hours?: number;
|
|
22632
|
+
max_weekly_hours?: number;
|
|
22633
|
+
meal_allowance_amount?: number;
|
|
22634
|
+
overtime_pct_178?: number;
|
|
22635
|
+
overtime_pct_189?: number;
|
|
22636
|
+
overtime_pct_212?: number;
|
|
22637
|
+
reminder_after_hours?: number;
|
|
22638
|
+
standby_evening_amount?: number;
|
|
22639
|
+
standby_weekend_amount?: number;
|
|
22640
|
+
travel_cost_per_km?: number | null;
|
|
22641
|
+
travel_cost_threshold_km?: number | null;
|
|
22642
|
+
travel_counts_as_work?: boolean;
|
|
22643
|
+
travel_hourly_rate?: number;
|
|
22644
|
+
travel_rate_per_hour?: number;
|
|
22645
|
+
travel_threshold_minutes?: number;
|
|
22646
|
+
updated_at?: string;
|
|
22647
|
+
weekend_always_212?: boolean;
|
|
22648
|
+
window_end?: string;
|
|
22649
|
+
window_start?: string;
|
|
22650
|
+
};
|
|
22651
|
+
Relationships: [];
|
|
22652
|
+
};
|
|
21966
22653
|
carrier_shipping_rates: {
|
|
21967
22654
|
Row: {
|
|
21968
22655
|
carrier_id: string;
|
|
@@ -28857,7 +29544,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
28857
29544
|
start_date: string;
|
|
28858
29545
|
start_time: string | null;
|
|
28859
29546
|
status: string;
|
|
28860
|
-
tenant_id: string;
|
|
28861
29547
|
updated_at: string;
|
|
28862
29548
|
user_id: string;
|
|
28863
29549
|
};
|
|
@@ -28875,7 +29561,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
28875
29561
|
start_date: string;
|
|
28876
29562
|
start_time?: string | null;
|
|
28877
29563
|
status?: string;
|
|
28878
|
-
tenant_id?: string;
|
|
28879
29564
|
updated_at?: string;
|
|
28880
29565
|
user_id: string;
|
|
28881
29566
|
};
|
|
@@ -28893,7 +29578,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
28893
29578
|
start_date?: string;
|
|
28894
29579
|
start_time?: string | null;
|
|
28895
29580
|
status?: string;
|
|
28896
|
-
tenant_id?: string;
|
|
28897
29581
|
updated_at?: string;
|
|
28898
29582
|
user_id?: string;
|
|
28899
29583
|
};
|
|
@@ -28901,13 +29585,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
28901
29585
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
28902
29586
|
columns: ["monteur_id"];
|
|
28903
29587
|
isOneToOne: false;
|
|
28904
|
-
referencedRelation: "
|
|
29588
|
+
referencedRelation: "profiles";
|
|
28905
29589
|
referencedColumns: ["id"];
|
|
28906
29590
|
}, {
|
|
28907
29591
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
28908
29592
|
columns: ["user_id"];
|
|
28909
29593
|
isOneToOne: false;
|
|
28910
|
-
referencedRelation: "
|
|
29594
|
+
referencedRelation: "profiles";
|
|
28911
29595
|
referencedColumns: ["id"];
|
|
28912
29596
|
}];
|
|
28913
29597
|
};
|
|
@@ -31062,6 +31746,90 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
31062
31746
|
};
|
|
31063
31747
|
Relationships: [];
|
|
31064
31748
|
};
|
|
31749
|
+
material_usage: {
|
|
31750
|
+
Row: {
|
|
31751
|
+
created_at: string;
|
|
31752
|
+
id: string;
|
|
31753
|
+
material_name: string;
|
|
31754
|
+
monteur_id: string | null;
|
|
31755
|
+
price_at_time: number;
|
|
31756
|
+
quantity_used: number;
|
|
31757
|
+
updated_at: string;
|
|
31758
|
+
van_inventory_id: string | null;
|
|
31759
|
+
work_order_id: string;
|
|
31760
|
+
};
|
|
31761
|
+
Insert: {
|
|
31762
|
+
created_at?: string;
|
|
31763
|
+
id?: string;
|
|
31764
|
+
material_name: string;
|
|
31765
|
+
monteur_id?: string | null;
|
|
31766
|
+
price_at_time?: number;
|
|
31767
|
+
quantity_used?: number;
|
|
31768
|
+
updated_at?: string;
|
|
31769
|
+
van_inventory_id?: string | null;
|
|
31770
|
+
work_order_id: string;
|
|
31771
|
+
};
|
|
31772
|
+
Update: {
|
|
31773
|
+
created_at?: string;
|
|
31774
|
+
id?: string;
|
|
31775
|
+
material_name?: string;
|
|
31776
|
+
monteur_id?: string | null;
|
|
31777
|
+
price_at_time?: number;
|
|
31778
|
+
quantity_used?: number;
|
|
31779
|
+
updated_at?: string;
|
|
31780
|
+
van_inventory_id?: string | null;
|
|
31781
|
+
work_order_id?: string;
|
|
31782
|
+
};
|
|
31783
|
+
Relationships: [{
|
|
31784
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
31785
|
+
columns: ["monteur_id"];
|
|
31786
|
+
isOneToOne: false;
|
|
31787
|
+
referencedRelation: "profiles";
|
|
31788
|
+
referencedColumns: ["id"];
|
|
31789
|
+
}, {
|
|
31790
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
31791
|
+
columns: ["van_inventory_id"];
|
|
31792
|
+
isOneToOne: false;
|
|
31793
|
+
referencedRelation: "van_inventories";
|
|
31794
|
+
referencedColumns: ["id"];
|
|
31795
|
+
}, {
|
|
31796
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
31797
|
+
columns: ["work_order_id"];
|
|
31798
|
+
isOneToOne: false;
|
|
31799
|
+
referencedRelation: "work_orders";
|
|
31800
|
+
referencedColumns: ["id"];
|
|
31801
|
+
}];
|
|
31802
|
+
};
|
|
31803
|
+
module_features: {
|
|
31804
|
+
Row: {
|
|
31805
|
+
created_at: string;
|
|
31806
|
+
feature_id: string;
|
|
31807
|
+
id: string;
|
|
31808
|
+
is_active: boolean;
|
|
31809
|
+
last_seen_at: string;
|
|
31810
|
+
module_id: string;
|
|
31811
|
+
name: string;
|
|
31812
|
+
};
|
|
31813
|
+
Insert: {
|
|
31814
|
+
created_at?: string;
|
|
31815
|
+
feature_id: string;
|
|
31816
|
+
id?: string;
|
|
31817
|
+
is_active?: boolean;
|
|
31818
|
+
last_seen_at?: string;
|
|
31819
|
+
module_id: string;
|
|
31820
|
+
name: string;
|
|
31821
|
+
};
|
|
31822
|
+
Update: {
|
|
31823
|
+
created_at?: string;
|
|
31824
|
+
feature_id?: string;
|
|
31825
|
+
id?: string;
|
|
31826
|
+
is_active?: boolean;
|
|
31827
|
+
last_seen_at?: string;
|
|
31828
|
+
module_id?: string;
|
|
31829
|
+
name?: string;
|
|
31830
|
+
};
|
|
31831
|
+
Relationships: [];
|
|
31832
|
+
};
|
|
31065
31833
|
module_permissions: {
|
|
31066
31834
|
Row: {
|
|
31067
31835
|
created_at: string;
|
|
@@ -31092,6 +31860,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
31092
31860
|
module_registry: {
|
|
31093
31861
|
Row: {
|
|
31094
31862
|
created_at: string;
|
|
31863
|
+
enforce: boolean;
|
|
31095
31864
|
is_active: boolean;
|
|
31096
31865
|
last_seen_at: string;
|
|
31097
31866
|
module_id: string;
|
|
@@ -31101,6 +31870,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
31101
31870
|
};
|
|
31102
31871
|
Insert: {
|
|
31103
31872
|
created_at?: string;
|
|
31873
|
+
enforce?: boolean;
|
|
31104
31874
|
is_active?: boolean;
|
|
31105
31875
|
last_seen_at?: string;
|
|
31106
31876
|
module_id: string;
|
|
@@ -31110,6 +31880,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
31110
31880
|
};
|
|
31111
31881
|
Update: {
|
|
31112
31882
|
created_at?: string;
|
|
31883
|
+
enforce?: boolean;
|
|
31113
31884
|
is_active?: boolean;
|
|
31114
31885
|
last_seen_at?: string;
|
|
31115
31886
|
module_id?: string;
|
|
@@ -31170,63 +31941,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
31170
31941
|
};
|
|
31171
31942
|
Relationships: [];
|
|
31172
31943
|
};
|
|
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
31944
|
nmbrs_component_mapping: {
|
|
31231
31945
|
Row: {
|
|
31232
31946
|
created_at: string;
|
|
@@ -31297,13 +32011,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
31297
32011
|
nmbrs_employee_number?: string;
|
|
31298
32012
|
updated_at?: string;
|
|
31299
32013
|
};
|
|
31300
|
-
Relationships: [
|
|
31301
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
31302
|
-
columns: ["monteur_id"];
|
|
31303
|
-
isOneToOne: true;
|
|
31304
|
-
referencedRelation: "monteurs";
|
|
31305
|
-
referencedColumns: ["id"];
|
|
31306
|
-
}];
|
|
32014
|
+
Relationships: [];
|
|
31307
32015
|
};
|
|
31308
32016
|
nmbrs_export_lines: {
|
|
31309
32017
|
Row: {
|
|
@@ -31352,12 +32060,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
31352
32060
|
wage_code?: string;
|
|
31353
32061
|
};
|
|
31354
32062
|
Relationships: [{
|
|
31355
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
31356
|
-
columns: ["monteur_id"];
|
|
31357
|
-
isOneToOne: false;
|
|
31358
|
-
referencedRelation: "monteurs";
|
|
31359
|
-
referencedColumns: ["id"];
|
|
31360
|
-
}, {
|
|
31361
32063
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
31362
32064
|
columns: ["run_id"];
|
|
31363
32065
|
isOneToOne: false;
|
|
@@ -33748,6 +34450,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
33748
34450
|
created_at: string;
|
|
33749
34451
|
id: string;
|
|
33750
34452
|
laatst_gezien: string;
|
|
34453
|
+
laatste_fout: string | null;
|
|
34454
|
+
laatste_request_id: number | null;
|
|
34455
|
+
mislukte_posts: number;
|
|
33751
34456
|
tick_sleutel: string;
|
|
33752
34457
|
updated_at: string;
|
|
33753
34458
|
};
|
|
@@ -33757,6 +34462,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
33757
34462
|
created_at?: string;
|
|
33758
34463
|
id?: string;
|
|
33759
34464
|
laatst_gezien?: string;
|
|
34465
|
+
laatste_fout?: string | null;
|
|
34466
|
+
laatste_request_id?: number | null;
|
|
34467
|
+
mislukte_posts?: number;
|
|
33760
34468
|
tick_sleutel?: string;
|
|
33761
34469
|
updated_at?: string;
|
|
33762
34470
|
};
|
|
@@ -33766,6 +34474,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
33766
34474
|
created_at?: string;
|
|
33767
34475
|
id?: string;
|
|
33768
34476
|
laatst_gezien?: string;
|
|
34477
|
+
laatste_fout?: string | null;
|
|
34478
|
+
laatste_request_id?: number | null;
|
|
34479
|
+
mislukte_posts?: number;
|
|
33769
34480
|
tick_sleutel?: string;
|
|
33770
34481
|
updated_at?: string;
|
|
33771
34482
|
};
|
|
@@ -35274,6 +35985,96 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
35274
35985
|
referencedColumns: ["id"];
|
|
35275
35986
|
}];
|
|
35276
35987
|
};
|
|
35988
|
+
role_assignments: {
|
|
35989
|
+
Row: {
|
|
35990
|
+
created_at: string;
|
|
35991
|
+
id: string;
|
|
35992
|
+
role_id: string;
|
|
35993
|
+
user_id: string;
|
|
35994
|
+
};
|
|
35995
|
+
Insert: {
|
|
35996
|
+
created_at?: string;
|
|
35997
|
+
id?: string;
|
|
35998
|
+
role_id: string;
|
|
35999
|
+
user_id: string;
|
|
36000
|
+
};
|
|
36001
|
+
Update: {
|
|
36002
|
+
created_at?: string;
|
|
36003
|
+
id?: string;
|
|
36004
|
+
role_id?: string;
|
|
36005
|
+
user_id?: string;
|
|
36006
|
+
};
|
|
36007
|
+
Relationships: [{
|
|
36008
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
36009
|
+
columns: ["role_id"];
|
|
36010
|
+
isOneToOne: false;
|
|
36011
|
+
referencedRelation: "roles";
|
|
36012
|
+
referencedColumns: ["id"];
|
|
36013
|
+
}];
|
|
36014
|
+
};
|
|
36015
|
+
role_permissions: {
|
|
36016
|
+
Row: {
|
|
36017
|
+
can_edit: boolean;
|
|
36018
|
+
can_view: boolean;
|
|
36019
|
+
feature_id: string;
|
|
36020
|
+
id: string;
|
|
36021
|
+
module_id: string;
|
|
36022
|
+
role_id: string;
|
|
36023
|
+
updated_at: string;
|
|
36024
|
+
};
|
|
36025
|
+
Insert: {
|
|
36026
|
+
can_edit?: boolean;
|
|
36027
|
+
can_view?: boolean;
|
|
36028
|
+
feature_id?: string;
|
|
36029
|
+
id?: string;
|
|
36030
|
+
module_id: string;
|
|
36031
|
+
role_id: string;
|
|
36032
|
+
updated_at?: string;
|
|
36033
|
+
};
|
|
36034
|
+
Update: {
|
|
36035
|
+
can_edit?: boolean;
|
|
36036
|
+
can_view?: boolean;
|
|
36037
|
+
feature_id?: string;
|
|
36038
|
+
id?: string;
|
|
36039
|
+
module_id?: string;
|
|
36040
|
+
role_id?: string;
|
|
36041
|
+
updated_at?: string;
|
|
36042
|
+
};
|
|
36043
|
+
Relationships: [{
|
|
36044
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
36045
|
+
columns: ["role_id"];
|
|
36046
|
+
isOneToOne: false;
|
|
36047
|
+
referencedRelation: "roles";
|
|
36048
|
+
referencedColumns: ["id"];
|
|
36049
|
+
}];
|
|
36050
|
+
};
|
|
36051
|
+
roles: {
|
|
36052
|
+
Row: {
|
|
36053
|
+
created_at: string;
|
|
36054
|
+
id: string;
|
|
36055
|
+
is_protected: boolean;
|
|
36056
|
+
key: string;
|
|
36057
|
+
name: string;
|
|
36058
|
+
updated_at: string;
|
|
36059
|
+
};
|
|
36060
|
+
Insert: {
|
|
36061
|
+
created_at?: string;
|
|
36062
|
+
id?: string;
|
|
36063
|
+
is_protected?: boolean;
|
|
36064
|
+
key: string;
|
|
36065
|
+
name: string;
|
|
36066
|
+
updated_at?: string;
|
|
36067
|
+
};
|
|
36068
|
+
Update: {
|
|
36069
|
+
created_at?: string;
|
|
36070
|
+
id?: string;
|
|
36071
|
+
is_protected?: boolean;
|
|
36072
|
+
key?: string;
|
|
36073
|
+
name?: string;
|
|
36074
|
+
updated_at?: string;
|
|
36075
|
+
};
|
|
36076
|
+
Relationships: [];
|
|
36077
|
+
};
|
|
35277
36078
|
rooms: {
|
|
35278
36079
|
Row: {
|
|
35279
36080
|
capacity: number;
|
|
@@ -35943,6 +36744,54 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
35943
36744
|
};
|
|
35944
36745
|
Relationships: [];
|
|
35945
36746
|
};
|
|
36747
|
+
time_compensation_entries: {
|
|
36748
|
+
Row: {
|
|
36749
|
+
created_at: string;
|
|
36750
|
+
employee_id: string;
|
|
36751
|
+
entry_date: string;
|
|
36752
|
+
id: string;
|
|
36753
|
+
km: number;
|
|
36754
|
+
meal_allowance: number;
|
|
36755
|
+
notes: string | null;
|
|
36756
|
+
standby_evening: number;
|
|
36757
|
+
standby_weekend: number;
|
|
36758
|
+
tvt_change: number;
|
|
36759
|
+
updated_at: string;
|
|
36760
|
+
};
|
|
36761
|
+
Insert: {
|
|
36762
|
+
created_at?: string;
|
|
36763
|
+
employee_id: string;
|
|
36764
|
+
entry_date: string;
|
|
36765
|
+
id?: string;
|
|
36766
|
+
km?: number;
|
|
36767
|
+
meal_allowance?: number;
|
|
36768
|
+
notes?: string | null;
|
|
36769
|
+
standby_evening?: number;
|
|
36770
|
+
standby_weekend?: number;
|
|
36771
|
+
tvt_change?: number;
|
|
36772
|
+
updated_at?: string;
|
|
36773
|
+
};
|
|
36774
|
+
Update: {
|
|
36775
|
+
created_at?: string;
|
|
36776
|
+
employee_id?: string;
|
|
36777
|
+
entry_date?: string;
|
|
36778
|
+
id?: string;
|
|
36779
|
+
km?: number;
|
|
36780
|
+
meal_allowance?: number;
|
|
36781
|
+
notes?: string | null;
|
|
36782
|
+
standby_evening?: number;
|
|
36783
|
+
standby_weekend?: number;
|
|
36784
|
+
tvt_change?: number;
|
|
36785
|
+
updated_at?: string;
|
|
36786
|
+
};
|
|
36787
|
+
Relationships: [{
|
|
36788
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
36789
|
+
columns: ["employee_id"];
|
|
36790
|
+
isOneToOne: false;
|
|
36791
|
+
referencedRelation: "profiles";
|
|
36792
|
+
referencedColumns: ["id"];
|
|
36793
|
+
}];
|
|
36794
|
+
};
|
|
35946
36795
|
time_entries: {
|
|
35947
36796
|
Row: {
|
|
35948
36797
|
created_at: string;
|
|
@@ -35977,65 +36826,170 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
35977
36826
|
undertime?: number;
|
|
35978
36827
|
updated_at?: string;
|
|
35979
36828
|
};
|
|
36829
|
+
Relationships: [];
|
|
36830
|
+
};
|
|
36831
|
+
time_log_week_approvals: {
|
|
36832
|
+
Row: {
|
|
36833
|
+
approved_at: string | null;
|
|
36834
|
+
approved_by: string | null;
|
|
36835
|
+
created_at: string;
|
|
36836
|
+
employee_id: string;
|
|
36837
|
+
id: string;
|
|
36838
|
+
locked: boolean;
|
|
36839
|
+
notes: string | null;
|
|
36840
|
+
status: string;
|
|
36841
|
+
submitted_at: string | null;
|
|
36842
|
+
updated_at: string;
|
|
36843
|
+
week_start: string;
|
|
36844
|
+
};
|
|
36845
|
+
Insert: {
|
|
36846
|
+
approved_at?: string | null;
|
|
36847
|
+
approved_by?: string | null;
|
|
36848
|
+
created_at?: string;
|
|
36849
|
+
employee_id: string;
|
|
36850
|
+
id?: string;
|
|
36851
|
+
locked?: boolean;
|
|
36852
|
+
notes?: string | null;
|
|
36853
|
+
status?: string;
|
|
36854
|
+
submitted_at?: string | null;
|
|
36855
|
+
updated_at?: string;
|
|
36856
|
+
week_start: string;
|
|
36857
|
+
};
|
|
36858
|
+
Update: {
|
|
36859
|
+
approved_at?: string | null;
|
|
36860
|
+
approved_by?: string | null;
|
|
36861
|
+
created_at?: string;
|
|
36862
|
+
employee_id?: string;
|
|
36863
|
+
id?: string;
|
|
36864
|
+
locked?: boolean;
|
|
36865
|
+
notes?: string | null;
|
|
36866
|
+
status?: string;
|
|
36867
|
+
submitted_at?: string | null;
|
|
36868
|
+
updated_at?: string;
|
|
36869
|
+
week_start?: string;
|
|
36870
|
+
};
|
|
35980
36871
|
Relationships: [{
|
|
35981
|
-
foreignKeyName: "
|
|
36872
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
35982
36873
|
columns: ["employee_id"];
|
|
35983
36874
|
isOneToOne: false;
|
|
35984
|
-
referencedRelation: "
|
|
36875
|
+
referencedRelation: "profiles";
|
|
35985
36876
|
referencedColumns: ["id"];
|
|
35986
36877
|
}];
|
|
35987
36878
|
};
|
|
35988
36879
|
time_logs: {
|
|
35989
36880
|
Row: {
|
|
36881
|
+
auto_stop_reason: string | null;
|
|
36882
|
+
auto_stopped: boolean;
|
|
35990
36883
|
created_at: string;
|
|
36884
|
+
current_latitude: number | null;
|
|
36885
|
+
current_longitude: number | null;
|
|
36886
|
+
current_position_updated_at: string | null;
|
|
35991
36887
|
employee_id: string;
|
|
36888
|
+
end_latitude: number | null;
|
|
36889
|
+
end_longitude: number | null;
|
|
35992
36890
|
end_time: string | null;
|
|
36891
|
+
eta_distance_km: number | null;
|
|
36892
|
+
eta_minutes: number | null;
|
|
36893
|
+
eta_updated_at: string | null;
|
|
36894
|
+
hour_category: string | null;
|
|
35993
36895
|
id: string;
|
|
36896
|
+
last_reminder_at: string | null;
|
|
35994
36897
|
notes: string | null;
|
|
35995
36898
|
overtime_hours: number;
|
|
35996
36899
|
overtime_type: string | null;
|
|
35997
36900
|
regular_hours: number;
|
|
36901
|
+
reminder_count: number;
|
|
36902
|
+
requires_review: boolean;
|
|
36903
|
+
start_latitude: number | null;
|
|
36904
|
+
start_longitude: number | null;
|
|
35998
36905
|
start_time: string;
|
|
35999
36906
|
travel_cost: number | null;
|
|
36000
36907
|
travel_distance_km: number | null;
|
|
36908
|
+
travel_duration_min: number | null;
|
|
36909
|
+
travel_time_minutes: number | null;
|
|
36001
36910
|
type: string;
|
|
36002
36911
|
updated_at: string;
|
|
36912
|
+
work_order_id: string | null;
|
|
36003
36913
|
};
|
|
36004
36914
|
Insert: {
|
|
36915
|
+
auto_stop_reason?: string | null;
|
|
36916
|
+
auto_stopped?: boolean;
|
|
36005
36917
|
created_at?: string;
|
|
36918
|
+
current_latitude?: number | null;
|
|
36919
|
+
current_longitude?: number | null;
|
|
36920
|
+
current_position_updated_at?: string | null;
|
|
36006
36921
|
employee_id: string;
|
|
36922
|
+
end_latitude?: number | null;
|
|
36923
|
+
end_longitude?: number | null;
|
|
36007
36924
|
end_time?: string | null;
|
|
36925
|
+
eta_distance_km?: number | null;
|
|
36926
|
+
eta_minutes?: number | null;
|
|
36927
|
+
eta_updated_at?: string | null;
|
|
36928
|
+
hour_category?: string | null;
|
|
36008
36929
|
id?: string;
|
|
36930
|
+
last_reminder_at?: string | null;
|
|
36009
36931
|
notes?: string | null;
|
|
36010
36932
|
overtime_hours?: number;
|
|
36011
36933
|
overtime_type?: string | null;
|
|
36012
36934
|
regular_hours?: number;
|
|
36935
|
+
reminder_count?: number;
|
|
36936
|
+
requires_review?: boolean;
|
|
36937
|
+
start_latitude?: number | null;
|
|
36938
|
+
start_longitude?: number | null;
|
|
36013
36939
|
start_time?: string;
|
|
36014
36940
|
travel_cost?: number | null;
|
|
36015
36941
|
travel_distance_km?: number | null;
|
|
36942
|
+
travel_duration_min?: number | null;
|
|
36943
|
+
travel_time_minutes?: number | null;
|
|
36016
36944
|
type: string;
|
|
36017
36945
|
updated_at?: string;
|
|
36946
|
+
work_order_id?: string | null;
|
|
36018
36947
|
};
|
|
36019
36948
|
Update: {
|
|
36949
|
+
auto_stop_reason?: string | null;
|
|
36950
|
+
auto_stopped?: boolean;
|
|
36020
36951
|
created_at?: string;
|
|
36952
|
+
current_latitude?: number | null;
|
|
36953
|
+
current_longitude?: number | null;
|
|
36954
|
+
current_position_updated_at?: string | null;
|
|
36021
36955
|
employee_id?: string;
|
|
36956
|
+
end_latitude?: number | null;
|
|
36957
|
+
end_longitude?: number | null;
|
|
36022
36958
|
end_time?: string | null;
|
|
36959
|
+
eta_distance_km?: number | null;
|
|
36960
|
+
eta_minutes?: number | null;
|
|
36961
|
+
eta_updated_at?: string | null;
|
|
36962
|
+
hour_category?: string | null;
|
|
36023
36963
|
id?: string;
|
|
36964
|
+
last_reminder_at?: string | null;
|
|
36024
36965
|
notes?: string | null;
|
|
36025
36966
|
overtime_hours?: number;
|
|
36026
36967
|
overtime_type?: string | null;
|
|
36027
36968
|
regular_hours?: number;
|
|
36969
|
+
reminder_count?: number;
|
|
36970
|
+
requires_review?: boolean;
|
|
36971
|
+
start_latitude?: number | null;
|
|
36972
|
+
start_longitude?: number | null;
|
|
36028
36973
|
start_time?: string;
|
|
36029
36974
|
travel_cost?: number | null;
|
|
36030
36975
|
travel_distance_km?: number | null;
|
|
36976
|
+
travel_duration_min?: number | null;
|
|
36977
|
+
travel_time_minutes?: number | null;
|
|
36031
36978
|
type?: string;
|
|
36032
36979
|
updated_at?: string;
|
|
36980
|
+
work_order_id?: string | null;
|
|
36033
36981
|
};
|
|
36034
36982
|
Relationships: [{
|
|
36035
36983
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
36036
36984
|
columns: ["employee_id"];
|
|
36037
36985
|
isOneToOne: false;
|
|
36038
|
-
referencedRelation: "
|
|
36986
|
+
referencedRelation: "profiles";
|
|
36987
|
+
referencedColumns: ["id"];
|
|
36988
|
+
}, {
|
|
36989
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
36990
|
+
columns: ["work_order_id"];
|
|
36991
|
+
isOneToOne: false;
|
|
36992
|
+
referencedRelation: "work_orders";
|
|
36039
36993
|
referencedColumns: ["id"];
|
|
36040
36994
|
}];
|
|
36041
36995
|
};
|
|
@@ -36074,7 +37028,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
36074
37028
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
36075
37029
|
columns: ["employee_id"];
|
|
36076
37030
|
isOneToOne: false;
|
|
36077
|
-
referencedRelation: "
|
|
37031
|
+
referencedRelation: "profiles";
|
|
36078
37032
|
referencedColumns: ["id"];
|
|
36079
37033
|
}];
|
|
36080
37034
|
};
|
|
@@ -36384,6 +37338,39 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
36384
37338
|
};
|
|
36385
37339
|
Relationships: [];
|
|
36386
37340
|
};
|
|
37341
|
+
twinfield_cron_locks: {
|
|
37342
|
+
Row: {
|
|
37343
|
+
created_at: string;
|
|
37344
|
+
heartbeat_at: string;
|
|
37345
|
+
job_name: string;
|
|
37346
|
+
last_error: string | null;
|
|
37347
|
+
last_finished_at: string | null;
|
|
37348
|
+
locked_at: string;
|
|
37349
|
+
run_id: string;
|
|
37350
|
+
updated_at: string;
|
|
37351
|
+
};
|
|
37352
|
+
Insert: {
|
|
37353
|
+
created_at?: string;
|
|
37354
|
+
heartbeat_at?: string;
|
|
37355
|
+
job_name: string;
|
|
37356
|
+
last_error?: string | null;
|
|
37357
|
+
last_finished_at?: string | null;
|
|
37358
|
+
locked_at?: string;
|
|
37359
|
+
run_id?: string;
|
|
37360
|
+
updated_at?: string;
|
|
37361
|
+
};
|
|
37362
|
+
Update: {
|
|
37363
|
+
created_at?: string;
|
|
37364
|
+
heartbeat_at?: string;
|
|
37365
|
+
job_name?: string;
|
|
37366
|
+
last_error?: string | null;
|
|
37367
|
+
last_finished_at?: string | null;
|
|
37368
|
+
locked_at?: string;
|
|
37369
|
+
run_id?: string;
|
|
37370
|
+
updated_at?: string;
|
|
37371
|
+
};
|
|
37372
|
+
Relationships: [];
|
|
37373
|
+
};
|
|
36387
37374
|
twinfield_customers: {
|
|
36388
37375
|
Row: {
|
|
36389
37376
|
address: string | null;
|
|
@@ -36984,6 +37971,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
36984
37971
|
twinfield_push_queue: {
|
|
36985
37972
|
Row: {
|
|
36986
37973
|
action: string;
|
|
37974
|
+
attempt_started_at: string | null;
|
|
36987
37975
|
attempts: number;
|
|
36988
37976
|
connection_id: string | null;
|
|
36989
37977
|
created_at: string;
|
|
@@ -37000,6 +37988,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
37000
37988
|
};
|
|
37001
37989
|
Insert: {
|
|
37002
37990
|
action?: string;
|
|
37991
|
+
attempt_started_at?: string | null;
|
|
37003
37992
|
attempts?: number;
|
|
37004
37993
|
connection_id?: string | null;
|
|
37005
37994
|
created_at?: string;
|
|
@@ -37016,6 +38005,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
37016
38005
|
};
|
|
37017
38006
|
Update: {
|
|
37018
38007
|
action?: string;
|
|
38008
|
+
attempt_started_at?: string | null;
|
|
37019
38009
|
attempts?: number;
|
|
37020
38010
|
connection_id?: string | null;
|
|
37021
38011
|
created_at?: string;
|
|
@@ -37213,13 +38203,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
37213
38203
|
workday_end?: string | null;
|
|
37214
38204
|
workday_start?: string | null;
|
|
37215
38205
|
};
|
|
37216
|
-
Relationships: [
|
|
37217
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
37218
|
-
columns: ["monteur_id"];
|
|
37219
|
-
isOneToOne: true;
|
|
37220
|
-
referencedRelation: "monteurs";
|
|
37221
|
-
referencedColumns: ["id"];
|
|
37222
|
-
}];
|
|
38206
|
+
Relationships: [];
|
|
37223
38207
|
};
|
|
37224
38208
|
uren_entries: {
|
|
37225
38209
|
Row: {
|
|
@@ -37265,12 +38249,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
37265
38249
|
werkbon_id?: string | null;
|
|
37266
38250
|
};
|
|
37267
38251
|
Relationships: [{
|
|
37268
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
37269
|
-
columns: ["monteur_id"];
|
|
37270
|
-
isOneToOne: false;
|
|
37271
|
-
referencedRelation: "monteurs";
|
|
37272
|
-
referencedColumns: ["id"];
|
|
37273
|
-
}, {
|
|
37274
38252
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
37275
38253
|
columns: ["werkbon_id"];
|
|
37276
38254
|
isOneToOne: false;
|
|
@@ -37738,17 +38716,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
37738
38716
|
submitted_at?: string | null;
|
|
37739
38717
|
updated_at?: string;
|
|
37740
38718
|
};
|
|
37741
|
-
Relationships: [
|
|
37742
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
37743
|
-
columns: ["monteur_id"];
|
|
37744
|
-
isOneToOne: false;
|
|
37745
|
-
referencedRelation: "monteurs";
|
|
37746
|
-
referencedColumns: ["id"];
|
|
37747
|
-
}];
|
|
38719
|
+
Relationships: [];
|
|
37748
38720
|
};
|
|
37749
38721
|
user_module_permissions: {
|
|
37750
38722
|
Row: {
|
|
37751
38723
|
created_at: string;
|
|
38724
|
+
feature_id: string;
|
|
37752
38725
|
id: string;
|
|
37753
38726
|
module_id: string;
|
|
37754
38727
|
permission: string;
|
|
@@ -37757,6 +38730,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
37757
38730
|
};
|
|
37758
38731
|
Insert: {
|
|
37759
38732
|
created_at?: string;
|
|
38733
|
+
feature_id?: string;
|
|
37760
38734
|
id?: string;
|
|
37761
38735
|
module_id: string;
|
|
37762
38736
|
permission: string;
|
|
@@ -37765,6 +38739,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
37765
38739
|
};
|
|
37766
38740
|
Update: {
|
|
37767
38741
|
created_at?: string;
|
|
38742
|
+
feature_id?: string;
|
|
37768
38743
|
id?: string;
|
|
37769
38744
|
module_id?: string;
|
|
37770
38745
|
permission?: string;
|
|
@@ -37800,6 +38775,51 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
37800
38775
|
referencedColumns: ["id"];
|
|
37801
38776
|
}];
|
|
37802
38777
|
};
|
|
38778
|
+
van_inventories: {
|
|
38779
|
+
Row: {
|
|
38780
|
+
barcode: string | null;
|
|
38781
|
+
created_at: string;
|
|
38782
|
+
id: string;
|
|
38783
|
+
monteur_id: string | null;
|
|
38784
|
+
price_per_unit: number;
|
|
38785
|
+
product_name: string;
|
|
38786
|
+
quantity_current: number;
|
|
38787
|
+
quantity_min: number;
|
|
38788
|
+
unit: string;
|
|
38789
|
+
updated_at: string;
|
|
38790
|
+
};
|
|
38791
|
+
Insert: {
|
|
38792
|
+
barcode?: string | null;
|
|
38793
|
+
created_at?: string;
|
|
38794
|
+
id?: string;
|
|
38795
|
+
monteur_id?: string | null;
|
|
38796
|
+
price_per_unit?: number;
|
|
38797
|
+
product_name: string;
|
|
38798
|
+
quantity_current?: number;
|
|
38799
|
+
quantity_min?: number;
|
|
38800
|
+
unit?: string;
|
|
38801
|
+
updated_at?: string;
|
|
38802
|
+
};
|
|
38803
|
+
Update: {
|
|
38804
|
+
barcode?: string | null;
|
|
38805
|
+
created_at?: string;
|
|
38806
|
+
id?: string;
|
|
38807
|
+
monteur_id?: string | null;
|
|
38808
|
+
price_per_unit?: number;
|
|
38809
|
+
product_name?: string;
|
|
38810
|
+
quantity_current?: number;
|
|
38811
|
+
quantity_min?: number;
|
|
38812
|
+
unit?: string;
|
|
38813
|
+
updated_at?: string;
|
|
38814
|
+
};
|
|
38815
|
+
Relationships: [{
|
|
38816
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
38817
|
+
columns: ["monteur_id"];
|
|
38818
|
+
isOneToOne: false;
|
|
38819
|
+
referencedRelation: "profiles";
|
|
38820
|
+
referencedColumns: ["id"];
|
|
38821
|
+
}];
|
|
38822
|
+
};
|
|
37803
38823
|
voorraad_custom_fields: {
|
|
37804
38824
|
Row: {
|
|
37805
38825
|
created_at: string;
|
|
@@ -38750,7 +39770,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
38750
39770
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
38751
39771
|
columns: ["monteur_id"];
|
|
38752
39772
|
isOneToOne: false;
|
|
38753
|
-
referencedRelation: "
|
|
39773
|
+
referencedRelation: "profiles";
|
|
38754
39774
|
referencedColumns: ["id"];
|
|
38755
39775
|
}, {
|
|
38756
39776
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -38760,6 +39780,60 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
38760
39780
|
referencedColumns: ["id"];
|
|
38761
39781
|
}];
|
|
38762
39782
|
};
|
|
39783
|
+
work_order_photos: {
|
|
39784
|
+
Row: {
|
|
39785
|
+
ai_caption: string | null;
|
|
39786
|
+
ai_categorized_at: string | null;
|
|
39787
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
39788
|
+
caption: string | null;
|
|
39789
|
+
created_at: string;
|
|
39790
|
+
id: string;
|
|
39791
|
+
monteur_id: string | null;
|
|
39792
|
+
photo_type: string;
|
|
39793
|
+
storage_path: string;
|
|
39794
|
+
updated_at: string;
|
|
39795
|
+
work_order_id: string;
|
|
39796
|
+
};
|
|
39797
|
+
Insert: {
|
|
39798
|
+
ai_caption?: string | null;
|
|
39799
|
+
ai_categorized_at?: string | null;
|
|
39800
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
39801
|
+
caption?: string | null;
|
|
39802
|
+
created_at?: string;
|
|
39803
|
+
id?: string;
|
|
39804
|
+
monteur_id?: string | null;
|
|
39805
|
+
photo_type?: string;
|
|
39806
|
+
storage_path: string;
|
|
39807
|
+
updated_at?: string;
|
|
39808
|
+
work_order_id: string;
|
|
39809
|
+
};
|
|
39810
|
+
Update: {
|
|
39811
|
+
ai_caption?: string | null;
|
|
39812
|
+
ai_categorized_at?: string | null;
|
|
39813
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
39814
|
+
caption?: string | null;
|
|
39815
|
+
created_at?: string;
|
|
39816
|
+
id?: string;
|
|
39817
|
+
monteur_id?: string | null;
|
|
39818
|
+
photo_type?: string;
|
|
39819
|
+
storage_path?: string;
|
|
39820
|
+
updated_at?: string;
|
|
39821
|
+
work_order_id?: string;
|
|
39822
|
+
};
|
|
39823
|
+
Relationships: [{
|
|
39824
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
39825
|
+
columns: ["monteur_id"];
|
|
39826
|
+
isOneToOne: false;
|
|
39827
|
+
referencedRelation: "profiles";
|
|
39828
|
+
referencedColumns: ["id"];
|
|
39829
|
+
}, {
|
|
39830
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
39831
|
+
columns: ["work_order_id"];
|
|
39832
|
+
isOneToOne: false;
|
|
39833
|
+
referencedRelation: "work_orders";
|
|
39834
|
+
referencedColumns: ["id"];
|
|
39835
|
+
}];
|
|
39836
|
+
};
|
|
38763
39837
|
work_orders: {
|
|
38764
39838
|
Row: {
|
|
38765
39839
|
assigned_to: string | null;
|
|
@@ -38791,7 +39865,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
38791
39865
|
scheduled_end_time: string | null;
|
|
38792
39866
|
scheduled_start_time: string | null;
|
|
38793
39867
|
status: string;
|
|
38794
|
-
tenant_id: string;
|
|
38795
39868
|
total_hours_worked: number | null;
|
|
38796
39869
|
total_price: number | null;
|
|
38797
39870
|
travel_time_minutes: number | null;
|
|
@@ -38829,7 +39902,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
38829
39902
|
scheduled_end_time?: string | null;
|
|
38830
39903
|
scheduled_start_time?: string | null;
|
|
38831
39904
|
status?: string;
|
|
38832
|
-
tenant_id: string;
|
|
38833
39905
|
total_hours_worked?: number | null;
|
|
38834
39906
|
total_price?: number | null;
|
|
38835
39907
|
travel_time_minutes?: number | null;
|
|
@@ -38867,7 +39939,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
38867
39939
|
scheduled_end_time?: string | null;
|
|
38868
39940
|
scheduled_start_time?: string | null;
|
|
38869
39941
|
status?: string;
|
|
38870
|
-
tenant_id?: string;
|
|
38871
39942
|
total_hours_worked?: number | null;
|
|
38872
39943
|
total_price?: number | null;
|
|
38873
39944
|
travel_time_minutes?: number | null;
|
|
@@ -38881,12 +39952,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
38881
39952
|
isOneToOne: false;
|
|
38882
39953
|
referencedRelation: "work_orders";
|
|
38883
39954
|
referencedColumns: ["id"];
|
|
38884
|
-
}, {
|
|
38885
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
38886
|
-
columns: ["tenant_id"];
|
|
38887
|
-
isOneToOne: false;
|
|
38888
|
-
referencedRelation: "tenants";
|
|
38889
|
-
referencedColumns: ["id"];
|
|
38890
39955
|
}];
|
|
38891
39956
|
};
|
|
38892
39957
|
};
|
|
@@ -39571,6 +40636,19 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
39571
40636
|
};
|
|
39572
40637
|
Returns: undefined;
|
|
39573
40638
|
};
|
|
40639
|
+
approve_mailbox_order_proposal: {
|
|
40640
|
+
Args: {
|
|
40641
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
40642
|
+
p_customer_id: string;
|
|
40643
|
+
p_delivery_date: string;
|
|
40644
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
40645
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
40646
|
+
p_notes: string;
|
|
40647
|
+
p_proposal_id: string;
|
|
40648
|
+
p_reviewed_by: string;
|
|
40649
|
+
};
|
|
40650
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
40651
|
+
};
|
|
39574
40652
|
assign_cart_numbers: {
|
|
39575
40653
|
Args: {
|
|
39576
40654
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -39622,6 +40700,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
39622
40700
|
};
|
|
39623
40701
|
Returns: number;
|
|
39624
40702
|
};
|
|
40703
|
+
can_manage_hours: {
|
|
40704
|
+
Args: never;
|
|
40705
|
+
Returns: boolean;
|
|
40706
|
+
};
|
|
39625
40707
|
check_offer_product_available_stock: {
|
|
39626
40708
|
Args: {
|
|
39627
40709
|
p_campaign_product_id: string;
|
|
@@ -39811,6 +40893,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
39811
40893
|
};
|
|
39812
40894
|
Returns: {
|
|
39813
40895
|
action: string;
|
|
40896
|
+
attempt_started_at: string | null;
|
|
39814
40897
|
attempts: number;
|
|
39815
40898
|
connection_id: string | null;
|
|
39816
40899
|
created_at: string;
|
|
@@ -39898,6 +40981,30 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
39898
40981
|
agent_naam: string;
|
|
39899
40982
|
}[];
|
|
39900
40983
|
};
|
|
40984
|
+
consume_van_inventory: {
|
|
40985
|
+
Args: {
|
|
40986
|
+
p_inventory_id: string;
|
|
40987
|
+
p_quantity: number;
|
|
40988
|
+
};
|
|
40989
|
+
Returns: {
|
|
40990
|
+
barcode: string | null;
|
|
40991
|
+
created_at: string;
|
|
40992
|
+
id: string;
|
|
40993
|
+
monteur_id: string | null;
|
|
40994
|
+
price_per_unit: number;
|
|
40995
|
+
product_name: string;
|
|
40996
|
+
quantity_current: number;
|
|
40997
|
+
quantity_min: number;
|
|
40998
|
+
unit: string;
|
|
40999
|
+
updated_at: string;
|
|
41000
|
+
};
|
|
41001
|
+
SetofOptions: {
|
|
41002
|
+
from: "*";
|
|
41003
|
+
to: "van_inventories";
|
|
41004
|
+
isOneToOne: true;
|
|
41005
|
+
isSetofReturn: false;
|
|
41006
|
+
};
|
|
41007
|
+
};
|
|
39901
41008
|
control_get_todays_carts: {
|
|
39902
41009
|
Args: never;
|
|
39903
41010
|
Returns: {
|
|
@@ -39971,6 +41078,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
39971
41078
|
_user_id: string;
|
|
39972
41079
|
};
|
|
39973
41080
|
Returns: string;
|
|
41081
|
+
} | {
|
|
41082
|
+
Args: {
|
|
41083
|
+
_feature_id: string;
|
|
41084
|
+
_module_id: string;
|
|
41085
|
+
_user_id: string;
|
|
41086
|
+
};
|
|
41087
|
+
Returns: string;
|
|
39974
41088
|
};
|
|
39975
41089
|
email_auth_decrypt: {
|
|
39976
41090
|
Args: {
|
|
@@ -40322,12 +41436,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
40322
41436
|
Args: never;
|
|
40323
41437
|
Returns: string;
|
|
40324
41438
|
};
|
|
40325
|
-
get_work_order_tenant_id: {
|
|
40326
|
-
Args: {
|
|
40327
|
-
wo_id: string;
|
|
40328
|
-
};
|
|
40329
|
-
Returns: string;
|
|
40330
|
-
};
|
|
40331
41439
|
has_module_permission: {
|
|
40332
41440
|
Args: {
|
|
40333
41441
|
_min: string;
|
|
@@ -40361,6 +41469,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
40361
41469
|
};
|
|
40362
41470
|
Returns: boolean;
|
|
40363
41471
|
};
|
|
41472
|
+
is_time_log_week_locked: {
|
|
41473
|
+
Args: {
|
|
41474
|
+
p_employee_id: string;
|
|
41475
|
+
p_start_time: string;
|
|
41476
|
+
};
|
|
41477
|
+
Returns: boolean;
|
|
41478
|
+
};
|
|
40364
41479
|
is_user_admin: {
|
|
40365
41480
|
Args: never;
|
|
40366
41481
|
Returns: boolean;
|
|
@@ -40375,13 +41490,14 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
40375
41490
|
};
|
|
40376
41491
|
Returns: boolean;
|
|
40377
41492
|
};
|
|
40378
|
-
|
|
41493
|
+
list_medewerkers: {
|
|
40379
41494
|
Args: never;
|
|
40380
41495
|
Returns: {
|
|
40381
41496
|
avatar_url: string;
|
|
40382
41497
|
display_name: string;
|
|
40383
41498
|
email: string;
|
|
40384
41499
|
id: string;
|
|
41500
|
+
roles: string[];
|
|
40385
41501
|
}[];
|
|
40386
41502
|
};
|
|
40387
41503
|
list_my_planning_items: {
|
|
@@ -40707,17 +41823,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
40707
41823
|
Returns: string;
|
|
40708
41824
|
};
|
|
40709
41825
|
logistics_emit_event: {
|
|
40710
|
-
Args: {
|
|
40711
|
-
p_event_type: string;
|
|
40712
|
-
p_idempotency_key?: string;
|
|
40713
|
-
p_order_ref: string;
|
|
40714
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
40715
|
-
p_shadow?: boolean;
|
|
40716
|
-
p_source_module: string;
|
|
40717
|
-
p_strategy_id?: string;
|
|
40718
|
-
};
|
|
40719
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
40720
|
-
} | {
|
|
40721
41826
|
Args: {
|
|
40722
41827
|
p_event_type: string;
|
|
40723
41828
|
p_idempotency_key?: string;
|
|
@@ -41172,6 +42277,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
41172
42277
|
my_module_permissions: {
|
|
41173
42278
|
Args: never;
|
|
41174
42279
|
Returns: {
|
|
42280
|
+
feature_id: string;
|
|
41175
42281
|
module_id: string;
|
|
41176
42282
|
permission: string;
|
|
41177
42283
|
}[];
|
|
@@ -42052,6 +43158,16 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
42052
43158
|
};
|
|
42053
43159
|
Returns: string[];
|
|
42054
43160
|
};
|
|
43161
|
+
switch_time_log: {
|
|
43162
|
+
Args: {
|
|
43163
|
+
p_employee_id: string;
|
|
43164
|
+
p_start_lat?: number;
|
|
43165
|
+
p_start_lng?: number;
|
|
43166
|
+
p_type: string;
|
|
43167
|
+
p_work_order_id?: string;
|
|
43168
|
+
};
|
|
43169
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43170
|
+
};
|
|
42055
43171
|
sync_all_layer_stocks: {
|
|
42056
43172
|
Args: never;
|
|
42057
43173
|
Returns: undefined;
|
|
@@ -42102,6 +43218,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
42102
43218
|
};
|
|
42103
43219
|
Returns: boolean;
|
|
42104
43220
|
};
|
|
43221
|
+
twinfield_cron_lock_acquire: {
|
|
43222
|
+
Args: {
|
|
43223
|
+
_job_name: string;
|
|
43224
|
+
_stale_seconds?: number;
|
|
43225
|
+
};
|
|
43226
|
+
Returns: boolean;
|
|
43227
|
+
};
|
|
43228
|
+
twinfield_cron_lock_release: {
|
|
43229
|
+
Args: {
|
|
43230
|
+
_error?: string;
|
|
43231
|
+
_job_name: string;
|
|
43232
|
+
};
|
|
43233
|
+
Returns: undefined;
|
|
43234
|
+
};
|
|
43235
|
+
twinfield_prune_push_queue: {
|
|
43236
|
+
Args: never;
|
|
43237
|
+
Returns: number;
|
|
43238
|
+
};
|
|
42105
43239
|
twinfield_register_cron: {
|
|
42106
43240
|
Args: {
|
|
42107
43241
|
apikey?: string;
|
|
@@ -42145,7 +43279,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
42145
43279
|
Enums: {
|
|
42146
43280
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
42147
43281
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
42148
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
43282
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
42149
43283
|
doc_orientation: "portrait" | "landscape";
|
|
42150
43284
|
exact_env: "staging" | "live";
|
|
42151
43285
|
exact_push_status: "pending" | "sent" | "error";
|