@flowselections/floriday-voorraad 1.0.36 → 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 +2 -2
|
@@ -3,7 +3,7 @@ export type Json = string | number | boolean | null | {
|
|
|
3
3
|
} | Json[];
|
|
4
4
|
export type Database = {
|
|
5
5
|
__InternalSupabase: {
|
|
6
|
-
PostgrestVersion: "14.
|
|
6
|
+
PostgrestVersion: "14.17";
|
|
7
7
|
};
|
|
8
8
|
public: {
|
|
9
9
|
Tables: {
|
|
@@ -692,6 +692,99 @@ export type Database = {
|
|
|
692
692
|
};
|
|
693
693
|
Relationships: [];
|
|
694
694
|
};
|
|
695
|
+
artikelen_cache: {
|
|
696
|
+
Row: {
|
|
697
|
+
artikelcode: string;
|
|
698
|
+
bron: string;
|
|
699
|
+
bruto_prijs_cent: number | null;
|
|
700
|
+
created_at: string;
|
|
701
|
+
eenheid: string;
|
|
702
|
+
fabrikant: string | null;
|
|
703
|
+
fetched_at: string;
|
|
704
|
+
gtin: string | null;
|
|
705
|
+
id: string;
|
|
706
|
+
naam: string;
|
|
707
|
+
netto_prijs_cent: number | null;
|
|
708
|
+
omschrijving: string | null;
|
|
709
|
+
raw: Json;
|
|
710
|
+
updated_at: string;
|
|
711
|
+
valuta: string;
|
|
712
|
+
};
|
|
713
|
+
Insert: {
|
|
714
|
+
artikelcode: string;
|
|
715
|
+
bron?: string;
|
|
716
|
+
bruto_prijs_cent?: number | null;
|
|
717
|
+
created_at?: string;
|
|
718
|
+
eenheid?: string;
|
|
719
|
+
fabrikant?: string | null;
|
|
720
|
+
fetched_at?: string;
|
|
721
|
+
gtin?: string | null;
|
|
722
|
+
id?: string;
|
|
723
|
+
naam: string;
|
|
724
|
+
netto_prijs_cent?: number | null;
|
|
725
|
+
omschrijving?: string | null;
|
|
726
|
+
raw?: Json;
|
|
727
|
+
updated_at?: string;
|
|
728
|
+
valuta?: string;
|
|
729
|
+
};
|
|
730
|
+
Update: {
|
|
731
|
+
artikelcode?: string;
|
|
732
|
+
bron?: string;
|
|
733
|
+
bruto_prijs_cent?: number | null;
|
|
734
|
+
created_at?: string;
|
|
735
|
+
eenheid?: string;
|
|
736
|
+
fabrikant?: string | null;
|
|
737
|
+
fetched_at?: string;
|
|
738
|
+
gtin?: string | null;
|
|
739
|
+
id?: string;
|
|
740
|
+
naam?: string;
|
|
741
|
+
netto_prijs_cent?: number | null;
|
|
742
|
+
omschrijving?: string | null;
|
|
743
|
+
raw?: Json;
|
|
744
|
+
updated_at?: string;
|
|
745
|
+
valuta?: string;
|
|
746
|
+
};
|
|
747
|
+
Relationships: [];
|
|
748
|
+
};
|
|
749
|
+
artikelen_veldconfig: {
|
|
750
|
+
Row: {
|
|
751
|
+
bron_pad: string;
|
|
752
|
+
created_at: string;
|
|
753
|
+
id: string;
|
|
754
|
+
label: string;
|
|
755
|
+
sort_order: number;
|
|
756
|
+
type: string;
|
|
757
|
+
updated_at: string;
|
|
758
|
+
veld_key: string;
|
|
759
|
+
zichtbaar_in_detail: boolean;
|
|
760
|
+
zichtbaar_in_lijst: boolean;
|
|
761
|
+
};
|
|
762
|
+
Insert: {
|
|
763
|
+
bron_pad: string;
|
|
764
|
+
created_at?: string;
|
|
765
|
+
id?: string;
|
|
766
|
+
label: string;
|
|
767
|
+
sort_order?: number;
|
|
768
|
+
type?: string;
|
|
769
|
+
updated_at?: string;
|
|
770
|
+
veld_key: string;
|
|
771
|
+
zichtbaar_in_detail?: boolean;
|
|
772
|
+
zichtbaar_in_lijst?: boolean;
|
|
773
|
+
};
|
|
774
|
+
Update: {
|
|
775
|
+
bron_pad?: string;
|
|
776
|
+
created_at?: string;
|
|
777
|
+
id?: string;
|
|
778
|
+
label?: string;
|
|
779
|
+
sort_order?: number;
|
|
780
|
+
type?: string;
|
|
781
|
+
updated_at?: string;
|
|
782
|
+
veld_key?: string;
|
|
783
|
+
zichtbaar_in_detail?: boolean;
|
|
784
|
+
zichtbaar_in_lijst?: boolean;
|
|
785
|
+
};
|
|
786
|
+
Relationships: [];
|
|
787
|
+
};
|
|
695
788
|
booking_items: {
|
|
696
789
|
Row: {
|
|
697
790
|
booking_id: string;
|
|
@@ -895,6 +988,126 @@ export type Database = {
|
|
|
895
988
|
};
|
|
896
989
|
Relationships: [];
|
|
897
990
|
};
|
|
991
|
+
cao_holidays: {
|
|
992
|
+
Row: {
|
|
993
|
+
created_at: string;
|
|
994
|
+
description: string | null;
|
|
995
|
+
holiday_date: string;
|
|
996
|
+
id: string;
|
|
997
|
+
updated_at: string;
|
|
998
|
+
};
|
|
999
|
+
Insert: {
|
|
1000
|
+
created_at?: string;
|
|
1001
|
+
description?: string | null;
|
|
1002
|
+
holiday_date: string;
|
|
1003
|
+
id?: string;
|
|
1004
|
+
updated_at?: string;
|
|
1005
|
+
};
|
|
1006
|
+
Update: {
|
|
1007
|
+
created_at?: string;
|
|
1008
|
+
description?: string | null;
|
|
1009
|
+
holiday_date?: string;
|
|
1010
|
+
id?: string;
|
|
1011
|
+
updated_at?: string;
|
|
1012
|
+
};
|
|
1013
|
+
Relationships: [];
|
|
1014
|
+
};
|
|
1015
|
+
cao_settings: {
|
|
1016
|
+
Row: {
|
|
1017
|
+
auto_break_after_hours: number;
|
|
1018
|
+
auto_break_minutes: number;
|
|
1019
|
+
auto_break_unpaid: boolean;
|
|
1020
|
+
auto_stop_after_hours: number;
|
|
1021
|
+
callout_fee: number;
|
|
1022
|
+
created_at: string;
|
|
1023
|
+
daily_regular_hours: number;
|
|
1024
|
+
default_hourly_rate: number;
|
|
1025
|
+
id: string;
|
|
1026
|
+
materials_markup_percent: number;
|
|
1027
|
+
max_daily_hours: number;
|
|
1028
|
+
max_weekly_hours: number;
|
|
1029
|
+
meal_allowance_amount: number;
|
|
1030
|
+
overtime_pct_178: number;
|
|
1031
|
+
overtime_pct_189: number;
|
|
1032
|
+
overtime_pct_212: number;
|
|
1033
|
+
reminder_after_hours: number;
|
|
1034
|
+
standby_evening_amount: number;
|
|
1035
|
+
standby_weekend_amount: number;
|
|
1036
|
+
travel_cost_per_km: number | null;
|
|
1037
|
+
travel_cost_threshold_km: number | null;
|
|
1038
|
+
travel_counts_as_work: boolean;
|
|
1039
|
+
travel_hourly_rate: number;
|
|
1040
|
+
travel_rate_per_hour: number;
|
|
1041
|
+
travel_threshold_minutes: number;
|
|
1042
|
+
updated_at: string;
|
|
1043
|
+
weekend_always_212: boolean;
|
|
1044
|
+
window_end: string;
|
|
1045
|
+
window_start: string;
|
|
1046
|
+
};
|
|
1047
|
+
Insert: {
|
|
1048
|
+
auto_break_after_hours?: number;
|
|
1049
|
+
auto_break_minutes?: number;
|
|
1050
|
+
auto_break_unpaid?: boolean;
|
|
1051
|
+
auto_stop_after_hours?: number;
|
|
1052
|
+
callout_fee?: number;
|
|
1053
|
+
created_at?: string;
|
|
1054
|
+
daily_regular_hours?: number;
|
|
1055
|
+
default_hourly_rate?: number;
|
|
1056
|
+
id?: string;
|
|
1057
|
+
materials_markup_percent?: number;
|
|
1058
|
+
max_daily_hours?: number;
|
|
1059
|
+
max_weekly_hours?: number;
|
|
1060
|
+
meal_allowance_amount?: number;
|
|
1061
|
+
overtime_pct_178?: number;
|
|
1062
|
+
overtime_pct_189?: number;
|
|
1063
|
+
overtime_pct_212?: number;
|
|
1064
|
+
reminder_after_hours?: number;
|
|
1065
|
+
standby_evening_amount?: number;
|
|
1066
|
+
standby_weekend_amount?: number;
|
|
1067
|
+
travel_cost_per_km?: number | null;
|
|
1068
|
+
travel_cost_threshold_km?: number | null;
|
|
1069
|
+
travel_counts_as_work?: boolean;
|
|
1070
|
+
travel_hourly_rate?: number;
|
|
1071
|
+
travel_rate_per_hour?: number;
|
|
1072
|
+
travel_threshold_minutes?: number;
|
|
1073
|
+
updated_at?: string;
|
|
1074
|
+
weekend_always_212?: boolean;
|
|
1075
|
+
window_end?: string;
|
|
1076
|
+
window_start?: string;
|
|
1077
|
+
};
|
|
1078
|
+
Update: {
|
|
1079
|
+
auto_break_after_hours?: number;
|
|
1080
|
+
auto_break_minutes?: number;
|
|
1081
|
+
auto_break_unpaid?: boolean;
|
|
1082
|
+
auto_stop_after_hours?: number;
|
|
1083
|
+
callout_fee?: number;
|
|
1084
|
+
created_at?: string;
|
|
1085
|
+
daily_regular_hours?: number;
|
|
1086
|
+
default_hourly_rate?: number;
|
|
1087
|
+
id?: string;
|
|
1088
|
+
materials_markup_percent?: number;
|
|
1089
|
+
max_daily_hours?: number;
|
|
1090
|
+
max_weekly_hours?: number;
|
|
1091
|
+
meal_allowance_amount?: number;
|
|
1092
|
+
overtime_pct_178?: number;
|
|
1093
|
+
overtime_pct_189?: number;
|
|
1094
|
+
overtime_pct_212?: number;
|
|
1095
|
+
reminder_after_hours?: number;
|
|
1096
|
+
standby_evening_amount?: number;
|
|
1097
|
+
standby_weekend_amount?: number;
|
|
1098
|
+
travel_cost_per_km?: number | null;
|
|
1099
|
+
travel_cost_threshold_km?: number | null;
|
|
1100
|
+
travel_counts_as_work?: boolean;
|
|
1101
|
+
travel_hourly_rate?: number;
|
|
1102
|
+
travel_rate_per_hour?: number;
|
|
1103
|
+
travel_threshold_minutes?: number;
|
|
1104
|
+
updated_at?: string;
|
|
1105
|
+
weekend_always_212?: boolean;
|
|
1106
|
+
window_end?: string;
|
|
1107
|
+
window_start?: string;
|
|
1108
|
+
};
|
|
1109
|
+
Relationships: [];
|
|
1110
|
+
};
|
|
898
1111
|
carrier_shipping_rates: {
|
|
899
1112
|
Row: {
|
|
900
1113
|
carrier_id: string;
|
|
@@ -2698,6 +2911,44 @@ export type Database = {
|
|
|
2698
2911
|
};
|
|
2699
2912
|
Relationships: [];
|
|
2700
2913
|
};
|
|
2914
|
+
document_bronregels: {
|
|
2915
|
+
Row: {
|
|
2916
|
+
bron: string;
|
|
2917
|
+
created_at: string;
|
|
2918
|
+
documenttype: string;
|
|
2919
|
+
herkomst: string;
|
|
2920
|
+
id: string;
|
|
2921
|
+
layout_id: string | null;
|
|
2922
|
+
updated_at: string;
|
|
2923
|
+
};
|
|
2924
|
+
Insert: {
|
|
2925
|
+
bron?: string;
|
|
2926
|
+
created_at?: string;
|
|
2927
|
+
documenttype: string;
|
|
2928
|
+
herkomst: string;
|
|
2929
|
+
id?: string;
|
|
2930
|
+
layout_id?: string | null;
|
|
2931
|
+
updated_at?: string;
|
|
2932
|
+
};
|
|
2933
|
+
Update: {
|
|
2934
|
+
bron?: string;
|
|
2935
|
+
created_at?: string;
|
|
2936
|
+
documenttype?: string;
|
|
2937
|
+
herkomst?: string;
|
|
2938
|
+
id?: string;
|
|
2939
|
+
layout_id?: string | null;
|
|
2940
|
+
updated_at?: string;
|
|
2941
|
+
};
|
|
2942
|
+
Relationships: [
|
|
2943
|
+
{
|
|
2944
|
+
foreignKeyName: "document_bronregels_layout_id_fkey";
|
|
2945
|
+
columns: ["layout_id"];
|
|
2946
|
+
isOneToOne: false;
|
|
2947
|
+
referencedRelation: "document_layouts";
|
|
2948
|
+
referencedColumns: ["id"];
|
|
2949
|
+
}
|
|
2950
|
+
];
|
|
2951
|
+
};
|
|
2701
2952
|
document_formaat_printers: {
|
|
2702
2953
|
Row: {
|
|
2703
2954
|
created_at: string;
|
|
@@ -2988,6 +3239,7 @@ export type Database = {
|
|
|
2988
3239
|
Row: {
|
|
2989
3240
|
actief: boolean;
|
|
2990
3241
|
breedte_mm: number;
|
|
3242
|
+
bron: string;
|
|
2991
3243
|
config: Json;
|
|
2992
3244
|
created_at: string;
|
|
2993
3245
|
created_by: string | null;
|
|
@@ -3005,12 +3257,14 @@ export type Database = {
|
|
|
3005
3257
|
orientatie: Database["public"]["Enums"]["doc_orientation"];
|
|
3006
3258
|
page_settings: Json;
|
|
3007
3259
|
papierformaat: string;
|
|
3260
|
+
systeem: boolean;
|
|
3008
3261
|
thumbnail_url: string | null;
|
|
3009
3262
|
updated_at: string;
|
|
3010
3263
|
};
|
|
3011
3264
|
Insert: {
|
|
3012
3265
|
actief?: boolean;
|
|
3013
3266
|
breedte_mm?: number;
|
|
3267
|
+
bron?: string;
|
|
3014
3268
|
config?: Json;
|
|
3015
3269
|
created_at?: string;
|
|
3016
3270
|
created_by?: string | null;
|
|
@@ -3028,12 +3282,14 @@ export type Database = {
|
|
|
3028
3282
|
orientatie?: Database["public"]["Enums"]["doc_orientation"];
|
|
3029
3283
|
page_settings?: Json;
|
|
3030
3284
|
papierformaat?: string;
|
|
3285
|
+
systeem?: boolean;
|
|
3031
3286
|
thumbnail_url?: string | null;
|
|
3032
3287
|
updated_at?: string;
|
|
3033
3288
|
};
|
|
3034
3289
|
Update: {
|
|
3035
3290
|
actief?: boolean;
|
|
3036
3291
|
breedte_mm?: number;
|
|
3292
|
+
bron?: string;
|
|
3037
3293
|
config?: Json;
|
|
3038
3294
|
created_at?: string;
|
|
3039
3295
|
created_by?: string | null;
|
|
@@ -3051,11 +3307,95 @@ export type Database = {
|
|
|
3051
3307
|
orientatie?: Database["public"]["Enums"]["doc_orientation"];
|
|
3052
3308
|
page_settings?: Json;
|
|
3053
3309
|
papierformaat?: string;
|
|
3310
|
+
systeem?: boolean;
|
|
3054
3311
|
thumbnail_url?: string | null;
|
|
3055
3312
|
updated_at?: string;
|
|
3056
3313
|
};
|
|
3057
3314
|
Relationships: [];
|
|
3058
3315
|
};
|
|
3316
|
+
document_printplek_printers: {
|
|
3317
|
+
Row: {
|
|
3318
|
+
created_at: string;
|
|
3319
|
+
documenttype: string;
|
|
3320
|
+
id: string;
|
|
3321
|
+
papierformaat: string | null;
|
|
3322
|
+
print_plek_id: string;
|
|
3323
|
+
printer_id: string | null;
|
|
3324
|
+
updated_at: string;
|
|
3325
|
+
};
|
|
3326
|
+
Insert: {
|
|
3327
|
+
created_at?: string;
|
|
3328
|
+
documenttype: string;
|
|
3329
|
+
id?: string;
|
|
3330
|
+
papierformaat?: string | null;
|
|
3331
|
+
print_plek_id: string;
|
|
3332
|
+
printer_id?: string | null;
|
|
3333
|
+
updated_at?: string;
|
|
3334
|
+
};
|
|
3335
|
+
Update: {
|
|
3336
|
+
created_at?: string;
|
|
3337
|
+
documenttype?: string;
|
|
3338
|
+
id?: string;
|
|
3339
|
+
papierformaat?: string | null;
|
|
3340
|
+
print_plek_id?: string;
|
|
3341
|
+
printer_id?: string | null;
|
|
3342
|
+
updated_at?: string;
|
|
3343
|
+
};
|
|
3344
|
+
Relationships: [
|
|
3345
|
+
{
|
|
3346
|
+
foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
|
|
3347
|
+
columns: ["print_plek_id"];
|
|
3348
|
+
isOneToOne: false;
|
|
3349
|
+
referencedRelation: "print_plekken";
|
|
3350
|
+
referencedColumns: ["id"];
|
|
3351
|
+
},
|
|
3352
|
+
{
|
|
3353
|
+
foreignKeyName: "document_printplek_printers_printer_id_fkey";
|
|
3354
|
+
columns: ["printer_id"];
|
|
3355
|
+
isOneToOne: false;
|
|
3356
|
+
referencedRelation: "printers";
|
|
3357
|
+
referencedColumns: ["id"];
|
|
3358
|
+
}
|
|
3359
|
+
];
|
|
3360
|
+
};
|
|
3361
|
+
document_werkplek_printers: {
|
|
3362
|
+
Row: {
|
|
3363
|
+
created_at: string;
|
|
3364
|
+
documenttype: string;
|
|
3365
|
+
id: string;
|
|
3366
|
+
papierformaat: string | null;
|
|
3367
|
+
printer_id: string | null;
|
|
3368
|
+
updated_at: string;
|
|
3369
|
+
werkplek: string;
|
|
3370
|
+
};
|
|
3371
|
+
Insert: {
|
|
3372
|
+
created_at?: string;
|
|
3373
|
+
documenttype: string;
|
|
3374
|
+
id?: string;
|
|
3375
|
+
papierformaat?: string | null;
|
|
3376
|
+
printer_id?: string | null;
|
|
3377
|
+
updated_at?: string;
|
|
3378
|
+
werkplek: string;
|
|
3379
|
+
};
|
|
3380
|
+
Update: {
|
|
3381
|
+
created_at?: string;
|
|
3382
|
+
documenttype?: string;
|
|
3383
|
+
id?: string;
|
|
3384
|
+
papierformaat?: string | null;
|
|
3385
|
+
printer_id?: string | null;
|
|
3386
|
+
updated_at?: string;
|
|
3387
|
+
werkplek?: string;
|
|
3388
|
+
};
|
|
3389
|
+
Relationships: [
|
|
3390
|
+
{
|
|
3391
|
+
foreignKeyName: "document_werkplek_printers_printer_id_fkey";
|
|
3392
|
+
columns: ["printer_id"];
|
|
3393
|
+
isOneToOne: false;
|
|
3394
|
+
referencedRelation: "printers";
|
|
3395
|
+
referencedColumns: ["id"];
|
|
3396
|
+
}
|
|
3397
|
+
];
|
|
3398
|
+
};
|
|
3059
3399
|
email_auth_connections: {
|
|
3060
3400
|
Row: {
|
|
3061
3401
|
access_token_encrypted: string | null;
|
|
@@ -6646,6 +6986,7 @@ export type Database = {
|
|
|
6646
6986
|
Row: {
|
|
6647
6987
|
buyer_organization_id: string | null;
|
|
6648
6988
|
connection_id: string;
|
|
6989
|
+
controlled_at: string | null;
|
|
6649
6990
|
created_at: string;
|
|
6650
6991
|
data: Json;
|
|
6651
6992
|
floriday_id: string;
|
|
@@ -6657,6 +6998,7 @@ export type Database = {
|
|
|
6657
6998
|
Insert: {
|
|
6658
6999
|
buyer_organization_id?: string | null;
|
|
6659
7000
|
connection_id: string;
|
|
7001
|
+
controlled_at?: string | null;
|
|
6660
7002
|
created_at?: string;
|
|
6661
7003
|
data: Json;
|
|
6662
7004
|
floriday_id: string;
|
|
@@ -6668,6 +7010,7 @@ export type Database = {
|
|
|
6668
7010
|
Update: {
|
|
6669
7011
|
buyer_organization_id?: string | null;
|
|
6670
7012
|
connection_id?: string;
|
|
7013
|
+
controlled_at?: string | null;
|
|
6671
7014
|
created_at?: string;
|
|
6672
7015
|
data?: Json;
|
|
6673
7016
|
floriday_id?: string;
|
|
@@ -7419,8 +7762,66 @@ export type Database = {
|
|
|
7419
7762
|
};
|
|
7420
7763
|
Relationships: [];
|
|
7421
7764
|
};
|
|
7765
|
+
invoice_items: {
|
|
7766
|
+
Row: {
|
|
7767
|
+
created_at: string;
|
|
7768
|
+
description: string;
|
|
7769
|
+
id: string;
|
|
7770
|
+
invoice_id: string;
|
|
7771
|
+
kind: string;
|
|
7772
|
+
quantity: number;
|
|
7773
|
+
sort_order: number;
|
|
7774
|
+
source_line_ref: string | null;
|
|
7775
|
+
total_cents: number;
|
|
7776
|
+
unit: string;
|
|
7777
|
+
unit_price_cents: number;
|
|
7778
|
+
};
|
|
7779
|
+
Insert: {
|
|
7780
|
+
created_at?: string;
|
|
7781
|
+
description?: string;
|
|
7782
|
+
id?: string;
|
|
7783
|
+
invoice_id: string;
|
|
7784
|
+
kind?: string;
|
|
7785
|
+
quantity?: number;
|
|
7786
|
+
sort_order?: number;
|
|
7787
|
+
source_line_ref?: string | null;
|
|
7788
|
+
total_cents?: number;
|
|
7789
|
+
unit?: string;
|
|
7790
|
+
unit_price_cents?: number;
|
|
7791
|
+
};
|
|
7792
|
+
Update: {
|
|
7793
|
+
created_at?: string;
|
|
7794
|
+
description?: string;
|
|
7795
|
+
id?: string;
|
|
7796
|
+
invoice_id?: string;
|
|
7797
|
+
kind?: string;
|
|
7798
|
+
quantity?: number;
|
|
7799
|
+
sort_order?: number;
|
|
7800
|
+
source_line_ref?: string | null;
|
|
7801
|
+
total_cents?: number;
|
|
7802
|
+
unit?: string;
|
|
7803
|
+
unit_price_cents?: number;
|
|
7804
|
+
};
|
|
7805
|
+
Relationships: [
|
|
7806
|
+
{
|
|
7807
|
+
foreignKeyName: "invoice_items_invoice_id_fkey";
|
|
7808
|
+
columns: ["invoice_id"];
|
|
7809
|
+
isOneToOne: false;
|
|
7810
|
+
referencedRelation: "invoices";
|
|
7811
|
+
referencedColumns: ["id"];
|
|
7812
|
+
},
|
|
7813
|
+
{
|
|
7814
|
+
foreignKeyName: "invoice_items_invoice_id_fkey";
|
|
7815
|
+
columns: ["invoice_id"];
|
|
7816
|
+
isOneToOne: false;
|
|
7817
|
+
referencedRelation: "uren_facturen";
|
|
7818
|
+
referencedColumns: ["id"];
|
|
7819
|
+
}
|
|
7820
|
+
];
|
|
7821
|
+
};
|
|
7422
7822
|
invoice_post_idempotency: {
|
|
7423
7823
|
Row: {
|
|
7824
|
+
administration_code: string;
|
|
7424
7825
|
client_request_id: string;
|
|
7425
7826
|
completed_at: string | null;
|
|
7426
7827
|
created_at: string;
|
|
@@ -7430,6 +7831,7 @@ export type Database = {
|
|
|
7430
7831
|
user_id: string;
|
|
7431
7832
|
};
|
|
7432
7833
|
Insert: {
|
|
7834
|
+
administration_code?: string;
|
|
7433
7835
|
client_request_id: string;
|
|
7434
7836
|
completed_at?: string | null;
|
|
7435
7837
|
created_at?: string;
|
|
@@ -7439,6 +7841,7 @@ export type Database = {
|
|
|
7439
7841
|
user_id: string;
|
|
7440
7842
|
};
|
|
7441
7843
|
Update: {
|
|
7844
|
+
administration_code?: string;
|
|
7442
7845
|
client_request_id?: string;
|
|
7443
7846
|
completed_at?: string | null;
|
|
7444
7847
|
created_at?: string;
|
|
@@ -7601,43 +8004,162 @@ export type Database = {
|
|
|
7601
8004
|
};
|
|
7602
8005
|
Relationships: [];
|
|
7603
8006
|
};
|
|
7604
|
-
|
|
8007
|
+
invoice_timing_settings: {
|
|
7605
8008
|
Row: {
|
|
8009
|
+
anchor: string;
|
|
8010
|
+
business_days_only: boolean;
|
|
7606
8011
|
created_at: string;
|
|
7607
|
-
|
|
7608
|
-
email: string | null;
|
|
8012
|
+
enabled: boolean;
|
|
7609
8013
|
id: string;
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
8014
|
+
offset_days: number;
|
|
8015
|
+
pickup_anchor: string;
|
|
8016
|
+
pickup_business_days_only: boolean;
|
|
8017
|
+
pickup_offset_days: number;
|
|
8018
|
+
pickup_time_of_day: string;
|
|
8019
|
+
singleton: boolean;
|
|
8020
|
+
time_of_day: string;
|
|
7613
8021
|
updated_at: string;
|
|
7614
8022
|
};
|
|
7615
8023
|
Insert: {
|
|
8024
|
+
anchor?: string;
|
|
8025
|
+
business_days_only?: boolean;
|
|
7616
8026
|
created_at?: string;
|
|
7617
|
-
|
|
7618
|
-
email?: string | null;
|
|
8027
|
+
enabled?: boolean;
|
|
7619
8028
|
id?: string;
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
8029
|
+
offset_days?: number;
|
|
8030
|
+
pickup_anchor?: string;
|
|
8031
|
+
pickup_business_days_only?: boolean;
|
|
8032
|
+
pickup_offset_days?: number;
|
|
8033
|
+
pickup_time_of_day?: string;
|
|
8034
|
+
singleton?: boolean;
|
|
8035
|
+
time_of_day?: string;
|
|
7623
8036
|
updated_at?: string;
|
|
7624
8037
|
};
|
|
7625
8038
|
Update: {
|
|
8039
|
+
anchor?: string;
|
|
8040
|
+
business_days_only?: boolean;
|
|
7626
8041
|
created_at?: string;
|
|
7627
|
-
|
|
7628
|
-
email?: string | null;
|
|
8042
|
+
enabled?: boolean;
|
|
7629
8043
|
id?: string;
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
8044
|
+
offset_days?: number;
|
|
8045
|
+
pickup_anchor?: string;
|
|
8046
|
+
pickup_business_days_only?: boolean;
|
|
8047
|
+
pickup_offset_days?: number;
|
|
8048
|
+
pickup_time_of_day?: string;
|
|
8049
|
+
singleton?: boolean;
|
|
8050
|
+
time_of_day?: string;
|
|
7633
8051
|
updated_at?: string;
|
|
7634
8052
|
};
|
|
7635
|
-
Relationships: [
|
|
7636
|
-
|
|
7637
|
-
|
|
7638
|
-
|
|
7639
|
-
|
|
7640
|
-
|
|
8053
|
+
Relationships: [];
|
|
8054
|
+
};
|
|
8055
|
+
invoices: {
|
|
8056
|
+
Row: {
|
|
8057
|
+
created_at: string;
|
|
8058
|
+
created_by: string | null;
|
|
8059
|
+
customer_id: string | null;
|
|
8060
|
+
customer_name: string | null;
|
|
8061
|
+
due_date: string | null;
|
|
8062
|
+
id: string;
|
|
8063
|
+
invoice_date: string;
|
|
8064
|
+
invoice_number: string | null;
|
|
8065
|
+
note: string | null;
|
|
8066
|
+
source_number: string | null;
|
|
8067
|
+
source_ref: string | null;
|
|
8068
|
+
source_type: string;
|
|
8069
|
+
status: string;
|
|
8070
|
+
subtotal_cents: number;
|
|
8071
|
+
total_cents: number;
|
|
8072
|
+
updated_at: string;
|
|
8073
|
+
vat_cents: number;
|
|
8074
|
+
vat_rate: number;
|
|
8075
|
+
};
|
|
8076
|
+
Insert: {
|
|
8077
|
+
created_at?: string;
|
|
8078
|
+
created_by?: string | null;
|
|
8079
|
+
customer_id?: string | null;
|
|
8080
|
+
customer_name?: string | null;
|
|
8081
|
+
due_date?: string | null;
|
|
8082
|
+
id?: string;
|
|
8083
|
+
invoice_date?: string;
|
|
8084
|
+
invoice_number?: string | null;
|
|
8085
|
+
note?: string | null;
|
|
8086
|
+
source_number?: string | null;
|
|
8087
|
+
source_ref?: string | null;
|
|
8088
|
+
source_type?: string;
|
|
8089
|
+
status?: string;
|
|
8090
|
+
subtotal_cents?: number;
|
|
8091
|
+
total_cents?: number;
|
|
8092
|
+
updated_at?: string;
|
|
8093
|
+
vat_cents?: number;
|
|
8094
|
+
vat_rate?: number;
|
|
8095
|
+
};
|
|
8096
|
+
Update: {
|
|
8097
|
+
created_at?: string;
|
|
8098
|
+
created_by?: string | null;
|
|
8099
|
+
customer_id?: string | null;
|
|
8100
|
+
customer_name?: string | null;
|
|
8101
|
+
due_date?: string | null;
|
|
8102
|
+
id?: string;
|
|
8103
|
+
invoice_date?: string;
|
|
8104
|
+
invoice_number?: string | null;
|
|
8105
|
+
note?: string | null;
|
|
8106
|
+
source_number?: string | null;
|
|
8107
|
+
source_ref?: string | null;
|
|
8108
|
+
source_type?: string;
|
|
8109
|
+
status?: string;
|
|
8110
|
+
subtotal_cents?: number;
|
|
8111
|
+
total_cents?: number;
|
|
8112
|
+
updated_at?: string;
|
|
8113
|
+
vat_cents?: number;
|
|
8114
|
+
vat_rate?: number;
|
|
8115
|
+
};
|
|
8116
|
+
Relationships: [
|
|
8117
|
+
{
|
|
8118
|
+
foreignKeyName: "invoices_customer_id_fkey";
|
|
8119
|
+
columns: ["customer_id"];
|
|
8120
|
+
isOneToOne: false;
|
|
8121
|
+
referencedRelation: "itk_customers";
|
|
8122
|
+
referencedColumns: ["id"];
|
|
8123
|
+
}
|
|
8124
|
+
];
|
|
8125
|
+
};
|
|
8126
|
+
itk_contact_persons: {
|
|
8127
|
+
Row: {
|
|
8128
|
+
created_at: string;
|
|
8129
|
+
customer_id: string;
|
|
8130
|
+
email: string | null;
|
|
8131
|
+
id: string;
|
|
8132
|
+
name: string;
|
|
8133
|
+
phone: string | null;
|
|
8134
|
+
role: string | null;
|
|
8135
|
+
updated_at: string;
|
|
8136
|
+
};
|
|
8137
|
+
Insert: {
|
|
8138
|
+
created_at?: string;
|
|
8139
|
+
customer_id: string;
|
|
8140
|
+
email?: string | null;
|
|
8141
|
+
id?: string;
|
|
8142
|
+
name: string;
|
|
8143
|
+
phone?: string | null;
|
|
8144
|
+
role?: string | null;
|
|
8145
|
+
updated_at?: string;
|
|
8146
|
+
};
|
|
8147
|
+
Update: {
|
|
8148
|
+
created_at?: string;
|
|
8149
|
+
customer_id?: string;
|
|
8150
|
+
email?: string | null;
|
|
8151
|
+
id?: string;
|
|
8152
|
+
name?: string;
|
|
8153
|
+
phone?: string | null;
|
|
8154
|
+
role?: string | null;
|
|
8155
|
+
updated_at?: string;
|
|
8156
|
+
};
|
|
8157
|
+
Relationships: [
|
|
8158
|
+
{
|
|
8159
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
8160
|
+
columns: ["customer_id"];
|
|
8161
|
+
isOneToOne: false;
|
|
8162
|
+
referencedRelation: "itk_customers";
|
|
7641
8163
|
referencedColumns: ["id"];
|
|
7642
8164
|
}
|
|
7643
8165
|
];
|
|
@@ -7805,178 +8327,438 @@ export type Database = {
|
|
|
7805
8327
|
};
|
|
7806
8328
|
Relationships: [];
|
|
7807
8329
|
};
|
|
7808
|
-
|
|
8330
|
+
itk_offerte_events: {
|
|
7809
8331
|
Row: {
|
|
7810
|
-
city: string | null;
|
|
7811
8332
|
created_at: string;
|
|
7812
|
-
|
|
8333
|
+
event_type: string;
|
|
7813
8334
|
id: string;
|
|
7814
|
-
|
|
7815
|
-
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
postcode: string | null;
|
|
7819
|
-
street: string | null;
|
|
7820
|
-
updated_at: string;
|
|
8335
|
+
metadata: Json;
|
|
8336
|
+
offerte_id: string;
|
|
8337
|
+
omschrijving: string | null;
|
|
8338
|
+
user_id: string | null;
|
|
7821
8339
|
};
|
|
7822
8340
|
Insert: {
|
|
7823
|
-
city?: string | null;
|
|
7824
8341
|
created_at?: string;
|
|
7825
|
-
|
|
8342
|
+
event_type: string;
|
|
7826
8343
|
id?: string;
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
postcode?: string | null;
|
|
7832
|
-
street?: string | null;
|
|
7833
|
-
updated_at?: string;
|
|
8344
|
+
metadata?: Json;
|
|
8345
|
+
offerte_id: string;
|
|
8346
|
+
omschrijving?: string | null;
|
|
8347
|
+
user_id?: string | null;
|
|
7834
8348
|
};
|
|
7835
8349
|
Update: {
|
|
7836
|
-
city?: string | null;
|
|
7837
8350
|
created_at?: string;
|
|
7838
|
-
|
|
8351
|
+
event_type?: string;
|
|
7839
8352
|
id?: string;
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
postcode?: string | null;
|
|
7845
|
-
street?: string | null;
|
|
7846
|
-
updated_at?: string;
|
|
8353
|
+
metadata?: Json;
|
|
8354
|
+
offerte_id?: string;
|
|
8355
|
+
omschrijving?: string | null;
|
|
8356
|
+
user_id?: string | null;
|
|
7847
8357
|
};
|
|
7848
8358
|
Relationships: [
|
|
7849
8359
|
{
|
|
7850
|
-
foreignKeyName: "
|
|
7851
|
-
columns: ["
|
|
8360
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
8361
|
+
columns: ["offerte_id"];
|
|
7852
8362
|
isOneToOne: false;
|
|
7853
|
-
referencedRelation: "
|
|
8363
|
+
referencedRelation: "itk_offertes";
|
|
7854
8364
|
referencedColumns: ["id"];
|
|
7855
8365
|
}
|
|
7856
8366
|
];
|
|
7857
8367
|
};
|
|
7858
|
-
|
|
8368
|
+
itk_offerte_regels: {
|
|
7859
8369
|
Row: {
|
|
7860
|
-
bestand_url: string;
|
|
7861
|
-
bestandsgrootte: number;
|
|
7862
|
-
bestandspad: string | null;
|
|
7863
|
-
bestandstype: string;
|
|
7864
|
-
breedte: number;
|
|
7865
|
-
categorie: string;
|
|
7866
8370
|
created_at: string;
|
|
7867
|
-
hash: string | null;
|
|
7868
|
-
hoogte: number;
|
|
7869
8371
|
id: string;
|
|
7870
|
-
|
|
7871
|
-
|
|
8372
|
+
line_total_cents: number;
|
|
8373
|
+
offerte_id: string;
|
|
7872
8374
|
omschrijving: string;
|
|
7873
|
-
|
|
8375
|
+
package_id: string | null;
|
|
8376
|
+
quantity: number;
|
|
8377
|
+
sort_order: number;
|
|
8378
|
+
source: string;
|
|
8379
|
+
unit_price_cents: number;
|
|
7874
8380
|
updated_at: string;
|
|
7875
8381
|
};
|
|
7876
8382
|
Insert: {
|
|
7877
|
-
bestand_url: string;
|
|
7878
|
-
bestandsgrootte?: number;
|
|
7879
|
-
bestandspad?: string | null;
|
|
7880
|
-
bestandstype?: string;
|
|
7881
|
-
breedte?: number;
|
|
7882
|
-
categorie?: string;
|
|
7883
8383
|
created_at?: string;
|
|
7884
|
-
hash?: string | null;
|
|
7885
|
-
hoogte?: number;
|
|
7886
8384
|
id?: string;
|
|
7887
|
-
|
|
7888
|
-
|
|
8385
|
+
line_total_cents?: number;
|
|
8386
|
+
offerte_id: string;
|
|
7889
8387
|
omschrijving?: string;
|
|
7890
|
-
|
|
8388
|
+
package_id?: string | null;
|
|
8389
|
+
quantity?: number;
|
|
8390
|
+
sort_order?: number;
|
|
8391
|
+
source?: string;
|
|
8392
|
+
unit_price_cents?: number;
|
|
7891
8393
|
updated_at?: string;
|
|
7892
8394
|
};
|
|
7893
8395
|
Update: {
|
|
7894
|
-
bestand_url?: string;
|
|
7895
|
-
bestandsgrootte?: number;
|
|
7896
|
-
bestandspad?: string | null;
|
|
7897
|
-
bestandstype?: string;
|
|
7898
|
-
breedte?: number;
|
|
7899
|
-
categorie?: string;
|
|
7900
8396
|
created_at?: string;
|
|
7901
|
-
hash?: string | null;
|
|
7902
|
-
hoogte?: number;
|
|
7903
8397
|
id?: string;
|
|
7904
|
-
|
|
7905
|
-
|
|
8398
|
+
line_total_cents?: number;
|
|
8399
|
+
offerte_id?: string;
|
|
7906
8400
|
omschrijving?: string;
|
|
7907
|
-
|
|
8401
|
+
package_id?: string | null;
|
|
8402
|
+
quantity?: number;
|
|
8403
|
+
sort_order?: number;
|
|
8404
|
+
source?: string;
|
|
8405
|
+
unit_price_cents?: number;
|
|
7908
8406
|
updated_at?: string;
|
|
7909
8407
|
};
|
|
7910
|
-
Relationships: [
|
|
8408
|
+
Relationships: [
|
|
8409
|
+
{
|
|
8410
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
8411
|
+
columns: ["offerte_id"];
|
|
8412
|
+
isOneToOne: false;
|
|
8413
|
+
referencedRelation: "itk_offertes";
|
|
8414
|
+
referencedColumns: ["id"];
|
|
8415
|
+
},
|
|
8416
|
+
{
|
|
8417
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
8418
|
+
columns: ["package_id"];
|
|
8419
|
+
isOneToOne: false;
|
|
8420
|
+
referencedRelation: "werkbon_packages";
|
|
8421
|
+
referencedColumns: ["id"];
|
|
8422
|
+
}
|
|
8423
|
+
];
|
|
7911
8424
|
};
|
|
7912
|
-
|
|
8425
|
+
itk_offerte_settings: {
|
|
7913
8426
|
Row: {
|
|
8427
|
+
auto_convert_binnen_mandaat: boolean;
|
|
7914
8428
|
created_at: string;
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
end_date: string;
|
|
7918
|
-
end_time: string | null;
|
|
7919
|
-
hours: number | null;
|
|
8429
|
+
default_geldigheid_dagen: number;
|
|
8430
|
+
default_vat_rate: number;
|
|
7920
8431
|
id: string;
|
|
7921
|
-
|
|
7922
|
-
monteur_id: string | null;
|
|
7923
|
-
reason: string | null;
|
|
7924
|
-
start_date: string;
|
|
7925
|
-
start_time: string | null;
|
|
7926
|
-
status: string;
|
|
7927
|
-
tenant_id: string;
|
|
8432
|
+
singleton: boolean;
|
|
7928
8433
|
updated_at: string;
|
|
7929
|
-
user_id: string;
|
|
7930
8434
|
};
|
|
7931
8435
|
Insert: {
|
|
8436
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7932
8437
|
created_at?: string;
|
|
7933
|
-
|
|
7934
|
-
|
|
7935
|
-
end_date: string;
|
|
7936
|
-
end_time?: string | null;
|
|
7937
|
-
hours?: number | null;
|
|
8438
|
+
default_geldigheid_dagen?: number;
|
|
8439
|
+
default_vat_rate?: number;
|
|
7938
8440
|
id?: string;
|
|
7939
|
-
|
|
7940
|
-
monteur_id?: string | null;
|
|
7941
|
-
reason?: string | null;
|
|
7942
|
-
start_date: string;
|
|
7943
|
-
start_time?: string | null;
|
|
7944
|
-
status?: string;
|
|
7945
|
-
tenant_id?: string;
|
|
8441
|
+
singleton?: boolean;
|
|
7946
8442
|
updated_at?: string;
|
|
7947
|
-
user_id: string;
|
|
7948
8443
|
};
|
|
7949
8444
|
Update: {
|
|
8445
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7950
8446
|
created_at?: string;
|
|
7951
|
-
|
|
7952
|
-
|
|
7953
|
-
end_date?: string;
|
|
7954
|
-
end_time?: string | null;
|
|
7955
|
-
hours?: number | null;
|
|
8447
|
+
default_geldigheid_dagen?: number;
|
|
8448
|
+
default_vat_rate?: number;
|
|
7956
8449
|
id?: string;
|
|
7957
|
-
|
|
7958
|
-
monteur_id?: string | null;
|
|
7959
|
-
reason?: string | null;
|
|
7960
|
-
start_date?: string;
|
|
7961
|
-
start_time?: string | null;
|
|
7962
|
-
status?: string;
|
|
7963
|
-
tenant_id?: string;
|
|
8450
|
+
singleton?: boolean;
|
|
7964
8451
|
updated_at?: string;
|
|
7965
|
-
user_id?: string;
|
|
7966
8452
|
};
|
|
7967
|
-
Relationships: [
|
|
7968
|
-
|
|
7969
|
-
|
|
7970
|
-
|
|
8453
|
+
Relationships: [];
|
|
8454
|
+
};
|
|
8455
|
+
itk_offertes: {
|
|
8456
|
+
Row: {
|
|
8457
|
+
ai_generated: boolean;
|
|
8458
|
+
approved_at: string | null;
|
|
8459
|
+
binnen_mandaat: boolean;
|
|
8460
|
+
contact_id: string | null;
|
|
8461
|
+
converted_at: string | null;
|
|
8462
|
+
created_at: string;
|
|
8463
|
+
created_by: string | null;
|
|
8464
|
+
customer_id: string | null;
|
|
8465
|
+
follow_up_werkbon_id: string | null;
|
|
8466
|
+
id: string;
|
|
8467
|
+
jaar: number;
|
|
8468
|
+
mandaat_restant_cents: number;
|
|
8469
|
+
notities: string | null;
|
|
8470
|
+
offerte_number: string | null;
|
|
8471
|
+
omschrijving: string;
|
|
8472
|
+
rejected_at: string | null;
|
|
8473
|
+
sent_at: string | null;
|
|
8474
|
+
source_number: string | null;
|
|
8475
|
+
source_ref: string | null;
|
|
8476
|
+
source_type: string;
|
|
8477
|
+
status: string;
|
|
8478
|
+
subtotal_cents: number;
|
|
8479
|
+
total_cents: number;
|
|
8480
|
+
updated_at: string;
|
|
8481
|
+
valid_until: string | null;
|
|
8482
|
+
vat_cents: number;
|
|
8483
|
+
vat_rate: number;
|
|
8484
|
+
viewed_at: string | null;
|
|
8485
|
+
volgnummer: number | null;
|
|
8486
|
+
werkbon_id: string | null;
|
|
8487
|
+
work_location_id: string | null;
|
|
8488
|
+
};
|
|
8489
|
+
Insert: {
|
|
8490
|
+
ai_generated?: boolean;
|
|
8491
|
+
approved_at?: string | null;
|
|
8492
|
+
binnen_mandaat?: boolean;
|
|
8493
|
+
contact_id?: string | null;
|
|
8494
|
+
converted_at?: string | null;
|
|
8495
|
+
created_at?: string;
|
|
8496
|
+
created_by?: string | null;
|
|
8497
|
+
customer_id?: string | null;
|
|
8498
|
+
follow_up_werkbon_id?: string | null;
|
|
8499
|
+
id?: string;
|
|
8500
|
+
jaar?: number;
|
|
8501
|
+
mandaat_restant_cents?: number;
|
|
8502
|
+
notities?: string | null;
|
|
8503
|
+
offerte_number?: string | null;
|
|
8504
|
+
omschrijving?: string;
|
|
8505
|
+
rejected_at?: string | null;
|
|
8506
|
+
sent_at?: string | null;
|
|
8507
|
+
source_number?: string | null;
|
|
8508
|
+
source_ref?: string | null;
|
|
8509
|
+
source_type?: string;
|
|
8510
|
+
status?: string;
|
|
8511
|
+
subtotal_cents?: number;
|
|
8512
|
+
total_cents?: number;
|
|
8513
|
+
updated_at?: string;
|
|
8514
|
+
valid_until?: string | null;
|
|
8515
|
+
vat_cents?: number;
|
|
8516
|
+
vat_rate?: number;
|
|
8517
|
+
viewed_at?: string | null;
|
|
8518
|
+
volgnummer?: number | null;
|
|
8519
|
+
werkbon_id?: string | null;
|
|
8520
|
+
work_location_id?: string | null;
|
|
8521
|
+
};
|
|
8522
|
+
Update: {
|
|
8523
|
+
ai_generated?: boolean;
|
|
8524
|
+
approved_at?: string | null;
|
|
8525
|
+
binnen_mandaat?: boolean;
|
|
8526
|
+
contact_id?: string | null;
|
|
8527
|
+
converted_at?: string | null;
|
|
8528
|
+
created_at?: string;
|
|
8529
|
+
created_by?: string | null;
|
|
8530
|
+
customer_id?: string | null;
|
|
8531
|
+
follow_up_werkbon_id?: string | null;
|
|
8532
|
+
id?: string;
|
|
8533
|
+
jaar?: number;
|
|
8534
|
+
mandaat_restant_cents?: number;
|
|
8535
|
+
notities?: string | null;
|
|
8536
|
+
offerte_number?: string | null;
|
|
8537
|
+
omschrijving?: string;
|
|
8538
|
+
rejected_at?: string | null;
|
|
8539
|
+
sent_at?: string | null;
|
|
8540
|
+
source_number?: string | null;
|
|
8541
|
+
source_ref?: string | null;
|
|
8542
|
+
source_type?: string;
|
|
8543
|
+
status?: string;
|
|
8544
|
+
subtotal_cents?: number;
|
|
8545
|
+
total_cents?: number;
|
|
8546
|
+
updated_at?: string;
|
|
8547
|
+
valid_until?: string | null;
|
|
8548
|
+
vat_cents?: number;
|
|
8549
|
+
vat_rate?: number;
|
|
8550
|
+
viewed_at?: string | null;
|
|
8551
|
+
volgnummer?: number | null;
|
|
8552
|
+
werkbon_id?: string | null;
|
|
8553
|
+
work_location_id?: string | null;
|
|
8554
|
+
};
|
|
8555
|
+
Relationships: [
|
|
8556
|
+
{
|
|
8557
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
8558
|
+
columns: ["contact_id"];
|
|
8559
|
+
isOneToOne: false;
|
|
8560
|
+
referencedRelation: "itk_contact_persons";
|
|
8561
|
+
referencedColumns: ["id"];
|
|
8562
|
+
},
|
|
8563
|
+
{
|
|
8564
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
8565
|
+
columns: ["customer_id"];
|
|
8566
|
+
isOneToOne: false;
|
|
8567
|
+
referencedRelation: "itk_customers";
|
|
8568
|
+
referencedColumns: ["id"];
|
|
8569
|
+
},
|
|
8570
|
+
{
|
|
8571
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
8572
|
+
columns: ["follow_up_werkbon_id"];
|
|
8573
|
+
isOneToOne: false;
|
|
8574
|
+
referencedRelation: "werkbonnen";
|
|
8575
|
+
referencedColumns: ["id"];
|
|
8576
|
+
},
|
|
8577
|
+
{
|
|
8578
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
8579
|
+
columns: ["werkbon_id"];
|
|
8580
|
+
isOneToOne: false;
|
|
8581
|
+
referencedRelation: "werkbonnen";
|
|
8582
|
+
referencedColumns: ["id"];
|
|
8583
|
+
},
|
|
8584
|
+
{
|
|
8585
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
8586
|
+
columns: ["work_location_id"];
|
|
8587
|
+
isOneToOne: false;
|
|
8588
|
+
referencedRelation: "itk_work_locations";
|
|
8589
|
+
referencedColumns: ["id"];
|
|
8590
|
+
}
|
|
8591
|
+
];
|
|
8592
|
+
};
|
|
8593
|
+
itk_work_locations: {
|
|
8594
|
+
Row: {
|
|
8595
|
+
city: string | null;
|
|
8596
|
+
created_at: string;
|
|
8597
|
+
customer_id: string;
|
|
8598
|
+
id: string;
|
|
8599
|
+
instructions: string | null;
|
|
8600
|
+
label: string;
|
|
8601
|
+
latitude: number | null;
|
|
8602
|
+
longitude: number | null;
|
|
8603
|
+
postcode: string | null;
|
|
8604
|
+
street: string | null;
|
|
8605
|
+
updated_at: string;
|
|
8606
|
+
};
|
|
8607
|
+
Insert: {
|
|
8608
|
+
city?: string | null;
|
|
8609
|
+
created_at?: string;
|
|
8610
|
+
customer_id: string;
|
|
8611
|
+
id?: string;
|
|
8612
|
+
instructions?: string | null;
|
|
8613
|
+
label: string;
|
|
8614
|
+
latitude?: number | null;
|
|
8615
|
+
longitude?: number | null;
|
|
8616
|
+
postcode?: string | null;
|
|
8617
|
+
street?: string | null;
|
|
8618
|
+
updated_at?: string;
|
|
8619
|
+
};
|
|
8620
|
+
Update: {
|
|
8621
|
+
city?: string | null;
|
|
8622
|
+
created_at?: string;
|
|
8623
|
+
customer_id?: string;
|
|
8624
|
+
id?: string;
|
|
8625
|
+
instructions?: string | null;
|
|
8626
|
+
label?: string;
|
|
8627
|
+
latitude?: number | null;
|
|
8628
|
+
longitude?: number | null;
|
|
8629
|
+
postcode?: string | null;
|
|
8630
|
+
street?: string | null;
|
|
8631
|
+
updated_at?: string;
|
|
8632
|
+
};
|
|
8633
|
+
Relationships: [
|
|
8634
|
+
{
|
|
8635
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
8636
|
+
columns: ["customer_id"];
|
|
8637
|
+
isOneToOne: false;
|
|
8638
|
+
referencedRelation: "itk_customers";
|
|
8639
|
+
referencedColumns: ["id"];
|
|
8640
|
+
}
|
|
8641
|
+
];
|
|
8642
|
+
};
|
|
8643
|
+
layout_logos: {
|
|
8644
|
+
Row: {
|
|
8645
|
+
bestand_url: string;
|
|
8646
|
+
bestandsgrootte: number;
|
|
8647
|
+
bestandspad: string | null;
|
|
8648
|
+
bestandstype: string;
|
|
8649
|
+
breedte: number;
|
|
8650
|
+
categorie: string;
|
|
8651
|
+
created_at: string;
|
|
8652
|
+
hash: string | null;
|
|
8653
|
+
hoogte: number;
|
|
8654
|
+
id: string;
|
|
8655
|
+
is_standaard: boolean;
|
|
8656
|
+
naam: string;
|
|
8657
|
+
omschrijving: string;
|
|
8658
|
+
transparant: boolean;
|
|
8659
|
+
updated_at: string;
|
|
8660
|
+
};
|
|
8661
|
+
Insert: {
|
|
8662
|
+
bestand_url: string;
|
|
8663
|
+
bestandsgrootte?: number;
|
|
8664
|
+
bestandspad?: string | null;
|
|
8665
|
+
bestandstype?: string;
|
|
8666
|
+
breedte?: number;
|
|
8667
|
+
categorie?: string;
|
|
8668
|
+
created_at?: string;
|
|
8669
|
+
hash?: string | null;
|
|
8670
|
+
hoogte?: number;
|
|
8671
|
+
id?: string;
|
|
8672
|
+
is_standaard?: boolean;
|
|
8673
|
+
naam: string;
|
|
8674
|
+
omschrijving?: string;
|
|
8675
|
+
transparant?: boolean;
|
|
8676
|
+
updated_at?: string;
|
|
8677
|
+
};
|
|
8678
|
+
Update: {
|
|
8679
|
+
bestand_url?: string;
|
|
8680
|
+
bestandsgrootte?: number;
|
|
8681
|
+
bestandspad?: string | null;
|
|
8682
|
+
bestandstype?: string;
|
|
8683
|
+
breedte?: number;
|
|
8684
|
+
categorie?: string;
|
|
8685
|
+
created_at?: string;
|
|
8686
|
+
hash?: string | null;
|
|
8687
|
+
hoogte?: number;
|
|
8688
|
+
id?: string;
|
|
8689
|
+
is_standaard?: boolean;
|
|
8690
|
+
naam?: string;
|
|
8691
|
+
omschrijving?: string;
|
|
8692
|
+
transparant?: boolean;
|
|
8693
|
+
updated_at?: string;
|
|
8694
|
+
};
|
|
8695
|
+
Relationships: [];
|
|
8696
|
+
};
|
|
8697
|
+
leave_requests: {
|
|
8698
|
+
Row: {
|
|
8699
|
+
created_at: string;
|
|
8700
|
+
decided_at: string | null;
|
|
8701
|
+
decided_by: string | null;
|
|
8702
|
+
end_date: string;
|
|
8703
|
+
end_time: string | null;
|
|
8704
|
+
hours: number | null;
|
|
8705
|
+
id: string;
|
|
8706
|
+
leave_type: string;
|
|
8707
|
+
monteur_id: string | null;
|
|
8708
|
+
reason: string | null;
|
|
8709
|
+
start_date: string;
|
|
8710
|
+
start_time: string | null;
|
|
8711
|
+
status: string;
|
|
8712
|
+
updated_at: string;
|
|
8713
|
+
user_id: string;
|
|
8714
|
+
};
|
|
8715
|
+
Insert: {
|
|
8716
|
+
created_at?: string;
|
|
8717
|
+
decided_at?: string | null;
|
|
8718
|
+
decided_by?: string | null;
|
|
8719
|
+
end_date: string;
|
|
8720
|
+
end_time?: string | null;
|
|
8721
|
+
hours?: number | null;
|
|
8722
|
+
id?: string;
|
|
8723
|
+
leave_type?: string;
|
|
8724
|
+
monteur_id?: string | null;
|
|
8725
|
+
reason?: string | null;
|
|
8726
|
+
start_date: string;
|
|
8727
|
+
start_time?: string | null;
|
|
8728
|
+
status?: string;
|
|
8729
|
+
updated_at?: string;
|
|
8730
|
+
user_id: string;
|
|
8731
|
+
};
|
|
8732
|
+
Update: {
|
|
8733
|
+
created_at?: string;
|
|
8734
|
+
decided_at?: string | null;
|
|
8735
|
+
decided_by?: string | null;
|
|
8736
|
+
end_date?: string;
|
|
8737
|
+
end_time?: string | null;
|
|
8738
|
+
hours?: number | null;
|
|
8739
|
+
id?: string;
|
|
8740
|
+
leave_type?: string;
|
|
8741
|
+
monteur_id?: string | null;
|
|
8742
|
+
reason?: string | null;
|
|
8743
|
+
start_date?: string;
|
|
8744
|
+
start_time?: string | null;
|
|
8745
|
+
status?: string;
|
|
8746
|
+
updated_at?: string;
|
|
8747
|
+
user_id?: string;
|
|
8748
|
+
};
|
|
8749
|
+
Relationships: [
|
|
8750
|
+
{
|
|
8751
|
+
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
8752
|
+
columns: ["monteur_id"];
|
|
7971
8753
|
isOneToOne: false;
|
|
7972
|
-
referencedRelation: "
|
|
8754
|
+
referencedRelation: "profiles";
|
|
7973
8755
|
referencedColumns: ["id"];
|
|
7974
8756
|
},
|
|
7975
8757
|
{
|
|
7976
8758
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
7977
8759
|
columns: ["user_id"];
|
|
7978
8760
|
isOneToOne: false;
|
|
7979
|
-
referencedRelation: "
|
|
8761
|
+
referencedRelation: "profiles";
|
|
7980
8762
|
referencedColumns: ["id"];
|
|
7981
8763
|
}
|
|
7982
8764
|
];
|
|
@@ -8733,6 +9515,10 @@ export type Database = {
|
|
|
8733
9515
|
id: string;
|
|
8734
9516
|
last_error: string | null;
|
|
8735
9517
|
last_error_at: string | null;
|
|
9518
|
+
last_error_code: string | null;
|
|
9519
|
+
last_gateway_status: number | null;
|
|
9520
|
+
last_queued_at: string | null;
|
|
9521
|
+
last_response: Json | null;
|
|
8736
9522
|
last_sent_hash: string | null;
|
|
8737
9523
|
locked_by: string | null;
|
|
8738
9524
|
locked_until: string | null;
|
|
@@ -8753,6 +9539,10 @@ export type Database = {
|
|
|
8753
9539
|
id?: string;
|
|
8754
9540
|
last_error?: string | null;
|
|
8755
9541
|
last_error_at?: string | null;
|
|
9542
|
+
last_error_code?: string | null;
|
|
9543
|
+
last_gateway_status?: number | null;
|
|
9544
|
+
last_queued_at?: string | null;
|
|
9545
|
+
last_response?: Json | null;
|
|
8756
9546
|
last_sent_hash?: string | null;
|
|
8757
9547
|
locked_by?: string | null;
|
|
8758
9548
|
locked_until?: string | null;
|
|
@@ -8773,6 +9563,10 @@ export type Database = {
|
|
|
8773
9563
|
id?: string;
|
|
8774
9564
|
last_error?: string | null;
|
|
8775
9565
|
last_error_at?: string | null;
|
|
9566
|
+
last_error_code?: string | null;
|
|
9567
|
+
last_gateway_status?: number | null;
|
|
9568
|
+
last_queued_at?: string | null;
|
|
9569
|
+
last_response?: Json | null;
|
|
8776
9570
|
last_sent_hash?: string | null;
|
|
8777
9571
|
locked_by?: string | null;
|
|
8778
9572
|
locked_until?: string | null;
|
|
@@ -8867,10 +9661,49 @@ export type Database = {
|
|
|
8867
9661
|
};
|
|
8868
9662
|
Relationships: [];
|
|
8869
9663
|
};
|
|
8870
|
-
|
|
9664
|
+
logistics_plan_queue: {
|
|
8871
9665
|
Row: {
|
|
8872
|
-
|
|
8873
|
-
|
|
9666
|
+
attempts: number;
|
|
9667
|
+
claimed_at: string | null;
|
|
9668
|
+
enqueued_at: string;
|
|
9669
|
+
error: string | null;
|
|
9670
|
+
id: string;
|
|
9671
|
+
next_attempt_at: string;
|
|
9672
|
+
order_id: string;
|
|
9673
|
+
reason: string;
|
|
9674
|
+
status: string;
|
|
9675
|
+
updated_at: string;
|
|
9676
|
+
};
|
|
9677
|
+
Insert: {
|
|
9678
|
+
attempts?: number;
|
|
9679
|
+
claimed_at?: string | null;
|
|
9680
|
+
enqueued_at?: string;
|
|
9681
|
+
error?: string | null;
|
|
9682
|
+
id?: string;
|
|
9683
|
+
next_attempt_at?: string;
|
|
9684
|
+
order_id: string;
|
|
9685
|
+
reason?: string;
|
|
9686
|
+
status?: string;
|
|
9687
|
+
updated_at?: string;
|
|
9688
|
+
};
|
|
9689
|
+
Update: {
|
|
9690
|
+
attempts?: number;
|
|
9691
|
+
claimed_at?: string | null;
|
|
9692
|
+
enqueued_at?: string;
|
|
9693
|
+
error?: string | null;
|
|
9694
|
+
id?: string;
|
|
9695
|
+
next_attempt_at?: string;
|
|
9696
|
+
order_id?: string;
|
|
9697
|
+
reason?: string;
|
|
9698
|
+
status?: string;
|
|
9699
|
+
updated_at?: string;
|
|
9700
|
+
};
|
|
9701
|
+
Relationships: [];
|
|
9702
|
+
};
|
|
9703
|
+
logistics_plan_runs: {
|
|
9704
|
+
Row: {
|
|
9705
|
+
created_at: string;
|
|
9706
|
+
error: string | null;
|
|
8874
9707
|
id: string;
|
|
8875
9708
|
input: Json;
|
|
8876
9709
|
order_ref: string;
|
|
@@ -8945,6 +9778,24 @@ export type Database = {
|
|
|
8945
9778
|
}
|
|
8946
9779
|
];
|
|
8947
9780
|
};
|
|
9781
|
+
logistics_plan_settings: {
|
|
9782
|
+
Row: {
|
|
9783
|
+
key: string;
|
|
9784
|
+
updated_at: string;
|
|
9785
|
+
value: string;
|
|
9786
|
+
};
|
|
9787
|
+
Insert: {
|
|
9788
|
+
key: string;
|
|
9789
|
+
updated_at?: string;
|
|
9790
|
+
value: string;
|
|
9791
|
+
};
|
|
9792
|
+
Update: {
|
|
9793
|
+
key?: string;
|
|
9794
|
+
updated_at?: string;
|
|
9795
|
+
value?: string;
|
|
9796
|
+
};
|
|
9797
|
+
Relationships: [];
|
|
9798
|
+
};
|
|
8948
9799
|
logistics_rebuffer_state: {
|
|
8949
9800
|
Row: {
|
|
8950
9801
|
created_at: string;
|
|
@@ -10051,79 +10902,445 @@ export type Database = {
|
|
|
10051
10902
|
component_type: string;
|
|
10052
10903
|
created_at?: string;
|
|
10053
10904
|
id?: string;
|
|
10054
|
-
manufacture_product_id: string;
|
|
10055
|
-
product_group_id?: string | null;
|
|
10056
|
-
quantity?: number;
|
|
10057
|
-
trade_item_id?: string | null;
|
|
10058
|
-
unit?: string;
|
|
10905
|
+
manufacture_product_id: string;
|
|
10906
|
+
product_group_id?: string | null;
|
|
10907
|
+
quantity?: number;
|
|
10908
|
+
trade_item_id?: string | null;
|
|
10909
|
+
unit?: string;
|
|
10910
|
+
};
|
|
10911
|
+
Update: {
|
|
10912
|
+
component_type?: string;
|
|
10913
|
+
created_at?: string;
|
|
10914
|
+
id?: string;
|
|
10915
|
+
manufacture_product_id?: string;
|
|
10916
|
+
product_group_id?: string | null;
|
|
10917
|
+
quantity?: number;
|
|
10918
|
+
trade_item_id?: string | null;
|
|
10919
|
+
unit?: string;
|
|
10920
|
+
};
|
|
10921
|
+
Relationships: [
|
|
10922
|
+
{
|
|
10923
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
10924
|
+
columns: ["manufacture_product_id"];
|
|
10925
|
+
isOneToOne: false;
|
|
10926
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
10927
|
+
referencedColumns: ["manufacture_product_id"];
|
|
10928
|
+
},
|
|
10929
|
+
{
|
|
10930
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
10931
|
+
columns: ["manufacture_product_id"];
|
|
10932
|
+
isOneToOne: false;
|
|
10933
|
+
referencedRelation: "manufacture_products";
|
|
10934
|
+
referencedColumns: ["id"];
|
|
10935
|
+
},
|
|
10936
|
+
{
|
|
10937
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
10938
|
+
columns: ["product_group_id"];
|
|
10939
|
+
isOneToOne: false;
|
|
10940
|
+
referencedRelation: "product_groups";
|
|
10941
|
+
referencedColumns: ["id"];
|
|
10942
|
+
}
|
|
10943
|
+
];
|
|
10944
|
+
};
|
|
10945
|
+
manufacture_products: {
|
|
10946
|
+
Row: {
|
|
10947
|
+
created_at: string;
|
|
10948
|
+
description: string | null;
|
|
10949
|
+
id: string;
|
|
10950
|
+
is_active: boolean;
|
|
10951
|
+
name: string;
|
|
10952
|
+
produced_stock: number;
|
|
10953
|
+
product_code: string;
|
|
10954
|
+
tenant_id: string;
|
|
10955
|
+
updated_at: string;
|
|
10956
|
+
};
|
|
10957
|
+
Insert: {
|
|
10958
|
+
created_at?: string;
|
|
10959
|
+
description?: string | null;
|
|
10960
|
+
id?: string;
|
|
10961
|
+
is_active?: boolean;
|
|
10962
|
+
name: string;
|
|
10963
|
+
produced_stock?: number;
|
|
10964
|
+
product_code: string;
|
|
10965
|
+
tenant_id: string;
|
|
10966
|
+
updated_at?: string;
|
|
10967
|
+
};
|
|
10968
|
+
Update: {
|
|
10969
|
+
created_at?: string;
|
|
10970
|
+
description?: string | null;
|
|
10971
|
+
id?: string;
|
|
10972
|
+
is_active?: boolean;
|
|
10973
|
+
name?: string;
|
|
10974
|
+
produced_stock?: number;
|
|
10975
|
+
product_code?: string;
|
|
10976
|
+
tenant_id?: string;
|
|
10977
|
+
updated_at?: string;
|
|
10978
|
+
};
|
|
10979
|
+
Relationships: [];
|
|
10980
|
+
};
|
|
10981
|
+
maps_addresses: {
|
|
10982
|
+
Row: {
|
|
10983
|
+
address_hash: string;
|
|
10984
|
+
created_at: string;
|
|
10985
|
+
error_reason: string | null;
|
|
10986
|
+
formatted_address: string | null;
|
|
10987
|
+
id: string;
|
|
10988
|
+
lat: number | null;
|
|
10989
|
+
lng: number | null;
|
|
10990
|
+
place_id: string | null;
|
|
10991
|
+
raw_address: string;
|
|
10992
|
+
resolved_at: string | null;
|
|
10993
|
+
status: string;
|
|
10994
|
+
updated_at: string;
|
|
10995
|
+
};
|
|
10996
|
+
Insert: {
|
|
10997
|
+
address_hash: string;
|
|
10998
|
+
created_at?: string;
|
|
10999
|
+
error_reason?: string | null;
|
|
11000
|
+
formatted_address?: string | null;
|
|
11001
|
+
id?: string;
|
|
11002
|
+
lat?: number | null;
|
|
11003
|
+
lng?: number | null;
|
|
11004
|
+
place_id?: string | null;
|
|
11005
|
+
raw_address: string;
|
|
11006
|
+
resolved_at?: string | null;
|
|
11007
|
+
status?: string;
|
|
11008
|
+
updated_at?: string;
|
|
11009
|
+
};
|
|
11010
|
+
Update: {
|
|
11011
|
+
address_hash?: string;
|
|
11012
|
+
created_at?: string;
|
|
11013
|
+
error_reason?: string | null;
|
|
11014
|
+
formatted_address?: string | null;
|
|
11015
|
+
id?: string;
|
|
11016
|
+
lat?: number | null;
|
|
11017
|
+
lng?: number | null;
|
|
11018
|
+
place_id?: string | null;
|
|
11019
|
+
raw_address?: string;
|
|
11020
|
+
resolved_at?: string | null;
|
|
11021
|
+
status?: string;
|
|
11022
|
+
updated_at?: string;
|
|
11023
|
+
};
|
|
11024
|
+
Relationships: [];
|
|
11025
|
+
};
|
|
11026
|
+
maps_request_queue: {
|
|
11027
|
+
Row: {
|
|
11028
|
+
attempts: number;
|
|
11029
|
+
created_at: string;
|
|
11030
|
+
destination_hash: string | null;
|
|
11031
|
+
id: string;
|
|
11032
|
+
kind: string;
|
|
11033
|
+
last_error: string | null;
|
|
11034
|
+
mode: string;
|
|
11035
|
+
origin_hash: string | null;
|
|
11036
|
+
processed_at: string | null;
|
|
11037
|
+
raw_destination: string | null;
|
|
11038
|
+
raw_origin: string | null;
|
|
11039
|
+
requested_by: string | null;
|
|
11040
|
+
status: string;
|
|
11041
|
+
updated_at: string;
|
|
11042
|
+
};
|
|
11043
|
+
Insert: {
|
|
11044
|
+
attempts?: number;
|
|
11045
|
+
created_at?: string;
|
|
11046
|
+
destination_hash?: string | null;
|
|
11047
|
+
id?: string;
|
|
11048
|
+
kind: string;
|
|
11049
|
+
last_error?: string | null;
|
|
11050
|
+
mode?: string;
|
|
11051
|
+
origin_hash?: string | null;
|
|
11052
|
+
processed_at?: string | null;
|
|
11053
|
+
raw_destination?: string | null;
|
|
11054
|
+
raw_origin?: string | null;
|
|
11055
|
+
requested_by?: string | null;
|
|
11056
|
+
status?: string;
|
|
11057
|
+
updated_at?: string;
|
|
11058
|
+
};
|
|
11059
|
+
Update: {
|
|
11060
|
+
attempts?: number;
|
|
11061
|
+
created_at?: string;
|
|
11062
|
+
destination_hash?: string | null;
|
|
11063
|
+
id?: string;
|
|
11064
|
+
kind?: string;
|
|
11065
|
+
last_error?: string | null;
|
|
11066
|
+
mode?: string;
|
|
11067
|
+
origin_hash?: string | null;
|
|
11068
|
+
processed_at?: string | null;
|
|
11069
|
+
raw_destination?: string | null;
|
|
11070
|
+
raw_origin?: string | null;
|
|
11071
|
+
requested_by?: string | null;
|
|
11072
|
+
status?: string;
|
|
11073
|
+
updated_at?: string;
|
|
11074
|
+
};
|
|
11075
|
+
Relationships: [];
|
|
11076
|
+
};
|
|
11077
|
+
maps_settings: {
|
|
11078
|
+
Row: {
|
|
11079
|
+
allow_estimate_fallback: boolean;
|
|
11080
|
+
cache_ttl_days: number;
|
|
11081
|
+
created_at: string;
|
|
11082
|
+
daily_call_limit: number;
|
|
11083
|
+
id: string;
|
|
11084
|
+
last_error: string | null;
|
|
11085
|
+
last_error_at: string | null;
|
|
11086
|
+
last_success_at: string | null;
|
|
11087
|
+
updated_at: string;
|
|
11088
|
+
};
|
|
11089
|
+
Insert: {
|
|
11090
|
+
allow_estimate_fallback?: boolean;
|
|
11091
|
+
cache_ttl_days?: number;
|
|
11092
|
+
created_at?: string;
|
|
11093
|
+
daily_call_limit?: number;
|
|
11094
|
+
id?: string;
|
|
11095
|
+
last_error?: string | null;
|
|
11096
|
+
last_error_at?: string | null;
|
|
11097
|
+
last_success_at?: string | null;
|
|
11098
|
+
updated_at?: string;
|
|
11099
|
+
};
|
|
11100
|
+
Update: {
|
|
11101
|
+
allow_estimate_fallback?: boolean;
|
|
11102
|
+
cache_ttl_days?: number;
|
|
11103
|
+
created_at?: string;
|
|
11104
|
+
daily_call_limit?: number;
|
|
11105
|
+
id?: string;
|
|
11106
|
+
last_error?: string | null;
|
|
11107
|
+
last_error_at?: string | null;
|
|
11108
|
+
last_success_at?: string | null;
|
|
11109
|
+
updated_at?: string;
|
|
11110
|
+
};
|
|
11111
|
+
Relationships: [];
|
|
11112
|
+
};
|
|
11113
|
+
maps_travel_times: {
|
|
11114
|
+
Row: {
|
|
11115
|
+
created_at: string;
|
|
11116
|
+
destination_id: string;
|
|
11117
|
+
distance_m: number | null;
|
|
11118
|
+
duration_sec: number;
|
|
11119
|
+
expires_at: string;
|
|
11120
|
+
id: string;
|
|
11121
|
+
mode: string;
|
|
11122
|
+
origin_id: string;
|
|
11123
|
+
source: string;
|
|
11124
|
+
updated_at: string;
|
|
11125
|
+
};
|
|
11126
|
+
Insert: {
|
|
11127
|
+
created_at?: string;
|
|
11128
|
+
destination_id: string;
|
|
11129
|
+
distance_m?: number | null;
|
|
11130
|
+
duration_sec: number;
|
|
11131
|
+
expires_at?: string;
|
|
11132
|
+
id?: string;
|
|
11133
|
+
mode?: string;
|
|
11134
|
+
origin_id: string;
|
|
11135
|
+
source?: string;
|
|
11136
|
+
updated_at?: string;
|
|
11137
|
+
};
|
|
11138
|
+
Update: {
|
|
11139
|
+
created_at?: string;
|
|
11140
|
+
destination_id?: string;
|
|
11141
|
+
distance_m?: number | null;
|
|
11142
|
+
duration_sec?: number;
|
|
11143
|
+
expires_at?: string;
|
|
11144
|
+
id?: string;
|
|
11145
|
+
mode?: string;
|
|
11146
|
+
origin_id?: string;
|
|
11147
|
+
source?: string;
|
|
11148
|
+
updated_at?: string;
|
|
11149
|
+
};
|
|
11150
|
+
Relationships: [
|
|
11151
|
+
{
|
|
11152
|
+
foreignKeyName: "maps_travel_times_destination_id_fkey";
|
|
11153
|
+
columns: ["destination_id"];
|
|
11154
|
+
isOneToOne: false;
|
|
11155
|
+
referencedRelation: "maps_addresses";
|
|
11156
|
+
referencedColumns: ["id"];
|
|
11157
|
+
},
|
|
11158
|
+
{
|
|
11159
|
+
foreignKeyName: "maps_travel_times_origin_id_fkey";
|
|
11160
|
+
columns: ["origin_id"];
|
|
11161
|
+
isOneToOne: false;
|
|
11162
|
+
referencedRelation: "maps_addresses";
|
|
11163
|
+
referencedColumns: ["id"];
|
|
11164
|
+
}
|
|
11165
|
+
];
|
|
11166
|
+
};
|
|
11167
|
+
maps_usage_log: {
|
|
11168
|
+
Row: {
|
|
11169
|
+
cache_hits: number;
|
|
11170
|
+
call_type: string;
|
|
11171
|
+
created_at: string;
|
|
11172
|
+
day: string;
|
|
11173
|
+
detail: string | null;
|
|
11174
|
+
elements: number;
|
|
11175
|
+
id: string;
|
|
11176
|
+
outcome: string;
|
|
11177
|
+
};
|
|
11178
|
+
Insert: {
|
|
11179
|
+
cache_hits?: number;
|
|
11180
|
+
call_type: string;
|
|
11181
|
+
created_at?: string;
|
|
11182
|
+
day?: string;
|
|
11183
|
+
detail?: string | null;
|
|
11184
|
+
elements?: number;
|
|
11185
|
+
id?: string;
|
|
11186
|
+
outcome?: string;
|
|
11187
|
+
};
|
|
11188
|
+
Update: {
|
|
11189
|
+
cache_hits?: number;
|
|
11190
|
+
call_type?: string;
|
|
11191
|
+
created_at?: string;
|
|
11192
|
+
day?: string;
|
|
11193
|
+
detail?: string | null;
|
|
11194
|
+
elements?: number;
|
|
11195
|
+
id?: string;
|
|
11196
|
+
outcome?: string;
|
|
11197
|
+
};
|
|
11198
|
+
Relationships: [];
|
|
11199
|
+
};
|
|
11200
|
+
material_usage: {
|
|
11201
|
+
Row: {
|
|
11202
|
+
created_at: string;
|
|
11203
|
+
id: string;
|
|
11204
|
+
material_name: string;
|
|
11205
|
+
monteur_id: string | null;
|
|
11206
|
+
price_at_time: number;
|
|
11207
|
+
quantity_used: number;
|
|
11208
|
+
updated_at: string;
|
|
11209
|
+
van_inventory_id: string | null;
|
|
11210
|
+
work_order_id: string;
|
|
11211
|
+
};
|
|
11212
|
+
Insert: {
|
|
11213
|
+
created_at?: string;
|
|
11214
|
+
id?: string;
|
|
11215
|
+
material_name: string;
|
|
11216
|
+
monteur_id?: string | null;
|
|
11217
|
+
price_at_time?: number;
|
|
11218
|
+
quantity_used?: number;
|
|
11219
|
+
updated_at?: string;
|
|
11220
|
+
van_inventory_id?: string | null;
|
|
11221
|
+
work_order_id: string;
|
|
11222
|
+
};
|
|
11223
|
+
Update: {
|
|
11224
|
+
created_at?: string;
|
|
11225
|
+
id?: string;
|
|
11226
|
+
material_name?: string;
|
|
11227
|
+
monteur_id?: string | null;
|
|
11228
|
+
price_at_time?: number;
|
|
11229
|
+
quantity_used?: number;
|
|
11230
|
+
updated_at?: string;
|
|
11231
|
+
van_inventory_id?: string | null;
|
|
11232
|
+
work_order_id?: string;
|
|
11233
|
+
};
|
|
11234
|
+
Relationships: [
|
|
11235
|
+
{
|
|
11236
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
11237
|
+
columns: ["monteur_id"];
|
|
11238
|
+
isOneToOne: false;
|
|
11239
|
+
referencedRelation: "profiles";
|
|
11240
|
+
referencedColumns: ["id"];
|
|
11241
|
+
},
|
|
11242
|
+
{
|
|
11243
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
11244
|
+
columns: ["van_inventory_id"];
|
|
11245
|
+
isOneToOne: false;
|
|
11246
|
+
referencedRelation: "van_inventories";
|
|
11247
|
+
referencedColumns: ["id"];
|
|
11248
|
+
},
|
|
11249
|
+
{
|
|
11250
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
11251
|
+
columns: ["work_order_id"];
|
|
11252
|
+
isOneToOne: false;
|
|
11253
|
+
referencedRelation: "work_orders";
|
|
11254
|
+
referencedColumns: ["id"];
|
|
11255
|
+
}
|
|
11256
|
+
];
|
|
11257
|
+
};
|
|
11258
|
+
medewerker_details: {
|
|
11259
|
+
Row: {
|
|
11260
|
+
color: string | null;
|
|
11261
|
+
created_at: string;
|
|
11262
|
+
hours_fri: number | null;
|
|
11263
|
+
hours_mon: number | null;
|
|
11264
|
+
hours_thu: number | null;
|
|
11265
|
+
hours_tue: number | null;
|
|
11266
|
+
hours_wed: number | null;
|
|
11267
|
+
id: string;
|
|
11268
|
+
is_active: boolean;
|
|
11269
|
+
leave_balance_hours: number;
|
|
11270
|
+
persnr: string | null;
|
|
11271
|
+
phone: string | null;
|
|
11272
|
+
profile_id: string;
|
|
11273
|
+
updated_at: string;
|
|
11274
|
+
};
|
|
11275
|
+
Insert: {
|
|
11276
|
+
color?: string | null;
|
|
11277
|
+
created_at?: string;
|
|
11278
|
+
hours_fri?: number | null;
|
|
11279
|
+
hours_mon?: number | null;
|
|
11280
|
+
hours_thu?: number | null;
|
|
11281
|
+
hours_tue?: number | null;
|
|
11282
|
+
hours_wed?: number | null;
|
|
11283
|
+
id?: string;
|
|
11284
|
+
is_active?: boolean;
|
|
11285
|
+
leave_balance_hours?: number;
|
|
11286
|
+
persnr?: string | null;
|
|
11287
|
+
phone?: string | null;
|
|
11288
|
+
profile_id: string;
|
|
11289
|
+
updated_at?: string;
|
|
10059
11290
|
};
|
|
10060
11291
|
Update: {
|
|
10061
|
-
|
|
11292
|
+
color?: string | null;
|
|
10062
11293
|
created_at?: string;
|
|
11294
|
+
hours_fri?: number | null;
|
|
11295
|
+
hours_mon?: number | null;
|
|
11296
|
+
hours_thu?: number | null;
|
|
11297
|
+
hours_tue?: number | null;
|
|
11298
|
+
hours_wed?: number | null;
|
|
10063
11299
|
id?: string;
|
|
10064
|
-
|
|
10065
|
-
|
|
10066
|
-
|
|
10067
|
-
|
|
10068
|
-
|
|
11300
|
+
is_active?: boolean;
|
|
11301
|
+
leave_balance_hours?: number;
|
|
11302
|
+
persnr?: string | null;
|
|
11303
|
+
phone?: string | null;
|
|
11304
|
+
profile_id?: string;
|
|
11305
|
+
updated_at?: string;
|
|
10069
11306
|
};
|
|
10070
11307
|
Relationships: [
|
|
10071
11308
|
{
|
|
10072
|
-
foreignKeyName: "
|
|
10073
|
-
columns: ["
|
|
10074
|
-
isOneToOne:
|
|
10075
|
-
referencedRelation: "
|
|
10076
|
-
referencedColumns: ["manufacture_product_id"];
|
|
10077
|
-
},
|
|
10078
|
-
{
|
|
10079
|
-
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
10080
|
-
columns: ["manufacture_product_id"];
|
|
10081
|
-
isOneToOne: false;
|
|
10082
|
-
referencedRelation: "manufacture_products";
|
|
10083
|
-
referencedColumns: ["id"];
|
|
10084
|
-
},
|
|
10085
|
-
{
|
|
10086
|
-
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
10087
|
-
columns: ["product_group_id"];
|
|
10088
|
-
isOneToOne: false;
|
|
10089
|
-
referencedRelation: "product_groups";
|
|
11309
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
11310
|
+
columns: ["profile_id"];
|
|
11311
|
+
isOneToOne: true;
|
|
11312
|
+
referencedRelation: "profiles";
|
|
10090
11313
|
referencedColumns: ["id"];
|
|
10091
11314
|
}
|
|
10092
11315
|
];
|
|
10093
11316
|
};
|
|
10094
|
-
|
|
11317
|
+
module_features: {
|
|
10095
11318
|
Row: {
|
|
10096
11319
|
created_at: string;
|
|
10097
|
-
|
|
11320
|
+
feature_id: string;
|
|
10098
11321
|
id: string;
|
|
10099
11322
|
is_active: boolean;
|
|
11323
|
+
last_seen_at: string;
|
|
11324
|
+
module_id: string;
|
|
10100
11325
|
name: string;
|
|
10101
|
-
produced_stock: number;
|
|
10102
|
-
product_code: string;
|
|
10103
|
-
tenant_id: string;
|
|
10104
|
-
updated_at: string;
|
|
10105
11326
|
};
|
|
10106
11327
|
Insert: {
|
|
10107
11328
|
created_at?: string;
|
|
10108
|
-
|
|
11329
|
+
feature_id: string;
|
|
10109
11330
|
id?: string;
|
|
10110
11331
|
is_active?: boolean;
|
|
11332
|
+
last_seen_at?: string;
|
|
11333
|
+
module_id: string;
|
|
10111
11334
|
name: string;
|
|
10112
|
-
produced_stock?: number;
|
|
10113
|
-
product_code: string;
|
|
10114
|
-
tenant_id: string;
|
|
10115
|
-
updated_at?: string;
|
|
10116
11335
|
};
|
|
10117
11336
|
Update: {
|
|
10118
11337
|
created_at?: string;
|
|
10119
|
-
|
|
11338
|
+
feature_id?: string;
|
|
10120
11339
|
id?: string;
|
|
10121
11340
|
is_active?: boolean;
|
|
11341
|
+
last_seen_at?: string;
|
|
11342
|
+
module_id?: string;
|
|
10122
11343
|
name?: string;
|
|
10123
|
-
produced_stock?: number;
|
|
10124
|
-
product_code?: string;
|
|
10125
|
-
tenant_id?: string;
|
|
10126
|
-
updated_at?: string;
|
|
10127
11344
|
};
|
|
10128
11345
|
Relationships: [];
|
|
10129
11346
|
};
|
|
@@ -10157,8 +11374,10 @@ export type Database = {
|
|
|
10157
11374
|
module_registry: {
|
|
10158
11375
|
Row: {
|
|
10159
11376
|
created_at: string;
|
|
11377
|
+
enforce: boolean;
|
|
10160
11378
|
is_active: boolean;
|
|
10161
11379
|
last_seen_at: string;
|
|
11380
|
+
missing_count: number;
|
|
10162
11381
|
module_id: string;
|
|
10163
11382
|
name: string;
|
|
10164
11383
|
shell_id: string | null;
|
|
@@ -10166,8 +11385,10 @@ export type Database = {
|
|
|
10166
11385
|
};
|
|
10167
11386
|
Insert: {
|
|
10168
11387
|
created_at?: string;
|
|
11388
|
+
enforce?: boolean;
|
|
10169
11389
|
is_active?: boolean;
|
|
10170
11390
|
last_seen_at?: string;
|
|
11391
|
+
missing_count?: number;
|
|
10171
11392
|
module_id: string;
|
|
10172
11393
|
name: string;
|
|
10173
11394
|
shell_id?: string | null;
|
|
@@ -10175,8 +11396,10 @@ export type Database = {
|
|
|
10175
11396
|
};
|
|
10176
11397
|
Update: {
|
|
10177
11398
|
created_at?: string;
|
|
11399
|
+
enforce?: boolean;
|
|
10178
11400
|
is_active?: boolean;
|
|
10179
11401
|
last_seen_at?: string;
|
|
11402
|
+
missing_count?: number;
|
|
10180
11403
|
module_id?: string;
|
|
10181
11404
|
name?: string;
|
|
10182
11405
|
shell_id?: string | null;
|
|
@@ -10235,65 +11458,6 @@ export type Database = {
|
|
|
10235
11458
|
};
|
|
10236
11459
|
Relationships: [];
|
|
10237
11460
|
};
|
|
10238
|
-
monteurs: {
|
|
10239
|
-
Row: {
|
|
10240
|
-
avatar_url: string | null;
|
|
10241
|
-
color: string | null;
|
|
10242
|
-
created_at: string;
|
|
10243
|
-
email: string | null;
|
|
10244
|
-
id: string;
|
|
10245
|
-
is_active: boolean;
|
|
10246
|
-
leave_balance_hours: number;
|
|
10247
|
-
name: string;
|
|
10248
|
-
persnr: number | null;
|
|
10249
|
-
phone: string | null;
|
|
10250
|
-
role: string;
|
|
10251
|
-
tenant_id: string;
|
|
10252
|
-
updated_at: string;
|
|
10253
|
-
user_id: string | null;
|
|
10254
|
-
};
|
|
10255
|
-
Insert: {
|
|
10256
|
-
avatar_url?: string | null;
|
|
10257
|
-
color?: string | null;
|
|
10258
|
-
created_at?: string;
|
|
10259
|
-
email?: string | null;
|
|
10260
|
-
id?: string;
|
|
10261
|
-
is_active?: boolean;
|
|
10262
|
-
leave_balance_hours?: number;
|
|
10263
|
-
name: string;
|
|
10264
|
-
persnr?: number | null;
|
|
10265
|
-
phone?: string | null;
|
|
10266
|
-
role?: string;
|
|
10267
|
-
tenant_id: string;
|
|
10268
|
-
updated_at?: string;
|
|
10269
|
-
user_id?: string | null;
|
|
10270
|
-
};
|
|
10271
|
-
Update: {
|
|
10272
|
-
avatar_url?: string | null;
|
|
10273
|
-
color?: string | null;
|
|
10274
|
-
created_at?: string;
|
|
10275
|
-
email?: string | null;
|
|
10276
|
-
id?: string;
|
|
10277
|
-
is_active?: boolean;
|
|
10278
|
-
leave_balance_hours?: number;
|
|
10279
|
-
name?: string;
|
|
10280
|
-
persnr?: number | null;
|
|
10281
|
-
phone?: string | null;
|
|
10282
|
-
role?: string;
|
|
10283
|
-
tenant_id?: string;
|
|
10284
|
-
updated_at?: string;
|
|
10285
|
-
user_id?: string | null;
|
|
10286
|
-
};
|
|
10287
|
-
Relationships: [
|
|
10288
|
-
{
|
|
10289
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
10290
|
-
columns: ["tenant_id"];
|
|
10291
|
-
isOneToOne: false;
|
|
10292
|
-
referencedRelation: "tenants";
|
|
10293
|
-
referencedColumns: ["id"];
|
|
10294
|
-
}
|
|
10295
|
-
];
|
|
10296
|
-
};
|
|
10297
11461
|
nmbrs_component_mapping: {
|
|
10298
11462
|
Row: {
|
|
10299
11463
|
created_at: string;
|
|
@@ -10366,15 +11530,7 @@ export type Database = {
|
|
|
10366
11530
|
nmbrs_employee_number?: string;
|
|
10367
11531
|
updated_at?: string;
|
|
10368
11532
|
};
|
|
10369
|
-
Relationships: [
|
|
10370
|
-
{
|
|
10371
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10372
|
-
columns: ["monteur_id"];
|
|
10373
|
-
isOneToOne: true;
|
|
10374
|
-
referencedRelation: "monteurs";
|
|
10375
|
-
referencedColumns: ["id"];
|
|
10376
|
-
}
|
|
10377
|
-
];
|
|
11533
|
+
Relationships: [];
|
|
10378
11534
|
};
|
|
10379
11535
|
nmbrs_export_lines: {
|
|
10380
11536
|
Row: {
|
|
@@ -10423,13 +11579,6 @@ export type Database = {
|
|
|
10423
11579
|
wage_code?: string;
|
|
10424
11580
|
};
|
|
10425
11581
|
Relationships: [
|
|
10426
|
-
{
|
|
10427
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10428
|
-
columns: ["monteur_id"];
|
|
10429
|
-
isOneToOne: false;
|
|
10430
|
-
referencedRelation: "monteurs";
|
|
10431
|
-
referencedColumns: ["id"];
|
|
10432
|
-
},
|
|
10433
11582
|
{
|
|
10434
11583
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10435
11584
|
columns: ["run_id"];
|
|
@@ -11280,6 +12429,48 @@ export type Database = {
|
|
|
11280
12429
|
};
|
|
11281
12430
|
Relationships: [];
|
|
11282
12431
|
};
|
|
12432
|
+
order_invoice_links: {
|
|
12433
|
+
Row: {
|
|
12434
|
+
administration_code: string | null;
|
|
12435
|
+
attempts: number;
|
|
12436
|
+
created_at: string;
|
|
12437
|
+
error_message: string | null;
|
|
12438
|
+
id: string;
|
|
12439
|
+
invoice_number: string | null;
|
|
12440
|
+
next_attempt_at: string;
|
|
12441
|
+
order_id: string;
|
|
12442
|
+
processed_at: string | null;
|
|
12443
|
+
status: string;
|
|
12444
|
+
updated_at: string;
|
|
12445
|
+
};
|
|
12446
|
+
Insert: {
|
|
12447
|
+
administration_code?: string | null;
|
|
12448
|
+
attempts?: number;
|
|
12449
|
+
created_at?: string;
|
|
12450
|
+
error_message?: string | null;
|
|
12451
|
+
id?: string;
|
|
12452
|
+
invoice_number?: string | null;
|
|
12453
|
+
next_attempt_at?: string;
|
|
12454
|
+
order_id: string;
|
|
12455
|
+
processed_at?: string | null;
|
|
12456
|
+
status?: string;
|
|
12457
|
+
updated_at?: string;
|
|
12458
|
+
};
|
|
12459
|
+
Update: {
|
|
12460
|
+
administration_code?: string | null;
|
|
12461
|
+
attempts?: number;
|
|
12462
|
+
created_at?: string;
|
|
12463
|
+
error_message?: string | null;
|
|
12464
|
+
id?: string;
|
|
12465
|
+
invoice_number?: string | null;
|
|
12466
|
+
next_attempt_at?: string;
|
|
12467
|
+
order_id?: string;
|
|
12468
|
+
processed_at?: string | null;
|
|
12469
|
+
status?: string;
|
|
12470
|
+
updated_at?: string;
|
|
12471
|
+
};
|
|
12472
|
+
Relationships: [];
|
|
12473
|
+
};
|
|
11283
12474
|
order_items: {
|
|
11284
12475
|
Row: {
|
|
11285
12476
|
crates_per_layer: number | null;
|
|
@@ -11463,6 +12654,8 @@ export type Database = {
|
|
|
11463
12654
|
orders: {
|
|
11464
12655
|
Row: {
|
|
11465
12656
|
buffer_id: string | null;
|
|
12657
|
+
cancel_reason: string | null;
|
|
12658
|
+
cancelled_at: string | null;
|
|
11466
12659
|
created_at: string;
|
|
11467
12660
|
custom_fields: Json;
|
|
11468
12661
|
customer_id: string | null;
|
|
@@ -11471,6 +12664,7 @@ export type Database = {
|
|
|
11471
12664
|
delivery_date: string | null;
|
|
11472
12665
|
floriday_sales_order_id: string | null;
|
|
11473
12666
|
id: string;
|
|
12667
|
+
invoice_due_at: string | null;
|
|
11474
12668
|
is_reservation: boolean;
|
|
11475
12669
|
notes: string | null;
|
|
11476
12670
|
order_date: string;
|
|
@@ -11484,6 +12678,8 @@ export type Database = {
|
|
|
11484
12678
|
};
|
|
11485
12679
|
Insert: {
|
|
11486
12680
|
buffer_id?: string | null;
|
|
12681
|
+
cancel_reason?: string | null;
|
|
12682
|
+
cancelled_at?: string | null;
|
|
11487
12683
|
created_at?: string;
|
|
11488
12684
|
custom_fields?: Json;
|
|
11489
12685
|
customer_id?: string | null;
|
|
@@ -11492,6 +12688,7 @@ export type Database = {
|
|
|
11492
12688
|
delivery_date?: string | null;
|
|
11493
12689
|
floriday_sales_order_id?: string | null;
|
|
11494
12690
|
id?: string;
|
|
12691
|
+
invoice_due_at?: string | null;
|
|
11495
12692
|
is_reservation?: boolean;
|
|
11496
12693
|
notes?: string | null;
|
|
11497
12694
|
order_date?: string;
|
|
@@ -11505,6 +12702,8 @@ export type Database = {
|
|
|
11505
12702
|
};
|
|
11506
12703
|
Update: {
|
|
11507
12704
|
buffer_id?: string | null;
|
|
12705
|
+
cancel_reason?: string | null;
|
|
12706
|
+
cancelled_at?: string | null;
|
|
11508
12707
|
created_at?: string;
|
|
11509
12708
|
custom_fields?: Json;
|
|
11510
12709
|
customer_id?: string | null;
|
|
@@ -11513,6 +12712,7 @@ export type Database = {
|
|
|
11513
12712
|
delivery_date?: string | null;
|
|
11514
12713
|
floriday_sales_order_id?: string | null;
|
|
11515
12714
|
id?: string;
|
|
12715
|
+
invoice_due_at?: string | null;
|
|
11516
12716
|
is_reservation?: boolean;
|
|
11517
12717
|
notes?: string | null;
|
|
11518
12718
|
order_date?: string;
|
|
@@ -12467,6 +13667,27 @@ export type Database = {
|
|
|
12467
13667
|
}
|
|
12468
13668
|
];
|
|
12469
13669
|
};
|
|
13670
|
+
pick_sync_state: {
|
|
13671
|
+
Row: {
|
|
13672
|
+
id: boolean;
|
|
13673
|
+
last_cleanup_at: string | null;
|
|
13674
|
+
last_sync_at: string | null;
|
|
13675
|
+
updated_at: string;
|
|
13676
|
+
};
|
|
13677
|
+
Insert: {
|
|
13678
|
+
id?: boolean;
|
|
13679
|
+
last_cleanup_at?: string | null;
|
|
13680
|
+
last_sync_at?: string | null;
|
|
13681
|
+
updated_at?: string;
|
|
13682
|
+
};
|
|
13683
|
+
Update: {
|
|
13684
|
+
id?: boolean;
|
|
13685
|
+
last_cleanup_at?: string | null;
|
|
13686
|
+
last_sync_at?: string | null;
|
|
13687
|
+
updated_at?: string;
|
|
13688
|
+
};
|
|
13689
|
+
Relationships: [];
|
|
13690
|
+
};
|
|
12470
13691
|
pick_task_document_types: {
|
|
12471
13692
|
Row: {
|
|
12472
13693
|
created_at: string;
|
|
@@ -12758,6 +13979,7 @@ export type Database = {
|
|
|
12758
13979
|
gebruiker_id: string | null;
|
|
12759
13980
|
gebruiker_naam: string;
|
|
12760
13981
|
gestart_op: string | null;
|
|
13982
|
+
herkomst: string | null;
|
|
12761
13983
|
id: string;
|
|
12762
13984
|
idempotentie_sleutel: string | null;
|
|
12763
13985
|
is_herprint: boolean;
|
|
@@ -12787,6 +14009,7 @@ export type Database = {
|
|
|
12787
14009
|
gebruiker_id?: string | null;
|
|
12788
14010
|
gebruiker_naam?: string;
|
|
12789
14011
|
gestart_op?: string | null;
|
|
14012
|
+
herkomst?: string | null;
|
|
12790
14013
|
id?: string;
|
|
12791
14014
|
idempotentie_sleutel?: string | null;
|
|
12792
14015
|
is_herprint?: boolean;
|
|
@@ -12816,6 +14039,7 @@ export type Database = {
|
|
|
12816
14039
|
gebruiker_id?: string | null;
|
|
12817
14040
|
gebruiker_naam?: string;
|
|
12818
14041
|
gestart_op?: string | null;
|
|
14042
|
+
herkomst?: string | null;
|
|
12819
14043
|
id?: string;
|
|
12820
14044
|
idempotentie_sleutel?: string | null;
|
|
12821
14045
|
is_herprint?: boolean;
|
|
@@ -12858,6 +14082,103 @@ export type Database = {
|
|
|
12858
14082
|
}
|
|
12859
14083
|
];
|
|
12860
14084
|
};
|
|
14085
|
+
print_plek_computers: {
|
|
14086
|
+
Row: {
|
|
14087
|
+
computer_naam: string;
|
|
14088
|
+
created_at: string;
|
|
14089
|
+
id: string;
|
|
14090
|
+
print_plek_id: string;
|
|
14091
|
+
updated_at: string;
|
|
14092
|
+
};
|
|
14093
|
+
Insert: {
|
|
14094
|
+
computer_naam: string;
|
|
14095
|
+
created_at?: string;
|
|
14096
|
+
id?: string;
|
|
14097
|
+
print_plek_id: string;
|
|
14098
|
+
updated_at?: string;
|
|
14099
|
+
};
|
|
14100
|
+
Update: {
|
|
14101
|
+
computer_naam?: string;
|
|
14102
|
+
created_at?: string;
|
|
14103
|
+
id?: string;
|
|
14104
|
+
print_plek_id?: string;
|
|
14105
|
+
updated_at?: string;
|
|
14106
|
+
};
|
|
14107
|
+
Relationships: [
|
|
14108
|
+
{
|
|
14109
|
+
foreignKeyName: "print_plek_computers_print_plek_id_fkey";
|
|
14110
|
+
columns: ["print_plek_id"];
|
|
14111
|
+
isOneToOne: false;
|
|
14112
|
+
referencedRelation: "print_plekken";
|
|
14113
|
+
referencedColumns: ["id"];
|
|
14114
|
+
}
|
|
14115
|
+
];
|
|
14116
|
+
};
|
|
14117
|
+
print_plek_koppelingen: {
|
|
14118
|
+
Row: {
|
|
14119
|
+
bron: string;
|
|
14120
|
+
bron_id: string;
|
|
14121
|
+
created_at: string;
|
|
14122
|
+
id: string;
|
|
14123
|
+
label: string | null;
|
|
14124
|
+
print_plek_id: string;
|
|
14125
|
+
updated_at: string;
|
|
14126
|
+
};
|
|
14127
|
+
Insert: {
|
|
14128
|
+
bron: string;
|
|
14129
|
+
bron_id: string;
|
|
14130
|
+
created_at?: string;
|
|
14131
|
+
id?: string;
|
|
14132
|
+
label?: string | null;
|
|
14133
|
+
print_plek_id: string;
|
|
14134
|
+
updated_at?: string;
|
|
14135
|
+
};
|
|
14136
|
+
Update: {
|
|
14137
|
+
bron?: string;
|
|
14138
|
+
bron_id?: string;
|
|
14139
|
+
created_at?: string;
|
|
14140
|
+
id?: string;
|
|
14141
|
+
label?: string | null;
|
|
14142
|
+
print_plek_id?: string;
|
|
14143
|
+
updated_at?: string;
|
|
14144
|
+
};
|
|
14145
|
+
Relationships: [
|
|
14146
|
+
{
|
|
14147
|
+
foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
|
|
14148
|
+
columns: ["print_plek_id"];
|
|
14149
|
+
isOneToOne: false;
|
|
14150
|
+
referencedRelation: "print_plekken";
|
|
14151
|
+
referencedColumns: ["id"];
|
|
14152
|
+
}
|
|
14153
|
+
];
|
|
14154
|
+
};
|
|
14155
|
+
print_plekken: {
|
|
14156
|
+
Row: {
|
|
14157
|
+
actief: boolean;
|
|
14158
|
+
created_at: string;
|
|
14159
|
+
id: string;
|
|
14160
|
+
naam: string;
|
|
14161
|
+
omschrijving: string | null;
|
|
14162
|
+
updated_at: string;
|
|
14163
|
+
};
|
|
14164
|
+
Insert: {
|
|
14165
|
+
actief?: boolean;
|
|
14166
|
+
created_at?: string;
|
|
14167
|
+
id?: string;
|
|
14168
|
+
naam: string;
|
|
14169
|
+
omschrijving?: string | null;
|
|
14170
|
+
updated_at?: string;
|
|
14171
|
+
};
|
|
14172
|
+
Update: {
|
|
14173
|
+
actief?: boolean;
|
|
14174
|
+
created_at?: string;
|
|
14175
|
+
id?: string;
|
|
14176
|
+
naam?: string;
|
|
14177
|
+
omschrijving?: string | null;
|
|
14178
|
+
updated_at?: string;
|
|
14179
|
+
};
|
|
14180
|
+
Relationships: [];
|
|
14181
|
+
};
|
|
12861
14182
|
print_queue_runners: {
|
|
12862
14183
|
Row: {
|
|
12863
14184
|
actief: boolean;
|
|
@@ -12865,6 +14186,9 @@ export type Database = {
|
|
|
12865
14186
|
created_at: string;
|
|
12866
14187
|
id: string;
|
|
12867
14188
|
laatst_gezien: string;
|
|
14189
|
+
laatste_fout: string | null;
|
|
14190
|
+
laatste_request_id: number | null;
|
|
14191
|
+
mislukte_posts: number;
|
|
12868
14192
|
tick_sleutel: string;
|
|
12869
14193
|
updated_at: string;
|
|
12870
14194
|
};
|
|
@@ -12874,6 +14198,9 @@ export type Database = {
|
|
|
12874
14198
|
created_at?: string;
|
|
12875
14199
|
id?: string;
|
|
12876
14200
|
laatst_gezien?: string;
|
|
14201
|
+
laatste_fout?: string | null;
|
|
14202
|
+
laatste_request_id?: number | null;
|
|
14203
|
+
mislukte_posts?: number;
|
|
12877
14204
|
tick_sleutel?: string;
|
|
12878
14205
|
updated_at?: string;
|
|
12879
14206
|
};
|
|
@@ -12883,6 +14210,9 @@ export type Database = {
|
|
|
12883
14210
|
created_at?: string;
|
|
12884
14211
|
id?: string;
|
|
12885
14212
|
laatst_gezien?: string;
|
|
14213
|
+
laatste_fout?: string | null;
|
|
14214
|
+
laatste_request_id?: number | null;
|
|
14215
|
+
mislukte_posts?: number;
|
|
12886
14216
|
tick_sleutel?: string;
|
|
12887
14217
|
updated_at?: string;
|
|
12888
14218
|
};
|
|
@@ -13084,6 +14414,7 @@ export type Database = {
|
|
|
13084
14414
|
created_at: string;
|
|
13085
14415
|
driver: string;
|
|
13086
14416
|
extern_printer_id: string | null;
|
|
14417
|
+
formaten_bijgewerkt_op: string | null;
|
|
13087
14418
|
id: string;
|
|
13088
14419
|
ip_adres: string | null;
|
|
13089
14420
|
laatst_gezien: string | null;
|
|
@@ -13091,6 +14422,8 @@ export type Database = {
|
|
|
13091
14422
|
merk: string;
|
|
13092
14423
|
naam: string;
|
|
13093
14424
|
omschrijving: string;
|
|
14425
|
+
ondersteunde_formaten: Json | null;
|
|
14426
|
+
ondersteunde_laden: Json | null;
|
|
13094
14427
|
online: boolean;
|
|
13095
14428
|
papierformaat: string;
|
|
13096
14429
|
poort: number | null;
|
|
@@ -13106,6 +14439,7 @@ export type Database = {
|
|
|
13106
14439
|
created_at?: string;
|
|
13107
14440
|
driver?: string;
|
|
13108
14441
|
extern_printer_id?: string | null;
|
|
14442
|
+
formaten_bijgewerkt_op?: string | null;
|
|
13109
14443
|
id?: string;
|
|
13110
14444
|
ip_adres?: string | null;
|
|
13111
14445
|
laatst_gezien?: string | null;
|
|
@@ -13113,6 +14447,8 @@ export type Database = {
|
|
|
13113
14447
|
merk?: string;
|
|
13114
14448
|
naam: string;
|
|
13115
14449
|
omschrijving?: string;
|
|
14450
|
+
ondersteunde_formaten?: Json | null;
|
|
14451
|
+
ondersteunde_laden?: Json | null;
|
|
13116
14452
|
online?: boolean;
|
|
13117
14453
|
papierformaat?: string;
|
|
13118
14454
|
poort?: number | null;
|
|
@@ -13128,6 +14464,7 @@ export type Database = {
|
|
|
13128
14464
|
created_at?: string;
|
|
13129
14465
|
driver?: string;
|
|
13130
14466
|
extern_printer_id?: string | null;
|
|
14467
|
+
formaten_bijgewerkt_op?: string | null;
|
|
13131
14468
|
id?: string;
|
|
13132
14469
|
ip_adres?: string | null;
|
|
13133
14470
|
laatst_gezien?: string | null;
|
|
@@ -13135,6 +14472,8 @@ export type Database = {
|
|
|
13135
14472
|
merk?: string;
|
|
13136
14473
|
naam?: string;
|
|
13137
14474
|
omschrijving?: string;
|
|
14475
|
+
ondersteunde_formaten?: Json | null;
|
|
14476
|
+
ondersteunde_laden?: Json | null;
|
|
13138
14477
|
online?: boolean;
|
|
13139
14478
|
papierformaat?: string;
|
|
13140
14479
|
poort?: number | null;
|
|
@@ -13629,6 +14968,71 @@ export type Database = {
|
|
|
13629
14968
|
};
|
|
13630
14969
|
Relationships: [];
|
|
13631
14970
|
};
|
|
14971
|
+
profile_modules: {
|
|
14972
|
+
Row: {
|
|
14973
|
+
created_at: string;
|
|
14974
|
+
id: string;
|
|
14975
|
+
module_id: string;
|
|
14976
|
+
profile_id: string;
|
|
14977
|
+
};
|
|
14978
|
+
Insert: {
|
|
14979
|
+
created_at?: string;
|
|
14980
|
+
id?: string;
|
|
14981
|
+
module_id: string;
|
|
14982
|
+
profile_id: string;
|
|
14983
|
+
};
|
|
14984
|
+
Update: {
|
|
14985
|
+
created_at?: string;
|
|
14986
|
+
id?: string;
|
|
14987
|
+
module_id?: string;
|
|
14988
|
+
profile_id?: string;
|
|
14989
|
+
};
|
|
14990
|
+
Relationships: [
|
|
14991
|
+
{
|
|
14992
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
14993
|
+
columns: ["profile_id"];
|
|
14994
|
+
isOneToOne: false;
|
|
14995
|
+
referencedRelation: "profiles_org";
|
|
14996
|
+
referencedColumns: ["id"];
|
|
14997
|
+
}
|
|
14998
|
+
];
|
|
14999
|
+
};
|
|
15000
|
+
profile_roles: {
|
|
15001
|
+
Row: {
|
|
15002
|
+
created_at: string;
|
|
15003
|
+
id: string;
|
|
15004
|
+
profile_id: string;
|
|
15005
|
+
role_id: string;
|
|
15006
|
+
};
|
|
15007
|
+
Insert: {
|
|
15008
|
+
created_at?: string;
|
|
15009
|
+
id?: string;
|
|
15010
|
+
profile_id: string;
|
|
15011
|
+
role_id: string;
|
|
15012
|
+
};
|
|
15013
|
+
Update: {
|
|
15014
|
+
created_at?: string;
|
|
15015
|
+
id?: string;
|
|
15016
|
+
profile_id?: string;
|
|
15017
|
+
role_id?: string;
|
|
15018
|
+
};
|
|
15019
|
+
Relationships: [
|
|
15020
|
+
{
|
|
15021
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
15022
|
+
columns: ["profile_id"];
|
|
15023
|
+
isOneToOne: false;
|
|
15024
|
+
referencedRelation: "profiles_org";
|
|
15025
|
+
referencedColumns: ["id"];
|
|
15026
|
+
},
|
|
15027
|
+
{
|
|
15028
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
15029
|
+
columns: ["role_id"];
|
|
15030
|
+
isOneToOne: false;
|
|
15031
|
+
referencedRelation: "roles";
|
|
15032
|
+
referencedColumns: ["id"];
|
|
15033
|
+
}
|
|
15034
|
+
];
|
|
15035
|
+
};
|
|
13632
15036
|
profiles: {
|
|
13633
15037
|
Row: {
|
|
13634
15038
|
address: string | null;
|
|
@@ -13676,6 +15080,41 @@ export type Database = {
|
|
|
13676
15080
|
}
|
|
13677
15081
|
];
|
|
13678
15082
|
};
|
|
15083
|
+
profiles_org: {
|
|
15084
|
+
Row: {
|
|
15085
|
+
created_at: string;
|
|
15086
|
+
id: string;
|
|
15087
|
+
is_default: boolean;
|
|
15088
|
+
name: string;
|
|
15089
|
+
tenant_id: string | null;
|
|
15090
|
+
updated_at: string;
|
|
15091
|
+
};
|
|
15092
|
+
Insert: {
|
|
15093
|
+
created_at?: string;
|
|
15094
|
+
id?: string;
|
|
15095
|
+
is_default?: boolean;
|
|
15096
|
+
name: string;
|
|
15097
|
+
tenant_id?: string | null;
|
|
15098
|
+
updated_at?: string;
|
|
15099
|
+
};
|
|
15100
|
+
Update: {
|
|
15101
|
+
created_at?: string;
|
|
15102
|
+
id?: string;
|
|
15103
|
+
is_default?: boolean;
|
|
15104
|
+
name?: string;
|
|
15105
|
+
tenant_id?: string | null;
|
|
15106
|
+
updated_at?: string;
|
|
15107
|
+
};
|
|
15108
|
+
Relationships: [
|
|
15109
|
+
{
|
|
15110
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
15111
|
+
columns: ["tenant_id"];
|
|
15112
|
+
isOneToOne: false;
|
|
15113
|
+
referencedRelation: "tenants";
|
|
15114
|
+
referencedColumns: ["id"];
|
|
15115
|
+
}
|
|
15116
|
+
];
|
|
15117
|
+
};
|
|
13679
15118
|
projects: {
|
|
13680
15119
|
Row: {
|
|
13681
15120
|
contact_name: string | null;
|
|
@@ -14447,6 +15886,100 @@ export type Database = {
|
|
|
14447
15886
|
}
|
|
14448
15887
|
];
|
|
14449
15888
|
};
|
|
15889
|
+
role_assignments: {
|
|
15890
|
+
Row: {
|
|
15891
|
+
created_at: string;
|
|
15892
|
+
id: string;
|
|
15893
|
+
role_id: string;
|
|
15894
|
+
user_id: string;
|
|
15895
|
+
};
|
|
15896
|
+
Insert: {
|
|
15897
|
+
created_at?: string;
|
|
15898
|
+
id?: string;
|
|
15899
|
+
role_id: string;
|
|
15900
|
+
user_id: string;
|
|
15901
|
+
};
|
|
15902
|
+
Update: {
|
|
15903
|
+
created_at?: string;
|
|
15904
|
+
id?: string;
|
|
15905
|
+
role_id?: string;
|
|
15906
|
+
user_id?: string;
|
|
15907
|
+
};
|
|
15908
|
+
Relationships: [
|
|
15909
|
+
{
|
|
15910
|
+
foreignKeyName: "role_assignments_role_id_fkey";
|
|
15911
|
+
columns: ["role_id"];
|
|
15912
|
+
isOneToOne: false;
|
|
15913
|
+
referencedRelation: "roles";
|
|
15914
|
+
referencedColumns: ["id"];
|
|
15915
|
+
}
|
|
15916
|
+
];
|
|
15917
|
+
};
|
|
15918
|
+
role_permissions: {
|
|
15919
|
+
Row: {
|
|
15920
|
+
can_edit: boolean;
|
|
15921
|
+
can_view: boolean;
|
|
15922
|
+
feature_id: string;
|
|
15923
|
+
id: string;
|
|
15924
|
+
module_id: string;
|
|
15925
|
+
role_id: string;
|
|
15926
|
+
updated_at: string;
|
|
15927
|
+
};
|
|
15928
|
+
Insert: {
|
|
15929
|
+
can_edit?: boolean;
|
|
15930
|
+
can_view?: boolean;
|
|
15931
|
+
feature_id?: string;
|
|
15932
|
+
id?: string;
|
|
15933
|
+
module_id: string;
|
|
15934
|
+
role_id: string;
|
|
15935
|
+
updated_at?: string;
|
|
15936
|
+
};
|
|
15937
|
+
Update: {
|
|
15938
|
+
can_edit?: boolean;
|
|
15939
|
+
can_view?: boolean;
|
|
15940
|
+
feature_id?: string;
|
|
15941
|
+
id?: string;
|
|
15942
|
+
module_id?: string;
|
|
15943
|
+
role_id?: string;
|
|
15944
|
+
updated_at?: string;
|
|
15945
|
+
};
|
|
15946
|
+
Relationships: [
|
|
15947
|
+
{
|
|
15948
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
15949
|
+
columns: ["role_id"];
|
|
15950
|
+
isOneToOne: false;
|
|
15951
|
+
referencedRelation: "roles";
|
|
15952
|
+
referencedColumns: ["id"];
|
|
15953
|
+
}
|
|
15954
|
+
];
|
|
15955
|
+
};
|
|
15956
|
+
roles: {
|
|
15957
|
+
Row: {
|
|
15958
|
+
created_at: string;
|
|
15959
|
+
id: string;
|
|
15960
|
+
is_protected: boolean;
|
|
15961
|
+
key: string;
|
|
15962
|
+
name: string;
|
|
15963
|
+
updated_at: string;
|
|
15964
|
+
};
|
|
15965
|
+
Insert: {
|
|
15966
|
+
created_at?: string;
|
|
15967
|
+
id?: string;
|
|
15968
|
+
is_protected?: boolean;
|
|
15969
|
+
key: string;
|
|
15970
|
+
name: string;
|
|
15971
|
+
updated_at?: string;
|
|
15972
|
+
};
|
|
15973
|
+
Update: {
|
|
15974
|
+
created_at?: string;
|
|
15975
|
+
id?: string;
|
|
15976
|
+
is_protected?: boolean;
|
|
15977
|
+
key?: string;
|
|
15978
|
+
name?: string;
|
|
15979
|
+
updated_at?: string;
|
|
15980
|
+
};
|
|
15981
|
+
Relationships: [];
|
|
15982
|
+
};
|
|
14450
15983
|
rooms: {
|
|
14451
15984
|
Row: {
|
|
14452
15985
|
capacity: number;
|
|
@@ -14799,6 +16332,7 @@ export type Database = {
|
|
|
14799
16332
|
type: string;
|
|
14800
16333
|
updated_at: string;
|
|
14801
16334
|
vereist_medewerker: boolean;
|
|
16335
|
+
werkplek: string | null;
|
|
14802
16336
|
};
|
|
14803
16337
|
Insert: {
|
|
14804
16338
|
actief?: boolean;
|
|
@@ -14812,6 +16346,7 @@ export type Database = {
|
|
|
14812
16346
|
type?: string;
|
|
14813
16347
|
updated_at?: string;
|
|
14814
16348
|
vereist_medewerker?: boolean;
|
|
16349
|
+
werkplek?: string | null;
|
|
14815
16350
|
};
|
|
14816
16351
|
Update: {
|
|
14817
16352
|
actief?: boolean;
|
|
@@ -14825,9 +16360,48 @@ export type Database = {
|
|
|
14825
16360
|
type?: string;
|
|
14826
16361
|
updated_at?: string;
|
|
14827
16362
|
vereist_medewerker?: boolean;
|
|
16363
|
+
werkplek?: string | null;
|
|
14828
16364
|
};
|
|
14829
16365
|
Relationships: [];
|
|
14830
16366
|
};
|
|
16367
|
+
sick_periods: {
|
|
16368
|
+
Row: {
|
|
16369
|
+
created_at: string;
|
|
16370
|
+
employee_id: string;
|
|
16371
|
+
end_date: string | null;
|
|
16372
|
+
id: string;
|
|
16373
|
+
notes: string | null;
|
|
16374
|
+
start_date: string;
|
|
16375
|
+
updated_at: string;
|
|
16376
|
+
};
|
|
16377
|
+
Insert: {
|
|
16378
|
+
created_at?: string;
|
|
16379
|
+
employee_id: string;
|
|
16380
|
+
end_date?: string | null;
|
|
16381
|
+
id?: string;
|
|
16382
|
+
notes?: string | null;
|
|
16383
|
+
start_date: string;
|
|
16384
|
+
updated_at?: string;
|
|
16385
|
+
};
|
|
16386
|
+
Update: {
|
|
16387
|
+
created_at?: string;
|
|
16388
|
+
employee_id?: string;
|
|
16389
|
+
end_date?: string | null;
|
|
16390
|
+
id?: string;
|
|
16391
|
+
notes?: string | null;
|
|
16392
|
+
start_date?: string;
|
|
16393
|
+
updated_at?: string;
|
|
16394
|
+
};
|
|
16395
|
+
Relationships: [
|
|
16396
|
+
{
|
|
16397
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
16398
|
+
columns: ["employee_id"];
|
|
16399
|
+
isOneToOne: false;
|
|
16400
|
+
referencedRelation: "profiles";
|
|
16401
|
+
referencedColumns: ["id"];
|
|
16402
|
+
}
|
|
16403
|
+
];
|
|
16404
|
+
};
|
|
14831
16405
|
sidebar_config: {
|
|
14832
16406
|
Row: {
|
|
14833
16407
|
id: string;
|
|
@@ -14846,6 +16420,45 @@ export type Database = {
|
|
|
14846
16420
|
};
|
|
14847
16421
|
Relationships: [];
|
|
14848
16422
|
};
|
|
16423
|
+
stock_consumption_alerts: {
|
|
16424
|
+
Row: {
|
|
16425
|
+
alert_type: string;
|
|
16426
|
+
created_at: string;
|
|
16427
|
+
id: string;
|
|
16428
|
+
mutation_log_id: string | null;
|
|
16429
|
+
order_id: string | null;
|
|
16430
|
+
order_item_id: string | null;
|
|
16431
|
+
qty: number;
|
|
16432
|
+
reason: string | null;
|
|
16433
|
+
resolved_at: string | null;
|
|
16434
|
+
updated_at: string;
|
|
16435
|
+
};
|
|
16436
|
+
Insert: {
|
|
16437
|
+
alert_type: string;
|
|
16438
|
+
created_at?: string;
|
|
16439
|
+
id?: string;
|
|
16440
|
+
mutation_log_id?: string | null;
|
|
16441
|
+
order_id?: string | null;
|
|
16442
|
+
order_item_id?: string | null;
|
|
16443
|
+
qty?: number;
|
|
16444
|
+
reason?: string | null;
|
|
16445
|
+
resolved_at?: string | null;
|
|
16446
|
+
updated_at?: string;
|
|
16447
|
+
};
|
|
16448
|
+
Update: {
|
|
16449
|
+
alert_type?: string;
|
|
16450
|
+
created_at?: string;
|
|
16451
|
+
id?: string;
|
|
16452
|
+
mutation_log_id?: string | null;
|
|
16453
|
+
order_id?: string | null;
|
|
16454
|
+
order_item_id?: string | null;
|
|
16455
|
+
qty?: number;
|
|
16456
|
+
reason?: string | null;
|
|
16457
|
+
resolved_at?: string | null;
|
|
16458
|
+
updated_at?: string;
|
|
16459
|
+
};
|
|
16460
|
+
Relationships: [];
|
|
16461
|
+
};
|
|
14849
16462
|
stock_import_runs: {
|
|
14850
16463
|
Row: {
|
|
14851
16464
|
connection_id: string | null;
|
|
@@ -15114,18 +16727,68 @@ export type Database = {
|
|
|
15114
16727
|
Insert: {
|
|
15115
16728
|
created_at?: string;
|
|
15116
16729
|
id?: string;
|
|
15117
|
-
name?: string;
|
|
15118
|
-
slug?: string | null;
|
|
16730
|
+
name?: string;
|
|
16731
|
+
slug?: string | null;
|
|
16732
|
+
updated_at?: string;
|
|
16733
|
+
};
|
|
16734
|
+
Update: {
|
|
16735
|
+
created_at?: string;
|
|
16736
|
+
id?: string;
|
|
16737
|
+
name?: string;
|
|
16738
|
+
slug?: string | null;
|
|
16739
|
+
updated_at?: string;
|
|
16740
|
+
};
|
|
16741
|
+
Relationships: [];
|
|
16742
|
+
};
|
|
16743
|
+
time_compensation_entries: {
|
|
16744
|
+
Row: {
|
|
16745
|
+
created_at: string;
|
|
16746
|
+
employee_id: string;
|
|
16747
|
+
entry_date: string;
|
|
16748
|
+
id: string;
|
|
16749
|
+
km: number;
|
|
16750
|
+
meal_allowance: number;
|
|
16751
|
+
notes: string | null;
|
|
16752
|
+
standby_evening: number;
|
|
16753
|
+
standby_weekend: number;
|
|
16754
|
+
tvt_change: number;
|
|
16755
|
+
updated_at: string;
|
|
16756
|
+
};
|
|
16757
|
+
Insert: {
|
|
16758
|
+
created_at?: string;
|
|
16759
|
+
employee_id: string;
|
|
16760
|
+
entry_date: string;
|
|
16761
|
+
id?: string;
|
|
16762
|
+
km?: number;
|
|
16763
|
+
meal_allowance?: number;
|
|
16764
|
+
notes?: string | null;
|
|
16765
|
+
standby_evening?: number;
|
|
16766
|
+
standby_weekend?: number;
|
|
16767
|
+
tvt_change?: number;
|
|
15119
16768
|
updated_at?: string;
|
|
15120
16769
|
};
|
|
15121
16770
|
Update: {
|
|
15122
16771
|
created_at?: string;
|
|
16772
|
+
employee_id?: string;
|
|
16773
|
+
entry_date?: string;
|
|
15123
16774
|
id?: string;
|
|
15124
|
-
|
|
15125
|
-
|
|
16775
|
+
km?: number;
|
|
16776
|
+
meal_allowance?: number;
|
|
16777
|
+
notes?: string | null;
|
|
16778
|
+
standby_evening?: number;
|
|
16779
|
+
standby_weekend?: number;
|
|
16780
|
+
tvt_change?: number;
|
|
15126
16781
|
updated_at?: string;
|
|
15127
16782
|
};
|
|
15128
|
-
Relationships: [
|
|
16783
|
+
Relationships: [
|
|
16784
|
+
{
|
|
16785
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
16786
|
+
columns: ["employee_id"];
|
|
16787
|
+
isOneToOne: false;
|
|
16788
|
+
referencedRelation: "profiles";
|
|
16789
|
+
referencedColumns: ["id"];
|
|
16790
|
+
}
|
|
16791
|
+
];
|
|
15129
16792
|
};
|
|
15130
16793
|
time_entries: {
|
|
15131
16794
|
Row: {
|
|
@@ -15161,68 +16824,174 @@ export type Database = {
|
|
|
15161
16824
|
undertime?: number;
|
|
15162
16825
|
updated_at?: string;
|
|
15163
16826
|
};
|
|
16827
|
+
Relationships: [];
|
|
16828
|
+
};
|
|
16829
|
+
time_log_week_approvals: {
|
|
16830
|
+
Row: {
|
|
16831
|
+
approved_at: string | null;
|
|
16832
|
+
approved_by: string | null;
|
|
16833
|
+
created_at: string;
|
|
16834
|
+
employee_id: string;
|
|
16835
|
+
id: string;
|
|
16836
|
+
locked: boolean;
|
|
16837
|
+
notes: string | null;
|
|
16838
|
+
status: string;
|
|
16839
|
+
submitted_at: string | null;
|
|
16840
|
+
updated_at: string;
|
|
16841
|
+
week_start: string;
|
|
16842
|
+
};
|
|
16843
|
+
Insert: {
|
|
16844
|
+
approved_at?: string | null;
|
|
16845
|
+
approved_by?: string | null;
|
|
16846
|
+
created_at?: string;
|
|
16847
|
+
employee_id: string;
|
|
16848
|
+
id?: string;
|
|
16849
|
+
locked?: boolean;
|
|
16850
|
+
notes?: string | null;
|
|
16851
|
+
status?: string;
|
|
16852
|
+
submitted_at?: string | null;
|
|
16853
|
+
updated_at?: string;
|
|
16854
|
+
week_start: string;
|
|
16855
|
+
};
|
|
16856
|
+
Update: {
|
|
16857
|
+
approved_at?: string | null;
|
|
16858
|
+
approved_by?: string | null;
|
|
16859
|
+
created_at?: string;
|
|
16860
|
+
employee_id?: string;
|
|
16861
|
+
id?: string;
|
|
16862
|
+
locked?: boolean;
|
|
16863
|
+
notes?: string | null;
|
|
16864
|
+
status?: string;
|
|
16865
|
+
submitted_at?: string | null;
|
|
16866
|
+
updated_at?: string;
|
|
16867
|
+
week_start?: string;
|
|
16868
|
+
};
|
|
15164
16869
|
Relationships: [
|
|
15165
16870
|
{
|
|
15166
|
-
foreignKeyName: "
|
|
16871
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
15167
16872
|
columns: ["employee_id"];
|
|
15168
16873
|
isOneToOne: false;
|
|
15169
|
-
referencedRelation: "
|
|
16874
|
+
referencedRelation: "profiles";
|
|
15170
16875
|
referencedColumns: ["id"];
|
|
15171
16876
|
}
|
|
15172
16877
|
];
|
|
15173
16878
|
};
|
|
15174
16879
|
time_logs: {
|
|
15175
16880
|
Row: {
|
|
16881
|
+
auto_stop_reason: string | null;
|
|
16882
|
+
auto_stopped: boolean;
|
|
15176
16883
|
created_at: string;
|
|
16884
|
+
current_latitude: number | null;
|
|
16885
|
+
current_longitude: number | null;
|
|
16886
|
+
current_position_updated_at: string | null;
|
|
15177
16887
|
employee_id: string;
|
|
16888
|
+
end_latitude: number | null;
|
|
16889
|
+
end_longitude: number | null;
|
|
15178
16890
|
end_time: string | null;
|
|
16891
|
+
eta_distance_km: number | null;
|
|
16892
|
+
eta_minutes: number | null;
|
|
16893
|
+
eta_updated_at: string | null;
|
|
16894
|
+
hour_category: string | null;
|
|
15179
16895
|
id: string;
|
|
16896
|
+
last_reminder_at: string | null;
|
|
15180
16897
|
notes: string | null;
|
|
15181
16898
|
overtime_hours: number;
|
|
15182
16899
|
overtime_type: string | null;
|
|
15183
16900
|
regular_hours: number;
|
|
16901
|
+
reminder_count: number;
|
|
16902
|
+
requires_review: boolean;
|
|
16903
|
+
start_latitude: number | null;
|
|
16904
|
+
start_longitude: number | null;
|
|
15184
16905
|
start_time: string;
|
|
15185
16906
|
travel_cost: number | null;
|
|
15186
16907
|
travel_distance_km: number | null;
|
|
16908
|
+
travel_duration_min: number | null;
|
|
16909
|
+
travel_time_minutes: number | null;
|
|
15187
16910
|
type: string;
|
|
15188
16911
|
updated_at: string;
|
|
16912
|
+
work_order_id: string | null;
|
|
15189
16913
|
};
|
|
15190
16914
|
Insert: {
|
|
16915
|
+
auto_stop_reason?: string | null;
|
|
16916
|
+
auto_stopped?: boolean;
|
|
15191
16917
|
created_at?: string;
|
|
16918
|
+
current_latitude?: number | null;
|
|
16919
|
+
current_longitude?: number | null;
|
|
16920
|
+
current_position_updated_at?: string | null;
|
|
15192
16921
|
employee_id: string;
|
|
16922
|
+
end_latitude?: number | null;
|
|
16923
|
+
end_longitude?: number | null;
|
|
15193
16924
|
end_time?: string | null;
|
|
16925
|
+
eta_distance_km?: number | null;
|
|
16926
|
+
eta_minutes?: number | null;
|
|
16927
|
+
eta_updated_at?: string | null;
|
|
16928
|
+
hour_category?: string | null;
|
|
15194
16929
|
id?: string;
|
|
16930
|
+
last_reminder_at?: string | null;
|
|
15195
16931
|
notes?: string | null;
|
|
15196
16932
|
overtime_hours?: number;
|
|
15197
16933
|
overtime_type?: string | null;
|
|
15198
16934
|
regular_hours?: number;
|
|
16935
|
+
reminder_count?: number;
|
|
16936
|
+
requires_review?: boolean;
|
|
16937
|
+
start_latitude?: number | null;
|
|
16938
|
+
start_longitude?: number | null;
|
|
15199
16939
|
start_time?: string;
|
|
15200
16940
|
travel_cost?: number | null;
|
|
15201
16941
|
travel_distance_km?: number | null;
|
|
16942
|
+
travel_duration_min?: number | null;
|
|
16943
|
+
travel_time_minutes?: number | null;
|
|
15202
16944
|
type: string;
|
|
15203
16945
|
updated_at?: string;
|
|
16946
|
+
work_order_id?: string | null;
|
|
15204
16947
|
};
|
|
15205
16948
|
Update: {
|
|
16949
|
+
auto_stop_reason?: string | null;
|
|
16950
|
+
auto_stopped?: boolean;
|
|
15206
16951
|
created_at?: string;
|
|
16952
|
+
current_latitude?: number | null;
|
|
16953
|
+
current_longitude?: number | null;
|
|
16954
|
+
current_position_updated_at?: string | null;
|
|
15207
16955
|
employee_id?: string;
|
|
16956
|
+
end_latitude?: number | null;
|
|
16957
|
+
end_longitude?: number | null;
|
|
15208
16958
|
end_time?: string | null;
|
|
16959
|
+
eta_distance_km?: number | null;
|
|
16960
|
+
eta_minutes?: number | null;
|
|
16961
|
+
eta_updated_at?: string | null;
|
|
16962
|
+
hour_category?: string | null;
|
|
15209
16963
|
id?: string;
|
|
16964
|
+
last_reminder_at?: string | null;
|
|
15210
16965
|
notes?: string | null;
|
|
15211
16966
|
overtime_hours?: number;
|
|
15212
16967
|
overtime_type?: string | null;
|
|
15213
16968
|
regular_hours?: number;
|
|
16969
|
+
reminder_count?: number;
|
|
16970
|
+
requires_review?: boolean;
|
|
16971
|
+
start_latitude?: number | null;
|
|
16972
|
+
start_longitude?: number | null;
|
|
15214
16973
|
start_time?: string;
|
|
15215
16974
|
travel_cost?: number | null;
|
|
15216
16975
|
travel_distance_km?: number | null;
|
|
16976
|
+
travel_duration_min?: number | null;
|
|
16977
|
+
travel_time_minutes?: number | null;
|
|
15217
16978
|
type?: string;
|
|
15218
16979
|
updated_at?: string;
|
|
16980
|
+
work_order_id?: string | null;
|
|
15219
16981
|
};
|
|
15220
16982
|
Relationships: [
|
|
15221
16983
|
{
|
|
15222
16984
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
15223
16985
|
columns: ["employee_id"];
|
|
15224
16986
|
isOneToOne: false;
|
|
15225
|
-
referencedRelation: "
|
|
16987
|
+
referencedRelation: "profiles";
|
|
16988
|
+
referencedColumns: ["id"];
|
|
16989
|
+
},
|
|
16990
|
+
{
|
|
16991
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
16992
|
+
columns: ["work_order_id"];
|
|
16993
|
+
isOneToOne: false;
|
|
16994
|
+
referencedRelation: "work_orders";
|
|
15226
16995
|
referencedColumns: ["id"];
|
|
15227
16996
|
}
|
|
15228
16997
|
];
|
|
@@ -15263,7 +17032,7 @@ export type Database = {
|
|
|
15263
17032
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
15264
17033
|
columns: ["employee_id"];
|
|
15265
17034
|
isOneToOne: false;
|
|
15266
|
-
referencedRelation: "
|
|
17035
|
+
referencedRelation: "profiles";
|
|
15267
17036
|
referencedColumns: ["id"];
|
|
15268
17037
|
}
|
|
15269
17038
|
];
|
|
@@ -15515,12 +17284,16 @@ export type Database = {
|
|
|
15515
17284
|
company_name: string | null;
|
|
15516
17285
|
connected_at: string | null;
|
|
15517
17286
|
created_at: string;
|
|
17287
|
+
disconnected_at: string | null;
|
|
15518
17288
|
environment: string;
|
|
15519
17289
|
id: string;
|
|
17290
|
+
initial_sync_completed_at: string | null;
|
|
17291
|
+
initial_sync_started_at: string | null;
|
|
15520
17292
|
is_active: boolean;
|
|
15521
17293
|
label: string | null;
|
|
15522
17294
|
office_code: string | null;
|
|
15523
17295
|
redirect_uri: string | null;
|
|
17296
|
+
superseded_at: string | null;
|
|
15524
17297
|
updated_at: string;
|
|
15525
17298
|
user_id: string;
|
|
15526
17299
|
};
|
|
@@ -15531,12 +17304,16 @@ export type Database = {
|
|
|
15531
17304
|
company_name?: string | null;
|
|
15532
17305
|
connected_at?: string | null;
|
|
15533
17306
|
created_at?: string;
|
|
17307
|
+
disconnected_at?: string | null;
|
|
15534
17308
|
environment: string;
|
|
15535
17309
|
id?: string;
|
|
17310
|
+
initial_sync_completed_at?: string | null;
|
|
17311
|
+
initial_sync_started_at?: string | null;
|
|
15536
17312
|
is_active?: boolean;
|
|
15537
17313
|
label?: string | null;
|
|
15538
17314
|
office_code?: string | null;
|
|
15539
17315
|
redirect_uri?: string | null;
|
|
17316
|
+
superseded_at?: string | null;
|
|
15540
17317
|
updated_at?: string;
|
|
15541
17318
|
user_id: string;
|
|
15542
17319
|
};
|
|
@@ -15547,12 +17324,16 @@ export type Database = {
|
|
|
15547
17324
|
company_name?: string | null;
|
|
15548
17325
|
connected_at?: string | null;
|
|
15549
17326
|
created_at?: string;
|
|
17327
|
+
disconnected_at?: string | null;
|
|
15550
17328
|
environment?: string;
|
|
15551
17329
|
id?: string;
|
|
17330
|
+
initial_sync_completed_at?: string | null;
|
|
17331
|
+
initial_sync_started_at?: string | null;
|
|
15552
17332
|
is_active?: boolean;
|
|
15553
17333
|
label?: string | null;
|
|
15554
17334
|
office_code?: string | null;
|
|
15555
17335
|
redirect_uri?: string | null;
|
|
17336
|
+
superseded_at?: string | null;
|
|
15556
17337
|
updated_at?: string;
|
|
15557
17338
|
user_id?: string;
|
|
15558
17339
|
};
|
|
@@ -15576,9 +17357,43 @@ export type Database = {
|
|
|
15576
17357
|
};
|
|
15577
17358
|
Relationships: [];
|
|
15578
17359
|
};
|
|
17360
|
+
twinfield_cron_locks: {
|
|
17361
|
+
Row: {
|
|
17362
|
+
created_at: string;
|
|
17363
|
+
heartbeat_at: string;
|
|
17364
|
+
job_name: string;
|
|
17365
|
+
last_error: string | null;
|
|
17366
|
+
last_finished_at: string | null;
|
|
17367
|
+
locked_at: string;
|
|
17368
|
+
run_id: string;
|
|
17369
|
+
updated_at: string;
|
|
17370
|
+
};
|
|
17371
|
+
Insert: {
|
|
17372
|
+
created_at?: string;
|
|
17373
|
+
heartbeat_at?: string;
|
|
17374
|
+
job_name: string;
|
|
17375
|
+
last_error?: string | null;
|
|
17376
|
+
last_finished_at?: string | null;
|
|
17377
|
+
locked_at?: string;
|
|
17378
|
+
run_id?: string;
|
|
17379
|
+
updated_at?: string;
|
|
17380
|
+
};
|
|
17381
|
+
Update: {
|
|
17382
|
+
created_at?: string;
|
|
17383
|
+
heartbeat_at?: string;
|
|
17384
|
+
job_name?: string;
|
|
17385
|
+
last_error?: string | null;
|
|
17386
|
+
last_finished_at?: string | null;
|
|
17387
|
+
locked_at?: string;
|
|
17388
|
+
run_id?: string;
|
|
17389
|
+
updated_at?: string;
|
|
17390
|
+
};
|
|
17391
|
+
Relationships: [];
|
|
17392
|
+
};
|
|
15579
17393
|
twinfield_customers: {
|
|
15580
17394
|
Row: {
|
|
15581
17395
|
address: string | null;
|
|
17396
|
+
administration_code: string;
|
|
15582
17397
|
city: string | null;
|
|
15583
17398
|
country: string | null;
|
|
15584
17399
|
created_at: string;
|
|
@@ -15598,6 +17413,7 @@ export type Database = {
|
|
|
15598
17413
|
};
|
|
15599
17414
|
Insert: {
|
|
15600
17415
|
address?: string | null;
|
|
17416
|
+
administration_code?: string;
|
|
15601
17417
|
city?: string | null;
|
|
15602
17418
|
country?: string | null;
|
|
15603
17419
|
created_at?: string;
|
|
@@ -15617,6 +17433,7 @@ export type Database = {
|
|
|
15617
17433
|
};
|
|
15618
17434
|
Update: {
|
|
15619
17435
|
address?: string | null;
|
|
17436
|
+
administration_code?: string;
|
|
15620
17437
|
city?: string | null;
|
|
15621
17438
|
country?: string | null;
|
|
15622
17439
|
created_at?: string;
|
|
@@ -15838,6 +17655,10 @@ export type Database = {
|
|
|
15838
17655
|
};
|
|
15839
17656
|
twinfield_invoice_settings: {
|
|
15840
17657
|
Row: {
|
|
17658
|
+
administration_code: string | null;
|
|
17659
|
+
auto_invoice_enabled: boolean;
|
|
17660
|
+
auto_invoice_start_date: string | null;
|
|
17661
|
+
auto_invoice_trigger_statuses: string[];
|
|
15841
17662
|
created_at: string;
|
|
15842
17663
|
debtor_gl_account: string;
|
|
15843
17664
|
default_credit_invoice_type: string | null;
|
|
@@ -15850,14 +17671,20 @@ export type Database = {
|
|
|
15850
17671
|
invoice_enabled_fo: boolean;
|
|
15851
17672
|
invoice_enabled_ho: boolean;
|
|
15852
17673
|
invoice_enabled_mo: boolean;
|
|
17674
|
+
needs_review: boolean;
|
|
15853
17675
|
payment_gl_account: string;
|
|
15854
17676
|
payment_journal_code: string;
|
|
17677
|
+
settings_confirmed_at: string | null;
|
|
15855
17678
|
updated_at: string;
|
|
15856
17679
|
user_id: string;
|
|
15857
17680
|
vat_code_eu_reverse: string | null;
|
|
15858
17681
|
vat_code_export: string | null;
|
|
15859
17682
|
};
|
|
15860
17683
|
Insert: {
|
|
17684
|
+
administration_code?: string | null;
|
|
17685
|
+
auto_invoice_enabled?: boolean;
|
|
17686
|
+
auto_invoice_start_date?: string | null;
|
|
17687
|
+
auto_invoice_trigger_statuses?: string[];
|
|
15861
17688
|
created_at?: string;
|
|
15862
17689
|
debtor_gl_account?: string;
|
|
15863
17690
|
default_credit_invoice_type?: string | null;
|
|
@@ -15870,14 +17697,20 @@ export type Database = {
|
|
|
15870
17697
|
invoice_enabled_fo?: boolean;
|
|
15871
17698
|
invoice_enabled_ho?: boolean;
|
|
15872
17699
|
invoice_enabled_mo?: boolean;
|
|
17700
|
+
needs_review?: boolean;
|
|
15873
17701
|
payment_gl_account?: string;
|
|
15874
17702
|
payment_journal_code?: string;
|
|
17703
|
+
settings_confirmed_at?: string | null;
|
|
15875
17704
|
updated_at?: string;
|
|
15876
17705
|
user_id: string;
|
|
15877
17706
|
vat_code_eu_reverse?: string | null;
|
|
15878
17707
|
vat_code_export?: string | null;
|
|
15879
17708
|
};
|
|
15880
17709
|
Update: {
|
|
17710
|
+
administration_code?: string | null;
|
|
17711
|
+
auto_invoice_enabled?: boolean;
|
|
17712
|
+
auto_invoice_start_date?: string | null;
|
|
17713
|
+
auto_invoice_trigger_statuses?: string[];
|
|
15881
17714
|
created_at?: string;
|
|
15882
17715
|
debtor_gl_account?: string;
|
|
15883
17716
|
default_credit_invoice_type?: string | null;
|
|
@@ -15890,8 +17723,10 @@ export type Database = {
|
|
|
15890
17723
|
invoice_enabled_fo?: boolean;
|
|
15891
17724
|
invoice_enabled_ho?: boolean;
|
|
15892
17725
|
invoice_enabled_mo?: boolean;
|
|
17726
|
+
needs_review?: boolean;
|
|
15893
17727
|
payment_gl_account?: string;
|
|
15894
17728
|
payment_journal_code?: string;
|
|
17729
|
+
settings_confirmed_at?: string | null;
|
|
15895
17730
|
updated_at?: string;
|
|
15896
17731
|
user_id?: string;
|
|
15897
17732
|
vat_code_eu_reverse?: string | null;
|
|
@@ -16180,6 +18015,7 @@ export type Database = {
|
|
|
16180
18015
|
twinfield_push_queue: {
|
|
16181
18016
|
Row: {
|
|
16182
18017
|
action: string;
|
|
18018
|
+
attempt_started_at: string | null;
|
|
16183
18019
|
attempts: number;
|
|
16184
18020
|
connection_id: string | null;
|
|
16185
18021
|
created_at: string;
|
|
@@ -16196,6 +18032,7 @@ export type Database = {
|
|
|
16196
18032
|
};
|
|
16197
18033
|
Insert: {
|
|
16198
18034
|
action?: string;
|
|
18035
|
+
attempt_started_at?: string | null;
|
|
16199
18036
|
attempts?: number;
|
|
16200
18037
|
connection_id?: string | null;
|
|
16201
18038
|
created_at?: string;
|
|
@@ -16212,6 +18049,7 @@ export type Database = {
|
|
|
16212
18049
|
};
|
|
16213
18050
|
Update: {
|
|
16214
18051
|
action?: string;
|
|
18052
|
+
attempt_started_at?: string | null;
|
|
16215
18053
|
attempts?: number;
|
|
16216
18054
|
connection_id?: string | null;
|
|
16217
18055
|
created_at?: string;
|
|
@@ -16414,15 +18252,7 @@ export type Database = {
|
|
|
16414
18252
|
workday_end?: string | null;
|
|
16415
18253
|
workday_start?: string | null;
|
|
16416
18254
|
};
|
|
16417
|
-
Relationships: [
|
|
16418
|
-
{
|
|
16419
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
16420
|
-
columns: ["monteur_id"];
|
|
16421
|
-
isOneToOne: true;
|
|
16422
|
-
referencedRelation: "monteurs";
|
|
16423
|
-
referencedColumns: ["id"];
|
|
16424
|
-
}
|
|
16425
|
-
];
|
|
18255
|
+
Relationships: [];
|
|
16426
18256
|
};
|
|
16427
18257
|
uren_entries: {
|
|
16428
18258
|
Row: {
|
|
@@ -16468,13 +18298,6 @@ export type Database = {
|
|
|
16468
18298
|
werkbon_id?: string | null;
|
|
16469
18299
|
};
|
|
16470
18300
|
Relationships: [
|
|
16471
|
-
{
|
|
16472
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16473
|
-
columns: ["monteur_id"];
|
|
16474
|
-
isOneToOne: false;
|
|
16475
|
-
referencedRelation: "monteurs";
|
|
16476
|
-
referencedColumns: ["id"];
|
|
16477
|
-
},
|
|
16478
18301
|
{
|
|
16479
18302
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16480
18303
|
columns: ["werkbon_id"];
|
|
@@ -16517,119 +18340,6 @@ export type Database = {
|
|
|
16517
18340
|
};
|
|
16518
18341
|
Relationships: [];
|
|
16519
18342
|
};
|
|
16520
|
-
uren_facturen: {
|
|
16521
|
-
Row: {
|
|
16522
|
-
created_at: string;
|
|
16523
|
-
created_by: string | null;
|
|
16524
|
-
customer_id: string | null;
|
|
16525
|
-
customer_name: string | null;
|
|
16526
|
-
id: string;
|
|
16527
|
-
invoice_number: string | null;
|
|
16528
|
-
note: string | null;
|
|
16529
|
-
status: string;
|
|
16530
|
-
total_excl_cents: number;
|
|
16531
|
-
total_incl_cents: number;
|
|
16532
|
-
updated_at: string;
|
|
16533
|
-
vat_cents: number;
|
|
16534
|
-
vat_percentage: number;
|
|
16535
|
-
werkbon_id: string | null;
|
|
16536
|
-
};
|
|
16537
|
-
Insert: {
|
|
16538
|
-
created_at?: string;
|
|
16539
|
-
created_by?: string | null;
|
|
16540
|
-
customer_id?: string | null;
|
|
16541
|
-
customer_name?: string | null;
|
|
16542
|
-
id?: string;
|
|
16543
|
-
invoice_number?: string | null;
|
|
16544
|
-
note?: string | null;
|
|
16545
|
-
status?: string;
|
|
16546
|
-
total_excl_cents?: number;
|
|
16547
|
-
total_incl_cents?: number;
|
|
16548
|
-
updated_at?: string;
|
|
16549
|
-
vat_cents?: number;
|
|
16550
|
-
vat_percentage?: number;
|
|
16551
|
-
werkbon_id?: string | null;
|
|
16552
|
-
};
|
|
16553
|
-
Update: {
|
|
16554
|
-
created_at?: string;
|
|
16555
|
-
created_by?: string | null;
|
|
16556
|
-
customer_id?: string | null;
|
|
16557
|
-
customer_name?: string | null;
|
|
16558
|
-
id?: string;
|
|
16559
|
-
invoice_number?: string | null;
|
|
16560
|
-
note?: string | null;
|
|
16561
|
-
status?: string;
|
|
16562
|
-
total_excl_cents?: number;
|
|
16563
|
-
total_incl_cents?: number;
|
|
16564
|
-
updated_at?: string;
|
|
16565
|
-
vat_cents?: number;
|
|
16566
|
-
vat_percentage?: number;
|
|
16567
|
-
werkbon_id?: string | null;
|
|
16568
|
-
};
|
|
16569
|
-
Relationships: [
|
|
16570
|
-
{
|
|
16571
|
-
foreignKeyName: "uren_facturen_customer_id_fkey";
|
|
16572
|
-
columns: ["customer_id"];
|
|
16573
|
-
isOneToOne: false;
|
|
16574
|
-
referencedRelation: "itk_customers";
|
|
16575
|
-
referencedColumns: ["id"];
|
|
16576
|
-
},
|
|
16577
|
-
{
|
|
16578
|
-
foreignKeyName: "uren_facturen_werkbon_id_fkey";
|
|
16579
|
-
columns: ["werkbon_id"];
|
|
16580
|
-
isOneToOne: true;
|
|
16581
|
-
referencedRelation: "werkbonnen";
|
|
16582
|
-
referencedColumns: ["id"];
|
|
16583
|
-
}
|
|
16584
|
-
];
|
|
16585
|
-
};
|
|
16586
|
-
uren_factuur_regels: {
|
|
16587
|
-
Row: {
|
|
16588
|
-
created_at: string;
|
|
16589
|
-
description: string;
|
|
16590
|
-
factuur_id: string;
|
|
16591
|
-
id: string;
|
|
16592
|
-
kind: string | null;
|
|
16593
|
-
quantity: number;
|
|
16594
|
-
sort_order: number;
|
|
16595
|
-
total_cents: number;
|
|
16596
|
-
unit: string;
|
|
16597
|
-
unit_price_cents: number;
|
|
16598
|
-
};
|
|
16599
|
-
Insert: {
|
|
16600
|
-
created_at?: string;
|
|
16601
|
-
description: string;
|
|
16602
|
-
factuur_id: string;
|
|
16603
|
-
id?: string;
|
|
16604
|
-
kind?: string | null;
|
|
16605
|
-
quantity?: number;
|
|
16606
|
-
sort_order?: number;
|
|
16607
|
-
total_cents?: number;
|
|
16608
|
-
unit?: string;
|
|
16609
|
-
unit_price_cents?: number;
|
|
16610
|
-
};
|
|
16611
|
-
Update: {
|
|
16612
|
-
created_at?: string;
|
|
16613
|
-
description?: string;
|
|
16614
|
-
factuur_id?: string;
|
|
16615
|
-
id?: string;
|
|
16616
|
-
kind?: string | null;
|
|
16617
|
-
quantity?: number;
|
|
16618
|
-
sort_order?: number;
|
|
16619
|
-
total_cents?: number;
|
|
16620
|
-
unit?: string;
|
|
16621
|
-
unit_price_cents?: number;
|
|
16622
|
-
};
|
|
16623
|
-
Relationships: [
|
|
16624
|
-
{
|
|
16625
|
-
foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
|
|
16626
|
-
columns: ["factuur_id"];
|
|
16627
|
-
isOneToOne: false;
|
|
16628
|
-
referencedRelation: "uren_facturen";
|
|
16629
|
-
referencedColumns: ["id"];
|
|
16630
|
-
}
|
|
16631
|
-
];
|
|
16632
|
-
};
|
|
16633
18343
|
uren_offerte_regels: {
|
|
16634
18344
|
Row: {
|
|
16635
18345
|
created_at: string;
|
|
@@ -16956,19 +18666,12 @@ export type Database = {
|
|
|
16956
18666
|
submitted_at?: string | null;
|
|
16957
18667
|
updated_at?: string;
|
|
16958
18668
|
};
|
|
16959
|
-
Relationships: [
|
|
16960
|
-
{
|
|
16961
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
16962
|
-
columns: ["monteur_id"];
|
|
16963
|
-
isOneToOne: false;
|
|
16964
|
-
referencedRelation: "monteurs";
|
|
16965
|
-
referencedColumns: ["id"];
|
|
16966
|
-
}
|
|
16967
|
-
];
|
|
18669
|
+
Relationships: [];
|
|
16968
18670
|
};
|
|
16969
18671
|
user_module_permissions: {
|
|
16970
18672
|
Row: {
|
|
16971
18673
|
created_at: string;
|
|
18674
|
+
feature_id: string;
|
|
16972
18675
|
id: string;
|
|
16973
18676
|
module_id: string;
|
|
16974
18677
|
permission: string;
|
|
@@ -16977,6 +18680,7 @@ export type Database = {
|
|
|
16977
18680
|
};
|
|
16978
18681
|
Insert: {
|
|
16979
18682
|
created_at?: string;
|
|
18683
|
+
feature_id?: string;
|
|
16980
18684
|
id?: string;
|
|
16981
18685
|
module_id: string;
|
|
16982
18686
|
permission: string;
|
|
@@ -16985,6 +18689,7 @@ export type Database = {
|
|
|
16985
18689
|
};
|
|
16986
18690
|
Update: {
|
|
16987
18691
|
created_at?: string;
|
|
18692
|
+
feature_id?: string;
|
|
16988
18693
|
id?: string;
|
|
16989
18694
|
module_id?: string;
|
|
16990
18695
|
permission?: string;
|
|
@@ -17009,13 +18714,60 @@ export type Database = {
|
|
|
17009
18714
|
Update: {
|
|
17010
18715
|
created_at?: string;
|
|
17011
18716
|
id?: string;
|
|
17012
|
-
role?: Database["public"]["Enums"]["app_role"];
|
|
17013
|
-
user_id?: string;
|
|
18717
|
+
role?: Database["public"]["Enums"]["app_role"];
|
|
18718
|
+
user_id?: string;
|
|
18719
|
+
};
|
|
18720
|
+
Relationships: [
|
|
18721
|
+
{
|
|
18722
|
+
foreignKeyName: "user_roles_user_id_fkey";
|
|
18723
|
+
columns: ["user_id"];
|
|
18724
|
+
isOneToOne: false;
|
|
18725
|
+
referencedRelation: "profiles";
|
|
18726
|
+
referencedColumns: ["id"];
|
|
18727
|
+
}
|
|
18728
|
+
];
|
|
18729
|
+
};
|
|
18730
|
+
van_inventories: {
|
|
18731
|
+
Row: {
|
|
18732
|
+
barcode: string | null;
|
|
18733
|
+
created_at: string;
|
|
18734
|
+
id: string;
|
|
18735
|
+
monteur_id: string | null;
|
|
18736
|
+
price_per_unit: number;
|
|
18737
|
+
product_name: string;
|
|
18738
|
+
quantity_current: number;
|
|
18739
|
+
quantity_min: number;
|
|
18740
|
+
unit: string;
|
|
18741
|
+
updated_at: string;
|
|
18742
|
+
};
|
|
18743
|
+
Insert: {
|
|
18744
|
+
barcode?: string | null;
|
|
18745
|
+
created_at?: string;
|
|
18746
|
+
id?: string;
|
|
18747
|
+
monteur_id?: string | null;
|
|
18748
|
+
price_per_unit?: number;
|
|
18749
|
+
product_name: string;
|
|
18750
|
+
quantity_current?: number;
|
|
18751
|
+
quantity_min?: number;
|
|
18752
|
+
unit?: string;
|
|
18753
|
+
updated_at?: string;
|
|
18754
|
+
};
|
|
18755
|
+
Update: {
|
|
18756
|
+
barcode?: string | null;
|
|
18757
|
+
created_at?: string;
|
|
18758
|
+
id?: string;
|
|
18759
|
+
monteur_id?: string | null;
|
|
18760
|
+
price_per_unit?: number;
|
|
18761
|
+
product_name?: string;
|
|
18762
|
+
quantity_current?: number;
|
|
18763
|
+
quantity_min?: number;
|
|
18764
|
+
unit?: string;
|
|
18765
|
+
updated_at?: string;
|
|
17014
18766
|
};
|
|
17015
18767
|
Relationships: [
|
|
17016
18768
|
{
|
|
17017
|
-
foreignKeyName: "
|
|
17018
|
-
columns: ["
|
|
18769
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
18770
|
+
columns: ["monteur_id"];
|
|
17019
18771
|
isOneToOne: false;
|
|
17020
18772
|
referencedRelation: "profiles";
|
|
17021
18773
|
referencedColumns: ["id"];
|
|
@@ -17609,6 +19361,7 @@ export type Database = {
|
|
|
17609
19361
|
werkbon_package_items: {
|
|
17610
19362
|
Row: {
|
|
17611
19363
|
article_number: string | null;
|
|
19364
|
+
artikel_id: string | null;
|
|
17612
19365
|
created_at: string;
|
|
17613
19366
|
gtin: string | null;
|
|
17614
19367
|
id: string;
|
|
@@ -17626,6 +19379,7 @@ export type Database = {
|
|
|
17626
19379
|
};
|
|
17627
19380
|
Insert: {
|
|
17628
19381
|
article_number?: string | null;
|
|
19382
|
+
artikel_id?: string | null;
|
|
17629
19383
|
created_at?: string;
|
|
17630
19384
|
gtin?: string | null;
|
|
17631
19385
|
id?: string;
|
|
@@ -17643,6 +19397,7 @@ export type Database = {
|
|
|
17643
19397
|
};
|
|
17644
19398
|
Update: {
|
|
17645
19399
|
article_number?: string | null;
|
|
19400
|
+
artikel_id?: string | null;
|
|
17646
19401
|
created_at?: string;
|
|
17647
19402
|
gtin?: string | null;
|
|
17648
19403
|
id?: string;
|
|
@@ -17659,6 +19414,13 @@ export type Database = {
|
|
|
17659
19414
|
updated_at?: string;
|
|
17660
19415
|
};
|
|
17661
19416
|
Relationships: [
|
|
19417
|
+
{
|
|
19418
|
+
foreignKeyName: "werkbon_package_items_artikel_id_fkey";
|
|
19419
|
+
columns: ["artikel_id"];
|
|
19420
|
+
isOneToOne: false;
|
|
19421
|
+
referencedRelation: "artikelen_cache";
|
|
19422
|
+
referencedColumns: ["id"];
|
|
19423
|
+
},
|
|
17662
19424
|
{
|
|
17663
19425
|
foreignKeyName: "werkbon_package_items_package_id_fkey";
|
|
17664
19426
|
columns: ["package_id"];
|
|
@@ -17871,6 +19633,9 @@ export type Database = {
|
|
|
17871
19633
|
scheduled_end_time: string | null;
|
|
17872
19634
|
scheduled_start_time: string | null;
|
|
17873
19635
|
sequence_number: number;
|
|
19636
|
+
signature_accepted_at: string | null;
|
|
19637
|
+
signature_by_user_id: string | null;
|
|
19638
|
+
signature_name: string | null;
|
|
17874
19639
|
source_email_meta: Json | null;
|
|
17875
19640
|
source_mailbox_message_id: string | null;
|
|
17876
19641
|
source_pdf_path: string | null;
|
|
@@ -17906,6 +19671,9 @@ export type Database = {
|
|
|
17906
19671
|
scheduled_end_time?: string | null;
|
|
17907
19672
|
scheduled_start_time?: string | null;
|
|
17908
19673
|
sequence_number: number;
|
|
19674
|
+
signature_accepted_at?: string | null;
|
|
19675
|
+
signature_by_user_id?: string | null;
|
|
19676
|
+
signature_name?: string | null;
|
|
17909
19677
|
source_email_meta?: Json | null;
|
|
17910
19678
|
source_mailbox_message_id?: string | null;
|
|
17911
19679
|
source_pdf_path?: string | null;
|
|
@@ -17941,6 +19709,9 @@ export type Database = {
|
|
|
17941
19709
|
scheduled_end_time?: string | null;
|
|
17942
19710
|
scheduled_start_time?: string | null;
|
|
17943
19711
|
sequence_number?: number;
|
|
19712
|
+
signature_accepted_at?: string | null;
|
|
19713
|
+
signature_by_user_id?: string | null;
|
|
19714
|
+
signature_name?: string | null;
|
|
17944
19715
|
source_email_meta?: Json | null;
|
|
17945
19716
|
source_mailbox_message_id?: string | null;
|
|
17946
19717
|
source_pdf_path?: string | null;
|
|
@@ -17995,7 +19766,7 @@ export type Database = {
|
|
|
17995
19766
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
17996
19767
|
columns: ["monteur_id"];
|
|
17997
19768
|
isOneToOne: false;
|
|
17998
|
-
referencedRelation: "
|
|
19769
|
+
referencedRelation: "profiles";
|
|
17999
19770
|
referencedColumns: ["id"];
|
|
18000
19771
|
},
|
|
18001
19772
|
{
|
|
@@ -18007,6 +19778,63 @@ export type Database = {
|
|
|
18007
19778
|
}
|
|
18008
19779
|
];
|
|
18009
19780
|
};
|
|
19781
|
+
work_order_photos: {
|
|
19782
|
+
Row: {
|
|
19783
|
+
ai_caption: string | null;
|
|
19784
|
+
ai_categorized_at: string | null;
|
|
19785
|
+
ai_labels: Json | null;
|
|
19786
|
+
caption: string | null;
|
|
19787
|
+
created_at: string;
|
|
19788
|
+
id: string;
|
|
19789
|
+
monteur_id: string | null;
|
|
19790
|
+
photo_type: string;
|
|
19791
|
+
storage_path: string;
|
|
19792
|
+
updated_at: string;
|
|
19793
|
+
work_order_id: string;
|
|
19794
|
+
};
|
|
19795
|
+
Insert: {
|
|
19796
|
+
ai_caption?: string | null;
|
|
19797
|
+
ai_categorized_at?: string | null;
|
|
19798
|
+
ai_labels?: Json | null;
|
|
19799
|
+
caption?: string | null;
|
|
19800
|
+
created_at?: string;
|
|
19801
|
+
id?: string;
|
|
19802
|
+
monteur_id?: string | null;
|
|
19803
|
+
photo_type?: string;
|
|
19804
|
+
storage_path: string;
|
|
19805
|
+
updated_at?: string;
|
|
19806
|
+
work_order_id: string;
|
|
19807
|
+
};
|
|
19808
|
+
Update: {
|
|
19809
|
+
ai_caption?: string | null;
|
|
19810
|
+
ai_categorized_at?: string | null;
|
|
19811
|
+
ai_labels?: Json | null;
|
|
19812
|
+
caption?: string | null;
|
|
19813
|
+
created_at?: string;
|
|
19814
|
+
id?: string;
|
|
19815
|
+
monteur_id?: string | null;
|
|
19816
|
+
photo_type?: string;
|
|
19817
|
+
storage_path?: string;
|
|
19818
|
+
updated_at?: string;
|
|
19819
|
+
work_order_id?: string;
|
|
19820
|
+
};
|
|
19821
|
+
Relationships: [
|
|
19822
|
+
{
|
|
19823
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
19824
|
+
columns: ["monteur_id"];
|
|
19825
|
+
isOneToOne: false;
|
|
19826
|
+
referencedRelation: "profiles";
|
|
19827
|
+
referencedColumns: ["id"];
|
|
19828
|
+
},
|
|
19829
|
+
{
|
|
19830
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
19831
|
+
columns: ["work_order_id"];
|
|
19832
|
+
isOneToOne: false;
|
|
19833
|
+
referencedRelation: "work_orders";
|
|
19834
|
+
referencedColumns: ["id"];
|
|
19835
|
+
}
|
|
19836
|
+
];
|
|
19837
|
+
};
|
|
18010
19838
|
work_orders: {
|
|
18011
19839
|
Row: {
|
|
18012
19840
|
assigned_to: string | null;
|
|
@@ -18038,7 +19866,6 @@ export type Database = {
|
|
|
18038
19866
|
scheduled_end_time: string | null;
|
|
18039
19867
|
scheduled_start_time: string | null;
|
|
18040
19868
|
status: string;
|
|
18041
|
-
tenant_id: string;
|
|
18042
19869
|
total_hours_worked: number | null;
|
|
18043
19870
|
total_price: number | null;
|
|
18044
19871
|
travel_time_minutes: number | null;
|
|
@@ -18076,7 +19903,6 @@ export type Database = {
|
|
|
18076
19903
|
scheduled_end_time?: string | null;
|
|
18077
19904
|
scheduled_start_time?: string | null;
|
|
18078
19905
|
status?: string;
|
|
18079
|
-
tenant_id: string;
|
|
18080
19906
|
total_hours_worked?: number | null;
|
|
18081
19907
|
total_price?: number | null;
|
|
18082
19908
|
travel_time_minutes?: number | null;
|
|
@@ -18114,7 +19940,6 @@ export type Database = {
|
|
|
18114
19940
|
scheduled_end_time?: string | null;
|
|
18115
19941
|
scheduled_start_time?: string | null;
|
|
18116
19942
|
status?: string;
|
|
18117
|
-
tenant_id?: string;
|
|
18118
19943
|
total_hours_worked?: number | null;
|
|
18119
19944
|
total_price?: number | null;
|
|
18120
19945
|
travel_time_minutes?: number | null;
|
|
@@ -18129,13 +19954,6 @@ export type Database = {
|
|
|
18129
19954
|
isOneToOne: false;
|
|
18130
19955
|
referencedRelation: "work_orders";
|
|
18131
19956
|
referencedColumns: ["id"];
|
|
18132
|
-
},
|
|
18133
|
-
{
|
|
18134
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
18135
|
-
columns: ["tenant_id"];
|
|
18136
|
-
isOneToOne: false;
|
|
18137
|
-
referencedRelation: "tenants";
|
|
18138
|
-
referencedColumns: ["id"];
|
|
18139
19957
|
}
|
|
18140
19958
|
];
|
|
18141
19959
|
};
|
|
@@ -18423,6 +20241,119 @@ export type Database = {
|
|
|
18423
20241
|
};
|
|
18424
20242
|
Relationships: [];
|
|
18425
20243
|
};
|
|
20244
|
+
uren_facturen: {
|
|
20245
|
+
Row: {
|
|
20246
|
+
created_at: string | null;
|
|
20247
|
+
created_by: string | null;
|
|
20248
|
+
customer_id: string | null;
|
|
20249
|
+
customer_name: string | null;
|
|
20250
|
+
id: string | null;
|
|
20251
|
+
invoice_number: string | null;
|
|
20252
|
+
note: string | null;
|
|
20253
|
+
status: string | null;
|
|
20254
|
+
total_excl_cents: number | null;
|
|
20255
|
+
total_incl_cents: number | null;
|
|
20256
|
+
updated_at: string | null;
|
|
20257
|
+
vat_cents: number | null;
|
|
20258
|
+
vat_percentage: number | null;
|
|
20259
|
+
werkbon_id: string | null;
|
|
20260
|
+
};
|
|
20261
|
+
Insert: {
|
|
20262
|
+
created_at?: string | null;
|
|
20263
|
+
created_by?: string | null;
|
|
20264
|
+
customer_id?: string | null;
|
|
20265
|
+
customer_name?: string | null;
|
|
20266
|
+
id?: string | null;
|
|
20267
|
+
invoice_number?: string | null;
|
|
20268
|
+
note?: string | null;
|
|
20269
|
+
status?: string | null;
|
|
20270
|
+
total_excl_cents?: number | null;
|
|
20271
|
+
total_incl_cents?: number | null;
|
|
20272
|
+
updated_at?: string | null;
|
|
20273
|
+
vat_cents?: number | null;
|
|
20274
|
+
vat_percentage?: number | null;
|
|
20275
|
+
werkbon_id?: never;
|
|
20276
|
+
};
|
|
20277
|
+
Update: {
|
|
20278
|
+
created_at?: string | null;
|
|
20279
|
+
created_by?: string | null;
|
|
20280
|
+
customer_id?: string | null;
|
|
20281
|
+
customer_name?: string | null;
|
|
20282
|
+
id?: string | null;
|
|
20283
|
+
invoice_number?: string | null;
|
|
20284
|
+
note?: string | null;
|
|
20285
|
+
status?: string | null;
|
|
20286
|
+
total_excl_cents?: number | null;
|
|
20287
|
+
total_incl_cents?: number | null;
|
|
20288
|
+
updated_at?: string | null;
|
|
20289
|
+
vat_cents?: number | null;
|
|
20290
|
+
vat_percentage?: number | null;
|
|
20291
|
+
werkbon_id?: never;
|
|
20292
|
+
};
|
|
20293
|
+
Relationships: [
|
|
20294
|
+
{
|
|
20295
|
+
foreignKeyName: "invoices_customer_id_fkey";
|
|
20296
|
+
columns: ["customer_id"];
|
|
20297
|
+
isOneToOne: false;
|
|
20298
|
+
referencedRelation: "itk_customers";
|
|
20299
|
+
referencedColumns: ["id"];
|
|
20300
|
+
}
|
|
20301
|
+
];
|
|
20302
|
+
};
|
|
20303
|
+
uren_factuur_regels: {
|
|
20304
|
+
Row: {
|
|
20305
|
+
created_at: string | null;
|
|
20306
|
+
description: string | null;
|
|
20307
|
+
factuur_id: string | null;
|
|
20308
|
+
id: string | null;
|
|
20309
|
+
kind: string | null;
|
|
20310
|
+
quantity: number | null;
|
|
20311
|
+
sort_order: number | null;
|
|
20312
|
+
total_cents: number | null;
|
|
20313
|
+
unit: string | null;
|
|
20314
|
+
unit_price_cents: number | null;
|
|
20315
|
+
};
|
|
20316
|
+
Insert: {
|
|
20317
|
+
created_at?: string | null;
|
|
20318
|
+
description?: string | null;
|
|
20319
|
+
factuur_id?: string | null;
|
|
20320
|
+
id?: string | null;
|
|
20321
|
+
kind?: string | null;
|
|
20322
|
+
quantity?: number | null;
|
|
20323
|
+
sort_order?: number | null;
|
|
20324
|
+
total_cents?: number | null;
|
|
20325
|
+
unit?: string | null;
|
|
20326
|
+
unit_price_cents?: number | null;
|
|
20327
|
+
};
|
|
20328
|
+
Update: {
|
|
20329
|
+
created_at?: string | null;
|
|
20330
|
+
description?: string | null;
|
|
20331
|
+
factuur_id?: string | null;
|
|
20332
|
+
id?: string | null;
|
|
20333
|
+
kind?: string | null;
|
|
20334
|
+
quantity?: number | null;
|
|
20335
|
+
sort_order?: number | null;
|
|
20336
|
+
total_cents?: number | null;
|
|
20337
|
+
unit?: string | null;
|
|
20338
|
+
unit_price_cents?: number | null;
|
|
20339
|
+
};
|
|
20340
|
+
Relationships: [
|
|
20341
|
+
{
|
|
20342
|
+
foreignKeyName: "invoice_items_invoice_id_fkey";
|
|
20343
|
+
columns: ["factuur_id"];
|
|
20344
|
+
isOneToOne: false;
|
|
20345
|
+
referencedRelation: "invoices";
|
|
20346
|
+
referencedColumns: ["id"];
|
|
20347
|
+
},
|
|
20348
|
+
{
|
|
20349
|
+
foreignKeyName: "invoice_items_invoice_id_fkey";
|
|
20350
|
+
columns: ["factuur_id"];
|
|
20351
|
+
isOneToOne: false;
|
|
20352
|
+
referencedRelation: "uren_facturen";
|
|
20353
|
+
referencedColumns: ["id"];
|
|
20354
|
+
}
|
|
20355
|
+
];
|
|
20356
|
+
};
|
|
18426
20357
|
v_external_customers_exact: {
|
|
18427
20358
|
Row: {
|
|
18428
20359
|
account_number: string | null;
|
|
@@ -18751,6 +20682,22 @@ export type Database = {
|
|
|
18751
20682
|
}
|
|
18752
20683
|
];
|
|
18753
20684
|
};
|
|
20685
|
+
v_werkbon_totalen: {
|
|
20686
|
+
Row: {
|
|
20687
|
+
packages_cents: number | null;
|
|
20688
|
+
packages_minutes: number | null;
|
|
20689
|
+
werkbon_id: string | null;
|
|
20690
|
+
};
|
|
20691
|
+
Relationships: [
|
|
20692
|
+
{
|
|
20693
|
+
foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
|
|
20694
|
+
columns: ["werkbon_id"];
|
|
20695
|
+
isOneToOne: false;
|
|
20696
|
+
referencedRelation: "werkbonnen";
|
|
20697
|
+
referencedColumns: ["id"];
|
|
20698
|
+
}
|
|
20699
|
+
];
|
|
20700
|
+
};
|
|
18754
20701
|
};
|
|
18755
20702
|
Functions: {
|
|
18756
20703
|
_floriday_schedule_job: {
|
|
@@ -18833,6 +20780,19 @@ export type Database = {
|
|
|
18833
20780
|
};
|
|
18834
20781
|
Returns: undefined;
|
|
18835
20782
|
};
|
|
20783
|
+
approve_mailbox_order_proposal: {
|
|
20784
|
+
Args: {
|
|
20785
|
+
p_custom_fields: Json;
|
|
20786
|
+
p_customer_id: string;
|
|
20787
|
+
p_delivery_date: string;
|
|
20788
|
+
p_field_values?: Json;
|
|
20789
|
+
p_lines: Json;
|
|
20790
|
+
p_notes: string;
|
|
20791
|
+
p_proposal_id: string;
|
|
20792
|
+
p_reviewed_by: string;
|
|
20793
|
+
};
|
|
20794
|
+
Returns: Json;
|
|
20795
|
+
};
|
|
18836
20796
|
assign_cart_numbers: {
|
|
18837
20797
|
Args: {
|
|
18838
20798
|
p_carts: Json;
|
|
@@ -18868,6 +20828,10 @@ export type Database = {
|
|
|
18868
20828
|
processed_items: number;
|
|
18869
20829
|
}[];
|
|
18870
20830
|
};
|
|
20831
|
+
backfill_order_auto_invoice_queue: {
|
|
20832
|
+
Args: never;
|
|
20833
|
+
Returns: number;
|
|
20834
|
+
};
|
|
18871
20835
|
calculate_layer_stock: {
|
|
18872
20836
|
Args: {
|
|
18873
20837
|
p_product_id: string;
|
|
@@ -18880,6 +20844,10 @@ export type Database = {
|
|
|
18880
20844
|
};
|
|
18881
20845
|
Returns: number;
|
|
18882
20846
|
};
|
|
20847
|
+
can_manage_hours: {
|
|
20848
|
+
Args: never;
|
|
20849
|
+
Returns: boolean;
|
|
20850
|
+
};
|
|
18883
20851
|
check_offer_product_available_stock: {
|
|
18884
20852
|
Args: {
|
|
18885
20853
|
p_campaign_product_id: string;
|
|
@@ -18917,6 +20885,7 @@ export type Database = {
|
|
|
18917
20885
|
gebruiker_id: string | null;
|
|
18918
20886
|
gebruiker_naam: string;
|
|
18919
20887
|
gestart_op: string | null;
|
|
20888
|
+
herkomst: string | null;
|
|
18920
20889
|
id: string;
|
|
18921
20890
|
idempotentie_sleutel: string | null;
|
|
18922
20891
|
is_herprint: boolean;
|
|
@@ -19037,6 +21006,7 @@ export type Database = {
|
|
|
19037
21006
|
gebruiker_id: string | null;
|
|
19038
21007
|
gebruiker_naam: string;
|
|
19039
21008
|
gestart_op: string | null;
|
|
21009
|
+
herkomst: string | null;
|
|
19040
21010
|
id: string;
|
|
19041
21011
|
idempotentie_sleutel: string | null;
|
|
19042
21012
|
is_herprint: boolean;
|
|
@@ -19069,6 +21039,7 @@ export type Database = {
|
|
|
19069
21039
|
};
|
|
19070
21040
|
Returns: {
|
|
19071
21041
|
action: string;
|
|
21042
|
+
attempt_started_at: string | null;
|
|
19072
21043
|
attempts: number;
|
|
19073
21044
|
connection_id: string | null;
|
|
19074
21045
|
created_at: string;
|
|
@@ -19156,6 +21127,30 @@ export type Database = {
|
|
|
19156
21127
|
agent_naam: string;
|
|
19157
21128
|
}[];
|
|
19158
21129
|
};
|
|
21130
|
+
consume_van_inventory: {
|
|
21131
|
+
Args: {
|
|
21132
|
+
p_inventory_id: string;
|
|
21133
|
+
p_quantity: number;
|
|
21134
|
+
};
|
|
21135
|
+
Returns: {
|
|
21136
|
+
barcode: string | null;
|
|
21137
|
+
created_at: string;
|
|
21138
|
+
id: string;
|
|
21139
|
+
monteur_id: string | null;
|
|
21140
|
+
price_per_unit: number;
|
|
21141
|
+
product_name: string;
|
|
21142
|
+
quantity_current: number;
|
|
21143
|
+
quantity_min: number;
|
|
21144
|
+
unit: string;
|
|
21145
|
+
updated_at: string;
|
|
21146
|
+
};
|
|
21147
|
+
SetofOptions: {
|
|
21148
|
+
from: "*";
|
|
21149
|
+
to: "van_inventories";
|
|
21150
|
+
isOneToOne: true;
|
|
21151
|
+
isSetofReturn: false;
|
|
21152
|
+
};
|
|
21153
|
+
};
|
|
19159
21154
|
control_get_todays_carts: {
|
|
19160
21155
|
Args: never;
|
|
19161
21156
|
Returns: {
|
|
@@ -19229,6 +21224,13 @@ export type Database = {
|
|
|
19229
21224
|
_user_id: string;
|
|
19230
21225
|
};
|
|
19231
21226
|
Returns: string;
|
|
21227
|
+
} | {
|
|
21228
|
+
Args: {
|
|
21229
|
+
_feature_id: string;
|
|
21230
|
+
_module_id: string;
|
|
21231
|
+
_user_id: string;
|
|
21232
|
+
};
|
|
21233
|
+
Returns: string;
|
|
19232
21234
|
};
|
|
19233
21235
|
email_auth_decrypt: {
|
|
19234
21236
|
Args: {
|
|
@@ -19275,6 +21277,13 @@ export type Database = {
|
|
|
19275
21277
|
};
|
|
19276
21278
|
Returns: string;
|
|
19277
21279
|
};
|
|
21280
|
+
employee_day_hours: {
|
|
21281
|
+
Args: {
|
|
21282
|
+
_day: string;
|
|
21283
|
+
_employee_id: string;
|
|
21284
|
+
};
|
|
21285
|
+
Returns: number;
|
|
21286
|
+
};
|
|
19278
21287
|
enqueue_cart_replan_if_unlocked: {
|
|
19279
21288
|
Args: {
|
|
19280
21289
|
p_order_id: string;
|
|
@@ -19580,12 +21589,6 @@ export type Database = {
|
|
|
19580
21589
|
Args: never;
|
|
19581
21590
|
Returns: string;
|
|
19582
21591
|
};
|
|
19583
|
-
get_work_order_tenant_id: {
|
|
19584
|
-
Args: {
|
|
19585
|
-
wo_id: string;
|
|
19586
|
-
};
|
|
19587
|
-
Returns: string;
|
|
19588
|
-
};
|
|
19589
21592
|
has_module_permission: {
|
|
19590
21593
|
Args: {
|
|
19591
21594
|
_min: string;
|
|
@@ -19605,6 +21608,46 @@ export type Database = {
|
|
|
19605
21608
|
Args: never;
|
|
19606
21609
|
Returns: boolean;
|
|
19607
21610
|
};
|
|
21611
|
+
invoice_create_from_source: {
|
|
21612
|
+
Args: {
|
|
21613
|
+
_payload?: Json;
|
|
21614
|
+
_source_id: string;
|
|
21615
|
+
_source_type: string;
|
|
21616
|
+
};
|
|
21617
|
+
Returns: Json;
|
|
21618
|
+
};
|
|
21619
|
+
invoice_get_billable_lines: {
|
|
21620
|
+
Args: {
|
|
21621
|
+
_invoice_id: string;
|
|
21622
|
+
};
|
|
21623
|
+
Returns: Json;
|
|
21624
|
+
};
|
|
21625
|
+
invoice_get_for_source: {
|
|
21626
|
+
Args: {
|
|
21627
|
+
_source_id: string;
|
|
21628
|
+
_source_type: string;
|
|
21629
|
+
};
|
|
21630
|
+
Returns: Json;
|
|
21631
|
+
};
|
|
21632
|
+
invoice_get_summary: {
|
|
21633
|
+
Args: {
|
|
21634
|
+
_invoice_id: string;
|
|
21635
|
+
};
|
|
21636
|
+
Returns: Json;
|
|
21637
|
+
};
|
|
21638
|
+
invoice_list_sources: {
|
|
21639
|
+
Args: {
|
|
21640
|
+
_limit?: number;
|
|
21641
|
+
_source_type?: string;
|
|
21642
|
+
};
|
|
21643
|
+
Returns: Json;
|
|
21644
|
+
};
|
|
21645
|
+
invoice_recalc_totals: {
|
|
21646
|
+
Args: {
|
|
21647
|
+
_invoice_id: string;
|
|
21648
|
+
};
|
|
21649
|
+
Returns: Json;
|
|
21650
|
+
};
|
|
19608
21651
|
is_authenticated: {
|
|
19609
21652
|
Args: never;
|
|
19610
21653
|
Returns: boolean;
|
|
@@ -19619,6 +21662,13 @@ export type Database = {
|
|
|
19619
21662
|
};
|
|
19620
21663
|
Returns: boolean;
|
|
19621
21664
|
};
|
|
21665
|
+
is_time_log_week_locked: {
|
|
21666
|
+
Args: {
|
|
21667
|
+
p_employee_id: string;
|
|
21668
|
+
p_start_time: string;
|
|
21669
|
+
};
|
|
21670
|
+
Returns: boolean;
|
|
21671
|
+
};
|
|
19622
21672
|
is_user_admin: {
|
|
19623
21673
|
Args: never;
|
|
19624
21674
|
Returns: boolean;
|
|
@@ -19627,11 +21677,58 @@ export type Database = {
|
|
|
19627
21677
|
Args: never;
|
|
19628
21678
|
Returns: boolean;
|
|
19629
21679
|
};
|
|
19630
|
-
|
|
21680
|
+
itk_offerte_naar_werkbon: {
|
|
21681
|
+
Args: {
|
|
21682
|
+
_offerte_id: string;
|
|
21683
|
+
};
|
|
21684
|
+
Returns: string;
|
|
21685
|
+
};
|
|
21686
|
+
itk_offerte_restant_mandaat: {
|
|
21687
|
+
Args: {
|
|
21688
|
+
_exclude_offerte_id?: string;
|
|
21689
|
+
_werkbon_id: string;
|
|
21690
|
+
};
|
|
21691
|
+
Returns: number;
|
|
21692
|
+
};
|
|
21693
|
+
jwt_has_role: {
|
|
21694
|
+
Args: {
|
|
21695
|
+
_role: Database["public"]["Enums"]["app_role"];
|
|
21696
|
+
};
|
|
21697
|
+
Returns: boolean;
|
|
21698
|
+
};
|
|
21699
|
+
list_medewerkers: {
|
|
21700
|
+
Args: never;
|
|
21701
|
+
Returns: {
|
|
21702
|
+
avatar_url: string;
|
|
21703
|
+
color: string;
|
|
21704
|
+
display_name: string;
|
|
21705
|
+
email: string;
|
|
21706
|
+
hours_fri: number;
|
|
21707
|
+
hours_mon: number;
|
|
21708
|
+
hours_thu: number;
|
|
21709
|
+
hours_tue: number;
|
|
21710
|
+
hours_wed: number;
|
|
21711
|
+
id: string;
|
|
21712
|
+
is_active: boolean;
|
|
21713
|
+
leave_balance_hours: number;
|
|
21714
|
+
persnr: string;
|
|
21715
|
+
phone: string;
|
|
21716
|
+
roles: string[];
|
|
21717
|
+
}[];
|
|
21718
|
+
};
|
|
21719
|
+
list_monteur_absences: {
|
|
19631
21720
|
Args: {
|
|
19632
|
-
|
|
21721
|
+
_from: string;
|
|
21722
|
+
_to: string;
|
|
19633
21723
|
};
|
|
19634
|
-
Returns:
|
|
21724
|
+
Returns: {
|
|
21725
|
+
absence_date: string;
|
|
21726
|
+
end_time: string;
|
|
21727
|
+
full_day: boolean;
|
|
21728
|
+
kind: string;
|
|
21729
|
+
monteur_id: string;
|
|
21730
|
+
start_time: string;
|
|
21731
|
+
}[];
|
|
19635
21732
|
};
|
|
19636
21733
|
list_monteurs: {
|
|
19637
21734
|
Args: never;
|
|
@@ -19965,17 +22062,6 @@ export type Database = {
|
|
|
19965
22062
|
Returns: string;
|
|
19966
22063
|
};
|
|
19967
22064
|
logistics_emit_event: {
|
|
19968
|
-
Args: {
|
|
19969
|
-
p_event_type: string;
|
|
19970
|
-
p_idempotency_key?: string;
|
|
19971
|
-
p_order_ref: string;
|
|
19972
|
-
p_payload?: Json;
|
|
19973
|
-
p_shadow?: boolean;
|
|
19974
|
-
p_source_module: string;
|
|
19975
|
-
p_strategy_id?: string;
|
|
19976
|
-
};
|
|
19977
|
-
Returns: Json;
|
|
19978
|
-
} | {
|
|
19979
22065
|
Args: {
|
|
19980
22066
|
p_event_type: string;
|
|
19981
22067
|
p_idempotency_key?: string;
|
|
@@ -20064,6 +22150,41 @@ export type Database = {
|
|
|
20064
22150
|
};
|
|
20065
22151
|
Returns: string;
|
|
20066
22152
|
};
|
|
22153
|
+
logistics_floriday_finish_push_v2: {
|
|
22154
|
+
Args: {
|
|
22155
|
+
_error?: string;
|
|
22156
|
+
_error_code?: string;
|
|
22157
|
+
_fulfillment_order_id?: string;
|
|
22158
|
+
_gateway_status?: number;
|
|
22159
|
+
_id: string;
|
|
22160
|
+
_max_age_hours?: number;
|
|
22161
|
+
_max_attempts?: number;
|
|
22162
|
+
_ok: boolean;
|
|
22163
|
+
_permanent?: boolean;
|
|
22164
|
+
_response?: Json;
|
|
22165
|
+
_revision: number;
|
|
22166
|
+
_sent_hash?: string;
|
|
22167
|
+
};
|
|
22168
|
+
Returns: string;
|
|
22169
|
+
};
|
|
22170
|
+
logistics_floriday_finish_push_v3: {
|
|
22171
|
+
Args: {
|
|
22172
|
+
_error?: string;
|
|
22173
|
+
_error_code?: string;
|
|
22174
|
+
_fulfillment_order_id?: string;
|
|
22175
|
+
_gateway_status?: number;
|
|
22176
|
+
_id: string;
|
|
22177
|
+
_max_age_hours?: number;
|
|
22178
|
+
_max_attempts?: number;
|
|
22179
|
+
_outcome: string;
|
|
22180
|
+
_permanent?: boolean;
|
|
22181
|
+
_response?: Json;
|
|
22182
|
+
_revision: number;
|
|
22183
|
+
_sent_hash?: string;
|
|
22184
|
+
_wait_max_age_hours?: number;
|
|
22185
|
+
};
|
|
22186
|
+
Returns: string;
|
|
22187
|
+
};
|
|
20067
22188
|
logistics_floriday_prune_pushes: {
|
|
20068
22189
|
Args: {
|
|
20069
22190
|
_days?: number;
|
|
@@ -20124,12 +22245,79 @@ export type Database = {
|
|
|
20124
22245
|
};
|
|
20125
22246
|
Returns: Json;
|
|
20126
22247
|
};
|
|
22248
|
+
logistics_plan_block: {
|
|
22249
|
+
Args: {
|
|
22250
|
+
p_details?: Json;
|
|
22251
|
+
p_order_ids: string[];
|
|
22252
|
+
p_reason: string;
|
|
22253
|
+
};
|
|
22254
|
+
Returns: number;
|
|
22255
|
+
};
|
|
20127
22256
|
logistics_plan_buffer_sql: {
|
|
20128
22257
|
Args: {
|
|
20129
22258
|
p_buffer_id: string;
|
|
20130
22259
|
};
|
|
20131
22260
|
Returns: number;
|
|
20132
22261
|
};
|
|
22262
|
+
logistics_plan_claim: {
|
|
22263
|
+
Args: {
|
|
22264
|
+
p_limit?: number;
|
|
22265
|
+
};
|
|
22266
|
+
Returns: {
|
|
22267
|
+
attempts: number;
|
|
22268
|
+
id: string;
|
|
22269
|
+
order_id: string;
|
|
22270
|
+
}[];
|
|
22271
|
+
};
|
|
22272
|
+
logistics_plan_enqueue: {
|
|
22273
|
+
Args: {
|
|
22274
|
+
p_order_id: string;
|
|
22275
|
+
p_reason?: string;
|
|
22276
|
+
};
|
|
22277
|
+
Returns: undefined;
|
|
22278
|
+
};
|
|
22279
|
+
logistics_plan_ensure_event: {
|
|
22280
|
+
Args: {
|
|
22281
|
+
p_order_id: string;
|
|
22282
|
+
};
|
|
22283
|
+
Returns: boolean;
|
|
22284
|
+
};
|
|
22285
|
+
logistics_plan_finish: {
|
|
22286
|
+
Args: {
|
|
22287
|
+
p_error?: string;
|
|
22288
|
+
p_id: string;
|
|
22289
|
+
};
|
|
22290
|
+
Returns: undefined;
|
|
22291
|
+
};
|
|
22292
|
+
logistics_plan_impact_orders: {
|
|
22293
|
+
Args: {
|
|
22294
|
+
p_order_id: string;
|
|
22295
|
+
};
|
|
22296
|
+
Returns: {
|
|
22297
|
+
buffer_id: string;
|
|
22298
|
+
order_id: string;
|
|
22299
|
+
plan_date: string;
|
|
22300
|
+
}[];
|
|
22301
|
+
};
|
|
22302
|
+
logistics_plan_kick: {
|
|
22303
|
+
Args: never;
|
|
22304
|
+
Returns: undefined;
|
|
22305
|
+
};
|
|
22306
|
+
logistics_plan_prune: {
|
|
22307
|
+
Args: never;
|
|
22308
|
+
Returns: number;
|
|
22309
|
+
};
|
|
22310
|
+
logistics_plan_release_stale: {
|
|
22311
|
+
Args: never;
|
|
22312
|
+
Returns: number;
|
|
22313
|
+
};
|
|
22314
|
+
logistics_plan_setting: {
|
|
22315
|
+
Args: {
|
|
22316
|
+
p_default: number;
|
|
22317
|
+
p_key: string;
|
|
22318
|
+
};
|
|
22319
|
+
Returns: number;
|
|
22320
|
+
};
|
|
20133
22321
|
logistics_queue_capacity_email: {
|
|
20134
22322
|
Args: {
|
|
20135
22323
|
p_alert_id: string;
|
|
@@ -20371,6 +22559,7 @@ export type Database = {
|
|
|
20371
22559
|
my_module_permissions: {
|
|
20372
22560
|
Args: never;
|
|
20373
22561
|
Returns: {
|
|
22562
|
+
feature_id: string;
|
|
20374
22563
|
module_id: string;
|
|
20375
22564
|
permission: string;
|
|
20376
22565
|
}[];
|
|
@@ -20432,6 +22621,12 @@ export type Database = {
|
|
|
20432
22621
|
verwijderd: number;
|
|
20433
22622
|
}[];
|
|
20434
22623
|
};
|
|
22624
|
+
order_departure_proof: {
|
|
22625
|
+
Args: {
|
|
22626
|
+
p_order_id: string;
|
|
22627
|
+
};
|
|
22628
|
+
Returns: Json;
|
|
22629
|
+
};
|
|
20435
22630
|
order_number_prefix: {
|
|
20436
22631
|
Args: {
|
|
20437
22632
|
p_custom_fields?: Json;
|
|
@@ -20439,6 +22634,25 @@ export type Database = {
|
|
|
20439
22634
|
};
|
|
20440
22635
|
Returns: string;
|
|
20441
22636
|
};
|
|
22637
|
+
pakket_suggesties_voor_tekst: {
|
|
22638
|
+
Args: {
|
|
22639
|
+
_tekst: string;
|
|
22640
|
+
};
|
|
22641
|
+
Returns: {
|
|
22642
|
+
hit_type: string;
|
|
22643
|
+
package_id: string;
|
|
22644
|
+
priority: number;
|
|
22645
|
+
}[];
|
|
22646
|
+
};
|
|
22647
|
+
pakket_voor_reistijd: {
|
|
22648
|
+
Args: {
|
|
22649
|
+
_minuten: number;
|
|
22650
|
+
};
|
|
22651
|
+
Returns: {
|
|
22652
|
+
package_id: string;
|
|
22653
|
+
priority: number;
|
|
22654
|
+
}[];
|
|
22655
|
+
};
|
|
20442
22656
|
pick_active_printers: {
|
|
20443
22657
|
Args: never;
|
|
20444
22658
|
Returns: {
|
|
@@ -20546,6 +22760,13 @@ export type Database = {
|
|
|
20546
22760
|
isSetofReturn: false;
|
|
20547
22761
|
};
|
|
20548
22762
|
};
|
|
22763
|
+
pick_cleanup_maintenance: {
|
|
22764
|
+
Args: {
|
|
22765
|
+
_heartbeat_hours?: number;
|
|
22766
|
+
_log_days?: number;
|
|
22767
|
+
};
|
|
22768
|
+
Returns: Json;
|
|
22769
|
+
};
|
|
20549
22770
|
pick_complete_print: {
|
|
20550
22771
|
Args: {
|
|
20551
22772
|
_printer_id: string;
|
|
@@ -20597,6 +22818,14 @@ export type Database = {
|
|
|
20597
22818
|
Args: never;
|
|
20598
22819
|
Returns: string;
|
|
20599
22820
|
};
|
|
22821
|
+
pick_day_counts: {
|
|
22822
|
+
Args: {
|
|
22823
|
+
_pick_day?: string;
|
|
22824
|
+
_screen_id?: string;
|
|
22825
|
+
_station_id?: string;
|
|
22826
|
+
};
|
|
22827
|
+
Returns: Json;
|
|
22828
|
+
};
|
|
20600
22829
|
pick_document_layout_data: {
|
|
20601
22830
|
Args: {
|
|
20602
22831
|
_layout_id: string;
|
|
@@ -20624,6 +22853,18 @@ export type Database = {
|
|
|
20624
22853
|
};
|
|
20625
22854
|
Returns: Json;
|
|
20626
22855
|
};
|
|
22856
|
+
pick_print_plekken: {
|
|
22857
|
+
Args: never;
|
|
22858
|
+
Returns: {
|
|
22859
|
+
id: string;
|
|
22860
|
+
naam: string;
|
|
22861
|
+
omschrijving: string;
|
|
22862
|
+
}[];
|
|
22863
|
+
};
|
|
22864
|
+
pick_reference_data_status: {
|
|
22865
|
+
Args: never;
|
|
22866
|
+
Returns: Json;
|
|
22867
|
+
};
|
|
20627
22868
|
pick_release_expired_locks: {
|
|
20628
22869
|
Args: never;
|
|
20629
22870
|
Returns: number;
|
|
@@ -20634,6 +22875,14 @@ export type Database = {
|
|
|
20634
22875
|
};
|
|
20635
22876
|
Returns: undefined;
|
|
20636
22877
|
};
|
|
22878
|
+
pick_reprint_document: {
|
|
22879
|
+
Args: {
|
|
22880
|
+
_queue_item_id: string;
|
|
22881
|
+
_session_id: string;
|
|
22882
|
+
_throttle_seconds?: number;
|
|
22883
|
+
};
|
|
22884
|
+
Returns: string;
|
|
22885
|
+
};
|
|
20637
22886
|
pick_reset_print: {
|
|
20638
22887
|
Args: {
|
|
20639
22888
|
_queue_item_id: string;
|
|
@@ -20680,6 +22929,17 @@ export type Database = {
|
|
|
20680
22929
|
isSetofReturn: false;
|
|
20681
22930
|
};
|
|
20682
22931
|
};
|
|
22932
|
+
pick_seed_reference_data: {
|
|
22933
|
+
Args: never;
|
|
22934
|
+
Returns: Json;
|
|
22935
|
+
};
|
|
22936
|
+
pick_set_station_print_plek: {
|
|
22937
|
+
Args: {
|
|
22938
|
+
_print_plek_id: string;
|
|
22939
|
+
_station_id: string;
|
|
22940
|
+
};
|
|
22941
|
+
Returns: string;
|
|
22942
|
+
};
|
|
20683
22943
|
pick_station_dashboard: {
|
|
20684
22944
|
Args: never;
|
|
20685
22945
|
Returns: {
|
|
@@ -20692,6 +22952,25 @@ export type Database = {
|
|
|
20692
22952
|
waiting: number;
|
|
20693
22953
|
}[];
|
|
20694
22954
|
};
|
|
22955
|
+
pick_station_print_plek: {
|
|
22956
|
+
Args: {
|
|
22957
|
+
_station_id: string;
|
|
22958
|
+
};
|
|
22959
|
+
Returns: {
|
|
22960
|
+
naam: string;
|
|
22961
|
+
omschrijving: string;
|
|
22962
|
+
print_plek_id: string;
|
|
22963
|
+
}[];
|
|
22964
|
+
};
|
|
22965
|
+
pick_station_print_plekken: {
|
|
22966
|
+
Args: never;
|
|
22967
|
+
Returns: {
|
|
22968
|
+
naam: string;
|
|
22969
|
+
omschrijving: string;
|
|
22970
|
+
print_plek_id: string;
|
|
22971
|
+
station_id: string;
|
|
22972
|
+
}[];
|
|
22973
|
+
};
|
|
20695
22974
|
pick_station_slugify: {
|
|
20696
22975
|
Args: {
|
|
20697
22976
|
_id: string;
|
|
@@ -20699,6 +22978,12 @@ export type Database = {
|
|
|
20699
22978
|
};
|
|
20700
22979
|
Returns: string;
|
|
20701
22980
|
};
|
|
22981
|
+
pick_sync_queue_throttled: {
|
|
22982
|
+
Args: {
|
|
22983
|
+
_min_seconds?: number;
|
|
22984
|
+
};
|
|
22985
|
+
Returns: Json;
|
|
22986
|
+
};
|
|
20702
22987
|
pickstation_get_orders_raw: {
|
|
20703
22988
|
Args: never;
|
|
20704
22989
|
Returns: Json;
|
|
@@ -20760,6 +23045,37 @@ export type Database = {
|
|
|
20760
23045
|
};
|
|
20761
23046
|
Returns: undefined;
|
|
20762
23047
|
};
|
|
23048
|
+
quote_create_from_source: {
|
|
23049
|
+
Args: {
|
|
23050
|
+
_payload?: Json;
|
|
23051
|
+
_source_id: string;
|
|
23052
|
+
_source_type: string;
|
|
23053
|
+
};
|
|
23054
|
+
Returns: string;
|
|
23055
|
+
};
|
|
23056
|
+
quote_get_billable_lines: {
|
|
23057
|
+
Args: {
|
|
23058
|
+
_quotation_id: string;
|
|
23059
|
+
};
|
|
23060
|
+
Returns: Json;
|
|
23061
|
+
};
|
|
23062
|
+
quote_get_summary: {
|
|
23063
|
+
Args: {
|
|
23064
|
+
_quotation_id: string;
|
|
23065
|
+
};
|
|
23066
|
+
Returns: Json;
|
|
23067
|
+
};
|
|
23068
|
+
quote_list_packages: {
|
|
23069
|
+
Args: never;
|
|
23070
|
+
Returns: Json;
|
|
23071
|
+
};
|
|
23072
|
+
quote_list_sources: {
|
|
23073
|
+
Args: {
|
|
23074
|
+
_limit?: number;
|
|
23075
|
+
_source_type?: string;
|
|
23076
|
+
};
|
|
23077
|
+
Returns: Json;
|
|
23078
|
+
};
|
|
20763
23079
|
recompute_all_reserved_stock: {
|
|
20764
23080
|
Args: never;
|
|
20765
23081
|
Returns: undefined;
|
|
@@ -20813,6 +23129,12 @@ export type Database = {
|
|
|
20813
23129
|
};
|
|
20814
23130
|
Returns: boolean;
|
|
20815
23131
|
};
|
|
23132
|
+
release_stale_order_invoice_links: {
|
|
23133
|
+
Args: {
|
|
23134
|
+
_minutes?: number;
|
|
23135
|
+
};
|
|
23136
|
+
Returns: number;
|
|
23137
|
+
};
|
|
20816
23138
|
reorder_customer_price_groups: {
|
|
20817
23139
|
Args: {
|
|
20818
23140
|
_ids: string[];
|
|
@@ -21251,6 +23573,16 @@ export type Database = {
|
|
|
21251
23573
|
};
|
|
21252
23574
|
Returns: string[];
|
|
21253
23575
|
};
|
|
23576
|
+
switch_time_log: {
|
|
23577
|
+
Args: {
|
|
23578
|
+
p_employee_id: string;
|
|
23579
|
+
p_start_lat?: number;
|
|
23580
|
+
p_start_lng?: number;
|
|
23581
|
+
p_type: string;
|
|
23582
|
+
p_work_order_id?: string;
|
|
23583
|
+
};
|
|
23584
|
+
Returns: Json;
|
|
23585
|
+
};
|
|
21254
23586
|
sync_all_layer_stocks: {
|
|
21255
23587
|
Args: never;
|
|
21256
23588
|
Returns: undefined;
|
|
@@ -21285,6 +23617,12 @@ export type Database = {
|
|
|
21285
23617
|
};
|
|
21286
23618
|
Returns: undefined;
|
|
21287
23619
|
};
|
|
23620
|
+
sync_sick_time_off: {
|
|
23621
|
+
Args: {
|
|
23622
|
+
_period_id: string;
|
|
23623
|
+
};
|
|
23624
|
+
Returns: number;
|
|
23625
|
+
};
|
|
21288
23626
|
trade_item_stock_duplicates: {
|
|
21289
23627
|
Args: never;
|
|
21290
23628
|
Returns: {
|
|
@@ -21301,6 +23639,38 @@ export type Database = {
|
|
|
21301
23639
|
};
|
|
21302
23640
|
Returns: boolean;
|
|
21303
23641
|
};
|
|
23642
|
+
twinfield_cron_lock_acquire: {
|
|
23643
|
+
Args: {
|
|
23644
|
+
_job_name: string;
|
|
23645
|
+
_stale_seconds?: number;
|
|
23646
|
+
};
|
|
23647
|
+
Returns: boolean;
|
|
23648
|
+
};
|
|
23649
|
+
twinfield_cron_lock_release: {
|
|
23650
|
+
Args: {
|
|
23651
|
+
_error?: string;
|
|
23652
|
+
_job_name: string;
|
|
23653
|
+
};
|
|
23654
|
+
Returns: undefined;
|
|
23655
|
+
};
|
|
23656
|
+
twinfield_deactivate_connection: {
|
|
23657
|
+
Args: {
|
|
23658
|
+
p_connection_id: string;
|
|
23659
|
+
p_user_id: string;
|
|
23660
|
+
};
|
|
23661
|
+
Returns: Json;
|
|
23662
|
+
};
|
|
23663
|
+
twinfield_handle_administration_change: {
|
|
23664
|
+
Args: {
|
|
23665
|
+
_administration_code: string;
|
|
23666
|
+
_user_id: string;
|
|
23667
|
+
};
|
|
23668
|
+
Returns: undefined;
|
|
23669
|
+
};
|
|
23670
|
+
twinfield_prune_push_queue: {
|
|
23671
|
+
Args: never;
|
|
23672
|
+
Returns: number;
|
|
23673
|
+
};
|
|
21304
23674
|
twinfield_register_cron: {
|
|
21305
23675
|
Args: {
|
|
21306
23676
|
apikey?: string;
|
|
@@ -21316,10 +23686,11 @@ export type Database = {
|
|
|
21316
23686
|
p_company_name?: string;
|
|
21317
23687
|
p_environment: string;
|
|
21318
23688
|
p_office_code?: string;
|
|
23689
|
+
p_reset_sync?: boolean;
|
|
21319
23690
|
p_status?: string;
|
|
21320
23691
|
p_user_id: string;
|
|
21321
23692
|
};
|
|
21322
|
-
Returns:
|
|
23693
|
+
Returns: Json;
|
|
21323
23694
|
};
|
|
21324
23695
|
upsert_auto_fulfillment_log: {
|
|
21325
23696
|
Args: {
|
|
@@ -21340,11 +23711,43 @@ export type Database = {
|
|
|
21340
23711
|
Args: never;
|
|
21341
23712
|
Returns: string;
|
|
21342
23713
|
};
|
|
23714
|
+
werkbon_totalen: {
|
|
23715
|
+
Args: {
|
|
23716
|
+
_werkbon_id: string;
|
|
23717
|
+
};
|
|
23718
|
+
Returns: {
|
|
23719
|
+
materials_cents: number;
|
|
23720
|
+
packages_cents: number;
|
|
23721
|
+
packages_minutes: number;
|
|
23722
|
+
total_cents: number;
|
|
23723
|
+
total_minutes: number;
|
|
23724
|
+
}[];
|
|
23725
|
+
};
|
|
23726
|
+
wo_create_from_source: {
|
|
23727
|
+
Args: {
|
|
23728
|
+
_payload?: Json;
|
|
23729
|
+
_source_id: string;
|
|
23730
|
+
_source_type: string;
|
|
23731
|
+
};
|
|
23732
|
+
Returns: string;
|
|
23733
|
+
};
|
|
23734
|
+
wo_get_billable_lines: {
|
|
23735
|
+
Args: {
|
|
23736
|
+
_work_order_id: string;
|
|
23737
|
+
};
|
|
23738
|
+
Returns: Json;
|
|
23739
|
+
};
|
|
23740
|
+
wo_get_summary: {
|
|
23741
|
+
Args: {
|
|
23742
|
+
_work_order_id: string;
|
|
23743
|
+
};
|
|
23744
|
+
Returns: Json;
|
|
23745
|
+
};
|
|
21343
23746
|
};
|
|
21344
23747
|
Enums: {
|
|
21345
23748
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
21346
23749
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
21347
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
23750
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
21348
23751
|
doc_orientation: "portrait" | "landscape";
|
|
21349
23752
|
exact_env: "staging" | "live";
|
|
21350
23753
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -21415,7 +23818,7 @@ export declare const Constants: {
|
|
|
21415
23818
|
readonly Enums: {
|
|
21416
23819
|
readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
|
|
21417
23820
|
readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie"];
|
|
21418
|
-
readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon"];
|
|
23821
|
+
readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon", "veilingbon", "afleverbrief", "veilingbrief"];
|
|
21419
23822
|
readonly doc_orientation: readonly ["portrait", "landscape"];
|
|
21420
23823
|
readonly exact_env: readonly ["staging", "live"];
|
|
21421
23824
|
readonly exact_push_status: readonly ["pending", "sent", "error"];
|