@flowselections/floriday-verkoop-module 1.0.41 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/VerkoopOrdersPage.js +50 -15
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +847 -150
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +847 -150
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +847 -150
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +855 -153
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/cart-lock.functions.d.ts +847 -150
- package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-planning-settings.functions.d.ts +8943 -1276
- package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.d.ts +2439 -348
- package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.d.ts +33856 -1741
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.js +30 -0
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +2439 -348
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +847 -150
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.d.ts +847 -150
- package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +5691 -812
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +4065 -580
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.functions.d.ts +3252 -464
- package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
- package/dist-lib/lib/load-carriers.functions.d.ts +847 -150
- package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-engine.functions.d.ts +4065 -580
- package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-stock.functions.d.ts +1626 -232
- package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-addresses.functions.d.ts +847 -150
- package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-buffers.functions.d.ts +2439 -348
- package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-carrier.functions.d.ts +1626 -232
- package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-pickup.functions.d.ts +1626 -232
- package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-shipments.functions.d.ts +3252 -464
- package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.functions.d.ts +847 -150
- package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-mapping.d.ts +6 -0
- package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-mapping.js +17 -0
- package/dist-lib/lib/salesorders.functions.d.ts +4065 -580
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/tradeitems.functions.d.ts +847 -150
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -871,6 +871,126 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
871
871
|
};
|
|
872
872
|
Relationships: [];
|
|
873
873
|
};
|
|
874
|
+
cao_holidays: {
|
|
875
|
+
Row: {
|
|
876
|
+
created_at: string;
|
|
877
|
+
description: string | null;
|
|
878
|
+
holiday_date: string;
|
|
879
|
+
id: string;
|
|
880
|
+
updated_at: string;
|
|
881
|
+
};
|
|
882
|
+
Insert: {
|
|
883
|
+
created_at?: string;
|
|
884
|
+
description?: string | null;
|
|
885
|
+
holiday_date: string;
|
|
886
|
+
id?: string;
|
|
887
|
+
updated_at?: string;
|
|
888
|
+
};
|
|
889
|
+
Update: {
|
|
890
|
+
created_at?: string;
|
|
891
|
+
description?: string | null;
|
|
892
|
+
holiday_date?: string;
|
|
893
|
+
id?: string;
|
|
894
|
+
updated_at?: string;
|
|
895
|
+
};
|
|
896
|
+
Relationships: [];
|
|
897
|
+
};
|
|
898
|
+
cao_settings: {
|
|
899
|
+
Row: {
|
|
900
|
+
auto_break_after_hours: number;
|
|
901
|
+
auto_break_minutes: number;
|
|
902
|
+
auto_break_unpaid: boolean;
|
|
903
|
+
auto_stop_after_hours: number;
|
|
904
|
+
callout_fee: number;
|
|
905
|
+
created_at: string;
|
|
906
|
+
daily_regular_hours: number;
|
|
907
|
+
default_hourly_rate: number;
|
|
908
|
+
id: string;
|
|
909
|
+
materials_markup_percent: number;
|
|
910
|
+
max_daily_hours: number;
|
|
911
|
+
max_weekly_hours: number;
|
|
912
|
+
meal_allowance_amount: number;
|
|
913
|
+
overtime_pct_178: number;
|
|
914
|
+
overtime_pct_189: number;
|
|
915
|
+
overtime_pct_212: number;
|
|
916
|
+
reminder_after_hours: number;
|
|
917
|
+
standby_evening_amount: number;
|
|
918
|
+
standby_weekend_amount: number;
|
|
919
|
+
travel_cost_per_km: number | null;
|
|
920
|
+
travel_cost_threshold_km: number | null;
|
|
921
|
+
travel_counts_as_work: boolean;
|
|
922
|
+
travel_hourly_rate: number;
|
|
923
|
+
travel_rate_per_hour: number;
|
|
924
|
+
travel_threshold_minutes: number;
|
|
925
|
+
updated_at: string;
|
|
926
|
+
weekend_always_212: boolean;
|
|
927
|
+
window_end: string;
|
|
928
|
+
window_start: string;
|
|
929
|
+
};
|
|
930
|
+
Insert: {
|
|
931
|
+
auto_break_after_hours?: number;
|
|
932
|
+
auto_break_minutes?: number;
|
|
933
|
+
auto_break_unpaid?: boolean;
|
|
934
|
+
auto_stop_after_hours?: number;
|
|
935
|
+
callout_fee?: number;
|
|
936
|
+
created_at?: string;
|
|
937
|
+
daily_regular_hours?: number;
|
|
938
|
+
default_hourly_rate?: number;
|
|
939
|
+
id?: string;
|
|
940
|
+
materials_markup_percent?: number;
|
|
941
|
+
max_daily_hours?: number;
|
|
942
|
+
max_weekly_hours?: number;
|
|
943
|
+
meal_allowance_amount?: number;
|
|
944
|
+
overtime_pct_178?: number;
|
|
945
|
+
overtime_pct_189?: number;
|
|
946
|
+
overtime_pct_212?: number;
|
|
947
|
+
reminder_after_hours?: number;
|
|
948
|
+
standby_evening_amount?: number;
|
|
949
|
+
standby_weekend_amount?: number;
|
|
950
|
+
travel_cost_per_km?: number | null;
|
|
951
|
+
travel_cost_threshold_km?: number | null;
|
|
952
|
+
travel_counts_as_work?: boolean;
|
|
953
|
+
travel_hourly_rate?: number;
|
|
954
|
+
travel_rate_per_hour?: number;
|
|
955
|
+
travel_threshold_minutes?: number;
|
|
956
|
+
updated_at?: string;
|
|
957
|
+
weekend_always_212?: boolean;
|
|
958
|
+
window_end?: string;
|
|
959
|
+
window_start?: string;
|
|
960
|
+
};
|
|
961
|
+
Update: {
|
|
962
|
+
auto_break_after_hours?: number;
|
|
963
|
+
auto_break_minutes?: number;
|
|
964
|
+
auto_break_unpaid?: boolean;
|
|
965
|
+
auto_stop_after_hours?: number;
|
|
966
|
+
callout_fee?: number;
|
|
967
|
+
created_at?: string;
|
|
968
|
+
daily_regular_hours?: number;
|
|
969
|
+
default_hourly_rate?: number;
|
|
970
|
+
id?: string;
|
|
971
|
+
materials_markup_percent?: number;
|
|
972
|
+
max_daily_hours?: number;
|
|
973
|
+
max_weekly_hours?: number;
|
|
974
|
+
meal_allowance_amount?: number;
|
|
975
|
+
overtime_pct_178?: number;
|
|
976
|
+
overtime_pct_189?: number;
|
|
977
|
+
overtime_pct_212?: number;
|
|
978
|
+
reminder_after_hours?: number;
|
|
979
|
+
standby_evening_amount?: number;
|
|
980
|
+
standby_weekend_amount?: number;
|
|
981
|
+
travel_cost_per_km?: number | null;
|
|
982
|
+
travel_cost_threshold_km?: number | null;
|
|
983
|
+
travel_counts_as_work?: boolean;
|
|
984
|
+
travel_hourly_rate?: number;
|
|
985
|
+
travel_rate_per_hour?: number;
|
|
986
|
+
travel_threshold_minutes?: number;
|
|
987
|
+
updated_at?: string;
|
|
988
|
+
weekend_always_212?: boolean;
|
|
989
|
+
window_end?: string;
|
|
990
|
+
window_start?: string;
|
|
991
|
+
};
|
|
992
|
+
Relationships: [];
|
|
993
|
+
};
|
|
874
994
|
carrier_shipping_rates: {
|
|
875
995
|
Row: {
|
|
876
996
|
carrier_id: string;
|
|
@@ -7765,7 +7885,6 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
7765
7885
|
start_date: string;
|
|
7766
7886
|
start_time: string | null;
|
|
7767
7887
|
status: string;
|
|
7768
|
-
tenant_id: string;
|
|
7769
7888
|
updated_at: string;
|
|
7770
7889
|
user_id: string;
|
|
7771
7890
|
};
|
|
@@ -7783,7 +7902,6 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
7783
7902
|
start_date: string;
|
|
7784
7903
|
start_time?: string | null;
|
|
7785
7904
|
status?: string;
|
|
7786
|
-
tenant_id?: string;
|
|
7787
7905
|
updated_at?: string;
|
|
7788
7906
|
user_id: string;
|
|
7789
7907
|
};
|
|
@@ -7801,7 +7919,6 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
7801
7919
|
start_date?: string;
|
|
7802
7920
|
start_time?: string | null;
|
|
7803
7921
|
status?: string;
|
|
7804
|
-
tenant_id?: string;
|
|
7805
7922
|
updated_at?: string;
|
|
7806
7923
|
user_id?: string;
|
|
7807
7924
|
};
|
|
@@ -7809,13 +7926,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
7809
7926
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
7810
7927
|
columns: ["monteur_id"];
|
|
7811
7928
|
isOneToOne: false;
|
|
7812
|
-
referencedRelation: "
|
|
7929
|
+
referencedRelation: "profiles";
|
|
7813
7930
|
referencedColumns: ["id"];
|
|
7814
7931
|
}, {
|
|
7815
7932
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
7816
7933
|
columns: ["user_id"];
|
|
7817
7934
|
isOneToOne: false;
|
|
7818
|
-
referencedRelation: "
|
|
7935
|
+
referencedRelation: "profiles";
|
|
7819
7936
|
referencedColumns: ["id"];
|
|
7820
7937
|
}];
|
|
7821
7938
|
};
|
|
@@ -8683,6 +8800,45 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
8683
8800
|
};
|
|
8684
8801
|
Relationships: [];
|
|
8685
8802
|
};
|
|
8803
|
+
logistics_plan_queue: {
|
|
8804
|
+
Row: {
|
|
8805
|
+
attempts: number;
|
|
8806
|
+
claimed_at: string | null;
|
|
8807
|
+
enqueued_at: string;
|
|
8808
|
+
error: string | null;
|
|
8809
|
+
id: string;
|
|
8810
|
+
next_attempt_at: string;
|
|
8811
|
+
order_id: string;
|
|
8812
|
+
reason: string;
|
|
8813
|
+
status: string;
|
|
8814
|
+
updated_at: string;
|
|
8815
|
+
};
|
|
8816
|
+
Insert: {
|
|
8817
|
+
attempts?: number;
|
|
8818
|
+
claimed_at?: string | null;
|
|
8819
|
+
enqueued_at?: string;
|
|
8820
|
+
error?: string | null;
|
|
8821
|
+
id?: string;
|
|
8822
|
+
next_attempt_at?: string;
|
|
8823
|
+
order_id: string;
|
|
8824
|
+
reason?: string;
|
|
8825
|
+
status?: string;
|
|
8826
|
+
updated_at?: string;
|
|
8827
|
+
};
|
|
8828
|
+
Update: {
|
|
8829
|
+
attempts?: number;
|
|
8830
|
+
claimed_at?: string | null;
|
|
8831
|
+
enqueued_at?: string;
|
|
8832
|
+
error?: string | null;
|
|
8833
|
+
id?: string;
|
|
8834
|
+
next_attempt_at?: string;
|
|
8835
|
+
order_id?: string;
|
|
8836
|
+
reason?: string;
|
|
8837
|
+
status?: string;
|
|
8838
|
+
updated_at?: string;
|
|
8839
|
+
};
|
|
8840
|
+
Relationships: [];
|
|
8841
|
+
};
|
|
8686
8842
|
logistics_plan_runs: {
|
|
8687
8843
|
Row: {
|
|
8688
8844
|
created_at: string;
|
|
@@ -8758,6 +8914,24 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
8758
8914
|
referencedColumns: ["id"];
|
|
8759
8915
|
}];
|
|
8760
8916
|
};
|
|
8917
|
+
logistics_plan_settings: {
|
|
8918
|
+
Row: {
|
|
8919
|
+
key: string;
|
|
8920
|
+
updated_at: string;
|
|
8921
|
+
value: string;
|
|
8922
|
+
};
|
|
8923
|
+
Insert: {
|
|
8924
|
+
key: string;
|
|
8925
|
+
updated_at?: string;
|
|
8926
|
+
value: string;
|
|
8927
|
+
};
|
|
8928
|
+
Update: {
|
|
8929
|
+
key?: string;
|
|
8930
|
+
updated_at?: string;
|
|
8931
|
+
value?: string;
|
|
8932
|
+
};
|
|
8933
|
+
Relationships: [];
|
|
8934
|
+
};
|
|
8761
8935
|
logistics_rebuffer_state: {
|
|
8762
8936
|
Row: {
|
|
8763
8937
|
created_at: string;
|
|
@@ -9913,6 +10087,90 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
9913
10087
|
};
|
|
9914
10088
|
Relationships: [];
|
|
9915
10089
|
};
|
|
10090
|
+
material_usage: {
|
|
10091
|
+
Row: {
|
|
10092
|
+
created_at: string;
|
|
10093
|
+
id: string;
|
|
10094
|
+
material_name: string;
|
|
10095
|
+
monteur_id: string | null;
|
|
10096
|
+
price_at_time: number;
|
|
10097
|
+
quantity_used: number;
|
|
10098
|
+
updated_at: string;
|
|
10099
|
+
van_inventory_id: string | null;
|
|
10100
|
+
work_order_id: string;
|
|
10101
|
+
};
|
|
10102
|
+
Insert: {
|
|
10103
|
+
created_at?: string;
|
|
10104
|
+
id?: string;
|
|
10105
|
+
material_name: string;
|
|
10106
|
+
monteur_id?: string | null;
|
|
10107
|
+
price_at_time?: number;
|
|
10108
|
+
quantity_used?: number;
|
|
10109
|
+
updated_at?: string;
|
|
10110
|
+
van_inventory_id?: string | null;
|
|
10111
|
+
work_order_id: string;
|
|
10112
|
+
};
|
|
10113
|
+
Update: {
|
|
10114
|
+
created_at?: string;
|
|
10115
|
+
id?: string;
|
|
10116
|
+
material_name?: string;
|
|
10117
|
+
monteur_id?: string | null;
|
|
10118
|
+
price_at_time?: number;
|
|
10119
|
+
quantity_used?: number;
|
|
10120
|
+
updated_at?: string;
|
|
10121
|
+
van_inventory_id?: string | null;
|
|
10122
|
+
work_order_id?: string;
|
|
10123
|
+
};
|
|
10124
|
+
Relationships: [{
|
|
10125
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
10126
|
+
columns: ["monteur_id"];
|
|
10127
|
+
isOneToOne: false;
|
|
10128
|
+
referencedRelation: "profiles";
|
|
10129
|
+
referencedColumns: ["id"];
|
|
10130
|
+
}, {
|
|
10131
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
10132
|
+
columns: ["van_inventory_id"];
|
|
10133
|
+
isOneToOne: false;
|
|
10134
|
+
referencedRelation: "van_inventories";
|
|
10135
|
+
referencedColumns: ["id"];
|
|
10136
|
+
}, {
|
|
10137
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
10138
|
+
columns: ["work_order_id"];
|
|
10139
|
+
isOneToOne: false;
|
|
10140
|
+
referencedRelation: "work_orders";
|
|
10141
|
+
referencedColumns: ["id"];
|
|
10142
|
+
}];
|
|
10143
|
+
};
|
|
10144
|
+
module_features: {
|
|
10145
|
+
Row: {
|
|
10146
|
+
created_at: string;
|
|
10147
|
+
feature_id: string;
|
|
10148
|
+
id: string;
|
|
10149
|
+
is_active: boolean;
|
|
10150
|
+
last_seen_at: string;
|
|
10151
|
+
module_id: string;
|
|
10152
|
+
name: string;
|
|
10153
|
+
};
|
|
10154
|
+
Insert: {
|
|
10155
|
+
created_at?: string;
|
|
10156
|
+
feature_id: string;
|
|
10157
|
+
id?: string;
|
|
10158
|
+
is_active?: boolean;
|
|
10159
|
+
last_seen_at?: string;
|
|
10160
|
+
module_id: string;
|
|
10161
|
+
name: string;
|
|
10162
|
+
};
|
|
10163
|
+
Update: {
|
|
10164
|
+
created_at?: string;
|
|
10165
|
+
feature_id?: string;
|
|
10166
|
+
id?: string;
|
|
10167
|
+
is_active?: boolean;
|
|
10168
|
+
last_seen_at?: string;
|
|
10169
|
+
module_id?: string;
|
|
10170
|
+
name?: string;
|
|
10171
|
+
};
|
|
10172
|
+
Relationships: [];
|
|
10173
|
+
};
|
|
9916
10174
|
module_permissions: {
|
|
9917
10175
|
Row: {
|
|
9918
10176
|
created_at: string;
|
|
@@ -9943,6 +10201,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
9943
10201
|
module_registry: {
|
|
9944
10202
|
Row: {
|
|
9945
10203
|
created_at: string;
|
|
10204
|
+
enforce: boolean;
|
|
9946
10205
|
is_active: boolean;
|
|
9947
10206
|
last_seen_at: string;
|
|
9948
10207
|
module_id: string;
|
|
@@ -9952,6 +10211,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
9952
10211
|
};
|
|
9953
10212
|
Insert: {
|
|
9954
10213
|
created_at?: string;
|
|
10214
|
+
enforce?: boolean;
|
|
9955
10215
|
is_active?: boolean;
|
|
9956
10216
|
last_seen_at?: string;
|
|
9957
10217
|
module_id: string;
|
|
@@ -9961,6 +10221,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
9961
10221
|
};
|
|
9962
10222
|
Update: {
|
|
9963
10223
|
created_at?: string;
|
|
10224
|
+
enforce?: boolean;
|
|
9964
10225
|
is_active?: boolean;
|
|
9965
10226
|
last_seen_at?: string;
|
|
9966
10227
|
module_id?: string;
|
|
@@ -10021,63 +10282,6 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
10021
10282
|
};
|
|
10022
10283
|
Relationships: [];
|
|
10023
10284
|
};
|
|
10024
|
-
monteurs: {
|
|
10025
|
-
Row: {
|
|
10026
|
-
avatar_url: string | null;
|
|
10027
|
-
color: string | null;
|
|
10028
|
-
created_at: string;
|
|
10029
|
-
email: string | null;
|
|
10030
|
-
id: string;
|
|
10031
|
-
is_active: boolean;
|
|
10032
|
-
leave_balance_hours: number;
|
|
10033
|
-
name: string;
|
|
10034
|
-
persnr: number | null;
|
|
10035
|
-
phone: string | null;
|
|
10036
|
-
role: string;
|
|
10037
|
-
tenant_id: string;
|
|
10038
|
-
updated_at: string;
|
|
10039
|
-
user_id: string | null;
|
|
10040
|
-
};
|
|
10041
|
-
Insert: {
|
|
10042
|
-
avatar_url?: string | null;
|
|
10043
|
-
color?: string | null;
|
|
10044
|
-
created_at?: string;
|
|
10045
|
-
email?: string | null;
|
|
10046
|
-
id?: string;
|
|
10047
|
-
is_active?: boolean;
|
|
10048
|
-
leave_balance_hours?: number;
|
|
10049
|
-
name: string;
|
|
10050
|
-
persnr?: number | null;
|
|
10051
|
-
phone?: string | null;
|
|
10052
|
-
role?: string;
|
|
10053
|
-
tenant_id: string;
|
|
10054
|
-
updated_at?: string;
|
|
10055
|
-
user_id?: string | null;
|
|
10056
|
-
};
|
|
10057
|
-
Update: {
|
|
10058
|
-
avatar_url?: string | null;
|
|
10059
|
-
color?: string | null;
|
|
10060
|
-
created_at?: string;
|
|
10061
|
-
email?: string | null;
|
|
10062
|
-
id?: string;
|
|
10063
|
-
is_active?: boolean;
|
|
10064
|
-
leave_balance_hours?: number;
|
|
10065
|
-
name?: string;
|
|
10066
|
-
persnr?: number | null;
|
|
10067
|
-
phone?: string | null;
|
|
10068
|
-
role?: string;
|
|
10069
|
-
tenant_id?: string;
|
|
10070
|
-
updated_at?: string;
|
|
10071
|
-
user_id?: string | null;
|
|
10072
|
-
};
|
|
10073
|
-
Relationships: [{
|
|
10074
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
10075
|
-
columns: ["tenant_id"];
|
|
10076
|
-
isOneToOne: false;
|
|
10077
|
-
referencedRelation: "tenants";
|
|
10078
|
-
referencedColumns: ["id"];
|
|
10079
|
-
}];
|
|
10080
|
-
};
|
|
10081
10285
|
nmbrs_component_mapping: {
|
|
10082
10286
|
Row: {
|
|
10083
10287
|
created_at: string;
|
|
@@ -10148,13 +10352,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
10148
10352
|
nmbrs_employee_number?: string;
|
|
10149
10353
|
updated_at?: string;
|
|
10150
10354
|
};
|
|
10151
|
-
Relationships: [
|
|
10152
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10153
|
-
columns: ["monteur_id"];
|
|
10154
|
-
isOneToOne: true;
|
|
10155
|
-
referencedRelation: "monteurs";
|
|
10156
|
-
referencedColumns: ["id"];
|
|
10157
|
-
}];
|
|
10355
|
+
Relationships: [];
|
|
10158
10356
|
};
|
|
10159
10357
|
nmbrs_export_lines: {
|
|
10160
10358
|
Row: {
|
|
@@ -10203,12 +10401,6 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
10203
10401
|
wage_code?: string;
|
|
10204
10402
|
};
|
|
10205
10403
|
Relationships: [{
|
|
10206
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10207
|
-
columns: ["monteur_id"];
|
|
10208
|
-
isOneToOne: false;
|
|
10209
|
-
referencedRelation: "monteurs";
|
|
10210
|
-
referencedColumns: ["id"];
|
|
10211
|
-
}, {
|
|
10212
10404
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10213
10405
|
columns: ["run_id"];
|
|
10214
10406
|
isOneToOne: false;
|
|
@@ -11036,6 +11228,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
11036
11228
|
error_message: string | null;
|
|
11037
11229
|
id: string;
|
|
11038
11230
|
invoice_number: string | null;
|
|
11231
|
+
next_attempt_at: string;
|
|
11039
11232
|
order_id: string;
|
|
11040
11233
|
processed_at: string | null;
|
|
11041
11234
|
status: string;
|
|
@@ -11047,6 +11240,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
11047
11240
|
error_message?: string | null;
|
|
11048
11241
|
id?: string;
|
|
11049
11242
|
invoice_number?: string | null;
|
|
11243
|
+
next_attempt_at?: string;
|
|
11050
11244
|
order_id: string;
|
|
11051
11245
|
processed_at?: string | null;
|
|
11052
11246
|
status?: string;
|
|
@@ -11058,6 +11252,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
11058
11252
|
error_message?: string | null;
|
|
11059
11253
|
id?: string;
|
|
11060
11254
|
invoice_number?: string | null;
|
|
11255
|
+
next_attempt_at?: string;
|
|
11061
11256
|
order_id?: string;
|
|
11062
11257
|
processed_at?: string | null;
|
|
11063
11258
|
status?: string;
|
|
@@ -12596,6 +12791,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
12596
12791
|
created_at: string;
|
|
12597
12792
|
id: string;
|
|
12598
12793
|
laatst_gezien: string;
|
|
12794
|
+
laatste_fout: string | null;
|
|
12795
|
+
laatste_request_id: number | null;
|
|
12796
|
+
mislukte_posts: number;
|
|
12599
12797
|
tick_sleutel: string;
|
|
12600
12798
|
updated_at: string;
|
|
12601
12799
|
};
|
|
@@ -12605,6 +12803,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
12605
12803
|
created_at?: string;
|
|
12606
12804
|
id?: string;
|
|
12607
12805
|
laatst_gezien?: string;
|
|
12806
|
+
laatste_fout?: string | null;
|
|
12807
|
+
laatste_request_id?: number | null;
|
|
12808
|
+
mislukte_posts?: number;
|
|
12608
12809
|
tick_sleutel?: string;
|
|
12609
12810
|
updated_at?: string;
|
|
12610
12811
|
};
|
|
@@ -12614,6 +12815,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
12614
12815
|
created_at?: string;
|
|
12615
12816
|
id?: string;
|
|
12616
12817
|
laatst_gezien?: string;
|
|
12818
|
+
laatste_fout?: string | null;
|
|
12819
|
+
laatste_request_id?: number | null;
|
|
12820
|
+
mislukte_posts?: number;
|
|
12617
12821
|
tick_sleutel?: string;
|
|
12618
12822
|
updated_at?: string;
|
|
12619
12823
|
};
|
|
@@ -14122,6 +14326,96 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
14122
14326
|
referencedColumns: ["id"];
|
|
14123
14327
|
}];
|
|
14124
14328
|
};
|
|
14329
|
+
role_assignments: {
|
|
14330
|
+
Row: {
|
|
14331
|
+
created_at: string;
|
|
14332
|
+
id: string;
|
|
14333
|
+
role_id: string;
|
|
14334
|
+
user_id: string;
|
|
14335
|
+
};
|
|
14336
|
+
Insert: {
|
|
14337
|
+
created_at?: string;
|
|
14338
|
+
id?: string;
|
|
14339
|
+
role_id: string;
|
|
14340
|
+
user_id: string;
|
|
14341
|
+
};
|
|
14342
|
+
Update: {
|
|
14343
|
+
created_at?: string;
|
|
14344
|
+
id?: string;
|
|
14345
|
+
role_id?: string;
|
|
14346
|
+
user_id?: string;
|
|
14347
|
+
};
|
|
14348
|
+
Relationships: [{
|
|
14349
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
14350
|
+
columns: ["role_id"];
|
|
14351
|
+
isOneToOne: false;
|
|
14352
|
+
referencedRelation: "roles";
|
|
14353
|
+
referencedColumns: ["id"];
|
|
14354
|
+
}];
|
|
14355
|
+
};
|
|
14356
|
+
role_permissions: {
|
|
14357
|
+
Row: {
|
|
14358
|
+
can_edit: boolean;
|
|
14359
|
+
can_view: boolean;
|
|
14360
|
+
feature_id: string;
|
|
14361
|
+
id: string;
|
|
14362
|
+
module_id: string;
|
|
14363
|
+
role_id: string;
|
|
14364
|
+
updated_at: string;
|
|
14365
|
+
};
|
|
14366
|
+
Insert: {
|
|
14367
|
+
can_edit?: boolean;
|
|
14368
|
+
can_view?: boolean;
|
|
14369
|
+
feature_id?: string;
|
|
14370
|
+
id?: string;
|
|
14371
|
+
module_id: string;
|
|
14372
|
+
role_id: string;
|
|
14373
|
+
updated_at?: string;
|
|
14374
|
+
};
|
|
14375
|
+
Update: {
|
|
14376
|
+
can_edit?: boolean;
|
|
14377
|
+
can_view?: boolean;
|
|
14378
|
+
feature_id?: string;
|
|
14379
|
+
id?: string;
|
|
14380
|
+
module_id?: string;
|
|
14381
|
+
role_id?: string;
|
|
14382
|
+
updated_at?: string;
|
|
14383
|
+
};
|
|
14384
|
+
Relationships: [{
|
|
14385
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
14386
|
+
columns: ["role_id"];
|
|
14387
|
+
isOneToOne: false;
|
|
14388
|
+
referencedRelation: "roles";
|
|
14389
|
+
referencedColumns: ["id"];
|
|
14390
|
+
}];
|
|
14391
|
+
};
|
|
14392
|
+
roles: {
|
|
14393
|
+
Row: {
|
|
14394
|
+
created_at: string;
|
|
14395
|
+
id: string;
|
|
14396
|
+
is_protected: boolean;
|
|
14397
|
+
key: string;
|
|
14398
|
+
name: string;
|
|
14399
|
+
updated_at: string;
|
|
14400
|
+
};
|
|
14401
|
+
Insert: {
|
|
14402
|
+
created_at?: string;
|
|
14403
|
+
id?: string;
|
|
14404
|
+
is_protected?: boolean;
|
|
14405
|
+
key: string;
|
|
14406
|
+
name: string;
|
|
14407
|
+
updated_at?: string;
|
|
14408
|
+
};
|
|
14409
|
+
Update: {
|
|
14410
|
+
created_at?: string;
|
|
14411
|
+
id?: string;
|
|
14412
|
+
is_protected?: boolean;
|
|
14413
|
+
key?: string;
|
|
14414
|
+
name?: string;
|
|
14415
|
+
updated_at?: string;
|
|
14416
|
+
};
|
|
14417
|
+
Relationships: [];
|
|
14418
|
+
};
|
|
14125
14419
|
rooms: {
|
|
14126
14420
|
Row: {
|
|
14127
14421
|
capacity: number;
|
|
@@ -14791,6 +15085,54 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
14791
15085
|
};
|
|
14792
15086
|
Relationships: [];
|
|
14793
15087
|
};
|
|
15088
|
+
time_compensation_entries: {
|
|
15089
|
+
Row: {
|
|
15090
|
+
created_at: string;
|
|
15091
|
+
employee_id: string;
|
|
15092
|
+
entry_date: string;
|
|
15093
|
+
id: string;
|
|
15094
|
+
km: number;
|
|
15095
|
+
meal_allowance: number;
|
|
15096
|
+
notes: string | null;
|
|
15097
|
+
standby_evening: number;
|
|
15098
|
+
standby_weekend: number;
|
|
15099
|
+
tvt_change: number;
|
|
15100
|
+
updated_at: string;
|
|
15101
|
+
};
|
|
15102
|
+
Insert: {
|
|
15103
|
+
created_at?: string;
|
|
15104
|
+
employee_id: string;
|
|
15105
|
+
entry_date: string;
|
|
15106
|
+
id?: string;
|
|
15107
|
+
km?: number;
|
|
15108
|
+
meal_allowance?: number;
|
|
15109
|
+
notes?: string | null;
|
|
15110
|
+
standby_evening?: number;
|
|
15111
|
+
standby_weekend?: number;
|
|
15112
|
+
tvt_change?: number;
|
|
15113
|
+
updated_at?: string;
|
|
15114
|
+
};
|
|
15115
|
+
Update: {
|
|
15116
|
+
created_at?: string;
|
|
15117
|
+
employee_id?: string;
|
|
15118
|
+
entry_date?: string;
|
|
15119
|
+
id?: string;
|
|
15120
|
+
km?: number;
|
|
15121
|
+
meal_allowance?: number;
|
|
15122
|
+
notes?: string | null;
|
|
15123
|
+
standby_evening?: number;
|
|
15124
|
+
standby_weekend?: number;
|
|
15125
|
+
tvt_change?: number;
|
|
15126
|
+
updated_at?: string;
|
|
15127
|
+
};
|
|
15128
|
+
Relationships: [{
|
|
15129
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
15130
|
+
columns: ["employee_id"];
|
|
15131
|
+
isOneToOne: false;
|
|
15132
|
+
referencedRelation: "profiles";
|
|
15133
|
+
referencedColumns: ["id"];
|
|
15134
|
+
}];
|
|
15135
|
+
};
|
|
14794
15136
|
time_entries: {
|
|
14795
15137
|
Row: {
|
|
14796
15138
|
created_at: string;
|
|
@@ -14825,65 +15167,170 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
14825
15167
|
undertime?: number;
|
|
14826
15168
|
updated_at?: string;
|
|
14827
15169
|
};
|
|
15170
|
+
Relationships: [];
|
|
15171
|
+
};
|
|
15172
|
+
time_log_week_approvals: {
|
|
15173
|
+
Row: {
|
|
15174
|
+
approved_at: string | null;
|
|
15175
|
+
approved_by: string | null;
|
|
15176
|
+
created_at: string;
|
|
15177
|
+
employee_id: string;
|
|
15178
|
+
id: string;
|
|
15179
|
+
locked: boolean;
|
|
15180
|
+
notes: string | null;
|
|
15181
|
+
status: string;
|
|
15182
|
+
submitted_at: string | null;
|
|
15183
|
+
updated_at: string;
|
|
15184
|
+
week_start: string;
|
|
15185
|
+
};
|
|
15186
|
+
Insert: {
|
|
15187
|
+
approved_at?: string | null;
|
|
15188
|
+
approved_by?: string | null;
|
|
15189
|
+
created_at?: string;
|
|
15190
|
+
employee_id: string;
|
|
15191
|
+
id?: string;
|
|
15192
|
+
locked?: boolean;
|
|
15193
|
+
notes?: string | null;
|
|
15194
|
+
status?: string;
|
|
15195
|
+
submitted_at?: string | null;
|
|
15196
|
+
updated_at?: string;
|
|
15197
|
+
week_start: string;
|
|
15198
|
+
};
|
|
15199
|
+
Update: {
|
|
15200
|
+
approved_at?: string | null;
|
|
15201
|
+
approved_by?: string | null;
|
|
15202
|
+
created_at?: string;
|
|
15203
|
+
employee_id?: string;
|
|
15204
|
+
id?: string;
|
|
15205
|
+
locked?: boolean;
|
|
15206
|
+
notes?: string | null;
|
|
15207
|
+
status?: string;
|
|
15208
|
+
submitted_at?: string | null;
|
|
15209
|
+
updated_at?: string;
|
|
15210
|
+
week_start?: string;
|
|
15211
|
+
};
|
|
14828
15212
|
Relationships: [{
|
|
14829
|
-
foreignKeyName: "
|
|
15213
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
14830
15214
|
columns: ["employee_id"];
|
|
14831
15215
|
isOneToOne: false;
|
|
14832
|
-
referencedRelation: "
|
|
15216
|
+
referencedRelation: "profiles";
|
|
14833
15217
|
referencedColumns: ["id"];
|
|
14834
15218
|
}];
|
|
14835
15219
|
};
|
|
14836
15220
|
time_logs: {
|
|
14837
15221
|
Row: {
|
|
15222
|
+
auto_stop_reason: string | null;
|
|
15223
|
+
auto_stopped: boolean;
|
|
14838
15224
|
created_at: string;
|
|
15225
|
+
current_latitude: number | null;
|
|
15226
|
+
current_longitude: number | null;
|
|
15227
|
+
current_position_updated_at: string | null;
|
|
14839
15228
|
employee_id: string;
|
|
15229
|
+
end_latitude: number | null;
|
|
15230
|
+
end_longitude: number | null;
|
|
14840
15231
|
end_time: string | null;
|
|
15232
|
+
eta_distance_km: number | null;
|
|
15233
|
+
eta_minutes: number | null;
|
|
15234
|
+
eta_updated_at: string | null;
|
|
15235
|
+
hour_category: string | null;
|
|
14841
15236
|
id: string;
|
|
15237
|
+
last_reminder_at: string | null;
|
|
14842
15238
|
notes: string | null;
|
|
14843
15239
|
overtime_hours: number;
|
|
14844
15240
|
overtime_type: string | null;
|
|
14845
15241
|
regular_hours: number;
|
|
15242
|
+
reminder_count: number;
|
|
15243
|
+
requires_review: boolean;
|
|
15244
|
+
start_latitude: number | null;
|
|
15245
|
+
start_longitude: number | null;
|
|
14846
15246
|
start_time: string;
|
|
14847
15247
|
travel_cost: number | null;
|
|
14848
15248
|
travel_distance_km: number | null;
|
|
15249
|
+
travel_duration_min: number | null;
|
|
15250
|
+
travel_time_minutes: number | null;
|
|
14849
15251
|
type: string;
|
|
14850
15252
|
updated_at: string;
|
|
15253
|
+
work_order_id: string | null;
|
|
14851
15254
|
};
|
|
14852
15255
|
Insert: {
|
|
15256
|
+
auto_stop_reason?: string | null;
|
|
15257
|
+
auto_stopped?: boolean;
|
|
14853
15258
|
created_at?: string;
|
|
15259
|
+
current_latitude?: number | null;
|
|
15260
|
+
current_longitude?: number | null;
|
|
15261
|
+
current_position_updated_at?: string | null;
|
|
14854
15262
|
employee_id: string;
|
|
15263
|
+
end_latitude?: number | null;
|
|
15264
|
+
end_longitude?: number | null;
|
|
14855
15265
|
end_time?: string | null;
|
|
15266
|
+
eta_distance_km?: number | null;
|
|
15267
|
+
eta_minutes?: number | null;
|
|
15268
|
+
eta_updated_at?: string | null;
|
|
15269
|
+
hour_category?: string | null;
|
|
14856
15270
|
id?: string;
|
|
15271
|
+
last_reminder_at?: string | null;
|
|
14857
15272
|
notes?: string | null;
|
|
14858
15273
|
overtime_hours?: number;
|
|
14859
15274
|
overtime_type?: string | null;
|
|
14860
15275
|
regular_hours?: number;
|
|
15276
|
+
reminder_count?: number;
|
|
15277
|
+
requires_review?: boolean;
|
|
15278
|
+
start_latitude?: number | null;
|
|
15279
|
+
start_longitude?: number | null;
|
|
14861
15280
|
start_time?: string;
|
|
14862
15281
|
travel_cost?: number | null;
|
|
14863
15282
|
travel_distance_km?: number | null;
|
|
15283
|
+
travel_duration_min?: number | null;
|
|
15284
|
+
travel_time_minutes?: number | null;
|
|
14864
15285
|
type: string;
|
|
14865
15286
|
updated_at?: string;
|
|
15287
|
+
work_order_id?: string | null;
|
|
14866
15288
|
};
|
|
14867
15289
|
Update: {
|
|
15290
|
+
auto_stop_reason?: string | null;
|
|
15291
|
+
auto_stopped?: boolean;
|
|
14868
15292
|
created_at?: string;
|
|
15293
|
+
current_latitude?: number | null;
|
|
15294
|
+
current_longitude?: number | null;
|
|
15295
|
+
current_position_updated_at?: string | null;
|
|
14869
15296
|
employee_id?: string;
|
|
15297
|
+
end_latitude?: number | null;
|
|
15298
|
+
end_longitude?: number | null;
|
|
14870
15299
|
end_time?: string | null;
|
|
15300
|
+
eta_distance_km?: number | null;
|
|
15301
|
+
eta_minutes?: number | null;
|
|
15302
|
+
eta_updated_at?: string | null;
|
|
15303
|
+
hour_category?: string | null;
|
|
14871
15304
|
id?: string;
|
|
15305
|
+
last_reminder_at?: string | null;
|
|
14872
15306
|
notes?: string | null;
|
|
14873
15307
|
overtime_hours?: number;
|
|
14874
15308
|
overtime_type?: string | null;
|
|
14875
15309
|
regular_hours?: number;
|
|
15310
|
+
reminder_count?: number;
|
|
15311
|
+
requires_review?: boolean;
|
|
15312
|
+
start_latitude?: number | null;
|
|
15313
|
+
start_longitude?: number | null;
|
|
14876
15314
|
start_time?: string;
|
|
14877
15315
|
travel_cost?: number | null;
|
|
14878
15316
|
travel_distance_km?: number | null;
|
|
15317
|
+
travel_duration_min?: number | null;
|
|
15318
|
+
travel_time_minutes?: number | null;
|
|
14879
15319
|
type?: string;
|
|
14880
15320
|
updated_at?: string;
|
|
15321
|
+
work_order_id?: string | null;
|
|
14881
15322
|
};
|
|
14882
15323
|
Relationships: [{
|
|
14883
15324
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
14884
15325
|
columns: ["employee_id"];
|
|
14885
15326
|
isOneToOne: false;
|
|
14886
|
-
referencedRelation: "
|
|
15327
|
+
referencedRelation: "profiles";
|
|
15328
|
+
referencedColumns: ["id"];
|
|
15329
|
+
}, {
|
|
15330
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
15331
|
+
columns: ["work_order_id"];
|
|
15332
|
+
isOneToOne: false;
|
|
15333
|
+
referencedRelation: "work_orders";
|
|
14887
15334
|
referencedColumns: ["id"];
|
|
14888
15335
|
}];
|
|
14889
15336
|
};
|
|
@@ -14922,7 +15369,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
14922
15369
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
14923
15370
|
columns: ["employee_id"];
|
|
14924
15371
|
isOneToOne: false;
|
|
14925
|
-
referencedRelation: "
|
|
15372
|
+
referencedRelation: "profiles";
|
|
14926
15373
|
referencedColumns: ["id"];
|
|
14927
15374
|
}];
|
|
14928
15375
|
};
|
|
@@ -15232,6 +15679,39 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
15232
15679
|
};
|
|
15233
15680
|
Relationships: [];
|
|
15234
15681
|
};
|
|
15682
|
+
twinfield_cron_locks: {
|
|
15683
|
+
Row: {
|
|
15684
|
+
created_at: string;
|
|
15685
|
+
heartbeat_at: string;
|
|
15686
|
+
job_name: string;
|
|
15687
|
+
last_error: string | null;
|
|
15688
|
+
last_finished_at: string | null;
|
|
15689
|
+
locked_at: string;
|
|
15690
|
+
run_id: string;
|
|
15691
|
+
updated_at: string;
|
|
15692
|
+
};
|
|
15693
|
+
Insert: {
|
|
15694
|
+
created_at?: string;
|
|
15695
|
+
heartbeat_at?: string;
|
|
15696
|
+
job_name: string;
|
|
15697
|
+
last_error?: string | null;
|
|
15698
|
+
last_finished_at?: string | null;
|
|
15699
|
+
locked_at?: string;
|
|
15700
|
+
run_id?: string;
|
|
15701
|
+
updated_at?: string;
|
|
15702
|
+
};
|
|
15703
|
+
Update: {
|
|
15704
|
+
created_at?: string;
|
|
15705
|
+
heartbeat_at?: string;
|
|
15706
|
+
job_name?: string;
|
|
15707
|
+
last_error?: string | null;
|
|
15708
|
+
last_finished_at?: string | null;
|
|
15709
|
+
locked_at?: string;
|
|
15710
|
+
run_id?: string;
|
|
15711
|
+
updated_at?: string;
|
|
15712
|
+
};
|
|
15713
|
+
Relationships: [];
|
|
15714
|
+
};
|
|
15235
15715
|
twinfield_customers: {
|
|
15236
15716
|
Row: {
|
|
15237
15717
|
address: string | null;
|
|
@@ -15832,6 +16312,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
15832
16312
|
twinfield_push_queue: {
|
|
15833
16313
|
Row: {
|
|
15834
16314
|
action: string;
|
|
16315
|
+
attempt_started_at: string | null;
|
|
15835
16316
|
attempts: number;
|
|
15836
16317
|
connection_id: string | null;
|
|
15837
16318
|
created_at: string;
|
|
@@ -15848,6 +16329,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
15848
16329
|
};
|
|
15849
16330
|
Insert: {
|
|
15850
16331
|
action?: string;
|
|
16332
|
+
attempt_started_at?: string | null;
|
|
15851
16333
|
attempts?: number;
|
|
15852
16334
|
connection_id?: string | null;
|
|
15853
16335
|
created_at?: string;
|
|
@@ -15864,6 +16346,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
15864
16346
|
};
|
|
15865
16347
|
Update: {
|
|
15866
16348
|
action?: string;
|
|
16349
|
+
attempt_started_at?: string | null;
|
|
15867
16350
|
attempts?: number;
|
|
15868
16351
|
connection_id?: string | null;
|
|
15869
16352
|
created_at?: string;
|
|
@@ -16061,13 +16544,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
16061
16544
|
workday_end?: string | null;
|
|
16062
16545
|
workday_start?: string | null;
|
|
16063
16546
|
};
|
|
16064
|
-
Relationships: [
|
|
16065
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
16066
|
-
columns: ["monteur_id"];
|
|
16067
|
-
isOneToOne: true;
|
|
16068
|
-
referencedRelation: "monteurs";
|
|
16069
|
-
referencedColumns: ["id"];
|
|
16070
|
-
}];
|
|
16547
|
+
Relationships: [];
|
|
16071
16548
|
};
|
|
16072
16549
|
uren_entries: {
|
|
16073
16550
|
Row: {
|
|
@@ -16113,12 +16590,6 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
16113
16590
|
werkbon_id?: string | null;
|
|
16114
16591
|
};
|
|
16115
16592
|
Relationships: [{
|
|
16116
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16117
|
-
columns: ["monteur_id"];
|
|
16118
|
-
isOneToOne: false;
|
|
16119
|
-
referencedRelation: "monteurs";
|
|
16120
|
-
referencedColumns: ["id"];
|
|
16121
|
-
}, {
|
|
16122
16593
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16123
16594
|
columns: ["werkbon_id"];
|
|
16124
16595
|
isOneToOne: false;
|
|
@@ -16586,17 +17057,12 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
16586
17057
|
submitted_at?: string | null;
|
|
16587
17058
|
updated_at?: string;
|
|
16588
17059
|
};
|
|
16589
|
-
Relationships: [
|
|
16590
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
16591
|
-
columns: ["monteur_id"];
|
|
16592
|
-
isOneToOne: false;
|
|
16593
|
-
referencedRelation: "monteurs";
|
|
16594
|
-
referencedColumns: ["id"];
|
|
16595
|
-
}];
|
|
17060
|
+
Relationships: [];
|
|
16596
17061
|
};
|
|
16597
17062
|
user_module_permissions: {
|
|
16598
17063
|
Row: {
|
|
16599
17064
|
created_at: string;
|
|
17065
|
+
feature_id: string;
|
|
16600
17066
|
id: string;
|
|
16601
17067
|
module_id: string;
|
|
16602
17068
|
permission: string;
|
|
@@ -16605,6 +17071,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
16605
17071
|
};
|
|
16606
17072
|
Insert: {
|
|
16607
17073
|
created_at?: string;
|
|
17074
|
+
feature_id?: string;
|
|
16608
17075
|
id?: string;
|
|
16609
17076
|
module_id: string;
|
|
16610
17077
|
permission: string;
|
|
@@ -16613,6 +17080,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
16613
17080
|
};
|
|
16614
17081
|
Update: {
|
|
16615
17082
|
created_at?: string;
|
|
17083
|
+
feature_id?: string;
|
|
16616
17084
|
id?: string;
|
|
16617
17085
|
module_id?: string;
|
|
16618
17086
|
permission?: string;
|
|
@@ -16648,6 +17116,51 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
16648
17116
|
referencedColumns: ["id"];
|
|
16649
17117
|
}];
|
|
16650
17118
|
};
|
|
17119
|
+
van_inventories: {
|
|
17120
|
+
Row: {
|
|
17121
|
+
barcode: string | null;
|
|
17122
|
+
created_at: string;
|
|
17123
|
+
id: string;
|
|
17124
|
+
monteur_id: string | null;
|
|
17125
|
+
price_per_unit: number;
|
|
17126
|
+
product_name: string;
|
|
17127
|
+
quantity_current: number;
|
|
17128
|
+
quantity_min: number;
|
|
17129
|
+
unit: string;
|
|
17130
|
+
updated_at: string;
|
|
17131
|
+
};
|
|
17132
|
+
Insert: {
|
|
17133
|
+
barcode?: string | null;
|
|
17134
|
+
created_at?: string;
|
|
17135
|
+
id?: string;
|
|
17136
|
+
monteur_id?: string | null;
|
|
17137
|
+
price_per_unit?: number;
|
|
17138
|
+
product_name: string;
|
|
17139
|
+
quantity_current?: number;
|
|
17140
|
+
quantity_min?: number;
|
|
17141
|
+
unit?: string;
|
|
17142
|
+
updated_at?: string;
|
|
17143
|
+
};
|
|
17144
|
+
Update: {
|
|
17145
|
+
barcode?: string | null;
|
|
17146
|
+
created_at?: string;
|
|
17147
|
+
id?: string;
|
|
17148
|
+
monteur_id?: string | null;
|
|
17149
|
+
price_per_unit?: number;
|
|
17150
|
+
product_name?: string;
|
|
17151
|
+
quantity_current?: number;
|
|
17152
|
+
quantity_min?: number;
|
|
17153
|
+
unit?: string;
|
|
17154
|
+
updated_at?: string;
|
|
17155
|
+
};
|
|
17156
|
+
Relationships: [{
|
|
17157
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
17158
|
+
columns: ["monteur_id"];
|
|
17159
|
+
isOneToOne: false;
|
|
17160
|
+
referencedRelation: "profiles";
|
|
17161
|
+
referencedColumns: ["id"];
|
|
17162
|
+
}];
|
|
17163
|
+
};
|
|
16651
17164
|
voorraad_custom_fields: {
|
|
16652
17165
|
Row: {
|
|
16653
17166
|
created_at: string;
|
|
@@ -17598,7 +18111,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
17598
18111
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
17599
18112
|
columns: ["monteur_id"];
|
|
17600
18113
|
isOneToOne: false;
|
|
17601
|
-
referencedRelation: "
|
|
18114
|
+
referencedRelation: "profiles";
|
|
17602
18115
|
referencedColumns: ["id"];
|
|
17603
18116
|
}, {
|
|
17604
18117
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -17608,6 +18121,60 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
17608
18121
|
referencedColumns: ["id"];
|
|
17609
18122
|
}];
|
|
17610
18123
|
};
|
|
18124
|
+
work_order_photos: {
|
|
18125
|
+
Row: {
|
|
18126
|
+
ai_caption: string | null;
|
|
18127
|
+
ai_categorized_at: string | null;
|
|
18128
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
18129
|
+
caption: string | null;
|
|
18130
|
+
created_at: string;
|
|
18131
|
+
id: string;
|
|
18132
|
+
monteur_id: string | null;
|
|
18133
|
+
photo_type: string;
|
|
18134
|
+
storage_path: string;
|
|
18135
|
+
updated_at: string;
|
|
18136
|
+
work_order_id: string;
|
|
18137
|
+
};
|
|
18138
|
+
Insert: {
|
|
18139
|
+
ai_caption?: string | null;
|
|
18140
|
+
ai_categorized_at?: string | null;
|
|
18141
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18142
|
+
caption?: string | null;
|
|
18143
|
+
created_at?: string;
|
|
18144
|
+
id?: string;
|
|
18145
|
+
monteur_id?: string | null;
|
|
18146
|
+
photo_type?: string;
|
|
18147
|
+
storage_path: string;
|
|
18148
|
+
updated_at?: string;
|
|
18149
|
+
work_order_id: string;
|
|
18150
|
+
};
|
|
18151
|
+
Update: {
|
|
18152
|
+
ai_caption?: string | null;
|
|
18153
|
+
ai_categorized_at?: string | null;
|
|
18154
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18155
|
+
caption?: string | null;
|
|
18156
|
+
created_at?: string;
|
|
18157
|
+
id?: string;
|
|
18158
|
+
monteur_id?: string | null;
|
|
18159
|
+
photo_type?: string;
|
|
18160
|
+
storage_path?: string;
|
|
18161
|
+
updated_at?: string;
|
|
18162
|
+
work_order_id?: string;
|
|
18163
|
+
};
|
|
18164
|
+
Relationships: [{
|
|
18165
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
18166
|
+
columns: ["monteur_id"];
|
|
18167
|
+
isOneToOne: false;
|
|
18168
|
+
referencedRelation: "profiles";
|
|
18169
|
+
referencedColumns: ["id"];
|
|
18170
|
+
}, {
|
|
18171
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
18172
|
+
columns: ["work_order_id"];
|
|
18173
|
+
isOneToOne: false;
|
|
18174
|
+
referencedRelation: "work_orders";
|
|
18175
|
+
referencedColumns: ["id"];
|
|
18176
|
+
}];
|
|
18177
|
+
};
|
|
17611
18178
|
work_orders: {
|
|
17612
18179
|
Row: {
|
|
17613
18180
|
assigned_to: string | null;
|
|
@@ -17639,7 +18206,6 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
17639
18206
|
scheduled_end_time: string | null;
|
|
17640
18207
|
scheduled_start_time: string | null;
|
|
17641
18208
|
status: string;
|
|
17642
|
-
tenant_id: string;
|
|
17643
18209
|
total_hours_worked: number | null;
|
|
17644
18210
|
total_price: number | null;
|
|
17645
18211
|
travel_time_minutes: number | null;
|
|
@@ -17677,7 +18243,6 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
17677
18243
|
scheduled_end_time?: string | null;
|
|
17678
18244
|
scheduled_start_time?: string | null;
|
|
17679
18245
|
status?: string;
|
|
17680
|
-
tenant_id: string;
|
|
17681
18246
|
total_hours_worked?: number | null;
|
|
17682
18247
|
total_price?: number | null;
|
|
17683
18248
|
travel_time_minutes?: number | null;
|
|
@@ -17715,7 +18280,6 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
17715
18280
|
scheduled_end_time?: string | null;
|
|
17716
18281
|
scheduled_start_time?: string | null;
|
|
17717
18282
|
status?: string;
|
|
17718
|
-
tenant_id?: string;
|
|
17719
18283
|
total_hours_worked?: number | null;
|
|
17720
18284
|
total_price?: number | null;
|
|
17721
18285
|
travel_time_minutes?: number | null;
|
|
@@ -17729,12 +18293,6 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
17729
18293
|
isOneToOne: false;
|
|
17730
18294
|
referencedRelation: "work_orders";
|
|
17731
18295
|
referencedColumns: ["id"];
|
|
17732
|
-
}, {
|
|
17733
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
17734
|
-
columns: ["tenant_id"];
|
|
17735
|
-
isOneToOne: false;
|
|
17736
|
-
referencedRelation: "tenants";
|
|
17737
|
-
referencedColumns: ["id"];
|
|
17738
18296
|
}];
|
|
17739
18297
|
};
|
|
17740
18298
|
};
|
|
@@ -18419,6 +18977,19 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
18419
18977
|
};
|
|
18420
18978
|
Returns: undefined;
|
|
18421
18979
|
};
|
|
18980
|
+
approve_mailbox_order_proposal: {
|
|
18981
|
+
Args: {
|
|
18982
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
18983
|
+
p_customer_id: string;
|
|
18984
|
+
p_delivery_date: string;
|
|
18985
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
18986
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
18987
|
+
p_notes: string;
|
|
18988
|
+
p_proposal_id: string;
|
|
18989
|
+
p_reviewed_by: string;
|
|
18990
|
+
};
|
|
18991
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
18992
|
+
};
|
|
18422
18993
|
assign_cart_numbers: {
|
|
18423
18994
|
Args: {
|
|
18424
18995
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -18470,6 +19041,10 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
18470
19041
|
};
|
|
18471
19042
|
Returns: number;
|
|
18472
19043
|
};
|
|
19044
|
+
can_manage_hours: {
|
|
19045
|
+
Args: never;
|
|
19046
|
+
Returns: boolean;
|
|
19047
|
+
};
|
|
18473
19048
|
check_offer_product_available_stock: {
|
|
18474
19049
|
Args: {
|
|
18475
19050
|
p_campaign_product_id: string;
|
|
@@ -18659,6 +19234,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
18659
19234
|
};
|
|
18660
19235
|
Returns: {
|
|
18661
19236
|
action: string;
|
|
19237
|
+
attempt_started_at: string | null;
|
|
18662
19238
|
attempts: number;
|
|
18663
19239
|
connection_id: string | null;
|
|
18664
19240
|
created_at: string;
|
|
@@ -18746,6 +19322,30 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
18746
19322
|
agent_naam: string;
|
|
18747
19323
|
}[];
|
|
18748
19324
|
};
|
|
19325
|
+
consume_van_inventory: {
|
|
19326
|
+
Args: {
|
|
19327
|
+
p_inventory_id: string;
|
|
19328
|
+
p_quantity: number;
|
|
19329
|
+
};
|
|
19330
|
+
Returns: {
|
|
19331
|
+
barcode: string | null;
|
|
19332
|
+
created_at: string;
|
|
19333
|
+
id: string;
|
|
19334
|
+
monteur_id: string | null;
|
|
19335
|
+
price_per_unit: number;
|
|
19336
|
+
product_name: string;
|
|
19337
|
+
quantity_current: number;
|
|
19338
|
+
quantity_min: number;
|
|
19339
|
+
unit: string;
|
|
19340
|
+
updated_at: string;
|
|
19341
|
+
};
|
|
19342
|
+
SetofOptions: {
|
|
19343
|
+
from: "*";
|
|
19344
|
+
to: "van_inventories";
|
|
19345
|
+
isOneToOne: true;
|
|
19346
|
+
isSetofReturn: false;
|
|
19347
|
+
};
|
|
19348
|
+
};
|
|
18749
19349
|
control_get_todays_carts: {
|
|
18750
19350
|
Args: never;
|
|
18751
19351
|
Returns: {
|
|
@@ -18819,6 +19419,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
18819
19419
|
_user_id: string;
|
|
18820
19420
|
};
|
|
18821
19421
|
Returns: string;
|
|
19422
|
+
} | {
|
|
19423
|
+
Args: {
|
|
19424
|
+
_feature_id: string;
|
|
19425
|
+
_module_id: string;
|
|
19426
|
+
_user_id: string;
|
|
19427
|
+
};
|
|
19428
|
+
Returns: string;
|
|
18822
19429
|
};
|
|
18823
19430
|
email_auth_decrypt: {
|
|
18824
19431
|
Args: {
|
|
@@ -19170,12 +19777,6 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
19170
19777
|
Args: never;
|
|
19171
19778
|
Returns: string;
|
|
19172
19779
|
};
|
|
19173
|
-
get_work_order_tenant_id: {
|
|
19174
|
-
Args: {
|
|
19175
|
-
wo_id: string;
|
|
19176
|
-
};
|
|
19177
|
-
Returns: string;
|
|
19178
|
-
};
|
|
19179
19780
|
has_module_permission: {
|
|
19180
19781
|
Args: {
|
|
19181
19782
|
_min: string;
|
|
@@ -19209,6 +19810,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
19209
19810
|
};
|
|
19210
19811
|
Returns: boolean;
|
|
19211
19812
|
};
|
|
19813
|
+
is_time_log_week_locked: {
|
|
19814
|
+
Args: {
|
|
19815
|
+
p_employee_id: string;
|
|
19816
|
+
p_start_time: string;
|
|
19817
|
+
};
|
|
19818
|
+
Returns: boolean;
|
|
19819
|
+
};
|
|
19212
19820
|
is_user_admin: {
|
|
19213
19821
|
Args: never;
|
|
19214
19822
|
Returns: boolean;
|
|
@@ -19223,13 +19831,14 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
19223
19831
|
};
|
|
19224
19832
|
Returns: boolean;
|
|
19225
19833
|
};
|
|
19226
|
-
|
|
19834
|
+
list_medewerkers: {
|
|
19227
19835
|
Args: never;
|
|
19228
19836
|
Returns: {
|
|
19229
19837
|
avatar_url: string;
|
|
19230
19838
|
display_name: string;
|
|
19231
19839
|
email: string;
|
|
19232
19840
|
id: string;
|
|
19841
|
+
roles: string[];
|
|
19233
19842
|
}[];
|
|
19234
19843
|
};
|
|
19235
19844
|
list_my_planning_items: {
|
|
@@ -19720,6 +20329,65 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
19720
20329
|
};
|
|
19721
20330
|
Returns: number;
|
|
19722
20331
|
};
|
|
20332
|
+
logistics_plan_claim: {
|
|
20333
|
+
Args: {
|
|
20334
|
+
p_limit?: number;
|
|
20335
|
+
};
|
|
20336
|
+
Returns: {
|
|
20337
|
+
attempts: number;
|
|
20338
|
+
id: string;
|
|
20339
|
+
order_id: string;
|
|
20340
|
+
}[];
|
|
20341
|
+
};
|
|
20342
|
+
logistics_plan_enqueue: {
|
|
20343
|
+
Args: {
|
|
20344
|
+
p_order_id: string;
|
|
20345
|
+
p_reason?: string;
|
|
20346
|
+
};
|
|
20347
|
+
Returns: undefined;
|
|
20348
|
+
};
|
|
20349
|
+
logistics_plan_ensure_event: {
|
|
20350
|
+
Args: {
|
|
20351
|
+
p_order_id: string;
|
|
20352
|
+
};
|
|
20353
|
+
Returns: boolean;
|
|
20354
|
+
};
|
|
20355
|
+
logistics_plan_finish: {
|
|
20356
|
+
Args: {
|
|
20357
|
+
p_error?: string;
|
|
20358
|
+
p_id: string;
|
|
20359
|
+
};
|
|
20360
|
+
Returns: undefined;
|
|
20361
|
+
};
|
|
20362
|
+
logistics_plan_impact_orders: {
|
|
20363
|
+
Args: {
|
|
20364
|
+
p_order_id: string;
|
|
20365
|
+
};
|
|
20366
|
+
Returns: {
|
|
20367
|
+
buffer_id: string;
|
|
20368
|
+
order_id: string;
|
|
20369
|
+
plan_date: string;
|
|
20370
|
+
}[];
|
|
20371
|
+
};
|
|
20372
|
+
logistics_plan_kick: {
|
|
20373
|
+
Args: never;
|
|
20374
|
+
Returns: undefined;
|
|
20375
|
+
};
|
|
20376
|
+
logistics_plan_prune: {
|
|
20377
|
+
Args: never;
|
|
20378
|
+
Returns: number;
|
|
20379
|
+
};
|
|
20380
|
+
logistics_plan_release_stale: {
|
|
20381
|
+
Args: never;
|
|
20382
|
+
Returns: number;
|
|
20383
|
+
};
|
|
20384
|
+
logistics_plan_setting: {
|
|
20385
|
+
Args: {
|
|
20386
|
+
p_default: number;
|
|
20387
|
+
p_key: string;
|
|
20388
|
+
};
|
|
20389
|
+
Returns: number;
|
|
20390
|
+
};
|
|
19723
20391
|
logistics_queue_capacity_email: {
|
|
19724
20392
|
Args: {
|
|
19725
20393
|
p_alert_id: string;
|
|
@@ -19961,6 +20629,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
19961
20629
|
my_module_permissions: {
|
|
19962
20630
|
Args: never;
|
|
19963
20631
|
Returns: {
|
|
20632
|
+
feature_id: string;
|
|
19964
20633
|
module_id: string;
|
|
19965
20634
|
permission: string;
|
|
19966
20635
|
}[];
|
|
@@ -20841,6 +21510,16 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
20841
21510
|
};
|
|
20842
21511
|
Returns: string[];
|
|
20843
21512
|
};
|
|
21513
|
+
switch_time_log: {
|
|
21514
|
+
Args: {
|
|
21515
|
+
p_employee_id: string;
|
|
21516
|
+
p_start_lat?: number;
|
|
21517
|
+
p_start_lng?: number;
|
|
21518
|
+
p_type: string;
|
|
21519
|
+
p_work_order_id?: string;
|
|
21520
|
+
};
|
|
21521
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21522
|
+
};
|
|
20844
21523
|
sync_all_layer_stocks: {
|
|
20845
21524
|
Args: never;
|
|
20846
21525
|
Returns: undefined;
|
|
@@ -20891,6 +21570,24 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
20891
21570
|
};
|
|
20892
21571
|
Returns: boolean;
|
|
20893
21572
|
};
|
|
21573
|
+
twinfield_cron_lock_acquire: {
|
|
21574
|
+
Args: {
|
|
21575
|
+
_job_name: string;
|
|
21576
|
+
_stale_seconds?: number;
|
|
21577
|
+
};
|
|
21578
|
+
Returns: boolean;
|
|
21579
|
+
};
|
|
21580
|
+
twinfield_cron_lock_release: {
|
|
21581
|
+
Args: {
|
|
21582
|
+
_error?: string;
|
|
21583
|
+
_job_name: string;
|
|
21584
|
+
};
|
|
21585
|
+
Returns: undefined;
|
|
21586
|
+
};
|
|
21587
|
+
twinfield_prune_push_queue: {
|
|
21588
|
+
Args: never;
|
|
21589
|
+
Returns: number;
|
|
21590
|
+
};
|
|
20894
21591
|
twinfield_register_cron: {
|
|
20895
21592
|
Args: {
|
|
20896
21593
|
apikey?: string;
|
|
@@ -21829,6 +22526,126 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
21829
22526
|
};
|
|
21830
22527
|
Relationships: [];
|
|
21831
22528
|
};
|
|
22529
|
+
cao_holidays: {
|
|
22530
|
+
Row: {
|
|
22531
|
+
created_at: string;
|
|
22532
|
+
description: string | null;
|
|
22533
|
+
holiday_date: string;
|
|
22534
|
+
id: string;
|
|
22535
|
+
updated_at: string;
|
|
22536
|
+
};
|
|
22537
|
+
Insert: {
|
|
22538
|
+
created_at?: string;
|
|
22539
|
+
description?: string | null;
|
|
22540
|
+
holiday_date: string;
|
|
22541
|
+
id?: string;
|
|
22542
|
+
updated_at?: string;
|
|
22543
|
+
};
|
|
22544
|
+
Update: {
|
|
22545
|
+
created_at?: string;
|
|
22546
|
+
description?: string | null;
|
|
22547
|
+
holiday_date?: string;
|
|
22548
|
+
id?: string;
|
|
22549
|
+
updated_at?: string;
|
|
22550
|
+
};
|
|
22551
|
+
Relationships: [];
|
|
22552
|
+
};
|
|
22553
|
+
cao_settings: {
|
|
22554
|
+
Row: {
|
|
22555
|
+
auto_break_after_hours: number;
|
|
22556
|
+
auto_break_minutes: number;
|
|
22557
|
+
auto_break_unpaid: boolean;
|
|
22558
|
+
auto_stop_after_hours: number;
|
|
22559
|
+
callout_fee: number;
|
|
22560
|
+
created_at: string;
|
|
22561
|
+
daily_regular_hours: number;
|
|
22562
|
+
default_hourly_rate: number;
|
|
22563
|
+
id: string;
|
|
22564
|
+
materials_markup_percent: number;
|
|
22565
|
+
max_daily_hours: number;
|
|
22566
|
+
max_weekly_hours: number;
|
|
22567
|
+
meal_allowance_amount: number;
|
|
22568
|
+
overtime_pct_178: number;
|
|
22569
|
+
overtime_pct_189: number;
|
|
22570
|
+
overtime_pct_212: number;
|
|
22571
|
+
reminder_after_hours: number;
|
|
22572
|
+
standby_evening_amount: number;
|
|
22573
|
+
standby_weekend_amount: number;
|
|
22574
|
+
travel_cost_per_km: number | null;
|
|
22575
|
+
travel_cost_threshold_km: number | null;
|
|
22576
|
+
travel_counts_as_work: boolean;
|
|
22577
|
+
travel_hourly_rate: number;
|
|
22578
|
+
travel_rate_per_hour: number;
|
|
22579
|
+
travel_threshold_minutes: number;
|
|
22580
|
+
updated_at: string;
|
|
22581
|
+
weekend_always_212: boolean;
|
|
22582
|
+
window_end: string;
|
|
22583
|
+
window_start: string;
|
|
22584
|
+
};
|
|
22585
|
+
Insert: {
|
|
22586
|
+
auto_break_after_hours?: number;
|
|
22587
|
+
auto_break_minutes?: number;
|
|
22588
|
+
auto_break_unpaid?: boolean;
|
|
22589
|
+
auto_stop_after_hours?: number;
|
|
22590
|
+
callout_fee?: number;
|
|
22591
|
+
created_at?: string;
|
|
22592
|
+
daily_regular_hours?: number;
|
|
22593
|
+
default_hourly_rate?: number;
|
|
22594
|
+
id?: string;
|
|
22595
|
+
materials_markup_percent?: number;
|
|
22596
|
+
max_daily_hours?: number;
|
|
22597
|
+
max_weekly_hours?: number;
|
|
22598
|
+
meal_allowance_amount?: number;
|
|
22599
|
+
overtime_pct_178?: number;
|
|
22600
|
+
overtime_pct_189?: number;
|
|
22601
|
+
overtime_pct_212?: number;
|
|
22602
|
+
reminder_after_hours?: number;
|
|
22603
|
+
standby_evening_amount?: number;
|
|
22604
|
+
standby_weekend_amount?: number;
|
|
22605
|
+
travel_cost_per_km?: number | null;
|
|
22606
|
+
travel_cost_threshold_km?: number | null;
|
|
22607
|
+
travel_counts_as_work?: boolean;
|
|
22608
|
+
travel_hourly_rate?: number;
|
|
22609
|
+
travel_rate_per_hour?: number;
|
|
22610
|
+
travel_threshold_minutes?: number;
|
|
22611
|
+
updated_at?: string;
|
|
22612
|
+
weekend_always_212?: boolean;
|
|
22613
|
+
window_end?: string;
|
|
22614
|
+
window_start?: string;
|
|
22615
|
+
};
|
|
22616
|
+
Update: {
|
|
22617
|
+
auto_break_after_hours?: number;
|
|
22618
|
+
auto_break_minutes?: number;
|
|
22619
|
+
auto_break_unpaid?: boolean;
|
|
22620
|
+
auto_stop_after_hours?: number;
|
|
22621
|
+
callout_fee?: number;
|
|
22622
|
+
created_at?: string;
|
|
22623
|
+
daily_regular_hours?: number;
|
|
22624
|
+
default_hourly_rate?: number;
|
|
22625
|
+
id?: string;
|
|
22626
|
+
materials_markup_percent?: number;
|
|
22627
|
+
max_daily_hours?: number;
|
|
22628
|
+
max_weekly_hours?: number;
|
|
22629
|
+
meal_allowance_amount?: number;
|
|
22630
|
+
overtime_pct_178?: number;
|
|
22631
|
+
overtime_pct_189?: number;
|
|
22632
|
+
overtime_pct_212?: number;
|
|
22633
|
+
reminder_after_hours?: number;
|
|
22634
|
+
standby_evening_amount?: number;
|
|
22635
|
+
standby_weekend_amount?: number;
|
|
22636
|
+
travel_cost_per_km?: number | null;
|
|
22637
|
+
travel_cost_threshold_km?: number | null;
|
|
22638
|
+
travel_counts_as_work?: boolean;
|
|
22639
|
+
travel_hourly_rate?: number;
|
|
22640
|
+
travel_rate_per_hour?: number;
|
|
22641
|
+
travel_threshold_minutes?: number;
|
|
22642
|
+
updated_at?: string;
|
|
22643
|
+
weekend_always_212?: boolean;
|
|
22644
|
+
window_end?: string;
|
|
22645
|
+
window_start?: string;
|
|
22646
|
+
};
|
|
22647
|
+
Relationships: [];
|
|
22648
|
+
};
|
|
21832
22649
|
carrier_shipping_rates: {
|
|
21833
22650
|
Row: {
|
|
21834
22651
|
carrier_id: string;
|
|
@@ -28723,7 +29540,6 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
28723
29540
|
start_date: string;
|
|
28724
29541
|
start_time: string | null;
|
|
28725
29542
|
status: string;
|
|
28726
|
-
tenant_id: string;
|
|
28727
29543
|
updated_at: string;
|
|
28728
29544
|
user_id: string;
|
|
28729
29545
|
};
|
|
@@ -28741,7 +29557,6 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
28741
29557
|
start_date: string;
|
|
28742
29558
|
start_time?: string | null;
|
|
28743
29559
|
status?: string;
|
|
28744
|
-
tenant_id?: string;
|
|
28745
29560
|
updated_at?: string;
|
|
28746
29561
|
user_id: string;
|
|
28747
29562
|
};
|
|
@@ -28759,7 +29574,6 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
28759
29574
|
start_date?: string;
|
|
28760
29575
|
start_time?: string | null;
|
|
28761
29576
|
status?: string;
|
|
28762
|
-
tenant_id?: string;
|
|
28763
29577
|
updated_at?: string;
|
|
28764
29578
|
user_id?: string;
|
|
28765
29579
|
};
|
|
@@ -28767,13 +29581,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
28767
29581
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
28768
29582
|
columns: ["monteur_id"];
|
|
28769
29583
|
isOneToOne: false;
|
|
28770
|
-
referencedRelation: "
|
|
29584
|
+
referencedRelation: "profiles";
|
|
28771
29585
|
referencedColumns: ["id"];
|
|
28772
29586
|
}, {
|
|
28773
29587
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
28774
29588
|
columns: ["user_id"];
|
|
28775
29589
|
isOneToOne: false;
|
|
28776
|
-
referencedRelation: "
|
|
29590
|
+
referencedRelation: "profiles";
|
|
28777
29591
|
referencedColumns: ["id"];
|
|
28778
29592
|
}];
|
|
28779
29593
|
};
|
|
@@ -29641,6 +30455,45 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
29641
30455
|
};
|
|
29642
30456
|
Relationships: [];
|
|
29643
30457
|
};
|
|
30458
|
+
logistics_plan_queue: {
|
|
30459
|
+
Row: {
|
|
30460
|
+
attempts: number;
|
|
30461
|
+
claimed_at: string | null;
|
|
30462
|
+
enqueued_at: string;
|
|
30463
|
+
error: string | null;
|
|
30464
|
+
id: string;
|
|
30465
|
+
next_attempt_at: string;
|
|
30466
|
+
order_id: string;
|
|
30467
|
+
reason: string;
|
|
30468
|
+
status: string;
|
|
30469
|
+
updated_at: string;
|
|
30470
|
+
};
|
|
30471
|
+
Insert: {
|
|
30472
|
+
attempts?: number;
|
|
30473
|
+
claimed_at?: string | null;
|
|
30474
|
+
enqueued_at?: string;
|
|
30475
|
+
error?: string | null;
|
|
30476
|
+
id?: string;
|
|
30477
|
+
next_attempt_at?: string;
|
|
30478
|
+
order_id: string;
|
|
30479
|
+
reason?: string;
|
|
30480
|
+
status?: string;
|
|
30481
|
+
updated_at?: string;
|
|
30482
|
+
};
|
|
30483
|
+
Update: {
|
|
30484
|
+
attempts?: number;
|
|
30485
|
+
claimed_at?: string | null;
|
|
30486
|
+
enqueued_at?: string;
|
|
30487
|
+
error?: string | null;
|
|
30488
|
+
id?: string;
|
|
30489
|
+
next_attempt_at?: string;
|
|
30490
|
+
order_id?: string;
|
|
30491
|
+
reason?: string;
|
|
30492
|
+
status?: string;
|
|
30493
|
+
updated_at?: string;
|
|
30494
|
+
};
|
|
30495
|
+
Relationships: [];
|
|
30496
|
+
};
|
|
29644
30497
|
logistics_plan_runs: {
|
|
29645
30498
|
Row: {
|
|
29646
30499
|
created_at: string;
|
|
@@ -29716,6 +30569,24 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
29716
30569
|
referencedColumns: ["id"];
|
|
29717
30570
|
}];
|
|
29718
30571
|
};
|
|
30572
|
+
logistics_plan_settings: {
|
|
30573
|
+
Row: {
|
|
30574
|
+
key: string;
|
|
30575
|
+
updated_at: string;
|
|
30576
|
+
value: string;
|
|
30577
|
+
};
|
|
30578
|
+
Insert: {
|
|
30579
|
+
key: string;
|
|
30580
|
+
updated_at?: string;
|
|
30581
|
+
value: string;
|
|
30582
|
+
};
|
|
30583
|
+
Update: {
|
|
30584
|
+
key?: string;
|
|
30585
|
+
updated_at?: string;
|
|
30586
|
+
value?: string;
|
|
30587
|
+
};
|
|
30588
|
+
Relationships: [];
|
|
30589
|
+
};
|
|
29719
30590
|
logistics_rebuffer_state: {
|
|
29720
30591
|
Row: {
|
|
29721
30592
|
created_at: string;
|
|
@@ -30871,6 +31742,90 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
30871
31742
|
};
|
|
30872
31743
|
Relationships: [];
|
|
30873
31744
|
};
|
|
31745
|
+
material_usage: {
|
|
31746
|
+
Row: {
|
|
31747
|
+
created_at: string;
|
|
31748
|
+
id: string;
|
|
31749
|
+
material_name: string;
|
|
31750
|
+
monteur_id: string | null;
|
|
31751
|
+
price_at_time: number;
|
|
31752
|
+
quantity_used: number;
|
|
31753
|
+
updated_at: string;
|
|
31754
|
+
van_inventory_id: string | null;
|
|
31755
|
+
work_order_id: string;
|
|
31756
|
+
};
|
|
31757
|
+
Insert: {
|
|
31758
|
+
created_at?: string;
|
|
31759
|
+
id?: string;
|
|
31760
|
+
material_name: string;
|
|
31761
|
+
monteur_id?: string | null;
|
|
31762
|
+
price_at_time?: number;
|
|
31763
|
+
quantity_used?: number;
|
|
31764
|
+
updated_at?: string;
|
|
31765
|
+
van_inventory_id?: string | null;
|
|
31766
|
+
work_order_id: string;
|
|
31767
|
+
};
|
|
31768
|
+
Update: {
|
|
31769
|
+
created_at?: string;
|
|
31770
|
+
id?: string;
|
|
31771
|
+
material_name?: string;
|
|
31772
|
+
monteur_id?: string | null;
|
|
31773
|
+
price_at_time?: number;
|
|
31774
|
+
quantity_used?: number;
|
|
31775
|
+
updated_at?: string;
|
|
31776
|
+
van_inventory_id?: string | null;
|
|
31777
|
+
work_order_id?: string;
|
|
31778
|
+
};
|
|
31779
|
+
Relationships: [{
|
|
31780
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
31781
|
+
columns: ["monteur_id"];
|
|
31782
|
+
isOneToOne: false;
|
|
31783
|
+
referencedRelation: "profiles";
|
|
31784
|
+
referencedColumns: ["id"];
|
|
31785
|
+
}, {
|
|
31786
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
31787
|
+
columns: ["van_inventory_id"];
|
|
31788
|
+
isOneToOne: false;
|
|
31789
|
+
referencedRelation: "van_inventories";
|
|
31790
|
+
referencedColumns: ["id"];
|
|
31791
|
+
}, {
|
|
31792
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
31793
|
+
columns: ["work_order_id"];
|
|
31794
|
+
isOneToOne: false;
|
|
31795
|
+
referencedRelation: "work_orders";
|
|
31796
|
+
referencedColumns: ["id"];
|
|
31797
|
+
}];
|
|
31798
|
+
};
|
|
31799
|
+
module_features: {
|
|
31800
|
+
Row: {
|
|
31801
|
+
created_at: string;
|
|
31802
|
+
feature_id: string;
|
|
31803
|
+
id: string;
|
|
31804
|
+
is_active: boolean;
|
|
31805
|
+
last_seen_at: string;
|
|
31806
|
+
module_id: string;
|
|
31807
|
+
name: string;
|
|
31808
|
+
};
|
|
31809
|
+
Insert: {
|
|
31810
|
+
created_at?: string;
|
|
31811
|
+
feature_id: string;
|
|
31812
|
+
id?: string;
|
|
31813
|
+
is_active?: boolean;
|
|
31814
|
+
last_seen_at?: string;
|
|
31815
|
+
module_id: string;
|
|
31816
|
+
name: string;
|
|
31817
|
+
};
|
|
31818
|
+
Update: {
|
|
31819
|
+
created_at?: string;
|
|
31820
|
+
feature_id?: string;
|
|
31821
|
+
id?: string;
|
|
31822
|
+
is_active?: boolean;
|
|
31823
|
+
last_seen_at?: string;
|
|
31824
|
+
module_id?: string;
|
|
31825
|
+
name?: string;
|
|
31826
|
+
};
|
|
31827
|
+
Relationships: [];
|
|
31828
|
+
};
|
|
30874
31829
|
module_permissions: {
|
|
30875
31830
|
Row: {
|
|
30876
31831
|
created_at: string;
|
|
@@ -30901,6 +31856,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
30901
31856
|
module_registry: {
|
|
30902
31857
|
Row: {
|
|
30903
31858
|
created_at: string;
|
|
31859
|
+
enforce: boolean;
|
|
30904
31860
|
is_active: boolean;
|
|
30905
31861
|
last_seen_at: string;
|
|
30906
31862
|
module_id: string;
|
|
@@ -30910,6 +31866,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
30910
31866
|
};
|
|
30911
31867
|
Insert: {
|
|
30912
31868
|
created_at?: string;
|
|
31869
|
+
enforce?: boolean;
|
|
30913
31870
|
is_active?: boolean;
|
|
30914
31871
|
last_seen_at?: string;
|
|
30915
31872
|
module_id: string;
|
|
@@ -30919,6 +31876,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
30919
31876
|
};
|
|
30920
31877
|
Update: {
|
|
30921
31878
|
created_at?: string;
|
|
31879
|
+
enforce?: boolean;
|
|
30922
31880
|
is_active?: boolean;
|
|
30923
31881
|
last_seen_at?: string;
|
|
30924
31882
|
module_id?: string;
|
|
@@ -30979,63 +31937,6 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
30979
31937
|
};
|
|
30980
31938
|
Relationships: [];
|
|
30981
31939
|
};
|
|
30982
|
-
monteurs: {
|
|
30983
|
-
Row: {
|
|
30984
|
-
avatar_url: string | null;
|
|
30985
|
-
color: string | null;
|
|
30986
|
-
created_at: string;
|
|
30987
|
-
email: string | null;
|
|
30988
|
-
id: string;
|
|
30989
|
-
is_active: boolean;
|
|
30990
|
-
leave_balance_hours: number;
|
|
30991
|
-
name: string;
|
|
30992
|
-
persnr: number | null;
|
|
30993
|
-
phone: string | null;
|
|
30994
|
-
role: string;
|
|
30995
|
-
tenant_id: string;
|
|
30996
|
-
updated_at: string;
|
|
30997
|
-
user_id: string | null;
|
|
30998
|
-
};
|
|
30999
|
-
Insert: {
|
|
31000
|
-
avatar_url?: string | null;
|
|
31001
|
-
color?: string | null;
|
|
31002
|
-
created_at?: string;
|
|
31003
|
-
email?: string | null;
|
|
31004
|
-
id?: string;
|
|
31005
|
-
is_active?: boolean;
|
|
31006
|
-
leave_balance_hours?: number;
|
|
31007
|
-
name: string;
|
|
31008
|
-
persnr?: number | null;
|
|
31009
|
-
phone?: string | null;
|
|
31010
|
-
role?: string;
|
|
31011
|
-
tenant_id: string;
|
|
31012
|
-
updated_at?: string;
|
|
31013
|
-
user_id?: string | null;
|
|
31014
|
-
};
|
|
31015
|
-
Update: {
|
|
31016
|
-
avatar_url?: string | null;
|
|
31017
|
-
color?: string | null;
|
|
31018
|
-
created_at?: string;
|
|
31019
|
-
email?: string | null;
|
|
31020
|
-
id?: string;
|
|
31021
|
-
is_active?: boolean;
|
|
31022
|
-
leave_balance_hours?: number;
|
|
31023
|
-
name?: string;
|
|
31024
|
-
persnr?: number | null;
|
|
31025
|
-
phone?: string | null;
|
|
31026
|
-
role?: string;
|
|
31027
|
-
tenant_id?: string;
|
|
31028
|
-
updated_at?: string;
|
|
31029
|
-
user_id?: string | null;
|
|
31030
|
-
};
|
|
31031
|
-
Relationships: [{
|
|
31032
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
31033
|
-
columns: ["tenant_id"];
|
|
31034
|
-
isOneToOne: false;
|
|
31035
|
-
referencedRelation: "tenants";
|
|
31036
|
-
referencedColumns: ["id"];
|
|
31037
|
-
}];
|
|
31038
|
-
};
|
|
31039
31940
|
nmbrs_component_mapping: {
|
|
31040
31941
|
Row: {
|
|
31041
31942
|
created_at: string;
|
|
@@ -31106,13 +32007,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
31106
32007
|
nmbrs_employee_number?: string;
|
|
31107
32008
|
updated_at?: string;
|
|
31108
32009
|
};
|
|
31109
|
-
Relationships: [
|
|
31110
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
31111
|
-
columns: ["monteur_id"];
|
|
31112
|
-
isOneToOne: true;
|
|
31113
|
-
referencedRelation: "monteurs";
|
|
31114
|
-
referencedColumns: ["id"];
|
|
31115
|
-
}];
|
|
32010
|
+
Relationships: [];
|
|
31116
32011
|
};
|
|
31117
32012
|
nmbrs_export_lines: {
|
|
31118
32013
|
Row: {
|
|
@@ -31161,12 +32056,6 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
31161
32056
|
wage_code?: string;
|
|
31162
32057
|
};
|
|
31163
32058
|
Relationships: [{
|
|
31164
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
31165
|
-
columns: ["monteur_id"];
|
|
31166
|
-
isOneToOne: false;
|
|
31167
|
-
referencedRelation: "monteurs";
|
|
31168
|
-
referencedColumns: ["id"];
|
|
31169
|
-
}, {
|
|
31170
32059
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
31171
32060
|
columns: ["run_id"];
|
|
31172
32061
|
isOneToOne: false;
|
|
@@ -31994,6 +32883,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
31994
32883
|
error_message: string | null;
|
|
31995
32884
|
id: string;
|
|
31996
32885
|
invoice_number: string | null;
|
|
32886
|
+
next_attempt_at: string;
|
|
31997
32887
|
order_id: string;
|
|
31998
32888
|
processed_at: string | null;
|
|
31999
32889
|
status: string;
|
|
@@ -32005,6 +32895,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
32005
32895
|
error_message?: string | null;
|
|
32006
32896
|
id?: string;
|
|
32007
32897
|
invoice_number?: string | null;
|
|
32898
|
+
next_attempt_at?: string;
|
|
32008
32899
|
order_id: string;
|
|
32009
32900
|
processed_at?: string | null;
|
|
32010
32901
|
status?: string;
|
|
@@ -32016,6 +32907,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
32016
32907
|
error_message?: string | null;
|
|
32017
32908
|
id?: string;
|
|
32018
32909
|
invoice_number?: string | null;
|
|
32910
|
+
next_attempt_at?: string;
|
|
32019
32911
|
order_id?: string;
|
|
32020
32912
|
processed_at?: string | null;
|
|
32021
32913
|
status?: string;
|
|
@@ -33554,6 +34446,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
33554
34446
|
created_at: string;
|
|
33555
34447
|
id: string;
|
|
33556
34448
|
laatst_gezien: string;
|
|
34449
|
+
laatste_fout: string | null;
|
|
34450
|
+
laatste_request_id: number | null;
|
|
34451
|
+
mislukte_posts: number;
|
|
33557
34452
|
tick_sleutel: string;
|
|
33558
34453
|
updated_at: string;
|
|
33559
34454
|
};
|
|
@@ -33563,6 +34458,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
33563
34458
|
created_at?: string;
|
|
33564
34459
|
id?: string;
|
|
33565
34460
|
laatst_gezien?: string;
|
|
34461
|
+
laatste_fout?: string | null;
|
|
34462
|
+
laatste_request_id?: number | null;
|
|
34463
|
+
mislukte_posts?: number;
|
|
33566
34464
|
tick_sleutel?: string;
|
|
33567
34465
|
updated_at?: string;
|
|
33568
34466
|
};
|
|
@@ -33572,6 +34470,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
33572
34470
|
created_at?: string;
|
|
33573
34471
|
id?: string;
|
|
33574
34472
|
laatst_gezien?: string;
|
|
34473
|
+
laatste_fout?: string | null;
|
|
34474
|
+
laatste_request_id?: number | null;
|
|
34475
|
+
mislukte_posts?: number;
|
|
33575
34476
|
tick_sleutel?: string;
|
|
33576
34477
|
updated_at?: string;
|
|
33577
34478
|
};
|
|
@@ -35080,6 +35981,96 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
35080
35981
|
referencedColumns: ["id"];
|
|
35081
35982
|
}];
|
|
35082
35983
|
};
|
|
35984
|
+
role_assignments: {
|
|
35985
|
+
Row: {
|
|
35986
|
+
created_at: string;
|
|
35987
|
+
id: string;
|
|
35988
|
+
role_id: string;
|
|
35989
|
+
user_id: string;
|
|
35990
|
+
};
|
|
35991
|
+
Insert: {
|
|
35992
|
+
created_at?: string;
|
|
35993
|
+
id?: string;
|
|
35994
|
+
role_id: string;
|
|
35995
|
+
user_id: string;
|
|
35996
|
+
};
|
|
35997
|
+
Update: {
|
|
35998
|
+
created_at?: string;
|
|
35999
|
+
id?: string;
|
|
36000
|
+
role_id?: string;
|
|
36001
|
+
user_id?: string;
|
|
36002
|
+
};
|
|
36003
|
+
Relationships: [{
|
|
36004
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
36005
|
+
columns: ["role_id"];
|
|
36006
|
+
isOneToOne: false;
|
|
36007
|
+
referencedRelation: "roles";
|
|
36008
|
+
referencedColumns: ["id"];
|
|
36009
|
+
}];
|
|
36010
|
+
};
|
|
36011
|
+
role_permissions: {
|
|
36012
|
+
Row: {
|
|
36013
|
+
can_edit: boolean;
|
|
36014
|
+
can_view: boolean;
|
|
36015
|
+
feature_id: string;
|
|
36016
|
+
id: string;
|
|
36017
|
+
module_id: string;
|
|
36018
|
+
role_id: string;
|
|
36019
|
+
updated_at: string;
|
|
36020
|
+
};
|
|
36021
|
+
Insert: {
|
|
36022
|
+
can_edit?: boolean;
|
|
36023
|
+
can_view?: boolean;
|
|
36024
|
+
feature_id?: string;
|
|
36025
|
+
id?: string;
|
|
36026
|
+
module_id: string;
|
|
36027
|
+
role_id: string;
|
|
36028
|
+
updated_at?: string;
|
|
36029
|
+
};
|
|
36030
|
+
Update: {
|
|
36031
|
+
can_edit?: boolean;
|
|
36032
|
+
can_view?: boolean;
|
|
36033
|
+
feature_id?: string;
|
|
36034
|
+
id?: string;
|
|
36035
|
+
module_id?: string;
|
|
36036
|
+
role_id?: string;
|
|
36037
|
+
updated_at?: string;
|
|
36038
|
+
};
|
|
36039
|
+
Relationships: [{
|
|
36040
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
36041
|
+
columns: ["role_id"];
|
|
36042
|
+
isOneToOne: false;
|
|
36043
|
+
referencedRelation: "roles";
|
|
36044
|
+
referencedColumns: ["id"];
|
|
36045
|
+
}];
|
|
36046
|
+
};
|
|
36047
|
+
roles: {
|
|
36048
|
+
Row: {
|
|
36049
|
+
created_at: string;
|
|
36050
|
+
id: string;
|
|
36051
|
+
is_protected: boolean;
|
|
36052
|
+
key: string;
|
|
36053
|
+
name: string;
|
|
36054
|
+
updated_at: string;
|
|
36055
|
+
};
|
|
36056
|
+
Insert: {
|
|
36057
|
+
created_at?: string;
|
|
36058
|
+
id?: string;
|
|
36059
|
+
is_protected?: boolean;
|
|
36060
|
+
key: string;
|
|
36061
|
+
name: string;
|
|
36062
|
+
updated_at?: string;
|
|
36063
|
+
};
|
|
36064
|
+
Update: {
|
|
36065
|
+
created_at?: string;
|
|
36066
|
+
id?: string;
|
|
36067
|
+
is_protected?: boolean;
|
|
36068
|
+
key?: string;
|
|
36069
|
+
name?: string;
|
|
36070
|
+
updated_at?: string;
|
|
36071
|
+
};
|
|
36072
|
+
Relationships: [];
|
|
36073
|
+
};
|
|
35083
36074
|
rooms: {
|
|
35084
36075
|
Row: {
|
|
35085
36076
|
capacity: number;
|
|
@@ -35749,6 +36740,54 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
35749
36740
|
};
|
|
35750
36741
|
Relationships: [];
|
|
35751
36742
|
};
|
|
36743
|
+
time_compensation_entries: {
|
|
36744
|
+
Row: {
|
|
36745
|
+
created_at: string;
|
|
36746
|
+
employee_id: string;
|
|
36747
|
+
entry_date: string;
|
|
36748
|
+
id: string;
|
|
36749
|
+
km: number;
|
|
36750
|
+
meal_allowance: number;
|
|
36751
|
+
notes: string | null;
|
|
36752
|
+
standby_evening: number;
|
|
36753
|
+
standby_weekend: number;
|
|
36754
|
+
tvt_change: number;
|
|
36755
|
+
updated_at: string;
|
|
36756
|
+
};
|
|
36757
|
+
Insert: {
|
|
36758
|
+
created_at?: string;
|
|
36759
|
+
employee_id: string;
|
|
36760
|
+
entry_date: string;
|
|
36761
|
+
id?: string;
|
|
36762
|
+
km?: number;
|
|
36763
|
+
meal_allowance?: number;
|
|
36764
|
+
notes?: string | null;
|
|
36765
|
+
standby_evening?: number;
|
|
36766
|
+
standby_weekend?: number;
|
|
36767
|
+
tvt_change?: number;
|
|
36768
|
+
updated_at?: string;
|
|
36769
|
+
};
|
|
36770
|
+
Update: {
|
|
36771
|
+
created_at?: string;
|
|
36772
|
+
employee_id?: string;
|
|
36773
|
+
entry_date?: string;
|
|
36774
|
+
id?: string;
|
|
36775
|
+
km?: number;
|
|
36776
|
+
meal_allowance?: number;
|
|
36777
|
+
notes?: string | null;
|
|
36778
|
+
standby_evening?: number;
|
|
36779
|
+
standby_weekend?: number;
|
|
36780
|
+
tvt_change?: number;
|
|
36781
|
+
updated_at?: string;
|
|
36782
|
+
};
|
|
36783
|
+
Relationships: [{
|
|
36784
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
36785
|
+
columns: ["employee_id"];
|
|
36786
|
+
isOneToOne: false;
|
|
36787
|
+
referencedRelation: "profiles";
|
|
36788
|
+
referencedColumns: ["id"];
|
|
36789
|
+
}];
|
|
36790
|
+
};
|
|
35752
36791
|
time_entries: {
|
|
35753
36792
|
Row: {
|
|
35754
36793
|
created_at: string;
|
|
@@ -35783,65 +36822,170 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
35783
36822
|
undertime?: number;
|
|
35784
36823
|
updated_at?: string;
|
|
35785
36824
|
};
|
|
36825
|
+
Relationships: [];
|
|
36826
|
+
};
|
|
36827
|
+
time_log_week_approvals: {
|
|
36828
|
+
Row: {
|
|
36829
|
+
approved_at: string | null;
|
|
36830
|
+
approved_by: string | null;
|
|
36831
|
+
created_at: string;
|
|
36832
|
+
employee_id: string;
|
|
36833
|
+
id: string;
|
|
36834
|
+
locked: boolean;
|
|
36835
|
+
notes: string | null;
|
|
36836
|
+
status: string;
|
|
36837
|
+
submitted_at: string | null;
|
|
36838
|
+
updated_at: string;
|
|
36839
|
+
week_start: string;
|
|
36840
|
+
};
|
|
36841
|
+
Insert: {
|
|
36842
|
+
approved_at?: string | null;
|
|
36843
|
+
approved_by?: string | null;
|
|
36844
|
+
created_at?: string;
|
|
36845
|
+
employee_id: string;
|
|
36846
|
+
id?: string;
|
|
36847
|
+
locked?: boolean;
|
|
36848
|
+
notes?: string | null;
|
|
36849
|
+
status?: string;
|
|
36850
|
+
submitted_at?: string | null;
|
|
36851
|
+
updated_at?: string;
|
|
36852
|
+
week_start: string;
|
|
36853
|
+
};
|
|
36854
|
+
Update: {
|
|
36855
|
+
approved_at?: string | null;
|
|
36856
|
+
approved_by?: string | null;
|
|
36857
|
+
created_at?: string;
|
|
36858
|
+
employee_id?: string;
|
|
36859
|
+
id?: string;
|
|
36860
|
+
locked?: boolean;
|
|
36861
|
+
notes?: string | null;
|
|
36862
|
+
status?: string;
|
|
36863
|
+
submitted_at?: string | null;
|
|
36864
|
+
updated_at?: string;
|
|
36865
|
+
week_start?: string;
|
|
36866
|
+
};
|
|
35786
36867
|
Relationships: [{
|
|
35787
|
-
foreignKeyName: "
|
|
36868
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
35788
36869
|
columns: ["employee_id"];
|
|
35789
36870
|
isOneToOne: false;
|
|
35790
|
-
referencedRelation: "
|
|
36871
|
+
referencedRelation: "profiles";
|
|
35791
36872
|
referencedColumns: ["id"];
|
|
35792
36873
|
}];
|
|
35793
36874
|
};
|
|
35794
36875
|
time_logs: {
|
|
35795
36876
|
Row: {
|
|
36877
|
+
auto_stop_reason: string | null;
|
|
36878
|
+
auto_stopped: boolean;
|
|
35796
36879
|
created_at: string;
|
|
36880
|
+
current_latitude: number | null;
|
|
36881
|
+
current_longitude: number | null;
|
|
36882
|
+
current_position_updated_at: string | null;
|
|
35797
36883
|
employee_id: string;
|
|
36884
|
+
end_latitude: number | null;
|
|
36885
|
+
end_longitude: number | null;
|
|
35798
36886
|
end_time: string | null;
|
|
36887
|
+
eta_distance_km: number | null;
|
|
36888
|
+
eta_minutes: number | null;
|
|
36889
|
+
eta_updated_at: string | null;
|
|
36890
|
+
hour_category: string | null;
|
|
35799
36891
|
id: string;
|
|
36892
|
+
last_reminder_at: string | null;
|
|
35800
36893
|
notes: string | null;
|
|
35801
36894
|
overtime_hours: number;
|
|
35802
36895
|
overtime_type: string | null;
|
|
35803
36896
|
regular_hours: number;
|
|
36897
|
+
reminder_count: number;
|
|
36898
|
+
requires_review: boolean;
|
|
36899
|
+
start_latitude: number | null;
|
|
36900
|
+
start_longitude: number | null;
|
|
35804
36901
|
start_time: string;
|
|
35805
36902
|
travel_cost: number | null;
|
|
35806
36903
|
travel_distance_km: number | null;
|
|
36904
|
+
travel_duration_min: number | null;
|
|
36905
|
+
travel_time_minutes: number | null;
|
|
35807
36906
|
type: string;
|
|
35808
36907
|
updated_at: string;
|
|
36908
|
+
work_order_id: string | null;
|
|
35809
36909
|
};
|
|
35810
36910
|
Insert: {
|
|
36911
|
+
auto_stop_reason?: string | null;
|
|
36912
|
+
auto_stopped?: boolean;
|
|
35811
36913
|
created_at?: string;
|
|
36914
|
+
current_latitude?: number | null;
|
|
36915
|
+
current_longitude?: number | null;
|
|
36916
|
+
current_position_updated_at?: string | null;
|
|
35812
36917
|
employee_id: string;
|
|
36918
|
+
end_latitude?: number | null;
|
|
36919
|
+
end_longitude?: number | null;
|
|
35813
36920
|
end_time?: string | null;
|
|
36921
|
+
eta_distance_km?: number | null;
|
|
36922
|
+
eta_minutes?: number | null;
|
|
36923
|
+
eta_updated_at?: string | null;
|
|
36924
|
+
hour_category?: string | null;
|
|
35814
36925
|
id?: string;
|
|
36926
|
+
last_reminder_at?: string | null;
|
|
35815
36927
|
notes?: string | null;
|
|
35816
36928
|
overtime_hours?: number;
|
|
35817
36929
|
overtime_type?: string | null;
|
|
35818
36930
|
regular_hours?: number;
|
|
36931
|
+
reminder_count?: number;
|
|
36932
|
+
requires_review?: boolean;
|
|
36933
|
+
start_latitude?: number | null;
|
|
36934
|
+
start_longitude?: number | null;
|
|
35819
36935
|
start_time?: string;
|
|
35820
36936
|
travel_cost?: number | null;
|
|
35821
36937
|
travel_distance_km?: number | null;
|
|
36938
|
+
travel_duration_min?: number | null;
|
|
36939
|
+
travel_time_minutes?: number | null;
|
|
35822
36940
|
type: string;
|
|
35823
36941
|
updated_at?: string;
|
|
36942
|
+
work_order_id?: string | null;
|
|
35824
36943
|
};
|
|
35825
36944
|
Update: {
|
|
36945
|
+
auto_stop_reason?: string | null;
|
|
36946
|
+
auto_stopped?: boolean;
|
|
35826
36947
|
created_at?: string;
|
|
36948
|
+
current_latitude?: number | null;
|
|
36949
|
+
current_longitude?: number | null;
|
|
36950
|
+
current_position_updated_at?: string | null;
|
|
35827
36951
|
employee_id?: string;
|
|
36952
|
+
end_latitude?: number | null;
|
|
36953
|
+
end_longitude?: number | null;
|
|
35828
36954
|
end_time?: string | null;
|
|
36955
|
+
eta_distance_km?: number | null;
|
|
36956
|
+
eta_minutes?: number | null;
|
|
36957
|
+
eta_updated_at?: string | null;
|
|
36958
|
+
hour_category?: string | null;
|
|
35829
36959
|
id?: string;
|
|
36960
|
+
last_reminder_at?: string | null;
|
|
35830
36961
|
notes?: string | null;
|
|
35831
36962
|
overtime_hours?: number;
|
|
35832
36963
|
overtime_type?: string | null;
|
|
35833
36964
|
regular_hours?: number;
|
|
36965
|
+
reminder_count?: number;
|
|
36966
|
+
requires_review?: boolean;
|
|
36967
|
+
start_latitude?: number | null;
|
|
36968
|
+
start_longitude?: number | null;
|
|
35834
36969
|
start_time?: string;
|
|
35835
36970
|
travel_cost?: number | null;
|
|
35836
36971
|
travel_distance_km?: number | null;
|
|
36972
|
+
travel_duration_min?: number | null;
|
|
36973
|
+
travel_time_minutes?: number | null;
|
|
35837
36974
|
type?: string;
|
|
35838
36975
|
updated_at?: string;
|
|
36976
|
+
work_order_id?: string | null;
|
|
35839
36977
|
};
|
|
35840
36978
|
Relationships: [{
|
|
35841
36979
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
35842
36980
|
columns: ["employee_id"];
|
|
35843
36981
|
isOneToOne: false;
|
|
35844
|
-
referencedRelation: "
|
|
36982
|
+
referencedRelation: "profiles";
|
|
36983
|
+
referencedColumns: ["id"];
|
|
36984
|
+
}, {
|
|
36985
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
36986
|
+
columns: ["work_order_id"];
|
|
36987
|
+
isOneToOne: false;
|
|
36988
|
+
referencedRelation: "work_orders";
|
|
35845
36989
|
referencedColumns: ["id"];
|
|
35846
36990
|
}];
|
|
35847
36991
|
};
|
|
@@ -35880,7 +37024,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
35880
37024
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
35881
37025
|
columns: ["employee_id"];
|
|
35882
37026
|
isOneToOne: false;
|
|
35883
|
-
referencedRelation: "
|
|
37027
|
+
referencedRelation: "profiles";
|
|
35884
37028
|
referencedColumns: ["id"];
|
|
35885
37029
|
}];
|
|
35886
37030
|
};
|
|
@@ -36190,6 +37334,39 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
36190
37334
|
};
|
|
36191
37335
|
Relationships: [];
|
|
36192
37336
|
};
|
|
37337
|
+
twinfield_cron_locks: {
|
|
37338
|
+
Row: {
|
|
37339
|
+
created_at: string;
|
|
37340
|
+
heartbeat_at: string;
|
|
37341
|
+
job_name: string;
|
|
37342
|
+
last_error: string | null;
|
|
37343
|
+
last_finished_at: string | null;
|
|
37344
|
+
locked_at: string;
|
|
37345
|
+
run_id: string;
|
|
37346
|
+
updated_at: string;
|
|
37347
|
+
};
|
|
37348
|
+
Insert: {
|
|
37349
|
+
created_at?: string;
|
|
37350
|
+
heartbeat_at?: string;
|
|
37351
|
+
job_name: string;
|
|
37352
|
+
last_error?: string | null;
|
|
37353
|
+
last_finished_at?: string | null;
|
|
37354
|
+
locked_at?: string;
|
|
37355
|
+
run_id?: string;
|
|
37356
|
+
updated_at?: string;
|
|
37357
|
+
};
|
|
37358
|
+
Update: {
|
|
37359
|
+
created_at?: string;
|
|
37360
|
+
heartbeat_at?: string;
|
|
37361
|
+
job_name?: string;
|
|
37362
|
+
last_error?: string | null;
|
|
37363
|
+
last_finished_at?: string | null;
|
|
37364
|
+
locked_at?: string;
|
|
37365
|
+
run_id?: string;
|
|
37366
|
+
updated_at?: string;
|
|
37367
|
+
};
|
|
37368
|
+
Relationships: [];
|
|
37369
|
+
};
|
|
36193
37370
|
twinfield_customers: {
|
|
36194
37371
|
Row: {
|
|
36195
37372
|
address: string | null;
|
|
@@ -36790,6 +37967,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
36790
37967
|
twinfield_push_queue: {
|
|
36791
37968
|
Row: {
|
|
36792
37969
|
action: string;
|
|
37970
|
+
attempt_started_at: string | null;
|
|
36793
37971
|
attempts: number;
|
|
36794
37972
|
connection_id: string | null;
|
|
36795
37973
|
created_at: string;
|
|
@@ -36806,6 +37984,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
36806
37984
|
};
|
|
36807
37985
|
Insert: {
|
|
36808
37986
|
action?: string;
|
|
37987
|
+
attempt_started_at?: string | null;
|
|
36809
37988
|
attempts?: number;
|
|
36810
37989
|
connection_id?: string | null;
|
|
36811
37990
|
created_at?: string;
|
|
@@ -36822,6 +38001,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
36822
38001
|
};
|
|
36823
38002
|
Update: {
|
|
36824
38003
|
action?: string;
|
|
38004
|
+
attempt_started_at?: string | null;
|
|
36825
38005
|
attempts?: number;
|
|
36826
38006
|
connection_id?: string | null;
|
|
36827
38007
|
created_at?: string;
|
|
@@ -37019,13 +38199,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
37019
38199
|
workday_end?: string | null;
|
|
37020
38200
|
workday_start?: string | null;
|
|
37021
38201
|
};
|
|
37022
|
-
Relationships: [
|
|
37023
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
37024
|
-
columns: ["monteur_id"];
|
|
37025
|
-
isOneToOne: true;
|
|
37026
|
-
referencedRelation: "monteurs";
|
|
37027
|
-
referencedColumns: ["id"];
|
|
37028
|
-
}];
|
|
38202
|
+
Relationships: [];
|
|
37029
38203
|
};
|
|
37030
38204
|
uren_entries: {
|
|
37031
38205
|
Row: {
|
|
@@ -37071,12 +38245,6 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
37071
38245
|
werkbon_id?: string | null;
|
|
37072
38246
|
};
|
|
37073
38247
|
Relationships: [{
|
|
37074
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
37075
|
-
columns: ["monteur_id"];
|
|
37076
|
-
isOneToOne: false;
|
|
37077
|
-
referencedRelation: "monteurs";
|
|
37078
|
-
referencedColumns: ["id"];
|
|
37079
|
-
}, {
|
|
37080
38248
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
37081
38249
|
columns: ["werkbon_id"];
|
|
37082
38250
|
isOneToOne: false;
|
|
@@ -37544,17 +38712,12 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
37544
38712
|
submitted_at?: string | null;
|
|
37545
38713
|
updated_at?: string;
|
|
37546
38714
|
};
|
|
37547
|
-
Relationships: [
|
|
37548
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
37549
|
-
columns: ["monteur_id"];
|
|
37550
|
-
isOneToOne: false;
|
|
37551
|
-
referencedRelation: "monteurs";
|
|
37552
|
-
referencedColumns: ["id"];
|
|
37553
|
-
}];
|
|
38715
|
+
Relationships: [];
|
|
37554
38716
|
};
|
|
37555
38717
|
user_module_permissions: {
|
|
37556
38718
|
Row: {
|
|
37557
38719
|
created_at: string;
|
|
38720
|
+
feature_id: string;
|
|
37558
38721
|
id: string;
|
|
37559
38722
|
module_id: string;
|
|
37560
38723
|
permission: string;
|
|
@@ -37563,6 +38726,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
37563
38726
|
};
|
|
37564
38727
|
Insert: {
|
|
37565
38728
|
created_at?: string;
|
|
38729
|
+
feature_id?: string;
|
|
37566
38730
|
id?: string;
|
|
37567
38731
|
module_id: string;
|
|
37568
38732
|
permission: string;
|
|
@@ -37571,6 +38735,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
37571
38735
|
};
|
|
37572
38736
|
Update: {
|
|
37573
38737
|
created_at?: string;
|
|
38738
|
+
feature_id?: string;
|
|
37574
38739
|
id?: string;
|
|
37575
38740
|
module_id?: string;
|
|
37576
38741
|
permission?: string;
|
|
@@ -37606,6 +38771,51 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
37606
38771
|
referencedColumns: ["id"];
|
|
37607
38772
|
}];
|
|
37608
38773
|
};
|
|
38774
|
+
van_inventories: {
|
|
38775
|
+
Row: {
|
|
38776
|
+
barcode: string | null;
|
|
38777
|
+
created_at: string;
|
|
38778
|
+
id: string;
|
|
38779
|
+
monteur_id: string | null;
|
|
38780
|
+
price_per_unit: number;
|
|
38781
|
+
product_name: string;
|
|
38782
|
+
quantity_current: number;
|
|
38783
|
+
quantity_min: number;
|
|
38784
|
+
unit: string;
|
|
38785
|
+
updated_at: string;
|
|
38786
|
+
};
|
|
38787
|
+
Insert: {
|
|
38788
|
+
barcode?: string | null;
|
|
38789
|
+
created_at?: string;
|
|
38790
|
+
id?: string;
|
|
38791
|
+
monteur_id?: string | null;
|
|
38792
|
+
price_per_unit?: number;
|
|
38793
|
+
product_name: string;
|
|
38794
|
+
quantity_current?: number;
|
|
38795
|
+
quantity_min?: number;
|
|
38796
|
+
unit?: string;
|
|
38797
|
+
updated_at?: string;
|
|
38798
|
+
};
|
|
38799
|
+
Update: {
|
|
38800
|
+
barcode?: string | null;
|
|
38801
|
+
created_at?: string;
|
|
38802
|
+
id?: string;
|
|
38803
|
+
monteur_id?: string | null;
|
|
38804
|
+
price_per_unit?: number;
|
|
38805
|
+
product_name?: string;
|
|
38806
|
+
quantity_current?: number;
|
|
38807
|
+
quantity_min?: number;
|
|
38808
|
+
unit?: string;
|
|
38809
|
+
updated_at?: string;
|
|
38810
|
+
};
|
|
38811
|
+
Relationships: [{
|
|
38812
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
38813
|
+
columns: ["monteur_id"];
|
|
38814
|
+
isOneToOne: false;
|
|
38815
|
+
referencedRelation: "profiles";
|
|
38816
|
+
referencedColumns: ["id"];
|
|
38817
|
+
}];
|
|
38818
|
+
};
|
|
37609
38819
|
voorraad_custom_fields: {
|
|
37610
38820
|
Row: {
|
|
37611
38821
|
created_at: string;
|
|
@@ -38556,7 +39766,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
38556
39766
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
38557
39767
|
columns: ["monteur_id"];
|
|
38558
39768
|
isOneToOne: false;
|
|
38559
|
-
referencedRelation: "
|
|
39769
|
+
referencedRelation: "profiles";
|
|
38560
39770
|
referencedColumns: ["id"];
|
|
38561
39771
|
}, {
|
|
38562
39772
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -38566,6 +39776,60 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
38566
39776
|
referencedColumns: ["id"];
|
|
38567
39777
|
}];
|
|
38568
39778
|
};
|
|
39779
|
+
work_order_photos: {
|
|
39780
|
+
Row: {
|
|
39781
|
+
ai_caption: string | null;
|
|
39782
|
+
ai_categorized_at: string | null;
|
|
39783
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
39784
|
+
caption: string | null;
|
|
39785
|
+
created_at: string;
|
|
39786
|
+
id: string;
|
|
39787
|
+
monteur_id: string | null;
|
|
39788
|
+
photo_type: string;
|
|
39789
|
+
storage_path: string;
|
|
39790
|
+
updated_at: string;
|
|
39791
|
+
work_order_id: string;
|
|
39792
|
+
};
|
|
39793
|
+
Insert: {
|
|
39794
|
+
ai_caption?: string | null;
|
|
39795
|
+
ai_categorized_at?: string | null;
|
|
39796
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
39797
|
+
caption?: string | null;
|
|
39798
|
+
created_at?: string;
|
|
39799
|
+
id?: string;
|
|
39800
|
+
monteur_id?: string | null;
|
|
39801
|
+
photo_type?: string;
|
|
39802
|
+
storage_path: string;
|
|
39803
|
+
updated_at?: string;
|
|
39804
|
+
work_order_id: string;
|
|
39805
|
+
};
|
|
39806
|
+
Update: {
|
|
39807
|
+
ai_caption?: string | null;
|
|
39808
|
+
ai_categorized_at?: string | null;
|
|
39809
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
39810
|
+
caption?: string | null;
|
|
39811
|
+
created_at?: string;
|
|
39812
|
+
id?: string;
|
|
39813
|
+
monteur_id?: string | null;
|
|
39814
|
+
photo_type?: string;
|
|
39815
|
+
storage_path?: string;
|
|
39816
|
+
updated_at?: string;
|
|
39817
|
+
work_order_id?: string;
|
|
39818
|
+
};
|
|
39819
|
+
Relationships: [{
|
|
39820
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
39821
|
+
columns: ["monteur_id"];
|
|
39822
|
+
isOneToOne: false;
|
|
39823
|
+
referencedRelation: "profiles";
|
|
39824
|
+
referencedColumns: ["id"];
|
|
39825
|
+
}, {
|
|
39826
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
39827
|
+
columns: ["work_order_id"];
|
|
39828
|
+
isOneToOne: false;
|
|
39829
|
+
referencedRelation: "work_orders";
|
|
39830
|
+
referencedColumns: ["id"];
|
|
39831
|
+
}];
|
|
39832
|
+
};
|
|
38569
39833
|
work_orders: {
|
|
38570
39834
|
Row: {
|
|
38571
39835
|
assigned_to: string | null;
|
|
@@ -38597,7 +39861,6 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
38597
39861
|
scheduled_end_time: string | null;
|
|
38598
39862
|
scheduled_start_time: string | null;
|
|
38599
39863
|
status: string;
|
|
38600
|
-
tenant_id: string;
|
|
38601
39864
|
total_hours_worked: number | null;
|
|
38602
39865
|
total_price: number | null;
|
|
38603
39866
|
travel_time_minutes: number | null;
|
|
@@ -38635,7 +39898,6 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
38635
39898
|
scheduled_end_time?: string | null;
|
|
38636
39899
|
scheduled_start_time?: string | null;
|
|
38637
39900
|
status?: string;
|
|
38638
|
-
tenant_id: string;
|
|
38639
39901
|
total_hours_worked?: number | null;
|
|
38640
39902
|
total_price?: number | null;
|
|
38641
39903
|
travel_time_minutes?: number | null;
|
|
@@ -38673,7 +39935,6 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
38673
39935
|
scheduled_end_time?: string | null;
|
|
38674
39936
|
scheduled_start_time?: string | null;
|
|
38675
39937
|
status?: string;
|
|
38676
|
-
tenant_id?: string;
|
|
38677
39938
|
total_hours_worked?: number | null;
|
|
38678
39939
|
total_price?: number | null;
|
|
38679
39940
|
travel_time_minutes?: number | null;
|
|
@@ -38687,12 +39948,6 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
38687
39948
|
isOneToOne: false;
|
|
38688
39949
|
referencedRelation: "work_orders";
|
|
38689
39950
|
referencedColumns: ["id"];
|
|
38690
|
-
}, {
|
|
38691
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
38692
|
-
columns: ["tenant_id"];
|
|
38693
|
-
isOneToOne: false;
|
|
38694
|
-
referencedRelation: "tenants";
|
|
38695
|
-
referencedColumns: ["id"];
|
|
38696
39951
|
}];
|
|
38697
39952
|
};
|
|
38698
39953
|
};
|
|
@@ -39377,6 +40632,19 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
39377
40632
|
};
|
|
39378
40633
|
Returns: undefined;
|
|
39379
40634
|
};
|
|
40635
|
+
approve_mailbox_order_proposal: {
|
|
40636
|
+
Args: {
|
|
40637
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
40638
|
+
p_customer_id: string;
|
|
40639
|
+
p_delivery_date: string;
|
|
40640
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
40641
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
40642
|
+
p_notes: string;
|
|
40643
|
+
p_proposal_id: string;
|
|
40644
|
+
p_reviewed_by: string;
|
|
40645
|
+
};
|
|
40646
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
40647
|
+
};
|
|
39380
40648
|
assign_cart_numbers: {
|
|
39381
40649
|
Args: {
|
|
39382
40650
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -39428,6 +40696,10 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
39428
40696
|
};
|
|
39429
40697
|
Returns: number;
|
|
39430
40698
|
};
|
|
40699
|
+
can_manage_hours: {
|
|
40700
|
+
Args: never;
|
|
40701
|
+
Returns: boolean;
|
|
40702
|
+
};
|
|
39431
40703
|
check_offer_product_available_stock: {
|
|
39432
40704
|
Args: {
|
|
39433
40705
|
p_campaign_product_id: string;
|
|
@@ -39617,6 +40889,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
39617
40889
|
};
|
|
39618
40890
|
Returns: {
|
|
39619
40891
|
action: string;
|
|
40892
|
+
attempt_started_at: string | null;
|
|
39620
40893
|
attempts: number;
|
|
39621
40894
|
connection_id: string | null;
|
|
39622
40895
|
created_at: string;
|
|
@@ -39704,6 +40977,30 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
39704
40977
|
agent_naam: string;
|
|
39705
40978
|
}[];
|
|
39706
40979
|
};
|
|
40980
|
+
consume_van_inventory: {
|
|
40981
|
+
Args: {
|
|
40982
|
+
p_inventory_id: string;
|
|
40983
|
+
p_quantity: number;
|
|
40984
|
+
};
|
|
40985
|
+
Returns: {
|
|
40986
|
+
barcode: string | null;
|
|
40987
|
+
created_at: string;
|
|
40988
|
+
id: string;
|
|
40989
|
+
monteur_id: string | null;
|
|
40990
|
+
price_per_unit: number;
|
|
40991
|
+
product_name: string;
|
|
40992
|
+
quantity_current: number;
|
|
40993
|
+
quantity_min: number;
|
|
40994
|
+
unit: string;
|
|
40995
|
+
updated_at: string;
|
|
40996
|
+
};
|
|
40997
|
+
SetofOptions: {
|
|
40998
|
+
from: "*";
|
|
40999
|
+
to: "van_inventories";
|
|
41000
|
+
isOneToOne: true;
|
|
41001
|
+
isSetofReturn: false;
|
|
41002
|
+
};
|
|
41003
|
+
};
|
|
39707
41004
|
control_get_todays_carts: {
|
|
39708
41005
|
Args: never;
|
|
39709
41006
|
Returns: {
|
|
@@ -39777,6 +41074,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
39777
41074
|
_user_id: string;
|
|
39778
41075
|
};
|
|
39779
41076
|
Returns: string;
|
|
41077
|
+
} | {
|
|
41078
|
+
Args: {
|
|
41079
|
+
_feature_id: string;
|
|
41080
|
+
_module_id: string;
|
|
41081
|
+
_user_id: string;
|
|
41082
|
+
};
|
|
41083
|
+
Returns: string;
|
|
39780
41084
|
};
|
|
39781
41085
|
email_auth_decrypt: {
|
|
39782
41086
|
Args: {
|
|
@@ -40128,12 +41432,6 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
40128
41432
|
Args: never;
|
|
40129
41433
|
Returns: string;
|
|
40130
41434
|
};
|
|
40131
|
-
get_work_order_tenant_id: {
|
|
40132
|
-
Args: {
|
|
40133
|
-
wo_id: string;
|
|
40134
|
-
};
|
|
40135
|
-
Returns: string;
|
|
40136
|
-
};
|
|
40137
41435
|
has_module_permission: {
|
|
40138
41436
|
Args: {
|
|
40139
41437
|
_min: string;
|
|
@@ -40167,6 +41465,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
40167
41465
|
};
|
|
40168
41466
|
Returns: boolean;
|
|
40169
41467
|
};
|
|
41468
|
+
is_time_log_week_locked: {
|
|
41469
|
+
Args: {
|
|
41470
|
+
p_employee_id: string;
|
|
41471
|
+
p_start_time: string;
|
|
41472
|
+
};
|
|
41473
|
+
Returns: boolean;
|
|
41474
|
+
};
|
|
40170
41475
|
is_user_admin: {
|
|
40171
41476
|
Args: never;
|
|
40172
41477
|
Returns: boolean;
|
|
@@ -40181,13 +41486,14 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
40181
41486
|
};
|
|
40182
41487
|
Returns: boolean;
|
|
40183
41488
|
};
|
|
40184
|
-
|
|
41489
|
+
list_medewerkers: {
|
|
40185
41490
|
Args: never;
|
|
40186
41491
|
Returns: {
|
|
40187
41492
|
avatar_url: string;
|
|
40188
41493
|
display_name: string;
|
|
40189
41494
|
email: string;
|
|
40190
41495
|
id: string;
|
|
41496
|
+
roles: string[];
|
|
40191
41497
|
}[];
|
|
40192
41498
|
};
|
|
40193
41499
|
list_my_planning_items: {
|
|
@@ -40678,6 +41984,65 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
40678
41984
|
};
|
|
40679
41985
|
Returns: number;
|
|
40680
41986
|
};
|
|
41987
|
+
logistics_plan_claim: {
|
|
41988
|
+
Args: {
|
|
41989
|
+
p_limit?: number;
|
|
41990
|
+
};
|
|
41991
|
+
Returns: {
|
|
41992
|
+
attempts: number;
|
|
41993
|
+
id: string;
|
|
41994
|
+
order_id: string;
|
|
41995
|
+
}[];
|
|
41996
|
+
};
|
|
41997
|
+
logistics_plan_enqueue: {
|
|
41998
|
+
Args: {
|
|
41999
|
+
p_order_id: string;
|
|
42000
|
+
p_reason?: string;
|
|
42001
|
+
};
|
|
42002
|
+
Returns: undefined;
|
|
42003
|
+
};
|
|
42004
|
+
logistics_plan_ensure_event: {
|
|
42005
|
+
Args: {
|
|
42006
|
+
p_order_id: string;
|
|
42007
|
+
};
|
|
42008
|
+
Returns: boolean;
|
|
42009
|
+
};
|
|
42010
|
+
logistics_plan_finish: {
|
|
42011
|
+
Args: {
|
|
42012
|
+
p_error?: string;
|
|
42013
|
+
p_id: string;
|
|
42014
|
+
};
|
|
42015
|
+
Returns: undefined;
|
|
42016
|
+
};
|
|
42017
|
+
logistics_plan_impact_orders: {
|
|
42018
|
+
Args: {
|
|
42019
|
+
p_order_id: string;
|
|
42020
|
+
};
|
|
42021
|
+
Returns: {
|
|
42022
|
+
buffer_id: string;
|
|
42023
|
+
order_id: string;
|
|
42024
|
+
plan_date: string;
|
|
42025
|
+
}[];
|
|
42026
|
+
};
|
|
42027
|
+
logistics_plan_kick: {
|
|
42028
|
+
Args: never;
|
|
42029
|
+
Returns: undefined;
|
|
42030
|
+
};
|
|
42031
|
+
logistics_plan_prune: {
|
|
42032
|
+
Args: never;
|
|
42033
|
+
Returns: number;
|
|
42034
|
+
};
|
|
42035
|
+
logistics_plan_release_stale: {
|
|
42036
|
+
Args: never;
|
|
42037
|
+
Returns: number;
|
|
42038
|
+
};
|
|
42039
|
+
logistics_plan_setting: {
|
|
42040
|
+
Args: {
|
|
42041
|
+
p_default: number;
|
|
42042
|
+
p_key: string;
|
|
42043
|
+
};
|
|
42044
|
+
Returns: number;
|
|
42045
|
+
};
|
|
40681
42046
|
logistics_queue_capacity_email: {
|
|
40682
42047
|
Args: {
|
|
40683
42048
|
p_alert_id: string;
|
|
@@ -40919,6 +42284,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
40919
42284
|
my_module_permissions: {
|
|
40920
42285
|
Args: never;
|
|
40921
42286
|
Returns: {
|
|
42287
|
+
feature_id: string;
|
|
40922
42288
|
module_id: string;
|
|
40923
42289
|
permission: string;
|
|
40924
42290
|
}[];
|
|
@@ -41799,6 +43165,16 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
41799
43165
|
};
|
|
41800
43166
|
Returns: string[];
|
|
41801
43167
|
};
|
|
43168
|
+
switch_time_log: {
|
|
43169
|
+
Args: {
|
|
43170
|
+
p_employee_id: string;
|
|
43171
|
+
p_start_lat?: number;
|
|
43172
|
+
p_start_lng?: number;
|
|
43173
|
+
p_type: string;
|
|
43174
|
+
p_work_order_id?: string;
|
|
43175
|
+
};
|
|
43176
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43177
|
+
};
|
|
41802
43178
|
sync_all_layer_stocks: {
|
|
41803
43179
|
Args: never;
|
|
41804
43180
|
Returns: undefined;
|
|
@@ -41849,6 +43225,24 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
41849
43225
|
};
|
|
41850
43226
|
Returns: boolean;
|
|
41851
43227
|
};
|
|
43228
|
+
twinfield_cron_lock_acquire: {
|
|
43229
|
+
Args: {
|
|
43230
|
+
_job_name: string;
|
|
43231
|
+
_stale_seconds?: number;
|
|
43232
|
+
};
|
|
43233
|
+
Returns: boolean;
|
|
43234
|
+
};
|
|
43235
|
+
twinfield_cron_lock_release: {
|
|
43236
|
+
Args: {
|
|
43237
|
+
_error?: string;
|
|
43238
|
+
_job_name: string;
|
|
43239
|
+
};
|
|
43240
|
+
Returns: undefined;
|
|
43241
|
+
};
|
|
43242
|
+
twinfield_prune_push_queue: {
|
|
43243
|
+
Args: never;
|
|
43244
|
+
Returns: number;
|
|
43245
|
+
};
|
|
41852
43246
|
twinfield_register_cron: {
|
|
41853
43247
|
Args: {
|
|
41854
43248
|
apikey?: string;
|
|
@@ -42796,6 +44190,126 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
42796
44190
|
};
|
|
42797
44191
|
Relationships: [];
|
|
42798
44192
|
};
|
|
44193
|
+
cao_holidays: {
|
|
44194
|
+
Row: {
|
|
44195
|
+
created_at: string;
|
|
44196
|
+
description: string | null;
|
|
44197
|
+
holiday_date: string;
|
|
44198
|
+
id: string;
|
|
44199
|
+
updated_at: string;
|
|
44200
|
+
};
|
|
44201
|
+
Insert: {
|
|
44202
|
+
created_at?: string;
|
|
44203
|
+
description?: string | null;
|
|
44204
|
+
holiday_date: string;
|
|
44205
|
+
id?: string;
|
|
44206
|
+
updated_at?: string;
|
|
44207
|
+
};
|
|
44208
|
+
Update: {
|
|
44209
|
+
created_at?: string;
|
|
44210
|
+
description?: string | null;
|
|
44211
|
+
holiday_date?: string;
|
|
44212
|
+
id?: string;
|
|
44213
|
+
updated_at?: string;
|
|
44214
|
+
};
|
|
44215
|
+
Relationships: [];
|
|
44216
|
+
};
|
|
44217
|
+
cao_settings: {
|
|
44218
|
+
Row: {
|
|
44219
|
+
auto_break_after_hours: number;
|
|
44220
|
+
auto_break_minutes: number;
|
|
44221
|
+
auto_break_unpaid: boolean;
|
|
44222
|
+
auto_stop_after_hours: number;
|
|
44223
|
+
callout_fee: number;
|
|
44224
|
+
created_at: string;
|
|
44225
|
+
daily_regular_hours: number;
|
|
44226
|
+
default_hourly_rate: number;
|
|
44227
|
+
id: string;
|
|
44228
|
+
materials_markup_percent: number;
|
|
44229
|
+
max_daily_hours: number;
|
|
44230
|
+
max_weekly_hours: number;
|
|
44231
|
+
meal_allowance_amount: number;
|
|
44232
|
+
overtime_pct_178: number;
|
|
44233
|
+
overtime_pct_189: number;
|
|
44234
|
+
overtime_pct_212: number;
|
|
44235
|
+
reminder_after_hours: number;
|
|
44236
|
+
standby_evening_amount: number;
|
|
44237
|
+
standby_weekend_amount: number;
|
|
44238
|
+
travel_cost_per_km: number | null;
|
|
44239
|
+
travel_cost_threshold_km: number | null;
|
|
44240
|
+
travel_counts_as_work: boolean;
|
|
44241
|
+
travel_hourly_rate: number;
|
|
44242
|
+
travel_rate_per_hour: number;
|
|
44243
|
+
travel_threshold_minutes: number;
|
|
44244
|
+
updated_at: string;
|
|
44245
|
+
weekend_always_212: boolean;
|
|
44246
|
+
window_end: string;
|
|
44247
|
+
window_start: string;
|
|
44248
|
+
};
|
|
44249
|
+
Insert: {
|
|
44250
|
+
auto_break_after_hours?: number;
|
|
44251
|
+
auto_break_minutes?: number;
|
|
44252
|
+
auto_break_unpaid?: boolean;
|
|
44253
|
+
auto_stop_after_hours?: number;
|
|
44254
|
+
callout_fee?: number;
|
|
44255
|
+
created_at?: string;
|
|
44256
|
+
daily_regular_hours?: number;
|
|
44257
|
+
default_hourly_rate?: number;
|
|
44258
|
+
id?: string;
|
|
44259
|
+
materials_markup_percent?: number;
|
|
44260
|
+
max_daily_hours?: number;
|
|
44261
|
+
max_weekly_hours?: number;
|
|
44262
|
+
meal_allowance_amount?: number;
|
|
44263
|
+
overtime_pct_178?: number;
|
|
44264
|
+
overtime_pct_189?: number;
|
|
44265
|
+
overtime_pct_212?: number;
|
|
44266
|
+
reminder_after_hours?: number;
|
|
44267
|
+
standby_evening_amount?: number;
|
|
44268
|
+
standby_weekend_amount?: number;
|
|
44269
|
+
travel_cost_per_km?: number | null;
|
|
44270
|
+
travel_cost_threshold_km?: number | null;
|
|
44271
|
+
travel_counts_as_work?: boolean;
|
|
44272
|
+
travel_hourly_rate?: number;
|
|
44273
|
+
travel_rate_per_hour?: number;
|
|
44274
|
+
travel_threshold_minutes?: number;
|
|
44275
|
+
updated_at?: string;
|
|
44276
|
+
weekend_always_212?: boolean;
|
|
44277
|
+
window_end?: string;
|
|
44278
|
+
window_start?: string;
|
|
44279
|
+
};
|
|
44280
|
+
Update: {
|
|
44281
|
+
auto_break_after_hours?: number;
|
|
44282
|
+
auto_break_minutes?: number;
|
|
44283
|
+
auto_break_unpaid?: boolean;
|
|
44284
|
+
auto_stop_after_hours?: number;
|
|
44285
|
+
callout_fee?: number;
|
|
44286
|
+
created_at?: string;
|
|
44287
|
+
daily_regular_hours?: number;
|
|
44288
|
+
default_hourly_rate?: number;
|
|
44289
|
+
id?: string;
|
|
44290
|
+
materials_markup_percent?: number;
|
|
44291
|
+
max_daily_hours?: number;
|
|
44292
|
+
max_weekly_hours?: number;
|
|
44293
|
+
meal_allowance_amount?: number;
|
|
44294
|
+
overtime_pct_178?: number;
|
|
44295
|
+
overtime_pct_189?: number;
|
|
44296
|
+
overtime_pct_212?: number;
|
|
44297
|
+
reminder_after_hours?: number;
|
|
44298
|
+
standby_evening_amount?: number;
|
|
44299
|
+
standby_weekend_amount?: number;
|
|
44300
|
+
travel_cost_per_km?: number | null;
|
|
44301
|
+
travel_cost_threshold_km?: number | null;
|
|
44302
|
+
travel_counts_as_work?: boolean;
|
|
44303
|
+
travel_hourly_rate?: number;
|
|
44304
|
+
travel_rate_per_hour?: number;
|
|
44305
|
+
travel_threshold_minutes?: number;
|
|
44306
|
+
updated_at?: string;
|
|
44307
|
+
weekend_always_212?: boolean;
|
|
44308
|
+
window_end?: string;
|
|
44309
|
+
window_start?: string;
|
|
44310
|
+
};
|
|
44311
|
+
Relationships: [];
|
|
44312
|
+
};
|
|
42799
44313
|
carrier_shipping_rates: {
|
|
42800
44314
|
Row: {
|
|
42801
44315
|
carrier_id: string;
|
|
@@ -49690,7 +51204,6 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
49690
51204
|
start_date: string;
|
|
49691
51205
|
start_time: string | null;
|
|
49692
51206
|
status: string;
|
|
49693
|
-
tenant_id: string;
|
|
49694
51207
|
updated_at: string;
|
|
49695
51208
|
user_id: string;
|
|
49696
51209
|
};
|
|
@@ -49708,7 +51221,6 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
49708
51221
|
start_date: string;
|
|
49709
51222
|
start_time?: string | null;
|
|
49710
51223
|
status?: string;
|
|
49711
|
-
tenant_id?: string;
|
|
49712
51224
|
updated_at?: string;
|
|
49713
51225
|
user_id: string;
|
|
49714
51226
|
};
|
|
@@ -49726,7 +51238,6 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
49726
51238
|
start_date?: string;
|
|
49727
51239
|
start_time?: string | null;
|
|
49728
51240
|
status?: string;
|
|
49729
|
-
tenant_id?: string;
|
|
49730
51241
|
updated_at?: string;
|
|
49731
51242
|
user_id?: string;
|
|
49732
51243
|
};
|
|
@@ -49734,13 +51245,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
49734
51245
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
49735
51246
|
columns: ["monteur_id"];
|
|
49736
51247
|
isOneToOne: false;
|
|
49737
|
-
referencedRelation: "
|
|
51248
|
+
referencedRelation: "profiles";
|
|
49738
51249
|
referencedColumns: ["id"];
|
|
49739
51250
|
}, {
|
|
49740
51251
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
49741
51252
|
columns: ["user_id"];
|
|
49742
51253
|
isOneToOne: false;
|
|
49743
|
-
referencedRelation: "
|
|
51254
|
+
referencedRelation: "profiles";
|
|
49744
51255
|
referencedColumns: ["id"];
|
|
49745
51256
|
}];
|
|
49746
51257
|
};
|
|
@@ -50608,6 +52119,45 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
50608
52119
|
};
|
|
50609
52120
|
Relationships: [];
|
|
50610
52121
|
};
|
|
52122
|
+
logistics_plan_queue: {
|
|
52123
|
+
Row: {
|
|
52124
|
+
attempts: number;
|
|
52125
|
+
claimed_at: string | null;
|
|
52126
|
+
enqueued_at: string;
|
|
52127
|
+
error: string | null;
|
|
52128
|
+
id: string;
|
|
52129
|
+
next_attempt_at: string;
|
|
52130
|
+
order_id: string;
|
|
52131
|
+
reason: string;
|
|
52132
|
+
status: string;
|
|
52133
|
+
updated_at: string;
|
|
52134
|
+
};
|
|
52135
|
+
Insert: {
|
|
52136
|
+
attempts?: number;
|
|
52137
|
+
claimed_at?: string | null;
|
|
52138
|
+
enqueued_at?: string;
|
|
52139
|
+
error?: string | null;
|
|
52140
|
+
id?: string;
|
|
52141
|
+
next_attempt_at?: string;
|
|
52142
|
+
order_id: string;
|
|
52143
|
+
reason?: string;
|
|
52144
|
+
status?: string;
|
|
52145
|
+
updated_at?: string;
|
|
52146
|
+
};
|
|
52147
|
+
Update: {
|
|
52148
|
+
attempts?: number;
|
|
52149
|
+
claimed_at?: string | null;
|
|
52150
|
+
enqueued_at?: string;
|
|
52151
|
+
error?: string | null;
|
|
52152
|
+
id?: string;
|
|
52153
|
+
next_attempt_at?: string;
|
|
52154
|
+
order_id?: string;
|
|
52155
|
+
reason?: string;
|
|
52156
|
+
status?: string;
|
|
52157
|
+
updated_at?: string;
|
|
52158
|
+
};
|
|
52159
|
+
Relationships: [];
|
|
52160
|
+
};
|
|
50611
52161
|
logistics_plan_runs: {
|
|
50612
52162
|
Row: {
|
|
50613
52163
|
created_at: string;
|
|
@@ -50683,6 +52233,24 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
50683
52233
|
referencedColumns: ["id"];
|
|
50684
52234
|
}];
|
|
50685
52235
|
};
|
|
52236
|
+
logistics_plan_settings: {
|
|
52237
|
+
Row: {
|
|
52238
|
+
key: string;
|
|
52239
|
+
updated_at: string;
|
|
52240
|
+
value: string;
|
|
52241
|
+
};
|
|
52242
|
+
Insert: {
|
|
52243
|
+
key: string;
|
|
52244
|
+
updated_at?: string;
|
|
52245
|
+
value: string;
|
|
52246
|
+
};
|
|
52247
|
+
Update: {
|
|
52248
|
+
key?: string;
|
|
52249
|
+
updated_at?: string;
|
|
52250
|
+
value?: string;
|
|
52251
|
+
};
|
|
52252
|
+
Relationships: [];
|
|
52253
|
+
};
|
|
50686
52254
|
logistics_rebuffer_state: {
|
|
50687
52255
|
Row: {
|
|
50688
52256
|
created_at: string;
|
|
@@ -51838,6 +53406,90 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
51838
53406
|
};
|
|
51839
53407
|
Relationships: [];
|
|
51840
53408
|
};
|
|
53409
|
+
material_usage: {
|
|
53410
|
+
Row: {
|
|
53411
|
+
created_at: string;
|
|
53412
|
+
id: string;
|
|
53413
|
+
material_name: string;
|
|
53414
|
+
monteur_id: string | null;
|
|
53415
|
+
price_at_time: number;
|
|
53416
|
+
quantity_used: number;
|
|
53417
|
+
updated_at: string;
|
|
53418
|
+
van_inventory_id: string | null;
|
|
53419
|
+
work_order_id: string;
|
|
53420
|
+
};
|
|
53421
|
+
Insert: {
|
|
53422
|
+
created_at?: string;
|
|
53423
|
+
id?: string;
|
|
53424
|
+
material_name: string;
|
|
53425
|
+
monteur_id?: string | null;
|
|
53426
|
+
price_at_time?: number;
|
|
53427
|
+
quantity_used?: number;
|
|
53428
|
+
updated_at?: string;
|
|
53429
|
+
van_inventory_id?: string | null;
|
|
53430
|
+
work_order_id: string;
|
|
53431
|
+
};
|
|
53432
|
+
Update: {
|
|
53433
|
+
created_at?: string;
|
|
53434
|
+
id?: string;
|
|
53435
|
+
material_name?: string;
|
|
53436
|
+
monteur_id?: string | null;
|
|
53437
|
+
price_at_time?: number;
|
|
53438
|
+
quantity_used?: number;
|
|
53439
|
+
updated_at?: string;
|
|
53440
|
+
van_inventory_id?: string | null;
|
|
53441
|
+
work_order_id?: string;
|
|
53442
|
+
};
|
|
53443
|
+
Relationships: [{
|
|
53444
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
53445
|
+
columns: ["monteur_id"];
|
|
53446
|
+
isOneToOne: false;
|
|
53447
|
+
referencedRelation: "profiles";
|
|
53448
|
+
referencedColumns: ["id"];
|
|
53449
|
+
}, {
|
|
53450
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
53451
|
+
columns: ["van_inventory_id"];
|
|
53452
|
+
isOneToOne: false;
|
|
53453
|
+
referencedRelation: "van_inventories";
|
|
53454
|
+
referencedColumns: ["id"];
|
|
53455
|
+
}, {
|
|
53456
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
53457
|
+
columns: ["work_order_id"];
|
|
53458
|
+
isOneToOne: false;
|
|
53459
|
+
referencedRelation: "work_orders";
|
|
53460
|
+
referencedColumns: ["id"];
|
|
53461
|
+
}];
|
|
53462
|
+
};
|
|
53463
|
+
module_features: {
|
|
53464
|
+
Row: {
|
|
53465
|
+
created_at: string;
|
|
53466
|
+
feature_id: string;
|
|
53467
|
+
id: string;
|
|
53468
|
+
is_active: boolean;
|
|
53469
|
+
last_seen_at: string;
|
|
53470
|
+
module_id: string;
|
|
53471
|
+
name: string;
|
|
53472
|
+
};
|
|
53473
|
+
Insert: {
|
|
53474
|
+
created_at?: string;
|
|
53475
|
+
feature_id: string;
|
|
53476
|
+
id?: string;
|
|
53477
|
+
is_active?: boolean;
|
|
53478
|
+
last_seen_at?: string;
|
|
53479
|
+
module_id: string;
|
|
53480
|
+
name: string;
|
|
53481
|
+
};
|
|
53482
|
+
Update: {
|
|
53483
|
+
created_at?: string;
|
|
53484
|
+
feature_id?: string;
|
|
53485
|
+
id?: string;
|
|
53486
|
+
is_active?: boolean;
|
|
53487
|
+
last_seen_at?: string;
|
|
53488
|
+
module_id?: string;
|
|
53489
|
+
name?: string;
|
|
53490
|
+
};
|
|
53491
|
+
Relationships: [];
|
|
53492
|
+
};
|
|
51841
53493
|
module_permissions: {
|
|
51842
53494
|
Row: {
|
|
51843
53495
|
created_at: string;
|
|
@@ -51868,6 +53520,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
51868
53520
|
module_registry: {
|
|
51869
53521
|
Row: {
|
|
51870
53522
|
created_at: string;
|
|
53523
|
+
enforce: boolean;
|
|
51871
53524
|
is_active: boolean;
|
|
51872
53525
|
last_seen_at: string;
|
|
51873
53526
|
module_id: string;
|
|
@@ -51877,6 +53530,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
51877
53530
|
};
|
|
51878
53531
|
Insert: {
|
|
51879
53532
|
created_at?: string;
|
|
53533
|
+
enforce?: boolean;
|
|
51880
53534
|
is_active?: boolean;
|
|
51881
53535
|
last_seen_at?: string;
|
|
51882
53536
|
module_id: string;
|
|
@@ -51886,6 +53540,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
51886
53540
|
};
|
|
51887
53541
|
Update: {
|
|
51888
53542
|
created_at?: string;
|
|
53543
|
+
enforce?: boolean;
|
|
51889
53544
|
is_active?: boolean;
|
|
51890
53545
|
last_seen_at?: string;
|
|
51891
53546
|
module_id?: string;
|
|
@@ -51946,63 +53601,6 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
51946
53601
|
};
|
|
51947
53602
|
Relationships: [];
|
|
51948
53603
|
};
|
|
51949
|
-
monteurs: {
|
|
51950
|
-
Row: {
|
|
51951
|
-
avatar_url: string | null;
|
|
51952
|
-
color: string | null;
|
|
51953
|
-
created_at: string;
|
|
51954
|
-
email: string | null;
|
|
51955
|
-
id: string;
|
|
51956
|
-
is_active: boolean;
|
|
51957
|
-
leave_balance_hours: number;
|
|
51958
|
-
name: string;
|
|
51959
|
-
persnr: number | null;
|
|
51960
|
-
phone: string | null;
|
|
51961
|
-
role: string;
|
|
51962
|
-
tenant_id: string;
|
|
51963
|
-
updated_at: string;
|
|
51964
|
-
user_id: string | null;
|
|
51965
|
-
};
|
|
51966
|
-
Insert: {
|
|
51967
|
-
avatar_url?: string | null;
|
|
51968
|
-
color?: string | null;
|
|
51969
|
-
created_at?: string;
|
|
51970
|
-
email?: string | null;
|
|
51971
|
-
id?: string;
|
|
51972
|
-
is_active?: boolean;
|
|
51973
|
-
leave_balance_hours?: number;
|
|
51974
|
-
name: string;
|
|
51975
|
-
persnr?: number | null;
|
|
51976
|
-
phone?: string | null;
|
|
51977
|
-
role?: string;
|
|
51978
|
-
tenant_id: string;
|
|
51979
|
-
updated_at?: string;
|
|
51980
|
-
user_id?: string | null;
|
|
51981
|
-
};
|
|
51982
|
-
Update: {
|
|
51983
|
-
avatar_url?: string | null;
|
|
51984
|
-
color?: string | null;
|
|
51985
|
-
created_at?: string;
|
|
51986
|
-
email?: string | null;
|
|
51987
|
-
id?: string;
|
|
51988
|
-
is_active?: boolean;
|
|
51989
|
-
leave_balance_hours?: number;
|
|
51990
|
-
name?: string;
|
|
51991
|
-
persnr?: number | null;
|
|
51992
|
-
phone?: string | null;
|
|
51993
|
-
role?: string;
|
|
51994
|
-
tenant_id?: string;
|
|
51995
|
-
updated_at?: string;
|
|
51996
|
-
user_id?: string | null;
|
|
51997
|
-
};
|
|
51998
|
-
Relationships: [{
|
|
51999
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
52000
|
-
columns: ["tenant_id"];
|
|
52001
|
-
isOneToOne: false;
|
|
52002
|
-
referencedRelation: "tenants";
|
|
52003
|
-
referencedColumns: ["id"];
|
|
52004
|
-
}];
|
|
52005
|
-
};
|
|
52006
53604
|
nmbrs_component_mapping: {
|
|
52007
53605
|
Row: {
|
|
52008
53606
|
created_at: string;
|
|
@@ -52073,13 +53671,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
52073
53671
|
nmbrs_employee_number?: string;
|
|
52074
53672
|
updated_at?: string;
|
|
52075
53673
|
};
|
|
52076
|
-
Relationships: [
|
|
52077
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
52078
|
-
columns: ["monteur_id"];
|
|
52079
|
-
isOneToOne: true;
|
|
52080
|
-
referencedRelation: "monteurs";
|
|
52081
|
-
referencedColumns: ["id"];
|
|
52082
|
-
}];
|
|
53674
|
+
Relationships: [];
|
|
52083
53675
|
};
|
|
52084
53676
|
nmbrs_export_lines: {
|
|
52085
53677
|
Row: {
|
|
@@ -52128,12 +53720,6 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
52128
53720
|
wage_code?: string;
|
|
52129
53721
|
};
|
|
52130
53722
|
Relationships: [{
|
|
52131
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
52132
|
-
columns: ["monteur_id"];
|
|
52133
|
-
isOneToOne: false;
|
|
52134
|
-
referencedRelation: "monteurs";
|
|
52135
|
-
referencedColumns: ["id"];
|
|
52136
|
-
}, {
|
|
52137
53723
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
52138
53724
|
columns: ["run_id"];
|
|
52139
53725
|
isOneToOne: false;
|
|
@@ -52961,6 +54547,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
52961
54547
|
error_message: string | null;
|
|
52962
54548
|
id: string;
|
|
52963
54549
|
invoice_number: string | null;
|
|
54550
|
+
next_attempt_at: string;
|
|
52964
54551
|
order_id: string;
|
|
52965
54552
|
processed_at: string | null;
|
|
52966
54553
|
status: string;
|
|
@@ -52972,6 +54559,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
52972
54559
|
error_message?: string | null;
|
|
52973
54560
|
id?: string;
|
|
52974
54561
|
invoice_number?: string | null;
|
|
54562
|
+
next_attempt_at?: string;
|
|
52975
54563
|
order_id: string;
|
|
52976
54564
|
processed_at?: string | null;
|
|
52977
54565
|
status?: string;
|
|
@@ -52983,6 +54571,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
52983
54571
|
error_message?: string | null;
|
|
52984
54572
|
id?: string;
|
|
52985
54573
|
invoice_number?: string | null;
|
|
54574
|
+
next_attempt_at?: string;
|
|
52986
54575
|
order_id?: string;
|
|
52987
54576
|
processed_at?: string | null;
|
|
52988
54577
|
status?: string;
|
|
@@ -54521,6 +56110,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
54521
56110
|
created_at: string;
|
|
54522
56111
|
id: string;
|
|
54523
56112
|
laatst_gezien: string;
|
|
56113
|
+
laatste_fout: string | null;
|
|
56114
|
+
laatste_request_id: number | null;
|
|
56115
|
+
mislukte_posts: number;
|
|
54524
56116
|
tick_sleutel: string;
|
|
54525
56117
|
updated_at: string;
|
|
54526
56118
|
};
|
|
@@ -54530,6 +56122,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
54530
56122
|
created_at?: string;
|
|
54531
56123
|
id?: string;
|
|
54532
56124
|
laatst_gezien?: string;
|
|
56125
|
+
laatste_fout?: string | null;
|
|
56126
|
+
laatste_request_id?: number | null;
|
|
56127
|
+
mislukte_posts?: number;
|
|
54533
56128
|
tick_sleutel?: string;
|
|
54534
56129
|
updated_at?: string;
|
|
54535
56130
|
};
|
|
@@ -54539,6 +56134,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
54539
56134
|
created_at?: string;
|
|
54540
56135
|
id?: string;
|
|
54541
56136
|
laatst_gezien?: string;
|
|
56137
|
+
laatste_fout?: string | null;
|
|
56138
|
+
laatste_request_id?: number | null;
|
|
56139
|
+
mislukte_posts?: number;
|
|
54542
56140
|
tick_sleutel?: string;
|
|
54543
56141
|
updated_at?: string;
|
|
54544
56142
|
};
|
|
@@ -56047,6 +57645,96 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
56047
57645
|
referencedColumns: ["id"];
|
|
56048
57646
|
}];
|
|
56049
57647
|
};
|
|
57648
|
+
role_assignments: {
|
|
57649
|
+
Row: {
|
|
57650
|
+
created_at: string;
|
|
57651
|
+
id: string;
|
|
57652
|
+
role_id: string;
|
|
57653
|
+
user_id: string;
|
|
57654
|
+
};
|
|
57655
|
+
Insert: {
|
|
57656
|
+
created_at?: string;
|
|
57657
|
+
id?: string;
|
|
57658
|
+
role_id: string;
|
|
57659
|
+
user_id: string;
|
|
57660
|
+
};
|
|
57661
|
+
Update: {
|
|
57662
|
+
created_at?: string;
|
|
57663
|
+
id?: string;
|
|
57664
|
+
role_id?: string;
|
|
57665
|
+
user_id?: string;
|
|
57666
|
+
};
|
|
57667
|
+
Relationships: [{
|
|
57668
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
57669
|
+
columns: ["role_id"];
|
|
57670
|
+
isOneToOne: false;
|
|
57671
|
+
referencedRelation: "roles";
|
|
57672
|
+
referencedColumns: ["id"];
|
|
57673
|
+
}];
|
|
57674
|
+
};
|
|
57675
|
+
role_permissions: {
|
|
57676
|
+
Row: {
|
|
57677
|
+
can_edit: boolean;
|
|
57678
|
+
can_view: boolean;
|
|
57679
|
+
feature_id: string;
|
|
57680
|
+
id: string;
|
|
57681
|
+
module_id: string;
|
|
57682
|
+
role_id: string;
|
|
57683
|
+
updated_at: string;
|
|
57684
|
+
};
|
|
57685
|
+
Insert: {
|
|
57686
|
+
can_edit?: boolean;
|
|
57687
|
+
can_view?: boolean;
|
|
57688
|
+
feature_id?: string;
|
|
57689
|
+
id?: string;
|
|
57690
|
+
module_id: string;
|
|
57691
|
+
role_id: string;
|
|
57692
|
+
updated_at?: string;
|
|
57693
|
+
};
|
|
57694
|
+
Update: {
|
|
57695
|
+
can_edit?: boolean;
|
|
57696
|
+
can_view?: boolean;
|
|
57697
|
+
feature_id?: string;
|
|
57698
|
+
id?: string;
|
|
57699
|
+
module_id?: string;
|
|
57700
|
+
role_id?: string;
|
|
57701
|
+
updated_at?: string;
|
|
57702
|
+
};
|
|
57703
|
+
Relationships: [{
|
|
57704
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
57705
|
+
columns: ["role_id"];
|
|
57706
|
+
isOneToOne: false;
|
|
57707
|
+
referencedRelation: "roles";
|
|
57708
|
+
referencedColumns: ["id"];
|
|
57709
|
+
}];
|
|
57710
|
+
};
|
|
57711
|
+
roles: {
|
|
57712
|
+
Row: {
|
|
57713
|
+
created_at: string;
|
|
57714
|
+
id: string;
|
|
57715
|
+
is_protected: boolean;
|
|
57716
|
+
key: string;
|
|
57717
|
+
name: string;
|
|
57718
|
+
updated_at: string;
|
|
57719
|
+
};
|
|
57720
|
+
Insert: {
|
|
57721
|
+
created_at?: string;
|
|
57722
|
+
id?: string;
|
|
57723
|
+
is_protected?: boolean;
|
|
57724
|
+
key: string;
|
|
57725
|
+
name: string;
|
|
57726
|
+
updated_at?: string;
|
|
57727
|
+
};
|
|
57728
|
+
Update: {
|
|
57729
|
+
created_at?: string;
|
|
57730
|
+
id?: string;
|
|
57731
|
+
is_protected?: boolean;
|
|
57732
|
+
key?: string;
|
|
57733
|
+
name?: string;
|
|
57734
|
+
updated_at?: string;
|
|
57735
|
+
};
|
|
57736
|
+
Relationships: [];
|
|
57737
|
+
};
|
|
56050
57738
|
rooms: {
|
|
56051
57739
|
Row: {
|
|
56052
57740
|
capacity: number;
|
|
@@ -56716,6 +58404,54 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
56716
58404
|
};
|
|
56717
58405
|
Relationships: [];
|
|
56718
58406
|
};
|
|
58407
|
+
time_compensation_entries: {
|
|
58408
|
+
Row: {
|
|
58409
|
+
created_at: string;
|
|
58410
|
+
employee_id: string;
|
|
58411
|
+
entry_date: string;
|
|
58412
|
+
id: string;
|
|
58413
|
+
km: number;
|
|
58414
|
+
meal_allowance: number;
|
|
58415
|
+
notes: string | null;
|
|
58416
|
+
standby_evening: number;
|
|
58417
|
+
standby_weekend: number;
|
|
58418
|
+
tvt_change: number;
|
|
58419
|
+
updated_at: string;
|
|
58420
|
+
};
|
|
58421
|
+
Insert: {
|
|
58422
|
+
created_at?: string;
|
|
58423
|
+
employee_id: string;
|
|
58424
|
+
entry_date: string;
|
|
58425
|
+
id?: string;
|
|
58426
|
+
km?: number;
|
|
58427
|
+
meal_allowance?: number;
|
|
58428
|
+
notes?: string | null;
|
|
58429
|
+
standby_evening?: number;
|
|
58430
|
+
standby_weekend?: number;
|
|
58431
|
+
tvt_change?: number;
|
|
58432
|
+
updated_at?: string;
|
|
58433
|
+
};
|
|
58434
|
+
Update: {
|
|
58435
|
+
created_at?: string;
|
|
58436
|
+
employee_id?: string;
|
|
58437
|
+
entry_date?: string;
|
|
58438
|
+
id?: string;
|
|
58439
|
+
km?: number;
|
|
58440
|
+
meal_allowance?: number;
|
|
58441
|
+
notes?: string | null;
|
|
58442
|
+
standby_evening?: number;
|
|
58443
|
+
standby_weekend?: number;
|
|
58444
|
+
tvt_change?: number;
|
|
58445
|
+
updated_at?: string;
|
|
58446
|
+
};
|
|
58447
|
+
Relationships: [{
|
|
58448
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
58449
|
+
columns: ["employee_id"];
|
|
58450
|
+
isOneToOne: false;
|
|
58451
|
+
referencedRelation: "profiles";
|
|
58452
|
+
referencedColumns: ["id"];
|
|
58453
|
+
}];
|
|
58454
|
+
};
|
|
56719
58455
|
time_entries: {
|
|
56720
58456
|
Row: {
|
|
56721
58457
|
created_at: string;
|
|
@@ -56750,65 +58486,170 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
56750
58486
|
undertime?: number;
|
|
56751
58487
|
updated_at?: string;
|
|
56752
58488
|
};
|
|
58489
|
+
Relationships: [];
|
|
58490
|
+
};
|
|
58491
|
+
time_log_week_approvals: {
|
|
58492
|
+
Row: {
|
|
58493
|
+
approved_at: string | null;
|
|
58494
|
+
approved_by: string | null;
|
|
58495
|
+
created_at: string;
|
|
58496
|
+
employee_id: string;
|
|
58497
|
+
id: string;
|
|
58498
|
+
locked: boolean;
|
|
58499
|
+
notes: string | null;
|
|
58500
|
+
status: string;
|
|
58501
|
+
submitted_at: string | null;
|
|
58502
|
+
updated_at: string;
|
|
58503
|
+
week_start: string;
|
|
58504
|
+
};
|
|
58505
|
+
Insert: {
|
|
58506
|
+
approved_at?: string | null;
|
|
58507
|
+
approved_by?: string | null;
|
|
58508
|
+
created_at?: string;
|
|
58509
|
+
employee_id: string;
|
|
58510
|
+
id?: string;
|
|
58511
|
+
locked?: boolean;
|
|
58512
|
+
notes?: string | null;
|
|
58513
|
+
status?: string;
|
|
58514
|
+
submitted_at?: string | null;
|
|
58515
|
+
updated_at?: string;
|
|
58516
|
+
week_start: string;
|
|
58517
|
+
};
|
|
58518
|
+
Update: {
|
|
58519
|
+
approved_at?: string | null;
|
|
58520
|
+
approved_by?: string | null;
|
|
58521
|
+
created_at?: string;
|
|
58522
|
+
employee_id?: string;
|
|
58523
|
+
id?: string;
|
|
58524
|
+
locked?: boolean;
|
|
58525
|
+
notes?: string | null;
|
|
58526
|
+
status?: string;
|
|
58527
|
+
submitted_at?: string | null;
|
|
58528
|
+
updated_at?: string;
|
|
58529
|
+
week_start?: string;
|
|
58530
|
+
};
|
|
56753
58531
|
Relationships: [{
|
|
56754
|
-
foreignKeyName: "
|
|
58532
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
56755
58533
|
columns: ["employee_id"];
|
|
56756
58534
|
isOneToOne: false;
|
|
56757
|
-
referencedRelation: "
|
|
58535
|
+
referencedRelation: "profiles";
|
|
56758
58536
|
referencedColumns: ["id"];
|
|
56759
58537
|
}];
|
|
56760
58538
|
};
|
|
56761
58539
|
time_logs: {
|
|
56762
58540
|
Row: {
|
|
58541
|
+
auto_stop_reason: string | null;
|
|
58542
|
+
auto_stopped: boolean;
|
|
56763
58543
|
created_at: string;
|
|
58544
|
+
current_latitude: number | null;
|
|
58545
|
+
current_longitude: number | null;
|
|
58546
|
+
current_position_updated_at: string | null;
|
|
56764
58547
|
employee_id: string;
|
|
58548
|
+
end_latitude: number | null;
|
|
58549
|
+
end_longitude: number | null;
|
|
56765
58550
|
end_time: string | null;
|
|
58551
|
+
eta_distance_km: number | null;
|
|
58552
|
+
eta_minutes: number | null;
|
|
58553
|
+
eta_updated_at: string | null;
|
|
58554
|
+
hour_category: string | null;
|
|
56766
58555
|
id: string;
|
|
58556
|
+
last_reminder_at: string | null;
|
|
56767
58557
|
notes: string | null;
|
|
56768
58558
|
overtime_hours: number;
|
|
56769
58559
|
overtime_type: string | null;
|
|
56770
58560
|
regular_hours: number;
|
|
58561
|
+
reminder_count: number;
|
|
58562
|
+
requires_review: boolean;
|
|
58563
|
+
start_latitude: number | null;
|
|
58564
|
+
start_longitude: number | null;
|
|
56771
58565
|
start_time: string;
|
|
56772
58566
|
travel_cost: number | null;
|
|
56773
58567
|
travel_distance_km: number | null;
|
|
58568
|
+
travel_duration_min: number | null;
|
|
58569
|
+
travel_time_minutes: number | null;
|
|
56774
58570
|
type: string;
|
|
56775
58571
|
updated_at: string;
|
|
58572
|
+
work_order_id: string | null;
|
|
56776
58573
|
};
|
|
56777
58574
|
Insert: {
|
|
58575
|
+
auto_stop_reason?: string | null;
|
|
58576
|
+
auto_stopped?: boolean;
|
|
56778
58577
|
created_at?: string;
|
|
58578
|
+
current_latitude?: number | null;
|
|
58579
|
+
current_longitude?: number | null;
|
|
58580
|
+
current_position_updated_at?: string | null;
|
|
56779
58581
|
employee_id: string;
|
|
58582
|
+
end_latitude?: number | null;
|
|
58583
|
+
end_longitude?: number | null;
|
|
56780
58584
|
end_time?: string | null;
|
|
58585
|
+
eta_distance_km?: number | null;
|
|
58586
|
+
eta_minutes?: number | null;
|
|
58587
|
+
eta_updated_at?: string | null;
|
|
58588
|
+
hour_category?: string | null;
|
|
56781
58589
|
id?: string;
|
|
58590
|
+
last_reminder_at?: string | null;
|
|
56782
58591
|
notes?: string | null;
|
|
56783
58592
|
overtime_hours?: number;
|
|
56784
58593
|
overtime_type?: string | null;
|
|
56785
58594
|
regular_hours?: number;
|
|
58595
|
+
reminder_count?: number;
|
|
58596
|
+
requires_review?: boolean;
|
|
58597
|
+
start_latitude?: number | null;
|
|
58598
|
+
start_longitude?: number | null;
|
|
56786
58599
|
start_time?: string;
|
|
56787
58600
|
travel_cost?: number | null;
|
|
56788
58601
|
travel_distance_km?: number | null;
|
|
58602
|
+
travel_duration_min?: number | null;
|
|
58603
|
+
travel_time_minutes?: number | null;
|
|
56789
58604
|
type: string;
|
|
56790
58605
|
updated_at?: string;
|
|
58606
|
+
work_order_id?: string | null;
|
|
56791
58607
|
};
|
|
56792
58608
|
Update: {
|
|
58609
|
+
auto_stop_reason?: string | null;
|
|
58610
|
+
auto_stopped?: boolean;
|
|
56793
58611
|
created_at?: string;
|
|
58612
|
+
current_latitude?: number | null;
|
|
58613
|
+
current_longitude?: number | null;
|
|
58614
|
+
current_position_updated_at?: string | null;
|
|
56794
58615
|
employee_id?: string;
|
|
58616
|
+
end_latitude?: number | null;
|
|
58617
|
+
end_longitude?: number | null;
|
|
56795
58618
|
end_time?: string | null;
|
|
58619
|
+
eta_distance_km?: number | null;
|
|
58620
|
+
eta_minutes?: number | null;
|
|
58621
|
+
eta_updated_at?: string | null;
|
|
58622
|
+
hour_category?: string | null;
|
|
56796
58623
|
id?: string;
|
|
58624
|
+
last_reminder_at?: string | null;
|
|
56797
58625
|
notes?: string | null;
|
|
56798
58626
|
overtime_hours?: number;
|
|
56799
58627
|
overtime_type?: string | null;
|
|
56800
58628
|
regular_hours?: number;
|
|
58629
|
+
reminder_count?: number;
|
|
58630
|
+
requires_review?: boolean;
|
|
58631
|
+
start_latitude?: number | null;
|
|
58632
|
+
start_longitude?: number | null;
|
|
56801
58633
|
start_time?: string;
|
|
56802
58634
|
travel_cost?: number | null;
|
|
56803
58635
|
travel_distance_km?: number | null;
|
|
58636
|
+
travel_duration_min?: number | null;
|
|
58637
|
+
travel_time_minutes?: number | null;
|
|
56804
58638
|
type?: string;
|
|
56805
58639
|
updated_at?: string;
|
|
58640
|
+
work_order_id?: string | null;
|
|
56806
58641
|
};
|
|
56807
58642
|
Relationships: [{
|
|
56808
58643
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
56809
58644
|
columns: ["employee_id"];
|
|
56810
58645
|
isOneToOne: false;
|
|
56811
|
-
referencedRelation: "
|
|
58646
|
+
referencedRelation: "profiles";
|
|
58647
|
+
referencedColumns: ["id"];
|
|
58648
|
+
}, {
|
|
58649
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
58650
|
+
columns: ["work_order_id"];
|
|
58651
|
+
isOneToOne: false;
|
|
58652
|
+
referencedRelation: "work_orders";
|
|
56812
58653
|
referencedColumns: ["id"];
|
|
56813
58654
|
}];
|
|
56814
58655
|
};
|
|
@@ -56847,7 +58688,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
56847
58688
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
56848
58689
|
columns: ["employee_id"];
|
|
56849
58690
|
isOneToOne: false;
|
|
56850
|
-
referencedRelation: "
|
|
58691
|
+
referencedRelation: "profiles";
|
|
56851
58692
|
referencedColumns: ["id"];
|
|
56852
58693
|
}];
|
|
56853
58694
|
};
|
|
@@ -57157,6 +58998,39 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
57157
58998
|
};
|
|
57158
58999
|
Relationships: [];
|
|
57159
59000
|
};
|
|
59001
|
+
twinfield_cron_locks: {
|
|
59002
|
+
Row: {
|
|
59003
|
+
created_at: string;
|
|
59004
|
+
heartbeat_at: string;
|
|
59005
|
+
job_name: string;
|
|
59006
|
+
last_error: string | null;
|
|
59007
|
+
last_finished_at: string | null;
|
|
59008
|
+
locked_at: string;
|
|
59009
|
+
run_id: string;
|
|
59010
|
+
updated_at: string;
|
|
59011
|
+
};
|
|
59012
|
+
Insert: {
|
|
59013
|
+
created_at?: string;
|
|
59014
|
+
heartbeat_at?: string;
|
|
59015
|
+
job_name: string;
|
|
59016
|
+
last_error?: string | null;
|
|
59017
|
+
last_finished_at?: string | null;
|
|
59018
|
+
locked_at?: string;
|
|
59019
|
+
run_id?: string;
|
|
59020
|
+
updated_at?: string;
|
|
59021
|
+
};
|
|
59022
|
+
Update: {
|
|
59023
|
+
created_at?: string;
|
|
59024
|
+
heartbeat_at?: string;
|
|
59025
|
+
job_name?: string;
|
|
59026
|
+
last_error?: string | null;
|
|
59027
|
+
last_finished_at?: string | null;
|
|
59028
|
+
locked_at?: string;
|
|
59029
|
+
run_id?: string;
|
|
59030
|
+
updated_at?: string;
|
|
59031
|
+
};
|
|
59032
|
+
Relationships: [];
|
|
59033
|
+
};
|
|
57160
59034
|
twinfield_customers: {
|
|
57161
59035
|
Row: {
|
|
57162
59036
|
address: string | null;
|
|
@@ -57757,6 +59631,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
57757
59631
|
twinfield_push_queue: {
|
|
57758
59632
|
Row: {
|
|
57759
59633
|
action: string;
|
|
59634
|
+
attempt_started_at: string | null;
|
|
57760
59635
|
attempts: number;
|
|
57761
59636
|
connection_id: string | null;
|
|
57762
59637
|
created_at: string;
|
|
@@ -57773,6 +59648,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
57773
59648
|
};
|
|
57774
59649
|
Insert: {
|
|
57775
59650
|
action?: string;
|
|
59651
|
+
attempt_started_at?: string | null;
|
|
57776
59652
|
attempts?: number;
|
|
57777
59653
|
connection_id?: string | null;
|
|
57778
59654
|
created_at?: string;
|
|
@@ -57789,6 +59665,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
57789
59665
|
};
|
|
57790
59666
|
Update: {
|
|
57791
59667
|
action?: string;
|
|
59668
|
+
attempt_started_at?: string | null;
|
|
57792
59669
|
attempts?: number;
|
|
57793
59670
|
connection_id?: string | null;
|
|
57794
59671
|
created_at?: string;
|
|
@@ -57986,13 +59863,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
57986
59863
|
workday_end?: string | null;
|
|
57987
59864
|
workday_start?: string | null;
|
|
57988
59865
|
};
|
|
57989
|
-
Relationships: [
|
|
57990
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
57991
|
-
columns: ["monteur_id"];
|
|
57992
|
-
isOneToOne: true;
|
|
57993
|
-
referencedRelation: "monteurs";
|
|
57994
|
-
referencedColumns: ["id"];
|
|
57995
|
-
}];
|
|
59866
|
+
Relationships: [];
|
|
57996
59867
|
};
|
|
57997
59868
|
uren_entries: {
|
|
57998
59869
|
Row: {
|
|
@@ -58038,12 +59909,6 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
58038
59909
|
werkbon_id?: string | null;
|
|
58039
59910
|
};
|
|
58040
59911
|
Relationships: [{
|
|
58041
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
58042
|
-
columns: ["monteur_id"];
|
|
58043
|
-
isOneToOne: false;
|
|
58044
|
-
referencedRelation: "monteurs";
|
|
58045
|
-
referencedColumns: ["id"];
|
|
58046
|
-
}, {
|
|
58047
59912
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
58048
59913
|
columns: ["werkbon_id"];
|
|
58049
59914
|
isOneToOne: false;
|
|
@@ -58511,17 +60376,12 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
58511
60376
|
submitted_at?: string | null;
|
|
58512
60377
|
updated_at?: string;
|
|
58513
60378
|
};
|
|
58514
|
-
Relationships: [
|
|
58515
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
58516
|
-
columns: ["monteur_id"];
|
|
58517
|
-
isOneToOne: false;
|
|
58518
|
-
referencedRelation: "monteurs";
|
|
58519
|
-
referencedColumns: ["id"];
|
|
58520
|
-
}];
|
|
60379
|
+
Relationships: [];
|
|
58521
60380
|
};
|
|
58522
60381
|
user_module_permissions: {
|
|
58523
60382
|
Row: {
|
|
58524
60383
|
created_at: string;
|
|
60384
|
+
feature_id: string;
|
|
58525
60385
|
id: string;
|
|
58526
60386
|
module_id: string;
|
|
58527
60387
|
permission: string;
|
|
@@ -58530,6 +60390,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
58530
60390
|
};
|
|
58531
60391
|
Insert: {
|
|
58532
60392
|
created_at?: string;
|
|
60393
|
+
feature_id?: string;
|
|
58533
60394
|
id?: string;
|
|
58534
60395
|
module_id: string;
|
|
58535
60396
|
permission: string;
|
|
@@ -58538,6 +60399,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
58538
60399
|
};
|
|
58539
60400
|
Update: {
|
|
58540
60401
|
created_at?: string;
|
|
60402
|
+
feature_id?: string;
|
|
58541
60403
|
id?: string;
|
|
58542
60404
|
module_id?: string;
|
|
58543
60405
|
permission?: string;
|
|
@@ -58573,6 +60435,51 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
58573
60435
|
referencedColumns: ["id"];
|
|
58574
60436
|
}];
|
|
58575
60437
|
};
|
|
60438
|
+
van_inventories: {
|
|
60439
|
+
Row: {
|
|
60440
|
+
barcode: string | null;
|
|
60441
|
+
created_at: string;
|
|
60442
|
+
id: string;
|
|
60443
|
+
monteur_id: string | null;
|
|
60444
|
+
price_per_unit: number;
|
|
60445
|
+
product_name: string;
|
|
60446
|
+
quantity_current: number;
|
|
60447
|
+
quantity_min: number;
|
|
60448
|
+
unit: string;
|
|
60449
|
+
updated_at: string;
|
|
60450
|
+
};
|
|
60451
|
+
Insert: {
|
|
60452
|
+
barcode?: string | null;
|
|
60453
|
+
created_at?: string;
|
|
60454
|
+
id?: string;
|
|
60455
|
+
monteur_id?: string | null;
|
|
60456
|
+
price_per_unit?: number;
|
|
60457
|
+
product_name: string;
|
|
60458
|
+
quantity_current?: number;
|
|
60459
|
+
quantity_min?: number;
|
|
60460
|
+
unit?: string;
|
|
60461
|
+
updated_at?: string;
|
|
60462
|
+
};
|
|
60463
|
+
Update: {
|
|
60464
|
+
barcode?: string | null;
|
|
60465
|
+
created_at?: string;
|
|
60466
|
+
id?: string;
|
|
60467
|
+
monteur_id?: string | null;
|
|
60468
|
+
price_per_unit?: number;
|
|
60469
|
+
product_name?: string;
|
|
60470
|
+
quantity_current?: number;
|
|
60471
|
+
quantity_min?: number;
|
|
60472
|
+
unit?: string;
|
|
60473
|
+
updated_at?: string;
|
|
60474
|
+
};
|
|
60475
|
+
Relationships: [{
|
|
60476
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
60477
|
+
columns: ["monteur_id"];
|
|
60478
|
+
isOneToOne: false;
|
|
60479
|
+
referencedRelation: "profiles";
|
|
60480
|
+
referencedColumns: ["id"];
|
|
60481
|
+
}];
|
|
60482
|
+
};
|
|
58576
60483
|
voorraad_custom_fields: {
|
|
58577
60484
|
Row: {
|
|
58578
60485
|
created_at: string;
|
|
@@ -59523,7 +61430,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
59523
61430
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
59524
61431
|
columns: ["monteur_id"];
|
|
59525
61432
|
isOneToOne: false;
|
|
59526
|
-
referencedRelation: "
|
|
61433
|
+
referencedRelation: "profiles";
|
|
59527
61434
|
referencedColumns: ["id"];
|
|
59528
61435
|
}, {
|
|
59529
61436
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -59533,6 +61440,60 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
59533
61440
|
referencedColumns: ["id"];
|
|
59534
61441
|
}];
|
|
59535
61442
|
};
|
|
61443
|
+
work_order_photos: {
|
|
61444
|
+
Row: {
|
|
61445
|
+
ai_caption: string | null;
|
|
61446
|
+
ai_categorized_at: string | null;
|
|
61447
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
61448
|
+
caption: string | null;
|
|
61449
|
+
created_at: string;
|
|
61450
|
+
id: string;
|
|
61451
|
+
monteur_id: string | null;
|
|
61452
|
+
photo_type: string;
|
|
61453
|
+
storage_path: string;
|
|
61454
|
+
updated_at: string;
|
|
61455
|
+
work_order_id: string;
|
|
61456
|
+
};
|
|
61457
|
+
Insert: {
|
|
61458
|
+
ai_caption?: string | null;
|
|
61459
|
+
ai_categorized_at?: string | null;
|
|
61460
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
61461
|
+
caption?: string | null;
|
|
61462
|
+
created_at?: string;
|
|
61463
|
+
id?: string;
|
|
61464
|
+
monteur_id?: string | null;
|
|
61465
|
+
photo_type?: string;
|
|
61466
|
+
storage_path: string;
|
|
61467
|
+
updated_at?: string;
|
|
61468
|
+
work_order_id: string;
|
|
61469
|
+
};
|
|
61470
|
+
Update: {
|
|
61471
|
+
ai_caption?: string | null;
|
|
61472
|
+
ai_categorized_at?: string | null;
|
|
61473
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
61474
|
+
caption?: string | null;
|
|
61475
|
+
created_at?: string;
|
|
61476
|
+
id?: string;
|
|
61477
|
+
monteur_id?: string | null;
|
|
61478
|
+
photo_type?: string;
|
|
61479
|
+
storage_path?: string;
|
|
61480
|
+
updated_at?: string;
|
|
61481
|
+
work_order_id?: string;
|
|
61482
|
+
};
|
|
61483
|
+
Relationships: [{
|
|
61484
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
61485
|
+
columns: ["monteur_id"];
|
|
61486
|
+
isOneToOne: false;
|
|
61487
|
+
referencedRelation: "profiles";
|
|
61488
|
+
referencedColumns: ["id"];
|
|
61489
|
+
}, {
|
|
61490
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
61491
|
+
columns: ["work_order_id"];
|
|
61492
|
+
isOneToOne: false;
|
|
61493
|
+
referencedRelation: "work_orders";
|
|
61494
|
+
referencedColumns: ["id"];
|
|
61495
|
+
}];
|
|
61496
|
+
};
|
|
59536
61497
|
work_orders: {
|
|
59537
61498
|
Row: {
|
|
59538
61499
|
assigned_to: string | null;
|
|
@@ -59564,7 +61525,6 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
59564
61525
|
scheduled_end_time: string | null;
|
|
59565
61526
|
scheduled_start_time: string | null;
|
|
59566
61527
|
status: string;
|
|
59567
|
-
tenant_id: string;
|
|
59568
61528
|
total_hours_worked: number | null;
|
|
59569
61529
|
total_price: number | null;
|
|
59570
61530
|
travel_time_minutes: number | null;
|
|
@@ -59602,7 +61562,6 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
59602
61562
|
scheduled_end_time?: string | null;
|
|
59603
61563
|
scheduled_start_time?: string | null;
|
|
59604
61564
|
status?: string;
|
|
59605
|
-
tenant_id: string;
|
|
59606
61565
|
total_hours_worked?: number | null;
|
|
59607
61566
|
total_price?: number | null;
|
|
59608
61567
|
travel_time_minutes?: number | null;
|
|
@@ -59640,7 +61599,6 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
59640
61599
|
scheduled_end_time?: string | null;
|
|
59641
61600
|
scheduled_start_time?: string | null;
|
|
59642
61601
|
status?: string;
|
|
59643
|
-
tenant_id?: string;
|
|
59644
61602
|
total_hours_worked?: number | null;
|
|
59645
61603
|
total_price?: number | null;
|
|
59646
61604
|
travel_time_minutes?: number | null;
|
|
@@ -59654,12 +61612,6 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
59654
61612
|
isOneToOne: false;
|
|
59655
61613
|
referencedRelation: "work_orders";
|
|
59656
61614
|
referencedColumns: ["id"];
|
|
59657
|
-
}, {
|
|
59658
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
59659
|
-
columns: ["tenant_id"];
|
|
59660
|
-
isOneToOne: false;
|
|
59661
|
-
referencedRelation: "tenants";
|
|
59662
|
-
referencedColumns: ["id"];
|
|
59663
61615
|
}];
|
|
59664
61616
|
};
|
|
59665
61617
|
};
|
|
@@ -60344,6 +62296,19 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
60344
62296
|
};
|
|
60345
62297
|
Returns: undefined;
|
|
60346
62298
|
};
|
|
62299
|
+
approve_mailbox_order_proposal: {
|
|
62300
|
+
Args: {
|
|
62301
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
62302
|
+
p_customer_id: string;
|
|
62303
|
+
p_delivery_date: string;
|
|
62304
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
62305
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
62306
|
+
p_notes: string;
|
|
62307
|
+
p_proposal_id: string;
|
|
62308
|
+
p_reviewed_by: string;
|
|
62309
|
+
};
|
|
62310
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
62311
|
+
};
|
|
60347
62312
|
assign_cart_numbers: {
|
|
60348
62313
|
Args: {
|
|
60349
62314
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -60395,6 +62360,10 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
60395
62360
|
};
|
|
60396
62361
|
Returns: number;
|
|
60397
62362
|
};
|
|
62363
|
+
can_manage_hours: {
|
|
62364
|
+
Args: never;
|
|
62365
|
+
Returns: boolean;
|
|
62366
|
+
};
|
|
60398
62367
|
check_offer_product_available_stock: {
|
|
60399
62368
|
Args: {
|
|
60400
62369
|
p_campaign_product_id: string;
|
|
@@ -60584,6 +62553,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
60584
62553
|
};
|
|
60585
62554
|
Returns: {
|
|
60586
62555
|
action: string;
|
|
62556
|
+
attempt_started_at: string | null;
|
|
60587
62557
|
attempts: number;
|
|
60588
62558
|
connection_id: string | null;
|
|
60589
62559
|
created_at: string;
|
|
@@ -60671,6 +62641,30 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
60671
62641
|
agent_naam: string;
|
|
60672
62642
|
}[];
|
|
60673
62643
|
};
|
|
62644
|
+
consume_van_inventory: {
|
|
62645
|
+
Args: {
|
|
62646
|
+
p_inventory_id: string;
|
|
62647
|
+
p_quantity: number;
|
|
62648
|
+
};
|
|
62649
|
+
Returns: {
|
|
62650
|
+
barcode: string | null;
|
|
62651
|
+
created_at: string;
|
|
62652
|
+
id: string;
|
|
62653
|
+
monteur_id: string | null;
|
|
62654
|
+
price_per_unit: number;
|
|
62655
|
+
product_name: string;
|
|
62656
|
+
quantity_current: number;
|
|
62657
|
+
quantity_min: number;
|
|
62658
|
+
unit: string;
|
|
62659
|
+
updated_at: string;
|
|
62660
|
+
};
|
|
62661
|
+
SetofOptions: {
|
|
62662
|
+
from: "*";
|
|
62663
|
+
to: "van_inventories";
|
|
62664
|
+
isOneToOne: true;
|
|
62665
|
+
isSetofReturn: false;
|
|
62666
|
+
};
|
|
62667
|
+
};
|
|
60674
62668
|
control_get_todays_carts: {
|
|
60675
62669
|
Args: never;
|
|
60676
62670
|
Returns: {
|
|
@@ -60744,6 +62738,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
60744
62738
|
_user_id: string;
|
|
60745
62739
|
};
|
|
60746
62740
|
Returns: string;
|
|
62741
|
+
} | {
|
|
62742
|
+
Args: {
|
|
62743
|
+
_feature_id: string;
|
|
62744
|
+
_module_id: string;
|
|
62745
|
+
_user_id: string;
|
|
62746
|
+
};
|
|
62747
|
+
Returns: string;
|
|
60747
62748
|
};
|
|
60748
62749
|
email_auth_decrypt: {
|
|
60749
62750
|
Args: {
|
|
@@ -61095,12 +63096,6 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
61095
63096
|
Args: never;
|
|
61096
63097
|
Returns: string;
|
|
61097
63098
|
};
|
|
61098
|
-
get_work_order_tenant_id: {
|
|
61099
|
-
Args: {
|
|
61100
|
-
wo_id: string;
|
|
61101
|
-
};
|
|
61102
|
-
Returns: string;
|
|
61103
|
-
};
|
|
61104
63099
|
has_module_permission: {
|
|
61105
63100
|
Args: {
|
|
61106
63101
|
_min: string;
|
|
@@ -61134,6 +63129,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
61134
63129
|
};
|
|
61135
63130
|
Returns: boolean;
|
|
61136
63131
|
};
|
|
63132
|
+
is_time_log_week_locked: {
|
|
63133
|
+
Args: {
|
|
63134
|
+
p_employee_id: string;
|
|
63135
|
+
p_start_time: string;
|
|
63136
|
+
};
|
|
63137
|
+
Returns: boolean;
|
|
63138
|
+
};
|
|
61137
63139
|
is_user_admin: {
|
|
61138
63140
|
Args: never;
|
|
61139
63141
|
Returns: boolean;
|
|
@@ -61148,13 +63150,14 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
61148
63150
|
};
|
|
61149
63151
|
Returns: boolean;
|
|
61150
63152
|
};
|
|
61151
|
-
|
|
63153
|
+
list_medewerkers: {
|
|
61152
63154
|
Args: never;
|
|
61153
63155
|
Returns: {
|
|
61154
63156
|
avatar_url: string;
|
|
61155
63157
|
display_name: string;
|
|
61156
63158
|
email: string;
|
|
61157
63159
|
id: string;
|
|
63160
|
+
roles: string[];
|
|
61158
63161
|
}[];
|
|
61159
63162
|
};
|
|
61160
63163
|
list_my_planning_items: {
|
|
@@ -61645,6 +63648,65 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
61645
63648
|
};
|
|
61646
63649
|
Returns: number;
|
|
61647
63650
|
};
|
|
63651
|
+
logistics_plan_claim: {
|
|
63652
|
+
Args: {
|
|
63653
|
+
p_limit?: number;
|
|
63654
|
+
};
|
|
63655
|
+
Returns: {
|
|
63656
|
+
attempts: number;
|
|
63657
|
+
id: string;
|
|
63658
|
+
order_id: string;
|
|
63659
|
+
}[];
|
|
63660
|
+
};
|
|
63661
|
+
logistics_plan_enqueue: {
|
|
63662
|
+
Args: {
|
|
63663
|
+
p_order_id: string;
|
|
63664
|
+
p_reason?: string;
|
|
63665
|
+
};
|
|
63666
|
+
Returns: undefined;
|
|
63667
|
+
};
|
|
63668
|
+
logistics_plan_ensure_event: {
|
|
63669
|
+
Args: {
|
|
63670
|
+
p_order_id: string;
|
|
63671
|
+
};
|
|
63672
|
+
Returns: boolean;
|
|
63673
|
+
};
|
|
63674
|
+
logistics_plan_finish: {
|
|
63675
|
+
Args: {
|
|
63676
|
+
p_error?: string;
|
|
63677
|
+
p_id: string;
|
|
63678
|
+
};
|
|
63679
|
+
Returns: undefined;
|
|
63680
|
+
};
|
|
63681
|
+
logistics_plan_impact_orders: {
|
|
63682
|
+
Args: {
|
|
63683
|
+
p_order_id: string;
|
|
63684
|
+
};
|
|
63685
|
+
Returns: {
|
|
63686
|
+
buffer_id: string;
|
|
63687
|
+
order_id: string;
|
|
63688
|
+
plan_date: string;
|
|
63689
|
+
}[];
|
|
63690
|
+
};
|
|
63691
|
+
logistics_plan_kick: {
|
|
63692
|
+
Args: never;
|
|
63693
|
+
Returns: undefined;
|
|
63694
|
+
};
|
|
63695
|
+
logistics_plan_prune: {
|
|
63696
|
+
Args: never;
|
|
63697
|
+
Returns: number;
|
|
63698
|
+
};
|
|
63699
|
+
logistics_plan_release_stale: {
|
|
63700
|
+
Args: never;
|
|
63701
|
+
Returns: number;
|
|
63702
|
+
};
|
|
63703
|
+
logistics_plan_setting: {
|
|
63704
|
+
Args: {
|
|
63705
|
+
p_default: number;
|
|
63706
|
+
p_key: string;
|
|
63707
|
+
};
|
|
63708
|
+
Returns: number;
|
|
63709
|
+
};
|
|
61648
63710
|
logistics_queue_capacity_email: {
|
|
61649
63711
|
Args: {
|
|
61650
63712
|
p_alert_id: string;
|
|
@@ -61886,6 +63948,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
61886
63948
|
my_module_permissions: {
|
|
61887
63949
|
Args: never;
|
|
61888
63950
|
Returns: {
|
|
63951
|
+
feature_id: string;
|
|
61889
63952
|
module_id: string;
|
|
61890
63953
|
permission: string;
|
|
61891
63954
|
}[];
|
|
@@ -62766,6 +64829,16 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
62766
64829
|
};
|
|
62767
64830
|
Returns: string[];
|
|
62768
64831
|
};
|
|
64832
|
+
switch_time_log: {
|
|
64833
|
+
Args: {
|
|
64834
|
+
p_employee_id: string;
|
|
64835
|
+
p_start_lat?: number;
|
|
64836
|
+
p_start_lng?: number;
|
|
64837
|
+
p_type: string;
|
|
64838
|
+
p_work_order_id?: string;
|
|
64839
|
+
};
|
|
64840
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
64841
|
+
};
|
|
62769
64842
|
sync_all_layer_stocks: {
|
|
62770
64843
|
Args: never;
|
|
62771
64844
|
Returns: undefined;
|
|
@@ -62816,6 +64889,24 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
62816
64889
|
};
|
|
62817
64890
|
Returns: boolean;
|
|
62818
64891
|
};
|
|
64892
|
+
twinfield_cron_lock_acquire: {
|
|
64893
|
+
Args: {
|
|
64894
|
+
_job_name: string;
|
|
64895
|
+
_stale_seconds?: number;
|
|
64896
|
+
};
|
|
64897
|
+
Returns: boolean;
|
|
64898
|
+
};
|
|
64899
|
+
twinfield_cron_lock_release: {
|
|
64900
|
+
Args: {
|
|
64901
|
+
_error?: string;
|
|
64902
|
+
_job_name: string;
|
|
64903
|
+
};
|
|
64904
|
+
Returns: undefined;
|
|
64905
|
+
};
|
|
64906
|
+
twinfield_prune_push_queue: {
|
|
64907
|
+
Args: never;
|
|
64908
|
+
Returns: number;
|
|
64909
|
+
};
|
|
62819
64910
|
twinfield_register_cron: {
|
|
62820
64911
|
Args: {
|
|
62821
64912
|
apikey?: string;
|