@flowselections/logistiek-engine 1.0.11 → 1.0.12
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 +1125 -189
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1125 -189
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/moduleClient.d.ts +1125 -189
- package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1152 -185
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/floridayDocuments.functions.d.ts +3135 -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 +1125 -189
- package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
- package/dist-lib/lib/floridayPush.server.d.ts.map +1 -1
- package/dist-lib/lib/floridayPush.server.js +48 -6
- package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +5225 -545
- package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +2090 -218
- package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1125 -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: {
|
|
@@ -19082,6 +19717,119 @@ export type Database = {
|
|
|
19082
19717
|
};
|
|
19083
19718
|
Relationships: [];
|
|
19084
19719
|
};
|
|
19720
|
+
uren_facturen: {
|
|
19721
|
+
Row: {
|
|
19722
|
+
created_at: string | null;
|
|
19723
|
+
created_by: string | null;
|
|
19724
|
+
customer_id: string | null;
|
|
19725
|
+
customer_name: string | null;
|
|
19726
|
+
id: string | null;
|
|
19727
|
+
invoice_number: string | null;
|
|
19728
|
+
note: string | null;
|
|
19729
|
+
status: string | null;
|
|
19730
|
+
total_excl_cents: number | null;
|
|
19731
|
+
total_incl_cents: number | null;
|
|
19732
|
+
updated_at: string | null;
|
|
19733
|
+
vat_cents: number | null;
|
|
19734
|
+
vat_percentage: number | null;
|
|
19735
|
+
werkbon_id: string | null;
|
|
19736
|
+
};
|
|
19737
|
+
Insert: {
|
|
19738
|
+
created_at?: string | null;
|
|
19739
|
+
created_by?: string | null;
|
|
19740
|
+
customer_id?: string | null;
|
|
19741
|
+
customer_name?: string | null;
|
|
19742
|
+
id?: string | null;
|
|
19743
|
+
invoice_number?: string | null;
|
|
19744
|
+
note?: string | null;
|
|
19745
|
+
status?: string | null;
|
|
19746
|
+
total_excl_cents?: number | null;
|
|
19747
|
+
total_incl_cents?: number | null;
|
|
19748
|
+
updated_at?: string | null;
|
|
19749
|
+
vat_cents?: number | null;
|
|
19750
|
+
vat_percentage?: number | null;
|
|
19751
|
+
werkbon_id?: never;
|
|
19752
|
+
};
|
|
19753
|
+
Update: {
|
|
19754
|
+
created_at?: string | null;
|
|
19755
|
+
created_by?: string | null;
|
|
19756
|
+
customer_id?: string | null;
|
|
19757
|
+
customer_name?: string | null;
|
|
19758
|
+
id?: string | null;
|
|
19759
|
+
invoice_number?: string | null;
|
|
19760
|
+
note?: string | null;
|
|
19761
|
+
status?: string | null;
|
|
19762
|
+
total_excl_cents?: number | null;
|
|
19763
|
+
total_incl_cents?: number | null;
|
|
19764
|
+
updated_at?: string | null;
|
|
19765
|
+
vat_cents?: number | null;
|
|
19766
|
+
vat_percentage?: number | null;
|
|
19767
|
+
werkbon_id?: never;
|
|
19768
|
+
};
|
|
19769
|
+
Relationships: [
|
|
19770
|
+
{
|
|
19771
|
+
foreignKeyName: "invoices_customer_id_fkey";
|
|
19772
|
+
columns: ["customer_id"];
|
|
19773
|
+
isOneToOne: false;
|
|
19774
|
+
referencedRelation: "itk_customers";
|
|
19775
|
+
referencedColumns: ["id"];
|
|
19776
|
+
}
|
|
19777
|
+
];
|
|
19778
|
+
};
|
|
19779
|
+
uren_factuur_regels: {
|
|
19780
|
+
Row: {
|
|
19781
|
+
created_at: string | null;
|
|
19782
|
+
description: string | null;
|
|
19783
|
+
factuur_id: string | null;
|
|
19784
|
+
id: string | null;
|
|
19785
|
+
kind: string | null;
|
|
19786
|
+
quantity: number | null;
|
|
19787
|
+
sort_order: number | null;
|
|
19788
|
+
total_cents: number | null;
|
|
19789
|
+
unit: string | null;
|
|
19790
|
+
unit_price_cents: number | null;
|
|
19791
|
+
};
|
|
19792
|
+
Insert: {
|
|
19793
|
+
created_at?: string | null;
|
|
19794
|
+
description?: string | null;
|
|
19795
|
+
factuur_id?: string | null;
|
|
19796
|
+
id?: string | null;
|
|
19797
|
+
kind?: string | null;
|
|
19798
|
+
quantity?: number | null;
|
|
19799
|
+
sort_order?: number | null;
|
|
19800
|
+
total_cents?: number | null;
|
|
19801
|
+
unit?: string | null;
|
|
19802
|
+
unit_price_cents?: number | null;
|
|
19803
|
+
};
|
|
19804
|
+
Update: {
|
|
19805
|
+
created_at?: string | null;
|
|
19806
|
+
description?: string | null;
|
|
19807
|
+
factuur_id?: string | null;
|
|
19808
|
+
id?: string | null;
|
|
19809
|
+
kind?: string | null;
|
|
19810
|
+
quantity?: number | null;
|
|
19811
|
+
sort_order?: number | null;
|
|
19812
|
+
total_cents?: number | null;
|
|
19813
|
+
unit?: string | null;
|
|
19814
|
+
unit_price_cents?: number | null;
|
|
19815
|
+
};
|
|
19816
|
+
Relationships: [
|
|
19817
|
+
{
|
|
19818
|
+
foreignKeyName: "invoice_items_invoice_id_fkey";
|
|
19819
|
+
columns: ["factuur_id"];
|
|
19820
|
+
isOneToOne: false;
|
|
19821
|
+
referencedRelation: "invoices";
|
|
19822
|
+
referencedColumns: ["id"];
|
|
19823
|
+
},
|
|
19824
|
+
{
|
|
19825
|
+
foreignKeyName: "invoice_items_invoice_id_fkey";
|
|
19826
|
+
columns: ["factuur_id"];
|
|
19827
|
+
isOneToOne: false;
|
|
19828
|
+
referencedRelation: "uren_facturen";
|
|
19829
|
+
referencedColumns: ["id"];
|
|
19830
|
+
}
|
|
19831
|
+
];
|
|
19832
|
+
};
|
|
19085
19833
|
v_external_customers_exact: {
|
|
19086
19834
|
Row: {
|
|
19087
19835
|
account_number: string | null;
|
|
@@ -19597,6 +20345,7 @@ export type Database = {
|
|
|
19597
20345
|
gebruiker_id: string | null;
|
|
19598
20346
|
gebruiker_naam: string;
|
|
19599
20347
|
gestart_op: string | null;
|
|
20348
|
+
herkomst: string | null;
|
|
19600
20349
|
id: string;
|
|
19601
20350
|
idempotentie_sleutel: string | null;
|
|
19602
20351
|
is_herprint: boolean;
|
|
@@ -19717,6 +20466,7 @@ export type Database = {
|
|
|
19717
20466
|
gebruiker_id: string | null;
|
|
19718
20467
|
gebruiker_naam: string;
|
|
19719
20468
|
gestart_op: string | null;
|
|
20469
|
+
herkomst: string | null;
|
|
19720
20470
|
id: string;
|
|
19721
20471
|
idempotentie_sleutel: string | null;
|
|
19722
20472
|
is_herprint: boolean;
|
|
@@ -19987,6 +20737,13 @@ export type Database = {
|
|
|
19987
20737
|
};
|
|
19988
20738
|
Returns: string;
|
|
19989
20739
|
};
|
|
20740
|
+
employee_day_hours: {
|
|
20741
|
+
Args: {
|
|
20742
|
+
_day: string;
|
|
20743
|
+
_employee_id: string;
|
|
20744
|
+
};
|
|
20745
|
+
Returns: number;
|
|
20746
|
+
};
|
|
19990
20747
|
enqueue_cart_replan_if_unlocked: {
|
|
19991
20748
|
Args: {
|
|
19992
20749
|
p_order_id: string;
|
|
@@ -20311,6 +21068,46 @@ export type Database = {
|
|
|
20311
21068
|
Args: never;
|
|
20312
21069
|
Returns: boolean;
|
|
20313
21070
|
};
|
|
21071
|
+
invoice_create_from_source: {
|
|
21072
|
+
Args: {
|
|
21073
|
+
_payload?: Json;
|
|
21074
|
+
_source_id: string;
|
|
21075
|
+
_source_type: string;
|
|
21076
|
+
};
|
|
21077
|
+
Returns: Json;
|
|
21078
|
+
};
|
|
21079
|
+
invoice_get_billable_lines: {
|
|
21080
|
+
Args: {
|
|
21081
|
+
_invoice_id: string;
|
|
21082
|
+
};
|
|
21083
|
+
Returns: Json;
|
|
21084
|
+
};
|
|
21085
|
+
invoice_get_for_source: {
|
|
21086
|
+
Args: {
|
|
21087
|
+
_source_id: string;
|
|
21088
|
+
_source_type: string;
|
|
21089
|
+
};
|
|
21090
|
+
Returns: Json;
|
|
21091
|
+
};
|
|
21092
|
+
invoice_get_summary: {
|
|
21093
|
+
Args: {
|
|
21094
|
+
_invoice_id: string;
|
|
21095
|
+
};
|
|
21096
|
+
Returns: Json;
|
|
21097
|
+
};
|
|
21098
|
+
invoice_list_sources: {
|
|
21099
|
+
Args: {
|
|
21100
|
+
_limit?: number;
|
|
21101
|
+
_source_type?: string;
|
|
21102
|
+
};
|
|
21103
|
+
Returns: Json;
|
|
21104
|
+
};
|
|
21105
|
+
invoice_recalc_totals: {
|
|
21106
|
+
Args: {
|
|
21107
|
+
_invoice_id: string;
|
|
21108
|
+
};
|
|
21109
|
+
Returns: Json;
|
|
21110
|
+
};
|
|
20314
21111
|
is_authenticated: {
|
|
20315
21112
|
Args: never;
|
|
20316
21113
|
Returns: boolean;
|
|
@@ -20340,6 +21137,19 @@ export type Database = {
|
|
|
20340
21137
|
Args: never;
|
|
20341
21138
|
Returns: boolean;
|
|
20342
21139
|
};
|
|
21140
|
+
itk_offerte_naar_werkbon: {
|
|
21141
|
+
Args: {
|
|
21142
|
+
_offerte_id: string;
|
|
21143
|
+
};
|
|
21144
|
+
Returns: string;
|
|
21145
|
+
};
|
|
21146
|
+
itk_offerte_restant_mandaat: {
|
|
21147
|
+
Args: {
|
|
21148
|
+
_exclude_offerte_id?: string;
|
|
21149
|
+
_werkbon_id: string;
|
|
21150
|
+
};
|
|
21151
|
+
Returns: number;
|
|
21152
|
+
};
|
|
20343
21153
|
jwt_has_role: {
|
|
20344
21154
|
Args: {
|
|
20345
21155
|
_role: Database["public"]["Enums"]["app_role"];
|
|
@@ -20350,12 +21160,45 @@ export type Database = {
|
|
|
20350
21160
|
Args: never;
|
|
20351
21161
|
Returns: {
|
|
20352
21162
|
avatar_url: string;
|
|
21163
|
+
color: string;
|
|
20353
21164
|
display_name: string;
|
|
20354
21165
|
email: string;
|
|
21166
|
+
hours_fri: number;
|
|
21167
|
+
hours_mon: number;
|
|
21168
|
+
hours_thu: number;
|
|
21169
|
+
hours_tue: number;
|
|
21170
|
+
hours_wed: number;
|
|
20355
21171
|
id: string;
|
|
21172
|
+
is_active: boolean;
|
|
21173
|
+
leave_balance_hours: number;
|
|
21174
|
+
persnr: string;
|
|
21175
|
+
phone: string;
|
|
20356
21176
|
roles: string[];
|
|
20357
21177
|
}[];
|
|
20358
21178
|
};
|
|
21179
|
+
list_monteur_absences: {
|
|
21180
|
+
Args: {
|
|
21181
|
+
_from: string;
|
|
21182
|
+
_to: string;
|
|
21183
|
+
};
|
|
21184
|
+
Returns: {
|
|
21185
|
+
absence_date: string;
|
|
21186
|
+
end_time: string;
|
|
21187
|
+
full_day: boolean;
|
|
21188
|
+
kind: string;
|
|
21189
|
+
monteur_id: string;
|
|
21190
|
+
start_time: string;
|
|
21191
|
+
}[];
|
|
21192
|
+
};
|
|
21193
|
+
list_monteurs: {
|
|
21194
|
+
Args: never;
|
|
21195
|
+
Returns: {
|
|
21196
|
+
avatar_url: string;
|
|
21197
|
+
display_name: string;
|
|
21198
|
+
email: string;
|
|
21199
|
+
id: string;
|
|
21200
|
+
}[];
|
|
21201
|
+
};
|
|
20359
21202
|
list_my_planning_items: {
|
|
20360
21203
|
Args: {
|
|
20361
21204
|
_from: string;
|
|
@@ -20767,6 +21610,23 @@ export type Database = {
|
|
|
20767
21610
|
};
|
|
20768
21611
|
Returns: string;
|
|
20769
21612
|
};
|
|
21613
|
+
logistics_floriday_finish_push_v2: {
|
|
21614
|
+
Args: {
|
|
21615
|
+
_error?: string;
|
|
21616
|
+
_error_code?: string;
|
|
21617
|
+
_fulfillment_order_id?: string;
|
|
21618
|
+
_gateway_status?: number;
|
|
21619
|
+
_id: string;
|
|
21620
|
+
_max_age_hours?: number;
|
|
21621
|
+
_max_attempts?: number;
|
|
21622
|
+
_ok: boolean;
|
|
21623
|
+
_permanent?: boolean;
|
|
21624
|
+
_response?: Json;
|
|
21625
|
+
_revision: number;
|
|
21626
|
+
_sent_hash?: string;
|
|
21627
|
+
};
|
|
21628
|
+
Returns: string;
|
|
21629
|
+
};
|
|
20770
21630
|
logistics_floriday_prune_pushes: {
|
|
20771
21631
|
Args: {
|
|
20772
21632
|
_days?: number;
|
|
@@ -21309,6 +22169,13 @@ export type Database = {
|
|
|
21309
22169
|
isSetofReturn: false;
|
|
21310
22170
|
};
|
|
21311
22171
|
};
|
|
22172
|
+
pick_cleanup_maintenance: {
|
|
22173
|
+
Args: {
|
|
22174
|
+
_heartbeat_hours?: number;
|
|
22175
|
+
_log_days?: number;
|
|
22176
|
+
};
|
|
22177
|
+
Returns: Json;
|
|
22178
|
+
};
|
|
21312
22179
|
pick_complete_print: {
|
|
21313
22180
|
Args: {
|
|
21314
22181
|
_printer_id: string;
|
|
@@ -21360,6 +22227,14 @@ export type Database = {
|
|
|
21360
22227
|
Args: never;
|
|
21361
22228
|
Returns: string;
|
|
21362
22229
|
};
|
|
22230
|
+
pick_day_counts: {
|
|
22231
|
+
Args: {
|
|
22232
|
+
_pick_day?: string;
|
|
22233
|
+
_screen_id?: string;
|
|
22234
|
+
_station_id?: string;
|
|
22235
|
+
};
|
|
22236
|
+
Returns: Json;
|
|
22237
|
+
};
|
|
21363
22238
|
pick_document_layout_data: {
|
|
21364
22239
|
Args: {
|
|
21365
22240
|
_layout_id: string;
|
|
@@ -21397,6 +22272,14 @@ export type Database = {
|
|
|
21397
22272
|
};
|
|
21398
22273
|
Returns: undefined;
|
|
21399
22274
|
};
|
|
22275
|
+
pick_reprint_document: {
|
|
22276
|
+
Args: {
|
|
22277
|
+
_queue_item_id: string;
|
|
22278
|
+
_session_id: string;
|
|
22279
|
+
_throttle_seconds?: number;
|
|
22280
|
+
};
|
|
22281
|
+
Returns: string;
|
|
22282
|
+
};
|
|
21400
22283
|
pick_reset_print: {
|
|
21401
22284
|
Args: {
|
|
21402
22285
|
_queue_item_id: string;
|
|
@@ -21462,6 +22345,12 @@ export type Database = {
|
|
|
21462
22345
|
};
|
|
21463
22346
|
Returns: string;
|
|
21464
22347
|
};
|
|
22348
|
+
pick_sync_queue_throttled: {
|
|
22349
|
+
Args: {
|
|
22350
|
+
_min_seconds?: number;
|
|
22351
|
+
};
|
|
22352
|
+
Returns: Json;
|
|
22353
|
+
};
|
|
21465
22354
|
pickstation_get_orders_raw: {
|
|
21466
22355
|
Args: never;
|
|
21467
22356
|
Returns: Json;
|
|
@@ -21523,6 +22412,37 @@ export type Database = {
|
|
|
21523
22412
|
};
|
|
21524
22413
|
Returns: undefined;
|
|
21525
22414
|
};
|
|
22415
|
+
quote_create_from_source: {
|
|
22416
|
+
Args: {
|
|
22417
|
+
_payload?: Json;
|
|
22418
|
+
_source_id: string;
|
|
22419
|
+
_source_type: string;
|
|
22420
|
+
};
|
|
22421
|
+
Returns: string;
|
|
22422
|
+
};
|
|
22423
|
+
quote_get_billable_lines: {
|
|
22424
|
+
Args: {
|
|
22425
|
+
_quotation_id: string;
|
|
22426
|
+
};
|
|
22427
|
+
Returns: Json;
|
|
22428
|
+
};
|
|
22429
|
+
quote_get_summary: {
|
|
22430
|
+
Args: {
|
|
22431
|
+
_quotation_id: string;
|
|
22432
|
+
};
|
|
22433
|
+
Returns: Json;
|
|
22434
|
+
};
|
|
22435
|
+
quote_list_packages: {
|
|
22436
|
+
Args: never;
|
|
22437
|
+
Returns: Json;
|
|
22438
|
+
};
|
|
22439
|
+
quote_list_sources: {
|
|
22440
|
+
Args: {
|
|
22441
|
+
_limit?: number;
|
|
22442
|
+
_source_type?: string;
|
|
22443
|
+
};
|
|
22444
|
+
Returns: Json;
|
|
22445
|
+
};
|
|
21526
22446
|
recompute_all_reserved_stock: {
|
|
21527
22447
|
Args: never;
|
|
21528
22448
|
Returns: undefined;
|
|
@@ -21576,6 +22496,12 @@ export type Database = {
|
|
|
21576
22496
|
};
|
|
21577
22497
|
Returns: boolean;
|
|
21578
22498
|
};
|
|
22499
|
+
release_stale_order_invoice_links: {
|
|
22500
|
+
Args: {
|
|
22501
|
+
_minutes?: number;
|
|
22502
|
+
};
|
|
22503
|
+
Returns: number;
|
|
22504
|
+
};
|
|
21579
22505
|
reorder_customer_price_groups: {
|
|
21580
22506
|
Args: {
|
|
21581
22507
|
_ids: string[];
|
|
@@ -22058,6 +22984,12 @@ export type Database = {
|
|
|
22058
22984
|
};
|
|
22059
22985
|
Returns: undefined;
|
|
22060
22986
|
};
|
|
22987
|
+
sync_sick_time_off: {
|
|
22988
|
+
Args: {
|
|
22989
|
+
_period_id: string;
|
|
22990
|
+
};
|
|
22991
|
+
Returns: number;
|
|
22992
|
+
};
|
|
22061
22993
|
trade_item_stock_duplicates: {
|
|
22062
22994
|
Args: never;
|
|
22063
22995
|
Returns: {
|
|
@@ -22088,6 +23020,20 @@ export type Database = {
|
|
|
22088
23020
|
};
|
|
22089
23021
|
Returns: undefined;
|
|
22090
23022
|
};
|
|
23023
|
+
twinfield_deactivate_connection: {
|
|
23024
|
+
Args: {
|
|
23025
|
+
p_connection_id: string;
|
|
23026
|
+
p_user_id: string;
|
|
23027
|
+
};
|
|
23028
|
+
Returns: Json;
|
|
23029
|
+
};
|
|
23030
|
+
twinfield_handle_administration_change: {
|
|
23031
|
+
Args: {
|
|
23032
|
+
_administration_code: string;
|
|
23033
|
+
_user_id: string;
|
|
23034
|
+
};
|
|
23035
|
+
Returns: undefined;
|
|
23036
|
+
};
|
|
22091
23037
|
twinfield_prune_push_queue: {
|
|
22092
23038
|
Args: never;
|
|
22093
23039
|
Returns: number;
|
|
@@ -22107,10 +23053,11 @@ export type Database = {
|
|
|
22107
23053
|
p_company_name?: string;
|
|
22108
23054
|
p_environment: string;
|
|
22109
23055
|
p_office_code?: string;
|
|
23056
|
+
p_reset_sync?: boolean;
|
|
22110
23057
|
p_status?: string;
|
|
22111
23058
|
p_user_id: string;
|
|
22112
23059
|
};
|
|
22113
|
-
Returns:
|
|
23060
|
+
Returns: Json;
|
|
22114
23061
|
};
|
|
22115
23062
|
upsert_auto_fulfillment_log: {
|
|
22116
23063
|
Args: {
|
|
@@ -22131,6 +23078,26 @@ export type Database = {
|
|
|
22131
23078
|
Args: never;
|
|
22132
23079
|
Returns: string;
|
|
22133
23080
|
};
|
|
23081
|
+
wo_create_from_source: {
|
|
23082
|
+
Args: {
|
|
23083
|
+
_payload?: Json;
|
|
23084
|
+
_source_id: string;
|
|
23085
|
+
_source_type: string;
|
|
23086
|
+
};
|
|
23087
|
+
Returns: string;
|
|
23088
|
+
};
|
|
23089
|
+
wo_get_billable_lines: {
|
|
23090
|
+
Args: {
|
|
23091
|
+
_work_order_id: string;
|
|
23092
|
+
};
|
|
23093
|
+
Returns: Json;
|
|
23094
|
+
};
|
|
23095
|
+
wo_get_summary: {
|
|
23096
|
+
Args: {
|
|
23097
|
+
_work_order_id: string;
|
|
23098
|
+
};
|
|
23099
|
+
Returns: Json;
|
|
23100
|
+
};
|
|
22134
23101
|
};
|
|
22135
23102
|
Enums: {
|
|
22136
23103
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|