@flowselections/floriday-voorraad 1.0.37 → 1.0.38
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/index.d.ts +0 -1
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +0 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +2698 -344
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +2698 -344
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.js +2 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +2698 -344
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/previewAuthStorage.d.ts +6 -0
- package/dist-lib/integrations/supabase/previewAuthStorage.d.ts.map +1 -0
- package/dist-lib/integrations/supabase/previewAuthStorage.js +92 -0
- package/dist-lib/integrations/supabase/types.d.ts +2846 -443
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +3 -0
- package/dist-lib/lib/floricode-required-features.functions.d.ts +2698 -344
- package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-customer-offer.functions.d.ts +2698 -344
- package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-env.functions.d.ts +5182 -474
- package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-gateway.functions.d.ts +15546 -1422
- package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-vbn-required.functions.d.ts +5182 -474
- package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-warehouse.functions.d.ts +7773 -711
- package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +5182 -474
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/module-health.functions.d.ts +5182 -474
- package/dist-lib/lib/module-health.functions.d.ts.map +1 -1
- package/dist-lib/lib/stock-sync.functions.d.ts +5182 -474
- package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -673,6 +673,99 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
673
673
|
};
|
|
674
674
|
Relationships: [];
|
|
675
675
|
};
|
|
676
|
+
artikelen_cache: {
|
|
677
|
+
Row: {
|
|
678
|
+
artikelcode: string;
|
|
679
|
+
bron: string;
|
|
680
|
+
bruto_prijs_cent: number | null;
|
|
681
|
+
created_at: string;
|
|
682
|
+
eenheid: string;
|
|
683
|
+
fabrikant: string | null;
|
|
684
|
+
fetched_at: string;
|
|
685
|
+
gtin: string | null;
|
|
686
|
+
id: string;
|
|
687
|
+
naam: string;
|
|
688
|
+
netto_prijs_cent: number | null;
|
|
689
|
+
omschrijving: string | null;
|
|
690
|
+
raw: import("./types").Json;
|
|
691
|
+
updated_at: string;
|
|
692
|
+
valuta: string;
|
|
693
|
+
};
|
|
694
|
+
Insert: {
|
|
695
|
+
artikelcode: string;
|
|
696
|
+
bron?: string;
|
|
697
|
+
bruto_prijs_cent?: number | null;
|
|
698
|
+
created_at?: string;
|
|
699
|
+
eenheid?: string;
|
|
700
|
+
fabrikant?: string | null;
|
|
701
|
+
fetched_at?: string;
|
|
702
|
+
gtin?: string | null;
|
|
703
|
+
id?: string;
|
|
704
|
+
naam: string;
|
|
705
|
+
netto_prijs_cent?: number | null;
|
|
706
|
+
omschrijving?: string | null;
|
|
707
|
+
raw?: import("./types").Json;
|
|
708
|
+
updated_at?: string;
|
|
709
|
+
valuta?: string;
|
|
710
|
+
};
|
|
711
|
+
Update: {
|
|
712
|
+
artikelcode?: string;
|
|
713
|
+
bron?: string;
|
|
714
|
+
bruto_prijs_cent?: number | null;
|
|
715
|
+
created_at?: string;
|
|
716
|
+
eenheid?: string;
|
|
717
|
+
fabrikant?: string | null;
|
|
718
|
+
fetched_at?: string;
|
|
719
|
+
gtin?: string | null;
|
|
720
|
+
id?: string;
|
|
721
|
+
naam?: string;
|
|
722
|
+
netto_prijs_cent?: number | null;
|
|
723
|
+
omschrijving?: string | null;
|
|
724
|
+
raw?: import("./types").Json;
|
|
725
|
+
updated_at?: string;
|
|
726
|
+
valuta?: string;
|
|
727
|
+
};
|
|
728
|
+
Relationships: [];
|
|
729
|
+
};
|
|
730
|
+
artikelen_veldconfig: {
|
|
731
|
+
Row: {
|
|
732
|
+
bron_pad: string;
|
|
733
|
+
created_at: string;
|
|
734
|
+
id: string;
|
|
735
|
+
label: string;
|
|
736
|
+
sort_order: number;
|
|
737
|
+
type: string;
|
|
738
|
+
updated_at: string;
|
|
739
|
+
veld_key: string;
|
|
740
|
+
zichtbaar_in_detail: boolean;
|
|
741
|
+
zichtbaar_in_lijst: boolean;
|
|
742
|
+
};
|
|
743
|
+
Insert: {
|
|
744
|
+
bron_pad: string;
|
|
745
|
+
created_at?: string;
|
|
746
|
+
id?: string;
|
|
747
|
+
label: string;
|
|
748
|
+
sort_order?: number;
|
|
749
|
+
type?: string;
|
|
750
|
+
updated_at?: string;
|
|
751
|
+
veld_key: string;
|
|
752
|
+
zichtbaar_in_detail?: boolean;
|
|
753
|
+
zichtbaar_in_lijst?: boolean;
|
|
754
|
+
};
|
|
755
|
+
Update: {
|
|
756
|
+
bron_pad?: string;
|
|
757
|
+
created_at?: string;
|
|
758
|
+
id?: string;
|
|
759
|
+
label?: string;
|
|
760
|
+
sort_order?: number;
|
|
761
|
+
type?: string;
|
|
762
|
+
updated_at?: string;
|
|
763
|
+
veld_key?: string;
|
|
764
|
+
zichtbaar_in_detail?: boolean;
|
|
765
|
+
zichtbaar_in_lijst?: boolean;
|
|
766
|
+
};
|
|
767
|
+
Relationships: [];
|
|
768
|
+
};
|
|
676
769
|
booking_items: {
|
|
677
770
|
Row: {
|
|
678
771
|
booking_id: string;
|
|
@@ -871,6 +964,126 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
871
964
|
};
|
|
872
965
|
Relationships: [];
|
|
873
966
|
};
|
|
967
|
+
cao_holidays: {
|
|
968
|
+
Row: {
|
|
969
|
+
created_at: string;
|
|
970
|
+
description: string | null;
|
|
971
|
+
holiday_date: string;
|
|
972
|
+
id: string;
|
|
973
|
+
updated_at: string;
|
|
974
|
+
};
|
|
975
|
+
Insert: {
|
|
976
|
+
created_at?: string;
|
|
977
|
+
description?: string | null;
|
|
978
|
+
holiday_date: string;
|
|
979
|
+
id?: string;
|
|
980
|
+
updated_at?: string;
|
|
981
|
+
};
|
|
982
|
+
Update: {
|
|
983
|
+
created_at?: string;
|
|
984
|
+
description?: string | null;
|
|
985
|
+
holiday_date?: string;
|
|
986
|
+
id?: string;
|
|
987
|
+
updated_at?: string;
|
|
988
|
+
};
|
|
989
|
+
Relationships: [];
|
|
990
|
+
};
|
|
991
|
+
cao_settings: {
|
|
992
|
+
Row: {
|
|
993
|
+
auto_break_after_hours: number;
|
|
994
|
+
auto_break_minutes: number;
|
|
995
|
+
auto_break_unpaid: boolean;
|
|
996
|
+
auto_stop_after_hours: number;
|
|
997
|
+
callout_fee: number;
|
|
998
|
+
created_at: string;
|
|
999
|
+
daily_regular_hours: number;
|
|
1000
|
+
default_hourly_rate: number;
|
|
1001
|
+
id: string;
|
|
1002
|
+
materials_markup_percent: number;
|
|
1003
|
+
max_daily_hours: number;
|
|
1004
|
+
max_weekly_hours: number;
|
|
1005
|
+
meal_allowance_amount: number;
|
|
1006
|
+
overtime_pct_178: number;
|
|
1007
|
+
overtime_pct_189: number;
|
|
1008
|
+
overtime_pct_212: number;
|
|
1009
|
+
reminder_after_hours: number;
|
|
1010
|
+
standby_evening_amount: number;
|
|
1011
|
+
standby_weekend_amount: number;
|
|
1012
|
+
travel_cost_per_km: number | null;
|
|
1013
|
+
travel_cost_threshold_km: number | null;
|
|
1014
|
+
travel_counts_as_work: boolean;
|
|
1015
|
+
travel_hourly_rate: number;
|
|
1016
|
+
travel_rate_per_hour: number;
|
|
1017
|
+
travel_threshold_minutes: number;
|
|
1018
|
+
updated_at: string;
|
|
1019
|
+
weekend_always_212: boolean;
|
|
1020
|
+
window_end: string;
|
|
1021
|
+
window_start: string;
|
|
1022
|
+
};
|
|
1023
|
+
Insert: {
|
|
1024
|
+
auto_break_after_hours?: number;
|
|
1025
|
+
auto_break_minutes?: number;
|
|
1026
|
+
auto_break_unpaid?: boolean;
|
|
1027
|
+
auto_stop_after_hours?: number;
|
|
1028
|
+
callout_fee?: number;
|
|
1029
|
+
created_at?: string;
|
|
1030
|
+
daily_regular_hours?: number;
|
|
1031
|
+
default_hourly_rate?: number;
|
|
1032
|
+
id?: string;
|
|
1033
|
+
materials_markup_percent?: number;
|
|
1034
|
+
max_daily_hours?: number;
|
|
1035
|
+
max_weekly_hours?: number;
|
|
1036
|
+
meal_allowance_amount?: number;
|
|
1037
|
+
overtime_pct_178?: number;
|
|
1038
|
+
overtime_pct_189?: number;
|
|
1039
|
+
overtime_pct_212?: number;
|
|
1040
|
+
reminder_after_hours?: number;
|
|
1041
|
+
standby_evening_amount?: number;
|
|
1042
|
+
standby_weekend_amount?: number;
|
|
1043
|
+
travel_cost_per_km?: number | null;
|
|
1044
|
+
travel_cost_threshold_km?: number | null;
|
|
1045
|
+
travel_counts_as_work?: boolean;
|
|
1046
|
+
travel_hourly_rate?: number;
|
|
1047
|
+
travel_rate_per_hour?: number;
|
|
1048
|
+
travel_threshold_minutes?: number;
|
|
1049
|
+
updated_at?: string;
|
|
1050
|
+
weekend_always_212?: boolean;
|
|
1051
|
+
window_end?: string;
|
|
1052
|
+
window_start?: string;
|
|
1053
|
+
};
|
|
1054
|
+
Update: {
|
|
1055
|
+
auto_break_after_hours?: number;
|
|
1056
|
+
auto_break_minutes?: number;
|
|
1057
|
+
auto_break_unpaid?: boolean;
|
|
1058
|
+
auto_stop_after_hours?: number;
|
|
1059
|
+
callout_fee?: number;
|
|
1060
|
+
created_at?: string;
|
|
1061
|
+
daily_regular_hours?: number;
|
|
1062
|
+
default_hourly_rate?: number;
|
|
1063
|
+
id?: string;
|
|
1064
|
+
materials_markup_percent?: number;
|
|
1065
|
+
max_daily_hours?: number;
|
|
1066
|
+
max_weekly_hours?: number;
|
|
1067
|
+
meal_allowance_amount?: number;
|
|
1068
|
+
overtime_pct_178?: number;
|
|
1069
|
+
overtime_pct_189?: number;
|
|
1070
|
+
overtime_pct_212?: number;
|
|
1071
|
+
reminder_after_hours?: number;
|
|
1072
|
+
standby_evening_amount?: number;
|
|
1073
|
+
standby_weekend_amount?: number;
|
|
1074
|
+
travel_cost_per_km?: number | null;
|
|
1075
|
+
travel_cost_threshold_km?: number | null;
|
|
1076
|
+
travel_counts_as_work?: boolean;
|
|
1077
|
+
travel_hourly_rate?: number;
|
|
1078
|
+
travel_rate_per_hour?: number;
|
|
1079
|
+
travel_threshold_minutes?: number;
|
|
1080
|
+
updated_at?: string;
|
|
1081
|
+
weekend_always_212?: boolean;
|
|
1082
|
+
window_end?: string;
|
|
1083
|
+
window_start?: string;
|
|
1084
|
+
};
|
|
1085
|
+
Relationships: [];
|
|
1086
|
+
};
|
|
874
1087
|
carrier_shipping_rates: {
|
|
875
1088
|
Row: {
|
|
876
1089
|
carrier_id: string;
|
|
@@ -2638,6 +2851,42 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
2638
2851
|
};
|
|
2639
2852
|
Relationships: [];
|
|
2640
2853
|
};
|
|
2854
|
+
document_bronregels: {
|
|
2855
|
+
Row: {
|
|
2856
|
+
bron: string;
|
|
2857
|
+
created_at: string;
|
|
2858
|
+
documenttype: string;
|
|
2859
|
+
herkomst: string;
|
|
2860
|
+
id: string;
|
|
2861
|
+
layout_id: string | null;
|
|
2862
|
+
updated_at: string;
|
|
2863
|
+
};
|
|
2864
|
+
Insert: {
|
|
2865
|
+
bron?: string;
|
|
2866
|
+
created_at?: string;
|
|
2867
|
+
documenttype: string;
|
|
2868
|
+
herkomst: string;
|
|
2869
|
+
id?: string;
|
|
2870
|
+
layout_id?: string | null;
|
|
2871
|
+
updated_at?: string;
|
|
2872
|
+
};
|
|
2873
|
+
Update: {
|
|
2874
|
+
bron?: string;
|
|
2875
|
+
created_at?: string;
|
|
2876
|
+
documenttype?: string;
|
|
2877
|
+
herkomst?: string;
|
|
2878
|
+
id?: string;
|
|
2879
|
+
layout_id?: string | null;
|
|
2880
|
+
updated_at?: string;
|
|
2881
|
+
};
|
|
2882
|
+
Relationships: [{
|
|
2883
|
+
foreignKeyName: "document_bronregels_layout_id_fkey";
|
|
2884
|
+
columns: ["layout_id"];
|
|
2885
|
+
isOneToOne: false;
|
|
2886
|
+
referencedRelation: "document_layouts";
|
|
2887
|
+
referencedColumns: ["id"];
|
|
2888
|
+
}];
|
|
2889
|
+
};
|
|
2641
2890
|
document_formaat_printers: {
|
|
2642
2891
|
Row: {
|
|
2643
2892
|
created_at: string;
|
|
@@ -2915,6 +3164,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
2915
3164
|
Row: {
|
|
2916
3165
|
actief: boolean;
|
|
2917
3166
|
breedte_mm: number;
|
|
3167
|
+
bron: string;
|
|
2918
3168
|
config: import("./types").Json;
|
|
2919
3169
|
created_at: string;
|
|
2920
3170
|
created_by: string | null;
|
|
@@ -2932,12 +3182,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
2932
3182
|
orientatie: Database["public"]["Enums"]["doc_orientation"];
|
|
2933
3183
|
page_settings: import("./types").Json;
|
|
2934
3184
|
papierformaat: string;
|
|
3185
|
+
systeem: boolean;
|
|
2935
3186
|
thumbnail_url: string | null;
|
|
2936
3187
|
updated_at: string;
|
|
2937
3188
|
};
|
|
2938
3189
|
Insert: {
|
|
2939
3190
|
actief?: boolean;
|
|
2940
3191
|
breedte_mm?: number;
|
|
3192
|
+
bron?: string;
|
|
2941
3193
|
config?: import("./types").Json;
|
|
2942
3194
|
created_at?: string;
|
|
2943
3195
|
created_by?: string | null;
|
|
@@ -2955,12 +3207,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
2955
3207
|
orientatie?: Database["public"]["Enums"]["doc_orientation"];
|
|
2956
3208
|
page_settings?: import("./types").Json;
|
|
2957
3209
|
papierformaat?: string;
|
|
3210
|
+
systeem?: boolean;
|
|
2958
3211
|
thumbnail_url?: string | null;
|
|
2959
3212
|
updated_at?: string;
|
|
2960
3213
|
};
|
|
2961
3214
|
Update: {
|
|
2962
3215
|
actief?: boolean;
|
|
2963
3216
|
breedte_mm?: number;
|
|
3217
|
+
bron?: string;
|
|
2964
3218
|
config?: import("./types").Json;
|
|
2965
3219
|
created_at?: string;
|
|
2966
3220
|
created_by?: string | null;
|
|
@@ -2978,11 +3232,90 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
2978
3232
|
orientatie?: Database["public"]["Enums"]["doc_orientation"];
|
|
2979
3233
|
page_settings?: import("./types").Json;
|
|
2980
3234
|
papierformaat?: string;
|
|
3235
|
+
systeem?: boolean;
|
|
2981
3236
|
thumbnail_url?: string | null;
|
|
2982
3237
|
updated_at?: string;
|
|
2983
3238
|
};
|
|
2984
3239
|
Relationships: [];
|
|
2985
3240
|
};
|
|
3241
|
+
document_printplek_printers: {
|
|
3242
|
+
Row: {
|
|
3243
|
+
created_at: string;
|
|
3244
|
+
documenttype: string;
|
|
3245
|
+
id: string;
|
|
3246
|
+
papierformaat: string | null;
|
|
3247
|
+
print_plek_id: string;
|
|
3248
|
+
printer_id: string | null;
|
|
3249
|
+
updated_at: string;
|
|
3250
|
+
};
|
|
3251
|
+
Insert: {
|
|
3252
|
+
created_at?: string;
|
|
3253
|
+
documenttype: string;
|
|
3254
|
+
id?: string;
|
|
3255
|
+
papierformaat?: string | null;
|
|
3256
|
+
print_plek_id: string;
|
|
3257
|
+
printer_id?: string | null;
|
|
3258
|
+
updated_at?: string;
|
|
3259
|
+
};
|
|
3260
|
+
Update: {
|
|
3261
|
+
created_at?: string;
|
|
3262
|
+
documenttype?: string;
|
|
3263
|
+
id?: string;
|
|
3264
|
+
papierformaat?: string | null;
|
|
3265
|
+
print_plek_id?: string;
|
|
3266
|
+
printer_id?: string | null;
|
|
3267
|
+
updated_at?: string;
|
|
3268
|
+
};
|
|
3269
|
+
Relationships: [{
|
|
3270
|
+
foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
|
|
3271
|
+
columns: ["print_plek_id"];
|
|
3272
|
+
isOneToOne: false;
|
|
3273
|
+
referencedRelation: "print_plekken";
|
|
3274
|
+
referencedColumns: ["id"];
|
|
3275
|
+
}, {
|
|
3276
|
+
foreignKeyName: "document_printplek_printers_printer_id_fkey";
|
|
3277
|
+
columns: ["printer_id"];
|
|
3278
|
+
isOneToOne: false;
|
|
3279
|
+
referencedRelation: "printers";
|
|
3280
|
+
referencedColumns: ["id"];
|
|
3281
|
+
}];
|
|
3282
|
+
};
|
|
3283
|
+
document_werkplek_printers: {
|
|
3284
|
+
Row: {
|
|
3285
|
+
created_at: string;
|
|
3286
|
+
documenttype: string;
|
|
3287
|
+
id: string;
|
|
3288
|
+
papierformaat: string | null;
|
|
3289
|
+
printer_id: string | null;
|
|
3290
|
+
updated_at: string;
|
|
3291
|
+
werkplek: string;
|
|
3292
|
+
};
|
|
3293
|
+
Insert: {
|
|
3294
|
+
created_at?: string;
|
|
3295
|
+
documenttype: string;
|
|
3296
|
+
id?: string;
|
|
3297
|
+
papierformaat?: string | null;
|
|
3298
|
+
printer_id?: string | null;
|
|
3299
|
+
updated_at?: string;
|
|
3300
|
+
werkplek: string;
|
|
3301
|
+
};
|
|
3302
|
+
Update: {
|
|
3303
|
+
created_at?: string;
|
|
3304
|
+
documenttype?: string;
|
|
3305
|
+
id?: string;
|
|
3306
|
+
papierformaat?: string | null;
|
|
3307
|
+
printer_id?: string | null;
|
|
3308
|
+
updated_at?: string;
|
|
3309
|
+
werkplek?: string;
|
|
3310
|
+
};
|
|
3311
|
+
Relationships: [{
|
|
3312
|
+
foreignKeyName: "document_werkplek_printers_printer_id_fkey";
|
|
3313
|
+
columns: ["printer_id"];
|
|
3314
|
+
isOneToOne: false;
|
|
3315
|
+
referencedRelation: "printers";
|
|
3316
|
+
referencedColumns: ["id"];
|
|
3317
|
+
}];
|
|
3318
|
+
};
|
|
2986
3319
|
email_auth_connections: {
|
|
2987
3320
|
Row: {
|
|
2988
3321
|
access_token_encrypted: string | null;
|
|
@@ -6479,6 +6812,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
6479
6812
|
Row: {
|
|
6480
6813
|
buyer_organization_id: string | null;
|
|
6481
6814
|
connection_id: string;
|
|
6815
|
+
controlled_at: string | null;
|
|
6482
6816
|
created_at: string;
|
|
6483
6817
|
data: import("./types").Json;
|
|
6484
6818
|
floriday_id: string;
|
|
@@ -6490,6 +6824,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
6490
6824
|
Insert: {
|
|
6491
6825
|
buyer_organization_id?: string | null;
|
|
6492
6826
|
connection_id: string;
|
|
6827
|
+
controlled_at?: string | null;
|
|
6493
6828
|
created_at?: string;
|
|
6494
6829
|
data: import("./types").Json;
|
|
6495
6830
|
floriday_id: string;
|
|
@@ -6501,6 +6836,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
6501
6836
|
Update: {
|
|
6502
6837
|
buyer_organization_id?: string | null;
|
|
6503
6838
|
connection_id?: string;
|
|
6839
|
+
controlled_at?: string | null;
|
|
6504
6840
|
created_at?: string;
|
|
6505
6841
|
data?: import("./types").Json;
|
|
6506
6842
|
floriday_id?: string;
|
|
@@ -7225,8 +7561,63 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7225
7561
|
};
|
|
7226
7562
|
Relationships: [];
|
|
7227
7563
|
};
|
|
7564
|
+
invoice_items: {
|
|
7565
|
+
Row: {
|
|
7566
|
+
created_at: string;
|
|
7567
|
+
description: string;
|
|
7568
|
+
id: string;
|
|
7569
|
+
invoice_id: string;
|
|
7570
|
+
kind: string;
|
|
7571
|
+
quantity: number;
|
|
7572
|
+
sort_order: number;
|
|
7573
|
+
source_line_ref: string | null;
|
|
7574
|
+
total_cents: number;
|
|
7575
|
+
unit: string;
|
|
7576
|
+
unit_price_cents: number;
|
|
7577
|
+
};
|
|
7578
|
+
Insert: {
|
|
7579
|
+
created_at?: string;
|
|
7580
|
+
description?: string;
|
|
7581
|
+
id?: string;
|
|
7582
|
+
invoice_id: string;
|
|
7583
|
+
kind?: string;
|
|
7584
|
+
quantity?: number;
|
|
7585
|
+
sort_order?: number;
|
|
7586
|
+
source_line_ref?: string | null;
|
|
7587
|
+
total_cents?: number;
|
|
7588
|
+
unit?: string;
|
|
7589
|
+
unit_price_cents?: number;
|
|
7590
|
+
};
|
|
7591
|
+
Update: {
|
|
7592
|
+
created_at?: string;
|
|
7593
|
+
description?: string;
|
|
7594
|
+
id?: string;
|
|
7595
|
+
invoice_id?: string;
|
|
7596
|
+
kind?: string;
|
|
7597
|
+
quantity?: number;
|
|
7598
|
+
sort_order?: number;
|
|
7599
|
+
source_line_ref?: string | null;
|
|
7600
|
+
total_cents?: number;
|
|
7601
|
+
unit?: string;
|
|
7602
|
+
unit_price_cents?: number;
|
|
7603
|
+
};
|
|
7604
|
+
Relationships: [{
|
|
7605
|
+
foreignKeyName: "invoice_items_invoice_id_fkey";
|
|
7606
|
+
columns: ["invoice_id"];
|
|
7607
|
+
isOneToOne: false;
|
|
7608
|
+
referencedRelation: "invoices";
|
|
7609
|
+
referencedColumns: ["id"];
|
|
7610
|
+
}, {
|
|
7611
|
+
foreignKeyName: "invoice_items_invoice_id_fkey";
|
|
7612
|
+
columns: ["invoice_id"];
|
|
7613
|
+
isOneToOne: false;
|
|
7614
|
+
referencedRelation: "uren_facturen";
|
|
7615
|
+
referencedColumns: ["id"];
|
|
7616
|
+
}];
|
|
7617
|
+
};
|
|
7228
7618
|
invoice_post_idempotency: {
|
|
7229
7619
|
Row: {
|
|
7620
|
+
administration_code: string;
|
|
7230
7621
|
client_request_id: string;
|
|
7231
7622
|
completed_at: string | null;
|
|
7232
7623
|
created_at: string;
|
|
@@ -7236,6 +7627,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7236
7627
|
user_id: string;
|
|
7237
7628
|
};
|
|
7238
7629
|
Insert: {
|
|
7630
|
+
administration_code?: string;
|
|
7239
7631
|
client_request_id: string;
|
|
7240
7632
|
completed_at?: string | null;
|
|
7241
7633
|
created_at?: string;
|
|
@@ -7245,6 +7637,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7245
7637
|
user_id: string;
|
|
7246
7638
|
};
|
|
7247
7639
|
Update: {
|
|
7640
|
+
administration_code?: string;
|
|
7248
7641
|
client_request_id?: string;
|
|
7249
7642
|
completed_at?: string | null;
|
|
7250
7643
|
created_at?: string;
|
|
@@ -7402,52 +7795,169 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7402
7795
|
};
|
|
7403
7796
|
Relationships: [];
|
|
7404
7797
|
};
|
|
7405
|
-
|
|
7798
|
+
invoice_timing_settings: {
|
|
7406
7799
|
Row: {
|
|
7800
|
+
anchor: string;
|
|
7801
|
+
business_days_only: boolean;
|
|
7407
7802
|
created_at: string;
|
|
7408
|
-
|
|
7409
|
-
email: string | null;
|
|
7803
|
+
enabled: boolean;
|
|
7410
7804
|
id: string;
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7805
|
+
offset_days: number;
|
|
7806
|
+
pickup_anchor: string;
|
|
7807
|
+
pickup_business_days_only: boolean;
|
|
7808
|
+
pickup_offset_days: number;
|
|
7809
|
+
pickup_time_of_day: string;
|
|
7810
|
+
singleton: boolean;
|
|
7811
|
+
time_of_day: string;
|
|
7414
7812
|
updated_at: string;
|
|
7415
7813
|
};
|
|
7416
7814
|
Insert: {
|
|
7815
|
+
anchor?: string;
|
|
7816
|
+
business_days_only?: boolean;
|
|
7417
7817
|
created_at?: string;
|
|
7418
|
-
|
|
7419
|
-
email?: string | null;
|
|
7818
|
+
enabled?: boolean;
|
|
7420
7819
|
id?: string;
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7820
|
+
offset_days?: number;
|
|
7821
|
+
pickup_anchor?: string;
|
|
7822
|
+
pickup_business_days_only?: boolean;
|
|
7823
|
+
pickup_offset_days?: number;
|
|
7824
|
+
pickup_time_of_day?: string;
|
|
7825
|
+
singleton?: boolean;
|
|
7826
|
+
time_of_day?: string;
|
|
7424
7827
|
updated_at?: string;
|
|
7425
7828
|
};
|
|
7426
7829
|
Update: {
|
|
7830
|
+
anchor?: string;
|
|
7831
|
+
business_days_only?: boolean;
|
|
7427
7832
|
created_at?: string;
|
|
7428
|
-
|
|
7429
|
-
email?: string | null;
|
|
7833
|
+
enabled?: boolean;
|
|
7430
7834
|
id?: string;
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7835
|
+
offset_days?: number;
|
|
7836
|
+
pickup_anchor?: string;
|
|
7837
|
+
pickup_business_days_only?: boolean;
|
|
7838
|
+
pickup_offset_days?: number;
|
|
7839
|
+
pickup_time_of_day?: string;
|
|
7840
|
+
singleton?: boolean;
|
|
7841
|
+
time_of_day?: string;
|
|
7434
7842
|
updated_at?: string;
|
|
7435
7843
|
};
|
|
7436
|
-
Relationships: [
|
|
7437
|
-
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
7438
|
-
columns: ["customer_id"];
|
|
7439
|
-
isOneToOne: false;
|
|
7440
|
-
referencedRelation: "itk_customers";
|
|
7441
|
-
referencedColumns: ["id"];
|
|
7442
|
-
}];
|
|
7844
|
+
Relationships: [];
|
|
7443
7845
|
};
|
|
7444
|
-
|
|
7846
|
+
invoices: {
|
|
7445
7847
|
Row: {
|
|
7446
7848
|
created_at: string;
|
|
7447
|
-
|
|
7448
|
-
|
|
7849
|
+
created_by: string | null;
|
|
7850
|
+
customer_id: string | null;
|
|
7851
|
+
customer_name: string | null;
|
|
7852
|
+
due_date: string | null;
|
|
7449
7853
|
id: string;
|
|
7450
|
-
|
|
7854
|
+
invoice_date: string;
|
|
7855
|
+
invoice_number: string | null;
|
|
7856
|
+
note: string | null;
|
|
7857
|
+
source_number: string | null;
|
|
7858
|
+
source_ref: string | null;
|
|
7859
|
+
source_type: string;
|
|
7860
|
+
status: string;
|
|
7861
|
+
subtotal_cents: number;
|
|
7862
|
+
total_cents: number;
|
|
7863
|
+
updated_at: string;
|
|
7864
|
+
vat_cents: number;
|
|
7865
|
+
vat_rate: number;
|
|
7866
|
+
};
|
|
7867
|
+
Insert: {
|
|
7868
|
+
created_at?: string;
|
|
7869
|
+
created_by?: string | null;
|
|
7870
|
+
customer_id?: string | null;
|
|
7871
|
+
customer_name?: string | null;
|
|
7872
|
+
due_date?: string | null;
|
|
7873
|
+
id?: string;
|
|
7874
|
+
invoice_date?: string;
|
|
7875
|
+
invoice_number?: string | null;
|
|
7876
|
+
note?: string | null;
|
|
7877
|
+
source_number?: string | null;
|
|
7878
|
+
source_ref?: string | null;
|
|
7879
|
+
source_type?: string;
|
|
7880
|
+
status?: string;
|
|
7881
|
+
subtotal_cents?: number;
|
|
7882
|
+
total_cents?: number;
|
|
7883
|
+
updated_at?: string;
|
|
7884
|
+
vat_cents?: number;
|
|
7885
|
+
vat_rate?: number;
|
|
7886
|
+
};
|
|
7887
|
+
Update: {
|
|
7888
|
+
created_at?: string;
|
|
7889
|
+
created_by?: string | null;
|
|
7890
|
+
customer_id?: string | null;
|
|
7891
|
+
customer_name?: string | null;
|
|
7892
|
+
due_date?: string | null;
|
|
7893
|
+
id?: string;
|
|
7894
|
+
invoice_date?: string;
|
|
7895
|
+
invoice_number?: string | null;
|
|
7896
|
+
note?: string | null;
|
|
7897
|
+
source_number?: string | null;
|
|
7898
|
+
source_ref?: string | null;
|
|
7899
|
+
source_type?: string;
|
|
7900
|
+
status?: string;
|
|
7901
|
+
subtotal_cents?: number;
|
|
7902
|
+
total_cents?: number;
|
|
7903
|
+
updated_at?: string;
|
|
7904
|
+
vat_cents?: number;
|
|
7905
|
+
vat_rate?: number;
|
|
7906
|
+
};
|
|
7907
|
+
Relationships: [{
|
|
7908
|
+
foreignKeyName: "invoices_customer_id_fkey";
|
|
7909
|
+
columns: ["customer_id"];
|
|
7910
|
+
isOneToOne: false;
|
|
7911
|
+
referencedRelation: "itk_customers";
|
|
7912
|
+
referencedColumns: ["id"];
|
|
7913
|
+
}];
|
|
7914
|
+
};
|
|
7915
|
+
itk_contact_persons: {
|
|
7916
|
+
Row: {
|
|
7917
|
+
created_at: string;
|
|
7918
|
+
customer_id: string;
|
|
7919
|
+
email: string | null;
|
|
7920
|
+
id: string;
|
|
7921
|
+
name: string;
|
|
7922
|
+
phone: string | null;
|
|
7923
|
+
role: string | null;
|
|
7924
|
+
updated_at: string;
|
|
7925
|
+
};
|
|
7926
|
+
Insert: {
|
|
7927
|
+
created_at?: string;
|
|
7928
|
+
customer_id: string;
|
|
7929
|
+
email?: string | null;
|
|
7930
|
+
id?: string;
|
|
7931
|
+
name: string;
|
|
7932
|
+
phone?: string | null;
|
|
7933
|
+
role?: string | null;
|
|
7934
|
+
updated_at?: string;
|
|
7935
|
+
};
|
|
7936
|
+
Update: {
|
|
7937
|
+
created_at?: string;
|
|
7938
|
+
customer_id?: string;
|
|
7939
|
+
email?: string | null;
|
|
7940
|
+
id?: string;
|
|
7941
|
+
name?: string;
|
|
7942
|
+
phone?: string | null;
|
|
7943
|
+
role?: string | null;
|
|
7944
|
+
updated_at?: string;
|
|
7945
|
+
};
|
|
7946
|
+
Relationships: [{
|
|
7947
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
7948
|
+
columns: ["customer_id"];
|
|
7949
|
+
isOneToOne: false;
|
|
7950
|
+
referencedRelation: "itk_customers";
|
|
7951
|
+
referencedColumns: ["id"];
|
|
7952
|
+
}];
|
|
7953
|
+
};
|
|
7954
|
+
itk_customer_dynamic_values: {
|
|
7955
|
+
Row: {
|
|
7956
|
+
created_at: string;
|
|
7957
|
+
customer_id: string;
|
|
7958
|
+
field_id: string;
|
|
7959
|
+
id: string;
|
|
7960
|
+
updated_at: string;
|
|
7451
7961
|
value: string | null;
|
|
7452
7962
|
};
|
|
7453
7963
|
Insert: {
|
|
@@ -7597,6 +8107,258 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7597
8107
|
};
|
|
7598
8108
|
Relationships: [];
|
|
7599
8109
|
};
|
|
8110
|
+
itk_offerte_events: {
|
|
8111
|
+
Row: {
|
|
8112
|
+
created_at: string;
|
|
8113
|
+
event_type: string;
|
|
8114
|
+
id: string;
|
|
8115
|
+
metadata: import("./types").Json;
|
|
8116
|
+
offerte_id: string;
|
|
8117
|
+
omschrijving: string | null;
|
|
8118
|
+
user_id: string | null;
|
|
8119
|
+
};
|
|
8120
|
+
Insert: {
|
|
8121
|
+
created_at?: string;
|
|
8122
|
+
event_type: string;
|
|
8123
|
+
id?: string;
|
|
8124
|
+
metadata?: import("./types").Json;
|
|
8125
|
+
offerte_id: string;
|
|
8126
|
+
omschrijving?: string | null;
|
|
8127
|
+
user_id?: string | null;
|
|
8128
|
+
};
|
|
8129
|
+
Update: {
|
|
8130
|
+
created_at?: string;
|
|
8131
|
+
event_type?: string;
|
|
8132
|
+
id?: string;
|
|
8133
|
+
metadata?: import("./types").Json;
|
|
8134
|
+
offerte_id?: string;
|
|
8135
|
+
omschrijving?: string | null;
|
|
8136
|
+
user_id?: string | null;
|
|
8137
|
+
};
|
|
8138
|
+
Relationships: [{
|
|
8139
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
8140
|
+
columns: ["offerte_id"];
|
|
8141
|
+
isOneToOne: false;
|
|
8142
|
+
referencedRelation: "itk_offertes";
|
|
8143
|
+
referencedColumns: ["id"];
|
|
8144
|
+
}];
|
|
8145
|
+
};
|
|
8146
|
+
itk_offerte_regels: {
|
|
8147
|
+
Row: {
|
|
8148
|
+
created_at: string;
|
|
8149
|
+
id: string;
|
|
8150
|
+
line_total_cents: number;
|
|
8151
|
+
offerte_id: string;
|
|
8152
|
+
omschrijving: string;
|
|
8153
|
+
package_id: string | null;
|
|
8154
|
+
quantity: number;
|
|
8155
|
+
sort_order: number;
|
|
8156
|
+
source: string;
|
|
8157
|
+
unit_price_cents: number;
|
|
8158
|
+
updated_at: string;
|
|
8159
|
+
};
|
|
8160
|
+
Insert: {
|
|
8161
|
+
created_at?: string;
|
|
8162
|
+
id?: string;
|
|
8163
|
+
line_total_cents?: number;
|
|
8164
|
+
offerte_id: string;
|
|
8165
|
+
omschrijving?: string;
|
|
8166
|
+
package_id?: string | null;
|
|
8167
|
+
quantity?: number;
|
|
8168
|
+
sort_order?: number;
|
|
8169
|
+
source?: string;
|
|
8170
|
+
unit_price_cents?: number;
|
|
8171
|
+
updated_at?: string;
|
|
8172
|
+
};
|
|
8173
|
+
Update: {
|
|
8174
|
+
created_at?: string;
|
|
8175
|
+
id?: string;
|
|
8176
|
+
line_total_cents?: number;
|
|
8177
|
+
offerte_id?: string;
|
|
8178
|
+
omschrijving?: string;
|
|
8179
|
+
package_id?: string | null;
|
|
8180
|
+
quantity?: number;
|
|
8181
|
+
sort_order?: number;
|
|
8182
|
+
source?: string;
|
|
8183
|
+
unit_price_cents?: number;
|
|
8184
|
+
updated_at?: string;
|
|
8185
|
+
};
|
|
8186
|
+
Relationships: [{
|
|
8187
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
8188
|
+
columns: ["offerte_id"];
|
|
8189
|
+
isOneToOne: false;
|
|
8190
|
+
referencedRelation: "itk_offertes";
|
|
8191
|
+
referencedColumns: ["id"];
|
|
8192
|
+
}, {
|
|
8193
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
8194
|
+
columns: ["package_id"];
|
|
8195
|
+
isOneToOne: false;
|
|
8196
|
+
referencedRelation: "werkbon_packages";
|
|
8197
|
+
referencedColumns: ["id"];
|
|
8198
|
+
}];
|
|
8199
|
+
};
|
|
8200
|
+
itk_offerte_settings: {
|
|
8201
|
+
Row: {
|
|
8202
|
+
auto_convert_binnen_mandaat: boolean;
|
|
8203
|
+
created_at: string;
|
|
8204
|
+
default_geldigheid_dagen: number;
|
|
8205
|
+
default_vat_rate: number;
|
|
8206
|
+
id: string;
|
|
8207
|
+
singleton: boolean;
|
|
8208
|
+
updated_at: string;
|
|
8209
|
+
};
|
|
8210
|
+
Insert: {
|
|
8211
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
8212
|
+
created_at?: string;
|
|
8213
|
+
default_geldigheid_dagen?: number;
|
|
8214
|
+
default_vat_rate?: number;
|
|
8215
|
+
id?: string;
|
|
8216
|
+
singleton?: boolean;
|
|
8217
|
+
updated_at?: string;
|
|
8218
|
+
};
|
|
8219
|
+
Update: {
|
|
8220
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
8221
|
+
created_at?: string;
|
|
8222
|
+
default_geldigheid_dagen?: number;
|
|
8223
|
+
default_vat_rate?: number;
|
|
8224
|
+
id?: string;
|
|
8225
|
+
singleton?: boolean;
|
|
8226
|
+
updated_at?: string;
|
|
8227
|
+
};
|
|
8228
|
+
Relationships: [];
|
|
8229
|
+
};
|
|
8230
|
+
itk_offertes: {
|
|
8231
|
+
Row: {
|
|
8232
|
+
ai_generated: boolean;
|
|
8233
|
+
approved_at: string | null;
|
|
8234
|
+
binnen_mandaat: boolean;
|
|
8235
|
+
contact_id: string | null;
|
|
8236
|
+
converted_at: string | null;
|
|
8237
|
+
created_at: string;
|
|
8238
|
+
created_by: string | null;
|
|
8239
|
+
customer_id: string | null;
|
|
8240
|
+
follow_up_werkbon_id: string | null;
|
|
8241
|
+
id: string;
|
|
8242
|
+
jaar: number;
|
|
8243
|
+
mandaat_restant_cents: number;
|
|
8244
|
+
notities: string | null;
|
|
8245
|
+
offerte_number: string | null;
|
|
8246
|
+
omschrijving: string;
|
|
8247
|
+
rejected_at: string | null;
|
|
8248
|
+
sent_at: string | null;
|
|
8249
|
+
source_number: string | null;
|
|
8250
|
+
source_ref: string | null;
|
|
8251
|
+
source_type: string;
|
|
8252
|
+
status: string;
|
|
8253
|
+
subtotal_cents: number;
|
|
8254
|
+
total_cents: number;
|
|
8255
|
+
updated_at: string;
|
|
8256
|
+
valid_until: string | null;
|
|
8257
|
+
vat_cents: number;
|
|
8258
|
+
vat_rate: number;
|
|
8259
|
+
viewed_at: string | null;
|
|
8260
|
+
volgnummer: number | null;
|
|
8261
|
+
werkbon_id: string | null;
|
|
8262
|
+
work_location_id: string | null;
|
|
8263
|
+
};
|
|
8264
|
+
Insert: {
|
|
8265
|
+
ai_generated?: boolean;
|
|
8266
|
+
approved_at?: string | null;
|
|
8267
|
+
binnen_mandaat?: boolean;
|
|
8268
|
+
contact_id?: string | null;
|
|
8269
|
+
converted_at?: string | null;
|
|
8270
|
+
created_at?: string;
|
|
8271
|
+
created_by?: string | null;
|
|
8272
|
+
customer_id?: string | null;
|
|
8273
|
+
follow_up_werkbon_id?: string | null;
|
|
8274
|
+
id?: string;
|
|
8275
|
+
jaar?: number;
|
|
8276
|
+
mandaat_restant_cents?: number;
|
|
8277
|
+
notities?: string | null;
|
|
8278
|
+
offerte_number?: string | null;
|
|
8279
|
+
omschrijving?: string;
|
|
8280
|
+
rejected_at?: string | null;
|
|
8281
|
+
sent_at?: string | null;
|
|
8282
|
+
source_number?: string | null;
|
|
8283
|
+
source_ref?: string | null;
|
|
8284
|
+
source_type?: string;
|
|
8285
|
+
status?: string;
|
|
8286
|
+
subtotal_cents?: number;
|
|
8287
|
+
total_cents?: number;
|
|
8288
|
+
updated_at?: string;
|
|
8289
|
+
valid_until?: string | null;
|
|
8290
|
+
vat_cents?: number;
|
|
8291
|
+
vat_rate?: number;
|
|
8292
|
+
viewed_at?: string | null;
|
|
8293
|
+
volgnummer?: number | null;
|
|
8294
|
+
werkbon_id?: string | null;
|
|
8295
|
+
work_location_id?: string | null;
|
|
8296
|
+
};
|
|
8297
|
+
Update: {
|
|
8298
|
+
ai_generated?: boolean;
|
|
8299
|
+
approved_at?: string | null;
|
|
8300
|
+
binnen_mandaat?: boolean;
|
|
8301
|
+
contact_id?: string | null;
|
|
8302
|
+
converted_at?: string | null;
|
|
8303
|
+
created_at?: string;
|
|
8304
|
+
created_by?: string | null;
|
|
8305
|
+
customer_id?: string | null;
|
|
8306
|
+
follow_up_werkbon_id?: string | null;
|
|
8307
|
+
id?: string;
|
|
8308
|
+
jaar?: number;
|
|
8309
|
+
mandaat_restant_cents?: number;
|
|
8310
|
+
notities?: string | null;
|
|
8311
|
+
offerte_number?: string | null;
|
|
8312
|
+
omschrijving?: string;
|
|
8313
|
+
rejected_at?: string | null;
|
|
8314
|
+
sent_at?: string | null;
|
|
8315
|
+
source_number?: string | null;
|
|
8316
|
+
source_ref?: string | null;
|
|
8317
|
+
source_type?: string;
|
|
8318
|
+
status?: string;
|
|
8319
|
+
subtotal_cents?: number;
|
|
8320
|
+
total_cents?: number;
|
|
8321
|
+
updated_at?: string;
|
|
8322
|
+
valid_until?: string | null;
|
|
8323
|
+
vat_cents?: number;
|
|
8324
|
+
vat_rate?: number;
|
|
8325
|
+
viewed_at?: string | null;
|
|
8326
|
+
volgnummer?: number | null;
|
|
8327
|
+
werkbon_id?: string | null;
|
|
8328
|
+
work_location_id?: string | null;
|
|
8329
|
+
};
|
|
8330
|
+
Relationships: [{
|
|
8331
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
8332
|
+
columns: ["contact_id"];
|
|
8333
|
+
isOneToOne: false;
|
|
8334
|
+
referencedRelation: "itk_contact_persons";
|
|
8335
|
+
referencedColumns: ["id"];
|
|
8336
|
+
}, {
|
|
8337
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
8338
|
+
columns: ["customer_id"];
|
|
8339
|
+
isOneToOne: false;
|
|
8340
|
+
referencedRelation: "itk_customers";
|
|
8341
|
+
referencedColumns: ["id"];
|
|
8342
|
+
}, {
|
|
8343
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
8344
|
+
columns: ["follow_up_werkbon_id"];
|
|
8345
|
+
isOneToOne: false;
|
|
8346
|
+
referencedRelation: "werkbonnen";
|
|
8347
|
+
referencedColumns: ["id"];
|
|
8348
|
+
}, {
|
|
8349
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
8350
|
+
columns: ["werkbon_id"];
|
|
8351
|
+
isOneToOne: false;
|
|
8352
|
+
referencedRelation: "werkbonnen";
|
|
8353
|
+
referencedColumns: ["id"];
|
|
8354
|
+
}, {
|
|
8355
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
8356
|
+
columns: ["work_location_id"];
|
|
8357
|
+
isOneToOne: false;
|
|
8358
|
+
referencedRelation: "itk_work_locations";
|
|
8359
|
+
referencedColumns: ["id"];
|
|
8360
|
+
}];
|
|
8361
|
+
};
|
|
7600
8362
|
itk_work_locations: {
|
|
7601
8363
|
Row: {
|
|
7602
8364
|
city: string | null;
|
|
@@ -7714,7 +8476,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7714
8476
|
start_date: string;
|
|
7715
8477
|
start_time: string | null;
|
|
7716
8478
|
status: string;
|
|
7717
|
-
tenant_id: string;
|
|
7718
8479
|
updated_at: string;
|
|
7719
8480
|
user_id: string;
|
|
7720
8481
|
};
|
|
@@ -7732,7 +8493,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7732
8493
|
start_date: string;
|
|
7733
8494
|
start_time?: string | null;
|
|
7734
8495
|
status?: string;
|
|
7735
|
-
tenant_id?: string;
|
|
7736
8496
|
updated_at?: string;
|
|
7737
8497
|
user_id: string;
|
|
7738
8498
|
};
|
|
@@ -7750,7 +8510,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7750
8510
|
start_date?: string;
|
|
7751
8511
|
start_time?: string | null;
|
|
7752
8512
|
status?: string;
|
|
7753
|
-
tenant_id?: string;
|
|
7754
8513
|
updated_at?: string;
|
|
7755
8514
|
user_id?: string;
|
|
7756
8515
|
};
|
|
@@ -7758,13 +8517,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7758
8517
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
7759
8518
|
columns: ["monteur_id"];
|
|
7760
8519
|
isOneToOne: false;
|
|
7761
|
-
referencedRelation: "
|
|
8520
|
+
referencedRelation: "profiles";
|
|
7762
8521
|
referencedColumns: ["id"];
|
|
7763
8522
|
}, {
|
|
7764
8523
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
7765
8524
|
columns: ["user_id"];
|
|
7766
8525
|
isOneToOne: false;
|
|
7767
|
-
referencedRelation: "
|
|
8526
|
+
referencedRelation: "profiles";
|
|
7768
8527
|
referencedColumns: ["id"];
|
|
7769
8528
|
}];
|
|
7770
8529
|
};
|
|
@@ -8500,6 +9259,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8500
9259
|
id: string;
|
|
8501
9260
|
last_error: string | null;
|
|
8502
9261
|
last_error_at: string | null;
|
|
9262
|
+
last_error_code: string | null;
|
|
9263
|
+
last_gateway_status: number | null;
|
|
9264
|
+
last_queued_at: string | null;
|
|
9265
|
+
last_response: import("./types").Json | null;
|
|
8503
9266
|
last_sent_hash: string | null;
|
|
8504
9267
|
locked_by: string | null;
|
|
8505
9268
|
locked_until: string | null;
|
|
@@ -8520,6 +9283,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8520
9283
|
id?: string;
|
|
8521
9284
|
last_error?: string | null;
|
|
8522
9285
|
last_error_at?: string | null;
|
|
9286
|
+
last_error_code?: string | null;
|
|
9287
|
+
last_gateway_status?: number | null;
|
|
9288
|
+
last_queued_at?: string | null;
|
|
9289
|
+
last_response?: import("./types").Json | null;
|
|
8523
9290
|
last_sent_hash?: string | null;
|
|
8524
9291
|
locked_by?: string | null;
|
|
8525
9292
|
locked_until?: string | null;
|
|
@@ -8540,6 +9307,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8540
9307
|
id?: string;
|
|
8541
9308
|
last_error?: string | null;
|
|
8542
9309
|
last_error_at?: string | null;
|
|
9310
|
+
last_error_code?: string | null;
|
|
9311
|
+
last_gateway_status?: number | null;
|
|
9312
|
+
last_queued_at?: string | null;
|
|
9313
|
+
last_response?: import("./types").Json | null;
|
|
8543
9314
|
last_sent_hash?: string | null;
|
|
8544
9315
|
locked_by?: string | null;
|
|
8545
9316
|
locked_until?: string | null;
|
|
@@ -8632,6 +9403,45 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8632
9403
|
};
|
|
8633
9404
|
Relationships: [];
|
|
8634
9405
|
};
|
|
9406
|
+
logistics_plan_queue: {
|
|
9407
|
+
Row: {
|
|
9408
|
+
attempts: number;
|
|
9409
|
+
claimed_at: string | null;
|
|
9410
|
+
enqueued_at: string;
|
|
9411
|
+
error: string | null;
|
|
9412
|
+
id: string;
|
|
9413
|
+
next_attempt_at: string;
|
|
9414
|
+
order_id: string;
|
|
9415
|
+
reason: string;
|
|
9416
|
+
status: string;
|
|
9417
|
+
updated_at: string;
|
|
9418
|
+
};
|
|
9419
|
+
Insert: {
|
|
9420
|
+
attempts?: number;
|
|
9421
|
+
claimed_at?: string | null;
|
|
9422
|
+
enqueued_at?: string;
|
|
9423
|
+
error?: string | null;
|
|
9424
|
+
id?: string;
|
|
9425
|
+
next_attempt_at?: string;
|
|
9426
|
+
order_id: string;
|
|
9427
|
+
reason?: string;
|
|
9428
|
+
status?: string;
|
|
9429
|
+
updated_at?: string;
|
|
9430
|
+
};
|
|
9431
|
+
Update: {
|
|
9432
|
+
attempts?: number;
|
|
9433
|
+
claimed_at?: string | null;
|
|
9434
|
+
enqueued_at?: string;
|
|
9435
|
+
error?: string | null;
|
|
9436
|
+
id?: string;
|
|
9437
|
+
next_attempt_at?: string;
|
|
9438
|
+
order_id?: string;
|
|
9439
|
+
reason?: string;
|
|
9440
|
+
status?: string;
|
|
9441
|
+
updated_at?: string;
|
|
9442
|
+
};
|
|
9443
|
+
Relationships: [];
|
|
9444
|
+
};
|
|
8635
9445
|
logistics_plan_runs: {
|
|
8636
9446
|
Row: {
|
|
8637
9447
|
created_at: string;
|
|
@@ -8707,6 +9517,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8707
9517
|
referencedColumns: ["id"];
|
|
8708
9518
|
}];
|
|
8709
9519
|
};
|
|
9520
|
+
logistics_plan_settings: {
|
|
9521
|
+
Row: {
|
|
9522
|
+
key: string;
|
|
9523
|
+
updated_at: string;
|
|
9524
|
+
value: string;
|
|
9525
|
+
};
|
|
9526
|
+
Insert: {
|
|
9527
|
+
key: string;
|
|
9528
|
+
updated_at?: string;
|
|
9529
|
+
value: string;
|
|
9530
|
+
};
|
|
9531
|
+
Update: {
|
|
9532
|
+
key?: string;
|
|
9533
|
+
updated_at?: string;
|
|
9534
|
+
value?: string;
|
|
9535
|
+
};
|
|
9536
|
+
Relationships: [];
|
|
9537
|
+
};
|
|
8710
9538
|
logistics_rebuffer_state: {
|
|
8711
9539
|
Row: {
|
|
8712
9540
|
created_at: string;
|
|
@@ -9775,90 +10603,447 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9775
10603
|
};
|
|
9776
10604
|
Relationships: [];
|
|
9777
10605
|
};
|
|
9778
|
-
manufacture_product_components: {
|
|
10606
|
+
manufacture_product_components: {
|
|
10607
|
+
Row: {
|
|
10608
|
+
component_type: string;
|
|
10609
|
+
created_at: string;
|
|
10610
|
+
id: string;
|
|
10611
|
+
manufacture_product_id: string;
|
|
10612
|
+
product_group_id: string | null;
|
|
10613
|
+
quantity: number;
|
|
10614
|
+
trade_item_id: string | null;
|
|
10615
|
+
unit: string;
|
|
10616
|
+
};
|
|
10617
|
+
Insert: {
|
|
10618
|
+
component_type: string;
|
|
10619
|
+
created_at?: string;
|
|
10620
|
+
id?: string;
|
|
10621
|
+
manufacture_product_id: string;
|
|
10622
|
+
product_group_id?: string | null;
|
|
10623
|
+
quantity?: number;
|
|
10624
|
+
trade_item_id?: string | null;
|
|
10625
|
+
unit?: string;
|
|
10626
|
+
};
|
|
10627
|
+
Update: {
|
|
10628
|
+
component_type?: string;
|
|
10629
|
+
created_at?: string;
|
|
10630
|
+
id?: string;
|
|
10631
|
+
manufacture_product_id?: string;
|
|
10632
|
+
product_group_id?: string | null;
|
|
10633
|
+
quantity?: number;
|
|
10634
|
+
trade_item_id?: string | null;
|
|
10635
|
+
unit?: string;
|
|
10636
|
+
};
|
|
10637
|
+
Relationships: [{
|
|
10638
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
10639
|
+
columns: ["manufacture_product_id"];
|
|
10640
|
+
isOneToOne: false;
|
|
10641
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
10642
|
+
referencedColumns: ["manufacture_product_id"];
|
|
10643
|
+
}, {
|
|
10644
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
10645
|
+
columns: ["manufacture_product_id"];
|
|
10646
|
+
isOneToOne: false;
|
|
10647
|
+
referencedRelation: "manufacture_products";
|
|
10648
|
+
referencedColumns: ["id"];
|
|
10649
|
+
}, {
|
|
10650
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
10651
|
+
columns: ["product_group_id"];
|
|
10652
|
+
isOneToOne: false;
|
|
10653
|
+
referencedRelation: "product_groups";
|
|
10654
|
+
referencedColumns: ["id"];
|
|
10655
|
+
}];
|
|
10656
|
+
};
|
|
10657
|
+
manufacture_products: {
|
|
10658
|
+
Row: {
|
|
10659
|
+
created_at: string;
|
|
10660
|
+
description: string | null;
|
|
10661
|
+
id: string;
|
|
10662
|
+
is_active: boolean;
|
|
10663
|
+
name: string;
|
|
10664
|
+
produced_stock: number;
|
|
10665
|
+
product_code: string;
|
|
10666
|
+
tenant_id: string;
|
|
10667
|
+
updated_at: string;
|
|
10668
|
+
};
|
|
10669
|
+
Insert: {
|
|
10670
|
+
created_at?: string;
|
|
10671
|
+
description?: string | null;
|
|
10672
|
+
id?: string;
|
|
10673
|
+
is_active?: boolean;
|
|
10674
|
+
name: string;
|
|
10675
|
+
produced_stock?: number;
|
|
10676
|
+
product_code: string;
|
|
10677
|
+
tenant_id: string;
|
|
10678
|
+
updated_at?: string;
|
|
10679
|
+
};
|
|
10680
|
+
Update: {
|
|
10681
|
+
created_at?: string;
|
|
10682
|
+
description?: string | null;
|
|
10683
|
+
id?: string;
|
|
10684
|
+
is_active?: boolean;
|
|
10685
|
+
name?: string;
|
|
10686
|
+
produced_stock?: number;
|
|
10687
|
+
product_code?: string;
|
|
10688
|
+
tenant_id?: string;
|
|
10689
|
+
updated_at?: string;
|
|
10690
|
+
};
|
|
10691
|
+
Relationships: [];
|
|
10692
|
+
};
|
|
10693
|
+
maps_addresses: {
|
|
10694
|
+
Row: {
|
|
10695
|
+
address_hash: string;
|
|
10696
|
+
created_at: string;
|
|
10697
|
+
error_reason: string | null;
|
|
10698
|
+
formatted_address: string | null;
|
|
10699
|
+
id: string;
|
|
10700
|
+
lat: number | null;
|
|
10701
|
+
lng: number | null;
|
|
10702
|
+
place_id: string | null;
|
|
10703
|
+
raw_address: string;
|
|
10704
|
+
resolved_at: string | null;
|
|
10705
|
+
status: string;
|
|
10706
|
+
updated_at: string;
|
|
10707
|
+
};
|
|
10708
|
+
Insert: {
|
|
10709
|
+
address_hash: string;
|
|
10710
|
+
created_at?: string;
|
|
10711
|
+
error_reason?: string | null;
|
|
10712
|
+
formatted_address?: string | null;
|
|
10713
|
+
id?: string;
|
|
10714
|
+
lat?: number | null;
|
|
10715
|
+
lng?: number | null;
|
|
10716
|
+
place_id?: string | null;
|
|
10717
|
+
raw_address: string;
|
|
10718
|
+
resolved_at?: string | null;
|
|
10719
|
+
status?: string;
|
|
10720
|
+
updated_at?: string;
|
|
10721
|
+
};
|
|
10722
|
+
Update: {
|
|
10723
|
+
address_hash?: string;
|
|
10724
|
+
created_at?: string;
|
|
10725
|
+
error_reason?: string | null;
|
|
10726
|
+
formatted_address?: string | null;
|
|
10727
|
+
id?: string;
|
|
10728
|
+
lat?: number | null;
|
|
10729
|
+
lng?: number | null;
|
|
10730
|
+
place_id?: string | null;
|
|
10731
|
+
raw_address?: string;
|
|
10732
|
+
resolved_at?: string | null;
|
|
10733
|
+
status?: string;
|
|
10734
|
+
updated_at?: string;
|
|
10735
|
+
};
|
|
10736
|
+
Relationships: [];
|
|
10737
|
+
};
|
|
10738
|
+
maps_request_queue: {
|
|
10739
|
+
Row: {
|
|
10740
|
+
attempts: number;
|
|
10741
|
+
created_at: string;
|
|
10742
|
+
destination_hash: string | null;
|
|
10743
|
+
id: string;
|
|
10744
|
+
kind: string;
|
|
10745
|
+
last_error: string | null;
|
|
10746
|
+
mode: string;
|
|
10747
|
+
origin_hash: string | null;
|
|
10748
|
+
processed_at: string | null;
|
|
10749
|
+
raw_destination: string | null;
|
|
10750
|
+
raw_origin: string | null;
|
|
10751
|
+
requested_by: string | null;
|
|
10752
|
+
status: string;
|
|
10753
|
+
updated_at: string;
|
|
10754
|
+
};
|
|
10755
|
+
Insert: {
|
|
10756
|
+
attempts?: number;
|
|
10757
|
+
created_at?: string;
|
|
10758
|
+
destination_hash?: string | null;
|
|
10759
|
+
id?: string;
|
|
10760
|
+
kind: string;
|
|
10761
|
+
last_error?: string | null;
|
|
10762
|
+
mode?: string;
|
|
10763
|
+
origin_hash?: string | null;
|
|
10764
|
+
processed_at?: string | null;
|
|
10765
|
+
raw_destination?: string | null;
|
|
10766
|
+
raw_origin?: string | null;
|
|
10767
|
+
requested_by?: string | null;
|
|
10768
|
+
status?: string;
|
|
10769
|
+
updated_at?: string;
|
|
10770
|
+
};
|
|
10771
|
+
Update: {
|
|
10772
|
+
attempts?: number;
|
|
10773
|
+
created_at?: string;
|
|
10774
|
+
destination_hash?: string | null;
|
|
10775
|
+
id?: string;
|
|
10776
|
+
kind?: string;
|
|
10777
|
+
last_error?: string | null;
|
|
10778
|
+
mode?: string;
|
|
10779
|
+
origin_hash?: string | null;
|
|
10780
|
+
processed_at?: string | null;
|
|
10781
|
+
raw_destination?: string | null;
|
|
10782
|
+
raw_origin?: string | null;
|
|
10783
|
+
requested_by?: string | null;
|
|
10784
|
+
status?: string;
|
|
10785
|
+
updated_at?: string;
|
|
10786
|
+
};
|
|
10787
|
+
Relationships: [];
|
|
10788
|
+
};
|
|
10789
|
+
maps_settings: {
|
|
10790
|
+
Row: {
|
|
10791
|
+
allow_estimate_fallback: boolean;
|
|
10792
|
+
cache_ttl_days: number;
|
|
10793
|
+
created_at: string;
|
|
10794
|
+
daily_call_limit: number;
|
|
10795
|
+
id: string;
|
|
10796
|
+
last_error: string | null;
|
|
10797
|
+
last_error_at: string | null;
|
|
10798
|
+
last_success_at: string | null;
|
|
10799
|
+
updated_at: string;
|
|
10800
|
+
};
|
|
10801
|
+
Insert: {
|
|
10802
|
+
allow_estimate_fallback?: boolean;
|
|
10803
|
+
cache_ttl_days?: number;
|
|
10804
|
+
created_at?: string;
|
|
10805
|
+
daily_call_limit?: number;
|
|
10806
|
+
id?: string;
|
|
10807
|
+
last_error?: string | null;
|
|
10808
|
+
last_error_at?: string | null;
|
|
10809
|
+
last_success_at?: string | null;
|
|
10810
|
+
updated_at?: string;
|
|
10811
|
+
};
|
|
10812
|
+
Update: {
|
|
10813
|
+
allow_estimate_fallback?: boolean;
|
|
10814
|
+
cache_ttl_days?: number;
|
|
10815
|
+
created_at?: string;
|
|
10816
|
+
daily_call_limit?: number;
|
|
10817
|
+
id?: string;
|
|
10818
|
+
last_error?: string | null;
|
|
10819
|
+
last_error_at?: string | null;
|
|
10820
|
+
last_success_at?: string | null;
|
|
10821
|
+
updated_at?: string;
|
|
10822
|
+
};
|
|
10823
|
+
Relationships: [];
|
|
10824
|
+
};
|
|
10825
|
+
maps_travel_times: {
|
|
10826
|
+
Row: {
|
|
10827
|
+
created_at: string;
|
|
10828
|
+
destination_id: string;
|
|
10829
|
+
distance_m: number | null;
|
|
10830
|
+
duration_sec: number;
|
|
10831
|
+
expires_at: string;
|
|
10832
|
+
id: string;
|
|
10833
|
+
mode: string;
|
|
10834
|
+
origin_id: string;
|
|
10835
|
+
source: string;
|
|
10836
|
+
updated_at: string;
|
|
10837
|
+
};
|
|
10838
|
+
Insert: {
|
|
10839
|
+
created_at?: string;
|
|
10840
|
+
destination_id: string;
|
|
10841
|
+
distance_m?: number | null;
|
|
10842
|
+
duration_sec: number;
|
|
10843
|
+
expires_at?: string;
|
|
10844
|
+
id?: string;
|
|
10845
|
+
mode?: string;
|
|
10846
|
+
origin_id: string;
|
|
10847
|
+
source?: string;
|
|
10848
|
+
updated_at?: string;
|
|
10849
|
+
};
|
|
10850
|
+
Update: {
|
|
10851
|
+
created_at?: string;
|
|
10852
|
+
destination_id?: string;
|
|
10853
|
+
distance_m?: number | null;
|
|
10854
|
+
duration_sec?: number;
|
|
10855
|
+
expires_at?: string;
|
|
10856
|
+
id?: string;
|
|
10857
|
+
mode?: string;
|
|
10858
|
+
origin_id?: string;
|
|
10859
|
+
source?: string;
|
|
10860
|
+
updated_at?: string;
|
|
10861
|
+
};
|
|
10862
|
+
Relationships: [{
|
|
10863
|
+
foreignKeyName: "maps_travel_times_destination_id_fkey";
|
|
10864
|
+
columns: ["destination_id"];
|
|
10865
|
+
isOneToOne: false;
|
|
10866
|
+
referencedRelation: "maps_addresses";
|
|
10867
|
+
referencedColumns: ["id"];
|
|
10868
|
+
}, {
|
|
10869
|
+
foreignKeyName: "maps_travel_times_origin_id_fkey";
|
|
10870
|
+
columns: ["origin_id"];
|
|
10871
|
+
isOneToOne: false;
|
|
10872
|
+
referencedRelation: "maps_addresses";
|
|
10873
|
+
referencedColumns: ["id"];
|
|
10874
|
+
}];
|
|
10875
|
+
};
|
|
10876
|
+
maps_usage_log: {
|
|
10877
|
+
Row: {
|
|
10878
|
+
cache_hits: number;
|
|
10879
|
+
call_type: string;
|
|
10880
|
+
created_at: string;
|
|
10881
|
+
day: string;
|
|
10882
|
+
detail: string | null;
|
|
10883
|
+
elements: number;
|
|
10884
|
+
id: string;
|
|
10885
|
+
outcome: string;
|
|
10886
|
+
};
|
|
10887
|
+
Insert: {
|
|
10888
|
+
cache_hits?: number;
|
|
10889
|
+
call_type: string;
|
|
10890
|
+
created_at?: string;
|
|
10891
|
+
day?: string;
|
|
10892
|
+
detail?: string | null;
|
|
10893
|
+
elements?: number;
|
|
10894
|
+
id?: string;
|
|
10895
|
+
outcome?: string;
|
|
10896
|
+
};
|
|
10897
|
+
Update: {
|
|
10898
|
+
cache_hits?: number;
|
|
10899
|
+
call_type?: string;
|
|
10900
|
+
created_at?: string;
|
|
10901
|
+
day?: string;
|
|
10902
|
+
detail?: string | null;
|
|
10903
|
+
elements?: number;
|
|
10904
|
+
id?: string;
|
|
10905
|
+
outcome?: string;
|
|
10906
|
+
};
|
|
10907
|
+
Relationships: [];
|
|
10908
|
+
};
|
|
10909
|
+
material_usage: {
|
|
10910
|
+
Row: {
|
|
10911
|
+
created_at: string;
|
|
10912
|
+
id: string;
|
|
10913
|
+
material_name: string;
|
|
10914
|
+
monteur_id: string | null;
|
|
10915
|
+
price_at_time: number;
|
|
10916
|
+
quantity_used: number;
|
|
10917
|
+
updated_at: string;
|
|
10918
|
+
van_inventory_id: string | null;
|
|
10919
|
+
work_order_id: string;
|
|
10920
|
+
};
|
|
10921
|
+
Insert: {
|
|
10922
|
+
created_at?: string;
|
|
10923
|
+
id?: string;
|
|
10924
|
+
material_name: string;
|
|
10925
|
+
monteur_id?: string | null;
|
|
10926
|
+
price_at_time?: number;
|
|
10927
|
+
quantity_used?: number;
|
|
10928
|
+
updated_at?: string;
|
|
10929
|
+
van_inventory_id?: string | null;
|
|
10930
|
+
work_order_id: string;
|
|
10931
|
+
};
|
|
10932
|
+
Update: {
|
|
10933
|
+
created_at?: string;
|
|
10934
|
+
id?: string;
|
|
10935
|
+
material_name?: string;
|
|
10936
|
+
monteur_id?: string | null;
|
|
10937
|
+
price_at_time?: number;
|
|
10938
|
+
quantity_used?: number;
|
|
10939
|
+
updated_at?: string;
|
|
10940
|
+
van_inventory_id?: string | null;
|
|
10941
|
+
work_order_id?: string;
|
|
10942
|
+
};
|
|
10943
|
+
Relationships: [{
|
|
10944
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
10945
|
+
columns: ["monteur_id"];
|
|
10946
|
+
isOneToOne: false;
|
|
10947
|
+
referencedRelation: "profiles";
|
|
10948
|
+
referencedColumns: ["id"];
|
|
10949
|
+
}, {
|
|
10950
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
10951
|
+
columns: ["van_inventory_id"];
|
|
10952
|
+
isOneToOne: false;
|
|
10953
|
+
referencedRelation: "van_inventories";
|
|
10954
|
+
referencedColumns: ["id"];
|
|
10955
|
+
}, {
|
|
10956
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
10957
|
+
columns: ["work_order_id"];
|
|
10958
|
+
isOneToOne: false;
|
|
10959
|
+
referencedRelation: "work_orders";
|
|
10960
|
+
referencedColumns: ["id"];
|
|
10961
|
+
}];
|
|
10962
|
+
};
|
|
10963
|
+
medewerker_details: {
|
|
9779
10964
|
Row: {
|
|
9780
|
-
|
|
10965
|
+
color: string | null;
|
|
9781
10966
|
created_at: string;
|
|
10967
|
+
hours_fri: number | null;
|
|
10968
|
+
hours_mon: number | null;
|
|
10969
|
+
hours_thu: number | null;
|
|
10970
|
+
hours_tue: number | null;
|
|
10971
|
+
hours_wed: number | null;
|
|
9782
10972
|
id: string;
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
|
|
10973
|
+
is_active: boolean;
|
|
10974
|
+
leave_balance_hours: number;
|
|
10975
|
+
persnr: string | null;
|
|
10976
|
+
phone: string | null;
|
|
10977
|
+
profile_id: string;
|
|
10978
|
+
updated_at: string;
|
|
9788
10979
|
};
|
|
9789
10980
|
Insert: {
|
|
9790
|
-
|
|
10981
|
+
color?: string | null;
|
|
9791
10982
|
created_at?: string;
|
|
10983
|
+
hours_fri?: number | null;
|
|
10984
|
+
hours_mon?: number | null;
|
|
10985
|
+
hours_thu?: number | null;
|
|
10986
|
+
hours_tue?: number | null;
|
|
10987
|
+
hours_wed?: number | null;
|
|
9792
10988
|
id?: string;
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
10989
|
+
is_active?: boolean;
|
|
10990
|
+
leave_balance_hours?: number;
|
|
10991
|
+
persnr?: string | null;
|
|
10992
|
+
phone?: string | null;
|
|
10993
|
+
profile_id: string;
|
|
10994
|
+
updated_at?: string;
|
|
9798
10995
|
};
|
|
9799
10996
|
Update: {
|
|
9800
|
-
|
|
10997
|
+
color?: string | null;
|
|
9801
10998
|
created_at?: string;
|
|
10999
|
+
hours_fri?: number | null;
|
|
11000
|
+
hours_mon?: number | null;
|
|
11001
|
+
hours_thu?: number | null;
|
|
11002
|
+
hours_tue?: number | null;
|
|
11003
|
+
hours_wed?: number | null;
|
|
9802
11004
|
id?: string;
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
|
|
11005
|
+
is_active?: boolean;
|
|
11006
|
+
leave_balance_hours?: number;
|
|
11007
|
+
persnr?: string | null;
|
|
11008
|
+
phone?: string | null;
|
|
11009
|
+
profile_id?: string;
|
|
11010
|
+
updated_at?: string;
|
|
9808
11011
|
};
|
|
9809
11012
|
Relationships: [{
|
|
9810
|
-
foreignKeyName: "
|
|
9811
|
-
columns: ["
|
|
9812
|
-
isOneToOne:
|
|
9813
|
-
referencedRelation: "
|
|
9814
|
-
referencedColumns: ["manufacture_product_id"];
|
|
9815
|
-
}, {
|
|
9816
|
-
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
9817
|
-
columns: ["manufacture_product_id"];
|
|
9818
|
-
isOneToOne: false;
|
|
9819
|
-
referencedRelation: "manufacture_products";
|
|
9820
|
-
referencedColumns: ["id"];
|
|
9821
|
-
}, {
|
|
9822
|
-
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
9823
|
-
columns: ["product_group_id"];
|
|
9824
|
-
isOneToOne: false;
|
|
9825
|
-
referencedRelation: "product_groups";
|
|
11013
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
11014
|
+
columns: ["profile_id"];
|
|
11015
|
+
isOneToOne: true;
|
|
11016
|
+
referencedRelation: "profiles";
|
|
9826
11017
|
referencedColumns: ["id"];
|
|
9827
11018
|
}];
|
|
9828
11019
|
};
|
|
9829
|
-
|
|
11020
|
+
module_features: {
|
|
9830
11021
|
Row: {
|
|
9831
11022
|
created_at: string;
|
|
9832
|
-
|
|
11023
|
+
feature_id: string;
|
|
9833
11024
|
id: string;
|
|
9834
11025
|
is_active: boolean;
|
|
11026
|
+
last_seen_at: string;
|
|
11027
|
+
module_id: string;
|
|
9835
11028
|
name: string;
|
|
9836
|
-
produced_stock: number;
|
|
9837
|
-
product_code: string;
|
|
9838
|
-
tenant_id: string;
|
|
9839
|
-
updated_at: string;
|
|
9840
11029
|
};
|
|
9841
11030
|
Insert: {
|
|
9842
11031
|
created_at?: string;
|
|
9843
|
-
|
|
11032
|
+
feature_id: string;
|
|
9844
11033
|
id?: string;
|
|
9845
11034
|
is_active?: boolean;
|
|
11035
|
+
last_seen_at?: string;
|
|
11036
|
+
module_id: string;
|
|
9846
11037
|
name: string;
|
|
9847
|
-
produced_stock?: number;
|
|
9848
|
-
product_code: string;
|
|
9849
|
-
tenant_id: string;
|
|
9850
|
-
updated_at?: string;
|
|
9851
11038
|
};
|
|
9852
11039
|
Update: {
|
|
9853
11040
|
created_at?: string;
|
|
9854
|
-
|
|
11041
|
+
feature_id?: string;
|
|
9855
11042
|
id?: string;
|
|
9856
11043
|
is_active?: boolean;
|
|
11044
|
+
last_seen_at?: string;
|
|
11045
|
+
module_id?: string;
|
|
9857
11046
|
name?: string;
|
|
9858
|
-
produced_stock?: number;
|
|
9859
|
-
product_code?: string;
|
|
9860
|
-
tenant_id?: string;
|
|
9861
|
-
updated_at?: string;
|
|
9862
11047
|
};
|
|
9863
11048
|
Relationships: [];
|
|
9864
11049
|
};
|
|
@@ -9892,8 +11077,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9892
11077
|
module_registry: {
|
|
9893
11078
|
Row: {
|
|
9894
11079
|
created_at: string;
|
|
11080
|
+
enforce: boolean;
|
|
9895
11081
|
is_active: boolean;
|
|
9896
11082
|
last_seen_at: string;
|
|
11083
|
+
missing_count: number;
|
|
9897
11084
|
module_id: string;
|
|
9898
11085
|
name: string;
|
|
9899
11086
|
shell_id: string | null;
|
|
@@ -9901,8 +11088,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9901
11088
|
};
|
|
9902
11089
|
Insert: {
|
|
9903
11090
|
created_at?: string;
|
|
11091
|
+
enforce?: boolean;
|
|
9904
11092
|
is_active?: boolean;
|
|
9905
11093
|
last_seen_at?: string;
|
|
11094
|
+
missing_count?: number;
|
|
9906
11095
|
module_id: string;
|
|
9907
11096
|
name: string;
|
|
9908
11097
|
shell_id?: string | null;
|
|
@@ -9910,8 +11099,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9910
11099
|
};
|
|
9911
11100
|
Update: {
|
|
9912
11101
|
created_at?: string;
|
|
11102
|
+
enforce?: boolean;
|
|
9913
11103
|
is_active?: boolean;
|
|
9914
11104
|
last_seen_at?: string;
|
|
11105
|
+
missing_count?: number;
|
|
9915
11106
|
module_id?: string;
|
|
9916
11107
|
name?: string;
|
|
9917
11108
|
shell_id?: string | null;
|
|
@@ -9970,63 +11161,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9970
11161
|
};
|
|
9971
11162
|
Relationships: [];
|
|
9972
11163
|
};
|
|
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
11164
|
nmbrs_component_mapping: {
|
|
10031
11165
|
Row: {
|
|
10032
11166
|
created_at: string;
|
|
@@ -10097,13 +11231,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10097
11231
|
nmbrs_employee_number?: string;
|
|
10098
11232
|
updated_at?: string;
|
|
10099
11233
|
};
|
|
10100
|
-
Relationships: [
|
|
10101
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10102
|
-
columns: ["monteur_id"];
|
|
10103
|
-
isOneToOne: true;
|
|
10104
|
-
referencedRelation: "monteurs";
|
|
10105
|
-
referencedColumns: ["id"];
|
|
10106
|
-
}];
|
|
11234
|
+
Relationships: [];
|
|
10107
11235
|
};
|
|
10108
11236
|
nmbrs_export_lines: {
|
|
10109
11237
|
Row: {
|
|
@@ -10152,12 +11280,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10152
11280
|
wage_code?: string;
|
|
10153
11281
|
};
|
|
10154
11282
|
Relationships: [{
|
|
10155
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10156
|
-
columns: ["monteur_id"];
|
|
10157
|
-
isOneToOne: false;
|
|
10158
|
-
referencedRelation: "monteurs";
|
|
10159
|
-
referencedColumns: ["id"];
|
|
10160
|
-
}, {
|
|
10161
11283
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10162
11284
|
columns: ["run_id"];
|
|
10163
11285
|
isOneToOne: false;
|
|
@@ -10978,6 +12100,48 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10978
12100
|
};
|
|
10979
12101
|
Relationships: [];
|
|
10980
12102
|
};
|
|
12103
|
+
order_invoice_links: {
|
|
12104
|
+
Row: {
|
|
12105
|
+
administration_code: string | null;
|
|
12106
|
+
attempts: number;
|
|
12107
|
+
created_at: string;
|
|
12108
|
+
error_message: string | null;
|
|
12109
|
+
id: string;
|
|
12110
|
+
invoice_number: string | null;
|
|
12111
|
+
next_attempt_at: string;
|
|
12112
|
+
order_id: string;
|
|
12113
|
+
processed_at: string | null;
|
|
12114
|
+
status: string;
|
|
12115
|
+
updated_at: string;
|
|
12116
|
+
};
|
|
12117
|
+
Insert: {
|
|
12118
|
+
administration_code?: string | null;
|
|
12119
|
+
attempts?: number;
|
|
12120
|
+
created_at?: string;
|
|
12121
|
+
error_message?: string | null;
|
|
12122
|
+
id?: string;
|
|
12123
|
+
invoice_number?: string | null;
|
|
12124
|
+
next_attempt_at?: string;
|
|
12125
|
+
order_id: string;
|
|
12126
|
+
processed_at?: string | null;
|
|
12127
|
+
status?: string;
|
|
12128
|
+
updated_at?: string;
|
|
12129
|
+
};
|
|
12130
|
+
Update: {
|
|
12131
|
+
administration_code?: string | null;
|
|
12132
|
+
attempts?: number;
|
|
12133
|
+
created_at?: string;
|
|
12134
|
+
error_message?: string | null;
|
|
12135
|
+
id?: string;
|
|
12136
|
+
invoice_number?: string | null;
|
|
12137
|
+
next_attempt_at?: string;
|
|
12138
|
+
order_id?: string;
|
|
12139
|
+
processed_at?: string | null;
|
|
12140
|
+
status?: string;
|
|
12141
|
+
updated_at?: string;
|
|
12142
|
+
};
|
|
12143
|
+
Relationships: [];
|
|
12144
|
+
};
|
|
10981
12145
|
order_items: {
|
|
10982
12146
|
Row: {
|
|
10983
12147
|
crates_per_layer: number | null;
|
|
@@ -11152,6 +12316,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11152
12316
|
orders: {
|
|
11153
12317
|
Row: {
|
|
11154
12318
|
buffer_id: string | null;
|
|
12319
|
+
cancel_reason: string | null;
|
|
12320
|
+
cancelled_at: string | null;
|
|
11155
12321
|
created_at: string;
|
|
11156
12322
|
custom_fields: import("./types").Json;
|
|
11157
12323
|
customer_id: string | null;
|
|
@@ -11160,6 +12326,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11160
12326
|
delivery_date: string | null;
|
|
11161
12327
|
floriday_sales_order_id: string | null;
|
|
11162
12328
|
id: string;
|
|
12329
|
+
invoice_due_at: string | null;
|
|
11163
12330
|
is_reservation: boolean;
|
|
11164
12331
|
notes: string | null;
|
|
11165
12332
|
order_date: string;
|
|
@@ -11173,6 +12340,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11173
12340
|
};
|
|
11174
12341
|
Insert: {
|
|
11175
12342
|
buffer_id?: string | null;
|
|
12343
|
+
cancel_reason?: string | null;
|
|
12344
|
+
cancelled_at?: string | null;
|
|
11176
12345
|
created_at?: string;
|
|
11177
12346
|
custom_fields?: import("./types").Json;
|
|
11178
12347
|
customer_id?: string | null;
|
|
@@ -11181,6 +12350,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11181
12350
|
delivery_date?: string | null;
|
|
11182
12351
|
floriday_sales_order_id?: string | null;
|
|
11183
12352
|
id?: string;
|
|
12353
|
+
invoice_due_at?: string | null;
|
|
11184
12354
|
is_reservation?: boolean;
|
|
11185
12355
|
notes?: string | null;
|
|
11186
12356
|
order_date?: string;
|
|
@@ -11194,6 +12364,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11194
12364
|
};
|
|
11195
12365
|
Update: {
|
|
11196
12366
|
buffer_id?: string | null;
|
|
12367
|
+
cancel_reason?: string | null;
|
|
12368
|
+
cancelled_at?: string | null;
|
|
11197
12369
|
created_at?: string;
|
|
11198
12370
|
custom_fields?: import("./types").Json;
|
|
11199
12371
|
customer_id?: string | null;
|
|
@@ -11202,6 +12374,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11202
12374
|
delivery_date?: string | null;
|
|
11203
12375
|
floriday_sales_order_id?: string | null;
|
|
11204
12376
|
id?: string;
|
|
12377
|
+
invoice_due_at?: string | null;
|
|
11205
12378
|
is_reservation?: boolean;
|
|
11206
12379
|
notes?: string | null;
|
|
11207
12380
|
order_date?: string;
|
|
@@ -12121,6 +13294,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12121
13294
|
referencedColumns: ["id"];
|
|
12122
13295
|
}];
|
|
12123
13296
|
};
|
|
13297
|
+
pick_sync_state: {
|
|
13298
|
+
Row: {
|
|
13299
|
+
id: boolean;
|
|
13300
|
+
last_cleanup_at: string | null;
|
|
13301
|
+
last_sync_at: string | null;
|
|
13302
|
+
updated_at: string;
|
|
13303
|
+
};
|
|
13304
|
+
Insert: {
|
|
13305
|
+
id?: boolean;
|
|
13306
|
+
last_cleanup_at?: string | null;
|
|
13307
|
+
last_sync_at?: string | null;
|
|
13308
|
+
updated_at?: string;
|
|
13309
|
+
};
|
|
13310
|
+
Update: {
|
|
13311
|
+
id?: boolean;
|
|
13312
|
+
last_cleanup_at?: string | null;
|
|
13313
|
+
last_sync_at?: string | null;
|
|
13314
|
+
updated_at?: string;
|
|
13315
|
+
};
|
|
13316
|
+
Relationships: [];
|
|
13317
|
+
};
|
|
12124
13318
|
pick_task_document_types: {
|
|
12125
13319
|
Row: {
|
|
12126
13320
|
created_at: string;
|
|
@@ -12403,6 +13597,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12403
13597
|
gebruiker_id: string | null;
|
|
12404
13598
|
gebruiker_naam: string;
|
|
12405
13599
|
gestart_op: string | null;
|
|
13600
|
+
herkomst: string | null;
|
|
12406
13601
|
id: string;
|
|
12407
13602
|
idempotentie_sleutel: string | null;
|
|
12408
13603
|
is_herprint: boolean;
|
|
@@ -12432,6 +13627,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12432
13627
|
gebruiker_id?: string | null;
|
|
12433
13628
|
gebruiker_naam?: string;
|
|
12434
13629
|
gestart_op?: string | null;
|
|
13630
|
+
herkomst?: string | null;
|
|
12435
13631
|
id?: string;
|
|
12436
13632
|
idempotentie_sleutel?: string | null;
|
|
12437
13633
|
is_herprint?: boolean;
|
|
@@ -12461,6 +13657,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12461
13657
|
gebruiker_id?: string | null;
|
|
12462
13658
|
gebruiker_naam?: string;
|
|
12463
13659
|
gestart_op?: string | null;
|
|
13660
|
+
herkomst?: string | null;
|
|
12464
13661
|
id?: string;
|
|
12465
13662
|
idempotentie_sleutel?: string | null;
|
|
12466
13663
|
is_herprint?: boolean;
|
|
@@ -12476,29 +13673,122 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12476
13673
|
render_html?: string | null;
|
|
12477
13674
|
status?: Database["public"]["Enums"]["print_job_status"];
|
|
12478
13675
|
updated_at?: string;
|
|
12479
|
-
volgende_poging?: string | null;
|
|
12480
|
-
voltooid_op?: string | null;
|
|
13676
|
+
volgende_poging?: string | null;
|
|
13677
|
+
voltooid_op?: string | null;
|
|
13678
|
+
};
|
|
13679
|
+
Relationships: [{
|
|
13680
|
+
foreignKeyName: "print_jobs_agent_id_fkey";
|
|
13681
|
+
columns: ["agent_id"];
|
|
13682
|
+
isOneToOne: false;
|
|
13683
|
+
referencedRelation: "print_agents";
|
|
13684
|
+
referencedColumns: ["id"];
|
|
13685
|
+
}, {
|
|
13686
|
+
foreignKeyName: "print_jobs_layout_id_fkey";
|
|
13687
|
+
columns: ["layout_id"];
|
|
13688
|
+
isOneToOne: false;
|
|
13689
|
+
referencedRelation: "document_layouts";
|
|
13690
|
+
referencedColumns: ["id"];
|
|
13691
|
+
}, {
|
|
13692
|
+
foreignKeyName: "print_jobs_printer_id_fkey";
|
|
13693
|
+
columns: ["printer_id"];
|
|
13694
|
+
isOneToOne: false;
|
|
13695
|
+
referencedRelation: "printers";
|
|
13696
|
+
referencedColumns: ["id"];
|
|
13697
|
+
}];
|
|
13698
|
+
};
|
|
13699
|
+
print_plek_computers: {
|
|
13700
|
+
Row: {
|
|
13701
|
+
computer_naam: string;
|
|
13702
|
+
created_at: string;
|
|
13703
|
+
id: string;
|
|
13704
|
+
print_plek_id: string;
|
|
13705
|
+
updated_at: string;
|
|
13706
|
+
};
|
|
13707
|
+
Insert: {
|
|
13708
|
+
computer_naam: string;
|
|
13709
|
+
created_at?: string;
|
|
13710
|
+
id?: string;
|
|
13711
|
+
print_plek_id: string;
|
|
13712
|
+
updated_at?: string;
|
|
13713
|
+
};
|
|
13714
|
+
Update: {
|
|
13715
|
+
computer_naam?: string;
|
|
13716
|
+
created_at?: string;
|
|
13717
|
+
id?: string;
|
|
13718
|
+
print_plek_id?: string;
|
|
13719
|
+
updated_at?: string;
|
|
13720
|
+
};
|
|
13721
|
+
Relationships: [{
|
|
13722
|
+
foreignKeyName: "print_plek_computers_print_plek_id_fkey";
|
|
13723
|
+
columns: ["print_plek_id"];
|
|
13724
|
+
isOneToOne: false;
|
|
13725
|
+
referencedRelation: "print_plekken";
|
|
13726
|
+
referencedColumns: ["id"];
|
|
13727
|
+
}];
|
|
13728
|
+
};
|
|
13729
|
+
print_plek_koppelingen: {
|
|
13730
|
+
Row: {
|
|
13731
|
+
bron: string;
|
|
13732
|
+
bron_id: string;
|
|
13733
|
+
created_at: string;
|
|
13734
|
+
id: string;
|
|
13735
|
+
label: string | null;
|
|
13736
|
+
print_plek_id: string;
|
|
13737
|
+
updated_at: string;
|
|
13738
|
+
};
|
|
13739
|
+
Insert: {
|
|
13740
|
+
bron: string;
|
|
13741
|
+
bron_id: string;
|
|
13742
|
+
created_at?: string;
|
|
13743
|
+
id?: string;
|
|
13744
|
+
label?: string | null;
|
|
13745
|
+
print_plek_id: string;
|
|
13746
|
+
updated_at?: string;
|
|
13747
|
+
};
|
|
13748
|
+
Update: {
|
|
13749
|
+
bron?: string;
|
|
13750
|
+
bron_id?: string;
|
|
13751
|
+
created_at?: string;
|
|
13752
|
+
id?: string;
|
|
13753
|
+
label?: string | null;
|
|
13754
|
+
print_plek_id?: string;
|
|
13755
|
+
updated_at?: string;
|
|
12481
13756
|
};
|
|
12482
13757
|
Relationships: [{
|
|
12483
|
-
foreignKeyName: "
|
|
12484
|
-
columns: ["
|
|
12485
|
-
isOneToOne: false;
|
|
12486
|
-
referencedRelation: "print_agents";
|
|
12487
|
-
referencedColumns: ["id"];
|
|
12488
|
-
}, {
|
|
12489
|
-
foreignKeyName: "print_jobs_layout_id_fkey";
|
|
12490
|
-
columns: ["layout_id"];
|
|
12491
|
-
isOneToOne: false;
|
|
12492
|
-
referencedRelation: "document_layouts";
|
|
12493
|
-
referencedColumns: ["id"];
|
|
12494
|
-
}, {
|
|
12495
|
-
foreignKeyName: "print_jobs_printer_id_fkey";
|
|
12496
|
-
columns: ["printer_id"];
|
|
13758
|
+
foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
|
|
13759
|
+
columns: ["print_plek_id"];
|
|
12497
13760
|
isOneToOne: false;
|
|
12498
|
-
referencedRelation: "
|
|
13761
|
+
referencedRelation: "print_plekken";
|
|
12499
13762
|
referencedColumns: ["id"];
|
|
12500
13763
|
}];
|
|
12501
13764
|
};
|
|
13765
|
+
print_plekken: {
|
|
13766
|
+
Row: {
|
|
13767
|
+
actief: boolean;
|
|
13768
|
+
created_at: string;
|
|
13769
|
+
id: string;
|
|
13770
|
+
naam: string;
|
|
13771
|
+
omschrijving: string | null;
|
|
13772
|
+
updated_at: string;
|
|
13773
|
+
};
|
|
13774
|
+
Insert: {
|
|
13775
|
+
actief?: boolean;
|
|
13776
|
+
created_at?: string;
|
|
13777
|
+
id?: string;
|
|
13778
|
+
naam: string;
|
|
13779
|
+
omschrijving?: string | null;
|
|
13780
|
+
updated_at?: string;
|
|
13781
|
+
};
|
|
13782
|
+
Update: {
|
|
13783
|
+
actief?: boolean;
|
|
13784
|
+
created_at?: string;
|
|
13785
|
+
id?: string;
|
|
13786
|
+
naam?: string;
|
|
13787
|
+
omschrijving?: string | null;
|
|
13788
|
+
updated_at?: string;
|
|
13789
|
+
};
|
|
13790
|
+
Relationships: [];
|
|
13791
|
+
};
|
|
12502
13792
|
print_queue_runners: {
|
|
12503
13793
|
Row: {
|
|
12504
13794
|
actief: boolean;
|
|
@@ -12506,6 +13796,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12506
13796
|
created_at: string;
|
|
12507
13797
|
id: string;
|
|
12508
13798
|
laatst_gezien: string;
|
|
13799
|
+
laatste_fout: string | null;
|
|
13800
|
+
laatste_request_id: number | null;
|
|
13801
|
+
mislukte_posts: number;
|
|
12509
13802
|
tick_sleutel: string;
|
|
12510
13803
|
updated_at: string;
|
|
12511
13804
|
};
|
|
@@ -12515,6 +13808,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12515
13808
|
created_at?: string;
|
|
12516
13809
|
id?: string;
|
|
12517
13810
|
laatst_gezien?: string;
|
|
13811
|
+
laatste_fout?: string | null;
|
|
13812
|
+
laatste_request_id?: number | null;
|
|
13813
|
+
mislukte_posts?: number;
|
|
12518
13814
|
tick_sleutel?: string;
|
|
12519
13815
|
updated_at?: string;
|
|
12520
13816
|
};
|
|
@@ -12524,6 +13820,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12524
13820
|
created_at?: string;
|
|
12525
13821
|
id?: string;
|
|
12526
13822
|
laatst_gezien?: string;
|
|
13823
|
+
laatste_fout?: string | null;
|
|
13824
|
+
laatste_request_id?: number | null;
|
|
13825
|
+
mislukte_posts?: number;
|
|
12527
13826
|
tick_sleutel?: string;
|
|
12528
13827
|
updated_at?: string;
|
|
12529
13828
|
};
|
|
@@ -12717,6 +14016,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12717
14016
|
created_at: string;
|
|
12718
14017
|
driver: string;
|
|
12719
14018
|
extern_printer_id: string | null;
|
|
14019
|
+
formaten_bijgewerkt_op: string | null;
|
|
12720
14020
|
id: string;
|
|
12721
14021
|
ip_adres: string | null;
|
|
12722
14022
|
laatst_gezien: string | null;
|
|
@@ -12724,6 +14024,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12724
14024
|
merk: string;
|
|
12725
14025
|
naam: string;
|
|
12726
14026
|
omschrijving: string;
|
|
14027
|
+
ondersteunde_formaten: import("./types").Json | null;
|
|
14028
|
+
ondersteunde_laden: import("./types").Json | null;
|
|
12727
14029
|
online: boolean;
|
|
12728
14030
|
papierformaat: string;
|
|
12729
14031
|
poort: number | null;
|
|
@@ -12739,6 +14041,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12739
14041
|
created_at?: string;
|
|
12740
14042
|
driver?: string;
|
|
12741
14043
|
extern_printer_id?: string | null;
|
|
14044
|
+
formaten_bijgewerkt_op?: string | null;
|
|
12742
14045
|
id?: string;
|
|
12743
14046
|
ip_adres?: string | null;
|
|
12744
14047
|
laatst_gezien?: string | null;
|
|
@@ -12746,6 +14049,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12746
14049
|
merk?: string;
|
|
12747
14050
|
naam: string;
|
|
12748
14051
|
omschrijving?: string;
|
|
14052
|
+
ondersteunde_formaten?: import("./types").Json | null;
|
|
14053
|
+
ondersteunde_laden?: import("./types").Json | null;
|
|
12749
14054
|
online?: boolean;
|
|
12750
14055
|
papierformaat?: string;
|
|
12751
14056
|
poort?: number | null;
|
|
@@ -12761,6 +14066,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12761
14066
|
created_at?: string;
|
|
12762
14067
|
driver?: string;
|
|
12763
14068
|
extern_printer_id?: string | null;
|
|
14069
|
+
formaten_bijgewerkt_op?: string | null;
|
|
12764
14070
|
id?: string;
|
|
12765
14071
|
ip_adres?: string | null;
|
|
12766
14072
|
laatst_gezien?: string | null;
|
|
@@ -12768,6 +14074,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12768
14074
|
merk?: string;
|
|
12769
14075
|
naam?: string;
|
|
12770
14076
|
omschrijving?: string;
|
|
14077
|
+
ondersteunde_formaten?: import("./types").Json | null;
|
|
14078
|
+
ondersteunde_laden?: import("./types").Json | null;
|
|
12771
14079
|
online?: boolean;
|
|
12772
14080
|
papierformaat?: string;
|
|
12773
14081
|
poort?: number | null;
|
|
@@ -13246,6 +14554,66 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
13246
14554
|
};
|
|
13247
14555
|
Relationships: [];
|
|
13248
14556
|
};
|
|
14557
|
+
profile_modules: {
|
|
14558
|
+
Row: {
|
|
14559
|
+
created_at: string;
|
|
14560
|
+
id: string;
|
|
14561
|
+
module_id: string;
|
|
14562
|
+
profile_id: string;
|
|
14563
|
+
};
|
|
14564
|
+
Insert: {
|
|
14565
|
+
created_at?: string;
|
|
14566
|
+
id?: string;
|
|
14567
|
+
module_id: string;
|
|
14568
|
+
profile_id: string;
|
|
14569
|
+
};
|
|
14570
|
+
Update: {
|
|
14571
|
+
created_at?: string;
|
|
14572
|
+
id?: string;
|
|
14573
|
+
module_id?: string;
|
|
14574
|
+
profile_id?: string;
|
|
14575
|
+
};
|
|
14576
|
+
Relationships: [{
|
|
14577
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
14578
|
+
columns: ["profile_id"];
|
|
14579
|
+
isOneToOne: false;
|
|
14580
|
+
referencedRelation: "profiles_org";
|
|
14581
|
+
referencedColumns: ["id"];
|
|
14582
|
+
}];
|
|
14583
|
+
};
|
|
14584
|
+
profile_roles: {
|
|
14585
|
+
Row: {
|
|
14586
|
+
created_at: string;
|
|
14587
|
+
id: string;
|
|
14588
|
+
profile_id: string;
|
|
14589
|
+
role_id: string;
|
|
14590
|
+
};
|
|
14591
|
+
Insert: {
|
|
14592
|
+
created_at?: string;
|
|
14593
|
+
id?: string;
|
|
14594
|
+
profile_id: string;
|
|
14595
|
+
role_id: string;
|
|
14596
|
+
};
|
|
14597
|
+
Update: {
|
|
14598
|
+
created_at?: string;
|
|
14599
|
+
id?: string;
|
|
14600
|
+
profile_id?: string;
|
|
14601
|
+
role_id?: string;
|
|
14602
|
+
};
|
|
14603
|
+
Relationships: [{
|
|
14604
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
14605
|
+
columns: ["profile_id"];
|
|
14606
|
+
isOneToOne: false;
|
|
14607
|
+
referencedRelation: "profiles_org";
|
|
14608
|
+
referencedColumns: ["id"];
|
|
14609
|
+
}, {
|
|
14610
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
14611
|
+
columns: ["role_id"];
|
|
14612
|
+
isOneToOne: false;
|
|
14613
|
+
referencedRelation: "roles";
|
|
14614
|
+
referencedColumns: ["id"];
|
|
14615
|
+
}];
|
|
14616
|
+
};
|
|
13249
14617
|
profiles: {
|
|
13250
14618
|
Row: {
|
|
13251
14619
|
address: string | null;
|
|
@@ -13291,6 +14659,39 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
13291
14659
|
referencedColumns: ["id"];
|
|
13292
14660
|
}];
|
|
13293
14661
|
};
|
|
14662
|
+
profiles_org: {
|
|
14663
|
+
Row: {
|
|
14664
|
+
created_at: string;
|
|
14665
|
+
id: string;
|
|
14666
|
+
is_default: boolean;
|
|
14667
|
+
name: string;
|
|
14668
|
+
tenant_id: string | null;
|
|
14669
|
+
updated_at: string;
|
|
14670
|
+
};
|
|
14671
|
+
Insert: {
|
|
14672
|
+
created_at?: string;
|
|
14673
|
+
id?: string;
|
|
14674
|
+
is_default?: boolean;
|
|
14675
|
+
name: string;
|
|
14676
|
+
tenant_id?: string | null;
|
|
14677
|
+
updated_at?: string;
|
|
14678
|
+
};
|
|
14679
|
+
Update: {
|
|
14680
|
+
created_at?: string;
|
|
14681
|
+
id?: string;
|
|
14682
|
+
is_default?: boolean;
|
|
14683
|
+
name?: string;
|
|
14684
|
+
tenant_id?: string | null;
|
|
14685
|
+
updated_at?: string;
|
|
14686
|
+
};
|
|
14687
|
+
Relationships: [{
|
|
14688
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
14689
|
+
columns: ["tenant_id"];
|
|
14690
|
+
isOneToOne: false;
|
|
14691
|
+
referencedRelation: "tenants";
|
|
14692
|
+
referencedColumns: ["id"];
|
|
14693
|
+
}];
|
|
14694
|
+
};
|
|
13294
14695
|
projects: {
|
|
13295
14696
|
Row: {
|
|
13296
14697
|
contact_name: string | null;
|
|
@@ -14032,6 +15433,96 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
14032
15433
|
referencedColumns: ["id"];
|
|
14033
15434
|
}];
|
|
14034
15435
|
};
|
|
15436
|
+
role_assignments: {
|
|
15437
|
+
Row: {
|
|
15438
|
+
created_at: string;
|
|
15439
|
+
id: string;
|
|
15440
|
+
role_id: string;
|
|
15441
|
+
user_id: string;
|
|
15442
|
+
};
|
|
15443
|
+
Insert: {
|
|
15444
|
+
created_at?: string;
|
|
15445
|
+
id?: string;
|
|
15446
|
+
role_id: string;
|
|
15447
|
+
user_id: string;
|
|
15448
|
+
};
|
|
15449
|
+
Update: {
|
|
15450
|
+
created_at?: string;
|
|
15451
|
+
id?: string;
|
|
15452
|
+
role_id?: string;
|
|
15453
|
+
user_id?: string;
|
|
15454
|
+
};
|
|
15455
|
+
Relationships: [{
|
|
15456
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
15457
|
+
columns: ["role_id"];
|
|
15458
|
+
isOneToOne: false;
|
|
15459
|
+
referencedRelation: "roles";
|
|
15460
|
+
referencedColumns: ["id"];
|
|
15461
|
+
}];
|
|
15462
|
+
};
|
|
15463
|
+
role_permissions: {
|
|
15464
|
+
Row: {
|
|
15465
|
+
can_edit: boolean;
|
|
15466
|
+
can_view: boolean;
|
|
15467
|
+
feature_id: string;
|
|
15468
|
+
id: string;
|
|
15469
|
+
module_id: string;
|
|
15470
|
+
role_id: string;
|
|
15471
|
+
updated_at: string;
|
|
15472
|
+
};
|
|
15473
|
+
Insert: {
|
|
15474
|
+
can_edit?: boolean;
|
|
15475
|
+
can_view?: boolean;
|
|
15476
|
+
feature_id?: string;
|
|
15477
|
+
id?: string;
|
|
15478
|
+
module_id: string;
|
|
15479
|
+
role_id: string;
|
|
15480
|
+
updated_at?: string;
|
|
15481
|
+
};
|
|
15482
|
+
Update: {
|
|
15483
|
+
can_edit?: boolean;
|
|
15484
|
+
can_view?: boolean;
|
|
15485
|
+
feature_id?: string;
|
|
15486
|
+
id?: string;
|
|
15487
|
+
module_id?: string;
|
|
15488
|
+
role_id?: string;
|
|
15489
|
+
updated_at?: string;
|
|
15490
|
+
};
|
|
15491
|
+
Relationships: [{
|
|
15492
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
15493
|
+
columns: ["role_id"];
|
|
15494
|
+
isOneToOne: false;
|
|
15495
|
+
referencedRelation: "roles";
|
|
15496
|
+
referencedColumns: ["id"];
|
|
15497
|
+
}];
|
|
15498
|
+
};
|
|
15499
|
+
roles: {
|
|
15500
|
+
Row: {
|
|
15501
|
+
created_at: string;
|
|
15502
|
+
id: string;
|
|
15503
|
+
is_protected: boolean;
|
|
15504
|
+
key: string;
|
|
15505
|
+
name: string;
|
|
15506
|
+
updated_at: string;
|
|
15507
|
+
};
|
|
15508
|
+
Insert: {
|
|
15509
|
+
created_at?: string;
|
|
15510
|
+
id?: string;
|
|
15511
|
+
is_protected?: boolean;
|
|
15512
|
+
key: string;
|
|
15513
|
+
name: string;
|
|
15514
|
+
updated_at?: string;
|
|
15515
|
+
};
|
|
15516
|
+
Update: {
|
|
15517
|
+
created_at?: string;
|
|
15518
|
+
id?: string;
|
|
15519
|
+
is_protected?: boolean;
|
|
15520
|
+
key?: string;
|
|
15521
|
+
name?: string;
|
|
15522
|
+
updated_at?: string;
|
|
15523
|
+
};
|
|
15524
|
+
Relationships: [];
|
|
15525
|
+
};
|
|
14035
15526
|
rooms: {
|
|
14036
15527
|
Row: {
|
|
14037
15528
|
capacity: number;
|
|
@@ -14375,6 +15866,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
14375
15866
|
type: string;
|
|
14376
15867
|
updated_at: string;
|
|
14377
15868
|
vereist_medewerker: boolean;
|
|
15869
|
+
werkplek: string | null;
|
|
14378
15870
|
};
|
|
14379
15871
|
Insert: {
|
|
14380
15872
|
actief?: boolean;
|
|
@@ -14388,6 +15880,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
14388
15880
|
type?: string;
|
|
14389
15881
|
updated_at?: string;
|
|
14390
15882
|
vereist_medewerker?: boolean;
|
|
15883
|
+
werkplek?: string | null;
|
|
14391
15884
|
};
|
|
14392
15885
|
Update: {
|
|
14393
15886
|
actief?: boolean;
|
|
@@ -14401,9 +15894,46 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
14401
15894
|
type?: string;
|
|
14402
15895
|
updated_at?: string;
|
|
14403
15896
|
vereist_medewerker?: boolean;
|
|
15897
|
+
werkplek?: string | null;
|
|
14404
15898
|
};
|
|
14405
15899
|
Relationships: [];
|
|
14406
15900
|
};
|
|
15901
|
+
sick_periods: {
|
|
15902
|
+
Row: {
|
|
15903
|
+
created_at: string;
|
|
15904
|
+
employee_id: string;
|
|
15905
|
+
end_date: string | null;
|
|
15906
|
+
id: string;
|
|
15907
|
+
notes: string | null;
|
|
15908
|
+
start_date: string;
|
|
15909
|
+
updated_at: string;
|
|
15910
|
+
};
|
|
15911
|
+
Insert: {
|
|
15912
|
+
created_at?: string;
|
|
15913
|
+
employee_id: string;
|
|
15914
|
+
end_date?: string | null;
|
|
15915
|
+
id?: string;
|
|
15916
|
+
notes?: string | null;
|
|
15917
|
+
start_date: string;
|
|
15918
|
+
updated_at?: string;
|
|
15919
|
+
};
|
|
15920
|
+
Update: {
|
|
15921
|
+
created_at?: string;
|
|
15922
|
+
employee_id?: string;
|
|
15923
|
+
end_date?: string | null;
|
|
15924
|
+
id?: string;
|
|
15925
|
+
notes?: string | null;
|
|
15926
|
+
start_date?: string;
|
|
15927
|
+
updated_at?: string;
|
|
15928
|
+
};
|
|
15929
|
+
Relationships: [{
|
|
15930
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
15931
|
+
columns: ["employee_id"];
|
|
15932
|
+
isOneToOne: false;
|
|
15933
|
+
referencedRelation: "profiles";
|
|
15934
|
+
referencedColumns: ["id"];
|
|
15935
|
+
}];
|
|
15936
|
+
};
|
|
14407
15937
|
sidebar_config: {
|
|
14408
15938
|
Row: {
|
|
14409
15939
|
id: string;
|
|
@@ -14417,7 +15947,46 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
14417
15947
|
};
|
|
14418
15948
|
Update: {
|
|
14419
15949
|
id?: string;
|
|
14420
|
-
module_order?: string[];
|
|
15950
|
+
module_order?: string[];
|
|
15951
|
+
updated_at?: string;
|
|
15952
|
+
};
|
|
15953
|
+
Relationships: [];
|
|
15954
|
+
};
|
|
15955
|
+
stock_consumption_alerts: {
|
|
15956
|
+
Row: {
|
|
15957
|
+
alert_type: string;
|
|
15958
|
+
created_at: string;
|
|
15959
|
+
id: string;
|
|
15960
|
+
mutation_log_id: string | null;
|
|
15961
|
+
order_id: string | null;
|
|
15962
|
+
order_item_id: string | null;
|
|
15963
|
+
qty: number;
|
|
15964
|
+
reason: string | null;
|
|
15965
|
+
resolved_at: string | null;
|
|
15966
|
+
updated_at: string;
|
|
15967
|
+
};
|
|
15968
|
+
Insert: {
|
|
15969
|
+
alert_type: string;
|
|
15970
|
+
created_at?: string;
|
|
15971
|
+
id?: string;
|
|
15972
|
+
mutation_log_id?: string | null;
|
|
15973
|
+
order_id?: string | null;
|
|
15974
|
+
order_item_id?: string | null;
|
|
15975
|
+
qty?: number;
|
|
15976
|
+
reason?: string | null;
|
|
15977
|
+
resolved_at?: string | null;
|
|
15978
|
+
updated_at?: string;
|
|
15979
|
+
};
|
|
15980
|
+
Update: {
|
|
15981
|
+
alert_type?: string;
|
|
15982
|
+
created_at?: string;
|
|
15983
|
+
id?: string;
|
|
15984
|
+
mutation_log_id?: string | null;
|
|
15985
|
+
order_id?: string | null;
|
|
15986
|
+
order_item_id?: string | null;
|
|
15987
|
+
qty?: number;
|
|
15988
|
+
reason?: string | null;
|
|
15989
|
+
resolved_at?: string | null;
|
|
14421
15990
|
updated_at?: string;
|
|
14422
15991
|
};
|
|
14423
15992
|
Relationships: [];
|
|
@@ -14701,6 +16270,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
14701
16270
|
};
|
|
14702
16271
|
Relationships: [];
|
|
14703
16272
|
};
|
|
16273
|
+
time_compensation_entries: {
|
|
16274
|
+
Row: {
|
|
16275
|
+
created_at: string;
|
|
16276
|
+
employee_id: string;
|
|
16277
|
+
entry_date: string;
|
|
16278
|
+
id: string;
|
|
16279
|
+
km: number;
|
|
16280
|
+
meal_allowance: number;
|
|
16281
|
+
notes: string | null;
|
|
16282
|
+
standby_evening: number;
|
|
16283
|
+
standby_weekend: number;
|
|
16284
|
+
tvt_change: number;
|
|
16285
|
+
updated_at: string;
|
|
16286
|
+
};
|
|
16287
|
+
Insert: {
|
|
16288
|
+
created_at?: string;
|
|
16289
|
+
employee_id: string;
|
|
16290
|
+
entry_date: string;
|
|
16291
|
+
id?: string;
|
|
16292
|
+
km?: number;
|
|
16293
|
+
meal_allowance?: number;
|
|
16294
|
+
notes?: string | null;
|
|
16295
|
+
standby_evening?: number;
|
|
16296
|
+
standby_weekend?: number;
|
|
16297
|
+
tvt_change?: number;
|
|
16298
|
+
updated_at?: string;
|
|
16299
|
+
};
|
|
16300
|
+
Update: {
|
|
16301
|
+
created_at?: string;
|
|
16302
|
+
employee_id?: string;
|
|
16303
|
+
entry_date?: string;
|
|
16304
|
+
id?: string;
|
|
16305
|
+
km?: number;
|
|
16306
|
+
meal_allowance?: number;
|
|
16307
|
+
notes?: string | null;
|
|
16308
|
+
standby_evening?: number;
|
|
16309
|
+
standby_weekend?: number;
|
|
16310
|
+
tvt_change?: number;
|
|
16311
|
+
updated_at?: string;
|
|
16312
|
+
};
|
|
16313
|
+
Relationships: [{
|
|
16314
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
16315
|
+
columns: ["employee_id"];
|
|
16316
|
+
isOneToOne: false;
|
|
16317
|
+
referencedRelation: "profiles";
|
|
16318
|
+
referencedColumns: ["id"];
|
|
16319
|
+
}];
|
|
16320
|
+
};
|
|
14704
16321
|
time_entries: {
|
|
14705
16322
|
Row: {
|
|
14706
16323
|
created_at: string;
|
|
@@ -14735,65 +16352,170 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
14735
16352
|
undertime?: number;
|
|
14736
16353
|
updated_at?: string;
|
|
14737
16354
|
};
|
|
16355
|
+
Relationships: [];
|
|
16356
|
+
};
|
|
16357
|
+
time_log_week_approvals: {
|
|
16358
|
+
Row: {
|
|
16359
|
+
approved_at: string | null;
|
|
16360
|
+
approved_by: string | null;
|
|
16361
|
+
created_at: string;
|
|
16362
|
+
employee_id: string;
|
|
16363
|
+
id: string;
|
|
16364
|
+
locked: boolean;
|
|
16365
|
+
notes: string | null;
|
|
16366
|
+
status: string;
|
|
16367
|
+
submitted_at: string | null;
|
|
16368
|
+
updated_at: string;
|
|
16369
|
+
week_start: string;
|
|
16370
|
+
};
|
|
16371
|
+
Insert: {
|
|
16372
|
+
approved_at?: string | null;
|
|
16373
|
+
approved_by?: string | null;
|
|
16374
|
+
created_at?: string;
|
|
16375
|
+
employee_id: string;
|
|
16376
|
+
id?: string;
|
|
16377
|
+
locked?: boolean;
|
|
16378
|
+
notes?: string | null;
|
|
16379
|
+
status?: string;
|
|
16380
|
+
submitted_at?: string | null;
|
|
16381
|
+
updated_at?: string;
|
|
16382
|
+
week_start: string;
|
|
16383
|
+
};
|
|
16384
|
+
Update: {
|
|
16385
|
+
approved_at?: string | null;
|
|
16386
|
+
approved_by?: string | null;
|
|
16387
|
+
created_at?: string;
|
|
16388
|
+
employee_id?: string;
|
|
16389
|
+
id?: string;
|
|
16390
|
+
locked?: boolean;
|
|
16391
|
+
notes?: string | null;
|
|
16392
|
+
status?: string;
|
|
16393
|
+
submitted_at?: string | null;
|
|
16394
|
+
updated_at?: string;
|
|
16395
|
+
week_start?: string;
|
|
16396
|
+
};
|
|
14738
16397
|
Relationships: [{
|
|
14739
|
-
foreignKeyName: "
|
|
16398
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
14740
16399
|
columns: ["employee_id"];
|
|
14741
16400
|
isOneToOne: false;
|
|
14742
|
-
referencedRelation: "
|
|
16401
|
+
referencedRelation: "profiles";
|
|
14743
16402
|
referencedColumns: ["id"];
|
|
14744
16403
|
}];
|
|
14745
16404
|
};
|
|
14746
16405
|
time_logs: {
|
|
14747
16406
|
Row: {
|
|
16407
|
+
auto_stop_reason: string | null;
|
|
16408
|
+
auto_stopped: boolean;
|
|
14748
16409
|
created_at: string;
|
|
16410
|
+
current_latitude: number | null;
|
|
16411
|
+
current_longitude: number | null;
|
|
16412
|
+
current_position_updated_at: string | null;
|
|
14749
16413
|
employee_id: string;
|
|
16414
|
+
end_latitude: number | null;
|
|
16415
|
+
end_longitude: number | null;
|
|
14750
16416
|
end_time: string | null;
|
|
16417
|
+
eta_distance_km: number | null;
|
|
16418
|
+
eta_minutes: number | null;
|
|
16419
|
+
eta_updated_at: string | null;
|
|
16420
|
+
hour_category: string | null;
|
|
14751
16421
|
id: string;
|
|
16422
|
+
last_reminder_at: string | null;
|
|
14752
16423
|
notes: string | null;
|
|
14753
16424
|
overtime_hours: number;
|
|
14754
16425
|
overtime_type: string | null;
|
|
14755
16426
|
regular_hours: number;
|
|
16427
|
+
reminder_count: number;
|
|
16428
|
+
requires_review: boolean;
|
|
16429
|
+
start_latitude: number | null;
|
|
16430
|
+
start_longitude: number | null;
|
|
14756
16431
|
start_time: string;
|
|
14757
16432
|
travel_cost: number | null;
|
|
14758
16433
|
travel_distance_km: number | null;
|
|
16434
|
+
travel_duration_min: number | null;
|
|
16435
|
+
travel_time_minutes: number | null;
|
|
14759
16436
|
type: string;
|
|
14760
16437
|
updated_at: string;
|
|
16438
|
+
work_order_id: string | null;
|
|
14761
16439
|
};
|
|
14762
16440
|
Insert: {
|
|
16441
|
+
auto_stop_reason?: string | null;
|
|
16442
|
+
auto_stopped?: boolean;
|
|
14763
16443
|
created_at?: string;
|
|
16444
|
+
current_latitude?: number | null;
|
|
16445
|
+
current_longitude?: number | null;
|
|
16446
|
+
current_position_updated_at?: string | null;
|
|
14764
16447
|
employee_id: string;
|
|
16448
|
+
end_latitude?: number | null;
|
|
16449
|
+
end_longitude?: number | null;
|
|
14765
16450
|
end_time?: string | null;
|
|
16451
|
+
eta_distance_km?: number | null;
|
|
16452
|
+
eta_minutes?: number | null;
|
|
16453
|
+
eta_updated_at?: string | null;
|
|
16454
|
+
hour_category?: string | null;
|
|
14766
16455
|
id?: string;
|
|
16456
|
+
last_reminder_at?: string | null;
|
|
14767
16457
|
notes?: string | null;
|
|
14768
16458
|
overtime_hours?: number;
|
|
14769
16459
|
overtime_type?: string | null;
|
|
14770
16460
|
regular_hours?: number;
|
|
16461
|
+
reminder_count?: number;
|
|
16462
|
+
requires_review?: boolean;
|
|
16463
|
+
start_latitude?: number | null;
|
|
16464
|
+
start_longitude?: number | null;
|
|
14771
16465
|
start_time?: string;
|
|
14772
16466
|
travel_cost?: number | null;
|
|
14773
16467
|
travel_distance_km?: number | null;
|
|
16468
|
+
travel_duration_min?: number | null;
|
|
16469
|
+
travel_time_minutes?: number | null;
|
|
14774
16470
|
type: string;
|
|
14775
16471
|
updated_at?: string;
|
|
16472
|
+
work_order_id?: string | null;
|
|
14776
16473
|
};
|
|
14777
16474
|
Update: {
|
|
16475
|
+
auto_stop_reason?: string | null;
|
|
16476
|
+
auto_stopped?: boolean;
|
|
14778
16477
|
created_at?: string;
|
|
16478
|
+
current_latitude?: number | null;
|
|
16479
|
+
current_longitude?: number | null;
|
|
16480
|
+
current_position_updated_at?: string | null;
|
|
14779
16481
|
employee_id?: string;
|
|
16482
|
+
end_latitude?: number | null;
|
|
16483
|
+
end_longitude?: number | null;
|
|
14780
16484
|
end_time?: string | null;
|
|
16485
|
+
eta_distance_km?: number | null;
|
|
16486
|
+
eta_minutes?: number | null;
|
|
16487
|
+
eta_updated_at?: string | null;
|
|
16488
|
+
hour_category?: string | null;
|
|
14781
16489
|
id?: string;
|
|
16490
|
+
last_reminder_at?: string | null;
|
|
14782
16491
|
notes?: string | null;
|
|
14783
16492
|
overtime_hours?: number;
|
|
14784
16493
|
overtime_type?: string | null;
|
|
14785
16494
|
regular_hours?: number;
|
|
16495
|
+
reminder_count?: number;
|
|
16496
|
+
requires_review?: boolean;
|
|
16497
|
+
start_latitude?: number | null;
|
|
16498
|
+
start_longitude?: number | null;
|
|
14786
16499
|
start_time?: string;
|
|
14787
16500
|
travel_cost?: number | null;
|
|
14788
16501
|
travel_distance_km?: number | null;
|
|
16502
|
+
travel_duration_min?: number | null;
|
|
16503
|
+
travel_time_minutes?: number | null;
|
|
14789
16504
|
type?: string;
|
|
14790
16505
|
updated_at?: string;
|
|
16506
|
+
work_order_id?: string | null;
|
|
14791
16507
|
};
|
|
14792
16508
|
Relationships: [{
|
|
14793
16509
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
14794
16510
|
columns: ["employee_id"];
|
|
14795
16511
|
isOneToOne: false;
|
|
14796
|
-
referencedRelation: "
|
|
16512
|
+
referencedRelation: "profiles";
|
|
16513
|
+
referencedColumns: ["id"];
|
|
16514
|
+
}, {
|
|
16515
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
16516
|
+
columns: ["work_order_id"];
|
|
16517
|
+
isOneToOne: false;
|
|
16518
|
+
referencedRelation: "work_orders";
|
|
14797
16519
|
referencedColumns: ["id"];
|
|
14798
16520
|
}];
|
|
14799
16521
|
};
|
|
@@ -14832,7 +16554,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
14832
16554
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
14833
16555
|
columns: ["employee_id"];
|
|
14834
16556
|
isOneToOne: false;
|
|
14835
|
-
referencedRelation: "
|
|
16557
|
+
referencedRelation: "profiles";
|
|
14836
16558
|
referencedColumns: ["id"];
|
|
14837
16559
|
}];
|
|
14838
16560
|
};
|
|
@@ -15081,12 +16803,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15081
16803
|
company_name: string | null;
|
|
15082
16804
|
connected_at: string | null;
|
|
15083
16805
|
created_at: string;
|
|
16806
|
+
disconnected_at: string | null;
|
|
15084
16807
|
environment: string;
|
|
15085
16808
|
id: string;
|
|
16809
|
+
initial_sync_completed_at: string | null;
|
|
16810
|
+
initial_sync_started_at: string | null;
|
|
15086
16811
|
is_active: boolean;
|
|
15087
16812
|
label: string | null;
|
|
15088
16813
|
office_code: string | null;
|
|
15089
16814
|
redirect_uri: string | null;
|
|
16815
|
+
superseded_at: string | null;
|
|
15090
16816
|
updated_at: string;
|
|
15091
16817
|
user_id: string;
|
|
15092
16818
|
};
|
|
@@ -15097,12 +16823,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15097
16823
|
company_name?: string | null;
|
|
15098
16824
|
connected_at?: string | null;
|
|
15099
16825
|
created_at?: string;
|
|
16826
|
+
disconnected_at?: string | null;
|
|
15100
16827
|
environment: string;
|
|
15101
16828
|
id?: string;
|
|
16829
|
+
initial_sync_completed_at?: string | null;
|
|
16830
|
+
initial_sync_started_at?: string | null;
|
|
15102
16831
|
is_active?: boolean;
|
|
15103
16832
|
label?: string | null;
|
|
15104
16833
|
office_code?: string | null;
|
|
15105
16834
|
redirect_uri?: string | null;
|
|
16835
|
+
superseded_at?: string | null;
|
|
15106
16836
|
updated_at?: string;
|
|
15107
16837
|
user_id: string;
|
|
15108
16838
|
};
|
|
@@ -15113,12 +16843,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15113
16843
|
company_name?: string | null;
|
|
15114
16844
|
connected_at?: string | null;
|
|
15115
16845
|
created_at?: string;
|
|
16846
|
+
disconnected_at?: string | null;
|
|
15116
16847
|
environment?: string;
|
|
15117
16848
|
id?: string;
|
|
16849
|
+
initial_sync_completed_at?: string | null;
|
|
16850
|
+
initial_sync_started_at?: string | null;
|
|
15118
16851
|
is_active?: boolean;
|
|
15119
16852
|
label?: string | null;
|
|
15120
16853
|
office_code?: string | null;
|
|
15121
16854
|
redirect_uri?: string | null;
|
|
16855
|
+
superseded_at?: string | null;
|
|
15122
16856
|
updated_at?: string;
|
|
15123
16857
|
user_id?: string;
|
|
15124
16858
|
};
|
|
@@ -15142,9 +16876,43 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15142
16876
|
};
|
|
15143
16877
|
Relationships: [];
|
|
15144
16878
|
};
|
|
16879
|
+
twinfield_cron_locks: {
|
|
16880
|
+
Row: {
|
|
16881
|
+
created_at: string;
|
|
16882
|
+
heartbeat_at: string;
|
|
16883
|
+
job_name: string;
|
|
16884
|
+
last_error: string | null;
|
|
16885
|
+
last_finished_at: string | null;
|
|
16886
|
+
locked_at: string;
|
|
16887
|
+
run_id: string;
|
|
16888
|
+
updated_at: string;
|
|
16889
|
+
};
|
|
16890
|
+
Insert: {
|
|
16891
|
+
created_at?: string;
|
|
16892
|
+
heartbeat_at?: string;
|
|
16893
|
+
job_name: string;
|
|
16894
|
+
last_error?: string | null;
|
|
16895
|
+
last_finished_at?: string | null;
|
|
16896
|
+
locked_at?: string;
|
|
16897
|
+
run_id?: string;
|
|
16898
|
+
updated_at?: string;
|
|
16899
|
+
};
|
|
16900
|
+
Update: {
|
|
16901
|
+
created_at?: string;
|
|
16902
|
+
heartbeat_at?: string;
|
|
16903
|
+
job_name?: string;
|
|
16904
|
+
last_error?: string | null;
|
|
16905
|
+
last_finished_at?: string | null;
|
|
16906
|
+
locked_at?: string;
|
|
16907
|
+
run_id?: string;
|
|
16908
|
+
updated_at?: string;
|
|
16909
|
+
};
|
|
16910
|
+
Relationships: [];
|
|
16911
|
+
};
|
|
15145
16912
|
twinfield_customers: {
|
|
15146
16913
|
Row: {
|
|
15147
16914
|
address: string | null;
|
|
16915
|
+
administration_code: string;
|
|
15148
16916
|
city: string | null;
|
|
15149
16917
|
country: string | null;
|
|
15150
16918
|
created_at: string;
|
|
@@ -15164,6 +16932,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15164
16932
|
};
|
|
15165
16933
|
Insert: {
|
|
15166
16934
|
address?: string | null;
|
|
16935
|
+
administration_code?: string;
|
|
15167
16936
|
city?: string | null;
|
|
15168
16937
|
country?: string | null;
|
|
15169
16938
|
created_at?: string;
|
|
@@ -15183,6 +16952,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15183
16952
|
};
|
|
15184
16953
|
Update: {
|
|
15185
16954
|
address?: string | null;
|
|
16955
|
+
administration_code?: string;
|
|
15186
16956
|
city?: string | null;
|
|
15187
16957
|
country?: string | null;
|
|
15188
16958
|
created_at?: string;
|
|
@@ -15396,6 +17166,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15396
17166
|
};
|
|
15397
17167
|
twinfield_invoice_settings: {
|
|
15398
17168
|
Row: {
|
|
17169
|
+
administration_code: string | null;
|
|
17170
|
+
auto_invoice_enabled: boolean;
|
|
17171
|
+
auto_invoice_start_date: string | null;
|
|
17172
|
+
auto_invoice_trigger_statuses: string[];
|
|
15399
17173
|
created_at: string;
|
|
15400
17174
|
debtor_gl_account: string;
|
|
15401
17175
|
default_credit_invoice_type: string | null;
|
|
@@ -15408,14 +17182,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15408
17182
|
invoice_enabled_fo: boolean;
|
|
15409
17183
|
invoice_enabled_ho: boolean;
|
|
15410
17184
|
invoice_enabled_mo: boolean;
|
|
17185
|
+
needs_review: boolean;
|
|
15411
17186
|
payment_gl_account: string;
|
|
15412
17187
|
payment_journal_code: string;
|
|
17188
|
+
settings_confirmed_at: string | null;
|
|
15413
17189
|
updated_at: string;
|
|
15414
17190
|
user_id: string;
|
|
15415
17191
|
vat_code_eu_reverse: string | null;
|
|
15416
17192
|
vat_code_export: string | null;
|
|
15417
17193
|
};
|
|
15418
17194
|
Insert: {
|
|
17195
|
+
administration_code?: string | null;
|
|
17196
|
+
auto_invoice_enabled?: boolean;
|
|
17197
|
+
auto_invoice_start_date?: string | null;
|
|
17198
|
+
auto_invoice_trigger_statuses?: string[];
|
|
15419
17199
|
created_at?: string;
|
|
15420
17200
|
debtor_gl_account?: string;
|
|
15421
17201
|
default_credit_invoice_type?: string | null;
|
|
@@ -15428,14 +17208,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15428
17208
|
invoice_enabled_fo?: boolean;
|
|
15429
17209
|
invoice_enabled_ho?: boolean;
|
|
15430
17210
|
invoice_enabled_mo?: boolean;
|
|
17211
|
+
needs_review?: boolean;
|
|
15431
17212
|
payment_gl_account?: string;
|
|
15432
17213
|
payment_journal_code?: string;
|
|
17214
|
+
settings_confirmed_at?: string | null;
|
|
15433
17215
|
updated_at?: string;
|
|
15434
17216
|
user_id: string;
|
|
15435
17217
|
vat_code_eu_reverse?: string | null;
|
|
15436
17218
|
vat_code_export?: string | null;
|
|
15437
17219
|
};
|
|
15438
17220
|
Update: {
|
|
17221
|
+
administration_code?: string | null;
|
|
17222
|
+
auto_invoice_enabled?: boolean;
|
|
17223
|
+
auto_invoice_start_date?: string | null;
|
|
17224
|
+
auto_invoice_trigger_statuses?: string[];
|
|
15439
17225
|
created_at?: string;
|
|
15440
17226
|
debtor_gl_account?: string;
|
|
15441
17227
|
default_credit_invoice_type?: string | null;
|
|
@@ -15448,8 +17234,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15448
17234
|
invoice_enabled_fo?: boolean;
|
|
15449
17235
|
invoice_enabled_ho?: boolean;
|
|
15450
17236
|
invoice_enabled_mo?: boolean;
|
|
17237
|
+
needs_review?: boolean;
|
|
15451
17238
|
payment_gl_account?: string;
|
|
15452
17239
|
payment_journal_code?: string;
|
|
17240
|
+
settings_confirmed_at?: string | null;
|
|
15453
17241
|
updated_at?: string;
|
|
15454
17242
|
user_id?: string;
|
|
15455
17243
|
vat_code_eu_reverse?: string | null;
|
|
@@ -15736,6 +17524,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15736
17524
|
twinfield_push_queue: {
|
|
15737
17525
|
Row: {
|
|
15738
17526
|
action: string;
|
|
17527
|
+
attempt_started_at: string | null;
|
|
15739
17528
|
attempts: number;
|
|
15740
17529
|
connection_id: string | null;
|
|
15741
17530
|
created_at: string;
|
|
@@ -15752,6 +17541,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15752
17541
|
};
|
|
15753
17542
|
Insert: {
|
|
15754
17543
|
action?: string;
|
|
17544
|
+
attempt_started_at?: string | null;
|
|
15755
17545
|
attempts?: number;
|
|
15756
17546
|
connection_id?: string | null;
|
|
15757
17547
|
created_at?: string;
|
|
@@ -15768,6 +17558,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15768
17558
|
};
|
|
15769
17559
|
Update: {
|
|
15770
17560
|
action?: string;
|
|
17561
|
+
attempt_started_at?: string | null;
|
|
15771
17562
|
attempts?: number;
|
|
15772
17563
|
connection_id?: string | null;
|
|
15773
17564
|
created_at?: string;
|
|
@@ -15965,13 +17756,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
15965
17756
|
workday_end?: string | null;
|
|
15966
17757
|
workday_start?: string | null;
|
|
15967
17758
|
};
|
|
15968
|
-
Relationships: [
|
|
15969
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
15970
|
-
columns: ["monteur_id"];
|
|
15971
|
-
isOneToOne: true;
|
|
15972
|
-
referencedRelation: "monteurs";
|
|
15973
|
-
referencedColumns: ["id"];
|
|
15974
|
-
}];
|
|
17759
|
+
Relationships: [];
|
|
15975
17760
|
};
|
|
15976
17761
|
uren_entries: {
|
|
15977
17762
|
Row: {
|
|
@@ -16017,12 +17802,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
16017
17802
|
werkbon_id?: string | null;
|
|
16018
17803
|
};
|
|
16019
17804
|
Relationships: [{
|
|
16020
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16021
|
-
columns: ["monteur_id"];
|
|
16022
|
-
isOneToOne: false;
|
|
16023
|
-
referencedRelation: "monteurs";
|
|
16024
|
-
referencedColumns: ["id"];
|
|
16025
|
-
}, {
|
|
16026
17805
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16027
17806
|
columns: ["werkbon_id"];
|
|
16028
17807
|
isOneToOne: false;
|
|
@@ -16063,114 +17842,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
16063
17842
|
};
|
|
16064
17843
|
Relationships: [];
|
|
16065
17844
|
};
|
|
16066
|
-
uren_facturen: {
|
|
16067
|
-
Row: {
|
|
16068
|
-
created_at: string;
|
|
16069
|
-
created_by: string | null;
|
|
16070
|
-
customer_id: string | null;
|
|
16071
|
-
customer_name: string | null;
|
|
16072
|
-
id: string;
|
|
16073
|
-
invoice_number: string | null;
|
|
16074
|
-
note: string | null;
|
|
16075
|
-
status: string;
|
|
16076
|
-
total_excl_cents: number;
|
|
16077
|
-
total_incl_cents: number;
|
|
16078
|
-
updated_at: string;
|
|
16079
|
-
vat_cents: number;
|
|
16080
|
-
vat_percentage: number;
|
|
16081
|
-
werkbon_id: string | null;
|
|
16082
|
-
};
|
|
16083
|
-
Insert: {
|
|
16084
|
-
created_at?: string;
|
|
16085
|
-
created_by?: string | null;
|
|
16086
|
-
customer_id?: string | null;
|
|
16087
|
-
customer_name?: string | null;
|
|
16088
|
-
id?: string;
|
|
16089
|
-
invoice_number?: string | null;
|
|
16090
|
-
note?: string | null;
|
|
16091
|
-
status?: string;
|
|
16092
|
-
total_excl_cents?: number;
|
|
16093
|
-
total_incl_cents?: number;
|
|
16094
|
-
updated_at?: string;
|
|
16095
|
-
vat_cents?: number;
|
|
16096
|
-
vat_percentage?: number;
|
|
16097
|
-
werkbon_id?: string | null;
|
|
16098
|
-
};
|
|
16099
|
-
Update: {
|
|
16100
|
-
created_at?: string;
|
|
16101
|
-
created_by?: string | null;
|
|
16102
|
-
customer_id?: string | null;
|
|
16103
|
-
customer_name?: string | null;
|
|
16104
|
-
id?: string;
|
|
16105
|
-
invoice_number?: string | null;
|
|
16106
|
-
note?: string | null;
|
|
16107
|
-
status?: string;
|
|
16108
|
-
total_excl_cents?: number;
|
|
16109
|
-
total_incl_cents?: number;
|
|
16110
|
-
updated_at?: string;
|
|
16111
|
-
vat_cents?: number;
|
|
16112
|
-
vat_percentage?: number;
|
|
16113
|
-
werkbon_id?: string | null;
|
|
16114
|
-
};
|
|
16115
|
-
Relationships: [{
|
|
16116
|
-
foreignKeyName: "uren_facturen_customer_id_fkey";
|
|
16117
|
-
columns: ["customer_id"];
|
|
16118
|
-
isOneToOne: false;
|
|
16119
|
-
referencedRelation: "itk_customers";
|
|
16120
|
-
referencedColumns: ["id"];
|
|
16121
|
-
}, {
|
|
16122
|
-
foreignKeyName: "uren_facturen_werkbon_id_fkey";
|
|
16123
|
-
columns: ["werkbon_id"];
|
|
16124
|
-
isOneToOne: true;
|
|
16125
|
-
referencedRelation: "werkbonnen";
|
|
16126
|
-
referencedColumns: ["id"];
|
|
16127
|
-
}];
|
|
16128
|
-
};
|
|
16129
|
-
uren_factuur_regels: {
|
|
16130
|
-
Row: {
|
|
16131
|
-
created_at: string;
|
|
16132
|
-
description: string;
|
|
16133
|
-
factuur_id: string;
|
|
16134
|
-
id: string;
|
|
16135
|
-
kind: string | null;
|
|
16136
|
-
quantity: number;
|
|
16137
|
-
sort_order: number;
|
|
16138
|
-
total_cents: number;
|
|
16139
|
-
unit: string;
|
|
16140
|
-
unit_price_cents: number;
|
|
16141
|
-
};
|
|
16142
|
-
Insert: {
|
|
16143
|
-
created_at?: string;
|
|
16144
|
-
description: string;
|
|
16145
|
-
factuur_id: string;
|
|
16146
|
-
id?: string;
|
|
16147
|
-
kind?: string | null;
|
|
16148
|
-
quantity?: number;
|
|
16149
|
-
sort_order?: number;
|
|
16150
|
-
total_cents?: number;
|
|
16151
|
-
unit?: string;
|
|
16152
|
-
unit_price_cents?: number;
|
|
16153
|
-
};
|
|
16154
|
-
Update: {
|
|
16155
|
-
created_at?: string;
|
|
16156
|
-
description?: string;
|
|
16157
|
-
factuur_id?: string;
|
|
16158
|
-
id?: string;
|
|
16159
|
-
kind?: string | null;
|
|
16160
|
-
quantity?: number;
|
|
16161
|
-
sort_order?: number;
|
|
16162
|
-
total_cents?: number;
|
|
16163
|
-
unit?: string;
|
|
16164
|
-
unit_price_cents?: number;
|
|
16165
|
-
};
|
|
16166
|
-
Relationships: [{
|
|
16167
|
-
foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
|
|
16168
|
-
columns: ["factuur_id"];
|
|
16169
|
-
isOneToOne: false;
|
|
16170
|
-
referencedRelation: "uren_facturen";
|
|
16171
|
-
referencedColumns: ["id"];
|
|
16172
|
-
}];
|
|
16173
|
-
};
|
|
16174
17845
|
uren_offerte_regels: {
|
|
16175
17846
|
Row: {
|
|
16176
17847
|
created_at: string;
|
|
@@ -16490,17 +18161,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
16490
18161
|
submitted_at?: string | null;
|
|
16491
18162
|
updated_at?: string;
|
|
16492
18163
|
};
|
|
16493
|
-
Relationships: [
|
|
16494
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
16495
|
-
columns: ["monteur_id"];
|
|
16496
|
-
isOneToOne: false;
|
|
16497
|
-
referencedRelation: "monteurs";
|
|
16498
|
-
referencedColumns: ["id"];
|
|
16499
|
-
}];
|
|
18164
|
+
Relationships: [];
|
|
16500
18165
|
};
|
|
16501
18166
|
user_module_permissions: {
|
|
16502
18167
|
Row: {
|
|
16503
18168
|
created_at: string;
|
|
18169
|
+
feature_id: string;
|
|
16504
18170
|
id: string;
|
|
16505
18171
|
module_id: string;
|
|
16506
18172
|
permission: string;
|
|
@@ -16509,6 +18175,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
16509
18175
|
};
|
|
16510
18176
|
Insert: {
|
|
16511
18177
|
created_at?: string;
|
|
18178
|
+
feature_id?: string;
|
|
16512
18179
|
id?: string;
|
|
16513
18180
|
module_id: string;
|
|
16514
18181
|
permission: string;
|
|
@@ -16517,6 +18184,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
16517
18184
|
};
|
|
16518
18185
|
Update: {
|
|
16519
18186
|
created_at?: string;
|
|
18187
|
+
feature_id?: string;
|
|
16520
18188
|
id?: string;
|
|
16521
18189
|
module_id?: string;
|
|
16522
18190
|
permission?: string;
|
|
@@ -16529,24 +18197,69 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
16529
18197
|
Row: {
|
|
16530
18198
|
created_at: string;
|
|
16531
18199
|
id: string;
|
|
16532
|
-
role: Database["public"]["Enums"]["app_role"];
|
|
16533
|
-
user_id: string;
|
|
18200
|
+
role: Database["public"]["Enums"]["app_role"];
|
|
18201
|
+
user_id: string;
|
|
18202
|
+
};
|
|
18203
|
+
Insert: {
|
|
18204
|
+
created_at?: string;
|
|
18205
|
+
id?: string;
|
|
18206
|
+
role: Database["public"]["Enums"]["app_role"];
|
|
18207
|
+
user_id: string;
|
|
18208
|
+
};
|
|
18209
|
+
Update: {
|
|
18210
|
+
created_at?: string;
|
|
18211
|
+
id?: string;
|
|
18212
|
+
role?: Database["public"]["Enums"]["app_role"];
|
|
18213
|
+
user_id?: string;
|
|
18214
|
+
};
|
|
18215
|
+
Relationships: [{
|
|
18216
|
+
foreignKeyName: "user_roles_user_id_fkey";
|
|
18217
|
+
columns: ["user_id"];
|
|
18218
|
+
isOneToOne: false;
|
|
18219
|
+
referencedRelation: "profiles";
|
|
18220
|
+
referencedColumns: ["id"];
|
|
18221
|
+
}];
|
|
18222
|
+
};
|
|
18223
|
+
van_inventories: {
|
|
18224
|
+
Row: {
|
|
18225
|
+
barcode: string | null;
|
|
18226
|
+
created_at: string;
|
|
18227
|
+
id: string;
|
|
18228
|
+
monteur_id: string | null;
|
|
18229
|
+
price_per_unit: number;
|
|
18230
|
+
product_name: string;
|
|
18231
|
+
quantity_current: number;
|
|
18232
|
+
quantity_min: number;
|
|
18233
|
+
unit: string;
|
|
18234
|
+
updated_at: string;
|
|
16534
18235
|
};
|
|
16535
18236
|
Insert: {
|
|
18237
|
+
barcode?: string | null;
|
|
16536
18238
|
created_at?: string;
|
|
16537
18239
|
id?: string;
|
|
16538
|
-
|
|
16539
|
-
|
|
18240
|
+
monteur_id?: string | null;
|
|
18241
|
+
price_per_unit?: number;
|
|
18242
|
+
product_name: string;
|
|
18243
|
+
quantity_current?: number;
|
|
18244
|
+
quantity_min?: number;
|
|
18245
|
+
unit?: string;
|
|
18246
|
+
updated_at?: string;
|
|
16540
18247
|
};
|
|
16541
18248
|
Update: {
|
|
18249
|
+
barcode?: string | null;
|
|
16542
18250
|
created_at?: string;
|
|
16543
18251
|
id?: string;
|
|
16544
|
-
|
|
16545
|
-
|
|
18252
|
+
monteur_id?: string | null;
|
|
18253
|
+
price_per_unit?: number;
|
|
18254
|
+
product_name?: string;
|
|
18255
|
+
quantity_current?: number;
|
|
18256
|
+
quantity_min?: number;
|
|
18257
|
+
unit?: string;
|
|
18258
|
+
updated_at?: string;
|
|
16546
18259
|
};
|
|
16547
18260
|
Relationships: [{
|
|
16548
|
-
foreignKeyName: "
|
|
16549
|
-
columns: ["
|
|
18261
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
18262
|
+
columns: ["monteur_id"];
|
|
16550
18263
|
isOneToOne: false;
|
|
16551
18264
|
referencedRelation: "profiles";
|
|
16552
18265
|
referencedColumns: ["id"];
|
|
@@ -17131,6 +18844,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17131
18844
|
werkbon_package_items: {
|
|
17132
18845
|
Row: {
|
|
17133
18846
|
article_number: string | null;
|
|
18847
|
+
artikel_id: string | null;
|
|
17134
18848
|
created_at: string;
|
|
17135
18849
|
gtin: string | null;
|
|
17136
18850
|
id: string;
|
|
@@ -17148,6 +18862,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17148
18862
|
};
|
|
17149
18863
|
Insert: {
|
|
17150
18864
|
article_number?: string | null;
|
|
18865
|
+
artikel_id?: string | null;
|
|
17151
18866
|
created_at?: string;
|
|
17152
18867
|
gtin?: string | null;
|
|
17153
18868
|
id?: string;
|
|
@@ -17165,6 +18880,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17165
18880
|
};
|
|
17166
18881
|
Update: {
|
|
17167
18882
|
article_number?: string | null;
|
|
18883
|
+
artikel_id?: string | null;
|
|
17168
18884
|
created_at?: string;
|
|
17169
18885
|
gtin?: string | null;
|
|
17170
18886
|
id?: string;
|
|
@@ -17181,6 +18897,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17181
18897
|
updated_at?: string;
|
|
17182
18898
|
};
|
|
17183
18899
|
Relationships: [{
|
|
18900
|
+
foreignKeyName: "werkbon_package_items_artikel_id_fkey";
|
|
18901
|
+
columns: ["artikel_id"];
|
|
18902
|
+
isOneToOne: false;
|
|
18903
|
+
referencedRelation: "artikelen_cache";
|
|
18904
|
+
referencedColumns: ["id"];
|
|
18905
|
+
}, {
|
|
17184
18906
|
foreignKeyName: "werkbon_package_items_package_id_fkey";
|
|
17185
18907
|
columns: ["package_id"];
|
|
17186
18908
|
isOneToOne: false;
|
|
@@ -17382,6 +19104,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17382
19104
|
scheduled_end_time: string | null;
|
|
17383
19105
|
scheduled_start_time: string | null;
|
|
17384
19106
|
sequence_number: number;
|
|
19107
|
+
signature_accepted_at: string | null;
|
|
19108
|
+
signature_by_user_id: string | null;
|
|
19109
|
+
signature_name: string | null;
|
|
17385
19110
|
source_email_meta: import("./types").Json | null;
|
|
17386
19111
|
source_mailbox_message_id: string | null;
|
|
17387
19112
|
source_pdf_path: string | null;
|
|
@@ -17417,6 +19142,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17417
19142
|
scheduled_end_time?: string | null;
|
|
17418
19143
|
scheduled_start_time?: string | null;
|
|
17419
19144
|
sequence_number: number;
|
|
19145
|
+
signature_accepted_at?: string | null;
|
|
19146
|
+
signature_by_user_id?: string | null;
|
|
19147
|
+
signature_name?: string | null;
|
|
17420
19148
|
source_email_meta?: import("./types").Json | null;
|
|
17421
19149
|
source_mailbox_message_id?: string | null;
|
|
17422
19150
|
source_pdf_path?: string | null;
|
|
@@ -17452,6 +19180,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17452
19180
|
scheduled_end_time?: string | null;
|
|
17453
19181
|
scheduled_start_time?: string | null;
|
|
17454
19182
|
sequence_number?: number;
|
|
19183
|
+
signature_accepted_at?: string | null;
|
|
19184
|
+
signature_by_user_id?: string | null;
|
|
19185
|
+
signature_name?: string | null;
|
|
17455
19186
|
source_email_meta?: import("./types").Json | null;
|
|
17456
19187
|
source_mailbox_message_id?: string | null;
|
|
17457
19188
|
source_pdf_path?: string | null;
|
|
@@ -17502,7 +19233,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17502
19233
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
17503
19234
|
columns: ["monteur_id"];
|
|
17504
19235
|
isOneToOne: false;
|
|
17505
|
-
referencedRelation: "
|
|
19236
|
+
referencedRelation: "profiles";
|
|
17506
19237
|
referencedColumns: ["id"];
|
|
17507
19238
|
}, {
|
|
17508
19239
|
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
@@ -17512,6 +19243,60 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17512
19243
|
referencedColumns: ["id"];
|
|
17513
19244
|
}];
|
|
17514
19245
|
};
|
|
19246
|
+
work_order_photos: {
|
|
19247
|
+
Row: {
|
|
19248
|
+
ai_caption: string | null;
|
|
19249
|
+
ai_categorized_at: string | null;
|
|
19250
|
+
ai_labels: import("./types").Json | null;
|
|
19251
|
+
caption: string | null;
|
|
19252
|
+
created_at: string;
|
|
19253
|
+
id: string;
|
|
19254
|
+
monteur_id: string | null;
|
|
19255
|
+
photo_type: string;
|
|
19256
|
+
storage_path: string;
|
|
19257
|
+
updated_at: string;
|
|
19258
|
+
work_order_id: string;
|
|
19259
|
+
};
|
|
19260
|
+
Insert: {
|
|
19261
|
+
ai_caption?: string | null;
|
|
19262
|
+
ai_categorized_at?: string | null;
|
|
19263
|
+
ai_labels?: import("./types").Json | null;
|
|
19264
|
+
caption?: string | null;
|
|
19265
|
+
created_at?: string;
|
|
19266
|
+
id?: string;
|
|
19267
|
+
monteur_id?: string | null;
|
|
19268
|
+
photo_type?: string;
|
|
19269
|
+
storage_path: string;
|
|
19270
|
+
updated_at?: string;
|
|
19271
|
+
work_order_id: string;
|
|
19272
|
+
};
|
|
19273
|
+
Update: {
|
|
19274
|
+
ai_caption?: string | null;
|
|
19275
|
+
ai_categorized_at?: string | null;
|
|
19276
|
+
ai_labels?: import("./types").Json | null;
|
|
19277
|
+
caption?: string | null;
|
|
19278
|
+
created_at?: string;
|
|
19279
|
+
id?: string;
|
|
19280
|
+
monteur_id?: string | null;
|
|
19281
|
+
photo_type?: string;
|
|
19282
|
+
storage_path?: string;
|
|
19283
|
+
updated_at?: string;
|
|
19284
|
+
work_order_id?: string;
|
|
19285
|
+
};
|
|
19286
|
+
Relationships: [{
|
|
19287
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
19288
|
+
columns: ["monteur_id"];
|
|
19289
|
+
isOneToOne: false;
|
|
19290
|
+
referencedRelation: "profiles";
|
|
19291
|
+
referencedColumns: ["id"];
|
|
19292
|
+
}, {
|
|
19293
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
19294
|
+
columns: ["work_order_id"];
|
|
19295
|
+
isOneToOne: false;
|
|
19296
|
+
referencedRelation: "work_orders";
|
|
19297
|
+
referencedColumns: ["id"];
|
|
19298
|
+
}];
|
|
19299
|
+
};
|
|
17515
19300
|
work_orders: {
|
|
17516
19301
|
Row: {
|
|
17517
19302
|
assigned_to: string | null;
|
|
@@ -17543,7 +19328,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17543
19328
|
scheduled_end_time: string | null;
|
|
17544
19329
|
scheduled_start_time: string | null;
|
|
17545
19330
|
status: string;
|
|
17546
|
-
tenant_id: string;
|
|
17547
19331
|
total_hours_worked: number | null;
|
|
17548
19332
|
total_price: number | null;
|
|
17549
19333
|
travel_time_minutes: number | null;
|
|
@@ -17581,7 +19365,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17581
19365
|
scheduled_end_time?: string | null;
|
|
17582
19366
|
scheduled_start_time?: string | null;
|
|
17583
19367
|
status?: string;
|
|
17584
|
-
tenant_id: string;
|
|
17585
19368
|
total_hours_worked?: number | null;
|
|
17586
19369
|
total_price?: number | null;
|
|
17587
19370
|
travel_time_minutes?: number | null;
|
|
@@ -17619,7 +19402,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17619
19402
|
scheduled_end_time?: string | null;
|
|
17620
19403
|
scheduled_start_time?: string | null;
|
|
17621
19404
|
status?: string;
|
|
17622
|
-
tenant_id?: string;
|
|
17623
19405
|
total_hours_worked?: number | null;
|
|
17624
19406
|
total_price?: number | null;
|
|
17625
19407
|
travel_time_minutes?: number | null;
|
|
@@ -17633,12 +19415,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17633
19415
|
isOneToOne: false;
|
|
17634
19416
|
referencedRelation: "work_orders";
|
|
17635
19417
|
referencedColumns: ["id"];
|
|
17636
|
-
}, {
|
|
17637
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
17638
|
-
columns: ["tenant_id"];
|
|
17639
|
-
isOneToOne: false;
|
|
17640
|
-
referencedRelation: "tenants";
|
|
17641
|
-
referencedColumns: ["id"];
|
|
17642
19418
|
}];
|
|
17643
19419
|
};
|
|
17644
19420
|
};
|
|
@@ -17923,6 +19699,114 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17923
19699
|
};
|
|
17924
19700
|
Relationships: [];
|
|
17925
19701
|
};
|
|
19702
|
+
uren_facturen: {
|
|
19703
|
+
Row: {
|
|
19704
|
+
created_at: string | null;
|
|
19705
|
+
created_by: string | null;
|
|
19706
|
+
customer_id: string | null;
|
|
19707
|
+
customer_name: string | null;
|
|
19708
|
+
id: string | null;
|
|
19709
|
+
invoice_number: string | null;
|
|
19710
|
+
note: string | null;
|
|
19711
|
+
status: string | null;
|
|
19712
|
+
total_excl_cents: number | null;
|
|
19713
|
+
total_incl_cents: number | null;
|
|
19714
|
+
updated_at: string | null;
|
|
19715
|
+
vat_cents: number | null;
|
|
19716
|
+
vat_percentage: number | null;
|
|
19717
|
+
werkbon_id: string | null;
|
|
19718
|
+
};
|
|
19719
|
+
Insert: {
|
|
19720
|
+
created_at?: string | null;
|
|
19721
|
+
created_by?: string | null;
|
|
19722
|
+
customer_id?: string | null;
|
|
19723
|
+
customer_name?: string | null;
|
|
19724
|
+
id?: string | null;
|
|
19725
|
+
invoice_number?: string | null;
|
|
19726
|
+
note?: string | null;
|
|
19727
|
+
status?: string | null;
|
|
19728
|
+
total_excl_cents?: number | null;
|
|
19729
|
+
total_incl_cents?: number | null;
|
|
19730
|
+
updated_at?: string | null;
|
|
19731
|
+
vat_cents?: number | null;
|
|
19732
|
+
vat_percentage?: number | null;
|
|
19733
|
+
werkbon_id?: never;
|
|
19734
|
+
};
|
|
19735
|
+
Update: {
|
|
19736
|
+
created_at?: string | null;
|
|
19737
|
+
created_by?: string | null;
|
|
19738
|
+
customer_id?: string | null;
|
|
19739
|
+
customer_name?: string | null;
|
|
19740
|
+
id?: string | null;
|
|
19741
|
+
invoice_number?: string | null;
|
|
19742
|
+
note?: string | null;
|
|
19743
|
+
status?: string | null;
|
|
19744
|
+
total_excl_cents?: number | null;
|
|
19745
|
+
total_incl_cents?: number | null;
|
|
19746
|
+
updated_at?: string | null;
|
|
19747
|
+
vat_cents?: number | null;
|
|
19748
|
+
vat_percentage?: number | null;
|
|
19749
|
+
werkbon_id?: never;
|
|
19750
|
+
};
|
|
19751
|
+
Relationships: [{
|
|
19752
|
+
foreignKeyName: "invoices_customer_id_fkey";
|
|
19753
|
+
columns: ["customer_id"];
|
|
19754
|
+
isOneToOne: false;
|
|
19755
|
+
referencedRelation: "itk_customers";
|
|
19756
|
+
referencedColumns: ["id"];
|
|
19757
|
+
}];
|
|
19758
|
+
};
|
|
19759
|
+
uren_factuur_regels: {
|
|
19760
|
+
Row: {
|
|
19761
|
+
created_at: string | null;
|
|
19762
|
+
description: string | null;
|
|
19763
|
+
factuur_id: string | null;
|
|
19764
|
+
id: string | null;
|
|
19765
|
+
kind: string | null;
|
|
19766
|
+
quantity: number | null;
|
|
19767
|
+
sort_order: number | null;
|
|
19768
|
+
total_cents: number | null;
|
|
19769
|
+
unit: string | null;
|
|
19770
|
+
unit_price_cents: number | null;
|
|
19771
|
+
};
|
|
19772
|
+
Insert: {
|
|
19773
|
+
created_at?: string | null;
|
|
19774
|
+
description?: string | null;
|
|
19775
|
+
factuur_id?: string | null;
|
|
19776
|
+
id?: string | null;
|
|
19777
|
+
kind?: string | null;
|
|
19778
|
+
quantity?: number | null;
|
|
19779
|
+
sort_order?: number | null;
|
|
19780
|
+
total_cents?: number | null;
|
|
19781
|
+
unit?: string | null;
|
|
19782
|
+
unit_price_cents?: number | null;
|
|
19783
|
+
};
|
|
19784
|
+
Update: {
|
|
19785
|
+
created_at?: string | null;
|
|
19786
|
+
description?: string | null;
|
|
19787
|
+
factuur_id?: string | null;
|
|
19788
|
+
id?: string | null;
|
|
19789
|
+
kind?: string | null;
|
|
19790
|
+
quantity?: number | null;
|
|
19791
|
+
sort_order?: number | null;
|
|
19792
|
+
total_cents?: number | null;
|
|
19793
|
+
unit?: string | null;
|
|
19794
|
+
unit_price_cents?: number | null;
|
|
19795
|
+
};
|
|
19796
|
+
Relationships: [{
|
|
19797
|
+
foreignKeyName: "invoice_items_invoice_id_fkey";
|
|
19798
|
+
columns: ["factuur_id"];
|
|
19799
|
+
isOneToOne: false;
|
|
19800
|
+
referencedRelation: "invoices";
|
|
19801
|
+
referencedColumns: ["id"];
|
|
19802
|
+
}, {
|
|
19803
|
+
foreignKeyName: "invoice_items_invoice_id_fkey";
|
|
19804
|
+
columns: ["factuur_id"];
|
|
19805
|
+
isOneToOne: false;
|
|
19806
|
+
referencedRelation: "uren_facturen";
|
|
19807
|
+
referencedColumns: ["id"];
|
|
19808
|
+
}];
|
|
19809
|
+
};
|
|
17926
19810
|
v_external_customers_exact: {
|
|
17927
19811
|
Row: {
|
|
17928
19812
|
account_number: string | null;
|
|
@@ -18241,6 +20125,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18241
20125
|
referencedColumns: ["id"];
|
|
18242
20126
|
}];
|
|
18243
20127
|
};
|
|
20128
|
+
v_werkbon_totalen: {
|
|
20129
|
+
Row: {
|
|
20130
|
+
packages_cents: number | null;
|
|
20131
|
+
packages_minutes: number | null;
|
|
20132
|
+
werkbon_id: string | null;
|
|
20133
|
+
};
|
|
20134
|
+
Relationships: [{
|
|
20135
|
+
foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
|
|
20136
|
+
columns: ["werkbon_id"];
|
|
20137
|
+
isOneToOne: false;
|
|
20138
|
+
referencedRelation: "werkbonnen";
|
|
20139
|
+
referencedColumns: ["id"];
|
|
20140
|
+
}];
|
|
20141
|
+
};
|
|
18244
20142
|
};
|
|
18245
20143
|
Functions: {
|
|
18246
20144
|
_floriday_schedule_job: {
|
|
@@ -18323,6 +20221,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18323
20221
|
};
|
|
18324
20222
|
Returns: undefined;
|
|
18325
20223
|
};
|
|
20224
|
+
approve_mailbox_order_proposal: {
|
|
20225
|
+
Args: {
|
|
20226
|
+
p_custom_fields: import("./types").Json;
|
|
20227
|
+
p_customer_id: string;
|
|
20228
|
+
p_delivery_date: string;
|
|
20229
|
+
p_field_values?: import("./types").Json;
|
|
20230
|
+
p_lines: import("./types").Json;
|
|
20231
|
+
p_notes: string;
|
|
20232
|
+
p_proposal_id: string;
|
|
20233
|
+
p_reviewed_by: string;
|
|
20234
|
+
};
|
|
20235
|
+
Returns: import("./types").Json;
|
|
20236
|
+
};
|
|
18326
20237
|
assign_cart_numbers: {
|
|
18327
20238
|
Args: {
|
|
18328
20239
|
p_carts: import("./types").Json;
|
|
@@ -18358,6 +20269,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18358
20269
|
processed_items: number;
|
|
18359
20270
|
}[];
|
|
18360
20271
|
};
|
|
20272
|
+
backfill_order_auto_invoice_queue: {
|
|
20273
|
+
Args: never;
|
|
20274
|
+
Returns: number;
|
|
20275
|
+
};
|
|
18361
20276
|
calculate_layer_stock: {
|
|
18362
20277
|
Args: {
|
|
18363
20278
|
p_product_id: string;
|
|
@@ -18370,6 +20285,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18370
20285
|
};
|
|
18371
20286
|
Returns: number;
|
|
18372
20287
|
};
|
|
20288
|
+
can_manage_hours: {
|
|
20289
|
+
Args: never;
|
|
20290
|
+
Returns: boolean;
|
|
20291
|
+
};
|
|
18373
20292
|
check_offer_product_available_stock: {
|
|
18374
20293
|
Args: {
|
|
18375
20294
|
p_campaign_product_id: string;
|
|
@@ -18407,6 +20326,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18407
20326
|
gebruiker_id: string | null;
|
|
18408
20327
|
gebruiker_naam: string;
|
|
18409
20328
|
gestart_op: string | null;
|
|
20329
|
+
herkomst: string | null;
|
|
18410
20330
|
id: string;
|
|
18411
20331
|
idempotentie_sleutel: string | null;
|
|
18412
20332
|
is_herprint: boolean;
|
|
@@ -18527,6 +20447,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18527
20447
|
gebruiker_id: string | null;
|
|
18528
20448
|
gebruiker_naam: string;
|
|
18529
20449
|
gestart_op: string | null;
|
|
20450
|
+
herkomst: string | null;
|
|
18530
20451
|
id: string;
|
|
18531
20452
|
idempotentie_sleutel: string | null;
|
|
18532
20453
|
is_herprint: boolean;
|
|
@@ -18559,6 +20480,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18559
20480
|
};
|
|
18560
20481
|
Returns: {
|
|
18561
20482
|
action: string;
|
|
20483
|
+
attempt_started_at: string | null;
|
|
18562
20484
|
attempts: number;
|
|
18563
20485
|
connection_id: string | null;
|
|
18564
20486
|
created_at: string;
|
|
@@ -18646,6 +20568,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18646
20568
|
agent_naam: string;
|
|
18647
20569
|
}[];
|
|
18648
20570
|
};
|
|
20571
|
+
consume_van_inventory: {
|
|
20572
|
+
Args: {
|
|
20573
|
+
p_inventory_id: string;
|
|
20574
|
+
p_quantity: number;
|
|
20575
|
+
};
|
|
20576
|
+
Returns: {
|
|
20577
|
+
barcode: string | null;
|
|
20578
|
+
created_at: string;
|
|
20579
|
+
id: string;
|
|
20580
|
+
monteur_id: string | null;
|
|
20581
|
+
price_per_unit: number;
|
|
20582
|
+
product_name: string;
|
|
20583
|
+
quantity_current: number;
|
|
20584
|
+
quantity_min: number;
|
|
20585
|
+
unit: string;
|
|
20586
|
+
updated_at: string;
|
|
20587
|
+
};
|
|
20588
|
+
SetofOptions: {
|
|
20589
|
+
from: "*";
|
|
20590
|
+
to: "van_inventories";
|
|
20591
|
+
isOneToOne: true;
|
|
20592
|
+
isSetofReturn: false;
|
|
20593
|
+
};
|
|
20594
|
+
};
|
|
18649
20595
|
control_get_todays_carts: {
|
|
18650
20596
|
Args: never;
|
|
18651
20597
|
Returns: {
|
|
@@ -18719,6 +20665,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18719
20665
|
_user_id: string;
|
|
18720
20666
|
};
|
|
18721
20667
|
Returns: string;
|
|
20668
|
+
} | {
|
|
20669
|
+
Args: {
|
|
20670
|
+
_feature_id: string;
|
|
20671
|
+
_module_id: string;
|
|
20672
|
+
_user_id: string;
|
|
20673
|
+
};
|
|
20674
|
+
Returns: string;
|
|
18722
20675
|
};
|
|
18723
20676
|
email_auth_decrypt: {
|
|
18724
20677
|
Args: {
|
|
@@ -18765,6 +20718,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18765
20718
|
};
|
|
18766
20719
|
Returns: string;
|
|
18767
20720
|
};
|
|
20721
|
+
employee_day_hours: {
|
|
20722
|
+
Args: {
|
|
20723
|
+
_day: string;
|
|
20724
|
+
_employee_id: string;
|
|
20725
|
+
};
|
|
20726
|
+
Returns: number;
|
|
20727
|
+
};
|
|
18768
20728
|
enqueue_cart_replan_if_unlocked: {
|
|
18769
20729
|
Args: {
|
|
18770
20730
|
p_order_id: string;
|
|
@@ -19070,12 +21030,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
19070
21030
|
Args: never;
|
|
19071
21031
|
Returns: string;
|
|
19072
21032
|
};
|
|
19073
|
-
get_work_order_tenant_id: {
|
|
19074
|
-
Args: {
|
|
19075
|
-
wo_id: string;
|
|
19076
|
-
};
|
|
19077
|
-
Returns: string;
|
|
19078
|
-
};
|
|
19079
21033
|
has_module_permission: {
|
|
19080
21034
|
Args: {
|
|
19081
21035
|
_min: string;
|
|
@@ -19095,6 +21049,46 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
19095
21049
|
Args: never;
|
|
19096
21050
|
Returns: boolean;
|
|
19097
21051
|
};
|
|
21052
|
+
invoice_create_from_source: {
|
|
21053
|
+
Args: {
|
|
21054
|
+
_payload?: import("./types").Json;
|
|
21055
|
+
_source_id: string;
|
|
21056
|
+
_source_type: string;
|
|
21057
|
+
};
|
|
21058
|
+
Returns: import("./types").Json;
|
|
21059
|
+
};
|
|
21060
|
+
invoice_get_billable_lines: {
|
|
21061
|
+
Args: {
|
|
21062
|
+
_invoice_id: string;
|
|
21063
|
+
};
|
|
21064
|
+
Returns: import("./types").Json;
|
|
21065
|
+
};
|
|
21066
|
+
invoice_get_for_source: {
|
|
21067
|
+
Args: {
|
|
21068
|
+
_source_id: string;
|
|
21069
|
+
_source_type: string;
|
|
21070
|
+
};
|
|
21071
|
+
Returns: import("./types").Json;
|
|
21072
|
+
};
|
|
21073
|
+
invoice_get_summary: {
|
|
21074
|
+
Args: {
|
|
21075
|
+
_invoice_id: string;
|
|
21076
|
+
};
|
|
21077
|
+
Returns: import("./types").Json;
|
|
21078
|
+
};
|
|
21079
|
+
invoice_list_sources: {
|
|
21080
|
+
Args: {
|
|
21081
|
+
_limit?: number;
|
|
21082
|
+
_source_type?: string;
|
|
21083
|
+
};
|
|
21084
|
+
Returns: import("./types").Json;
|
|
21085
|
+
};
|
|
21086
|
+
invoice_recalc_totals: {
|
|
21087
|
+
Args: {
|
|
21088
|
+
_invoice_id: string;
|
|
21089
|
+
};
|
|
21090
|
+
Returns: import("./types").Json;
|
|
21091
|
+
};
|
|
19098
21092
|
is_authenticated: {
|
|
19099
21093
|
Args: never;
|
|
19100
21094
|
Returns: boolean;
|
|
@@ -19109,6 +21103,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
19109
21103
|
};
|
|
19110
21104
|
Returns: boolean;
|
|
19111
21105
|
};
|
|
21106
|
+
is_time_log_week_locked: {
|
|
21107
|
+
Args: {
|
|
21108
|
+
p_employee_id: string;
|
|
21109
|
+
p_start_time: string;
|
|
21110
|
+
};
|
|
21111
|
+
Returns: boolean;
|
|
21112
|
+
};
|
|
19112
21113
|
is_user_admin: {
|
|
19113
21114
|
Args: never;
|
|
19114
21115
|
Returns: boolean;
|
|
@@ -19117,11 +21118,58 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
19117
21118
|
Args: never;
|
|
19118
21119
|
Returns: boolean;
|
|
19119
21120
|
};
|
|
19120
|
-
|
|
21121
|
+
itk_offerte_naar_werkbon: {
|
|
21122
|
+
Args: {
|
|
21123
|
+
_offerte_id: string;
|
|
21124
|
+
};
|
|
21125
|
+
Returns: string;
|
|
21126
|
+
};
|
|
21127
|
+
itk_offerte_restant_mandaat: {
|
|
21128
|
+
Args: {
|
|
21129
|
+
_exclude_offerte_id?: string;
|
|
21130
|
+
_werkbon_id: string;
|
|
21131
|
+
};
|
|
21132
|
+
Returns: number;
|
|
21133
|
+
};
|
|
21134
|
+
jwt_has_role: {
|
|
21135
|
+
Args: {
|
|
21136
|
+
_role: Database["public"]["Enums"]["app_role"];
|
|
21137
|
+
};
|
|
21138
|
+
Returns: boolean;
|
|
21139
|
+
};
|
|
21140
|
+
list_medewerkers: {
|
|
21141
|
+
Args: never;
|
|
21142
|
+
Returns: {
|
|
21143
|
+
avatar_url: string;
|
|
21144
|
+
color: string;
|
|
21145
|
+
display_name: string;
|
|
21146
|
+
email: string;
|
|
21147
|
+
hours_fri: number;
|
|
21148
|
+
hours_mon: number;
|
|
21149
|
+
hours_thu: number;
|
|
21150
|
+
hours_tue: number;
|
|
21151
|
+
hours_wed: number;
|
|
21152
|
+
id: string;
|
|
21153
|
+
is_active: boolean;
|
|
21154
|
+
leave_balance_hours: number;
|
|
21155
|
+
persnr: string;
|
|
21156
|
+
phone: string;
|
|
21157
|
+
roles: string[];
|
|
21158
|
+
}[];
|
|
21159
|
+
};
|
|
21160
|
+
list_monteur_absences: {
|
|
19121
21161
|
Args: {
|
|
19122
|
-
|
|
21162
|
+
_from: string;
|
|
21163
|
+
_to: string;
|
|
19123
21164
|
};
|
|
19124
|
-
Returns:
|
|
21165
|
+
Returns: {
|
|
21166
|
+
absence_date: string;
|
|
21167
|
+
end_time: string;
|
|
21168
|
+
full_day: boolean;
|
|
21169
|
+
kind: string;
|
|
21170
|
+
monteur_id: string;
|
|
21171
|
+
start_time: string;
|
|
21172
|
+
}[];
|
|
19125
21173
|
};
|
|
19126
21174
|
list_monteurs: {
|
|
19127
21175
|
Args: never;
|
|
@@ -19455,17 +21503,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
19455
21503
|
Returns: string;
|
|
19456
21504
|
};
|
|
19457
21505
|
logistics_emit_event: {
|
|
19458
|
-
Args: {
|
|
19459
|
-
p_event_type: string;
|
|
19460
|
-
p_idempotency_key?: string;
|
|
19461
|
-
p_order_ref: string;
|
|
19462
|
-
p_payload?: import("./types").Json;
|
|
19463
|
-
p_shadow?: boolean;
|
|
19464
|
-
p_source_module: string;
|
|
19465
|
-
p_strategy_id?: string;
|
|
19466
|
-
};
|
|
19467
|
-
Returns: import("./types").Json;
|
|
19468
|
-
} | {
|
|
19469
21506
|
Args: {
|
|
19470
21507
|
p_event_type: string;
|
|
19471
21508
|
p_idempotency_key?: string;
|
|
@@ -19554,6 +21591,41 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
19554
21591
|
};
|
|
19555
21592
|
Returns: string;
|
|
19556
21593
|
};
|
|
21594
|
+
logistics_floriday_finish_push_v2: {
|
|
21595
|
+
Args: {
|
|
21596
|
+
_error?: string;
|
|
21597
|
+
_error_code?: string;
|
|
21598
|
+
_fulfillment_order_id?: string;
|
|
21599
|
+
_gateway_status?: number;
|
|
21600
|
+
_id: string;
|
|
21601
|
+
_max_age_hours?: number;
|
|
21602
|
+
_max_attempts?: number;
|
|
21603
|
+
_ok: boolean;
|
|
21604
|
+
_permanent?: boolean;
|
|
21605
|
+
_response?: import("./types").Json;
|
|
21606
|
+
_revision: number;
|
|
21607
|
+
_sent_hash?: string;
|
|
21608
|
+
};
|
|
21609
|
+
Returns: string;
|
|
21610
|
+
};
|
|
21611
|
+
logistics_floriday_finish_push_v3: {
|
|
21612
|
+
Args: {
|
|
21613
|
+
_error?: string;
|
|
21614
|
+
_error_code?: string;
|
|
21615
|
+
_fulfillment_order_id?: string;
|
|
21616
|
+
_gateway_status?: number;
|
|
21617
|
+
_id: string;
|
|
21618
|
+
_max_age_hours?: number;
|
|
21619
|
+
_max_attempts?: number;
|
|
21620
|
+
_outcome: string;
|
|
21621
|
+
_permanent?: boolean;
|
|
21622
|
+
_response?: import("./types").Json;
|
|
21623
|
+
_revision: number;
|
|
21624
|
+
_sent_hash?: string;
|
|
21625
|
+
_wait_max_age_hours?: number;
|
|
21626
|
+
};
|
|
21627
|
+
Returns: string;
|
|
21628
|
+
};
|
|
19557
21629
|
logistics_floriday_prune_pushes: {
|
|
19558
21630
|
Args: {
|
|
19559
21631
|
_days?: number;
|
|
@@ -19614,12 +21686,79 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
19614
21686
|
};
|
|
19615
21687
|
Returns: import("./types").Json;
|
|
19616
21688
|
};
|
|
21689
|
+
logistics_plan_block: {
|
|
21690
|
+
Args: {
|
|
21691
|
+
p_details?: import("./types").Json;
|
|
21692
|
+
p_order_ids: string[];
|
|
21693
|
+
p_reason: string;
|
|
21694
|
+
};
|
|
21695
|
+
Returns: number;
|
|
21696
|
+
};
|
|
19617
21697
|
logistics_plan_buffer_sql: {
|
|
19618
21698
|
Args: {
|
|
19619
21699
|
p_buffer_id: string;
|
|
19620
21700
|
};
|
|
19621
21701
|
Returns: number;
|
|
19622
21702
|
};
|
|
21703
|
+
logistics_plan_claim: {
|
|
21704
|
+
Args: {
|
|
21705
|
+
p_limit?: number;
|
|
21706
|
+
};
|
|
21707
|
+
Returns: {
|
|
21708
|
+
attempts: number;
|
|
21709
|
+
id: string;
|
|
21710
|
+
order_id: string;
|
|
21711
|
+
}[];
|
|
21712
|
+
};
|
|
21713
|
+
logistics_plan_enqueue: {
|
|
21714
|
+
Args: {
|
|
21715
|
+
p_order_id: string;
|
|
21716
|
+
p_reason?: string;
|
|
21717
|
+
};
|
|
21718
|
+
Returns: undefined;
|
|
21719
|
+
};
|
|
21720
|
+
logistics_plan_ensure_event: {
|
|
21721
|
+
Args: {
|
|
21722
|
+
p_order_id: string;
|
|
21723
|
+
};
|
|
21724
|
+
Returns: boolean;
|
|
21725
|
+
};
|
|
21726
|
+
logistics_plan_finish: {
|
|
21727
|
+
Args: {
|
|
21728
|
+
p_error?: string;
|
|
21729
|
+
p_id: string;
|
|
21730
|
+
};
|
|
21731
|
+
Returns: undefined;
|
|
21732
|
+
};
|
|
21733
|
+
logistics_plan_impact_orders: {
|
|
21734
|
+
Args: {
|
|
21735
|
+
p_order_id: string;
|
|
21736
|
+
};
|
|
21737
|
+
Returns: {
|
|
21738
|
+
buffer_id: string;
|
|
21739
|
+
order_id: string;
|
|
21740
|
+
plan_date: string;
|
|
21741
|
+
}[];
|
|
21742
|
+
};
|
|
21743
|
+
logistics_plan_kick: {
|
|
21744
|
+
Args: never;
|
|
21745
|
+
Returns: undefined;
|
|
21746
|
+
};
|
|
21747
|
+
logistics_plan_prune: {
|
|
21748
|
+
Args: never;
|
|
21749
|
+
Returns: number;
|
|
21750
|
+
};
|
|
21751
|
+
logistics_plan_release_stale: {
|
|
21752
|
+
Args: never;
|
|
21753
|
+
Returns: number;
|
|
21754
|
+
};
|
|
21755
|
+
logistics_plan_setting: {
|
|
21756
|
+
Args: {
|
|
21757
|
+
p_default: number;
|
|
21758
|
+
p_key: string;
|
|
21759
|
+
};
|
|
21760
|
+
Returns: number;
|
|
21761
|
+
};
|
|
19623
21762
|
logistics_queue_capacity_email: {
|
|
19624
21763
|
Args: {
|
|
19625
21764
|
p_alert_id: string;
|
|
@@ -19861,6 +22000,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
19861
22000
|
my_module_permissions: {
|
|
19862
22001
|
Args: never;
|
|
19863
22002
|
Returns: {
|
|
22003
|
+
feature_id: string;
|
|
19864
22004
|
module_id: string;
|
|
19865
22005
|
permission: string;
|
|
19866
22006
|
}[];
|
|
@@ -19922,6 +22062,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
19922
22062
|
verwijderd: number;
|
|
19923
22063
|
}[];
|
|
19924
22064
|
};
|
|
22065
|
+
order_departure_proof: {
|
|
22066
|
+
Args: {
|
|
22067
|
+
p_order_id: string;
|
|
22068
|
+
};
|
|
22069
|
+
Returns: import("./types").Json;
|
|
22070
|
+
};
|
|
19925
22071
|
order_number_prefix: {
|
|
19926
22072
|
Args: {
|
|
19927
22073
|
p_custom_fields?: import("./types").Json;
|
|
@@ -19929,6 +22075,25 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
19929
22075
|
};
|
|
19930
22076
|
Returns: string;
|
|
19931
22077
|
};
|
|
22078
|
+
pakket_suggesties_voor_tekst: {
|
|
22079
|
+
Args: {
|
|
22080
|
+
_tekst: string;
|
|
22081
|
+
};
|
|
22082
|
+
Returns: {
|
|
22083
|
+
hit_type: string;
|
|
22084
|
+
package_id: string;
|
|
22085
|
+
priority: number;
|
|
22086
|
+
}[];
|
|
22087
|
+
};
|
|
22088
|
+
pakket_voor_reistijd: {
|
|
22089
|
+
Args: {
|
|
22090
|
+
_minuten: number;
|
|
22091
|
+
};
|
|
22092
|
+
Returns: {
|
|
22093
|
+
package_id: string;
|
|
22094
|
+
priority: number;
|
|
22095
|
+
}[];
|
|
22096
|
+
};
|
|
19932
22097
|
pick_active_printers: {
|
|
19933
22098
|
Args: never;
|
|
19934
22099
|
Returns: {
|
|
@@ -20036,6 +22201,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20036
22201
|
isSetofReturn: false;
|
|
20037
22202
|
};
|
|
20038
22203
|
};
|
|
22204
|
+
pick_cleanup_maintenance: {
|
|
22205
|
+
Args: {
|
|
22206
|
+
_heartbeat_hours?: number;
|
|
22207
|
+
_log_days?: number;
|
|
22208
|
+
};
|
|
22209
|
+
Returns: import("./types").Json;
|
|
22210
|
+
};
|
|
20039
22211
|
pick_complete_print: {
|
|
20040
22212
|
Args: {
|
|
20041
22213
|
_printer_id: string;
|
|
@@ -20087,6 +22259,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20087
22259
|
Args: never;
|
|
20088
22260
|
Returns: string;
|
|
20089
22261
|
};
|
|
22262
|
+
pick_day_counts: {
|
|
22263
|
+
Args: {
|
|
22264
|
+
_pick_day?: string;
|
|
22265
|
+
_screen_id?: string;
|
|
22266
|
+
_station_id?: string;
|
|
22267
|
+
};
|
|
22268
|
+
Returns: import("./types").Json;
|
|
22269
|
+
};
|
|
20090
22270
|
pick_document_layout_data: {
|
|
20091
22271
|
Args: {
|
|
20092
22272
|
_layout_id: string;
|
|
@@ -20114,6 +22294,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20114
22294
|
};
|
|
20115
22295
|
Returns: import("./types").Json;
|
|
20116
22296
|
};
|
|
22297
|
+
pick_print_plekken: {
|
|
22298
|
+
Args: never;
|
|
22299
|
+
Returns: {
|
|
22300
|
+
id: string;
|
|
22301
|
+
naam: string;
|
|
22302
|
+
omschrijving: string;
|
|
22303
|
+
}[];
|
|
22304
|
+
};
|
|
22305
|
+
pick_reference_data_status: {
|
|
22306
|
+
Args: never;
|
|
22307
|
+
Returns: import("./types").Json;
|
|
22308
|
+
};
|
|
20117
22309
|
pick_release_expired_locks: {
|
|
20118
22310
|
Args: never;
|
|
20119
22311
|
Returns: number;
|
|
@@ -20124,6 +22316,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20124
22316
|
};
|
|
20125
22317
|
Returns: undefined;
|
|
20126
22318
|
};
|
|
22319
|
+
pick_reprint_document: {
|
|
22320
|
+
Args: {
|
|
22321
|
+
_queue_item_id: string;
|
|
22322
|
+
_session_id: string;
|
|
22323
|
+
_throttle_seconds?: number;
|
|
22324
|
+
};
|
|
22325
|
+
Returns: string;
|
|
22326
|
+
};
|
|
20127
22327
|
pick_reset_print: {
|
|
20128
22328
|
Args: {
|
|
20129
22329
|
_queue_item_id: string;
|
|
@@ -20170,6 +22370,17 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20170
22370
|
isSetofReturn: false;
|
|
20171
22371
|
};
|
|
20172
22372
|
};
|
|
22373
|
+
pick_seed_reference_data: {
|
|
22374
|
+
Args: never;
|
|
22375
|
+
Returns: import("./types").Json;
|
|
22376
|
+
};
|
|
22377
|
+
pick_set_station_print_plek: {
|
|
22378
|
+
Args: {
|
|
22379
|
+
_print_plek_id: string;
|
|
22380
|
+
_station_id: string;
|
|
22381
|
+
};
|
|
22382
|
+
Returns: string;
|
|
22383
|
+
};
|
|
20173
22384
|
pick_station_dashboard: {
|
|
20174
22385
|
Args: never;
|
|
20175
22386
|
Returns: {
|
|
@@ -20182,6 +22393,25 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20182
22393
|
waiting: number;
|
|
20183
22394
|
}[];
|
|
20184
22395
|
};
|
|
22396
|
+
pick_station_print_plek: {
|
|
22397
|
+
Args: {
|
|
22398
|
+
_station_id: string;
|
|
22399
|
+
};
|
|
22400
|
+
Returns: {
|
|
22401
|
+
naam: string;
|
|
22402
|
+
omschrijving: string;
|
|
22403
|
+
print_plek_id: string;
|
|
22404
|
+
}[];
|
|
22405
|
+
};
|
|
22406
|
+
pick_station_print_plekken: {
|
|
22407
|
+
Args: never;
|
|
22408
|
+
Returns: {
|
|
22409
|
+
naam: string;
|
|
22410
|
+
omschrijving: string;
|
|
22411
|
+
print_plek_id: string;
|
|
22412
|
+
station_id: string;
|
|
22413
|
+
}[];
|
|
22414
|
+
};
|
|
20185
22415
|
pick_station_slugify: {
|
|
20186
22416
|
Args: {
|
|
20187
22417
|
_id: string;
|
|
@@ -20189,6 +22419,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20189
22419
|
};
|
|
20190
22420
|
Returns: string;
|
|
20191
22421
|
};
|
|
22422
|
+
pick_sync_queue_throttled: {
|
|
22423
|
+
Args: {
|
|
22424
|
+
_min_seconds?: number;
|
|
22425
|
+
};
|
|
22426
|
+
Returns: import("./types").Json;
|
|
22427
|
+
};
|
|
20192
22428
|
pickstation_get_orders_raw: {
|
|
20193
22429
|
Args: never;
|
|
20194
22430
|
Returns: import("./types").Json;
|
|
@@ -20250,6 +22486,37 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20250
22486
|
};
|
|
20251
22487
|
Returns: undefined;
|
|
20252
22488
|
};
|
|
22489
|
+
quote_create_from_source: {
|
|
22490
|
+
Args: {
|
|
22491
|
+
_payload?: import("./types").Json;
|
|
22492
|
+
_source_id: string;
|
|
22493
|
+
_source_type: string;
|
|
22494
|
+
};
|
|
22495
|
+
Returns: string;
|
|
22496
|
+
};
|
|
22497
|
+
quote_get_billable_lines: {
|
|
22498
|
+
Args: {
|
|
22499
|
+
_quotation_id: string;
|
|
22500
|
+
};
|
|
22501
|
+
Returns: import("./types").Json;
|
|
22502
|
+
};
|
|
22503
|
+
quote_get_summary: {
|
|
22504
|
+
Args: {
|
|
22505
|
+
_quotation_id: string;
|
|
22506
|
+
};
|
|
22507
|
+
Returns: import("./types").Json;
|
|
22508
|
+
};
|
|
22509
|
+
quote_list_packages: {
|
|
22510
|
+
Args: never;
|
|
22511
|
+
Returns: import("./types").Json;
|
|
22512
|
+
};
|
|
22513
|
+
quote_list_sources: {
|
|
22514
|
+
Args: {
|
|
22515
|
+
_limit?: number;
|
|
22516
|
+
_source_type?: string;
|
|
22517
|
+
};
|
|
22518
|
+
Returns: import("./types").Json;
|
|
22519
|
+
};
|
|
20253
22520
|
recompute_all_reserved_stock: {
|
|
20254
22521
|
Args: never;
|
|
20255
22522
|
Returns: undefined;
|
|
@@ -20303,6 +22570,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20303
22570
|
};
|
|
20304
22571
|
Returns: boolean;
|
|
20305
22572
|
};
|
|
22573
|
+
release_stale_order_invoice_links: {
|
|
22574
|
+
Args: {
|
|
22575
|
+
_minutes?: number;
|
|
22576
|
+
};
|
|
22577
|
+
Returns: number;
|
|
22578
|
+
};
|
|
20306
22579
|
reorder_customer_price_groups: {
|
|
20307
22580
|
Args: {
|
|
20308
22581
|
_ids: string[];
|
|
@@ -20741,6 +23014,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20741
23014
|
};
|
|
20742
23015
|
Returns: string[];
|
|
20743
23016
|
};
|
|
23017
|
+
switch_time_log: {
|
|
23018
|
+
Args: {
|
|
23019
|
+
p_employee_id: string;
|
|
23020
|
+
p_start_lat?: number;
|
|
23021
|
+
p_start_lng?: number;
|
|
23022
|
+
p_type: string;
|
|
23023
|
+
p_work_order_id?: string;
|
|
23024
|
+
};
|
|
23025
|
+
Returns: import("./types").Json;
|
|
23026
|
+
};
|
|
20744
23027
|
sync_all_layer_stocks: {
|
|
20745
23028
|
Args: never;
|
|
20746
23029
|
Returns: undefined;
|
|
@@ -20775,6 +23058,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20775
23058
|
};
|
|
20776
23059
|
Returns: undefined;
|
|
20777
23060
|
};
|
|
23061
|
+
sync_sick_time_off: {
|
|
23062
|
+
Args: {
|
|
23063
|
+
_period_id: string;
|
|
23064
|
+
};
|
|
23065
|
+
Returns: number;
|
|
23066
|
+
};
|
|
20778
23067
|
trade_item_stock_duplicates: {
|
|
20779
23068
|
Args: never;
|
|
20780
23069
|
Returns: {
|
|
@@ -20791,6 +23080,38 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20791
23080
|
};
|
|
20792
23081
|
Returns: boolean;
|
|
20793
23082
|
};
|
|
23083
|
+
twinfield_cron_lock_acquire: {
|
|
23084
|
+
Args: {
|
|
23085
|
+
_job_name: string;
|
|
23086
|
+
_stale_seconds?: number;
|
|
23087
|
+
};
|
|
23088
|
+
Returns: boolean;
|
|
23089
|
+
};
|
|
23090
|
+
twinfield_cron_lock_release: {
|
|
23091
|
+
Args: {
|
|
23092
|
+
_error?: string;
|
|
23093
|
+
_job_name: string;
|
|
23094
|
+
};
|
|
23095
|
+
Returns: undefined;
|
|
23096
|
+
};
|
|
23097
|
+
twinfield_deactivate_connection: {
|
|
23098
|
+
Args: {
|
|
23099
|
+
p_connection_id: string;
|
|
23100
|
+
p_user_id: string;
|
|
23101
|
+
};
|
|
23102
|
+
Returns: import("./types").Json;
|
|
23103
|
+
};
|
|
23104
|
+
twinfield_handle_administration_change: {
|
|
23105
|
+
Args: {
|
|
23106
|
+
_administration_code: string;
|
|
23107
|
+
_user_id: string;
|
|
23108
|
+
};
|
|
23109
|
+
Returns: undefined;
|
|
23110
|
+
};
|
|
23111
|
+
twinfield_prune_push_queue: {
|
|
23112
|
+
Args: never;
|
|
23113
|
+
Returns: number;
|
|
23114
|
+
};
|
|
20794
23115
|
twinfield_register_cron: {
|
|
20795
23116
|
Args: {
|
|
20796
23117
|
apikey?: string;
|
|
@@ -20806,10 +23127,11 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20806
23127
|
p_company_name?: string;
|
|
20807
23128
|
p_environment: string;
|
|
20808
23129
|
p_office_code?: string;
|
|
23130
|
+
p_reset_sync?: boolean;
|
|
20809
23131
|
p_status?: string;
|
|
20810
23132
|
p_user_id: string;
|
|
20811
23133
|
};
|
|
20812
|
-
Returns:
|
|
23134
|
+
Returns: import("./types").Json;
|
|
20813
23135
|
};
|
|
20814
23136
|
upsert_auto_fulfillment_log: {
|
|
20815
23137
|
Args: {
|
|
@@ -20830,11 +23152,43 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20830
23152
|
Args: never;
|
|
20831
23153
|
Returns: string;
|
|
20832
23154
|
};
|
|
23155
|
+
werkbon_totalen: {
|
|
23156
|
+
Args: {
|
|
23157
|
+
_werkbon_id: string;
|
|
23158
|
+
};
|
|
23159
|
+
Returns: {
|
|
23160
|
+
materials_cents: number;
|
|
23161
|
+
packages_cents: number;
|
|
23162
|
+
packages_minutes: number;
|
|
23163
|
+
total_cents: number;
|
|
23164
|
+
total_minutes: number;
|
|
23165
|
+
}[];
|
|
23166
|
+
};
|
|
23167
|
+
wo_create_from_source: {
|
|
23168
|
+
Args: {
|
|
23169
|
+
_payload?: import("./types").Json;
|
|
23170
|
+
_source_id: string;
|
|
23171
|
+
_source_type: string;
|
|
23172
|
+
};
|
|
23173
|
+
Returns: string;
|
|
23174
|
+
};
|
|
23175
|
+
wo_get_billable_lines: {
|
|
23176
|
+
Args: {
|
|
23177
|
+
_work_order_id: string;
|
|
23178
|
+
};
|
|
23179
|
+
Returns: import("./types").Json;
|
|
23180
|
+
};
|
|
23181
|
+
wo_get_summary: {
|
|
23182
|
+
Args: {
|
|
23183
|
+
_work_order_id: string;
|
|
23184
|
+
};
|
|
23185
|
+
Returns: import("./types").Json;
|
|
23186
|
+
};
|
|
20833
23187
|
};
|
|
20834
23188
|
Enums: {
|
|
20835
23189
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
20836
23190
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
20837
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
23191
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
20838
23192
|
doc_orientation: "portrait" | "landscape";
|
|
20839
23193
|
exact_env: "staging" | "live";
|
|
20840
23194
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -20848,6 +23202,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
20848
23202
|
};
|
|
20849
23203
|
CompositeTypes: { [_ in never]: never; };
|
|
20850
23204
|
}, {
|
|
20851
|
-
PostgrestVersion: "14.
|
|
23205
|
+
PostgrestVersion: "14.17";
|
|
20852
23206
|
}>;
|
|
20853
23207
|
//# sourceMappingURL=client.d.ts.map
|