@flowselections/mailbox-orders 1.0.15 → 1.0.16
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/integrations/supabase/client.d.ts +844 -150
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +844 -150
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +852 -153
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/mailbox-ai.server.d.ts.map +1 -1
- package/dist-lib/lib/mailbox-ai.server.js +6 -3
- package/dist-lib/lib/mailbox.functions.d.ts +1 -0
- package/dist-lib/lib/mailbox.functions.d.ts.map +1 -1
- package/dist-lib/lib/mailbox.functions.js +38 -172
- package/package.json +1 -1
|
@@ -872,6 +872,126 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
872
872
|
};
|
|
873
873
|
Relationships: [];
|
|
874
874
|
};
|
|
875
|
+
cao_holidays: {
|
|
876
|
+
Row: {
|
|
877
|
+
created_at: string;
|
|
878
|
+
description: string | null;
|
|
879
|
+
holiday_date: string;
|
|
880
|
+
id: string;
|
|
881
|
+
updated_at: string;
|
|
882
|
+
};
|
|
883
|
+
Insert: {
|
|
884
|
+
created_at?: string;
|
|
885
|
+
description?: string | null;
|
|
886
|
+
holiday_date: string;
|
|
887
|
+
id?: string;
|
|
888
|
+
updated_at?: string;
|
|
889
|
+
};
|
|
890
|
+
Update: {
|
|
891
|
+
created_at?: string;
|
|
892
|
+
description?: string | null;
|
|
893
|
+
holiday_date?: string;
|
|
894
|
+
id?: string;
|
|
895
|
+
updated_at?: string;
|
|
896
|
+
};
|
|
897
|
+
Relationships: [];
|
|
898
|
+
};
|
|
899
|
+
cao_settings: {
|
|
900
|
+
Row: {
|
|
901
|
+
auto_break_after_hours: number;
|
|
902
|
+
auto_break_minutes: number;
|
|
903
|
+
auto_break_unpaid: boolean;
|
|
904
|
+
auto_stop_after_hours: number;
|
|
905
|
+
callout_fee: number;
|
|
906
|
+
created_at: string;
|
|
907
|
+
daily_regular_hours: number;
|
|
908
|
+
default_hourly_rate: number;
|
|
909
|
+
id: string;
|
|
910
|
+
materials_markup_percent: number;
|
|
911
|
+
max_daily_hours: number;
|
|
912
|
+
max_weekly_hours: number;
|
|
913
|
+
meal_allowance_amount: number;
|
|
914
|
+
overtime_pct_178: number;
|
|
915
|
+
overtime_pct_189: number;
|
|
916
|
+
overtime_pct_212: number;
|
|
917
|
+
reminder_after_hours: number;
|
|
918
|
+
standby_evening_amount: number;
|
|
919
|
+
standby_weekend_amount: number;
|
|
920
|
+
travel_cost_per_km: number | null;
|
|
921
|
+
travel_cost_threshold_km: number | null;
|
|
922
|
+
travel_counts_as_work: boolean;
|
|
923
|
+
travel_hourly_rate: number;
|
|
924
|
+
travel_rate_per_hour: number;
|
|
925
|
+
travel_threshold_minutes: number;
|
|
926
|
+
updated_at: string;
|
|
927
|
+
weekend_always_212: boolean;
|
|
928
|
+
window_end: string;
|
|
929
|
+
window_start: string;
|
|
930
|
+
};
|
|
931
|
+
Insert: {
|
|
932
|
+
auto_break_after_hours?: number;
|
|
933
|
+
auto_break_minutes?: number;
|
|
934
|
+
auto_break_unpaid?: boolean;
|
|
935
|
+
auto_stop_after_hours?: number;
|
|
936
|
+
callout_fee?: number;
|
|
937
|
+
created_at?: string;
|
|
938
|
+
daily_regular_hours?: number;
|
|
939
|
+
default_hourly_rate?: number;
|
|
940
|
+
id?: string;
|
|
941
|
+
materials_markup_percent?: number;
|
|
942
|
+
max_daily_hours?: number;
|
|
943
|
+
max_weekly_hours?: number;
|
|
944
|
+
meal_allowance_amount?: number;
|
|
945
|
+
overtime_pct_178?: number;
|
|
946
|
+
overtime_pct_189?: number;
|
|
947
|
+
overtime_pct_212?: number;
|
|
948
|
+
reminder_after_hours?: number;
|
|
949
|
+
standby_evening_amount?: number;
|
|
950
|
+
standby_weekend_amount?: number;
|
|
951
|
+
travel_cost_per_km?: number | null;
|
|
952
|
+
travel_cost_threshold_km?: number | null;
|
|
953
|
+
travel_counts_as_work?: boolean;
|
|
954
|
+
travel_hourly_rate?: number;
|
|
955
|
+
travel_rate_per_hour?: number;
|
|
956
|
+
travel_threshold_minutes?: number;
|
|
957
|
+
updated_at?: string;
|
|
958
|
+
weekend_always_212?: boolean;
|
|
959
|
+
window_end?: string;
|
|
960
|
+
window_start?: string;
|
|
961
|
+
};
|
|
962
|
+
Update: {
|
|
963
|
+
auto_break_after_hours?: number;
|
|
964
|
+
auto_break_minutes?: number;
|
|
965
|
+
auto_break_unpaid?: boolean;
|
|
966
|
+
auto_stop_after_hours?: number;
|
|
967
|
+
callout_fee?: number;
|
|
968
|
+
created_at?: string;
|
|
969
|
+
daily_regular_hours?: number;
|
|
970
|
+
default_hourly_rate?: number;
|
|
971
|
+
id?: string;
|
|
972
|
+
materials_markup_percent?: number;
|
|
973
|
+
max_daily_hours?: number;
|
|
974
|
+
max_weekly_hours?: number;
|
|
975
|
+
meal_allowance_amount?: number;
|
|
976
|
+
overtime_pct_178?: number;
|
|
977
|
+
overtime_pct_189?: number;
|
|
978
|
+
overtime_pct_212?: number;
|
|
979
|
+
reminder_after_hours?: number;
|
|
980
|
+
standby_evening_amount?: number;
|
|
981
|
+
standby_weekend_amount?: number;
|
|
982
|
+
travel_cost_per_km?: number | null;
|
|
983
|
+
travel_cost_threshold_km?: number | null;
|
|
984
|
+
travel_counts_as_work?: boolean;
|
|
985
|
+
travel_hourly_rate?: number;
|
|
986
|
+
travel_rate_per_hour?: number;
|
|
987
|
+
travel_threshold_minutes?: number;
|
|
988
|
+
updated_at?: string;
|
|
989
|
+
weekend_always_212?: boolean;
|
|
990
|
+
window_end?: string;
|
|
991
|
+
window_start?: string;
|
|
992
|
+
};
|
|
993
|
+
Relationships: [];
|
|
994
|
+
};
|
|
875
995
|
carrier_shipping_rates: {
|
|
876
996
|
Row: {
|
|
877
997
|
carrier_id: string;
|
|
@@ -7766,7 +7886,6 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
7766
7886
|
start_date: string;
|
|
7767
7887
|
start_time: string | null;
|
|
7768
7888
|
status: string;
|
|
7769
|
-
tenant_id: string;
|
|
7770
7889
|
updated_at: string;
|
|
7771
7890
|
user_id: string;
|
|
7772
7891
|
};
|
|
@@ -7784,7 +7903,6 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
7784
7903
|
start_date: string;
|
|
7785
7904
|
start_time?: string | null;
|
|
7786
7905
|
status?: string;
|
|
7787
|
-
tenant_id?: string;
|
|
7788
7906
|
updated_at?: string;
|
|
7789
7907
|
user_id: string;
|
|
7790
7908
|
};
|
|
@@ -7802,7 +7920,6 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
7802
7920
|
start_date?: string;
|
|
7803
7921
|
start_time?: string | null;
|
|
7804
7922
|
status?: string;
|
|
7805
|
-
tenant_id?: string;
|
|
7806
7923
|
updated_at?: string;
|
|
7807
7924
|
user_id?: string;
|
|
7808
7925
|
};
|
|
@@ -7810,13 +7927,13 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
7810
7927
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
7811
7928
|
columns: ["monteur_id"];
|
|
7812
7929
|
isOneToOne: false;
|
|
7813
|
-
referencedRelation: "
|
|
7930
|
+
referencedRelation: "profiles";
|
|
7814
7931
|
referencedColumns: ["id"];
|
|
7815
7932
|
}, {
|
|
7816
7933
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
7817
7934
|
columns: ["user_id"];
|
|
7818
7935
|
isOneToOne: false;
|
|
7819
|
-
referencedRelation: "
|
|
7936
|
+
referencedRelation: "profiles";
|
|
7820
7937
|
referencedColumns: ["id"];
|
|
7821
7938
|
}];
|
|
7822
7939
|
};
|
|
@@ -8684,6 +8801,45 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
8684
8801
|
};
|
|
8685
8802
|
Relationships: [];
|
|
8686
8803
|
};
|
|
8804
|
+
logistics_plan_queue: {
|
|
8805
|
+
Row: {
|
|
8806
|
+
attempts: number;
|
|
8807
|
+
claimed_at: string | null;
|
|
8808
|
+
enqueued_at: string;
|
|
8809
|
+
error: string | null;
|
|
8810
|
+
id: string;
|
|
8811
|
+
next_attempt_at: string;
|
|
8812
|
+
order_id: string;
|
|
8813
|
+
reason: string;
|
|
8814
|
+
status: string;
|
|
8815
|
+
updated_at: string;
|
|
8816
|
+
};
|
|
8817
|
+
Insert: {
|
|
8818
|
+
attempts?: number;
|
|
8819
|
+
claimed_at?: string | null;
|
|
8820
|
+
enqueued_at?: string;
|
|
8821
|
+
error?: string | null;
|
|
8822
|
+
id?: string;
|
|
8823
|
+
next_attempt_at?: string;
|
|
8824
|
+
order_id: string;
|
|
8825
|
+
reason?: string;
|
|
8826
|
+
status?: string;
|
|
8827
|
+
updated_at?: string;
|
|
8828
|
+
};
|
|
8829
|
+
Update: {
|
|
8830
|
+
attempts?: number;
|
|
8831
|
+
claimed_at?: string | null;
|
|
8832
|
+
enqueued_at?: string;
|
|
8833
|
+
error?: string | null;
|
|
8834
|
+
id?: string;
|
|
8835
|
+
next_attempt_at?: string;
|
|
8836
|
+
order_id?: string;
|
|
8837
|
+
reason?: string;
|
|
8838
|
+
status?: string;
|
|
8839
|
+
updated_at?: string;
|
|
8840
|
+
};
|
|
8841
|
+
Relationships: [];
|
|
8842
|
+
};
|
|
8687
8843
|
logistics_plan_runs: {
|
|
8688
8844
|
Row: {
|
|
8689
8845
|
created_at: string;
|
|
@@ -8759,6 +8915,24 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
8759
8915
|
referencedColumns: ["id"];
|
|
8760
8916
|
}];
|
|
8761
8917
|
};
|
|
8918
|
+
logistics_plan_settings: {
|
|
8919
|
+
Row: {
|
|
8920
|
+
key: string;
|
|
8921
|
+
updated_at: string;
|
|
8922
|
+
value: string;
|
|
8923
|
+
};
|
|
8924
|
+
Insert: {
|
|
8925
|
+
key: string;
|
|
8926
|
+
updated_at?: string;
|
|
8927
|
+
value: string;
|
|
8928
|
+
};
|
|
8929
|
+
Update: {
|
|
8930
|
+
key?: string;
|
|
8931
|
+
updated_at?: string;
|
|
8932
|
+
value?: string;
|
|
8933
|
+
};
|
|
8934
|
+
Relationships: [];
|
|
8935
|
+
};
|
|
8762
8936
|
logistics_rebuffer_state: {
|
|
8763
8937
|
Row: {
|
|
8764
8938
|
created_at: string;
|
|
@@ -9914,6 +10088,90 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
9914
10088
|
};
|
|
9915
10089
|
Relationships: [];
|
|
9916
10090
|
};
|
|
10091
|
+
material_usage: {
|
|
10092
|
+
Row: {
|
|
10093
|
+
created_at: string;
|
|
10094
|
+
id: string;
|
|
10095
|
+
material_name: string;
|
|
10096
|
+
monteur_id: string | null;
|
|
10097
|
+
price_at_time: number;
|
|
10098
|
+
quantity_used: number;
|
|
10099
|
+
updated_at: string;
|
|
10100
|
+
van_inventory_id: string | null;
|
|
10101
|
+
work_order_id: string;
|
|
10102
|
+
};
|
|
10103
|
+
Insert: {
|
|
10104
|
+
created_at?: string;
|
|
10105
|
+
id?: string;
|
|
10106
|
+
material_name: string;
|
|
10107
|
+
monteur_id?: string | null;
|
|
10108
|
+
price_at_time?: number;
|
|
10109
|
+
quantity_used?: number;
|
|
10110
|
+
updated_at?: string;
|
|
10111
|
+
van_inventory_id?: string | null;
|
|
10112
|
+
work_order_id: string;
|
|
10113
|
+
};
|
|
10114
|
+
Update: {
|
|
10115
|
+
created_at?: string;
|
|
10116
|
+
id?: string;
|
|
10117
|
+
material_name?: string;
|
|
10118
|
+
monteur_id?: string | null;
|
|
10119
|
+
price_at_time?: number;
|
|
10120
|
+
quantity_used?: number;
|
|
10121
|
+
updated_at?: string;
|
|
10122
|
+
van_inventory_id?: string | null;
|
|
10123
|
+
work_order_id?: string;
|
|
10124
|
+
};
|
|
10125
|
+
Relationships: [{
|
|
10126
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
10127
|
+
columns: ["monteur_id"];
|
|
10128
|
+
isOneToOne: false;
|
|
10129
|
+
referencedRelation: "profiles";
|
|
10130
|
+
referencedColumns: ["id"];
|
|
10131
|
+
}, {
|
|
10132
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
10133
|
+
columns: ["van_inventory_id"];
|
|
10134
|
+
isOneToOne: false;
|
|
10135
|
+
referencedRelation: "van_inventories";
|
|
10136
|
+
referencedColumns: ["id"];
|
|
10137
|
+
}, {
|
|
10138
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
10139
|
+
columns: ["work_order_id"];
|
|
10140
|
+
isOneToOne: false;
|
|
10141
|
+
referencedRelation: "work_orders";
|
|
10142
|
+
referencedColumns: ["id"];
|
|
10143
|
+
}];
|
|
10144
|
+
};
|
|
10145
|
+
module_features: {
|
|
10146
|
+
Row: {
|
|
10147
|
+
created_at: string;
|
|
10148
|
+
feature_id: string;
|
|
10149
|
+
id: string;
|
|
10150
|
+
is_active: boolean;
|
|
10151
|
+
last_seen_at: string;
|
|
10152
|
+
module_id: string;
|
|
10153
|
+
name: string;
|
|
10154
|
+
};
|
|
10155
|
+
Insert: {
|
|
10156
|
+
created_at?: string;
|
|
10157
|
+
feature_id: string;
|
|
10158
|
+
id?: string;
|
|
10159
|
+
is_active?: boolean;
|
|
10160
|
+
last_seen_at?: string;
|
|
10161
|
+
module_id: string;
|
|
10162
|
+
name: string;
|
|
10163
|
+
};
|
|
10164
|
+
Update: {
|
|
10165
|
+
created_at?: string;
|
|
10166
|
+
feature_id?: string;
|
|
10167
|
+
id?: string;
|
|
10168
|
+
is_active?: boolean;
|
|
10169
|
+
last_seen_at?: string;
|
|
10170
|
+
module_id?: string;
|
|
10171
|
+
name?: string;
|
|
10172
|
+
};
|
|
10173
|
+
Relationships: [];
|
|
10174
|
+
};
|
|
9917
10175
|
module_permissions: {
|
|
9918
10176
|
Row: {
|
|
9919
10177
|
created_at: string;
|
|
@@ -10022,63 +10280,6 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
10022
10280
|
};
|
|
10023
10281
|
Relationships: [];
|
|
10024
10282
|
};
|
|
10025
|
-
monteurs: {
|
|
10026
|
-
Row: {
|
|
10027
|
-
avatar_url: string | null;
|
|
10028
|
-
color: string | null;
|
|
10029
|
-
created_at: string;
|
|
10030
|
-
email: string | null;
|
|
10031
|
-
id: string;
|
|
10032
|
-
is_active: boolean;
|
|
10033
|
-
leave_balance_hours: number;
|
|
10034
|
-
name: string;
|
|
10035
|
-
persnr: number | null;
|
|
10036
|
-
phone: string | null;
|
|
10037
|
-
role: string;
|
|
10038
|
-
tenant_id: string;
|
|
10039
|
-
updated_at: string;
|
|
10040
|
-
user_id: string | null;
|
|
10041
|
-
};
|
|
10042
|
-
Insert: {
|
|
10043
|
-
avatar_url?: string | null;
|
|
10044
|
-
color?: string | null;
|
|
10045
|
-
created_at?: string;
|
|
10046
|
-
email?: string | null;
|
|
10047
|
-
id?: string;
|
|
10048
|
-
is_active?: boolean;
|
|
10049
|
-
leave_balance_hours?: number;
|
|
10050
|
-
name: string;
|
|
10051
|
-
persnr?: number | null;
|
|
10052
|
-
phone?: string | null;
|
|
10053
|
-
role?: string;
|
|
10054
|
-
tenant_id: string;
|
|
10055
|
-
updated_at?: string;
|
|
10056
|
-
user_id?: string | null;
|
|
10057
|
-
};
|
|
10058
|
-
Update: {
|
|
10059
|
-
avatar_url?: string | null;
|
|
10060
|
-
color?: string | null;
|
|
10061
|
-
created_at?: string;
|
|
10062
|
-
email?: string | null;
|
|
10063
|
-
id?: string;
|
|
10064
|
-
is_active?: boolean;
|
|
10065
|
-
leave_balance_hours?: number;
|
|
10066
|
-
name?: string;
|
|
10067
|
-
persnr?: number | null;
|
|
10068
|
-
phone?: string | null;
|
|
10069
|
-
role?: string;
|
|
10070
|
-
tenant_id?: string;
|
|
10071
|
-
updated_at?: string;
|
|
10072
|
-
user_id?: string | null;
|
|
10073
|
-
};
|
|
10074
|
-
Relationships: [{
|
|
10075
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
10076
|
-
columns: ["tenant_id"];
|
|
10077
|
-
isOneToOne: false;
|
|
10078
|
-
referencedRelation: "tenants";
|
|
10079
|
-
referencedColumns: ["id"];
|
|
10080
|
-
}];
|
|
10081
|
-
};
|
|
10082
10283
|
nmbrs_component_mapping: {
|
|
10083
10284
|
Row: {
|
|
10084
10285
|
created_at: string;
|
|
@@ -10149,13 +10350,7 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
10149
10350
|
nmbrs_employee_number?: string;
|
|
10150
10351
|
updated_at?: string;
|
|
10151
10352
|
};
|
|
10152
|
-
Relationships: [
|
|
10153
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10154
|
-
columns: ["monteur_id"];
|
|
10155
|
-
isOneToOne: true;
|
|
10156
|
-
referencedRelation: "monteurs";
|
|
10157
|
-
referencedColumns: ["id"];
|
|
10158
|
-
}];
|
|
10353
|
+
Relationships: [];
|
|
10159
10354
|
};
|
|
10160
10355
|
nmbrs_export_lines: {
|
|
10161
10356
|
Row: {
|
|
@@ -10204,12 +10399,6 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
10204
10399
|
wage_code?: string;
|
|
10205
10400
|
};
|
|
10206
10401
|
Relationships: [{
|
|
10207
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10208
|
-
columns: ["monteur_id"];
|
|
10209
|
-
isOneToOne: false;
|
|
10210
|
-
referencedRelation: "monteurs";
|
|
10211
|
-
referencedColumns: ["id"];
|
|
10212
|
-
}, {
|
|
10213
10402
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10214
10403
|
columns: ["run_id"];
|
|
10215
10404
|
isOneToOne: false;
|
|
@@ -11037,6 +11226,7 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
11037
11226
|
error_message: string | null;
|
|
11038
11227
|
id: string;
|
|
11039
11228
|
invoice_number: string | null;
|
|
11229
|
+
next_attempt_at: string;
|
|
11040
11230
|
order_id: string;
|
|
11041
11231
|
processed_at: string | null;
|
|
11042
11232
|
status: string;
|
|
@@ -11048,6 +11238,7 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
11048
11238
|
error_message?: string | null;
|
|
11049
11239
|
id?: string;
|
|
11050
11240
|
invoice_number?: string | null;
|
|
11241
|
+
next_attempt_at?: string;
|
|
11051
11242
|
order_id: string;
|
|
11052
11243
|
processed_at?: string | null;
|
|
11053
11244
|
status?: string;
|
|
@@ -11059,6 +11250,7 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
11059
11250
|
error_message?: string | null;
|
|
11060
11251
|
id?: string;
|
|
11061
11252
|
invoice_number?: string | null;
|
|
11253
|
+
next_attempt_at?: string;
|
|
11062
11254
|
order_id?: string;
|
|
11063
11255
|
processed_at?: string | null;
|
|
11064
11256
|
status?: string;
|
|
@@ -12597,6 +12789,9 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
12597
12789
|
created_at: string;
|
|
12598
12790
|
id: string;
|
|
12599
12791
|
laatst_gezien: string;
|
|
12792
|
+
laatste_fout: string | null;
|
|
12793
|
+
laatste_request_id: number | null;
|
|
12794
|
+
mislukte_posts: number;
|
|
12600
12795
|
tick_sleutel: string;
|
|
12601
12796
|
updated_at: string;
|
|
12602
12797
|
};
|
|
@@ -12606,6 +12801,9 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
12606
12801
|
created_at?: string;
|
|
12607
12802
|
id?: string;
|
|
12608
12803
|
laatst_gezien?: string;
|
|
12804
|
+
laatste_fout?: string | null;
|
|
12805
|
+
laatste_request_id?: number | null;
|
|
12806
|
+
mislukte_posts?: number;
|
|
12609
12807
|
tick_sleutel?: string;
|
|
12610
12808
|
updated_at?: string;
|
|
12611
12809
|
};
|
|
@@ -12615,6 +12813,9 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
12615
12813
|
created_at?: string;
|
|
12616
12814
|
id?: string;
|
|
12617
12815
|
laatst_gezien?: string;
|
|
12816
|
+
laatste_fout?: string | null;
|
|
12817
|
+
laatste_request_id?: number | null;
|
|
12818
|
+
mislukte_posts?: number;
|
|
12618
12819
|
tick_sleutel?: string;
|
|
12619
12820
|
updated_at?: string;
|
|
12620
12821
|
};
|
|
@@ -14123,57 +14324,147 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
14123
14324
|
referencedColumns: ["id"];
|
|
14124
14325
|
}];
|
|
14125
14326
|
};
|
|
14126
|
-
|
|
14327
|
+
role_assignments: {
|
|
14127
14328
|
Row: {
|
|
14128
|
-
capacity: number;
|
|
14129
|
-
color_code: string | null;
|
|
14130
14329
|
created_at: string;
|
|
14131
|
-
description: string | null;
|
|
14132
|
-
hourly_rate: number;
|
|
14133
14330
|
id: string;
|
|
14134
|
-
|
|
14135
|
-
|
|
14136
|
-
name: string;
|
|
14331
|
+
role_id: string;
|
|
14332
|
+
user_id: string;
|
|
14137
14333
|
};
|
|
14138
14334
|
Insert: {
|
|
14139
|
-
capacity?: number;
|
|
14140
|
-
color_code?: string | null;
|
|
14141
14335
|
created_at?: string;
|
|
14142
|
-
description?: string | null;
|
|
14143
|
-
hourly_rate?: number;
|
|
14144
14336
|
id?: string;
|
|
14145
|
-
|
|
14146
|
-
|
|
14147
|
-
name: string;
|
|
14337
|
+
role_id: string;
|
|
14338
|
+
user_id: string;
|
|
14148
14339
|
};
|
|
14149
14340
|
Update: {
|
|
14150
|
-
capacity?: number;
|
|
14151
|
-
color_code?: string | null;
|
|
14152
14341
|
created_at?: string;
|
|
14153
|
-
description?: string | null;
|
|
14154
|
-
hourly_rate?: number;
|
|
14155
14342
|
id?: string;
|
|
14156
|
-
|
|
14157
|
-
|
|
14158
|
-
name?: string;
|
|
14343
|
+
role_id?: string;
|
|
14344
|
+
user_id?: string;
|
|
14159
14345
|
};
|
|
14160
|
-
Relationships: [
|
|
14346
|
+
Relationships: [{
|
|
14347
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
14348
|
+
columns: ["role_id"];
|
|
14349
|
+
isOneToOne: false;
|
|
14350
|
+
referencedRelation: "roles";
|
|
14351
|
+
referencedColumns: ["id"];
|
|
14352
|
+
}];
|
|
14161
14353
|
};
|
|
14162
|
-
|
|
14354
|
+
role_permissions: {
|
|
14163
14355
|
Row: {
|
|
14164
|
-
|
|
14356
|
+
can_edit: boolean;
|
|
14357
|
+
can_view: boolean;
|
|
14358
|
+
feature_id: string;
|
|
14165
14359
|
id: string;
|
|
14166
|
-
|
|
14167
|
-
|
|
14168
|
-
|
|
14169
|
-
product_id: string | null;
|
|
14170
|
-
product_name: string;
|
|
14171
|
-
quantity: number;
|
|
14172
|
-
scanned_at: string;
|
|
14173
|
-
scanned_by: string | null;
|
|
14360
|
+
module_id: string;
|
|
14361
|
+
role_id: string;
|
|
14362
|
+
updated_at: string;
|
|
14174
14363
|
};
|
|
14175
14364
|
Insert: {
|
|
14176
|
-
|
|
14365
|
+
can_edit?: boolean;
|
|
14366
|
+
can_view?: boolean;
|
|
14367
|
+
feature_id?: string;
|
|
14368
|
+
id?: string;
|
|
14369
|
+
module_id: string;
|
|
14370
|
+
role_id: string;
|
|
14371
|
+
updated_at?: string;
|
|
14372
|
+
};
|
|
14373
|
+
Update: {
|
|
14374
|
+
can_edit?: boolean;
|
|
14375
|
+
can_view?: boolean;
|
|
14376
|
+
feature_id?: string;
|
|
14377
|
+
id?: string;
|
|
14378
|
+
module_id?: string;
|
|
14379
|
+
role_id?: string;
|
|
14380
|
+
updated_at?: string;
|
|
14381
|
+
};
|
|
14382
|
+
Relationships: [{
|
|
14383
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
14384
|
+
columns: ["role_id"];
|
|
14385
|
+
isOneToOne: false;
|
|
14386
|
+
referencedRelation: "roles";
|
|
14387
|
+
referencedColumns: ["id"];
|
|
14388
|
+
}];
|
|
14389
|
+
};
|
|
14390
|
+
roles: {
|
|
14391
|
+
Row: {
|
|
14392
|
+
created_at: string;
|
|
14393
|
+
id: string;
|
|
14394
|
+
is_protected: boolean;
|
|
14395
|
+
key: string;
|
|
14396
|
+
name: string;
|
|
14397
|
+
updated_at: string;
|
|
14398
|
+
};
|
|
14399
|
+
Insert: {
|
|
14400
|
+
created_at?: string;
|
|
14401
|
+
id?: string;
|
|
14402
|
+
is_protected?: boolean;
|
|
14403
|
+
key: string;
|
|
14404
|
+
name: string;
|
|
14405
|
+
updated_at?: string;
|
|
14406
|
+
};
|
|
14407
|
+
Update: {
|
|
14408
|
+
created_at?: string;
|
|
14409
|
+
id?: string;
|
|
14410
|
+
is_protected?: boolean;
|
|
14411
|
+
key?: string;
|
|
14412
|
+
name?: string;
|
|
14413
|
+
updated_at?: string;
|
|
14414
|
+
};
|
|
14415
|
+
Relationships: [];
|
|
14416
|
+
};
|
|
14417
|
+
rooms: {
|
|
14418
|
+
Row: {
|
|
14419
|
+
capacity: number;
|
|
14420
|
+
color_code: string | null;
|
|
14421
|
+
created_at: string;
|
|
14422
|
+
description: string | null;
|
|
14423
|
+
hourly_rate: number;
|
|
14424
|
+
id: string;
|
|
14425
|
+
image_url: string | null;
|
|
14426
|
+
is_active: boolean;
|
|
14427
|
+
name: string;
|
|
14428
|
+
};
|
|
14429
|
+
Insert: {
|
|
14430
|
+
capacity?: number;
|
|
14431
|
+
color_code?: string | null;
|
|
14432
|
+
created_at?: string;
|
|
14433
|
+
description?: string | null;
|
|
14434
|
+
hourly_rate?: number;
|
|
14435
|
+
id?: string;
|
|
14436
|
+
image_url?: string | null;
|
|
14437
|
+
is_active?: boolean;
|
|
14438
|
+
name: string;
|
|
14439
|
+
};
|
|
14440
|
+
Update: {
|
|
14441
|
+
capacity?: number;
|
|
14442
|
+
color_code?: string | null;
|
|
14443
|
+
created_at?: string;
|
|
14444
|
+
description?: string | null;
|
|
14445
|
+
hourly_rate?: number;
|
|
14446
|
+
id?: string;
|
|
14447
|
+
image_url?: string | null;
|
|
14448
|
+
is_active?: boolean;
|
|
14449
|
+
name?: string;
|
|
14450
|
+
};
|
|
14451
|
+
Relationships: [];
|
|
14452
|
+
};
|
|
14453
|
+
scan_kar_items: {
|
|
14454
|
+
Row: {
|
|
14455
|
+
barcode: string;
|
|
14456
|
+
id: string;
|
|
14457
|
+
kar_id: string;
|
|
14458
|
+
pakbon_id: string;
|
|
14459
|
+
pakbon_item_id: string;
|
|
14460
|
+
product_id: string | null;
|
|
14461
|
+
product_name: string;
|
|
14462
|
+
quantity: number;
|
|
14463
|
+
scanned_at: string;
|
|
14464
|
+
scanned_by: string | null;
|
|
14465
|
+
};
|
|
14466
|
+
Insert: {
|
|
14467
|
+
barcode: string;
|
|
14177
14468
|
id?: string;
|
|
14178
14469
|
kar_id: string;
|
|
14179
14470
|
pakbon_id: string;
|
|
@@ -14792,6 +15083,54 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
14792
15083
|
};
|
|
14793
15084
|
Relationships: [];
|
|
14794
15085
|
};
|
|
15086
|
+
time_compensation_entries: {
|
|
15087
|
+
Row: {
|
|
15088
|
+
created_at: string;
|
|
15089
|
+
employee_id: string;
|
|
15090
|
+
entry_date: string;
|
|
15091
|
+
id: string;
|
|
15092
|
+
km: number;
|
|
15093
|
+
meal_allowance: number;
|
|
15094
|
+
notes: string | null;
|
|
15095
|
+
standby_evening: number;
|
|
15096
|
+
standby_weekend: number;
|
|
15097
|
+
tvt_change: number;
|
|
15098
|
+
updated_at: string;
|
|
15099
|
+
};
|
|
15100
|
+
Insert: {
|
|
15101
|
+
created_at?: string;
|
|
15102
|
+
employee_id: string;
|
|
15103
|
+
entry_date: string;
|
|
15104
|
+
id?: string;
|
|
15105
|
+
km?: number;
|
|
15106
|
+
meal_allowance?: number;
|
|
15107
|
+
notes?: string | null;
|
|
15108
|
+
standby_evening?: number;
|
|
15109
|
+
standby_weekend?: number;
|
|
15110
|
+
tvt_change?: number;
|
|
15111
|
+
updated_at?: string;
|
|
15112
|
+
};
|
|
15113
|
+
Update: {
|
|
15114
|
+
created_at?: string;
|
|
15115
|
+
employee_id?: string;
|
|
15116
|
+
entry_date?: string;
|
|
15117
|
+
id?: string;
|
|
15118
|
+
km?: number;
|
|
15119
|
+
meal_allowance?: number;
|
|
15120
|
+
notes?: string | null;
|
|
15121
|
+
standby_evening?: number;
|
|
15122
|
+
standby_weekend?: number;
|
|
15123
|
+
tvt_change?: number;
|
|
15124
|
+
updated_at?: string;
|
|
15125
|
+
};
|
|
15126
|
+
Relationships: [{
|
|
15127
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
15128
|
+
columns: ["employee_id"];
|
|
15129
|
+
isOneToOne: false;
|
|
15130
|
+
referencedRelation: "profiles";
|
|
15131
|
+
referencedColumns: ["id"];
|
|
15132
|
+
}];
|
|
15133
|
+
};
|
|
14795
15134
|
time_entries: {
|
|
14796
15135
|
Row: {
|
|
14797
15136
|
created_at: string;
|
|
@@ -14826,65 +15165,170 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
14826
15165
|
undertime?: number;
|
|
14827
15166
|
updated_at?: string;
|
|
14828
15167
|
};
|
|
15168
|
+
Relationships: [];
|
|
15169
|
+
};
|
|
15170
|
+
time_log_week_approvals: {
|
|
15171
|
+
Row: {
|
|
15172
|
+
approved_at: string | null;
|
|
15173
|
+
approved_by: string | null;
|
|
15174
|
+
created_at: string;
|
|
15175
|
+
employee_id: string;
|
|
15176
|
+
id: string;
|
|
15177
|
+
locked: boolean;
|
|
15178
|
+
notes: string | null;
|
|
15179
|
+
status: string;
|
|
15180
|
+
submitted_at: string | null;
|
|
15181
|
+
updated_at: string;
|
|
15182
|
+
week_start: string;
|
|
15183
|
+
};
|
|
15184
|
+
Insert: {
|
|
15185
|
+
approved_at?: string | null;
|
|
15186
|
+
approved_by?: string | null;
|
|
15187
|
+
created_at?: string;
|
|
15188
|
+
employee_id: string;
|
|
15189
|
+
id?: string;
|
|
15190
|
+
locked?: boolean;
|
|
15191
|
+
notes?: string | null;
|
|
15192
|
+
status?: string;
|
|
15193
|
+
submitted_at?: string | null;
|
|
15194
|
+
updated_at?: string;
|
|
15195
|
+
week_start: string;
|
|
15196
|
+
};
|
|
15197
|
+
Update: {
|
|
15198
|
+
approved_at?: string | null;
|
|
15199
|
+
approved_by?: string | null;
|
|
15200
|
+
created_at?: string;
|
|
15201
|
+
employee_id?: string;
|
|
15202
|
+
id?: string;
|
|
15203
|
+
locked?: boolean;
|
|
15204
|
+
notes?: string | null;
|
|
15205
|
+
status?: string;
|
|
15206
|
+
submitted_at?: string | null;
|
|
15207
|
+
updated_at?: string;
|
|
15208
|
+
week_start?: string;
|
|
15209
|
+
};
|
|
14829
15210
|
Relationships: [{
|
|
14830
|
-
foreignKeyName: "
|
|
15211
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
14831
15212
|
columns: ["employee_id"];
|
|
14832
15213
|
isOneToOne: false;
|
|
14833
|
-
referencedRelation: "
|
|
15214
|
+
referencedRelation: "profiles";
|
|
14834
15215
|
referencedColumns: ["id"];
|
|
14835
15216
|
}];
|
|
14836
15217
|
};
|
|
14837
15218
|
time_logs: {
|
|
14838
15219
|
Row: {
|
|
15220
|
+
auto_stop_reason: string | null;
|
|
15221
|
+
auto_stopped: boolean;
|
|
14839
15222
|
created_at: string;
|
|
15223
|
+
current_latitude: number | null;
|
|
15224
|
+
current_longitude: number | null;
|
|
15225
|
+
current_position_updated_at: string | null;
|
|
14840
15226
|
employee_id: string;
|
|
15227
|
+
end_latitude: number | null;
|
|
15228
|
+
end_longitude: number | null;
|
|
14841
15229
|
end_time: string | null;
|
|
15230
|
+
eta_distance_km: number | null;
|
|
15231
|
+
eta_minutes: number | null;
|
|
15232
|
+
eta_updated_at: string | null;
|
|
15233
|
+
hour_category: string | null;
|
|
14842
15234
|
id: string;
|
|
15235
|
+
last_reminder_at: string | null;
|
|
14843
15236
|
notes: string | null;
|
|
14844
15237
|
overtime_hours: number;
|
|
14845
15238
|
overtime_type: string | null;
|
|
14846
15239
|
regular_hours: number;
|
|
15240
|
+
reminder_count: number;
|
|
15241
|
+
requires_review: boolean;
|
|
15242
|
+
start_latitude: number | null;
|
|
15243
|
+
start_longitude: number | null;
|
|
14847
15244
|
start_time: string;
|
|
14848
15245
|
travel_cost: number | null;
|
|
14849
15246
|
travel_distance_km: number | null;
|
|
15247
|
+
travel_duration_min: number | null;
|
|
15248
|
+
travel_time_minutes: number | null;
|
|
14850
15249
|
type: string;
|
|
14851
15250
|
updated_at: string;
|
|
15251
|
+
work_order_id: string | null;
|
|
14852
15252
|
};
|
|
14853
15253
|
Insert: {
|
|
15254
|
+
auto_stop_reason?: string | null;
|
|
15255
|
+
auto_stopped?: boolean;
|
|
14854
15256
|
created_at?: string;
|
|
15257
|
+
current_latitude?: number | null;
|
|
15258
|
+
current_longitude?: number | null;
|
|
15259
|
+
current_position_updated_at?: string | null;
|
|
14855
15260
|
employee_id: string;
|
|
15261
|
+
end_latitude?: number | null;
|
|
15262
|
+
end_longitude?: number | null;
|
|
14856
15263
|
end_time?: string | null;
|
|
15264
|
+
eta_distance_km?: number | null;
|
|
15265
|
+
eta_minutes?: number | null;
|
|
15266
|
+
eta_updated_at?: string | null;
|
|
15267
|
+
hour_category?: string | null;
|
|
14857
15268
|
id?: string;
|
|
15269
|
+
last_reminder_at?: string | null;
|
|
14858
15270
|
notes?: string | null;
|
|
14859
15271
|
overtime_hours?: number;
|
|
14860
15272
|
overtime_type?: string | null;
|
|
14861
15273
|
regular_hours?: number;
|
|
15274
|
+
reminder_count?: number;
|
|
15275
|
+
requires_review?: boolean;
|
|
15276
|
+
start_latitude?: number | null;
|
|
15277
|
+
start_longitude?: number | null;
|
|
14862
15278
|
start_time?: string;
|
|
14863
15279
|
travel_cost?: number | null;
|
|
14864
15280
|
travel_distance_km?: number | null;
|
|
15281
|
+
travel_duration_min?: number | null;
|
|
15282
|
+
travel_time_minutes?: number | null;
|
|
14865
15283
|
type: string;
|
|
14866
15284
|
updated_at?: string;
|
|
15285
|
+
work_order_id?: string | null;
|
|
14867
15286
|
};
|
|
14868
15287
|
Update: {
|
|
15288
|
+
auto_stop_reason?: string | null;
|
|
15289
|
+
auto_stopped?: boolean;
|
|
14869
15290
|
created_at?: string;
|
|
15291
|
+
current_latitude?: number | null;
|
|
15292
|
+
current_longitude?: number | null;
|
|
15293
|
+
current_position_updated_at?: string | null;
|
|
14870
15294
|
employee_id?: string;
|
|
15295
|
+
end_latitude?: number | null;
|
|
15296
|
+
end_longitude?: number | null;
|
|
14871
15297
|
end_time?: string | null;
|
|
15298
|
+
eta_distance_km?: number | null;
|
|
15299
|
+
eta_minutes?: number | null;
|
|
15300
|
+
eta_updated_at?: string | null;
|
|
15301
|
+
hour_category?: string | null;
|
|
14872
15302
|
id?: string;
|
|
15303
|
+
last_reminder_at?: string | null;
|
|
14873
15304
|
notes?: string | null;
|
|
14874
15305
|
overtime_hours?: number;
|
|
14875
15306
|
overtime_type?: string | null;
|
|
14876
15307
|
regular_hours?: number;
|
|
15308
|
+
reminder_count?: number;
|
|
15309
|
+
requires_review?: boolean;
|
|
15310
|
+
start_latitude?: number | null;
|
|
15311
|
+
start_longitude?: number | null;
|
|
14877
15312
|
start_time?: string;
|
|
14878
15313
|
travel_cost?: number | null;
|
|
14879
15314
|
travel_distance_km?: number | null;
|
|
15315
|
+
travel_duration_min?: number | null;
|
|
15316
|
+
travel_time_minutes?: number | null;
|
|
14880
15317
|
type?: string;
|
|
14881
15318
|
updated_at?: string;
|
|
15319
|
+
work_order_id?: string | null;
|
|
14882
15320
|
};
|
|
14883
15321
|
Relationships: [{
|
|
14884
15322
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
14885
15323
|
columns: ["employee_id"];
|
|
14886
15324
|
isOneToOne: false;
|
|
14887
|
-
referencedRelation: "
|
|
15325
|
+
referencedRelation: "profiles";
|
|
15326
|
+
referencedColumns: ["id"];
|
|
15327
|
+
}, {
|
|
15328
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
15329
|
+
columns: ["work_order_id"];
|
|
15330
|
+
isOneToOne: false;
|
|
15331
|
+
referencedRelation: "work_orders";
|
|
14888
15332
|
referencedColumns: ["id"];
|
|
14889
15333
|
}];
|
|
14890
15334
|
};
|
|
@@ -14923,7 +15367,7 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
14923
15367
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
14924
15368
|
columns: ["employee_id"];
|
|
14925
15369
|
isOneToOne: false;
|
|
14926
|
-
referencedRelation: "
|
|
15370
|
+
referencedRelation: "profiles";
|
|
14927
15371
|
referencedColumns: ["id"];
|
|
14928
15372
|
}];
|
|
14929
15373
|
};
|
|
@@ -15233,6 +15677,39 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
15233
15677
|
};
|
|
15234
15678
|
Relationships: [];
|
|
15235
15679
|
};
|
|
15680
|
+
twinfield_cron_locks: {
|
|
15681
|
+
Row: {
|
|
15682
|
+
created_at: string;
|
|
15683
|
+
heartbeat_at: string;
|
|
15684
|
+
job_name: string;
|
|
15685
|
+
last_error: string | null;
|
|
15686
|
+
last_finished_at: string | null;
|
|
15687
|
+
locked_at: string;
|
|
15688
|
+
run_id: string;
|
|
15689
|
+
updated_at: string;
|
|
15690
|
+
};
|
|
15691
|
+
Insert: {
|
|
15692
|
+
created_at?: string;
|
|
15693
|
+
heartbeat_at?: string;
|
|
15694
|
+
job_name: string;
|
|
15695
|
+
last_error?: string | null;
|
|
15696
|
+
last_finished_at?: string | null;
|
|
15697
|
+
locked_at?: string;
|
|
15698
|
+
run_id?: string;
|
|
15699
|
+
updated_at?: string;
|
|
15700
|
+
};
|
|
15701
|
+
Update: {
|
|
15702
|
+
created_at?: string;
|
|
15703
|
+
heartbeat_at?: string;
|
|
15704
|
+
job_name?: string;
|
|
15705
|
+
last_error?: string | null;
|
|
15706
|
+
last_finished_at?: string | null;
|
|
15707
|
+
locked_at?: string;
|
|
15708
|
+
run_id?: string;
|
|
15709
|
+
updated_at?: string;
|
|
15710
|
+
};
|
|
15711
|
+
Relationships: [];
|
|
15712
|
+
};
|
|
15236
15713
|
twinfield_customers: {
|
|
15237
15714
|
Row: {
|
|
15238
15715
|
address: string | null;
|
|
@@ -15833,6 +16310,7 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
15833
16310
|
twinfield_push_queue: {
|
|
15834
16311
|
Row: {
|
|
15835
16312
|
action: string;
|
|
16313
|
+
attempt_started_at: string | null;
|
|
15836
16314
|
attempts: number;
|
|
15837
16315
|
connection_id: string | null;
|
|
15838
16316
|
created_at: string;
|
|
@@ -15849,6 +16327,7 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
15849
16327
|
};
|
|
15850
16328
|
Insert: {
|
|
15851
16329
|
action?: string;
|
|
16330
|
+
attempt_started_at?: string | null;
|
|
15852
16331
|
attempts?: number;
|
|
15853
16332
|
connection_id?: string | null;
|
|
15854
16333
|
created_at?: string;
|
|
@@ -15865,6 +16344,7 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
15865
16344
|
};
|
|
15866
16345
|
Update: {
|
|
15867
16346
|
action?: string;
|
|
16347
|
+
attempt_started_at?: string | null;
|
|
15868
16348
|
attempts?: number;
|
|
15869
16349
|
connection_id?: string | null;
|
|
15870
16350
|
created_at?: string;
|
|
@@ -16062,13 +16542,7 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
16062
16542
|
workday_end?: string | null;
|
|
16063
16543
|
workday_start?: string | null;
|
|
16064
16544
|
};
|
|
16065
|
-
Relationships: [
|
|
16066
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
16067
|
-
columns: ["monteur_id"];
|
|
16068
|
-
isOneToOne: true;
|
|
16069
|
-
referencedRelation: "monteurs";
|
|
16070
|
-
referencedColumns: ["id"];
|
|
16071
|
-
}];
|
|
16545
|
+
Relationships: [];
|
|
16072
16546
|
};
|
|
16073
16547
|
uren_entries: {
|
|
16074
16548
|
Row: {
|
|
@@ -16114,12 +16588,6 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
16114
16588
|
werkbon_id?: string | null;
|
|
16115
16589
|
};
|
|
16116
16590
|
Relationships: [{
|
|
16117
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16118
|
-
columns: ["monteur_id"];
|
|
16119
|
-
isOneToOne: false;
|
|
16120
|
-
referencedRelation: "monteurs";
|
|
16121
|
-
referencedColumns: ["id"];
|
|
16122
|
-
}, {
|
|
16123
16591
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16124
16592
|
columns: ["werkbon_id"];
|
|
16125
16593
|
isOneToOne: false;
|
|
@@ -16587,17 +17055,12 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
16587
17055
|
submitted_at?: string | null;
|
|
16588
17056
|
updated_at?: string;
|
|
16589
17057
|
};
|
|
16590
|
-
Relationships: [
|
|
16591
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
16592
|
-
columns: ["monteur_id"];
|
|
16593
|
-
isOneToOne: false;
|
|
16594
|
-
referencedRelation: "monteurs";
|
|
16595
|
-
referencedColumns: ["id"];
|
|
16596
|
-
}];
|
|
17058
|
+
Relationships: [];
|
|
16597
17059
|
};
|
|
16598
17060
|
user_module_permissions: {
|
|
16599
17061
|
Row: {
|
|
16600
17062
|
created_at: string;
|
|
17063
|
+
feature_id: string;
|
|
16601
17064
|
id: string;
|
|
16602
17065
|
module_id: string;
|
|
16603
17066
|
permission: string;
|
|
@@ -16606,6 +17069,7 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
16606
17069
|
};
|
|
16607
17070
|
Insert: {
|
|
16608
17071
|
created_at?: string;
|
|
17072
|
+
feature_id?: string;
|
|
16609
17073
|
id?: string;
|
|
16610
17074
|
module_id: string;
|
|
16611
17075
|
permission: string;
|
|
@@ -16614,6 +17078,7 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
16614
17078
|
};
|
|
16615
17079
|
Update: {
|
|
16616
17080
|
created_at?: string;
|
|
17081
|
+
feature_id?: string;
|
|
16617
17082
|
id?: string;
|
|
16618
17083
|
module_id?: string;
|
|
16619
17084
|
permission?: string;
|
|
@@ -16649,6 +17114,51 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
16649
17114
|
referencedColumns: ["id"];
|
|
16650
17115
|
}];
|
|
16651
17116
|
};
|
|
17117
|
+
van_inventories: {
|
|
17118
|
+
Row: {
|
|
17119
|
+
barcode: string | null;
|
|
17120
|
+
created_at: string;
|
|
17121
|
+
id: string;
|
|
17122
|
+
monteur_id: string | null;
|
|
17123
|
+
price_per_unit: number;
|
|
17124
|
+
product_name: string;
|
|
17125
|
+
quantity_current: number;
|
|
17126
|
+
quantity_min: number;
|
|
17127
|
+
unit: string;
|
|
17128
|
+
updated_at: string;
|
|
17129
|
+
};
|
|
17130
|
+
Insert: {
|
|
17131
|
+
barcode?: string | null;
|
|
17132
|
+
created_at?: string;
|
|
17133
|
+
id?: string;
|
|
17134
|
+
monteur_id?: string | null;
|
|
17135
|
+
price_per_unit?: number;
|
|
17136
|
+
product_name: string;
|
|
17137
|
+
quantity_current?: number;
|
|
17138
|
+
quantity_min?: number;
|
|
17139
|
+
unit?: string;
|
|
17140
|
+
updated_at?: string;
|
|
17141
|
+
};
|
|
17142
|
+
Update: {
|
|
17143
|
+
barcode?: string | null;
|
|
17144
|
+
created_at?: string;
|
|
17145
|
+
id?: string;
|
|
17146
|
+
monteur_id?: string | null;
|
|
17147
|
+
price_per_unit?: number;
|
|
17148
|
+
product_name?: string;
|
|
17149
|
+
quantity_current?: number;
|
|
17150
|
+
quantity_min?: number;
|
|
17151
|
+
unit?: string;
|
|
17152
|
+
updated_at?: string;
|
|
17153
|
+
};
|
|
17154
|
+
Relationships: [{
|
|
17155
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
17156
|
+
columns: ["monteur_id"];
|
|
17157
|
+
isOneToOne: false;
|
|
17158
|
+
referencedRelation: "profiles";
|
|
17159
|
+
referencedColumns: ["id"];
|
|
17160
|
+
}];
|
|
17161
|
+
};
|
|
16652
17162
|
voorraad_custom_fields: {
|
|
16653
17163
|
Row: {
|
|
16654
17164
|
created_at: string;
|
|
@@ -17599,7 +18109,7 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
17599
18109
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
17600
18110
|
columns: ["monteur_id"];
|
|
17601
18111
|
isOneToOne: false;
|
|
17602
|
-
referencedRelation: "
|
|
18112
|
+
referencedRelation: "profiles";
|
|
17603
18113
|
referencedColumns: ["id"];
|
|
17604
18114
|
}, {
|
|
17605
18115
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -17609,6 +18119,60 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
17609
18119
|
referencedColumns: ["id"];
|
|
17610
18120
|
}];
|
|
17611
18121
|
};
|
|
18122
|
+
work_order_photos: {
|
|
18123
|
+
Row: {
|
|
18124
|
+
ai_caption: string | null;
|
|
18125
|
+
ai_categorized_at: string | null;
|
|
18126
|
+
ai_labels: import("./types").Json | null;
|
|
18127
|
+
caption: string | null;
|
|
18128
|
+
created_at: string;
|
|
18129
|
+
id: string;
|
|
18130
|
+
monteur_id: string | null;
|
|
18131
|
+
photo_type: string;
|
|
18132
|
+
storage_path: string;
|
|
18133
|
+
updated_at: string;
|
|
18134
|
+
work_order_id: string;
|
|
18135
|
+
};
|
|
18136
|
+
Insert: {
|
|
18137
|
+
ai_caption?: string | null;
|
|
18138
|
+
ai_categorized_at?: string | null;
|
|
18139
|
+
ai_labels?: import("./types").Json | null;
|
|
18140
|
+
caption?: string | null;
|
|
18141
|
+
created_at?: string;
|
|
18142
|
+
id?: string;
|
|
18143
|
+
monteur_id?: string | null;
|
|
18144
|
+
photo_type?: string;
|
|
18145
|
+
storage_path: string;
|
|
18146
|
+
updated_at?: string;
|
|
18147
|
+
work_order_id: string;
|
|
18148
|
+
};
|
|
18149
|
+
Update: {
|
|
18150
|
+
ai_caption?: string | null;
|
|
18151
|
+
ai_categorized_at?: string | null;
|
|
18152
|
+
ai_labels?: import("./types").Json | null;
|
|
18153
|
+
caption?: string | null;
|
|
18154
|
+
created_at?: string;
|
|
18155
|
+
id?: string;
|
|
18156
|
+
monteur_id?: string | null;
|
|
18157
|
+
photo_type?: string;
|
|
18158
|
+
storage_path?: string;
|
|
18159
|
+
updated_at?: string;
|
|
18160
|
+
work_order_id?: string;
|
|
18161
|
+
};
|
|
18162
|
+
Relationships: [{
|
|
18163
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
18164
|
+
columns: ["monteur_id"];
|
|
18165
|
+
isOneToOne: false;
|
|
18166
|
+
referencedRelation: "profiles";
|
|
18167
|
+
referencedColumns: ["id"];
|
|
18168
|
+
}, {
|
|
18169
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
18170
|
+
columns: ["work_order_id"];
|
|
18171
|
+
isOneToOne: false;
|
|
18172
|
+
referencedRelation: "work_orders";
|
|
18173
|
+
referencedColumns: ["id"];
|
|
18174
|
+
}];
|
|
18175
|
+
};
|
|
17612
18176
|
work_orders: {
|
|
17613
18177
|
Row: {
|
|
17614
18178
|
assigned_to: string | null;
|
|
@@ -17640,7 +18204,6 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
17640
18204
|
scheduled_end_time: string | null;
|
|
17641
18205
|
scheduled_start_time: string | null;
|
|
17642
18206
|
status: string;
|
|
17643
|
-
tenant_id: string;
|
|
17644
18207
|
total_hours_worked: number | null;
|
|
17645
18208
|
total_price: number | null;
|
|
17646
18209
|
travel_time_minutes: number | null;
|
|
@@ -17678,7 +18241,6 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
17678
18241
|
scheduled_end_time?: string | null;
|
|
17679
18242
|
scheduled_start_time?: string | null;
|
|
17680
18243
|
status?: string;
|
|
17681
|
-
tenant_id: string;
|
|
17682
18244
|
total_hours_worked?: number | null;
|
|
17683
18245
|
total_price?: number | null;
|
|
17684
18246
|
travel_time_minutes?: number | null;
|
|
@@ -17716,7 +18278,6 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
17716
18278
|
scheduled_end_time?: string | null;
|
|
17717
18279
|
scheduled_start_time?: string | null;
|
|
17718
18280
|
status?: string;
|
|
17719
|
-
tenant_id?: string;
|
|
17720
18281
|
total_hours_worked?: number | null;
|
|
17721
18282
|
total_price?: number | null;
|
|
17722
18283
|
travel_time_minutes?: number | null;
|
|
@@ -17730,12 +18291,6 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
17730
18291
|
isOneToOne: false;
|
|
17731
18292
|
referencedRelation: "work_orders";
|
|
17732
18293
|
referencedColumns: ["id"];
|
|
17733
|
-
}, {
|
|
17734
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
17735
|
-
columns: ["tenant_id"];
|
|
17736
|
-
isOneToOne: false;
|
|
17737
|
-
referencedRelation: "tenants";
|
|
17738
|
-
referencedColumns: ["id"];
|
|
17739
18294
|
}];
|
|
17740
18295
|
};
|
|
17741
18296
|
};
|
|
@@ -18420,6 +18975,19 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
18420
18975
|
};
|
|
18421
18976
|
Returns: undefined;
|
|
18422
18977
|
};
|
|
18978
|
+
approve_mailbox_order_proposal: {
|
|
18979
|
+
Args: {
|
|
18980
|
+
p_custom_fields: import("./types").Json;
|
|
18981
|
+
p_customer_id: string;
|
|
18982
|
+
p_delivery_date: string;
|
|
18983
|
+
p_field_values?: import("./types").Json;
|
|
18984
|
+
p_lines: import("./types").Json;
|
|
18985
|
+
p_notes: string;
|
|
18986
|
+
p_proposal_id: string;
|
|
18987
|
+
p_reviewed_by: string;
|
|
18988
|
+
};
|
|
18989
|
+
Returns: import("./types").Json;
|
|
18990
|
+
};
|
|
18423
18991
|
assign_cart_numbers: {
|
|
18424
18992
|
Args: {
|
|
18425
18993
|
p_carts: import("./types").Json;
|
|
@@ -18471,6 +19039,10 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
18471
19039
|
};
|
|
18472
19040
|
Returns: number;
|
|
18473
19041
|
};
|
|
19042
|
+
can_manage_hours: {
|
|
19043
|
+
Args: never;
|
|
19044
|
+
Returns: boolean;
|
|
19045
|
+
};
|
|
18474
19046
|
check_offer_product_available_stock: {
|
|
18475
19047
|
Args: {
|
|
18476
19048
|
p_campaign_product_id: string;
|
|
@@ -18660,6 +19232,7 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
18660
19232
|
};
|
|
18661
19233
|
Returns: {
|
|
18662
19234
|
action: string;
|
|
19235
|
+
attempt_started_at: string | null;
|
|
18663
19236
|
attempts: number;
|
|
18664
19237
|
connection_id: string | null;
|
|
18665
19238
|
created_at: string;
|
|
@@ -18747,6 +19320,30 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
18747
19320
|
agent_naam: string;
|
|
18748
19321
|
}[];
|
|
18749
19322
|
};
|
|
19323
|
+
consume_van_inventory: {
|
|
19324
|
+
Args: {
|
|
19325
|
+
p_inventory_id: string;
|
|
19326
|
+
p_quantity: number;
|
|
19327
|
+
};
|
|
19328
|
+
Returns: {
|
|
19329
|
+
barcode: string | null;
|
|
19330
|
+
created_at: string;
|
|
19331
|
+
id: string;
|
|
19332
|
+
monteur_id: string | null;
|
|
19333
|
+
price_per_unit: number;
|
|
19334
|
+
product_name: string;
|
|
19335
|
+
quantity_current: number;
|
|
19336
|
+
quantity_min: number;
|
|
19337
|
+
unit: string;
|
|
19338
|
+
updated_at: string;
|
|
19339
|
+
};
|
|
19340
|
+
SetofOptions: {
|
|
19341
|
+
from: "*";
|
|
19342
|
+
to: "van_inventories";
|
|
19343
|
+
isOneToOne: true;
|
|
19344
|
+
isSetofReturn: false;
|
|
19345
|
+
};
|
|
19346
|
+
};
|
|
18750
19347
|
control_get_todays_carts: {
|
|
18751
19348
|
Args: never;
|
|
18752
19349
|
Returns: {
|
|
@@ -18820,6 +19417,13 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
18820
19417
|
_user_id: string;
|
|
18821
19418
|
};
|
|
18822
19419
|
Returns: string;
|
|
19420
|
+
} | {
|
|
19421
|
+
Args: {
|
|
19422
|
+
_feature_id?: string;
|
|
19423
|
+
_module_id: string;
|
|
19424
|
+
_user_id: string;
|
|
19425
|
+
};
|
|
19426
|
+
Returns: string;
|
|
18823
19427
|
};
|
|
18824
19428
|
email_auth_decrypt: {
|
|
18825
19429
|
Args: {
|
|
@@ -19171,12 +19775,6 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
19171
19775
|
Args: never;
|
|
19172
19776
|
Returns: string;
|
|
19173
19777
|
};
|
|
19174
|
-
get_work_order_tenant_id: {
|
|
19175
|
-
Args: {
|
|
19176
|
-
wo_id: string;
|
|
19177
|
-
};
|
|
19178
|
-
Returns: string;
|
|
19179
|
-
};
|
|
19180
19778
|
has_module_permission: {
|
|
19181
19779
|
Args: {
|
|
19182
19780
|
_min: string;
|
|
@@ -19210,6 +19808,13 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
19210
19808
|
};
|
|
19211
19809
|
Returns: boolean;
|
|
19212
19810
|
};
|
|
19811
|
+
is_time_log_week_locked: {
|
|
19812
|
+
Args: {
|
|
19813
|
+
p_employee_id: string;
|
|
19814
|
+
p_start_time: string;
|
|
19815
|
+
};
|
|
19816
|
+
Returns: boolean;
|
|
19817
|
+
};
|
|
19213
19818
|
is_user_admin: {
|
|
19214
19819
|
Args: never;
|
|
19215
19820
|
Returns: boolean;
|
|
@@ -19224,13 +19829,14 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
19224
19829
|
};
|
|
19225
19830
|
Returns: boolean;
|
|
19226
19831
|
};
|
|
19227
|
-
|
|
19832
|
+
list_medewerkers: {
|
|
19228
19833
|
Args: never;
|
|
19229
19834
|
Returns: {
|
|
19230
19835
|
avatar_url: string;
|
|
19231
19836
|
display_name: string;
|
|
19232
19837
|
email: string;
|
|
19233
19838
|
id: string;
|
|
19839
|
+
roles: string[];
|
|
19234
19840
|
}[];
|
|
19235
19841
|
};
|
|
19236
19842
|
list_my_planning_items: {
|
|
@@ -19721,6 +20327,65 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
19721
20327
|
};
|
|
19722
20328
|
Returns: number;
|
|
19723
20329
|
};
|
|
20330
|
+
logistics_plan_claim: {
|
|
20331
|
+
Args: {
|
|
20332
|
+
p_limit?: number;
|
|
20333
|
+
};
|
|
20334
|
+
Returns: {
|
|
20335
|
+
attempts: number;
|
|
20336
|
+
id: string;
|
|
20337
|
+
order_id: string;
|
|
20338
|
+
}[];
|
|
20339
|
+
};
|
|
20340
|
+
logistics_plan_enqueue: {
|
|
20341
|
+
Args: {
|
|
20342
|
+
p_order_id: string;
|
|
20343
|
+
p_reason?: string;
|
|
20344
|
+
};
|
|
20345
|
+
Returns: undefined;
|
|
20346
|
+
};
|
|
20347
|
+
logistics_plan_ensure_event: {
|
|
20348
|
+
Args: {
|
|
20349
|
+
p_order_id: string;
|
|
20350
|
+
};
|
|
20351
|
+
Returns: boolean;
|
|
20352
|
+
};
|
|
20353
|
+
logistics_plan_finish: {
|
|
20354
|
+
Args: {
|
|
20355
|
+
p_error?: string;
|
|
20356
|
+
p_id: string;
|
|
20357
|
+
};
|
|
20358
|
+
Returns: undefined;
|
|
20359
|
+
};
|
|
20360
|
+
logistics_plan_impact_orders: {
|
|
20361
|
+
Args: {
|
|
20362
|
+
p_order_id: string;
|
|
20363
|
+
};
|
|
20364
|
+
Returns: {
|
|
20365
|
+
buffer_id: string;
|
|
20366
|
+
order_id: string;
|
|
20367
|
+
plan_date: string;
|
|
20368
|
+
}[];
|
|
20369
|
+
};
|
|
20370
|
+
logistics_plan_kick: {
|
|
20371
|
+
Args: never;
|
|
20372
|
+
Returns: undefined;
|
|
20373
|
+
};
|
|
20374
|
+
logistics_plan_prune: {
|
|
20375
|
+
Args: never;
|
|
20376
|
+
Returns: number;
|
|
20377
|
+
};
|
|
20378
|
+
logistics_plan_release_stale: {
|
|
20379
|
+
Args: never;
|
|
20380
|
+
Returns: number;
|
|
20381
|
+
};
|
|
20382
|
+
logistics_plan_setting: {
|
|
20383
|
+
Args: {
|
|
20384
|
+
p_default: number;
|
|
20385
|
+
p_key: string;
|
|
20386
|
+
};
|
|
20387
|
+
Returns: number;
|
|
20388
|
+
};
|
|
19724
20389
|
logistics_queue_capacity_email: {
|
|
19725
20390
|
Args: {
|
|
19726
20391
|
p_alert_id: string;
|
|
@@ -19962,6 +20627,7 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
19962
20627
|
my_module_permissions: {
|
|
19963
20628
|
Args: never;
|
|
19964
20629
|
Returns: {
|
|
20630
|
+
feature_id: string;
|
|
19965
20631
|
module_id: string;
|
|
19966
20632
|
permission: string;
|
|
19967
20633
|
}[];
|
|
@@ -20842,6 +21508,16 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
20842
21508
|
};
|
|
20843
21509
|
Returns: string[];
|
|
20844
21510
|
};
|
|
21511
|
+
switch_time_log: {
|
|
21512
|
+
Args: {
|
|
21513
|
+
p_employee_id: string;
|
|
21514
|
+
p_start_lat?: number;
|
|
21515
|
+
p_start_lng?: number;
|
|
21516
|
+
p_type: string;
|
|
21517
|
+
p_work_order_id?: string;
|
|
21518
|
+
};
|
|
21519
|
+
Returns: import("./types").Json;
|
|
21520
|
+
};
|
|
20845
21521
|
sync_all_layer_stocks: {
|
|
20846
21522
|
Args: never;
|
|
20847
21523
|
Returns: undefined;
|
|
@@ -20892,6 +21568,24 @@ export declare const supabaseAdmin: SupabaseClient<Database, "public", "public",
|
|
|
20892
21568
|
};
|
|
20893
21569
|
Returns: boolean;
|
|
20894
21570
|
};
|
|
21571
|
+
twinfield_cron_lock_acquire: {
|
|
21572
|
+
Args: {
|
|
21573
|
+
_job_name: string;
|
|
21574
|
+
_stale_seconds?: number;
|
|
21575
|
+
};
|
|
21576
|
+
Returns: boolean;
|
|
21577
|
+
};
|
|
21578
|
+
twinfield_cron_lock_release: {
|
|
21579
|
+
Args: {
|
|
21580
|
+
_error?: string;
|
|
21581
|
+
_job_name: string;
|
|
21582
|
+
};
|
|
21583
|
+
Returns: undefined;
|
|
21584
|
+
};
|
|
21585
|
+
twinfield_prune_push_queue: {
|
|
21586
|
+
Args: never;
|
|
21587
|
+
Returns: number;
|
|
21588
|
+
};
|
|
20895
21589
|
twinfield_register_cron: {
|
|
20896
21590
|
Args: {
|
|
20897
21591
|
apikey?: string;
|