@flowselections/floriday-afhandeling-module 1.0.31 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/ControlePage.js +23 -10
- package/dist-lib/components/afhandeling/VervoerdersPage.d.ts +8 -1
- package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/VervoerdersPage.js +17 -2
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +678 -116
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +678 -116
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +678 -116
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +694 -127
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +1356 -232
- package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
- package/dist-lib/lib/carriers.functions.d.ts +3390 -580
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartAssignments.functions.d.ts +3390 -580
- package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.d.ts +6780 -1160
- package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.d.ts +678 -116
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/package.json +1 -7
|
@@ -895,6 +895,126 @@ export type Database = {
|
|
|
895
895
|
};
|
|
896
896
|
Relationships: [];
|
|
897
897
|
};
|
|
898
|
+
cao_holidays: {
|
|
899
|
+
Row: {
|
|
900
|
+
created_at: string;
|
|
901
|
+
description: string | null;
|
|
902
|
+
holiday_date: string;
|
|
903
|
+
id: string;
|
|
904
|
+
updated_at: string;
|
|
905
|
+
};
|
|
906
|
+
Insert: {
|
|
907
|
+
created_at?: string;
|
|
908
|
+
description?: string | null;
|
|
909
|
+
holiday_date: string;
|
|
910
|
+
id?: string;
|
|
911
|
+
updated_at?: string;
|
|
912
|
+
};
|
|
913
|
+
Update: {
|
|
914
|
+
created_at?: string;
|
|
915
|
+
description?: string | null;
|
|
916
|
+
holiday_date?: string;
|
|
917
|
+
id?: string;
|
|
918
|
+
updated_at?: string;
|
|
919
|
+
};
|
|
920
|
+
Relationships: [];
|
|
921
|
+
};
|
|
922
|
+
cao_settings: {
|
|
923
|
+
Row: {
|
|
924
|
+
auto_break_after_hours: number;
|
|
925
|
+
auto_break_minutes: number;
|
|
926
|
+
auto_break_unpaid: boolean;
|
|
927
|
+
auto_stop_after_hours: number;
|
|
928
|
+
callout_fee: number;
|
|
929
|
+
created_at: string;
|
|
930
|
+
daily_regular_hours: number;
|
|
931
|
+
default_hourly_rate: number;
|
|
932
|
+
id: string;
|
|
933
|
+
materials_markup_percent: number;
|
|
934
|
+
max_daily_hours: number;
|
|
935
|
+
max_weekly_hours: number;
|
|
936
|
+
meal_allowance_amount: number;
|
|
937
|
+
overtime_pct_178: number;
|
|
938
|
+
overtime_pct_189: number;
|
|
939
|
+
overtime_pct_212: number;
|
|
940
|
+
reminder_after_hours: number;
|
|
941
|
+
standby_evening_amount: number;
|
|
942
|
+
standby_weekend_amount: number;
|
|
943
|
+
travel_cost_per_km: number | null;
|
|
944
|
+
travel_cost_threshold_km: number | null;
|
|
945
|
+
travel_counts_as_work: boolean;
|
|
946
|
+
travel_hourly_rate: number;
|
|
947
|
+
travel_rate_per_hour: number;
|
|
948
|
+
travel_threshold_minutes: number;
|
|
949
|
+
updated_at: string;
|
|
950
|
+
weekend_always_212: boolean;
|
|
951
|
+
window_end: string;
|
|
952
|
+
window_start: string;
|
|
953
|
+
};
|
|
954
|
+
Insert: {
|
|
955
|
+
auto_break_after_hours?: number;
|
|
956
|
+
auto_break_minutes?: number;
|
|
957
|
+
auto_break_unpaid?: boolean;
|
|
958
|
+
auto_stop_after_hours?: number;
|
|
959
|
+
callout_fee?: number;
|
|
960
|
+
created_at?: string;
|
|
961
|
+
daily_regular_hours?: number;
|
|
962
|
+
default_hourly_rate?: number;
|
|
963
|
+
id?: string;
|
|
964
|
+
materials_markup_percent?: number;
|
|
965
|
+
max_daily_hours?: number;
|
|
966
|
+
max_weekly_hours?: number;
|
|
967
|
+
meal_allowance_amount?: number;
|
|
968
|
+
overtime_pct_178?: number;
|
|
969
|
+
overtime_pct_189?: number;
|
|
970
|
+
overtime_pct_212?: number;
|
|
971
|
+
reminder_after_hours?: number;
|
|
972
|
+
standby_evening_amount?: number;
|
|
973
|
+
standby_weekend_amount?: number;
|
|
974
|
+
travel_cost_per_km?: number | null;
|
|
975
|
+
travel_cost_threshold_km?: number | null;
|
|
976
|
+
travel_counts_as_work?: boolean;
|
|
977
|
+
travel_hourly_rate?: number;
|
|
978
|
+
travel_rate_per_hour?: number;
|
|
979
|
+
travel_threshold_minutes?: number;
|
|
980
|
+
updated_at?: string;
|
|
981
|
+
weekend_always_212?: boolean;
|
|
982
|
+
window_end?: string;
|
|
983
|
+
window_start?: string;
|
|
984
|
+
};
|
|
985
|
+
Update: {
|
|
986
|
+
auto_break_after_hours?: number;
|
|
987
|
+
auto_break_minutes?: number;
|
|
988
|
+
auto_break_unpaid?: boolean;
|
|
989
|
+
auto_stop_after_hours?: number;
|
|
990
|
+
callout_fee?: number;
|
|
991
|
+
created_at?: string;
|
|
992
|
+
daily_regular_hours?: number;
|
|
993
|
+
default_hourly_rate?: number;
|
|
994
|
+
id?: string;
|
|
995
|
+
materials_markup_percent?: number;
|
|
996
|
+
max_daily_hours?: number;
|
|
997
|
+
max_weekly_hours?: number;
|
|
998
|
+
meal_allowance_amount?: number;
|
|
999
|
+
overtime_pct_178?: number;
|
|
1000
|
+
overtime_pct_189?: number;
|
|
1001
|
+
overtime_pct_212?: number;
|
|
1002
|
+
reminder_after_hours?: number;
|
|
1003
|
+
standby_evening_amount?: number;
|
|
1004
|
+
standby_weekend_amount?: number;
|
|
1005
|
+
travel_cost_per_km?: number | null;
|
|
1006
|
+
travel_cost_threshold_km?: number | null;
|
|
1007
|
+
travel_counts_as_work?: boolean;
|
|
1008
|
+
travel_hourly_rate?: number;
|
|
1009
|
+
travel_rate_per_hour?: number;
|
|
1010
|
+
travel_threshold_minutes?: number;
|
|
1011
|
+
updated_at?: string;
|
|
1012
|
+
weekend_always_212?: boolean;
|
|
1013
|
+
window_end?: string;
|
|
1014
|
+
window_start?: string;
|
|
1015
|
+
};
|
|
1016
|
+
Relationships: [];
|
|
1017
|
+
};
|
|
898
1018
|
carrier_shipping_rates: {
|
|
899
1019
|
Row: {
|
|
900
1020
|
carrier_id: string;
|
|
@@ -7975,7 +8095,6 @@ export type Database = {
|
|
|
7975
8095
|
start_date: string;
|
|
7976
8096
|
start_time: string | null;
|
|
7977
8097
|
status: string;
|
|
7978
|
-
tenant_id: string;
|
|
7979
8098
|
updated_at: string;
|
|
7980
8099
|
user_id: string;
|
|
7981
8100
|
};
|
|
@@ -7993,7 +8112,6 @@ export type Database = {
|
|
|
7993
8112
|
start_date: string;
|
|
7994
8113
|
start_time?: string | null;
|
|
7995
8114
|
status?: string;
|
|
7996
|
-
tenant_id?: string;
|
|
7997
8115
|
updated_at?: string;
|
|
7998
8116
|
user_id: string;
|
|
7999
8117
|
};
|
|
@@ -8011,7 +8129,6 @@ export type Database = {
|
|
|
8011
8129
|
start_date?: string;
|
|
8012
8130
|
start_time?: string | null;
|
|
8013
8131
|
status?: string;
|
|
8014
|
-
tenant_id?: string;
|
|
8015
8132
|
updated_at?: string;
|
|
8016
8133
|
user_id?: string;
|
|
8017
8134
|
};
|
|
@@ -8020,14 +8137,14 @@ export type Database = {
|
|
|
8020
8137
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
8021
8138
|
columns: ["monteur_id"];
|
|
8022
8139
|
isOneToOne: false;
|
|
8023
|
-
referencedRelation: "
|
|
8140
|
+
referencedRelation: "profiles";
|
|
8024
8141
|
referencedColumns: ["id"];
|
|
8025
8142
|
},
|
|
8026
8143
|
{
|
|
8027
8144
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
8028
8145
|
columns: ["user_id"];
|
|
8029
8146
|
isOneToOne: false;
|
|
8030
|
-
referencedRelation: "
|
|
8147
|
+
referencedRelation: "profiles";
|
|
8031
8148
|
referencedColumns: ["id"];
|
|
8032
8149
|
}
|
|
8033
8150
|
];
|
|
@@ -10235,6 +10352,94 @@ export type Database = {
|
|
|
10235
10352
|
};
|
|
10236
10353
|
Relationships: [];
|
|
10237
10354
|
};
|
|
10355
|
+
material_usage: {
|
|
10356
|
+
Row: {
|
|
10357
|
+
created_at: string;
|
|
10358
|
+
id: string;
|
|
10359
|
+
material_name: string;
|
|
10360
|
+
monteur_id: string | null;
|
|
10361
|
+
price_at_time: number;
|
|
10362
|
+
quantity_used: number;
|
|
10363
|
+
updated_at: string;
|
|
10364
|
+
van_inventory_id: string | null;
|
|
10365
|
+
work_order_id: string;
|
|
10366
|
+
};
|
|
10367
|
+
Insert: {
|
|
10368
|
+
created_at?: string;
|
|
10369
|
+
id?: string;
|
|
10370
|
+
material_name: string;
|
|
10371
|
+
monteur_id?: string | null;
|
|
10372
|
+
price_at_time?: number;
|
|
10373
|
+
quantity_used?: number;
|
|
10374
|
+
updated_at?: string;
|
|
10375
|
+
van_inventory_id?: string | null;
|
|
10376
|
+
work_order_id: string;
|
|
10377
|
+
};
|
|
10378
|
+
Update: {
|
|
10379
|
+
created_at?: string;
|
|
10380
|
+
id?: string;
|
|
10381
|
+
material_name?: string;
|
|
10382
|
+
monteur_id?: string | null;
|
|
10383
|
+
price_at_time?: number;
|
|
10384
|
+
quantity_used?: number;
|
|
10385
|
+
updated_at?: string;
|
|
10386
|
+
van_inventory_id?: string | null;
|
|
10387
|
+
work_order_id?: string;
|
|
10388
|
+
};
|
|
10389
|
+
Relationships: [
|
|
10390
|
+
{
|
|
10391
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
10392
|
+
columns: ["monteur_id"];
|
|
10393
|
+
isOneToOne: false;
|
|
10394
|
+
referencedRelation: "profiles";
|
|
10395
|
+
referencedColumns: ["id"];
|
|
10396
|
+
},
|
|
10397
|
+
{
|
|
10398
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
10399
|
+
columns: ["van_inventory_id"];
|
|
10400
|
+
isOneToOne: false;
|
|
10401
|
+
referencedRelation: "van_inventories";
|
|
10402
|
+
referencedColumns: ["id"];
|
|
10403
|
+
},
|
|
10404
|
+
{
|
|
10405
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
10406
|
+
columns: ["work_order_id"];
|
|
10407
|
+
isOneToOne: false;
|
|
10408
|
+
referencedRelation: "work_orders";
|
|
10409
|
+
referencedColumns: ["id"];
|
|
10410
|
+
}
|
|
10411
|
+
];
|
|
10412
|
+
};
|
|
10413
|
+
module_features: {
|
|
10414
|
+
Row: {
|
|
10415
|
+
created_at: string;
|
|
10416
|
+
feature_id: string;
|
|
10417
|
+
id: string;
|
|
10418
|
+
is_active: boolean;
|
|
10419
|
+
last_seen_at: string;
|
|
10420
|
+
module_id: string;
|
|
10421
|
+
name: string;
|
|
10422
|
+
};
|
|
10423
|
+
Insert: {
|
|
10424
|
+
created_at?: string;
|
|
10425
|
+
feature_id: string;
|
|
10426
|
+
id?: string;
|
|
10427
|
+
is_active?: boolean;
|
|
10428
|
+
last_seen_at?: string;
|
|
10429
|
+
module_id: string;
|
|
10430
|
+
name: string;
|
|
10431
|
+
};
|
|
10432
|
+
Update: {
|
|
10433
|
+
created_at?: string;
|
|
10434
|
+
feature_id?: string;
|
|
10435
|
+
id?: string;
|
|
10436
|
+
is_active?: boolean;
|
|
10437
|
+
last_seen_at?: string;
|
|
10438
|
+
module_id?: string;
|
|
10439
|
+
name?: string;
|
|
10440
|
+
};
|
|
10441
|
+
Relationships: [];
|
|
10442
|
+
};
|
|
10238
10443
|
module_permissions: {
|
|
10239
10444
|
Row: {
|
|
10240
10445
|
created_at: string;
|
|
@@ -10343,65 +10548,6 @@ export type Database = {
|
|
|
10343
10548
|
};
|
|
10344
10549
|
Relationships: [];
|
|
10345
10550
|
};
|
|
10346
|
-
monteurs: {
|
|
10347
|
-
Row: {
|
|
10348
|
-
avatar_url: string | null;
|
|
10349
|
-
color: string | null;
|
|
10350
|
-
created_at: string;
|
|
10351
|
-
email: string | null;
|
|
10352
|
-
id: string;
|
|
10353
|
-
is_active: boolean;
|
|
10354
|
-
leave_balance_hours: number;
|
|
10355
|
-
name: string;
|
|
10356
|
-
persnr: number | null;
|
|
10357
|
-
phone: string | null;
|
|
10358
|
-
role: string;
|
|
10359
|
-
tenant_id: string;
|
|
10360
|
-
updated_at: string;
|
|
10361
|
-
user_id: string | null;
|
|
10362
|
-
};
|
|
10363
|
-
Insert: {
|
|
10364
|
-
avatar_url?: string | null;
|
|
10365
|
-
color?: string | null;
|
|
10366
|
-
created_at?: string;
|
|
10367
|
-
email?: string | null;
|
|
10368
|
-
id?: string;
|
|
10369
|
-
is_active?: boolean;
|
|
10370
|
-
leave_balance_hours?: number;
|
|
10371
|
-
name: string;
|
|
10372
|
-
persnr?: number | null;
|
|
10373
|
-
phone?: string | null;
|
|
10374
|
-
role?: string;
|
|
10375
|
-
tenant_id: string;
|
|
10376
|
-
updated_at?: string;
|
|
10377
|
-
user_id?: string | null;
|
|
10378
|
-
};
|
|
10379
|
-
Update: {
|
|
10380
|
-
avatar_url?: string | null;
|
|
10381
|
-
color?: string | null;
|
|
10382
|
-
created_at?: string;
|
|
10383
|
-
email?: string | null;
|
|
10384
|
-
id?: string;
|
|
10385
|
-
is_active?: boolean;
|
|
10386
|
-
leave_balance_hours?: number;
|
|
10387
|
-
name?: string;
|
|
10388
|
-
persnr?: number | null;
|
|
10389
|
-
phone?: string | null;
|
|
10390
|
-
role?: string;
|
|
10391
|
-
tenant_id?: string;
|
|
10392
|
-
updated_at?: string;
|
|
10393
|
-
user_id?: string | null;
|
|
10394
|
-
};
|
|
10395
|
-
Relationships: [
|
|
10396
|
-
{
|
|
10397
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
10398
|
-
columns: ["tenant_id"];
|
|
10399
|
-
isOneToOne: false;
|
|
10400
|
-
referencedRelation: "tenants";
|
|
10401
|
-
referencedColumns: ["id"];
|
|
10402
|
-
}
|
|
10403
|
-
];
|
|
10404
|
-
};
|
|
10405
10551
|
nmbrs_component_mapping: {
|
|
10406
10552
|
Row: {
|
|
10407
10553
|
created_at: string;
|
|
@@ -10474,15 +10620,7 @@ export type Database = {
|
|
|
10474
10620
|
nmbrs_employee_number?: string;
|
|
10475
10621
|
updated_at?: string;
|
|
10476
10622
|
};
|
|
10477
|
-
Relationships: [
|
|
10478
|
-
{
|
|
10479
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10480
|
-
columns: ["monteur_id"];
|
|
10481
|
-
isOneToOne: true;
|
|
10482
|
-
referencedRelation: "monteurs";
|
|
10483
|
-
referencedColumns: ["id"];
|
|
10484
|
-
}
|
|
10485
|
-
];
|
|
10623
|
+
Relationships: [];
|
|
10486
10624
|
};
|
|
10487
10625
|
nmbrs_export_lines: {
|
|
10488
10626
|
Row: {
|
|
@@ -10531,13 +10669,6 @@ export type Database = {
|
|
|
10531
10669
|
wage_code?: string;
|
|
10532
10670
|
};
|
|
10533
10671
|
Relationships: [
|
|
10534
|
-
{
|
|
10535
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10536
|
-
columns: ["monteur_id"];
|
|
10537
|
-
isOneToOne: false;
|
|
10538
|
-
referencedRelation: "monteurs";
|
|
10539
|
-
referencedColumns: ["id"];
|
|
10540
|
-
},
|
|
10541
10672
|
{
|
|
10542
10673
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10543
10674
|
columns: ["run_id"];
|
|
@@ -13015,6 +13146,9 @@ export type Database = {
|
|
|
13015
13146
|
created_at: string;
|
|
13016
13147
|
id: string;
|
|
13017
13148
|
laatst_gezien: string;
|
|
13149
|
+
laatste_fout: string | null;
|
|
13150
|
+
laatste_request_id: number | null;
|
|
13151
|
+
mislukte_posts: number;
|
|
13018
13152
|
tick_sleutel: string;
|
|
13019
13153
|
updated_at: string;
|
|
13020
13154
|
};
|
|
@@ -13024,6 +13158,9 @@ export type Database = {
|
|
|
13024
13158
|
created_at?: string;
|
|
13025
13159
|
id?: string;
|
|
13026
13160
|
laatst_gezien?: string;
|
|
13161
|
+
laatste_fout?: string | null;
|
|
13162
|
+
laatste_request_id?: number | null;
|
|
13163
|
+
mislukte_posts?: number;
|
|
13027
13164
|
tick_sleutel?: string;
|
|
13028
13165
|
updated_at?: string;
|
|
13029
13166
|
};
|
|
@@ -13033,6 +13170,9 @@ export type Database = {
|
|
|
13033
13170
|
created_at?: string;
|
|
13034
13171
|
id?: string;
|
|
13035
13172
|
laatst_gezien?: string;
|
|
13173
|
+
laatste_fout?: string | null;
|
|
13174
|
+
laatste_request_id?: number | null;
|
|
13175
|
+
mislukte_posts?: number;
|
|
13036
13176
|
tick_sleutel?: string;
|
|
13037
13177
|
updated_at?: string;
|
|
13038
13178
|
};
|
|
@@ -14597,6 +14737,100 @@ export type Database = {
|
|
|
14597
14737
|
}
|
|
14598
14738
|
];
|
|
14599
14739
|
};
|
|
14740
|
+
role_assignments: {
|
|
14741
|
+
Row: {
|
|
14742
|
+
created_at: string;
|
|
14743
|
+
id: string;
|
|
14744
|
+
role_id: string;
|
|
14745
|
+
user_id: string;
|
|
14746
|
+
};
|
|
14747
|
+
Insert: {
|
|
14748
|
+
created_at?: string;
|
|
14749
|
+
id?: string;
|
|
14750
|
+
role_id: string;
|
|
14751
|
+
user_id: string;
|
|
14752
|
+
};
|
|
14753
|
+
Update: {
|
|
14754
|
+
created_at?: string;
|
|
14755
|
+
id?: string;
|
|
14756
|
+
role_id?: string;
|
|
14757
|
+
user_id?: string;
|
|
14758
|
+
};
|
|
14759
|
+
Relationships: [
|
|
14760
|
+
{
|
|
14761
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
14762
|
+
columns: ["role_id"];
|
|
14763
|
+
isOneToOne: false;
|
|
14764
|
+
referencedRelation: "roles";
|
|
14765
|
+
referencedColumns: ["id"];
|
|
14766
|
+
}
|
|
14767
|
+
];
|
|
14768
|
+
};
|
|
14769
|
+
role_permissions: {
|
|
14770
|
+
Row: {
|
|
14771
|
+
can_edit: boolean;
|
|
14772
|
+
can_view: boolean;
|
|
14773
|
+
feature_id: string;
|
|
14774
|
+
id: string;
|
|
14775
|
+
module_id: string;
|
|
14776
|
+
role_id: string;
|
|
14777
|
+
updated_at: string;
|
|
14778
|
+
};
|
|
14779
|
+
Insert: {
|
|
14780
|
+
can_edit?: boolean;
|
|
14781
|
+
can_view?: boolean;
|
|
14782
|
+
feature_id?: string;
|
|
14783
|
+
id?: string;
|
|
14784
|
+
module_id: string;
|
|
14785
|
+
role_id: string;
|
|
14786
|
+
updated_at?: string;
|
|
14787
|
+
};
|
|
14788
|
+
Update: {
|
|
14789
|
+
can_edit?: boolean;
|
|
14790
|
+
can_view?: boolean;
|
|
14791
|
+
feature_id?: string;
|
|
14792
|
+
id?: string;
|
|
14793
|
+
module_id?: string;
|
|
14794
|
+
role_id?: string;
|
|
14795
|
+
updated_at?: string;
|
|
14796
|
+
};
|
|
14797
|
+
Relationships: [
|
|
14798
|
+
{
|
|
14799
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
14800
|
+
columns: ["role_id"];
|
|
14801
|
+
isOneToOne: false;
|
|
14802
|
+
referencedRelation: "roles";
|
|
14803
|
+
referencedColumns: ["id"];
|
|
14804
|
+
}
|
|
14805
|
+
];
|
|
14806
|
+
};
|
|
14807
|
+
roles: {
|
|
14808
|
+
Row: {
|
|
14809
|
+
created_at: string;
|
|
14810
|
+
id: string;
|
|
14811
|
+
is_protected: boolean;
|
|
14812
|
+
key: string;
|
|
14813
|
+
name: string;
|
|
14814
|
+
updated_at: string;
|
|
14815
|
+
};
|
|
14816
|
+
Insert: {
|
|
14817
|
+
created_at?: string;
|
|
14818
|
+
id?: string;
|
|
14819
|
+
is_protected?: boolean;
|
|
14820
|
+
key: string;
|
|
14821
|
+
name: string;
|
|
14822
|
+
updated_at?: string;
|
|
14823
|
+
};
|
|
14824
|
+
Update: {
|
|
14825
|
+
created_at?: string;
|
|
14826
|
+
id?: string;
|
|
14827
|
+
is_protected?: boolean;
|
|
14828
|
+
key?: string;
|
|
14829
|
+
name?: string;
|
|
14830
|
+
updated_at?: string;
|
|
14831
|
+
};
|
|
14832
|
+
Relationships: [];
|
|
14833
|
+
};
|
|
14600
14834
|
rooms: {
|
|
14601
14835
|
Row: {
|
|
14602
14836
|
capacity: number;
|
|
@@ -15277,6 +15511,56 @@ export type Database = {
|
|
|
15277
15511
|
};
|
|
15278
15512
|
Relationships: [];
|
|
15279
15513
|
};
|
|
15514
|
+
time_compensation_entries: {
|
|
15515
|
+
Row: {
|
|
15516
|
+
created_at: string;
|
|
15517
|
+
employee_id: string;
|
|
15518
|
+
entry_date: string;
|
|
15519
|
+
id: string;
|
|
15520
|
+
km: number;
|
|
15521
|
+
meal_allowance: number;
|
|
15522
|
+
notes: string | null;
|
|
15523
|
+
standby_evening: number;
|
|
15524
|
+
standby_weekend: number;
|
|
15525
|
+
tvt_change: number;
|
|
15526
|
+
updated_at: string;
|
|
15527
|
+
};
|
|
15528
|
+
Insert: {
|
|
15529
|
+
created_at?: string;
|
|
15530
|
+
employee_id: string;
|
|
15531
|
+
entry_date: string;
|
|
15532
|
+
id?: string;
|
|
15533
|
+
km?: number;
|
|
15534
|
+
meal_allowance?: number;
|
|
15535
|
+
notes?: string | null;
|
|
15536
|
+
standby_evening?: number;
|
|
15537
|
+
standby_weekend?: number;
|
|
15538
|
+
tvt_change?: number;
|
|
15539
|
+
updated_at?: string;
|
|
15540
|
+
};
|
|
15541
|
+
Update: {
|
|
15542
|
+
created_at?: string;
|
|
15543
|
+
employee_id?: string;
|
|
15544
|
+
entry_date?: string;
|
|
15545
|
+
id?: string;
|
|
15546
|
+
km?: number;
|
|
15547
|
+
meal_allowance?: number;
|
|
15548
|
+
notes?: string | null;
|
|
15549
|
+
standby_evening?: number;
|
|
15550
|
+
standby_weekend?: number;
|
|
15551
|
+
tvt_change?: number;
|
|
15552
|
+
updated_at?: string;
|
|
15553
|
+
};
|
|
15554
|
+
Relationships: [
|
|
15555
|
+
{
|
|
15556
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
15557
|
+
columns: ["employee_id"];
|
|
15558
|
+
isOneToOne: false;
|
|
15559
|
+
referencedRelation: "profiles";
|
|
15560
|
+
referencedColumns: ["id"];
|
|
15561
|
+
}
|
|
15562
|
+
];
|
|
15563
|
+
};
|
|
15280
15564
|
time_entries: {
|
|
15281
15565
|
Row: {
|
|
15282
15566
|
created_at: string;
|
|
@@ -15311,68 +15595,174 @@ export type Database = {
|
|
|
15311
15595
|
undertime?: number;
|
|
15312
15596
|
updated_at?: string;
|
|
15313
15597
|
};
|
|
15598
|
+
Relationships: [];
|
|
15599
|
+
};
|
|
15600
|
+
time_log_week_approvals: {
|
|
15601
|
+
Row: {
|
|
15602
|
+
approved_at: string | null;
|
|
15603
|
+
approved_by: string | null;
|
|
15604
|
+
created_at: string;
|
|
15605
|
+
employee_id: string;
|
|
15606
|
+
id: string;
|
|
15607
|
+
locked: boolean;
|
|
15608
|
+
notes: string | null;
|
|
15609
|
+
status: string;
|
|
15610
|
+
submitted_at: string | null;
|
|
15611
|
+
updated_at: string;
|
|
15612
|
+
week_start: string;
|
|
15613
|
+
};
|
|
15614
|
+
Insert: {
|
|
15615
|
+
approved_at?: string | null;
|
|
15616
|
+
approved_by?: string | null;
|
|
15617
|
+
created_at?: string;
|
|
15618
|
+
employee_id: string;
|
|
15619
|
+
id?: string;
|
|
15620
|
+
locked?: boolean;
|
|
15621
|
+
notes?: string | null;
|
|
15622
|
+
status?: string;
|
|
15623
|
+
submitted_at?: string | null;
|
|
15624
|
+
updated_at?: string;
|
|
15625
|
+
week_start: string;
|
|
15626
|
+
};
|
|
15627
|
+
Update: {
|
|
15628
|
+
approved_at?: string | null;
|
|
15629
|
+
approved_by?: string | null;
|
|
15630
|
+
created_at?: string;
|
|
15631
|
+
employee_id?: string;
|
|
15632
|
+
id?: string;
|
|
15633
|
+
locked?: boolean;
|
|
15634
|
+
notes?: string | null;
|
|
15635
|
+
status?: string;
|
|
15636
|
+
submitted_at?: string | null;
|
|
15637
|
+
updated_at?: string;
|
|
15638
|
+
week_start?: string;
|
|
15639
|
+
};
|
|
15314
15640
|
Relationships: [
|
|
15315
15641
|
{
|
|
15316
|
-
foreignKeyName: "
|
|
15642
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
15317
15643
|
columns: ["employee_id"];
|
|
15318
15644
|
isOneToOne: false;
|
|
15319
|
-
referencedRelation: "
|
|
15645
|
+
referencedRelation: "profiles";
|
|
15320
15646
|
referencedColumns: ["id"];
|
|
15321
15647
|
}
|
|
15322
15648
|
];
|
|
15323
15649
|
};
|
|
15324
15650
|
time_logs: {
|
|
15325
15651
|
Row: {
|
|
15652
|
+
auto_stop_reason: string | null;
|
|
15653
|
+
auto_stopped: boolean;
|
|
15326
15654
|
created_at: string;
|
|
15655
|
+
current_latitude: number | null;
|
|
15656
|
+
current_longitude: number | null;
|
|
15657
|
+
current_position_updated_at: string | null;
|
|
15327
15658
|
employee_id: string;
|
|
15659
|
+
end_latitude: number | null;
|
|
15660
|
+
end_longitude: number | null;
|
|
15328
15661
|
end_time: string | null;
|
|
15662
|
+
eta_distance_km: number | null;
|
|
15663
|
+
eta_minutes: number | null;
|
|
15664
|
+
eta_updated_at: string | null;
|
|
15665
|
+
hour_category: string | null;
|
|
15329
15666
|
id: string;
|
|
15667
|
+
last_reminder_at: string | null;
|
|
15330
15668
|
notes: string | null;
|
|
15331
15669
|
overtime_hours: number;
|
|
15332
15670
|
overtime_type: string | null;
|
|
15333
15671
|
regular_hours: number;
|
|
15672
|
+
reminder_count: number;
|
|
15673
|
+
requires_review: boolean;
|
|
15674
|
+
start_latitude: number | null;
|
|
15675
|
+
start_longitude: number | null;
|
|
15334
15676
|
start_time: string;
|
|
15335
15677
|
travel_cost: number | null;
|
|
15336
15678
|
travel_distance_km: number | null;
|
|
15679
|
+
travel_duration_min: number | null;
|
|
15680
|
+
travel_time_minutes: number | null;
|
|
15337
15681
|
type: string;
|
|
15338
15682
|
updated_at: string;
|
|
15683
|
+
work_order_id: string | null;
|
|
15339
15684
|
};
|
|
15340
15685
|
Insert: {
|
|
15686
|
+
auto_stop_reason?: string | null;
|
|
15687
|
+
auto_stopped?: boolean;
|
|
15341
15688
|
created_at?: string;
|
|
15689
|
+
current_latitude?: number | null;
|
|
15690
|
+
current_longitude?: number | null;
|
|
15691
|
+
current_position_updated_at?: string | null;
|
|
15342
15692
|
employee_id: string;
|
|
15693
|
+
end_latitude?: number | null;
|
|
15694
|
+
end_longitude?: number | null;
|
|
15343
15695
|
end_time?: string | null;
|
|
15696
|
+
eta_distance_km?: number | null;
|
|
15697
|
+
eta_minutes?: number | null;
|
|
15698
|
+
eta_updated_at?: string | null;
|
|
15699
|
+
hour_category?: string | null;
|
|
15344
15700
|
id?: string;
|
|
15701
|
+
last_reminder_at?: string | null;
|
|
15345
15702
|
notes?: string | null;
|
|
15346
15703
|
overtime_hours?: number;
|
|
15347
15704
|
overtime_type?: string | null;
|
|
15348
15705
|
regular_hours?: number;
|
|
15706
|
+
reminder_count?: number;
|
|
15707
|
+
requires_review?: boolean;
|
|
15708
|
+
start_latitude?: number | null;
|
|
15709
|
+
start_longitude?: number | null;
|
|
15349
15710
|
start_time?: string;
|
|
15350
15711
|
travel_cost?: number | null;
|
|
15351
15712
|
travel_distance_km?: number | null;
|
|
15713
|
+
travel_duration_min?: number | null;
|
|
15714
|
+
travel_time_minutes?: number | null;
|
|
15352
15715
|
type: string;
|
|
15353
15716
|
updated_at?: string;
|
|
15717
|
+
work_order_id?: string | null;
|
|
15354
15718
|
};
|
|
15355
15719
|
Update: {
|
|
15720
|
+
auto_stop_reason?: string | null;
|
|
15721
|
+
auto_stopped?: boolean;
|
|
15356
15722
|
created_at?: string;
|
|
15723
|
+
current_latitude?: number | null;
|
|
15724
|
+
current_longitude?: number | null;
|
|
15725
|
+
current_position_updated_at?: string | null;
|
|
15357
15726
|
employee_id?: string;
|
|
15727
|
+
end_latitude?: number | null;
|
|
15728
|
+
end_longitude?: number | null;
|
|
15358
15729
|
end_time?: string | null;
|
|
15730
|
+
eta_distance_km?: number | null;
|
|
15731
|
+
eta_minutes?: number | null;
|
|
15732
|
+
eta_updated_at?: string | null;
|
|
15733
|
+
hour_category?: string | null;
|
|
15359
15734
|
id?: string;
|
|
15735
|
+
last_reminder_at?: string | null;
|
|
15360
15736
|
notes?: string | null;
|
|
15361
15737
|
overtime_hours?: number;
|
|
15362
15738
|
overtime_type?: string | null;
|
|
15363
15739
|
regular_hours?: number;
|
|
15740
|
+
reminder_count?: number;
|
|
15741
|
+
requires_review?: boolean;
|
|
15742
|
+
start_latitude?: number | null;
|
|
15743
|
+
start_longitude?: number | null;
|
|
15364
15744
|
start_time?: string;
|
|
15365
15745
|
travel_cost?: number | null;
|
|
15366
15746
|
travel_distance_km?: number | null;
|
|
15747
|
+
travel_duration_min?: number | null;
|
|
15748
|
+
travel_time_minutes?: number | null;
|
|
15367
15749
|
type?: string;
|
|
15368
15750
|
updated_at?: string;
|
|
15751
|
+
work_order_id?: string | null;
|
|
15369
15752
|
};
|
|
15370
15753
|
Relationships: [
|
|
15371
15754
|
{
|
|
15372
15755
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
15373
15756
|
columns: ["employee_id"];
|
|
15374
15757
|
isOneToOne: false;
|
|
15375
|
-
referencedRelation: "
|
|
15758
|
+
referencedRelation: "profiles";
|
|
15759
|
+
referencedColumns: ["id"];
|
|
15760
|
+
},
|
|
15761
|
+
{
|
|
15762
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
15763
|
+
columns: ["work_order_id"];
|
|
15764
|
+
isOneToOne: false;
|
|
15765
|
+
referencedRelation: "work_orders";
|
|
15376
15766
|
referencedColumns: ["id"];
|
|
15377
15767
|
}
|
|
15378
15768
|
];
|
|
@@ -15413,7 +15803,7 @@ export type Database = {
|
|
|
15413
15803
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
15414
15804
|
columns: ["employee_id"];
|
|
15415
15805
|
isOneToOne: false;
|
|
15416
|
-
referencedRelation: "
|
|
15806
|
+
referencedRelation: "profiles";
|
|
15417
15807
|
referencedColumns: ["id"];
|
|
15418
15808
|
}
|
|
15419
15809
|
];
|
|
@@ -15726,6 +16116,39 @@ export type Database = {
|
|
|
15726
16116
|
};
|
|
15727
16117
|
Relationships: [];
|
|
15728
16118
|
};
|
|
16119
|
+
twinfield_cron_locks: {
|
|
16120
|
+
Row: {
|
|
16121
|
+
created_at: string;
|
|
16122
|
+
heartbeat_at: string;
|
|
16123
|
+
job_name: string;
|
|
16124
|
+
last_error: string | null;
|
|
16125
|
+
last_finished_at: string | null;
|
|
16126
|
+
locked_at: string;
|
|
16127
|
+
run_id: string;
|
|
16128
|
+
updated_at: string;
|
|
16129
|
+
};
|
|
16130
|
+
Insert: {
|
|
16131
|
+
created_at?: string;
|
|
16132
|
+
heartbeat_at?: string;
|
|
16133
|
+
job_name: string;
|
|
16134
|
+
last_error?: string | null;
|
|
16135
|
+
last_finished_at?: string | null;
|
|
16136
|
+
locked_at?: string;
|
|
16137
|
+
run_id?: string;
|
|
16138
|
+
updated_at?: string;
|
|
16139
|
+
};
|
|
16140
|
+
Update: {
|
|
16141
|
+
created_at?: string;
|
|
16142
|
+
heartbeat_at?: string;
|
|
16143
|
+
job_name?: string;
|
|
16144
|
+
last_error?: string | null;
|
|
16145
|
+
last_finished_at?: string | null;
|
|
16146
|
+
locked_at?: string;
|
|
16147
|
+
run_id?: string;
|
|
16148
|
+
updated_at?: string;
|
|
16149
|
+
};
|
|
16150
|
+
Relationships: [];
|
|
16151
|
+
};
|
|
15729
16152
|
twinfield_customers: {
|
|
15730
16153
|
Row: {
|
|
15731
16154
|
address: string | null;
|
|
@@ -16336,6 +16759,7 @@ export type Database = {
|
|
|
16336
16759
|
twinfield_push_queue: {
|
|
16337
16760
|
Row: {
|
|
16338
16761
|
action: string;
|
|
16762
|
+
attempt_started_at: string | null;
|
|
16339
16763
|
attempts: number;
|
|
16340
16764
|
connection_id: string | null;
|
|
16341
16765
|
created_at: string;
|
|
@@ -16352,6 +16776,7 @@ export type Database = {
|
|
|
16352
16776
|
};
|
|
16353
16777
|
Insert: {
|
|
16354
16778
|
action?: string;
|
|
16779
|
+
attempt_started_at?: string | null;
|
|
16355
16780
|
attempts?: number;
|
|
16356
16781
|
connection_id?: string | null;
|
|
16357
16782
|
created_at?: string;
|
|
@@ -16368,6 +16793,7 @@ export type Database = {
|
|
|
16368
16793
|
};
|
|
16369
16794
|
Update: {
|
|
16370
16795
|
action?: string;
|
|
16796
|
+
attempt_started_at?: string | null;
|
|
16371
16797
|
attempts?: number;
|
|
16372
16798
|
connection_id?: string | null;
|
|
16373
16799
|
created_at?: string;
|
|
@@ -16570,15 +16996,7 @@ export type Database = {
|
|
|
16570
16996
|
workday_end?: string | null;
|
|
16571
16997
|
workday_start?: string | null;
|
|
16572
16998
|
};
|
|
16573
|
-
Relationships: [
|
|
16574
|
-
{
|
|
16575
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
16576
|
-
columns: ["monteur_id"];
|
|
16577
|
-
isOneToOne: true;
|
|
16578
|
-
referencedRelation: "monteurs";
|
|
16579
|
-
referencedColumns: ["id"];
|
|
16580
|
-
}
|
|
16581
|
-
];
|
|
16999
|
+
Relationships: [];
|
|
16582
17000
|
};
|
|
16583
17001
|
uren_entries: {
|
|
16584
17002
|
Row: {
|
|
@@ -16624,13 +17042,6 @@ export type Database = {
|
|
|
16624
17042
|
werkbon_id?: string | null;
|
|
16625
17043
|
};
|
|
16626
17044
|
Relationships: [
|
|
16627
|
-
{
|
|
16628
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16629
|
-
columns: ["monteur_id"];
|
|
16630
|
-
isOneToOne: false;
|
|
16631
|
-
referencedRelation: "monteurs";
|
|
16632
|
-
referencedColumns: ["id"];
|
|
16633
|
-
},
|
|
16634
17045
|
{
|
|
16635
17046
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16636
17047
|
columns: ["werkbon_id"];
|
|
@@ -17112,19 +17523,12 @@ export type Database = {
|
|
|
17112
17523
|
submitted_at?: string | null;
|
|
17113
17524
|
updated_at?: string;
|
|
17114
17525
|
};
|
|
17115
|
-
Relationships: [
|
|
17116
|
-
{
|
|
17117
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
17118
|
-
columns: ["monteur_id"];
|
|
17119
|
-
isOneToOne: false;
|
|
17120
|
-
referencedRelation: "monteurs";
|
|
17121
|
-
referencedColumns: ["id"];
|
|
17122
|
-
}
|
|
17123
|
-
];
|
|
17526
|
+
Relationships: [];
|
|
17124
17527
|
};
|
|
17125
17528
|
user_module_permissions: {
|
|
17126
17529
|
Row: {
|
|
17127
17530
|
created_at: string;
|
|
17531
|
+
feature_id: string;
|
|
17128
17532
|
id: string;
|
|
17129
17533
|
module_id: string;
|
|
17130
17534
|
permission: string;
|
|
@@ -17133,6 +17537,7 @@ export type Database = {
|
|
|
17133
17537
|
};
|
|
17134
17538
|
Insert: {
|
|
17135
17539
|
created_at?: string;
|
|
17540
|
+
feature_id?: string;
|
|
17136
17541
|
id?: string;
|
|
17137
17542
|
module_id: string;
|
|
17138
17543
|
permission: string;
|
|
@@ -17141,6 +17546,7 @@ export type Database = {
|
|
|
17141
17546
|
};
|
|
17142
17547
|
Update: {
|
|
17143
17548
|
created_at?: string;
|
|
17549
|
+
feature_id?: string;
|
|
17144
17550
|
id?: string;
|
|
17145
17551
|
module_id?: string;
|
|
17146
17552
|
permission?: string;
|
|
@@ -17178,6 +17584,53 @@ export type Database = {
|
|
|
17178
17584
|
}
|
|
17179
17585
|
];
|
|
17180
17586
|
};
|
|
17587
|
+
van_inventories: {
|
|
17588
|
+
Row: {
|
|
17589
|
+
barcode: string | null;
|
|
17590
|
+
created_at: string;
|
|
17591
|
+
id: string;
|
|
17592
|
+
monteur_id: string | null;
|
|
17593
|
+
price_per_unit: number;
|
|
17594
|
+
product_name: string;
|
|
17595
|
+
quantity_current: number;
|
|
17596
|
+
quantity_min: number;
|
|
17597
|
+
unit: string;
|
|
17598
|
+
updated_at: string;
|
|
17599
|
+
};
|
|
17600
|
+
Insert: {
|
|
17601
|
+
barcode?: string | null;
|
|
17602
|
+
created_at?: string;
|
|
17603
|
+
id?: string;
|
|
17604
|
+
monteur_id?: string | null;
|
|
17605
|
+
price_per_unit?: number;
|
|
17606
|
+
product_name: string;
|
|
17607
|
+
quantity_current?: number;
|
|
17608
|
+
quantity_min?: number;
|
|
17609
|
+
unit?: string;
|
|
17610
|
+
updated_at?: string;
|
|
17611
|
+
};
|
|
17612
|
+
Update: {
|
|
17613
|
+
barcode?: string | null;
|
|
17614
|
+
created_at?: string;
|
|
17615
|
+
id?: string;
|
|
17616
|
+
monteur_id?: string | null;
|
|
17617
|
+
price_per_unit?: number;
|
|
17618
|
+
product_name?: string;
|
|
17619
|
+
quantity_current?: number;
|
|
17620
|
+
quantity_min?: number;
|
|
17621
|
+
unit?: string;
|
|
17622
|
+
updated_at?: string;
|
|
17623
|
+
};
|
|
17624
|
+
Relationships: [
|
|
17625
|
+
{
|
|
17626
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
17627
|
+
columns: ["monteur_id"];
|
|
17628
|
+
isOneToOne: false;
|
|
17629
|
+
referencedRelation: "profiles";
|
|
17630
|
+
referencedColumns: ["id"];
|
|
17631
|
+
}
|
|
17632
|
+
];
|
|
17633
|
+
};
|
|
17181
17634
|
voorraad_custom_fields: {
|
|
17182
17635
|
Row: {
|
|
17183
17636
|
created_at: string;
|
|
@@ -18151,7 +18604,7 @@ export type Database = {
|
|
|
18151
18604
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
18152
18605
|
columns: ["monteur_id"];
|
|
18153
18606
|
isOneToOne: false;
|
|
18154
|
-
referencedRelation: "
|
|
18607
|
+
referencedRelation: "profiles";
|
|
18155
18608
|
referencedColumns: ["id"];
|
|
18156
18609
|
},
|
|
18157
18610
|
{
|
|
@@ -18163,6 +18616,63 @@ export type Database = {
|
|
|
18163
18616
|
}
|
|
18164
18617
|
];
|
|
18165
18618
|
};
|
|
18619
|
+
work_order_photos: {
|
|
18620
|
+
Row: {
|
|
18621
|
+
ai_caption: string | null;
|
|
18622
|
+
ai_categorized_at: string | null;
|
|
18623
|
+
ai_labels: Json | null;
|
|
18624
|
+
caption: string | null;
|
|
18625
|
+
created_at: string;
|
|
18626
|
+
id: string;
|
|
18627
|
+
monteur_id: string | null;
|
|
18628
|
+
photo_type: string;
|
|
18629
|
+
storage_path: string;
|
|
18630
|
+
updated_at: string;
|
|
18631
|
+
work_order_id: string;
|
|
18632
|
+
};
|
|
18633
|
+
Insert: {
|
|
18634
|
+
ai_caption?: string | null;
|
|
18635
|
+
ai_categorized_at?: string | null;
|
|
18636
|
+
ai_labels?: Json | null;
|
|
18637
|
+
caption?: string | null;
|
|
18638
|
+
created_at?: string;
|
|
18639
|
+
id?: string;
|
|
18640
|
+
monteur_id?: string | null;
|
|
18641
|
+
photo_type?: string;
|
|
18642
|
+
storage_path: string;
|
|
18643
|
+
updated_at?: string;
|
|
18644
|
+
work_order_id: string;
|
|
18645
|
+
};
|
|
18646
|
+
Update: {
|
|
18647
|
+
ai_caption?: string | null;
|
|
18648
|
+
ai_categorized_at?: string | null;
|
|
18649
|
+
ai_labels?: Json | null;
|
|
18650
|
+
caption?: string | null;
|
|
18651
|
+
created_at?: string;
|
|
18652
|
+
id?: string;
|
|
18653
|
+
monteur_id?: string | null;
|
|
18654
|
+
photo_type?: string;
|
|
18655
|
+
storage_path?: string;
|
|
18656
|
+
updated_at?: string;
|
|
18657
|
+
work_order_id?: string;
|
|
18658
|
+
};
|
|
18659
|
+
Relationships: [
|
|
18660
|
+
{
|
|
18661
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
18662
|
+
columns: ["monteur_id"];
|
|
18663
|
+
isOneToOne: false;
|
|
18664
|
+
referencedRelation: "profiles";
|
|
18665
|
+
referencedColumns: ["id"];
|
|
18666
|
+
},
|
|
18667
|
+
{
|
|
18668
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
18669
|
+
columns: ["work_order_id"];
|
|
18670
|
+
isOneToOne: false;
|
|
18671
|
+
referencedRelation: "work_orders";
|
|
18672
|
+
referencedColumns: ["id"];
|
|
18673
|
+
}
|
|
18674
|
+
];
|
|
18675
|
+
};
|
|
18166
18676
|
work_orders: {
|
|
18167
18677
|
Row: {
|
|
18168
18678
|
assigned_to: string | null;
|
|
@@ -18194,7 +18704,6 @@ export type Database = {
|
|
|
18194
18704
|
scheduled_end_time: string | null;
|
|
18195
18705
|
scheduled_start_time: string | null;
|
|
18196
18706
|
status: string;
|
|
18197
|
-
tenant_id: string;
|
|
18198
18707
|
total_hours_worked: number | null;
|
|
18199
18708
|
total_price: number | null;
|
|
18200
18709
|
travel_time_minutes: number | null;
|
|
@@ -18232,7 +18741,6 @@ export type Database = {
|
|
|
18232
18741
|
scheduled_end_time?: string | null;
|
|
18233
18742
|
scheduled_start_time?: string | null;
|
|
18234
18743
|
status?: string;
|
|
18235
|
-
tenant_id: string;
|
|
18236
18744
|
total_hours_worked?: number | null;
|
|
18237
18745
|
total_price?: number | null;
|
|
18238
18746
|
travel_time_minutes?: number | null;
|
|
@@ -18270,7 +18778,6 @@ export type Database = {
|
|
|
18270
18778
|
scheduled_end_time?: string | null;
|
|
18271
18779
|
scheduled_start_time?: string | null;
|
|
18272
18780
|
status?: string;
|
|
18273
|
-
tenant_id?: string;
|
|
18274
18781
|
total_hours_worked?: number | null;
|
|
18275
18782
|
total_price?: number | null;
|
|
18276
18783
|
travel_time_minutes?: number | null;
|
|
@@ -18285,13 +18792,6 @@ export type Database = {
|
|
|
18285
18792
|
isOneToOne: false;
|
|
18286
18793
|
referencedRelation: "work_orders";
|
|
18287
18794
|
referencedColumns: ["id"];
|
|
18288
|
-
},
|
|
18289
|
-
{
|
|
18290
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
18291
|
-
columns: ["tenant_id"];
|
|
18292
|
-
isOneToOne: false;
|
|
18293
|
-
referencedRelation: "tenants";
|
|
18294
|
-
referencedColumns: ["id"];
|
|
18295
18795
|
}
|
|
18296
18796
|
];
|
|
18297
18797
|
};
|
|
@@ -19040,6 +19540,10 @@ export type Database = {
|
|
|
19040
19540
|
};
|
|
19041
19541
|
Returns: number;
|
|
19042
19542
|
};
|
|
19543
|
+
can_manage_hours: {
|
|
19544
|
+
Args: never;
|
|
19545
|
+
Returns: boolean;
|
|
19546
|
+
};
|
|
19043
19547
|
check_offer_product_available_stock: {
|
|
19044
19548
|
Args: {
|
|
19045
19549
|
p_campaign_product_id: string;
|
|
@@ -19229,6 +19733,7 @@ export type Database = {
|
|
|
19229
19733
|
};
|
|
19230
19734
|
Returns: {
|
|
19231
19735
|
action: string;
|
|
19736
|
+
attempt_started_at: string | null;
|
|
19232
19737
|
attempts: number;
|
|
19233
19738
|
connection_id: string | null;
|
|
19234
19739
|
created_at: string;
|
|
@@ -19316,6 +19821,30 @@ export type Database = {
|
|
|
19316
19821
|
agent_naam: string;
|
|
19317
19822
|
}[];
|
|
19318
19823
|
};
|
|
19824
|
+
consume_van_inventory: {
|
|
19825
|
+
Args: {
|
|
19826
|
+
p_inventory_id: string;
|
|
19827
|
+
p_quantity: number;
|
|
19828
|
+
};
|
|
19829
|
+
Returns: {
|
|
19830
|
+
barcode: string | null;
|
|
19831
|
+
created_at: string;
|
|
19832
|
+
id: string;
|
|
19833
|
+
monteur_id: string | null;
|
|
19834
|
+
price_per_unit: number;
|
|
19835
|
+
product_name: string;
|
|
19836
|
+
quantity_current: number;
|
|
19837
|
+
quantity_min: number;
|
|
19838
|
+
unit: string;
|
|
19839
|
+
updated_at: string;
|
|
19840
|
+
};
|
|
19841
|
+
SetofOptions: {
|
|
19842
|
+
from: "*";
|
|
19843
|
+
to: "van_inventories";
|
|
19844
|
+
isOneToOne: true;
|
|
19845
|
+
isSetofReturn: false;
|
|
19846
|
+
};
|
|
19847
|
+
};
|
|
19319
19848
|
control_get_todays_carts: {
|
|
19320
19849
|
Args: never;
|
|
19321
19850
|
Returns: {
|
|
@@ -19389,6 +19918,13 @@ export type Database = {
|
|
|
19389
19918
|
_user_id: string;
|
|
19390
19919
|
};
|
|
19391
19920
|
Returns: string;
|
|
19921
|
+
} | {
|
|
19922
|
+
Args: {
|
|
19923
|
+
_feature_id?: string;
|
|
19924
|
+
_module_id: string;
|
|
19925
|
+
_user_id: string;
|
|
19926
|
+
};
|
|
19927
|
+
Returns: string;
|
|
19392
19928
|
};
|
|
19393
19929
|
email_auth_decrypt: {
|
|
19394
19930
|
Args: {
|
|
@@ -19740,12 +20276,6 @@ export type Database = {
|
|
|
19740
20276
|
Args: never;
|
|
19741
20277
|
Returns: string;
|
|
19742
20278
|
};
|
|
19743
|
-
get_work_order_tenant_id: {
|
|
19744
|
-
Args: {
|
|
19745
|
-
wo_id: string;
|
|
19746
|
-
};
|
|
19747
|
-
Returns: string;
|
|
19748
|
-
};
|
|
19749
20279
|
has_module_permission: {
|
|
19750
20280
|
Args: {
|
|
19751
20281
|
_min: string;
|
|
@@ -19779,6 +20309,13 @@ export type Database = {
|
|
|
19779
20309
|
};
|
|
19780
20310
|
Returns: boolean;
|
|
19781
20311
|
};
|
|
20312
|
+
is_time_log_week_locked: {
|
|
20313
|
+
Args: {
|
|
20314
|
+
p_employee_id: string;
|
|
20315
|
+
p_start_time: string;
|
|
20316
|
+
};
|
|
20317
|
+
Returns: boolean;
|
|
20318
|
+
};
|
|
19782
20319
|
is_user_admin: {
|
|
19783
20320
|
Args: never;
|
|
19784
20321
|
Returns: boolean;
|
|
@@ -19793,13 +20330,14 @@ export type Database = {
|
|
|
19793
20330
|
};
|
|
19794
20331
|
Returns: boolean;
|
|
19795
20332
|
};
|
|
19796
|
-
|
|
20333
|
+
list_medewerkers: {
|
|
19797
20334
|
Args: never;
|
|
19798
20335
|
Returns: {
|
|
19799
20336
|
avatar_url: string;
|
|
19800
20337
|
display_name: string;
|
|
19801
20338
|
email: string;
|
|
19802
20339
|
id: string;
|
|
20340
|
+
roles: string[];
|
|
19803
20341
|
}[];
|
|
19804
20342
|
};
|
|
19805
20343
|
list_my_planning_items: {
|
|
@@ -20590,6 +21128,7 @@ export type Database = {
|
|
|
20590
21128
|
my_module_permissions: {
|
|
20591
21129
|
Args: never;
|
|
20592
21130
|
Returns: {
|
|
21131
|
+
feature_id: string;
|
|
20593
21132
|
module_id: string;
|
|
20594
21133
|
permission: string;
|
|
20595
21134
|
}[];
|
|
@@ -21470,6 +22009,16 @@ export type Database = {
|
|
|
21470
22009
|
};
|
|
21471
22010
|
Returns: string[];
|
|
21472
22011
|
};
|
|
22012
|
+
switch_time_log: {
|
|
22013
|
+
Args: {
|
|
22014
|
+
p_employee_id: string;
|
|
22015
|
+
p_start_lat?: number;
|
|
22016
|
+
p_start_lng?: number;
|
|
22017
|
+
p_type: string;
|
|
22018
|
+
p_work_order_id?: string;
|
|
22019
|
+
};
|
|
22020
|
+
Returns: Json;
|
|
22021
|
+
};
|
|
21473
22022
|
sync_all_layer_stocks: {
|
|
21474
22023
|
Args: never;
|
|
21475
22024
|
Returns: undefined;
|
|
@@ -21520,6 +22069,24 @@ export type Database = {
|
|
|
21520
22069
|
};
|
|
21521
22070
|
Returns: boolean;
|
|
21522
22071
|
};
|
|
22072
|
+
twinfield_cron_lock_acquire: {
|
|
22073
|
+
Args: {
|
|
22074
|
+
_job_name: string;
|
|
22075
|
+
_stale_seconds?: number;
|
|
22076
|
+
};
|
|
22077
|
+
Returns: boolean;
|
|
22078
|
+
};
|
|
22079
|
+
twinfield_cron_lock_release: {
|
|
22080
|
+
Args: {
|
|
22081
|
+
_error?: string;
|
|
22082
|
+
_job_name: string;
|
|
22083
|
+
};
|
|
22084
|
+
Returns: undefined;
|
|
22085
|
+
};
|
|
22086
|
+
twinfield_prune_push_queue: {
|
|
22087
|
+
Args: never;
|
|
22088
|
+
Returns: number;
|
|
22089
|
+
};
|
|
21523
22090
|
twinfield_register_cron: {
|
|
21524
22091
|
Args: {
|
|
21525
22092
|
apikey?: string;
|