@flowselections/floriday-verkoop-module 1.0.41 → 1.0.43
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/verkoop/SalesOrdersTable.d.ts +5 -2
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.js +27 -13
- package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/VerkoopOrdersPage.js +141 -27
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1428 -172
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1428 -172
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1428 -172
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1453 -170
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +3 -0
- package/dist-lib/lib/cart-lock.functions.d.ts +1428 -172
- package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-planning-settings.functions.d.ts +15224 -1408
- package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.d.ts +4152 -384
- package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.d.ts +65255 -1978
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.js +48 -1
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +4152 -384
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +1428 -172
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.d.ts +1428 -172
- package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.js +6 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +9688 -896
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +6920 -640
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.functions.d.ts +5536 -512
- package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.server.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.server.js +1 -0
- package/dist-lib/lib/load-carriers.functions.d.ts +1428 -172
- package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-engine.functions.d.ts +6920 -640
- package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-stock.functions.d.ts +2768 -256
- package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-addresses.functions.d.ts +1428 -172
- package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-buffers.functions.d.ts +4152 -384
- package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-cancel.server.d.ts +24 -0
- package/dist-lib/lib/order-cancel.server.d.ts.map +1 -0
- package/dist-lib/lib/order-cancel.server.js +130 -0
- package/dist-lib/lib/order-carrier.functions.d.ts +2768 -256
- package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-pickup.functions.d.ts +2768 -256
- package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-shipments.functions.d.ts +5536 -512
- package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.functions.d.ts +1428 -172
- package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.server.js +4 -60
- package/dist-lib/lib/salesorders-mapping.d.ts +6 -0
- package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-mapping.js +17 -0
- package/dist-lib/lib/salesorders.functions.d.ts +6920 -640
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/tradeitems.functions.d.ts +1428 -172
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -5037,6 +5157,42 @@ export type Database = {
|
|
|
5037
5157
|
};
|
|
5038
5158
|
Relationships: [];
|
|
5039
5159
|
};
|
|
5160
|
+
facturen: {
|
|
5161
|
+
Row: {
|
|
5162
|
+
bedrag_incl_btw: number;
|
|
5163
|
+
created_at: string;
|
|
5164
|
+
datum: string;
|
|
5165
|
+
factuurnummer: string;
|
|
5166
|
+
id: string;
|
|
5167
|
+
klantnaam: string;
|
|
5168
|
+
status: string;
|
|
5169
|
+
updated_at: string;
|
|
5170
|
+
user_id: string;
|
|
5171
|
+
};
|
|
5172
|
+
Insert: {
|
|
5173
|
+
bedrag_incl_btw: number;
|
|
5174
|
+
created_at?: string;
|
|
5175
|
+
datum?: string;
|
|
5176
|
+
factuurnummer: string;
|
|
5177
|
+
id?: string;
|
|
5178
|
+
klantnaam: string;
|
|
5179
|
+
status?: string;
|
|
5180
|
+
updated_at?: string;
|
|
5181
|
+
user_id?: string;
|
|
5182
|
+
};
|
|
5183
|
+
Update: {
|
|
5184
|
+
bedrag_incl_btw?: number;
|
|
5185
|
+
created_at?: string;
|
|
5186
|
+
datum?: string;
|
|
5187
|
+
factuurnummer?: string;
|
|
5188
|
+
id?: string;
|
|
5189
|
+
klantnaam?: string;
|
|
5190
|
+
status?: string;
|
|
5191
|
+
updated_at?: string;
|
|
5192
|
+
user_id?: string;
|
|
5193
|
+
};
|
|
5194
|
+
Relationships: [];
|
|
5195
|
+
};
|
|
5040
5196
|
floricode_connection_settings: {
|
|
5041
5197
|
Row: {
|
|
5042
5198
|
catalog_key: string | null;
|
|
@@ -7856,6 +8012,269 @@ export type Database = {
|
|
|
7856
8012
|
};
|
|
7857
8013
|
Relationships: [];
|
|
7858
8014
|
};
|
|
8015
|
+
itk_offerte_events: {
|
|
8016
|
+
Row: {
|
|
8017
|
+
created_at: string;
|
|
8018
|
+
event_type: string;
|
|
8019
|
+
id: string;
|
|
8020
|
+
metadata: Json;
|
|
8021
|
+
offerte_id: string;
|
|
8022
|
+
omschrijving: string | null;
|
|
8023
|
+
user_id: string | null;
|
|
8024
|
+
};
|
|
8025
|
+
Insert: {
|
|
8026
|
+
created_at?: string;
|
|
8027
|
+
event_type: string;
|
|
8028
|
+
id?: string;
|
|
8029
|
+
metadata?: Json;
|
|
8030
|
+
offerte_id: string;
|
|
8031
|
+
omschrijving?: string | null;
|
|
8032
|
+
user_id?: string | null;
|
|
8033
|
+
};
|
|
8034
|
+
Update: {
|
|
8035
|
+
created_at?: string;
|
|
8036
|
+
event_type?: string;
|
|
8037
|
+
id?: string;
|
|
8038
|
+
metadata?: Json;
|
|
8039
|
+
offerte_id?: string;
|
|
8040
|
+
omschrijving?: string | null;
|
|
8041
|
+
user_id?: string | null;
|
|
8042
|
+
};
|
|
8043
|
+
Relationships: [
|
|
8044
|
+
{
|
|
8045
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
8046
|
+
columns: ["offerte_id"];
|
|
8047
|
+
isOneToOne: false;
|
|
8048
|
+
referencedRelation: "itk_offertes";
|
|
8049
|
+
referencedColumns: ["id"];
|
|
8050
|
+
}
|
|
8051
|
+
];
|
|
8052
|
+
};
|
|
8053
|
+
itk_offerte_regels: {
|
|
8054
|
+
Row: {
|
|
8055
|
+
created_at: string;
|
|
8056
|
+
id: string;
|
|
8057
|
+
line_total_cents: number;
|
|
8058
|
+
offerte_id: string;
|
|
8059
|
+
omschrijving: string;
|
|
8060
|
+
package_id: string | null;
|
|
8061
|
+
quantity: number;
|
|
8062
|
+
sort_order: number;
|
|
8063
|
+
source: string;
|
|
8064
|
+
unit_price_cents: number;
|
|
8065
|
+
updated_at: string;
|
|
8066
|
+
};
|
|
8067
|
+
Insert: {
|
|
8068
|
+
created_at?: string;
|
|
8069
|
+
id?: string;
|
|
8070
|
+
line_total_cents?: number;
|
|
8071
|
+
offerte_id: string;
|
|
8072
|
+
omschrijving?: string;
|
|
8073
|
+
package_id?: string | null;
|
|
8074
|
+
quantity?: number;
|
|
8075
|
+
sort_order?: number;
|
|
8076
|
+
source?: string;
|
|
8077
|
+
unit_price_cents?: number;
|
|
8078
|
+
updated_at?: string;
|
|
8079
|
+
};
|
|
8080
|
+
Update: {
|
|
8081
|
+
created_at?: string;
|
|
8082
|
+
id?: string;
|
|
8083
|
+
line_total_cents?: number;
|
|
8084
|
+
offerte_id?: string;
|
|
8085
|
+
omschrijving?: string;
|
|
8086
|
+
package_id?: string | null;
|
|
8087
|
+
quantity?: number;
|
|
8088
|
+
sort_order?: number;
|
|
8089
|
+
source?: string;
|
|
8090
|
+
unit_price_cents?: number;
|
|
8091
|
+
updated_at?: string;
|
|
8092
|
+
};
|
|
8093
|
+
Relationships: [
|
|
8094
|
+
{
|
|
8095
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
8096
|
+
columns: ["offerte_id"];
|
|
8097
|
+
isOneToOne: false;
|
|
8098
|
+
referencedRelation: "itk_offertes";
|
|
8099
|
+
referencedColumns: ["id"];
|
|
8100
|
+
},
|
|
8101
|
+
{
|
|
8102
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
8103
|
+
columns: ["package_id"];
|
|
8104
|
+
isOneToOne: false;
|
|
8105
|
+
referencedRelation: "werkbon_packages";
|
|
8106
|
+
referencedColumns: ["id"];
|
|
8107
|
+
}
|
|
8108
|
+
];
|
|
8109
|
+
};
|
|
8110
|
+
itk_offerte_settings: {
|
|
8111
|
+
Row: {
|
|
8112
|
+
auto_convert_binnen_mandaat: boolean;
|
|
8113
|
+
created_at: string;
|
|
8114
|
+
default_geldigheid_dagen: number;
|
|
8115
|
+
default_vat_rate: number;
|
|
8116
|
+
id: string;
|
|
8117
|
+
singleton: boolean;
|
|
8118
|
+
updated_at: string;
|
|
8119
|
+
};
|
|
8120
|
+
Insert: {
|
|
8121
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
8122
|
+
created_at?: string;
|
|
8123
|
+
default_geldigheid_dagen?: number;
|
|
8124
|
+
default_vat_rate?: number;
|
|
8125
|
+
id?: string;
|
|
8126
|
+
singleton?: boolean;
|
|
8127
|
+
updated_at?: string;
|
|
8128
|
+
};
|
|
8129
|
+
Update: {
|
|
8130
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
8131
|
+
created_at?: string;
|
|
8132
|
+
default_geldigheid_dagen?: number;
|
|
8133
|
+
default_vat_rate?: number;
|
|
8134
|
+
id?: string;
|
|
8135
|
+
singleton?: boolean;
|
|
8136
|
+
updated_at?: string;
|
|
8137
|
+
};
|
|
8138
|
+
Relationships: [];
|
|
8139
|
+
};
|
|
8140
|
+
itk_offertes: {
|
|
8141
|
+
Row: {
|
|
8142
|
+
ai_generated: boolean;
|
|
8143
|
+
approved_at: string | null;
|
|
8144
|
+
binnen_mandaat: boolean;
|
|
8145
|
+
contact_id: string | null;
|
|
8146
|
+
converted_at: string | null;
|
|
8147
|
+
created_at: string;
|
|
8148
|
+
created_by: string | null;
|
|
8149
|
+
customer_id: string | null;
|
|
8150
|
+
follow_up_werkbon_id: string | null;
|
|
8151
|
+
id: string;
|
|
8152
|
+
jaar: number;
|
|
8153
|
+
mandaat_restant_cents: number;
|
|
8154
|
+
notities: string | null;
|
|
8155
|
+
offerte_number: string | null;
|
|
8156
|
+
omschrijving: string;
|
|
8157
|
+
rejected_at: string | null;
|
|
8158
|
+
sent_at: string | null;
|
|
8159
|
+
source_number: string | null;
|
|
8160
|
+
source_ref: string | null;
|
|
8161
|
+
source_type: string;
|
|
8162
|
+
status: string;
|
|
8163
|
+
subtotal_cents: number;
|
|
8164
|
+
total_cents: number;
|
|
8165
|
+
updated_at: string;
|
|
8166
|
+
valid_until: string | null;
|
|
8167
|
+
vat_cents: number;
|
|
8168
|
+
vat_rate: number;
|
|
8169
|
+
viewed_at: string | null;
|
|
8170
|
+
volgnummer: number | null;
|
|
8171
|
+
werkbon_id: string | null;
|
|
8172
|
+
work_location_id: string | null;
|
|
8173
|
+
};
|
|
8174
|
+
Insert: {
|
|
8175
|
+
ai_generated?: boolean;
|
|
8176
|
+
approved_at?: string | null;
|
|
8177
|
+
binnen_mandaat?: boolean;
|
|
8178
|
+
contact_id?: string | null;
|
|
8179
|
+
converted_at?: string | null;
|
|
8180
|
+
created_at?: string;
|
|
8181
|
+
created_by?: string | null;
|
|
8182
|
+
customer_id?: string | null;
|
|
8183
|
+
follow_up_werkbon_id?: string | null;
|
|
8184
|
+
id?: string;
|
|
8185
|
+
jaar?: number;
|
|
8186
|
+
mandaat_restant_cents?: number;
|
|
8187
|
+
notities?: string | null;
|
|
8188
|
+
offerte_number?: string | null;
|
|
8189
|
+
omschrijving?: string;
|
|
8190
|
+
rejected_at?: string | null;
|
|
8191
|
+
sent_at?: string | null;
|
|
8192
|
+
source_number?: string | null;
|
|
8193
|
+
source_ref?: string | null;
|
|
8194
|
+
source_type?: string;
|
|
8195
|
+
status?: string;
|
|
8196
|
+
subtotal_cents?: number;
|
|
8197
|
+
total_cents?: number;
|
|
8198
|
+
updated_at?: string;
|
|
8199
|
+
valid_until?: string | null;
|
|
8200
|
+
vat_cents?: number;
|
|
8201
|
+
vat_rate?: number;
|
|
8202
|
+
viewed_at?: string | null;
|
|
8203
|
+
volgnummer?: number | null;
|
|
8204
|
+
werkbon_id?: string | null;
|
|
8205
|
+
work_location_id?: string | null;
|
|
8206
|
+
};
|
|
8207
|
+
Update: {
|
|
8208
|
+
ai_generated?: boolean;
|
|
8209
|
+
approved_at?: string | null;
|
|
8210
|
+
binnen_mandaat?: boolean;
|
|
8211
|
+
contact_id?: string | null;
|
|
8212
|
+
converted_at?: string | null;
|
|
8213
|
+
created_at?: string;
|
|
8214
|
+
created_by?: string | null;
|
|
8215
|
+
customer_id?: string | null;
|
|
8216
|
+
follow_up_werkbon_id?: string | null;
|
|
8217
|
+
id?: string;
|
|
8218
|
+
jaar?: number;
|
|
8219
|
+
mandaat_restant_cents?: number;
|
|
8220
|
+
notities?: string | null;
|
|
8221
|
+
offerte_number?: string | null;
|
|
8222
|
+
omschrijving?: string;
|
|
8223
|
+
rejected_at?: string | null;
|
|
8224
|
+
sent_at?: string | null;
|
|
8225
|
+
source_number?: string | null;
|
|
8226
|
+
source_ref?: string | null;
|
|
8227
|
+
source_type?: string;
|
|
8228
|
+
status?: string;
|
|
8229
|
+
subtotal_cents?: number;
|
|
8230
|
+
total_cents?: number;
|
|
8231
|
+
updated_at?: string;
|
|
8232
|
+
valid_until?: string | null;
|
|
8233
|
+
vat_cents?: number;
|
|
8234
|
+
vat_rate?: number;
|
|
8235
|
+
viewed_at?: string | null;
|
|
8236
|
+
volgnummer?: number | null;
|
|
8237
|
+
werkbon_id?: string | null;
|
|
8238
|
+
work_location_id?: string | null;
|
|
8239
|
+
};
|
|
8240
|
+
Relationships: [
|
|
8241
|
+
{
|
|
8242
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
8243
|
+
columns: ["contact_id"];
|
|
8244
|
+
isOneToOne: false;
|
|
8245
|
+
referencedRelation: "itk_contact_persons";
|
|
8246
|
+
referencedColumns: ["id"];
|
|
8247
|
+
},
|
|
8248
|
+
{
|
|
8249
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
8250
|
+
columns: ["customer_id"];
|
|
8251
|
+
isOneToOne: false;
|
|
8252
|
+
referencedRelation: "itk_customers";
|
|
8253
|
+
referencedColumns: ["id"];
|
|
8254
|
+
},
|
|
8255
|
+
{
|
|
8256
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
8257
|
+
columns: ["follow_up_werkbon_id"];
|
|
8258
|
+
isOneToOne: false;
|
|
8259
|
+
referencedRelation: "werkbonnen";
|
|
8260
|
+
referencedColumns: ["id"];
|
|
8261
|
+
},
|
|
8262
|
+
{
|
|
8263
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
8264
|
+
columns: ["werkbon_id"];
|
|
8265
|
+
isOneToOne: false;
|
|
8266
|
+
referencedRelation: "werkbonnen";
|
|
8267
|
+
referencedColumns: ["id"];
|
|
8268
|
+
},
|
|
8269
|
+
{
|
|
8270
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
8271
|
+
columns: ["work_location_id"];
|
|
8272
|
+
isOneToOne: false;
|
|
8273
|
+
referencedRelation: "itk_work_locations";
|
|
8274
|
+
referencedColumns: ["id"];
|
|
8275
|
+
}
|
|
8276
|
+
];
|
|
8277
|
+
};
|
|
7859
8278
|
itk_work_locations: {
|
|
7860
8279
|
Row: {
|
|
7861
8280
|
city: string | null;
|
|
@@ -7975,7 +8394,6 @@ export type Database = {
|
|
|
7975
8394
|
start_date: string;
|
|
7976
8395
|
start_time: string | null;
|
|
7977
8396
|
status: string;
|
|
7978
|
-
tenant_id: string;
|
|
7979
8397
|
updated_at: string;
|
|
7980
8398
|
user_id: string;
|
|
7981
8399
|
};
|
|
@@ -7993,7 +8411,6 @@ export type Database = {
|
|
|
7993
8411
|
start_date: string;
|
|
7994
8412
|
start_time?: string | null;
|
|
7995
8413
|
status?: string;
|
|
7996
|
-
tenant_id?: string;
|
|
7997
8414
|
updated_at?: string;
|
|
7998
8415
|
user_id: string;
|
|
7999
8416
|
};
|
|
@@ -8011,7 +8428,6 @@ export type Database = {
|
|
|
8011
8428
|
start_date?: string;
|
|
8012
8429
|
start_time?: string | null;
|
|
8013
8430
|
status?: string;
|
|
8014
|
-
tenant_id?: string;
|
|
8015
8431
|
updated_at?: string;
|
|
8016
8432
|
user_id?: string;
|
|
8017
8433
|
};
|
|
@@ -8020,14 +8436,14 @@ export type Database = {
|
|
|
8020
8436
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
8021
8437
|
columns: ["monteur_id"];
|
|
8022
8438
|
isOneToOne: false;
|
|
8023
|
-
referencedRelation: "
|
|
8439
|
+
referencedRelation: "profiles";
|
|
8024
8440
|
referencedColumns: ["id"];
|
|
8025
8441
|
},
|
|
8026
8442
|
{
|
|
8027
8443
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
8028
8444
|
columns: ["user_id"];
|
|
8029
8445
|
isOneToOne: false;
|
|
8030
|
-
referencedRelation: "
|
|
8446
|
+
referencedRelation: "profiles";
|
|
8031
8447
|
referencedColumns: ["id"];
|
|
8032
8448
|
}
|
|
8033
8449
|
];
|
|
@@ -8918,12 +9334,51 @@ export type Database = {
|
|
|
8918
9334
|
};
|
|
8919
9335
|
Relationships: [];
|
|
8920
9336
|
};
|
|
8921
|
-
|
|
9337
|
+
logistics_plan_queue: {
|
|
8922
9338
|
Row: {
|
|
8923
|
-
|
|
9339
|
+
attempts: number;
|
|
9340
|
+
claimed_at: string | null;
|
|
9341
|
+
enqueued_at: string;
|
|
8924
9342
|
error: string | null;
|
|
8925
9343
|
id: string;
|
|
8926
|
-
|
|
9344
|
+
next_attempt_at: string;
|
|
9345
|
+
order_id: string;
|
|
9346
|
+
reason: string;
|
|
9347
|
+
status: string;
|
|
9348
|
+
updated_at: string;
|
|
9349
|
+
};
|
|
9350
|
+
Insert: {
|
|
9351
|
+
attempts?: number;
|
|
9352
|
+
claimed_at?: string | null;
|
|
9353
|
+
enqueued_at?: string;
|
|
9354
|
+
error?: string | null;
|
|
9355
|
+
id?: string;
|
|
9356
|
+
next_attempt_at?: string;
|
|
9357
|
+
order_id: string;
|
|
9358
|
+
reason?: string;
|
|
9359
|
+
status?: string;
|
|
9360
|
+
updated_at?: string;
|
|
9361
|
+
};
|
|
9362
|
+
Update: {
|
|
9363
|
+
attempts?: number;
|
|
9364
|
+
claimed_at?: string | null;
|
|
9365
|
+
enqueued_at?: string;
|
|
9366
|
+
error?: string | null;
|
|
9367
|
+
id?: string;
|
|
9368
|
+
next_attempt_at?: string;
|
|
9369
|
+
order_id?: string;
|
|
9370
|
+
reason?: string;
|
|
9371
|
+
status?: string;
|
|
9372
|
+
updated_at?: string;
|
|
9373
|
+
};
|
|
9374
|
+
Relationships: [];
|
|
9375
|
+
};
|
|
9376
|
+
logistics_plan_runs: {
|
|
9377
|
+
Row: {
|
|
9378
|
+
created_at: string;
|
|
9379
|
+
error: string | null;
|
|
9380
|
+
id: string;
|
|
9381
|
+
input: Json;
|
|
8927
9382
|
order_ref: string;
|
|
8928
9383
|
rule_config_id: string | null;
|
|
8929
9384
|
rule_version: number | null;
|
|
@@ -8996,6 +9451,24 @@ export type Database = {
|
|
|
8996
9451
|
}
|
|
8997
9452
|
];
|
|
8998
9453
|
};
|
|
9454
|
+
logistics_plan_settings: {
|
|
9455
|
+
Row: {
|
|
9456
|
+
key: string;
|
|
9457
|
+
updated_at: string;
|
|
9458
|
+
value: string;
|
|
9459
|
+
};
|
|
9460
|
+
Insert: {
|
|
9461
|
+
key: string;
|
|
9462
|
+
updated_at?: string;
|
|
9463
|
+
value: string;
|
|
9464
|
+
};
|
|
9465
|
+
Update: {
|
|
9466
|
+
key?: string;
|
|
9467
|
+
updated_at?: string;
|
|
9468
|
+
value?: string;
|
|
9469
|
+
};
|
|
9470
|
+
Relationships: [];
|
|
9471
|
+
};
|
|
8999
9472
|
logistics_rebuffer_state: {
|
|
9000
9473
|
Row: {
|
|
9001
9474
|
created_at: string;
|
|
@@ -10178,6 +10651,153 @@ export type Database = {
|
|
|
10178
10651
|
};
|
|
10179
10652
|
Relationships: [];
|
|
10180
10653
|
};
|
|
10654
|
+
material_usage: {
|
|
10655
|
+
Row: {
|
|
10656
|
+
created_at: string;
|
|
10657
|
+
id: string;
|
|
10658
|
+
material_name: string;
|
|
10659
|
+
monteur_id: string | null;
|
|
10660
|
+
price_at_time: number;
|
|
10661
|
+
quantity_used: number;
|
|
10662
|
+
updated_at: string;
|
|
10663
|
+
van_inventory_id: string | null;
|
|
10664
|
+
work_order_id: string;
|
|
10665
|
+
};
|
|
10666
|
+
Insert: {
|
|
10667
|
+
created_at?: string;
|
|
10668
|
+
id?: string;
|
|
10669
|
+
material_name: string;
|
|
10670
|
+
monteur_id?: string | null;
|
|
10671
|
+
price_at_time?: number;
|
|
10672
|
+
quantity_used?: number;
|
|
10673
|
+
updated_at?: string;
|
|
10674
|
+
van_inventory_id?: string | null;
|
|
10675
|
+
work_order_id: string;
|
|
10676
|
+
};
|
|
10677
|
+
Update: {
|
|
10678
|
+
created_at?: string;
|
|
10679
|
+
id?: string;
|
|
10680
|
+
material_name?: string;
|
|
10681
|
+
monteur_id?: string | null;
|
|
10682
|
+
price_at_time?: number;
|
|
10683
|
+
quantity_used?: number;
|
|
10684
|
+
updated_at?: string;
|
|
10685
|
+
van_inventory_id?: string | null;
|
|
10686
|
+
work_order_id?: string;
|
|
10687
|
+
};
|
|
10688
|
+
Relationships: [
|
|
10689
|
+
{
|
|
10690
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
10691
|
+
columns: ["monteur_id"];
|
|
10692
|
+
isOneToOne: false;
|
|
10693
|
+
referencedRelation: "profiles";
|
|
10694
|
+
referencedColumns: ["id"];
|
|
10695
|
+
},
|
|
10696
|
+
{
|
|
10697
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
10698
|
+
columns: ["van_inventory_id"];
|
|
10699
|
+
isOneToOne: false;
|
|
10700
|
+
referencedRelation: "van_inventories";
|
|
10701
|
+
referencedColumns: ["id"];
|
|
10702
|
+
},
|
|
10703
|
+
{
|
|
10704
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
10705
|
+
columns: ["work_order_id"];
|
|
10706
|
+
isOneToOne: false;
|
|
10707
|
+
referencedRelation: "work_orders";
|
|
10708
|
+
referencedColumns: ["id"];
|
|
10709
|
+
}
|
|
10710
|
+
];
|
|
10711
|
+
};
|
|
10712
|
+
medewerker_details: {
|
|
10713
|
+
Row: {
|
|
10714
|
+
color: string | null;
|
|
10715
|
+
created_at: string;
|
|
10716
|
+
hours_fri: number | null;
|
|
10717
|
+
hours_mon: number | null;
|
|
10718
|
+
hours_thu: number | null;
|
|
10719
|
+
hours_tue: number | null;
|
|
10720
|
+
hours_wed: number | null;
|
|
10721
|
+
id: string;
|
|
10722
|
+
is_active: boolean;
|
|
10723
|
+
leave_balance_hours: number;
|
|
10724
|
+
persnr: string | null;
|
|
10725
|
+
phone: string | null;
|
|
10726
|
+
profile_id: string;
|
|
10727
|
+
updated_at: string;
|
|
10728
|
+
};
|
|
10729
|
+
Insert: {
|
|
10730
|
+
color?: string | null;
|
|
10731
|
+
created_at?: string;
|
|
10732
|
+
hours_fri?: number | null;
|
|
10733
|
+
hours_mon?: number | null;
|
|
10734
|
+
hours_thu?: number | null;
|
|
10735
|
+
hours_tue?: number | null;
|
|
10736
|
+
hours_wed?: number | null;
|
|
10737
|
+
id?: string;
|
|
10738
|
+
is_active?: boolean;
|
|
10739
|
+
leave_balance_hours?: number;
|
|
10740
|
+
persnr?: string | null;
|
|
10741
|
+
phone?: string | null;
|
|
10742
|
+
profile_id: string;
|
|
10743
|
+
updated_at?: string;
|
|
10744
|
+
};
|
|
10745
|
+
Update: {
|
|
10746
|
+
color?: string | null;
|
|
10747
|
+
created_at?: string;
|
|
10748
|
+
hours_fri?: number | null;
|
|
10749
|
+
hours_mon?: number | null;
|
|
10750
|
+
hours_thu?: number | null;
|
|
10751
|
+
hours_tue?: number | null;
|
|
10752
|
+
hours_wed?: number | null;
|
|
10753
|
+
id?: string;
|
|
10754
|
+
is_active?: boolean;
|
|
10755
|
+
leave_balance_hours?: number;
|
|
10756
|
+
persnr?: string | null;
|
|
10757
|
+
phone?: string | null;
|
|
10758
|
+
profile_id?: string;
|
|
10759
|
+
updated_at?: string;
|
|
10760
|
+
};
|
|
10761
|
+
Relationships: [
|
|
10762
|
+
{
|
|
10763
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
10764
|
+
columns: ["profile_id"];
|
|
10765
|
+
isOneToOne: true;
|
|
10766
|
+
referencedRelation: "profiles";
|
|
10767
|
+
referencedColumns: ["id"];
|
|
10768
|
+
}
|
|
10769
|
+
];
|
|
10770
|
+
};
|
|
10771
|
+
module_features: {
|
|
10772
|
+
Row: {
|
|
10773
|
+
created_at: string;
|
|
10774
|
+
feature_id: string;
|
|
10775
|
+
id: string;
|
|
10776
|
+
is_active: boolean;
|
|
10777
|
+
last_seen_at: string;
|
|
10778
|
+
module_id: string;
|
|
10779
|
+
name: string;
|
|
10780
|
+
};
|
|
10781
|
+
Insert: {
|
|
10782
|
+
created_at?: string;
|
|
10783
|
+
feature_id: string;
|
|
10784
|
+
id?: string;
|
|
10785
|
+
is_active?: boolean;
|
|
10786
|
+
last_seen_at?: string;
|
|
10787
|
+
module_id: string;
|
|
10788
|
+
name: string;
|
|
10789
|
+
};
|
|
10790
|
+
Update: {
|
|
10791
|
+
created_at?: string;
|
|
10792
|
+
feature_id?: string;
|
|
10793
|
+
id?: string;
|
|
10794
|
+
is_active?: boolean;
|
|
10795
|
+
last_seen_at?: string;
|
|
10796
|
+
module_id?: string;
|
|
10797
|
+
name?: string;
|
|
10798
|
+
};
|
|
10799
|
+
Relationships: [];
|
|
10800
|
+
};
|
|
10181
10801
|
module_permissions: {
|
|
10182
10802
|
Row: {
|
|
10183
10803
|
created_at: string;
|
|
@@ -10208,6 +10828,7 @@ export type Database = {
|
|
|
10208
10828
|
module_registry: {
|
|
10209
10829
|
Row: {
|
|
10210
10830
|
created_at: string;
|
|
10831
|
+
enforce: boolean;
|
|
10211
10832
|
is_active: boolean;
|
|
10212
10833
|
last_seen_at: string;
|
|
10213
10834
|
module_id: string;
|
|
@@ -10217,6 +10838,7 @@ export type Database = {
|
|
|
10217
10838
|
};
|
|
10218
10839
|
Insert: {
|
|
10219
10840
|
created_at?: string;
|
|
10841
|
+
enforce?: boolean;
|
|
10220
10842
|
is_active?: boolean;
|
|
10221
10843
|
last_seen_at?: string;
|
|
10222
10844
|
module_id: string;
|
|
@@ -10226,6 +10848,7 @@ export type Database = {
|
|
|
10226
10848
|
};
|
|
10227
10849
|
Update: {
|
|
10228
10850
|
created_at?: string;
|
|
10851
|
+
enforce?: boolean;
|
|
10229
10852
|
is_active?: boolean;
|
|
10230
10853
|
last_seen_at?: string;
|
|
10231
10854
|
module_id?: string;
|
|
@@ -10286,65 +10909,6 @@ export type Database = {
|
|
|
10286
10909
|
};
|
|
10287
10910
|
Relationships: [];
|
|
10288
10911
|
};
|
|
10289
|
-
monteurs: {
|
|
10290
|
-
Row: {
|
|
10291
|
-
avatar_url: string | null;
|
|
10292
|
-
color: string | null;
|
|
10293
|
-
created_at: string;
|
|
10294
|
-
email: string | null;
|
|
10295
|
-
id: string;
|
|
10296
|
-
is_active: boolean;
|
|
10297
|
-
leave_balance_hours: number;
|
|
10298
|
-
name: string;
|
|
10299
|
-
persnr: number | null;
|
|
10300
|
-
phone: string | null;
|
|
10301
|
-
role: string;
|
|
10302
|
-
tenant_id: string;
|
|
10303
|
-
updated_at: string;
|
|
10304
|
-
user_id: string | null;
|
|
10305
|
-
};
|
|
10306
|
-
Insert: {
|
|
10307
|
-
avatar_url?: string | null;
|
|
10308
|
-
color?: string | null;
|
|
10309
|
-
created_at?: string;
|
|
10310
|
-
email?: string | null;
|
|
10311
|
-
id?: string;
|
|
10312
|
-
is_active?: boolean;
|
|
10313
|
-
leave_balance_hours?: number;
|
|
10314
|
-
name: string;
|
|
10315
|
-
persnr?: number | null;
|
|
10316
|
-
phone?: string | null;
|
|
10317
|
-
role?: string;
|
|
10318
|
-
tenant_id: string;
|
|
10319
|
-
updated_at?: string;
|
|
10320
|
-
user_id?: string | null;
|
|
10321
|
-
};
|
|
10322
|
-
Update: {
|
|
10323
|
-
avatar_url?: string | null;
|
|
10324
|
-
color?: string | null;
|
|
10325
|
-
created_at?: string;
|
|
10326
|
-
email?: string | null;
|
|
10327
|
-
id?: string;
|
|
10328
|
-
is_active?: boolean;
|
|
10329
|
-
leave_balance_hours?: number;
|
|
10330
|
-
name?: string;
|
|
10331
|
-
persnr?: number | null;
|
|
10332
|
-
phone?: string | null;
|
|
10333
|
-
role?: string;
|
|
10334
|
-
tenant_id?: string;
|
|
10335
|
-
updated_at?: string;
|
|
10336
|
-
user_id?: string | null;
|
|
10337
|
-
};
|
|
10338
|
-
Relationships: [
|
|
10339
|
-
{
|
|
10340
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
10341
|
-
columns: ["tenant_id"];
|
|
10342
|
-
isOneToOne: false;
|
|
10343
|
-
referencedRelation: "tenants";
|
|
10344
|
-
referencedColumns: ["id"];
|
|
10345
|
-
}
|
|
10346
|
-
];
|
|
10347
|
-
};
|
|
10348
10912
|
nmbrs_component_mapping: {
|
|
10349
10913
|
Row: {
|
|
10350
10914
|
created_at: string;
|
|
@@ -10417,15 +10981,7 @@ export type Database = {
|
|
|
10417
10981
|
nmbrs_employee_number?: string;
|
|
10418
10982
|
updated_at?: string;
|
|
10419
10983
|
};
|
|
10420
|
-
Relationships: [
|
|
10421
|
-
{
|
|
10422
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10423
|
-
columns: ["monteur_id"];
|
|
10424
|
-
isOneToOne: true;
|
|
10425
|
-
referencedRelation: "monteurs";
|
|
10426
|
-
referencedColumns: ["id"];
|
|
10427
|
-
}
|
|
10428
|
-
];
|
|
10984
|
+
Relationships: [];
|
|
10429
10985
|
};
|
|
10430
10986
|
nmbrs_export_lines: {
|
|
10431
10987
|
Row: {
|
|
@@ -10474,13 +11030,6 @@ export type Database = {
|
|
|
10474
11030
|
wage_code?: string;
|
|
10475
11031
|
};
|
|
10476
11032
|
Relationships: [
|
|
10477
|
-
{
|
|
10478
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10479
|
-
columns: ["monteur_id"];
|
|
10480
|
-
isOneToOne: false;
|
|
10481
|
-
referencedRelation: "monteurs";
|
|
10482
|
-
referencedColumns: ["id"];
|
|
10483
|
-
},
|
|
10484
11033
|
{
|
|
10485
11034
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10486
11035
|
columns: ["run_id"];
|
|
@@ -11338,6 +11887,7 @@ export type Database = {
|
|
|
11338
11887
|
error_message: string | null;
|
|
11339
11888
|
id: string;
|
|
11340
11889
|
invoice_number: string | null;
|
|
11890
|
+
next_attempt_at: string;
|
|
11341
11891
|
order_id: string;
|
|
11342
11892
|
processed_at: string | null;
|
|
11343
11893
|
status: string;
|
|
@@ -11349,6 +11899,7 @@ export type Database = {
|
|
|
11349
11899
|
error_message?: string | null;
|
|
11350
11900
|
id?: string;
|
|
11351
11901
|
invoice_number?: string | null;
|
|
11902
|
+
next_attempt_at?: string;
|
|
11352
11903
|
order_id: string;
|
|
11353
11904
|
processed_at?: string | null;
|
|
11354
11905
|
status?: string;
|
|
@@ -11360,6 +11911,7 @@ export type Database = {
|
|
|
11360
11911
|
error_message?: string | null;
|
|
11361
11912
|
id?: string;
|
|
11362
11913
|
invoice_number?: string | null;
|
|
11914
|
+
next_attempt_at?: string;
|
|
11363
11915
|
order_id?: string;
|
|
11364
11916
|
processed_at?: string | null;
|
|
11365
11917
|
status?: string;
|
|
@@ -11550,6 +12102,8 @@ export type Database = {
|
|
|
11550
12102
|
orders: {
|
|
11551
12103
|
Row: {
|
|
11552
12104
|
buffer_id: string | null;
|
|
12105
|
+
cancel_reason: string | null;
|
|
12106
|
+
cancelled_at: string | null;
|
|
11553
12107
|
created_at: string;
|
|
11554
12108
|
custom_fields: Json;
|
|
11555
12109
|
customer_id: string | null;
|
|
@@ -11572,6 +12126,8 @@ export type Database = {
|
|
|
11572
12126
|
};
|
|
11573
12127
|
Insert: {
|
|
11574
12128
|
buffer_id?: string | null;
|
|
12129
|
+
cancel_reason?: string | null;
|
|
12130
|
+
cancelled_at?: string | null;
|
|
11575
12131
|
created_at?: string;
|
|
11576
12132
|
custom_fields?: Json;
|
|
11577
12133
|
customer_id?: string | null;
|
|
@@ -11594,6 +12150,8 @@ export type Database = {
|
|
|
11594
12150
|
};
|
|
11595
12151
|
Update: {
|
|
11596
12152
|
buffer_id?: string | null;
|
|
12153
|
+
cancel_reason?: string | null;
|
|
12154
|
+
cancelled_at?: string | null;
|
|
11597
12155
|
created_at?: string;
|
|
11598
12156
|
custom_fields?: Json;
|
|
11599
12157
|
customer_id?: string | null;
|
|
@@ -12955,6 +13513,9 @@ export type Database = {
|
|
|
12955
13513
|
created_at: string;
|
|
12956
13514
|
id: string;
|
|
12957
13515
|
laatst_gezien: string;
|
|
13516
|
+
laatste_fout: string | null;
|
|
13517
|
+
laatste_request_id: number | null;
|
|
13518
|
+
mislukte_posts: number;
|
|
12958
13519
|
tick_sleutel: string;
|
|
12959
13520
|
updated_at: string;
|
|
12960
13521
|
};
|
|
@@ -12964,6 +13525,9 @@ export type Database = {
|
|
|
12964
13525
|
created_at?: string;
|
|
12965
13526
|
id?: string;
|
|
12966
13527
|
laatst_gezien?: string;
|
|
13528
|
+
laatste_fout?: string | null;
|
|
13529
|
+
laatste_request_id?: number | null;
|
|
13530
|
+
mislukte_posts?: number;
|
|
12967
13531
|
tick_sleutel?: string;
|
|
12968
13532
|
updated_at?: string;
|
|
12969
13533
|
};
|
|
@@ -12973,6 +13537,9 @@ export type Database = {
|
|
|
12973
13537
|
created_at?: string;
|
|
12974
13538
|
id?: string;
|
|
12975
13539
|
laatst_gezien?: string;
|
|
13540
|
+
laatste_fout?: string | null;
|
|
13541
|
+
laatste_request_id?: number | null;
|
|
13542
|
+
mislukte_posts?: number;
|
|
12976
13543
|
tick_sleutel?: string;
|
|
12977
13544
|
updated_at?: string;
|
|
12978
13545
|
};
|
|
@@ -13719,42 +14286,107 @@ export type Database = {
|
|
|
13719
14286
|
};
|
|
13720
14287
|
Relationships: [];
|
|
13721
14288
|
};
|
|
13722
|
-
|
|
14289
|
+
profile_modules: {
|
|
13723
14290
|
Row: {
|
|
13724
|
-
address: string | null;
|
|
13725
|
-
avatar_url: string | null;
|
|
13726
14291
|
created_at: string;
|
|
13727
|
-
display_name: string | null;
|
|
13728
|
-
email: string | null;
|
|
13729
14292
|
id: string;
|
|
13730
|
-
|
|
13731
|
-
|
|
13732
|
-
tenant_id: string | null;
|
|
13733
|
-
updated_at: string;
|
|
14293
|
+
module_id: string;
|
|
14294
|
+
profile_id: string;
|
|
13734
14295
|
};
|
|
13735
14296
|
Insert: {
|
|
13736
|
-
address?: string | null;
|
|
13737
|
-
avatar_url?: string | null;
|
|
13738
14297
|
created_at?: string;
|
|
13739
|
-
|
|
13740
|
-
|
|
13741
|
-
|
|
13742
|
-
is_superadmin?: boolean;
|
|
13743
|
-
notification_preferences?: Json;
|
|
13744
|
-
tenant_id?: string | null;
|
|
13745
|
-
updated_at?: string;
|
|
14298
|
+
id?: string;
|
|
14299
|
+
module_id: string;
|
|
14300
|
+
profile_id: string;
|
|
13746
14301
|
};
|
|
13747
14302
|
Update: {
|
|
13748
|
-
address?: string | null;
|
|
13749
|
-
avatar_url?: string | null;
|
|
13750
14303
|
created_at?: string;
|
|
13751
|
-
display_name?: string | null;
|
|
13752
|
-
email?: string | null;
|
|
13753
14304
|
id?: string;
|
|
13754
|
-
|
|
13755
|
-
|
|
13756
|
-
|
|
13757
|
-
|
|
14305
|
+
module_id?: string;
|
|
14306
|
+
profile_id?: string;
|
|
14307
|
+
};
|
|
14308
|
+
Relationships: [
|
|
14309
|
+
{
|
|
14310
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
14311
|
+
columns: ["profile_id"];
|
|
14312
|
+
isOneToOne: false;
|
|
14313
|
+
referencedRelation: "profiles_org";
|
|
14314
|
+
referencedColumns: ["id"];
|
|
14315
|
+
}
|
|
14316
|
+
];
|
|
14317
|
+
};
|
|
14318
|
+
profile_roles: {
|
|
14319
|
+
Row: {
|
|
14320
|
+
created_at: string;
|
|
14321
|
+
id: string;
|
|
14322
|
+
profile_id: string;
|
|
14323
|
+
role_id: string;
|
|
14324
|
+
};
|
|
14325
|
+
Insert: {
|
|
14326
|
+
created_at?: string;
|
|
14327
|
+
id?: string;
|
|
14328
|
+
profile_id: string;
|
|
14329
|
+
role_id: string;
|
|
14330
|
+
};
|
|
14331
|
+
Update: {
|
|
14332
|
+
created_at?: string;
|
|
14333
|
+
id?: string;
|
|
14334
|
+
profile_id?: string;
|
|
14335
|
+
role_id?: string;
|
|
14336
|
+
};
|
|
14337
|
+
Relationships: [
|
|
14338
|
+
{
|
|
14339
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
14340
|
+
columns: ["profile_id"];
|
|
14341
|
+
isOneToOne: false;
|
|
14342
|
+
referencedRelation: "profiles_org";
|
|
14343
|
+
referencedColumns: ["id"];
|
|
14344
|
+
},
|
|
14345
|
+
{
|
|
14346
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
14347
|
+
columns: ["role_id"];
|
|
14348
|
+
isOneToOne: false;
|
|
14349
|
+
referencedRelation: "roles";
|
|
14350
|
+
referencedColumns: ["id"];
|
|
14351
|
+
}
|
|
14352
|
+
];
|
|
14353
|
+
};
|
|
14354
|
+
profiles: {
|
|
14355
|
+
Row: {
|
|
14356
|
+
address: string | null;
|
|
14357
|
+
avatar_url: string | null;
|
|
14358
|
+
created_at: string;
|
|
14359
|
+
display_name: string | null;
|
|
14360
|
+
email: string | null;
|
|
14361
|
+
id: string;
|
|
14362
|
+
is_superadmin: boolean;
|
|
14363
|
+
notification_preferences: Json;
|
|
14364
|
+
tenant_id: string | null;
|
|
14365
|
+
updated_at: string;
|
|
14366
|
+
};
|
|
14367
|
+
Insert: {
|
|
14368
|
+
address?: string | null;
|
|
14369
|
+
avatar_url?: string | null;
|
|
14370
|
+
created_at?: string;
|
|
14371
|
+
display_name?: string | null;
|
|
14372
|
+
email?: string | null;
|
|
14373
|
+
id: string;
|
|
14374
|
+
is_superadmin?: boolean;
|
|
14375
|
+
notification_preferences?: Json;
|
|
14376
|
+
tenant_id?: string | null;
|
|
14377
|
+
updated_at?: string;
|
|
14378
|
+
};
|
|
14379
|
+
Update: {
|
|
14380
|
+
address?: string | null;
|
|
14381
|
+
avatar_url?: string | null;
|
|
14382
|
+
created_at?: string;
|
|
14383
|
+
display_name?: string | null;
|
|
14384
|
+
email?: string | null;
|
|
14385
|
+
id?: string;
|
|
14386
|
+
is_superadmin?: boolean;
|
|
14387
|
+
notification_preferences?: Json;
|
|
14388
|
+
tenant_id?: string | null;
|
|
14389
|
+
updated_at?: string;
|
|
13758
14390
|
};
|
|
13759
14391
|
Relationships: [
|
|
13760
14392
|
{
|
|
@@ -13766,6 +14398,41 @@ export type Database = {
|
|
|
13766
14398
|
}
|
|
13767
14399
|
];
|
|
13768
14400
|
};
|
|
14401
|
+
profiles_org: {
|
|
14402
|
+
Row: {
|
|
14403
|
+
created_at: string;
|
|
14404
|
+
id: string;
|
|
14405
|
+
is_default: boolean;
|
|
14406
|
+
name: string;
|
|
14407
|
+
tenant_id: string | null;
|
|
14408
|
+
updated_at: string;
|
|
14409
|
+
};
|
|
14410
|
+
Insert: {
|
|
14411
|
+
created_at?: string;
|
|
14412
|
+
id?: string;
|
|
14413
|
+
is_default?: boolean;
|
|
14414
|
+
name: string;
|
|
14415
|
+
tenant_id?: string | null;
|
|
14416
|
+
updated_at?: string;
|
|
14417
|
+
};
|
|
14418
|
+
Update: {
|
|
14419
|
+
created_at?: string;
|
|
14420
|
+
id?: string;
|
|
14421
|
+
is_default?: boolean;
|
|
14422
|
+
name?: string;
|
|
14423
|
+
tenant_id?: string | null;
|
|
14424
|
+
updated_at?: string;
|
|
14425
|
+
};
|
|
14426
|
+
Relationships: [
|
|
14427
|
+
{
|
|
14428
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
14429
|
+
columns: ["tenant_id"];
|
|
14430
|
+
isOneToOne: false;
|
|
14431
|
+
referencedRelation: "tenants";
|
|
14432
|
+
referencedColumns: ["id"];
|
|
14433
|
+
}
|
|
14434
|
+
];
|
|
14435
|
+
};
|
|
13769
14436
|
projects: {
|
|
13770
14437
|
Row: {
|
|
13771
14438
|
contact_name: string | null;
|
|
@@ -14537,6 +15204,100 @@ export type Database = {
|
|
|
14537
15204
|
}
|
|
14538
15205
|
];
|
|
14539
15206
|
};
|
|
15207
|
+
role_assignments: {
|
|
15208
|
+
Row: {
|
|
15209
|
+
created_at: string;
|
|
15210
|
+
id: string;
|
|
15211
|
+
role_id: string;
|
|
15212
|
+
user_id: string;
|
|
15213
|
+
};
|
|
15214
|
+
Insert: {
|
|
15215
|
+
created_at?: string;
|
|
15216
|
+
id?: string;
|
|
15217
|
+
role_id: string;
|
|
15218
|
+
user_id: string;
|
|
15219
|
+
};
|
|
15220
|
+
Update: {
|
|
15221
|
+
created_at?: string;
|
|
15222
|
+
id?: string;
|
|
15223
|
+
role_id?: string;
|
|
15224
|
+
user_id?: string;
|
|
15225
|
+
};
|
|
15226
|
+
Relationships: [
|
|
15227
|
+
{
|
|
15228
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
15229
|
+
columns: ["role_id"];
|
|
15230
|
+
isOneToOne: false;
|
|
15231
|
+
referencedRelation: "roles";
|
|
15232
|
+
referencedColumns: ["id"];
|
|
15233
|
+
}
|
|
15234
|
+
];
|
|
15235
|
+
};
|
|
15236
|
+
role_permissions: {
|
|
15237
|
+
Row: {
|
|
15238
|
+
can_edit: boolean;
|
|
15239
|
+
can_view: boolean;
|
|
15240
|
+
feature_id: string;
|
|
15241
|
+
id: string;
|
|
15242
|
+
module_id: string;
|
|
15243
|
+
role_id: string;
|
|
15244
|
+
updated_at: string;
|
|
15245
|
+
};
|
|
15246
|
+
Insert: {
|
|
15247
|
+
can_edit?: boolean;
|
|
15248
|
+
can_view?: boolean;
|
|
15249
|
+
feature_id?: string;
|
|
15250
|
+
id?: string;
|
|
15251
|
+
module_id: string;
|
|
15252
|
+
role_id: string;
|
|
15253
|
+
updated_at?: string;
|
|
15254
|
+
};
|
|
15255
|
+
Update: {
|
|
15256
|
+
can_edit?: boolean;
|
|
15257
|
+
can_view?: boolean;
|
|
15258
|
+
feature_id?: string;
|
|
15259
|
+
id?: string;
|
|
15260
|
+
module_id?: string;
|
|
15261
|
+
role_id?: string;
|
|
15262
|
+
updated_at?: string;
|
|
15263
|
+
};
|
|
15264
|
+
Relationships: [
|
|
15265
|
+
{
|
|
15266
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
15267
|
+
columns: ["role_id"];
|
|
15268
|
+
isOneToOne: false;
|
|
15269
|
+
referencedRelation: "roles";
|
|
15270
|
+
referencedColumns: ["id"];
|
|
15271
|
+
}
|
|
15272
|
+
];
|
|
15273
|
+
};
|
|
15274
|
+
roles: {
|
|
15275
|
+
Row: {
|
|
15276
|
+
created_at: string;
|
|
15277
|
+
id: string;
|
|
15278
|
+
is_protected: boolean;
|
|
15279
|
+
key: string;
|
|
15280
|
+
name: string;
|
|
15281
|
+
updated_at: string;
|
|
15282
|
+
};
|
|
15283
|
+
Insert: {
|
|
15284
|
+
created_at?: string;
|
|
15285
|
+
id?: string;
|
|
15286
|
+
is_protected?: boolean;
|
|
15287
|
+
key: string;
|
|
15288
|
+
name: string;
|
|
15289
|
+
updated_at?: string;
|
|
15290
|
+
};
|
|
15291
|
+
Update: {
|
|
15292
|
+
created_at?: string;
|
|
15293
|
+
id?: string;
|
|
15294
|
+
is_protected?: boolean;
|
|
15295
|
+
key?: string;
|
|
15296
|
+
name?: string;
|
|
15297
|
+
updated_at?: string;
|
|
15298
|
+
};
|
|
15299
|
+
Relationships: [];
|
|
15300
|
+
};
|
|
14540
15301
|
rooms: {
|
|
14541
15302
|
Row: {
|
|
14542
15303
|
capacity: number;
|
|
@@ -14889,6 +15650,7 @@ export type Database = {
|
|
|
14889
15650
|
type: string;
|
|
14890
15651
|
updated_at: string;
|
|
14891
15652
|
vereist_medewerker: boolean;
|
|
15653
|
+
werkplek: string | null;
|
|
14892
15654
|
};
|
|
14893
15655
|
Insert: {
|
|
14894
15656
|
actief?: boolean;
|
|
@@ -14902,6 +15664,7 @@ export type Database = {
|
|
|
14902
15664
|
type?: string;
|
|
14903
15665
|
updated_at?: string;
|
|
14904
15666
|
vereist_medewerker?: boolean;
|
|
15667
|
+
werkplek?: string | null;
|
|
14905
15668
|
};
|
|
14906
15669
|
Update: {
|
|
14907
15670
|
actief?: boolean;
|
|
@@ -14915,9 +15678,48 @@ export type Database = {
|
|
|
14915
15678
|
type?: string;
|
|
14916
15679
|
updated_at?: string;
|
|
14917
15680
|
vereist_medewerker?: boolean;
|
|
15681
|
+
werkplek?: string | null;
|
|
14918
15682
|
};
|
|
14919
15683
|
Relationships: [];
|
|
14920
15684
|
};
|
|
15685
|
+
sick_periods: {
|
|
15686
|
+
Row: {
|
|
15687
|
+
created_at: string;
|
|
15688
|
+
employee_id: string;
|
|
15689
|
+
end_date: string | null;
|
|
15690
|
+
id: string;
|
|
15691
|
+
notes: string | null;
|
|
15692
|
+
start_date: string;
|
|
15693
|
+
updated_at: string;
|
|
15694
|
+
};
|
|
15695
|
+
Insert: {
|
|
15696
|
+
created_at?: string;
|
|
15697
|
+
employee_id: string;
|
|
15698
|
+
end_date?: string | null;
|
|
15699
|
+
id?: string;
|
|
15700
|
+
notes?: string | null;
|
|
15701
|
+
start_date: string;
|
|
15702
|
+
updated_at?: string;
|
|
15703
|
+
};
|
|
15704
|
+
Update: {
|
|
15705
|
+
created_at?: string;
|
|
15706
|
+
employee_id?: string;
|
|
15707
|
+
end_date?: string | null;
|
|
15708
|
+
id?: string;
|
|
15709
|
+
notes?: string | null;
|
|
15710
|
+
start_date?: string;
|
|
15711
|
+
updated_at?: string;
|
|
15712
|
+
};
|
|
15713
|
+
Relationships: [
|
|
15714
|
+
{
|
|
15715
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
15716
|
+
columns: ["employee_id"];
|
|
15717
|
+
isOneToOne: false;
|
|
15718
|
+
referencedRelation: "profiles";
|
|
15719
|
+
referencedColumns: ["id"];
|
|
15720
|
+
}
|
|
15721
|
+
];
|
|
15722
|
+
};
|
|
14921
15723
|
sidebar_config: {
|
|
14922
15724
|
Row: {
|
|
14923
15725
|
id: string;
|
|
@@ -15217,6 +16019,56 @@ export type Database = {
|
|
|
15217
16019
|
};
|
|
15218
16020
|
Relationships: [];
|
|
15219
16021
|
};
|
|
16022
|
+
time_compensation_entries: {
|
|
16023
|
+
Row: {
|
|
16024
|
+
created_at: string;
|
|
16025
|
+
employee_id: string;
|
|
16026
|
+
entry_date: string;
|
|
16027
|
+
id: string;
|
|
16028
|
+
km: number;
|
|
16029
|
+
meal_allowance: number;
|
|
16030
|
+
notes: string | null;
|
|
16031
|
+
standby_evening: number;
|
|
16032
|
+
standby_weekend: number;
|
|
16033
|
+
tvt_change: number;
|
|
16034
|
+
updated_at: string;
|
|
16035
|
+
};
|
|
16036
|
+
Insert: {
|
|
16037
|
+
created_at?: string;
|
|
16038
|
+
employee_id: string;
|
|
16039
|
+
entry_date: string;
|
|
16040
|
+
id?: string;
|
|
16041
|
+
km?: number;
|
|
16042
|
+
meal_allowance?: number;
|
|
16043
|
+
notes?: string | null;
|
|
16044
|
+
standby_evening?: number;
|
|
16045
|
+
standby_weekend?: number;
|
|
16046
|
+
tvt_change?: number;
|
|
16047
|
+
updated_at?: string;
|
|
16048
|
+
};
|
|
16049
|
+
Update: {
|
|
16050
|
+
created_at?: string;
|
|
16051
|
+
employee_id?: string;
|
|
16052
|
+
entry_date?: string;
|
|
16053
|
+
id?: string;
|
|
16054
|
+
km?: number;
|
|
16055
|
+
meal_allowance?: number;
|
|
16056
|
+
notes?: string | null;
|
|
16057
|
+
standby_evening?: number;
|
|
16058
|
+
standby_weekend?: number;
|
|
16059
|
+
tvt_change?: number;
|
|
16060
|
+
updated_at?: string;
|
|
16061
|
+
};
|
|
16062
|
+
Relationships: [
|
|
16063
|
+
{
|
|
16064
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
16065
|
+
columns: ["employee_id"];
|
|
16066
|
+
isOneToOne: false;
|
|
16067
|
+
referencedRelation: "profiles";
|
|
16068
|
+
referencedColumns: ["id"];
|
|
16069
|
+
}
|
|
16070
|
+
];
|
|
16071
|
+
};
|
|
15220
16072
|
time_entries: {
|
|
15221
16073
|
Row: {
|
|
15222
16074
|
created_at: string;
|
|
@@ -15251,68 +16103,174 @@ export type Database = {
|
|
|
15251
16103
|
undertime?: number;
|
|
15252
16104
|
updated_at?: string;
|
|
15253
16105
|
};
|
|
16106
|
+
Relationships: [];
|
|
16107
|
+
};
|
|
16108
|
+
time_log_week_approvals: {
|
|
16109
|
+
Row: {
|
|
16110
|
+
approved_at: string | null;
|
|
16111
|
+
approved_by: string | null;
|
|
16112
|
+
created_at: string;
|
|
16113
|
+
employee_id: string;
|
|
16114
|
+
id: string;
|
|
16115
|
+
locked: boolean;
|
|
16116
|
+
notes: string | null;
|
|
16117
|
+
status: string;
|
|
16118
|
+
submitted_at: string | null;
|
|
16119
|
+
updated_at: string;
|
|
16120
|
+
week_start: string;
|
|
16121
|
+
};
|
|
16122
|
+
Insert: {
|
|
16123
|
+
approved_at?: string | null;
|
|
16124
|
+
approved_by?: string | null;
|
|
16125
|
+
created_at?: string;
|
|
16126
|
+
employee_id: string;
|
|
16127
|
+
id?: string;
|
|
16128
|
+
locked?: boolean;
|
|
16129
|
+
notes?: string | null;
|
|
16130
|
+
status?: string;
|
|
16131
|
+
submitted_at?: string | null;
|
|
16132
|
+
updated_at?: string;
|
|
16133
|
+
week_start: string;
|
|
16134
|
+
};
|
|
16135
|
+
Update: {
|
|
16136
|
+
approved_at?: string | null;
|
|
16137
|
+
approved_by?: string | null;
|
|
16138
|
+
created_at?: string;
|
|
16139
|
+
employee_id?: string;
|
|
16140
|
+
id?: string;
|
|
16141
|
+
locked?: boolean;
|
|
16142
|
+
notes?: string | null;
|
|
16143
|
+
status?: string;
|
|
16144
|
+
submitted_at?: string | null;
|
|
16145
|
+
updated_at?: string;
|
|
16146
|
+
week_start?: string;
|
|
16147
|
+
};
|
|
15254
16148
|
Relationships: [
|
|
15255
16149
|
{
|
|
15256
|
-
foreignKeyName: "
|
|
16150
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
15257
16151
|
columns: ["employee_id"];
|
|
15258
16152
|
isOneToOne: false;
|
|
15259
|
-
referencedRelation: "
|
|
16153
|
+
referencedRelation: "profiles";
|
|
15260
16154
|
referencedColumns: ["id"];
|
|
15261
16155
|
}
|
|
15262
16156
|
];
|
|
15263
16157
|
};
|
|
15264
16158
|
time_logs: {
|
|
15265
16159
|
Row: {
|
|
16160
|
+
auto_stop_reason: string | null;
|
|
16161
|
+
auto_stopped: boolean;
|
|
15266
16162
|
created_at: string;
|
|
16163
|
+
current_latitude: number | null;
|
|
16164
|
+
current_longitude: number | null;
|
|
16165
|
+
current_position_updated_at: string | null;
|
|
15267
16166
|
employee_id: string;
|
|
16167
|
+
end_latitude: number | null;
|
|
16168
|
+
end_longitude: number | null;
|
|
15268
16169
|
end_time: string | null;
|
|
16170
|
+
eta_distance_km: number | null;
|
|
16171
|
+
eta_minutes: number | null;
|
|
16172
|
+
eta_updated_at: string | null;
|
|
16173
|
+
hour_category: string | null;
|
|
15269
16174
|
id: string;
|
|
16175
|
+
last_reminder_at: string | null;
|
|
15270
16176
|
notes: string | null;
|
|
15271
16177
|
overtime_hours: number;
|
|
15272
16178
|
overtime_type: string | null;
|
|
15273
16179
|
regular_hours: number;
|
|
16180
|
+
reminder_count: number;
|
|
16181
|
+
requires_review: boolean;
|
|
16182
|
+
start_latitude: number | null;
|
|
16183
|
+
start_longitude: number | null;
|
|
15274
16184
|
start_time: string;
|
|
15275
16185
|
travel_cost: number | null;
|
|
15276
16186
|
travel_distance_km: number | null;
|
|
16187
|
+
travel_duration_min: number | null;
|
|
16188
|
+
travel_time_minutes: number | null;
|
|
15277
16189
|
type: string;
|
|
15278
16190
|
updated_at: string;
|
|
16191
|
+
work_order_id: string | null;
|
|
15279
16192
|
};
|
|
15280
16193
|
Insert: {
|
|
16194
|
+
auto_stop_reason?: string | null;
|
|
16195
|
+
auto_stopped?: boolean;
|
|
15281
16196
|
created_at?: string;
|
|
16197
|
+
current_latitude?: number | null;
|
|
16198
|
+
current_longitude?: number | null;
|
|
16199
|
+
current_position_updated_at?: string | null;
|
|
15282
16200
|
employee_id: string;
|
|
16201
|
+
end_latitude?: number | null;
|
|
16202
|
+
end_longitude?: number | null;
|
|
15283
16203
|
end_time?: string | null;
|
|
16204
|
+
eta_distance_km?: number | null;
|
|
16205
|
+
eta_minutes?: number | null;
|
|
16206
|
+
eta_updated_at?: string | null;
|
|
16207
|
+
hour_category?: string | null;
|
|
15284
16208
|
id?: string;
|
|
16209
|
+
last_reminder_at?: string | null;
|
|
15285
16210
|
notes?: string | null;
|
|
15286
16211
|
overtime_hours?: number;
|
|
15287
16212
|
overtime_type?: string | null;
|
|
15288
16213
|
regular_hours?: number;
|
|
16214
|
+
reminder_count?: number;
|
|
16215
|
+
requires_review?: boolean;
|
|
16216
|
+
start_latitude?: number | null;
|
|
16217
|
+
start_longitude?: number | null;
|
|
15289
16218
|
start_time?: string;
|
|
15290
16219
|
travel_cost?: number | null;
|
|
15291
16220
|
travel_distance_km?: number | null;
|
|
16221
|
+
travel_duration_min?: number | null;
|
|
16222
|
+
travel_time_minutes?: number | null;
|
|
15292
16223
|
type: string;
|
|
15293
16224
|
updated_at?: string;
|
|
16225
|
+
work_order_id?: string | null;
|
|
15294
16226
|
};
|
|
15295
16227
|
Update: {
|
|
16228
|
+
auto_stop_reason?: string | null;
|
|
16229
|
+
auto_stopped?: boolean;
|
|
15296
16230
|
created_at?: string;
|
|
16231
|
+
current_latitude?: number | null;
|
|
16232
|
+
current_longitude?: number | null;
|
|
16233
|
+
current_position_updated_at?: string | null;
|
|
15297
16234
|
employee_id?: string;
|
|
16235
|
+
end_latitude?: number | null;
|
|
16236
|
+
end_longitude?: number | null;
|
|
15298
16237
|
end_time?: string | null;
|
|
16238
|
+
eta_distance_km?: number | null;
|
|
16239
|
+
eta_minutes?: number | null;
|
|
16240
|
+
eta_updated_at?: string | null;
|
|
16241
|
+
hour_category?: string | null;
|
|
15299
16242
|
id?: string;
|
|
16243
|
+
last_reminder_at?: string | null;
|
|
15300
16244
|
notes?: string | null;
|
|
15301
16245
|
overtime_hours?: number;
|
|
15302
16246
|
overtime_type?: string | null;
|
|
15303
16247
|
regular_hours?: number;
|
|
16248
|
+
reminder_count?: number;
|
|
16249
|
+
requires_review?: boolean;
|
|
16250
|
+
start_latitude?: number | null;
|
|
16251
|
+
start_longitude?: number | null;
|
|
15304
16252
|
start_time?: string;
|
|
15305
16253
|
travel_cost?: number | null;
|
|
15306
16254
|
travel_distance_km?: number | null;
|
|
16255
|
+
travel_duration_min?: number | null;
|
|
16256
|
+
travel_time_minutes?: number | null;
|
|
15307
16257
|
type?: string;
|
|
15308
16258
|
updated_at?: string;
|
|
16259
|
+
work_order_id?: string | null;
|
|
15309
16260
|
};
|
|
15310
16261
|
Relationships: [
|
|
15311
16262
|
{
|
|
15312
16263
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
15313
16264
|
columns: ["employee_id"];
|
|
15314
16265
|
isOneToOne: false;
|
|
15315
|
-
referencedRelation: "
|
|
16266
|
+
referencedRelation: "profiles";
|
|
16267
|
+
referencedColumns: ["id"];
|
|
16268
|
+
},
|
|
16269
|
+
{
|
|
16270
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
16271
|
+
columns: ["work_order_id"];
|
|
16272
|
+
isOneToOne: false;
|
|
16273
|
+
referencedRelation: "work_orders";
|
|
15316
16274
|
referencedColumns: ["id"];
|
|
15317
16275
|
}
|
|
15318
16276
|
];
|
|
@@ -15353,7 +16311,7 @@ export type Database = {
|
|
|
15353
16311
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
15354
16312
|
columns: ["employee_id"];
|
|
15355
16313
|
isOneToOne: false;
|
|
15356
|
-
referencedRelation: "
|
|
16314
|
+
referencedRelation: "profiles";
|
|
15357
16315
|
referencedColumns: ["id"];
|
|
15358
16316
|
}
|
|
15359
16317
|
];
|
|
@@ -15666,6 +16624,39 @@ export type Database = {
|
|
|
15666
16624
|
};
|
|
15667
16625
|
Relationships: [];
|
|
15668
16626
|
};
|
|
16627
|
+
twinfield_cron_locks: {
|
|
16628
|
+
Row: {
|
|
16629
|
+
created_at: string;
|
|
16630
|
+
heartbeat_at: string;
|
|
16631
|
+
job_name: string;
|
|
16632
|
+
last_error: string | null;
|
|
16633
|
+
last_finished_at: string | null;
|
|
16634
|
+
locked_at: string;
|
|
16635
|
+
run_id: string;
|
|
16636
|
+
updated_at: string;
|
|
16637
|
+
};
|
|
16638
|
+
Insert: {
|
|
16639
|
+
created_at?: string;
|
|
16640
|
+
heartbeat_at?: string;
|
|
16641
|
+
job_name: string;
|
|
16642
|
+
last_error?: string | null;
|
|
16643
|
+
last_finished_at?: string | null;
|
|
16644
|
+
locked_at?: string;
|
|
16645
|
+
run_id?: string;
|
|
16646
|
+
updated_at?: string;
|
|
16647
|
+
};
|
|
16648
|
+
Update: {
|
|
16649
|
+
created_at?: string;
|
|
16650
|
+
heartbeat_at?: string;
|
|
16651
|
+
job_name?: string;
|
|
16652
|
+
last_error?: string | null;
|
|
16653
|
+
last_finished_at?: string | null;
|
|
16654
|
+
locked_at?: string;
|
|
16655
|
+
run_id?: string;
|
|
16656
|
+
updated_at?: string;
|
|
16657
|
+
};
|
|
16658
|
+
Relationships: [];
|
|
16659
|
+
};
|
|
15669
16660
|
twinfield_customers: {
|
|
15670
16661
|
Row: {
|
|
15671
16662
|
address: string | null;
|
|
@@ -16276,6 +17267,7 @@ export type Database = {
|
|
|
16276
17267
|
twinfield_push_queue: {
|
|
16277
17268
|
Row: {
|
|
16278
17269
|
action: string;
|
|
17270
|
+
attempt_started_at: string | null;
|
|
16279
17271
|
attempts: number;
|
|
16280
17272
|
connection_id: string | null;
|
|
16281
17273
|
created_at: string;
|
|
@@ -16292,6 +17284,7 @@ export type Database = {
|
|
|
16292
17284
|
};
|
|
16293
17285
|
Insert: {
|
|
16294
17286
|
action?: string;
|
|
17287
|
+
attempt_started_at?: string | null;
|
|
16295
17288
|
attempts?: number;
|
|
16296
17289
|
connection_id?: string | null;
|
|
16297
17290
|
created_at?: string;
|
|
@@ -16308,6 +17301,7 @@ export type Database = {
|
|
|
16308
17301
|
};
|
|
16309
17302
|
Update: {
|
|
16310
17303
|
action?: string;
|
|
17304
|
+
attempt_started_at?: string | null;
|
|
16311
17305
|
attempts?: number;
|
|
16312
17306
|
connection_id?: string | null;
|
|
16313
17307
|
created_at?: string;
|
|
@@ -16510,15 +17504,7 @@ export type Database = {
|
|
|
16510
17504
|
workday_end?: string | null;
|
|
16511
17505
|
workday_start?: string | null;
|
|
16512
17506
|
};
|
|
16513
|
-
Relationships: [
|
|
16514
|
-
{
|
|
16515
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
16516
|
-
columns: ["monteur_id"];
|
|
16517
|
-
isOneToOne: true;
|
|
16518
|
-
referencedRelation: "monteurs";
|
|
16519
|
-
referencedColumns: ["id"];
|
|
16520
|
-
}
|
|
16521
|
-
];
|
|
17507
|
+
Relationships: [];
|
|
16522
17508
|
};
|
|
16523
17509
|
uren_entries: {
|
|
16524
17510
|
Row: {
|
|
@@ -16564,13 +17550,6 @@ export type Database = {
|
|
|
16564
17550
|
werkbon_id?: string | null;
|
|
16565
17551
|
};
|
|
16566
17552
|
Relationships: [
|
|
16567
|
-
{
|
|
16568
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16569
|
-
columns: ["monteur_id"];
|
|
16570
|
-
isOneToOne: false;
|
|
16571
|
-
referencedRelation: "monteurs";
|
|
16572
|
-
referencedColumns: ["id"];
|
|
16573
|
-
},
|
|
16574
17553
|
{
|
|
16575
17554
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16576
17555
|
columns: ["werkbon_id"];
|
|
@@ -17051,20 +18030,13 @@ export type Database = {
|
|
|
17051
18030
|
status?: string;
|
|
17052
18031
|
submitted_at?: string | null;
|
|
17053
18032
|
updated_at?: string;
|
|
17054
|
-
};
|
|
17055
|
-
Relationships: [
|
|
17056
|
-
{
|
|
17057
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
17058
|
-
columns: ["monteur_id"];
|
|
17059
|
-
isOneToOne: false;
|
|
17060
|
-
referencedRelation: "monteurs";
|
|
17061
|
-
referencedColumns: ["id"];
|
|
17062
|
-
}
|
|
17063
|
-
];
|
|
18033
|
+
};
|
|
18034
|
+
Relationships: [];
|
|
17064
18035
|
};
|
|
17065
18036
|
user_module_permissions: {
|
|
17066
18037
|
Row: {
|
|
17067
18038
|
created_at: string;
|
|
18039
|
+
feature_id: string;
|
|
17068
18040
|
id: string;
|
|
17069
18041
|
module_id: string;
|
|
17070
18042
|
permission: string;
|
|
@@ -17073,6 +18045,7 @@ export type Database = {
|
|
|
17073
18045
|
};
|
|
17074
18046
|
Insert: {
|
|
17075
18047
|
created_at?: string;
|
|
18048
|
+
feature_id?: string;
|
|
17076
18049
|
id?: string;
|
|
17077
18050
|
module_id: string;
|
|
17078
18051
|
permission: string;
|
|
@@ -17081,6 +18054,7 @@ export type Database = {
|
|
|
17081
18054
|
};
|
|
17082
18055
|
Update: {
|
|
17083
18056
|
created_at?: string;
|
|
18057
|
+
feature_id?: string;
|
|
17084
18058
|
id?: string;
|
|
17085
18059
|
module_id?: string;
|
|
17086
18060
|
permission?: string;
|
|
@@ -17118,6 +18092,53 @@ export type Database = {
|
|
|
17118
18092
|
}
|
|
17119
18093
|
];
|
|
17120
18094
|
};
|
|
18095
|
+
van_inventories: {
|
|
18096
|
+
Row: {
|
|
18097
|
+
barcode: string | null;
|
|
18098
|
+
created_at: string;
|
|
18099
|
+
id: string;
|
|
18100
|
+
monteur_id: string | null;
|
|
18101
|
+
price_per_unit: number;
|
|
18102
|
+
product_name: string;
|
|
18103
|
+
quantity_current: number;
|
|
18104
|
+
quantity_min: number;
|
|
18105
|
+
unit: string;
|
|
18106
|
+
updated_at: string;
|
|
18107
|
+
};
|
|
18108
|
+
Insert: {
|
|
18109
|
+
barcode?: string | null;
|
|
18110
|
+
created_at?: string;
|
|
18111
|
+
id?: string;
|
|
18112
|
+
monteur_id?: string | null;
|
|
18113
|
+
price_per_unit?: number;
|
|
18114
|
+
product_name: string;
|
|
18115
|
+
quantity_current?: number;
|
|
18116
|
+
quantity_min?: number;
|
|
18117
|
+
unit?: string;
|
|
18118
|
+
updated_at?: string;
|
|
18119
|
+
};
|
|
18120
|
+
Update: {
|
|
18121
|
+
barcode?: string | null;
|
|
18122
|
+
created_at?: string;
|
|
18123
|
+
id?: string;
|
|
18124
|
+
monteur_id?: string | null;
|
|
18125
|
+
price_per_unit?: number;
|
|
18126
|
+
product_name?: string;
|
|
18127
|
+
quantity_current?: number;
|
|
18128
|
+
quantity_min?: number;
|
|
18129
|
+
unit?: string;
|
|
18130
|
+
updated_at?: string;
|
|
18131
|
+
};
|
|
18132
|
+
Relationships: [
|
|
18133
|
+
{
|
|
18134
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
18135
|
+
columns: ["monteur_id"];
|
|
18136
|
+
isOneToOne: false;
|
|
18137
|
+
referencedRelation: "profiles";
|
|
18138
|
+
referencedColumns: ["id"];
|
|
18139
|
+
}
|
|
18140
|
+
];
|
|
18141
|
+
};
|
|
17121
18142
|
voorraad_custom_fields: {
|
|
17122
18143
|
Row: {
|
|
17123
18144
|
created_at: string;
|
|
@@ -18091,7 +19112,7 @@ export type Database = {
|
|
|
18091
19112
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
18092
19113
|
columns: ["monteur_id"];
|
|
18093
19114
|
isOneToOne: false;
|
|
18094
|
-
referencedRelation: "
|
|
19115
|
+
referencedRelation: "profiles";
|
|
18095
19116
|
referencedColumns: ["id"];
|
|
18096
19117
|
},
|
|
18097
19118
|
{
|
|
@@ -18103,6 +19124,63 @@ export type Database = {
|
|
|
18103
19124
|
}
|
|
18104
19125
|
];
|
|
18105
19126
|
};
|
|
19127
|
+
work_order_photos: {
|
|
19128
|
+
Row: {
|
|
19129
|
+
ai_caption: string | null;
|
|
19130
|
+
ai_categorized_at: string | null;
|
|
19131
|
+
ai_labels: Json | null;
|
|
19132
|
+
caption: string | null;
|
|
19133
|
+
created_at: string;
|
|
19134
|
+
id: string;
|
|
19135
|
+
monteur_id: string | null;
|
|
19136
|
+
photo_type: string;
|
|
19137
|
+
storage_path: string;
|
|
19138
|
+
updated_at: string;
|
|
19139
|
+
work_order_id: string;
|
|
19140
|
+
};
|
|
19141
|
+
Insert: {
|
|
19142
|
+
ai_caption?: string | null;
|
|
19143
|
+
ai_categorized_at?: string | null;
|
|
19144
|
+
ai_labels?: Json | null;
|
|
19145
|
+
caption?: string | null;
|
|
19146
|
+
created_at?: string;
|
|
19147
|
+
id?: string;
|
|
19148
|
+
monteur_id?: string | null;
|
|
19149
|
+
photo_type?: string;
|
|
19150
|
+
storage_path: string;
|
|
19151
|
+
updated_at?: string;
|
|
19152
|
+
work_order_id: string;
|
|
19153
|
+
};
|
|
19154
|
+
Update: {
|
|
19155
|
+
ai_caption?: string | null;
|
|
19156
|
+
ai_categorized_at?: string | null;
|
|
19157
|
+
ai_labels?: Json | null;
|
|
19158
|
+
caption?: string | null;
|
|
19159
|
+
created_at?: string;
|
|
19160
|
+
id?: string;
|
|
19161
|
+
monteur_id?: string | null;
|
|
19162
|
+
photo_type?: string;
|
|
19163
|
+
storage_path?: string;
|
|
19164
|
+
updated_at?: string;
|
|
19165
|
+
work_order_id?: string;
|
|
19166
|
+
};
|
|
19167
|
+
Relationships: [
|
|
19168
|
+
{
|
|
19169
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
19170
|
+
columns: ["monteur_id"];
|
|
19171
|
+
isOneToOne: false;
|
|
19172
|
+
referencedRelation: "profiles";
|
|
19173
|
+
referencedColumns: ["id"];
|
|
19174
|
+
},
|
|
19175
|
+
{
|
|
19176
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
19177
|
+
columns: ["work_order_id"];
|
|
19178
|
+
isOneToOne: false;
|
|
19179
|
+
referencedRelation: "work_orders";
|
|
19180
|
+
referencedColumns: ["id"];
|
|
19181
|
+
}
|
|
19182
|
+
];
|
|
19183
|
+
};
|
|
18106
19184
|
work_orders: {
|
|
18107
19185
|
Row: {
|
|
18108
19186
|
assigned_to: string | null;
|
|
@@ -18134,7 +19212,6 @@ export type Database = {
|
|
|
18134
19212
|
scheduled_end_time: string | null;
|
|
18135
19213
|
scheduled_start_time: string | null;
|
|
18136
19214
|
status: string;
|
|
18137
|
-
tenant_id: string;
|
|
18138
19215
|
total_hours_worked: number | null;
|
|
18139
19216
|
total_price: number | null;
|
|
18140
19217
|
travel_time_minutes: number | null;
|
|
@@ -18172,7 +19249,6 @@ export type Database = {
|
|
|
18172
19249
|
scheduled_end_time?: string | null;
|
|
18173
19250
|
scheduled_start_time?: string | null;
|
|
18174
19251
|
status?: string;
|
|
18175
|
-
tenant_id: string;
|
|
18176
19252
|
total_hours_worked?: number | null;
|
|
18177
19253
|
total_price?: number | null;
|
|
18178
19254
|
travel_time_minutes?: number | null;
|
|
@@ -18210,7 +19286,6 @@ export type Database = {
|
|
|
18210
19286
|
scheduled_end_time?: string | null;
|
|
18211
19287
|
scheduled_start_time?: string | null;
|
|
18212
19288
|
status?: string;
|
|
18213
|
-
tenant_id?: string;
|
|
18214
19289
|
total_hours_worked?: number | null;
|
|
18215
19290
|
total_price?: number | null;
|
|
18216
19291
|
travel_time_minutes?: number | null;
|
|
@@ -18225,13 +19300,6 @@ export type Database = {
|
|
|
18225
19300
|
isOneToOne: false;
|
|
18226
19301
|
referencedRelation: "work_orders";
|
|
18227
19302
|
referencedColumns: ["id"];
|
|
18228
|
-
},
|
|
18229
|
-
{
|
|
18230
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
18231
|
-
columns: ["tenant_id"];
|
|
18232
|
-
isOneToOne: false;
|
|
18233
|
-
referencedRelation: "tenants";
|
|
18234
|
-
referencedColumns: ["id"];
|
|
18235
19303
|
}
|
|
18236
19304
|
];
|
|
18237
19305
|
};
|
|
@@ -18929,6 +19997,19 @@ export type Database = {
|
|
|
18929
19997
|
};
|
|
18930
19998
|
Returns: undefined;
|
|
18931
19999
|
};
|
|
20000
|
+
approve_mailbox_order_proposal: {
|
|
20001
|
+
Args: {
|
|
20002
|
+
p_custom_fields: Json;
|
|
20003
|
+
p_customer_id: string;
|
|
20004
|
+
p_delivery_date: string;
|
|
20005
|
+
p_field_values?: Json;
|
|
20006
|
+
p_lines: Json;
|
|
20007
|
+
p_notes: string;
|
|
20008
|
+
p_proposal_id: string;
|
|
20009
|
+
p_reviewed_by: string;
|
|
20010
|
+
};
|
|
20011
|
+
Returns: Json;
|
|
20012
|
+
};
|
|
18932
20013
|
assign_cart_numbers: {
|
|
18933
20014
|
Args: {
|
|
18934
20015
|
p_carts: Json;
|
|
@@ -18980,6 +20061,10 @@ export type Database = {
|
|
|
18980
20061
|
};
|
|
18981
20062
|
Returns: number;
|
|
18982
20063
|
};
|
|
20064
|
+
can_manage_hours: {
|
|
20065
|
+
Args: never;
|
|
20066
|
+
Returns: boolean;
|
|
20067
|
+
};
|
|
18983
20068
|
check_offer_product_available_stock: {
|
|
18984
20069
|
Args: {
|
|
18985
20070
|
p_campaign_product_id: string;
|
|
@@ -19169,6 +20254,7 @@ export type Database = {
|
|
|
19169
20254
|
};
|
|
19170
20255
|
Returns: {
|
|
19171
20256
|
action: string;
|
|
20257
|
+
attempt_started_at: string | null;
|
|
19172
20258
|
attempts: number;
|
|
19173
20259
|
connection_id: string | null;
|
|
19174
20260
|
created_at: string;
|
|
@@ -19256,6 +20342,30 @@ export type Database = {
|
|
|
19256
20342
|
agent_naam: string;
|
|
19257
20343
|
}[];
|
|
19258
20344
|
};
|
|
20345
|
+
consume_van_inventory: {
|
|
20346
|
+
Args: {
|
|
20347
|
+
p_inventory_id: string;
|
|
20348
|
+
p_quantity: number;
|
|
20349
|
+
};
|
|
20350
|
+
Returns: {
|
|
20351
|
+
barcode: string | null;
|
|
20352
|
+
created_at: string;
|
|
20353
|
+
id: string;
|
|
20354
|
+
monteur_id: string | null;
|
|
20355
|
+
price_per_unit: number;
|
|
20356
|
+
product_name: string;
|
|
20357
|
+
quantity_current: number;
|
|
20358
|
+
quantity_min: number;
|
|
20359
|
+
unit: string;
|
|
20360
|
+
updated_at: string;
|
|
20361
|
+
};
|
|
20362
|
+
SetofOptions: {
|
|
20363
|
+
from: "*";
|
|
20364
|
+
to: "van_inventories";
|
|
20365
|
+
isOneToOne: true;
|
|
20366
|
+
isSetofReturn: false;
|
|
20367
|
+
};
|
|
20368
|
+
};
|
|
19259
20369
|
control_get_todays_carts: {
|
|
19260
20370
|
Args: never;
|
|
19261
20371
|
Returns: {
|
|
@@ -19329,6 +20439,13 @@ export type Database = {
|
|
|
19329
20439
|
_user_id: string;
|
|
19330
20440
|
};
|
|
19331
20441
|
Returns: string;
|
|
20442
|
+
} | {
|
|
20443
|
+
Args: {
|
|
20444
|
+
_feature_id: string;
|
|
20445
|
+
_module_id: string;
|
|
20446
|
+
_user_id: string;
|
|
20447
|
+
};
|
|
20448
|
+
Returns: string;
|
|
19332
20449
|
};
|
|
19333
20450
|
email_auth_decrypt: {
|
|
19334
20451
|
Args: {
|
|
@@ -19375,6 +20492,13 @@ export type Database = {
|
|
|
19375
20492
|
};
|
|
19376
20493
|
Returns: string;
|
|
19377
20494
|
};
|
|
20495
|
+
employee_day_hours: {
|
|
20496
|
+
Args: {
|
|
20497
|
+
_day: string;
|
|
20498
|
+
_employee_id: string;
|
|
20499
|
+
};
|
|
20500
|
+
Returns: number;
|
|
20501
|
+
};
|
|
19378
20502
|
enqueue_cart_replan_if_unlocked: {
|
|
19379
20503
|
Args: {
|
|
19380
20504
|
p_order_id: string;
|
|
@@ -19680,12 +20804,6 @@ export type Database = {
|
|
|
19680
20804
|
Args: never;
|
|
19681
20805
|
Returns: string;
|
|
19682
20806
|
};
|
|
19683
|
-
get_work_order_tenant_id: {
|
|
19684
|
-
Args: {
|
|
19685
|
-
wo_id: string;
|
|
19686
|
-
};
|
|
19687
|
-
Returns: string;
|
|
19688
|
-
};
|
|
19689
20807
|
has_module_permission: {
|
|
19690
20808
|
Args: {
|
|
19691
20809
|
_min: string;
|
|
@@ -19719,6 +20837,13 @@ export type Database = {
|
|
|
19719
20837
|
};
|
|
19720
20838
|
Returns: boolean;
|
|
19721
20839
|
};
|
|
20840
|
+
is_time_log_week_locked: {
|
|
20841
|
+
Args: {
|
|
20842
|
+
p_employee_id: string;
|
|
20843
|
+
p_start_time: string;
|
|
20844
|
+
};
|
|
20845
|
+
Returns: boolean;
|
|
20846
|
+
};
|
|
19722
20847
|
is_user_admin: {
|
|
19723
20848
|
Args: never;
|
|
19724
20849
|
Returns: boolean;
|
|
@@ -19727,19 +20852,43 @@ export type Database = {
|
|
|
19727
20852
|
Args: never;
|
|
19728
20853
|
Returns: boolean;
|
|
19729
20854
|
};
|
|
20855
|
+
itk_offerte_naar_werkbon: {
|
|
20856
|
+
Args: {
|
|
20857
|
+
_offerte_id: string;
|
|
20858
|
+
};
|
|
20859
|
+
Returns: string;
|
|
20860
|
+
};
|
|
20861
|
+
itk_offerte_restant_mandaat: {
|
|
20862
|
+
Args: {
|
|
20863
|
+
_exclude_offerte_id?: string;
|
|
20864
|
+
_werkbon_id: string;
|
|
20865
|
+
};
|
|
20866
|
+
Returns: number;
|
|
20867
|
+
};
|
|
19730
20868
|
jwt_has_role: {
|
|
19731
20869
|
Args: {
|
|
19732
20870
|
_role: Database["public"]["Enums"]["app_role"];
|
|
19733
20871
|
};
|
|
19734
20872
|
Returns: boolean;
|
|
19735
20873
|
};
|
|
19736
|
-
|
|
20874
|
+
list_medewerkers: {
|
|
19737
20875
|
Args: never;
|
|
19738
20876
|
Returns: {
|
|
19739
20877
|
avatar_url: string;
|
|
20878
|
+
color: string;
|
|
19740
20879
|
display_name: string;
|
|
19741
20880
|
email: string;
|
|
20881
|
+
hours_fri: number;
|
|
20882
|
+
hours_mon: number;
|
|
20883
|
+
hours_thu: number;
|
|
20884
|
+
hours_tue: number;
|
|
20885
|
+
hours_wed: number;
|
|
19742
20886
|
id: string;
|
|
20887
|
+
is_active: boolean;
|
|
20888
|
+
leave_balance_hours: number;
|
|
20889
|
+
persnr: string;
|
|
20890
|
+
phone: string;
|
|
20891
|
+
roles: string[];
|
|
19743
20892
|
}[];
|
|
19744
20893
|
};
|
|
19745
20894
|
list_my_planning_items: {
|
|
@@ -20065,17 +21214,6 @@ export type Database = {
|
|
|
20065
21214
|
Returns: string;
|
|
20066
21215
|
};
|
|
20067
21216
|
logistics_emit_event: {
|
|
20068
|
-
Args: {
|
|
20069
|
-
p_event_type: string;
|
|
20070
|
-
p_idempotency_key?: string;
|
|
20071
|
-
p_order_ref: string;
|
|
20072
|
-
p_payload?: Json;
|
|
20073
|
-
p_shadow?: boolean;
|
|
20074
|
-
p_source_module: string;
|
|
20075
|
-
p_strategy_id?: string;
|
|
20076
|
-
};
|
|
20077
|
-
Returns: Json;
|
|
20078
|
-
} | {
|
|
20079
21217
|
Args: {
|
|
20080
21218
|
p_event_type: string;
|
|
20081
21219
|
p_idempotency_key?: string;
|
|
@@ -20230,6 +21368,65 @@ export type Database = {
|
|
|
20230
21368
|
};
|
|
20231
21369
|
Returns: number;
|
|
20232
21370
|
};
|
|
21371
|
+
logistics_plan_claim: {
|
|
21372
|
+
Args: {
|
|
21373
|
+
p_limit?: number;
|
|
21374
|
+
};
|
|
21375
|
+
Returns: {
|
|
21376
|
+
attempts: number;
|
|
21377
|
+
id: string;
|
|
21378
|
+
order_id: string;
|
|
21379
|
+
}[];
|
|
21380
|
+
};
|
|
21381
|
+
logistics_plan_enqueue: {
|
|
21382
|
+
Args: {
|
|
21383
|
+
p_order_id: string;
|
|
21384
|
+
p_reason?: string;
|
|
21385
|
+
};
|
|
21386
|
+
Returns: undefined;
|
|
21387
|
+
};
|
|
21388
|
+
logistics_plan_ensure_event: {
|
|
21389
|
+
Args: {
|
|
21390
|
+
p_order_id: string;
|
|
21391
|
+
};
|
|
21392
|
+
Returns: boolean;
|
|
21393
|
+
};
|
|
21394
|
+
logistics_plan_finish: {
|
|
21395
|
+
Args: {
|
|
21396
|
+
p_error?: string;
|
|
21397
|
+
p_id: string;
|
|
21398
|
+
};
|
|
21399
|
+
Returns: undefined;
|
|
21400
|
+
};
|
|
21401
|
+
logistics_plan_impact_orders: {
|
|
21402
|
+
Args: {
|
|
21403
|
+
p_order_id: string;
|
|
21404
|
+
};
|
|
21405
|
+
Returns: {
|
|
21406
|
+
buffer_id: string;
|
|
21407
|
+
order_id: string;
|
|
21408
|
+
plan_date: string;
|
|
21409
|
+
}[];
|
|
21410
|
+
};
|
|
21411
|
+
logistics_plan_kick: {
|
|
21412
|
+
Args: never;
|
|
21413
|
+
Returns: undefined;
|
|
21414
|
+
};
|
|
21415
|
+
logistics_plan_prune: {
|
|
21416
|
+
Args: never;
|
|
21417
|
+
Returns: number;
|
|
21418
|
+
};
|
|
21419
|
+
logistics_plan_release_stale: {
|
|
21420
|
+
Args: never;
|
|
21421
|
+
Returns: number;
|
|
21422
|
+
};
|
|
21423
|
+
logistics_plan_setting: {
|
|
21424
|
+
Args: {
|
|
21425
|
+
p_default: number;
|
|
21426
|
+
p_key: string;
|
|
21427
|
+
};
|
|
21428
|
+
Returns: number;
|
|
21429
|
+
};
|
|
20233
21430
|
logistics_queue_capacity_email: {
|
|
20234
21431
|
Args: {
|
|
20235
21432
|
p_alert_id: string;
|
|
@@ -20471,6 +21668,7 @@ export type Database = {
|
|
|
20471
21668
|
my_module_permissions: {
|
|
20472
21669
|
Args: never;
|
|
20473
21670
|
Returns: {
|
|
21671
|
+
feature_id: string;
|
|
20474
21672
|
module_id: string;
|
|
20475
21673
|
permission: string;
|
|
20476
21674
|
}[];
|
|
@@ -20860,6 +22058,37 @@ export type Database = {
|
|
|
20860
22058
|
};
|
|
20861
22059
|
Returns: undefined;
|
|
20862
22060
|
};
|
|
22061
|
+
quote_create_from_source: {
|
|
22062
|
+
Args: {
|
|
22063
|
+
_payload?: Json;
|
|
22064
|
+
_source_id: string;
|
|
22065
|
+
_source_type: string;
|
|
22066
|
+
};
|
|
22067
|
+
Returns: string;
|
|
22068
|
+
};
|
|
22069
|
+
quote_get_billable_lines: {
|
|
22070
|
+
Args: {
|
|
22071
|
+
_quotation_id: string;
|
|
22072
|
+
};
|
|
22073
|
+
Returns: Json;
|
|
22074
|
+
};
|
|
22075
|
+
quote_get_summary: {
|
|
22076
|
+
Args: {
|
|
22077
|
+
_quotation_id: string;
|
|
22078
|
+
};
|
|
22079
|
+
Returns: Json;
|
|
22080
|
+
};
|
|
22081
|
+
quote_list_packages: {
|
|
22082
|
+
Args: never;
|
|
22083
|
+
Returns: Json;
|
|
22084
|
+
};
|
|
22085
|
+
quote_list_sources: {
|
|
22086
|
+
Args: {
|
|
22087
|
+
_limit?: number;
|
|
22088
|
+
_source_type?: string;
|
|
22089
|
+
};
|
|
22090
|
+
Returns: Json;
|
|
22091
|
+
};
|
|
20863
22092
|
recompute_all_reserved_stock: {
|
|
20864
22093
|
Args: never;
|
|
20865
22094
|
Returns: undefined;
|
|
@@ -21351,6 +22580,16 @@ export type Database = {
|
|
|
21351
22580
|
};
|
|
21352
22581
|
Returns: string[];
|
|
21353
22582
|
};
|
|
22583
|
+
switch_time_log: {
|
|
22584
|
+
Args: {
|
|
22585
|
+
p_employee_id: string;
|
|
22586
|
+
p_start_lat?: number;
|
|
22587
|
+
p_start_lng?: number;
|
|
22588
|
+
p_type: string;
|
|
22589
|
+
p_work_order_id?: string;
|
|
22590
|
+
};
|
|
22591
|
+
Returns: Json;
|
|
22592
|
+
};
|
|
21354
22593
|
sync_all_layer_stocks: {
|
|
21355
22594
|
Args: never;
|
|
21356
22595
|
Returns: undefined;
|
|
@@ -21385,6 +22624,12 @@ export type Database = {
|
|
|
21385
22624
|
};
|
|
21386
22625
|
Returns: undefined;
|
|
21387
22626
|
};
|
|
22627
|
+
sync_sick_time_off: {
|
|
22628
|
+
Args: {
|
|
22629
|
+
_period_id: string;
|
|
22630
|
+
};
|
|
22631
|
+
Returns: number;
|
|
22632
|
+
};
|
|
21388
22633
|
trade_item_stock_duplicates: {
|
|
21389
22634
|
Args: never;
|
|
21390
22635
|
Returns: {
|
|
@@ -21401,6 +22646,24 @@ export type Database = {
|
|
|
21401
22646
|
};
|
|
21402
22647
|
Returns: boolean;
|
|
21403
22648
|
};
|
|
22649
|
+
twinfield_cron_lock_acquire: {
|
|
22650
|
+
Args: {
|
|
22651
|
+
_job_name: string;
|
|
22652
|
+
_stale_seconds?: number;
|
|
22653
|
+
};
|
|
22654
|
+
Returns: boolean;
|
|
22655
|
+
};
|
|
22656
|
+
twinfield_cron_lock_release: {
|
|
22657
|
+
Args: {
|
|
22658
|
+
_error?: string;
|
|
22659
|
+
_job_name: string;
|
|
22660
|
+
};
|
|
22661
|
+
Returns: undefined;
|
|
22662
|
+
};
|
|
22663
|
+
twinfield_prune_push_queue: {
|
|
22664
|
+
Args: never;
|
|
22665
|
+
Returns: number;
|
|
22666
|
+
};
|
|
21404
22667
|
twinfield_register_cron: {
|
|
21405
22668
|
Args: {
|
|
21406
22669
|
apikey?: string;
|
|
@@ -21440,11 +22703,31 @@ export type Database = {
|
|
|
21440
22703
|
Args: never;
|
|
21441
22704
|
Returns: string;
|
|
21442
22705
|
};
|
|
22706
|
+
wo_create_from_source: {
|
|
22707
|
+
Args: {
|
|
22708
|
+
_payload?: Json;
|
|
22709
|
+
_source_id: string;
|
|
22710
|
+
_source_type: string;
|
|
22711
|
+
};
|
|
22712
|
+
Returns: string;
|
|
22713
|
+
};
|
|
22714
|
+
wo_get_billable_lines: {
|
|
22715
|
+
Args: {
|
|
22716
|
+
_work_order_id: string;
|
|
22717
|
+
};
|
|
22718
|
+
Returns: Json;
|
|
22719
|
+
};
|
|
22720
|
+
wo_get_summary: {
|
|
22721
|
+
Args: {
|
|
22722
|
+
_work_order_id: string;
|
|
22723
|
+
};
|
|
22724
|
+
Returns: Json;
|
|
22725
|
+
};
|
|
21443
22726
|
};
|
|
21444
22727
|
Enums: {
|
|
21445
22728
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
21446
22729
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
21447
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
22730
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
21448
22731
|
doc_orientation: "portrait" | "landscape";
|
|
21449
22732
|
exact_env: "staging" | "live";
|
|
21450
22733
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -21515,7 +22798,7 @@ export declare const Constants: {
|
|
|
21515
22798
|
readonly Enums: {
|
|
21516
22799
|
readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
|
|
21517
22800
|
readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie"];
|
|
21518
|
-
readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon"];
|
|
22801
|
+
readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon", "veilingbon", "afleverbrief", "veilingbrief"];
|
|
21519
22802
|
readonly doc_orientation: readonly ["portrait", "landscape"];
|
|
21520
22803
|
readonly exact_env: readonly ["staging", "live"];
|
|
21521
22804
|
readonly exact_push_status: readonly ["pending", "sent", "error"];
|