@flowselections/floriday-afhandeling-module 1.0.30 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/ControlePage.js +23 -10
- package/dist-lib/components/afhandeling/LeveringenPage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/LeveringenPage.js +7 -24
- package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/PickAgendaView.js +22 -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 +5 -1
- package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/WeekAgendaView.js +19 -29
- package/dist-lib/hooks/useEngineTasks.d.ts +2 -0
- package/dist-lib/hooks/useEngineTasks.d.ts.map +1 -1
- package/dist-lib/hooks/useEngineTasks.js +19 -4
- package/dist-lib/hooks/useOrderPlanning.d.ts +12 -1
- package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
- package/dist-lib/hooks/useOrderPlanning.js +65 -26
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1351 -164
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1351 -164
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1351 -164
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1360 -168
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +12 -1
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +2614 -240
- package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
- package/dist-lib/lib/agendaRange.d.ts +13 -0
- package/dist-lib/lib/agendaRange.d.ts.map +1 -0
- package/dist-lib/lib/agendaRange.js +25 -0
- package/dist-lib/lib/carriers.functions.d.ts +6535 -600
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartAssignments.functions.d.ts +6535 -600
- package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.d.ts +13070 -1200
- package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.d.ts +1367 -166
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.js +86 -20
- package/dist-lib/lib/logisticsEngine/engine.d.ts +16 -3
- package/dist-lib/lib/logisticsEngine/engine.d.ts.map +1 -1
- package/dist-lib/lib/logisticsEngine/engine.js +13 -6
- package/package.json +2 -8
|
@@ -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;
|
|
@@ -1719,7 +1839,7 @@ export type Database = {
|
|
|
1719
1839
|
city: string | null;
|
|
1720
1840
|
country: string | null;
|
|
1721
1841
|
created_at: string;
|
|
1722
|
-
customer_id: string
|
|
1842
|
+
customer_id: string;
|
|
1723
1843
|
external_key: string | null;
|
|
1724
1844
|
external_provider: string | null;
|
|
1725
1845
|
floriday_location_id: string | null;
|
|
@@ -1743,7 +1863,7 @@ export type Database = {
|
|
|
1743
1863
|
city?: string | null;
|
|
1744
1864
|
country?: string | null;
|
|
1745
1865
|
created_at?: string;
|
|
1746
|
-
customer_id
|
|
1866
|
+
customer_id: string;
|
|
1747
1867
|
external_key?: string | null;
|
|
1748
1868
|
external_provider?: string | null;
|
|
1749
1869
|
floriday_location_id?: string | null;
|
|
@@ -1767,7 +1887,7 @@ export type Database = {
|
|
|
1767
1887
|
city?: string | null;
|
|
1768
1888
|
country?: string | null;
|
|
1769
1889
|
created_at?: string;
|
|
1770
|
-
customer_id?: string
|
|
1890
|
+
customer_id?: string;
|
|
1771
1891
|
external_key?: string | null;
|
|
1772
1892
|
external_provider?: string | null;
|
|
1773
1893
|
floriday_location_id?: string | null;
|
|
@@ -6646,6 +6766,7 @@ export type Database = {
|
|
|
6646
6766
|
Row: {
|
|
6647
6767
|
buyer_organization_id: string | null;
|
|
6648
6768
|
connection_id: string;
|
|
6769
|
+
controlled_at: string | null;
|
|
6649
6770
|
created_at: string;
|
|
6650
6771
|
data: Json;
|
|
6651
6772
|
floriday_id: string;
|
|
@@ -6657,6 +6778,7 @@ export type Database = {
|
|
|
6657
6778
|
Insert: {
|
|
6658
6779
|
buyer_organization_id?: string | null;
|
|
6659
6780
|
connection_id: string;
|
|
6781
|
+
controlled_at?: string | null;
|
|
6660
6782
|
created_at?: string;
|
|
6661
6783
|
data: Json;
|
|
6662
6784
|
floriday_id: string;
|
|
@@ -6668,6 +6790,7 @@ export type Database = {
|
|
|
6668
6790
|
Update: {
|
|
6669
6791
|
buyer_organization_id?: string | null;
|
|
6670
6792
|
connection_id?: string;
|
|
6793
|
+
controlled_at?: string | null;
|
|
6671
6794
|
created_at?: string;
|
|
6672
6795
|
data?: Json;
|
|
6673
6796
|
floriday_id?: string;
|
|
@@ -7601,6 +7724,54 @@ export type Database = {
|
|
|
7601
7724
|
};
|
|
7602
7725
|
Relationships: [];
|
|
7603
7726
|
};
|
|
7727
|
+
invoice_timing_settings: {
|
|
7728
|
+
Row: {
|
|
7729
|
+
anchor: string;
|
|
7730
|
+
business_days_only: boolean;
|
|
7731
|
+
created_at: string;
|
|
7732
|
+
enabled: boolean;
|
|
7733
|
+
id: string;
|
|
7734
|
+
offset_days: number;
|
|
7735
|
+
pickup_anchor: string;
|
|
7736
|
+
pickup_business_days_only: boolean;
|
|
7737
|
+
pickup_offset_days: number;
|
|
7738
|
+
pickup_time_of_day: string;
|
|
7739
|
+
singleton: boolean;
|
|
7740
|
+
time_of_day: string;
|
|
7741
|
+
updated_at: string;
|
|
7742
|
+
};
|
|
7743
|
+
Insert: {
|
|
7744
|
+
anchor?: string;
|
|
7745
|
+
business_days_only?: boolean;
|
|
7746
|
+
created_at?: string;
|
|
7747
|
+
enabled?: boolean;
|
|
7748
|
+
id?: string;
|
|
7749
|
+
offset_days?: number;
|
|
7750
|
+
pickup_anchor?: string;
|
|
7751
|
+
pickup_business_days_only?: boolean;
|
|
7752
|
+
pickup_offset_days?: number;
|
|
7753
|
+
pickup_time_of_day?: string;
|
|
7754
|
+
singleton?: boolean;
|
|
7755
|
+
time_of_day?: string;
|
|
7756
|
+
updated_at?: string;
|
|
7757
|
+
};
|
|
7758
|
+
Update: {
|
|
7759
|
+
anchor?: string;
|
|
7760
|
+
business_days_only?: boolean;
|
|
7761
|
+
created_at?: string;
|
|
7762
|
+
enabled?: boolean;
|
|
7763
|
+
id?: string;
|
|
7764
|
+
offset_days?: number;
|
|
7765
|
+
pickup_anchor?: string;
|
|
7766
|
+
pickup_business_days_only?: boolean;
|
|
7767
|
+
pickup_offset_days?: number;
|
|
7768
|
+
pickup_time_of_day?: string;
|
|
7769
|
+
singleton?: boolean;
|
|
7770
|
+
time_of_day?: string;
|
|
7771
|
+
updated_at?: string;
|
|
7772
|
+
};
|
|
7773
|
+
Relationships: [];
|
|
7774
|
+
};
|
|
7604
7775
|
itk_contact_persons: {
|
|
7605
7776
|
Row: {
|
|
7606
7777
|
created_at: string;
|
|
@@ -7924,7 +8095,6 @@ export type Database = {
|
|
|
7924
8095
|
start_date: string;
|
|
7925
8096
|
start_time: string | null;
|
|
7926
8097
|
status: string;
|
|
7927
|
-
tenant_id: string;
|
|
7928
8098
|
updated_at: string;
|
|
7929
8099
|
user_id: string;
|
|
7930
8100
|
};
|
|
@@ -7942,7 +8112,6 @@ export type Database = {
|
|
|
7942
8112
|
start_date: string;
|
|
7943
8113
|
start_time?: string | null;
|
|
7944
8114
|
status?: string;
|
|
7945
|
-
tenant_id?: string;
|
|
7946
8115
|
updated_at?: string;
|
|
7947
8116
|
user_id: string;
|
|
7948
8117
|
};
|
|
@@ -7960,7 +8129,6 @@ export type Database = {
|
|
|
7960
8129
|
start_date?: string;
|
|
7961
8130
|
start_time?: string | null;
|
|
7962
8131
|
status?: string;
|
|
7963
|
-
tenant_id?: string;
|
|
7964
8132
|
updated_at?: string;
|
|
7965
8133
|
user_id?: string;
|
|
7966
8134
|
};
|
|
@@ -7969,14 +8137,14 @@ export type Database = {
|
|
|
7969
8137
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
7970
8138
|
columns: ["monteur_id"];
|
|
7971
8139
|
isOneToOne: false;
|
|
7972
|
-
referencedRelation: "
|
|
8140
|
+
referencedRelation: "profiles";
|
|
7973
8141
|
referencedColumns: ["id"];
|
|
7974
8142
|
},
|
|
7975
8143
|
{
|
|
7976
8144
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
7977
8145
|
columns: ["user_id"];
|
|
7978
8146
|
isOneToOne: false;
|
|
7979
|
-
referencedRelation: "
|
|
8147
|
+
referencedRelation: "profiles";
|
|
7980
8148
|
referencedColumns: ["id"];
|
|
7981
8149
|
}
|
|
7982
8150
|
];
|
|
@@ -8724,6 +8892,69 @@ export type Database = {
|
|
|
8724
8892
|
};
|
|
8725
8893
|
Relationships: [];
|
|
8726
8894
|
};
|
|
8895
|
+
logistics_floriday_pushes: {
|
|
8896
|
+
Row: {
|
|
8897
|
+
attempts: number;
|
|
8898
|
+
created_at: string;
|
|
8899
|
+
first_queued_at: string;
|
|
8900
|
+
fulfillment_order_id: string | null;
|
|
8901
|
+
id: string;
|
|
8902
|
+
last_error: string | null;
|
|
8903
|
+
last_error_at: string | null;
|
|
8904
|
+
last_sent_hash: string | null;
|
|
8905
|
+
locked_by: string | null;
|
|
8906
|
+
locked_until: string | null;
|
|
8907
|
+
next_attempt_at: string;
|
|
8908
|
+
order_ref: string;
|
|
8909
|
+
payload: Json;
|
|
8910
|
+
payload_hash: string | null;
|
|
8911
|
+
revision: number;
|
|
8912
|
+
sent_at: string | null;
|
|
8913
|
+
status: string;
|
|
8914
|
+
updated_at: string;
|
|
8915
|
+
};
|
|
8916
|
+
Insert: {
|
|
8917
|
+
attempts?: number;
|
|
8918
|
+
created_at?: string;
|
|
8919
|
+
first_queued_at?: string;
|
|
8920
|
+
fulfillment_order_id?: string | null;
|
|
8921
|
+
id?: string;
|
|
8922
|
+
last_error?: string | null;
|
|
8923
|
+
last_error_at?: string | null;
|
|
8924
|
+
last_sent_hash?: string | null;
|
|
8925
|
+
locked_by?: string | null;
|
|
8926
|
+
locked_until?: string | null;
|
|
8927
|
+
next_attempt_at?: string;
|
|
8928
|
+
order_ref: string;
|
|
8929
|
+
payload?: Json;
|
|
8930
|
+
payload_hash?: string | null;
|
|
8931
|
+
revision?: number;
|
|
8932
|
+
sent_at?: string | null;
|
|
8933
|
+
status?: string;
|
|
8934
|
+
updated_at?: string;
|
|
8935
|
+
};
|
|
8936
|
+
Update: {
|
|
8937
|
+
attempts?: number;
|
|
8938
|
+
created_at?: string;
|
|
8939
|
+
first_queued_at?: string;
|
|
8940
|
+
fulfillment_order_id?: string | null;
|
|
8941
|
+
id?: string;
|
|
8942
|
+
last_error?: string | null;
|
|
8943
|
+
last_error_at?: string | null;
|
|
8944
|
+
last_sent_hash?: string | null;
|
|
8945
|
+
locked_by?: string | null;
|
|
8946
|
+
locked_until?: string | null;
|
|
8947
|
+
next_attempt_at?: string;
|
|
8948
|
+
order_ref?: string;
|
|
8949
|
+
payload?: Json;
|
|
8950
|
+
payload_hash?: string | null;
|
|
8951
|
+
revision?: number;
|
|
8952
|
+
sent_at?: string | null;
|
|
8953
|
+
status?: string;
|
|
8954
|
+
updated_at?: string;
|
|
8955
|
+
};
|
|
8956
|
+
Relationships: [];
|
|
8957
|
+
};
|
|
8727
8958
|
logistics_formulas: {
|
|
8728
8959
|
Row: {
|
|
8729
8960
|
created_at: string;
|
|
@@ -8804,6 +9035,45 @@ export type Database = {
|
|
|
8804
9035
|
};
|
|
8805
9036
|
Relationships: [];
|
|
8806
9037
|
};
|
|
9038
|
+
logistics_plan_queue: {
|
|
9039
|
+
Row: {
|
|
9040
|
+
attempts: number;
|
|
9041
|
+
claimed_at: string | null;
|
|
9042
|
+
enqueued_at: string;
|
|
9043
|
+
error: string | null;
|
|
9044
|
+
id: string;
|
|
9045
|
+
next_attempt_at: string;
|
|
9046
|
+
order_id: string;
|
|
9047
|
+
reason: string;
|
|
9048
|
+
status: string;
|
|
9049
|
+
updated_at: string;
|
|
9050
|
+
};
|
|
9051
|
+
Insert: {
|
|
9052
|
+
attempts?: number;
|
|
9053
|
+
claimed_at?: string | null;
|
|
9054
|
+
enqueued_at?: string;
|
|
9055
|
+
error?: string | null;
|
|
9056
|
+
id?: string;
|
|
9057
|
+
next_attempt_at?: string;
|
|
9058
|
+
order_id: string;
|
|
9059
|
+
reason?: string;
|
|
9060
|
+
status?: string;
|
|
9061
|
+
updated_at?: string;
|
|
9062
|
+
};
|
|
9063
|
+
Update: {
|
|
9064
|
+
attempts?: number;
|
|
9065
|
+
claimed_at?: string | null;
|
|
9066
|
+
enqueued_at?: string;
|
|
9067
|
+
error?: string | null;
|
|
9068
|
+
id?: string;
|
|
9069
|
+
next_attempt_at?: string;
|
|
9070
|
+
order_id?: string;
|
|
9071
|
+
reason?: string;
|
|
9072
|
+
status?: string;
|
|
9073
|
+
updated_at?: string;
|
|
9074
|
+
};
|
|
9075
|
+
Relationships: [];
|
|
9076
|
+
};
|
|
8807
9077
|
logistics_plan_runs: {
|
|
8808
9078
|
Row: {
|
|
8809
9079
|
created_at: string;
|
|
@@ -8882,6 +9152,24 @@ export type Database = {
|
|
|
8882
9152
|
}
|
|
8883
9153
|
];
|
|
8884
9154
|
};
|
|
9155
|
+
logistics_plan_settings: {
|
|
9156
|
+
Row: {
|
|
9157
|
+
key: string;
|
|
9158
|
+
updated_at: string;
|
|
9159
|
+
value: string;
|
|
9160
|
+
};
|
|
9161
|
+
Insert: {
|
|
9162
|
+
key: string;
|
|
9163
|
+
updated_at?: string;
|
|
9164
|
+
value: string;
|
|
9165
|
+
};
|
|
9166
|
+
Update: {
|
|
9167
|
+
key?: string;
|
|
9168
|
+
updated_at?: string;
|
|
9169
|
+
value?: string;
|
|
9170
|
+
};
|
|
9171
|
+
Relationships: [];
|
|
9172
|
+
};
|
|
8885
9173
|
logistics_rebuffer_state: {
|
|
8886
9174
|
Row: {
|
|
8887
9175
|
created_at: string;
|
|
@@ -9602,14 +9890,17 @@ export type Database = {
|
|
|
9602
9890
|
};
|
|
9603
9891
|
mailbox_messages: {
|
|
9604
9892
|
Row: {
|
|
9893
|
+
attachments: Json;
|
|
9605
9894
|
body_html: string | null;
|
|
9606
9895
|
body_text: string | null;
|
|
9896
|
+
cc_recipients: Json;
|
|
9607
9897
|
connection_id: string | null;
|
|
9608
9898
|
created_at: string;
|
|
9609
9899
|
error_message: string | null;
|
|
9610
9900
|
external_id: string | null;
|
|
9611
9901
|
from_email: string | null;
|
|
9612
9902
|
from_name: string | null;
|
|
9903
|
+
has_attachments: boolean;
|
|
9613
9904
|
id: string;
|
|
9614
9905
|
message_id: string | null;
|
|
9615
9906
|
profile_id: string | null;
|
|
@@ -9617,18 +9908,22 @@ export type Database = {
|
|
|
9617
9908
|
received_at: string | null;
|
|
9618
9909
|
status: string;
|
|
9619
9910
|
subject: string | null;
|
|
9911
|
+
to_recipients: Json;
|
|
9620
9912
|
uid: number | null;
|
|
9621
9913
|
updated_at: string;
|
|
9622
9914
|
};
|
|
9623
9915
|
Insert: {
|
|
9916
|
+
attachments?: Json;
|
|
9624
9917
|
body_html?: string | null;
|
|
9625
9918
|
body_text?: string | null;
|
|
9919
|
+
cc_recipients?: Json;
|
|
9626
9920
|
connection_id?: string | null;
|
|
9627
9921
|
created_at?: string;
|
|
9628
9922
|
error_message?: string | null;
|
|
9629
9923
|
external_id?: string | null;
|
|
9630
9924
|
from_email?: string | null;
|
|
9631
9925
|
from_name?: string | null;
|
|
9926
|
+
has_attachments?: boolean;
|
|
9632
9927
|
id?: string;
|
|
9633
9928
|
message_id?: string | null;
|
|
9634
9929
|
profile_id?: string | null;
|
|
@@ -9636,18 +9931,22 @@ export type Database = {
|
|
|
9636
9931
|
received_at?: string | null;
|
|
9637
9932
|
status?: string;
|
|
9638
9933
|
subject?: string | null;
|
|
9934
|
+
to_recipients?: Json;
|
|
9639
9935
|
uid?: number | null;
|
|
9640
9936
|
updated_at?: string;
|
|
9641
9937
|
};
|
|
9642
9938
|
Update: {
|
|
9939
|
+
attachments?: Json;
|
|
9643
9940
|
body_html?: string | null;
|
|
9644
9941
|
body_text?: string | null;
|
|
9942
|
+
cc_recipients?: Json;
|
|
9645
9943
|
connection_id?: string | null;
|
|
9646
9944
|
created_at?: string;
|
|
9647
9945
|
error_message?: string | null;
|
|
9648
9946
|
external_id?: string | null;
|
|
9649
9947
|
from_email?: string | null;
|
|
9650
9948
|
from_name?: string | null;
|
|
9949
|
+
has_attachments?: boolean;
|
|
9651
9950
|
id?: string;
|
|
9652
9951
|
message_id?: string | null;
|
|
9653
9952
|
profile_id?: string | null;
|
|
@@ -9655,6 +9954,7 @@ export type Database = {
|
|
|
9655
9954
|
received_at?: string | null;
|
|
9656
9955
|
status?: string;
|
|
9657
9956
|
subject?: string | null;
|
|
9957
|
+
to_recipients?: Json;
|
|
9658
9958
|
uid?: number | null;
|
|
9659
9959
|
updated_at?: string;
|
|
9660
9960
|
};
|
|
@@ -10052,6 +10352,94 @@ export type Database = {
|
|
|
10052
10352
|
};
|
|
10053
10353
|
Relationships: [];
|
|
10054
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
|
+
};
|
|
10055
10443
|
module_permissions: {
|
|
10056
10444
|
Row: {
|
|
10057
10445
|
created_at: string;
|
|
@@ -10079,6 +10467,36 @@ export type Database = {
|
|
|
10079
10467
|
};
|
|
10080
10468
|
Relationships: [];
|
|
10081
10469
|
};
|
|
10470
|
+
module_registry: {
|
|
10471
|
+
Row: {
|
|
10472
|
+
created_at: string;
|
|
10473
|
+
is_active: boolean;
|
|
10474
|
+
last_seen_at: string;
|
|
10475
|
+
module_id: string;
|
|
10476
|
+
name: string;
|
|
10477
|
+
shell_id: string | null;
|
|
10478
|
+
sort_order: number | null;
|
|
10479
|
+
};
|
|
10480
|
+
Insert: {
|
|
10481
|
+
created_at?: string;
|
|
10482
|
+
is_active?: boolean;
|
|
10483
|
+
last_seen_at?: string;
|
|
10484
|
+
module_id: string;
|
|
10485
|
+
name: string;
|
|
10486
|
+
shell_id?: string | null;
|
|
10487
|
+
sort_order?: number | null;
|
|
10488
|
+
};
|
|
10489
|
+
Update: {
|
|
10490
|
+
created_at?: string;
|
|
10491
|
+
is_active?: boolean;
|
|
10492
|
+
last_seen_at?: string;
|
|
10493
|
+
module_id?: string;
|
|
10494
|
+
name?: string;
|
|
10495
|
+
shell_id?: string | null;
|
|
10496
|
+
sort_order?: number | null;
|
|
10497
|
+
};
|
|
10498
|
+
Relationships: [];
|
|
10499
|
+
};
|
|
10082
10500
|
module_runtime_config: {
|
|
10083
10501
|
Row: {
|
|
10084
10502
|
key: string;
|
|
@@ -10130,66 +10548,7 @@ export type Database = {
|
|
|
10130
10548
|
};
|
|
10131
10549
|
Relationships: [];
|
|
10132
10550
|
};
|
|
10133
|
-
|
|
10134
|
-
Row: {
|
|
10135
|
-
avatar_url: string | null;
|
|
10136
|
-
color: string | null;
|
|
10137
|
-
created_at: string;
|
|
10138
|
-
email: string | null;
|
|
10139
|
-
id: string;
|
|
10140
|
-
is_active: boolean;
|
|
10141
|
-
leave_balance_hours: number;
|
|
10142
|
-
name: string;
|
|
10143
|
-
persnr: number | null;
|
|
10144
|
-
phone: string | null;
|
|
10145
|
-
role: string;
|
|
10146
|
-
tenant_id: string;
|
|
10147
|
-
updated_at: string;
|
|
10148
|
-
user_id: string | null;
|
|
10149
|
-
};
|
|
10150
|
-
Insert: {
|
|
10151
|
-
avatar_url?: string | null;
|
|
10152
|
-
color?: string | null;
|
|
10153
|
-
created_at?: string;
|
|
10154
|
-
email?: string | null;
|
|
10155
|
-
id?: string;
|
|
10156
|
-
is_active?: boolean;
|
|
10157
|
-
leave_balance_hours?: number;
|
|
10158
|
-
name: string;
|
|
10159
|
-
persnr?: number | null;
|
|
10160
|
-
phone?: string | null;
|
|
10161
|
-
role?: string;
|
|
10162
|
-
tenant_id: string;
|
|
10163
|
-
updated_at?: string;
|
|
10164
|
-
user_id?: string | null;
|
|
10165
|
-
};
|
|
10166
|
-
Update: {
|
|
10167
|
-
avatar_url?: string | null;
|
|
10168
|
-
color?: string | null;
|
|
10169
|
-
created_at?: string;
|
|
10170
|
-
email?: string | null;
|
|
10171
|
-
id?: string;
|
|
10172
|
-
is_active?: boolean;
|
|
10173
|
-
leave_balance_hours?: number;
|
|
10174
|
-
name?: string;
|
|
10175
|
-
persnr?: number | null;
|
|
10176
|
-
phone?: string | null;
|
|
10177
|
-
role?: string;
|
|
10178
|
-
tenant_id?: string;
|
|
10179
|
-
updated_at?: string;
|
|
10180
|
-
user_id?: string | null;
|
|
10181
|
-
};
|
|
10182
|
-
Relationships: [
|
|
10183
|
-
{
|
|
10184
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
10185
|
-
columns: ["tenant_id"];
|
|
10186
|
-
isOneToOne: false;
|
|
10187
|
-
referencedRelation: "tenants";
|
|
10188
|
-
referencedColumns: ["id"];
|
|
10189
|
-
}
|
|
10190
|
-
];
|
|
10191
|
-
};
|
|
10192
|
-
nmbrs_component_mapping: {
|
|
10551
|
+
nmbrs_component_mapping: {
|
|
10193
10552
|
Row: {
|
|
10194
10553
|
created_at: string;
|
|
10195
10554
|
id: string;
|
|
@@ -10261,15 +10620,7 @@ export type Database = {
|
|
|
10261
10620
|
nmbrs_employee_number?: string;
|
|
10262
10621
|
updated_at?: string;
|
|
10263
10622
|
};
|
|
10264
|
-
Relationships: [
|
|
10265
|
-
{
|
|
10266
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10267
|
-
columns: ["monteur_id"];
|
|
10268
|
-
isOneToOne: true;
|
|
10269
|
-
referencedRelation: "monteurs";
|
|
10270
|
-
referencedColumns: ["id"];
|
|
10271
|
-
}
|
|
10272
|
-
];
|
|
10623
|
+
Relationships: [];
|
|
10273
10624
|
};
|
|
10274
10625
|
nmbrs_export_lines: {
|
|
10275
10626
|
Row: {
|
|
@@ -10318,13 +10669,6 @@ export type Database = {
|
|
|
10318
10669
|
wage_code?: string;
|
|
10319
10670
|
};
|
|
10320
10671
|
Relationships: [
|
|
10321
|
-
{
|
|
10322
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10323
|
-
columns: ["monteur_id"];
|
|
10324
|
-
isOneToOne: false;
|
|
10325
|
-
referencedRelation: "monteurs";
|
|
10326
|
-
referencedColumns: ["id"];
|
|
10327
|
-
},
|
|
10328
10672
|
{
|
|
10329
10673
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10330
10674
|
columns: ["run_id"];
|
|
@@ -11175,6 +11519,45 @@ export type Database = {
|
|
|
11175
11519
|
};
|
|
11176
11520
|
Relationships: [];
|
|
11177
11521
|
};
|
|
11522
|
+
order_invoice_links: {
|
|
11523
|
+
Row: {
|
|
11524
|
+
attempts: number;
|
|
11525
|
+
created_at: string;
|
|
11526
|
+
error_message: string | null;
|
|
11527
|
+
id: string;
|
|
11528
|
+
invoice_number: string | null;
|
|
11529
|
+
next_attempt_at: string;
|
|
11530
|
+
order_id: string;
|
|
11531
|
+
processed_at: string | null;
|
|
11532
|
+
status: string;
|
|
11533
|
+
updated_at: string;
|
|
11534
|
+
};
|
|
11535
|
+
Insert: {
|
|
11536
|
+
attempts?: number;
|
|
11537
|
+
created_at?: string;
|
|
11538
|
+
error_message?: string | null;
|
|
11539
|
+
id?: string;
|
|
11540
|
+
invoice_number?: string | null;
|
|
11541
|
+
next_attempt_at?: string;
|
|
11542
|
+
order_id: string;
|
|
11543
|
+
processed_at?: string | null;
|
|
11544
|
+
status?: string;
|
|
11545
|
+
updated_at?: string;
|
|
11546
|
+
};
|
|
11547
|
+
Update: {
|
|
11548
|
+
attempts?: number;
|
|
11549
|
+
created_at?: string;
|
|
11550
|
+
error_message?: string | null;
|
|
11551
|
+
id?: string;
|
|
11552
|
+
invoice_number?: string | null;
|
|
11553
|
+
next_attempt_at?: string;
|
|
11554
|
+
order_id?: string;
|
|
11555
|
+
processed_at?: string | null;
|
|
11556
|
+
status?: string;
|
|
11557
|
+
updated_at?: string;
|
|
11558
|
+
};
|
|
11559
|
+
Relationships: [];
|
|
11560
|
+
};
|
|
11178
11561
|
order_items: {
|
|
11179
11562
|
Row: {
|
|
11180
11563
|
crates_per_layer: number | null;
|
|
@@ -11366,6 +11749,7 @@ export type Database = {
|
|
|
11366
11749
|
delivery_date: string | null;
|
|
11367
11750
|
floriday_sales_order_id: string | null;
|
|
11368
11751
|
id: string;
|
|
11752
|
+
invoice_due_at: string | null;
|
|
11369
11753
|
is_reservation: boolean;
|
|
11370
11754
|
notes: string | null;
|
|
11371
11755
|
order_date: string;
|
|
@@ -11387,6 +11771,7 @@ export type Database = {
|
|
|
11387
11771
|
delivery_date?: string | null;
|
|
11388
11772
|
floriday_sales_order_id?: string | null;
|
|
11389
11773
|
id?: string;
|
|
11774
|
+
invoice_due_at?: string | null;
|
|
11390
11775
|
is_reservation?: boolean;
|
|
11391
11776
|
notes?: string | null;
|
|
11392
11777
|
order_date?: string;
|
|
@@ -11408,6 +11793,7 @@ export type Database = {
|
|
|
11408
11793
|
delivery_date?: string | null;
|
|
11409
11794
|
floriday_sales_order_id?: string | null;
|
|
11410
11795
|
id?: string;
|
|
11796
|
+
invoice_due_at?: string | null;
|
|
11411
11797
|
is_reservation?: boolean;
|
|
11412
11798
|
notes?: string | null;
|
|
11413
11799
|
order_date?: string;
|
|
@@ -12648,22 +13034,27 @@ export type Database = {
|
|
|
12648
13034
|
created_at: string;
|
|
12649
13035
|
documentnaam: string;
|
|
12650
13036
|
documenttype: Database["public"]["Enums"]["doc_layout_type"];
|
|
13037
|
+
extern_job_id: string | null;
|
|
12651
13038
|
foutmelding: string | null;
|
|
12652
13039
|
gebruiker_id: string | null;
|
|
12653
13040
|
gebruiker_naam: string;
|
|
12654
13041
|
gestart_op: string | null;
|
|
12655
13042
|
id: string;
|
|
13043
|
+
idempotentie_sleutel: string | null;
|
|
12656
13044
|
is_herprint: boolean;
|
|
12657
13045
|
kopieen: number;
|
|
12658
13046
|
layout_id: string | null;
|
|
12659
13047
|
opgepakt_op: string | null;
|
|
12660
13048
|
paginas: number;
|
|
12661
13049
|
payload: Json;
|
|
13050
|
+
pdf_base64: string | null;
|
|
13051
|
+
pdf_url: string | null;
|
|
12662
13052
|
pogingen: number;
|
|
12663
13053
|
printer_id: string | null;
|
|
12664
13054
|
render_html: string | null;
|
|
12665
13055
|
status: Database["public"]["Enums"]["print_job_status"];
|
|
12666
13056
|
updated_at: string;
|
|
13057
|
+
volgende_poging: string | null;
|
|
12667
13058
|
voltooid_op: string | null;
|
|
12668
13059
|
};
|
|
12669
13060
|
Insert: {
|
|
@@ -12672,22 +13063,27 @@ export type Database = {
|
|
|
12672
13063
|
created_at?: string;
|
|
12673
13064
|
documentnaam?: string;
|
|
12674
13065
|
documenttype?: Database["public"]["Enums"]["doc_layout_type"];
|
|
13066
|
+
extern_job_id?: string | null;
|
|
12675
13067
|
foutmelding?: string | null;
|
|
12676
13068
|
gebruiker_id?: string | null;
|
|
12677
13069
|
gebruiker_naam?: string;
|
|
12678
13070
|
gestart_op?: string | null;
|
|
12679
13071
|
id?: string;
|
|
13072
|
+
idempotentie_sleutel?: string | null;
|
|
12680
13073
|
is_herprint?: boolean;
|
|
12681
13074
|
kopieen?: number;
|
|
12682
13075
|
layout_id?: string | null;
|
|
12683
13076
|
opgepakt_op?: string | null;
|
|
12684
13077
|
paginas?: number;
|
|
12685
13078
|
payload?: Json;
|
|
13079
|
+
pdf_base64?: string | null;
|
|
13080
|
+
pdf_url?: string | null;
|
|
12686
13081
|
pogingen?: number;
|
|
12687
13082
|
printer_id?: string | null;
|
|
12688
13083
|
render_html?: string | null;
|
|
12689
13084
|
status?: Database["public"]["Enums"]["print_job_status"];
|
|
12690
13085
|
updated_at?: string;
|
|
13086
|
+
volgende_poging?: string | null;
|
|
12691
13087
|
voltooid_op?: string | null;
|
|
12692
13088
|
};
|
|
12693
13089
|
Update: {
|
|
@@ -12696,22 +13092,27 @@ export type Database = {
|
|
|
12696
13092
|
created_at?: string;
|
|
12697
13093
|
documentnaam?: string;
|
|
12698
13094
|
documenttype?: Database["public"]["Enums"]["doc_layout_type"];
|
|
13095
|
+
extern_job_id?: string | null;
|
|
12699
13096
|
foutmelding?: string | null;
|
|
12700
13097
|
gebruiker_id?: string | null;
|
|
12701
13098
|
gebruiker_naam?: string;
|
|
12702
13099
|
gestart_op?: string | null;
|
|
12703
13100
|
id?: string;
|
|
13101
|
+
idempotentie_sleutel?: string | null;
|
|
12704
13102
|
is_herprint?: boolean;
|
|
12705
13103
|
kopieen?: number;
|
|
12706
13104
|
layout_id?: string | null;
|
|
12707
13105
|
opgepakt_op?: string | null;
|
|
12708
13106
|
paginas?: number;
|
|
12709
13107
|
payload?: Json;
|
|
13108
|
+
pdf_base64?: string | null;
|
|
13109
|
+
pdf_url?: string | null;
|
|
12710
13110
|
pogingen?: number;
|
|
12711
13111
|
printer_id?: string | null;
|
|
12712
13112
|
render_html?: string | null;
|
|
12713
13113
|
status?: Database["public"]["Enums"]["print_job_status"];
|
|
12714
13114
|
updated_at?: string;
|
|
13115
|
+
volgende_poging?: string | null;
|
|
12715
13116
|
voltooid_op?: string | null;
|
|
12716
13117
|
};
|
|
12717
13118
|
Relationships: [
|
|
@@ -12738,6 +13139,72 @@ export type Database = {
|
|
|
12738
13139
|
}
|
|
12739
13140
|
];
|
|
12740
13141
|
};
|
|
13142
|
+
print_queue_runners: {
|
|
13143
|
+
Row: {
|
|
13144
|
+
actief: boolean;
|
|
13145
|
+
basis_url: string;
|
|
13146
|
+
created_at: string;
|
|
13147
|
+
id: string;
|
|
13148
|
+
laatst_gezien: string;
|
|
13149
|
+
laatste_fout: string | null;
|
|
13150
|
+
laatste_request_id: number | null;
|
|
13151
|
+
mislukte_posts: number;
|
|
13152
|
+
tick_sleutel: string;
|
|
13153
|
+
updated_at: string;
|
|
13154
|
+
};
|
|
13155
|
+
Insert: {
|
|
13156
|
+
actief?: boolean;
|
|
13157
|
+
basis_url: string;
|
|
13158
|
+
created_at?: string;
|
|
13159
|
+
id?: string;
|
|
13160
|
+
laatst_gezien?: string;
|
|
13161
|
+
laatste_fout?: string | null;
|
|
13162
|
+
laatste_request_id?: number | null;
|
|
13163
|
+
mislukte_posts?: number;
|
|
13164
|
+
tick_sleutel?: string;
|
|
13165
|
+
updated_at?: string;
|
|
13166
|
+
};
|
|
13167
|
+
Update: {
|
|
13168
|
+
actief?: boolean;
|
|
13169
|
+
basis_url?: string;
|
|
13170
|
+
created_at?: string;
|
|
13171
|
+
id?: string;
|
|
13172
|
+
laatst_gezien?: string;
|
|
13173
|
+
laatste_fout?: string | null;
|
|
13174
|
+
laatste_request_id?: number | null;
|
|
13175
|
+
mislukte_posts?: number;
|
|
13176
|
+
tick_sleutel?: string;
|
|
13177
|
+
updated_at?: string;
|
|
13178
|
+
};
|
|
13179
|
+
Relationships: [];
|
|
13180
|
+
};
|
|
13181
|
+
print_queue_settings: {
|
|
13182
|
+
Row: {
|
|
13183
|
+
bewaar_bestanden_dagen: number;
|
|
13184
|
+
bewaar_opdrachten_dagen: number;
|
|
13185
|
+
created_at: string;
|
|
13186
|
+
dubbel_venster_minuten: number;
|
|
13187
|
+
id: string;
|
|
13188
|
+
updated_at: string;
|
|
13189
|
+
};
|
|
13190
|
+
Insert: {
|
|
13191
|
+
bewaar_bestanden_dagen?: number;
|
|
13192
|
+
bewaar_opdrachten_dagen?: number;
|
|
13193
|
+
created_at?: string;
|
|
13194
|
+
dubbel_venster_minuten?: number;
|
|
13195
|
+
id?: string;
|
|
13196
|
+
updated_at?: string;
|
|
13197
|
+
};
|
|
13198
|
+
Update: {
|
|
13199
|
+
bewaar_bestanden_dagen?: number;
|
|
13200
|
+
bewaar_opdrachten_dagen?: number;
|
|
13201
|
+
created_at?: string;
|
|
13202
|
+
dubbel_venster_minuten?: number;
|
|
13203
|
+
id?: string;
|
|
13204
|
+
updated_at?: string;
|
|
13205
|
+
};
|
|
13206
|
+
Relationships: [];
|
|
13207
|
+
};
|
|
12741
13208
|
print_rules: {
|
|
12742
13209
|
Row: {
|
|
12743
13210
|
actief: boolean;
|
|
@@ -12906,6 +13373,7 @@ export type Database = {
|
|
|
12906
13373
|
agent_id: string | null;
|
|
12907
13374
|
created_at: string;
|
|
12908
13375
|
driver: string;
|
|
13376
|
+
extern_printer_id: string | null;
|
|
12909
13377
|
id: string;
|
|
12910
13378
|
ip_adres: string | null;
|
|
12911
13379
|
laatst_gezien: string | null;
|
|
@@ -12927,6 +13395,7 @@ export type Database = {
|
|
|
12927
13395
|
agent_id?: string | null;
|
|
12928
13396
|
created_at?: string;
|
|
12929
13397
|
driver?: string;
|
|
13398
|
+
extern_printer_id?: string | null;
|
|
12930
13399
|
id?: string;
|
|
12931
13400
|
ip_adres?: string | null;
|
|
12932
13401
|
laatst_gezien?: string | null;
|
|
@@ -12948,6 +13417,7 @@ export type Database = {
|
|
|
12948
13417
|
agent_id?: string | null;
|
|
12949
13418
|
created_at?: string;
|
|
12950
13419
|
driver?: string;
|
|
13420
|
+
extern_printer_id?: string | null;
|
|
12951
13421
|
id?: string;
|
|
12952
13422
|
ip_adres?: string | null;
|
|
12953
13423
|
laatst_gezien?: string | null;
|
|
@@ -14267,6 +14737,100 @@ export type Database = {
|
|
|
14267
14737
|
}
|
|
14268
14738
|
];
|
|
14269
14739
|
};
|
|
14740
|
+
role_assignments: {
|
|
14741
|
+
Row: {
|
|
14742
|
+
created_at: string;
|
|
14743
|
+
id: string;
|
|
14744
|
+
role_id: string;
|
|
14745
|
+
user_id: string;
|
|
14746
|
+
};
|
|
14747
|
+
Insert: {
|
|
14748
|
+
created_at?: string;
|
|
14749
|
+
id?: string;
|
|
14750
|
+
role_id: string;
|
|
14751
|
+
user_id: string;
|
|
14752
|
+
};
|
|
14753
|
+
Update: {
|
|
14754
|
+
created_at?: string;
|
|
14755
|
+
id?: string;
|
|
14756
|
+
role_id?: string;
|
|
14757
|
+
user_id?: string;
|
|
14758
|
+
};
|
|
14759
|
+
Relationships: [
|
|
14760
|
+
{
|
|
14761
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
14762
|
+
columns: ["role_id"];
|
|
14763
|
+
isOneToOne: false;
|
|
14764
|
+
referencedRelation: "roles";
|
|
14765
|
+
referencedColumns: ["id"];
|
|
14766
|
+
}
|
|
14767
|
+
];
|
|
14768
|
+
};
|
|
14769
|
+
role_permissions: {
|
|
14770
|
+
Row: {
|
|
14771
|
+
can_edit: boolean;
|
|
14772
|
+
can_view: boolean;
|
|
14773
|
+
feature_id: string;
|
|
14774
|
+
id: string;
|
|
14775
|
+
module_id: string;
|
|
14776
|
+
role_id: string;
|
|
14777
|
+
updated_at: string;
|
|
14778
|
+
};
|
|
14779
|
+
Insert: {
|
|
14780
|
+
can_edit?: boolean;
|
|
14781
|
+
can_view?: boolean;
|
|
14782
|
+
feature_id?: string;
|
|
14783
|
+
id?: string;
|
|
14784
|
+
module_id: string;
|
|
14785
|
+
role_id: string;
|
|
14786
|
+
updated_at?: string;
|
|
14787
|
+
};
|
|
14788
|
+
Update: {
|
|
14789
|
+
can_edit?: boolean;
|
|
14790
|
+
can_view?: boolean;
|
|
14791
|
+
feature_id?: string;
|
|
14792
|
+
id?: string;
|
|
14793
|
+
module_id?: string;
|
|
14794
|
+
role_id?: string;
|
|
14795
|
+
updated_at?: string;
|
|
14796
|
+
};
|
|
14797
|
+
Relationships: [
|
|
14798
|
+
{
|
|
14799
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
14800
|
+
columns: ["role_id"];
|
|
14801
|
+
isOneToOne: false;
|
|
14802
|
+
referencedRelation: "roles";
|
|
14803
|
+
referencedColumns: ["id"];
|
|
14804
|
+
}
|
|
14805
|
+
];
|
|
14806
|
+
};
|
|
14807
|
+
roles: {
|
|
14808
|
+
Row: {
|
|
14809
|
+
created_at: string;
|
|
14810
|
+
id: string;
|
|
14811
|
+
is_protected: boolean;
|
|
14812
|
+
key: string;
|
|
14813
|
+
name: string;
|
|
14814
|
+
updated_at: string;
|
|
14815
|
+
};
|
|
14816
|
+
Insert: {
|
|
14817
|
+
created_at?: string;
|
|
14818
|
+
id?: string;
|
|
14819
|
+
is_protected?: boolean;
|
|
14820
|
+
key: string;
|
|
14821
|
+
name: string;
|
|
14822
|
+
updated_at?: string;
|
|
14823
|
+
};
|
|
14824
|
+
Update: {
|
|
14825
|
+
created_at?: string;
|
|
14826
|
+
id?: string;
|
|
14827
|
+
is_protected?: boolean;
|
|
14828
|
+
key?: string;
|
|
14829
|
+
name?: string;
|
|
14830
|
+
updated_at?: string;
|
|
14831
|
+
};
|
|
14832
|
+
Relationships: [];
|
|
14833
|
+
};
|
|
14270
14834
|
rooms: {
|
|
14271
14835
|
Row: {
|
|
14272
14836
|
capacity: number;
|
|
@@ -14947,102 +15511,258 @@ export type Database = {
|
|
|
14947
15511
|
};
|
|
14948
15512
|
Relationships: [];
|
|
14949
15513
|
};
|
|
14950
|
-
|
|
15514
|
+
time_compensation_entries: {
|
|
14951
15515
|
Row: {
|
|
14952
15516
|
created_at: string;
|
|
14953
15517
|
employee_id: string;
|
|
14954
15518
|
entry_date: string;
|
|
14955
|
-
hours: number;
|
|
14956
15519
|
id: string;
|
|
15520
|
+
km: number;
|
|
15521
|
+
meal_allowance: number;
|
|
14957
15522
|
notes: string | null;
|
|
14958
|
-
|
|
14959
|
-
|
|
15523
|
+
standby_evening: number;
|
|
15524
|
+
standby_weekend: number;
|
|
15525
|
+
tvt_change: number;
|
|
14960
15526
|
updated_at: string;
|
|
14961
15527
|
};
|
|
14962
15528
|
Insert: {
|
|
14963
15529
|
created_at?: string;
|
|
14964
15530
|
employee_id: string;
|
|
14965
15531
|
entry_date: string;
|
|
14966
|
-
hours?: number;
|
|
14967
15532
|
id?: string;
|
|
15533
|
+
km?: number;
|
|
15534
|
+
meal_allowance?: number;
|
|
14968
15535
|
notes?: string | null;
|
|
14969
|
-
|
|
14970
|
-
|
|
15536
|
+
standby_evening?: number;
|
|
15537
|
+
standby_weekend?: number;
|
|
15538
|
+
tvt_change?: number;
|
|
14971
15539
|
updated_at?: string;
|
|
14972
15540
|
};
|
|
14973
15541
|
Update: {
|
|
14974
15542
|
created_at?: string;
|
|
14975
15543
|
employee_id?: string;
|
|
14976
15544
|
entry_date?: string;
|
|
14977
|
-
hours?: number;
|
|
14978
15545
|
id?: string;
|
|
15546
|
+
km?: number;
|
|
15547
|
+
meal_allowance?: number;
|
|
14979
15548
|
notes?: string | null;
|
|
14980
|
-
|
|
14981
|
-
|
|
15549
|
+
standby_evening?: number;
|
|
15550
|
+
standby_weekend?: number;
|
|
15551
|
+
tvt_change?: number;
|
|
14982
15552
|
updated_at?: string;
|
|
14983
15553
|
};
|
|
14984
15554
|
Relationships: [
|
|
14985
15555
|
{
|
|
14986
|
-
foreignKeyName: "
|
|
15556
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
14987
15557
|
columns: ["employee_id"];
|
|
14988
15558
|
isOneToOne: false;
|
|
14989
|
-
referencedRelation: "
|
|
15559
|
+
referencedRelation: "profiles";
|
|
14990
15560
|
referencedColumns: ["id"];
|
|
14991
15561
|
}
|
|
14992
15562
|
];
|
|
14993
15563
|
};
|
|
14994
|
-
|
|
15564
|
+
time_entries: {
|
|
14995
15565
|
Row: {
|
|
14996
15566
|
created_at: string;
|
|
14997
15567
|
employee_id: string;
|
|
14998
|
-
|
|
15568
|
+
entry_date: string;
|
|
15569
|
+
hours: number;
|
|
14999
15570
|
id: string;
|
|
15000
15571
|
notes: string | null;
|
|
15001
|
-
|
|
15002
|
-
|
|
15003
|
-
regular_hours: number;
|
|
15004
|
-
start_time: string;
|
|
15005
|
-
travel_cost: number | null;
|
|
15006
|
-
travel_distance_km: number | null;
|
|
15007
|
-
type: string;
|
|
15572
|
+
overtime: number;
|
|
15573
|
+
undertime: number;
|
|
15008
15574
|
updated_at: string;
|
|
15009
15575
|
};
|
|
15010
15576
|
Insert: {
|
|
15011
15577
|
created_at?: string;
|
|
15012
15578
|
employee_id: string;
|
|
15013
|
-
|
|
15579
|
+
entry_date: string;
|
|
15580
|
+
hours?: number;
|
|
15014
15581
|
id?: string;
|
|
15015
15582
|
notes?: string | null;
|
|
15016
|
-
|
|
15017
|
-
|
|
15018
|
-
regular_hours?: number;
|
|
15019
|
-
start_time?: string;
|
|
15020
|
-
travel_cost?: number | null;
|
|
15021
|
-
travel_distance_km?: number | null;
|
|
15022
|
-
type: string;
|
|
15583
|
+
overtime?: number;
|
|
15584
|
+
undertime?: number;
|
|
15023
15585
|
updated_at?: string;
|
|
15024
15586
|
};
|
|
15025
15587
|
Update: {
|
|
15026
15588
|
created_at?: string;
|
|
15027
15589
|
employee_id?: string;
|
|
15028
|
-
|
|
15590
|
+
entry_date?: string;
|
|
15591
|
+
hours?: number;
|
|
15029
15592
|
id?: string;
|
|
15030
15593
|
notes?: string | null;
|
|
15031
|
-
|
|
15032
|
-
|
|
15033
|
-
regular_hours?: number;
|
|
15034
|
-
start_time?: string;
|
|
15035
|
-
travel_cost?: number | null;
|
|
15036
|
-
travel_distance_km?: number | null;
|
|
15037
|
-
type?: string;
|
|
15594
|
+
overtime?: number;
|
|
15595
|
+
undertime?: number;
|
|
15038
15596
|
updated_at?: string;
|
|
15039
15597
|
};
|
|
15598
|
+
Relationships: [];
|
|
15599
|
+
};
|
|
15600
|
+
time_log_week_approvals: {
|
|
15601
|
+
Row: {
|
|
15602
|
+
approved_at: string | null;
|
|
15603
|
+
approved_by: string | null;
|
|
15604
|
+
created_at: string;
|
|
15605
|
+
employee_id: string;
|
|
15606
|
+
id: string;
|
|
15607
|
+
locked: boolean;
|
|
15608
|
+
notes: string | null;
|
|
15609
|
+
status: string;
|
|
15610
|
+
submitted_at: string | null;
|
|
15611
|
+
updated_at: string;
|
|
15612
|
+
week_start: string;
|
|
15613
|
+
};
|
|
15614
|
+
Insert: {
|
|
15615
|
+
approved_at?: string | null;
|
|
15616
|
+
approved_by?: string | null;
|
|
15617
|
+
created_at?: string;
|
|
15618
|
+
employee_id: string;
|
|
15619
|
+
id?: string;
|
|
15620
|
+
locked?: boolean;
|
|
15621
|
+
notes?: string | null;
|
|
15622
|
+
status?: string;
|
|
15623
|
+
submitted_at?: string | null;
|
|
15624
|
+
updated_at?: string;
|
|
15625
|
+
week_start: string;
|
|
15626
|
+
};
|
|
15627
|
+
Update: {
|
|
15628
|
+
approved_at?: string | null;
|
|
15629
|
+
approved_by?: string | null;
|
|
15630
|
+
created_at?: string;
|
|
15631
|
+
employee_id?: string;
|
|
15632
|
+
id?: string;
|
|
15633
|
+
locked?: boolean;
|
|
15634
|
+
notes?: string | null;
|
|
15635
|
+
status?: string;
|
|
15636
|
+
submitted_at?: string | null;
|
|
15637
|
+
updated_at?: string;
|
|
15638
|
+
week_start?: string;
|
|
15639
|
+
};
|
|
15640
|
+
Relationships: [
|
|
15641
|
+
{
|
|
15642
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
15643
|
+
columns: ["employee_id"];
|
|
15644
|
+
isOneToOne: false;
|
|
15645
|
+
referencedRelation: "profiles";
|
|
15646
|
+
referencedColumns: ["id"];
|
|
15647
|
+
}
|
|
15648
|
+
];
|
|
15649
|
+
};
|
|
15650
|
+
time_logs: {
|
|
15651
|
+
Row: {
|
|
15652
|
+
auto_stop_reason: string | null;
|
|
15653
|
+
auto_stopped: boolean;
|
|
15654
|
+
created_at: string;
|
|
15655
|
+
current_latitude: number | null;
|
|
15656
|
+
current_longitude: number | null;
|
|
15657
|
+
current_position_updated_at: string | null;
|
|
15658
|
+
employee_id: string;
|
|
15659
|
+
end_latitude: number | null;
|
|
15660
|
+
end_longitude: number | null;
|
|
15661
|
+
end_time: string | null;
|
|
15662
|
+
eta_distance_km: number | null;
|
|
15663
|
+
eta_minutes: number | null;
|
|
15664
|
+
eta_updated_at: string | null;
|
|
15665
|
+
hour_category: string | null;
|
|
15666
|
+
id: string;
|
|
15667
|
+
last_reminder_at: string | null;
|
|
15668
|
+
notes: string | null;
|
|
15669
|
+
overtime_hours: number;
|
|
15670
|
+
overtime_type: string | null;
|
|
15671
|
+
regular_hours: number;
|
|
15672
|
+
reminder_count: number;
|
|
15673
|
+
requires_review: boolean;
|
|
15674
|
+
start_latitude: number | null;
|
|
15675
|
+
start_longitude: number | null;
|
|
15676
|
+
start_time: string;
|
|
15677
|
+
travel_cost: number | null;
|
|
15678
|
+
travel_distance_km: number | null;
|
|
15679
|
+
travel_duration_min: number | null;
|
|
15680
|
+
travel_time_minutes: number | null;
|
|
15681
|
+
type: string;
|
|
15682
|
+
updated_at: string;
|
|
15683
|
+
work_order_id: string | null;
|
|
15684
|
+
};
|
|
15685
|
+
Insert: {
|
|
15686
|
+
auto_stop_reason?: string | null;
|
|
15687
|
+
auto_stopped?: boolean;
|
|
15688
|
+
created_at?: string;
|
|
15689
|
+
current_latitude?: number | null;
|
|
15690
|
+
current_longitude?: number | null;
|
|
15691
|
+
current_position_updated_at?: string | null;
|
|
15692
|
+
employee_id: string;
|
|
15693
|
+
end_latitude?: number | null;
|
|
15694
|
+
end_longitude?: number | null;
|
|
15695
|
+
end_time?: string | null;
|
|
15696
|
+
eta_distance_km?: number | null;
|
|
15697
|
+
eta_minutes?: number | null;
|
|
15698
|
+
eta_updated_at?: string | null;
|
|
15699
|
+
hour_category?: string | null;
|
|
15700
|
+
id?: string;
|
|
15701
|
+
last_reminder_at?: string | null;
|
|
15702
|
+
notes?: string | null;
|
|
15703
|
+
overtime_hours?: number;
|
|
15704
|
+
overtime_type?: string | null;
|
|
15705
|
+
regular_hours?: number;
|
|
15706
|
+
reminder_count?: number;
|
|
15707
|
+
requires_review?: boolean;
|
|
15708
|
+
start_latitude?: number | null;
|
|
15709
|
+
start_longitude?: number | null;
|
|
15710
|
+
start_time?: string;
|
|
15711
|
+
travel_cost?: number | null;
|
|
15712
|
+
travel_distance_km?: number | null;
|
|
15713
|
+
travel_duration_min?: number | null;
|
|
15714
|
+
travel_time_minutes?: number | null;
|
|
15715
|
+
type: string;
|
|
15716
|
+
updated_at?: string;
|
|
15717
|
+
work_order_id?: string | null;
|
|
15718
|
+
};
|
|
15719
|
+
Update: {
|
|
15720
|
+
auto_stop_reason?: string | null;
|
|
15721
|
+
auto_stopped?: boolean;
|
|
15722
|
+
created_at?: string;
|
|
15723
|
+
current_latitude?: number | null;
|
|
15724
|
+
current_longitude?: number | null;
|
|
15725
|
+
current_position_updated_at?: string | null;
|
|
15726
|
+
employee_id?: string;
|
|
15727
|
+
end_latitude?: number | null;
|
|
15728
|
+
end_longitude?: number | null;
|
|
15729
|
+
end_time?: string | null;
|
|
15730
|
+
eta_distance_km?: number | null;
|
|
15731
|
+
eta_minutes?: number | null;
|
|
15732
|
+
eta_updated_at?: string | null;
|
|
15733
|
+
hour_category?: string | null;
|
|
15734
|
+
id?: string;
|
|
15735
|
+
last_reminder_at?: string | null;
|
|
15736
|
+
notes?: string | null;
|
|
15737
|
+
overtime_hours?: number;
|
|
15738
|
+
overtime_type?: string | null;
|
|
15739
|
+
regular_hours?: number;
|
|
15740
|
+
reminder_count?: number;
|
|
15741
|
+
requires_review?: boolean;
|
|
15742
|
+
start_latitude?: number | null;
|
|
15743
|
+
start_longitude?: number | null;
|
|
15744
|
+
start_time?: string;
|
|
15745
|
+
travel_cost?: number | null;
|
|
15746
|
+
travel_distance_km?: number | null;
|
|
15747
|
+
travel_duration_min?: number | null;
|
|
15748
|
+
travel_time_minutes?: number | null;
|
|
15749
|
+
type?: string;
|
|
15750
|
+
updated_at?: string;
|
|
15751
|
+
work_order_id?: string | null;
|
|
15752
|
+
};
|
|
15040
15753
|
Relationships: [
|
|
15041
15754
|
{
|
|
15042
15755
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
15043
15756
|
columns: ["employee_id"];
|
|
15044
15757
|
isOneToOne: false;
|
|
15045
|
-
referencedRelation: "
|
|
15758
|
+
referencedRelation: "profiles";
|
|
15759
|
+
referencedColumns: ["id"];
|
|
15760
|
+
},
|
|
15761
|
+
{
|
|
15762
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
15763
|
+
columns: ["work_order_id"];
|
|
15764
|
+
isOneToOne: false;
|
|
15765
|
+
referencedRelation: "work_orders";
|
|
15046
15766
|
referencedColumns: ["id"];
|
|
15047
15767
|
}
|
|
15048
15768
|
];
|
|
@@ -15083,7 +15803,7 @@ export type Database = {
|
|
|
15083
15803
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
15084
15804
|
columns: ["employee_id"];
|
|
15085
15805
|
isOneToOne: false;
|
|
15086
|
-
referencedRelation: "
|
|
15806
|
+
referencedRelation: "profiles";
|
|
15087
15807
|
referencedColumns: ["id"];
|
|
15088
15808
|
}
|
|
15089
15809
|
];
|
|
@@ -15396,6 +16116,39 @@ export type Database = {
|
|
|
15396
16116
|
};
|
|
15397
16117
|
Relationships: [];
|
|
15398
16118
|
};
|
|
16119
|
+
twinfield_cron_locks: {
|
|
16120
|
+
Row: {
|
|
16121
|
+
created_at: string;
|
|
16122
|
+
heartbeat_at: string;
|
|
16123
|
+
job_name: string;
|
|
16124
|
+
last_error: string | null;
|
|
16125
|
+
last_finished_at: string | null;
|
|
16126
|
+
locked_at: string;
|
|
16127
|
+
run_id: string;
|
|
16128
|
+
updated_at: string;
|
|
16129
|
+
};
|
|
16130
|
+
Insert: {
|
|
16131
|
+
created_at?: string;
|
|
16132
|
+
heartbeat_at?: string;
|
|
16133
|
+
job_name: string;
|
|
16134
|
+
last_error?: string | null;
|
|
16135
|
+
last_finished_at?: string | null;
|
|
16136
|
+
locked_at?: string;
|
|
16137
|
+
run_id?: string;
|
|
16138
|
+
updated_at?: string;
|
|
16139
|
+
};
|
|
16140
|
+
Update: {
|
|
16141
|
+
created_at?: string;
|
|
16142
|
+
heartbeat_at?: string;
|
|
16143
|
+
job_name?: string;
|
|
16144
|
+
last_error?: string | null;
|
|
16145
|
+
last_finished_at?: string | null;
|
|
16146
|
+
locked_at?: string;
|
|
16147
|
+
run_id?: string;
|
|
16148
|
+
updated_at?: string;
|
|
16149
|
+
};
|
|
16150
|
+
Relationships: [];
|
|
16151
|
+
};
|
|
15399
16152
|
twinfield_customers: {
|
|
15400
16153
|
Row: {
|
|
15401
16154
|
address: string | null;
|
|
@@ -15658,6 +16411,8 @@ export type Database = {
|
|
|
15658
16411
|
};
|
|
15659
16412
|
twinfield_invoice_settings: {
|
|
15660
16413
|
Row: {
|
|
16414
|
+
auto_invoice_enabled: boolean;
|
|
16415
|
+
auto_invoice_trigger_statuses: string[];
|
|
15661
16416
|
created_at: string;
|
|
15662
16417
|
debtor_gl_account: string;
|
|
15663
16418
|
default_credit_invoice_type: string | null;
|
|
@@ -15678,6 +16433,8 @@ export type Database = {
|
|
|
15678
16433
|
vat_code_export: string | null;
|
|
15679
16434
|
};
|
|
15680
16435
|
Insert: {
|
|
16436
|
+
auto_invoice_enabled?: boolean;
|
|
16437
|
+
auto_invoice_trigger_statuses?: string[];
|
|
15681
16438
|
created_at?: string;
|
|
15682
16439
|
debtor_gl_account?: string;
|
|
15683
16440
|
default_credit_invoice_type?: string | null;
|
|
@@ -15698,6 +16455,8 @@ export type Database = {
|
|
|
15698
16455
|
vat_code_export?: string | null;
|
|
15699
16456
|
};
|
|
15700
16457
|
Update: {
|
|
16458
|
+
auto_invoice_enabled?: boolean;
|
|
16459
|
+
auto_invoice_trigger_statuses?: string[];
|
|
15701
16460
|
created_at?: string;
|
|
15702
16461
|
debtor_gl_account?: string;
|
|
15703
16462
|
default_credit_invoice_type?: string | null;
|
|
@@ -16000,6 +16759,7 @@ export type Database = {
|
|
|
16000
16759
|
twinfield_push_queue: {
|
|
16001
16760
|
Row: {
|
|
16002
16761
|
action: string;
|
|
16762
|
+
attempt_started_at: string | null;
|
|
16003
16763
|
attempts: number;
|
|
16004
16764
|
connection_id: string | null;
|
|
16005
16765
|
created_at: string;
|
|
@@ -16016,6 +16776,7 @@ export type Database = {
|
|
|
16016
16776
|
};
|
|
16017
16777
|
Insert: {
|
|
16018
16778
|
action?: string;
|
|
16779
|
+
attempt_started_at?: string | null;
|
|
16019
16780
|
attempts?: number;
|
|
16020
16781
|
connection_id?: string | null;
|
|
16021
16782
|
created_at?: string;
|
|
@@ -16032,6 +16793,7 @@ export type Database = {
|
|
|
16032
16793
|
};
|
|
16033
16794
|
Update: {
|
|
16034
16795
|
action?: string;
|
|
16796
|
+
attempt_started_at?: string | null;
|
|
16035
16797
|
attempts?: number;
|
|
16036
16798
|
connection_id?: string | null;
|
|
16037
16799
|
created_at?: string;
|
|
@@ -16234,15 +16996,7 @@ export type Database = {
|
|
|
16234
16996
|
workday_end?: string | null;
|
|
16235
16997
|
workday_start?: string | null;
|
|
16236
16998
|
};
|
|
16237
|
-
Relationships: [
|
|
16238
|
-
{
|
|
16239
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
16240
|
-
columns: ["monteur_id"];
|
|
16241
|
-
isOneToOne: true;
|
|
16242
|
-
referencedRelation: "monteurs";
|
|
16243
|
-
referencedColumns: ["id"];
|
|
16244
|
-
}
|
|
16245
|
-
];
|
|
16999
|
+
Relationships: [];
|
|
16246
17000
|
};
|
|
16247
17001
|
uren_entries: {
|
|
16248
17002
|
Row: {
|
|
@@ -16288,13 +17042,6 @@ export type Database = {
|
|
|
16288
17042
|
werkbon_id?: string | null;
|
|
16289
17043
|
};
|
|
16290
17044
|
Relationships: [
|
|
16291
|
-
{
|
|
16292
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16293
|
-
columns: ["monteur_id"];
|
|
16294
|
-
isOneToOne: false;
|
|
16295
|
-
referencedRelation: "monteurs";
|
|
16296
|
-
referencedColumns: ["id"];
|
|
16297
|
-
},
|
|
16298
17045
|
{
|
|
16299
17046
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16300
17047
|
columns: ["werkbon_id"];
|
|
@@ -16776,15 +17523,37 @@ export type Database = {
|
|
|
16776
17523
|
submitted_at?: string | null;
|
|
16777
17524
|
updated_at?: string;
|
|
16778
17525
|
};
|
|
16779
|
-
Relationships: [
|
|
16780
|
-
|
|
16781
|
-
|
|
16782
|
-
|
|
16783
|
-
|
|
16784
|
-
|
|
16785
|
-
|
|
16786
|
-
|
|
16787
|
-
|
|
17526
|
+
Relationships: [];
|
|
17527
|
+
};
|
|
17528
|
+
user_module_permissions: {
|
|
17529
|
+
Row: {
|
|
17530
|
+
created_at: string;
|
|
17531
|
+
feature_id: string;
|
|
17532
|
+
id: string;
|
|
17533
|
+
module_id: string;
|
|
17534
|
+
permission: string;
|
|
17535
|
+
updated_at: string;
|
|
17536
|
+
user_id: string;
|
|
17537
|
+
};
|
|
17538
|
+
Insert: {
|
|
17539
|
+
created_at?: string;
|
|
17540
|
+
feature_id?: string;
|
|
17541
|
+
id?: string;
|
|
17542
|
+
module_id: string;
|
|
17543
|
+
permission: string;
|
|
17544
|
+
updated_at?: string;
|
|
17545
|
+
user_id: string;
|
|
17546
|
+
};
|
|
17547
|
+
Update: {
|
|
17548
|
+
created_at?: string;
|
|
17549
|
+
feature_id?: string;
|
|
17550
|
+
id?: string;
|
|
17551
|
+
module_id?: string;
|
|
17552
|
+
permission?: string;
|
|
17553
|
+
updated_at?: string;
|
|
17554
|
+
user_id?: string;
|
|
17555
|
+
};
|
|
17556
|
+
Relationships: [];
|
|
16788
17557
|
};
|
|
16789
17558
|
user_roles: {
|
|
16790
17559
|
Row: {
|
|
@@ -16815,6 +17584,53 @@ export type Database = {
|
|
|
16815
17584
|
}
|
|
16816
17585
|
];
|
|
16817
17586
|
};
|
|
17587
|
+
van_inventories: {
|
|
17588
|
+
Row: {
|
|
17589
|
+
barcode: string | null;
|
|
17590
|
+
created_at: string;
|
|
17591
|
+
id: string;
|
|
17592
|
+
monteur_id: string | null;
|
|
17593
|
+
price_per_unit: number;
|
|
17594
|
+
product_name: string;
|
|
17595
|
+
quantity_current: number;
|
|
17596
|
+
quantity_min: number;
|
|
17597
|
+
unit: string;
|
|
17598
|
+
updated_at: string;
|
|
17599
|
+
};
|
|
17600
|
+
Insert: {
|
|
17601
|
+
barcode?: string | null;
|
|
17602
|
+
created_at?: string;
|
|
17603
|
+
id?: string;
|
|
17604
|
+
monteur_id?: string | null;
|
|
17605
|
+
price_per_unit?: number;
|
|
17606
|
+
product_name: string;
|
|
17607
|
+
quantity_current?: number;
|
|
17608
|
+
quantity_min?: number;
|
|
17609
|
+
unit?: string;
|
|
17610
|
+
updated_at?: string;
|
|
17611
|
+
};
|
|
17612
|
+
Update: {
|
|
17613
|
+
barcode?: string | null;
|
|
17614
|
+
created_at?: string;
|
|
17615
|
+
id?: string;
|
|
17616
|
+
monteur_id?: string | null;
|
|
17617
|
+
price_per_unit?: number;
|
|
17618
|
+
product_name?: string;
|
|
17619
|
+
quantity_current?: number;
|
|
17620
|
+
quantity_min?: number;
|
|
17621
|
+
unit?: string;
|
|
17622
|
+
updated_at?: string;
|
|
17623
|
+
};
|
|
17624
|
+
Relationships: [
|
|
17625
|
+
{
|
|
17626
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
17627
|
+
columns: ["monteur_id"];
|
|
17628
|
+
isOneToOne: false;
|
|
17629
|
+
referencedRelation: "profiles";
|
|
17630
|
+
referencedColumns: ["id"];
|
|
17631
|
+
}
|
|
17632
|
+
];
|
|
17633
|
+
};
|
|
16818
17634
|
voorraad_custom_fields: {
|
|
16819
17635
|
Row: {
|
|
16820
17636
|
created_at: string;
|
|
@@ -17788,7 +18604,7 @@ export type Database = {
|
|
|
17788
18604
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
17789
18605
|
columns: ["monteur_id"];
|
|
17790
18606
|
isOneToOne: false;
|
|
17791
|
-
referencedRelation: "
|
|
18607
|
+
referencedRelation: "profiles";
|
|
17792
18608
|
referencedColumns: ["id"];
|
|
17793
18609
|
},
|
|
17794
18610
|
{
|
|
@@ -17800,6 +18616,63 @@ export type Database = {
|
|
|
17800
18616
|
}
|
|
17801
18617
|
];
|
|
17802
18618
|
};
|
|
18619
|
+
work_order_photos: {
|
|
18620
|
+
Row: {
|
|
18621
|
+
ai_caption: string | null;
|
|
18622
|
+
ai_categorized_at: string | null;
|
|
18623
|
+
ai_labels: Json | null;
|
|
18624
|
+
caption: string | null;
|
|
18625
|
+
created_at: string;
|
|
18626
|
+
id: string;
|
|
18627
|
+
monteur_id: string | null;
|
|
18628
|
+
photo_type: string;
|
|
18629
|
+
storage_path: string;
|
|
18630
|
+
updated_at: string;
|
|
18631
|
+
work_order_id: string;
|
|
18632
|
+
};
|
|
18633
|
+
Insert: {
|
|
18634
|
+
ai_caption?: string | null;
|
|
18635
|
+
ai_categorized_at?: string | null;
|
|
18636
|
+
ai_labels?: Json | null;
|
|
18637
|
+
caption?: string | null;
|
|
18638
|
+
created_at?: string;
|
|
18639
|
+
id?: string;
|
|
18640
|
+
monteur_id?: string | null;
|
|
18641
|
+
photo_type?: string;
|
|
18642
|
+
storage_path: string;
|
|
18643
|
+
updated_at?: string;
|
|
18644
|
+
work_order_id: string;
|
|
18645
|
+
};
|
|
18646
|
+
Update: {
|
|
18647
|
+
ai_caption?: string | null;
|
|
18648
|
+
ai_categorized_at?: string | null;
|
|
18649
|
+
ai_labels?: Json | null;
|
|
18650
|
+
caption?: string | null;
|
|
18651
|
+
created_at?: string;
|
|
18652
|
+
id?: string;
|
|
18653
|
+
monteur_id?: string | null;
|
|
18654
|
+
photo_type?: string;
|
|
18655
|
+
storage_path?: string;
|
|
18656
|
+
updated_at?: string;
|
|
18657
|
+
work_order_id?: string;
|
|
18658
|
+
};
|
|
18659
|
+
Relationships: [
|
|
18660
|
+
{
|
|
18661
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
18662
|
+
columns: ["monteur_id"];
|
|
18663
|
+
isOneToOne: false;
|
|
18664
|
+
referencedRelation: "profiles";
|
|
18665
|
+
referencedColumns: ["id"];
|
|
18666
|
+
},
|
|
18667
|
+
{
|
|
18668
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
18669
|
+
columns: ["work_order_id"];
|
|
18670
|
+
isOneToOne: false;
|
|
18671
|
+
referencedRelation: "work_orders";
|
|
18672
|
+
referencedColumns: ["id"];
|
|
18673
|
+
}
|
|
18674
|
+
];
|
|
18675
|
+
};
|
|
17803
18676
|
work_orders: {
|
|
17804
18677
|
Row: {
|
|
17805
18678
|
assigned_to: string | null;
|
|
@@ -17831,7 +18704,6 @@ export type Database = {
|
|
|
17831
18704
|
scheduled_end_time: string | null;
|
|
17832
18705
|
scheduled_start_time: string | null;
|
|
17833
18706
|
status: string;
|
|
17834
|
-
tenant_id: string;
|
|
17835
18707
|
total_hours_worked: number | null;
|
|
17836
18708
|
total_price: number | null;
|
|
17837
18709
|
travel_time_minutes: number | null;
|
|
@@ -17869,7 +18741,6 @@ export type Database = {
|
|
|
17869
18741
|
scheduled_end_time?: string | null;
|
|
17870
18742
|
scheduled_start_time?: string | null;
|
|
17871
18743
|
status?: string;
|
|
17872
|
-
tenant_id: string;
|
|
17873
18744
|
total_hours_worked?: number | null;
|
|
17874
18745
|
total_price?: number | null;
|
|
17875
18746
|
travel_time_minutes?: number | null;
|
|
@@ -17907,7 +18778,6 @@ export type Database = {
|
|
|
17907
18778
|
scheduled_end_time?: string | null;
|
|
17908
18779
|
scheduled_start_time?: string | null;
|
|
17909
18780
|
status?: string;
|
|
17910
|
-
tenant_id?: string;
|
|
17911
18781
|
total_hours_worked?: number | null;
|
|
17912
18782
|
total_price?: number | null;
|
|
17913
18783
|
travel_time_minutes?: number | null;
|
|
@@ -17922,13 +18792,6 @@ export type Database = {
|
|
|
17922
18792
|
isOneToOne: false;
|
|
17923
18793
|
referencedRelation: "work_orders";
|
|
17924
18794
|
referencedColumns: ["id"];
|
|
17925
|
-
},
|
|
17926
|
-
{
|
|
17927
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
17928
|
-
columns: ["tenant_id"];
|
|
17929
|
-
isOneToOne: false;
|
|
17930
|
-
referencedRelation: "tenants";
|
|
17931
|
-
referencedColumns: ["id"];
|
|
17932
18795
|
}
|
|
17933
18796
|
];
|
|
17934
18797
|
};
|
|
@@ -18661,6 +19524,10 @@ export type Database = {
|
|
|
18661
19524
|
processed_items: number;
|
|
18662
19525
|
}[];
|
|
18663
19526
|
};
|
|
19527
|
+
backfill_order_auto_invoice_queue: {
|
|
19528
|
+
Args: never;
|
|
19529
|
+
Returns: number;
|
|
19530
|
+
};
|
|
18664
19531
|
calculate_layer_stock: {
|
|
18665
19532
|
Args: {
|
|
18666
19533
|
p_product_id: string;
|
|
@@ -18673,6 +19540,10 @@ export type Database = {
|
|
|
18673
19540
|
};
|
|
18674
19541
|
Returns: number;
|
|
18675
19542
|
};
|
|
19543
|
+
can_manage_hours: {
|
|
19544
|
+
Args: never;
|
|
19545
|
+
Returns: boolean;
|
|
19546
|
+
};
|
|
18676
19547
|
check_offer_product_available_stock: {
|
|
18677
19548
|
Args: {
|
|
18678
19549
|
p_campaign_product_id: string;
|
|
@@ -18695,6 +19566,46 @@ export type Database = {
|
|
|
18695
19566
|
};
|
|
18696
19567
|
Returns: Json;
|
|
18697
19568
|
};
|
|
19569
|
+
claim_cloud_print_jobs: {
|
|
19570
|
+
Args: {
|
|
19571
|
+
_max?: number;
|
|
19572
|
+
};
|
|
19573
|
+
Returns: {
|
|
19574
|
+
agent_id: string | null;
|
|
19575
|
+
bron_job_id: string | null;
|
|
19576
|
+
created_at: string;
|
|
19577
|
+
documentnaam: string;
|
|
19578
|
+
documenttype: Database["public"]["Enums"]["doc_layout_type"];
|
|
19579
|
+
extern_job_id: string | null;
|
|
19580
|
+
foutmelding: string | null;
|
|
19581
|
+
gebruiker_id: string | null;
|
|
19582
|
+
gebruiker_naam: string;
|
|
19583
|
+
gestart_op: string | null;
|
|
19584
|
+
id: string;
|
|
19585
|
+
idempotentie_sleutel: string | null;
|
|
19586
|
+
is_herprint: boolean;
|
|
19587
|
+
kopieen: number;
|
|
19588
|
+
layout_id: string | null;
|
|
19589
|
+
opgepakt_op: string | null;
|
|
19590
|
+
paginas: number;
|
|
19591
|
+
payload: Json;
|
|
19592
|
+
pdf_base64: string | null;
|
|
19593
|
+
pdf_url: string | null;
|
|
19594
|
+
pogingen: number;
|
|
19595
|
+
printer_id: string | null;
|
|
19596
|
+
render_html: string | null;
|
|
19597
|
+
status: Database["public"]["Enums"]["print_job_status"];
|
|
19598
|
+
updated_at: string;
|
|
19599
|
+
volgende_poging: string | null;
|
|
19600
|
+
voltooid_op: string | null;
|
|
19601
|
+
}[];
|
|
19602
|
+
SetofOptions: {
|
|
19603
|
+
from: "*";
|
|
19604
|
+
to: "print_jobs";
|
|
19605
|
+
isOneToOne: false;
|
|
19606
|
+
isSetofReturn: true;
|
|
19607
|
+
};
|
|
19608
|
+
};
|
|
18698
19609
|
claim_floriday_stock_queue: {
|
|
18699
19610
|
Args: {
|
|
18700
19611
|
p_limit?: number;
|
|
@@ -18785,22 +19696,27 @@ export type Database = {
|
|
|
18785
19696
|
created_at: string;
|
|
18786
19697
|
documentnaam: string;
|
|
18787
19698
|
documenttype: Database["public"]["Enums"]["doc_layout_type"];
|
|
19699
|
+
extern_job_id: string | null;
|
|
18788
19700
|
foutmelding: string | null;
|
|
18789
19701
|
gebruiker_id: string | null;
|
|
18790
19702
|
gebruiker_naam: string;
|
|
18791
19703
|
gestart_op: string | null;
|
|
18792
19704
|
id: string;
|
|
19705
|
+
idempotentie_sleutel: string | null;
|
|
18793
19706
|
is_herprint: boolean;
|
|
18794
19707
|
kopieen: number;
|
|
18795
19708
|
layout_id: string | null;
|
|
18796
19709
|
opgepakt_op: string | null;
|
|
18797
19710
|
paginas: number;
|
|
18798
19711
|
payload: Json;
|
|
19712
|
+
pdf_base64: string | null;
|
|
19713
|
+
pdf_url: string | null;
|
|
18799
19714
|
pogingen: number;
|
|
18800
19715
|
printer_id: string | null;
|
|
18801
19716
|
render_html: string | null;
|
|
18802
19717
|
status: Database["public"]["Enums"]["print_job_status"];
|
|
18803
19718
|
updated_at: string;
|
|
19719
|
+
volgende_poging: string | null;
|
|
18804
19720
|
voltooid_op: string | null;
|
|
18805
19721
|
}[];
|
|
18806
19722
|
SetofOptions: {
|
|
@@ -18817,6 +19733,7 @@ export type Database = {
|
|
|
18817
19733
|
};
|
|
18818
19734
|
Returns: {
|
|
18819
19735
|
action: string;
|
|
19736
|
+
attempt_started_at: string | null;
|
|
18820
19737
|
attempts: number;
|
|
18821
19738
|
connection_id: string | null;
|
|
18822
19739
|
created_at: string;
|
|
@@ -18846,6 +19763,10 @@ export type Database = {
|
|
|
18846
19763
|
Args: never;
|
|
18847
19764
|
Returns: undefined;
|
|
18848
19765
|
};
|
|
19766
|
+
cleanup_voorraad_module_history: {
|
|
19767
|
+
Args: never;
|
|
19768
|
+
Returns: undefined;
|
|
19769
|
+
};
|
|
18849
19770
|
complete_floriday_stock_queue: {
|
|
18850
19771
|
Args: {
|
|
18851
19772
|
p_attempt_id?: string;
|
|
@@ -18900,6 +19821,30 @@ export type Database = {
|
|
|
18900
19821
|
agent_naam: string;
|
|
18901
19822
|
}[];
|
|
18902
19823
|
};
|
|
19824
|
+
consume_van_inventory: {
|
|
19825
|
+
Args: {
|
|
19826
|
+
p_inventory_id: string;
|
|
19827
|
+
p_quantity: number;
|
|
19828
|
+
};
|
|
19829
|
+
Returns: {
|
|
19830
|
+
barcode: string | null;
|
|
19831
|
+
created_at: string;
|
|
19832
|
+
id: string;
|
|
19833
|
+
monteur_id: string | null;
|
|
19834
|
+
price_per_unit: number;
|
|
19835
|
+
product_name: string;
|
|
19836
|
+
quantity_current: number;
|
|
19837
|
+
quantity_min: number;
|
|
19838
|
+
unit: string;
|
|
19839
|
+
updated_at: string;
|
|
19840
|
+
};
|
|
19841
|
+
SetofOptions: {
|
|
19842
|
+
from: "*";
|
|
19843
|
+
to: "van_inventories";
|
|
19844
|
+
isOneToOne: true;
|
|
19845
|
+
isSetofReturn: false;
|
|
19846
|
+
};
|
|
19847
|
+
};
|
|
18903
19848
|
control_get_todays_carts: {
|
|
18904
19849
|
Args: never;
|
|
18905
19850
|
Returns: {
|
|
@@ -18967,6 +19912,20 @@ export type Database = {
|
|
|
18967
19912
|
};
|
|
18968
19913
|
Returns: Json;
|
|
18969
19914
|
};
|
|
19915
|
+
effective_module_permission: {
|
|
19916
|
+
Args: {
|
|
19917
|
+
_module_id: string;
|
|
19918
|
+
_user_id: string;
|
|
19919
|
+
};
|
|
19920
|
+
Returns: string;
|
|
19921
|
+
} | {
|
|
19922
|
+
Args: {
|
|
19923
|
+
_feature_id?: string;
|
|
19924
|
+
_module_id: string;
|
|
19925
|
+
_user_id: string;
|
|
19926
|
+
};
|
|
19927
|
+
Returns: string;
|
|
19928
|
+
};
|
|
18970
19929
|
email_auth_decrypt: {
|
|
18971
19930
|
Args: {
|
|
18972
19931
|
cipher: string;
|
|
@@ -19317,12 +20276,6 @@ export type Database = {
|
|
|
19317
20276
|
Args: never;
|
|
19318
20277
|
Returns: string;
|
|
19319
20278
|
};
|
|
19320
|
-
get_work_order_tenant_id: {
|
|
19321
|
-
Args: {
|
|
19322
|
-
wo_id: string;
|
|
19323
|
-
};
|
|
19324
|
-
Returns: string;
|
|
19325
|
-
};
|
|
19326
20279
|
has_module_permission: {
|
|
19327
20280
|
Args: {
|
|
19328
20281
|
_min: string;
|
|
@@ -19356,6 +20309,13 @@ export type Database = {
|
|
|
19356
20309
|
};
|
|
19357
20310
|
Returns: boolean;
|
|
19358
20311
|
};
|
|
20312
|
+
is_time_log_week_locked: {
|
|
20313
|
+
Args: {
|
|
20314
|
+
p_employee_id: string;
|
|
20315
|
+
p_start_time: string;
|
|
20316
|
+
};
|
|
20317
|
+
Returns: boolean;
|
|
20318
|
+
};
|
|
19359
20319
|
is_user_admin: {
|
|
19360
20320
|
Args: never;
|
|
19361
20321
|
Returns: boolean;
|
|
@@ -19370,13 +20330,14 @@ export type Database = {
|
|
|
19370
20330
|
};
|
|
19371
20331
|
Returns: boolean;
|
|
19372
20332
|
};
|
|
19373
|
-
|
|
20333
|
+
list_medewerkers: {
|
|
19374
20334
|
Args: never;
|
|
19375
20335
|
Returns: {
|
|
19376
20336
|
avatar_url: string;
|
|
19377
20337
|
display_name: string;
|
|
19378
20338
|
email: string;
|
|
19379
20339
|
id: string;
|
|
20340
|
+
roles: string[];
|
|
19380
20341
|
}[];
|
|
19381
20342
|
};
|
|
19382
20343
|
list_my_planning_items: {
|
|
@@ -19770,6 +20731,51 @@ export type Database = {
|
|
|
19770
20731
|
isSetofReturn: false;
|
|
19771
20732
|
};
|
|
19772
20733
|
};
|
|
20734
|
+
logistics_floriday_claim_pushes: {
|
|
20735
|
+
Args: {
|
|
20736
|
+
_lease_seconds?: number;
|
|
20737
|
+
_limit?: number;
|
|
20738
|
+
_worker?: string;
|
|
20739
|
+
};
|
|
20740
|
+
Returns: {
|
|
20741
|
+
attempts: number;
|
|
20742
|
+
fulfillment_order_id: string;
|
|
20743
|
+
id: string;
|
|
20744
|
+
last_sent_hash: string;
|
|
20745
|
+
order_ref: string;
|
|
20746
|
+
payload: Json;
|
|
20747
|
+
payload_hash: string;
|
|
20748
|
+
revision: number;
|
|
20749
|
+
}[];
|
|
20750
|
+
};
|
|
20751
|
+
logistics_floriday_finish_push: {
|
|
20752
|
+
Args: {
|
|
20753
|
+
_error?: string;
|
|
20754
|
+
_fulfillment_order_id?: string;
|
|
20755
|
+
_id: string;
|
|
20756
|
+
_max_age_hours?: number;
|
|
20757
|
+
_max_attempts?: number;
|
|
20758
|
+
_ok: boolean;
|
|
20759
|
+
_permanent?: boolean;
|
|
20760
|
+
_revision: number;
|
|
20761
|
+
_sent_hash?: string;
|
|
20762
|
+
};
|
|
20763
|
+
Returns: string;
|
|
20764
|
+
};
|
|
20765
|
+
logistics_floriday_prune_pushes: {
|
|
20766
|
+
Args: {
|
|
20767
|
+
_days?: number;
|
|
20768
|
+
};
|
|
20769
|
+
Returns: number;
|
|
20770
|
+
};
|
|
20771
|
+
logistics_floriday_queue_push: {
|
|
20772
|
+
Args: {
|
|
20773
|
+
_order_ref: string;
|
|
20774
|
+
_payload?: Json;
|
|
20775
|
+
_payload_hash?: string;
|
|
20776
|
+
};
|
|
20777
|
+
Returns: string;
|
|
20778
|
+
};
|
|
19773
20779
|
logistics_live_carriers: {
|
|
19774
20780
|
Args: {
|
|
19775
20781
|
p_order_ref: string;
|
|
@@ -19822,6 +20828,65 @@ export type Database = {
|
|
|
19822
20828
|
};
|
|
19823
20829
|
Returns: number;
|
|
19824
20830
|
};
|
|
20831
|
+
logistics_plan_claim: {
|
|
20832
|
+
Args: {
|
|
20833
|
+
p_limit?: number;
|
|
20834
|
+
};
|
|
20835
|
+
Returns: {
|
|
20836
|
+
attempts: number;
|
|
20837
|
+
id: string;
|
|
20838
|
+
order_id: string;
|
|
20839
|
+
}[];
|
|
20840
|
+
};
|
|
20841
|
+
logistics_plan_enqueue: {
|
|
20842
|
+
Args: {
|
|
20843
|
+
p_order_id: string;
|
|
20844
|
+
p_reason?: string;
|
|
20845
|
+
};
|
|
20846
|
+
Returns: undefined;
|
|
20847
|
+
};
|
|
20848
|
+
logistics_plan_ensure_event: {
|
|
20849
|
+
Args: {
|
|
20850
|
+
p_order_id: string;
|
|
20851
|
+
};
|
|
20852
|
+
Returns: boolean;
|
|
20853
|
+
};
|
|
20854
|
+
logistics_plan_finish: {
|
|
20855
|
+
Args: {
|
|
20856
|
+
p_error?: string;
|
|
20857
|
+
p_id: string;
|
|
20858
|
+
};
|
|
20859
|
+
Returns: undefined;
|
|
20860
|
+
};
|
|
20861
|
+
logistics_plan_impact_orders: {
|
|
20862
|
+
Args: {
|
|
20863
|
+
p_order_id: string;
|
|
20864
|
+
};
|
|
20865
|
+
Returns: {
|
|
20866
|
+
buffer_id: string;
|
|
20867
|
+
order_id: string;
|
|
20868
|
+
plan_date: string;
|
|
20869
|
+
}[];
|
|
20870
|
+
};
|
|
20871
|
+
logistics_plan_kick: {
|
|
20872
|
+
Args: never;
|
|
20873
|
+
Returns: undefined;
|
|
20874
|
+
};
|
|
20875
|
+
logistics_plan_prune: {
|
|
20876
|
+
Args: never;
|
|
20877
|
+
Returns: number;
|
|
20878
|
+
};
|
|
20879
|
+
logistics_plan_release_stale: {
|
|
20880
|
+
Args: never;
|
|
20881
|
+
Returns: number;
|
|
20882
|
+
};
|
|
20883
|
+
logistics_plan_setting: {
|
|
20884
|
+
Args: {
|
|
20885
|
+
p_default: number;
|
|
20886
|
+
p_key: string;
|
|
20887
|
+
};
|
|
20888
|
+
Returns: number;
|
|
20889
|
+
};
|
|
19825
20890
|
logistics_queue_capacity_email: {
|
|
19826
20891
|
Args: {
|
|
19827
20892
|
p_alert_id: string;
|
|
@@ -20060,6 +21125,14 @@ export type Database = {
|
|
|
20060
21125
|
};
|
|
20061
21126
|
Returns: undefined;
|
|
20062
21127
|
};
|
|
21128
|
+
my_module_permissions: {
|
|
21129
|
+
Args: never;
|
|
21130
|
+
Returns: {
|
|
21131
|
+
feature_id: string;
|
|
21132
|
+
module_id: string;
|
|
21133
|
+
permission: string;
|
|
21134
|
+
}[];
|
|
21135
|
+
};
|
|
20063
21136
|
next_manufacture_partij: {
|
|
20064
21137
|
Args: {
|
|
20065
21138
|
_tenant_id: string;
|
|
@@ -20110,6 +21183,13 @@ export type Database = {
|
|
|
20110
21183
|
};
|
|
20111
21184
|
Returns: boolean;
|
|
20112
21185
|
};
|
|
21186
|
+
opruim_print_historie: {
|
|
21187
|
+
Args: never;
|
|
21188
|
+
Returns: {
|
|
21189
|
+
ontdaan: number;
|
|
21190
|
+
verwijderd: number;
|
|
21191
|
+
}[];
|
|
21192
|
+
};
|
|
20113
21193
|
order_number_prefix: {
|
|
20114
21194
|
Args: {
|
|
20115
21195
|
p_custom_fields?: Json;
|
|
@@ -20117,6 +21197,15 @@ export type Database = {
|
|
|
20117
21197
|
};
|
|
20118
21198
|
Returns: string;
|
|
20119
21199
|
};
|
|
21200
|
+
pick_active_printers: {
|
|
21201
|
+
Args: never;
|
|
21202
|
+
Returns: {
|
|
21203
|
+
id: string;
|
|
21204
|
+
locatie: string;
|
|
21205
|
+
naam: string;
|
|
21206
|
+
online: boolean;
|
|
21207
|
+
}[];
|
|
21208
|
+
};
|
|
20120
21209
|
pick_claim_document: {
|
|
20121
21210
|
Args: {
|
|
20122
21211
|
_queue_item_id: string;
|
|
@@ -20303,6 +21392,52 @@ export type Database = {
|
|
|
20303
21392
|
};
|
|
20304
21393
|
Returns: undefined;
|
|
20305
21394
|
};
|
|
21395
|
+
pick_reset_print: {
|
|
21396
|
+
Args: {
|
|
21397
|
+
_queue_item_id: string;
|
|
21398
|
+
_session_id: string;
|
|
21399
|
+
};
|
|
21400
|
+
Returns: {
|
|
21401
|
+
announced_at: string;
|
|
21402
|
+
assigned_user_id: string | null;
|
|
21403
|
+
barcode: string | null;
|
|
21404
|
+
cancelled_at: string | null;
|
|
21405
|
+
cart_count: number;
|
|
21406
|
+
completed_at: string | null;
|
|
21407
|
+
country_code: string | null;
|
|
21408
|
+
created_at: string;
|
|
21409
|
+
customer_name: string | null;
|
|
21410
|
+
delivery_address: string | null;
|
|
21411
|
+
document_number: string | null;
|
|
21412
|
+
document_type_id: string | null;
|
|
21413
|
+
due_at: string | null;
|
|
21414
|
+
id: string;
|
|
21415
|
+
is_urgent: boolean;
|
|
21416
|
+
line_count: number;
|
|
21417
|
+
order_number: string | null;
|
|
21418
|
+
order_type: string | null;
|
|
21419
|
+
payload: Json;
|
|
21420
|
+
print_count: number;
|
|
21421
|
+
print_job_id: string | null;
|
|
21422
|
+
printed_at: string | null;
|
|
21423
|
+
printed_by: string | null;
|
|
21424
|
+
printer_id: string | null;
|
|
21425
|
+
priority: number;
|
|
21426
|
+
reference: string | null;
|
|
21427
|
+
route: string | null;
|
|
21428
|
+
screen_id: string | null;
|
|
21429
|
+
station_id: string | null;
|
|
21430
|
+
status_id: string | null;
|
|
21431
|
+
updated_at: string;
|
|
21432
|
+
warnings: Json;
|
|
21433
|
+
};
|
|
21434
|
+
SetofOptions: {
|
|
21435
|
+
from: "*";
|
|
21436
|
+
to: "pick_queue";
|
|
21437
|
+
isOneToOne: true;
|
|
21438
|
+
isSetofReturn: false;
|
|
21439
|
+
};
|
|
21440
|
+
};
|
|
20306
21441
|
pick_station_dashboard: {
|
|
20307
21442
|
Args: never;
|
|
20308
21443
|
Returns: {
|
|
@@ -20449,6 +21584,12 @@ export type Database = {
|
|
|
20449
21584
|
};
|
|
20450
21585
|
Returns: undefined;
|
|
20451
21586
|
};
|
|
21587
|
+
reset_stalled_floriday_stock_queue: {
|
|
21588
|
+
Args: {
|
|
21589
|
+
p_include_failed?: boolean;
|
|
21590
|
+
};
|
|
21591
|
+
Returns: number;
|
|
21592
|
+
};
|
|
20452
21593
|
resolve_group_allocation: {
|
|
20453
21594
|
Args: {
|
|
20454
21595
|
_needed: number;
|
|
@@ -20493,14 +21634,28 @@ export type Database = {
|
|
|
20493
21634
|
};
|
|
20494
21635
|
Returns: Json;
|
|
20495
21636
|
};
|
|
21637
|
+
ruim_print_jobs_op: {
|
|
21638
|
+
Args: {
|
|
21639
|
+
_bewaar_dagen?: number;
|
|
21640
|
+
};
|
|
21641
|
+
Returns: number;
|
|
21642
|
+
};
|
|
20496
21643
|
run_floriday_continuous_stock_sync: {
|
|
20497
21644
|
Args: never;
|
|
20498
21645
|
Returns: undefined;
|
|
20499
21646
|
};
|
|
21647
|
+
run_floriday_stock_queue_process: {
|
|
21648
|
+
Args: never;
|
|
21649
|
+
Returns: undefined;
|
|
21650
|
+
};
|
|
20500
21651
|
run_logistics_tasks_dispatch: {
|
|
20501
21652
|
Args: never;
|
|
20502
21653
|
Returns: undefined;
|
|
20503
21654
|
};
|
|
21655
|
+
run_print_queue_ticks: {
|
|
21656
|
+
Args: never;
|
|
21657
|
+
Returns: number;
|
|
21658
|
+
};
|
|
20504
21659
|
run_twinfield_queue_tick: {
|
|
20505
21660
|
Args: never;
|
|
20506
21661
|
Returns: undefined;
|
|
@@ -20854,6 +22009,16 @@ export type Database = {
|
|
|
20854
22009
|
};
|
|
20855
22010
|
Returns: string[];
|
|
20856
22011
|
};
|
|
22012
|
+
switch_time_log: {
|
|
22013
|
+
Args: {
|
|
22014
|
+
p_employee_id: string;
|
|
22015
|
+
p_start_lat?: number;
|
|
22016
|
+
p_start_lng?: number;
|
|
22017
|
+
p_type: string;
|
|
22018
|
+
p_work_order_id?: string;
|
|
22019
|
+
};
|
|
22020
|
+
Returns: Json;
|
|
22021
|
+
};
|
|
20857
22022
|
sync_all_layer_stocks: {
|
|
20858
22023
|
Args: never;
|
|
20859
22024
|
Returns: undefined;
|
|
@@ -20888,6 +22053,15 @@ export type Database = {
|
|
|
20888
22053
|
};
|
|
20889
22054
|
Returns: undefined;
|
|
20890
22055
|
};
|
|
22056
|
+
trade_item_stock_duplicates: {
|
|
22057
|
+
Args: never;
|
|
22058
|
+
Returns: {
|
|
22059
|
+
keys: string[];
|
|
22060
|
+
product_id: string;
|
|
22061
|
+
product_name: string;
|
|
22062
|
+
row_count: number;
|
|
22063
|
+
}[];
|
|
22064
|
+
};
|
|
20891
22065
|
try_debtor_lock: {
|
|
20892
22066
|
Args: {
|
|
20893
22067
|
_group_key: string;
|
|
@@ -20895,6 +22069,24 @@ export type Database = {
|
|
|
20895
22069
|
};
|
|
20896
22070
|
Returns: boolean;
|
|
20897
22071
|
};
|
|
22072
|
+
twinfield_cron_lock_acquire: {
|
|
22073
|
+
Args: {
|
|
22074
|
+
_job_name: string;
|
|
22075
|
+
_stale_seconds?: number;
|
|
22076
|
+
};
|
|
22077
|
+
Returns: boolean;
|
|
22078
|
+
};
|
|
22079
|
+
twinfield_cron_lock_release: {
|
|
22080
|
+
Args: {
|
|
22081
|
+
_error?: string;
|
|
22082
|
+
_job_name: string;
|
|
22083
|
+
};
|
|
22084
|
+
Returns: undefined;
|
|
22085
|
+
};
|
|
22086
|
+
twinfield_prune_push_queue: {
|
|
22087
|
+
Args: never;
|
|
22088
|
+
Returns: number;
|
|
22089
|
+
};
|
|
20898
22090
|
twinfield_register_cron: {
|
|
20899
22091
|
Args: {
|
|
20900
22092
|
apikey?: string;
|
|
@@ -20937,7 +22129,7 @@ export type Database = {
|
|
|
20937
22129
|
};
|
|
20938
22130
|
Enums: {
|
|
20939
22131
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
20940
|
-
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
22132
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
20941
22133
|
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
20942
22134
|
doc_orientation: "portrait" | "landscape";
|
|
20943
22135
|
exact_env: "staging" | "live";
|
|
@@ -21008,7 +22200,7 @@ export declare const Constants: {
|
|
|
21008
22200
|
readonly public: {
|
|
21009
22201
|
readonly Enums: {
|
|
21010
22202
|
readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
|
|
21011
|
-
readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin"];
|
|
22203
|
+
readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie"];
|
|
21012
22204
|
readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon"];
|
|
21013
22205
|
readonly doc_orientation: readonly ["portrait", "landscape"];
|
|
21014
22206
|
readonly exact_env: readonly ["staging", "live"];
|