@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
|
@@ -875,6 +875,126 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
875
875
|
};
|
|
876
876
|
Relationships: [];
|
|
877
877
|
};
|
|
878
|
+
cao_holidays: {
|
|
879
|
+
Row: {
|
|
880
|
+
created_at: string;
|
|
881
|
+
description: string | null;
|
|
882
|
+
holiday_date: string;
|
|
883
|
+
id: string;
|
|
884
|
+
updated_at: string;
|
|
885
|
+
};
|
|
886
|
+
Insert: {
|
|
887
|
+
created_at?: string;
|
|
888
|
+
description?: string | null;
|
|
889
|
+
holiday_date: string;
|
|
890
|
+
id?: string;
|
|
891
|
+
updated_at?: string;
|
|
892
|
+
};
|
|
893
|
+
Update: {
|
|
894
|
+
created_at?: string;
|
|
895
|
+
description?: string | null;
|
|
896
|
+
holiday_date?: string;
|
|
897
|
+
id?: string;
|
|
898
|
+
updated_at?: string;
|
|
899
|
+
};
|
|
900
|
+
Relationships: [];
|
|
901
|
+
};
|
|
902
|
+
cao_settings: {
|
|
903
|
+
Row: {
|
|
904
|
+
auto_break_after_hours: number;
|
|
905
|
+
auto_break_minutes: number;
|
|
906
|
+
auto_break_unpaid: boolean;
|
|
907
|
+
auto_stop_after_hours: number;
|
|
908
|
+
callout_fee: number;
|
|
909
|
+
created_at: string;
|
|
910
|
+
daily_regular_hours: number;
|
|
911
|
+
default_hourly_rate: number;
|
|
912
|
+
id: string;
|
|
913
|
+
materials_markup_percent: number;
|
|
914
|
+
max_daily_hours: number;
|
|
915
|
+
max_weekly_hours: number;
|
|
916
|
+
meal_allowance_amount: number;
|
|
917
|
+
overtime_pct_178: number;
|
|
918
|
+
overtime_pct_189: number;
|
|
919
|
+
overtime_pct_212: number;
|
|
920
|
+
reminder_after_hours: number;
|
|
921
|
+
standby_evening_amount: number;
|
|
922
|
+
standby_weekend_amount: number;
|
|
923
|
+
travel_cost_per_km: number | null;
|
|
924
|
+
travel_cost_threshold_km: number | null;
|
|
925
|
+
travel_counts_as_work: boolean;
|
|
926
|
+
travel_hourly_rate: number;
|
|
927
|
+
travel_rate_per_hour: number;
|
|
928
|
+
travel_threshold_minutes: number;
|
|
929
|
+
updated_at: string;
|
|
930
|
+
weekend_always_212: boolean;
|
|
931
|
+
window_end: string;
|
|
932
|
+
window_start: string;
|
|
933
|
+
};
|
|
934
|
+
Insert: {
|
|
935
|
+
auto_break_after_hours?: number;
|
|
936
|
+
auto_break_minutes?: number;
|
|
937
|
+
auto_break_unpaid?: boolean;
|
|
938
|
+
auto_stop_after_hours?: number;
|
|
939
|
+
callout_fee?: number;
|
|
940
|
+
created_at?: string;
|
|
941
|
+
daily_regular_hours?: number;
|
|
942
|
+
default_hourly_rate?: number;
|
|
943
|
+
id?: string;
|
|
944
|
+
materials_markup_percent?: number;
|
|
945
|
+
max_daily_hours?: number;
|
|
946
|
+
max_weekly_hours?: number;
|
|
947
|
+
meal_allowance_amount?: number;
|
|
948
|
+
overtime_pct_178?: number;
|
|
949
|
+
overtime_pct_189?: number;
|
|
950
|
+
overtime_pct_212?: number;
|
|
951
|
+
reminder_after_hours?: number;
|
|
952
|
+
standby_evening_amount?: number;
|
|
953
|
+
standby_weekend_amount?: number;
|
|
954
|
+
travel_cost_per_km?: number | null;
|
|
955
|
+
travel_cost_threshold_km?: number | null;
|
|
956
|
+
travel_counts_as_work?: boolean;
|
|
957
|
+
travel_hourly_rate?: number;
|
|
958
|
+
travel_rate_per_hour?: number;
|
|
959
|
+
travel_threshold_minutes?: number;
|
|
960
|
+
updated_at?: string;
|
|
961
|
+
weekend_always_212?: boolean;
|
|
962
|
+
window_end?: string;
|
|
963
|
+
window_start?: string;
|
|
964
|
+
};
|
|
965
|
+
Update: {
|
|
966
|
+
auto_break_after_hours?: number;
|
|
967
|
+
auto_break_minutes?: number;
|
|
968
|
+
auto_break_unpaid?: boolean;
|
|
969
|
+
auto_stop_after_hours?: number;
|
|
970
|
+
callout_fee?: number;
|
|
971
|
+
created_at?: string;
|
|
972
|
+
daily_regular_hours?: number;
|
|
973
|
+
default_hourly_rate?: number;
|
|
974
|
+
id?: string;
|
|
975
|
+
materials_markup_percent?: number;
|
|
976
|
+
max_daily_hours?: number;
|
|
977
|
+
max_weekly_hours?: number;
|
|
978
|
+
meal_allowance_amount?: number;
|
|
979
|
+
overtime_pct_178?: number;
|
|
980
|
+
overtime_pct_189?: number;
|
|
981
|
+
overtime_pct_212?: number;
|
|
982
|
+
reminder_after_hours?: number;
|
|
983
|
+
standby_evening_amount?: number;
|
|
984
|
+
standby_weekend_amount?: number;
|
|
985
|
+
travel_cost_per_km?: number | null;
|
|
986
|
+
travel_cost_threshold_km?: number | null;
|
|
987
|
+
travel_counts_as_work?: boolean;
|
|
988
|
+
travel_hourly_rate?: number;
|
|
989
|
+
travel_rate_per_hour?: number;
|
|
990
|
+
travel_threshold_minutes?: number;
|
|
991
|
+
updated_at?: string;
|
|
992
|
+
weekend_always_212?: boolean;
|
|
993
|
+
window_end?: string;
|
|
994
|
+
window_start?: string;
|
|
995
|
+
};
|
|
996
|
+
Relationships: [];
|
|
997
|
+
};
|
|
878
998
|
carrier_shipping_rates: {
|
|
879
999
|
Row: {
|
|
880
1000
|
carrier_id: string;
|
|
@@ -7769,7 +7889,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
7769
7889
|
start_date: string;
|
|
7770
7890
|
start_time: string | null;
|
|
7771
7891
|
status: string;
|
|
7772
|
-
tenant_id: string;
|
|
7773
7892
|
updated_at: string;
|
|
7774
7893
|
user_id: string;
|
|
7775
7894
|
};
|
|
@@ -7787,7 +7906,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
7787
7906
|
start_date: string;
|
|
7788
7907
|
start_time?: string | null;
|
|
7789
7908
|
status?: string;
|
|
7790
|
-
tenant_id?: string;
|
|
7791
7909
|
updated_at?: string;
|
|
7792
7910
|
user_id: string;
|
|
7793
7911
|
};
|
|
@@ -7805,7 +7923,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
7805
7923
|
start_date?: string;
|
|
7806
7924
|
start_time?: string | null;
|
|
7807
7925
|
status?: string;
|
|
7808
|
-
tenant_id?: string;
|
|
7809
7926
|
updated_at?: string;
|
|
7810
7927
|
user_id?: string;
|
|
7811
7928
|
};
|
|
@@ -7813,13 +7930,13 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
7813
7930
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
7814
7931
|
columns: ["monteur_id"];
|
|
7815
7932
|
isOneToOne: false;
|
|
7816
|
-
referencedRelation: "
|
|
7933
|
+
referencedRelation: "profiles";
|
|
7817
7934
|
referencedColumns: ["id"];
|
|
7818
7935
|
}, {
|
|
7819
7936
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
7820
7937
|
columns: ["user_id"];
|
|
7821
7938
|
isOneToOne: false;
|
|
7822
|
-
referencedRelation: "
|
|
7939
|
+
referencedRelation: "profiles";
|
|
7823
7940
|
referencedColumns: ["id"];
|
|
7824
7941
|
}];
|
|
7825
7942
|
};
|
|
@@ -8687,6 +8804,45 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
8687
8804
|
};
|
|
8688
8805
|
Relationships: [];
|
|
8689
8806
|
};
|
|
8807
|
+
logistics_plan_queue: {
|
|
8808
|
+
Row: {
|
|
8809
|
+
attempts: number;
|
|
8810
|
+
claimed_at: string | null;
|
|
8811
|
+
enqueued_at: string;
|
|
8812
|
+
error: string | null;
|
|
8813
|
+
id: string;
|
|
8814
|
+
next_attempt_at: string;
|
|
8815
|
+
order_id: string;
|
|
8816
|
+
reason: string;
|
|
8817
|
+
status: string;
|
|
8818
|
+
updated_at: string;
|
|
8819
|
+
};
|
|
8820
|
+
Insert: {
|
|
8821
|
+
attempts?: number;
|
|
8822
|
+
claimed_at?: string | null;
|
|
8823
|
+
enqueued_at?: string;
|
|
8824
|
+
error?: string | null;
|
|
8825
|
+
id?: string;
|
|
8826
|
+
next_attempt_at?: string;
|
|
8827
|
+
order_id: string;
|
|
8828
|
+
reason?: string;
|
|
8829
|
+
status?: string;
|
|
8830
|
+
updated_at?: string;
|
|
8831
|
+
};
|
|
8832
|
+
Update: {
|
|
8833
|
+
attempts?: number;
|
|
8834
|
+
claimed_at?: string | null;
|
|
8835
|
+
enqueued_at?: string;
|
|
8836
|
+
error?: string | null;
|
|
8837
|
+
id?: string;
|
|
8838
|
+
next_attempt_at?: string;
|
|
8839
|
+
order_id?: string;
|
|
8840
|
+
reason?: string;
|
|
8841
|
+
status?: string;
|
|
8842
|
+
updated_at?: string;
|
|
8843
|
+
};
|
|
8844
|
+
Relationships: [];
|
|
8845
|
+
};
|
|
8690
8846
|
logistics_plan_runs: {
|
|
8691
8847
|
Row: {
|
|
8692
8848
|
created_at: string;
|
|
@@ -8762,6 +8918,24 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
8762
8918
|
referencedColumns: ["id"];
|
|
8763
8919
|
}];
|
|
8764
8920
|
};
|
|
8921
|
+
logistics_plan_settings: {
|
|
8922
|
+
Row: {
|
|
8923
|
+
key: string;
|
|
8924
|
+
updated_at: string;
|
|
8925
|
+
value: string;
|
|
8926
|
+
};
|
|
8927
|
+
Insert: {
|
|
8928
|
+
key: string;
|
|
8929
|
+
updated_at?: string;
|
|
8930
|
+
value: string;
|
|
8931
|
+
};
|
|
8932
|
+
Update: {
|
|
8933
|
+
key?: string;
|
|
8934
|
+
updated_at?: string;
|
|
8935
|
+
value?: string;
|
|
8936
|
+
};
|
|
8937
|
+
Relationships: [];
|
|
8938
|
+
};
|
|
8765
8939
|
logistics_rebuffer_state: {
|
|
8766
8940
|
Row: {
|
|
8767
8941
|
created_at: string;
|
|
@@ -9917,6 +10091,90 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
9917
10091
|
};
|
|
9918
10092
|
Relationships: [];
|
|
9919
10093
|
};
|
|
10094
|
+
material_usage: {
|
|
10095
|
+
Row: {
|
|
10096
|
+
created_at: string;
|
|
10097
|
+
id: string;
|
|
10098
|
+
material_name: string;
|
|
10099
|
+
monteur_id: string | null;
|
|
10100
|
+
price_at_time: number;
|
|
10101
|
+
quantity_used: number;
|
|
10102
|
+
updated_at: string;
|
|
10103
|
+
van_inventory_id: string | null;
|
|
10104
|
+
work_order_id: string;
|
|
10105
|
+
};
|
|
10106
|
+
Insert: {
|
|
10107
|
+
created_at?: string;
|
|
10108
|
+
id?: string;
|
|
10109
|
+
material_name: string;
|
|
10110
|
+
monteur_id?: string | null;
|
|
10111
|
+
price_at_time?: number;
|
|
10112
|
+
quantity_used?: number;
|
|
10113
|
+
updated_at?: string;
|
|
10114
|
+
van_inventory_id?: string | null;
|
|
10115
|
+
work_order_id: string;
|
|
10116
|
+
};
|
|
10117
|
+
Update: {
|
|
10118
|
+
created_at?: string;
|
|
10119
|
+
id?: string;
|
|
10120
|
+
material_name?: string;
|
|
10121
|
+
monteur_id?: string | null;
|
|
10122
|
+
price_at_time?: number;
|
|
10123
|
+
quantity_used?: number;
|
|
10124
|
+
updated_at?: string;
|
|
10125
|
+
van_inventory_id?: string | null;
|
|
10126
|
+
work_order_id?: string;
|
|
10127
|
+
};
|
|
10128
|
+
Relationships: [{
|
|
10129
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
10130
|
+
columns: ["monteur_id"];
|
|
10131
|
+
isOneToOne: false;
|
|
10132
|
+
referencedRelation: "profiles";
|
|
10133
|
+
referencedColumns: ["id"];
|
|
10134
|
+
}, {
|
|
10135
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
10136
|
+
columns: ["van_inventory_id"];
|
|
10137
|
+
isOneToOne: false;
|
|
10138
|
+
referencedRelation: "van_inventories";
|
|
10139
|
+
referencedColumns: ["id"];
|
|
10140
|
+
}, {
|
|
10141
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
10142
|
+
columns: ["work_order_id"];
|
|
10143
|
+
isOneToOne: false;
|
|
10144
|
+
referencedRelation: "work_orders";
|
|
10145
|
+
referencedColumns: ["id"];
|
|
10146
|
+
}];
|
|
10147
|
+
};
|
|
10148
|
+
module_features: {
|
|
10149
|
+
Row: {
|
|
10150
|
+
created_at: string;
|
|
10151
|
+
feature_id: string;
|
|
10152
|
+
id: string;
|
|
10153
|
+
is_active: boolean;
|
|
10154
|
+
last_seen_at: string;
|
|
10155
|
+
module_id: string;
|
|
10156
|
+
name: string;
|
|
10157
|
+
};
|
|
10158
|
+
Insert: {
|
|
10159
|
+
created_at?: string;
|
|
10160
|
+
feature_id: string;
|
|
10161
|
+
id?: string;
|
|
10162
|
+
is_active?: boolean;
|
|
10163
|
+
last_seen_at?: string;
|
|
10164
|
+
module_id: string;
|
|
10165
|
+
name: string;
|
|
10166
|
+
};
|
|
10167
|
+
Update: {
|
|
10168
|
+
created_at?: string;
|
|
10169
|
+
feature_id?: string;
|
|
10170
|
+
id?: string;
|
|
10171
|
+
is_active?: boolean;
|
|
10172
|
+
last_seen_at?: string;
|
|
10173
|
+
module_id?: string;
|
|
10174
|
+
name?: string;
|
|
10175
|
+
};
|
|
10176
|
+
Relationships: [];
|
|
10177
|
+
};
|
|
9920
10178
|
module_permissions: {
|
|
9921
10179
|
Row: {
|
|
9922
10180
|
created_at: string;
|
|
@@ -9947,6 +10205,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
9947
10205
|
module_registry: {
|
|
9948
10206
|
Row: {
|
|
9949
10207
|
created_at: string;
|
|
10208
|
+
enforce: boolean;
|
|
9950
10209
|
is_active: boolean;
|
|
9951
10210
|
last_seen_at: string;
|
|
9952
10211
|
module_id: string;
|
|
@@ -9956,6 +10215,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
9956
10215
|
};
|
|
9957
10216
|
Insert: {
|
|
9958
10217
|
created_at?: string;
|
|
10218
|
+
enforce?: boolean;
|
|
9959
10219
|
is_active?: boolean;
|
|
9960
10220
|
last_seen_at?: string;
|
|
9961
10221
|
module_id: string;
|
|
@@ -9965,6 +10225,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
9965
10225
|
};
|
|
9966
10226
|
Update: {
|
|
9967
10227
|
created_at?: string;
|
|
10228
|
+
enforce?: boolean;
|
|
9968
10229
|
is_active?: boolean;
|
|
9969
10230
|
last_seen_at?: string;
|
|
9970
10231
|
module_id?: string;
|
|
@@ -10025,63 +10286,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
10025
10286
|
};
|
|
10026
10287
|
Relationships: [];
|
|
10027
10288
|
};
|
|
10028
|
-
monteurs: {
|
|
10029
|
-
Row: {
|
|
10030
|
-
avatar_url: string | null;
|
|
10031
|
-
color: string | null;
|
|
10032
|
-
created_at: string;
|
|
10033
|
-
email: string | null;
|
|
10034
|
-
id: string;
|
|
10035
|
-
is_active: boolean;
|
|
10036
|
-
leave_balance_hours: number;
|
|
10037
|
-
name: string;
|
|
10038
|
-
persnr: number | null;
|
|
10039
|
-
phone: string | null;
|
|
10040
|
-
role: string;
|
|
10041
|
-
tenant_id: string;
|
|
10042
|
-
updated_at: string;
|
|
10043
|
-
user_id: string | null;
|
|
10044
|
-
};
|
|
10045
|
-
Insert: {
|
|
10046
|
-
avatar_url?: string | null;
|
|
10047
|
-
color?: string | null;
|
|
10048
|
-
created_at?: string;
|
|
10049
|
-
email?: string | null;
|
|
10050
|
-
id?: string;
|
|
10051
|
-
is_active?: boolean;
|
|
10052
|
-
leave_balance_hours?: number;
|
|
10053
|
-
name: string;
|
|
10054
|
-
persnr?: number | null;
|
|
10055
|
-
phone?: string | null;
|
|
10056
|
-
role?: string;
|
|
10057
|
-
tenant_id: string;
|
|
10058
|
-
updated_at?: string;
|
|
10059
|
-
user_id?: string | null;
|
|
10060
|
-
};
|
|
10061
|
-
Update: {
|
|
10062
|
-
avatar_url?: string | null;
|
|
10063
|
-
color?: string | null;
|
|
10064
|
-
created_at?: string;
|
|
10065
|
-
email?: string | null;
|
|
10066
|
-
id?: string;
|
|
10067
|
-
is_active?: boolean;
|
|
10068
|
-
leave_balance_hours?: number;
|
|
10069
|
-
name?: string;
|
|
10070
|
-
persnr?: number | null;
|
|
10071
|
-
phone?: string | null;
|
|
10072
|
-
role?: string;
|
|
10073
|
-
tenant_id?: string;
|
|
10074
|
-
updated_at?: string;
|
|
10075
|
-
user_id?: string | null;
|
|
10076
|
-
};
|
|
10077
|
-
Relationships: [{
|
|
10078
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
10079
|
-
columns: ["tenant_id"];
|
|
10080
|
-
isOneToOne: false;
|
|
10081
|
-
referencedRelation: "tenants";
|
|
10082
|
-
referencedColumns: ["id"];
|
|
10083
|
-
}];
|
|
10084
|
-
};
|
|
10085
10289
|
nmbrs_component_mapping: {
|
|
10086
10290
|
Row: {
|
|
10087
10291
|
created_at: string;
|
|
@@ -10152,13 +10356,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
10152
10356
|
nmbrs_employee_number?: string;
|
|
10153
10357
|
updated_at?: string;
|
|
10154
10358
|
};
|
|
10155
|
-
Relationships: [
|
|
10156
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10157
|
-
columns: ["monteur_id"];
|
|
10158
|
-
isOneToOne: true;
|
|
10159
|
-
referencedRelation: "monteurs";
|
|
10160
|
-
referencedColumns: ["id"];
|
|
10161
|
-
}];
|
|
10359
|
+
Relationships: [];
|
|
10162
10360
|
};
|
|
10163
10361
|
nmbrs_export_lines: {
|
|
10164
10362
|
Row: {
|
|
@@ -10207,12 +10405,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
10207
10405
|
wage_code?: string;
|
|
10208
10406
|
};
|
|
10209
10407
|
Relationships: [{
|
|
10210
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10211
|
-
columns: ["monteur_id"];
|
|
10212
|
-
isOneToOne: false;
|
|
10213
|
-
referencedRelation: "monteurs";
|
|
10214
|
-
referencedColumns: ["id"];
|
|
10215
|
-
}, {
|
|
10216
10408
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10217
10409
|
columns: ["run_id"];
|
|
10218
10410
|
isOneToOne: false;
|
|
@@ -11040,6 +11232,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
11040
11232
|
error_message: string | null;
|
|
11041
11233
|
id: string;
|
|
11042
11234
|
invoice_number: string | null;
|
|
11235
|
+
next_attempt_at: string;
|
|
11043
11236
|
order_id: string;
|
|
11044
11237
|
processed_at: string | null;
|
|
11045
11238
|
status: string;
|
|
@@ -11051,6 +11244,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
11051
11244
|
error_message?: string | null;
|
|
11052
11245
|
id?: string;
|
|
11053
11246
|
invoice_number?: string | null;
|
|
11247
|
+
next_attempt_at?: string;
|
|
11054
11248
|
order_id: string;
|
|
11055
11249
|
processed_at?: string | null;
|
|
11056
11250
|
status?: string;
|
|
@@ -11062,6 +11256,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
11062
11256
|
error_message?: string | null;
|
|
11063
11257
|
id?: string;
|
|
11064
11258
|
invoice_number?: string | null;
|
|
11259
|
+
next_attempt_at?: string;
|
|
11065
11260
|
order_id?: string;
|
|
11066
11261
|
processed_at?: string | null;
|
|
11067
11262
|
status?: string;
|
|
@@ -12600,6 +12795,9 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
12600
12795
|
created_at: string;
|
|
12601
12796
|
id: string;
|
|
12602
12797
|
laatst_gezien: string;
|
|
12798
|
+
laatste_fout: string | null;
|
|
12799
|
+
laatste_request_id: number | null;
|
|
12800
|
+
mislukte_posts: number;
|
|
12603
12801
|
tick_sleutel: string;
|
|
12604
12802
|
updated_at: string;
|
|
12605
12803
|
};
|
|
@@ -12609,6 +12807,9 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
12609
12807
|
created_at?: string;
|
|
12610
12808
|
id?: string;
|
|
12611
12809
|
laatst_gezien?: string;
|
|
12810
|
+
laatste_fout?: string | null;
|
|
12811
|
+
laatste_request_id?: number | null;
|
|
12812
|
+
mislukte_posts?: number;
|
|
12612
12813
|
tick_sleutel?: string;
|
|
12613
12814
|
updated_at?: string;
|
|
12614
12815
|
};
|
|
@@ -12618,6 +12819,9 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
12618
12819
|
created_at?: string;
|
|
12619
12820
|
id?: string;
|
|
12620
12821
|
laatst_gezien?: string;
|
|
12822
|
+
laatste_fout?: string | null;
|
|
12823
|
+
laatste_request_id?: number | null;
|
|
12824
|
+
mislukte_posts?: number;
|
|
12621
12825
|
tick_sleutel?: string;
|
|
12622
12826
|
updated_at?: string;
|
|
12623
12827
|
};
|
|
@@ -14126,6 +14330,96 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
14126
14330
|
referencedColumns: ["id"];
|
|
14127
14331
|
}];
|
|
14128
14332
|
};
|
|
14333
|
+
role_assignments: {
|
|
14334
|
+
Row: {
|
|
14335
|
+
created_at: string;
|
|
14336
|
+
id: string;
|
|
14337
|
+
role_id: string;
|
|
14338
|
+
user_id: string;
|
|
14339
|
+
};
|
|
14340
|
+
Insert: {
|
|
14341
|
+
created_at?: string;
|
|
14342
|
+
id?: string;
|
|
14343
|
+
role_id: string;
|
|
14344
|
+
user_id: string;
|
|
14345
|
+
};
|
|
14346
|
+
Update: {
|
|
14347
|
+
created_at?: string;
|
|
14348
|
+
id?: string;
|
|
14349
|
+
role_id?: string;
|
|
14350
|
+
user_id?: string;
|
|
14351
|
+
};
|
|
14352
|
+
Relationships: [{
|
|
14353
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
14354
|
+
columns: ["role_id"];
|
|
14355
|
+
isOneToOne: false;
|
|
14356
|
+
referencedRelation: "roles";
|
|
14357
|
+
referencedColumns: ["id"];
|
|
14358
|
+
}];
|
|
14359
|
+
};
|
|
14360
|
+
role_permissions: {
|
|
14361
|
+
Row: {
|
|
14362
|
+
can_edit: boolean;
|
|
14363
|
+
can_view: boolean;
|
|
14364
|
+
feature_id: string;
|
|
14365
|
+
id: string;
|
|
14366
|
+
module_id: string;
|
|
14367
|
+
role_id: string;
|
|
14368
|
+
updated_at: string;
|
|
14369
|
+
};
|
|
14370
|
+
Insert: {
|
|
14371
|
+
can_edit?: boolean;
|
|
14372
|
+
can_view?: boolean;
|
|
14373
|
+
feature_id?: string;
|
|
14374
|
+
id?: string;
|
|
14375
|
+
module_id: string;
|
|
14376
|
+
role_id: string;
|
|
14377
|
+
updated_at?: string;
|
|
14378
|
+
};
|
|
14379
|
+
Update: {
|
|
14380
|
+
can_edit?: boolean;
|
|
14381
|
+
can_view?: boolean;
|
|
14382
|
+
feature_id?: string;
|
|
14383
|
+
id?: string;
|
|
14384
|
+
module_id?: string;
|
|
14385
|
+
role_id?: string;
|
|
14386
|
+
updated_at?: string;
|
|
14387
|
+
};
|
|
14388
|
+
Relationships: [{
|
|
14389
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
14390
|
+
columns: ["role_id"];
|
|
14391
|
+
isOneToOne: false;
|
|
14392
|
+
referencedRelation: "roles";
|
|
14393
|
+
referencedColumns: ["id"];
|
|
14394
|
+
}];
|
|
14395
|
+
};
|
|
14396
|
+
roles: {
|
|
14397
|
+
Row: {
|
|
14398
|
+
created_at: string;
|
|
14399
|
+
id: string;
|
|
14400
|
+
is_protected: boolean;
|
|
14401
|
+
key: string;
|
|
14402
|
+
name: string;
|
|
14403
|
+
updated_at: string;
|
|
14404
|
+
};
|
|
14405
|
+
Insert: {
|
|
14406
|
+
created_at?: string;
|
|
14407
|
+
id?: string;
|
|
14408
|
+
is_protected?: boolean;
|
|
14409
|
+
key: string;
|
|
14410
|
+
name: string;
|
|
14411
|
+
updated_at?: string;
|
|
14412
|
+
};
|
|
14413
|
+
Update: {
|
|
14414
|
+
created_at?: string;
|
|
14415
|
+
id?: string;
|
|
14416
|
+
is_protected?: boolean;
|
|
14417
|
+
key?: string;
|
|
14418
|
+
name?: string;
|
|
14419
|
+
updated_at?: string;
|
|
14420
|
+
};
|
|
14421
|
+
Relationships: [];
|
|
14422
|
+
};
|
|
14129
14423
|
rooms: {
|
|
14130
14424
|
Row: {
|
|
14131
14425
|
capacity: number;
|
|
@@ -14795,6 +15089,54 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
14795
15089
|
};
|
|
14796
15090
|
Relationships: [];
|
|
14797
15091
|
};
|
|
15092
|
+
time_compensation_entries: {
|
|
15093
|
+
Row: {
|
|
15094
|
+
created_at: string;
|
|
15095
|
+
employee_id: string;
|
|
15096
|
+
entry_date: string;
|
|
15097
|
+
id: string;
|
|
15098
|
+
km: number;
|
|
15099
|
+
meal_allowance: number;
|
|
15100
|
+
notes: string | null;
|
|
15101
|
+
standby_evening: number;
|
|
15102
|
+
standby_weekend: number;
|
|
15103
|
+
tvt_change: number;
|
|
15104
|
+
updated_at: string;
|
|
15105
|
+
};
|
|
15106
|
+
Insert: {
|
|
15107
|
+
created_at?: string;
|
|
15108
|
+
employee_id: string;
|
|
15109
|
+
entry_date: string;
|
|
15110
|
+
id?: string;
|
|
15111
|
+
km?: number;
|
|
15112
|
+
meal_allowance?: number;
|
|
15113
|
+
notes?: string | null;
|
|
15114
|
+
standby_evening?: number;
|
|
15115
|
+
standby_weekend?: number;
|
|
15116
|
+
tvt_change?: number;
|
|
15117
|
+
updated_at?: string;
|
|
15118
|
+
};
|
|
15119
|
+
Update: {
|
|
15120
|
+
created_at?: string;
|
|
15121
|
+
employee_id?: string;
|
|
15122
|
+
entry_date?: string;
|
|
15123
|
+
id?: string;
|
|
15124
|
+
km?: number;
|
|
15125
|
+
meal_allowance?: number;
|
|
15126
|
+
notes?: string | null;
|
|
15127
|
+
standby_evening?: number;
|
|
15128
|
+
standby_weekend?: number;
|
|
15129
|
+
tvt_change?: number;
|
|
15130
|
+
updated_at?: string;
|
|
15131
|
+
};
|
|
15132
|
+
Relationships: [{
|
|
15133
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
15134
|
+
columns: ["employee_id"];
|
|
15135
|
+
isOneToOne: false;
|
|
15136
|
+
referencedRelation: "profiles";
|
|
15137
|
+
referencedColumns: ["id"];
|
|
15138
|
+
}];
|
|
15139
|
+
};
|
|
14798
15140
|
time_entries: {
|
|
14799
15141
|
Row: {
|
|
14800
15142
|
created_at: string;
|
|
@@ -14829,65 +15171,170 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
14829
15171
|
undertime?: number;
|
|
14830
15172
|
updated_at?: string;
|
|
14831
15173
|
};
|
|
15174
|
+
Relationships: [];
|
|
15175
|
+
};
|
|
15176
|
+
time_log_week_approvals: {
|
|
15177
|
+
Row: {
|
|
15178
|
+
approved_at: string | null;
|
|
15179
|
+
approved_by: string | null;
|
|
15180
|
+
created_at: string;
|
|
15181
|
+
employee_id: string;
|
|
15182
|
+
id: string;
|
|
15183
|
+
locked: boolean;
|
|
15184
|
+
notes: string | null;
|
|
15185
|
+
status: string;
|
|
15186
|
+
submitted_at: string | null;
|
|
15187
|
+
updated_at: string;
|
|
15188
|
+
week_start: string;
|
|
15189
|
+
};
|
|
15190
|
+
Insert: {
|
|
15191
|
+
approved_at?: string | null;
|
|
15192
|
+
approved_by?: string | null;
|
|
15193
|
+
created_at?: string;
|
|
15194
|
+
employee_id: string;
|
|
15195
|
+
id?: string;
|
|
15196
|
+
locked?: boolean;
|
|
15197
|
+
notes?: string | null;
|
|
15198
|
+
status?: string;
|
|
15199
|
+
submitted_at?: string | null;
|
|
15200
|
+
updated_at?: string;
|
|
15201
|
+
week_start: string;
|
|
15202
|
+
};
|
|
15203
|
+
Update: {
|
|
15204
|
+
approved_at?: string | null;
|
|
15205
|
+
approved_by?: string | null;
|
|
15206
|
+
created_at?: string;
|
|
15207
|
+
employee_id?: string;
|
|
15208
|
+
id?: string;
|
|
15209
|
+
locked?: boolean;
|
|
15210
|
+
notes?: string | null;
|
|
15211
|
+
status?: string;
|
|
15212
|
+
submitted_at?: string | null;
|
|
15213
|
+
updated_at?: string;
|
|
15214
|
+
week_start?: string;
|
|
15215
|
+
};
|
|
14832
15216
|
Relationships: [{
|
|
14833
|
-
foreignKeyName: "
|
|
15217
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
14834
15218
|
columns: ["employee_id"];
|
|
14835
15219
|
isOneToOne: false;
|
|
14836
|
-
referencedRelation: "
|
|
15220
|
+
referencedRelation: "profiles";
|
|
14837
15221
|
referencedColumns: ["id"];
|
|
14838
15222
|
}];
|
|
14839
15223
|
};
|
|
14840
15224
|
time_logs: {
|
|
14841
15225
|
Row: {
|
|
15226
|
+
auto_stop_reason: string | null;
|
|
15227
|
+
auto_stopped: boolean;
|
|
14842
15228
|
created_at: string;
|
|
15229
|
+
current_latitude: number | null;
|
|
15230
|
+
current_longitude: number | null;
|
|
15231
|
+
current_position_updated_at: string | null;
|
|
14843
15232
|
employee_id: string;
|
|
15233
|
+
end_latitude: number | null;
|
|
15234
|
+
end_longitude: number | null;
|
|
14844
15235
|
end_time: string | null;
|
|
15236
|
+
eta_distance_km: number | null;
|
|
15237
|
+
eta_minutes: number | null;
|
|
15238
|
+
eta_updated_at: string | null;
|
|
15239
|
+
hour_category: string | null;
|
|
14845
15240
|
id: string;
|
|
15241
|
+
last_reminder_at: string | null;
|
|
14846
15242
|
notes: string | null;
|
|
14847
15243
|
overtime_hours: number;
|
|
14848
15244
|
overtime_type: string | null;
|
|
14849
15245
|
regular_hours: number;
|
|
15246
|
+
reminder_count: number;
|
|
15247
|
+
requires_review: boolean;
|
|
15248
|
+
start_latitude: number | null;
|
|
15249
|
+
start_longitude: number | null;
|
|
14850
15250
|
start_time: string;
|
|
14851
15251
|
travel_cost: number | null;
|
|
14852
15252
|
travel_distance_km: number | null;
|
|
15253
|
+
travel_duration_min: number | null;
|
|
15254
|
+
travel_time_minutes: number | null;
|
|
14853
15255
|
type: string;
|
|
14854
15256
|
updated_at: string;
|
|
15257
|
+
work_order_id: string | null;
|
|
14855
15258
|
};
|
|
14856
15259
|
Insert: {
|
|
15260
|
+
auto_stop_reason?: string | null;
|
|
15261
|
+
auto_stopped?: boolean;
|
|
14857
15262
|
created_at?: string;
|
|
15263
|
+
current_latitude?: number | null;
|
|
15264
|
+
current_longitude?: number | null;
|
|
15265
|
+
current_position_updated_at?: string | null;
|
|
14858
15266
|
employee_id: string;
|
|
15267
|
+
end_latitude?: number | null;
|
|
15268
|
+
end_longitude?: number | null;
|
|
14859
15269
|
end_time?: string | null;
|
|
15270
|
+
eta_distance_km?: number | null;
|
|
15271
|
+
eta_minutes?: number | null;
|
|
15272
|
+
eta_updated_at?: string | null;
|
|
15273
|
+
hour_category?: string | null;
|
|
14860
15274
|
id?: string;
|
|
15275
|
+
last_reminder_at?: string | null;
|
|
14861
15276
|
notes?: string | null;
|
|
14862
15277
|
overtime_hours?: number;
|
|
14863
15278
|
overtime_type?: string | null;
|
|
14864
15279
|
regular_hours?: number;
|
|
15280
|
+
reminder_count?: number;
|
|
15281
|
+
requires_review?: boolean;
|
|
15282
|
+
start_latitude?: number | null;
|
|
15283
|
+
start_longitude?: number | null;
|
|
14865
15284
|
start_time?: string;
|
|
14866
15285
|
travel_cost?: number | null;
|
|
14867
15286
|
travel_distance_km?: number | null;
|
|
15287
|
+
travel_duration_min?: number | null;
|
|
15288
|
+
travel_time_minutes?: number | null;
|
|
14868
15289
|
type: string;
|
|
14869
15290
|
updated_at?: string;
|
|
15291
|
+
work_order_id?: string | null;
|
|
14870
15292
|
};
|
|
14871
15293
|
Update: {
|
|
15294
|
+
auto_stop_reason?: string | null;
|
|
15295
|
+
auto_stopped?: boolean;
|
|
14872
15296
|
created_at?: string;
|
|
15297
|
+
current_latitude?: number | null;
|
|
15298
|
+
current_longitude?: number | null;
|
|
15299
|
+
current_position_updated_at?: string | null;
|
|
14873
15300
|
employee_id?: string;
|
|
15301
|
+
end_latitude?: number | null;
|
|
15302
|
+
end_longitude?: number | null;
|
|
14874
15303
|
end_time?: string | null;
|
|
15304
|
+
eta_distance_km?: number | null;
|
|
15305
|
+
eta_minutes?: number | null;
|
|
15306
|
+
eta_updated_at?: string | null;
|
|
15307
|
+
hour_category?: string | null;
|
|
14875
15308
|
id?: string;
|
|
15309
|
+
last_reminder_at?: string | null;
|
|
14876
15310
|
notes?: string | null;
|
|
14877
15311
|
overtime_hours?: number;
|
|
14878
15312
|
overtime_type?: string | null;
|
|
14879
15313
|
regular_hours?: number;
|
|
15314
|
+
reminder_count?: number;
|
|
15315
|
+
requires_review?: boolean;
|
|
15316
|
+
start_latitude?: number | null;
|
|
15317
|
+
start_longitude?: number | null;
|
|
14880
15318
|
start_time?: string;
|
|
14881
15319
|
travel_cost?: number | null;
|
|
14882
15320
|
travel_distance_km?: number | null;
|
|
15321
|
+
travel_duration_min?: number | null;
|
|
15322
|
+
travel_time_minutes?: number | null;
|
|
14883
15323
|
type?: string;
|
|
14884
15324
|
updated_at?: string;
|
|
15325
|
+
work_order_id?: string | null;
|
|
14885
15326
|
};
|
|
14886
15327
|
Relationships: [{
|
|
14887
15328
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
14888
15329
|
columns: ["employee_id"];
|
|
14889
15330
|
isOneToOne: false;
|
|
14890
|
-
referencedRelation: "
|
|
15331
|
+
referencedRelation: "profiles";
|
|
15332
|
+
referencedColumns: ["id"];
|
|
15333
|
+
}, {
|
|
15334
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
15335
|
+
columns: ["work_order_id"];
|
|
15336
|
+
isOneToOne: false;
|
|
15337
|
+
referencedRelation: "work_orders";
|
|
14891
15338
|
referencedColumns: ["id"];
|
|
14892
15339
|
}];
|
|
14893
15340
|
};
|
|
@@ -14926,7 +15373,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
14926
15373
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
14927
15374
|
columns: ["employee_id"];
|
|
14928
15375
|
isOneToOne: false;
|
|
14929
|
-
referencedRelation: "
|
|
15376
|
+
referencedRelation: "profiles";
|
|
14930
15377
|
referencedColumns: ["id"];
|
|
14931
15378
|
}];
|
|
14932
15379
|
};
|
|
@@ -15236,6 +15683,39 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
15236
15683
|
};
|
|
15237
15684
|
Relationships: [];
|
|
15238
15685
|
};
|
|
15686
|
+
twinfield_cron_locks: {
|
|
15687
|
+
Row: {
|
|
15688
|
+
created_at: string;
|
|
15689
|
+
heartbeat_at: string;
|
|
15690
|
+
job_name: string;
|
|
15691
|
+
last_error: string | null;
|
|
15692
|
+
last_finished_at: string | null;
|
|
15693
|
+
locked_at: string;
|
|
15694
|
+
run_id: string;
|
|
15695
|
+
updated_at: string;
|
|
15696
|
+
};
|
|
15697
|
+
Insert: {
|
|
15698
|
+
created_at?: string;
|
|
15699
|
+
heartbeat_at?: string;
|
|
15700
|
+
job_name: string;
|
|
15701
|
+
last_error?: string | null;
|
|
15702
|
+
last_finished_at?: string | null;
|
|
15703
|
+
locked_at?: string;
|
|
15704
|
+
run_id?: string;
|
|
15705
|
+
updated_at?: string;
|
|
15706
|
+
};
|
|
15707
|
+
Update: {
|
|
15708
|
+
created_at?: string;
|
|
15709
|
+
heartbeat_at?: string;
|
|
15710
|
+
job_name?: string;
|
|
15711
|
+
last_error?: string | null;
|
|
15712
|
+
last_finished_at?: string | null;
|
|
15713
|
+
locked_at?: string;
|
|
15714
|
+
run_id?: string;
|
|
15715
|
+
updated_at?: string;
|
|
15716
|
+
};
|
|
15717
|
+
Relationships: [];
|
|
15718
|
+
};
|
|
15239
15719
|
twinfield_customers: {
|
|
15240
15720
|
Row: {
|
|
15241
15721
|
address: string | null;
|
|
@@ -15836,6 +16316,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
15836
16316
|
twinfield_push_queue: {
|
|
15837
16317
|
Row: {
|
|
15838
16318
|
action: string;
|
|
16319
|
+
attempt_started_at: string | null;
|
|
15839
16320
|
attempts: number;
|
|
15840
16321
|
connection_id: string | null;
|
|
15841
16322
|
created_at: string;
|
|
@@ -15852,6 +16333,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
15852
16333
|
};
|
|
15853
16334
|
Insert: {
|
|
15854
16335
|
action?: string;
|
|
16336
|
+
attempt_started_at?: string | null;
|
|
15855
16337
|
attempts?: number;
|
|
15856
16338
|
connection_id?: string | null;
|
|
15857
16339
|
created_at?: string;
|
|
@@ -15868,6 +16350,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
15868
16350
|
};
|
|
15869
16351
|
Update: {
|
|
15870
16352
|
action?: string;
|
|
16353
|
+
attempt_started_at?: string | null;
|
|
15871
16354
|
attempts?: number;
|
|
15872
16355
|
connection_id?: string | null;
|
|
15873
16356
|
created_at?: string;
|
|
@@ -16065,13 +16548,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
16065
16548
|
workday_end?: string | null;
|
|
16066
16549
|
workday_start?: string | null;
|
|
16067
16550
|
};
|
|
16068
|
-
Relationships: [
|
|
16069
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
16070
|
-
columns: ["monteur_id"];
|
|
16071
|
-
isOneToOne: true;
|
|
16072
|
-
referencedRelation: "monteurs";
|
|
16073
|
-
referencedColumns: ["id"];
|
|
16074
|
-
}];
|
|
16551
|
+
Relationships: [];
|
|
16075
16552
|
};
|
|
16076
16553
|
uren_entries: {
|
|
16077
16554
|
Row: {
|
|
@@ -16117,12 +16594,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
16117
16594
|
werkbon_id?: string | null;
|
|
16118
16595
|
};
|
|
16119
16596
|
Relationships: [{
|
|
16120
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16121
|
-
columns: ["monteur_id"];
|
|
16122
|
-
isOneToOne: false;
|
|
16123
|
-
referencedRelation: "monteurs";
|
|
16124
|
-
referencedColumns: ["id"];
|
|
16125
|
-
}, {
|
|
16126
16597
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16127
16598
|
columns: ["werkbon_id"];
|
|
16128
16599
|
isOneToOne: false;
|
|
@@ -16590,17 +17061,12 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
16590
17061
|
submitted_at?: string | null;
|
|
16591
17062
|
updated_at?: string;
|
|
16592
17063
|
};
|
|
16593
|
-
Relationships: [
|
|
16594
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
16595
|
-
columns: ["monteur_id"];
|
|
16596
|
-
isOneToOne: false;
|
|
16597
|
-
referencedRelation: "monteurs";
|
|
16598
|
-
referencedColumns: ["id"];
|
|
16599
|
-
}];
|
|
17064
|
+
Relationships: [];
|
|
16600
17065
|
};
|
|
16601
17066
|
user_module_permissions: {
|
|
16602
17067
|
Row: {
|
|
16603
17068
|
created_at: string;
|
|
17069
|
+
feature_id: string;
|
|
16604
17070
|
id: string;
|
|
16605
17071
|
module_id: string;
|
|
16606
17072
|
permission: string;
|
|
@@ -16609,6 +17075,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
16609
17075
|
};
|
|
16610
17076
|
Insert: {
|
|
16611
17077
|
created_at?: string;
|
|
17078
|
+
feature_id?: string;
|
|
16612
17079
|
id?: string;
|
|
16613
17080
|
module_id: string;
|
|
16614
17081
|
permission: string;
|
|
@@ -16617,6 +17084,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
16617
17084
|
};
|
|
16618
17085
|
Update: {
|
|
16619
17086
|
created_at?: string;
|
|
17087
|
+
feature_id?: string;
|
|
16620
17088
|
id?: string;
|
|
16621
17089
|
module_id?: string;
|
|
16622
17090
|
permission?: string;
|
|
@@ -16652,6 +17120,51 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
16652
17120
|
referencedColumns: ["id"];
|
|
16653
17121
|
}];
|
|
16654
17122
|
};
|
|
17123
|
+
van_inventories: {
|
|
17124
|
+
Row: {
|
|
17125
|
+
barcode: string | null;
|
|
17126
|
+
created_at: string;
|
|
17127
|
+
id: string;
|
|
17128
|
+
monteur_id: string | null;
|
|
17129
|
+
price_per_unit: number;
|
|
17130
|
+
product_name: string;
|
|
17131
|
+
quantity_current: number;
|
|
17132
|
+
quantity_min: number;
|
|
17133
|
+
unit: string;
|
|
17134
|
+
updated_at: string;
|
|
17135
|
+
};
|
|
17136
|
+
Insert: {
|
|
17137
|
+
barcode?: string | null;
|
|
17138
|
+
created_at?: string;
|
|
17139
|
+
id?: string;
|
|
17140
|
+
monteur_id?: string | null;
|
|
17141
|
+
price_per_unit?: number;
|
|
17142
|
+
product_name: string;
|
|
17143
|
+
quantity_current?: number;
|
|
17144
|
+
quantity_min?: number;
|
|
17145
|
+
unit?: string;
|
|
17146
|
+
updated_at?: string;
|
|
17147
|
+
};
|
|
17148
|
+
Update: {
|
|
17149
|
+
barcode?: string | null;
|
|
17150
|
+
created_at?: string;
|
|
17151
|
+
id?: string;
|
|
17152
|
+
monteur_id?: string | null;
|
|
17153
|
+
price_per_unit?: number;
|
|
17154
|
+
product_name?: string;
|
|
17155
|
+
quantity_current?: number;
|
|
17156
|
+
quantity_min?: number;
|
|
17157
|
+
unit?: string;
|
|
17158
|
+
updated_at?: string;
|
|
17159
|
+
};
|
|
17160
|
+
Relationships: [{
|
|
17161
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
17162
|
+
columns: ["monteur_id"];
|
|
17163
|
+
isOneToOne: false;
|
|
17164
|
+
referencedRelation: "profiles";
|
|
17165
|
+
referencedColumns: ["id"];
|
|
17166
|
+
}];
|
|
17167
|
+
};
|
|
16655
17168
|
voorraad_custom_fields: {
|
|
16656
17169
|
Row: {
|
|
16657
17170
|
created_at: string;
|
|
@@ -17602,7 +18115,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
17602
18115
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
17603
18116
|
columns: ["monteur_id"];
|
|
17604
18117
|
isOneToOne: false;
|
|
17605
|
-
referencedRelation: "
|
|
18118
|
+
referencedRelation: "profiles";
|
|
17606
18119
|
referencedColumns: ["id"];
|
|
17607
18120
|
}, {
|
|
17608
18121
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -17612,6 +18125,60 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
17612
18125
|
referencedColumns: ["id"];
|
|
17613
18126
|
}];
|
|
17614
18127
|
};
|
|
18128
|
+
work_order_photos: {
|
|
18129
|
+
Row: {
|
|
18130
|
+
ai_caption: string | null;
|
|
18131
|
+
ai_categorized_at: string | null;
|
|
18132
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
18133
|
+
caption: string | null;
|
|
18134
|
+
created_at: string;
|
|
18135
|
+
id: string;
|
|
18136
|
+
monteur_id: string | null;
|
|
18137
|
+
photo_type: string;
|
|
18138
|
+
storage_path: string;
|
|
18139
|
+
updated_at: string;
|
|
18140
|
+
work_order_id: string;
|
|
18141
|
+
};
|
|
18142
|
+
Insert: {
|
|
18143
|
+
ai_caption?: string | null;
|
|
18144
|
+
ai_categorized_at?: string | null;
|
|
18145
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18146
|
+
caption?: string | null;
|
|
18147
|
+
created_at?: string;
|
|
18148
|
+
id?: string;
|
|
18149
|
+
monteur_id?: string | null;
|
|
18150
|
+
photo_type?: string;
|
|
18151
|
+
storage_path: string;
|
|
18152
|
+
updated_at?: string;
|
|
18153
|
+
work_order_id: string;
|
|
18154
|
+
};
|
|
18155
|
+
Update: {
|
|
18156
|
+
ai_caption?: string | null;
|
|
18157
|
+
ai_categorized_at?: string | null;
|
|
18158
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
18159
|
+
caption?: string | null;
|
|
18160
|
+
created_at?: string;
|
|
18161
|
+
id?: string;
|
|
18162
|
+
monteur_id?: string | null;
|
|
18163
|
+
photo_type?: string;
|
|
18164
|
+
storage_path?: string;
|
|
18165
|
+
updated_at?: string;
|
|
18166
|
+
work_order_id?: string;
|
|
18167
|
+
};
|
|
18168
|
+
Relationships: [{
|
|
18169
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
18170
|
+
columns: ["monteur_id"];
|
|
18171
|
+
isOneToOne: false;
|
|
18172
|
+
referencedRelation: "profiles";
|
|
18173
|
+
referencedColumns: ["id"];
|
|
18174
|
+
}, {
|
|
18175
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
18176
|
+
columns: ["work_order_id"];
|
|
18177
|
+
isOneToOne: false;
|
|
18178
|
+
referencedRelation: "work_orders";
|
|
18179
|
+
referencedColumns: ["id"];
|
|
18180
|
+
}];
|
|
18181
|
+
};
|
|
17615
18182
|
work_orders: {
|
|
17616
18183
|
Row: {
|
|
17617
18184
|
assigned_to: string | null;
|
|
@@ -17643,7 +18210,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
17643
18210
|
scheduled_end_time: string | null;
|
|
17644
18211
|
scheduled_start_time: string | null;
|
|
17645
18212
|
status: string;
|
|
17646
|
-
tenant_id: string;
|
|
17647
18213
|
total_hours_worked: number | null;
|
|
17648
18214
|
total_price: number | null;
|
|
17649
18215
|
travel_time_minutes: number | null;
|
|
@@ -17681,7 +18247,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
17681
18247
|
scheduled_end_time?: string | null;
|
|
17682
18248
|
scheduled_start_time?: string | null;
|
|
17683
18249
|
status?: string;
|
|
17684
|
-
tenant_id: string;
|
|
17685
18250
|
total_hours_worked?: number | null;
|
|
17686
18251
|
total_price?: number | null;
|
|
17687
18252
|
travel_time_minutes?: number | null;
|
|
@@ -17719,7 +18284,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
17719
18284
|
scheduled_end_time?: string | null;
|
|
17720
18285
|
scheduled_start_time?: string | null;
|
|
17721
18286
|
status?: string;
|
|
17722
|
-
tenant_id?: string;
|
|
17723
18287
|
total_hours_worked?: number | null;
|
|
17724
18288
|
total_price?: number | null;
|
|
17725
18289
|
travel_time_minutes?: number | null;
|
|
@@ -17733,12 +18297,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
17733
18297
|
isOneToOne: false;
|
|
17734
18298
|
referencedRelation: "work_orders";
|
|
17735
18299
|
referencedColumns: ["id"];
|
|
17736
|
-
}, {
|
|
17737
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
17738
|
-
columns: ["tenant_id"];
|
|
17739
|
-
isOneToOne: false;
|
|
17740
|
-
referencedRelation: "tenants";
|
|
17741
|
-
referencedColumns: ["id"];
|
|
17742
18300
|
}];
|
|
17743
18301
|
};
|
|
17744
18302
|
};
|
|
@@ -18423,6 +18981,19 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
18423
18981
|
};
|
|
18424
18982
|
Returns: undefined;
|
|
18425
18983
|
};
|
|
18984
|
+
approve_mailbox_order_proposal: {
|
|
18985
|
+
Args: {
|
|
18986
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
18987
|
+
p_customer_id: string;
|
|
18988
|
+
p_delivery_date: string;
|
|
18989
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
18990
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
18991
|
+
p_notes: string;
|
|
18992
|
+
p_proposal_id: string;
|
|
18993
|
+
p_reviewed_by: string;
|
|
18994
|
+
};
|
|
18995
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
18996
|
+
};
|
|
18426
18997
|
assign_cart_numbers: {
|
|
18427
18998
|
Args: {
|
|
18428
18999
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -18474,6 +19045,10 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
18474
19045
|
};
|
|
18475
19046
|
Returns: number;
|
|
18476
19047
|
};
|
|
19048
|
+
can_manage_hours: {
|
|
19049
|
+
Args: never;
|
|
19050
|
+
Returns: boolean;
|
|
19051
|
+
};
|
|
18477
19052
|
check_offer_product_available_stock: {
|
|
18478
19053
|
Args: {
|
|
18479
19054
|
p_campaign_product_id: string;
|
|
@@ -18663,6 +19238,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
18663
19238
|
};
|
|
18664
19239
|
Returns: {
|
|
18665
19240
|
action: string;
|
|
19241
|
+
attempt_started_at: string | null;
|
|
18666
19242
|
attempts: number;
|
|
18667
19243
|
connection_id: string | null;
|
|
18668
19244
|
created_at: string;
|
|
@@ -18750,6 +19326,30 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
18750
19326
|
agent_naam: string;
|
|
18751
19327
|
}[];
|
|
18752
19328
|
};
|
|
19329
|
+
consume_van_inventory: {
|
|
19330
|
+
Args: {
|
|
19331
|
+
p_inventory_id: string;
|
|
19332
|
+
p_quantity: number;
|
|
19333
|
+
};
|
|
19334
|
+
Returns: {
|
|
19335
|
+
barcode: string | null;
|
|
19336
|
+
created_at: string;
|
|
19337
|
+
id: string;
|
|
19338
|
+
monteur_id: string | null;
|
|
19339
|
+
price_per_unit: number;
|
|
19340
|
+
product_name: string;
|
|
19341
|
+
quantity_current: number;
|
|
19342
|
+
quantity_min: number;
|
|
19343
|
+
unit: string;
|
|
19344
|
+
updated_at: string;
|
|
19345
|
+
};
|
|
19346
|
+
SetofOptions: {
|
|
19347
|
+
from: "*";
|
|
19348
|
+
to: "van_inventories";
|
|
19349
|
+
isOneToOne: true;
|
|
19350
|
+
isSetofReturn: false;
|
|
19351
|
+
};
|
|
19352
|
+
};
|
|
18753
19353
|
control_get_todays_carts: {
|
|
18754
19354
|
Args: never;
|
|
18755
19355
|
Returns: {
|
|
@@ -18823,6 +19423,13 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
18823
19423
|
_user_id: string;
|
|
18824
19424
|
};
|
|
18825
19425
|
Returns: string;
|
|
19426
|
+
} | {
|
|
19427
|
+
Args: {
|
|
19428
|
+
_feature_id: string;
|
|
19429
|
+
_module_id: string;
|
|
19430
|
+
_user_id: string;
|
|
19431
|
+
};
|
|
19432
|
+
Returns: string;
|
|
18826
19433
|
};
|
|
18827
19434
|
email_auth_decrypt: {
|
|
18828
19435
|
Args: {
|
|
@@ -19174,12 +19781,6 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
19174
19781
|
Args: never;
|
|
19175
19782
|
Returns: string;
|
|
19176
19783
|
};
|
|
19177
|
-
get_work_order_tenant_id: {
|
|
19178
|
-
Args: {
|
|
19179
|
-
wo_id: string;
|
|
19180
|
-
};
|
|
19181
|
-
Returns: string;
|
|
19182
|
-
};
|
|
19183
19784
|
has_module_permission: {
|
|
19184
19785
|
Args: {
|
|
19185
19786
|
_min: string;
|
|
@@ -19213,6 +19814,13 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
19213
19814
|
};
|
|
19214
19815
|
Returns: boolean;
|
|
19215
19816
|
};
|
|
19817
|
+
is_time_log_week_locked: {
|
|
19818
|
+
Args: {
|
|
19819
|
+
p_employee_id: string;
|
|
19820
|
+
p_start_time: string;
|
|
19821
|
+
};
|
|
19822
|
+
Returns: boolean;
|
|
19823
|
+
};
|
|
19216
19824
|
is_user_admin: {
|
|
19217
19825
|
Args: never;
|
|
19218
19826
|
Returns: boolean;
|
|
@@ -19227,13 +19835,14 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
19227
19835
|
};
|
|
19228
19836
|
Returns: boolean;
|
|
19229
19837
|
};
|
|
19230
|
-
|
|
19838
|
+
list_medewerkers: {
|
|
19231
19839
|
Args: never;
|
|
19232
19840
|
Returns: {
|
|
19233
19841
|
avatar_url: string;
|
|
19234
19842
|
display_name: string;
|
|
19235
19843
|
email: string;
|
|
19236
19844
|
id: string;
|
|
19845
|
+
roles: string[];
|
|
19237
19846
|
}[];
|
|
19238
19847
|
};
|
|
19239
19848
|
list_my_planning_items: {
|
|
@@ -19724,6 +20333,65 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
19724
20333
|
};
|
|
19725
20334
|
Returns: number;
|
|
19726
20335
|
};
|
|
20336
|
+
logistics_plan_claim: {
|
|
20337
|
+
Args: {
|
|
20338
|
+
p_limit?: number;
|
|
20339
|
+
};
|
|
20340
|
+
Returns: {
|
|
20341
|
+
attempts: number;
|
|
20342
|
+
id: string;
|
|
20343
|
+
order_id: string;
|
|
20344
|
+
}[];
|
|
20345
|
+
};
|
|
20346
|
+
logistics_plan_enqueue: {
|
|
20347
|
+
Args: {
|
|
20348
|
+
p_order_id: string;
|
|
20349
|
+
p_reason?: string;
|
|
20350
|
+
};
|
|
20351
|
+
Returns: undefined;
|
|
20352
|
+
};
|
|
20353
|
+
logistics_plan_ensure_event: {
|
|
20354
|
+
Args: {
|
|
20355
|
+
p_order_id: string;
|
|
20356
|
+
};
|
|
20357
|
+
Returns: boolean;
|
|
20358
|
+
};
|
|
20359
|
+
logistics_plan_finish: {
|
|
20360
|
+
Args: {
|
|
20361
|
+
p_error?: string;
|
|
20362
|
+
p_id: string;
|
|
20363
|
+
};
|
|
20364
|
+
Returns: undefined;
|
|
20365
|
+
};
|
|
20366
|
+
logistics_plan_impact_orders: {
|
|
20367
|
+
Args: {
|
|
20368
|
+
p_order_id: string;
|
|
20369
|
+
};
|
|
20370
|
+
Returns: {
|
|
20371
|
+
buffer_id: string;
|
|
20372
|
+
order_id: string;
|
|
20373
|
+
plan_date: string;
|
|
20374
|
+
}[];
|
|
20375
|
+
};
|
|
20376
|
+
logistics_plan_kick: {
|
|
20377
|
+
Args: never;
|
|
20378
|
+
Returns: undefined;
|
|
20379
|
+
};
|
|
20380
|
+
logistics_plan_prune: {
|
|
20381
|
+
Args: never;
|
|
20382
|
+
Returns: number;
|
|
20383
|
+
};
|
|
20384
|
+
logistics_plan_release_stale: {
|
|
20385
|
+
Args: never;
|
|
20386
|
+
Returns: number;
|
|
20387
|
+
};
|
|
20388
|
+
logistics_plan_setting: {
|
|
20389
|
+
Args: {
|
|
20390
|
+
p_default: number;
|
|
20391
|
+
p_key: string;
|
|
20392
|
+
};
|
|
20393
|
+
Returns: number;
|
|
20394
|
+
};
|
|
19727
20395
|
logistics_queue_capacity_email: {
|
|
19728
20396
|
Args: {
|
|
19729
20397
|
p_alert_id: string;
|
|
@@ -19965,6 +20633,7 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
19965
20633
|
my_module_permissions: {
|
|
19966
20634
|
Args: never;
|
|
19967
20635
|
Returns: {
|
|
20636
|
+
feature_id: string;
|
|
19968
20637
|
module_id: string;
|
|
19969
20638
|
permission: string;
|
|
19970
20639
|
}[];
|
|
@@ -20845,6 +21514,16 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
20845
21514
|
};
|
|
20846
21515
|
Returns: string[];
|
|
20847
21516
|
};
|
|
21517
|
+
switch_time_log: {
|
|
21518
|
+
Args: {
|
|
21519
|
+
p_employee_id: string;
|
|
21520
|
+
p_start_lat?: number;
|
|
21521
|
+
p_start_lng?: number;
|
|
21522
|
+
p_type: string;
|
|
21523
|
+
p_work_order_id?: string;
|
|
21524
|
+
};
|
|
21525
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21526
|
+
};
|
|
20848
21527
|
sync_all_layer_stocks: {
|
|
20849
21528
|
Args: never;
|
|
20850
21529
|
Returns: undefined;
|
|
@@ -20895,6 +21574,24 @@ export declare const getOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
20895
21574
|
};
|
|
20896
21575
|
Returns: boolean;
|
|
20897
21576
|
};
|
|
21577
|
+
twinfield_cron_lock_acquire: {
|
|
21578
|
+
Args: {
|
|
21579
|
+
_job_name: string;
|
|
21580
|
+
_stale_seconds?: number;
|
|
21581
|
+
};
|
|
21582
|
+
Returns: boolean;
|
|
21583
|
+
};
|
|
21584
|
+
twinfield_cron_lock_release: {
|
|
21585
|
+
Args: {
|
|
21586
|
+
_error?: string;
|
|
21587
|
+
_job_name: string;
|
|
21588
|
+
};
|
|
21589
|
+
Returns: undefined;
|
|
21590
|
+
};
|
|
21591
|
+
twinfield_prune_push_queue: {
|
|
21592
|
+
Args: never;
|
|
21593
|
+
Returns: number;
|
|
21594
|
+
};
|
|
20898
21595
|
twinfield_register_cron: {
|
|
20899
21596
|
Args: {
|
|
20900
21597
|
apikey?: string;
|
|
@@ -21837,6 +22534,126 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
21837
22534
|
};
|
|
21838
22535
|
Relationships: [];
|
|
21839
22536
|
};
|
|
22537
|
+
cao_holidays: {
|
|
22538
|
+
Row: {
|
|
22539
|
+
created_at: string;
|
|
22540
|
+
description: string | null;
|
|
22541
|
+
holiday_date: string;
|
|
22542
|
+
id: string;
|
|
22543
|
+
updated_at: string;
|
|
22544
|
+
};
|
|
22545
|
+
Insert: {
|
|
22546
|
+
created_at?: string;
|
|
22547
|
+
description?: string | null;
|
|
22548
|
+
holiday_date: string;
|
|
22549
|
+
id?: string;
|
|
22550
|
+
updated_at?: string;
|
|
22551
|
+
};
|
|
22552
|
+
Update: {
|
|
22553
|
+
created_at?: string;
|
|
22554
|
+
description?: string | null;
|
|
22555
|
+
holiday_date?: string;
|
|
22556
|
+
id?: string;
|
|
22557
|
+
updated_at?: string;
|
|
22558
|
+
};
|
|
22559
|
+
Relationships: [];
|
|
22560
|
+
};
|
|
22561
|
+
cao_settings: {
|
|
22562
|
+
Row: {
|
|
22563
|
+
auto_break_after_hours: number;
|
|
22564
|
+
auto_break_minutes: number;
|
|
22565
|
+
auto_break_unpaid: boolean;
|
|
22566
|
+
auto_stop_after_hours: number;
|
|
22567
|
+
callout_fee: number;
|
|
22568
|
+
created_at: string;
|
|
22569
|
+
daily_regular_hours: number;
|
|
22570
|
+
default_hourly_rate: number;
|
|
22571
|
+
id: string;
|
|
22572
|
+
materials_markup_percent: number;
|
|
22573
|
+
max_daily_hours: number;
|
|
22574
|
+
max_weekly_hours: number;
|
|
22575
|
+
meal_allowance_amount: number;
|
|
22576
|
+
overtime_pct_178: number;
|
|
22577
|
+
overtime_pct_189: number;
|
|
22578
|
+
overtime_pct_212: number;
|
|
22579
|
+
reminder_after_hours: number;
|
|
22580
|
+
standby_evening_amount: number;
|
|
22581
|
+
standby_weekend_amount: number;
|
|
22582
|
+
travel_cost_per_km: number | null;
|
|
22583
|
+
travel_cost_threshold_km: number | null;
|
|
22584
|
+
travel_counts_as_work: boolean;
|
|
22585
|
+
travel_hourly_rate: number;
|
|
22586
|
+
travel_rate_per_hour: number;
|
|
22587
|
+
travel_threshold_minutes: number;
|
|
22588
|
+
updated_at: string;
|
|
22589
|
+
weekend_always_212: boolean;
|
|
22590
|
+
window_end: string;
|
|
22591
|
+
window_start: string;
|
|
22592
|
+
};
|
|
22593
|
+
Insert: {
|
|
22594
|
+
auto_break_after_hours?: number;
|
|
22595
|
+
auto_break_minutes?: number;
|
|
22596
|
+
auto_break_unpaid?: boolean;
|
|
22597
|
+
auto_stop_after_hours?: number;
|
|
22598
|
+
callout_fee?: number;
|
|
22599
|
+
created_at?: string;
|
|
22600
|
+
daily_regular_hours?: number;
|
|
22601
|
+
default_hourly_rate?: number;
|
|
22602
|
+
id?: string;
|
|
22603
|
+
materials_markup_percent?: number;
|
|
22604
|
+
max_daily_hours?: number;
|
|
22605
|
+
max_weekly_hours?: number;
|
|
22606
|
+
meal_allowance_amount?: number;
|
|
22607
|
+
overtime_pct_178?: number;
|
|
22608
|
+
overtime_pct_189?: number;
|
|
22609
|
+
overtime_pct_212?: number;
|
|
22610
|
+
reminder_after_hours?: number;
|
|
22611
|
+
standby_evening_amount?: number;
|
|
22612
|
+
standby_weekend_amount?: number;
|
|
22613
|
+
travel_cost_per_km?: number | null;
|
|
22614
|
+
travel_cost_threshold_km?: number | null;
|
|
22615
|
+
travel_counts_as_work?: boolean;
|
|
22616
|
+
travel_hourly_rate?: number;
|
|
22617
|
+
travel_rate_per_hour?: number;
|
|
22618
|
+
travel_threshold_minutes?: number;
|
|
22619
|
+
updated_at?: string;
|
|
22620
|
+
weekend_always_212?: boolean;
|
|
22621
|
+
window_end?: string;
|
|
22622
|
+
window_start?: string;
|
|
22623
|
+
};
|
|
22624
|
+
Update: {
|
|
22625
|
+
auto_break_after_hours?: number;
|
|
22626
|
+
auto_break_minutes?: number;
|
|
22627
|
+
auto_break_unpaid?: boolean;
|
|
22628
|
+
auto_stop_after_hours?: number;
|
|
22629
|
+
callout_fee?: number;
|
|
22630
|
+
created_at?: string;
|
|
22631
|
+
daily_regular_hours?: number;
|
|
22632
|
+
default_hourly_rate?: number;
|
|
22633
|
+
id?: string;
|
|
22634
|
+
materials_markup_percent?: number;
|
|
22635
|
+
max_daily_hours?: number;
|
|
22636
|
+
max_weekly_hours?: number;
|
|
22637
|
+
meal_allowance_amount?: number;
|
|
22638
|
+
overtime_pct_178?: number;
|
|
22639
|
+
overtime_pct_189?: number;
|
|
22640
|
+
overtime_pct_212?: number;
|
|
22641
|
+
reminder_after_hours?: number;
|
|
22642
|
+
standby_evening_amount?: number;
|
|
22643
|
+
standby_weekend_amount?: number;
|
|
22644
|
+
travel_cost_per_km?: number | null;
|
|
22645
|
+
travel_cost_threshold_km?: number | null;
|
|
22646
|
+
travel_counts_as_work?: boolean;
|
|
22647
|
+
travel_hourly_rate?: number;
|
|
22648
|
+
travel_rate_per_hour?: number;
|
|
22649
|
+
travel_threshold_minutes?: number;
|
|
22650
|
+
updated_at?: string;
|
|
22651
|
+
weekend_always_212?: boolean;
|
|
22652
|
+
window_end?: string;
|
|
22653
|
+
window_start?: string;
|
|
22654
|
+
};
|
|
22655
|
+
Relationships: [];
|
|
22656
|
+
};
|
|
21840
22657
|
carrier_shipping_rates: {
|
|
21841
22658
|
Row: {
|
|
21842
22659
|
carrier_id: string;
|
|
@@ -28731,7 +29548,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
28731
29548
|
start_date: string;
|
|
28732
29549
|
start_time: string | null;
|
|
28733
29550
|
status: string;
|
|
28734
|
-
tenant_id: string;
|
|
28735
29551
|
updated_at: string;
|
|
28736
29552
|
user_id: string;
|
|
28737
29553
|
};
|
|
@@ -28749,7 +29565,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
28749
29565
|
start_date: string;
|
|
28750
29566
|
start_time?: string | null;
|
|
28751
29567
|
status?: string;
|
|
28752
|
-
tenant_id?: string;
|
|
28753
29568
|
updated_at?: string;
|
|
28754
29569
|
user_id: string;
|
|
28755
29570
|
};
|
|
@@ -28767,7 +29582,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
28767
29582
|
start_date?: string;
|
|
28768
29583
|
start_time?: string | null;
|
|
28769
29584
|
status?: string;
|
|
28770
|
-
tenant_id?: string;
|
|
28771
29585
|
updated_at?: string;
|
|
28772
29586
|
user_id?: string;
|
|
28773
29587
|
};
|
|
@@ -28775,13 +29589,13 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
28775
29589
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
28776
29590
|
columns: ["monteur_id"];
|
|
28777
29591
|
isOneToOne: false;
|
|
28778
|
-
referencedRelation: "
|
|
29592
|
+
referencedRelation: "profiles";
|
|
28779
29593
|
referencedColumns: ["id"];
|
|
28780
29594
|
}, {
|
|
28781
29595
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
28782
29596
|
columns: ["user_id"];
|
|
28783
29597
|
isOneToOne: false;
|
|
28784
|
-
referencedRelation: "
|
|
29598
|
+
referencedRelation: "profiles";
|
|
28785
29599
|
referencedColumns: ["id"];
|
|
28786
29600
|
}];
|
|
28787
29601
|
};
|
|
@@ -29649,6 +30463,45 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
29649
30463
|
};
|
|
29650
30464
|
Relationships: [];
|
|
29651
30465
|
};
|
|
30466
|
+
logistics_plan_queue: {
|
|
30467
|
+
Row: {
|
|
30468
|
+
attempts: number;
|
|
30469
|
+
claimed_at: string | null;
|
|
30470
|
+
enqueued_at: string;
|
|
30471
|
+
error: string | null;
|
|
30472
|
+
id: string;
|
|
30473
|
+
next_attempt_at: string;
|
|
30474
|
+
order_id: string;
|
|
30475
|
+
reason: string;
|
|
30476
|
+
status: string;
|
|
30477
|
+
updated_at: string;
|
|
30478
|
+
};
|
|
30479
|
+
Insert: {
|
|
30480
|
+
attempts?: number;
|
|
30481
|
+
claimed_at?: string | null;
|
|
30482
|
+
enqueued_at?: string;
|
|
30483
|
+
error?: string | null;
|
|
30484
|
+
id?: string;
|
|
30485
|
+
next_attempt_at?: string;
|
|
30486
|
+
order_id: string;
|
|
30487
|
+
reason?: string;
|
|
30488
|
+
status?: string;
|
|
30489
|
+
updated_at?: string;
|
|
30490
|
+
};
|
|
30491
|
+
Update: {
|
|
30492
|
+
attempts?: number;
|
|
30493
|
+
claimed_at?: string | null;
|
|
30494
|
+
enqueued_at?: string;
|
|
30495
|
+
error?: string | null;
|
|
30496
|
+
id?: string;
|
|
30497
|
+
next_attempt_at?: string;
|
|
30498
|
+
order_id?: string;
|
|
30499
|
+
reason?: string;
|
|
30500
|
+
status?: string;
|
|
30501
|
+
updated_at?: string;
|
|
30502
|
+
};
|
|
30503
|
+
Relationships: [];
|
|
30504
|
+
};
|
|
29652
30505
|
logistics_plan_runs: {
|
|
29653
30506
|
Row: {
|
|
29654
30507
|
created_at: string;
|
|
@@ -29724,6 +30577,24 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
29724
30577
|
referencedColumns: ["id"];
|
|
29725
30578
|
}];
|
|
29726
30579
|
};
|
|
30580
|
+
logistics_plan_settings: {
|
|
30581
|
+
Row: {
|
|
30582
|
+
key: string;
|
|
30583
|
+
updated_at: string;
|
|
30584
|
+
value: string;
|
|
30585
|
+
};
|
|
30586
|
+
Insert: {
|
|
30587
|
+
key: string;
|
|
30588
|
+
updated_at?: string;
|
|
30589
|
+
value: string;
|
|
30590
|
+
};
|
|
30591
|
+
Update: {
|
|
30592
|
+
key?: string;
|
|
30593
|
+
updated_at?: string;
|
|
30594
|
+
value?: string;
|
|
30595
|
+
};
|
|
30596
|
+
Relationships: [];
|
|
30597
|
+
};
|
|
29727
30598
|
logistics_rebuffer_state: {
|
|
29728
30599
|
Row: {
|
|
29729
30600
|
created_at: string;
|
|
@@ -30879,6 +31750,90 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
30879
31750
|
};
|
|
30880
31751
|
Relationships: [];
|
|
30881
31752
|
};
|
|
31753
|
+
material_usage: {
|
|
31754
|
+
Row: {
|
|
31755
|
+
created_at: string;
|
|
31756
|
+
id: string;
|
|
31757
|
+
material_name: string;
|
|
31758
|
+
monteur_id: string | null;
|
|
31759
|
+
price_at_time: number;
|
|
31760
|
+
quantity_used: number;
|
|
31761
|
+
updated_at: string;
|
|
31762
|
+
van_inventory_id: string | null;
|
|
31763
|
+
work_order_id: string;
|
|
31764
|
+
};
|
|
31765
|
+
Insert: {
|
|
31766
|
+
created_at?: string;
|
|
31767
|
+
id?: string;
|
|
31768
|
+
material_name: string;
|
|
31769
|
+
monteur_id?: string | null;
|
|
31770
|
+
price_at_time?: number;
|
|
31771
|
+
quantity_used?: number;
|
|
31772
|
+
updated_at?: string;
|
|
31773
|
+
van_inventory_id?: string | null;
|
|
31774
|
+
work_order_id: string;
|
|
31775
|
+
};
|
|
31776
|
+
Update: {
|
|
31777
|
+
created_at?: string;
|
|
31778
|
+
id?: string;
|
|
31779
|
+
material_name?: string;
|
|
31780
|
+
monteur_id?: string | null;
|
|
31781
|
+
price_at_time?: number;
|
|
31782
|
+
quantity_used?: number;
|
|
31783
|
+
updated_at?: string;
|
|
31784
|
+
van_inventory_id?: string | null;
|
|
31785
|
+
work_order_id?: string;
|
|
31786
|
+
};
|
|
31787
|
+
Relationships: [{
|
|
31788
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
31789
|
+
columns: ["monteur_id"];
|
|
31790
|
+
isOneToOne: false;
|
|
31791
|
+
referencedRelation: "profiles";
|
|
31792
|
+
referencedColumns: ["id"];
|
|
31793
|
+
}, {
|
|
31794
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
31795
|
+
columns: ["van_inventory_id"];
|
|
31796
|
+
isOneToOne: false;
|
|
31797
|
+
referencedRelation: "van_inventories";
|
|
31798
|
+
referencedColumns: ["id"];
|
|
31799
|
+
}, {
|
|
31800
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
31801
|
+
columns: ["work_order_id"];
|
|
31802
|
+
isOneToOne: false;
|
|
31803
|
+
referencedRelation: "work_orders";
|
|
31804
|
+
referencedColumns: ["id"];
|
|
31805
|
+
}];
|
|
31806
|
+
};
|
|
31807
|
+
module_features: {
|
|
31808
|
+
Row: {
|
|
31809
|
+
created_at: string;
|
|
31810
|
+
feature_id: string;
|
|
31811
|
+
id: string;
|
|
31812
|
+
is_active: boolean;
|
|
31813
|
+
last_seen_at: string;
|
|
31814
|
+
module_id: string;
|
|
31815
|
+
name: string;
|
|
31816
|
+
};
|
|
31817
|
+
Insert: {
|
|
31818
|
+
created_at?: string;
|
|
31819
|
+
feature_id: string;
|
|
31820
|
+
id?: string;
|
|
31821
|
+
is_active?: boolean;
|
|
31822
|
+
last_seen_at?: string;
|
|
31823
|
+
module_id: string;
|
|
31824
|
+
name: string;
|
|
31825
|
+
};
|
|
31826
|
+
Update: {
|
|
31827
|
+
created_at?: string;
|
|
31828
|
+
feature_id?: string;
|
|
31829
|
+
id?: string;
|
|
31830
|
+
is_active?: boolean;
|
|
31831
|
+
last_seen_at?: string;
|
|
31832
|
+
module_id?: string;
|
|
31833
|
+
name?: string;
|
|
31834
|
+
};
|
|
31835
|
+
Relationships: [];
|
|
31836
|
+
};
|
|
30882
31837
|
module_permissions: {
|
|
30883
31838
|
Row: {
|
|
30884
31839
|
created_at: string;
|
|
@@ -30909,6 +31864,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
30909
31864
|
module_registry: {
|
|
30910
31865
|
Row: {
|
|
30911
31866
|
created_at: string;
|
|
31867
|
+
enforce: boolean;
|
|
30912
31868
|
is_active: boolean;
|
|
30913
31869
|
last_seen_at: string;
|
|
30914
31870
|
module_id: string;
|
|
@@ -30918,6 +31874,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
30918
31874
|
};
|
|
30919
31875
|
Insert: {
|
|
30920
31876
|
created_at?: string;
|
|
31877
|
+
enforce?: boolean;
|
|
30921
31878
|
is_active?: boolean;
|
|
30922
31879
|
last_seen_at?: string;
|
|
30923
31880
|
module_id: string;
|
|
@@ -30927,6 +31884,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
30927
31884
|
};
|
|
30928
31885
|
Update: {
|
|
30929
31886
|
created_at?: string;
|
|
31887
|
+
enforce?: boolean;
|
|
30930
31888
|
is_active?: boolean;
|
|
30931
31889
|
last_seen_at?: string;
|
|
30932
31890
|
module_id?: string;
|
|
@@ -30987,63 +31945,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
30987
31945
|
};
|
|
30988
31946
|
Relationships: [];
|
|
30989
31947
|
};
|
|
30990
|
-
monteurs: {
|
|
30991
|
-
Row: {
|
|
30992
|
-
avatar_url: string | null;
|
|
30993
|
-
color: string | null;
|
|
30994
|
-
created_at: string;
|
|
30995
|
-
email: string | null;
|
|
30996
|
-
id: string;
|
|
30997
|
-
is_active: boolean;
|
|
30998
|
-
leave_balance_hours: number;
|
|
30999
|
-
name: string;
|
|
31000
|
-
persnr: number | null;
|
|
31001
|
-
phone: string | null;
|
|
31002
|
-
role: string;
|
|
31003
|
-
tenant_id: string;
|
|
31004
|
-
updated_at: string;
|
|
31005
|
-
user_id: string | null;
|
|
31006
|
-
};
|
|
31007
|
-
Insert: {
|
|
31008
|
-
avatar_url?: string | null;
|
|
31009
|
-
color?: string | null;
|
|
31010
|
-
created_at?: string;
|
|
31011
|
-
email?: string | null;
|
|
31012
|
-
id?: string;
|
|
31013
|
-
is_active?: boolean;
|
|
31014
|
-
leave_balance_hours?: number;
|
|
31015
|
-
name: string;
|
|
31016
|
-
persnr?: number | null;
|
|
31017
|
-
phone?: string | null;
|
|
31018
|
-
role?: string;
|
|
31019
|
-
tenant_id: string;
|
|
31020
|
-
updated_at?: string;
|
|
31021
|
-
user_id?: string | null;
|
|
31022
|
-
};
|
|
31023
|
-
Update: {
|
|
31024
|
-
avatar_url?: string | null;
|
|
31025
|
-
color?: string | null;
|
|
31026
|
-
created_at?: string;
|
|
31027
|
-
email?: string | null;
|
|
31028
|
-
id?: string;
|
|
31029
|
-
is_active?: boolean;
|
|
31030
|
-
leave_balance_hours?: number;
|
|
31031
|
-
name?: string;
|
|
31032
|
-
persnr?: number | null;
|
|
31033
|
-
phone?: string | null;
|
|
31034
|
-
role?: string;
|
|
31035
|
-
tenant_id?: string;
|
|
31036
|
-
updated_at?: string;
|
|
31037
|
-
user_id?: string | null;
|
|
31038
|
-
};
|
|
31039
|
-
Relationships: [{
|
|
31040
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
31041
|
-
columns: ["tenant_id"];
|
|
31042
|
-
isOneToOne: false;
|
|
31043
|
-
referencedRelation: "tenants";
|
|
31044
|
-
referencedColumns: ["id"];
|
|
31045
|
-
}];
|
|
31046
|
-
};
|
|
31047
31948
|
nmbrs_component_mapping: {
|
|
31048
31949
|
Row: {
|
|
31049
31950
|
created_at: string;
|
|
@@ -31114,13 +32015,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
31114
32015
|
nmbrs_employee_number?: string;
|
|
31115
32016
|
updated_at?: string;
|
|
31116
32017
|
};
|
|
31117
|
-
Relationships: [
|
|
31118
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
31119
|
-
columns: ["monteur_id"];
|
|
31120
|
-
isOneToOne: true;
|
|
31121
|
-
referencedRelation: "monteurs";
|
|
31122
|
-
referencedColumns: ["id"];
|
|
31123
|
-
}];
|
|
32018
|
+
Relationships: [];
|
|
31124
32019
|
};
|
|
31125
32020
|
nmbrs_export_lines: {
|
|
31126
32021
|
Row: {
|
|
@@ -31169,12 +32064,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
31169
32064
|
wage_code?: string;
|
|
31170
32065
|
};
|
|
31171
32066
|
Relationships: [{
|
|
31172
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
31173
|
-
columns: ["monteur_id"];
|
|
31174
|
-
isOneToOne: false;
|
|
31175
|
-
referencedRelation: "monteurs";
|
|
31176
|
-
referencedColumns: ["id"];
|
|
31177
|
-
}, {
|
|
31178
32067
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
31179
32068
|
columns: ["run_id"];
|
|
31180
32069
|
isOneToOne: false;
|
|
@@ -32002,6 +32891,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
32002
32891
|
error_message: string | null;
|
|
32003
32892
|
id: string;
|
|
32004
32893
|
invoice_number: string | null;
|
|
32894
|
+
next_attempt_at: string;
|
|
32005
32895
|
order_id: string;
|
|
32006
32896
|
processed_at: string | null;
|
|
32007
32897
|
status: string;
|
|
@@ -32013,6 +32903,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
32013
32903
|
error_message?: string | null;
|
|
32014
32904
|
id?: string;
|
|
32015
32905
|
invoice_number?: string | null;
|
|
32906
|
+
next_attempt_at?: string;
|
|
32016
32907
|
order_id: string;
|
|
32017
32908
|
processed_at?: string | null;
|
|
32018
32909
|
status?: string;
|
|
@@ -32024,6 +32915,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
32024
32915
|
error_message?: string | null;
|
|
32025
32916
|
id?: string;
|
|
32026
32917
|
invoice_number?: string | null;
|
|
32918
|
+
next_attempt_at?: string;
|
|
32027
32919
|
order_id?: string;
|
|
32028
32920
|
processed_at?: string | null;
|
|
32029
32921
|
status?: string;
|
|
@@ -33562,6 +34454,9 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
33562
34454
|
created_at: string;
|
|
33563
34455
|
id: string;
|
|
33564
34456
|
laatst_gezien: string;
|
|
34457
|
+
laatste_fout: string | null;
|
|
34458
|
+
laatste_request_id: number | null;
|
|
34459
|
+
mislukte_posts: number;
|
|
33565
34460
|
tick_sleutel: string;
|
|
33566
34461
|
updated_at: string;
|
|
33567
34462
|
};
|
|
@@ -33571,6 +34466,9 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
33571
34466
|
created_at?: string;
|
|
33572
34467
|
id?: string;
|
|
33573
34468
|
laatst_gezien?: string;
|
|
34469
|
+
laatste_fout?: string | null;
|
|
34470
|
+
laatste_request_id?: number | null;
|
|
34471
|
+
mislukte_posts?: number;
|
|
33574
34472
|
tick_sleutel?: string;
|
|
33575
34473
|
updated_at?: string;
|
|
33576
34474
|
};
|
|
@@ -33580,6 +34478,9 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
33580
34478
|
created_at?: string;
|
|
33581
34479
|
id?: string;
|
|
33582
34480
|
laatst_gezien?: string;
|
|
34481
|
+
laatste_fout?: string | null;
|
|
34482
|
+
laatste_request_id?: number | null;
|
|
34483
|
+
mislukte_posts?: number;
|
|
33583
34484
|
tick_sleutel?: string;
|
|
33584
34485
|
updated_at?: string;
|
|
33585
34486
|
};
|
|
@@ -35088,6 +35989,96 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
35088
35989
|
referencedColumns: ["id"];
|
|
35089
35990
|
}];
|
|
35090
35991
|
};
|
|
35992
|
+
role_assignments: {
|
|
35993
|
+
Row: {
|
|
35994
|
+
created_at: string;
|
|
35995
|
+
id: string;
|
|
35996
|
+
role_id: string;
|
|
35997
|
+
user_id: string;
|
|
35998
|
+
};
|
|
35999
|
+
Insert: {
|
|
36000
|
+
created_at?: string;
|
|
36001
|
+
id?: string;
|
|
36002
|
+
role_id: string;
|
|
36003
|
+
user_id: string;
|
|
36004
|
+
};
|
|
36005
|
+
Update: {
|
|
36006
|
+
created_at?: string;
|
|
36007
|
+
id?: string;
|
|
36008
|
+
role_id?: string;
|
|
36009
|
+
user_id?: string;
|
|
36010
|
+
};
|
|
36011
|
+
Relationships: [{
|
|
36012
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
36013
|
+
columns: ["role_id"];
|
|
36014
|
+
isOneToOne: false;
|
|
36015
|
+
referencedRelation: "roles";
|
|
36016
|
+
referencedColumns: ["id"];
|
|
36017
|
+
}];
|
|
36018
|
+
};
|
|
36019
|
+
role_permissions: {
|
|
36020
|
+
Row: {
|
|
36021
|
+
can_edit: boolean;
|
|
36022
|
+
can_view: boolean;
|
|
36023
|
+
feature_id: string;
|
|
36024
|
+
id: string;
|
|
36025
|
+
module_id: string;
|
|
36026
|
+
role_id: string;
|
|
36027
|
+
updated_at: string;
|
|
36028
|
+
};
|
|
36029
|
+
Insert: {
|
|
36030
|
+
can_edit?: boolean;
|
|
36031
|
+
can_view?: boolean;
|
|
36032
|
+
feature_id?: string;
|
|
36033
|
+
id?: string;
|
|
36034
|
+
module_id: string;
|
|
36035
|
+
role_id: string;
|
|
36036
|
+
updated_at?: string;
|
|
36037
|
+
};
|
|
36038
|
+
Update: {
|
|
36039
|
+
can_edit?: boolean;
|
|
36040
|
+
can_view?: boolean;
|
|
36041
|
+
feature_id?: string;
|
|
36042
|
+
id?: string;
|
|
36043
|
+
module_id?: string;
|
|
36044
|
+
role_id?: string;
|
|
36045
|
+
updated_at?: string;
|
|
36046
|
+
};
|
|
36047
|
+
Relationships: [{
|
|
36048
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
36049
|
+
columns: ["role_id"];
|
|
36050
|
+
isOneToOne: false;
|
|
36051
|
+
referencedRelation: "roles";
|
|
36052
|
+
referencedColumns: ["id"];
|
|
36053
|
+
}];
|
|
36054
|
+
};
|
|
36055
|
+
roles: {
|
|
36056
|
+
Row: {
|
|
36057
|
+
created_at: string;
|
|
36058
|
+
id: string;
|
|
36059
|
+
is_protected: boolean;
|
|
36060
|
+
key: string;
|
|
36061
|
+
name: string;
|
|
36062
|
+
updated_at: string;
|
|
36063
|
+
};
|
|
36064
|
+
Insert: {
|
|
36065
|
+
created_at?: string;
|
|
36066
|
+
id?: string;
|
|
36067
|
+
is_protected?: boolean;
|
|
36068
|
+
key: string;
|
|
36069
|
+
name: string;
|
|
36070
|
+
updated_at?: string;
|
|
36071
|
+
};
|
|
36072
|
+
Update: {
|
|
36073
|
+
created_at?: string;
|
|
36074
|
+
id?: string;
|
|
36075
|
+
is_protected?: boolean;
|
|
36076
|
+
key?: string;
|
|
36077
|
+
name?: string;
|
|
36078
|
+
updated_at?: string;
|
|
36079
|
+
};
|
|
36080
|
+
Relationships: [];
|
|
36081
|
+
};
|
|
35091
36082
|
rooms: {
|
|
35092
36083
|
Row: {
|
|
35093
36084
|
capacity: number;
|
|
@@ -35757,6 +36748,54 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
35757
36748
|
};
|
|
35758
36749
|
Relationships: [];
|
|
35759
36750
|
};
|
|
36751
|
+
time_compensation_entries: {
|
|
36752
|
+
Row: {
|
|
36753
|
+
created_at: string;
|
|
36754
|
+
employee_id: string;
|
|
36755
|
+
entry_date: string;
|
|
36756
|
+
id: string;
|
|
36757
|
+
km: number;
|
|
36758
|
+
meal_allowance: number;
|
|
36759
|
+
notes: string | null;
|
|
36760
|
+
standby_evening: number;
|
|
36761
|
+
standby_weekend: number;
|
|
36762
|
+
tvt_change: number;
|
|
36763
|
+
updated_at: string;
|
|
36764
|
+
};
|
|
36765
|
+
Insert: {
|
|
36766
|
+
created_at?: string;
|
|
36767
|
+
employee_id: string;
|
|
36768
|
+
entry_date: string;
|
|
36769
|
+
id?: string;
|
|
36770
|
+
km?: number;
|
|
36771
|
+
meal_allowance?: number;
|
|
36772
|
+
notes?: string | null;
|
|
36773
|
+
standby_evening?: number;
|
|
36774
|
+
standby_weekend?: number;
|
|
36775
|
+
tvt_change?: number;
|
|
36776
|
+
updated_at?: string;
|
|
36777
|
+
};
|
|
36778
|
+
Update: {
|
|
36779
|
+
created_at?: string;
|
|
36780
|
+
employee_id?: string;
|
|
36781
|
+
entry_date?: string;
|
|
36782
|
+
id?: string;
|
|
36783
|
+
km?: number;
|
|
36784
|
+
meal_allowance?: number;
|
|
36785
|
+
notes?: string | null;
|
|
36786
|
+
standby_evening?: number;
|
|
36787
|
+
standby_weekend?: number;
|
|
36788
|
+
tvt_change?: number;
|
|
36789
|
+
updated_at?: string;
|
|
36790
|
+
};
|
|
36791
|
+
Relationships: [{
|
|
36792
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
36793
|
+
columns: ["employee_id"];
|
|
36794
|
+
isOneToOne: false;
|
|
36795
|
+
referencedRelation: "profiles";
|
|
36796
|
+
referencedColumns: ["id"];
|
|
36797
|
+
}];
|
|
36798
|
+
};
|
|
35760
36799
|
time_entries: {
|
|
35761
36800
|
Row: {
|
|
35762
36801
|
created_at: string;
|
|
@@ -35791,65 +36830,170 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
35791
36830
|
undertime?: number;
|
|
35792
36831
|
updated_at?: string;
|
|
35793
36832
|
};
|
|
36833
|
+
Relationships: [];
|
|
36834
|
+
};
|
|
36835
|
+
time_log_week_approvals: {
|
|
36836
|
+
Row: {
|
|
36837
|
+
approved_at: string | null;
|
|
36838
|
+
approved_by: string | null;
|
|
36839
|
+
created_at: string;
|
|
36840
|
+
employee_id: string;
|
|
36841
|
+
id: string;
|
|
36842
|
+
locked: boolean;
|
|
36843
|
+
notes: string | null;
|
|
36844
|
+
status: string;
|
|
36845
|
+
submitted_at: string | null;
|
|
36846
|
+
updated_at: string;
|
|
36847
|
+
week_start: string;
|
|
36848
|
+
};
|
|
36849
|
+
Insert: {
|
|
36850
|
+
approved_at?: string | null;
|
|
36851
|
+
approved_by?: string | null;
|
|
36852
|
+
created_at?: string;
|
|
36853
|
+
employee_id: string;
|
|
36854
|
+
id?: string;
|
|
36855
|
+
locked?: boolean;
|
|
36856
|
+
notes?: string | null;
|
|
36857
|
+
status?: string;
|
|
36858
|
+
submitted_at?: string | null;
|
|
36859
|
+
updated_at?: string;
|
|
36860
|
+
week_start: string;
|
|
36861
|
+
};
|
|
36862
|
+
Update: {
|
|
36863
|
+
approved_at?: string | null;
|
|
36864
|
+
approved_by?: string | null;
|
|
36865
|
+
created_at?: string;
|
|
36866
|
+
employee_id?: string;
|
|
36867
|
+
id?: string;
|
|
36868
|
+
locked?: boolean;
|
|
36869
|
+
notes?: string | null;
|
|
36870
|
+
status?: string;
|
|
36871
|
+
submitted_at?: string | null;
|
|
36872
|
+
updated_at?: string;
|
|
36873
|
+
week_start?: string;
|
|
36874
|
+
};
|
|
35794
36875
|
Relationships: [{
|
|
35795
|
-
foreignKeyName: "
|
|
36876
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
35796
36877
|
columns: ["employee_id"];
|
|
35797
36878
|
isOneToOne: false;
|
|
35798
|
-
referencedRelation: "
|
|
36879
|
+
referencedRelation: "profiles";
|
|
35799
36880
|
referencedColumns: ["id"];
|
|
35800
36881
|
}];
|
|
35801
36882
|
};
|
|
35802
36883
|
time_logs: {
|
|
35803
36884
|
Row: {
|
|
36885
|
+
auto_stop_reason: string | null;
|
|
36886
|
+
auto_stopped: boolean;
|
|
35804
36887
|
created_at: string;
|
|
36888
|
+
current_latitude: number | null;
|
|
36889
|
+
current_longitude: number | null;
|
|
36890
|
+
current_position_updated_at: string | null;
|
|
35805
36891
|
employee_id: string;
|
|
36892
|
+
end_latitude: number | null;
|
|
36893
|
+
end_longitude: number | null;
|
|
35806
36894
|
end_time: string | null;
|
|
36895
|
+
eta_distance_km: number | null;
|
|
36896
|
+
eta_minutes: number | null;
|
|
36897
|
+
eta_updated_at: string | null;
|
|
36898
|
+
hour_category: string | null;
|
|
35807
36899
|
id: string;
|
|
36900
|
+
last_reminder_at: string | null;
|
|
35808
36901
|
notes: string | null;
|
|
35809
36902
|
overtime_hours: number;
|
|
35810
36903
|
overtime_type: string | null;
|
|
35811
36904
|
regular_hours: number;
|
|
36905
|
+
reminder_count: number;
|
|
36906
|
+
requires_review: boolean;
|
|
36907
|
+
start_latitude: number | null;
|
|
36908
|
+
start_longitude: number | null;
|
|
35812
36909
|
start_time: string;
|
|
35813
36910
|
travel_cost: number | null;
|
|
35814
36911
|
travel_distance_km: number | null;
|
|
36912
|
+
travel_duration_min: number | null;
|
|
36913
|
+
travel_time_minutes: number | null;
|
|
35815
36914
|
type: string;
|
|
35816
36915
|
updated_at: string;
|
|
36916
|
+
work_order_id: string | null;
|
|
35817
36917
|
};
|
|
35818
36918
|
Insert: {
|
|
36919
|
+
auto_stop_reason?: string | null;
|
|
36920
|
+
auto_stopped?: boolean;
|
|
35819
36921
|
created_at?: string;
|
|
36922
|
+
current_latitude?: number | null;
|
|
36923
|
+
current_longitude?: number | null;
|
|
36924
|
+
current_position_updated_at?: string | null;
|
|
35820
36925
|
employee_id: string;
|
|
36926
|
+
end_latitude?: number | null;
|
|
36927
|
+
end_longitude?: number | null;
|
|
35821
36928
|
end_time?: string | null;
|
|
36929
|
+
eta_distance_km?: number | null;
|
|
36930
|
+
eta_minutes?: number | null;
|
|
36931
|
+
eta_updated_at?: string | null;
|
|
36932
|
+
hour_category?: string | null;
|
|
35822
36933
|
id?: string;
|
|
36934
|
+
last_reminder_at?: string | null;
|
|
35823
36935
|
notes?: string | null;
|
|
35824
36936
|
overtime_hours?: number;
|
|
35825
36937
|
overtime_type?: string | null;
|
|
35826
36938
|
regular_hours?: number;
|
|
36939
|
+
reminder_count?: number;
|
|
36940
|
+
requires_review?: boolean;
|
|
36941
|
+
start_latitude?: number | null;
|
|
36942
|
+
start_longitude?: number | null;
|
|
35827
36943
|
start_time?: string;
|
|
35828
36944
|
travel_cost?: number | null;
|
|
35829
36945
|
travel_distance_km?: number | null;
|
|
36946
|
+
travel_duration_min?: number | null;
|
|
36947
|
+
travel_time_minutes?: number | null;
|
|
35830
36948
|
type: string;
|
|
35831
36949
|
updated_at?: string;
|
|
36950
|
+
work_order_id?: string | null;
|
|
35832
36951
|
};
|
|
35833
36952
|
Update: {
|
|
36953
|
+
auto_stop_reason?: string | null;
|
|
36954
|
+
auto_stopped?: boolean;
|
|
35834
36955
|
created_at?: string;
|
|
36956
|
+
current_latitude?: number | null;
|
|
36957
|
+
current_longitude?: number | null;
|
|
36958
|
+
current_position_updated_at?: string | null;
|
|
35835
36959
|
employee_id?: string;
|
|
36960
|
+
end_latitude?: number | null;
|
|
36961
|
+
end_longitude?: number | null;
|
|
35836
36962
|
end_time?: string | null;
|
|
36963
|
+
eta_distance_km?: number | null;
|
|
36964
|
+
eta_minutes?: number | null;
|
|
36965
|
+
eta_updated_at?: string | null;
|
|
36966
|
+
hour_category?: string | null;
|
|
35837
36967
|
id?: string;
|
|
36968
|
+
last_reminder_at?: string | null;
|
|
35838
36969
|
notes?: string | null;
|
|
35839
36970
|
overtime_hours?: number;
|
|
35840
36971
|
overtime_type?: string | null;
|
|
35841
36972
|
regular_hours?: number;
|
|
36973
|
+
reminder_count?: number;
|
|
36974
|
+
requires_review?: boolean;
|
|
36975
|
+
start_latitude?: number | null;
|
|
36976
|
+
start_longitude?: number | null;
|
|
35842
36977
|
start_time?: string;
|
|
35843
36978
|
travel_cost?: number | null;
|
|
35844
36979
|
travel_distance_km?: number | null;
|
|
36980
|
+
travel_duration_min?: number | null;
|
|
36981
|
+
travel_time_minutes?: number | null;
|
|
35845
36982
|
type?: string;
|
|
35846
36983
|
updated_at?: string;
|
|
36984
|
+
work_order_id?: string | null;
|
|
35847
36985
|
};
|
|
35848
36986
|
Relationships: [{
|
|
35849
36987
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
35850
36988
|
columns: ["employee_id"];
|
|
35851
36989
|
isOneToOne: false;
|
|
35852
|
-
referencedRelation: "
|
|
36990
|
+
referencedRelation: "profiles";
|
|
36991
|
+
referencedColumns: ["id"];
|
|
36992
|
+
}, {
|
|
36993
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
36994
|
+
columns: ["work_order_id"];
|
|
36995
|
+
isOneToOne: false;
|
|
36996
|
+
referencedRelation: "work_orders";
|
|
35853
36997
|
referencedColumns: ["id"];
|
|
35854
36998
|
}];
|
|
35855
36999
|
};
|
|
@@ -35888,7 +37032,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
35888
37032
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
35889
37033
|
columns: ["employee_id"];
|
|
35890
37034
|
isOneToOne: false;
|
|
35891
|
-
referencedRelation: "
|
|
37035
|
+
referencedRelation: "profiles";
|
|
35892
37036
|
referencedColumns: ["id"];
|
|
35893
37037
|
}];
|
|
35894
37038
|
};
|
|
@@ -36198,6 +37342,39 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
36198
37342
|
};
|
|
36199
37343
|
Relationships: [];
|
|
36200
37344
|
};
|
|
37345
|
+
twinfield_cron_locks: {
|
|
37346
|
+
Row: {
|
|
37347
|
+
created_at: string;
|
|
37348
|
+
heartbeat_at: string;
|
|
37349
|
+
job_name: string;
|
|
37350
|
+
last_error: string | null;
|
|
37351
|
+
last_finished_at: string | null;
|
|
37352
|
+
locked_at: string;
|
|
37353
|
+
run_id: string;
|
|
37354
|
+
updated_at: string;
|
|
37355
|
+
};
|
|
37356
|
+
Insert: {
|
|
37357
|
+
created_at?: string;
|
|
37358
|
+
heartbeat_at?: string;
|
|
37359
|
+
job_name: string;
|
|
37360
|
+
last_error?: string | null;
|
|
37361
|
+
last_finished_at?: string | null;
|
|
37362
|
+
locked_at?: string;
|
|
37363
|
+
run_id?: string;
|
|
37364
|
+
updated_at?: string;
|
|
37365
|
+
};
|
|
37366
|
+
Update: {
|
|
37367
|
+
created_at?: string;
|
|
37368
|
+
heartbeat_at?: string;
|
|
37369
|
+
job_name?: string;
|
|
37370
|
+
last_error?: string | null;
|
|
37371
|
+
last_finished_at?: string | null;
|
|
37372
|
+
locked_at?: string;
|
|
37373
|
+
run_id?: string;
|
|
37374
|
+
updated_at?: string;
|
|
37375
|
+
};
|
|
37376
|
+
Relationships: [];
|
|
37377
|
+
};
|
|
36201
37378
|
twinfield_customers: {
|
|
36202
37379
|
Row: {
|
|
36203
37380
|
address: string | null;
|
|
@@ -36798,6 +37975,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
36798
37975
|
twinfield_push_queue: {
|
|
36799
37976
|
Row: {
|
|
36800
37977
|
action: string;
|
|
37978
|
+
attempt_started_at: string | null;
|
|
36801
37979
|
attempts: number;
|
|
36802
37980
|
connection_id: string | null;
|
|
36803
37981
|
created_at: string;
|
|
@@ -36814,6 +37992,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
36814
37992
|
};
|
|
36815
37993
|
Insert: {
|
|
36816
37994
|
action?: string;
|
|
37995
|
+
attempt_started_at?: string | null;
|
|
36817
37996
|
attempts?: number;
|
|
36818
37997
|
connection_id?: string | null;
|
|
36819
37998
|
created_at?: string;
|
|
@@ -36830,6 +38009,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
36830
38009
|
};
|
|
36831
38010
|
Update: {
|
|
36832
38011
|
action?: string;
|
|
38012
|
+
attempt_started_at?: string | null;
|
|
36833
38013
|
attempts?: number;
|
|
36834
38014
|
connection_id?: string | null;
|
|
36835
38015
|
created_at?: string;
|
|
@@ -37027,13 +38207,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
37027
38207
|
workday_end?: string | null;
|
|
37028
38208
|
workday_start?: string | null;
|
|
37029
38209
|
};
|
|
37030
|
-
Relationships: [
|
|
37031
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
37032
|
-
columns: ["monteur_id"];
|
|
37033
|
-
isOneToOne: true;
|
|
37034
|
-
referencedRelation: "monteurs";
|
|
37035
|
-
referencedColumns: ["id"];
|
|
37036
|
-
}];
|
|
38210
|
+
Relationships: [];
|
|
37037
38211
|
};
|
|
37038
38212
|
uren_entries: {
|
|
37039
38213
|
Row: {
|
|
@@ -37079,12 +38253,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
37079
38253
|
werkbon_id?: string | null;
|
|
37080
38254
|
};
|
|
37081
38255
|
Relationships: [{
|
|
37082
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
37083
|
-
columns: ["monteur_id"];
|
|
37084
|
-
isOneToOne: false;
|
|
37085
|
-
referencedRelation: "monteurs";
|
|
37086
|
-
referencedColumns: ["id"];
|
|
37087
|
-
}, {
|
|
37088
38256
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
37089
38257
|
columns: ["werkbon_id"];
|
|
37090
38258
|
isOneToOne: false;
|
|
@@ -37552,17 +38720,12 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
37552
38720
|
submitted_at?: string | null;
|
|
37553
38721
|
updated_at?: string;
|
|
37554
38722
|
};
|
|
37555
|
-
Relationships: [
|
|
37556
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
37557
|
-
columns: ["monteur_id"];
|
|
37558
|
-
isOneToOne: false;
|
|
37559
|
-
referencedRelation: "monteurs";
|
|
37560
|
-
referencedColumns: ["id"];
|
|
37561
|
-
}];
|
|
38723
|
+
Relationships: [];
|
|
37562
38724
|
};
|
|
37563
38725
|
user_module_permissions: {
|
|
37564
38726
|
Row: {
|
|
37565
38727
|
created_at: string;
|
|
38728
|
+
feature_id: string;
|
|
37566
38729
|
id: string;
|
|
37567
38730
|
module_id: string;
|
|
37568
38731
|
permission: string;
|
|
@@ -37571,6 +38734,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
37571
38734
|
};
|
|
37572
38735
|
Insert: {
|
|
37573
38736
|
created_at?: string;
|
|
38737
|
+
feature_id?: string;
|
|
37574
38738
|
id?: string;
|
|
37575
38739
|
module_id: string;
|
|
37576
38740
|
permission: string;
|
|
@@ -37579,6 +38743,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
37579
38743
|
};
|
|
37580
38744
|
Update: {
|
|
37581
38745
|
created_at?: string;
|
|
38746
|
+
feature_id?: string;
|
|
37582
38747
|
id?: string;
|
|
37583
38748
|
module_id?: string;
|
|
37584
38749
|
permission?: string;
|
|
@@ -37614,6 +38779,51 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
37614
38779
|
referencedColumns: ["id"];
|
|
37615
38780
|
}];
|
|
37616
38781
|
};
|
|
38782
|
+
van_inventories: {
|
|
38783
|
+
Row: {
|
|
38784
|
+
barcode: string | null;
|
|
38785
|
+
created_at: string;
|
|
38786
|
+
id: string;
|
|
38787
|
+
monteur_id: string | null;
|
|
38788
|
+
price_per_unit: number;
|
|
38789
|
+
product_name: string;
|
|
38790
|
+
quantity_current: number;
|
|
38791
|
+
quantity_min: number;
|
|
38792
|
+
unit: string;
|
|
38793
|
+
updated_at: string;
|
|
38794
|
+
};
|
|
38795
|
+
Insert: {
|
|
38796
|
+
barcode?: string | null;
|
|
38797
|
+
created_at?: string;
|
|
38798
|
+
id?: string;
|
|
38799
|
+
monteur_id?: string | null;
|
|
38800
|
+
price_per_unit?: number;
|
|
38801
|
+
product_name: string;
|
|
38802
|
+
quantity_current?: number;
|
|
38803
|
+
quantity_min?: number;
|
|
38804
|
+
unit?: string;
|
|
38805
|
+
updated_at?: string;
|
|
38806
|
+
};
|
|
38807
|
+
Update: {
|
|
38808
|
+
barcode?: string | null;
|
|
38809
|
+
created_at?: string;
|
|
38810
|
+
id?: string;
|
|
38811
|
+
monteur_id?: string | null;
|
|
38812
|
+
price_per_unit?: number;
|
|
38813
|
+
product_name?: string;
|
|
38814
|
+
quantity_current?: number;
|
|
38815
|
+
quantity_min?: number;
|
|
38816
|
+
unit?: string;
|
|
38817
|
+
updated_at?: string;
|
|
38818
|
+
};
|
|
38819
|
+
Relationships: [{
|
|
38820
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
38821
|
+
columns: ["monteur_id"];
|
|
38822
|
+
isOneToOne: false;
|
|
38823
|
+
referencedRelation: "profiles";
|
|
38824
|
+
referencedColumns: ["id"];
|
|
38825
|
+
}];
|
|
38826
|
+
};
|
|
37617
38827
|
voorraad_custom_fields: {
|
|
37618
38828
|
Row: {
|
|
37619
38829
|
created_at: string;
|
|
@@ -38564,7 +39774,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
38564
39774
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
38565
39775
|
columns: ["monteur_id"];
|
|
38566
39776
|
isOneToOne: false;
|
|
38567
|
-
referencedRelation: "
|
|
39777
|
+
referencedRelation: "profiles";
|
|
38568
39778
|
referencedColumns: ["id"];
|
|
38569
39779
|
}, {
|
|
38570
39780
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -38574,6 +39784,60 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
38574
39784
|
referencedColumns: ["id"];
|
|
38575
39785
|
}];
|
|
38576
39786
|
};
|
|
39787
|
+
work_order_photos: {
|
|
39788
|
+
Row: {
|
|
39789
|
+
ai_caption: string | null;
|
|
39790
|
+
ai_categorized_at: string | null;
|
|
39791
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
39792
|
+
caption: string | null;
|
|
39793
|
+
created_at: string;
|
|
39794
|
+
id: string;
|
|
39795
|
+
monteur_id: string | null;
|
|
39796
|
+
photo_type: string;
|
|
39797
|
+
storage_path: string;
|
|
39798
|
+
updated_at: string;
|
|
39799
|
+
work_order_id: string;
|
|
39800
|
+
};
|
|
39801
|
+
Insert: {
|
|
39802
|
+
ai_caption?: string | null;
|
|
39803
|
+
ai_categorized_at?: string | null;
|
|
39804
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
39805
|
+
caption?: string | null;
|
|
39806
|
+
created_at?: string;
|
|
39807
|
+
id?: string;
|
|
39808
|
+
monteur_id?: string | null;
|
|
39809
|
+
photo_type?: string;
|
|
39810
|
+
storage_path: string;
|
|
39811
|
+
updated_at?: string;
|
|
39812
|
+
work_order_id: string;
|
|
39813
|
+
};
|
|
39814
|
+
Update: {
|
|
39815
|
+
ai_caption?: string | null;
|
|
39816
|
+
ai_categorized_at?: string | null;
|
|
39817
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
39818
|
+
caption?: string | null;
|
|
39819
|
+
created_at?: string;
|
|
39820
|
+
id?: string;
|
|
39821
|
+
monteur_id?: string | null;
|
|
39822
|
+
photo_type?: string;
|
|
39823
|
+
storage_path?: string;
|
|
39824
|
+
updated_at?: string;
|
|
39825
|
+
work_order_id?: string;
|
|
39826
|
+
};
|
|
39827
|
+
Relationships: [{
|
|
39828
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
39829
|
+
columns: ["monteur_id"];
|
|
39830
|
+
isOneToOne: false;
|
|
39831
|
+
referencedRelation: "profiles";
|
|
39832
|
+
referencedColumns: ["id"];
|
|
39833
|
+
}, {
|
|
39834
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
39835
|
+
columns: ["work_order_id"];
|
|
39836
|
+
isOneToOne: false;
|
|
39837
|
+
referencedRelation: "work_orders";
|
|
39838
|
+
referencedColumns: ["id"];
|
|
39839
|
+
}];
|
|
39840
|
+
};
|
|
38577
39841
|
work_orders: {
|
|
38578
39842
|
Row: {
|
|
38579
39843
|
assigned_to: string | null;
|
|
@@ -38605,7 +39869,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
38605
39869
|
scheduled_end_time: string | null;
|
|
38606
39870
|
scheduled_start_time: string | null;
|
|
38607
39871
|
status: string;
|
|
38608
|
-
tenant_id: string;
|
|
38609
39872
|
total_hours_worked: number | null;
|
|
38610
39873
|
total_price: number | null;
|
|
38611
39874
|
travel_time_minutes: number | null;
|
|
@@ -38643,7 +39906,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
38643
39906
|
scheduled_end_time?: string | null;
|
|
38644
39907
|
scheduled_start_time?: string | null;
|
|
38645
39908
|
status?: string;
|
|
38646
|
-
tenant_id: string;
|
|
38647
39909
|
total_hours_worked?: number | null;
|
|
38648
39910
|
total_price?: number | null;
|
|
38649
39911
|
travel_time_minutes?: number | null;
|
|
@@ -38681,7 +39943,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
38681
39943
|
scheduled_end_time?: string | null;
|
|
38682
39944
|
scheduled_start_time?: string | null;
|
|
38683
39945
|
status?: string;
|
|
38684
|
-
tenant_id?: string;
|
|
38685
39946
|
total_hours_worked?: number | null;
|
|
38686
39947
|
total_price?: number | null;
|
|
38687
39948
|
travel_time_minutes?: number | null;
|
|
@@ -38695,12 +39956,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
38695
39956
|
isOneToOne: false;
|
|
38696
39957
|
referencedRelation: "work_orders";
|
|
38697
39958
|
referencedColumns: ["id"];
|
|
38698
|
-
}, {
|
|
38699
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
38700
|
-
columns: ["tenant_id"];
|
|
38701
|
-
isOneToOne: false;
|
|
38702
|
-
referencedRelation: "tenants";
|
|
38703
|
-
referencedColumns: ["id"];
|
|
38704
39959
|
}];
|
|
38705
39960
|
};
|
|
38706
39961
|
};
|
|
@@ -39385,6 +40640,19 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
39385
40640
|
};
|
|
39386
40641
|
Returns: undefined;
|
|
39387
40642
|
};
|
|
40643
|
+
approve_mailbox_order_proposal: {
|
|
40644
|
+
Args: {
|
|
40645
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
40646
|
+
p_customer_id: string;
|
|
40647
|
+
p_delivery_date: string;
|
|
40648
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
40649
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
40650
|
+
p_notes: string;
|
|
40651
|
+
p_proposal_id: string;
|
|
40652
|
+
p_reviewed_by: string;
|
|
40653
|
+
};
|
|
40654
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
40655
|
+
};
|
|
39388
40656
|
assign_cart_numbers: {
|
|
39389
40657
|
Args: {
|
|
39390
40658
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -39436,6 +40704,10 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
39436
40704
|
};
|
|
39437
40705
|
Returns: number;
|
|
39438
40706
|
};
|
|
40707
|
+
can_manage_hours: {
|
|
40708
|
+
Args: never;
|
|
40709
|
+
Returns: boolean;
|
|
40710
|
+
};
|
|
39439
40711
|
check_offer_product_available_stock: {
|
|
39440
40712
|
Args: {
|
|
39441
40713
|
p_campaign_product_id: string;
|
|
@@ -39625,6 +40897,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
39625
40897
|
};
|
|
39626
40898
|
Returns: {
|
|
39627
40899
|
action: string;
|
|
40900
|
+
attempt_started_at: string | null;
|
|
39628
40901
|
attempts: number;
|
|
39629
40902
|
connection_id: string | null;
|
|
39630
40903
|
created_at: string;
|
|
@@ -39712,6 +40985,30 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
39712
40985
|
agent_naam: string;
|
|
39713
40986
|
}[];
|
|
39714
40987
|
};
|
|
40988
|
+
consume_van_inventory: {
|
|
40989
|
+
Args: {
|
|
40990
|
+
p_inventory_id: string;
|
|
40991
|
+
p_quantity: number;
|
|
40992
|
+
};
|
|
40993
|
+
Returns: {
|
|
40994
|
+
barcode: string | null;
|
|
40995
|
+
created_at: string;
|
|
40996
|
+
id: string;
|
|
40997
|
+
monteur_id: string | null;
|
|
40998
|
+
price_per_unit: number;
|
|
40999
|
+
product_name: string;
|
|
41000
|
+
quantity_current: number;
|
|
41001
|
+
quantity_min: number;
|
|
41002
|
+
unit: string;
|
|
41003
|
+
updated_at: string;
|
|
41004
|
+
};
|
|
41005
|
+
SetofOptions: {
|
|
41006
|
+
from: "*";
|
|
41007
|
+
to: "van_inventories";
|
|
41008
|
+
isOneToOne: true;
|
|
41009
|
+
isSetofReturn: false;
|
|
41010
|
+
};
|
|
41011
|
+
};
|
|
39715
41012
|
control_get_todays_carts: {
|
|
39716
41013
|
Args: never;
|
|
39717
41014
|
Returns: {
|
|
@@ -39785,6 +41082,13 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
39785
41082
|
_user_id: string;
|
|
39786
41083
|
};
|
|
39787
41084
|
Returns: string;
|
|
41085
|
+
} | {
|
|
41086
|
+
Args: {
|
|
41087
|
+
_feature_id: string;
|
|
41088
|
+
_module_id: string;
|
|
41089
|
+
_user_id: string;
|
|
41090
|
+
};
|
|
41091
|
+
Returns: string;
|
|
39788
41092
|
};
|
|
39789
41093
|
email_auth_decrypt: {
|
|
39790
41094
|
Args: {
|
|
@@ -40136,12 +41440,6 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
40136
41440
|
Args: never;
|
|
40137
41441
|
Returns: string;
|
|
40138
41442
|
};
|
|
40139
|
-
get_work_order_tenant_id: {
|
|
40140
|
-
Args: {
|
|
40141
|
-
wo_id: string;
|
|
40142
|
-
};
|
|
40143
|
-
Returns: string;
|
|
40144
|
-
};
|
|
40145
41443
|
has_module_permission: {
|
|
40146
41444
|
Args: {
|
|
40147
41445
|
_min: string;
|
|
@@ -40175,6 +41473,13 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
40175
41473
|
};
|
|
40176
41474
|
Returns: boolean;
|
|
40177
41475
|
};
|
|
41476
|
+
is_time_log_week_locked: {
|
|
41477
|
+
Args: {
|
|
41478
|
+
p_employee_id: string;
|
|
41479
|
+
p_start_time: string;
|
|
41480
|
+
};
|
|
41481
|
+
Returns: boolean;
|
|
41482
|
+
};
|
|
40178
41483
|
is_user_admin: {
|
|
40179
41484
|
Args: never;
|
|
40180
41485
|
Returns: boolean;
|
|
@@ -40189,13 +41494,14 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
40189
41494
|
};
|
|
40190
41495
|
Returns: boolean;
|
|
40191
41496
|
};
|
|
40192
|
-
|
|
41497
|
+
list_medewerkers: {
|
|
40193
41498
|
Args: never;
|
|
40194
41499
|
Returns: {
|
|
40195
41500
|
avatar_url: string;
|
|
40196
41501
|
display_name: string;
|
|
40197
41502
|
email: string;
|
|
40198
41503
|
id: string;
|
|
41504
|
+
roles: string[];
|
|
40199
41505
|
}[];
|
|
40200
41506
|
};
|
|
40201
41507
|
list_my_planning_items: {
|
|
@@ -40686,6 +41992,65 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
40686
41992
|
};
|
|
40687
41993
|
Returns: number;
|
|
40688
41994
|
};
|
|
41995
|
+
logistics_plan_claim: {
|
|
41996
|
+
Args: {
|
|
41997
|
+
p_limit?: number;
|
|
41998
|
+
};
|
|
41999
|
+
Returns: {
|
|
42000
|
+
attempts: number;
|
|
42001
|
+
id: string;
|
|
42002
|
+
order_id: string;
|
|
42003
|
+
}[];
|
|
42004
|
+
};
|
|
42005
|
+
logistics_plan_enqueue: {
|
|
42006
|
+
Args: {
|
|
42007
|
+
p_order_id: string;
|
|
42008
|
+
p_reason?: string;
|
|
42009
|
+
};
|
|
42010
|
+
Returns: undefined;
|
|
42011
|
+
};
|
|
42012
|
+
logistics_plan_ensure_event: {
|
|
42013
|
+
Args: {
|
|
42014
|
+
p_order_id: string;
|
|
42015
|
+
};
|
|
42016
|
+
Returns: boolean;
|
|
42017
|
+
};
|
|
42018
|
+
logistics_plan_finish: {
|
|
42019
|
+
Args: {
|
|
42020
|
+
p_error?: string;
|
|
42021
|
+
p_id: string;
|
|
42022
|
+
};
|
|
42023
|
+
Returns: undefined;
|
|
42024
|
+
};
|
|
42025
|
+
logistics_plan_impact_orders: {
|
|
42026
|
+
Args: {
|
|
42027
|
+
p_order_id: string;
|
|
42028
|
+
};
|
|
42029
|
+
Returns: {
|
|
42030
|
+
buffer_id: string;
|
|
42031
|
+
order_id: string;
|
|
42032
|
+
plan_date: string;
|
|
42033
|
+
}[];
|
|
42034
|
+
};
|
|
42035
|
+
logistics_plan_kick: {
|
|
42036
|
+
Args: never;
|
|
42037
|
+
Returns: undefined;
|
|
42038
|
+
};
|
|
42039
|
+
logistics_plan_prune: {
|
|
42040
|
+
Args: never;
|
|
42041
|
+
Returns: number;
|
|
42042
|
+
};
|
|
42043
|
+
logistics_plan_release_stale: {
|
|
42044
|
+
Args: never;
|
|
42045
|
+
Returns: number;
|
|
42046
|
+
};
|
|
42047
|
+
logistics_plan_setting: {
|
|
42048
|
+
Args: {
|
|
42049
|
+
p_default: number;
|
|
42050
|
+
p_key: string;
|
|
42051
|
+
};
|
|
42052
|
+
Returns: number;
|
|
42053
|
+
};
|
|
40689
42054
|
logistics_queue_capacity_email: {
|
|
40690
42055
|
Args: {
|
|
40691
42056
|
p_alert_id: string;
|
|
@@ -40927,6 +42292,7 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
40927
42292
|
my_module_permissions: {
|
|
40928
42293
|
Args: never;
|
|
40929
42294
|
Returns: {
|
|
42295
|
+
feature_id: string;
|
|
40930
42296
|
module_id: string;
|
|
40931
42297
|
permission: string;
|
|
40932
42298
|
}[];
|
|
@@ -41807,6 +43173,16 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
41807
43173
|
};
|
|
41808
43174
|
Returns: string[];
|
|
41809
43175
|
};
|
|
43176
|
+
switch_time_log: {
|
|
43177
|
+
Args: {
|
|
43178
|
+
p_employee_id: string;
|
|
43179
|
+
p_start_lat?: number;
|
|
43180
|
+
p_start_lng?: number;
|
|
43181
|
+
p_type: string;
|
|
43182
|
+
p_work_order_id?: string;
|
|
43183
|
+
};
|
|
43184
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43185
|
+
};
|
|
41810
43186
|
sync_all_layer_stocks: {
|
|
41811
43187
|
Args: never;
|
|
41812
43188
|
Returns: undefined;
|
|
@@ -41857,6 +43233,24 @@ export declare const setOrderCarrier: import("@tanstack/start-client-core").Opti
|
|
|
41857
43233
|
};
|
|
41858
43234
|
Returns: boolean;
|
|
41859
43235
|
};
|
|
43236
|
+
twinfield_cron_lock_acquire: {
|
|
43237
|
+
Args: {
|
|
43238
|
+
_job_name: string;
|
|
43239
|
+
_stale_seconds?: number;
|
|
43240
|
+
};
|
|
43241
|
+
Returns: boolean;
|
|
43242
|
+
};
|
|
43243
|
+
twinfield_cron_lock_release: {
|
|
43244
|
+
Args: {
|
|
43245
|
+
_error?: string;
|
|
43246
|
+
_job_name: string;
|
|
43247
|
+
};
|
|
43248
|
+
Returns: undefined;
|
|
43249
|
+
};
|
|
43250
|
+
twinfield_prune_push_queue: {
|
|
43251
|
+
Args: never;
|
|
43252
|
+
Returns: number;
|
|
43253
|
+
};
|
|
41860
43254
|
twinfield_register_cron: {
|
|
41861
43255
|
Args: {
|
|
41862
43256
|
apikey?: string;
|