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