@flowselections/mailbox-orders 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/integrations/supabase/client.d.ts +927 -133
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +927 -133
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +936 -137
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/mailbox-ai.server.d.ts.map +1 -1
- package/dist-lib/lib/mailbox-ai.server.js +6 -3
- package/dist-lib/lib/mailbox.functions.d.ts +1 -0
- package/dist-lib/lib/mailbox.functions.d.ts.map +1 -1
- package/dist-lib/lib/mailbox.functions.js +38 -154
- package/dist-lib/lib/product-name.d.ts +3 -0
- package/dist-lib/lib/product-name.d.ts.map +1 -0
- package/dist-lib/lib/product-name.js +10 -0
- package/package.json +1 -1
|
@@ -871,6 +871,126 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
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;
|
|
@@ -6479,6 +6599,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
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("./types").Json;
|
|
6484
6605
|
floriday_id: string;
|
|
@@ -6490,6 +6611,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
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("./types").Json;
|
|
6495
6617
|
floriday_id: string;
|
|
@@ -6501,6 +6623,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
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("./types").Json;
|
|
6506
6629
|
floriday_id?: string;
|
|
@@ -7402,6 +7525,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
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 supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
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 supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
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 supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
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 supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
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 supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
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 supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
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;
|
|
@@ -9862,6 +10087,90 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9862
10087
|
};
|
|
9863
10088
|
Relationships: [];
|
|
9864
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
|
+
};
|
|
9865
10174
|
module_permissions: {
|
|
9866
10175
|
Row: {
|
|
9867
10176
|
created_at: string;
|
|
@@ -9970,63 +10279,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9970
10279
|
};
|
|
9971
10280
|
Relationships: [];
|
|
9972
10281
|
};
|
|
9973
|
-
monteurs: {
|
|
9974
|
-
Row: {
|
|
9975
|
-
avatar_url: string | null;
|
|
9976
|
-
color: string | null;
|
|
9977
|
-
created_at: string;
|
|
9978
|
-
email: string | null;
|
|
9979
|
-
id: string;
|
|
9980
|
-
is_active: boolean;
|
|
9981
|
-
leave_balance_hours: number;
|
|
9982
|
-
name: string;
|
|
9983
|
-
persnr: number | null;
|
|
9984
|
-
phone: string | null;
|
|
9985
|
-
role: string;
|
|
9986
|
-
tenant_id: string;
|
|
9987
|
-
updated_at: string;
|
|
9988
|
-
user_id: string | null;
|
|
9989
|
-
};
|
|
9990
|
-
Insert: {
|
|
9991
|
-
avatar_url?: string | null;
|
|
9992
|
-
color?: string | null;
|
|
9993
|
-
created_at?: string;
|
|
9994
|
-
email?: string | null;
|
|
9995
|
-
id?: string;
|
|
9996
|
-
is_active?: boolean;
|
|
9997
|
-
leave_balance_hours?: number;
|
|
9998
|
-
name: string;
|
|
9999
|
-
persnr?: number | null;
|
|
10000
|
-
phone?: string | null;
|
|
10001
|
-
role?: string;
|
|
10002
|
-
tenant_id: string;
|
|
10003
|
-
updated_at?: string;
|
|
10004
|
-
user_id?: string | null;
|
|
10005
|
-
};
|
|
10006
|
-
Update: {
|
|
10007
|
-
avatar_url?: string | null;
|
|
10008
|
-
color?: string | null;
|
|
10009
|
-
created_at?: string;
|
|
10010
|
-
email?: string | null;
|
|
10011
|
-
id?: string;
|
|
10012
|
-
is_active?: boolean;
|
|
10013
|
-
leave_balance_hours?: number;
|
|
10014
|
-
name?: string;
|
|
10015
|
-
persnr?: number | null;
|
|
10016
|
-
phone?: string | null;
|
|
10017
|
-
role?: string;
|
|
10018
|
-
tenant_id?: string;
|
|
10019
|
-
updated_at?: string;
|
|
10020
|
-
user_id?: string | null;
|
|
10021
|
-
};
|
|
10022
|
-
Relationships: [{
|
|
10023
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
10024
|
-
columns: ["tenant_id"];
|
|
10025
|
-
isOneToOne: false;
|
|
10026
|
-
referencedRelation: "tenants";
|
|
10027
|
-
referencedColumns: ["id"];
|
|
10028
|
-
}];
|
|
10029
|
-
};
|
|
10030
10282
|
nmbrs_component_mapping: {
|
|
10031
10283
|
Row: {
|
|
10032
10284
|
created_at: string;
|
|
@@ -10097,13 +10349,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10097
10349
|
nmbrs_employee_number?: string;
|
|
10098
10350
|
updated_at?: string;
|
|
10099
10351
|
};
|
|
10100
|
-
Relationships: [
|
|
10101
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10102
|
-
columns: ["monteur_id"];
|
|
10103
|
-
isOneToOne: true;
|
|
10104
|
-
referencedRelation: "monteurs";
|
|
10105
|
-
referencedColumns: ["id"];
|
|
10106
|
-
}];
|
|
10352
|
+
Relationships: [];
|
|
10107
10353
|
};
|
|
10108
10354
|
nmbrs_export_lines: {
|
|
10109
10355
|
Row: {
|
|
@@ -10152,12 +10398,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10152
10398
|
wage_code?: string;
|
|
10153
10399
|
};
|
|
10154
10400
|
Relationships: [{
|
|
10155
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10156
|
-
columns: ["monteur_id"];
|
|
10157
|
-
isOneToOne: false;
|
|
10158
|
-
referencedRelation: "monteurs";
|
|
10159
|
-
referencedColumns: ["id"];
|
|
10160
|
-
}, {
|
|
10161
10401
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10162
10402
|
columns: ["run_id"];
|
|
10163
10403
|
isOneToOne: false;
|
|
@@ -10978,32 +11218,71 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10978
11218
|
};
|
|
10979
11219
|
Relationships: [];
|
|
10980
11220
|
};
|
|
10981
|
-
|
|
11221
|
+
order_invoice_links: {
|
|
10982
11222
|
Row: {
|
|
10983
|
-
|
|
11223
|
+
attempts: number;
|
|
10984
11224
|
created_at: string;
|
|
11225
|
+
error_message: string | null;
|
|
10985
11226
|
id: string;
|
|
10986
|
-
|
|
11227
|
+
invoice_number: string | null;
|
|
11228
|
+
next_attempt_at: string;
|
|
10987
11229
|
order_id: string;
|
|
10988
|
-
|
|
10989
|
-
|
|
10990
|
-
|
|
10991
|
-
quantity: number;
|
|
10992
|
-
unit: string;
|
|
10993
|
-
unit_price: number | null;
|
|
11230
|
+
processed_at: string | null;
|
|
11231
|
+
status: string;
|
|
11232
|
+
updated_at: string;
|
|
10994
11233
|
};
|
|
10995
11234
|
Insert: {
|
|
10996
|
-
|
|
11235
|
+
attempts?: number;
|
|
10997
11236
|
created_at?: string;
|
|
11237
|
+
error_message?: string | null;
|
|
10998
11238
|
id?: string;
|
|
10999
|
-
|
|
11239
|
+
invoice_number?: string | null;
|
|
11240
|
+
next_attempt_at?: string;
|
|
11000
11241
|
order_id: string;
|
|
11001
|
-
|
|
11002
|
-
|
|
11003
|
-
|
|
11004
|
-
|
|
11005
|
-
|
|
11006
|
-
|
|
11242
|
+
processed_at?: string | null;
|
|
11243
|
+
status?: string;
|
|
11244
|
+
updated_at?: string;
|
|
11245
|
+
};
|
|
11246
|
+
Update: {
|
|
11247
|
+
attempts?: number;
|
|
11248
|
+
created_at?: string;
|
|
11249
|
+
error_message?: string | null;
|
|
11250
|
+
id?: string;
|
|
11251
|
+
invoice_number?: string | null;
|
|
11252
|
+
next_attempt_at?: string;
|
|
11253
|
+
order_id?: string;
|
|
11254
|
+
processed_at?: string | null;
|
|
11255
|
+
status?: string;
|
|
11256
|
+
updated_at?: string;
|
|
11257
|
+
};
|
|
11258
|
+
Relationships: [];
|
|
11259
|
+
};
|
|
11260
|
+
order_items: {
|
|
11261
|
+
Row: {
|
|
11262
|
+
crates_per_layer: number | null;
|
|
11263
|
+
created_at: string;
|
|
11264
|
+
id: string;
|
|
11265
|
+
layers_per_cart: number | null;
|
|
11266
|
+
order_id: string;
|
|
11267
|
+
plants_per_crate: number | null;
|
|
11268
|
+
product_id: string | null;
|
|
11269
|
+
product_name: string;
|
|
11270
|
+
quantity: number;
|
|
11271
|
+
unit: string;
|
|
11272
|
+
unit_price: number | null;
|
|
11273
|
+
};
|
|
11274
|
+
Insert: {
|
|
11275
|
+
crates_per_layer?: number | null;
|
|
11276
|
+
created_at?: string;
|
|
11277
|
+
id?: string;
|
|
11278
|
+
layers_per_cart?: number | null;
|
|
11279
|
+
order_id: string;
|
|
11280
|
+
plants_per_crate?: number | null;
|
|
11281
|
+
product_id?: string | null;
|
|
11282
|
+
product_name: string;
|
|
11283
|
+
quantity?: number;
|
|
11284
|
+
unit?: string;
|
|
11285
|
+
unit_price?: number | null;
|
|
11007
11286
|
};
|
|
11008
11287
|
Update: {
|
|
11009
11288
|
crates_per_layer?: number | null;
|
|
@@ -11160,6 +11439,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11160
11439
|
delivery_date: string | null;
|
|
11161
11440
|
floriday_sales_order_id: string | null;
|
|
11162
11441
|
id: string;
|
|
11442
|
+
invoice_due_at: string | null;
|
|
11163
11443
|
is_reservation: boolean;
|
|
11164
11444
|
notes: string | null;
|
|
11165
11445
|
order_date: string;
|
|
@@ -11181,6 +11461,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11181
11461
|
delivery_date?: string | null;
|
|
11182
11462
|
floriday_sales_order_id?: string | null;
|
|
11183
11463
|
id?: string;
|
|
11464
|
+
invoice_due_at?: string | null;
|
|
11184
11465
|
is_reservation?: boolean;
|
|
11185
11466
|
notes?: string | null;
|
|
11186
11467
|
order_date?: string;
|
|
@@ -11202,6 +11483,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11202
11483
|
delivery_date?: string | null;
|
|
11203
11484
|
floriday_sales_order_id?: string | null;
|
|
11204
11485
|
id?: string;
|
|
11486
|
+
invoice_due_at?: string | null;
|
|
11205
11487
|
is_reservation?: boolean;
|
|
11206
11488
|
notes?: string | null;
|
|
11207
11489
|
order_date?: string;
|
|
@@ -12506,6 +12788,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12506
12788
|
created_at: string;
|
|
12507
12789
|
id: string;
|
|
12508
12790
|
laatst_gezien: string;
|
|
12791
|
+
laatste_fout: string | null;
|
|
12792
|
+
laatste_request_id: number | null;
|
|
12793
|
+
mislukte_posts: number;
|
|
12509
12794
|
tick_sleutel: string;
|
|
12510
12795
|
updated_at: string;
|
|
12511
12796
|
};
|
|
@@ -12515,6 +12800,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12515
12800
|
created_at?: string;
|
|
12516
12801
|
id?: string;
|
|
12517
12802
|
laatst_gezien?: string;
|
|
12803
|
+
laatste_fout?: string | null;
|
|
12804
|
+
laatste_request_id?: number | null;
|
|
12805
|
+
mislukte_posts?: number;
|
|
12518
12806
|
tick_sleutel?: string;
|
|
12519
12807
|
updated_at?: string;
|
|
12520
12808
|
};
|
|
@@ -12524,6 +12812,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12524
12812
|
created_at?: string;
|
|
12525
12813
|
id?: string;
|
|
12526
12814
|
laatst_gezien?: string;
|
|
12815
|
+
laatste_fout?: string | null;
|
|
12816
|
+
laatste_request_id?: number | null;
|
|
12817
|
+
mislukte_posts?: number;
|
|
12527
12818
|
tick_sleutel?: string;
|
|
12528
12819
|
updated_at?: string;
|
|
12529
12820
|
};
|
|
@@ -14032,6 +14323,96 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
14032
14323
|
referencedColumns: ["id"];
|
|
14033
14324
|
}];
|
|
14034
14325
|
};
|
|
14326
|
+
role_assignments: {
|
|
14327
|
+
Row: {
|
|
14328
|
+
created_at: string;
|
|
14329
|
+
id: string;
|
|
14330
|
+
role_id: string;
|
|
14331
|
+
user_id: string;
|
|
14332
|
+
};
|
|
14333
|
+
Insert: {
|
|
14334
|
+
created_at?: string;
|
|
14335
|
+
id?: string;
|
|
14336
|
+
role_id: string;
|
|
14337
|
+
user_id: string;
|
|
14338
|
+
};
|
|
14339
|
+
Update: {
|
|
14340
|
+
created_at?: string;
|
|
14341
|
+
id?: string;
|
|
14342
|
+
role_id?: string;
|
|
14343
|
+
user_id?: string;
|
|
14344
|
+
};
|
|
14345
|
+
Relationships: [{
|
|
14346
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
14347
|
+
columns: ["role_id"];
|
|
14348
|
+
isOneToOne: false;
|
|
14349
|
+
referencedRelation: "roles";
|
|
14350
|
+
referencedColumns: ["id"];
|
|
14351
|
+
}];
|
|
14352
|
+
};
|
|
14353
|
+
role_permissions: {
|
|
14354
|
+
Row: {
|
|
14355
|
+
can_edit: boolean;
|
|
14356
|
+
can_view: boolean;
|
|
14357
|
+
feature_id: string;
|
|
14358
|
+
id: string;
|
|
14359
|
+
module_id: string;
|
|
14360
|
+
role_id: string;
|
|
14361
|
+
updated_at: string;
|
|
14362
|
+
};
|
|
14363
|
+
Insert: {
|
|
14364
|
+
can_edit?: boolean;
|
|
14365
|
+
can_view?: boolean;
|
|
14366
|
+
feature_id?: string;
|
|
14367
|
+
id?: string;
|
|
14368
|
+
module_id: string;
|
|
14369
|
+
role_id: string;
|
|
14370
|
+
updated_at?: string;
|
|
14371
|
+
};
|
|
14372
|
+
Update: {
|
|
14373
|
+
can_edit?: boolean;
|
|
14374
|
+
can_view?: boolean;
|
|
14375
|
+
feature_id?: string;
|
|
14376
|
+
id?: string;
|
|
14377
|
+
module_id?: string;
|
|
14378
|
+
role_id?: string;
|
|
14379
|
+
updated_at?: string;
|
|
14380
|
+
};
|
|
14381
|
+
Relationships: [{
|
|
14382
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
14383
|
+
columns: ["role_id"];
|
|
14384
|
+
isOneToOne: false;
|
|
14385
|
+
referencedRelation: "roles";
|
|
14386
|
+
referencedColumns: ["id"];
|
|
14387
|
+
}];
|
|
14388
|
+
};
|
|
14389
|
+
roles: {
|
|
14390
|
+
Row: {
|
|
14391
|
+
created_at: string;
|
|
14392
|
+
id: string;
|
|
14393
|
+
is_protected: boolean;
|
|
14394
|
+
key: string;
|
|
14395
|
+
name: string;
|
|
14396
|
+
updated_at: string;
|
|
14397
|
+
};
|
|
14398
|
+
Insert: {
|
|
14399
|
+
created_at?: string;
|
|
14400
|
+
id?: string;
|
|
14401
|
+
is_protected?: boolean;
|
|
14402
|
+
key: string;
|
|
14403
|
+
name: string;
|
|
14404
|
+
updated_at?: string;
|
|
14405
|
+
};
|
|
14406
|
+
Update: {
|
|
14407
|
+
created_at?: string;
|
|
14408
|
+
id?: string;
|
|
14409
|
+
is_protected?: boolean;
|
|
14410
|
+
key?: string;
|
|
14411
|
+
name?: string;
|
|
14412
|
+
updated_at?: string;
|
|
14413
|
+
};
|
|
14414
|
+
Relationships: [];
|
|
14415
|
+
};
|
|
14035
14416
|
rooms: {
|
|
14036
14417
|
Row: {
|
|
14037
14418
|
capacity: number;
|
|
@@ -14701,6 +15082,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
14701
15082
|
};
|
|
14702
15083
|
Relationships: [];
|
|
14703
15084
|
};
|
|
15085
|
+
time_compensation_entries: {
|
|
15086
|
+
Row: {
|
|
15087
|
+
created_at: string;
|
|
15088
|
+
employee_id: string;
|
|
15089
|
+
entry_date: string;
|
|
15090
|
+
id: string;
|
|
15091
|
+
km: number;
|
|
15092
|
+
meal_allowance: number;
|
|
15093
|
+
notes: string | null;
|
|
15094
|
+
standby_evening: number;
|
|
15095
|
+
standby_weekend: number;
|
|
15096
|
+
tvt_change: number;
|
|
15097
|
+
updated_at: string;
|
|
15098
|
+
};
|
|
15099
|
+
Insert: {
|
|
15100
|
+
created_at?: string;
|
|
15101
|
+
employee_id: string;
|
|
15102
|
+
entry_date: string;
|
|
15103
|
+
id?: string;
|
|
15104
|
+
km?: number;
|
|
15105
|
+
meal_allowance?: number;
|
|
15106
|
+
notes?: string | null;
|
|
15107
|
+
standby_evening?: number;
|
|
15108
|
+
standby_weekend?: number;
|
|
15109
|
+
tvt_change?: number;
|
|
15110
|
+
updated_at?: string;
|
|
15111
|
+
};
|
|
15112
|
+
Update: {
|
|
15113
|
+
created_at?: string;
|
|
15114
|
+
employee_id?: string;
|
|
15115
|
+
entry_date?: string;
|
|
15116
|
+
id?: string;
|
|
15117
|
+
km?: number;
|
|
15118
|
+
meal_allowance?: number;
|
|
15119
|
+
notes?: string | null;
|
|
15120
|
+
standby_evening?: number;
|
|
15121
|
+
standby_weekend?: number;
|
|
15122
|
+
tvt_change?: number;
|
|
15123
|
+
updated_at?: string;
|
|
15124
|
+
};
|
|
15125
|
+
Relationships: [{
|
|
15126
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
15127
|
+
columns: ["employee_id"];
|
|
15128
|
+
isOneToOne: false;
|
|
15129
|
+
referencedRelation: "profiles";
|
|
15130
|
+
referencedColumns: ["id"];
|
|
15131
|
+
}];
|
|
15132
|
+
};
|
|
14704
15133
|
time_entries: {
|
|
14705
15134
|
Row: {
|
|
14706
15135
|
created_at: string;
|
|
@@ -14735,65 +15164,170 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
14735
15164
|
undertime?: number;
|
|
14736
15165
|
updated_at?: string;
|
|
14737
15166
|
};
|
|
15167
|
+
Relationships: [];
|
|
15168
|
+
};
|
|
15169
|
+
time_log_week_approvals: {
|
|
15170
|
+
Row: {
|
|
15171
|
+
approved_at: string | null;
|
|
15172
|
+
approved_by: string | null;
|
|
15173
|
+
created_at: string;
|
|
15174
|
+
employee_id: string;
|
|
15175
|
+
id: string;
|
|
15176
|
+
locked: boolean;
|
|
15177
|
+
notes: string | null;
|
|
15178
|
+
status: string;
|
|
15179
|
+
submitted_at: string | null;
|
|
15180
|
+
updated_at: string;
|
|
15181
|
+
week_start: string;
|
|
15182
|
+
};
|
|
15183
|
+
Insert: {
|
|
15184
|
+
approved_at?: string | null;
|
|
15185
|
+
approved_by?: string | null;
|
|
15186
|
+
created_at?: string;
|
|
15187
|
+
employee_id: string;
|
|
15188
|
+
id?: string;
|
|
15189
|
+
locked?: boolean;
|
|
15190
|
+
notes?: string | null;
|
|
15191
|
+
status?: string;
|
|
15192
|
+
submitted_at?: string | null;
|
|
15193
|
+
updated_at?: string;
|
|
15194
|
+
week_start: string;
|
|
15195
|
+
};
|
|
15196
|
+
Update: {
|
|
15197
|
+
approved_at?: string | null;
|
|
15198
|
+
approved_by?: string | null;
|
|
15199
|
+
created_at?: string;
|
|
15200
|
+
employee_id?: string;
|
|
15201
|
+
id?: string;
|
|
15202
|
+
locked?: boolean;
|
|
15203
|
+
notes?: string | null;
|
|
15204
|
+
status?: string;
|
|
15205
|
+
submitted_at?: string | null;
|
|
15206
|
+
updated_at?: string;
|
|
15207
|
+
week_start?: string;
|
|
15208
|
+
};
|
|
14738
15209
|
Relationships: [{
|
|
14739
|
-
foreignKeyName: "
|
|
15210
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
14740
15211
|
columns: ["employee_id"];
|
|
14741
15212
|
isOneToOne: false;
|
|
14742
|
-
referencedRelation: "
|
|
15213
|
+
referencedRelation: "profiles";
|
|
14743
15214
|
referencedColumns: ["id"];
|
|
14744
15215
|
}];
|
|
14745
15216
|
};
|
|
14746
15217
|
time_logs: {
|
|
14747
15218
|
Row: {
|
|
15219
|
+
auto_stop_reason: string | null;
|
|
15220
|
+
auto_stopped: boolean;
|
|
14748
15221
|
created_at: string;
|
|
15222
|
+
current_latitude: number | null;
|
|
15223
|
+
current_longitude: number | null;
|
|
15224
|
+
current_position_updated_at: string | null;
|
|
14749
15225
|
employee_id: string;
|
|
15226
|
+
end_latitude: number | null;
|
|
15227
|
+
end_longitude: number | null;
|
|
14750
15228
|
end_time: string | null;
|
|
15229
|
+
eta_distance_km: number | null;
|
|
15230
|
+
eta_minutes: number | null;
|
|
15231
|
+
eta_updated_at: string | null;
|
|
15232
|
+
hour_category: string | null;
|
|
14751
15233
|
id: string;
|
|
15234
|
+
last_reminder_at: string | null;
|
|
14752
15235
|
notes: string | null;
|
|
14753
15236
|
overtime_hours: number;
|
|
14754
15237
|
overtime_type: string | null;
|
|
14755
15238
|
regular_hours: number;
|
|
15239
|
+
reminder_count: number;
|
|
15240
|
+
requires_review: boolean;
|
|
15241
|
+
start_latitude: number | null;
|
|
15242
|
+
start_longitude: number | null;
|
|
14756
15243
|
start_time: string;
|
|
14757
15244
|
travel_cost: number | null;
|
|
14758
15245
|
travel_distance_km: number | null;
|
|
15246
|
+
travel_duration_min: number | null;
|
|
15247
|
+
travel_time_minutes: number | null;
|
|
14759
15248
|
type: string;
|
|
14760
15249
|
updated_at: string;
|
|
15250
|
+
work_order_id: string | null;
|
|
14761
15251
|
};
|
|
14762
15252
|
Insert: {
|
|
15253
|
+
auto_stop_reason?: string | null;
|
|
15254
|
+
auto_stopped?: boolean;
|
|
14763
15255
|
created_at?: string;
|
|
15256
|
+
current_latitude?: number | null;
|
|
15257
|
+
current_longitude?: number | null;
|
|
15258
|
+
current_position_updated_at?: string | null;
|
|
14764
15259
|
employee_id: string;
|
|
15260
|
+
end_latitude?: number | null;
|
|
15261
|
+
end_longitude?: number | null;
|
|
14765
15262
|
end_time?: string | null;
|
|
15263
|
+
eta_distance_km?: number | null;
|
|
15264
|
+
eta_minutes?: number | null;
|
|
15265
|
+
eta_updated_at?: string | null;
|
|
15266
|
+
hour_category?: string | null;
|
|
14766
15267
|
id?: string;
|
|
15268
|
+
last_reminder_at?: string | null;
|
|
14767
15269
|
notes?: string | null;
|
|
14768
15270
|
overtime_hours?: number;
|
|
14769
15271
|
overtime_type?: string | null;
|
|
14770
15272
|
regular_hours?: number;
|
|
15273
|
+
reminder_count?: number;
|
|
15274
|
+
requires_review?: boolean;
|
|
15275
|
+
start_latitude?: number | null;
|
|
15276
|
+
start_longitude?: number | null;
|
|
14771
15277
|
start_time?: string;
|
|
14772
15278
|
travel_cost?: number | null;
|
|
14773
15279
|
travel_distance_km?: number | null;
|
|
15280
|
+
travel_duration_min?: number | null;
|
|
15281
|
+
travel_time_minutes?: number | null;
|
|
14774
15282
|
type: string;
|
|
14775
15283
|
updated_at?: string;
|
|
15284
|
+
work_order_id?: string | null;
|
|
14776
15285
|
};
|
|
14777
15286
|
Update: {
|
|
15287
|
+
auto_stop_reason?: string | null;
|
|
15288
|
+
auto_stopped?: boolean;
|
|
14778
15289
|
created_at?: string;
|
|
15290
|
+
current_latitude?: number | null;
|
|
15291
|
+
current_longitude?: number | null;
|
|
15292
|
+
current_position_updated_at?: string | null;
|
|
14779
15293
|
employee_id?: string;
|
|
15294
|
+
end_latitude?: number | null;
|
|
15295
|
+
end_longitude?: number | null;
|
|
14780
15296
|
end_time?: string | null;
|
|
15297
|
+
eta_distance_km?: number | null;
|
|
15298
|
+
eta_minutes?: number | null;
|
|
15299
|
+
eta_updated_at?: string | null;
|
|
15300
|
+
hour_category?: string | null;
|
|
14781
15301
|
id?: string;
|
|
15302
|
+
last_reminder_at?: string | null;
|
|
14782
15303
|
notes?: string | null;
|
|
14783
15304
|
overtime_hours?: number;
|
|
14784
15305
|
overtime_type?: string | null;
|
|
14785
15306
|
regular_hours?: number;
|
|
15307
|
+
reminder_count?: number;
|
|
15308
|
+
requires_review?: boolean;
|
|
15309
|
+
start_latitude?: number | null;
|
|
15310
|
+
start_longitude?: number | null;
|
|
14786
15311
|
start_time?: string;
|
|
14787
15312
|
travel_cost?: number | null;
|
|
14788
15313
|
travel_distance_km?: number | null;
|
|
15314
|
+
travel_duration_min?: number | null;
|
|
15315
|
+
travel_time_minutes?: number | null;
|
|
14789
15316
|
type?: string;
|
|
14790
15317
|
updated_at?: string;
|
|
15318
|
+
work_order_id?: string | null;
|
|
14791
15319
|
};
|
|
14792
15320
|
Relationships: [{
|
|
14793
15321
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
14794
15322
|
columns: ["employee_id"];
|
|
14795
15323
|
isOneToOne: false;
|
|
14796
|
-
referencedRelation: "
|
|
15324
|
+
referencedRelation: "profiles";
|
|
15325
|
+
referencedColumns: ["id"];
|
|
15326
|
+
}, {
|
|
15327
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
15328
|
+
columns: ["work_order_id"];
|
|
15329
|
+
isOneToOne: false;
|
|
15330
|
+
referencedRelation: "work_orders";
|
|
14797
15331
|
referencedColumns: ["id"];
|
|
14798
15332
|
}];
|
|
14799
15333
|
};
|
|
@@ -14832,7 +15366,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
14832
15366
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
14833
15367
|
columns: ["employee_id"];
|
|
14834
15368
|
isOneToOne: false;
|
|
14835
|
-
referencedRelation: "
|
|
15369
|
+
referencedRelation: "profiles";
|
|
14836
15370
|
referencedColumns: ["id"];
|
|
14837
15371
|
}];
|
|
14838
15372
|
};
|
|
@@ -15142,6 +15676,39 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15142
15676
|
};
|
|
15143
15677
|
Relationships: [];
|
|
15144
15678
|
};
|
|
15679
|
+
twinfield_cron_locks: {
|
|
15680
|
+
Row: {
|
|
15681
|
+
created_at: string;
|
|
15682
|
+
heartbeat_at: string;
|
|
15683
|
+
job_name: string;
|
|
15684
|
+
last_error: string | null;
|
|
15685
|
+
last_finished_at: string | null;
|
|
15686
|
+
locked_at: string;
|
|
15687
|
+
run_id: string;
|
|
15688
|
+
updated_at: string;
|
|
15689
|
+
};
|
|
15690
|
+
Insert: {
|
|
15691
|
+
created_at?: string;
|
|
15692
|
+
heartbeat_at?: string;
|
|
15693
|
+
job_name: string;
|
|
15694
|
+
last_error?: string | null;
|
|
15695
|
+
last_finished_at?: string | null;
|
|
15696
|
+
locked_at?: string;
|
|
15697
|
+
run_id?: string;
|
|
15698
|
+
updated_at?: string;
|
|
15699
|
+
};
|
|
15700
|
+
Update: {
|
|
15701
|
+
created_at?: string;
|
|
15702
|
+
heartbeat_at?: string;
|
|
15703
|
+
job_name?: string;
|
|
15704
|
+
last_error?: string | null;
|
|
15705
|
+
last_finished_at?: string | null;
|
|
15706
|
+
locked_at?: string;
|
|
15707
|
+
run_id?: string;
|
|
15708
|
+
updated_at?: string;
|
|
15709
|
+
};
|
|
15710
|
+
Relationships: [];
|
|
15711
|
+
};
|
|
15145
15712
|
twinfield_customers: {
|
|
15146
15713
|
Row: {
|
|
15147
15714
|
address: string | null;
|
|
@@ -15396,6 +15963,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15396
15963
|
};
|
|
15397
15964
|
twinfield_invoice_settings: {
|
|
15398
15965
|
Row: {
|
|
15966
|
+
auto_invoice_enabled: boolean;
|
|
15967
|
+
auto_invoice_trigger_statuses: string[];
|
|
15399
15968
|
created_at: string;
|
|
15400
15969
|
debtor_gl_account: string;
|
|
15401
15970
|
default_credit_invoice_type: string | null;
|
|
@@ -15416,6 +15985,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15416
15985
|
vat_code_export: string | null;
|
|
15417
15986
|
};
|
|
15418
15987
|
Insert: {
|
|
15988
|
+
auto_invoice_enabled?: boolean;
|
|
15989
|
+
auto_invoice_trigger_statuses?: string[];
|
|
15419
15990
|
created_at?: string;
|
|
15420
15991
|
debtor_gl_account?: string;
|
|
15421
15992
|
default_credit_invoice_type?: string | null;
|
|
@@ -15436,6 +16007,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15436
16007
|
vat_code_export?: string | null;
|
|
15437
16008
|
};
|
|
15438
16009
|
Update: {
|
|
16010
|
+
auto_invoice_enabled?: boolean;
|
|
16011
|
+
auto_invoice_trigger_statuses?: string[];
|
|
15439
16012
|
created_at?: string;
|
|
15440
16013
|
debtor_gl_account?: string;
|
|
15441
16014
|
default_credit_invoice_type?: string | null;
|
|
@@ -15736,6 +16309,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15736
16309
|
twinfield_push_queue: {
|
|
15737
16310
|
Row: {
|
|
15738
16311
|
action: string;
|
|
16312
|
+
attempt_started_at: string | null;
|
|
15739
16313
|
attempts: number;
|
|
15740
16314
|
connection_id: string | null;
|
|
15741
16315
|
created_at: string;
|
|
@@ -15752,6 +16326,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15752
16326
|
};
|
|
15753
16327
|
Insert: {
|
|
15754
16328
|
action?: string;
|
|
16329
|
+
attempt_started_at?: string | null;
|
|
15755
16330
|
attempts?: number;
|
|
15756
16331
|
connection_id?: string | null;
|
|
15757
16332
|
created_at?: string;
|
|
@@ -15768,6 +16343,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15768
16343
|
};
|
|
15769
16344
|
Update: {
|
|
15770
16345
|
action?: string;
|
|
16346
|
+
attempt_started_at?: string | null;
|
|
15771
16347
|
attempts?: number;
|
|
15772
16348
|
connection_id?: string | null;
|
|
15773
16349
|
created_at?: string;
|
|
@@ -15965,13 +16541,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15965
16541
|
workday_end?: string | null;
|
|
15966
16542
|
workday_start?: string | null;
|
|
15967
16543
|
};
|
|
15968
|
-
Relationships: [
|
|
15969
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
15970
|
-
columns: ["monteur_id"];
|
|
15971
|
-
isOneToOne: true;
|
|
15972
|
-
referencedRelation: "monteurs";
|
|
15973
|
-
referencedColumns: ["id"];
|
|
15974
|
-
}];
|
|
16544
|
+
Relationships: [];
|
|
15975
16545
|
};
|
|
15976
16546
|
uren_entries: {
|
|
15977
16547
|
Row: {
|
|
@@ -16017,12 +16587,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
16017
16587
|
werkbon_id?: string | null;
|
|
16018
16588
|
};
|
|
16019
16589
|
Relationships: [{
|
|
16020
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16021
|
-
columns: ["monteur_id"];
|
|
16022
|
-
isOneToOne: false;
|
|
16023
|
-
referencedRelation: "monteurs";
|
|
16024
|
-
referencedColumns: ["id"];
|
|
16025
|
-
}, {
|
|
16026
16590
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16027
16591
|
columns: ["werkbon_id"];
|
|
16028
16592
|
isOneToOne: false;
|
|
@@ -16490,17 +17054,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
16490
17054
|
submitted_at?: string | null;
|
|
16491
17055
|
updated_at?: string;
|
|
16492
17056
|
};
|
|
16493
|
-
Relationships: [
|
|
16494
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
16495
|
-
columns: ["monteur_id"];
|
|
16496
|
-
isOneToOne: false;
|
|
16497
|
-
referencedRelation: "monteurs";
|
|
16498
|
-
referencedColumns: ["id"];
|
|
16499
|
-
}];
|
|
17057
|
+
Relationships: [];
|
|
16500
17058
|
};
|
|
16501
17059
|
user_module_permissions: {
|
|
16502
17060
|
Row: {
|
|
16503
17061
|
created_at: string;
|
|
17062
|
+
feature_id: string;
|
|
16504
17063
|
id: string;
|
|
16505
17064
|
module_id: string;
|
|
16506
17065
|
permission: string;
|
|
@@ -16509,6 +17068,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
16509
17068
|
};
|
|
16510
17069
|
Insert: {
|
|
16511
17070
|
created_at?: string;
|
|
17071
|
+
feature_id?: string;
|
|
16512
17072
|
id?: string;
|
|
16513
17073
|
module_id: string;
|
|
16514
17074
|
permission: string;
|
|
@@ -16517,6 +17077,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
16517
17077
|
};
|
|
16518
17078
|
Update: {
|
|
16519
17079
|
created_at?: string;
|
|
17080
|
+
feature_id?: string;
|
|
16520
17081
|
id?: string;
|
|
16521
17082
|
module_id?: string;
|
|
16522
17083
|
permission?: string;
|
|
@@ -16552,6 +17113,51 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
16552
17113
|
referencedColumns: ["id"];
|
|
16553
17114
|
}];
|
|
16554
17115
|
};
|
|
17116
|
+
van_inventories: {
|
|
17117
|
+
Row: {
|
|
17118
|
+
barcode: string | null;
|
|
17119
|
+
created_at: string;
|
|
17120
|
+
id: string;
|
|
17121
|
+
monteur_id: string | null;
|
|
17122
|
+
price_per_unit: number;
|
|
17123
|
+
product_name: string;
|
|
17124
|
+
quantity_current: number;
|
|
17125
|
+
quantity_min: number;
|
|
17126
|
+
unit: string;
|
|
17127
|
+
updated_at: string;
|
|
17128
|
+
};
|
|
17129
|
+
Insert: {
|
|
17130
|
+
barcode?: string | null;
|
|
17131
|
+
created_at?: string;
|
|
17132
|
+
id?: string;
|
|
17133
|
+
monteur_id?: string | null;
|
|
17134
|
+
price_per_unit?: number;
|
|
17135
|
+
product_name: string;
|
|
17136
|
+
quantity_current?: number;
|
|
17137
|
+
quantity_min?: number;
|
|
17138
|
+
unit?: string;
|
|
17139
|
+
updated_at?: string;
|
|
17140
|
+
};
|
|
17141
|
+
Update: {
|
|
17142
|
+
barcode?: string | null;
|
|
17143
|
+
created_at?: string;
|
|
17144
|
+
id?: string;
|
|
17145
|
+
monteur_id?: string | null;
|
|
17146
|
+
price_per_unit?: number;
|
|
17147
|
+
product_name?: string;
|
|
17148
|
+
quantity_current?: number;
|
|
17149
|
+
quantity_min?: number;
|
|
17150
|
+
unit?: string;
|
|
17151
|
+
updated_at?: string;
|
|
17152
|
+
};
|
|
17153
|
+
Relationships: [{
|
|
17154
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
17155
|
+
columns: ["monteur_id"];
|
|
17156
|
+
isOneToOne: false;
|
|
17157
|
+
referencedRelation: "profiles";
|
|
17158
|
+
referencedColumns: ["id"];
|
|
17159
|
+
}];
|
|
17160
|
+
};
|
|
16555
17161
|
voorraad_custom_fields: {
|
|
16556
17162
|
Row: {
|
|
16557
17163
|
created_at: string;
|
|
@@ -17502,7 +18108,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17502
18108
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
17503
18109
|
columns: ["monteur_id"];
|
|
17504
18110
|
isOneToOne: false;
|
|
17505
|
-
referencedRelation: "
|
|
18111
|
+
referencedRelation: "profiles";
|
|
17506
18112
|
referencedColumns: ["id"];
|
|
17507
18113
|
}, {
|
|
17508
18114
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -17512,6 +18118,60 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17512
18118
|
referencedColumns: ["id"];
|
|
17513
18119
|
}];
|
|
17514
18120
|
};
|
|
18121
|
+
work_order_photos: {
|
|
18122
|
+
Row: {
|
|
18123
|
+
ai_caption: string | null;
|
|
18124
|
+
ai_categorized_at: string | null;
|
|
18125
|
+
ai_labels: import("./types").Json | null;
|
|
18126
|
+
caption: string | null;
|
|
18127
|
+
created_at: string;
|
|
18128
|
+
id: string;
|
|
18129
|
+
monteur_id: string | null;
|
|
18130
|
+
photo_type: string;
|
|
18131
|
+
storage_path: string;
|
|
18132
|
+
updated_at: string;
|
|
18133
|
+
work_order_id: string;
|
|
18134
|
+
};
|
|
18135
|
+
Insert: {
|
|
18136
|
+
ai_caption?: string | null;
|
|
18137
|
+
ai_categorized_at?: string | null;
|
|
18138
|
+
ai_labels?: import("./types").Json | null;
|
|
18139
|
+
caption?: string | null;
|
|
18140
|
+
created_at?: string;
|
|
18141
|
+
id?: string;
|
|
18142
|
+
monteur_id?: string | null;
|
|
18143
|
+
photo_type?: string;
|
|
18144
|
+
storage_path: string;
|
|
18145
|
+
updated_at?: string;
|
|
18146
|
+
work_order_id: string;
|
|
18147
|
+
};
|
|
18148
|
+
Update: {
|
|
18149
|
+
ai_caption?: string | null;
|
|
18150
|
+
ai_categorized_at?: string | null;
|
|
18151
|
+
ai_labels?: import("./types").Json | null;
|
|
18152
|
+
caption?: string | null;
|
|
18153
|
+
created_at?: string;
|
|
18154
|
+
id?: string;
|
|
18155
|
+
monteur_id?: string | null;
|
|
18156
|
+
photo_type?: string;
|
|
18157
|
+
storage_path?: string;
|
|
18158
|
+
updated_at?: string;
|
|
18159
|
+
work_order_id?: string;
|
|
18160
|
+
};
|
|
18161
|
+
Relationships: [{
|
|
18162
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
18163
|
+
columns: ["monteur_id"];
|
|
18164
|
+
isOneToOne: false;
|
|
18165
|
+
referencedRelation: "profiles";
|
|
18166
|
+
referencedColumns: ["id"];
|
|
18167
|
+
}, {
|
|
18168
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
18169
|
+
columns: ["work_order_id"];
|
|
18170
|
+
isOneToOne: false;
|
|
18171
|
+
referencedRelation: "work_orders";
|
|
18172
|
+
referencedColumns: ["id"];
|
|
18173
|
+
}];
|
|
18174
|
+
};
|
|
17515
18175
|
work_orders: {
|
|
17516
18176
|
Row: {
|
|
17517
18177
|
assigned_to: string | null;
|
|
@@ -17543,7 +18203,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17543
18203
|
scheduled_end_time: string | null;
|
|
17544
18204
|
scheduled_start_time: string | null;
|
|
17545
18205
|
status: string;
|
|
17546
|
-
tenant_id: string;
|
|
17547
18206
|
total_hours_worked: number | null;
|
|
17548
18207
|
total_price: number | null;
|
|
17549
18208
|
travel_time_minutes: number | null;
|
|
@@ -17581,7 +18240,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17581
18240
|
scheduled_end_time?: string | null;
|
|
17582
18241
|
scheduled_start_time?: string | null;
|
|
17583
18242
|
status?: string;
|
|
17584
|
-
tenant_id: string;
|
|
17585
18243
|
total_hours_worked?: number | null;
|
|
17586
18244
|
total_price?: number | null;
|
|
17587
18245
|
travel_time_minutes?: number | null;
|
|
@@ -17619,7 +18277,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17619
18277
|
scheduled_end_time?: string | null;
|
|
17620
18278
|
scheduled_start_time?: string | null;
|
|
17621
18279
|
status?: string;
|
|
17622
|
-
tenant_id?: string;
|
|
17623
18280
|
total_hours_worked?: number | null;
|
|
17624
18281
|
total_price?: number | null;
|
|
17625
18282
|
travel_time_minutes?: number | null;
|
|
@@ -17633,12 +18290,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17633
18290
|
isOneToOne: false;
|
|
17634
18291
|
referencedRelation: "work_orders";
|
|
17635
18292
|
referencedColumns: ["id"];
|
|
17636
|
-
}, {
|
|
17637
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
17638
|
-
columns: ["tenant_id"];
|
|
17639
|
-
isOneToOne: false;
|
|
17640
|
-
referencedRelation: "tenants";
|
|
17641
|
-
referencedColumns: ["id"];
|
|
17642
18293
|
}];
|
|
17643
18294
|
};
|
|
17644
18295
|
};
|
|
@@ -18323,6 +18974,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18323
18974
|
};
|
|
18324
18975
|
Returns: undefined;
|
|
18325
18976
|
};
|
|
18977
|
+
approve_mailbox_order_proposal: {
|
|
18978
|
+
Args: {
|
|
18979
|
+
p_custom_fields: import("./types").Json;
|
|
18980
|
+
p_customer_id: string;
|
|
18981
|
+
p_delivery_date: string;
|
|
18982
|
+
p_field_values?: import("./types").Json;
|
|
18983
|
+
p_lines: import("./types").Json;
|
|
18984
|
+
p_notes: string;
|
|
18985
|
+
p_proposal_id: string;
|
|
18986
|
+
p_reviewed_by: string;
|
|
18987
|
+
};
|
|
18988
|
+
Returns: import("./types").Json;
|
|
18989
|
+
};
|
|
18326
18990
|
assign_cart_numbers: {
|
|
18327
18991
|
Args: {
|
|
18328
18992
|
p_carts: import("./types").Json;
|
|
@@ -18358,6 +19022,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18358
19022
|
processed_items: number;
|
|
18359
19023
|
}[];
|
|
18360
19024
|
};
|
|
19025
|
+
backfill_order_auto_invoice_queue: {
|
|
19026
|
+
Args: never;
|
|
19027
|
+
Returns: number;
|
|
19028
|
+
};
|
|
18361
19029
|
calculate_layer_stock: {
|
|
18362
19030
|
Args: {
|
|
18363
19031
|
p_product_id: string;
|
|
@@ -18370,6 +19038,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18370
19038
|
};
|
|
18371
19039
|
Returns: number;
|
|
18372
19040
|
};
|
|
19041
|
+
can_manage_hours: {
|
|
19042
|
+
Args: never;
|
|
19043
|
+
Returns: boolean;
|
|
19044
|
+
};
|
|
18373
19045
|
check_offer_product_available_stock: {
|
|
18374
19046
|
Args: {
|
|
18375
19047
|
p_campaign_product_id: string;
|
|
@@ -18559,6 +19231,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18559
19231
|
};
|
|
18560
19232
|
Returns: {
|
|
18561
19233
|
action: string;
|
|
19234
|
+
attempt_started_at: string | null;
|
|
18562
19235
|
attempts: number;
|
|
18563
19236
|
connection_id: string | null;
|
|
18564
19237
|
created_at: string;
|
|
@@ -18646,6 +19319,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18646
19319
|
agent_naam: string;
|
|
18647
19320
|
}[];
|
|
18648
19321
|
};
|
|
19322
|
+
consume_van_inventory: {
|
|
19323
|
+
Args: {
|
|
19324
|
+
p_inventory_id: string;
|
|
19325
|
+
p_quantity: number;
|
|
19326
|
+
};
|
|
19327
|
+
Returns: {
|
|
19328
|
+
barcode: string | null;
|
|
19329
|
+
created_at: string;
|
|
19330
|
+
id: string;
|
|
19331
|
+
monteur_id: string | null;
|
|
19332
|
+
price_per_unit: number;
|
|
19333
|
+
product_name: string;
|
|
19334
|
+
quantity_current: number;
|
|
19335
|
+
quantity_min: number;
|
|
19336
|
+
unit: string;
|
|
19337
|
+
updated_at: string;
|
|
19338
|
+
};
|
|
19339
|
+
SetofOptions: {
|
|
19340
|
+
from: "*";
|
|
19341
|
+
to: "van_inventories";
|
|
19342
|
+
isOneToOne: true;
|
|
19343
|
+
isSetofReturn: false;
|
|
19344
|
+
};
|
|
19345
|
+
};
|
|
18649
19346
|
control_get_todays_carts: {
|
|
18650
19347
|
Args: never;
|
|
18651
19348
|
Returns: {
|
|
@@ -18719,6 +19416,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18719
19416
|
_user_id: string;
|
|
18720
19417
|
};
|
|
18721
19418
|
Returns: string;
|
|
19419
|
+
} | {
|
|
19420
|
+
Args: {
|
|
19421
|
+
_feature_id?: string;
|
|
19422
|
+
_module_id: string;
|
|
19423
|
+
_user_id: string;
|
|
19424
|
+
};
|
|
19425
|
+
Returns: string;
|
|
18722
19426
|
};
|
|
18723
19427
|
email_auth_decrypt: {
|
|
18724
19428
|
Args: {
|
|
@@ -19070,12 +19774,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
19070
19774
|
Args: never;
|
|
19071
19775
|
Returns: string;
|
|
19072
19776
|
};
|
|
19073
|
-
get_work_order_tenant_id: {
|
|
19074
|
-
Args: {
|
|
19075
|
-
wo_id: string;
|
|
19076
|
-
};
|
|
19077
|
-
Returns: string;
|
|
19078
|
-
};
|
|
19079
19777
|
has_module_permission: {
|
|
19080
19778
|
Args: {
|
|
19081
19779
|
_min: string;
|
|
@@ -19109,6 +19807,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
19109
19807
|
};
|
|
19110
19808
|
Returns: boolean;
|
|
19111
19809
|
};
|
|
19810
|
+
is_time_log_week_locked: {
|
|
19811
|
+
Args: {
|
|
19812
|
+
p_employee_id: string;
|
|
19813
|
+
p_start_time: string;
|
|
19814
|
+
};
|
|
19815
|
+
Returns: boolean;
|
|
19816
|
+
};
|
|
19112
19817
|
is_user_admin: {
|
|
19113
19818
|
Args: never;
|
|
19114
19819
|
Returns: boolean;
|
|
@@ -19123,13 +19828,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
19123
19828
|
};
|
|
19124
19829
|
Returns: boolean;
|
|
19125
19830
|
};
|
|
19126
|
-
|
|
19831
|
+
list_medewerkers: {
|
|
19127
19832
|
Args: never;
|
|
19128
19833
|
Returns: {
|
|
19129
19834
|
avatar_url: string;
|
|
19130
19835
|
display_name: string;
|
|
19131
19836
|
email: string;
|
|
19132
19837
|
id: string;
|
|
19838
|
+
roles: string[];
|
|
19133
19839
|
}[];
|
|
19134
19840
|
};
|
|
19135
19841
|
list_my_planning_items: {
|
|
@@ -19620,6 +20326,65 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
19620
20326
|
};
|
|
19621
20327
|
Returns: number;
|
|
19622
20328
|
};
|
|
20329
|
+
logistics_plan_claim: {
|
|
20330
|
+
Args: {
|
|
20331
|
+
p_limit?: number;
|
|
20332
|
+
};
|
|
20333
|
+
Returns: {
|
|
20334
|
+
attempts: number;
|
|
20335
|
+
id: string;
|
|
20336
|
+
order_id: string;
|
|
20337
|
+
}[];
|
|
20338
|
+
};
|
|
20339
|
+
logistics_plan_enqueue: {
|
|
20340
|
+
Args: {
|
|
20341
|
+
p_order_id: string;
|
|
20342
|
+
p_reason?: string;
|
|
20343
|
+
};
|
|
20344
|
+
Returns: undefined;
|
|
20345
|
+
};
|
|
20346
|
+
logistics_plan_ensure_event: {
|
|
20347
|
+
Args: {
|
|
20348
|
+
p_order_id: string;
|
|
20349
|
+
};
|
|
20350
|
+
Returns: boolean;
|
|
20351
|
+
};
|
|
20352
|
+
logistics_plan_finish: {
|
|
20353
|
+
Args: {
|
|
20354
|
+
p_error?: string;
|
|
20355
|
+
p_id: string;
|
|
20356
|
+
};
|
|
20357
|
+
Returns: undefined;
|
|
20358
|
+
};
|
|
20359
|
+
logistics_plan_impact_orders: {
|
|
20360
|
+
Args: {
|
|
20361
|
+
p_order_id: string;
|
|
20362
|
+
};
|
|
20363
|
+
Returns: {
|
|
20364
|
+
buffer_id: string;
|
|
20365
|
+
order_id: string;
|
|
20366
|
+
plan_date: string;
|
|
20367
|
+
}[];
|
|
20368
|
+
};
|
|
20369
|
+
logistics_plan_kick: {
|
|
20370
|
+
Args: never;
|
|
20371
|
+
Returns: undefined;
|
|
20372
|
+
};
|
|
20373
|
+
logistics_plan_prune: {
|
|
20374
|
+
Args: never;
|
|
20375
|
+
Returns: number;
|
|
20376
|
+
};
|
|
20377
|
+
logistics_plan_release_stale: {
|
|
20378
|
+
Args: never;
|
|
20379
|
+
Returns: number;
|
|
20380
|
+
};
|
|
20381
|
+
logistics_plan_setting: {
|
|
20382
|
+
Args: {
|
|
20383
|
+
p_default: number;
|
|
20384
|
+
p_key: string;
|
|
20385
|
+
};
|
|
20386
|
+
Returns: number;
|
|
20387
|
+
};
|
|
19623
20388
|
logistics_queue_capacity_email: {
|
|
19624
20389
|
Args: {
|
|
19625
20390
|
p_alert_id: string;
|
|
@@ -19861,6 +20626,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
19861
20626
|
my_module_permissions: {
|
|
19862
20627
|
Args: never;
|
|
19863
20628
|
Returns: {
|
|
20629
|
+
feature_id: string;
|
|
19864
20630
|
module_id: string;
|
|
19865
20631
|
permission: string;
|
|
19866
20632
|
}[];
|
|
@@ -20741,6 +21507,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20741
21507
|
};
|
|
20742
21508
|
Returns: string[];
|
|
20743
21509
|
};
|
|
21510
|
+
switch_time_log: {
|
|
21511
|
+
Args: {
|
|
21512
|
+
p_employee_id: string;
|
|
21513
|
+
p_start_lat?: number;
|
|
21514
|
+
p_start_lng?: number;
|
|
21515
|
+
p_type: string;
|
|
21516
|
+
p_work_order_id?: string;
|
|
21517
|
+
};
|
|
21518
|
+
Returns: import("./types").Json;
|
|
21519
|
+
};
|
|
20744
21520
|
sync_all_layer_stocks: {
|
|
20745
21521
|
Args: never;
|
|
20746
21522
|
Returns: undefined;
|
|
@@ -20791,6 +21567,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20791
21567
|
};
|
|
20792
21568
|
Returns: boolean;
|
|
20793
21569
|
};
|
|
21570
|
+
twinfield_cron_lock_acquire: {
|
|
21571
|
+
Args: {
|
|
21572
|
+
_job_name: string;
|
|
21573
|
+
_stale_seconds?: number;
|
|
21574
|
+
};
|
|
21575
|
+
Returns: boolean;
|
|
21576
|
+
};
|
|
21577
|
+
twinfield_cron_lock_release: {
|
|
21578
|
+
Args: {
|
|
21579
|
+
_error?: string;
|
|
21580
|
+
_job_name: string;
|
|
21581
|
+
};
|
|
21582
|
+
Returns: undefined;
|
|
21583
|
+
};
|
|
21584
|
+
twinfield_prune_push_queue: {
|
|
21585
|
+
Args: never;
|
|
21586
|
+
Returns: number;
|
|
21587
|
+
};
|
|
20794
21588
|
twinfield_register_cron: {
|
|
20795
21589
|
Args: {
|
|
20796
21590
|
apikey?: string;
|