@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
|
@@ -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;
|
|
@@ -10265,6 +10470,7 @@ export type Database = {
|
|
|
10265
10470
|
module_registry: {
|
|
10266
10471
|
Row: {
|
|
10267
10472
|
created_at: string;
|
|
10473
|
+
enforce: boolean;
|
|
10268
10474
|
is_active: boolean;
|
|
10269
10475
|
last_seen_at: string;
|
|
10270
10476
|
module_id: string;
|
|
@@ -10274,6 +10480,7 @@ export type Database = {
|
|
|
10274
10480
|
};
|
|
10275
10481
|
Insert: {
|
|
10276
10482
|
created_at?: string;
|
|
10483
|
+
enforce?: boolean;
|
|
10277
10484
|
is_active?: boolean;
|
|
10278
10485
|
last_seen_at?: string;
|
|
10279
10486
|
module_id: string;
|
|
@@ -10283,6 +10490,7 @@ export type Database = {
|
|
|
10283
10490
|
};
|
|
10284
10491
|
Update: {
|
|
10285
10492
|
created_at?: string;
|
|
10493
|
+
enforce?: boolean;
|
|
10286
10494
|
is_active?: boolean;
|
|
10287
10495
|
last_seen_at?: string;
|
|
10288
10496
|
module_id?: string;
|
|
@@ -10343,65 +10551,6 @@ export type Database = {
|
|
|
10343
10551
|
};
|
|
10344
10552
|
Relationships: [];
|
|
10345
10553
|
};
|
|
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
10554
|
nmbrs_component_mapping: {
|
|
10406
10555
|
Row: {
|
|
10407
10556
|
created_at: string;
|
|
@@ -10474,15 +10623,7 @@ export type Database = {
|
|
|
10474
10623
|
nmbrs_employee_number?: string;
|
|
10475
10624
|
updated_at?: string;
|
|
10476
10625
|
};
|
|
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
|
-
];
|
|
10626
|
+
Relationships: [];
|
|
10486
10627
|
};
|
|
10487
10628
|
nmbrs_export_lines: {
|
|
10488
10629
|
Row: {
|
|
@@ -10531,13 +10672,6 @@ export type Database = {
|
|
|
10531
10672
|
wage_code?: string;
|
|
10532
10673
|
};
|
|
10533
10674
|
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
10675
|
{
|
|
10542
10676
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10543
10677
|
columns: ["run_id"];
|
|
@@ -13015,6 +13149,9 @@ export type Database = {
|
|
|
13015
13149
|
created_at: string;
|
|
13016
13150
|
id: string;
|
|
13017
13151
|
laatst_gezien: string;
|
|
13152
|
+
laatste_fout: string | null;
|
|
13153
|
+
laatste_request_id: number | null;
|
|
13154
|
+
mislukte_posts: number;
|
|
13018
13155
|
tick_sleutel: string;
|
|
13019
13156
|
updated_at: string;
|
|
13020
13157
|
};
|
|
@@ -13024,6 +13161,9 @@ export type Database = {
|
|
|
13024
13161
|
created_at?: string;
|
|
13025
13162
|
id?: string;
|
|
13026
13163
|
laatst_gezien?: string;
|
|
13164
|
+
laatste_fout?: string | null;
|
|
13165
|
+
laatste_request_id?: number | null;
|
|
13166
|
+
mislukte_posts?: number;
|
|
13027
13167
|
tick_sleutel?: string;
|
|
13028
13168
|
updated_at?: string;
|
|
13029
13169
|
};
|
|
@@ -13033,6 +13173,9 @@ export type Database = {
|
|
|
13033
13173
|
created_at?: string;
|
|
13034
13174
|
id?: string;
|
|
13035
13175
|
laatst_gezien?: string;
|
|
13176
|
+
laatste_fout?: string | null;
|
|
13177
|
+
laatste_request_id?: number | null;
|
|
13178
|
+
mislukte_posts?: number;
|
|
13036
13179
|
tick_sleutel?: string;
|
|
13037
13180
|
updated_at?: string;
|
|
13038
13181
|
};
|
|
@@ -14597,6 +14740,100 @@ export type Database = {
|
|
|
14597
14740
|
}
|
|
14598
14741
|
];
|
|
14599
14742
|
};
|
|
14743
|
+
role_assignments: {
|
|
14744
|
+
Row: {
|
|
14745
|
+
created_at: string;
|
|
14746
|
+
id: string;
|
|
14747
|
+
role_id: string;
|
|
14748
|
+
user_id: string;
|
|
14749
|
+
};
|
|
14750
|
+
Insert: {
|
|
14751
|
+
created_at?: string;
|
|
14752
|
+
id?: string;
|
|
14753
|
+
role_id: string;
|
|
14754
|
+
user_id: string;
|
|
14755
|
+
};
|
|
14756
|
+
Update: {
|
|
14757
|
+
created_at?: string;
|
|
14758
|
+
id?: string;
|
|
14759
|
+
role_id?: string;
|
|
14760
|
+
user_id?: string;
|
|
14761
|
+
};
|
|
14762
|
+
Relationships: [
|
|
14763
|
+
{
|
|
14764
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
14765
|
+
columns: ["role_id"];
|
|
14766
|
+
isOneToOne: false;
|
|
14767
|
+
referencedRelation: "roles";
|
|
14768
|
+
referencedColumns: ["id"];
|
|
14769
|
+
}
|
|
14770
|
+
];
|
|
14771
|
+
};
|
|
14772
|
+
role_permissions: {
|
|
14773
|
+
Row: {
|
|
14774
|
+
can_edit: boolean;
|
|
14775
|
+
can_view: boolean;
|
|
14776
|
+
feature_id: string;
|
|
14777
|
+
id: string;
|
|
14778
|
+
module_id: string;
|
|
14779
|
+
role_id: string;
|
|
14780
|
+
updated_at: string;
|
|
14781
|
+
};
|
|
14782
|
+
Insert: {
|
|
14783
|
+
can_edit?: boolean;
|
|
14784
|
+
can_view?: boolean;
|
|
14785
|
+
feature_id?: string;
|
|
14786
|
+
id?: string;
|
|
14787
|
+
module_id: string;
|
|
14788
|
+
role_id: string;
|
|
14789
|
+
updated_at?: string;
|
|
14790
|
+
};
|
|
14791
|
+
Update: {
|
|
14792
|
+
can_edit?: boolean;
|
|
14793
|
+
can_view?: boolean;
|
|
14794
|
+
feature_id?: string;
|
|
14795
|
+
id?: string;
|
|
14796
|
+
module_id?: string;
|
|
14797
|
+
role_id?: string;
|
|
14798
|
+
updated_at?: string;
|
|
14799
|
+
};
|
|
14800
|
+
Relationships: [
|
|
14801
|
+
{
|
|
14802
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
14803
|
+
columns: ["role_id"];
|
|
14804
|
+
isOneToOne: false;
|
|
14805
|
+
referencedRelation: "roles";
|
|
14806
|
+
referencedColumns: ["id"];
|
|
14807
|
+
}
|
|
14808
|
+
];
|
|
14809
|
+
};
|
|
14810
|
+
roles: {
|
|
14811
|
+
Row: {
|
|
14812
|
+
created_at: string;
|
|
14813
|
+
id: string;
|
|
14814
|
+
is_protected: boolean;
|
|
14815
|
+
key: string;
|
|
14816
|
+
name: string;
|
|
14817
|
+
updated_at: string;
|
|
14818
|
+
};
|
|
14819
|
+
Insert: {
|
|
14820
|
+
created_at?: string;
|
|
14821
|
+
id?: string;
|
|
14822
|
+
is_protected?: boolean;
|
|
14823
|
+
key: string;
|
|
14824
|
+
name: string;
|
|
14825
|
+
updated_at?: string;
|
|
14826
|
+
};
|
|
14827
|
+
Update: {
|
|
14828
|
+
created_at?: string;
|
|
14829
|
+
id?: string;
|
|
14830
|
+
is_protected?: boolean;
|
|
14831
|
+
key?: string;
|
|
14832
|
+
name?: string;
|
|
14833
|
+
updated_at?: string;
|
|
14834
|
+
};
|
|
14835
|
+
Relationships: [];
|
|
14836
|
+
};
|
|
14600
14837
|
rooms: {
|
|
14601
14838
|
Row: {
|
|
14602
14839
|
capacity: number;
|
|
@@ -15277,102 +15514,258 @@ export type Database = {
|
|
|
15277
15514
|
};
|
|
15278
15515
|
Relationships: [];
|
|
15279
15516
|
};
|
|
15280
|
-
|
|
15517
|
+
time_compensation_entries: {
|
|
15281
15518
|
Row: {
|
|
15282
15519
|
created_at: string;
|
|
15283
15520
|
employee_id: string;
|
|
15284
15521
|
entry_date: string;
|
|
15285
|
-
hours: number;
|
|
15286
15522
|
id: string;
|
|
15523
|
+
km: number;
|
|
15524
|
+
meal_allowance: number;
|
|
15287
15525
|
notes: string | null;
|
|
15288
|
-
|
|
15289
|
-
|
|
15526
|
+
standby_evening: number;
|
|
15527
|
+
standby_weekend: number;
|
|
15528
|
+
tvt_change: number;
|
|
15290
15529
|
updated_at: string;
|
|
15291
15530
|
};
|
|
15292
15531
|
Insert: {
|
|
15293
15532
|
created_at?: string;
|
|
15294
15533
|
employee_id: string;
|
|
15295
15534
|
entry_date: string;
|
|
15296
|
-
hours?: number;
|
|
15297
15535
|
id?: string;
|
|
15536
|
+
km?: number;
|
|
15537
|
+
meal_allowance?: number;
|
|
15298
15538
|
notes?: string | null;
|
|
15299
|
-
|
|
15300
|
-
|
|
15539
|
+
standby_evening?: number;
|
|
15540
|
+
standby_weekend?: number;
|
|
15541
|
+
tvt_change?: number;
|
|
15301
15542
|
updated_at?: string;
|
|
15302
15543
|
};
|
|
15303
15544
|
Update: {
|
|
15304
15545
|
created_at?: string;
|
|
15305
15546
|
employee_id?: string;
|
|
15306
15547
|
entry_date?: string;
|
|
15307
|
-
hours?: number;
|
|
15308
15548
|
id?: string;
|
|
15549
|
+
km?: number;
|
|
15550
|
+
meal_allowance?: number;
|
|
15309
15551
|
notes?: string | null;
|
|
15310
|
-
|
|
15311
|
-
|
|
15552
|
+
standby_evening?: number;
|
|
15553
|
+
standby_weekend?: number;
|
|
15554
|
+
tvt_change?: number;
|
|
15312
15555
|
updated_at?: string;
|
|
15313
15556
|
};
|
|
15314
15557
|
Relationships: [
|
|
15315
15558
|
{
|
|
15316
|
-
foreignKeyName: "
|
|
15559
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
15317
15560
|
columns: ["employee_id"];
|
|
15318
15561
|
isOneToOne: false;
|
|
15319
|
-
referencedRelation: "
|
|
15562
|
+
referencedRelation: "profiles";
|
|
15320
15563
|
referencedColumns: ["id"];
|
|
15321
15564
|
}
|
|
15322
15565
|
];
|
|
15323
15566
|
};
|
|
15324
|
-
|
|
15567
|
+
time_entries: {
|
|
15325
15568
|
Row: {
|
|
15326
15569
|
created_at: string;
|
|
15327
15570
|
employee_id: string;
|
|
15328
|
-
|
|
15571
|
+
entry_date: string;
|
|
15572
|
+
hours: number;
|
|
15329
15573
|
id: string;
|
|
15330
15574
|
notes: string | null;
|
|
15331
|
-
|
|
15332
|
-
|
|
15333
|
-
|
|
15575
|
+
overtime: number;
|
|
15576
|
+
undertime: number;
|
|
15577
|
+
updated_at: string;
|
|
15578
|
+
};
|
|
15579
|
+
Insert: {
|
|
15580
|
+
created_at?: string;
|
|
15581
|
+
employee_id: string;
|
|
15582
|
+
entry_date: string;
|
|
15583
|
+
hours?: number;
|
|
15584
|
+
id?: string;
|
|
15585
|
+
notes?: string | null;
|
|
15586
|
+
overtime?: number;
|
|
15587
|
+
undertime?: number;
|
|
15588
|
+
updated_at?: string;
|
|
15589
|
+
};
|
|
15590
|
+
Update: {
|
|
15591
|
+
created_at?: string;
|
|
15592
|
+
employee_id?: string;
|
|
15593
|
+
entry_date?: string;
|
|
15594
|
+
hours?: number;
|
|
15595
|
+
id?: string;
|
|
15596
|
+
notes?: string | null;
|
|
15597
|
+
overtime?: number;
|
|
15598
|
+
undertime?: number;
|
|
15599
|
+
updated_at?: string;
|
|
15600
|
+
};
|
|
15601
|
+
Relationships: [];
|
|
15602
|
+
};
|
|
15603
|
+
time_log_week_approvals: {
|
|
15604
|
+
Row: {
|
|
15605
|
+
approved_at: string | null;
|
|
15606
|
+
approved_by: string | null;
|
|
15607
|
+
created_at: string;
|
|
15608
|
+
employee_id: string;
|
|
15609
|
+
id: string;
|
|
15610
|
+
locked: boolean;
|
|
15611
|
+
notes: string | null;
|
|
15612
|
+
status: string;
|
|
15613
|
+
submitted_at: string | null;
|
|
15614
|
+
updated_at: string;
|
|
15615
|
+
week_start: string;
|
|
15616
|
+
};
|
|
15617
|
+
Insert: {
|
|
15618
|
+
approved_at?: string | null;
|
|
15619
|
+
approved_by?: string | null;
|
|
15620
|
+
created_at?: string;
|
|
15621
|
+
employee_id: string;
|
|
15622
|
+
id?: string;
|
|
15623
|
+
locked?: boolean;
|
|
15624
|
+
notes?: string | null;
|
|
15625
|
+
status?: string;
|
|
15626
|
+
submitted_at?: string | null;
|
|
15627
|
+
updated_at?: string;
|
|
15628
|
+
week_start: string;
|
|
15629
|
+
};
|
|
15630
|
+
Update: {
|
|
15631
|
+
approved_at?: string | null;
|
|
15632
|
+
approved_by?: string | null;
|
|
15633
|
+
created_at?: string;
|
|
15634
|
+
employee_id?: string;
|
|
15635
|
+
id?: string;
|
|
15636
|
+
locked?: boolean;
|
|
15637
|
+
notes?: string | null;
|
|
15638
|
+
status?: string;
|
|
15639
|
+
submitted_at?: string | null;
|
|
15640
|
+
updated_at?: string;
|
|
15641
|
+
week_start?: string;
|
|
15642
|
+
};
|
|
15643
|
+
Relationships: [
|
|
15644
|
+
{
|
|
15645
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
15646
|
+
columns: ["employee_id"];
|
|
15647
|
+
isOneToOne: false;
|
|
15648
|
+
referencedRelation: "profiles";
|
|
15649
|
+
referencedColumns: ["id"];
|
|
15650
|
+
}
|
|
15651
|
+
];
|
|
15652
|
+
};
|
|
15653
|
+
time_logs: {
|
|
15654
|
+
Row: {
|
|
15655
|
+
auto_stop_reason: string | null;
|
|
15656
|
+
auto_stopped: boolean;
|
|
15657
|
+
created_at: string;
|
|
15658
|
+
current_latitude: number | null;
|
|
15659
|
+
current_longitude: number | null;
|
|
15660
|
+
current_position_updated_at: string | null;
|
|
15661
|
+
employee_id: string;
|
|
15662
|
+
end_latitude: number | null;
|
|
15663
|
+
end_longitude: number | null;
|
|
15664
|
+
end_time: string | null;
|
|
15665
|
+
eta_distance_km: number | null;
|
|
15666
|
+
eta_minutes: number | null;
|
|
15667
|
+
eta_updated_at: string | null;
|
|
15668
|
+
hour_category: string | null;
|
|
15669
|
+
id: string;
|
|
15670
|
+
last_reminder_at: string | null;
|
|
15671
|
+
notes: string | null;
|
|
15672
|
+
overtime_hours: number;
|
|
15673
|
+
overtime_type: string | null;
|
|
15674
|
+
regular_hours: number;
|
|
15675
|
+
reminder_count: number;
|
|
15676
|
+
requires_review: boolean;
|
|
15677
|
+
start_latitude: number | null;
|
|
15678
|
+
start_longitude: number | null;
|
|
15334
15679
|
start_time: string;
|
|
15335
15680
|
travel_cost: number | null;
|
|
15336
15681
|
travel_distance_km: number | null;
|
|
15682
|
+
travel_duration_min: number | null;
|
|
15683
|
+
travel_time_minutes: number | null;
|
|
15337
15684
|
type: string;
|
|
15338
15685
|
updated_at: string;
|
|
15686
|
+
work_order_id: string | null;
|
|
15339
15687
|
};
|
|
15340
15688
|
Insert: {
|
|
15689
|
+
auto_stop_reason?: string | null;
|
|
15690
|
+
auto_stopped?: boolean;
|
|
15341
15691
|
created_at?: string;
|
|
15692
|
+
current_latitude?: number | null;
|
|
15693
|
+
current_longitude?: number | null;
|
|
15694
|
+
current_position_updated_at?: string | null;
|
|
15342
15695
|
employee_id: string;
|
|
15696
|
+
end_latitude?: number | null;
|
|
15697
|
+
end_longitude?: number | null;
|
|
15343
15698
|
end_time?: string | null;
|
|
15699
|
+
eta_distance_km?: number | null;
|
|
15700
|
+
eta_minutes?: number | null;
|
|
15701
|
+
eta_updated_at?: string | null;
|
|
15702
|
+
hour_category?: string | null;
|
|
15344
15703
|
id?: string;
|
|
15704
|
+
last_reminder_at?: string | null;
|
|
15345
15705
|
notes?: string | null;
|
|
15346
15706
|
overtime_hours?: number;
|
|
15347
15707
|
overtime_type?: string | null;
|
|
15348
15708
|
regular_hours?: number;
|
|
15709
|
+
reminder_count?: number;
|
|
15710
|
+
requires_review?: boolean;
|
|
15711
|
+
start_latitude?: number | null;
|
|
15712
|
+
start_longitude?: number | null;
|
|
15349
15713
|
start_time?: string;
|
|
15350
15714
|
travel_cost?: number | null;
|
|
15351
15715
|
travel_distance_km?: number | null;
|
|
15716
|
+
travel_duration_min?: number | null;
|
|
15717
|
+
travel_time_minutes?: number | null;
|
|
15352
15718
|
type: string;
|
|
15353
15719
|
updated_at?: string;
|
|
15720
|
+
work_order_id?: string | null;
|
|
15354
15721
|
};
|
|
15355
15722
|
Update: {
|
|
15723
|
+
auto_stop_reason?: string | null;
|
|
15724
|
+
auto_stopped?: boolean;
|
|
15356
15725
|
created_at?: string;
|
|
15726
|
+
current_latitude?: number | null;
|
|
15727
|
+
current_longitude?: number | null;
|
|
15728
|
+
current_position_updated_at?: string | null;
|
|
15357
15729
|
employee_id?: string;
|
|
15730
|
+
end_latitude?: number | null;
|
|
15731
|
+
end_longitude?: number | null;
|
|
15358
15732
|
end_time?: string | null;
|
|
15733
|
+
eta_distance_km?: number | null;
|
|
15734
|
+
eta_minutes?: number | null;
|
|
15735
|
+
eta_updated_at?: string | null;
|
|
15736
|
+
hour_category?: string | null;
|
|
15359
15737
|
id?: string;
|
|
15738
|
+
last_reminder_at?: string | null;
|
|
15360
15739
|
notes?: string | null;
|
|
15361
15740
|
overtime_hours?: number;
|
|
15362
15741
|
overtime_type?: string | null;
|
|
15363
15742
|
regular_hours?: number;
|
|
15743
|
+
reminder_count?: number;
|
|
15744
|
+
requires_review?: boolean;
|
|
15745
|
+
start_latitude?: number | null;
|
|
15746
|
+
start_longitude?: number | null;
|
|
15364
15747
|
start_time?: string;
|
|
15365
15748
|
travel_cost?: number | null;
|
|
15366
15749
|
travel_distance_km?: number | null;
|
|
15750
|
+
travel_duration_min?: number | null;
|
|
15751
|
+
travel_time_minutes?: number | null;
|
|
15367
15752
|
type?: string;
|
|
15368
15753
|
updated_at?: string;
|
|
15754
|
+
work_order_id?: string | null;
|
|
15369
15755
|
};
|
|
15370
15756
|
Relationships: [
|
|
15371
15757
|
{
|
|
15372
15758
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
15373
15759
|
columns: ["employee_id"];
|
|
15374
15760
|
isOneToOne: false;
|
|
15375
|
-
referencedRelation: "
|
|
15761
|
+
referencedRelation: "profiles";
|
|
15762
|
+
referencedColumns: ["id"];
|
|
15763
|
+
},
|
|
15764
|
+
{
|
|
15765
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
15766
|
+
columns: ["work_order_id"];
|
|
15767
|
+
isOneToOne: false;
|
|
15768
|
+
referencedRelation: "work_orders";
|
|
15376
15769
|
referencedColumns: ["id"];
|
|
15377
15770
|
}
|
|
15378
15771
|
];
|
|
@@ -15413,7 +15806,7 @@ export type Database = {
|
|
|
15413
15806
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
15414
15807
|
columns: ["employee_id"];
|
|
15415
15808
|
isOneToOne: false;
|
|
15416
|
-
referencedRelation: "
|
|
15809
|
+
referencedRelation: "profiles";
|
|
15417
15810
|
referencedColumns: ["id"];
|
|
15418
15811
|
}
|
|
15419
15812
|
];
|
|
@@ -15726,6 +16119,39 @@ export type Database = {
|
|
|
15726
16119
|
};
|
|
15727
16120
|
Relationships: [];
|
|
15728
16121
|
};
|
|
16122
|
+
twinfield_cron_locks: {
|
|
16123
|
+
Row: {
|
|
16124
|
+
created_at: string;
|
|
16125
|
+
heartbeat_at: string;
|
|
16126
|
+
job_name: string;
|
|
16127
|
+
last_error: string | null;
|
|
16128
|
+
last_finished_at: string | null;
|
|
16129
|
+
locked_at: string;
|
|
16130
|
+
run_id: string;
|
|
16131
|
+
updated_at: string;
|
|
16132
|
+
};
|
|
16133
|
+
Insert: {
|
|
16134
|
+
created_at?: string;
|
|
16135
|
+
heartbeat_at?: string;
|
|
16136
|
+
job_name: string;
|
|
16137
|
+
last_error?: string | null;
|
|
16138
|
+
last_finished_at?: string | null;
|
|
16139
|
+
locked_at?: string;
|
|
16140
|
+
run_id?: string;
|
|
16141
|
+
updated_at?: string;
|
|
16142
|
+
};
|
|
16143
|
+
Update: {
|
|
16144
|
+
created_at?: string;
|
|
16145
|
+
heartbeat_at?: string;
|
|
16146
|
+
job_name?: string;
|
|
16147
|
+
last_error?: string | null;
|
|
16148
|
+
last_finished_at?: string | null;
|
|
16149
|
+
locked_at?: string;
|
|
16150
|
+
run_id?: string;
|
|
16151
|
+
updated_at?: string;
|
|
16152
|
+
};
|
|
16153
|
+
Relationships: [];
|
|
16154
|
+
};
|
|
15729
16155
|
twinfield_customers: {
|
|
15730
16156
|
Row: {
|
|
15731
16157
|
address: string | null;
|
|
@@ -16336,6 +16762,7 @@ export type Database = {
|
|
|
16336
16762
|
twinfield_push_queue: {
|
|
16337
16763
|
Row: {
|
|
16338
16764
|
action: string;
|
|
16765
|
+
attempt_started_at: string | null;
|
|
16339
16766
|
attempts: number;
|
|
16340
16767
|
connection_id: string | null;
|
|
16341
16768
|
created_at: string;
|
|
@@ -16352,6 +16779,7 @@ export type Database = {
|
|
|
16352
16779
|
};
|
|
16353
16780
|
Insert: {
|
|
16354
16781
|
action?: string;
|
|
16782
|
+
attempt_started_at?: string | null;
|
|
16355
16783
|
attempts?: number;
|
|
16356
16784
|
connection_id?: string | null;
|
|
16357
16785
|
created_at?: string;
|
|
@@ -16368,6 +16796,7 @@ export type Database = {
|
|
|
16368
16796
|
};
|
|
16369
16797
|
Update: {
|
|
16370
16798
|
action?: string;
|
|
16799
|
+
attempt_started_at?: string | null;
|
|
16371
16800
|
attempts?: number;
|
|
16372
16801
|
connection_id?: string | null;
|
|
16373
16802
|
created_at?: string;
|
|
@@ -16570,15 +16999,7 @@ export type Database = {
|
|
|
16570
16999
|
workday_end?: string | null;
|
|
16571
17000
|
workday_start?: string | null;
|
|
16572
17001
|
};
|
|
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
|
-
];
|
|
17002
|
+
Relationships: [];
|
|
16582
17003
|
};
|
|
16583
17004
|
uren_entries: {
|
|
16584
17005
|
Row: {
|
|
@@ -16624,13 +17045,6 @@ export type Database = {
|
|
|
16624
17045
|
werkbon_id?: string | null;
|
|
16625
17046
|
};
|
|
16626
17047
|
Relationships: [
|
|
16627
|
-
{
|
|
16628
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16629
|
-
columns: ["monteur_id"];
|
|
16630
|
-
isOneToOne: false;
|
|
16631
|
-
referencedRelation: "monteurs";
|
|
16632
|
-
referencedColumns: ["id"];
|
|
16633
|
-
},
|
|
16634
17048
|
{
|
|
16635
17049
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16636
17050
|
columns: ["werkbon_id"];
|
|
@@ -17112,19 +17526,12 @@ export type Database = {
|
|
|
17112
17526
|
submitted_at?: string | null;
|
|
17113
17527
|
updated_at?: string;
|
|
17114
17528
|
};
|
|
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
|
-
];
|
|
17529
|
+
Relationships: [];
|
|
17124
17530
|
};
|
|
17125
17531
|
user_module_permissions: {
|
|
17126
17532
|
Row: {
|
|
17127
17533
|
created_at: string;
|
|
17534
|
+
feature_id: string;
|
|
17128
17535
|
id: string;
|
|
17129
17536
|
module_id: string;
|
|
17130
17537
|
permission: string;
|
|
@@ -17133,6 +17540,7 @@ export type Database = {
|
|
|
17133
17540
|
};
|
|
17134
17541
|
Insert: {
|
|
17135
17542
|
created_at?: string;
|
|
17543
|
+
feature_id?: string;
|
|
17136
17544
|
id?: string;
|
|
17137
17545
|
module_id: string;
|
|
17138
17546
|
permission: string;
|
|
@@ -17141,6 +17549,7 @@ export type Database = {
|
|
|
17141
17549
|
};
|
|
17142
17550
|
Update: {
|
|
17143
17551
|
created_at?: string;
|
|
17552
|
+
feature_id?: string;
|
|
17144
17553
|
id?: string;
|
|
17145
17554
|
module_id?: string;
|
|
17146
17555
|
permission?: string;
|
|
@@ -17178,6 +17587,53 @@ export type Database = {
|
|
|
17178
17587
|
}
|
|
17179
17588
|
];
|
|
17180
17589
|
};
|
|
17590
|
+
van_inventories: {
|
|
17591
|
+
Row: {
|
|
17592
|
+
barcode: string | null;
|
|
17593
|
+
created_at: string;
|
|
17594
|
+
id: string;
|
|
17595
|
+
monteur_id: string | null;
|
|
17596
|
+
price_per_unit: number;
|
|
17597
|
+
product_name: string;
|
|
17598
|
+
quantity_current: number;
|
|
17599
|
+
quantity_min: number;
|
|
17600
|
+
unit: string;
|
|
17601
|
+
updated_at: string;
|
|
17602
|
+
};
|
|
17603
|
+
Insert: {
|
|
17604
|
+
barcode?: string | null;
|
|
17605
|
+
created_at?: string;
|
|
17606
|
+
id?: string;
|
|
17607
|
+
monteur_id?: string | null;
|
|
17608
|
+
price_per_unit?: number;
|
|
17609
|
+
product_name: string;
|
|
17610
|
+
quantity_current?: number;
|
|
17611
|
+
quantity_min?: number;
|
|
17612
|
+
unit?: string;
|
|
17613
|
+
updated_at?: string;
|
|
17614
|
+
};
|
|
17615
|
+
Update: {
|
|
17616
|
+
barcode?: string | null;
|
|
17617
|
+
created_at?: string;
|
|
17618
|
+
id?: string;
|
|
17619
|
+
monteur_id?: string | null;
|
|
17620
|
+
price_per_unit?: number;
|
|
17621
|
+
product_name?: string;
|
|
17622
|
+
quantity_current?: number;
|
|
17623
|
+
quantity_min?: number;
|
|
17624
|
+
unit?: string;
|
|
17625
|
+
updated_at?: string;
|
|
17626
|
+
};
|
|
17627
|
+
Relationships: [
|
|
17628
|
+
{
|
|
17629
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
17630
|
+
columns: ["monteur_id"];
|
|
17631
|
+
isOneToOne: false;
|
|
17632
|
+
referencedRelation: "profiles";
|
|
17633
|
+
referencedColumns: ["id"];
|
|
17634
|
+
}
|
|
17635
|
+
];
|
|
17636
|
+
};
|
|
17181
17637
|
voorraad_custom_fields: {
|
|
17182
17638
|
Row: {
|
|
17183
17639
|
created_at: string;
|
|
@@ -18151,7 +18607,7 @@ export type Database = {
|
|
|
18151
18607
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
18152
18608
|
columns: ["monteur_id"];
|
|
18153
18609
|
isOneToOne: false;
|
|
18154
|
-
referencedRelation: "
|
|
18610
|
+
referencedRelation: "profiles";
|
|
18155
18611
|
referencedColumns: ["id"];
|
|
18156
18612
|
},
|
|
18157
18613
|
{
|
|
@@ -18163,6 +18619,63 @@ export type Database = {
|
|
|
18163
18619
|
}
|
|
18164
18620
|
];
|
|
18165
18621
|
};
|
|
18622
|
+
work_order_photos: {
|
|
18623
|
+
Row: {
|
|
18624
|
+
ai_caption: string | null;
|
|
18625
|
+
ai_categorized_at: string | null;
|
|
18626
|
+
ai_labels: Json | null;
|
|
18627
|
+
caption: string | null;
|
|
18628
|
+
created_at: string;
|
|
18629
|
+
id: string;
|
|
18630
|
+
monteur_id: string | null;
|
|
18631
|
+
photo_type: string;
|
|
18632
|
+
storage_path: string;
|
|
18633
|
+
updated_at: string;
|
|
18634
|
+
work_order_id: string;
|
|
18635
|
+
};
|
|
18636
|
+
Insert: {
|
|
18637
|
+
ai_caption?: string | null;
|
|
18638
|
+
ai_categorized_at?: string | null;
|
|
18639
|
+
ai_labels?: Json | null;
|
|
18640
|
+
caption?: string | null;
|
|
18641
|
+
created_at?: string;
|
|
18642
|
+
id?: string;
|
|
18643
|
+
monteur_id?: string | null;
|
|
18644
|
+
photo_type?: string;
|
|
18645
|
+
storage_path: string;
|
|
18646
|
+
updated_at?: string;
|
|
18647
|
+
work_order_id: string;
|
|
18648
|
+
};
|
|
18649
|
+
Update: {
|
|
18650
|
+
ai_caption?: string | null;
|
|
18651
|
+
ai_categorized_at?: string | null;
|
|
18652
|
+
ai_labels?: Json | null;
|
|
18653
|
+
caption?: string | null;
|
|
18654
|
+
created_at?: string;
|
|
18655
|
+
id?: string;
|
|
18656
|
+
monteur_id?: string | null;
|
|
18657
|
+
photo_type?: string;
|
|
18658
|
+
storage_path?: string;
|
|
18659
|
+
updated_at?: string;
|
|
18660
|
+
work_order_id?: string;
|
|
18661
|
+
};
|
|
18662
|
+
Relationships: [
|
|
18663
|
+
{
|
|
18664
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
18665
|
+
columns: ["monteur_id"];
|
|
18666
|
+
isOneToOne: false;
|
|
18667
|
+
referencedRelation: "profiles";
|
|
18668
|
+
referencedColumns: ["id"];
|
|
18669
|
+
},
|
|
18670
|
+
{
|
|
18671
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
18672
|
+
columns: ["work_order_id"];
|
|
18673
|
+
isOneToOne: false;
|
|
18674
|
+
referencedRelation: "work_orders";
|
|
18675
|
+
referencedColumns: ["id"];
|
|
18676
|
+
}
|
|
18677
|
+
];
|
|
18678
|
+
};
|
|
18166
18679
|
work_orders: {
|
|
18167
18680
|
Row: {
|
|
18168
18681
|
assigned_to: string | null;
|
|
@@ -18194,7 +18707,6 @@ export type Database = {
|
|
|
18194
18707
|
scheduled_end_time: string | null;
|
|
18195
18708
|
scheduled_start_time: string | null;
|
|
18196
18709
|
status: string;
|
|
18197
|
-
tenant_id: string;
|
|
18198
18710
|
total_hours_worked: number | null;
|
|
18199
18711
|
total_price: number | null;
|
|
18200
18712
|
travel_time_minutes: number | null;
|
|
@@ -18232,7 +18744,6 @@ export type Database = {
|
|
|
18232
18744
|
scheduled_end_time?: string | null;
|
|
18233
18745
|
scheduled_start_time?: string | null;
|
|
18234
18746
|
status?: string;
|
|
18235
|
-
tenant_id: string;
|
|
18236
18747
|
total_hours_worked?: number | null;
|
|
18237
18748
|
total_price?: number | null;
|
|
18238
18749
|
travel_time_minutes?: number | null;
|
|
@@ -18270,7 +18781,6 @@ export type Database = {
|
|
|
18270
18781
|
scheduled_end_time?: string | null;
|
|
18271
18782
|
scheduled_start_time?: string | null;
|
|
18272
18783
|
status?: string;
|
|
18273
|
-
tenant_id?: string;
|
|
18274
18784
|
total_hours_worked?: number | null;
|
|
18275
18785
|
total_price?: number | null;
|
|
18276
18786
|
travel_time_minutes?: number | null;
|
|
@@ -18285,13 +18795,6 @@ export type Database = {
|
|
|
18285
18795
|
isOneToOne: false;
|
|
18286
18796
|
referencedRelation: "work_orders";
|
|
18287
18797
|
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
18798
|
}
|
|
18296
18799
|
];
|
|
18297
18800
|
};
|
|
@@ -18989,6 +19492,19 @@ export type Database = {
|
|
|
18989
19492
|
};
|
|
18990
19493
|
Returns: undefined;
|
|
18991
19494
|
};
|
|
19495
|
+
approve_mailbox_order_proposal: {
|
|
19496
|
+
Args: {
|
|
19497
|
+
p_custom_fields: Json;
|
|
19498
|
+
p_customer_id: string;
|
|
19499
|
+
p_delivery_date: string;
|
|
19500
|
+
p_field_values?: Json;
|
|
19501
|
+
p_lines: Json;
|
|
19502
|
+
p_notes: string;
|
|
19503
|
+
p_proposal_id: string;
|
|
19504
|
+
p_reviewed_by: string;
|
|
19505
|
+
};
|
|
19506
|
+
Returns: Json;
|
|
19507
|
+
};
|
|
18992
19508
|
assign_cart_numbers: {
|
|
18993
19509
|
Args: {
|
|
18994
19510
|
p_carts: Json;
|
|
@@ -19040,6 +19556,10 @@ export type Database = {
|
|
|
19040
19556
|
};
|
|
19041
19557
|
Returns: number;
|
|
19042
19558
|
};
|
|
19559
|
+
can_manage_hours: {
|
|
19560
|
+
Args: never;
|
|
19561
|
+
Returns: boolean;
|
|
19562
|
+
};
|
|
19043
19563
|
check_offer_product_available_stock: {
|
|
19044
19564
|
Args: {
|
|
19045
19565
|
p_campaign_product_id: string;
|
|
@@ -19229,6 +19749,7 @@ export type Database = {
|
|
|
19229
19749
|
};
|
|
19230
19750
|
Returns: {
|
|
19231
19751
|
action: string;
|
|
19752
|
+
attempt_started_at: string | null;
|
|
19232
19753
|
attempts: number;
|
|
19233
19754
|
connection_id: string | null;
|
|
19234
19755
|
created_at: string;
|
|
@@ -19316,6 +19837,30 @@ export type Database = {
|
|
|
19316
19837
|
agent_naam: string;
|
|
19317
19838
|
}[];
|
|
19318
19839
|
};
|
|
19840
|
+
consume_van_inventory: {
|
|
19841
|
+
Args: {
|
|
19842
|
+
p_inventory_id: string;
|
|
19843
|
+
p_quantity: number;
|
|
19844
|
+
};
|
|
19845
|
+
Returns: {
|
|
19846
|
+
barcode: string | null;
|
|
19847
|
+
created_at: string;
|
|
19848
|
+
id: string;
|
|
19849
|
+
monteur_id: string | null;
|
|
19850
|
+
price_per_unit: number;
|
|
19851
|
+
product_name: string;
|
|
19852
|
+
quantity_current: number;
|
|
19853
|
+
quantity_min: number;
|
|
19854
|
+
unit: string;
|
|
19855
|
+
updated_at: string;
|
|
19856
|
+
};
|
|
19857
|
+
SetofOptions: {
|
|
19858
|
+
from: "*";
|
|
19859
|
+
to: "van_inventories";
|
|
19860
|
+
isOneToOne: true;
|
|
19861
|
+
isSetofReturn: false;
|
|
19862
|
+
};
|
|
19863
|
+
};
|
|
19319
19864
|
control_get_todays_carts: {
|
|
19320
19865
|
Args: never;
|
|
19321
19866
|
Returns: {
|
|
@@ -19389,6 +19934,13 @@ export type Database = {
|
|
|
19389
19934
|
_user_id: string;
|
|
19390
19935
|
};
|
|
19391
19936
|
Returns: string;
|
|
19937
|
+
} | {
|
|
19938
|
+
Args: {
|
|
19939
|
+
_feature_id: string;
|
|
19940
|
+
_module_id: string;
|
|
19941
|
+
_user_id: string;
|
|
19942
|
+
};
|
|
19943
|
+
Returns: string;
|
|
19392
19944
|
};
|
|
19393
19945
|
email_auth_decrypt: {
|
|
19394
19946
|
Args: {
|
|
@@ -19740,12 +20292,6 @@ export type Database = {
|
|
|
19740
20292
|
Args: never;
|
|
19741
20293
|
Returns: string;
|
|
19742
20294
|
};
|
|
19743
|
-
get_work_order_tenant_id: {
|
|
19744
|
-
Args: {
|
|
19745
|
-
wo_id: string;
|
|
19746
|
-
};
|
|
19747
|
-
Returns: string;
|
|
19748
|
-
};
|
|
19749
20295
|
has_module_permission: {
|
|
19750
20296
|
Args: {
|
|
19751
20297
|
_min: string;
|
|
@@ -19779,6 +20325,13 @@ export type Database = {
|
|
|
19779
20325
|
};
|
|
19780
20326
|
Returns: boolean;
|
|
19781
20327
|
};
|
|
20328
|
+
is_time_log_week_locked: {
|
|
20329
|
+
Args: {
|
|
20330
|
+
p_employee_id: string;
|
|
20331
|
+
p_start_time: string;
|
|
20332
|
+
};
|
|
20333
|
+
Returns: boolean;
|
|
20334
|
+
};
|
|
19782
20335
|
is_user_admin: {
|
|
19783
20336
|
Args: never;
|
|
19784
20337
|
Returns: boolean;
|
|
@@ -19793,13 +20346,14 @@ export type Database = {
|
|
|
19793
20346
|
};
|
|
19794
20347
|
Returns: boolean;
|
|
19795
20348
|
};
|
|
19796
|
-
|
|
20349
|
+
list_medewerkers: {
|
|
19797
20350
|
Args: never;
|
|
19798
20351
|
Returns: {
|
|
19799
20352
|
avatar_url: string;
|
|
19800
20353
|
display_name: string;
|
|
19801
20354
|
email: string;
|
|
19802
20355
|
id: string;
|
|
20356
|
+
roles: string[];
|
|
19803
20357
|
}[];
|
|
19804
20358
|
};
|
|
19805
20359
|
list_my_planning_items: {
|
|
@@ -20125,17 +20679,6 @@ export type Database = {
|
|
|
20125
20679
|
Returns: string;
|
|
20126
20680
|
};
|
|
20127
20681
|
logistics_emit_event: {
|
|
20128
|
-
Args: {
|
|
20129
|
-
p_event_type: string;
|
|
20130
|
-
p_idempotency_key?: string;
|
|
20131
|
-
p_order_ref: string;
|
|
20132
|
-
p_payload?: Json;
|
|
20133
|
-
p_shadow?: boolean;
|
|
20134
|
-
p_source_module: string;
|
|
20135
|
-
p_strategy_id?: string;
|
|
20136
|
-
};
|
|
20137
|
-
Returns: Json;
|
|
20138
|
-
} | {
|
|
20139
20682
|
Args: {
|
|
20140
20683
|
p_event_type: string;
|
|
20141
20684
|
p_idempotency_key?: string;
|
|
@@ -20590,6 +21133,7 @@ export type Database = {
|
|
|
20590
21133
|
my_module_permissions: {
|
|
20591
21134
|
Args: never;
|
|
20592
21135
|
Returns: {
|
|
21136
|
+
feature_id: string;
|
|
20593
21137
|
module_id: string;
|
|
20594
21138
|
permission: string;
|
|
20595
21139
|
}[];
|
|
@@ -21470,6 +22014,16 @@ export type Database = {
|
|
|
21470
22014
|
};
|
|
21471
22015
|
Returns: string[];
|
|
21472
22016
|
};
|
|
22017
|
+
switch_time_log: {
|
|
22018
|
+
Args: {
|
|
22019
|
+
p_employee_id: string;
|
|
22020
|
+
p_start_lat?: number;
|
|
22021
|
+
p_start_lng?: number;
|
|
22022
|
+
p_type: string;
|
|
22023
|
+
p_work_order_id?: string;
|
|
22024
|
+
};
|
|
22025
|
+
Returns: Json;
|
|
22026
|
+
};
|
|
21473
22027
|
sync_all_layer_stocks: {
|
|
21474
22028
|
Args: never;
|
|
21475
22029
|
Returns: undefined;
|
|
@@ -21520,6 +22074,24 @@ export type Database = {
|
|
|
21520
22074
|
};
|
|
21521
22075
|
Returns: boolean;
|
|
21522
22076
|
};
|
|
22077
|
+
twinfield_cron_lock_acquire: {
|
|
22078
|
+
Args: {
|
|
22079
|
+
_job_name: string;
|
|
22080
|
+
_stale_seconds?: number;
|
|
22081
|
+
};
|
|
22082
|
+
Returns: boolean;
|
|
22083
|
+
};
|
|
22084
|
+
twinfield_cron_lock_release: {
|
|
22085
|
+
Args: {
|
|
22086
|
+
_error?: string;
|
|
22087
|
+
_job_name: string;
|
|
22088
|
+
};
|
|
22089
|
+
Returns: undefined;
|
|
22090
|
+
};
|
|
22091
|
+
twinfield_prune_push_queue: {
|
|
22092
|
+
Args: never;
|
|
22093
|
+
Returns: number;
|
|
22094
|
+
};
|
|
21523
22095
|
twinfield_register_cron: {
|
|
21524
22096
|
Args: {
|
|
21525
22097
|
apikey?: string;
|
|
@@ -21563,7 +22135,7 @@ export type Database = {
|
|
|
21563
22135
|
Enums: {
|
|
21564
22136
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
21565
22137
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
21566
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
22138
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
21567
22139
|
doc_orientation: "portrait" | "landscape";
|
|
21568
22140
|
exact_env: "staging" | "live";
|
|
21569
22141
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -21634,7 +22206,7 @@ export declare const Constants: {
|
|
|
21634
22206
|
readonly Enums: {
|
|
21635
22207
|
readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
|
|
21636
22208
|
readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie"];
|
|
21637
|
-
readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon"];
|
|
22209
|
+
readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon", "veilingbon", "afleverbrief", "veilingbrief"];
|
|
21638
22210
|
readonly doc_orientation: readonly ["portrait", "landscape"];
|
|
21639
22211
|
readonly exact_env: readonly ["staging", "live"];
|
|
21640
22212
|
readonly exact_push_status: readonly ["pending", "sent", "error"];
|