@flowselections/logistiek-engine 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1134 -189
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1134 -189
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/moduleClient.d.ts +1134 -189
- package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1161 -185
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/floridayDocuments.functions.d.ts +3162 -327
- package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
- package/dist-lib/lib/floridayDocuments.server.d.ts +14 -1
- package/dist-lib/lib/floridayDocuments.server.d.ts.map +1 -1
- package/dist-lib/lib/floridayDocuments.server.js +1 -1
- package/dist-lib/lib/floridayPush.functions.d.ts +1134 -189
- package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
- package/dist-lib/lib/floridayPush.server.d.ts +27 -21
- package/dist-lib/lib/floridayPush.server.d.ts.map +1 -1
- package/dist-lib/lib/floridayPush.server.js +160 -43
- package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +5270 -545
- package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +2108 -218
- package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1134 -189
- package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2818,6 +2818,44 @@ export type Database = {
|
|
|
2818
2818
|
};
|
|
2819
2819
|
Relationships: [];
|
|
2820
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
|
+
};
|
|
2821
2859
|
document_formaat_printers: {
|
|
2822
2860
|
Row: {
|
|
2823
2861
|
created_at: string;
|
|
@@ -3108,6 +3146,7 @@ export type Database = {
|
|
|
3108
3146
|
Row: {
|
|
3109
3147
|
actief: boolean;
|
|
3110
3148
|
breedte_mm: number;
|
|
3149
|
+
bron: string;
|
|
3111
3150
|
config: Json;
|
|
3112
3151
|
created_at: string;
|
|
3113
3152
|
created_by: string | null;
|
|
@@ -3125,12 +3164,14 @@ export type Database = {
|
|
|
3125
3164
|
orientatie: Database["public"]["Enums"]["doc_orientation"];
|
|
3126
3165
|
page_settings: Json;
|
|
3127
3166
|
papierformaat: string;
|
|
3167
|
+
systeem: boolean;
|
|
3128
3168
|
thumbnail_url: string | null;
|
|
3129
3169
|
updated_at: string;
|
|
3130
3170
|
};
|
|
3131
3171
|
Insert: {
|
|
3132
3172
|
actief?: boolean;
|
|
3133
3173
|
breedte_mm?: number;
|
|
3174
|
+
bron?: string;
|
|
3134
3175
|
config?: Json;
|
|
3135
3176
|
created_at?: string;
|
|
3136
3177
|
created_by?: string | null;
|
|
@@ -3148,12 +3189,14 @@ export type Database = {
|
|
|
3148
3189
|
orientatie?: Database["public"]["Enums"]["doc_orientation"];
|
|
3149
3190
|
page_settings?: Json;
|
|
3150
3191
|
papierformaat?: string;
|
|
3192
|
+
systeem?: boolean;
|
|
3151
3193
|
thumbnail_url?: string | null;
|
|
3152
3194
|
updated_at?: string;
|
|
3153
3195
|
};
|
|
3154
3196
|
Update: {
|
|
3155
3197
|
actief?: boolean;
|
|
3156
3198
|
breedte_mm?: number;
|
|
3199
|
+
bron?: string;
|
|
3157
3200
|
config?: Json;
|
|
3158
3201
|
created_at?: string;
|
|
3159
3202
|
created_by?: string | null;
|
|
@@ -3171,11 +3214,50 @@ export type Database = {
|
|
|
3171
3214
|
orientatie?: Database["public"]["Enums"]["doc_orientation"];
|
|
3172
3215
|
page_settings?: Json;
|
|
3173
3216
|
papierformaat?: string;
|
|
3217
|
+
systeem?: boolean;
|
|
3174
3218
|
thumbnail_url?: string | null;
|
|
3175
3219
|
updated_at?: string;
|
|
3176
3220
|
};
|
|
3177
3221
|
Relationships: [];
|
|
3178
3222
|
};
|
|
3223
|
+
document_werkplek_printers: {
|
|
3224
|
+
Row: {
|
|
3225
|
+
created_at: string;
|
|
3226
|
+
documenttype: string;
|
|
3227
|
+
id: string;
|
|
3228
|
+
papierformaat: string | null;
|
|
3229
|
+
printer_id: string | null;
|
|
3230
|
+
updated_at: string;
|
|
3231
|
+
werkplek: string;
|
|
3232
|
+
};
|
|
3233
|
+
Insert: {
|
|
3234
|
+
created_at?: string;
|
|
3235
|
+
documenttype: string;
|
|
3236
|
+
id?: string;
|
|
3237
|
+
papierformaat?: string | null;
|
|
3238
|
+
printer_id?: string | null;
|
|
3239
|
+
updated_at?: string;
|
|
3240
|
+
werkplek: string;
|
|
3241
|
+
};
|
|
3242
|
+
Update: {
|
|
3243
|
+
created_at?: string;
|
|
3244
|
+
documenttype?: string;
|
|
3245
|
+
id?: string;
|
|
3246
|
+
papierformaat?: string | null;
|
|
3247
|
+
printer_id?: string | null;
|
|
3248
|
+
updated_at?: string;
|
|
3249
|
+
werkplek?: string;
|
|
3250
|
+
};
|
|
3251
|
+
Relationships: [
|
|
3252
|
+
{
|
|
3253
|
+
foreignKeyName: "document_werkplek_printers_printer_id_fkey";
|
|
3254
|
+
columns: ["printer_id"];
|
|
3255
|
+
isOneToOne: false;
|
|
3256
|
+
referencedRelation: "printers";
|
|
3257
|
+
referencedColumns: ["id"];
|
|
3258
|
+
}
|
|
3259
|
+
];
|
|
3260
|
+
};
|
|
3179
3261
|
email_auth_connections: {
|
|
3180
3262
|
Row: {
|
|
3181
3263
|
access_token_encrypted: string | null;
|
|
@@ -7542,8 +7624,66 @@ export type Database = {
|
|
|
7542
7624
|
};
|
|
7543
7625
|
Relationships: [];
|
|
7544
7626
|
};
|
|
7627
|
+
invoice_items: {
|
|
7628
|
+
Row: {
|
|
7629
|
+
created_at: string;
|
|
7630
|
+
description: string;
|
|
7631
|
+
id: string;
|
|
7632
|
+
invoice_id: string;
|
|
7633
|
+
kind: string;
|
|
7634
|
+
quantity: number;
|
|
7635
|
+
sort_order: number;
|
|
7636
|
+
source_line_ref: string | null;
|
|
7637
|
+
total_cents: number;
|
|
7638
|
+
unit: string;
|
|
7639
|
+
unit_price_cents: number;
|
|
7640
|
+
};
|
|
7641
|
+
Insert: {
|
|
7642
|
+
created_at?: string;
|
|
7643
|
+
description?: string;
|
|
7644
|
+
id?: string;
|
|
7645
|
+
invoice_id: string;
|
|
7646
|
+
kind?: string;
|
|
7647
|
+
quantity?: number;
|
|
7648
|
+
sort_order?: number;
|
|
7649
|
+
source_line_ref?: string | null;
|
|
7650
|
+
total_cents?: number;
|
|
7651
|
+
unit?: string;
|
|
7652
|
+
unit_price_cents?: number;
|
|
7653
|
+
};
|
|
7654
|
+
Update: {
|
|
7655
|
+
created_at?: string;
|
|
7656
|
+
description?: string;
|
|
7657
|
+
id?: string;
|
|
7658
|
+
invoice_id?: string;
|
|
7659
|
+
kind?: string;
|
|
7660
|
+
quantity?: number;
|
|
7661
|
+
sort_order?: number;
|
|
7662
|
+
source_line_ref?: string | null;
|
|
7663
|
+
total_cents?: number;
|
|
7664
|
+
unit?: string;
|
|
7665
|
+
unit_price_cents?: number;
|
|
7666
|
+
};
|
|
7667
|
+
Relationships: [
|
|
7668
|
+
{
|
|
7669
|
+
foreignKeyName: "invoice_items_invoice_id_fkey";
|
|
7670
|
+
columns: ["invoice_id"];
|
|
7671
|
+
isOneToOne: false;
|
|
7672
|
+
referencedRelation: "invoices";
|
|
7673
|
+
referencedColumns: ["id"];
|
|
7674
|
+
},
|
|
7675
|
+
{
|
|
7676
|
+
foreignKeyName: "invoice_items_invoice_id_fkey";
|
|
7677
|
+
columns: ["invoice_id"];
|
|
7678
|
+
isOneToOne: false;
|
|
7679
|
+
referencedRelation: "uren_facturen";
|
|
7680
|
+
referencedColumns: ["id"];
|
|
7681
|
+
}
|
|
7682
|
+
];
|
|
7683
|
+
};
|
|
7545
7684
|
invoice_post_idempotency: {
|
|
7546
7685
|
Row: {
|
|
7686
|
+
administration_code: string;
|
|
7547
7687
|
client_request_id: string;
|
|
7548
7688
|
completed_at: string | null;
|
|
7549
7689
|
created_at: string;
|
|
@@ -7553,6 +7693,7 @@ export type Database = {
|
|
|
7553
7693
|
user_id: string;
|
|
7554
7694
|
};
|
|
7555
7695
|
Insert: {
|
|
7696
|
+
administration_code?: string;
|
|
7556
7697
|
client_request_id: string;
|
|
7557
7698
|
completed_at?: string | null;
|
|
7558
7699
|
created_at?: string;
|
|
@@ -7562,6 +7703,7 @@ export type Database = {
|
|
|
7562
7703
|
user_id: string;
|
|
7563
7704
|
};
|
|
7564
7705
|
Update: {
|
|
7706
|
+
administration_code?: string;
|
|
7565
7707
|
client_request_id?: string;
|
|
7566
7708
|
completed_at?: string | null;
|
|
7567
7709
|
created_at?: string;
|
|
@@ -7772,6 +7914,77 @@ export type Database = {
|
|
|
7772
7914
|
};
|
|
7773
7915
|
Relationships: [];
|
|
7774
7916
|
};
|
|
7917
|
+
invoices: {
|
|
7918
|
+
Row: {
|
|
7919
|
+
created_at: string;
|
|
7920
|
+
created_by: string | null;
|
|
7921
|
+
customer_id: string | null;
|
|
7922
|
+
customer_name: string | null;
|
|
7923
|
+
due_date: string | null;
|
|
7924
|
+
id: string;
|
|
7925
|
+
invoice_date: string;
|
|
7926
|
+
invoice_number: string | null;
|
|
7927
|
+
note: string | null;
|
|
7928
|
+
source_number: string | null;
|
|
7929
|
+
source_ref: string | null;
|
|
7930
|
+
source_type: string;
|
|
7931
|
+
status: string;
|
|
7932
|
+
subtotal_cents: number;
|
|
7933
|
+
total_cents: number;
|
|
7934
|
+
updated_at: string;
|
|
7935
|
+
vat_cents: number;
|
|
7936
|
+
vat_rate: number;
|
|
7937
|
+
};
|
|
7938
|
+
Insert: {
|
|
7939
|
+
created_at?: string;
|
|
7940
|
+
created_by?: string | null;
|
|
7941
|
+
customer_id?: string | null;
|
|
7942
|
+
customer_name?: string | null;
|
|
7943
|
+
due_date?: string | null;
|
|
7944
|
+
id?: string;
|
|
7945
|
+
invoice_date?: string;
|
|
7946
|
+
invoice_number?: string | null;
|
|
7947
|
+
note?: string | null;
|
|
7948
|
+
source_number?: string | null;
|
|
7949
|
+
source_ref?: string | null;
|
|
7950
|
+
source_type?: string;
|
|
7951
|
+
status?: string;
|
|
7952
|
+
subtotal_cents?: number;
|
|
7953
|
+
total_cents?: number;
|
|
7954
|
+
updated_at?: string;
|
|
7955
|
+
vat_cents?: number;
|
|
7956
|
+
vat_rate?: number;
|
|
7957
|
+
};
|
|
7958
|
+
Update: {
|
|
7959
|
+
created_at?: string;
|
|
7960
|
+
created_by?: string | null;
|
|
7961
|
+
customer_id?: string | null;
|
|
7962
|
+
customer_name?: string | null;
|
|
7963
|
+
due_date?: string | null;
|
|
7964
|
+
id?: string;
|
|
7965
|
+
invoice_date?: string;
|
|
7966
|
+
invoice_number?: string | null;
|
|
7967
|
+
note?: string | null;
|
|
7968
|
+
source_number?: string | null;
|
|
7969
|
+
source_ref?: string | null;
|
|
7970
|
+
source_type?: string;
|
|
7971
|
+
status?: string;
|
|
7972
|
+
subtotal_cents?: number;
|
|
7973
|
+
total_cents?: number;
|
|
7974
|
+
updated_at?: string;
|
|
7975
|
+
vat_cents?: number;
|
|
7976
|
+
vat_rate?: number;
|
|
7977
|
+
};
|
|
7978
|
+
Relationships: [
|
|
7979
|
+
{
|
|
7980
|
+
foreignKeyName: "invoices_customer_id_fkey";
|
|
7981
|
+
columns: ["customer_id"];
|
|
7982
|
+
isOneToOne: false;
|
|
7983
|
+
referencedRelation: "itk_customers";
|
|
7984
|
+
referencedColumns: ["id"];
|
|
7985
|
+
}
|
|
7986
|
+
];
|
|
7987
|
+
};
|
|
7775
7988
|
itk_contact_persons: {
|
|
7776
7989
|
Row: {
|
|
7777
7990
|
created_at: string;
|
|
@@ -7976,100 +8189,363 @@ export type Database = {
|
|
|
7976
8189
|
};
|
|
7977
8190
|
Relationships: [];
|
|
7978
8191
|
};
|
|
7979
|
-
|
|
8192
|
+
itk_offerte_events: {
|
|
7980
8193
|
Row: {
|
|
7981
|
-
city: string | null;
|
|
7982
8194
|
created_at: string;
|
|
7983
|
-
|
|
8195
|
+
event_type: string;
|
|
7984
8196
|
id: string;
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
postcode: string | null;
|
|
7990
|
-
street: string | null;
|
|
7991
|
-
updated_at: string;
|
|
8197
|
+
metadata: Json;
|
|
8198
|
+
offerte_id: string;
|
|
8199
|
+
omschrijving: string | null;
|
|
8200
|
+
user_id: string | null;
|
|
7992
8201
|
};
|
|
7993
8202
|
Insert: {
|
|
7994
|
-
city?: string | null;
|
|
7995
8203
|
created_at?: string;
|
|
7996
|
-
|
|
8204
|
+
event_type: string;
|
|
7997
8205
|
id?: string;
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
postcode?: string | null;
|
|
8003
|
-
street?: string | null;
|
|
8004
|
-
updated_at?: string;
|
|
8206
|
+
metadata?: Json;
|
|
8207
|
+
offerte_id: string;
|
|
8208
|
+
omschrijving?: string | null;
|
|
8209
|
+
user_id?: string | null;
|
|
8005
8210
|
};
|
|
8006
8211
|
Update: {
|
|
8007
|
-
city?: string | null;
|
|
8008
8212
|
created_at?: string;
|
|
8009
|
-
|
|
8213
|
+
event_type?: string;
|
|
8010
8214
|
id?: string;
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
postcode?: string | null;
|
|
8016
|
-
street?: string | null;
|
|
8017
|
-
updated_at?: string;
|
|
8215
|
+
metadata?: Json;
|
|
8216
|
+
offerte_id?: string;
|
|
8217
|
+
omschrijving?: string | null;
|
|
8218
|
+
user_id?: string | null;
|
|
8018
8219
|
};
|
|
8019
8220
|
Relationships: [
|
|
8020
8221
|
{
|
|
8021
|
-
foreignKeyName: "
|
|
8022
|
-
columns: ["
|
|
8222
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
8223
|
+
columns: ["offerte_id"];
|
|
8023
8224
|
isOneToOne: false;
|
|
8024
|
-
referencedRelation: "
|
|
8225
|
+
referencedRelation: "itk_offertes";
|
|
8025
8226
|
referencedColumns: ["id"];
|
|
8026
8227
|
}
|
|
8027
8228
|
];
|
|
8028
8229
|
};
|
|
8029
|
-
|
|
8230
|
+
itk_offerte_regels: {
|
|
8030
8231
|
Row: {
|
|
8031
|
-
bestand_url: string;
|
|
8032
|
-
bestandsgrootte: number;
|
|
8033
|
-
bestandspad: string | null;
|
|
8034
|
-
bestandstype: string;
|
|
8035
|
-
breedte: number;
|
|
8036
|
-
categorie: string;
|
|
8037
8232
|
created_at: string;
|
|
8038
|
-
hash: string | null;
|
|
8039
|
-
hoogte: number;
|
|
8040
8233
|
id: string;
|
|
8041
|
-
|
|
8042
|
-
|
|
8234
|
+
line_total_cents: number;
|
|
8235
|
+
offerte_id: string;
|
|
8043
8236
|
omschrijving: string;
|
|
8044
|
-
|
|
8237
|
+
package_id: string | null;
|
|
8238
|
+
quantity: number;
|
|
8239
|
+
sort_order: number;
|
|
8240
|
+
source: string;
|
|
8241
|
+
unit_price_cents: number;
|
|
8045
8242
|
updated_at: string;
|
|
8046
8243
|
};
|
|
8047
8244
|
Insert: {
|
|
8048
|
-
bestand_url: string;
|
|
8049
|
-
bestandsgrootte?: number;
|
|
8050
|
-
bestandspad?: string | null;
|
|
8051
|
-
bestandstype?: string;
|
|
8052
|
-
breedte?: number;
|
|
8053
|
-
categorie?: string;
|
|
8054
8245
|
created_at?: string;
|
|
8055
|
-
hash?: string | null;
|
|
8056
|
-
hoogte?: number;
|
|
8057
8246
|
id?: string;
|
|
8058
|
-
|
|
8059
|
-
|
|
8247
|
+
line_total_cents?: number;
|
|
8248
|
+
offerte_id: string;
|
|
8060
8249
|
omschrijving?: string;
|
|
8061
|
-
|
|
8250
|
+
package_id?: string | null;
|
|
8251
|
+
quantity?: number;
|
|
8252
|
+
sort_order?: number;
|
|
8253
|
+
source?: string;
|
|
8254
|
+
unit_price_cents?: number;
|
|
8062
8255
|
updated_at?: string;
|
|
8063
8256
|
};
|
|
8064
8257
|
Update: {
|
|
8065
|
-
bestand_url?: string;
|
|
8066
|
-
bestandsgrootte?: number;
|
|
8067
|
-
bestandspad?: string | null;
|
|
8068
|
-
bestandstype?: string;
|
|
8069
|
-
breedte?: number;
|
|
8070
|
-
categorie?: string;
|
|
8071
8258
|
created_at?: string;
|
|
8072
|
-
|
|
8259
|
+
id?: string;
|
|
8260
|
+
line_total_cents?: number;
|
|
8261
|
+
offerte_id?: string;
|
|
8262
|
+
omschrijving?: string;
|
|
8263
|
+
package_id?: string | null;
|
|
8264
|
+
quantity?: number;
|
|
8265
|
+
sort_order?: number;
|
|
8266
|
+
source?: string;
|
|
8267
|
+
unit_price_cents?: number;
|
|
8268
|
+
updated_at?: string;
|
|
8269
|
+
};
|
|
8270
|
+
Relationships: [
|
|
8271
|
+
{
|
|
8272
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
8273
|
+
columns: ["offerte_id"];
|
|
8274
|
+
isOneToOne: false;
|
|
8275
|
+
referencedRelation: "itk_offertes";
|
|
8276
|
+
referencedColumns: ["id"];
|
|
8277
|
+
},
|
|
8278
|
+
{
|
|
8279
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
8280
|
+
columns: ["package_id"];
|
|
8281
|
+
isOneToOne: false;
|
|
8282
|
+
referencedRelation: "werkbon_packages";
|
|
8283
|
+
referencedColumns: ["id"];
|
|
8284
|
+
}
|
|
8285
|
+
];
|
|
8286
|
+
};
|
|
8287
|
+
itk_offerte_settings: {
|
|
8288
|
+
Row: {
|
|
8289
|
+
auto_convert_binnen_mandaat: boolean;
|
|
8290
|
+
created_at: string;
|
|
8291
|
+
default_geldigheid_dagen: number;
|
|
8292
|
+
default_vat_rate: number;
|
|
8293
|
+
id: string;
|
|
8294
|
+
singleton: boolean;
|
|
8295
|
+
updated_at: string;
|
|
8296
|
+
};
|
|
8297
|
+
Insert: {
|
|
8298
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
8299
|
+
created_at?: string;
|
|
8300
|
+
default_geldigheid_dagen?: number;
|
|
8301
|
+
default_vat_rate?: number;
|
|
8302
|
+
id?: string;
|
|
8303
|
+
singleton?: boolean;
|
|
8304
|
+
updated_at?: string;
|
|
8305
|
+
};
|
|
8306
|
+
Update: {
|
|
8307
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
8308
|
+
created_at?: string;
|
|
8309
|
+
default_geldigheid_dagen?: number;
|
|
8310
|
+
default_vat_rate?: number;
|
|
8311
|
+
id?: string;
|
|
8312
|
+
singleton?: boolean;
|
|
8313
|
+
updated_at?: string;
|
|
8314
|
+
};
|
|
8315
|
+
Relationships: [];
|
|
8316
|
+
};
|
|
8317
|
+
itk_offertes: {
|
|
8318
|
+
Row: {
|
|
8319
|
+
ai_generated: boolean;
|
|
8320
|
+
approved_at: string | null;
|
|
8321
|
+
binnen_mandaat: boolean;
|
|
8322
|
+
contact_id: string | null;
|
|
8323
|
+
converted_at: string | null;
|
|
8324
|
+
created_at: string;
|
|
8325
|
+
created_by: string | null;
|
|
8326
|
+
customer_id: string | null;
|
|
8327
|
+
follow_up_werkbon_id: string | null;
|
|
8328
|
+
id: string;
|
|
8329
|
+
jaar: number;
|
|
8330
|
+
mandaat_restant_cents: number;
|
|
8331
|
+
notities: string | null;
|
|
8332
|
+
offerte_number: string | null;
|
|
8333
|
+
omschrijving: string;
|
|
8334
|
+
rejected_at: string | null;
|
|
8335
|
+
sent_at: string | null;
|
|
8336
|
+
source_number: string | null;
|
|
8337
|
+
source_ref: string | null;
|
|
8338
|
+
source_type: string;
|
|
8339
|
+
status: string;
|
|
8340
|
+
subtotal_cents: number;
|
|
8341
|
+
total_cents: number;
|
|
8342
|
+
updated_at: string;
|
|
8343
|
+
valid_until: string | null;
|
|
8344
|
+
vat_cents: number;
|
|
8345
|
+
vat_rate: number;
|
|
8346
|
+
viewed_at: string | null;
|
|
8347
|
+
volgnummer: number | null;
|
|
8348
|
+
werkbon_id: string | null;
|
|
8349
|
+
work_location_id: string | null;
|
|
8350
|
+
};
|
|
8351
|
+
Insert: {
|
|
8352
|
+
ai_generated?: boolean;
|
|
8353
|
+
approved_at?: string | null;
|
|
8354
|
+
binnen_mandaat?: boolean;
|
|
8355
|
+
contact_id?: string | null;
|
|
8356
|
+
converted_at?: string | null;
|
|
8357
|
+
created_at?: string;
|
|
8358
|
+
created_by?: string | null;
|
|
8359
|
+
customer_id?: string | null;
|
|
8360
|
+
follow_up_werkbon_id?: string | null;
|
|
8361
|
+
id?: string;
|
|
8362
|
+
jaar?: number;
|
|
8363
|
+
mandaat_restant_cents?: number;
|
|
8364
|
+
notities?: string | null;
|
|
8365
|
+
offerte_number?: string | null;
|
|
8366
|
+
omschrijving?: string;
|
|
8367
|
+
rejected_at?: string | null;
|
|
8368
|
+
sent_at?: string | null;
|
|
8369
|
+
source_number?: string | null;
|
|
8370
|
+
source_ref?: string | null;
|
|
8371
|
+
source_type?: string;
|
|
8372
|
+
status?: string;
|
|
8373
|
+
subtotal_cents?: number;
|
|
8374
|
+
total_cents?: number;
|
|
8375
|
+
updated_at?: string;
|
|
8376
|
+
valid_until?: string | null;
|
|
8377
|
+
vat_cents?: number;
|
|
8378
|
+
vat_rate?: number;
|
|
8379
|
+
viewed_at?: string | null;
|
|
8380
|
+
volgnummer?: number | null;
|
|
8381
|
+
werkbon_id?: string | null;
|
|
8382
|
+
work_location_id?: string | null;
|
|
8383
|
+
};
|
|
8384
|
+
Update: {
|
|
8385
|
+
ai_generated?: boolean;
|
|
8386
|
+
approved_at?: string | null;
|
|
8387
|
+
binnen_mandaat?: boolean;
|
|
8388
|
+
contact_id?: string | null;
|
|
8389
|
+
converted_at?: string | null;
|
|
8390
|
+
created_at?: string;
|
|
8391
|
+
created_by?: string | null;
|
|
8392
|
+
customer_id?: string | null;
|
|
8393
|
+
follow_up_werkbon_id?: string | null;
|
|
8394
|
+
id?: string;
|
|
8395
|
+
jaar?: number;
|
|
8396
|
+
mandaat_restant_cents?: number;
|
|
8397
|
+
notities?: string | null;
|
|
8398
|
+
offerte_number?: string | null;
|
|
8399
|
+
omschrijving?: string;
|
|
8400
|
+
rejected_at?: string | null;
|
|
8401
|
+
sent_at?: string | null;
|
|
8402
|
+
source_number?: string | null;
|
|
8403
|
+
source_ref?: string | null;
|
|
8404
|
+
source_type?: string;
|
|
8405
|
+
status?: string;
|
|
8406
|
+
subtotal_cents?: number;
|
|
8407
|
+
total_cents?: number;
|
|
8408
|
+
updated_at?: string;
|
|
8409
|
+
valid_until?: string | null;
|
|
8410
|
+
vat_cents?: number;
|
|
8411
|
+
vat_rate?: number;
|
|
8412
|
+
viewed_at?: string | null;
|
|
8413
|
+
volgnummer?: number | null;
|
|
8414
|
+
werkbon_id?: string | null;
|
|
8415
|
+
work_location_id?: string | null;
|
|
8416
|
+
};
|
|
8417
|
+
Relationships: [
|
|
8418
|
+
{
|
|
8419
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
8420
|
+
columns: ["contact_id"];
|
|
8421
|
+
isOneToOne: false;
|
|
8422
|
+
referencedRelation: "itk_contact_persons";
|
|
8423
|
+
referencedColumns: ["id"];
|
|
8424
|
+
},
|
|
8425
|
+
{
|
|
8426
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
8427
|
+
columns: ["customer_id"];
|
|
8428
|
+
isOneToOne: false;
|
|
8429
|
+
referencedRelation: "itk_customers";
|
|
8430
|
+
referencedColumns: ["id"];
|
|
8431
|
+
},
|
|
8432
|
+
{
|
|
8433
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
8434
|
+
columns: ["follow_up_werkbon_id"];
|
|
8435
|
+
isOneToOne: false;
|
|
8436
|
+
referencedRelation: "werkbonnen";
|
|
8437
|
+
referencedColumns: ["id"];
|
|
8438
|
+
},
|
|
8439
|
+
{
|
|
8440
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
8441
|
+
columns: ["werkbon_id"];
|
|
8442
|
+
isOneToOne: false;
|
|
8443
|
+
referencedRelation: "werkbonnen";
|
|
8444
|
+
referencedColumns: ["id"];
|
|
8445
|
+
},
|
|
8446
|
+
{
|
|
8447
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
8448
|
+
columns: ["work_location_id"];
|
|
8449
|
+
isOneToOne: false;
|
|
8450
|
+
referencedRelation: "itk_work_locations";
|
|
8451
|
+
referencedColumns: ["id"];
|
|
8452
|
+
}
|
|
8453
|
+
];
|
|
8454
|
+
};
|
|
8455
|
+
itk_work_locations: {
|
|
8456
|
+
Row: {
|
|
8457
|
+
city: string | null;
|
|
8458
|
+
created_at: string;
|
|
8459
|
+
customer_id: string;
|
|
8460
|
+
id: string;
|
|
8461
|
+
instructions: string | null;
|
|
8462
|
+
label: string;
|
|
8463
|
+
latitude: number | null;
|
|
8464
|
+
longitude: number | null;
|
|
8465
|
+
postcode: string | null;
|
|
8466
|
+
street: string | null;
|
|
8467
|
+
updated_at: string;
|
|
8468
|
+
};
|
|
8469
|
+
Insert: {
|
|
8470
|
+
city?: string | null;
|
|
8471
|
+
created_at?: string;
|
|
8472
|
+
customer_id: string;
|
|
8473
|
+
id?: string;
|
|
8474
|
+
instructions?: string | null;
|
|
8475
|
+
label: string;
|
|
8476
|
+
latitude?: number | null;
|
|
8477
|
+
longitude?: number | null;
|
|
8478
|
+
postcode?: string | null;
|
|
8479
|
+
street?: string | null;
|
|
8480
|
+
updated_at?: string;
|
|
8481
|
+
};
|
|
8482
|
+
Update: {
|
|
8483
|
+
city?: string | null;
|
|
8484
|
+
created_at?: string;
|
|
8485
|
+
customer_id?: string;
|
|
8486
|
+
id?: string;
|
|
8487
|
+
instructions?: string | null;
|
|
8488
|
+
label?: string;
|
|
8489
|
+
latitude?: number | null;
|
|
8490
|
+
longitude?: number | null;
|
|
8491
|
+
postcode?: string | null;
|
|
8492
|
+
street?: string | null;
|
|
8493
|
+
updated_at?: string;
|
|
8494
|
+
};
|
|
8495
|
+
Relationships: [
|
|
8496
|
+
{
|
|
8497
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
8498
|
+
columns: ["customer_id"];
|
|
8499
|
+
isOneToOne: false;
|
|
8500
|
+
referencedRelation: "itk_customers";
|
|
8501
|
+
referencedColumns: ["id"];
|
|
8502
|
+
}
|
|
8503
|
+
];
|
|
8504
|
+
};
|
|
8505
|
+
layout_logos: {
|
|
8506
|
+
Row: {
|
|
8507
|
+
bestand_url: string;
|
|
8508
|
+
bestandsgrootte: number;
|
|
8509
|
+
bestandspad: string | null;
|
|
8510
|
+
bestandstype: string;
|
|
8511
|
+
breedte: number;
|
|
8512
|
+
categorie: string;
|
|
8513
|
+
created_at: string;
|
|
8514
|
+
hash: string | null;
|
|
8515
|
+
hoogte: number;
|
|
8516
|
+
id: string;
|
|
8517
|
+
is_standaard: boolean;
|
|
8518
|
+
naam: string;
|
|
8519
|
+
omschrijving: string;
|
|
8520
|
+
transparant: boolean;
|
|
8521
|
+
updated_at: string;
|
|
8522
|
+
};
|
|
8523
|
+
Insert: {
|
|
8524
|
+
bestand_url: string;
|
|
8525
|
+
bestandsgrootte?: number;
|
|
8526
|
+
bestandspad?: string | null;
|
|
8527
|
+
bestandstype?: string;
|
|
8528
|
+
breedte?: number;
|
|
8529
|
+
categorie?: string;
|
|
8530
|
+
created_at?: string;
|
|
8531
|
+
hash?: string | null;
|
|
8532
|
+
hoogte?: number;
|
|
8533
|
+
id?: string;
|
|
8534
|
+
is_standaard?: boolean;
|
|
8535
|
+
naam: string;
|
|
8536
|
+
omschrijving?: string;
|
|
8537
|
+
transparant?: boolean;
|
|
8538
|
+
updated_at?: string;
|
|
8539
|
+
};
|
|
8540
|
+
Update: {
|
|
8541
|
+
bestand_url?: string;
|
|
8542
|
+
bestandsgrootte?: number;
|
|
8543
|
+
bestandspad?: string | null;
|
|
8544
|
+
bestandstype?: string;
|
|
8545
|
+
breedte?: number;
|
|
8546
|
+
categorie?: string;
|
|
8547
|
+
created_at?: string;
|
|
8548
|
+
hash?: string | null;
|
|
8073
8549
|
hoogte?: number;
|
|
8074
8550
|
id?: string;
|
|
8075
8551
|
is_standaard?: boolean;
|
|
@@ -8901,6 +9377,9 @@ export type Database = {
|
|
|
8901
9377
|
id: string;
|
|
8902
9378
|
last_error: string | null;
|
|
8903
9379
|
last_error_at: string | null;
|
|
9380
|
+
last_error_code: string | null;
|
|
9381
|
+
last_gateway_status: number | null;
|
|
9382
|
+
last_response: Json | null;
|
|
8904
9383
|
last_sent_hash: string | null;
|
|
8905
9384
|
locked_by: string | null;
|
|
8906
9385
|
locked_until: string | null;
|
|
@@ -8921,6 +9400,9 @@ export type Database = {
|
|
|
8921
9400
|
id?: string;
|
|
8922
9401
|
last_error?: string | null;
|
|
8923
9402
|
last_error_at?: string | null;
|
|
9403
|
+
last_error_code?: string | null;
|
|
9404
|
+
last_gateway_status?: number | null;
|
|
9405
|
+
last_response?: Json | null;
|
|
8924
9406
|
last_sent_hash?: string | null;
|
|
8925
9407
|
locked_by?: string | null;
|
|
8926
9408
|
locked_until?: string | null;
|
|
@@ -8941,6 +9423,9 @@ export type Database = {
|
|
|
8941
9423
|
id?: string;
|
|
8942
9424
|
last_error?: string | null;
|
|
8943
9425
|
last_error_at?: string | null;
|
|
9426
|
+
last_error_code?: string | null;
|
|
9427
|
+
last_gateway_status?: number | null;
|
|
9428
|
+
last_response?: Json | null;
|
|
8944
9429
|
last_sent_hash?: string | null;
|
|
8945
9430
|
locked_by?: string | null;
|
|
8946
9431
|
locked_until?: string | null;
|
|
@@ -10410,6 +10895,65 @@ export type Database = {
|
|
|
10410
10895
|
}
|
|
10411
10896
|
];
|
|
10412
10897
|
};
|
|
10898
|
+
medewerker_details: {
|
|
10899
|
+
Row: {
|
|
10900
|
+
color: string | null;
|
|
10901
|
+
created_at: string;
|
|
10902
|
+
hours_fri: number | null;
|
|
10903
|
+
hours_mon: number | null;
|
|
10904
|
+
hours_thu: number | null;
|
|
10905
|
+
hours_tue: number | null;
|
|
10906
|
+
hours_wed: number | null;
|
|
10907
|
+
id: string;
|
|
10908
|
+
is_active: boolean;
|
|
10909
|
+
leave_balance_hours: number;
|
|
10910
|
+
persnr: string | null;
|
|
10911
|
+
phone: string | null;
|
|
10912
|
+
profile_id: string;
|
|
10913
|
+
updated_at: string;
|
|
10914
|
+
};
|
|
10915
|
+
Insert: {
|
|
10916
|
+
color?: string | null;
|
|
10917
|
+
created_at?: string;
|
|
10918
|
+
hours_fri?: number | null;
|
|
10919
|
+
hours_mon?: number | null;
|
|
10920
|
+
hours_thu?: number | null;
|
|
10921
|
+
hours_tue?: number | null;
|
|
10922
|
+
hours_wed?: number | null;
|
|
10923
|
+
id?: string;
|
|
10924
|
+
is_active?: boolean;
|
|
10925
|
+
leave_balance_hours?: number;
|
|
10926
|
+
persnr?: string | null;
|
|
10927
|
+
phone?: string | null;
|
|
10928
|
+
profile_id: string;
|
|
10929
|
+
updated_at?: string;
|
|
10930
|
+
};
|
|
10931
|
+
Update: {
|
|
10932
|
+
color?: string | null;
|
|
10933
|
+
created_at?: string;
|
|
10934
|
+
hours_fri?: number | null;
|
|
10935
|
+
hours_mon?: number | null;
|
|
10936
|
+
hours_thu?: number | null;
|
|
10937
|
+
hours_tue?: number | null;
|
|
10938
|
+
hours_wed?: number | null;
|
|
10939
|
+
id?: string;
|
|
10940
|
+
is_active?: boolean;
|
|
10941
|
+
leave_balance_hours?: number;
|
|
10942
|
+
persnr?: string | null;
|
|
10943
|
+
phone?: string | null;
|
|
10944
|
+
profile_id?: string;
|
|
10945
|
+
updated_at?: string;
|
|
10946
|
+
};
|
|
10947
|
+
Relationships: [
|
|
10948
|
+
{
|
|
10949
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
10950
|
+
columns: ["profile_id"];
|
|
10951
|
+
isOneToOne: true;
|
|
10952
|
+
referencedRelation: "profiles";
|
|
10953
|
+
referencedColumns: ["id"];
|
|
10954
|
+
}
|
|
10955
|
+
];
|
|
10956
|
+
};
|
|
10413
10957
|
module_features: {
|
|
10414
10958
|
Row: {
|
|
10415
10959
|
created_at: string;
|
|
@@ -10473,6 +11017,7 @@ export type Database = {
|
|
|
10473
11017
|
enforce: boolean;
|
|
10474
11018
|
is_active: boolean;
|
|
10475
11019
|
last_seen_at: string;
|
|
11020
|
+
missing_count: number;
|
|
10476
11021
|
module_id: string;
|
|
10477
11022
|
name: string;
|
|
10478
11023
|
shell_id: string | null;
|
|
@@ -10483,6 +11028,7 @@ export type Database = {
|
|
|
10483
11028
|
enforce?: boolean;
|
|
10484
11029
|
is_active?: boolean;
|
|
10485
11030
|
last_seen_at?: string;
|
|
11031
|
+
missing_count?: number;
|
|
10486
11032
|
module_id: string;
|
|
10487
11033
|
name: string;
|
|
10488
11034
|
shell_id?: string | null;
|
|
@@ -10493,6 +11039,7 @@ export type Database = {
|
|
|
10493
11039
|
enforce?: boolean;
|
|
10494
11040
|
is_active?: boolean;
|
|
10495
11041
|
last_seen_at?: string;
|
|
11042
|
+
missing_count?: number;
|
|
10496
11043
|
module_id?: string;
|
|
10497
11044
|
name?: string;
|
|
10498
11045
|
shell_id?: string | null;
|
|
@@ -11524,6 +12071,7 @@ export type Database = {
|
|
|
11524
12071
|
};
|
|
11525
12072
|
order_invoice_links: {
|
|
11526
12073
|
Row: {
|
|
12074
|
+
administration_code: string | null;
|
|
11527
12075
|
attempts: number;
|
|
11528
12076
|
created_at: string;
|
|
11529
12077
|
error_message: string | null;
|
|
@@ -11536,6 +12084,7 @@ export type Database = {
|
|
|
11536
12084
|
updated_at: string;
|
|
11537
12085
|
};
|
|
11538
12086
|
Insert: {
|
|
12087
|
+
administration_code?: string | null;
|
|
11539
12088
|
attempts?: number;
|
|
11540
12089
|
created_at?: string;
|
|
11541
12090
|
error_message?: string | null;
|
|
@@ -11548,6 +12097,7 @@ export type Database = {
|
|
|
11548
12097
|
updated_at?: string;
|
|
11549
12098
|
};
|
|
11550
12099
|
Update: {
|
|
12100
|
+
administration_code?: string | null;
|
|
11551
12101
|
attempts?: number;
|
|
11552
12102
|
created_at?: string;
|
|
11553
12103
|
error_message?: string | null;
|
|
@@ -11744,6 +12294,8 @@ export type Database = {
|
|
|
11744
12294
|
orders: {
|
|
11745
12295
|
Row: {
|
|
11746
12296
|
buffer_id: string | null;
|
|
12297
|
+
cancel_reason: string | null;
|
|
12298
|
+
cancelled_at: string | null;
|
|
11747
12299
|
created_at: string;
|
|
11748
12300
|
custom_fields: Json;
|
|
11749
12301
|
customer_id: string | null;
|
|
@@ -11766,6 +12318,8 @@ export type Database = {
|
|
|
11766
12318
|
};
|
|
11767
12319
|
Insert: {
|
|
11768
12320
|
buffer_id?: string | null;
|
|
12321
|
+
cancel_reason?: string | null;
|
|
12322
|
+
cancelled_at?: string | null;
|
|
11769
12323
|
created_at?: string;
|
|
11770
12324
|
custom_fields?: Json;
|
|
11771
12325
|
customer_id?: string | null;
|
|
@@ -11788,6 +12342,8 @@ export type Database = {
|
|
|
11788
12342
|
};
|
|
11789
12343
|
Update: {
|
|
11790
12344
|
buffer_id?: string | null;
|
|
12345
|
+
cancel_reason?: string | null;
|
|
12346
|
+
cancelled_at?: string | null;
|
|
11791
12347
|
created_at?: string;
|
|
11792
12348
|
custom_fields?: Json;
|
|
11793
12349
|
customer_id?: string | null;
|
|
@@ -12751,6 +13307,27 @@ export type Database = {
|
|
|
12751
13307
|
}
|
|
12752
13308
|
];
|
|
12753
13309
|
};
|
|
13310
|
+
pick_sync_state: {
|
|
13311
|
+
Row: {
|
|
13312
|
+
id: boolean;
|
|
13313
|
+
last_cleanup_at: string | null;
|
|
13314
|
+
last_sync_at: string | null;
|
|
13315
|
+
updated_at: string;
|
|
13316
|
+
};
|
|
13317
|
+
Insert: {
|
|
13318
|
+
id?: boolean;
|
|
13319
|
+
last_cleanup_at?: string | null;
|
|
13320
|
+
last_sync_at?: string | null;
|
|
13321
|
+
updated_at?: string;
|
|
13322
|
+
};
|
|
13323
|
+
Update: {
|
|
13324
|
+
id?: boolean;
|
|
13325
|
+
last_cleanup_at?: string | null;
|
|
13326
|
+
last_sync_at?: string | null;
|
|
13327
|
+
updated_at?: string;
|
|
13328
|
+
};
|
|
13329
|
+
Relationships: [];
|
|
13330
|
+
};
|
|
12754
13331
|
pick_task_document_types: {
|
|
12755
13332
|
Row: {
|
|
12756
13333
|
created_at: string;
|
|
@@ -13042,6 +13619,7 @@ export type Database = {
|
|
|
13042
13619
|
gebruiker_id: string | null;
|
|
13043
13620
|
gebruiker_naam: string;
|
|
13044
13621
|
gestart_op: string | null;
|
|
13622
|
+
herkomst: string | null;
|
|
13045
13623
|
id: string;
|
|
13046
13624
|
idempotentie_sleutel: string | null;
|
|
13047
13625
|
is_herprint: boolean;
|
|
@@ -13071,6 +13649,7 @@ export type Database = {
|
|
|
13071
13649
|
gebruiker_id?: string | null;
|
|
13072
13650
|
gebruiker_naam?: string;
|
|
13073
13651
|
gestart_op?: string | null;
|
|
13652
|
+
herkomst?: string | null;
|
|
13074
13653
|
id?: string;
|
|
13075
13654
|
idempotentie_sleutel?: string | null;
|
|
13076
13655
|
is_herprint?: boolean;
|
|
@@ -13100,6 +13679,7 @@ export type Database = {
|
|
|
13100
13679
|
gebruiker_id?: string | null;
|
|
13101
13680
|
gebruiker_naam?: string;
|
|
13102
13681
|
gestart_op?: string | null;
|
|
13682
|
+
herkomst?: string | null;
|
|
13103
13683
|
id?: string;
|
|
13104
13684
|
idempotentie_sleutel?: string | null;
|
|
13105
13685
|
is_herprint?: boolean;
|
|
@@ -13922,6 +14502,71 @@ export type Database = {
|
|
|
13922
14502
|
};
|
|
13923
14503
|
Relationships: [];
|
|
13924
14504
|
};
|
|
14505
|
+
profile_modules: {
|
|
14506
|
+
Row: {
|
|
14507
|
+
created_at: string;
|
|
14508
|
+
id: string;
|
|
14509
|
+
module_id: string;
|
|
14510
|
+
profile_id: string;
|
|
14511
|
+
};
|
|
14512
|
+
Insert: {
|
|
14513
|
+
created_at?: string;
|
|
14514
|
+
id?: string;
|
|
14515
|
+
module_id: string;
|
|
14516
|
+
profile_id: string;
|
|
14517
|
+
};
|
|
14518
|
+
Update: {
|
|
14519
|
+
created_at?: string;
|
|
14520
|
+
id?: string;
|
|
14521
|
+
module_id?: string;
|
|
14522
|
+
profile_id?: string;
|
|
14523
|
+
};
|
|
14524
|
+
Relationships: [
|
|
14525
|
+
{
|
|
14526
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
14527
|
+
columns: ["profile_id"];
|
|
14528
|
+
isOneToOne: false;
|
|
14529
|
+
referencedRelation: "profiles_org";
|
|
14530
|
+
referencedColumns: ["id"];
|
|
14531
|
+
}
|
|
14532
|
+
];
|
|
14533
|
+
};
|
|
14534
|
+
profile_roles: {
|
|
14535
|
+
Row: {
|
|
14536
|
+
created_at: string;
|
|
14537
|
+
id: string;
|
|
14538
|
+
profile_id: string;
|
|
14539
|
+
role_id: string;
|
|
14540
|
+
};
|
|
14541
|
+
Insert: {
|
|
14542
|
+
created_at?: string;
|
|
14543
|
+
id?: string;
|
|
14544
|
+
profile_id: string;
|
|
14545
|
+
role_id: string;
|
|
14546
|
+
};
|
|
14547
|
+
Update: {
|
|
14548
|
+
created_at?: string;
|
|
14549
|
+
id?: string;
|
|
14550
|
+
profile_id?: string;
|
|
14551
|
+
role_id?: string;
|
|
14552
|
+
};
|
|
14553
|
+
Relationships: [
|
|
14554
|
+
{
|
|
14555
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
14556
|
+
columns: ["profile_id"];
|
|
14557
|
+
isOneToOne: false;
|
|
14558
|
+
referencedRelation: "profiles_org";
|
|
14559
|
+
referencedColumns: ["id"];
|
|
14560
|
+
},
|
|
14561
|
+
{
|
|
14562
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
14563
|
+
columns: ["role_id"];
|
|
14564
|
+
isOneToOne: false;
|
|
14565
|
+
referencedRelation: "roles";
|
|
14566
|
+
referencedColumns: ["id"];
|
|
14567
|
+
}
|
|
14568
|
+
];
|
|
14569
|
+
};
|
|
13925
14570
|
profiles: {
|
|
13926
14571
|
Row: {
|
|
13927
14572
|
address: string | null;
|
|
@@ -13969,6 +14614,41 @@ export type Database = {
|
|
|
13969
14614
|
}
|
|
13970
14615
|
];
|
|
13971
14616
|
};
|
|
14617
|
+
profiles_org: {
|
|
14618
|
+
Row: {
|
|
14619
|
+
created_at: string;
|
|
14620
|
+
id: string;
|
|
14621
|
+
is_default: boolean;
|
|
14622
|
+
name: string;
|
|
14623
|
+
tenant_id: string | null;
|
|
14624
|
+
updated_at: string;
|
|
14625
|
+
};
|
|
14626
|
+
Insert: {
|
|
14627
|
+
created_at?: string;
|
|
14628
|
+
id?: string;
|
|
14629
|
+
is_default?: boolean;
|
|
14630
|
+
name: string;
|
|
14631
|
+
tenant_id?: string | null;
|
|
14632
|
+
updated_at?: string;
|
|
14633
|
+
};
|
|
14634
|
+
Update: {
|
|
14635
|
+
created_at?: string;
|
|
14636
|
+
id?: string;
|
|
14637
|
+
is_default?: boolean;
|
|
14638
|
+
name?: string;
|
|
14639
|
+
tenant_id?: string | null;
|
|
14640
|
+
updated_at?: string;
|
|
14641
|
+
};
|
|
14642
|
+
Relationships: [
|
|
14643
|
+
{
|
|
14644
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
14645
|
+
columns: ["tenant_id"];
|
|
14646
|
+
isOneToOne: false;
|
|
14647
|
+
referencedRelation: "tenants";
|
|
14648
|
+
referencedColumns: ["id"];
|
|
14649
|
+
}
|
|
14650
|
+
];
|
|
14651
|
+
};
|
|
13972
14652
|
projects: {
|
|
13973
14653
|
Row: {
|
|
13974
14654
|
contact_name: string | null;
|
|
@@ -15186,6 +15866,7 @@ export type Database = {
|
|
|
15186
15866
|
type: string;
|
|
15187
15867
|
updated_at: string;
|
|
15188
15868
|
vereist_medewerker: boolean;
|
|
15869
|
+
werkplek: string | null;
|
|
15189
15870
|
};
|
|
15190
15871
|
Insert: {
|
|
15191
15872
|
actief?: boolean;
|
|
@@ -15199,6 +15880,7 @@ export type Database = {
|
|
|
15199
15880
|
type?: string;
|
|
15200
15881
|
updated_at?: string;
|
|
15201
15882
|
vereist_medewerker?: boolean;
|
|
15883
|
+
werkplek?: string | null;
|
|
15202
15884
|
};
|
|
15203
15885
|
Update: {
|
|
15204
15886
|
actief?: boolean;
|
|
@@ -15212,9 +15894,48 @@ export type Database = {
|
|
|
15212
15894
|
type?: string;
|
|
15213
15895
|
updated_at?: string;
|
|
15214
15896
|
vereist_medewerker?: boolean;
|
|
15897
|
+
werkplek?: string | null;
|
|
15215
15898
|
};
|
|
15216
15899
|
Relationships: [];
|
|
15217
15900
|
};
|
|
15901
|
+
sick_periods: {
|
|
15902
|
+
Row: {
|
|
15903
|
+
created_at: string;
|
|
15904
|
+
employee_id: string;
|
|
15905
|
+
end_date: string | null;
|
|
15906
|
+
id: string;
|
|
15907
|
+
notes: string | null;
|
|
15908
|
+
start_date: string;
|
|
15909
|
+
updated_at: string;
|
|
15910
|
+
};
|
|
15911
|
+
Insert: {
|
|
15912
|
+
created_at?: string;
|
|
15913
|
+
employee_id: string;
|
|
15914
|
+
end_date?: string | null;
|
|
15915
|
+
id?: string;
|
|
15916
|
+
notes?: string | null;
|
|
15917
|
+
start_date: string;
|
|
15918
|
+
updated_at?: string;
|
|
15919
|
+
};
|
|
15920
|
+
Update: {
|
|
15921
|
+
created_at?: string;
|
|
15922
|
+
employee_id?: string;
|
|
15923
|
+
end_date?: string | null;
|
|
15924
|
+
id?: string;
|
|
15925
|
+
notes?: string | null;
|
|
15926
|
+
start_date?: string;
|
|
15927
|
+
updated_at?: string;
|
|
15928
|
+
};
|
|
15929
|
+
Relationships: [
|
|
15930
|
+
{
|
|
15931
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
15932
|
+
columns: ["employee_id"];
|
|
15933
|
+
isOneToOne: false;
|
|
15934
|
+
referencedRelation: "profiles";
|
|
15935
|
+
referencedColumns: ["id"];
|
|
15936
|
+
}
|
|
15937
|
+
];
|
|
15938
|
+
};
|
|
15218
15939
|
sidebar_config: {
|
|
15219
15940
|
Row: {
|
|
15220
15941
|
id: string;
|
|
@@ -16058,12 +16779,16 @@ export type Database = {
|
|
|
16058
16779
|
company_name: string | null;
|
|
16059
16780
|
connected_at: string | null;
|
|
16060
16781
|
created_at: string;
|
|
16782
|
+
disconnected_at: string | null;
|
|
16061
16783
|
environment: string;
|
|
16062
16784
|
id: string;
|
|
16785
|
+
initial_sync_completed_at: string | null;
|
|
16786
|
+
initial_sync_started_at: string | null;
|
|
16063
16787
|
is_active: boolean;
|
|
16064
16788
|
label: string | null;
|
|
16065
16789
|
office_code: string | null;
|
|
16066
16790
|
redirect_uri: string | null;
|
|
16791
|
+
superseded_at: string | null;
|
|
16067
16792
|
updated_at: string;
|
|
16068
16793
|
user_id: string;
|
|
16069
16794
|
};
|
|
@@ -16074,12 +16799,16 @@ export type Database = {
|
|
|
16074
16799
|
company_name?: string | null;
|
|
16075
16800
|
connected_at?: string | null;
|
|
16076
16801
|
created_at?: string;
|
|
16802
|
+
disconnected_at?: string | null;
|
|
16077
16803
|
environment: string;
|
|
16078
16804
|
id?: string;
|
|
16805
|
+
initial_sync_completed_at?: string | null;
|
|
16806
|
+
initial_sync_started_at?: string | null;
|
|
16079
16807
|
is_active?: boolean;
|
|
16080
16808
|
label?: string | null;
|
|
16081
16809
|
office_code?: string | null;
|
|
16082
16810
|
redirect_uri?: string | null;
|
|
16811
|
+
superseded_at?: string | null;
|
|
16083
16812
|
updated_at?: string;
|
|
16084
16813
|
user_id: string;
|
|
16085
16814
|
};
|
|
@@ -16090,12 +16819,16 @@ export type Database = {
|
|
|
16090
16819
|
company_name?: string | null;
|
|
16091
16820
|
connected_at?: string | null;
|
|
16092
16821
|
created_at?: string;
|
|
16822
|
+
disconnected_at?: string | null;
|
|
16093
16823
|
environment?: string;
|
|
16094
16824
|
id?: string;
|
|
16825
|
+
initial_sync_completed_at?: string | null;
|
|
16826
|
+
initial_sync_started_at?: string | null;
|
|
16095
16827
|
is_active?: boolean;
|
|
16096
16828
|
label?: string | null;
|
|
16097
16829
|
office_code?: string | null;
|
|
16098
16830
|
redirect_uri?: string | null;
|
|
16831
|
+
superseded_at?: string | null;
|
|
16099
16832
|
updated_at?: string;
|
|
16100
16833
|
user_id?: string;
|
|
16101
16834
|
};
|
|
@@ -16155,6 +16888,7 @@ export type Database = {
|
|
|
16155
16888
|
twinfield_customers: {
|
|
16156
16889
|
Row: {
|
|
16157
16890
|
address: string | null;
|
|
16891
|
+
administration_code: string;
|
|
16158
16892
|
city: string | null;
|
|
16159
16893
|
country: string | null;
|
|
16160
16894
|
created_at: string;
|
|
@@ -16174,6 +16908,7 @@ export type Database = {
|
|
|
16174
16908
|
};
|
|
16175
16909
|
Insert: {
|
|
16176
16910
|
address?: string | null;
|
|
16911
|
+
administration_code?: string;
|
|
16177
16912
|
city?: string | null;
|
|
16178
16913
|
country?: string | null;
|
|
16179
16914
|
created_at?: string;
|
|
@@ -16193,6 +16928,7 @@ export type Database = {
|
|
|
16193
16928
|
};
|
|
16194
16929
|
Update: {
|
|
16195
16930
|
address?: string | null;
|
|
16931
|
+
administration_code?: string;
|
|
16196
16932
|
city?: string | null;
|
|
16197
16933
|
country?: string | null;
|
|
16198
16934
|
created_at?: string;
|
|
@@ -16414,7 +17150,9 @@ export type Database = {
|
|
|
16414
17150
|
};
|
|
16415
17151
|
twinfield_invoice_settings: {
|
|
16416
17152
|
Row: {
|
|
17153
|
+
administration_code: string | null;
|
|
16417
17154
|
auto_invoice_enabled: boolean;
|
|
17155
|
+
auto_invoice_start_date: string | null;
|
|
16418
17156
|
auto_invoice_trigger_statuses: string[];
|
|
16419
17157
|
created_at: string;
|
|
16420
17158
|
debtor_gl_account: string;
|
|
@@ -16428,15 +17166,19 @@ export type Database = {
|
|
|
16428
17166
|
invoice_enabled_fo: boolean;
|
|
16429
17167
|
invoice_enabled_ho: boolean;
|
|
16430
17168
|
invoice_enabled_mo: boolean;
|
|
17169
|
+
needs_review: boolean;
|
|
16431
17170
|
payment_gl_account: string;
|
|
16432
17171
|
payment_journal_code: string;
|
|
17172
|
+
settings_confirmed_at: string | null;
|
|
16433
17173
|
updated_at: string;
|
|
16434
17174
|
user_id: string;
|
|
16435
17175
|
vat_code_eu_reverse: string | null;
|
|
16436
17176
|
vat_code_export: string | null;
|
|
16437
17177
|
};
|
|
16438
17178
|
Insert: {
|
|
17179
|
+
administration_code?: string | null;
|
|
16439
17180
|
auto_invoice_enabled?: boolean;
|
|
17181
|
+
auto_invoice_start_date?: string | null;
|
|
16440
17182
|
auto_invoice_trigger_statuses?: string[];
|
|
16441
17183
|
created_at?: string;
|
|
16442
17184
|
debtor_gl_account?: string;
|
|
@@ -16450,15 +17192,19 @@ export type Database = {
|
|
|
16450
17192
|
invoice_enabled_fo?: boolean;
|
|
16451
17193
|
invoice_enabled_ho?: boolean;
|
|
16452
17194
|
invoice_enabled_mo?: boolean;
|
|
17195
|
+
needs_review?: boolean;
|
|
16453
17196
|
payment_gl_account?: string;
|
|
16454
17197
|
payment_journal_code?: string;
|
|
17198
|
+
settings_confirmed_at?: string | null;
|
|
16455
17199
|
updated_at?: string;
|
|
16456
17200
|
user_id: string;
|
|
16457
17201
|
vat_code_eu_reverse?: string | null;
|
|
16458
17202
|
vat_code_export?: string | null;
|
|
16459
17203
|
};
|
|
16460
17204
|
Update: {
|
|
17205
|
+
administration_code?: string | null;
|
|
16461
17206
|
auto_invoice_enabled?: boolean;
|
|
17207
|
+
auto_invoice_start_date?: string | null;
|
|
16462
17208
|
auto_invoice_trigger_statuses?: string[];
|
|
16463
17209
|
created_at?: string;
|
|
16464
17210
|
debtor_gl_account?: string;
|
|
@@ -16472,8 +17218,10 @@ export type Database = {
|
|
|
16472
17218
|
invoice_enabled_fo?: boolean;
|
|
16473
17219
|
invoice_enabled_ho?: boolean;
|
|
16474
17220
|
invoice_enabled_mo?: boolean;
|
|
17221
|
+
needs_review?: boolean;
|
|
16475
17222
|
payment_gl_account?: string;
|
|
16476
17223
|
payment_journal_code?: string;
|
|
17224
|
+
settings_confirmed_at?: string | null;
|
|
16477
17225
|
updated_at?: string;
|
|
16478
17226
|
user_id?: string;
|
|
16479
17227
|
vat_code_eu_reverse?: string | null;
|
|
@@ -17071,134 +17819,21 @@ export type Database = {
|
|
|
17071
17819
|
file_name?: string | null;
|
|
17072
17820
|
id?: string;
|
|
17073
17821
|
monteur_ids?: string[];
|
|
17074
|
-
period_end: string;
|
|
17075
|
-
period_start: string;
|
|
17076
|
-
row_count?: number;
|
|
17077
|
-
};
|
|
17078
|
-
Update: {
|
|
17079
|
-
created_at?: string;
|
|
17080
|
-
created_by?: string | null;
|
|
17081
|
-
file_name?: string | null;
|
|
17082
|
-
id?: string;
|
|
17083
|
-
monteur_ids?: string[];
|
|
17084
|
-
period_end?: string;
|
|
17085
|
-
period_start?: string;
|
|
17086
|
-
row_count?: number;
|
|
17087
|
-
};
|
|
17088
|
-
Relationships: [];
|
|
17089
|
-
};
|
|
17090
|
-
uren_facturen: {
|
|
17091
|
-
Row: {
|
|
17092
|
-
created_at: string;
|
|
17093
|
-
created_by: string | null;
|
|
17094
|
-
customer_id: string | null;
|
|
17095
|
-
customer_name: string | null;
|
|
17096
|
-
id: string;
|
|
17097
|
-
invoice_number: string | null;
|
|
17098
|
-
note: string | null;
|
|
17099
|
-
status: string;
|
|
17100
|
-
total_excl_cents: number;
|
|
17101
|
-
total_incl_cents: number;
|
|
17102
|
-
updated_at: string;
|
|
17103
|
-
vat_cents: number;
|
|
17104
|
-
vat_percentage: number;
|
|
17105
|
-
werkbon_id: string | null;
|
|
17106
|
-
};
|
|
17107
|
-
Insert: {
|
|
17108
|
-
created_at?: string;
|
|
17109
|
-
created_by?: string | null;
|
|
17110
|
-
customer_id?: string | null;
|
|
17111
|
-
customer_name?: string | null;
|
|
17112
|
-
id?: string;
|
|
17113
|
-
invoice_number?: string | null;
|
|
17114
|
-
note?: string | null;
|
|
17115
|
-
status?: string;
|
|
17116
|
-
total_excl_cents?: number;
|
|
17117
|
-
total_incl_cents?: number;
|
|
17118
|
-
updated_at?: string;
|
|
17119
|
-
vat_cents?: number;
|
|
17120
|
-
vat_percentage?: number;
|
|
17121
|
-
werkbon_id?: string | null;
|
|
17122
|
-
};
|
|
17123
|
-
Update: {
|
|
17124
|
-
created_at?: string;
|
|
17125
|
-
created_by?: string | null;
|
|
17126
|
-
customer_id?: string | null;
|
|
17127
|
-
customer_name?: string | null;
|
|
17128
|
-
id?: string;
|
|
17129
|
-
invoice_number?: string | null;
|
|
17130
|
-
note?: string | null;
|
|
17131
|
-
status?: string;
|
|
17132
|
-
total_excl_cents?: number;
|
|
17133
|
-
total_incl_cents?: number;
|
|
17134
|
-
updated_at?: string;
|
|
17135
|
-
vat_cents?: number;
|
|
17136
|
-
vat_percentage?: number;
|
|
17137
|
-
werkbon_id?: string | null;
|
|
17138
|
-
};
|
|
17139
|
-
Relationships: [
|
|
17140
|
-
{
|
|
17141
|
-
foreignKeyName: "uren_facturen_customer_id_fkey";
|
|
17142
|
-
columns: ["customer_id"];
|
|
17143
|
-
isOneToOne: false;
|
|
17144
|
-
referencedRelation: "itk_customers";
|
|
17145
|
-
referencedColumns: ["id"];
|
|
17146
|
-
},
|
|
17147
|
-
{
|
|
17148
|
-
foreignKeyName: "uren_facturen_werkbon_id_fkey";
|
|
17149
|
-
columns: ["werkbon_id"];
|
|
17150
|
-
isOneToOne: true;
|
|
17151
|
-
referencedRelation: "werkbonnen";
|
|
17152
|
-
referencedColumns: ["id"];
|
|
17153
|
-
}
|
|
17154
|
-
];
|
|
17155
|
-
};
|
|
17156
|
-
uren_factuur_regels: {
|
|
17157
|
-
Row: {
|
|
17158
|
-
created_at: string;
|
|
17159
|
-
description: string;
|
|
17160
|
-
factuur_id: string;
|
|
17161
|
-
id: string;
|
|
17162
|
-
kind: string | null;
|
|
17163
|
-
quantity: number;
|
|
17164
|
-
sort_order: number;
|
|
17165
|
-
total_cents: number;
|
|
17166
|
-
unit: string;
|
|
17167
|
-
unit_price_cents: number;
|
|
17168
|
-
};
|
|
17169
|
-
Insert: {
|
|
17170
|
-
created_at?: string;
|
|
17171
|
-
description: string;
|
|
17172
|
-
factuur_id: string;
|
|
17173
|
-
id?: string;
|
|
17174
|
-
kind?: string | null;
|
|
17175
|
-
quantity?: number;
|
|
17176
|
-
sort_order?: number;
|
|
17177
|
-
total_cents?: number;
|
|
17178
|
-
unit?: string;
|
|
17179
|
-
unit_price_cents?: number;
|
|
17822
|
+
period_end: string;
|
|
17823
|
+
period_start: string;
|
|
17824
|
+
row_count?: number;
|
|
17180
17825
|
};
|
|
17181
17826
|
Update: {
|
|
17182
17827
|
created_at?: string;
|
|
17183
|
-
|
|
17184
|
-
|
|
17828
|
+
created_by?: string | null;
|
|
17829
|
+
file_name?: string | null;
|
|
17185
17830
|
id?: string;
|
|
17186
|
-
|
|
17187
|
-
|
|
17188
|
-
|
|
17189
|
-
|
|
17190
|
-
unit?: string;
|
|
17191
|
-
unit_price_cents?: number;
|
|
17831
|
+
monteur_ids?: string[];
|
|
17832
|
+
period_end?: string;
|
|
17833
|
+
period_start?: string;
|
|
17834
|
+
row_count?: number;
|
|
17192
17835
|
};
|
|
17193
|
-
Relationships: [
|
|
17194
|
-
{
|
|
17195
|
-
foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
|
|
17196
|
-
columns: ["factuur_id"];
|
|
17197
|
-
isOneToOne: false;
|
|
17198
|
-
referencedRelation: "uren_facturen";
|
|
17199
|
-
referencedColumns: ["id"];
|
|
17200
|
-
}
|
|
17201
|
-
];
|
|
17836
|
+
Relationships: [];
|
|
17202
17837
|
};
|
|
17203
17838
|
uren_offerte_regels: {
|
|
17204
17839
|
Row: {
|
|
@@ -18483,6 +19118,9 @@ export type Database = {
|
|
|
18483
19118
|
scheduled_end_time: string | null;
|
|
18484
19119
|
scheduled_start_time: string | null;
|
|
18485
19120
|
sequence_number: number;
|
|
19121
|
+
signature_accepted_at: string | null;
|
|
19122
|
+
signature_by_user_id: string | null;
|
|
19123
|
+
signature_name: string | null;
|
|
18486
19124
|
source_email_meta: Json | null;
|
|
18487
19125
|
source_mailbox_message_id: string | null;
|
|
18488
19126
|
source_pdf_path: string | null;
|
|
@@ -18518,6 +19156,9 @@ export type Database = {
|
|
|
18518
19156
|
scheduled_end_time?: string | null;
|
|
18519
19157
|
scheduled_start_time?: string | null;
|
|
18520
19158
|
sequence_number: number;
|
|
19159
|
+
signature_accepted_at?: string | null;
|
|
19160
|
+
signature_by_user_id?: string | null;
|
|
19161
|
+
signature_name?: string | null;
|
|
18521
19162
|
source_email_meta?: Json | null;
|
|
18522
19163
|
source_mailbox_message_id?: string | null;
|
|
18523
19164
|
source_pdf_path?: string | null;
|
|
@@ -18553,6 +19194,9 @@ export type Database = {
|
|
|
18553
19194
|
scheduled_end_time?: string | null;
|
|
18554
19195
|
scheduled_start_time?: string | null;
|
|
18555
19196
|
sequence_number?: number;
|
|
19197
|
+
signature_accepted_at?: string | null;
|
|
19198
|
+
signature_by_user_id?: string | null;
|
|
19199
|
+
signature_name?: string | null;
|
|
18556
19200
|
source_email_meta?: Json | null;
|
|
18557
19201
|
source_mailbox_message_id?: string | null;
|
|
18558
19202
|
source_pdf_path?: string | null;
|
|
@@ -19082,6 +19726,119 @@ export type Database = {
|
|
|
19082
19726
|
};
|
|
19083
19727
|
Relationships: [];
|
|
19084
19728
|
};
|
|
19729
|
+
uren_facturen: {
|
|
19730
|
+
Row: {
|
|
19731
|
+
created_at: string | null;
|
|
19732
|
+
created_by: string | null;
|
|
19733
|
+
customer_id: string | null;
|
|
19734
|
+
customer_name: string | null;
|
|
19735
|
+
id: string | null;
|
|
19736
|
+
invoice_number: string | null;
|
|
19737
|
+
note: string | null;
|
|
19738
|
+
status: string | null;
|
|
19739
|
+
total_excl_cents: number | null;
|
|
19740
|
+
total_incl_cents: number | null;
|
|
19741
|
+
updated_at: string | null;
|
|
19742
|
+
vat_cents: number | null;
|
|
19743
|
+
vat_percentage: number | null;
|
|
19744
|
+
werkbon_id: string | null;
|
|
19745
|
+
};
|
|
19746
|
+
Insert: {
|
|
19747
|
+
created_at?: string | null;
|
|
19748
|
+
created_by?: string | null;
|
|
19749
|
+
customer_id?: string | null;
|
|
19750
|
+
customer_name?: string | null;
|
|
19751
|
+
id?: string | null;
|
|
19752
|
+
invoice_number?: string | null;
|
|
19753
|
+
note?: string | null;
|
|
19754
|
+
status?: string | null;
|
|
19755
|
+
total_excl_cents?: number | null;
|
|
19756
|
+
total_incl_cents?: number | null;
|
|
19757
|
+
updated_at?: string | null;
|
|
19758
|
+
vat_cents?: number | null;
|
|
19759
|
+
vat_percentage?: number | null;
|
|
19760
|
+
werkbon_id?: never;
|
|
19761
|
+
};
|
|
19762
|
+
Update: {
|
|
19763
|
+
created_at?: string | null;
|
|
19764
|
+
created_by?: string | null;
|
|
19765
|
+
customer_id?: string | null;
|
|
19766
|
+
customer_name?: string | null;
|
|
19767
|
+
id?: string | null;
|
|
19768
|
+
invoice_number?: string | null;
|
|
19769
|
+
note?: string | null;
|
|
19770
|
+
status?: string | null;
|
|
19771
|
+
total_excl_cents?: number | null;
|
|
19772
|
+
total_incl_cents?: number | null;
|
|
19773
|
+
updated_at?: string | null;
|
|
19774
|
+
vat_cents?: number | null;
|
|
19775
|
+
vat_percentage?: number | null;
|
|
19776
|
+
werkbon_id?: never;
|
|
19777
|
+
};
|
|
19778
|
+
Relationships: [
|
|
19779
|
+
{
|
|
19780
|
+
foreignKeyName: "invoices_customer_id_fkey";
|
|
19781
|
+
columns: ["customer_id"];
|
|
19782
|
+
isOneToOne: false;
|
|
19783
|
+
referencedRelation: "itk_customers";
|
|
19784
|
+
referencedColumns: ["id"];
|
|
19785
|
+
}
|
|
19786
|
+
];
|
|
19787
|
+
};
|
|
19788
|
+
uren_factuur_regels: {
|
|
19789
|
+
Row: {
|
|
19790
|
+
created_at: string | null;
|
|
19791
|
+
description: string | null;
|
|
19792
|
+
factuur_id: string | null;
|
|
19793
|
+
id: string | null;
|
|
19794
|
+
kind: string | null;
|
|
19795
|
+
quantity: number | null;
|
|
19796
|
+
sort_order: number | null;
|
|
19797
|
+
total_cents: number | null;
|
|
19798
|
+
unit: string | null;
|
|
19799
|
+
unit_price_cents: number | null;
|
|
19800
|
+
};
|
|
19801
|
+
Insert: {
|
|
19802
|
+
created_at?: string | null;
|
|
19803
|
+
description?: string | null;
|
|
19804
|
+
factuur_id?: string | null;
|
|
19805
|
+
id?: string | null;
|
|
19806
|
+
kind?: string | null;
|
|
19807
|
+
quantity?: number | null;
|
|
19808
|
+
sort_order?: number | null;
|
|
19809
|
+
total_cents?: number | null;
|
|
19810
|
+
unit?: string | null;
|
|
19811
|
+
unit_price_cents?: number | null;
|
|
19812
|
+
};
|
|
19813
|
+
Update: {
|
|
19814
|
+
created_at?: string | null;
|
|
19815
|
+
description?: string | null;
|
|
19816
|
+
factuur_id?: string | null;
|
|
19817
|
+
id?: string | null;
|
|
19818
|
+
kind?: string | null;
|
|
19819
|
+
quantity?: number | null;
|
|
19820
|
+
sort_order?: number | null;
|
|
19821
|
+
total_cents?: number | null;
|
|
19822
|
+
unit?: string | null;
|
|
19823
|
+
unit_price_cents?: number | null;
|
|
19824
|
+
};
|
|
19825
|
+
Relationships: [
|
|
19826
|
+
{
|
|
19827
|
+
foreignKeyName: "invoice_items_invoice_id_fkey";
|
|
19828
|
+
columns: ["factuur_id"];
|
|
19829
|
+
isOneToOne: false;
|
|
19830
|
+
referencedRelation: "invoices";
|
|
19831
|
+
referencedColumns: ["id"];
|
|
19832
|
+
},
|
|
19833
|
+
{
|
|
19834
|
+
foreignKeyName: "invoice_items_invoice_id_fkey";
|
|
19835
|
+
columns: ["factuur_id"];
|
|
19836
|
+
isOneToOne: false;
|
|
19837
|
+
referencedRelation: "uren_facturen";
|
|
19838
|
+
referencedColumns: ["id"];
|
|
19839
|
+
}
|
|
19840
|
+
];
|
|
19841
|
+
};
|
|
19085
19842
|
v_external_customers_exact: {
|
|
19086
19843
|
Row: {
|
|
19087
19844
|
account_number: string | null;
|
|
@@ -19597,6 +20354,7 @@ export type Database = {
|
|
|
19597
20354
|
gebruiker_id: string | null;
|
|
19598
20355
|
gebruiker_naam: string;
|
|
19599
20356
|
gestart_op: string | null;
|
|
20357
|
+
herkomst: string | null;
|
|
19600
20358
|
id: string;
|
|
19601
20359
|
idempotentie_sleutel: string | null;
|
|
19602
20360
|
is_herprint: boolean;
|
|
@@ -19717,6 +20475,7 @@ export type Database = {
|
|
|
19717
20475
|
gebruiker_id: string | null;
|
|
19718
20476
|
gebruiker_naam: string;
|
|
19719
20477
|
gestart_op: string | null;
|
|
20478
|
+
herkomst: string | null;
|
|
19720
20479
|
id: string;
|
|
19721
20480
|
idempotentie_sleutel: string | null;
|
|
19722
20481
|
is_herprint: boolean;
|
|
@@ -19987,6 +20746,13 @@ export type Database = {
|
|
|
19987
20746
|
};
|
|
19988
20747
|
Returns: string;
|
|
19989
20748
|
};
|
|
20749
|
+
employee_day_hours: {
|
|
20750
|
+
Args: {
|
|
20751
|
+
_day: string;
|
|
20752
|
+
_employee_id: string;
|
|
20753
|
+
};
|
|
20754
|
+
Returns: number;
|
|
20755
|
+
};
|
|
19990
20756
|
enqueue_cart_replan_if_unlocked: {
|
|
19991
20757
|
Args: {
|
|
19992
20758
|
p_order_id: string;
|
|
@@ -20311,6 +21077,46 @@ export type Database = {
|
|
|
20311
21077
|
Args: never;
|
|
20312
21078
|
Returns: boolean;
|
|
20313
21079
|
};
|
|
21080
|
+
invoice_create_from_source: {
|
|
21081
|
+
Args: {
|
|
21082
|
+
_payload?: Json;
|
|
21083
|
+
_source_id: string;
|
|
21084
|
+
_source_type: string;
|
|
21085
|
+
};
|
|
21086
|
+
Returns: Json;
|
|
21087
|
+
};
|
|
21088
|
+
invoice_get_billable_lines: {
|
|
21089
|
+
Args: {
|
|
21090
|
+
_invoice_id: string;
|
|
21091
|
+
};
|
|
21092
|
+
Returns: Json;
|
|
21093
|
+
};
|
|
21094
|
+
invoice_get_for_source: {
|
|
21095
|
+
Args: {
|
|
21096
|
+
_source_id: string;
|
|
21097
|
+
_source_type: string;
|
|
21098
|
+
};
|
|
21099
|
+
Returns: Json;
|
|
21100
|
+
};
|
|
21101
|
+
invoice_get_summary: {
|
|
21102
|
+
Args: {
|
|
21103
|
+
_invoice_id: string;
|
|
21104
|
+
};
|
|
21105
|
+
Returns: Json;
|
|
21106
|
+
};
|
|
21107
|
+
invoice_list_sources: {
|
|
21108
|
+
Args: {
|
|
21109
|
+
_limit?: number;
|
|
21110
|
+
_source_type?: string;
|
|
21111
|
+
};
|
|
21112
|
+
Returns: Json;
|
|
21113
|
+
};
|
|
21114
|
+
invoice_recalc_totals: {
|
|
21115
|
+
Args: {
|
|
21116
|
+
_invoice_id: string;
|
|
21117
|
+
};
|
|
21118
|
+
Returns: Json;
|
|
21119
|
+
};
|
|
20314
21120
|
is_authenticated: {
|
|
20315
21121
|
Args: never;
|
|
20316
21122
|
Returns: boolean;
|
|
@@ -20340,6 +21146,19 @@ export type Database = {
|
|
|
20340
21146
|
Args: never;
|
|
20341
21147
|
Returns: boolean;
|
|
20342
21148
|
};
|
|
21149
|
+
itk_offerte_naar_werkbon: {
|
|
21150
|
+
Args: {
|
|
21151
|
+
_offerte_id: string;
|
|
21152
|
+
};
|
|
21153
|
+
Returns: string;
|
|
21154
|
+
};
|
|
21155
|
+
itk_offerte_restant_mandaat: {
|
|
21156
|
+
Args: {
|
|
21157
|
+
_exclude_offerte_id?: string;
|
|
21158
|
+
_werkbon_id: string;
|
|
21159
|
+
};
|
|
21160
|
+
Returns: number;
|
|
21161
|
+
};
|
|
20343
21162
|
jwt_has_role: {
|
|
20344
21163
|
Args: {
|
|
20345
21164
|
_role: Database["public"]["Enums"]["app_role"];
|
|
@@ -20350,12 +21169,45 @@ export type Database = {
|
|
|
20350
21169
|
Args: never;
|
|
20351
21170
|
Returns: {
|
|
20352
21171
|
avatar_url: string;
|
|
21172
|
+
color: string;
|
|
20353
21173
|
display_name: string;
|
|
20354
21174
|
email: string;
|
|
21175
|
+
hours_fri: number;
|
|
21176
|
+
hours_mon: number;
|
|
21177
|
+
hours_thu: number;
|
|
21178
|
+
hours_tue: number;
|
|
21179
|
+
hours_wed: number;
|
|
20355
21180
|
id: string;
|
|
21181
|
+
is_active: boolean;
|
|
21182
|
+
leave_balance_hours: number;
|
|
21183
|
+
persnr: string;
|
|
21184
|
+
phone: string;
|
|
20356
21185
|
roles: string[];
|
|
20357
21186
|
}[];
|
|
20358
21187
|
};
|
|
21188
|
+
list_monteur_absences: {
|
|
21189
|
+
Args: {
|
|
21190
|
+
_from: string;
|
|
21191
|
+
_to: string;
|
|
21192
|
+
};
|
|
21193
|
+
Returns: {
|
|
21194
|
+
absence_date: string;
|
|
21195
|
+
end_time: string;
|
|
21196
|
+
full_day: boolean;
|
|
21197
|
+
kind: string;
|
|
21198
|
+
monteur_id: string;
|
|
21199
|
+
start_time: string;
|
|
21200
|
+
}[];
|
|
21201
|
+
};
|
|
21202
|
+
list_monteurs: {
|
|
21203
|
+
Args: never;
|
|
21204
|
+
Returns: {
|
|
21205
|
+
avatar_url: string;
|
|
21206
|
+
display_name: string;
|
|
21207
|
+
email: string;
|
|
21208
|
+
id: string;
|
|
21209
|
+
}[];
|
|
21210
|
+
};
|
|
20359
21211
|
list_my_planning_items: {
|
|
20360
21212
|
Args: {
|
|
20361
21213
|
_from: string;
|
|
@@ -20767,6 +21619,23 @@ export type Database = {
|
|
|
20767
21619
|
};
|
|
20768
21620
|
Returns: string;
|
|
20769
21621
|
};
|
|
21622
|
+
logistics_floriday_finish_push_v2: {
|
|
21623
|
+
Args: {
|
|
21624
|
+
_error?: string;
|
|
21625
|
+
_error_code?: string;
|
|
21626
|
+
_fulfillment_order_id?: string;
|
|
21627
|
+
_gateway_status?: number;
|
|
21628
|
+
_id: string;
|
|
21629
|
+
_max_age_hours?: number;
|
|
21630
|
+
_max_attempts?: number;
|
|
21631
|
+
_ok: boolean;
|
|
21632
|
+
_permanent?: boolean;
|
|
21633
|
+
_response?: Json;
|
|
21634
|
+
_revision: number;
|
|
21635
|
+
_sent_hash?: string;
|
|
21636
|
+
};
|
|
21637
|
+
Returns: string;
|
|
21638
|
+
};
|
|
20770
21639
|
logistics_floriday_prune_pushes: {
|
|
20771
21640
|
Args: {
|
|
20772
21641
|
_days?: number;
|
|
@@ -21309,6 +22178,13 @@ export type Database = {
|
|
|
21309
22178
|
isSetofReturn: false;
|
|
21310
22179
|
};
|
|
21311
22180
|
};
|
|
22181
|
+
pick_cleanup_maintenance: {
|
|
22182
|
+
Args: {
|
|
22183
|
+
_heartbeat_hours?: number;
|
|
22184
|
+
_log_days?: number;
|
|
22185
|
+
};
|
|
22186
|
+
Returns: Json;
|
|
22187
|
+
};
|
|
21312
22188
|
pick_complete_print: {
|
|
21313
22189
|
Args: {
|
|
21314
22190
|
_printer_id: string;
|
|
@@ -21360,6 +22236,14 @@ export type Database = {
|
|
|
21360
22236
|
Args: never;
|
|
21361
22237
|
Returns: string;
|
|
21362
22238
|
};
|
|
22239
|
+
pick_day_counts: {
|
|
22240
|
+
Args: {
|
|
22241
|
+
_pick_day?: string;
|
|
22242
|
+
_screen_id?: string;
|
|
22243
|
+
_station_id?: string;
|
|
22244
|
+
};
|
|
22245
|
+
Returns: Json;
|
|
22246
|
+
};
|
|
21363
22247
|
pick_document_layout_data: {
|
|
21364
22248
|
Args: {
|
|
21365
22249
|
_layout_id: string;
|
|
@@ -21397,6 +22281,14 @@ export type Database = {
|
|
|
21397
22281
|
};
|
|
21398
22282
|
Returns: undefined;
|
|
21399
22283
|
};
|
|
22284
|
+
pick_reprint_document: {
|
|
22285
|
+
Args: {
|
|
22286
|
+
_queue_item_id: string;
|
|
22287
|
+
_session_id: string;
|
|
22288
|
+
_throttle_seconds?: number;
|
|
22289
|
+
};
|
|
22290
|
+
Returns: string;
|
|
22291
|
+
};
|
|
21400
22292
|
pick_reset_print: {
|
|
21401
22293
|
Args: {
|
|
21402
22294
|
_queue_item_id: string;
|
|
@@ -21462,6 +22354,12 @@ export type Database = {
|
|
|
21462
22354
|
};
|
|
21463
22355
|
Returns: string;
|
|
21464
22356
|
};
|
|
22357
|
+
pick_sync_queue_throttled: {
|
|
22358
|
+
Args: {
|
|
22359
|
+
_min_seconds?: number;
|
|
22360
|
+
};
|
|
22361
|
+
Returns: Json;
|
|
22362
|
+
};
|
|
21465
22363
|
pickstation_get_orders_raw: {
|
|
21466
22364
|
Args: never;
|
|
21467
22365
|
Returns: Json;
|
|
@@ -21523,6 +22421,37 @@ export type Database = {
|
|
|
21523
22421
|
};
|
|
21524
22422
|
Returns: undefined;
|
|
21525
22423
|
};
|
|
22424
|
+
quote_create_from_source: {
|
|
22425
|
+
Args: {
|
|
22426
|
+
_payload?: Json;
|
|
22427
|
+
_source_id: string;
|
|
22428
|
+
_source_type: string;
|
|
22429
|
+
};
|
|
22430
|
+
Returns: string;
|
|
22431
|
+
};
|
|
22432
|
+
quote_get_billable_lines: {
|
|
22433
|
+
Args: {
|
|
22434
|
+
_quotation_id: string;
|
|
22435
|
+
};
|
|
22436
|
+
Returns: Json;
|
|
22437
|
+
};
|
|
22438
|
+
quote_get_summary: {
|
|
22439
|
+
Args: {
|
|
22440
|
+
_quotation_id: string;
|
|
22441
|
+
};
|
|
22442
|
+
Returns: Json;
|
|
22443
|
+
};
|
|
22444
|
+
quote_list_packages: {
|
|
22445
|
+
Args: never;
|
|
22446
|
+
Returns: Json;
|
|
22447
|
+
};
|
|
22448
|
+
quote_list_sources: {
|
|
22449
|
+
Args: {
|
|
22450
|
+
_limit?: number;
|
|
22451
|
+
_source_type?: string;
|
|
22452
|
+
};
|
|
22453
|
+
Returns: Json;
|
|
22454
|
+
};
|
|
21526
22455
|
recompute_all_reserved_stock: {
|
|
21527
22456
|
Args: never;
|
|
21528
22457
|
Returns: undefined;
|
|
@@ -21576,6 +22505,12 @@ export type Database = {
|
|
|
21576
22505
|
};
|
|
21577
22506
|
Returns: boolean;
|
|
21578
22507
|
};
|
|
22508
|
+
release_stale_order_invoice_links: {
|
|
22509
|
+
Args: {
|
|
22510
|
+
_minutes?: number;
|
|
22511
|
+
};
|
|
22512
|
+
Returns: number;
|
|
22513
|
+
};
|
|
21579
22514
|
reorder_customer_price_groups: {
|
|
21580
22515
|
Args: {
|
|
21581
22516
|
_ids: string[];
|
|
@@ -22058,6 +22993,12 @@ export type Database = {
|
|
|
22058
22993
|
};
|
|
22059
22994
|
Returns: undefined;
|
|
22060
22995
|
};
|
|
22996
|
+
sync_sick_time_off: {
|
|
22997
|
+
Args: {
|
|
22998
|
+
_period_id: string;
|
|
22999
|
+
};
|
|
23000
|
+
Returns: number;
|
|
23001
|
+
};
|
|
22061
23002
|
trade_item_stock_duplicates: {
|
|
22062
23003
|
Args: never;
|
|
22063
23004
|
Returns: {
|
|
@@ -22088,6 +23029,20 @@ export type Database = {
|
|
|
22088
23029
|
};
|
|
22089
23030
|
Returns: undefined;
|
|
22090
23031
|
};
|
|
23032
|
+
twinfield_deactivate_connection: {
|
|
23033
|
+
Args: {
|
|
23034
|
+
p_connection_id: string;
|
|
23035
|
+
p_user_id: string;
|
|
23036
|
+
};
|
|
23037
|
+
Returns: Json;
|
|
23038
|
+
};
|
|
23039
|
+
twinfield_handle_administration_change: {
|
|
23040
|
+
Args: {
|
|
23041
|
+
_administration_code: string;
|
|
23042
|
+
_user_id: string;
|
|
23043
|
+
};
|
|
23044
|
+
Returns: undefined;
|
|
23045
|
+
};
|
|
22091
23046
|
twinfield_prune_push_queue: {
|
|
22092
23047
|
Args: never;
|
|
22093
23048
|
Returns: number;
|
|
@@ -22107,10 +23062,11 @@ export type Database = {
|
|
|
22107
23062
|
p_company_name?: string;
|
|
22108
23063
|
p_environment: string;
|
|
22109
23064
|
p_office_code?: string;
|
|
23065
|
+
p_reset_sync?: boolean;
|
|
22110
23066
|
p_status?: string;
|
|
22111
23067
|
p_user_id: string;
|
|
22112
23068
|
};
|
|
22113
|
-
Returns:
|
|
23069
|
+
Returns: Json;
|
|
22114
23070
|
};
|
|
22115
23071
|
upsert_auto_fulfillment_log: {
|
|
22116
23072
|
Args: {
|
|
@@ -22131,6 +23087,26 @@ export type Database = {
|
|
|
22131
23087
|
Args: never;
|
|
22132
23088
|
Returns: string;
|
|
22133
23089
|
};
|
|
23090
|
+
wo_create_from_source: {
|
|
23091
|
+
Args: {
|
|
23092
|
+
_payload?: Json;
|
|
23093
|
+
_source_id: string;
|
|
23094
|
+
_source_type: string;
|
|
23095
|
+
};
|
|
23096
|
+
Returns: string;
|
|
23097
|
+
};
|
|
23098
|
+
wo_get_billable_lines: {
|
|
23099
|
+
Args: {
|
|
23100
|
+
_work_order_id: string;
|
|
23101
|
+
};
|
|
23102
|
+
Returns: Json;
|
|
23103
|
+
};
|
|
23104
|
+
wo_get_summary: {
|
|
23105
|
+
Args: {
|
|
23106
|
+
_work_order_id: string;
|
|
23107
|
+
};
|
|
23108
|
+
Returns: Json;
|
|
23109
|
+
};
|
|
22134
23110
|
};
|
|
22135
23111
|
Enums: {
|
|
22136
23112
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|