@flowselections/logistiek-engine 1.0.6 → 1.0.8
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/LogistiekEnginePage.d.ts.map +1 -1
- package/dist-lib/components/LogistiekEnginePage.js +19 -4
- package/dist-lib/components/RuleEnginePage.d.ts +1 -1
- package/dist-lib/components/RuleEnginePage.d.ts.map +1 -1
- package/dist-lib/components/RuleEnginePage.js +22 -2
- package/dist-lib/components/StrategieDialog.d.ts.map +1 -1
- package/dist-lib/components/StrategieDialog.js +1 -1
- package/dist-lib/hooks/useLogistiekStrategieen.d.ts +2 -1
- package/dist-lib/hooks/useLogistiekStrategieen.d.ts.map +1 -1
- package/dist-lib/hooks/useLogistiekStrategieen.js +72 -2
- package/dist-lib/hooks/useRuleEngine.d.ts.map +1 -1
- package/dist-lib/hooks/useRuleEngine.js +3 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1092 -121
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1092 -121
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1092 -121
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1122 -146
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/floridayDocuments.functions.d.ts +3270 -357
- package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
- package/dist-lib/lib/floridayPush.functions.d.ts +1092 -121
- package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
- package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
- package/dist-lib/lib/handlers/logistics-tick.server.js +12 -1
- package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +5450 -595
- package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +2180 -238
- package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1092 -121
- package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
- package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
- package/dist-lib/lib/modulePrompts.js +25 -0
- package/dist-lib/lib/planQueue.server.d.ts +17 -0
- package/dist-lib/lib/planQueue.server.d.ts.map +1 -0
- package/dist-lib/lib/planQueue.server.js +124 -0
- package/package.json +1 -1
|
@@ -871,6 +871,126 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
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;
|
|
@@ -1683,7 +1803,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
1683
1803
|
city: string | null;
|
|
1684
1804
|
country: string | null;
|
|
1685
1805
|
created_at: string;
|
|
1686
|
-
customer_id: string
|
|
1806
|
+
customer_id: string;
|
|
1687
1807
|
external_key: string | null;
|
|
1688
1808
|
external_provider: string | null;
|
|
1689
1809
|
floriday_location_id: string | null;
|
|
@@ -1707,7 +1827,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
1707
1827
|
city?: string | null;
|
|
1708
1828
|
country?: string | null;
|
|
1709
1829
|
created_at?: string;
|
|
1710
|
-
customer_id
|
|
1830
|
+
customer_id: string;
|
|
1711
1831
|
external_key?: string | null;
|
|
1712
1832
|
external_provider?: string | null;
|
|
1713
1833
|
floriday_location_id?: string | null;
|
|
@@ -1731,7 +1851,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
1731
1851
|
city?: string | null;
|
|
1732
1852
|
country?: string | null;
|
|
1733
1853
|
created_at?: string;
|
|
1734
|
-
customer_id?: string
|
|
1854
|
+
customer_id?: string;
|
|
1735
1855
|
external_key?: string | null;
|
|
1736
1856
|
external_provider?: string | null;
|
|
1737
1857
|
floriday_location_id?: string | null;
|
|
@@ -6479,6 +6599,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
6479
6599
|
Row: {
|
|
6480
6600
|
buyer_organization_id: string | null;
|
|
6481
6601
|
connection_id: string;
|
|
6602
|
+
controlled_at: string | null;
|
|
6482
6603
|
created_at: string;
|
|
6483
6604
|
data: import("../integrations/supabase/types").Json;
|
|
6484
6605
|
floriday_id: string;
|
|
@@ -6490,6 +6611,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
6490
6611
|
Insert: {
|
|
6491
6612
|
buyer_organization_id?: string | null;
|
|
6492
6613
|
connection_id: string;
|
|
6614
|
+
controlled_at?: string | null;
|
|
6493
6615
|
created_at?: string;
|
|
6494
6616
|
data: import("../integrations/supabase/types").Json;
|
|
6495
6617
|
floriday_id: string;
|
|
@@ -6501,6 +6623,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
6501
6623
|
Update: {
|
|
6502
6624
|
buyer_organization_id?: string | null;
|
|
6503
6625
|
connection_id?: string;
|
|
6626
|
+
controlled_at?: string | null;
|
|
6504
6627
|
created_at?: string;
|
|
6505
6628
|
data?: import("../integrations/supabase/types").Json;
|
|
6506
6629
|
floriday_id?: string;
|
|
@@ -7402,6 +7525,54 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
7402
7525
|
};
|
|
7403
7526
|
Relationships: [];
|
|
7404
7527
|
};
|
|
7528
|
+
invoice_timing_settings: {
|
|
7529
|
+
Row: {
|
|
7530
|
+
anchor: string;
|
|
7531
|
+
business_days_only: boolean;
|
|
7532
|
+
created_at: string;
|
|
7533
|
+
enabled: boolean;
|
|
7534
|
+
id: string;
|
|
7535
|
+
offset_days: number;
|
|
7536
|
+
pickup_anchor: string;
|
|
7537
|
+
pickup_business_days_only: boolean;
|
|
7538
|
+
pickup_offset_days: number;
|
|
7539
|
+
pickup_time_of_day: string;
|
|
7540
|
+
singleton: boolean;
|
|
7541
|
+
time_of_day: string;
|
|
7542
|
+
updated_at: string;
|
|
7543
|
+
};
|
|
7544
|
+
Insert: {
|
|
7545
|
+
anchor?: string;
|
|
7546
|
+
business_days_only?: boolean;
|
|
7547
|
+
created_at?: string;
|
|
7548
|
+
enabled?: boolean;
|
|
7549
|
+
id?: string;
|
|
7550
|
+
offset_days?: number;
|
|
7551
|
+
pickup_anchor?: string;
|
|
7552
|
+
pickup_business_days_only?: boolean;
|
|
7553
|
+
pickup_offset_days?: number;
|
|
7554
|
+
pickup_time_of_day?: string;
|
|
7555
|
+
singleton?: boolean;
|
|
7556
|
+
time_of_day?: string;
|
|
7557
|
+
updated_at?: string;
|
|
7558
|
+
};
|
|
7559
|
+
Update: {
|
|
7560
|
+
anchor?: string;
|
|
7561
|
+
business_days_only?: boolean;
|
|
7562
|
+
created_at?: string;
|
|
7563
|
+
enabled?: boolean;
|
|
7564
|
+
id?: string;
|
|
7565
|
+
offset_days?: number;
|
|
7566
|
+
pickup_anchor?: string;
|
|
7567
|
+
pickup_business_days_only?: boolean;
|
|
7568
|
+
pickup_offset_days?: number;
|
|
7569
|
+
pickup_time_of_day?: string;
|
|
7570
|
+
singleton?: boolean;
|
|
7571
|
+
time_of_day?: string;
|
|
7572
|
+
updated_at?: string;
|
|
7573
|
+
};
|
|
7574
|
+
Relationships: [];
|
|
7575
|
+
};
|
|
7405
7576
|
itk_contact_persons: {
|
|
7406
7577
|
Row: {
|
|
7407
7578
|
created_at: string;
|
|
@@ -7714,7 +7885,6 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
7714
7885
|
start_date: string;
|
|
7715
7886
|
start_time: string | null;
|
|
7716
7887
|
status: string;
|
|
7717
|
-
tenant_id: string;
|
|
7718
7888
|
updated_at: string;
|
|
7719
7889
|
user_id: string;
|
|
7720
7890
|
};
|
|
@@ -7732,7 +7902,6 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
7732
7902
|
start_date: string;
|
|
7733
7903
|
start_time?: string | null;
|
|
7734
7904
|
status?: string;
|
|
7735
|
-
tenant_id?: string;
|
|
7736
7905
|
updated_at?: string;
|
|
7737
7906
|
user_id: string;
|
|
7738
7907
|
};
|
|
@@ -7750,7 +7919,6 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
7750
7919
|
start_date?: string;
|
|
7751
7920
|
start_time?: string | null;
|
|
7752
7921
|
status?: string;
|
|
7753
|
-
tenant_id?: string;
|
|
7754
7922
|
updated_at?: string;
|
|
7755
7923
|
user_id?: string;
|
|
7756
7924
|
};
|
|
@@ -7758,13 +7926,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
7758
7926
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
7759
7927
|
columns: ["monteur_id"];
|
|
7760
7928
|
isOneToOne: false;
|
|
7761
|
-
referencedRelation: "
|
|
7929
|
+
referencedRelation: "profiles";
|
|
7762
7930
|
referencedColumns: ["id"];
|
|
7763
7931
|
}, {
|
|
7764
7932
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
7765
7933
|
columns: ["user_id"];
|
|
7766
7934
|
isOneToOne: false;
|
|
7767
|
-
referencedRelation: "
|
|
7935
|
+
referencedRelation: "profiles";
|
|
7768
7936
|
referencedColumns: ["id"];
|
|
7769
7937
|
}];
|
|
7770
7938
|
};
|
|
@@ -8632,6 +8800,45 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
8632
8800
|
};
|
|
8633
8801
|
Relationships: [];
|
|
8634
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
|
+
};
|
|
8635
8842
|
logistics_plan_runs: {
|
|
8636
8843
|
Row: {
|
|
8637
8844
|
created_at: string;
|
|
@@ -8707,6 +8914,24 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
8707
8914
|
referencedColumns: ["id"];
|
|
8708
8915
|
}];
|
|
8709
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
|
+
};
|
|
8710
8935
|
logistics_rebuffer_state: {
|
|
8711
8936
|
Row: {
|
|
8712
8937
|
created_at: string;
|
|
@@ -9417,14 +9642,17 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
9417
9642
|
};
|
|
9418
9643
|
mailbox_messages: {
|
|
9419
9644
|
Row: {
|
|
9645
|
+
attachments: import("../integrations/supabase/types").Json;
|
|
9420
9646
|
body_html: string | null;
|
|
9421
9647
|
body_text: string | null;
|
|
9648
|
+
cc_recipients: import("../integrations/supabase/types").Json;
|
|
9422
9649
|
connection_id: string | null;
|
|
9423
9650
|
created_at: string;
|
|
9424
9651
|
error_message: string | null;
|
|
9425
9652
|
external_id: string | null;
|
|
9426
9653
|
from_email: string | null;
|
|
9427
9654
|
from_name: string | null;
|
|
9655
|
+
has_attachments: boolean;
|
|
9428
9656
|
id: string;
|
|
9429
9657
|
message_id: string | null;
|
|
9430
9658
|
profile_id: string | null;
|
|
@@ -9432,18 +9660,22 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
9432
9660
|
received_at: string | null;
|
|
9433
9661
|
status: string;
|
|
9434
9662
|
subject: string | null;
|
|
9663
|
+
to_recipients: import("../integrations/supabase/types").Json;
|
|
9435
9664
|
uid: number | null;
|
|
9436
9665
|
updated_at: string;
|
|
9437
9666
|
};
|
|
9438
9667
|
Insert: {
|
|
9668
|
+
attachments?: import("../integrations/supabase/types").Json;
|
|
9439
9669
|
body_html?: string | null;
|
|
9440
9670
|
body_text?: string | null;
|
|
9671
|
+
cc_recipients?: import("../integrations/supabase/types").Json;
|
|
9441
9672
|
connection_id?: string | null;
|
|
9442
9673
|
created_at?: string;
|
|
9443
9674
|
error_message?: string | null;
|
|
9444
9675
|
external_id?: string | null;
|
|
9445
9676
|
from_email?: string | null;
|
|
9446
9677
|
from_name?: string | null;
|
|
9678
|
+
has_attachments?: boolean;
|
|
9447
9679
|
id?: string;
|
|
9448
9680
|
message_id?: string | null;
|
|
9449
9681
|
profile_id?: string | null;
|
|
@@ -9451,18 +9683,22 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
9451
9683
|
received_at?: string | null;
|
|
9452
9684
|
status?: string;
|
|
9453
9685
|
subject?: string | null;
|
|
9686
|
+
to_recipients?: import("../integrations/supabase/types").Json;
|
|
9454
9687
|
uid?: number | null;
|
|
9455
9688
|
updated_at?: string;
|
|
9456
9689
|
};
|
|
9457
9690
|
Update: {
|
|
9691
|
+
attachments?: import("../integrations/supabase/types").Json;
|
|
9458
9692
|
body_html?: string | null;
|
|
9459
9693
|
body_text?: string | null;
|
|
9694
|
+
cc_recipients?: import("../integrations/supabase/types").Json;
|
|
9460
9695
|
connection_id?: string | null;
|
|
9461
9696
|
created_at?: string;
|
|
9462
9697
|
error_message?: string | null;
|
|
9463
9698
|
external_id?: string | null;
|
|
9464
9699
|
from_email?: string | null;
|
|
9465
9700
|
from_name?: string | null;
|
|
9701
|
+
has_attachments?: boolean;
|
|
9466
9702
|
id?: string;
|
|
9467
9703
|
message_id?: string | null;
|
|
9468
9704
|
profile_id?: string | null;
|
|
@@ -9470,6 +9706,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
9470
9706
|
received_at?: string | null;
|
|
9471
9707
|
status?: string;
|
|
9472
9708
|
subject?: string | null;
|
|
9709
|
+
to_recipients?: import("../integrations/supabase/types").Json;
|
|
9473
9710
|
uid?: number | null;
|
|
9474
9711
|
updated_at?: string;
|
|
9475
9712
|
};
|
|
@@ -9850,6 +10087,90 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
9850
10087
|
};
|
|
9851
10088
|
Relationships: [];
|
|
9852
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
|
+
};
|
|
9853
10174
|
module_permissions: {
|
|
9854
10175
|
Row: {
|
|
9855
10176
|
created_at: string;
|
|
@@ -9877,6 +10198,39 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
9877
10198
|
};
|
|
9878
10199
|
Relationships: [];
|
|
9879
10200
|
};
|
|
10201
|
+
module_registry: {
|
|
10202
|
+
Row: {
|
|
10203
|
+
created_at: string;
|
|
10204
|
+
enforce: boolean;
|
|
10205
|
+
is_active: boolean;
|
|
10206
|
+
last_seen_at: string;
|
|
10207
|
+
module_id: string;
|
|
10208
|
+
name: string;
|
|
10209
|
+
shell_id: string | null;
|
|
10210
|
+
sort_order: number | null;
|
|
10211
|
+
};
|
|
10212
|
+
Insert: {
|
|
10213
|
+
created_at?: string;
|
|
10214
|
+
enforce?: boolean;
|
|
10215
|
+
is_active?: boolean;
|
|
10216
|
+
last_seen_at?: string;
|
|
10217
|
+
module_id: string;
|
|
10218
|
+
name: string;
|
|
10219
|
+
shell_id?: string | null;
|
|
10220
|
+
sort_order?: number | null;
|
|
10221
|
+
};
|
|
10222
|
+
Update: {
|
|
10223
|
+
created_at?: string;
|
|
10224
|
+
enforce?: boolean;
|
|
10225
|
+
is_active?: boolean;
|
|
10226
|
+
last_seen_at?: string;
|
|
10227
|
+
module_id?: string;
|
|
10228
|
+
name?: string;
|
|
10229
|
+
shell_id?: string | null;
|
|
10230
|
+
sort_order?: number | null;
|
|
10231
|
+
};
|
|
10232
|
+
Relationships: [];
|
|
10233
|
+
};
|
|
9880
10234
|
module_runtime_config: {
|
|
9881
10235
|
Row: {
|
|
9882
10236
|
key: string;
|
|
@@ -9928,63 +10282,6 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
9928
10282
|
};
|
|
9929
10283
|
Relationships: [];
|
|
9930
10284
|
};
|
|
9931
|
-
monteurs: {
|
|
9932
|
-
Row: {
|
|
9933
|
-
avatar_url: string | null;
|
|
9934
|
-
color: string | null;
|
|
9935
|
-
created_at: string;
|
|
9936
|
-
email: string | null;
|
|
9937
|
-
id: string;
|
|
9938
|
-
is_active: boolean;
|
|
9939
|
-
leave_balance_hours: number;
|
|
9940
|
-
name: string;
|
|
9941
|
-
persnr: number | null;
|
|
9942
|
-
phone: string | null;
|
|
9943
|
-
role: string;
|
|
9944
|
-
tenant_id: string;
|
|
9945
|
-
updated_at: string;
|
|
9946
|
-
user_id: string | null;
|
|
9947
|
-
};
|
|
9948
|
-
Insert: {
|
|
9949
|
-
avatar_url?: string | null;
|
|
9950
|
-
color?: string | null;
|
|
9951
|
-
created_at?: string;
|
|
9952
|
-
email?: string | null;
|
|
9953
|
-
id?: string;
|
|
9954
|
-
is_active?: boolean;
|
|
9955
|
-
leave_balance_hours?: number;
|
|
9956
|
-
name: string;
|
|
9957
|
-
persnr?: number | null;
|
|
9958
|
-
phone?: string | null;
|
|
9959
|
-
role?: string;
|
|
9960
|
-
tenant_id: string;
|
|
9961
|
-
updated_at?: string;
|
|
9962
|
-
user_id?: string | null;
|
|
9963
|
-
};
|
|
9964
|
-
Update: {
|
|
9965
|
-
avatar_url?: string | null;
|
|
9966
|
-
color?: string | null;
|
|
9967
|
-
created_at?: string;
|
|
9968
|
-
email?: string | null;
|
|
9969
|
-
id?: string;
|
|
9970
|
-
is_active?: boolean;
|
|
9971
|
-
leave_balance_hours?: number;
|
|
9972
|
-
name?: string;
|
|
9973
|
-
persnr?: number | null;
|
|
9974
|
-
phone?: string | null;
|
|
9975
|
-
role?: string;
|
|
9976
|
-
tenant_id?: string;
|
|
9977
|
-
updated_at?: string;
|
|
9978
|
-
user_id?: string | null;
|
|
9979
|
-
};
|
|
9980
|
-
Relationships: [{
|
|
9981
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
9982
|
-
columns: ["tenant_id"];
|
|
9983
|
-
isOneToOne: false;
|
|
9984
|
-
referencedRelation: "tenants";
|
|
9985
|
-
referencedColumns: ["id"];
|
|
9986
|
-
}];
|
|
9987
|
-
};
|
|
9988
10285
|
nmbrs_component_mapping: {
|
|
9989
10286
|
Row: {
|
|
9990
10287
|
created_at: string;
|
|
@@ -10055,13 +10352,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
10055
10352
|
nmbrs_employee_number?: string;
|
|
10056
10353
|
updated_at?: string;
|
|
10057
10354
|
};
|
|
10058
|
-
Relationships: [
|
|
10059
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10060
|
-
columns: ["monteur_id"];
|
|
10061
|
-
isOneToOne: true;
|
|
10062
|
-
referencedRelation: "monteurs";
|
|
10063
|
-
referencedColumns: ["id"];
|
|
10064
|
-
}];
|
|
10355
|
+
Relationships: [];
|
|
10065
10356
|
};
|
|
10066
10357
|
nmbrs_export_lines: {
|
|
10067
10358
|
Row: {
|
|
@@ -10110,12 +10401,6 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
10110
10401
|
wage_code?: string;
|
|
10111
10402
|
};
|
|
10112
10403
|
Relationships: [{
|
|
10113
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10114
|
-
columns: ["monteur_id"];
|
|
10115
|
-
isOneToOne: false;
|
|
10116
|
-
referencedRelation: "monteurs";
|
|
10117
|
-
referencedColumns: ["id"];
|
|
10118
|
-
}, {
|
|
10119
10404
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10120
10405
|
columns: ["run_id"];
|
|
10121
10406
|
isOneToOne: false;
|
|
@@ -10936,6 +11221,45 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
10936
11221
|
};
|
|
10937
11222
|
Relationships: [];
|
|
10938
11223
|
};
|
|
11224
|
+
order_invoice_links: {
|
|
11225
|
+
Row: {
|
|
11226
|
+
attempts: number;
|
|
11227
|
+
created_at: string;
|
|
11228
|
+
error_message: string | null;
|
|
11229
|
+
id: string;
|
|
11230
|
+
invoice_number: string | null;
|
|
11231
|
+
next_attempt_at: string;
|
|
11232
|
+
order_id: string;
|
|
11233
|
+
processed_at: string | null;
|
|
11234
|
+
status: string;
|
|
11235
|
+
updated_at: string;
|
|
11236
|
+
};
|
|
11237
|
+
Insert: {
|
|
11238
|
+
attempts?: number;
|
|
11239
|
+
created_at?: string;
|
|
11240
|
+
error_message?: string | null;
|
|
11241
|
+
id?: string;
|
|
11242
|
+
invoice_number?: string | null;
|
|
11243
|
+
next_attempt_at?: string;
|
|
11244
|
+
order_id: string;
|
|
11245
|
+
processed_at?: string | null;
|
|
11246
|
+
status?: string;
|
|
11247
|
+
updated_at?: string;
|
|
11248
|
+
};
|
|
11249
|
+
Update: {
|
|
11250
|
+
attempts?: number;
|
|
11251
|
+
created_at?: string;
|
|
11252
|
+
error_message?: string | null;
|
|
11253
|
+
id?: string;
|
|
11254
|
+
invoice_number?: string | null;
|
|
11255
|
+
next_attempt_at?: string;
|
|
11256
|
+
order_id?: string;
|
|
11257
|
+
processed_at?: string | null;
|
|
11258
|
+
status?: string;
|
|
11259
|
+
updated_at?: string;
|
|
11260
|
+
};
|
|
11261
|
+
Relationships: [];
|
|
11262
|
+
};
|
|
10939
11263
|
order_items: {
|
|
10940
11264
|
Row: {
|
|
10941
11265
|
crates_per_layer: number | null;
|
|
@@ -11118,6 +11442,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
11118
11442
|
delivery_date: string | null;
|
|
11119
11443
|
floriday_sales_order_id: string | null;
|
|
11120
11444
|
id: string;
|
|
11445
|
+
invoice_due_at: string | null;
|
|
11121
11446
|
is_reservation: boolean;
|
|
11122
11447
|
notes: string | null;
|
|
11123
11448
|
order_date: string;
|
|
@@ -11139,6 +11464,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
11139
11464
|
delivery_date?: string | null;
|
|
11140
11465
|
floriday_sales_order_id?: string | null;
|
|
11141
11466
|
id?: string;
|
|
11467
|
+
invoice_due_at?: string | null;
|
|
11142
11468
|
is_reservation?: boolean;
|
|
11143
11469
|
notes?: string | null;
|
|
11144
11470
|
order_date?: string;
|
|
@@ -11160,6 +11486,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
11160
11486
|
delivery_date?: string | null;
|
|
11161
11487
|
floriday_sales_order_id?: string | null;
|
|
11162
11488
|
id?: string;
|
|
11489
|
+
invoice_due_at?: string | null;
|
|
11163
11490
|
is_reservation?: boolean;
|
|
11164
11491
|
notes?: string | null;
|
|
11165
11492
|
order_date?: string;
|
|
@@ -12457,6 +12784,72 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
12457
12784
|
referencedColumns: ["id"];
|
|
12458
12785
|
}];
|
|
12459
12786
|
};
|
|
12787
|
+
print_queue_runners: {
|
|
12788
|
+
Row: {
|
|
12789
|
+
actief: boolean;
|
|
12790
|
+
basis_url: string;
|
|
12791
|
+
created_at: string;
|
|
12792
|
+
id: string;
|
|
12793
|
+
laatst_gezien: string;
|
|
12794
|
+
laatste_fout: string | null;
|
|
12795
|
+
laatste_request_id: number | null;
|
|
12796
|
+
mislukte_posts: number;
|
|
12797
|
+
tick_sleutel: string;
|
|
12798
|
+
updated_at: string;
|
|
12799
|
+
};
|
|
12800
|
+
Insert: {
|
|
12801
|
+
actief?: boolean;
|
|
12802
|
+
basis_url: string;
|
|
12803
|
+
created_at?: string;
|
|
12804
|
+
id?: string;
|
|
12805
|
+
laatst_gezien?: string;
|
|
12806
|
+
laatste_fout?: string | null;
|
|
12807
|
+
laatste_request_id?: number | null;
|
|
12808
|
+
mislukte_posts?: number;
|
|
12809
|
+
tick_sleutel?: string;
|
|
12810
|
+
updated_at?: string;
|
|
12811
|
+
};
|
|
12812
|
+
Update: {
|
|
12813
|
+
actief?: boolean;
|
|
12814
|
+
basis_url?: string;
|
|
12815
|
+
created_at?: string;
|
|
12816
|
+
id?: string;
|
|
12817
|
+
laatst_gezien?: string;
|
|
12818
|
+
laatste_fout?: string | null;
|
|
12819
|
+
laatste_request_id?: number | null;
|
|
12820
|
+
mislukte_posts?: number;
|
|
12821
|
+
tick_sleutel?: string;
|
|
12822
|
+
updated_at?: string;
|
|
12823
|
+
};
|
|
12824
|
+
Relationships: [];
|
|
12825
|
+
};
|
|
12826
|
+
print_queue_settings: {
|
|
12827
|
+
Row: {
|
|
12828
|
+
bewaar_bestanden_dagen: number;
|
|
12829
|
+
bewaar_opdrachten_dagen: number;
|
|
12830
|
+
created_at: string;
|
|
12831
|
+
dubbel_venster_minuten: number;
|
|
12832
|
+
id: string;
|
|
12833
|
+
updated_at: string;
|
|
12834
|
+
};
|
|
12835
|
+
Insert: {
|
|
12836
|
+
bewaar_bestanden_dagen?: number;
|
|
12837
|
+
bewaar_opdrachten_dagen?: number;
|
|
12838
|
+
created_at?: string;
|
|
12839
|
+
dubbel_venster_minuten?: number;
|
|
12840
|
+
id?: string;
|
|
12841
|
+
updated_at?: string;
|
|
12842
|
+
};
|
|
12843
|
+
Update: {
|
|
12844
|
+
bewaar_bestanden_dagen?: number;
|
|
12845
|
+
bewaar_opdrachten_dagen?: number;
|
|
12846
|
+
created_at?: string;
|
|
12847
|
+
dubbel_venster_minuten?: number;
|
|
12848
|
+
id?: string;
|
|
12849
|
+
updated_at?: string;
|
|
12850
|
+
};
|
|
12851
|
+
Relationships: [];
|
|
12852
|
+
};
|
|
12460
12853
|
print_rules: {
|
|
12461
12854
|
Row: {
|
|
12462
12855
|
actief: boolean;
|
|
@@ -13933,6 +14326,96 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
13933
14326
|
referencedColumns: ["id"];
|
|
13934
14327
|
}];
|
|
13935
14328
|
};
|
|
14329
|
+
role_assignments: {
|
|
14330
|
+
Row: {
|
|
14331
|
+
created_at: string;
|
|
14332
|
+
id: string;
|
|
14333
|
+
role_id: string;
|
|
14334
|
+
user_id: string;
|
|
14335
|
+
};
|
|
14336
|
+
Insert: {
|
|
14337
|
+
created_at?: string;
|
|
14338
|
+
id?: string;
|
|
14339
|
+
role_id: string;
|
|
14340
|
+
user_id: string;
|
|
14341
|
+
};
|
|
14342
|
+
Update: {
|
|
14343
|
+
created_at?: string;
|
|
14344
|
+
id?: string;
|
|
14345
|
+
role_id?: string;
|
|
14346
|
+
user_id?: string;
|
|
14347
|
+
};
|
|
14348
|
+
Relationships: [{
|
|
14349
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
14350
|
+
columns: ["role_id"];
|
|
14351
|
+
isOneToOne: false;
|
|
14352
|
+
referencedRelation: "roles";
|
|
14353
|
+
referencedColumns: ["id"];
|
|
14354
|
+
}];
|
|
14355
|
+
};
|
|
14356
|
+
role_permissions: {
|
|
14357
|
+
Row: {
|
|
14358
|
+
can_edit: boolean;
|
|
14359
|
+
can_view: boolean;
|
|
14360
|
+
feature_id: string;
|
|
14361
|
+
id: string;
|
|
14362
|
+
module_id: string;
|
|
14363
|
+
role_id: string;
|
|
14364
|
+
updated_at: string;
|
|
14365
|
+
};
|
|
14366
|
+
Insert: {
|
|
14367
|
+
can_edit?: boolean;
|
|
14368
|
+
can_view?: boolean;
|
|
14369
|
+
feature_id?: string;
|
|
14370
|
+
id?: string;
|
|
14371
|
+
module_id: string;
|
|
14372
|
+
role_id: string;
|
|
14373
|
+
updated_at?: string;
|
|
14374
|
+
};
|
|
14375
|
+
Update: {
|
|
14376
|
+
can_edit?: boolean;
|
|
14377
|
+
can_view?: boolean;
|
|
14378
|
+
feature_id?: string;
|
|
14379
|
+
id?: string;
|
|
14380
|
+
module_id?: string;
|
|
14381
|
+
role_id?: string;
|
|
14382
|
+
updated_at?: string;
|
|
14383
|
+
};
|
|
14384
|
+
Relationships: [{
|
|
14385
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
14386
|
+
columns: ["role_id"];
|
|
14387
|
+
isOneToOne: false;
|
|
14388
|
+
referencedRelation: "roles";
|
|
14389
|
+
referencedColumns: ["id"];
|
|
14390
|
+
}];
|
|
14391
|
+
};
|
|
14392
|
+
roles: {
|
|
14393
|
+
Row: {
|
|
14394
|
+
created_at: string;
|
|
14395
|
+
id: string;
|
|
14396
|
+
is_protected: boolean;
|
|
14397
|
+
key: string;
|
|
14398
|
+
name: string;
|
|
14399
|
+
updated_at: string;
|
|
14400
|
+
};
|
|
14401
|
+
Insert: {
|
|
14402
|
+
created_at?: string;
|
|
14403
|
+
id?: string;
|
|
14404
|
+
is_protected?: boolean;
|
|
14405
|
+
key: string;
|
|
14406
|
+
name: string;
|
|
14407
|
+
updated_at?: string;
|
|
14408
|
+
};
|
|
14409
|
+
Update: {
|
|
14410
|
+
created_at?: string;
|
|
14411
|
+
id?: string;
|
|
14412
|
+
is_protected?: boolean;
|
|
14413
|
+
key?: string;
|
|
14414
|
+
name?: string;
|
|
14415
|
+
updated_at?: string;
|
|
14416
|
+
};
|
|
14417
|
+
Relationships: [];
|
|
14418
|
+
};
|
|
13936
14419
|
rooms: {
|
|
13937
14420
|
Row: {
|
|
13938
14421
|
capacity: number;
|
|
@@ -14602,6 +15085,54 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
14602
15085
|
};
|
|
14603
15086
|
Relationships: [];
|
|
14604
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
|
+
};
|
|
14605
15136
|
time_entries: {
|
|
14606
15137
|
Row: {
|
|
14607
15138
|
created_at: string;
|
|
@@ -14636,65 +15167,170 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
14636
15167
|
undertime?: number;
|
|
14637
15168
|
updated_at?: string;
|
|
14638
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
|
+
};
|
|
14639
15212
|
Relationships: [{
|
|
14640
|
-
foreignKeyName: "
|
|
15213
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
14641
15214
|
columns: ["employee_id"];
|
|
14642
15215
|
isOneToOne: false;
|
|
14643
|
-
referencedRelation: "
|
|
15216
|
+
referencedRelation: "profiles";
|
|
14644
15217
|
referencedColumns: ["id"];
|
|
14645
15218
|
}];
|
|
14646
15219
|
};
|
|
14647
15220
|
time_logs: {
|
|
14648
15221
|
Row: {
|
|
15222
|
+
auto_stop_reason: string | null;
|
|
15223
|
+
auto_stopped: boolean;
|
|
14649
15224
|
created_at: string;
|
|
15225
|
+
current_latitude: number | null;
|
|
15226
|
+
current_longitude: number | null;
|
|
15227
|
+
current_position_updated_at: string | null;
|
|
14650
15228
|
employee_id: string;
|
|
15229
|
+
end_latitude: number | null;
|
|
15230
|
+
end_longitude: number | null;
|
|
14651
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;
|
|
14652
15236
|
id: string;
|
|
15237
|
+
last_reminder_at: string | null;
|
|
14653
15238
|
notes: string | null;
|
|
14654
15239
|
overtime_hours: number;
|
|
14655
15240
|
overtime_type: string | null;
|
|
14656
15241
|
regular_hours: number;
|
|
15242
|
+
reminder_count: number;
|
|
15243
|
+
requires_review: boolean;
|
|
15244
|
+
start_latitude: number | null;
|
|
15245
|
+
start_longitude: number | null;
|
|
14657
15246
|
start_time: string;
|
|
14658
15247
|
travel_cost: number | null;
|
|
14659
15248
|
travel_distance_km: number | null;
|
|
15249
|
+
travel_duration_min: number | null;
|
|
15250
|
+
travel_time_minutes: number | null;
|
|
14660
15251
|
type: string;
|
|
14661
15252
|
updated_at: string;
|
|
15253
|
+
work_order_id: string | null;
|
|
14662
15254
|
};
|
|
14663
15255
|
Insert: {
|
|
15256
|
+
auto_stop_reason?: string | null;
|
|
15257
|
+
auto_stopped?: boolean;
|
|
14664
15258
|
created_at?: string;
|
|
15259
|
+
current_latitude?: number | null;
|
|
15260
|
+
current_longitude?: number | null;
|
|
15261
|
+
current_position_updated_at?: string | null;
|
|
14665
15262
|
employee_id: string;
|
|
15263
|
+
end_latitude?: number | null;
|
|
15264
|
+
end_longitude?: number | null;
|
|
14666
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;
|
|
14667
15270
|
id?: string;
|
|
15271
|
+
last_reminder_at?: string | null;
|
|
14668
15272
|
notes?: string | null;
|
|
14669
15273
|
overtime_hours?: number;
|
|
14670
15274
|
overtime_type?: string | null;
|
|
14671
15275
|
regular_hours?: number;
|
|
15276
|
+
reminder_count?: number;
|
|
15277
|
+
requires_review?: boolean;
|
|
15278
|
+
start_latitude?: number | null;
|
|
15279
|
+
start_longitude?: number | null;
|
|
14672
15280
|
start_time?: string;
|
|
14673
15281
|
travel_cost?: number | null;
|
|
14674
15282
|
travel_distance_km?: number | null;
|
|
15283
|
+
travel_duration_min?: number | null;
|
|
15284
|
+
travel_time_minutes?: number | null;
|
|
14675
15285
|
type: string;
|
|
14676
15286
|
updated_at?: string;
|
|
15287
|
+
work_order_id?: string | null;
|
|
14677
15288
|
};
|
|
14678
15289
|
Update: {
|
|
15290
|
+
auto_stop_reason?: string | null;
|
|
15291
|
+
auto_stopped?: boolean;
|
|
14679
15292
|
created_at?: string;
|
|
15293
|
+
current_latitude?: number | null;
|
|
15294
|
+
current_longitude?: number | null;
|
|
15295
|
+
current_position_updated_at?: string | null;
|
|
14680
15296
|
employee_id?: string;
|
|
15297
|
+
end_latitude?: number | null;
|
|
15298
|
+
end_longitude?: number | null;
|
|
14681
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;
|
|
14682
15304
|
id?: string;
|
|
15305
|
+
last_reminder_at?: string | null;
|
|
14683
15306
|
notes?: string | null;
|
|
14684
15307
|
overtime_hours?: number;
|
|
14685
15308
|
overtime_type?: string | null;
|
|
14686
15309
|
regular_hours?: number;
|
|
15310
|
+
reminder_count?: number;
|
|
15311
|
+
requires_review?: boolean;
|
|
15312
|
+
start_latitude?: number | null;
|
|
15313
|
+
start_longitude?: number | null;
|
|
14687
15314
|
start_time?: string;
|
|
14688
15315
|
travel_cost?: number | null;
|
|
14689
15316
|
travel_distance_km?: number | null;
|
|
15317
|
+
travel_duration_min?: number | null;
|
|
15318
|
+
travel_time_minutes?: number | null;
|
|
14690
15319
|
type?: string;
|
|
14691
15320
|
updated_at?: string;
|
|
15321
|
+
work_order_id?: string | null;
|
|
14692
15322
|
};
|
|
14693
15323
|
Relationships: [{
|
|
14694
15324
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
14695
15325
|
columns: ["employee_id"];
|
|
14696
15326
|
isOneToOne: false;
|
|
14697
|
-
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";
|
|
14698
15334
|
referencedColumns: ["id"];
|
|
14699
15335
|
}];
|
|
14700
15336
|
};
|
|
@@ -14733,7 +15369,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
14733
15369
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
14734
15370
|
columns: ["employee_id"];
|
|
14735
15371
|
isOneToOne: false;
|
|
14736
|
-
referencedRelation: "
|
|
15372
|
+
referencedRelation: "profiles";
|
|
14737
15373
|
referencedColumns: ["id"];
|
|
14738
15374
|
}];
|
|
14739
15375
|
};
|
|
@@ -15043,6 +15679,39 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
15043
15679
|
};
|
|
15044
15680
|
Relationships: [];
|
|
15045
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
|
+
};
|
|
15046
15715
|
twinfield_customers: {
|
|
15047
15716
|
Row: {
|
|
15048
15717
|
address: string | null;
|
|
@@ -15297,6 +15966,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
15297
15966
|
};
|
|
15298
15967
|
twinfield_invoice_settings: {
|
|
15299
15968
|
Row: {
|
|
15969
|
+
auto_invoice_enabled: boolean;
|
|
15970
|
+
auto_invoice_trigger_statuses: string[];
|
|
15300
15971
|
created_at: string;
|
|
15301
15972
|
debtor_gl_account: string;
|
|
15302
15973
|
default_credit_invoice_type: string | null;
|
|
@@ -15317,6 +15988,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
15317
15988
|
vat_code_export: string | null;
|
|
15318
15989
|
};
|
|
15319
15990
|
Insert: {
|
|
15991
|
+
auto_invoice_enabled?: boolean;
|
|
15992
|
+
auto_invoice_trigger_statuses?: string[];
|
|
15320
15993
|
created_at?: string;
|
|
15321
15994
|
debtor_gl_account?: string;
|
|
15322
15995
|
default_credit_invoice_type?: string | null;
|
|
@@ -15337,6 +16010,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
15337
16010
|
vat_code_export?: string | null;
|
|
15338
16011
|
};
|
|
15339
16012
|
Update: {
|
|
16013
|
+
auto_invoice_enabled?: boolean;
|
|
16014
|
+
auto_invoice_trigger_statuses?: string[];
|
|
15340
16015
|
created_at?: string;
|
|
15341
16016
|
debtor_gl_account?: string;
|
|
15342
16017
|
default_credit_invoice_type?: string | null;
|
|
@@ -15637,6 +16312,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
15637
16312
|
twinfield_push_queue: {
|
|
15638
16313
|
Row: {
|
|
15639
16314
|
action: string;
|
|
16315
|
+
attempt_started_at: string | null;
|
|
15640
16316
|
attempts: number;
|
|
15641
16317
|
connection_id: string | null;
|
|
15642
16318
|
created_at: string;
|
|
@@ -15653,6 +16329,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
15653
16329
|
};
|
|
15654
16330
|
Insert: {
|
|
15655
16331
|
action?: string;
|
|
16332
|
+
attempt_started_at?: string | null;
|
|
15656
16333
|
attempts?: number;
|
|
15657
16334
|
connection_id?: string | null;
|
|
15658
16335
|
created_at?: string;
|
|
@@ -15669,6 +16346,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
15669
16346
|
};
|
|
15670
16347
|
Update: {
|
|
15671
16348
|
action?: string;
|
|
16349
|
+
attempt_started_at?: string | null;
|
|
15672
16350
|
attempts?: number;
|
|
15673
16351
|
connection_id?: string | null;
|
|
15674
16352
|
created_at?: string;
|
|
@@ -15866,13 +16544,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
15866
16544
|
workday_end?: string | null;
|
|
15867
16545
|
workday_start?: string | null;
|
|
15868
16546
|
};
|
|
15869
|
-
Relationships: [
|
|
15870
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
15871
|
-
columns: ["monteur_id"];
|
|
15872
|
-
isOneToOne: true;
|
|
15873
|
-
referencedRelation: "monteurs";
|
|
15874
|
-
referencedColumns: ["id"];
|
|
15875
|
-
}];
|
|
16547
|
+
Relationships: [];
|
|
15876
16548
|
};
|
|
15877
16549
|
uren_entries: {
|
|
15878
16550
|
Row: {
|
|
@@ -15918,12 +16590,6 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
15918
16590
|
werkbon_id?: string | null;
|
|
15919
16591
|
};
|
|
15920
16592
|
Relationships: [{
|
|
15921
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
15922
|
-
columns: ["monteur_id"];
|
|
15923
|
-
isOneToOne: false;
|
|
15924
|
-
referencedRelation: "monteurs";
|
|
15925
|
-
referencedColumns: ["id"];
|
|
15926
|
-
}, {
|
|
15927
16593
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
15928
16594
|
columns: ["werkbon_id"];
|
|
15929
16595
|
isOneToOne: false;
|
|
@@ -16391,13 +17057,37 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
16391
17057
|
submitted_at?: string | null;
|
|
16392
17058
|
updated_at?: string;
|
|
16393
17059
|
};
|
|
16394
|
-
Relationships: [
|
|
16395
|
-
|
|
16396
|
-
|
|
16397
|
-
|
|
16398
|
-
|
|
16399
|
-
|
|
16400
|
-
|
|
17060
|
+
Relationships: [];
|
|
17061
|
+
};
|
|
17062
|
+
user_module_permissions: {
|
|
17063
|
+
Row: {
|
|
17064
|
+
created_at: string;
|
|
17065
|
+
feature_id: string;
|
|
17066
|
+
id: string;
|
|
17067
|
+
module_id: string;
|
|
17068
|
+
permission: string;
|
|
17069
|
+
updated_at: string;
|
|
17070
|
+
user_id: string;
|
|
17071
|
+
};
|
|
17072
|
+
Insert: {
|
|
17073
|
+
created_at?: string;
|
|
17074
|
+
feature_id?: string;
|
|
17075
|
+
id?: string;
|
|
17076
|
+
module_id: string;
|
|
17077
|
+
permission: string;
|
|
17078
|
+
updated_at?: string;
|
|
17079
|
+
user_id: string;
|
|
17080
|
+
};
|
|
17081
|
+
Update: {
|
|
17082
|
+
created_at?: string;
|
|
17083
|
+
feature_id?: string;
|
|
17084
|
+
id?: string;
|
|
17085
|
+
module_id?: string;
|
|
17086
|
+
permission?: string;
|
|
17087
|
+
updated_at?: string;
|
|
17088
|
+
user_id?: string;
|
|
17089
|
+
};
|
|
17090
|
+
Relationships: [];
|
|
16401
17091
|
};
|
|
16402
17092
|
user_roles: {
|
|
16403
17093
|
Row: {
|
|
@@ -16426,6 +17116,51 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
16426
17116
|
referencedColumns: ["id"];
|
|
16427
17117
|
}];
|
|
16428
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
|
+
};
|
|
16429
17164
|
voorraad_custom_fields: {
|
|
16430
17165
|
Row: {
|
|
16431
17166
|
created_at: string;
|
|
@@ -17376,7 +18111,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
17376
18111
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
17377
18112
|
columns: ["monteur_id"];
|
|
17378
18113
|
isOneToOne: false;
|
|
17379
|
-
referencedRelation: "
|
|
18114
|
+
referencedRelation: "profiles";
|
|
17380
18115
|
referencedColumns: ["id"];
|
|
17381
18116
|
}, {
|
|
17382
18117
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -17386,6 +18121,60 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
17386
18121
|
referencedColumns: ["id"];
|
|
17387
18122
|
}];
|
|
17388
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
|
+
};
|
|
17389
18178
|
work_orders: {
|
|
17390
18179
|
Row: {
|
|
17391
18180
|
assigned_to: string | null;
|
|
@@ -17417,7 +18206,6 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
17417
18206
|
scheduled_end_time: string | null;
|
|
17418
18207
|
scheduled_start_time: string | null;
|
|
17419
18208
|
status: string;
|
|
17420
|
-
tenant_id: string;
|
|
17421
18209
|
total_hours_worked: number | null;
|
|
17422
18210
|
total_price: number | null;
|
|
17423
18211
|
travel_time_minutes: number | null;
|
|
@@ -17455,7 +18243,6 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
17455
18243
|
scheduled_end_time?: string | null;
|
|
17456
18244
|
scheduled_start_time?: string | null;
|
|
17457
18245
|
status?: string;
|
|
17458
|
-
tenant_id: string;
|
|
17459
18246
|
total_hours_worked?: number | null;
|
|
17460
18247
|
total_price?: number | null;
|
|
17461
18248
|
travel_time_minutes?: number | null;
|
|
@@ -17493,7 +18280,6 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
17493
18280
|
scheduled_end_time?: string | null;
|
|
17494
18281
|
scheduled_start_time?: string | null;
|
|
17495
18282
|
status?: string;
|
|
17496
|
-
tenant_id?: string;
|
|
17497
18283
|
total_hours_worked?: number | null;
|
|
17498
18284
|
total_price?: number | null;
|
|
17499
18285
|
travel_time_minutes?: number | null;
|
|
@@ -17507,12 +18293,6 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
17507
18293
|
isOneToOne: false;
|
|
17508
18294
|
referencedRelation: "work_orders";
|
|
17509
18295
|
referencedColumns: ["id"];
|
|
17510
|
-
}, {
|
|
17511
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
17512
|
-
columns: ["tenant_id"];
|
|
17513
|
-
isOneToOne: false;
|
|
17514
|
-
referencedRelation: "tenants";
|
|
17515
|
-
referencedColumns: ["id"];
|
|
17516
18296
|
}];
|
|
17517
18297
|
};
|
|
17518
18298
|
};
|
|
@@ -18197,6 +18977,19 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
18197
18977
|
};
|
|
18198
18978
|
Returns: undefined;
|
|
18199
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
|
+
};
|
|
18200
18993
|
assign_cart_numbers: {
|
|
18201
18994
|
Args: {
|
|
18202
18995
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -18232,6 +19025,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
18232
19025
|
processed_items: number;
|
|
18233
19026
|
}[];
|
|
18234
19027
|
};
|
|
19028
|
+
backfill_order_auto_invoice_queue: {
|
|
19029
|
+
Args: never;
|
|
19030
|
+
Returns: number;
|
|
19031
|
+
};
|
|
18235
19032
|
calculate_layer_stock: {
|
|
18236
19033
|
Args: {
|
|
18237
19034
|
p_product_id: string;
|
|
@@ -18244,6 +19041,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
18244
19041
|
};
|
|
18245
19042
|
Returns: number;
|
|
18246
19043
|
};
|
|
19044
|
+
can_manage_hours: {
|
|
19045
|
+
Args: never;
|
|
19046
|
+
Returns: boolean;
|
|
19047
|
+
};
|
|
18247
19048
|
check_offer_product_available_stock: {
|
|
18248
19049
|
Args: {
|
|
18249
19050
|
p_campaign_product_id: string;
|
|
@@ -18433,6 +19234,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
18433
19234
|
};
|
|
18434
19235
|
Returns: {
|
|
18435
19236
|
action: string;
|
|
19237
|
+
attempt_started_at: string | null;
|
|
18436
19238
|
attempts: number;
|
|
18437
19239
|
connection_id: string | null;
|
|
18438
19240
|
created_at: string;
|
|
@@ -18462,6 +19264,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
18462
19264
|
Args: never;
|
|
18463
19265
|
Returns: undefined;
|
|
18464
19266
|
};
|
|
19267
|
+
cleanup_voorraad_module_history: {
|
|
19268
|
+
Args: never;
|
|
19269
|
+
Returns: undefined;
|
|
19270
|
+
};
|
|
18465
19271
|
complete_floriday_stock_queue: {
|
|
18466
19272
|
Args: {
|
|
18467
19273
|
p_attempt_id?: string;
|
|
@@ -18516,6 +19322,30 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
18516
19322
|
agent_naam: string;
|
|
18517
19323
|
}[];
|
|
18518
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
|
+
};
|
|
18519
19349
|
control_get_todays_carts: {
|
|
18520
19350
|
Args: never;
|
|
18521
19351
|
Returns: {
|
|
@@ -18583,6 +19413,20 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
18583
19413
|
};
|
|
18584
19414
|
Returns: import("../integrations/supabase/types").Json;
|
|
18585
19415
|
};
|
|
19416
|
+
effective_module_permission: {
|
|
19417
|
+
Args: {
|
|
19418
|
+
_module_id: string;
|
|
19419
|
+
_user_id: string;
|
|
19420
|
+
};
|
|
19421
|
+
Returns: string;
|
|
19422
|
+
} | {
|
|
19423
|
+
Args: {
|
|
19424
|
+
_feature_id: string;
|
|
19425
|
+
_module_id: string;
|
|
19426
|
+
_user_id: string;
|
|
19427
|
+
};
|
|
19428
|
+
Returns: string;
|
|
19429
|
+
};
|
|
18586
19430
|
email_auth_decrypt: {
|
|
18587
19431
|
Args: {
|
|
18588
19432
|
cipher: string;
|
|
@@ -18933,12 +19777,6 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
18933
19777
|
Args: never;
|
|
18934
19778
|
Returns: string;
|
|
18935
19779
|
};
|
|
18936
|
-
get_work_order_tenant_id: {
|
|
18937
|
-
Args: {
|
|
18938
|
-
wo_id: string;
|
|
18939
|
-
};
|
|
18940
|
-
Returns: string;
|
|
18941
|
-
};
|
|
18942
19780
|
has_module_permission: {
|
|
18943
19781
|
Args: {
|
|
18944
19782
|
_min: string;
|
|
@@ -18972,6 +19810,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
18972
19810
|
};
|
|
18973
19811
|
Returns: boolean;
|
|
18974
19812
|
};
|
|
19813
|
+
is_time_log_week_locked: {
|
|
19814
|
+
Args: {
|
|
19815
|
+
p_employee_id: string;
|
|
19816
|
+
p_start_time: string;
|
|
19817
|
+
};
|
|
19818
|
+
Returns: boolean;
|
|
19819
|
+
};
|
|
18975
19820
|
is_user_admin: {
|
|
18976
19821
|
Args: never;
|
|
18977
19822
|
Returns: boolean;
|
|
@@ -18986,13 +19831,14 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
18986
19831
|
};
|
|
18987
19832
|
Returns: boolean;
|
|
18988
19833
|
};
|
|
18989
|
-
|
|
19834
|
+
list_medewerkers: {
|
|
18990
19835
|
Args: never;
|
|
18991
19836
|
Returns: {
|
|
18992
19837
|
avatar_url: string;
|
|
18993
19838
|
display_name: string;
|
|
18994
19839
|
email: string;
|
|
18995
19840
|
id: string;
|
|
19841
|
+
roles: string[];
|
|
18996
19842
|
}[];
|
|
18997
19843
|
};
|
|
18998
19844
|
list_my_planning_items: {
|
|
@@ -19483,6 +20329,65 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
19483
20329
|
};
|
|
19484
20330
|
Returns: number;
|
|
19485
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
|
+
};
|
|
19486
20391
|
logistics_queue_capacity_email: {
|
|
19487
20392
|
Args: {
|
|
19488
20393
|
p_alert_id: string;
|
|
@@ -19721,6 +20626,14 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
19721
20626
|
};
|
|
19722
20627
|
Returns: undefined;
|
|
19723
20628
|
};
|
|
20629
|
+
my_module_permissions: {
|
|
20630
|
+
Args: never;
|
|
20631
|
+
Returns: {
|
|
20632
|
+
feature_id: string;
|
|
20633
|
+
module_id: string;
|
|
20634
|
+
permission: string;
|
|
20635
|
+
}[];
|
|
20636
|
+
};
|
|
19724
20637
|
next_manufacture_partij: {
|
|
19725
20638
|
Args: {
|
|
19726
20639
|
_tenant_id: string;
|
|
@@ -19771,6 +20684,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
19771
20684
|
};
|
|
19772
20685
|
Returns: boolean;
|
|
19773
20686
|
};
|
|
20687
|
+
opruim_print_historie: {
|
|
20688
|
+
Args: never;
|
|
20689
|
+
Returns: {
|
|
20690
|
+
ontdaan: number;
|
|
20691
|
+
verwijderd: number;
|
|
20692
|
+
}[];
|
|
20693
|
+
};
|
|
19774
20694
|
order_number_prefix: {
|
|
19775
20695
|
Args: {
|
|
19776
20696
|
p_custom_fields?: import("../integrations/supabase/types").Json;
|
|
@@ -20165,6 +21085,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
20165
21085
|
};
|
|
20166
21086
|
Returns: undefined;
|
|
20167
21087
|
};
|
|
21088
|
+
reset_stalled_floriday_stock_queue: {
|
|
21089
|
+
Args: {
|
|
21090
|
+
p_include_failed?: boolean;
|
|
21091
|
+
};
|
|
21092
|
+
Returns: number;
|
|
21093
|
+
};
|
|
20168
21094
|
resolve_group_allocation: {
|
|
20169
21095
|
Args: {
|
|
20170
21096
|
_needed: number;
|
|
@@ -20219,10 +21145,18 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
20219
21145
|
Args: never;
|
|
20220
21146
|
Returns: undefined;
|
|
20221
21147
|
};
|
|
21148
|
+
run_floriday_stock_queue_process: {
|
|
21149
|
+
Args: never;
|
|
21150
|
+
Returns: undefined;
|
|
21151
|
+
};
|
|
20222
21152
|
run_logistics_tasks_dispatch: {
|
|
20223
21153
|
Args: never;
|
|
20224
21154
|
Returns: undefined;
|
|
20225
21155
|
};
|
|
21156
|
+
run_print_queue_ticks: {
|
|
21157
|
+
Args: never;
|
|
21158
|
+
Returns: number;
|
|
21159
|
+
};
|
|
20226
21160
|
run_twinfield_queue_tick: {
|
|
20227
21161
|
Args: never;
|
|
20228
21162
|
Returns: undefined;
|
|
@@ -20576,6 +21510,16 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
20576
21510
|
};
|
|
20577
21511
|
Returns: string[];
|
|
20578
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
|
+
};
|
|
20579
21523
|
sync_all_layer_stocks: {
|
|
20580
21524
|
Args: never;
|
|
20581
21525
|
Returns: undefined;
|
|
@@ -20610,6 +21554,15 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
20610
21554
|
};
|
|
20611
21555
|
Returns: undefined;
|
|
20612
21556
|
};
|
|
21557
|
+
trade_item_stock_duplicates: {
|
|
21558
|
+
Args: never;
|
|
21559
|
+
Returns: {
|
|
21560
|
+
keys: string[];
|
|
21561
|
+
product_id: string;
|
|
21562
|
+
product_name: string;
|
|
21563
|
+
row_count: number;
|
|
21564
|
+
}[];
|
|
21565
|
+
};
|
|
20613
21566
|
try_debtor_lock: {
|
|
20614
21567
|
Args: {
|
|
20615
21568
|
_group_key: string;
|
|
@@ -20617,6 +21570,24 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
20617
21570
|
};
|
|
20618
21571
|
Returns: boolean;
|
|
20619
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
|
+
};
|
|
20620
21591
|
twinfield_register_cron: {
|
|
20621
21592
|
Args: {
|
|
20622
21593
|
apikey?: string;
|
|
@@ -21560,6 +22531,126 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
21560
22531
|
};
|
|
21561
22532
|
Relationships: [];
|
|
21562
22533
|
};
|
|
22534
|
+
cao_holidays: {
|
|
22535
|
+
Row: {
|
|
22536
|
+
created_at: string;
|
|
22537
|
+
description: string | null;
|
|
22538
|
+
holiday_date: string;
|
|
22539
|
+
id: string;
|
|
22540
|
+
updated_at: string;
|
|
22541
|
+
};
|
|
22542
|
+
Insert: {
|
|
22543
|
+
created_at?: string;
|
|
22544
|
+
description?: string | null;
|
|
22545
|
+
holiday_date: string;
|
|
22546
|
+
id?: string;
|
|
22547
|
+
updated_at?: string;
|
|
22548
|
+
};
|
|
22549
|
+
Update: {
|
|
22550
|
+
created_at?: string;
|
|
22551
|
+
description?: string | null;
|
|
22552
|
+
holiday_date?: string;
|
|
22553
|
+
id?: string;
|
|
22554
|
+
updated_at?: string;
|
|
22555
|
+
};
|
|
22556
|
+
Relationships: [];
|
|
22557
|
+
};
|
|
22558
|
+
cao_settings: {
|
|
22559
|
+
Row: {
|
|
22560
|
+
auto_break_after_hours: number;
|
|
22561
|
+
auto_break_minutes: number;
|
|
22562
|
+
auto_break_unpaid: boolean;
|
|
22563
|
+
auto_stop_after_hours: number;
|
|
22564
|
+
callout_fee: number;
|
|
22565
|
+
created_at: string;
|
|
22566
|
+
daily_regular_hours: number;
|
|
22567
|
+
default_hourly_rate: number;
|
|
22568
|
+
id: string;
|
|
22569
|
+
materials_markup_percent: number;
|
|
22570
|
+
max_daily_hours: number;
|
|
22571
|
+
max_weekly_hours: number;
|
|
22572
|
+
meal_allowance_amount: number;
|
|
22573
|
+
overtime_pct_178: number;
|
|
22574
|
+
overtime_pct_189: number;
|
|
22575
|
+
overtime_pct_212: number;
|
|
22576
|
+
reminder_after_hours: number;
|
|
22577
|
+
standby_evening_amount: number;
|
|
22578
|
+
standby_weekend_amount: number;
|
|
22579
|
+
travel_cost_per_km: number | null;
|
|
22580
|
+
travel_cost_threshold_km: number | null;
|
|
22581
|
+
travel_counts_as_work: boolean;
|
|
22582
|
+
travel_hourly_rate: number;
|
|
22583
|
+
travel_rate_per_hour: number;
|
|
22584
|
+
travel_threshold_minutes: number;
|
|
22585
|
+
updated_at: string;
|
|
22586
|
+
weekend_always_212: boolean;
|
|
22587
|
+
window_end: string;
|
|
22588
|
+
window_start: string;
|
|
22589
|
+
};
|
|
22590
|
+
Insert: {
|
|
22591
|
+
auto_break_after_hours?: number;
|
|
22592
|
+
auto_break_minutes?: number;
|
|
22593
|
+
auto_break_unpaid?: boolean;
|
|
22594
|
+
auto_stop_after_hours?: number;
|
|
22595
|
+
callout_fee?: number;
|
|
22596
|
+
created_at?: string;
|
|
22597
|
+
daily_regular_hours?: number;
|
|
22598
|
+
default_hourly_rate?: number;
|
|
22599
|
+
id?: string;
|
|
22600
|
+
materials_markup_percent?: number;
|
|
22601
|
+
max_daily_hours?: number;
|
|
22602
|
+
max_weekly_hours?: number;
|
|
22603
|
+
meal_allowance_amount?: number;
|
|
22604
|
+
overtime_pct_178?: number;
|
|
22605
|
+
overtime_pct_189?: number;
|
|
22606
|
+
overtime_pct_212?: number;
|
|
22607
|
+
reminder_after_hours?: number;
|
|
22608
|
+
standby_evening_amount?: number;
|
|
22609
|
+
standby_weekend_amount?: number;
|
|
22610
|
+
travel_cost_per_km?: number | null;
|
|
22611
|
+
travel_cost_threshold_km?: number | null;
|
|
22612
|
+
travel_counts_as_work?: boolean;
|
|
22613
|
+
travel_hourly_rate?: number;
|
|
22614
|
+
travel_rate_per_hour?: number;
|
|
22615
|
+
travel_threshold_minutes?: number;
|
|
22616
|
+
updated_at?: string;
|
|
22617
|
+
weekend_always_212?: boolean;
|
|
22618
|
+
window_end?: string;
|
|
22619
|
+
window_start?: string;
|
|
22620
|
+
};
|
|
22621
|
+
Update: {
|
|
22622
|
+
auto_break_after_hours?: number;
|
|
22623
|
+
auto_break_minutes?: number;
|
|
22624
|
+
auto_break_unpaid?: boolean;
|
|
22625
|
+
auto_stop_after_hours?: number;
|
|
22626
|
+
callout_fee?: number;
|
|
22627
|
+
created_at?: string;
|
|
22628
|
+
daily_regular_hours?: number;
|
|
22629
|
+
default_hourly_rate?: number;
|
|
22630
|
+
id?: string;
|
|
22631
|
+
materials_markup_percent?: number;
|
|
22632
|
+
max_daily_hours?: number;
|
|
22633
|
+
max_weekly_hours?: number;
|
|
22634
|
+
meal_allowance_amount?: number;
|
|
22635
|
+
overtime_pct_178?: number;
|
|
22636
|
+
overtime_pct_189?: number;
|
|
22637
|
+
overtime_pct_212?: number;
|
|
22638
|
+
reminder_after_hours?: number;
|
|
22639
|
+
standby_evening_amount?: number;
|
|
22640
|
+
standby_weekend_amount?: number;
|
|
22641
|
+
travel_cost_per_km?: number | null;
|
|
22642
|
+
travel_cost_threshold_km?: number | null;
|
|
22643
|
+
travel_counts_as_work?: boolean;
|
|
22644
|
+
travel_hourly_rate?: number;
|
|
22645
|
+
travel_rate_per_hour?: number;
|
|
22646
|
+
travel_threshold_minutes?: number;
|
|
22647
|
+
updated_at?: string;
|
|
22648
|
+
weekend_always_212?: boolean;
|
|
22649
|
+
window_end?: string;
|
|
22650
|
+
window_start?: string;
|
|
22651
|
+
};
|
|
22652
|
+
Relationships: [];
|
|
22653
|
+
};
|
|
21563
22654
|
carrier_shipping_rates: {
|
|
21564
22655
|
Row: {
|
|
21565
22656
|
carrier_id: string;
|
|
@@ -22372,7 +23463,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
22372
23463
|
city: string | null;
|
|
22373
23464
|
country: string | null;
|
|
22374
23465
|
created_at: string;
|
|
22375
|
-
customer_id: string
|
|
23466
|
+
customer_id: string;
|
|
22376
23467
|
external_key: string | null;
|
|
22377
23468
|
external_provider: string | null;
|
|
22378
23469
|
floriday_location_id: string | null;
|
|
@@ -22396,7 +23487,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
22396
23487
|
city?: string | null;
|
|
22397
23488
|
country?: string | null;
|
|
22398
23489
|
created_at?: string;
|
|
22399
|
-
customer_id
|
|
23490
|
+
customer_id: string;
|
|
22400
23491
|
external_key?: string | null;
|
|
22401
23492
|
external_provider?: string | null;
|
|
22402
23493
|
floriday_location_id?: string | null;
|
|
@@ -22420,7 +23511,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
22420
23511
|
city?: string | null;
|
|
22421
23512
|
country?: string | null;
|
|
22422
23513
|
created_at?: string;
|
|
22423
|
-
customer_id?: string
|
|
23514
|
+
customer_id?: string;
|
|
22424
23515
|
external_key?: string | null;
|
|
22425
23516
|
external_provider?: string | null;
|
|
22426
23517
|
floriday_location_id?: string | null;
|
|
@@ -27168,6 +28259,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
27168
28259
|
Row: {
|
|
27169
28260
|
buyer_organization_id: string | null;
|
|
27170
28261
|
connection_id: string;
|
|
28262
|
+
controlled_at: string | null;
|
|
27171
28263
|
created_at: string;
|
|
27172
28264
|
data: import("../integrations/supabase/types").Json;
|
|
27173
28265
|
floriday_id: string;
|
|
@@ -27179,6 +28271,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
27179
28271
|
Insert: {
|
|
27180
28272
|
buyer_organization_id?: string | null;
|
|
27181
28273
|
connection_id: string;
|
|
28274
|
+
controlled_at?: string | null;
|
|
27182
28275
|
created_at?: string;
|
|
27183
28276
|
data: import("../integrations/supabase/types").Json;
|
|
27184
28277
|
floriday_id: string;
|
|
@@ -27190,6 +28283,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
27190
28283
|
Update: {
|
|
27191
28284
|
buyer_organization_id?: string | null;
|
|
27192
28285
|
connection_id?: string;
|
|
28286
|
+
controlled_at?: string | null;
|
|
27193
28287
|
created_at?: string;
|
|
27194
28288
|
data?: import("../integrations/supabase/types").Json;
|
|
27195
28289
|
floriday_id?: string;
|
|
@@ -28091,6 +29185,54 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
28091
29185
|
};
|
|
28092
29186
|
Relationships: [];
|
|
28093
29187
|
};
|
|
29188
|
+
invoice_timing_settings: {
|
|
29189
|
+
Row: {
|
|
29190
|
+
anchor: string;
|
|
29191
|
+
business_days_only: boolean;
|
|
29192
|
+
created_at: string;
|
|
29193
|
+
enabled: boolean;
|
|
29194
|
+
id: string;
|
|
29195
|
+
offset_days: number;
|
|
29196
|
+
pickup_anchor: string;
|
|
29197
|
+
pickup_business_days_only: boolean;
|
|
29198
|
+
pickup_offset_days: number;
|
|
29199
|
+
pickup_time_of_day: string;
|
|
29200
|
+
singleton: boolean;
|
|
29201
|
+
time_of_day: string;
|
|
29202
|
+
updated_at: string;
|
|
29203
|
+
};
|
|
29204
|
+
Insert: {
|
|
29205
|
+
anchor?: string;
|
|
29206
|
+
business_days_only?: boolean;
|
|
29207
|
+
created_at?: string;
|
|
29208
|
+
enabled?: boolean;
|
|
29209
|
+
id?: string;
|
|
29210
|
+
offset_days?: number;
|
|
29211
|
+
pickup_anchor?: string;
|
|
29212
|
+
pickup_business_days_only?: boolean;
|
|
29213
|
+
pickup_offset_days?: number;
|
|
29214
|
+
pickup_time_of_day?: string;
|
|
29215
|
+
singleton?: boolean;
|
|
29216
|
+
time_of_day?: string;
|
|
29217
|
+
updated_at?: string;
|
|
29218
|
+
};
|
|
29219
|
+
Update: {
|
|
29220
|
+
anchor?: string;
|
|
29221
|
+
business_days_only?: boolean;
|
|
29222
|
+
created_at?: string;
|
|
29223
|
+
enabled?: boolean;
|
|
29224
|
+
id?: string;
|
|
29225
|
+
offset_days?: number;
|
|
29226
|
+
pickup_anchor?: string;
|
|
29227
|
+
pickup_business_days_only?: boolean;
|
|
29228
|
+
pickup_offset_days?: number;
|
|
29229
|
+
pickup_time_of_day?: string;
|
|
29230
|
+
singleton?: boolean;
|
|
29231
|
+
time_of_day?: string;
|
|
29232
|
+
updated_at?: string;
|
|
29233
|
+
};
|
|
29234
|
+
Relationships: [];
|
|
29235
|
+
};
|
|
28094
29236
|
itk_contact_persons: {
|
|
28095
29237
|
Row: {
|
|
28096
29238
|
created_at: string;
|
|
@@ -28403,7 +29545,6 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
28403
29545
|
start_date: string;
|
|
28404
29546
|
start_time: string | null;
|
|
28405
29547
|
status: string;
|
|
28406
|
-
tenant_id: string;
|
|
28407
29548
|
updated_at: string;
|
|
28408
29549
|
user_id: string;
|
|
28409
29550
|
};
|
|
@@ -28421,7 +29562,6 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
28421
29562
|
start_date: string;
|
|
28422
29563
|
start_time?: string | null;
|
|
28423
29564
|
status?: string;
|
|
28424
|
-
tenant_id?: string;
|
|
28425
29565
|
updated_at?: string;
|
|
28426
29566
|
user_id: string;
|
|
28427
29567
|
};
|
|
@@ -28439,7 +29579,6 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
28439
29579
|
start_date?: string;
|
|
28440
29580
|
start_time?: string | null;
|
|
28441
29581
|
status?: string;
|
|
28442
|
-
tenant_id?: string;
|
|
28443
29582
|
updated_at?: string;
|
|
28444
29583
|
user_id?: string;
|
|
28445
29584
|
};
|
|
@@ -28447,13 +29586,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
28447
29586
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
28448
29587
|
columns: ["monteur_id"];
|
|
28449
29588
|
isOneToOne: false;
|
|
28450
|
-
referencedRelation: "
|
|
29589
|
+
referencedRelation: "profiles";
|
|
28451
29590
|
referencedColumns: ["id"];
|
|
28452
29591
|
}, {
|
|
28453
29592
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
28454
29593
|
columns: ["user_id"];
|
|
28455
29594
|
isOneToOne: false;
|
|
28456
|
-
referencedRelation: "
|
|
29595
|
+
referencedRelation: "profiles";
|
|
28457
29596
|
referencedColumns: ["id"];
|
|
28458
29597
|
}];
|
|
28459
29598
|
};
|
|
@@ -29321,6 +30460,45 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
29321
30460
|
};
|
|
29322
30461
|
Relationships: [];
|
|
29323
30462
|
};
|
|
30463
|
+
logistics_plan_queue: {
|
|
30464
|
+
Row: {
|
|
30465
|
+
attempts: number;
|
|
30466
|
+
claimed_at: string | null;
|
|
30467
|
+
enqueued_at: string;
|
|
30468
|
+
error: string | null;
|
|
30469
|
+
id: string;
|
|
30470
|
+
next_attempt_at: string;
|
|
30471
|
+
order_id: string;
|
|
30472
|
+
reason: string;
|
|
30473
|
+
status: string;
|
|
30474
|
+
updated_at: string;
|
|
30475
|
+
};
|
|
30476
|
+
Insert: {
|
|
30477
|
+
attempts?: number;
|
|
30478
|
+
claimed_at?: string | null;
|
|
30479
|
+
enqueued_at?: string;
|
|
30480
|
+
error?: string | null;
|
|
30481
|
+
id?: string;
|
|
30482
|
+
next_attempt_at?: string;
|
|
30483
|
+
order_id: string;
|
|
30484
|
+
reason?: string;
|
|
30485
|
+
status?: string;
|
|
30486
|
+
updated_at?: string;
|
|
30487
|
+
};
|
|
30488
|
+
Update: {
|
|
30489
|
+
attempts?: number;
|
|
30490
|
+
claimed_at?: string | null;
|
|
30491
|
+
enqueued_at?: string;
|
|
30492
|
+
error?: string | null;
|
|
30493
|
+
id?: string;
|
|
30494
|
+
next_attempt_at?: string;
|
|
30495
|
+
order_id?: string;
|
|
30496
|
+
reason?: string;
|
|
30497
|
+
status?: string;
|
|
30498
|
+
updated_at?: string;
|
|
30499
|
+
};
|
|
30500
|
+
Relationships: [];
|
|
30501
|
+
};
|
|
29324
30502
|
logistics_plan_runs: {
|
|
29325
30503
|
Row: {
|
|
29326
30504
|
created_at: string;
|
|
@@ -29396,6 +30574,24 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
29396
30574
|
referencedColumns: ["id"];
|
|
29397
30575
|
}];
|
|
29398
30576
|
};
|
|
30577
|
+
logistics_plan_settings: {
|
|
30578
|
+
Row: {
|
|
30579
|
+
key: string;
|
|
30580
|
+
updated_at: string;
|
|
30581
|
+
value: string;
|
|
30582
|
+
};
|
|
30583
|
+
Insert: {
|
|
30584
|
+
key: string;
|
|
30585
|
+
updated_at?: string;
|
|
30586
|
+
value: string;
|
|
30587
|
+
};
|
|
30588
|
+
Update: {
|
|
30589
|
+
key?: string;
|
|
30590
|
+
updated_at?: string;
|
|
30591
|
+
value?: string;
|
|
30592
|
+
};
|
|
30593
|
+
Relationships: [];
|
|
30594
|
+
};
|
|
29399
30595
|
logistics_rebuffer_state: {
|
|
29400
30596
|
Row: {
|
|
29401
30597
|
created_at: string;
|
|
@@ -30106,14 +31302,17 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
30106
31302
|
};
|
|
30107
31303
|
mailbox_messages: {
|
|
30108
31304
|
Row: {
|
|
31305
|
+
attachments: import("../integrations/supabase/types").Json;
|
|
30109
31306
|
body_html: string | null;
|
|
30110
31307
|
body_text: string | null;
|
|
31308
|
+
cc_recipients: import("../integrations/supabase/types").Json;
|
|
30111
31309
|
connection_id: string | null;
|
|
30112
31310
|
created_at: string;
|
|
30113
31311
|
error_message: string | null;
|
|
30114
31312
|
external_id: string | null;
|
|
30115
31313
|
from_email: string | null;
|
|
30116
31314
|
from_name: string | null;
|
|
31315
|
+
has_attachments: boolean;
|
|
30117
31316
|
id: string;
|
|
30118
31317
|
message_id: string | null;
|
|
30119
31318
|
profile_id: string | null;
|
|
@@ -30121,18 +31320,22 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
30121
31320
|
received_at: string | null;
|
|
30122
31321
|
status: string;
|
|
30123
31322
|
subject: string | null;
|
|
31323
|
+
to_recipients: import("../integrations/supabase/types").Json;
|
|
30124
31324
|
uid: number | null;
|
|
30125
31325
|
updated_at: string;
|
|
30126
31326
|
};
|
|
30127
31327
|
Insert: {
|
|
31328
|
+
attachments?: import("../integrations/supabase/types").Json;
|
|
30128
31329
|
body_html?: string | null;
|
|
30129
31330
|
body_text?: string | null;
|
|
31331
|
+
cc_recipients?: import("../integrations/supabase/types").Json;
|
|
30130
31332
|
connection_id?: string | null;
|
|
30131
31333
|
created_at?: string;
|
|
30132
31334
|
error_message?: string | null;
|
|
30133
31335
|
external_id?: string | null;
|
|
30134
31336
|
from_email?: string | null;
|
|
30135
31337
|
from_name?: string | null;
|
|
31338
|
+
has_attachments?: boolean;
|
|
30136
31339
|
id?: string;
|
|
30137
31340
|
message_id?: string | null;
|
|
30138
31341
|
profile_id?: string | null;
|
|
@@ -30140,18 +31343,22 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
30140
31343
|
received_at?: string | null;
|
|
30141
31344
|
status?: string;
|
|
30142
31345
|
subject?: string | null;
|
|
31346
|
+
to_recipients?: import("../integrations/supabase/types").Json;
|
|
30143
31347
|
uid?: number | null;
|
|
30144
31348
|
updated_at?: string;
|
|
30145
31349
|
};
|
|
30146
31350
|
Update: {
|
|
31351
|
+
attachments?: import("../integrations/supabase/types").Json;
|
|
30147
31352
|
body_html?: string | null;
|
|
30148
31353
|
body_text?: string | null;
|
|
31354
|
+
cc_recipients?: import("../integrations/supabase/types").Json;
|
|
30149
31355
|
connection_id?: string | null;
|
|
30150
31356
|
created_at?: string;
|
|
30151
31357
|
error_message?: string | null;
|
|
30152
31358
|
external_id?: string | null;
|
|
30153
31359
|
from_email?: string | null;
|
|
30154
31360
|
from_name?: string | null;
|
|
31361
|
+
has_attachments?: boolean;
|
|
30155
31362
|
id?: string;
|
|
30156
31363
|
message_id?: string | null;
|
|
30157
31364
|
profile_id?: string | null;
|
|
@@ -30159,6 +31366,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
30159
31366
|
received_at?: string | null;
|
|
30160
31367
|
status?: string;
|
|
30161
31368
|
subject?: string | null;
|
|
31369
|
+
to_recipients?: import("../integrations/supabase/types").Json;
|
|
30162
31370
|
uid?: number | null;
|
|
30163
31371
|
updated_at?: string;
|
|
30164
31372
|
};
|
|
@@ -30539,6 +31747,90 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
30539
31747
|
};
|
|
30540
31748
|
Relationships: [];
|
|
30541
31749
|
};
|
|
31750
|
+
material_usage: {
|
|
31751
|
+
Row: {
|
|
31752
|
+
created_at: string;
|
|
31753
|
+
id: string;
|
|
31754
|
+
material_name: string;
|
|
31755
|
+
monteur_id: string | null;
|
|
31756
|
+
price_at_time: number;
|
|
31757
|
+
quantity_used: number;
|
|
31758
|
+
updated_at: string;
|
|
31759
|
+
van_inventory_id: string | null;
|
|
31760
|
+
work_order_id: string;
|
|
31761
|
+
};
|
|
31762
|
+
Insert: {
|
|
31763
|
+
created_at?: string;
|
|
31764
|
+
id?: string;
|
|
31765
|
+
material_name: string;
|
|
31766
|
+
monteur_id?: string | null;
|
|
31767
|
+
price_at_time?: number;
|
|
31768
|
+
quantity_used?: number;
|
|
31769
|
+
updated_at?: string;
|
|
31770
|
+
van_inventory_id?: string | null;
|
|
31771
|
+
work_order_id: string;
|
|
31772
|
+
};
|
|
31773
|
+
Update: {
|
|
31774
|
+
created_at?: string;
|
|
31775
|
+
id?: string;
|
|
31776
|
+
material_name?: string;
|
|
31777
|
+
monteur_id?: string | null;
|
|
31778
|
+
price_at_time?: number;
|
|
31779
|
+
quantity_used?: number;
|
|
31780
|
+
updated_at?: string;
|
|
31781
|
+
van_inventory_id?: string | null;
|
|
31782
|
+
work_order_id?: string;
|
|
31783
|
+
};
|
|
31784
|
+
Relationships: [{
|
|
31785
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
31786
|
+
columns: ["monteur_id"];
|
|
31787
|
+
isOneToOne: false;
|
|
31788
|
+
referencedRelation: "profiles";
|
|
31789
|
+
referencedColumns: ["id"];
|
|
31790
|
+
}, {
|
|
31791
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
31792
|
+
columns: ["van_inventory_id"];
|
|
31793
|
+
isOneToOne: false;
|
|
31794
|
+
referencedRelation: "van_inventories";
|
|
31795
|
+
referencedColumns: ["id"];
|
|
31796
|
+
}, {
|
|
31797
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
31798
|
+
columns: ["work_order_id"];
|
|
31799
|
+
isOneToOne: false;
|
|
31800
|
+
referencedRelation: "work_orders";
|
|
31801
|
+
referencedColumns: ["id"];
|
|
31802
|
+
}];
|
|
31803
|
+
};
|
|
31804
|
+
module_features: {
|
|
31805
|
+
Row: {
|
|
31806
|
+
created_at: string;
|
|
31807
|
+
feature_id: string;
|
|
31808
|
+
id: string;
|
|
31809
|
+
is_active: boolean;
|
|
31810
|
+
last_seen_at: string;
|
|
31811
|
+
module_id: string;
|
|
31812
|
+
name: string;
|
|
31813
|
+
};
|
|
31814
|
+
Insert: {
|
|
31815
|
+
created_at?: string;
|
|
31816
|
+
feature_id: string;
|
|
31817
|
+
id?: string;
|
|
31818
|
+
is_active?: boolean;
|
|
31819
|
+
last_seen_at?: string;
|
|
31820
|
+
module_id: string;
|
|
31821
|
+
name: string;
|
|
31822
|
+
};
|
|
31823
|
+
Update: {
|
|
31824
|
+
created_at?: string;
|
|
31825
|
+
feature_id?: string;
|
|
31826
|
+
id?: string;
|
|
31827
|
+
is_active?: boolean;
|
|
31828
|
+
last_seen_at?: string;
|
|
31829
|
+
module_id?: string;
|
|
31830
|
+
name?: string;
|
|
31831
|
+
};
|
|
31832
|
+
Relationships: [];
|
|
31833
|
+
};
|
|
30542
31834
|
module_permissions: {
|
|
30543
31835
|
Row: {
|
|
30544
31836
|
created_at: string;
|
|
@@ -30566,6 +31858,39 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
30566
31858
|
};
|
|
30567
31859
|
Relationships: [];
|
|
30568
31860
|
};
|
|
31861
|
+
module_registry: {
|
|
31862
|
+
Row: {
|
|
31863
|
+
created_at: string;
|
|
31864
|
+
enforce: boolean;
|
|
31865
|
+
is_active: boolean;
|
|
31866
|
+
last_seen_at: string;
|
|
31867
|
+
module_id: string;
|
|
31868
|
+
name: string;
|
|
31869
|
+
shell_id: string | null;
|
|
31870
|
+
sort_order: number | null;
|
|
31871
|
+
};
|
|
31872
|
+
Insert: {
|
|
31873
|
+
created_at?: string;
|
|
31874
|
+
enforce?: boolean;
|
|
31875
|
+
is_active?: boolean;
|
|
31876
|
+
last_seen_at?: string;
|
|
31877
|
+
module_id: string;
|
|
31878
|
+
name: string;
|
|
31879
|
+
shell_id?: string | null;
|
|
31880
|
+
sort_order?: number | null;
|
|
31881
|
+
};
|
|
31882
|
+
Update: {
|
|
31883
|
+
created_at?: string;
|
|
31884
|
+
enforce?: boolean;
|
|
31885
|
+
is_active?: boolean;
|
|
31886
|
+
last_seen_at?: string;
|
|
31887
|
+
module_id?: string;
|
|
31888
|
+
name?: string;
|
|
31889
|
+
shell_id?: string | null;
|
|
31890
|
+
sort_order?: number | null;
|
|
31891
|
+
};
|
|
31892
|
+
Relationships: [];
|
|
31893
|
+
};
|
|
30569
31894
|
module_runtime_config: {
|
|
30570
31895
|
Row: {
|
|
30571
31896
|
key: string;
|
|
@@ -30617,63 +31942,6 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
30617
31942
|
};
|
|
30618
31943
|
Relationships: [];
|
|
30619
31944
|
};
|
|
30620
|
-
monteurs: {
|
|
30621
|
-
Row: {
|
|
30622
|
-
avatar_url: string | null;
|
|
30623
|
-
color: string | null;
|
|
30624
|
-
created_at: string;
|
|
30625
|
-
email: string | null;
|
|
30626
|
-
id: string;
|
|
30627
|
-
is_active: boolean;
|
|
30628
|
-
leave_balance_hours: number;
|
|
30629
|
-
name: string;
|
|
30630
|
-
persnr: number | null;
|
|
30631
|
-
phone: string | null;
|
|
30632
|
-
role: string;
|
|
30633
|
-
tenant_id: string;
|
|
30634
|
-
updated_at: string;
|
|
30635
|
-
user_id: string | null;
|
|
30636
|
-
};
|
|
30637
|
-
Insert: {
|
|
30638
|
-
avatar_url?: string | null;
|
|
30639
|
-
color?: string | null;
|
|
30640
|
-
created_at?: string;
|
|
30641
|
-
email?: string | null;
|
|
30642
|
-
id?: string;
|
|
30643
|
-
is_active?: boolean;
|
|
30644
|
-
leave_balance_hours?: number;
|
|
30645
|
-
name: string;
|
|
30646
|
-
persnr?: number | null;
|
|
30647
|
-
phone?: string | null;
|
|
30648
|
-
role?: string;
|
|
30649
|
-
tenant_id: string;
|
|
30650
|
-
updated_at?: string;
|
|
30651
|
-
user_id?: string | null;
|
|
30652
|
-
};
|
|
30653
|
-
Update: {
|
|
30654
|
-
avatar_url?: string | null;
|
|
30655
|
-
color?: string | null;
|
|
30656
|
-
created_at?: string;
|
|
30657
|
-
email?: string | null;
|
|
30658
|
-
id?: string;
|
|
30659
|
-
is_active?: boolean;
|
|
30660
|
-
leave_balance_hours?: number;
|
|
30661
|
-
name?: string;
|
|
30662
|
-
persnr?: number | null;
|
|
30663
|
-
phone?: string | null;
|
|
30664
|
-
role?: string;
|
|
30665
|
-
tenant_id?: string;
|
|
30666
|
-
updated_at?: string;
|
|
30667
|
-
user_id?: string | null;
|
|
30668
|
-
};
|
|
30669
|
-
Relationships: [{
|
|
30670
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
30671
|
-
columns: ["tenant_id"];
|
|
30672
|
-
isOneToOne: false;
|
|
30673
|
-
referencedRelation: "tenants";
|
|
30674
|
-
referencedColumns: ["id"];
|
|
30675
|
-
}];
|
|
30676
|
-
};
|
|
30677
31945
|
nmbrs_component_mapping: {
|
|
30678
31946
|
Row: {
|
|
30679
31947
|
created_at: string;
|
|
@@ -30744,13 +32012,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
30744
32012
|
nmbrs_employee_number?: string;
|
|
30745
32013
|
updated_at?: string;
|
|
30746
32014
|
};
|
|
30747
|
-
Relationships: [
|
|
30748
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
30749
|
-
columns: ["monteur_id"];
|
|
30750
|
-
isOneToOne: true;
|
|
30751
|
-
referencedRelation: "monteurs";
|
|
30752
|
-
referencedColumns: ["id"];
|
|
30753
|
-
}];
|
|
32015
|
+
Relationships: [];
|
|
30754
32016
|
};
|
|
30755
32017
|
nmbrs_export_lines: {
|
|
30756
32018
|
Row: {
|
|
@@ -30799,12 +32061,6 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
30799
32061
|
wage_code?: string;
|
|
30800
32062
|
};
|
|
30801
32063
|
Relationships: [{
|
|
30802
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
30803
|
-
columns: ["monteur_id"];
|
|
30804
|
-
isOneToOne: false;
|
|
30805
|
-
referencedRelation: "monteurs";
|
|
30806
|
-
referencedColumns: ["id"];
|
|
30807
|
-
}, {
|
|
30808
32064
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
30809
32065
|
columns: ["run_id"];
|
|
30810
32066
|
isOneToOne: false;
|
|
@@ -31625,6 +32881,45 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
31625
32881
|
};
|
|
31626
32882
|
Relationships: [];
|
|
31627
32883
|
};
|
|
32884
|
+
order_invoice_links: {
|
|
32885
|
+
Row: {
|
|
32886
|
+
attempts: number;
|
|
32887
|
+
created_at: string;
|
|
32888
|
+
error_message: string | null;
|
|
32889
|
+
id: string;
|
|
32890
|
+
invoice_number: string | null;
|
|
32891
|
+
next_attempt_at: string;
|
|
32892
|
+
order_id: string;
|
|
32893
|
+
processed_at: string | null;
|
|
32894
|
+
status: string;
|
|
32895
|
+
updated_at: string;
|
|
32896
|
+
};
|
|
32897
|
+
Insert: {
|
|
32898
|
+
attempts?: number;
|
|
32899
|
+
created_at?: string;
|
|
32900
|
+
error_message?: string | null;
|
|
32901
|
+
id?: string;
|
|
32902
|
+
invoice_number?: string | null;
|
|
32903
|
+
next_attempt_at?: string;
|
|
32904
|
+
order_id: string;
|
|
32905
|
+
processed_at?: string | null;
|
|
32906
|
+
status?: string;
|
|
32907
|
+
updated_at?: string;
|
|
32908
|
+
};
|
|
32909
|
+
Update: {
|
|
32910
|
+
attempts?: number;
|
|
32911
|
+
created_at?: string;
|
|
32912
|
+
error_message?: string | null;
|
|
32913
|
+
id?: string;
|
|
32914
|
+
invoice_number?: string | null;
|
|
32915
|
+
next_attempt_at?: string;
|
|
32916
|
+
order_id?: string;
|
|
32917
|
+
processed_at?: string | null;
|
|
32918
|
+
status?: string;
|
|
32919
|
+
updated_at?: string;
|
|
32920
|
+
};
|
|
32921
|
+
Relationships: [];
|
|
32922
|
+
};
|
|
31628
32923
|
order_items: {
|
|
31629
32924
|
Row: {
|
|
31630
32925
|
crates_per_layer: number | null;
|
|
@@ -31807,6 +33102,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
31807
33102
|
delivery_date: string | null;
|
|
31808
33103
|
floriday_sales_order_id: string | null;
|
|
31809
33104
|
id: string;
|
|
33105
|
+
invoice_due_at: string | null;
|
|
31810
33106
|
is_reservation: boolean;
|
|
31811
33107
|
notes: string | null;
|
|
31812
33108
|
order_date: string;
|
|
@@ -31828,6 +33124,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
31828
33124
|
delivery_date?: string | null;
|
|
31829
33125
|
floriday_sales_order_id?: string | null;
|
|
31830
33126
|
id?: string;
|
|
33127
|
+
invoice_due_at?: string | null;
|
|
31831
33128
|
is_reservation?: boolean;
|
|
31832
33129
|
notes?: string | null;
|
|
31833
33130
|
order_date?: string;
|
|
@@ -31849,6 +33146,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
31849
33146
|
delivery_date?: string | null;
|
|
31850
33147
|
floriday_sales_order_id?: string | null;
|
|
31851
33148
|
id?: string;
|
|
33149
|
+
invoice_due_at?: string | null;
|
|
31852
33150
|
is_reservation?: boolean;
|
|
31853
33151
|
notes?: string | null;
|
|
31854
33152
|
order_date?: string;
|
|
@@ -33146,6 +34444,72 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
33146
34444
|
referencedColumns: ["id"];
|
|
33147
34445
|
}];
|
|
33148
34446
|
};
|
|
34447
|
+
print_queue_runners: {
|
|
34448
|
+
Row: {
|
|
34449
|
+
actief: boolean;
|
|
34450
|
+
basis_url: string;
|
|
34451
|
+
created_at: string;
|
|
34452
|
+
id: string;
|
|
34453
|
+
laatst_gezien: string;
|
|
34454
|
+
laatste_fout: string | null;
|
|
34455
|
+
laatste_request_id: number | null;
|
|
34456
|
+
mislukte_posts: number;
|
|
34457
|
+
tick_sleutel: string;
|
|
34458
|
+
updated_at: string;
|
|
34459
|
+
};
|
|
34460
|
+
Insert: {
|
|
34461
|
+
actief?: boolean;
|
|
34462
|
+
basis_url: string;
|
|
34463
|
+
created_at?: string;
|
|
34464
|
+
id?: string;
|
|
34465
|
+
laatst_gezien?: string;
|
|
34466
|
+
laatste_fout?: string | null;
|
|
34467
|
+
laatste_request_id?: number | null;
|
|
34468
|
+
mislukte_posts?: number;
|
|
34469
|
+
tick_sleutel?: string;
|
|
34470
|
+
updated_at?: string;
|
|
34471
|
+
};
|
|
34472
|
+
Update: {
|
|
34473
|
+
actief?: boolean;
|
|
34474
|
+
basis_url?: string;
|
|
34475
|
+
created_at?: string;
|
|
34476
|
+
id?: string;
|
|
34477
|
+
laatst_gezien?: string;
|
|
34478
|
+
laatste_fout?: string | null;
|
|
34479
|
+
laatste_request_id?: number | null;
|
|
34480
|
+
mislukte_posts?: number;
|
|
34481
|
+
tick_sleutel?: string;
|
|
34482
|
+
updated_at?: string;
|
|
34483
|
+
};
|
|
34484
|
+
Relationships: [];
|
|
34485
|
+
};
|
|
34486
|
+
print_queue_settings: {
|
|
34487
|
+
Row: {
|
|
34488
|
+
bewaar_bestanden_dagen: number;
|
|
34489
|
+
bewaar_opdrachten_dagen: number;
|
|
34490
|
+
created_at: string;
|
|
34491
|
+
dubbel_venster_minuten: number;
|
|
34492
|
+
id: string;
|
|
34493
|
+
updated_at: string;
|
|
34494
|
+
};
|
|
34495
|
+
Insert: {
|
|
34496
|
+
bewaar_bestanden_dagen?: number;
|
|
34497
|
+
bewaar_opdrachten_dagen?: number;
|
|
34498
|
+
created_at?: string;
|
|
34499
|
+
dubbel_venster_minuten?: number;
|
|
34500
|
+
id?: string;
|
|
34501
|
+
updated_at?: string;
|
|
34502
|
+
};
|
|
34503
|
+
Update: {
|
|
34504
|
+
bewaar_bestanden_dagen?: number;
|
|
34505
|
+
bewaar_opdrachten_dagen?: number;
|
|
34506
|
+
created_at?: string;
|
|
34507
|
+
dubbel_venster_minuten?: number;
|
|
34508
|
+
id?: string;
|
|
34509
|
+
updated_at?: string;
|
|
34510
|
+
};
|
|
34511
|
+
Relationships: [];
|
|
34512
|
+
};
|
|
33149
34513
|
print_rules: {
|
|
33150
34514
|
Row: {
|
|
33151
34515
|
actief: boolean;
|
|
@@ -34622,6 +35986,96 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
34622
35986
|
referencedColumns: ["id"];
|
|
34623
35987
|
}];
|
|
34624
35988
|
};
|
|
35989
|
+
role_assignments: {
|
|
35990
|
+
Row: {
|
|
35991
|
+
created_at: string;
|
|
35992
|
+
id: string;
|
|
35993
|
+
role_id: string;
|
|
35994
|
+
user_id: string;
|
|
35995
|
+
};
|
|
35996
|
+
Insert: {
|
|
35997
|
+
created_at?: string;
|
|
35998
|
+
id?: string;
|
|
35999
|
+
role_id: string;
|
|
36000
|
+
user_id: string;
|
|
36001
|
+
};
|
|
36002
|
+
Update: {
|
|
36003
|
+
created_at?: string;
|
|
36004
|
+
id?: string;
|
|
36005
|
+
role_id?: string;
|
|
36006
|
+
user_id?: string;
|
|
36007
|
+
};
|
|
36008
|
+
Relationships: [{
|
|
36009
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
36010
|
+
columns: ["role_id"];
|
|
36011
|
+
isOneToOne: false;
|
|
36012
|
+
referencedRelation: "roles";
|
|
36013
|
+
referencedColumns: ["id"];
|
|
36014
|
+
}];
|
|
36015
|
+
};
|
|
36016
|
+
role_permissions: {
|
|
36017
|
+
Row: {
|
|
36018
|
+
can_edit: boolean;
|
|
36019
|
+
can_view: boolean;
|
|
36020
|
+
feature_id: string;
|
|
36021
|
+
id: string;
|
|
36022
|
+
module_id: string;
|
|
36023
|
+
role_id: string;
|
|
36024
|
+
updated_at: string;
|
|
36025
|
+
};
|
|
36026
|
+
Insert: {
|
|
36027
|
+
can_edit?: boolean;
|
|
36028
|
+
can_view?: boolean;
|
|
36029
|
+
feature_id?: string;
|
|
36030
|
+
id?: string;
|
|
36031
|
+
module_id: string;
|
|
36032
|
+
role_id: string;
|
|
36033
|
+
updated_at?: string;
|
|
36034
|
+
};
|
|
36035
|
+
Update: {
|
|
36036
|
+
can_edit?: boolean;
|
|
36037
|
+
can_view?: boolean;
|
|
36038
|
+
feature_id?: string;
|
|
36039
|
+
id?: string;
|
|
36040
|
+
module_id?: string;
|
|
36041
|
+
role_id?: string;
|
|
36042
|
+
updated_at?: string;
|
|
36043
|
+
};
|
|
36044
|
+
Relationships: [{
|
|
36045
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
36046
|
+
columns: ["role_id"];
|
|
36047
|
+
isOneToOne: false;
|
|
36048
|
+
referencedRelation: "roles";
|
|
36049
|
+
referencedColumns: ["id"];
|
|
36050
|
+
}];
|
|
36051
|
+
};
|
|
36052
|
+
roles: {
|
|
36053
|
+
Row: {
|
|
36054
|
+
created_at: string;
|
|
36055
|
+
id: string;
|
|
36056
|
+
is_protected: boolean;
|
|
36057
|
+
key: string;
|
|
36058
|
+
name: string;
|
|
36059
|
+
updated_at: string;
|
|
36060
|
+
};
|
|
36061
|
+
Insert: {
|
|
36062
|
+
created_at?: string;
|
|
36063
|
+
id?: string;
|
|
36064
|
+
is_protected?: boolean;
|
|
36065
|
+
key: string;
|
|
36066
|
+
name: string;
|
|
36067
|
+
updated_at?: string;
|
|
36068
|
+
};
|
|
36069
|
+
Update: {
|
|
36070
|
+
created_at?: string;
|
|
36071
|
+
id?: string;
|
|
36072
|
+
is_protected?: boolean;
|
|
36073
|
+
key?: string;
|
|
36074
|
+
name?: string;
|
|
36075
|
+
updated_at?: string;
|
|
36076
|
+
};
|
|
36077
|
+
Relationships: [];
|
|
36078
|
+
};
|
|
34625
36079
|
rooms: {
|
|
34626
36080
|
Row: {
|
|
34627
36081
|
capacity: number;
|
|
@@ -35291,6 +36745,54 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
35291
36745
|
};
|
|
35292
36746
|
Relationships: [];
|
|
35293
36747
|
};
|
|
36748
|
+
time_compensation_entries: {
|
|
36749
|
+
Row: {
|
|
36750
|
+
created_at: string;
|
|
36751
|
+
employee_id: string;
|
|
36752
|
+
entry_date: string;
|
|
36753
|
+
id: string;
|
|
36754
|
+
km: number;
|
|
36755
|
+
meal_allowance: number;
|
|
36756
|
+
notes: string | null;
|
|
36757
|
+
standby_evening: number;
|
|
36758
|
+
standby_weekend: number;
|
|
36759
|
+
tvt_change: number;
|
|
36760
|
+
updated_at: string;
|
|
36761
|
+
};
|
|
36762
|
+
Insert: {
|
|
36763
|
+
created_at?: string;
|
|
36764
|
+
employee_id: string;
|
|
36765
|
+
entry_date: string;
|
|
36766
|
+
id?: string;
|
|
36767
|
+
km?: number;
|
|
36768
|
+
meal_allowance?: number;
|
|
36769
|
+
notes?: string | null;
|
|
36770
|
+
standby_evening?: number;
|
|
36771
|
+
standby_weekend?: number;
|
|
36772
|
+
tvt_change?: number;
|
|
36773
|
+
updated_at?: string;
|
|
36774
|
+
};
|
|
36775
|
+
Update: {
|
|
36776
|
+
created_at?: string;
|
|
36777
|
+
employee_id?: string;
|
|
36778
|
+
entry_date?: string;
|
|
36779
|
+
id?: string;
|
|
36780
|
+
km?: number;
|
|
36781
|
+
meal_allowance?: number;
|
|
36782
|
+
notes?: string | null;
|
|
36783
|
+
standby_evening?: number;
|
|
36784
|
+
standby_weekend?: number;
|
|
36785
|
+
tvt_change?: number;
|
|
36786
|
+
updated_at?: string;
|
|
36787
|
+
};
|
|
36788
|
+
Relationships: [{
|
|
36789
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
36790
|
+
columns: ["employee_id"];
|
|
36791
|
+
isOneToOne: false;
|
|
36792
|
+
referencedRelation: "profiles";
|
|
36793
|
+
referencedColumns: ["id"];
|
|
36794
|
+
}];
|
|
36795
|
+
};
|
|
35294
36796
|
time_entries: {
|
|
35295
36797
|
Row: {
|
|
35296
36798
|
created_at: string;
|
|
@@ -35325,65 +36827,170 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
35325
36827
|
undertime?: number;
|
|
35326
36828
|
updated_at?: string;
|
|
35327
36829
|
};
|
|
36830
|
+
Relationships: [];
|
|
36831
|
+
};
|
|
36832
|
+
time_log_week_approvals: {
|
|
36833
|
+
Row: {
|
|
36834
|
+
approved_at: string | null;
|
|
36835
|
+
approved_by: string | null;
|
|
36836
|
+
created_at: string;
|
|
36837
|
+
employee_id: string;
|
|
36838
|
+
id: string;
|
|
36839
|
+
locked: boolean;
|
|
36840
|
+
notes: string | null;
|
|
36841
|
+
status: string;
|
|
36842
|
+
submitted_at: string | null;
|
|
36843
|
+
updated_at: string;
|
|
36844
|
+
week_start: string;
|
|
36845
|
+
};
|
|
36846
|
+
Insert: {
|
|
36847
|
+
approved_at?: string | null;
|
|
36848
|
+
approved_by?: string | null;
|
|
36849
|
+
created_at?: string;
|
|
36850
|
+
employee_id: string;
|
|
36851
|
+
id?: string;
|
|
36852
|
+
locked?: boolean;
|
|
36853
|
+
notes?: string | null;
|
|
36854
|
+
status?: string;
|
|
36855
|
+
submitted_at?: string | null;
|
|
36856
|
+
updated_at?: string;
|
|
36857
|
+
week_start: string;
|
|
36858
|
+
};
|
|
36859
|
+
Update: {
|
|
36860
|
+
approved_at?: string | null;
|
|
36861
|
+
approved_by?: string | null;
|
|
36862
|
+
created_at?: string;
|
|
36863
|
+
employee_id?: string;
|
|
36864
|
+
id?: string;
|
|
36865
|
+
locked?: boolean;
|
|
36866
|
+
notes?: string | null;
|
|
36867
|
+
status?: string;
|
|
36868
|
+
submitted_at?: string | null;
|
|
36869
|
+
updated_at?: string;
|
|
36870
|
+
week_start?: string;
|
|
36871
|
+
};
|
|
35328
36872
|
Relationships: [{
|
|
35329
|
-
foreignKeyName: "
|
|
36873
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
35330
36874
|
columns: ["employee_id"];
|
|
35331
36875
|
isOneToOne: false;
|
|
35332
|
-
referencedRelation: "
|
|
36876
|
+
referencedRelation: "profiles";
|
|
35333
36877
|
referencedColumns: ["id"];
|
|
35334
36878
|
}];
|
|
35335
36879
|
};
|
|
35336
36880
|
time_logs: {
|
|
35337
36881
|
Row: {
|
|
36882
|
+
auto_stop_reason: string | null;
|
|
36883
|
+
auto_stopped: boolean;
|
|
35338
36884
|
created_at: string;
|
|
36885
|
+
current_latitude: number | null;
|
|
36886
|
+
current_longitude: number | null;
|
|
36887
|
+
current_position_updated_at: string | null;
|
|
35339
36888
|
employee_id: string;
|
|
36889
|
+
end_latitude: number | null;
|
|
36890
|
+
end_longitude: number | null;
|
|
35340
36891
|
end_time: string | null;
|
|
36892
|
+
eta_distance_km: number | null;
|
|
36893
|
+
eta_minutes: number | null;
|
|
36894
|
+
eta_updated_at: string | null;
|
|
36895
|
+
hour_category: string | null;
|
|
35341
36896
|
id: string;
|
|
36897
|
+
last_reminder_at: string | null;
|
|
35342
36898
|
notes: string | null;
|
|
35343
36899
|
overtime_hours: number;
|
|
35344
36900
|
overtime_type: string | null;
|
|
35345
36901
|
regular_hours: number;
|
|
36902
|
+
reminder_count: number;
|
|
36903
|
+
requires_review: boolean;
|
|
36904
|
+
start_latitude: number | null;
|
|
36905
|
+
start_longitude: number | null;
|
|
35346
36906
|
start_time: string;
|
|
35347
36907
|
travel_cost: number | null;
|
|
35348
36908
|
travel_distance_km: number | null;
|
|
36909
|
+
travel_duration_min: number | null;
|
|
36910
|
+
travel_time_minutes: number | null;
|
|
35349
36911
|
type: string;
|
|
35350
36912
|
updated_at: string;
|
|
36913
|
+
work_order_id: string | null;
|
|
35351
36914
|
};
|
|
35352
36915
|
Insert: {
|
|
36916
|
+
auto_stop_reason?: string | null;
|
|
36917
|
+
auto_stopped?: boolean;
|
|
35353
36918
|
created_at?: string;
|
|
36919
|
+
current_latitude?: number | null;
|
|
36920
|
+
current_longitude?: number | null;
|
|
36921
|
+
current_position_updated_at?: string | null;
|
|
35354
36922
|
employee_id: string;
|
|
36923
|
+
end_latitude?: number | null;
|
|
36924
|
+
end_longitude?: number | null;
|
|
35355
36925
|
end_time?: string | null;
|
|
36926
|
+
eta_distance_km?: number | null;
|
|
36927
|
+
eta_minutes?: number | null;
|
|
36928
|
+
eta_updated_at?: string | null;
|
|
36929
|
+
hour_category?: string | null;
|
|
35356
36930
|
id?: string;
|
|
36931
|
+
last_reminder_at?: string | null;
|
|
35357
36932
|
notes?: string | null;
|
|
35358
36933
|
overtime_hours?: number;
|
|
35359
36934
|
overtime_type?: string | null;
|
|
35360
36935
|
regular_hours?: number;
|
|
36936
|
+
reminder_count?: number;
|
|
36937
|
+
requires_review?: boolean;
|
|
36938
|
+
start_latitude?: number | null;
|
|
36939
|
+
start_longitude?: number | null;
|
|
35361
36940
|
start_time?: string;
|
|
35362
36941
|
travel_cost?: number | null;
|
|
35363
36942
|
travel_distance_km?: number | null;
|
|
36943
|
+
travel_duration_min?: number | null;
|
|
36944
|
+
travel_time_minutes?: number | null;
|
|
35364
36945
|
type: string;
|
|
35365
36946
|
updated_at?: string;
|
|
36947
|
+
work_order_id?: string | null;
|
|
35366
36948
|
};
|
|
35367
36949
|
Update: {
|
|
36950
|
+
auto_stop_reason?: string | null;
|
|
36951
|
+
auto_stopped?: boolean;
|
|
35368
36952
|
created_at?: string;
|
|
36953
|
+
current_latitude?: number | null;
|
|
36954
|
+
current_longitude?: number | null;
|
|
36955
|
+
current_position_updated_at?: string | null;
|
|
35369
36956
|
employee_id?: string;
|
|
36957
|
+
end_latitude?: number | null;
|
|
36958
|
+
end_longitude?: number | null;
|
|
35370
36959
|
end_time?: string | null;
|
|
36960
|
+
eta_distance_km?: number | null;
|
|
36961
|
+
eta_minutes?: number | null;
|
|
36962
|
+
eta_updated_at?: string | null;
|
|
36963
|
+
hour_category?: string | null;
|
|
35371
36964
|
id?: string;
|
|
36965
|
+
last_reminder_at?: string | null;
|
|
35372
36966
|
notes?: string | null;
|
|
35373
36967
|
overtime_hours?: number;
|
|
35374
36968
|
overtime_type?: string | null;
|
|
35375
36969
|
regular_hours?: number;
|
|
36970
|
+
reminder_count?: number;
|
|
36971
|
+
requires_review?: boolean;
|
|
36972
|
+
start_latitude?: number | null;
|
|
36973
|
+
start_longitude?: number | null;
|
|
35376
36974
|
start_time?: string;
|
|
35377
36975
|
travel_cost?: number | null;
|
|
35378
36976
|
travel_distance_km?: number | null;
|
|
36977
|
+
travel_duration_min?: number | null;
|
|
36978
|
+
travel_time_minutes?: number | null;
|
|
35379
36979
|
type?: string;
|
|
35380
36980
|
updated_at?: string;
|
|
36981
|
+
work_order_id?: string | null;
|
|
35381
36982
|
};
|
|
35382
36983
|
Relationships: [{
|
|
35383
36984
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
35384
36985
|
columns: ["employee_id"];
|
|
35385
36986
|
isOneToOne: false;
|
|
35386
|
-
referencedRelation: "
|
|
36987
|
+
referencedRelation: "profiles";
|
|
36988
|
+
referencedColumns: ["id"];
|
|
36989
|
+
}, {
|
|
36990
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
36991
|
+
columns: ["work_order_id"];
|
|
36992
|
+
isOneToOne: false;
|
|
36993
|
+
referencedRelation: "work_orders";
|
|
35387
36994
|
referencedColumns: ["id"];
|
|
35388
36995
|
}];
|
|
35389
36996
|
};
|
|
@@ -35422,7 +37029,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
35422
37029
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
35423
37030
|
columns: ["employee_id"];
|
|
35424
37031
|
isOneToOne: false;
|
|
35425
|
-
referencedRelation: "
|
|
37032
|
+
referencedRelation: "profiles";
|
|
35426
37033
|
referencedColumns: ["id"];
|
|
35427
37034
|
}];
|
|
35428
37035
|
};
|
|
@@ -35732,6 +37339,39 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
35732
37339
|
};
|
|
35733
37340
|
Relationships: [];
|
|
35734
37341
|
};
|
|
37342
|
+
twinfield_cron_locks: {
|
|
37343
|
+
Row: {
|
|
37344
|
+
created_at: string;
|
|
37345
|
+
heartbeat_at: string;
|
|
37346
|
+
job_name: string;
|
|
37347
|
+
last_error: string | null;
|
|
37348
|
+
last_finished_at: string | null;
|
|
37349
|
+
locked_at: string;
|
|
37350
|
+
run_id: string;
|
|
37351
|
+
updated_at: string;
|
|
37352
|
+
};
|
|
37353
|
+
Insert: {
|
|
37354
|
+
created_at?: string;
|
|
37355
|
+
heartbeat_at?: string;
|
|
37356
|
+
job_name: string;
|
|
37357
|
+
last_error?: string | null;
|
|
37358
|
+
last_finished_at?: string | null;
|
|
37359
|
+
locked_at?: string;
|
|
37360
|
+
run_id?: string;
|
|
37361
|
+
updated_at?: string;
|
|
37362
|
+
};
|
|
37363
|
+
Update: {
|
|
37364
|
+
created_at?: string;
|
|
37365
|
+
heartbeat_at?: string;
|
|
37366
|
+
job_name?: string;
|
|
37367
|
+
last_error?: string | null;
|
|
37368
|
+
last_finished_at?: string | null;
|
|
37369
|
+
locked_at?: string;
|
|
37370
|
+
run_id?: string;
|
|
37371
|
+
updated_at?: string;
|
|
37372
|
+
};
|
|
37373
|
+
Relationships: [];
|
|
37374
|
+
};
|
|
35735
37375
|
twinfield_customers: {
|
|
35736
37376
|
Row: {
|
|
35737
37377
|
address: string | null;
|
|
@@ -35986,6 +37626,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
35986
37626
|
};
|
|
35987
37627
|
twinfield_invoice_settings: {
|
|
35988
37628
|
Row: {
|
|
37629
|
+
auto_invoice_enabled: boolean;
|
|
37630
|
+
auto_invoice_trigger_statuses: string[];
|
|
35989
37631
|
created_at: string;
|
|
35990
37632
|
debtor_gl_account: string;
|
|
35991
37633
|
default_credit_invoice_type: string | null;
|
|
@@ -36006,6 +37648,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
36006
37648
|
vat_code_export: string | null;
|
|
36007
37649
|
};
|
|
36008
37650
|
Insert: {
|
|
37651
|
+
auto_invoice_enabled?: boolean;
|
|
37652
|
+
auto_invoice_trigger_statuses?: string[];
|
|
36009
37653
|
created_at?: string;
|
|
36010
37654
|
debtor_gl_account?: string;
|
|
36011
37655
|
default_credit_invoice_type?: string | null;
|
|
@@ -36026,6 +37670,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
36026
37670
|
vat_code_export?: string | null;
|
|
36027
37671
|
};
|
|
36028
37672
|
Update: {
|
|
37673
|
+
auto_invoice_enabled?: boolean;
|
|
37674
|
+
auto_invoice_trigger_statuses?: string[];
|
|
36029
37675
|
created_at?: string;
|
|
36030
37676
|
debtor_gl_account?: string;
|
|
36031
37677
|
default_credit_invoice_type?: string | null;
|
|
@@ -36326,6 +37972,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
36326
37972
|
twinfield_push_queue: {
|
|
36327
37973
|
Row: {
|
|
36328
37974
|
action: string;
|
|
37975
|
+
attempt_started_at: string | null;
|
|
36329
37976
|
attempts: number;
|
|
36330
37977
|
connection_id: string | null;
|
|
36331
37978
|
created_at: string;
|
|
@@ -36342,6 +37989,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
36342
37989
|
};
|
|
36343
37990
|
Insert: {
|
|
36344
37991
|
action?: string;
|
|
37992
|
+
attempt_started_at?: string | null;
|
|
36345
37993
|
attempts?: number;
|
|
36346
37994
|
connection_id?: string | null;
|
|
36347
37995
|
created_at?: string;
|
|
@@ -36358,6 +38006,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
36358
38006
|
};
|
|
36359
38007
|
Update: {
|
|
36360
38008
|
action?: string;
|
|
38009
|
+
attempt_started_at?: string | null;
|
|
36361
38010
|
attempts?: number;
|
|
36362
38011
|
connection_id?: string | null;
|
|
36363
38012
|
created_at?: string;
|
|
@@ -36555,13 +38204,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
36555
38204
|
workday_end?: string | null;
|
|
36556
38205
|
workday_start?: string | null;
|
|
36557
38206
|
};
|
|
36558
|
-
Relationships: [
|
|
36559
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
36560
|
-
columns: ["monteur_id"];
|
|
36561
|
-
isOneToOne: true;
|
|
36562
|
-
referencedRelation: "monteurs";
|
|
36563
|
-
referencedColumns: ["id"];
|
|
36564
|
-
}];
|
|
38207
|
+
Relationships: [];
|
|
36565
38208
|
};
|
|
36566
38209
|
uren_entries: {
|
|
36567
38210
|
Row: {
|
|
@@ -36607,12 +38250,6 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
36607
38250
|
werkbon_id?: string | null;
|
|
36608
38251
|
};
|
|
36609
38252
|
Relationships: [{
|
|
36610
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
36611
|
-
columns: ["monteur_id"];
|
|
36612
|
-
isOneToOne: false;
|
|
36613
|
-
referencedRelation: "monteurs";
|
|
36614
|
-
referencedColumns: ["id"];
|
|
36615
|
-
}, {
|
|
36616
38253
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
36617
38254
|
columns: ["werkbon_id"];
|
|
36618
38255
|
isOneToOne: false;
|
|
@@ -37080,13 +38717,37 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
37080
38717
|
submitted_at?: string | null;
|
|
37081
38718
|
updated_at?: string;
|
|
37082
38719
|
};
|
|
37083
|
-
Relationships: [
|
|
37084
|
-
|
|
37085
|
-
|
|
37086
|
-
|
|
37087
|
-
|
|
37088
|
-
|
|
37089
|
-
|
|
38720
|
+
Relationships: [];
|
|
38721
|
+
};
|
|
38722
|
+
user_module_permissions: {
|
|
38723
|
+
Row: {
|
|
38724
|
+
created_at: string;
|
|
38725
|
+
feature_id: string;
|
|
38726
|
+
id: string;
|
|
38727
|
+
module_id: string;
|
|
38728
|
+
permission: string;
|
|
38729
|
+
updated_at: string;
|
|
38730
|
+
user_id: string;
|
|
38731
|
+
};
|
|
38732
|
+
Insert: {
|
|
38733
|
+
created_at?: string;
|
|
38734
|
+
feature_id?: string;
|
|
38735
|
+
id?: string;
|
|
38736
|
+
module_id: string;
|
|
38737
|
+
permission: string;
|
|
38738
|
+
updated_at?: string;
|
|
38739
|
+
user_id: string;
|
|
38740
|
+
};
|
|
38741
|
+
Update: {
|
|
38742
|
+
created_at?: string;
|
|
38743
|
+
feature_id?: string;
|
|
38744
|
+
id?: string;
|
|
38745
|
+
module_id?: string;
|
|
38746
|
+
permission?: string;
|
|
38747
|
+
updated_at?: string;
|
|
38748
|
+
user_id?: string;
|
|
38749
|
+
};
|
|
38750
|
+
Relationships: [];
|
|
37090
38751
|
};
|
|
37091
38752
|
user_roles: {
|
|
37092
38753
|
Row: {
|
|
@@ -37115,6 +38776,51 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
37115
38776
|
referencedColumns: ["id"];
|
|
37116
38777
|
}];
|
|
37117
38778
|
};
|
|
38779
|
+
van_inventories: {
|
|
38780
|
+
Row: {
|
|
38781
|
+
barcode: string | null;
|
|
38782
|
+
created_at: string;
|
|
38783
|
+
id: string;
|
|
38784
|
+
monteur_id: string | null;
|
|
38785
|
+
price_per_unit: number;
|
|
38786
|
+
product_name: string;
|
|
38787
|
+
quantity_current: number;
|
|
38788
|
+
quantity_min: number;
|
|
38789
|
+
unit: string;
|
|
38790
|
+
updated_at: string;
|
|
38791
|
+
};
|
|
38792
|
+
Insert: {
|
|
38793
|
+
barcode?: string | null;
|
|
38794
|
+
created_at?: string;
|
|
38795
|
+
id?: string;
|
|
38796
|
+
monteur_id?: string | null;
|
|
38797
|
+
price_per_unit?: number;
|
|
38798
|
+
product_name: string;
|
|
38799
|
+
quantity_current?: number;
|
|
38800
|
+
quantity_min?: number;
|
|
38801
|
+
unit?: string;
|
|
38802
|
+
updated_at?: string;
|
|
38803
|
+
};
|
|
38804
|
+
Update: {
|
|
38805
|
+
barcode?: string | null;
|
|
38806
|
+
created_at?: string;
|
|
38807
|
+
id?: string;
|
|
38808
|
+
monteur_id?: string | null;
|
|
38809
|
+
price_per_unit?: number;
|
|
38810
|
+
product_name?: string;
|
|
38811
|
+
quantity_current?: number;
|
|
38812
|
+
quantity_min?: number;
|
|
38813
|
+
unit?: string;
|
|
38814
|
+
updated_at?: string;
|
|
38815
|
+
};
|
|
38816
|
+
Relationships: [{
|
|
38817
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
38818
|
+
columns: ["monteur_id"];
|
|
38819
|
+
isOneToOne: false;
|
|
38820
|
+
referencedRelation: "profiles";
|
|
38821
|
+
referencedColumns: ["id"];
|
|
38822
|
+
}];
|
|
38823
|
+
};
|
|
37118
38824
|
voorraad_custom_fields: {
|
|
37119
38825
|
Row: {
|
|
37120
38826
|
created_at: string;
|
|
@@ -38065,7 +39771,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
38065
39771
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
38066
39772
|
columns: ["monteur_id"];
|
|
38067
39773
|
isOneToOne: false;
|
|
38068
|
-
referencedRelation: "
|
|
39774
|
+
referencedRelation: "profiles";
|
|
38069
39775
|
referencedColumns: ["id"];
|
|
38070
39776
|
}, {
|
|
38071
39777
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -38075,6 +39781,60 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
38075
39781
|
referencedColumns: ["id"];
|
|
38076
39782
|
}];
|
|
38077
39783
|
};
|
|
39784
|
+
work_order_photos: {
|
|
39785
|
+
Row: {
|
|
39786
|
+
ai_caption: string | null;
|
|
39787
|
+
ai_categorized_at: string | null;
|
|
39788
|
+
ai_labels: import("../integrations/supabase/types").Json | null;
|
|
39789
|
+
caption: string | null;
|
|
39790
|
+
created_at: string;
|
|
39791
|
+
id: string;
|
|
39792
|
+
monteur_id: string | null;
|
|
39793
|
+
photo_type: string;
|
|
39794
|
+
storage_path: string;
|
|
39795
|
+
updated_at: string;
|
|
39796
|
+
work_order_id: string;
|
|
39797
|
+
};
|
|
39798
|
+
Insert: {
|
|
39799
|
+
ai_caption?: string | null;
|
|
39800
|
+
ai_categorized_at?: string | null;
|
|
39801
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
39802
|
+
caption?: string | null;
|
|
39803
|
+
created_at?: string;
|
|
39804
|
+
id?: string;
|
|
39805
|
+
monteur_id?: string | null;
|
|
39806
|
+
photo_type?: string;
|
|
39807
|
+
storage_path: string;
|
|
39808
|
+
updated_at?: string;
|
|
39809
|
+
work_order_id: string;
|
|
39810
|
+
};
|
|
39811
|
+
Update: {
|
|
39812
|
+
ai_caption?: string | null;
|
|
39813
|
+
ai_categorized_at?: string | null;
|
|
39814
|
+
ai_labels?: import("../integrations/supabase/types").Json | null;
|
|
39815
|
+
caption?: string | null;
|
|
39816
|
+
created_at?: string;
|
|
39817
|
+
id?: string;
|
|
39818
|
+
monteur_id?: string | null;
|
|
39819
|
+
photo_type?: string;
|
|
39820
|
+
storage_path?: string;
|
|
39821
|
+
updated_at?: string;
|
|
39822
|
+
work_order_id?: string;
|
|
39823
|
+
};
|
|
39824
|
+
Relationships: [{
|
|
39825
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
39826
|
+
columns: ["monteur_id"];
|
|
39827
|
+
isOneToOne: false;
|
|
39828
|
+
referencedRelation: "profiles";
|
|
39829
|
+
referencedColumns: ["id"];
|
|
39830
|
+
}, {
|
|
39831
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
39832
|
+
columns: ["work_order_id"];
|
|
39833
|
+
isOneToOne: false;
|
|
39834
|
+
referencedRelation: "work_orders";
|
|
39835
|
+
referencedColumns: ["id"];
|
|
39836
|
+
}];
|
|
39837
|
+
};
|
|
38078
39838
|
work_orders: {
|
|
38079
39839
|
Row: {
|
|
38080
39840
|
assigned_to: string | null;
|
|
@@ -38106,7 +39866,6 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
38106
39866
|
scheduled_end_time: string | null;
|
|
38107
39867
|
scheduled_start_time: string | null;
|
|
38108
39868
|
status: string;
|
|
38109
|
-
tenant_id: string;
|
|
38110
39869
|
total_hours_worked: number | null;
|
|
38111
39870
|
total_price: number | null;
|
|
38112
39871
|
travel_time_minutes: number | null;
|
|
@@ -38144,7 +39903,6 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
38144
39903
|
scheduled_end_time?: string | null;
|
|
38145
39904
|
scheduled_start_time?: string | null;
|
|
38146
39905
|
status?: string;
|
|
38147
|
-
tenant_id: string;
|
|
38148
39906
|
total_hours_worked?: number | null;
|
|
38149
39907
|
total_price?: number | null;
|
|
38150
39908
|
travel_time_minutes?: number | null;
|
|
@@ -38182,7 +39940,6 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
38182
39940
|
scheduled_end_time?: string | null;
|
|
38183
39941
|
scheduled_start_time?: string | null;
|
|
38184
39942
|
status?: string;
|
|
38185
|
-
tenant_id?: string;
|
|
38186
39943
|
total_hours_worked?: number | null;
|
|
38187
39944
|
total_price?: number | null;
|
|
38188
39945
|
travel_time_minutes?: number | null;
|
|
@@ -38196,12 +39953,6 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
38196
39953
|
isOneToOne: false;
|
|
38197
39954
|
referencedRelation: "work_orders";
|
|
38198
39955
|
referencedColumns: ["id"];
|
|
38199
|
-
}, {
|
|
38200
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
38201
|
-
columns: ["tenant_id"];
|
|
38202
|
-
isOneToOne: false;
|
|
38203
|
-
referencedRelation: "tenants";
|
|
38204
|
-
referencedColumns: ["id"];
|
|
38205
39956
|
}];
|
|
38206
39957
|
};
|
|
38207
39958
|
};
|
|
@@ -38886,6 +40637,19 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
38886
40637
|
};
|
|
38887
40638
|
Returns: undefined;
|
|
38888
40639
|
};
|
|
40640
|
+
approve_mailbox_order_proposal: {
|
|
40641
|
+
Args: {
|
|
40642
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
40643
|
+
p_customer_id: string;
|
|
40644
|
+
p_delivery_date: string;
|
|
40645
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
40646
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
40647
|
+
p_notes: string;
|
|
40648
|
+
p_proposal_id: string;
|
|
40649
|
+
p_reviewed_by: string;
|
|
40650
|
+
};
|
|
40651
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
40652
|
+
};
|
|
38889
40653
|
assign_cart_numbers: {
|
|
38890
40654
|
Args: {
|
|
38891
40655
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -38921,6 +40685,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
38921
40685
|
processed_items: number;
|
|
38922
40686
|
}[];
|
|
38923
40687
|
};
|
|
40688
|
+
backfill_order_auto_invoice_queue: {
|
|
40689
|
+
Args: never;
|
|
40690
|
+
Returns: number;
|
|
40691
|
+
};
|
|
38924
40692
|
calculate_layer_stock: {
|
|
38925
40693
|
Args: {
|
|
38926
40694
|
p_product_id: string;
|
|
@@ -38933,6 +40701,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
38933
40701
|
};
|
|
38934
40702
|
Returns: number;
|
|
38935
40703
|
};
|
|
40704
|
+
can_manage_hours: {
|
|
40705
|
+
Args: never;
|
|
40706
|
+
Returns: boolean;
|
|
40707
|
+
};
|
|
38936
40708
|
check_offer_product_available_stock: {
|
|
38937
40709
|
Args: {
|
|
38938
40710
|
p_campaign_product_id: string;
|
|
@@ -39122,6 +40894,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
39122
40894
|
};
|
|
39123
40895
|
Returns: {
|
|
39124
40896
|
action: string;
|
|
40897
|
+
attempt_started_at: string | null;
|
|
39125
40898
|
attempts: number;
|
|
39126
40899
|
connection_id: string | null;
|
|
39127
40900
|
created_at: string;
|
|
@@ -39151,6 +40924,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
39151
40924
|
Args: never;
|
|
39152
40925
|
Returns: undefined;
|
|
39153
40926
|
};
|
|
40927
|
+
cleanup_voorraad_module_history: {
|
|
40928
|
+
Args: never;
|
|
40929
|
+
Returns: undefined;
|
|
40930
|
+
};
|
|
39154
40931
|
complete_floriday_stock_queue: {
|
|
39155
40932
|
Args: {
|
|
39156
40933
|
p_attempt_id?: string;
|
|
@@ -39205,6 +40982,30 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
39205
40982
|
agent_naam: string;
|
|
39206
40983
|
}[];
|
|
39207
40984
|
};
|
|
40985
|
+
consume_van_inventory: {
|
|
40986
|
+
Args: {
|
|
40987
|
+
p_inventory_id: string;
|
|
40988
|
+
p_quantity: number;
|
|
40989
|
+
};
|
|
40990
|
+
Returns: {
|
|
40991
|
+
barcode: string | null;
|
|
40992
|
+
created_at: string;
|
|
40993
|
+
id: string;
|
|
40994
|
+
monteur_id: string | null;
|
|
40995
|
+
price_per_unit: number;
|
|
40996
|
+
product_name: string;
|
|
40997
|
+
quantity_current: number;
|
|
40998
|
+
quantity_min: number;
|
|
40999
|
+
unit: string;
|
|
41000
|
+
updated_at: string;
|
|
41001
|
+
};
|
|
41002
|
+
SetofOptions: {
|
|
41003
|
+
from: "*";
|
|
41004
|
+
to: "van_inventories";
|
|
41005
|
+
isOneToOne: true;
|
|
41006
|
+
isSetofReturn: false;
|
|
41007
|
+
};
|
|
41008
|
+
};
|
|
39208
41009
|
control_get_todays_carts: {
|
|
39209
41010
|
Args: never;
|
|
39210
41011
|
Returns: {
|
|
@@ -39272,6 +41073,20 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
39272
41073
|
};
|
|
39273
41074
|
Returns: import("../integrations/supabase/types").Json;
|
|
39274
41075
|
};
|
|
41076
|
+
effective_module_permission: {
|
|
41077
|
+
Args: {
|
|
41078
|
+
_module_id: string;
|
|
41079
|
+
_user_id: string;
|
|
41080
|
+
};
|
|
41081
|
+
Returns: string;
|
|
41082
|
+
} | {
|
|
41083
|
+
Args: {
|
|
41084
|
+
_feature_id: string;
|
|
41085
|
+
_module_id: string;
|
|
41086
|
+
_user_id: string;
|
|
41087
|
+
};
|
|
41088
|
+
Returns: string;
|
|
41089
|
+
};
|
|
39275
41090
|
email_auth_decrypt: {
|
|
39276
41091
|
Args: {
|
|
39277
41092
|
cipher: string;
|
|
@@ -39622,12 +41437,6 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
39622
41437
|
Args: never;
|
|
39623
41438
|
Returns: string;
|
|
39624
41439
|
};
|
|
39625
|
-
get_work_order_tenant_id: {
|
|
39626
|
-
Args: {
|
|
39627
|
-
wo_id: string;
|
|
39628
|
-
};
|
|
39629
|
-
Returns: string;
|
|
39630
|
-
};
|
|
39631
41440
|
has_module_permission: {
|
|
39632
41441
|
Args: {
|
|
39633
41442
|
_min: string;
|
|
@@ -39661,6 +41470,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
39661
41470
|
};
|
|
39662
41471
|
Returns: boolean;
|
|
39663
41472
|
};
|
|
41473
|
+
is_time_log_week_locked: {
|
|
41474
|
+
Args: {
|
|
41475
|
+
p_employee_id: string;
|
|
41476
|
+
p_start_time: string;
|
|
41477
|
+
};
|
|
41478
|
+
Returns: boolean;
|
|
41479
|
+
};
|
|
39664
41480
|
is_user_admin: {
|
|
39665
41481
|
Args: never;
|
|
39666
41482
|
Returns: boolean;
|
|
@@ -39675,13 +41491,14 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
39675
41491
|
};
|
|
39676
41492
|
Returns: boolean;
|
|
39677
41493
|
};
|
|
39678
|
-
|
|
41494
|
+
list_medewerkers: {
|
|
39679
41495
|
Args: never;
|
|
39680
41496
|
Returns: {
|
|
39681
41497
|
avatar_url: string;
|
|
39682
41498
|
display_name: string;
|
|
39683
41499
|
email: string;
|
|
39684
41500
|
id: string;
|
|
41501
|
+
roles: string[];
|
|
39685
41502
|
}[];
|
|
39686
41503
|
};
|
|
39687
41504
|
list_my_planning_items: {
|
|
@@ -40172,6 +41989,65 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
40172
41989
|
};
|
|
40173
41990
|
Returns: number;
|
|
40174
41991
|
};
|
|
41992
|
+
logistics_plan_claim: {
|
|
41993
|
+
Args: {
|
|
41994
|
+
p_limit?: number;
|
|
41995
|
+
};
|
|
41996
|
+
Returns: {
|
|
41997
|
+
attempts: number;
|
|
41998
|
+
id: string;
|
|
41999
|
+
order_id: string;
|
|
42000
|
+
}[];
|
|
42001
|
+
};
|
|
42002
|
+
logistics_plan_enqueue: {
|
|
42003
|
+
Args: {
|
|
42004
|
+
p_order_id: string;
|
|
42005
|
+
p_reason?: string;
|
|
42006
|
+
};
|
|
42007
|
+
Returns: undefined;
|
|
42008
|
+
};
|
|
42009
|
+
logistics_plan_ensure_event: {
|
|
42010
|
+
Args: {
|
|
42011
|
+
p_order_id: string;
|
|
42012
|
+
};
|
|
42013
|
+
Returns: boolean;
|
|
42014
|
+
};
|
|
42015
|
+
logistics_plan_finish: {
|
|
42016
|
+
Args: {
|
|
42017
|
+
p_error?: string;
|
|
42018
|
+
p_id: string;
|
|
42019
|
+
};
|
|
42020
|
+
Returns: undefined;
|
|
42021
|
+
};
|
|
42022
|
+
logistics_plan_impact_orders: {
|
|
42023
|
+
Args: {
|
|
42024
|
+
p_order_id: string;
|
|
42025
|
+
};
|
|
42026
|
+
Returns: {
|
|
42027
|
+
buffer_id: string;
|
|
42028
|
+
order_id: string;
|
|
42029
|
+
plan_date: string;
|
|
42030
|
+
}[];
|
|
42031
|
+
};
|
|
42032
|
+
logistics_plan_kick: {
|
|
42033
|
+
Args: never;
|
|
42034
|
+
Returns: undefined;
|
|
42035
|
+
};
|
|
42036
|
+
logistics_plan_prune: {
|
|
42037
|
+
Args: never;
|
|
42038
|
+
Returns: number;
|
|
42039
|
+
};
|
|
42040
|
+
logistics_plan_release_stale: {
|
|
42041
|
+
Args: never;
|
|
42042
|
+
Returns: number;
|
|
42043
|
+
};
|
|
42044
|
+
logistics_plan_setting: {
|
|
42045
|
+
Args: {
|
|
42046
|
+
p_default: number;
|
|
42047
|
+
p_key: string;
|
|
42048
|
+
};
|
|
42049
|
+
Returns: number;
|
|
42050
|
+
};
|
|
40175
42051
|
logistics_queue_capacity_email: {
|
|
40176
42052
|
Args: {
|
|
40177
42053
|
p_alert_id: string;
|
|
@@ -40410,6 +42286,14 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
40410
42286
|
};
|
|
40411
42287
|
Returns: undefined;
|
|
40412
42288
|
};
|
|
42289
|
+
my_module_permissions: {
|
|
42290
|
+
Args: never;
|
|
42291
|
+
Returns: {
|
|
42292
|
+
feature_id: string;
|
|
42293
|
+
module_id: string;
|
|
42294
|
+
permission: string;
|
|
42295
|
+
}[];
|
|
42296
|
+
};
|
|
40413
42297
|
next_manufacture_partij: {
|
|
40414
42298
|
Args: {
|
|
40415
42299
|
_tenant_id: string;
|
|
@@ -40460,6 +42344,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
40460
42344
|
};
|
|
40461
42345
|
Returns: boolean;
|
|
40462
42346
|
};
|
|
42347
|
+
opruim_print_historie: {
|
|
42348
|
+
Args: never;
|
|
42349
|
+
Returns: {
|
|
42350
|
+
ontdaan: number;
|
|
42351
|
+
verwijderd: number;
|
|
42352
|
+
}[];
|
|
42353
|
+
};
|
|
40463
42354
|
order_number_prefix: {
|
|
40464
42355
|
Args: {
|
|
40465
42356
|
p_custom_fields?: import("../integrations/supabase/types").Json;
|
|
@@ -40854,6 +42745,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
40854
42745
|
};
|
|
40855
42746
|
Returns: undefined;
|
|
40856
42747
|
};
|
|
42748
|
+
reset_stalled_floriday_stock_queue: {
|
|
42749
|
+
Args: {
|
|
42750
|
+
p_include_failed?: boolean;
|
|
42751
|
+
};
|
|
42752
|
+
Returns: number;
|
|
42753
|
+
};
|
|
40857
42754
|
resolve_group_allocation: {
|
|
40858
42755
|
Args: {
|
|
40859
42756
|
_needed: number;
|
|
@@ -40908,10 +42805,18 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
40908
42805
|
Args: never;
|
|
40909
42806
|
Returns: undefined;
|
|
40910
42807
|
};
|
|
42808
|
+
run_floriday_stock_queue_process: {
|
|
42809
|
+
Args: never;
|
|
42810
|
+
Returns: undefined;
|
|
42811
|
+
};
|
|
40911
42812
|
run_logistics_tasks_dispatch: {
|
|
40912
42813
|
Args: never;
|
|
40913
42814
|
Returns: undefined;
|
|
40914
42815
|
};
|
|
42816
|
+
run_print_queue_ticks: {
|
|
42817
|
+
Args: never;
|
|
42818
|
+
Returns: number;
|
|
42819
|
+
};
|
|
40915
42820
|
run_twinfield_queue_tick: {
|
|
40916
42821
|
Args: never;
|
|
40917
42822
|
Returns: undefined;
|
|
@@ -41265,6 +43170,16 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
41265
43170
|
};
|
|
41266
43171
|
Returns: string[];
|
|
41267
43172
|
};
|
|
43173
|
+
switch_time_log: {
|
|
43174
|
+
Args: {
|
|
43175
|
+
p_employee_id: string;
|
|
43176
|
+
p_start_lat?: number;
|
|
43177
|
+
p_start_lng?: number;
|
|
43178
|
+
p_type: string;
|
|
43179
|
+
p_work_order_id?: string;
|
|
43180
|
+
};
|
|
43181
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43182
|
+
};
|
|
41268
43183
|
sync_all_layer_stocks: {
|
|
41269
43184
|
Args: never;
|
|
41270
43185
|
Returns: undefined;
|
|
@@ -41299,6 +43214,15 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
41299
43214
|
};
|
|
41300
43215
|
Returns: undefined;
|
|
41301
43216
|
};
|
|
43217
|
+
trade_item_stock_duplicates: {
|
|
43218
|
+
Args: never;
|
|
43219
|
+
Returns: {
|
|
43220
|
+
keys: string[];
|
|
43221
|
+
product_id: string;
|
|
43222
|
+
product_name: string;
|
|
43223
|
+
row_count: number;
|
|
43224
|
+
}[];
|
|
43225
|
+
};
|
|
41302
43226
|
try_debtor_lock: {
|
|
41303
43227
|
Args: {
|
|
41304
43228
|
_group_key: string;
|
|
@@ -41306,6 +43230,24 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
41306
43230
|
};
|
|
41307
43231
|
Returns: boolean;
|
|
41308
43232
|
};
|
|
43233
|
+
twinfield_cron_lock_acquire: {
|
|
43234
|
+
Args: {
|
|
43235
|
+
_job_name: string;
|
|
43236
|
+
_stale_seconds?: number;
|
|
43237
|
+
};
|
|
43238
|
+
Returns: boolean;
|
|
43239
|
+
};
|
|
43240
|
+
twinfield_cron_lock_release: {
|
|
43241
|
+
Args: {
|
|
43242
|
+
_error?: string;
|
|
43243
|
+
_job_name: string;
|
|
43244
|
+
};
|
|
43245
|
+
Returns: undefined;
|
|
43246
|
+
};
|
|
43247
|
+
twinfield_prune_push_queue: {
|
|
43248
|
+
Args: never;
|
|
43249
|
+
Returns: number;
|
|
43250
|
+
};
|
|
41309
43251
|
twinfield_register_cron: {
|
|
41310
43252
|
Args: {
|
|
41311
43253
|
apikey?: string;
|