@flowselections/floriday-authenticatie-module 1.0.38 → 1.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/TemplatePage.d.ts +1 -1
- package/dist-lib/components/TemplatePage.d.ts.map +1 -1
- package/dist-lib/components/floriday/FlorydayConnectionPage.d.ts +1 -1
- package/dist-lib/components/floriday/FlorydayConnectionPage.d.ts.map +1 -1
- package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +1 -1
- package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +1 -1
- package/dist-lib/components/floriday/FlorydaySyncJobsCard.d.ts +1 -1
- package/dist-lib/components/floriday/FlorydaySyncJobsCard.d.ts.map +1 -1
- package/dist-lib/components/floriday/TokenHealthCard.d.ts +1 -1
- package/dist-lib/components/floriday/TokenHealthCard.d.ts.map +1 -1
- package/dist-lib/components/settings/FloricodeSettingsCard.d.ts +1 -1
- package/dist-lib/components/settings/FloricodeSettingsCard.d.ts.map +1 -1
- package/dist-lib/components/settings/FlorydaySettingsCard.d.ts +1 -1
- package/dist-lib/components/settings/FlorydaySettingsCard.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1599 -318
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1599 -318
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1599 -318
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1675 -362
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +3 -0
- package/dist-lib/lib/error-page.js +30 -30
- package/dist-lib/lib/floricode.functions.d.ts +10626 -1659
- package/dist-lib/lib/floricode.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-auction-letters.functions.d.ts +1599 -318
- package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-labels.functions.d.ts +1599 -318
- package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +9108 -1422
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-stickers.functions.d.ts +1599 -318
- package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-sync.functions.d.ts +47058 -7347
- package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +9114 -1428
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.d.ts +28842 -4503
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/print/floriday-print.d.ts +36 -0
- package/dist-lib/lib/print/floriday-print.d.ts.map +1 -0
- package/dist-lib/lib/print/floriday-print.js +204 -0
- package/dist-lib/lib/print/index.d.ts +3 -0
- package/dist-lib/lib/print/index.d.ts.map +1 -0
- package/dist-lib/lib/print/index.js +2 -0
- package/dist-lib/lib/print/pdf-to-base64.d.ts +5 -0
- package/dist-lib/lib/print/pdf-to-base64.d.ts.map +1 -0
- package/dist-lib/lib/print/pdf-to-base64.js +27 -0
- package/package.json +12 -2
- package/dist-lib/assets/floriday-logo.png.asset.json +0 -11
|
@@ -895,6 +895,126 @@ export type Database = {
|
|
|
895
895
|
};
|
|
896
896
|
Relationships: [];
|
|
897
897
|
};
|
|
898
|
+
cao_holidays: {
|
|
899
|
+
Row: {
|
|
900
|
+
created_at: string;
|
|
901
|
+
description: string | null;
|
|
902
|
+
holiday_date: string;
|
|
903
|
+
id: string;
|
|
904
|
+
updated_at: string;
|
|
905
|
+
};
|
|
906
|
+
Insert: {
|
|
907
|
+
created_at?: string;
|
|
908
|
+
description?: string | null;
|
|
909
|
+
holiday_date: string;
|
|
910
|
+
id?: string;
|
|
911
|
+
updated_at?: string;
|
|
912
|
+
};
|
|
913
|
+
Update: {
|
|
914
|
+
created_at?: string;
|
|
915
|
+
description?: string | null;
|
|
916
|
+
holiday_date?: string;
|
|
917
|
+
id?: string;
|
|
918
|
+
updated_at?: string;
|
|
919
|
+
};
|
|
920
|
+
Relationships: [];
|
|
921
|
+
};
|
|
922
|
+
cao_settings: {
|
|
923
|
+
Row: {
|
|
924
|
+
auto_break_after_hours: number;
|
|
925
|
+
auto_break_minutes: number;
|
|
926
|
+
auto_break_unpaid: boolean;
|
|
927
|
+
auto_stop_after_hours: number;
|
|
928
|
+
callout_fee: number;
|
|
929
|
+
created_at: string;
|
|
930
|
+
daily_regular_hours: number;
|
|
931
|
+
default_hourly_rate: number;
|
|
932
|
+
id: string;
|
|
933
|
+
materials_markup_percent: number;
|
|
934
|
+
max_daily_hours: number;
|
|
935
|
+
max_weekly_hours: number;
|
|
936
|
+
meal_allowance_amount: number;
|
|
937
|
+
overtime_pct_178: number;
|
|
938
|
+
overtime_pct_189: number;
|
|
939
|
+
overtime_pct_212: number;
|
|
940
|
+
reminder_after_hours: number;
|
|
941
|
+
standby_evening_amount: number;
|
|
942
|
+
standby_weekend_amount: number;
|
|
943
|
+
travel_cost_per_km: number | null;
|
|
944
|
+
travel_cost_threshold_km: number | null;
|
|
945
|
+
travel_counts_as_work: boolean;
|
|
946
|
+
travel_hourly_rate: number;
|
|
947
|
+
travel_rate_per_hour: number;
|
|
948
|
+
travel_threshold_minutes: number;
|
|
949
|
+
updated_at: string;
|
|
950
|
+
weekend_always_212: boolean;
|
|
951
|
+
window_end: string;
|
|
952
|
+
window_start: string;
|
|
953
|
+
};
|
|
954
|
+
Insert: {
|
|
955
|
+
auto_break_after_hours?: number;
|
|
956
|
+
auto_break_minutes?: number;
|
|
957
|
+
auto_break_unpaid?: boolean;
|
|
958
|
+
auto_stop_after_hours?: number;
|
|
959
|
+
callout_fee?: number;
|
|
960
|
+
created_at?: string;
|
|
961
|
+
daily_regular_hours?: number;
|
|
962
|
+
default_hourly_rate?: number;
|
|
963
|
+
id?: string;
|
|
964
|
+
materials_markup_percent?: number;
|
|
965
|
+
max_daily_hours?: number;
|
|
966
|
+
max_weekly_hours?: number;
|
|
967
|
+
meal_allowance_amount?: number;
|
|
968
|
+
overtime_pct_178?: number;
|
|
969
|
+
overtime_pct_189?: number;
|
|
970
|
+
overtime_pct_212?: number;
|
|
971
|
+
reminder_after_hours?: number;
|
|
972
|
+
standby_evening_amount?: number;
|
|
973
|
+
standby_weekend_amount?: number;
|
|
974
|
+
travel_cost_per_km?: number | null;
|
|
975
|
+
travel_cost_threshold_km?: number | null;
|
|
976
|
+
travel_counts_as_work?: boolean;
|
|
977
|
+
travel_hourly_rate?: number;
|
|
978
|
+
travel_rate_per_hour?: number;
|
|
979
|
+
travel_threshold_minutes?: number;
|
|
980
|
+
updated_at?: string;
|
|
981
|
+
weekend_always_212?: boolean;
|
|
982
|
+
window_end?: string;
|
|
983
|
+
window_start?: string;
|
|
984
|
+
};
|
|
985
|
+
Update: {
|
|
986
|
+
auto_break_after_hours?: number;
|
|
987
|
+
auto_break_minutes?: number;
|
|
988
|
+
auto_break_unpaid?: boolean;
|
|
989
|
+
auto_stop_after_hours?: number;
|
|
990
|
+
callout_fee?: number;
|
|
991
|
+
created_at?: string;
|
|
992
|
+
daily_regular_hours?: number;
|
|
993
|
+
default_hourly_rate?: number;
|
|
994
|
+
id?: string;
|
|
995
|
+
materials_markup_percent?: number;
|
|
996
|
+
max_daily_hours?: number;
|
|
997
|
+
max_weekly_hours?: number;
|
|
998
|
+
meal_allowance_amount?: number;
|
|
999
|
+
overtime_pct_178?: number;
|
|
1000
|
+
overtime_pct_189?: number;
|
|
1001
|
+
overtime_pct_212?: number;
|
|
1002
|
+
reminder_after_hours?: number;
|
|
1003
|
+
standby_evening_amount?: number;
|
|
1004
|
+
standby_weekend_amount?: number;
|
|
1005
|
+
travel_cost_per_km?: number | null;
|
|
1006
|
+
travel_cost_threshold_km?: number | null;
|
|
1007
|
+
travel_counts_as_work?: boolean;
|
|
1008
|
+
travel_hourly_rate?: number;
|
|
1009
|
+
travel_rate_per_hour?: number;
|
|
1010
|
+
travel_threshold_minutes?: number;
|
|
1011
|
+
updated_at?: string;
|
|
1012
|
+
weekend_always_212?: boolean;
|
|
1013
|
+
window_end?: string;
|
|
1014
|
+
window_start?: string;
|
|
1015
|
+
};
|
|
1016
|
+
Relationships: [];
|
|
1017
|
+
};
|
|
898
1018
|
carrier_shipping_rates: {
|
|
899
1019
|
Row: {
|
|
900
1020
|
carrier_id: string;
|
|
@@ -2698,6 +2818,44 @@ export type Database = {
|
|
|
2698
2818
|
};
|
|
2699
2819
|
Relationships: [];
|
|
2700
2820
|
};
|
|
2821
|
+
document_bronregels: {
|
|
2822
|
+
Row: {
|
|
2823
|
+
bron: string;
|
|
2824
|
+
created_at: string;
|
|
2825
|
+
documenttype: string;
|
|
2826
|
+
herkomst: string;
|
|
2827
|
+
id: string;
|
|
2828
|
+
layout_id: string | null;
|
|
2829
|
+
updated_at: string;
|
|
2830
|
+
};
|
|
2831
|
+
Insert: {
|
|
2832
|
+
bron?: string;
|
|
2833
|
+
created_at?: string;
|
|
2834
|
+
documenttype: string;
|
|
2835
|
+
herkomst: string;
|
|
2836
|
+
id?: string;
|
|
2837
|
+
layout_id?: string | null;
|
|
2838
|
+
updated_at?: string;
|
|
2839
|
+
};
|
|
2840
|
+
Update: {
|
|
2841
|
+
bron?: string;
|
|
2842
|
+
created_at?: string;
|
|
2843
|
+
documenttype?: string;
|
|
2844
|
+
herkomst?: string;
|
|
2845
|
+
id?: string;
|
|
2846
|
+
layout_id?: string | null;
|
|
2847
|
+
updated_at?: string;
|
|
2848
|
+
};
|
|
2849
|
+
Relationships: [
|
|
2850
|
+
{
|
|
2851
|
+
foreignKeyName: "document_bronregels_layout_id_fkey";
|
|
2852
|
+
columns: ["layout_id"];
|
|
2853
|
+
isOneToOne: false;
|
|
2854
|
+
referencedRelation: "document_layouts";
|
|
2855
|
+
referencedColumns: ["id"];
|
|
2856
|
+
}
|
|
2857
|
+
];
|
|
2858
|
+
};
|
|
2701
2859
|
document_formaat_printers: {
|
|
2702
2860
|
Row: {
|
|
2703
2861
|
created_at: string;
|
|
@@ -3056,6 +3214,44 @@ export type Database = {
|
|
|
3056
3214
|
};
|
|
3057
3215
|
Relationships: [];
|
|
3058
3216
|
};
|
|
3217
|
+
document_werkplek_printers: {
|
|
3218
|
+
Row: {
|
|
3219
|
+
created_at: string;
|
|
3220
|
+
documenttype: string;
|
|
3221
|
+
id: string;
|
|
3222
|
+
papierformaat: string | null;
|
|
3223
|
+
printer_id: string | null;
|
|
3224
|
+
updated_at: string;
|
|
3225
|
+
werkplek: string;
|
|
3226
|
+
};
|
|
3227
|
+
Insert: {
|
|
3228
|
+
created_at?: string;
|
|
3229
|
+
documenttype: string;
|
|
3230
|
+
id?: string;
|
|
3231
|
+
papierformaat?: string | null;
|
|
3232
|
+
printer_id?: string | null;
|
|
3233
|
+
updated_at?: string;
|
|
3234
|
+
werkplek: string;
|
|
3235
|
+
};
|
|
3236
|
+
Update: {
|
|
3237
|
+
created_at?: string;
|
|
3238
|
+
documenttype?: string;
|
|
3239
|
+
id?: string;
|
|
3240
|
+
papierformaat?: string | null;
|
|
3241
|
+
printer_id?: string | null;
|
|
3242
|
+
updated_at?: string;
|
|
3243
|
+
werkplek?: string;
|
|
3244
|
+
};
|
|
3245
|
+
Relationships: [
|
|
3246
|
+
{
|
|
3247
|
+
foreignKeyName: "document_werkplek_printers_printer_id_fkey";
|
|
3248
|
+
columns: ["printer_id"];
|
|
3249
|
+
isOneToOne: false;
|
|
3250
|
+
referencedRelation: "printers";
|
|
3251
|
+
referencedColumns: ["id"];
|
|
3252
|
+
}
|
|
3253
|
+
];
|
|
3254
|
+
};
|
|
3059
3255
|
email_auth_connections: {
|
|
3060
3256
|
Row: {
|
|
3061
3257
|
access_token_encrypted: string | null;
|
|
@@ -7422,8 +7618,66 @@ export type Database = {
|
|
|
7422
7618
|
};
|
|
7423
7619
|
Relationships: [];
|
|
7424
7620
|
};
|
|
7621
|
+
invoice_items: {
|
|
7622
|
+
Row: {
|
|
7623
|
+
created_at: string;
|
|
7624
|
+
description: string;
|
|
7625
|
+
id: string;
|
|
7626
|
+
invoice_id: string;
|
|
7627
|
+
kind: string;
|
|
7628
|
+
quantity: number;
|
|
7629
|
+
sort_order: number;
|
|
7630
|
+
source_line_ref: string | null;
|
|
7631
|
+
total_cents: number;
|
|
7632
|
+
unit: string;
|
|
7633
|
+
unit_price_cents: number;
|
|
7634
|
+
};
|
|
7635
|
+
Insert: {
|
|
7636
|
+
created_at?: string;
|
|
7637
|
+
description?: string;
|
|
7638
|
+
id?: string;
|
|
7639
|
+
invoice_id: string;
|
|
7640
|
+
kind?: string;
|
|
7641
|
+
quantity?: number;
|
|
7642
|
+
sort_order?: number;
|
|
7643
|
+
source_line_ref?: string | null;
|
|
7644
|
+
total_cents?: number;
|
|
7645
|
+
unit?: string;
|
|
7646
|
+
unit_price_cents?: number;
|
|
7647
|
+
};
|
|
7648
|
+
Update: {
|
|
7649
|
+
created_at?: string;
|
|
7650
|
+
description?: string;
|
|
7651
|
+
id?: string;
|
|
7652
|
+
invoice_id?: string;
|
|
7653
|
+
kind?: string;
|
|
7654
|
+
quantity?: number;
|
|
7655
|
+
sort_order?: number;
|
|
7656
|
+
source_line_ref?: string | null;
|
|
7657
|
+
total_cents?: number;
|
|
7658
|
+
unit?: string;
|
|
7659
|
+
unit_price_cents?: number;
|
|
7660
|
+
};
|
|
7661
|
+
Relationships: [
|
|
7662
|
+
{
|
|
7663
|
+
foreignKeyName: "invoice_items_invoice_id_fkey";
|
|
7664
|
+
columns: ["invoice_id"];
|
|
7665
|
+
isOneToOne: false;
|
|
7666
|
+
referencedRelation: "invoices";
|
|
7667
|
+
referencedColumns: ["id"];
|
|
7668
|
+
},
|
|
7669
|
+
{
|
|
7670
|
+
foreignKeyName: "invoice_items_invoice_id_fkey";
|
|
7671
|
+
columns: ["invoice_id"];
|
|
7672
|
+
isOneToOne: false;
|
|
7673
|
+
referencedRelation: "uren_facturen";
|
|
7674
|
+
referencedColumns: ["id"];
|
|
7675
|
+
}
|
|
7676
|
+
];
|
|
7677
|
+
};
|
|
7425
7678
|
invoice_post_idempotency: {
|
|
7426
7679
|
Row: {
|
|
7680
|
+
administration_code: string;
|
|
7427
7681
|
client_request_id: string;
|
|
7428
7682
|
completed_at: string | null;
|
|
7429
7683
|
created_at: string;
|
|
@@ -7433,6 +7687,7 @@ export type Database = {
|
|
|
7433
7687
|
user_id: string;
|
|
7434
7688
|
};
|
|
7435
7689
|
Insert: {
|
|
7690
|
+
administration_code?: string;
|
|
7436
7691
|
client_request_id: string;
|
|
7437
7692
|
completed_at?: string | null;
|
|
7438
7693
|
created_at?: string;
|
|
@@ -7442,6 +7697,7 @@ export type Database = {
|
|
|
7442
7697
|
user_id: string;
|
|
7443
7698
|
};
|
|
7444
7699
|
Update: {
|
|
7700
|
+
administration_code?: string;
|
|
7445
7701
|
client_request_id?: string;
|
|
7446
7702
|
completed_at?: string | null;
|
|
7447
7703
|
created_at?: string;
|
|
@@ -7652,6 +7908,77 @@ export type Database = {
|
|
|
7652
7908
|
};
|
|
7653
7909
|
Relationships: [];
|
|
7654
7910
|
};
|
|
7911
|
+
invoices: {
|
|
7912
|
+
Row: {
|
|
7913
|
+
created_at: string;
|
|
7914
|
+
created_by: string | null;
|
|
7915
|
+
customer_id: string | null;
|
|
7916
|
+
customer_name: string | null;
|
|
7917
|
+
due_date: string | null;
|
|
7918
|
+
id: string;
|
|
7919
|
+
invoice_date: string;
|
|
7920
|
+
invoice_number: string | null;
|
|
7921
|
+
note: string | null;
|
|
7922
|
+
source_number: string | null;
|
|
7923
|
+
source_ref: string | null;
|
|
7924
|
+
source_type: string;
|
|
7925
|
+
status: string;
|
|
7926
|
+
subtotal_cents: number;
|
|
7927
|
+
total_cents: number;
|
|
7928
|
+
updated_at: string;
|
|
7929
|
+
vat_cents: number;
|
|
7930
|
+
vat_rate: number;
|
|
7931
|
+
};
|
|
7932
|
+
Insert: {
|
|
7933
|
+
created_at?: string;
|
|
7934
|
+
created_by?: string | null;
|
|
7935
|
+
customer_id?: string | null;
|
|
7936
|
+
customer_name?: string | null;
|
|
7937
|
+
due_date?: string | null;
|
|
7938
|
+
id?: string;
|
|
7939
|
+
invoice_date?: string;
|
|
7940
|
+
invoice_number?: string | null;
|
|
7941
|
+
note?: string | null;
|
|
7942
|
+
source_number?: string | null;
|
|
7943
|
+
source_ref?: string | null;
|
|
7944
|
+
source_type?: string;
|
|
7945
|
+
status?: string;
|
|
7946
|
+
subtotal_cents?: number;
|
|
7947
|
+
total_cents?: number;
|
|
7948
|
+
updated_at?: string;
|
|
7949
|
+
vat_cents?: number;
|
|
7950
|
+
vat_rate?: number;
|
|
7951
|
+
};
|
|
7952
|
+
Update: {
|
|
7953
|
+
created_at?: string;
|
|
7954
|
+
created_by?: string | null;
|
|
7955
|
+
customer_id?: string | null;
|
|
7956
|
+
customer_name?: string | null;
|
|
7957
|
+
due_date?: string | null;
|
|
7958
|
+
id?: string;
|
|
7959
|
+
invoice_date?: string;
|
|
7960
|
+
invoice_number?: string | null;
|
|
7961
|
+
note?: string | null;
|
|
7962
|
+
source_number?: string | null;
|
|
7963
|
+
source_ref?: string | null;
|
|
7964
|
+
source_type?: string;
|
|
7965
|
+
status?: string;
|
|
7966
|
+
subtotal_cents?: number;
|
|
7967
|
+
total_cents?: number;
|
|
7968
|
+
updated_at?: string;
|
|
7969
|
+
vat_cents?: number;
|
|
7970
|
+
vat_rate?: number;
|
|
7971
|
+
};
|
|
7972
|
+
Relationships: [
|
|
7973
|
+
{
|
|
7974
|
+
foreignKeyName: "invoices_customer_id_fkey";
|
|
7975
|
+
columns: ["customer_id"];
|
|
7976
|
+
isOneToOne: false;
|
|
7977
|
+
referencedRelation: "itk_customers";
|
|
7978
|
+
referencedColumns: ["id"];
|
|
7979
|
+
}
|
|
7980
|
+
];
|
|
7981
|
+
};
|
|
7655
7982
|
itk_contact_persons: {
|
|
7656
7983
|
Row: {
|
|
7657
7984
|
created_at: string;
|
|
@@ -7856,72 +8183,335 @@ export type Database = {
|
|
|
7856
8183
|
};
|
|
7857
8184
|
Relationships: [];
|
|
7858
8185
|
};
|
|
7859
|
-
|
|
8186
|
+
itk_offerte_events: {
|
|
7860
8187
|
Row: {
|
|
7861
|
-
city: string | null;
|
|
7862
8188
|
created_at: string;
|
|
7863
|
-
|
|
8189
|
+
event_type: string;
|
|
7864
8190
|
id: string;
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
postcode: string | null;
|
|
7870
|
-
street: string | null;
|
|
7871
|
-
updated_at: string;
|
|
8191
|
+
metadata: Json;
|
|
8192
|
+
offerte_id: string;
|
|
8193
|
+
omschrijving: string | null;
|
|
8194
|
+
user_id: string | null;
|
|
7872
8195
|
};
|
|
7873
8196
|
Insert: {
|
|
7874
|
-
city?: string | null;
|
|
7875
8197
|
created_at?: string;
|
|
7876
|
-
|
|
8198
|
+
event_type: string;
|
|
7877
8199
|
id?: string;
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
postcode?: string | null;
|
|
7883
|
-
street?: string | null;
|
|
7884
|
-
updated_at?: string;
|
|
8200
|
+
metadata?: Json;
|
|
8201
|
+
offerte_id: string;
|
|
8202
|
+
omschrijving?: string | null;
|
|
8203
|
+
user_id?: string | null;
|
|
7885
8204
|
};
|
|
7886
8205
|
Update: {
|
|
7887
|
-
city?: string | null;
|
|
7888
8206
|
created_at?: string;
|
|
7889
|
-
|
|
8207
|
+
event_type?: string;
|
|
7890
8208
|
id?: string;
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
|
|
7895
|
-
postcode?: string | null;
|
|
7896
|
-
street?: string | null;
|
|
7897
|
-
updated_at?: string;
|
|
8209
|
+
metadata?: Json;
|
|
8210
|
+
offerte_id?: string;
|
|
8211
|
+
omschrijving?: string | null;
|
|
8212
|
+
user_id?: string | null;
|
|
7898
8213
|
};
|
|
7899
8214
|
Relationships: [
|
|
7900
8215
|
{
|
|
7901
|
-
foreignKeyName: "
|
|
7902
|
-
columns: ["
|
|
8216
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
8217
|
+
columns: ["offerte_id"];
|
|
7903
8218
|
isOneToOne: false;
|
|
7904
|
-
referencedRelation: "
|
|
8219
|
+
referencedRelation: "itk_offertes";
|
|
7905
8220
|
referencedColumns: ["id"];
|
|
7906
8221
|
}
|
|
7907
8222
|
];
|
|
7908
8223
|
};
|
|
7909
|
-
|
|
8224
|
+
itk_offerte_regels: {
|
|
7910
8225
|
Row: {
|
|
7911
|
-
bestand_url: string;
|
|
7912
|
-
bestandsgrootte: number;
|
|
7913
|
-
bestandspad: string | null;
|
|
7914
|
-
bestandstype: string;
|
|
7915
|
-
breedte: number;
|
|
7916
|
-
categorie: string;
|
|
7917
8226
|
created_at: string;
|
|
7918
|
-
hash: string | null;
|
|
7919
|
-
hoogte: number;
|
|
7920
8227
|
id: string;
|
|
7921
|
-
|
|
7922
|
-
|
|
8228
|
+
line_total_cents: number;
|
|
8229
|
+
offerte_id: string;
|
|
7923
8230
|
omschrijving: string;
|
|
7924
|
-
|
|
8231
|
+
package_id: string | null;
|
|
8232
|
+
quantity: number;
|
|
8233
|
+
sort_order: number;
|
|
8234
|
+
source: string;
|
|
8235
|
+
unit_price_cents: number;
|
|
8236
|
+
updated_at: string;
|
|
8237
|
+
};
|
|
8238
|
+
Insert: {
|
|
8239
|
+
created_at?: string;
|
|
8240
|
+
id?: string;
|
|
8241
|
+
line_total_cents?: number;
|
|
8242
|
+
offerte_id: string;
|
|
8243
|
+
omschrijving?: string;
|
|
8244
|
+
package_id?: string | null;
|
|
8245
|
+
quantity?: number;
|
|
8246
|
+
sort_order?: number;
|
|
8247
|
+
source?: string;
|
|
8248
|
+
unit_price_cents?: number;
|
|
8249
|
+
updated_at?: string;
|
|
8250
|
+
};
|
|
8251
|
+
Update: {
|
|
8252
|
+
created_at?: string;
|
|
8253
|
+
id?: string;
|
|
8254
|
+
line_total_cents?: number;
|
|
8255
|
+
offerte_id?: string;
|
|
8256
|
+
omschrijving?: string;
|
|
8257
|
+
package_id?: string | null;
|
|
8258
|
+
quantity?: number;
|
|
8259
|
+
sort_order?: number;
|
|
8260
|
+
source?: string;
|
|
8261
|
+
unit_price_cents?: number;
|
|
8262
|
+
updated_at?: string;
|
|
8263
|
+
};
|
|
8264
|
+
Relationships: [
|
|
8265
|
+
{
|
|
8266
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
8267
|
+
columns: ["offerte_id"];
|
|
8268
|
+
isOneToOne: false;
|
|
8269
|
+
referencedRelation: "itk_offertes";
|
|
8270
|
+
referencedColumns: ["id"];
|
|
8271
|
+
},
|
|
8272
|
+
{
|
|
8273
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
8274
|
+
columns: ["package_id"];
|
|
8275
|
+
isOneToOne: false;
|
|
8276
|
+
referencedRelation: "werkbon_packages";
|
|
8277
|
+
referencedColumns: ["id"];
|
|
8278
|
+
}
|
|
8279
|
+
];
|
|
8280
|
+
};
|
|
8281
|
+
itk_offerte_settings: {
|
|
8282
|
+
Row: {
|
|
8283
|
+
auto_convert_binnen_mandaat: boolean;
|
|
8284
|
+
created_at: string;
|
|
8285
|
+
default_geldigheid_dagen: number;
|
|
8286
|
+
default_vat_rate: number;
|
|
8287
|
+
id: string;
|
|
8288
|
+
singleton: boolean;
|
|
8289
|
+
updated_at: string;
|
|
8290
|
+
};
|
|
8291
|
+
Insert: {
|
|
8292
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
8293
|
+
created_at?: string;
|
|
8294
|
+
default_geldigheid_dagen?: number;
|
|
8295
|
+
default_vat_rate?: number;
|
|
8296
|
+
id?: string;
|
|
8297
|
+
singleton?: boolean;
|
|
8298
|
+
updated_at?: string;
|
|
8299
|
+
};
|
|
8300
|
+
Update: {
|
|
8301
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
8302
|
+
created_at?: string;
|
|
8303
|
+
default_geldigheid_dagen?: number;
|
|
8304
|
+
default_vat_rate?: number;
|
|
8305
|
+
id?: string;
|
|
8306
|
+
singleton?: boolean;
|
|
8307
|
+
updated_at?: string;
|
|
8308
|
+
};
|
|
8309
|
+
Relationships: [];
|
|
8310
|
+
};
|
|
8311
|
+
itk_offertes: {
|
|
8312
|
+
Row: {
|
|
8313
|
+
ai_generated: boolean;
|
|
8314
|
+
approved_at: string | null;
|
|
8315
|
+
binnen_mandaat: boolean;
|
|
8316
|
+
contact_id: string | null;
|
|
8317
|
+
converted_at: string | null;
|
|
8318
|
+
created_at: string;
|
|
8319
|
+
created_by: string | null;
|
|
8320
|
+
customer_id: string | null;
|
|
8321
|
+
follow_up_werkbon_id: string | null;
|
|
8322
|
+
id: string;
|
|
8323
|
+
jaar: number;
|
|
8324
|
+
mandaat_restant_cents: number;
|
|
8325
|
+
notities: string | null;
|
|
8326
|
+
offerte_number: string | null;
|
|
8327
|
+
omschrijving: string;
|
|
8328
|
+
rejected_at: string | null;
|
|
8329
|
+
sent_at: string | null;
|
|
8330
|
+
source_number: string | null;
|
|
8331
|
+
source_ref: string | null;
|
|
8332
|
+
source_type: string;
|
|
8333
|
+
status: string;
|
|
8334
|
+
subtotal_cents: number;
|
|
8335
|
+
total_cents: number;
|
|
8336
|
+
updated_at: string;
|
|
8337
|
+
valid_until: string | null;
|
|
8338
|
+
vat_cents: number;
|
|
8339
|
+
vat_rate: number;
|
|
8340
|
+
viewed_at: string | null;
|
|
8341
|
+
volgnummer: number | null;
|
|
8342
|
+
werkbon_id: string | null;
|
|
8343
|
+
work_location_id: string | null;
|
|
8344
|
+
};
|
|
8345
|
+
Insert: {
|
|
8346
|
+
ai_generated?: boolean;
|
|
8347
|
+
approved_at?: string | null;
|
|
8348
|
+
binnen_mandaat?: boolean;
|
|
8349
|
+
contact_id?: string | null;
|
|
8350
|
+
converted_at?: string | null;
|
|
8351
|
+
created_at?: string;
|
|
8352
|
+
created_by?: string | null;
|
|
8353
|
+
customer_id?: string | null;
|
|
8354
|
+
follow_up_werkbon_id?: string | null;
|
|
8355
|
+
id?: string;
|
|
8356
|
+
jaar?: number;
|
|
8357
|
+
mandaat_restant_cents?: number;
|
|
8358
|
+
notities?: string | null;
|
|
8359
|
+
offerte_number?: string | null;
|
|
8360
|
+
omschrijving?: string;
|
|
8361
|
+
rejected_at?: string | null;
|
|
8362
|
+
sent_at?: string | null;
|
|
8363
|
+
source_number?: string | null;
|
|
8364
|
+
source_ref?: string | null;
|
|
8365
|
+
source_type?: string;
|
|
8366
|
+
status?: string;
|
|
8367
|
+
subtotal_cents?: number;
|
|
8368
|
+
total_cents?: number;
|
|
8369
|
+
updated_at?: string;
|
|
8370
|
+
valid_until?: string | null;
|
|
8371
|
+
vat_cents?: number;
|
|
8372
|
+
vat_rate?: number;
|
|
8373
|
+
viewed_at?: string | null;
|
|
8374
|
+
volgnummer?: number | null;
|
|
8375
|
+
werkbon_id?: string | null;
|
|
8376
|
+
work_location_id?: string | null;
|
|
8377
|
+
};
|
|
8378
|
+
Update: {
|
|
8379
|
+
ai_generated?: boolean;
|
|
8380
|
+
approved_at?: string | null;
|
|
8381
|
+
binnen_mandaat?: boolean;
|
|
8382
|
+
contact_id?: string | null;
|
|
8383
|
+
converted_at?: string | null;
|
|
8384
|
+
created_at?: string;
|
|
8385
|
+
created_by?: string | null;
|
|
8386
|
+
customer_id?: string | null;
|
|
8387
|
+
follow_up_werkbon_id?: string | null;
|
|
8388
|
+
id?: string;
|
|
8389
|
+
jaar?: number;
|
|
8390
|
+
mandaat_restant_cents?: number;
|
|
8391
|
+
notities?: string | null;
|
|
8392
|
+
offerte_number?: string | null;
|
|
8393
|
+
omschrijving?: string;
|
|
8394
|
+
rejected_at?: string | null;
|
|
8395
|
+
sent_at?: string | null;
|
|
8396
|
+
source_number?: string | null;
|
|
8397
|
+
source_ref?: string | null;
|
|
8398
|
+
source_type?: string;
|
|
8399
|
+
status?: string;
|
|
8400
|
+
subtotal_cents?: number;
|
|
8401
|
+
total_cents?: number;
|
|
8402
|
+
updated_at?: string;
|
|
8403
|
+
valid_until?: string | null;
|
|
8404
|
+
vat_cents?: number;
|
|
8405
|
+
vat_rate?: number;
|
|
8406
|
+
viewed_at?: string | null;
|
|
8407
|
+
volgnummer?: number | null;
|
|
8408
|
+
werkbon_id?: string | null;
|
|
8409
|
+
work_location_id?: string | null;
|
|
8410
|
+
};
|
|
8411
|
+
Relationships: [
|
|
8412
|
+
{
|
|
8413
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
8414
|
+
columns: ["contact_id"];
|
|
8415
|
+
isOneToOne: false;
|
|
8416
|
+
referencedRelation: "itk_contact_persons";
|
|
8417
|
+
referencedColumns: ["id"];
|
|
8418
|
+
},
|
|
8419
|
+
{
|
|
8420
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
8421
|
+
columns: ["customer_id"];
|
|
8422
|
+
isOneToOne: false;
|
|
8423
|
+
referencedRelation: "itk_customers";
|
|
8424
|
+
referencedColumns: ["id"];
|
|
8425
|
+
},
|
|
8426
|
+
{
|
|
8427
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
8428
|
+
columns: ["follow_up_werkbon_id"];
|
|
8429
|
+
isOneToOne: false;
|
|
8430
|
+
referencedRelation: "werkbonnen";
|
|
8431
|
+
referencedColumns: ["id"];
|
|
8432
|
+
},
|
|
8433
|
+
{
|
|
8434
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
8435
|
+
columns: ["werkbon_id"];
|
|
8436
|
+
isOneToOne: false;
|
|
8437
|
+
referencedRelation: "werkbonnen";
|
|
8438
|
+
referencedColumns: ["id"];
|
|
8439
|
+
},
|
|
8440
|
+
{
|
|
8441
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
8442
|
+
columns: ["work_location_id"];
|
|
8443
|
+
isOneToOne: false;
|
|
8444
|
+
referencedRelation: "itk_work_locations";
|
|
8445
|
+
referencedColumns: ["id"];
|
|
8446
|
+
}
|
|
8447
|
+
];
|
|
8448
|
+
};
|
|
8449
|
+
itk_work_locations: {
|
|
8450
|
+
Row: {
|
|
8451
|
+
city: string | null;
|
|
8452
|
+
created_at: string;
|
|
8453
|
+
customer_id: string;
|
|
8454
|
+
id: string;
|
|
8455
|
+
instructions: string | null;
|
|
8456
|
+
label: string;
|
|
8457
|
+
latitude: number | null;
|
|
8458
|
+
longitude: number | null;
|
|
8459
|
+
postcode: string | null;
|
|
8460
|
+
street: string | null;
|
|
8461
|
+
updated_at: string;
|
|
8462
|
+
};
|
|
8463
|
+
Insert: {
|
|
8464
|
+
city?: string | null;
|
|
8465
|
+
created_at?: string;
|
|
8466
|
+
customer_id: string;
|
|
8467
|
+
id?: string;
|
|
8468
|
+
instructions?: string | null;
|
|
8469
|
+
label: string;
|
|
8470
|
+
latitude?: number | null;
|
|
8471
|
+
longitude?: number | null;
|
|
8472
|
+
postcode?: string | null;
|
|
8473
|
+
street?: string | null;
|
|
8474
|
+
updated_at?: string;
|
|
8475
|
+
};
|
|
8476
|
+
Update: {
|
|
8477
|
+
city?: string | null;
|
|
8478
|
+
created_at?: string;
|
|
8479
|
+
customer_id?: string;
|
|
8480
|
+
id?: string;
|
|
8481
|
+
instructions?: string | null;
|
|
8482
|
+
label?: string;
|
|
8483
|
+
latitude?: number | null;
|
|
8484
|
+
longitude?: number | null;
|
|
8485
|
+
postcode?: string | null;
|
|
8486
|
+
street?: string | null;
|
|
8487
|
+
updated_at?: string;
|
|
8488
|
+
};
|
|
8489
|
+
Relationships: [
|
|
8490
|
+
{
|
|
8491
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
8492
|
+
columns: ["customer_id"];
|
|
8493
|
+
isOneToOne: false;
|
|
8494
|
+
referencedRelation: "itk_customers";
|
|
8495
|
+
referencedColumns: ["id"];
|
|
8496
|
+
}
|
|
8497
|
+
];
|
|
8498
|
+
};
|
|
8499
|
+
layout_logos: {
|
|
8500
|
+
Row: {
|
|
8501
|
+
bestand_url: string;
|
|
8502
|
+
bestandsgrootte: number;
|
|
8503
|
+
bestandspad: string | null;
|
|
8504
|
+
bestandstype: string;
|
|
8505
|
+
breedte: number;
|
|
8506
|
+
categorie: string;
|
|
8507
|
+
created_at: string;
|
|
8508
|
+
hash: string | null;
|
|
8509
|
+
hoogte: number;
|
|
8510
|
+
id: string;
|
|
8511
|
+
is_standaard: boolean;
|
|
8512
|
+
naam: string;
|
|
8513
|
+
omschrijving: string;
|
|
8514
|
+
transparant: boolean;
|
|
7925
8515
|
updated_at: string;
|
|
7926
8516
|
};
|
|
7927
8517
|
Insert: {
|
|
@@ -7975,7 +8565,6 @@ export type Database = {
|
|
|
7975
8565
|
start_date: string;
|
|
7976
8566
|
start_time: string | null;
|
|
7977
8567
|
status: string;
|
|
7978
|
-
tenant_id: string;
|
|
7979
8568
|
updated_at: string;
|
|
7980
8569
|
user_id: string;
|
|
7981
8570
|
};
|
|
@@ -7993,7 +8582,6 @@ export type Database = {
|
|
|
7993
8582
|
start_date: string;
|
|
7994
8583
|
start_time?: string | null;
|
|
7995
8584
|
status?: string;
|
|
7996
|
-
tenant_id?: string;
|
|
7997
8585
|
updated_at?: string;
|
|
7998
8586
|
user_id: string;
|
|
7999
8587
|
};
|
|
@@ -8011,7 +8599,6 @@ export type Database = {
|
|
|
8011
8599
|
start_date?: string;
|
|
8012
8600
|
start_time?: string | null;
|
|
8013
8601
|
status?: string;
|
|
8014
|
-
tenant_id?: string;
|
|
8015
8602
|
updated_at?: string;
|
|
8016
8603
|
user_id?: string;
|
|
8017
8604
|
};
|
|
@@ -8020,14 +8607,14 @@ export type Database = {
|
|
|
8020
8607
|
foreignKeyName: "leave_requests_monteur_id_fkey";
|
|
8021
8608
|
columns: ["monteur_id"];
|
|
8022
8609
|
isOneToOne: false;
|
|
8023
|
-
referencedRelation: "
|
|
8610
|
+
referencedRelation: "profiles";
|
|
8024
8611
|
referencedColumns: ["id"];
|
|
8025
8612
|
},
|
|
8026
8613
|
{
|
|
8027
8614
|
foreignKeyName: "leave_requests_user_id_fkey";
|
|
8028
8615
|
columns: ["user_id"];
|
|
8029
8616
|
isOneToOne: false;
|
|
8030
|
-
referencedRelation: "
|
|
8617
|
+
referencedRelation: "profiles";
|
|
8031
8618
|
referencedColumns: ["id"];
|
|
8032
8619
|
}
|
|
8033
8620
|
];
|
|
@@ -10235,40 +10822,157 @@ export type Database = {
|
|
|
10235
10822
|
};
|
|
10236
10823
|
Relationships: [];
|
|
10237
10824
|
};
|
|
10238
|
-
|
|
10825
|
+
material_usage: {
|
|
10239
10826
|
Row: {
|
|
10240
10827
|
created_at: string;
|
|
10241
|
-
feature_id: string;
|
|
10242
10828
|
id: string;
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10829
|
+
material_name: string;
|
|
10830
|
+
monteur_id: string | null;
|
|
10831
|
+
price_at_time: number;
|
|
10832
|
+
quantity_used: number;
|
|
10833
|
+
updated_at: string;
|
|
10834
|
+
van_inventory_id: string | null;
|
|
10835
|
+
work_order_id: string;
|
|
10247
10836
|
};
|
|
10248
10837
|
Insert: {
|
|
10249
10838
|
created_at?: string;
|
|
10250
|
-
feature_id: string;
|
|
10251
10839
|
id?: string;
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10840
|
+
material_name: string;
|
|
10841
|
+
monteur_id?: string | null;
|
|
10842
|
+
price_at_time?: number;
|
|
10843
|
+
quantity_used?: number;
|
|
10844
|
+
updated_at?: string;
|
|
10845
|
+
van_inventory_id?: string | null;
|
|
10846
|
+
work_order_id: string;
|
|
10256
10847
|
};
|
|
10257
10848
|
Update: {
|
|
10258
10849
|
created_at?: string;
|
|
10259
|
-
feature_id?: string;
|
|
10260
10850
|
id?: string;
|
|
10261
|
-
|
|
10262
|
-
|
|
10263
|
-
|
|
10264
|
-
|
|
10851
|
+
material_name?: string;
|
|
10852
|
+
monteur_id?: string | null;
|
|
10853
|
+
price_at_time?: number;
|
|
10854
|
+
quantity_used?: number;
|
|
10855
|
+
updated_at?: string;
|
|
10856
|
+
van_inventory_id?: string | null;
|
|
10857
|
+
work_order_id?: string;
|
|
10265
10858
|
};
|
|
10266
|
-
Relationships: [
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10859
|
+
Relationships: [
|
|
10860
|
+
{
|
|
10861
|
+
foreignKeyName: "material_usage_monteur_id_fkey";
|
|
10862
|
+
columns: ["monteur_id"];
|
|
10863
|
+
isOneToOne: false;
|
|
10864
|
+
referencedRelation: "profiles";
|
|
10865
|
+
referencedColumns: ["id"];
|
|
10866
|
+
},
|
|
10867
|
+
{
|
|
10868
|
+
foreignKeyName: "material_usage_van_inventory_id_fkey";
|
|
10869
|
+
columns: ["van_inventory_id"];
|
|
10870
|
+
isOneToOne: false;
|
|
10871
|
+
referencedRelation: "van_inventories";
|
|
10872
|
+
referencedColumns: ["id"];
|
|
10873
|
+
},
|
|
10874
|
+
{
|
|
10875
|
+
foreignKeyName: "material_usage_work_order_id_fkey";
|
|
10876
|
+
columns: ["work_order_id"];
|
|
10877
|
+
isOneToOne: false;
|
|
10878
|
+
referencedRelation: "work_orders";
|
|
10879
|
+
referencedColumns: ["id"];
|
|
10880
|
+
}
|
|
10881
|
+
];
|
|
10882
|
+
};
|
|
10883
|
+
medewerker_details: {
|
|
10884
|
+
Row: {
|
|
10885
|
+
color: string | null;
|
|
10886
|
+
created_at: string;
|
|
10887
|
+
hours_fri: number | null;
|
|
10888
|
+
hours_mon: number | null;
|
|
10889
|
+
hours_thu: number | null;
|
|
10890
|
+
hours_tue: number | null;
|
|
10891
|
+
hours_wed: number | null;
|
|
10892
|
+
id: string;
|
|
10893
|
+
is_active: boolean;
|
|
10894
|
+
leave_balance_hours: number;
|
|
10895
|
+
persnr: string | null;
|
|
10896
|
+
phone: string | null;
|
|
10897
|
+
profile_id: string;
|
|
10898
|
+
updated_at: string;
|
|
10899
|
+
};
|
|
10900
|
+
Insert: {
|
|
10901
|
+
color?: string | null;
|
|
10902
|
+
created_at?: string;
|
|
10903
|
+
hours_fri?: number | null;
|
|
10904
|
+
hours_mon?: number | null;
|
|
10905
|
+
hours_thu?: number | null;
|
|
10906
|
+
hours_tue?: number | null;
|
|
10907
|
+
hours_wed?: number | null;
|
|
10908
|
+
id?: string;
|
|
10909
|
+
is_active?: boolean;
|
|
10910
|
+
leave_balance_hours?: number;
|
|
10911
|
+
persnr?: string | null;
|
|
10912
|
+
phone?: string | null;
|
|
10913
|
+
profile_id: string;
|
|
10914
|
+
updated_at?: string;
|
|
10915
|
+
};
|
|
10916
|
+
Update: {
|
|
10917
|
+
color?: string | null;
|
|
10918
|
+
created_at?: string;
|
|
10919
|
+
hours_fri?: number | null;
|
|
10920
|
+
hours_mon?: number | null;
|
|
10921
|
+
hours_thu?: number | null;
|
|
10922
|
+
hours_tue?: number | null;
|
|
10923
|
+
hours_wed?: number | null;
|
|
10924
|
+
id?: string;
|
|
10925
|
+
is_active?: boolean;
|
|
10926
|
+
leave_balance_hours?: number;
|
|
10927
|
+
persnr?: string | null;
|
|
10928
|
+
phone?: string | null;
|
|
10929
|
+
profile_id?: string;
|
|
10930
|
+
updated_at?: string;
|
|
10931
|
+
};
|
|
10932
|
+
Relationships: [
|
|
10933
|
+
{
|
|
10934
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
10935
|
+
columns: ["profile_id"];
|
|
10936
|
+
isOneToOne: true;
|
|
10937
|
+
referencedRelation: "profiles";
|
|
10938
|
+
referencedColumns: ["id"];
|
|
10939
|
+
}
|
|
10940
|
+
];
|
|
10941
|
+
};
|
|
10942
|
+
module_features: {
|
|
10943
|
+
Row: {
|
|
10944
|
+
created_at: string;
|
|
10945
|
+
feature_id: string;
|
|
10946
|
+
id: string;
|
|
10947
|
+
is_active: boolean;
|
|
10948
|
+
last_seen_at: string;
|
|
10949
|
+
module_id: string;
|
|
10950
|
+
name: string;
|
|
10951
|
+
};
|
|
10952
|
+
Insert: {
|
|
10953
|
+
created_at?: string;
|
|
10954
|
+
feature_id: string;
|
|
10955
|
+
id?: string;
|
|
10956
|
+
is_active?: boolean;
|
|
10957
|
+
last_seen_at?: string;
|
|
10958
|
+
module_id: string;
|
|
10959
|
+
name: string;
|
|
10960
|
+
};
|
|
10961
|
+
Update: {
|
|
10962
|
+
created_at?: string;
|
|
10963
|
+
feature_id?: string;
|
|
10964
|
+
id?: string;
|
|
10965
|
+
is_active?: boolean;
|
|
10966
|
+
last_seen_at?: string;
|
|
10967
|
+
module_id?: string;
|
|
10968
|
+
name?: string;
|
|
10969
|
+
};
|
|
10970
|
+
Relationships: [];
|
|
10971
|
+
};
|
|
10972
|
+
module_permissions: {
|
|
10973
|
+
Row: {
|
|
10974
|
+
created_at: string;
|
|
10975
|
+
id: string;
|
|
10272
10976
|
module_id: string;
|
|
10273
10977
|
permission: string;
|
|
10274
10978
|
role: Database["public"]["Enums"]["app_role"];
|
|
@@ -10295,8 +10999,10 @@ export type Database = {
|
|
|
10295
10999
|
module_registry: {
|
|
10296
11000
|
Row: {
|
|
10297
11001
|
created_at: string;
|
|
11002
|
+
enforce: boolean;
|
|
10298
11003
|
is_active: boolean;
|
|
10299
11004
|
last_seen_at: string;
|
|
11005
|
+
missing_count: number;
|
|
10300
11006
|
module_id: string;
|
|
10301
11007
|
name: string;
|
|
10302
11008
|
shell_id: string | null;
|
|
@@ -10304,8 +11010,10 @@ export type Database = {
|
|
|
10304
11010
|
};
|
|
10305
11011
|
Insert: {
|
|
10306
11012
|
created_at?: string;
|
|
11013
|
+
enforce?: boolean;
|
|
10307
11014
|
is_active?: boolean;
|
|
10308
11015
|
last_seen_at?: string;
|
|
11016
|
+
missing_count?: number;
|
|
10309
11017
|
module_id: string;
|
|
10310
11018
|
name: string;
|
|
10311
11019
|
shell_id?: string | null;
|
|
@@ -10313,8 +11021,10 @@ export type Database = {
|
|
|
10313
11021
|
};
|
|
10314
11022
|
Update: {
|
|
10315
11023
|
created_at?: string;
|
|
11024
|
+
enforce?: boolean;
|
|
10316
11025
|
is_active?: boolean;
|
|
10317
11026
|
last_seen_at?: string;
|
|
11027
|
+
missing_count?: number;
|
|
10318
11028
|
module_id?: string;
|
|
10319
11029
|
name?: string;
|
|
10320
11030
|
shell_id?: string | null;
|
|
@@ -10373,65 +11083,6 @@ export type Database = {
|
|
|
10373
11083
|
};
|
|
10374
11084
|
Relationships: [];
|
|
10375
11085
|
};
|
|
10376
|
-
monteurs: {
|
|
10377
|
-
Row: {
|
|
10378
|
-
avatar_url: string | null;
|
|
10379
|
-
color: string | null;
|
|
10380
|
-
created_at: string;
|
|
10381
|
-
email: string | null;
|
|
10382
|
-
id: string;
|
|
10383
|
-
is_active: boolean;
|
|
10384
|
-
leave_balance_hours: number;
|
|
10385
|
-
name: string;
|
|
10386
|
-
persnr: number | null;
|
|
10387
|
-
phone: string | null;
|
|
10388
|
-
role: string;
|
|
10389
|
-
tenant_id: string;
|
|
10390
|
-
updated_at: string;
|
|
10391
|
-
user_id: string | null;
|
|
10392
|
-
};
|
|
10393
|
-
Insert: {
|
|
10394
|
-
avatar_url?: string | null;
|
|
10395
|
-
color?: string | null;
|
|
10396
|
-
created_at?: string;
|
|
10397
|
-
email?: string | null;
|
|
10398
|
-
id?: string;
|
|
10399
|
-
is_active?: boolean;
|
|
10400
|
-
leave_balance_hours?: number;
|
|
10401
|
-
name: string;
|
|
10402
|
-
persnr?: number | null;
|
|
10403
|
-
phone?: string | null;
|
|
10404
|
-
role?: string;
|
|
10405
|
-
tenant_id: string;
|
|
10406
|
-
updated_at?: string;
|
|
10407
|
-
user_id?: string | null;
|
|
10408
|
-
};
|
|
10409
|
-
Update: {
|
|
10410
|
-
avatar_url?: string | null;
|
|
10411
|
-
color?: string | null;
|
|
10412
|
-
created_at?: string;
|
|
10413
|
-
email?: string | null;
|
|
10414
|
-
id?: string;
|
|
10415
|
-
is_active?: boolean;
|
|
10416
|
-
leave_balance_hours?: number;
|
|
10417
|
-
name?: string;
|
|
10418
|
-
persnr?: number | null;
|
|
10419
|
-
phone?: string | null;
|
|
10420
|
-
role?: string;
|
|
10421
|
-
tenant_id?: string;
|
|
10422
|
-
updated_at?: string;
|
|
10423
|
-
user_id?: string | null;
|
|
10424
|
-
};
|
|
10425
|
-
Relationships: [
|
|
10426
|
-
{
|
|
10427
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
10428
|
-
columns: ["tenant_id"];
|
|
10429
|
-
isOneToOne: false;
|
|
10430
|
-
referencedRelation: "tenants";
|
|
10431
|
-
referencedColumns: ["id"];
|
|
10432
|
-
}
|
|
10433
|
-
];
|
|
10434
|
-
};
|
|
10435
11086
|
nmbrs_component_mapping: {
|
|
10436
11087
|
Row: {
|
|
10437
11088
|
created_at: string;
|
|
@@ -10504,15 +11155,7 @@ export type Database = {
|
|
|
10504
11155
|
nmbrs_employee_number?: string;
|
|
10505
11156
|
updated_at?: string;
|
|
10506
11157
|
};
|
|
10507
|
-
Relationships: [
|
|
10508
|
-
{
|
|
10509
|
-
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
10510
|
-
columns: ["monteur_id"];
|
|
10511
|
-
isOneToOne: true;
|
|
10512
|
-
referencedRelation: "monteurs";
|
|
10513
|
-
referencedColumns: ["id"];
|
|
10514
|
-
}
|
|
10515
|
-
];
|
|
11158
|
+
Relationships: [];
|
|
10516
11159
|
};
|
|
10517
11160
|
nmbrs_export_lines: {
|
|
10518
11161
|
Row: {
|
|
@@ -10561,13 +11204,6 @@ export type Database = {
|
|
|
10561
11204
|
wage_code?: string;
|
|
10562
11205
|
};
|
|
10563
11206
|
Relationships: [
|
|
10564
|
-
{
|
|
10565
|
-
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
10566
|
-
columns: ["monteur_id"];
|
|
10567
|
-
isOneToOne: false;
|
|
10568
|
-
referencedRelation: "monteurs";
|
|
10569
|
-
referencedColumns: ["id"];
|
|
10570
|
-
},
|
|
10571
11207
|
{
|
|
10572
11208
|
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
10573
11209
|
columns: ["run_id"];
|
|
@@ -11420,6 +12056,7 @@ export type Database = {
|
|
|
11420
12056
|
};
|
|
11421
12057
|
order_invoice_links: {
|
|
11422
12058
|
Row: {
|
|
12059
|
+
administration_code: string | null;
|
|
11423
12060
|
attempts: number;
|
|
11424
12061
|
created_at: string;
|
|
11425
12062
|
error_message: string | null;
|
|
@@ -11432,6 +12069,7 @@ export type Database = {
|
|
|
11432
12069
|
updated_at: string;
|
|
11433
12070
|
};
|
|
11434
12071
|
Insert: {
|
|
12072
|
+
administration_code?: string | null;
|
|
11435
12073
|
attempts?: number;
|
|
11436
12074
|
created_at?: string;
|
|
11437
12075
|
error_message?: string | null;
|
|
@@ -11444,6 +12082,7 @@ export type Database = {
|
|
|
11444
12082
|
updated_at?: string;
|
|
11445
12083
|
};
|
|
11446
12084
|
Update: {
|
|
12085
|
+
administration_code?: string | null;
|
|
11447
12086
|
attempts?: number;
|
|
11448
12087
|
created_at?: string;
|
|
11449
12088
|
error_message?: string | null;
|
|
@@ -11640,6 +12279,8 @@ export type Database = {
|
|
|
11640
12279
|
orders: {
|
|
11641
12280
|
Row: {
|
|
11642
12281
|
buffer_id: string | null;
|
|
12282
|
+
cancel_reason: string | null;
|
|
12283
|
+
cancelled_at: string | null;
|
|
11643
12284
|
created_at: string;
|
|
11644
12285
|
custom_fields: Json;
|
|
11645
12286
|
customer_id: string | null;
|
|
@@ -11662,6 +12303,8 @@ export type Database = {
|
|
|
11662
12303
|
};
|
|
11663
12304
|
Insert: {
|
|
11664
12305
|
buffer_id?: string | null;
|
|
12306
|
+
cancel_reason?: string | null;
|
|
12307
|
+
cancelled_at?: string | null;
|
|
11665
12308
|
created_at?: string;
|
|
11666
12309
|
custom_fields?: Json;
|
|
11667
12310
|
customer_id?: string | null;
|
|
@@ -11684,6 +12327,8 @@ export type Database = {
|
|
|
11684
12327
|
};
|
|
11685
12328
|
Update: {
|
|
11686
12329
|
buffer_id?: string | null;
|
|
12330
|
+
cancel_reason?: string | null;
|
|
12331
|
+
cancelled_at?: string | null;
|
|
11687
12332
|
created_at?: string;
|
|
11688
12333
|
custom_fields?: Json;
|
|
11689
12334
|
customer_id?: string | null;
|
|
@@ -12938,6 +13583,7 @@ export type Database = {
|
|
|
12938
13583
|
gebruiker_id: string | null;
|
|
12939
13584
|
gebruiker_naam: string;
|
|
12940
13585
|
gestart_op: string | null;
|
|
13586
|
+
herkomst: string | null;
|
|
12941
13587
|
id: string;
|
|
12942
13588
|
idempotentie_sleutel: string | null;
|
|
12943
13589
|
is_herprint: boolean;
|
|
@@ -12967,6 +13613,7 @@ export type Database = {
|
|
|
12967
13613
|
gebruiker_id?: string | null;
|
|
12968
13614
|
gebruiker_naam?: string;
|
|
12969
13615
|
gestart_op?: string | null;
|
|
13616
|
+
herkomst?: string | null;
|
|
12970
13617
|
id?: string;
|
|
12971
13618
|
idempotentie_sleutel?: string | null;
|
|
12972
13619
|
is_herprint?: boolean;
|
|
@@ -12996,6 +13643,7 @@ export type Database = {
|
|
|
12996
13643
|
gebruiker_id?: string | null;
|
|
12997
13644
|
gebruiker_naam?: string;
|
|
12998
13645
|
gestart_op?: string | null;
|
|
13646
|
+
herkomst?: string | null;
|
|
12999
13647
|
id?: string;
|
|
13000
13648
|
idempotentie_sleutel?: string | null;
|
|
13001
13649
|
is_herprint?: boolean;
|
|
@@ -13818,6 +14466,71 @@ export type Database = {
|
|
|
13818
14466
|
};
|
|
13819
14467
|
Relationships: [];
|
|
13820
14468
|
};
|
|
14469
|
+
profile_modules: {
|
|
14470
|
+
Row: {
|
|
14471
|
+
created_at: string;
|
|
14472
|
+
id: string;
|
|
14473
|
+
module_id: string;
|
|
14474
|
+
profile_id: string;
|
|
14475
|
+
};
|
|
14476
|
+
Insert: {
|
|
14477
|
+
created_at?: string;
|
|
14478
|
+
id?: string;
|
|
14479
|
+
module_id: string;
|
|
14480
|
+
profile_id: string;
|
|
14481
|
+
};
|
|
14482
|
+
Update: {
|
|
14483
|
+
created_at?: string;
|
|
14484
|
+
id?: string;
|
|
14485
|
+
module_id?: string;
|
|
14486
|
+
profile_id?: string;
|
|
14487
|
+
};
|
|
14488
|
+
Relationships: [
|
|
14489
|
+
{
|
|
14490
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
14491
|
+
columns: ["profile_id"];
|
|
14492
|
+
isOneToOne: false;
|
|
14493
|
+
referencedRelation: "profiles_org";
|
|
14494
|
+
referencedColumns: ["id"];
|
|
14495
|
+
}
|
|
14496
|
+
];
|
|
14497
|
+
};
|
|
14498
|
+
profile_roles: {
|
|
14499
|
+
Row: {
|
|
14500
|
+
created_at: string;
|
|
14501
|
+
id: string;
|
|
14502
|
+
profile_id: string;
|
|
14503
|
+
role_id: string;
|
|
14504
|
+
};
|
|
14505
|
+
Insert: {
|
|
14506
|
+
created_at?: string;
|
|
14507
|
+
id?: string;
|
|
14508
|
+
profile_id: string;
|
|
14509
|
+
role_id: string;
|
|
14510
|
+
};
|
|
14511
|
+
Update: {
|
|
14512
|
+
created_at?: string;
|
|
14513
|
+
id?: string;
|
|
14514
|
+
profile_id?: string;
|
|
14515
|
+
role_id?: string;
|
|
14516
|
+
};
|
|
14517
|
+
Relationships: [
|
|
14518
|
+
{
|
|
14519
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
14520
|
+
columns: ["profile_id"];
|
|
14521
|
+
isOneToOne: false;
|
|
14522
|
+
referencedRelation: "profiles_org";
|
|
14523
|
+
referencedColumns: ["id"];
|
|
14524
|
+
},
|
|
14525
|
+
{
|
|
14526
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
14527
|
+
columns: ["role_id"];
|
|
14528
|
+
isOneToOne: false;
|
|
14529
|
+
referencedRelation: "roles";
|
|
14530
|
+
referencedColumns: ["id"];
|
|
14531
|
+
}
|
|
14532
|
+
];
|
|
14533
|
+
};
|
|
13821
14534
|
profiles: {
|
|
13822
14535
|
Row: {
|
|
13823
14536
|
address: string | null;
|
|
@@ -13865,6 +14578,41 @@ export type Database = {
|
|
|
13865
14578
|
}
|
|
13866
14579
|
];
|
|
13867
14580
|
};
|
|
14581
|
+
profiles_org: {
|
|
14582
|
+
Row: {
|
|
14583
|
+
created_at: string;
|
|
14584
|
+
id: string;
|
|
14585
|
+
is_default: boolean;
|
|
14586
|
+
name: string;
|
|
14587
|
+
tenant_id: string | null;
|
|
14588
|
+
updated_at: string;
|
|
14589
|
+
};
|
|
14590
|
+
Insert: {
|
|
14591
|
+
created_at?: string;
|
|
14592
|
+
id?: string;
|
|
14593
|
+
is_default?: boolean;
|
|
14594
|
+
name: string;
|
|
14595
|
+
tenant_id?: string | null;
|
|
14596
|
+
updated_at?: string;
|
|
14597
|
+
};
|
|
14598
|
+
Update: {
|
|
14599
|
+
created_at?: string;
|
|
14600
|
+
id?: string;
|
|
14601
|
+
is_default?: boolean;
|
|
14602
|
+
name?: string;
|
|
14603
|
+
tenant_id?: string | null;
|
|
14604
|
+
updated_at?: string;
|
|
14605
|
+
};
|
|
14606
|
+
Relationships: [
|
|
14607
|
+
{
|
|
14608
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
14609
|
+
columns: ["tenant_id"];
|
|
14610
|
+
isOneToOne: false;
|
|
14611
|
+
referencedRelation: "tenants";
|
|
14612
|
+
referencedColumns: ["id"];
|
|
14613
|
+
}
|
|
14614
|
+
];
|
|
14615
|
+
};
|
|
13868
14616
|
projects: {
|
|
13869
14617
|
Row: {
|
|
13870
14618
|
contact_name: string | null;
|
|
@@ -15082,6 +15830,7 @@ export type Database = {
|
|
|
15082
15830
|
type: string;
|
|
15083
15831
|
updated_at: string;
|
|
15084
15832
|
vereist_medewerker: boolean;
|
|
15833
|
+
werkplek: string | null;
|
|
15085
15834
|
};
|
|
15086
15835
|
Insert: {
|
|
15087
15836
|
actief?: boolean;
|
|
@@ -15095,6 +15844,7 @@ export type Database = {
|
|
|
15095
15844
|
type?: string;
|
|
15096
15845
|
updated_at?: string;
|
|
15097
15846
|
vereist_medewerker?: boolean;
|
|
15847
|
+
werkplek?: string | null;
|
|
15098
15848
|
};
|
|
15099
15849
|
Update: {
|
|
15100
15850
|
actief?: boolean;
|
|
@@ -15108,18 +15858,57 @@ export type Database = {
|
|
|
15108
15858
|
type?: string;
|
|
15109
15859
|
updated_at?: string;
|
|
15110
15860
|
vereist_medewerker?: boolean;
|
|
15861
|
+
werkplek?: string | null;
|
|
15111
15862
|
};
|
|
15112
15863
|
Relationships: [];
|
|
15113
15864
|
};
|
|
15114
|
-
|
|
15865
|
+
sick_periods: {
|
|
15115
15866
|
Row: {
|
|
15867
|
+
created_at: string;
|
|
15868
|
+
employee_id: string;
|
|
15869
|
+
end_date: string | null;
|
|
15116
15870
|
id: string;
|
|
15117
|
-
|
|
15871
|
+
notes: string | null;
|
|
15872
|
+
start_date: string;
|
|
15118
15873
|
updated_at: string;
|
|
15119
15874
|
};
|
|
15120
15875
|
Insert: {
|
|
15876
|
+
created_at?: string;
|
|
15877
|
+
employee_id: string;
|
|
15878
|
+
end_date?: string | null;
|
|
15121
15879
|
id?: string;
|
|
15122
|
-
|
|
15880
|
+
notes?: string | null;
|
|
15881
|
+
start_date: string;
|
|
15882
|
+
updated_at?: string;
|
|
15883
|
+
};
|
|
15884
|
+
Update: {
|
|
15885
|
+
created_at?: string;
|
|
15886
|
+
employee_id?: string;
|
|
15887
|
+
end_date?: string | null;
|
|
15888
|
+
id?: string;
|
|
15889
|
+
notes?: string | null;
|
|
15890
|
+
start_date?: string;
|
|
15891
|
+
updated_at?: string;
|
|
15892
|
+
};
|
|
15893
|
+
Relationships: [
|
|
15894
|
+
{
|
|
15895
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
15896
|
+
columns: ["employee_id"];
|
|
15897
|
+
isOneToOne: false;
|
|
15898
|
+
referencedRelation: "profiles";
|
|
15899
|
+
referencedColumns: ["id"];
|
|
15900
|
+
}
|
|
15901
|
+
];
|
|
15902
|
+
};
|
|
15903
|
+
sidebar_config: {
|
|
15904
|
+
Row: {
|
|
15905
|
+
id: string;
|
|
15906
|
+
module_order: string[];
|
|
15907
|
+
updated_at: string;
|
|
15908
|
+
};
|
|
15909
|
+
Insert: {
|
|
15910
|
+
id?: string;
|
|
15911
|
+
module_order?: string[];
|
|
15123
15912
|
updated_at?: string;
|
|
15124
15913
|
};
|
|
15125
15914
|
Update: {
|
|
@@ -15410,6 +16199,56 @@ export type Database = {
|
|
|
15410
16199
|
};
|
|
15411
16200
|
Relationships: [];
|
|
15412
16201
|
};
|
|
16202
|
+
time_compensation_entries: {
|
|
16203
|
+
Row: {
|
|
16204
|
+
created_at: string;
|
|
16205
|
+
employee_id: string;
|
|
16206
|
+
entry_date: string;
|
|
16207
|
+
id: string;
|
|
16208
|
+
km: number;
|
|
16209
|
+
meal_allowance: number;
|
|
16210
|
+
notes: string | null;
|
|
16211
|
+
standby_evening: number;
|
|
16212
|
+
standby_weekend: number;
|
|
16213
|
+
tvt_change: number;
|
|
16214
|
+
updated_at: string;
|
|
16215
|
+
};
|
|
16216
|
+
Insert: {
|
|
16217
|
+
created_at?: string;
|
|
16218
|
+
employee_id: string;
|
|
16219
|
+
entry_date: string;
|
|
16220
|
+
id?: string;
|
|
16221
|
+
km?: number;
|
|
16222
|
+
meal_allowance?: number;
|
|
16223
|
+
notes?: string | null;
|
|
16224
|
+
standby_evening?: number;
|
|
16225
|
+
standby_weekend?: number;
|
|
16226
|
+
tvt_change?: number;
|
|
16227
|
+
updated_at?: string;
|
|
16228
|
+
};
|
|
16229
|
+
Update: {
|
|
16230
|
+
created_at?: string;
|
|
16231
|
+
employee_id?: string;
|
|
16232
|
+
entry_date?: string;
|
|
16233
|
+
id?: string;
|
|
16234
|
+
km?: number;
|
|
16235
|
+
meal_allowance?: number;
|
|
16236
|
+
notes?: string | null;
|
|
16237
|
+
standby_evening?: number;
|
|
16238
|
+
standby_weekend?: number;
|
|
16239
|
+
tvt_change?: number;
|
|
16240
|
+
updated_at?: string;
|
|
16241
|
+
};
|
|
16242
|
+
Relationships: [
|
|
16243
|
+
{
|
|
16244
|
+
foreignKeyName: "time_compensation_entries_employee_id_fkey";
|
|
16245
|
+
columns: ["employee_id"];
|
|
16246
|
+
isOneToOne: false;
|
|
16247
|
+
referencedRelation: "profiles";
|
|
16248
|
+
referencedColumns: ["id"];
|
|
16249
|
+
}
|
|
16250
|
+
];
|
|
16251
|
+
};
|
|
15413
16252
|
time_entries: {
|
|
15414
16253
|
Row: {
|
|
15415
16254
|
created_at: string;
|
|
@@ -15444,68 +16283,174 @@ export type Database = {
|
|
|
15444
16283
|
undertime?: number;
|
|
15445
16284
|
updated_at?: string;
|
|
15446
16285
|
};
|
|
16286
|
+
Relationships: [];
|
|
16287
|
+
};
|
|
16288
|
+
time_log_week_approvals: {
|
|
16289
|
+
Row: {
|
|
16290
|
+
approved_at: string | null;
|
|
16291
|
+
approved_by: string | null;
|
|
16292
|
+
created_at: string;
|
|
16293
|
+
employee_id: string;
|
|
16294
|
+
id: string;
|
|
16295
|
+
locked: boolean;
|
|
16296
|
+
notes: string | null;
|
|
16297
|
+
status: string;
|
|
16298
|
+
submitted_at: string | null;
|
|
16299
|
+
updated_at: string;
|
|
16300
|
+
week_start: string;
|
|
16301
|
+
};
|
|
16302
|
+
Insert: {
|
|
16303
|
+
approved_at?: string | null;
|
|
16304
|
+
approved_by?: string | null;
|
|
16305
|
+
created_at?: string;
|
|
16306
|
+
employee_id: string;
|
|
16307
|
+
id?: string;
|
|
16308
|
+
locked?: boolean;
|
|
16309
|
+
notes?: string | null;
|
|
16310
|
+
status?: string;
|
|
16311
|
+
submitted_at?: string | null;
|
|
16312
|
+
updated_at?: string;
|
|
16313
|
+
week_start: string;
|
|
16314
|
+
};
|
|
16315
|
+
Update: {
|
|
16316
|
+
approved_at?: string | null;
|
|
16317
|
+
approved_by?: string | null;
|
|
16318
|
+
created_at?: string;
|
|
16319
|
+
employee_id?: string;
|
|
16320
|
+
id?: string;
|
|
16321
|
+
locked?: boolean;
|
|
16322
|
+
notes?: string | null;
|
|
16323
|
+
status?: string;
|
|
16324
|
+
submitted_at?: string | null;
|
|
16325
|
+
updated_at?: string;
|
|
16326
|
+
week_start?: string;
|
|
16327
|
+
};
|
|
15447
16328
|
Relationships: [
|
|
15448
16329
|
{
|
|
15449
|
-
foreignKeyName: "
|
|
16330
|
+
foreignKeyName: "time_log_week_approvals_employee_id_fkey";
|
|
15450
16331
|
columns: ["employee_id"];
|
|
15451
16332
|
isOneToOne: false;
|
|
15452
|
-
referencedRelation: "
|
|
16333
|
+
referencedRelation: "profiles";
|
|
15453
16334
|
referencedColumns: ["id"];
|
|
15454
16335
|
}
|
|
15455
16336
|
];
|
|
15456
16337
|
};
|
|
15457
16338
|
time_logs: {
|
|
15458
16339
|
Row: {
|
|
16340
|
+
auto_stop_reason: string | null;
|
|
16341
|
+
auto_stopped: boolean;
|
|
15459
16342
|
created_at: string;
|
|
16343
|
+
current_latitude: number | null;
|
|
16344
|
+
current_longitude: number | null;
|
|
16345
|
+
current_position_updated_at: string | null;
|
|
15460
16346
|
employee_id: string;
|
|
16347
|
+
end_latitude: number | null;
|
|
16348
|
+
end_longitude: number | null;
|
|
15461
16349
|
end_time: string | null;
|
|
16350
|
+
eta_distance_km: number | null;
|
|
16351
|
+
eta_minutes: number | null;
|
|
16352
|
+
eta_updated_at: string | null;
|
|
16353
|
+
hour_category: string | null;
|
|
15462
16354
|
id: string;
|
|
16355
|
+
last_reminder_at: string | null;
|
|
15463
16356
|
notes: string | null;
|
|
15464
16357
|
overtime_hours: number;
|
|
15465
16358
|
overtime_type: string | null;
|
|
15466
16359
|
regular_hours: number;
|
|
16360
|
+
reminder_count: number;
|
|
16361
|
+
requires_review: boolean;
|
|
16362
|
+
start_latitude: number | null;
|
|
16363
|
+
start_longitude: number | null;
|
|
15467
16364
|
start_time: string;
|
|
15468
16365
|
travel_cost: number | null;
|
|
15469
16366
|
travel_distance_km: number | null;
|
|
16367
|
+
travel_duration_min: number | null;
|
|
16368
|
+
travel_time_minutes: number | null;
|
|
15470
16369
|
type: string;
|
|
15471
16370
|
updated_at: string;
|
|
16371
|
+
work_order_id: string | null;
|
|
15472
16372
|
};
|
|
15473
16373
|
Insert: {
|
|
16374
|
+
auto_stop_reason?: string | null;
|
|
16375
|
+
auto_stopped?: boolean;
|
|
15474
16376
|
created_at?: string;
|
|
16377
|
+
current_latitude?: number | null;
|
|
16378
|
+
current_longitude?: number | null;
|
|
16379
|
+
current_position_updated_at?: string | null;
|
|
15475
16380
|
employee_id: string;
|
|
16381
|
+
end_latitude?: number | null;
|
|
16382
|
+
end_longitude?: number | null;
|
|
15476
16383
|
end_time?: string | null;
|
|
16384
|
+
eta_distance_km?: number | null;
|
|
16385
|
+
eta_minutes?: number | null;
|
|
16386
|
+
eta_updated_at?: string | null;
|
|
16387
|
+
hour_category?: string | null;
|
|
15477
16388
|
id?: string;
|
|
16389
|
+
last_reminder_at?: string | null;
|
|
15478
16390
|
notes?: string | null;
|
|
15479
16391
|
overtime_hours?: number;
|
|
15480
16392
|
overtime_type?: string | null;
|
|
15481
16393
|
regular_hours?: number;
|
|
16394
|
+
reminder_count?: number;
|
|
16395
|
+
requires_review?: boolean;
|
|
16396
|
+
start_latitude?: number | null;
|
|
16397
|
+
start_longitude?: number | null;
|
|
15482
16398
|
start_time?: string;
|
|
15483
16399
|
travel_cost?: number | null;
|
|
15484
16400
|
travel_distance_km?: number | null;
|
|
16401
|
+
travel_duration_min?: number | null;
|
|
16402
|
+
travel_time_minutes?: number | null;
|
|
15485
16403
|
type: string;
|
|
15486
16404
|
updated_at?: string;
|
|
16405
|
+
work_order_id?: string | null;
|
|
15487
16406
|
};
|
|
15488
16407
|
Update: {
|
|
16408
|
+
auto_stop_reason?: string | null;
|
|
16409
|
+
auto_stopped?: boolean;
|
|
15489
16410
|
created_at?: string;
|
|
16411
|
+
current_latitude?: number | null;
|
|
16412
|
+
current_longitude?: number | null;
|
|
16413
|
+
current_position_updated_at?: string | null;
|
|
15490
16414
|
employee_id?: string;
|
|
16415
|
+
end_latitude?: number | null;
|
|
16416
|
+
end_longitude?: number | null;
|
|
15491
16417
|
end_time?: string | null;
|
|
16418
|
+
eta_distance_km?: number | null;
|
|
16419
|
+
eta_minutes?: number | null;
|
|
16420
|
+
eta_updated_at?: string | null;
|
|
16421
|
+
hour_category?: string | null;
|
|
15492
16422
|
id?: string;
|
|
16423
|
+
last_reminder_at?: string | null;
|
|
15493
16424
|
notes?: string | null;
|
|
15494
16425
|
overtime_hours?: number;
|
|
15495
16426
|
overtime_type?: string | null;
|
|
15496
16427
|
regular_hours?: number;
|
|
16428
|
+
reminder_count?: number;
|
|
16429
|
+
requires_review?: boolean;
|
|
16430
|
+
start_latitude?: number | null;
|
|
16431
|
+
start_longitude?: number | null;
|
|
15497
16432
|
start_time?: string;
|
|
15498
16433
|
travel_cost?: number | null;
|
|
15499
16434
|
travel_distance_km?: number | null;
|
|
16435
|
+
travel_duration_min?: number | null;
|
|
16436
|
+
travel_time_minutes?: number | null;
|
|
15500
16437
|
type?: string;
|
|
15501
16438
|
updated_at?: string;
|
|
16439
|
+
work_order_id?: string | null;
|
|
15502
16440
|
};
|
|
15503
16441
|
Relationships: [
|
|
15504
16442
|
{
|
|
15505
16443
|
foreignKeyName: "time_logs_employee_id_fkey";
|
|
15506
16444
|
columns: ["employee_id"];
|
|
15507
16445
|
isOneToOne: false;
|
|
15508
|
-
referencedRelation: "
|
|
16446
|
+
referencedRelation: "profiles";
|
|
16447
|
+
referencedColumns: ["id"];
|
|
16448
|
+
},
|
|
16449
|
+
{
|
|
16450
|
+
foreignKeyName: "time_logs_work_order_id_fkey";
|
|
16451
|
+
columns: ["work_order_id"];
|
|
16452
|
+
isOneToOne: false;
|
|
16453
|
+
referencedRelation: "work_orders";
|
|
15509
16454
|
referencedColumns: ["id"];
|
|
15510
16455
|
}
|
|
15511
16456
|
];
|
|
@@ -15546,7 +16491,7 @@ export type Database = {
|
|
|
15546
16491
|
foreignKeyName: "time_off_entries_employee_id_fkey";
|
|
15547
16492
|
columns: ["employee_id"];
|
|
15548
16493
|
isOneToOne: false;
|
|
15549
|
-
referencedRelation: "
|
|
16494
|
+
referencedRelation: "profiles";
|
|
15550
16495
|
referencedColumns: ["id"];
|
|
15551
16496
|
}
|
|
15552
16497
|
];
|
|
@@ -15798,12 +16743,16 @@ export type Database = {
|
|
|
15798
16743
|
company_name: string | null;
|
|
15799
16744
|
connected_at: string | null;
|
|
15800
16745
|
created_at: string;
|
|
16746
|
+
disconnected_at: string | null;
|
|
15801
16747
|
environment: string;
|
|
15802
16748
|
id: string;
|
|
16749
|
+
initial_sync_completed_at: string | null;
|
|
16750
|
+
initial_sync_started_at: string | null;
|
|
15803
16751
|
is_active: boolean;
|
|
15804
16752
|
label: string | null;
|
|
15805
16753
|
office_code: string | null;
|
|
15806
16754
|
redirect_uri: string | null;
|
|
16755
|
+
superseded_at: string | null;
|
|
15807
16756
|
updated_at: string;
|
|
15808
16757
|
user_id: string;
|
|
15809
16758
|
};
|
|
@@ -15814,12 +16763,16 @@ export type Database = {
|
|
|
15814
16763
|
company_name?: string | null;
|
|
15815
16764
|
connected_at?: string | null;
|
|
15816
16765
|
created_at?: string;
|
|
16766
|
+
disconnected_at?: string | null;
|
|
15817
16767
|
environment: string;
|
|
15818
16768
|
id?: string;
|
|
16769
|
+
initial_sync_completed_at?: string | null;
|
|
16770
|
+
initial_sync_started_at?: string | null;
|
|
15819
16771
|
is_active?: boolean;
|
|
15820
16772
|
label?: string | null;
|
|
15821
16773
|
office_code?: string | null;
|
|
15822
16774
|
redirect_uri?: string | null;
|
|
16775
|
+
superseded_at?: string | null;
|
|
15823
16776
|
updated_at?: string;
|
|
15824
16777
|
user_id: string;
|
|
15825
16778
|
};
|
|
@@ -15830,12 +16783,16 @@ export type Database = {
|
|
|
15830
16783
|
company_name?: string | null;
|
|
15831
16784
|
connected_at?: string | null;
|
|
15832
16785
|
created_at?: string;
|
|
16786
|
+
disconnected_at?: string | null;
|
|
15833
16787
|
environment?: string;
|
|
15834
16788
|
id?: string;
|
|
16789
|
+
initial_sync_completed_at?: string | null;
|
|
16790
|
+
initial_sync_started_at?: string | null;
|
|
15835
16791
|
is_active?: boolean;
|
|
15836
16792
|
label?: string | null;
|
|
15837
16793
|
office_code?: string | null;
|
|
15838
16794
|
redirect_uri?: string | null;
|
|
16795
|
+
superseded_at?: string | null;
|
|
15839
16796
|
updated_at?: string;
|
|
15840
16797
|
user_id?: string;
|
|
15841
16798
|
};
|
|
@@ -15859,9 +16816,43 @@ export type Database = {
|
|
|
15859
16816
|
};
|
|
15860
16817
|
Relationships: [];
|
|
15861
16818
|
};
|
|
16819
|
+
twinfield_cron_locks: {
|
|
16820
|
+
Row: {
|
|
16821
|
+
created_at: string;
|
|
16822
|
+
heartbeat_at: string;
|
|
16823
|
+
job_name: string;
|
|
16824
|
+
last_error: string | null;
|
|
16825
|
+
last_finished_at: string | null;
|
|
16826
|
+
locked_at: string;
|
|
16827
|
+
run_id: string;
|
|
16828
|
+
updated_at: string;
|
|
16829
|
+
};
|
|
16830
|
+
Insert: {
|
|
16831
|
+
created_at?: string;
|
|
16832
|
+
heartbeat_at?: string;
|
|
16833
|
+
job_name: string;
|
|
16834
|
+
last_error?: string | null;
|
|
16835
|
+
last_finished_at?: string | null;
|
|
16836
|
+
locked_at?: string;
|
|
16837
|
+
run_id?: string;
|
|
16838
|
+
updated_at?: string;
|
|
16839
|
+
};
|
|
16840
|
+
Update: {
|
|
16841
|
+
created_at?: string;
|
|
16842
|
+
heartbeat_at?: string;
|
|
16843
|
+
job_name?: string;
|
|
16844
|
+
last_error?: string | null;
|
|
16845
|
+
last_finished_at?: string | null;
|
|
16846
|
+
locked_at?: string;
|
|
16847
|
+
run_id?: string;
|
|
16848
|
+
updated_at?: string;
|
|
16849
|
+
};
|
|
16850
|
+
Relationships: [];
|
|
16851
|
+
};
|
|
15862
16852
|
twinfield_customers: {
|
|
15863
16853
|
Row: {
|
|
15864
16854
|
address: string | null;
|
|
16855
|
+
administration_code: string;
|
|
15865
16856
|
city: string | null;
|
|
15866
16857
|
country: string | null;
|
|
15867
16858
|
created_at: string;
|
|
@@ -15881,6 +16872,7 @@ export type Database = {
|
|
|
15881
16872
|
};
|
|
15882
16873
|
Insert: {
|
|
15883
16874
|
address?: string | null;
|
|
16875
|
+
administration_code?: string;
|
|
15884
16876
|
city?: string | null;
|
|
15885
16877
|
country?: string | null;
|
|
15886
16878
|
created_at?: string;
|
|
@@ -15900,6 +16892,7 @@ export type Database = {
|
|
|
15900
16892
|
};
|
|
15901
16893
|
Update: {
|
|
15902
16894
|
address?: string | null;
|
|
16895
|
+
administration_code?: string;
|
|
15903
16896
|
city?: string | null;
|
|
15904
16897
|
country?: string | null;
|
|
15905
16898
|
created_at?: string;
|
|
@@ -16121,7 +17114,9 @@ export type Database = {
|
|
|
16121
17114
|
};
|
|
16122
17115
|
twinfield_invoice_settings: {
|
|
16123
17116
|
Row: {
|
|
17117
|
+
administration_code: string | null;
|
|
16124
17118
|
auto_invoice_enabled: boolean;
|
|
17119
|
+
auto_invoice_start_date: string | null;
|
|
16125
17120
|
auto_invoice_trigger_statuses: string[];
|
|
16126
17121
|
created_at: string;
|
|
16127
17122
|
debtor_gl_account: string;
|
|
@@ -16135,15 +17130,19 @@ export type Database = {
|
|
|
16135
17130
|
invoice_enabled_fo: boolean;
|
|
16136
17131
|
invoice_enabled_ho: boolean;
|
|
16137
17132
|
invoice_enabled_mo: boolean;
|
|
17133
|
+
needs_review: boolean;
|
|
16138
17134
|
payment_gl_account: string;
|
|
16139
17135
|
payment_journal_code: string;
|
|
17136
|
+
settings_confirmed_at: string | null;
|
|
16140
17137
|
updated_at: string;
|
|
16141
17138
|
user_id: string;
|
|
16142
17139
|
vat_code_eu_reverse: string | null;
|
|
16143
17140
|
vat_code_export: string | null;
|
|
16144
17141
|
};
|
|
16145
17142
|
Insert: {
|
|
17143
|
+
administration_code?: string | null;
|
|
16146
17144
|
auto_invoice_enabled?: boolean;
|
|
17145
|
+
auto_invoice_start_date?: string | null;
|
|
16147
17146
|
auto_invoice_trigger_statuses?: string[];
|
|
16148
17147
|
created_at?: string;
|
|
16149
17148
|
debtor_gl_account?: string;
|
|
@@ -16157,15 +17156,19 @@ export type Database = {
|
|
|
16157
17156
|
invoice_enabled_fo?: boolean;
|
|
16158
17157
|
invoice_enabled_ho?: boolean;
|
|
16159
17158
|
invoice_enabled_mo?: boolean;
|
|
17159
|
+
needs_review?: boolean;
|
|
16160
17160
|
payment_gl_account?: string;
|
|
16161
17161
|
payment_journal_code?: string;
|
|
17162
|
+
settings_confirmed_at?: string | null;
|
|
16162
17163
|
updated_at?: string;
|
|
16163
17164
|
user_id: string;
|
|
16164
17165
|
vat_code_eu_reverse?: string | null;
|
|
16165
17166
|
vat_code_export?: string | null;
|
|
16166
17167
|
};
|
|
16167
17168
|
Update: {
|
|
17169
|
+
administration_code?: string | null;
|
|
16168
17170
|
auto_invoice_enabled?: boolean;
|
|
17171
|
+
auto_invoice_start_date?: string | null;
|
|
16169
17172
|
auto_invoice_trigger_statuses?: string[];
|
|
16170
17173
|
created_at?: string;
|
|
16171
17174
|
debtor_gl_account?: string;
|
|
@@ -16179,8 +17182,10 @@ export type Database = {
|
|
|
16179
17182
|
invoice_enabled_fo?: boolean;
|
|
16180
17183
|
invoice_enabled_ho?: boolean;
|
|
16181
17184
|
invoice_enabled_mo?: boolean;
|
|
17185
|
+
needs_review?: boolean;
|
|
16182
17186
|
payment_gl_account?: string;
|
|
16183
17187
|
payment_journal_code?: string;
|
|
17188
|
+
settings_confirmed_at?: string | null;
|
|
16184
17189
|
updated_at?: string;
|
|
16185
17190
|
user_id?: string;
|
|
16186
17191
|
vat_code_eu_reverse?: string | null;
|
|
@@ -16469,6 +17474,7 @@ export type Database = {
|
|
|
16469
17474
|
twinfield_push_queue: {
|
|
16470
17475
|
Row: {
|
|
16471
17476
|
action: string;
|
|
17477
|
+
attempt_started_at: string | null;
|
|
16472
17478
|
attempts: number;
|
|
16473
17479
|
connection_id: string | null;
|
|
16474
17480
|
created_at: string;
|
|
@@ -16485,6 +17491,7 @@ export type Database = {
|
|
|
16485
17491
|
};
|
|
16486
17492
|
Insert: {
|
|
16487
17493
|
action?: string;
|
|
17494
|
+
attempt_started_at?: string | null;
|
|
16488
17495
|
attempts?: number;
|
|
16489
17496
|
connection_id?: string | null;
|
|
16490
17497
|
created_at?: string;
|
|
@@ -16501,6 +17508,7 @@ export type Database = {
|
|
|
16501
17508
|
};
|
|
16502
17509
|
Update: {
|
|
16503
17510
|
action?: string;
|
|
17511
|
+
attempt_started_at?: string | null;
|
|
16504
17512
|
attempts?: number;
|
|
16505
17513
|
connection_id?: string | null;
|
|
16506
17514
|
created_at?: string;
|
|
@@ -16703,15 +17711,7 @@ export type Database = {
|
|
|
16703
17711
|
workday_end?: string | null;
|
|
16704
17712
|
workday_start?: string | null;
|
|
16705
17713
|
};
|
|
16706
|
-
Relationships: [
|
|
16707
|
-
{
|
|
16708
|
-
foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
|
|
16709
|
-
columns: ["monteur_id"];
|
|
16710
|
-
isOneToOne: true;
|
|
16711
|
-
referencedRelation: "monteurs";
|
|
16712
|
-
referencedColumns: ["id"];
|
|
16713
|
-
}
|
|
16714
|
-
];
|
|
17714
|
+
Relationships: [];
|
|
16715
17715
|
};
|
|
16716
17716
|
uren_entries: {
|
|
16717
17717
|
Row: {
|
|
@@ -16757,13 +17757,6 @@ export type Database = {
|
|
|
16757
17757
|
werkbon_id?: string | null;
|
|
16758
17758
|
};
|
|
16759
17759
|
Relationships: [
|
|
16760
|
-
{
|
|
16761
|
-
foreignKeyName: "uren_entries_monteur_id_fkey";
|
|
16762
|
-
columns: ["monteur_id"];
|
|
16763
|
-
isOneToOne: false;
|
|
16764
|
-
referencedRelation: "monteurs";
|
|
16765
|
-
referencedColumns: ["id"];
|
|
16766
|
-
},
|
|
16767
17760
|
{
|
|
16768
17761
|
foreignKeyName: "uren_entries_werkbon_id_fkey";
|
|
16769
17762
|
columns: ["werkbon_id"];
|
|
@@ -16806,119 +17799,6 @@ export type Database = {
|
|
|
16806
17799
|
};
|
|
16807
17800
|
Relationships: [];
|
|
16808
17801
|
};
|
|
16809
|
-
uren_facturen: {
|
|
16810
|
-
Row: {
|
|
16811
|
-
created_at: string;
|
|
16812
|
-
created_by: string | null;
|
|
16813
|
-
customer_id: string | null;
|
|
16814
|
-
customer_name: string | null;
|
|
16815
|
-
id: string;
|
|
16816
|
-
invoice_number: string | null;
|
|
16817
|
-
note: string | null;
|
|
16818
|
-
status: string;
|
|
16819
|
-
total_excl_cents: number;
|
|
16820
|
-
total_incl_cents: number;
|
|
16821
|
-
updated_at: string;
|
|
16822
|
-
vat_cents: number;
|
|
16823
|
-
vat_percentage: number;
|
|
16824
|
-
werkbon_id: string | null;
|
|
16825
|
-
};
|
|
16826
|
-
Insert: {
|
|
16827
|
-
created_at?: string;
|
|
16828
|
-
created_by?: string | null;
|
|
16829
|
-
customer_id?: string | null;
|
|
16830
|
-
customer_name?: string | null;
|
|
16831
|
-
id?: string;
|
|
16832
|
-
invoice_number?: string | null;
|
|
16833
|
-
note?: string | null;
|
|
16834
|
-
status?: string;
|
|
16835
|
-
total_excl_cents?: number;
|
|
16836
|
-
total_incl_cents?: number;
|
|
16837
|
-
updated_at?: string;
|
|
16838
|
-
vat_cents?: number;
|
|
16839
|
-
vat_percentage?: number;
|
|
16840
|
-
werkbon_id?: string | null;
|
|
16841
|
-
};
|
|
16842
|
-
Update: {
|
|
16843
|
-
created_at?: string;
|
|
16844
|
-
created_by?: string | null;
|
|
16845
|
-
customer_id?: string | null;
|
|
16846
|
-
customer_name?: string | null;
|
|
16847
|
-
id?: string;
|
|
16848
|
-
invoice_number?: string | null;
|
|
16849
|
-
note?: string | null;
|
|
16850
|
-
status?: string;
|
|
16851
|
-
total_excl_cents?: number;
|
|
16852
|
-
total_incl_cents?: number;
|
|
16853
|
-
updated_at?: string;
|
|
16854
|
-
vat_cents?: number;
|
|
16855
|
-
vat_percentage?: number;
|
|
16856
|
-
werkbon_id?: string | null;
|
|
16857
|
-
};
|
|
16858
|
-
Relationships: [
|
|
16859
|
-
{
|
|
16860
|
-
foreignKeyName: "uren_facturen_customer_id_fkey";
|
|
16861
|
-
columns: ["customer_id"];
|
|
16862
|
-
isOneToOne: false;
|
|
16863
|
-
referencedRelation: "itk_customers";
|
|
16864
|
-
referencedColumns: ["id"];
|
|
16865
|
-
},
|
|
16866
|
-
{
|
|
16867
|
-
foreignKeyName: "uren_facturen_werkbon_id_fkey";
|
|
16868
|
-
columns: ["werkbon_id"];
|
|
16869
|
-
isOneToOne: true;
|
|
16870
|
-
referencedRelation: "werkbonnen";
|
|
16871
|
-
referencedColumns: ["id"];
|
|
16872
|
-
}
|
|
16873
|
-
];
|
|
16874
|
-
};
|
|
16875
|
-
uren_factuur_regels: {
|
|
16876
|
-
Row: {
|
|
16877
|
-
created_at: string;
|
|
16878
|
-
description: string;
|
|
16879
|
-
factuur_id: string;
|
|
16880
|
-
id: string;
|
|
16881
|
-
kind: string | null;
|
|
16882
|
-
quantity: number;
|
|
16883
|
-
sort_order: number;
|
|
16884
|
-
total_cents: number;
|
|
16885
|
-
unit: string;
|
|
16886
|
-
unit_price_cents: number;
|
|
16887
|
-
};
|
|
16888
|
-
Insert: {
|
|
16889
|
-
created_at?: string;
|
|
16890
|
-
description: string;
|
|
16891
|
-
factuur_id: string;
|
|
16892
|
-
id?: string;
|
|
16893
|
-
kind?: string | null;
|
|
16894
|
-
quantity?: number;
|
|
16895
|
-
sort_order?: number;
|
|
16896
|
-
total_cents?: number;
|
|
16897
|
-
unit?: string;
|
|
16898
|
-
unit_price_cents?: number;
|
|
16899
|
-
};
|
|
16900
|
-
Update: {
|
|
16901
|
-
created_at?: string;
|
|
16902
|
-
description?: string;
|
|
16903
|
-
factuur_id?: string;
|
|
16904
|
-
id?: string;
|
|
16905
|
-
kind?: string | null;
|
|
16906
|
-
quantity?: number;
|
|
16907
|
-
sort_order?: number;
|
|
16908
|
-
total_cents?: number;
|
|
16909
|
-
unit?: string;
|
|
16910
|
-
unit_price_cents?: number;
|
|
16911
|
-
};
|
|
16912
|
-
Relationships: [
|
|
16913
|
-
{
|
|
16914
|
-
foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
|
|
16915
|
-
columns: ["factuur_id"];
|
|
16916
|
-
isOneToOne: false;
|
|
16917
|
-
referencedRelation: "uren_facturen";
|
|
16918
|
-
referencedColumns: ["id"];
|
|
16919
|
-
}
|
|
16920
|
-
];
|
|
16921
|
-
};
|
|
16922
17802
|
uren_offerte_regels: {
|
|
16923
17803
|
Row: {
|
|
16924
17804
|
created_at: string;
|
|
@@ -17245,15 +18125,7 @@ export type Database = {
|
|
|
17245
18125
|
submitted_at?: string | null;
|
|
17246
18126
|
updated_at?: string;
|
|
17247
18127
|
};
|
|
17248
|
-
Relationships: [
|
|
17249
|
-
{
|
|
17250
|
-
foreignKeyName: "uren_weekstaten_monteur_id_fkey";
|
|
17251
|
-
columns: ["monteur_id"];
|
|
17252
|
-
isOneToOne: false;
|
|
17253
|
-
referencedRelation: "monteurs";
|
|
17254
|
-
referencedColumns: ["id"];
|
|
17255
|
-
}
|
|
17256
|
-
];
|
|
18128
|
+
Relationships: [];
|
|
17257
18129
|
};
|
|
17258
18130
|
user_module_permissions: {
|
|
17259
18131
|
Row: {
|
|
@@ -17314,6 +18186,53 @@ export type Database = {
|
|
|
17314
18186
|
}
|
|
17315
18187
|
];
|
|
17316
18188
|
};
|
|
18189
|
+
van_inventories: {
|
|
18190
|
+
Row: {
|
|
18191
|
+
barcode: string | null;
|
|
18192
|
+
created_at: string;
|
|
18193
|
+
id: string;
|
|
18194
|
+
monteur_id: string | null;
|
|
18195
|
+
price_per_unit: number;
|
|
18196
|
+
product_name: string;
|
|
18197
|
+
quantity_current: number;
|
|
18198
|
+
quantity_min: number;
|
|
18199
|
+
unit: string;
|
|
18200
|
+
updated_at: string;
|
|
18201
|
+
};
|
|
18202
|
+
Insert: {
|
|
18203
|
+
barcode?: string | null;
|
|
18204
|
+
created_at?: string;
|
|
18205
|
+
id?: string;
|
|
18206
|
+
monteur_id?: string | null;
|
|
18207
|
+
price_per_unit?: number;
|
|
18208
|
+
product_name: string;
|
|
18209
|
+
quantity_current?: number;
|
|
18210
|
+
quantity_min?: number;
|
|
18211
|
+
unit?: string;
|
|
18212
|
+
updated_at?: string;
|
|
18213
|
+
};
|
|
18214
|
+
Update: {
|
|
18215
|
+
barcode?: string | null;
|
|
18216
|
+
created_at?: string;
|
|
18217
|
+
id?: string;
|
|
18218
|
+
monteur_id?: string | null;
|
|
18219
|
+
price_per_unit?: number;
|
|
18220
|
+
product_name?: string;
|
|
18221
|
+
quantity_current?: number;
|
|
18222
|
+
quantity_min?: number;
|
|
18223
|
+
unit?: string;
|
|
18224
|
+
updated_at?: string;
|
|
18225
|
+
};
|
|
18226
|
+
Relationships: [
|
|
18227
|
+
{
|
|
18228
|
+
foreignKeyName: "van_inventories_monteur_id_fkey";
|
|
18229
|
+
columns: ["monteur_id"];
|
|
18230
|
+
isOneToOne: false;
|
|
18231
|
+
referencedRelation: "profiles";
|
|
18232
|
+
referencedColumns: ["id"];
|
|
18233
|
+
}
|
|
18234
|
+
];
|
|
18235
|
+
};
|
|
17317
18236
|
voorraad_custom_fields: {
|
|
17318
18237
|
Row: {
|
|
17319
18238
|
created_at: string;
|
|
@@ -18287,7 +19206,7 @@ export type Database = {
|
|
|
18287
19206
|
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
18288
19207
|
columns: ["monteur_id"];
|
|
18289
19208
|
isOneToOne: false;
|
|
18290
|
-
referencedRelation: "
|
|
19209
|
+
referencedRelation: "profiles";
|
|
18291
19210
|
referencedColumns: ["id"];
|
|
18292
19211
|
},
|
|
18293
19212
|
{
|
|
@@ -18299,6 +19218,63 @@ export type Database = {
|
|
|
18299
19218
|
}
|
|
18300
19219
|
];
|
|
18301
19220
|
};
|
|
19221
|
+
work_order_photos: {
|
|
19222
|
+
Row: {
|
|
19223
|
+
ai_caption: string | null;
|
|
19224
|
+
ai_categorized_at: string | null;
|
|
19225
|
+
ai_labels: Json | null;
|
|
19226
|
+
caption: string | null;
|
|
19227
|
+
created_at: string;
|
|
19228
|
+
id: string;
|
|
19229
|
+
monteur_id: string | null;
|
|
19230
|
+
photo_type: string;
|
|
19231
|
+
storage_path: string;
|
|
19232
|
+
updated_at: string;
|
|
19233
|
+
work_order_id: string;
|
|
19234
|
+
};
|
|
19235
|
+
Insert: {
|
|
19236
|
+
ai_caption?: string | null;
|
|
19237
|
+
ai_categorized_at?: string | null;
|
|
19238
|
+
ai_labels?: Json | null;
|
|
19239
|
+
caption?: string | null;
|
|
19240
|
+
created_at?: string;
|
|
19241
|
+
id?: string;
|
|
19242
|
+
monteur_id?: string | null;
|
|
19243
|
+
photo_type?: string;
|
|
19244
|
+
storage_path: string;
|
|
19245
|
+
updated_at?: string;
|
|
19246
|
+
work_order_id: string;
|
|
19247
|
+
};
|
|
19248
|
+
Update: {
|
|
19249
|
+
ai_caption?: string | null;
|
|
19250
|
+
ai_categorized_at?: string | null;
|
|
19251
|
+
ai_labels?: Json | null;
|
|
19252
|
+
caption?: string | null;
|
|
19253
|
+
created_at?: string;
|
|
19254
|
+
id?: string;
|
|
19255
|
+
monteur_id?: string | null;
|
|
19256
|
+
photo_type?: string;
|
|
19257
|
+
storage_path?: string;
|
|
19258
|
+
updated_at?: string;
|
|
19259
|
+
work_order_id?: string;
|
|
19260
|
+
};
|
|
19261
|
+
Relationships: [
|
|
19262
|
+
{
|
|
19263
|
+
foreignKeyName: "work_order_photos_monteur_id_fkey";
|
|
19264
|
+
columns: ["monteur_id"];
|
|
19265
|
+
isOneToOne: false;
|
|
19266
|
+
referencedRelation: "profiles";
|
|
19267
|
+
referencedColumns: ["id"];
|
|
19268
|
+
},
|
|
19269
|
+
{
|
|
19270
|
+
foreignKeyName: "work_order_photos_work_order_id_fkey";
|
|
19271
|
+
columns: ["work_order_id"];
|
|
19272
|
+
isOneToOne: false;
|
|
19273
|
+
referencedRelation: "work_orders";
|
|
19274
|
+
referencedColumns: ["id"];
|
|
19275
|
+
}
|
|
19276
|
+
];
|
|
19277
|
+
};
|
|
18302
19278
|
work_orders: {
|
|
18303
19279
|
Row: {
|
|
18304
19280
|
assigned_to: string | null;
|
|
@@ -18330,7 +19306,6 @@ export type Database = {
|
|
|
18330
19306
|
scheduled_end_time: string | null;
|
|
18331
19307
|
scheduled_start_time: string | null;
|
|
18332
19308
|
status: string;
|
|
18333
|
-
tenant_id: string;
|
|
18334
19309
|
total_hours_worked: number | null;
|
|
18335
19310
|
total_price: number | null;
|
|
18336
19311
|
travel_time_minutes: number | null;
|
|
@@ -18368,7 +19343,6 @@ export type Database = {
|
|
|
18368
19343
|
scheduled_end_time?: string | null;
|
|
18369
19344
|
scheduled_start_time?: string | null;
|
|
18370
19345
|
status?: string;
|
|
18371
|
-
tenant_id: string;
|
|
18372
19346
|
total_hours_worked?: number | null;
|
|
18373
19347
|
total_price?: number | null;
|
|
18374
19348
|
travel_time_minutes?: number | null;
|
|
@@ -18406,7 +19380,6 @@ export type Database = {
|
|
|
18406
19380
|
scheduled_end_time?: string | null;
|
|
18407
19381
|
scheduled_start_time?: string | null;
|
|
18408
19382
|
status?: string;
|
|
18409
|
-
tenant_id?: string;
|
|
18410
19383
|
total_hours_worked?: number | null;
|
|
18411
19384
|
total_price?: number | null;
|
|
18412
19385
|
travel_time_minutes?: number | null;
|
|
@@ -18421,13 +19394,6 @@ export type Database = {
|
|
|
18421
19394
|
isOneToOne: false;
|
|
18422
19395
|
referencedRelation: "work_orders";
|
|
18423
19396
|
referencedColumns: ["id"];
|
|
18424
|
-
},
|
|
18425
|
-
{
|
|
18426
|
-
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
18427
|
-
columns: ["tenant_id"];
|
|
18428
|
-
isOneToOne: false;
|
|
18429
|
-
referencedRelation: "tenants";
|
|
18430
|
-
referencedColumns: ["id"];
|
|
18431
19397
|
}
|
|
18432
19398
|
];
|
|
18433
19399
|
};
|
|
@@ -18663,58 +19629,171 @@ export type Database = {
|
|
|
18663
19629
|
valid_from: string | null;
|
|
18664
19630
|
valid_until: string | null;
|
|
18665
19631
|
};
|
|
18666
|
-
Relationships: [];
|
|
19632
|
+
Relationships: [];
|
|
19633
|
+
};
|
|
19634
|
+
local_customer_discounts: {
|
|
19635
|
+
Row: {
|
|
19636
|
+
base_price: number | null;
|
|
19637
|
+
currency: string | null;
|
|
19638
|
+
customer_id: string | null;
|
|
19639
|
+
discount_type: string | null;
|
|
19640
|
+
discount_value: number | null;
|
|
19641
|
+
min_quantity: number | null;
|
|
19642
|
+
net_price: number | null;
|
|
19643
|
+
product_category_id: string | null;
|
|
19644
|
+
product_id: string | null;
|
|
19645
|
+
product_name: string | null;
|
|
19646
|
+
source: string | null;
|
|
19647
|
+
source_id: string | null;
|
|
19648
|
+
valid_from: string | null;
|
|
19649
|
+
valid_until: string | null;
|
|
19650
|
+
};
|
|
19651
|
+
Relationships: [];
|
|
19652
|
+
};
|
|
19653
|
+
manufacture_product_possible_stock_view: {
|
|
19654
|
+
Row: {
|
|
19655
|
+
component_count: number | null;
|
|
19656
|
+
manufacture_product_id: string | null;
|
|
19657
|
+
possible_stock: number | null;
|
|
19658
|
+
};
|
|
19659
|
+
Relationships: [];
|
|
19660
|
+
};
|
|
19661
|
+
product_group_stock_view: {
|
|
19662
|
+
Row: {
|
|
19663
|
+
item_count: number | null;
|
|
19664
|
+
product_group_id: string | null;
|
|
19665
|
+
total_stock: number | null;
|
|
19666
|
+
};
|
|
19667
|
+
Relationships: [
|
|
19668
|
+
{
|
|
19669
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
19670
|
+
columns: ["product_group_id"];
|
|
19671
|
+
isOneToOne: false;
|
|
19672
|
+
referencedRelation: "product_groups";
|
|
19673
|
+
referencedColumns: ["id"];
|
|
19674
|
+
}
|
|
19675
|
+
];
|
|
19676
|
+
};
|
|
19677
|
+
trade_item_stock_view: {
|
|
19678
|
+
Row: {
|
|
19679
|
+
stock: number | null;
|
|
19680
|
+
trade_item_id: string | null;
|
|
19681
|
+
};
|
|
19682
|
+
Relationships: [];
|
|
19683
|
+
};
|
|
19684
|
+
uren_facturen: {
|
|
19685
|
+
Row: {
|
|
19686
|
+
created_at: string | null;
|
|
19687
|
+
created_by: string | null;
|
|
19688
|
+
customer_id: string | null;
|
|
19689
|
+
customer_name: string | null;
|
|
19690
|
+
id: string | null;
|
|
19691
|
+
invoice_number: string | null;
|
|
19692
|
+
note: string | null;
|
|
19693
|
+
status: string | null;
|
|
19694
|
+
total_excl_cents: number | null;
|
|
19695
|
+
total_incl_cents: number | null;
|
|
19696
|
+
updated_at: string | null;
|
|
19697
|
+
vat_cents: number | null;
|
|
19698
|
+
vat_percentage: number | null;
|
|
19699
|
+
werkbon_id: string | null;
|
|
19700
|
+
};
|
|
19701
|
+
Insert: {
|
|
19702
|
+
created_at?: string | null;
|
|
19703
|
+
created_by?: string | null;
|
|
19704
|
+
customer_id?: string | null;
|
|
19705
|
+
customer_name?: string | null;
|
|
19706
|
+
id?: string | null;
|
|
19707
|
+
invoice_number?: string | null;
|
|
19708
|
+
note?: string | null;
|
|
19709
|
+
status?: string | null;
|
|
19710
|
+
total_excl_cents?: number | null;
|
|
19711
|
+
total_incl_cents?: number | null;
|
|
19712
|
+
updated_at?: string | null;
|
|
19713
|
+
vat_cents?: number | null;
|
|
19714
|
+
vat_percentage?: number | null;
|
|
19715
|
+
werkbon_id?: never;
|
|
19716
|
+
};
|
|
19717
|
+
Update: {
|
|
19718
|
+
created_at?: string | null;
|
|
19719
|
+
created_by?: string | null;
|
|
19720
|
+
customer_id?: string | null;
|
|
19721
|
+
customer_name?: string | null;
|
|
19722
|
+
id?: string | null;
|
|
19723
|
+
invoice_number?: string | null;
|
|
19724
|
+
note?: string | null;
|
|
19725
|
+
status?: string | null;
|
|
19726
|
+
total_excl_cents?: number | null;
|
|
19727
|
+
total_incl_cents?: number | null;
|
|
19728
|
+
updated_at?: string | null;
|
|
19729
|
+
vat_cents?: number | null;
|
|
19730
|
+
vat_percentage?: number | null;
|
|
19731
|
+
werkbon_id?: never;
|
|
19732
|
+
};
|
|
19733
|
+
Relationships: [
|
|
19734
|
+
{
|
|
19735
|
+
foreignKeyName: "invoices_customer_id_fkey";
|
|
19736
|
+
columns: ["customer_id"];
|
|
19737
|
+
isOneToOne: false;
|
|
19738
|
+
referencedRelation: "itk_customers";
|
|
19739
|
+
referencedColumns: ["id"];
|
|
19740
|
+
}
|
|
19741
|
+
];
|
|
18667
19742
|
};
|
|
18668
|
-
|
|
19743
|
+
uren_factuur_regels: {
|
|
18669
19744
|
Row: {
|
|
18670
|
-
|
|
18671
|
-
|
|
18672
|
-
|
|
18673
|
-
|
|
18674
|
-
|
|
18675
|
-
|
|
18676
|
-
|
|
18677
|
-
|
|
18678
|
-
|
|
18679
|
-
|
|
18680
|
-
source: string | null;
|
|
18681
|
-
source_id: string | null;
|
|
18682
|
-
valid_from: string | null;
|
|
18683
|
-
valid_until: string | null;
|
|
19745
|
+
created_at: string | null;
|
|
19746
|
+
description: string | null;
|
|
19747
|
+
factuur_id: string | null;
|
|
19748
|
+
id: string | null;
|
|
19749
|
+
kind: string | null;
|
|
19750
|
+
quantity: number | null;
|
|
19751
|
+
sort_order: number | null;
|
|
19752
|
+
total_cents: number | null;
|
|
19753
|
+
unit: string | null;
|
|
19754
|
+
unit_price_cents: number | null;
|
|
18684
19755
|
};
|
|
18685
|
-
|
|
18686
|
-
|
|
18687
|
-
|
|
18688
|
-
|
|
18689
|
-
|
|
18690
|
-
|
|
18691
|
-
|
|
19756
|
+
Insert: {
|
|
19757
|
+
created_at?: string | null;
|
|
19758
|
+
description?: string | null;
|
|
19759
|
+
factuur_id?: string | null;
|
|
19760
|
+
id?: string | null;
|
|
19761
|
+
kind?: string | null;
|
|
19762
|
+
quantity?: number | null;
|
|
19763
|
+
sort_order?: number | null;
|
|
19764
|
+
total_cents?: number | null;
|
|
19765
|
+
unit?: string | null;
|
|
19766
|
+
unit_price_cents?: number | null;
|
|
18692
19767
|
};
|
|
18693
|
-
|
|
18694
|
-
|
|
18695
|
-
|
|
18696
|
-
|
|
18697
|
-
|
|
18698
|
-
|
|
18699
|
-
|
|
19768
|
+
Update: {
|
|
19769
|
+
created_at?: string | null;
|
|
19770
|
+
description?: string | null;
|
|
19771
|
+
factuur_id?: string | null;
|
|
19772
|
+
id?: string | null;
|
|
19773
|
+
kind?: string | null;
|
|
19774
|
+
quantity?: number | null;
|
|
19775
|
+
sort_order?: number | null;
|
|
19776
|
+
total_cents?: number | null;
|
|
19777
|
+
unit?: string | null;
|
|
19778
|
+
unit_price_cents?: number | null;
|
|
18700
19779
|
};
|
|
18701
19780
|
Relationships: [
|
|
18702
19781
|
{
|
|
18703
|
-
foreignKeyName: "
|
|
18704
|
-
columns: ["
|
|
19782
|
+
foreignKeyName: "invoice_items_invoice_id_fkey";
|
|
19783
|
+
columns: ["factuur_id"];
|
|
18705
19784
|
isOneToOne: false;
|
|
18706
|
-
referencedRelation: "
|
|
19785
|
+
referencedRelation: "invoices";
|
|
19786
|
+
referencedColumns: ["id"];
|
|
19787
|
+
},
|
|
19788
|
+
{
|
|
19789
|
+
foreignKeyName: "invoice_items_invoice_id_fkey";
|
|
19790
|
+
columns: ["factuur_id"];
|
|
19791
|
+
isOneToOne: false;
|
|
19792
|
+
referencedRelation: "uren_facturen";
|
|
18707
19793
|
referencedColumns: ["id"];
|
|
18708
19794
|
}
|
|
18709
19795
|
];
|
|
18710
19796
|
};
|
|
18711
|
-
trade_item_stock_view: {
|
|
18712
|
-
Row: {
|
|
18713
|
-
stock: number | null;
|
|
18714
|
-
trade_item_id: string | null;
|
|
18715
|
-
};
|
|
18716
|
-
Relationships: [];
|
|
18717
|
-
};
|
|
18718
19797
|
v_external_customers_exact: {
|
|
18719
19798
|
Row: {
|
|
18720
19799
|
account_number: string | null;
|
|
@@ -19125,6 +20204,19 @@ export type Database = {
|
|
|
19125
20204
|
};
|
|
19126
20205
|
Returns: undefined;
|
|
19127
20206
|
};
|
|
20207
|
+
approve_mailbox_order_proposal: {
|
|
20208
|
+
Args: {
|
|
20209
|
+
p_custom_fields: Json;
|
|
20210
|
+
p_customer_id: string;
|
|
20211
|
+
p_delivery_date: string;
|
|
20212
|
+
p_field_values?: Json;
|
|
20213
|
+
p_lines: Json;
|
|
20214
|
+
p_notes: string;
|
|
20215
|
+
p_proposal_id: string;
|
|
20216
|
+
p_reviewed_by: string;
|
|
20217
|
+
};
|
|
20218
|
+
Returns: Json;
|
|
20219
|
+
};
|
|
19128
20220
|
assign_cart_numbers: {
|
|
19129
20221
|
Args: {
|
|
19130
20222
|
p_carts: Json;
|
|
@@ -19176,6 +20268,10 @@ export type Database = {
|
|
|
19176
20268
|
};
|
|
19177
20269
|
Returns: number;
|
|
19178
20270
|
};
|
|
20271
|
+
can_manage_hours: {
|
|
20272
|
+
Args: never;
|
|
20273
|
+
Returns: boolean;
|
|
20274
|
+
};
|
|
19179
20275
|
check_offer_product_available_stock: {
|
|
19180
20276
|
Args: {
|
|
19181
20277
|
p_campaign_product_id: string;
|
|
@@ -19213,6 +20309,7 @@ export type Database = {
|
|
|
19213
20309
|
gebruiker_id: string | null;
|
|
19214
20310
|
gebruiker_naam: string;
|
|
19215
20311
|
gestart_op: string | null;
|
|
20312
|
+
herkomst: string | null;
|
|
19216
20313
|
id: string;
|
|
19217
20314
|
idempotentie_sleutel: string | null;
|
|
19218
20315
|
is_herprint: boolean;
|
|
@@ -19333,6 +20430,7 @@ export type Database = {
|
|
|
19333
20430
|
gebruiker_id: string | null;
|
|
19334
20431
|
gebruiker_naam: string;
|
|
19335
20432
|
gestart_op: string | null;
|
|
20433
|
+
herkomst: string | null;
|
|
19336
20434
|
id: string;
|
|
19337
20435
|
idempotentie_sleutel: string | null;
|
|
19338
20436
|
is_herprint: boolean;
|
|
@@ -19365,6 +20463,7 @@ export type Database = {
|
|
|
19365
20463
|
};
|
|
19366
20464
|
Returns: {
|
|
19367
20465
|
action: string;
|
|
20466
|
+
attempt_started_at: string | null;
|
|
19368
20467
|
attempts: number;
|
|
19369
20468
|
connection_id: string | null;
|
|
19370
20469
|
created_at: string;
|
|
@@ -19452,6 +20551,30 @@ export type Database = {
|
|
|
19452
20551
|
agent_naam: string;
|
|
19453
20552
|
}[];
|
|
19454
20553
|
};
|
|
20554
|
+
consume_van_inventory: {
|
|
20555
|
+
Args: {
|
|
20556
|
+
p_inventory_id: string;
|
|
20557
|
+
p_quantity: number;
|
|
20558
|
+
};
|
|
20559
|
+
Returns: {
|
|
20560
|
+
barcode: string | null;
|
|
20561
|
+
created_at: string;
|
|
20562
|
+
id: string;
|
|
20563
|
+
monteur_id: string | null;
|
|
20564
|
+
price_per_unit: number;
|
|
20565
|
+
product_name: string;
|
|
20566
|
+
quantity_current: number;
|
|
20567
|
+
quantity_min: number;
|
|
20568
|
+
unit: string;
|
|
20569
|
+
updated_at: string;
|
|
20570
|
+
};
|
|
20571
|
+
SetofOptions: {
|
|
20572
|
+
from: "*";
|
|
20573
|
+
to: "van_inventories";
|
|
20574
|
+
isOneToOne: true;
|
|
20575
|
+
isSetofReturn: false;
|
|
20576
|
+
};
|
|
20577
|
+
};
|
|
19455
20578
|
control_get_todays_carts: {
|
|
19456
20579
|
Args: never;
|
|
19457
20580
|
Returns: {
|
|
@@ -19527,7 +20650,7 @@ export type Database = {
|
|
|
19527
20650
|
Returns: string;
|
|
19528
20651
|
} | {
|
|
19529
20652
|
Args: {
|
|
19530
|
-
_feature_id
|
|
20653
|
+
_feature_id: string;
|
|
19531
20654
|
_module_id: string;
|
|
19532
20655
|
_user_id: string;
|
|
19533
20656
|
};
|
|
@@ -19578,6 +20701,13 @@ export type Database = {
|
|
|
19578
20701
|
};
|
|
19579
20702
|
Returns: string;
|
|
19580
20703
|
};
|
|
20704
|
+
employee_day_hours: {
|
|
20705
|
+
Args: {
|
|
20706
|
+
_day: string;
|
|
20707
|
+
_employee_id: string;
|
|
20708
|
+
};
|
|
20709
|
+
Returns: number;
|
|
20710
|
+
};
|
|
19581
20711
|
enqueue_cart_replan_if_unlocked: {
|
|
19582
20712
|
Args: {
|
|
19583
20713
|
p_order_id: string;
|
|
@@ -19883,12 +21013,6 @@ export type Database = {
|
|
|
19883
21013
|
Args: never;
|
|
19884
21014
|
Returns: string;
|
|
19885
21015
|
};
|
|
19886
|
-
get_work_order_tenant_id: {
|
|
19887
|
-
Args: {
|
|
19888
|
-
wo_id: string;
|
|
19889
|
-
};
|
|
19890
|
-
Returns: string;
|
|
19891
|
-
};
|
|
19892
21016
|
has_module_permission: {
|
|
19893
21017
|
Args: {
|
|
19894
21018
|
_min: string;
|
|
@@ -19908,6 +21032,46 @@ export type Database = {
|
|
|
19908
21032
|
Args: never;
|
|
19909
21033
|
Returns: boolean;
|
|
19910
21034
|
};
|
|
21035
|
+
invoice_create_from_source: {
|
|
21036
|
+
Args: {
|
|
21037
|
+
_payload?: Json;
|
|
21038
|
+
_source_id: string;
|
|
21039
|
+
_source_type: string;
|
|
21040
|
+
};
|
|
21041
|
+
Returns: Json;
|
|
21042
|
+
};
|
|
21043
|
+
invoice_get_billable_lines: {
|
|
21044
|
+
Args: {
|
|
21045
|
+
_invoice_id: string;
|
|
21046
|
+
};
|
|
21047
|
+
Returns: Json;
|
|
21048
|
+
};
|
|
21049
|
+
invoice_get_for_source: {
|
|
21050
|
+
Args: {
|
|
21051
|
+
_source_id: string;
|
|
21052
|
+
_source_type: string;
|
|
21053
|
+
};
|
|
21054
|
+
Returns: Json;
|
|
21055
|
+
};
|
|
21056
|
+
invoice_get_summary: {
|
|
21057
|
+
Args: {
|
|
21058
|
+
_invoice_id: string;
|
|
21059
|
+
};
|
|
21060
|
+
Returns: Json;
|
|
21061
|
+
};
|
|
21062
|
+
invoice_list_sources: {
|
|
21063
|
+
Args: {
|
|
21064
|
+
_limit?: number;
|
|
21065
|
+
_source_type?: string;
|
|
21066
|
+
};
|
|
21067
|
+
Returns: Json;
|
|
21068
|
+
};
|
|
21069
|
+
invoice_recalc_totals: {
|
|
21070
|
+
Args: {
|
|
21071
|
+
_invoice_id: string;
|
|
21072
|
+
};
|
|
21073
|
+
Returns: Json;
|
|
21074
|
+
};
|
|
19911
21075
|
is_authenticated: {
|
|
19912
21076
|
Args: never;
|
|
19913
21077
|
Returns: boolean;
|
|
@@ -19922,6 +21086,13 @@ export type Database = {
|
|
|
19922
21086
|
};
|
|
19923
21087
|
Returns: boolean;
|
|
19924
21088
|
};
|
|
21089
|
+
is_time_log_week_locked: {
|
|
21090
|
+
Args: {
|
|
21091
|
+
p_employee_id: string;
|
|
21092
|
+
p_start_time: string;
|
|
21093
|
+
};
|
|
21094
|
+
Returns: boolean;
|
|
21095
|
+
};
|
|
19925
21096
|
is_user_admin: {
|
|
19926
21097
|
Args: never;
|
|
19927
21098
|
Returns: boolean;
|
|
@@ -19930,12 +21101,59 @@ export type Database = {
|
|
|
19930
21101
|
Args: never;
|
|
19931
21102
|
Returns: boolean;
|
|
19932
21103
|
};
|
|
21104
|
+
itk_offerte_naar_werkbon: {
|
|
21105
|
+
Args: {
|
|
21106
|
+
_offerte_id: string;
|
|
21107
|
+
};
|
|
21108
|
+
Returns: string;
|
|
21109
|
+
};
|
|
21110
|
+
itk_offerte_restant_mandaat: {
|
|
21111
|
+
Args: {
|
|
21112
|
+
_exclude_offerte_id?: string;
|
|
21113
|
+
_werkbon_id: string;
|
|
21114
|
+
};
|
|
21115
|
+
Returns: number;
|
|
21116
|
+
};
|
|
19933
21117
|
jwt_has_role: {
|
|
19934
21118
|
Args: {
|
|
19935
21119
|
_role: Database["public"]["Enums"]["app_role"];
|
|
19936
21120
|
};
|
|
19937
21121
|
Returns: boolean;
|
|
19938
21122
|
};
|
|
21123
|
+
list_medewerkers: {
|
|
21124
|
+
Args: never;
|
|
21125
|
+
Returns: {
|
|
21126
|
+
avatar_url: string;
|
|
21127
|
+
color: string;
|
|
21128
|
+
display_name: string;
|
|
21129
|
+
email: string;
|
|
21130
|
+
hours_fri: number;
|
|
21131
|
+
hours_mon: number;
|
|
21132
|
+
hours_thu: number;
|
|
21133
|
+
hours_tue: number;
|
|
21134
|
+
hours_wed: number;
|
|
21135
|
+
id: string;
|
|
21136
|
+
is_active: boolean;
|
|
21137
|
+
leave_balance_hours: number;
|
|
21138
|
+
persnr: string;
|
|
21139
|
+
phone: string;
|
|
21140
|
+
roles: string[];
|
|
21141
|
+
}[];
|
|
21142
|
+
};
|
|
21143
|
+
list_monteur_absences: {
|
|
21144
|
+
Args: {
|
|
21145
|
+
_from: string;
|
|
21146
|
+
_to: string;
|
|
21147
|
+
};
|
|
21148
|
+
Returns: {
|
|
21149
|
+
absence_date: string;
|
|
21150
|
+
end_time: string;
|
|
21151
|
+
full_day: boolean;
|
|
21152
|
+
kind: string;
|
|
21153
|
+
monteur_id: string;
|
|
21154
|
+
start_time: string;
|
|
21155
|
+
}[];
|
|
21156
|
+
};
|
|
19939
21157
|
list_monteurs: {
|
|
19940
21158
|
Args: never;
|
|
19941
21159
|
Returns: {
|
|
@@ -20268,17 +21486,6 @@ export type Database = {
|
|
|
20268
21486
|
Returns: string;
|
|
20269
21487
|
};
|
|
20270
21488
|
logistics_emit_event: {
|
|
20271
|
-
Args: {
|
|
20272
|
-
p_event_type: string;
|
|
20273
|
-
p_idempotency_key?: string;
|
|
20274
|
-
p_order_ref: string;
|
|
20275
|
-
p_payload?: Json;
|
|
20276
|
-
p_shadow?: boolean;
|
|
20277
|
-
p_source_module: string;
|
|
20278
|
-
p_strategy_id?: string;
|
|
20279
|
-
};
|
|
20280
|
-
Returns: Json;
|
|
20281
|
-
} | {
|
|
20282
21489
|
Args: {
|
|
20283
21490
|
p_event_type: string;
|
|
20284
21491
|
p_idempotency_key?: string;
|
|
@@ -21123,6 +22330,37 @@ export type Database = {
|
|
|
21123
22330
|
};
|
|
21124
22331
|
Returns: undefined;
|
|
21125
22332
|
};
|
|
22333
|
+
quote_create_from_source: {
|
|
22334
|
+
Args: {
|
|
22335
|
+
_payload?: Json;
|
|
22336
|
+
_source_id: string;
|
|
22337
|
+
_source_type: string;
|
|
22338
|
+
};
|
|
22339
|
+
Returns: string;
|
|
22340
|
+
};
|
|
22341
|
+
quote_get_billable_lines: {
|
|
22342
|
+
Args: {
|
|
22343
|
+
_quotation_id: string;
|
|
22344
|
+
};
|
|
22345
|
+
Returns: Json;
|
|
22346
|
+
};
|
|
22347
|
+
quote_get_summary: {
|
|
22348
|
+
Args: {
|
|
22349
|
+
_quotation_id: string;
|
|
22350
|
+
};
|
|
22351
|
+
Returns: Json;
|
|
22352
|
+
};
|
|
22353
|
+
quote_list_packages: {
|
|
22354
|
+
Args: never;
|
|
22355
|
+
Returns: Json;
|
|
22356
|
+
};
|
|
22357
|
+
quote_list_sources: {
|
|
22358
|
+
Args: {
|
|
22359
|
+
_limit?: number;
|
|
22360
|
+
_source_type?: string;
|
|
22361
|
+
};
|
|
22362
|
+
Returns: Json;
|
|
22363
|
+
};
|
|
21126
22364
|
recompute_all_reserved_stock: {
|
|
21127
22365
|
Args: never;
|
|
21128
22366
|
Returns: undefined;
|
|
@@ -21176,6 +22414,12 @@ export type Database = {
|
|
|
21176
22414
|
};
|
|
21177
22415
|
Returns: boolean;
|
|
21178
22416
|
};
|
|
22417
|
+
release_stale_order_invoice_links: {
|
|
22418
|
+
Args: {
|
|
22419
|
+
_minutes?: number;
|
|
22420
|
+
};
|
|
22421
|
+
Returns: number;
|
|
22422
|
+
};
|
|
21179
22423
|
reorder_customer_price_groups: {
|
|
21180
22424
|
Args: {
|
|
21181
22425
|
_ids: string[];
|
|
@@ -21614,6 +22858,16 @@ export type Database = {
|
|
|
21614
22858
|
};
|
|
21615
22859
|
Returns: string[];
|
|
21616
22860
|
};
|
|
22861
|
+
switch_time_log: {
|
|
22862
|
+
Args: {
|
|
22863
|
+
p_employee_id: string;
|
|
22864
|
+
p_start_lat?: number;
|
|
22865
|
+
p_start_lng?: number;
|
|
22866
|
+
p_type: string;
|
|
22867
|
+
p_work_order_id?: string;
|
|
22868
|
+
};
|
|
22869
|
+
Returns: Json;
|
|
22870
|
+
};
|
|
21617
22871
|
sync_all_layer_stocks: {
|
|
21618
22872
|
Args: never;
|
|
21619
22873
|
Returns: undefined;
|
|
@@ -21648,6 +22902,12 @@ export type Database = {
|
|
|
21648
22902
|
};
|
|
21649
22903
|
Returns: undefined;
|
|
21650
22904
|
};
|
|
22905
|
+
sync_sick_time_off: {
|
|
22906
|
+
Args: {
|
|
22907
|
+
_period_id: string;
|
|
22908
|
+
};
|
|
22909
|
+
Returns: number;
|
|
22910
|
+
};
|
|
21651
22911
|
trade_item_stock_duplicates: {
|
|
21652
22912
|
Args: never;
|
|
21653
22913
|
Returns: {
|
|
@@ -21664,6 +22924,38 @@ export type Database = {
|
|
|
21664
22924
|
};
|
|
21665
22925
|
Returns: boolean;
|
|
21666
22926
|
};
|
|
22927
|
+
twinfield_cron_lock_acquire: {
|
|
22928
|
+
Args: {
|
|
22929
|
+
_job_name: string;
|
|
22930
|
+
_stale_seconds?: number;
|
|
22931
|
+
};
|
|
22932
|
+
Returns: boolean;
|
|
22933
|
+
};
|
|
22934
|
+
twinfield_cron_lock_release: {
|
|
22935
|
+
Args: {
|
|
22936
|
+
_error?: string;
|
|
22937
|
+
_job_name: string;
|
|
22938
|
+
};
|
|
22939
|
+
Returns: undefined;
|
|
22940
|
+
};
|
|
22941
|
+
twinfield_deactivate_connection: {
|
|
22942
|
+
Args: {
|
|
22943
|
+
p_connection_id: string;
|
|
22944
|
+
p_user_id: string;
|
|
22945
|
+
};
|
|
22946
|
+
Returns: Json;
|
|
22947
|
+
};
|
|
22948
|
+
twinfield_handle_administration_change: {
|
|
22949
|
+
Args: {
|
|
22950
|
+
_administration_code: string;
|
|
22951
|
+
_user_id: string;
|
|
22952
|
+
};
|
|
22953
|
+
Returns: undefined;
|
|
22954
|
+
};
|
|
22955
|
+
twinfield_prune_push_queue: {
|
|
22956
|
+
Args: never;
|
|
22957
|
+
Returns: number;
|
|
22958
|
+
};
|
|
21667
22959
|
twinfield_register_cron: {
|
|
21668
22960
|
Args: {
|
|
21669
22961
|
apikey?: string;
|
|
@@ -21679,10 +22971,11 @@ export type Database = {
|
|
|
21679
22971
|
p_company_name?: string;
|
|
21680
22972
|
p_environment: string;
|
|
21681
22973
|
p_office_code?: string;
|
|
22974
|
+
p_reset_sync?: boolean;
|
|
21682
22975
|
p_status?: string;
|
|
21683
22976
|
p_user_id: string;
|
|
21684
22977
|
};
|
|
21685
|
-
Returns:
|
|
22978
|
+
Returns: Json;
|
|
21686
22979
|
};
|
|
21687
22980
|
upsert_auto_fulfillment_log: {
|
|
21688
22981
|
Args: {
|
|
@@ -21703,11 +22996,31 @@ export type Database = {
|
|
|
21703
22996
|
Args: never;
|
|
21704
22997
|
Returns: string;
|
|
21705
22998
|
};
|
|
22999
|
+
wo_create_from_source: {
|
|
23000
|
+
Args: {
|
|
23001
|
+
_payload?: Json;
|
|
23002
|
+
_source_id: string;
|
|
23003
|
+
_source_type: string;
|
|
23004
|
+
};
|
|
23005
|
+
Returns: string;
|
|
23006
|
+
};
|
|
23007
|
+
wo_get_billable_lines: {
|
|
23008
|
+
Args: {
|
|
23009
|
+
_work_order_id: string;
|
|
23010
|
+
};
|
|
23011
|
+
Returns: Json;
|
|
23012
|
+
};
|
|
23013
|
+
wo_get_summary: {
|
|
23014
|
+
Args: {
|
|
23015
|
+
_work_order_id: string;
|
|
23016
|
+
};
|
|
23017
|
+
Returns: Json;
|
|
23018
|
+
};
|
|
21706
23019
|
};
|
|
21707
23020
|
Enums: {
|
|
21708
23021
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
21709
23022
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
21710
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
23023
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
21711
23024
|
doc_orientation: "portrait" | "landscape";
|
|
21712
23025
|
exact_env: "staging" | "live";
|
|
21713
23026
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -21778,7 +23091,7 @@ export declare const Constants: {
|
|
|
21778
23091
|
readonly Enums: {
|
|
21779
23092
|
readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
|
|
21780
23093
|
readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie"];
|
|
21781
|
-
readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon"];
|
|
23094
|
+
readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon", "veilingbon", "afleverbrief", "veilingbrief"];
|
|
21782
23095
|
readonly doc_orientation: readonly ["portrait", "landscape"];
|
|
21783
23096
|
readonly exact_env: readonly ["staging", "live"];
|
|
21784
23097
|
readonly exact_push_status: readonly ["pending", "sent", "error"];
|