@flowselections/logistiek-engine 1.0.10 → 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.
Files changed (28) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1125 -189
  3. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  4. package/dist-lib/integrations/supabase/client.d.ts +158 -1515
  5. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  6. package/dist-lib/integrations/supabase/client.server.d.ts +1125 -189
  7. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/moduleClient.d.ts +1125 -189
  9. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/types.d.ts +1152 -185
  11. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  12. package/dist-lib/lib/floridayDocuments.functions.d.ts +3135 -327
  13. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  14. package/dist-lib/lib/floridayDocuments.server.d.ts +14 -1
  15. package/dist-lib/lib/floridayDocuments.server.d.ts.map +1 -1
  16. package/dist-lib/lib/floridayDocuments.server.js +1 -1
  17. package/dist-lib/lib/floridayPush.functions.d.ts +1125 -189
  18. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -1
  20. package/dist-lib/lib/floridayPush.server.js +48 -6
  21. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +5255 -550
  22. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +2090 -218
  24. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1125 -189
  26. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/modulePrompts.js +970 -970
  28. package/package.json +2 -2
@@ -2759,6 +2759,42 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
2759
2759
  };
2760
2760
  Relationships: [];
2761
2761
  };
2762
+ document_bronregels: {
2763
+ Row: {
2764
+ bron: string;
2765
+ created_at: string;
2766
+ documenttype: string;
2767
+ herkomst: string;
2768
+ id: string;
2769
+ layout_id: string | null;
2770
+ updated_at: string;
2771
+ };
2772
+ Insert: {
2773
+ bron?: string;
2774
+ created_at?: string;
2775
+ documenttype: string;
2776
+ herkomst: string;
2777
+ id?: string;
2778
+ layout_id?: string | null;
2779
+ updated_at?: string;
2780
+ };
2781
+ Update: {
2782
+ bron?: string;
2783
+ created_at?: string;
2784
+ documenttype?: string;
2785
+ herkomst?: string;
2786
+ id?: string;
2787
+ layout_id?: string | null;
2788
+ updated_at?: string;
2789
+ };
2790
+ Relationships: [{
2791
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2792
+ columns: ["layout_id"];
2793
+ isOneToOne: false;
2794
+ referencedRelation: "document_layouts";
2795
+ referencedColumns: ["id"];
2796
+ }];
2797
+ };
2762
2798
  document_formaat_printers: {
2763
2799
  Row: {
2764
2800
  created_at: string;
@@ -3036,6 +3072,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
3036
3072
  Row: {
3037
3073
  actief: boolean;
3038
3074
  breedte_mm: number;
3075
+ bron: string;
3039
3076
  config: import("../integrations/supabase/types").Json;
3040
3077
  created_at: string;
3041
3078
  created_by: string | null;
@@ -3053,12 +3090,14 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
3053
3090
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3054
3091
  page_settings: import("../integrations/supabase/types").Json;
3055
3092
  papierformaat: string;
3093
+ systeem: boolean;
3056
3094
  thumbnail_url: string | null;
3057
3095
  updated_at: string;
3058
3096
  };
3059
3097
  Insert: {
3060
3098
  actief?: boolean;
3061
3099
  breedte_mm?: number;
3100
+ bron?: string;
3062
3101
  config?: import("../integrations/supabase/types").Json;
3063
3102
  created_at?: string;
3064
3103
  created_by?: string | null;
@@ -3076,12 +3115,14 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
3076
3115
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3077
3116
  page_settings?: import("../integrations/supabase/types").Json;
3078
3117
  papierformaat?: string;
3118
+ systeem?: boolean;
3079
3119
  thumbnail_url?: string | null;
3080
3120
  updated_at?: string;
3081
3121
  };
3082
3122
  Update: {
3083
3123
  actief?: boolean;
3084
3124
  breedte_mm?: number;
3125
+ bron?: string;
3085
3126
  config?: import("../integrations/supabase/types").Json;
3086
3127
  created_at?: string;
3087
3128
  created_by?: string | null;
@@ -3099,11 +3140,48 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
3099
3140
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3100
3141
  page_settings?: import("../integrations/supabase/types").Json;
3101
3142
  papierformaat?: string;
3143
+ systeem?: boolean;
3102
3144
  thumbnail_url?: string | null;
3103
3145
  updated_at?: string;
3104
3146
  };
3105
3147
  Relationships: [];
3106
3148
  };
3149
+ document_werkplek_printers: {
3150
+ Row: {
3151
+ created_at: string;
3152
+ documenttype: string;
3153
+ id: string;
3154
+ papierformaat: string | null;
3155
+ printer_id: string | null;
3156
+ updated_at: string;
3157
+ werkplek: string;
3158
+ };
3159
+ Insert: {
3160
+ created_at?: string;
3161
+ documenttype: string;
3162
+ id?: string;
3163
+ papierformaat?: string | null;
3164
+ printer_id?: string | null;
3165
+ updated_at?: string;
3166
+ werkplek: string;
3167
+ };
3168
+ Update: {
3169
+ created_at?: string;
3170
+ documenttype?: string;
3171
+ id?: string;
3172
+ papierformaat?: string | null;
3173
+ printer_id?: string | null;
3174
+ updated_at?: string;
3175
+ werkplek?: string;
3176
+ };
3177
+ Relationships: [{
3178
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3179
+ columns: ["printer_id"];
3180
+ isOneToOne: false;
3181
+ referencedRelation: "printers";
3182
+ referencedColumns: ["id"];
3183
+ }];
3184
+ };
3107
3185
  email_auth_connections: {
3108
3186
  Row: {
3109
3187
  access_token_encrypted: string | null;
@@ -7349,8 +7427,63 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
7349
7427
  };
7350
7428
  Relationships: [];
7351
7429
  };
7430
+ invoice_items: {
7431
+ Row: {
7432
+ created_at: string;
7433
+ description: string;
7434
+ id: string;
7435
+ invoice_id: string;
7436
+ kind: string;
7437
+ quantity: number;
7438
+ sort_order: number;
7439
+ source_line_ref: string | null;
7440
+ total_cents: number;
7441
+ unit: string;
7442
+ unit_price_cents: number;
7443
+ };
7444
+ Insert: {
7445
+ created_at?: string;
7446
+ description?: string;
7447
+ id?: string;
7448
+ invoice_id: string;
7449
+ kind?: string;
7450
+ quantity?: number;
7451
+ sort_order?: number;
7452
+ source_line_ref?: string | null;
7453
+ total_cents?: number;
7454
+ unit?: string;
7455
+ unit_price_cents?: number;
7456
+ };
7457
+ Update: {
7458
+ created_at?: string;
7459
+ description?: string;
7460
+ id?: string;
7461
+ invoice_id?: string;
7462
+ kind?: string;
7463
+ quantity?: number;
7464
+ sort_order?: number;
7465
+ source_line_ref?: string | null;
7466
+ total_cents?: number;
7467
+ unit?: string;
7468
+ unit_price_cents?: number;
7469
+ };
7470
+ Relationships: [{
7471
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7472
+ columns: ["invoice_id"];
7473
+ isOneToOne: false;
7474
+ referencedRelation: "invoices";
7475
+ referencedColumns: ["id"];
7476
+ }, {
7477
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7478
+ columns: ["invoice_id"];
7479
+ isOneToOne: false;
7480
+ referencedRelation: "uren_facturen";
7481
+ referencedColumns: ["id"];
7482
+ }];
7483
+ };
7352
7484
  invoice_post_idempotency: {
7353
7485
  Row: {
7486
+ administration_code: string;
7354
7487
  client_request_id: string;
7355
7488
  completed_at: string | null;
7356
7489
  created_at: string;
@@ -7360,6 +7493,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
7360
7493
  user_id: string;
7361
7494
  };
7362
7495
  Insert: {
7496
+ administration_code?: string;
7363
7497
  client_request_id: string;
7364
7498
  completed_at?: string | null;
7365
7499
  created_at?: string;
@@ -7369,6 +7503,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
7369
7503
  user_id: string;
7370
7504
  };
7371
7505
  Update: {
7506
+ administration_code?: string;
7372
7507
  client_request_id?: string;
7373
7508
  completed_at?: string | null;
7374
7509
  created_at?: string;
@@ -7574,6 +7709,75 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
7574
7709
  };
7575
7710
  Relationships: [];
7576
7711
  };
7712
+ invoices: {
7713
+ Row: {
7714
+ created_at: string;
7715
+ created_by: string | null;
7716
+ customer_id: string | null;
7717
+ customer_name: string | null;
7718
+ due_date: string | null;
7719
+ id: string;
7720
+ invoice_date: string;
7721
+ invoice_number: string | null;
7722
+ note: string | null;
7723
+ source_number: string | null;
7724
+ source_ref: string | null;
7725
+ source_type: string;
7726
+ status: string;
7727
+ subtotal_cents: number;
7728
+ total_cents: number;
7729
+ updated_at: string;
7730
+ vat_cents: number;
7731
+ vat_rate: number;
7732
+ };
7733
+ Insert: {
7734
+ created_at?: string;
7735
+ created_by?: string | null;
7736
+ customer_id?: string | null;
7737
+ customer_name?: string | null;
7738
+ due_date?: string | null;
7739
+ id?: string;
7740
+ invoice_date?: string;
7741
+ invoice_number?: string | null;
7742
+ note?: string | null;
7743
+ source_number?: string | null;
7744
+ source_ref?: string | null;
7745
+ source_type?: string;
7746
+ status?: string;
7747
+ subtotal_cents?: number;
7748
+ total_cents?: number;
7749
+ updated_at?: string;
7750
+ vat_cents?: number;
7751
+ vat_rate?: number;
7752
+ };
7753
+ Update: {
7754
+ created_at?: string;
7755
+ created_by?: string | null;
7756
+ customer_id?: string | null;
7757
+ customer_name?: string | null;
7758
+ due_date?: string | null;
7759
+ id?: string;
7760
+ invoice_date?: string;
7761
+ invoice_number?: string | null;
7762
+ note?: string | null;
7763
+ source_number?: string | null;
7764
+ source_ref?: string | null;
7765
+ source_type?: string;
7766
+ status?: string;
7767
+ subtotal_cents?: number;
7768
+ total_cents?: number;
7769
+ updated_at?: string;
7770
+ vat_cents?: number;
7771
+ vat_rate?: number;
7772
+ };
7773
+ Relationships: [{
7774
+ foreignKeyName: "invoices_customer_id_fkey";
7775
+ columns: ["customer_id"];
7776
+ isOneToOne: false;
7777
+ referencedRelation: "itk_customers";
7778
+ referencedColumns: ["id"];
7779
+ }];
7780
+ };
7577
7781
  itk_contact_persons: {
7578
7782
  Row: {
7579
7783
  created_at: string;
@@ -7769,6 +7973,258 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
7769
7973
  };
7770
7974
  Relationships: [];
7771
7975
  };
7976
+ itk_offerte_events: {
7977
+ Row: {
7978
+ created_at: string;
7979
+ event_type: string;
7980
+ id: string;
7981
+ metadata: import("../integrations/supabase/types").Json;
7982
+ offerte_id: string;
7983
+ omschrijving: string | null;
7984
+ user_id: string | null;
7985
+ };
7986
+ Insert: {
7987
+ created_at?: string;
7988
+ event_type: string;
7989
+ id?: string;
7990
+ metadata?: import("../integrations/supabase/types").Json;
7991
+ offerte_id: string;
7992
+ omschrijving?: string | null;
7993
+ user_id?: string | null;
7994
+ };
7995
+ Update: {
7996
+ created_at?: string;
7997
+ event_type?: string;
7998
+ id?: string;
7999
+ metadata?: import("../integrations/supabase/types").Json;
8000
+ offerte_id?: string;
8001
+ omschrijving?: string | null;
8002
+ user_id?: string | null;
8003
+ };
8004
+ Relationships: [{
8005
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8006
+ columns: ["offerte_id"];
8007
+ isOneToOne: false;
8008
+ referencedRelation: "itk_offertes";
8009
+ referencedColumns: ["id"];
8010
+ }];
8011
+ };
8012
+ itk_offerte_regels: {
8013
+ Row: {
8014
+ created_at: string;
8015
+ id: string;
8016
+ line_total_cents: number;
8017
+ offerte_id: string;
8018
+ omschrijving: string;
8019
+ package_id: string | null;
8020
+ quantity: number;
8021
+ sort_order: number;
8022
+ source: string;
8023
+ unit_price_cents: number;
8024
+ updated_at: string;
8025
+ };
8026
+ Insert: {
8027
+ created_at?: string;
8028
+ id?: string;
8029
+ line_total_cents?: number;
8030
+ offerte_id: string;
8031
+ omschrijving?: string;
8032
+ package_id?: string | null;
8033
+ quantity?: number;
8034
+ sort_order?: number;
8035
+ source?: string;
8036
+ unit_price_cents?: number;
8037
+ updated_at?: string;
8038
+ };
8039
+ Update: {
8040
+ created_at?: string;
8041
+ id?: string;
8042
+ line_total_cents?: number;
8043
+ offerte_id?: string;
8044
+ omschrijving?: string;
8045
+ package_id?: string | null;
8046
+ quantity?: number;
8047
+ sort_order?: number;
8048
+ source?: string;
8049
+ unit_price_cents?: number;
8050
+ updated_at?: string;
8051
+ };
8052
+ Relationships: [{
8053
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8054
+ columns: ["offerte_id"];
8055
+ isOneToOne: false;
8056
+ referencedRelation: "itk_offertes";
8057
+ referencedColumns: ["id"];
8058
+ }, {
8059
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
8060
+ columns: ["package_id"];
8061
+ isOneToOne: false;
8062
+ referencedRelation: "werkbon_packages";
8063
+ referencedColumns: ["id"];
8064
+ }];
8065
+ };
8066
+ itk_offerte_settings: {
8067
+ Row: {
8068
+ auto_convert_binnen_mandaat: boolean;
8069
+ created_at: string;
8070
+ default_geldigheid_dagen: number;
8071
+ default_vat_rate: number;
8072
+ id: string;
8073
+ singleton: boolean;
8074
+ updated_at: string;
8075
+ };
8076
+ Insert: {
8077
+ auto_convert_binnen_mandaat?: boolean;
8078
+ created_at?: string;
8079
+ default_geldigheid_dagen?: number;
8080
+ default_vat_rate?: number;
8081
+ id?: string;
8082
+ singleton?: boolean;
8083
+ updated_at?: string;
8084
+ };
8085
+ Update: {
8086
+ auto_convert_binnen_mandaat?: boolean;
8087
+ created_at?: string;
8088
+ default_geldigheid_dagen?: number;
8089
+ default_vat_rate?: number;
8090
+ id?: string;
8091
+ singleton?: boolean;
8092
+ updated_at?: string;
8093
+ };
8094
+ Relationships: [];
8095
+ };
8096
+ itk_offertes: {
8097
+ Row: {
8098
+ ai_generated: boolean;
8099
+ approved_at: string | null;
8100
+ binnen_mandaat: boolean;
8101
+ contact_id: string | null;
8102
+ converted_at: string | null;
8103
+ created_at: string;
8104
+ created_by: string | null;
8105
+ customer_id: string | null;
8106
+ follow_up_werkbon_id: string | null;
8107
+ id: string;
8108
+ jaar: number;
8109
+ mandaat_restant_cents: number;
8110
+ notities: string | null;
8111
+ offerte_number: string | null;
8112
+ omschrijving: string;
8113
+ rejected_at: string | null;
8114
+ sent_at: string | null;
8115
+ source_number: string | null;
8116
+ source_ref: string | null;
8117
+ source_type: string;
8118
+ status: string;
8119
+ subtotal_cents: number;
8120
+ total_cents: number;
8121
+ updated_at: string;
8122
+ valid_until: string | null;
8123
+ vat_cents: number;
8124
+ vat_rate: number;
8125
+ viewed_at: string | null;
8126
+ volgnummer: number | null;
8127
+ werkbon_id: string | null;
8128
+ work_location_id: string | null;
8129
+ };
8130
+ Insert: {
8131
+ ai_generated?: boolean;
8132
+ approved_at?: string | null;
8133
+ binnen_mandaat?: boolean;
8134
+ contact_id?: string | null;
8135
+ converted_at?: string | null;
8136
+ created_at?: string;
8137
+ created_by?: string | null;
8138
+ customer_id?: string | null;
8139
+ follow_up_werkbon_id?: string | null;
8140
+ id?: string;
8141
+ jaar?: number;
8142
+ mandaat_restant_cents?: number;
8143
+ notities?: string | null;
8144
+ offerte_number?: string | null;
8145
+ omschrijving?: string;
8146
+ rejected_at?: string | null;
8147
+ sent_at?: string | null;
8148
+ source_number?: string | null;
8149
+ source_ref?: string | null;
8150
+ source_type?: string;
8151
+ status?: string;
8152
+ subtotal_cents?: number;
8153
+ total_cents?: number;
8154
+ updated_at?: string;
8155
+ valid_until?: string | null;
8156
+ vat_cents?: number;
8157
+ vat_rate?: number;
8158
+ viewed_at?: string | null;
8159
+ volgnummer?: number | null;
8160
+ werkbon_id?: string | null;
8161
+ work_location_id?: string | null;
8162
+ };
8163
+ Update: {
8164
+ ai_generated?: boolean;
8165
+ approved_at?: string | null;
8166
+ binnen_mandaat?: boolean;
8167
+ contact_id?: string | null;
8168
+ converted_at?: string | null;
8169
+ created_at?: string;
8170
+ created_by?: string | null;
8171
+ customer_id?: string | null;
8172
+ follow_up_werkbon_id?: string | null;
8173
+ id?: string;
8174
+ jaar?: number;
8175
+ mandaat_restant_cents?: number;
8176
+ notities?: string | null;
8177
+ offerte_number?: string | null;
8178
+ omschrijving?: string;
8179
+ rejected_at?: string | null;
8180
+ sent_at?: string | null;
8181
+ source_number?: string | null;
8182
+ source_ref?: string | null;
8183
+ source_type?: string;
8184
+ status?: string;
8185
+ subtotal_cents?: number;
8186
+ total_cents?: number;
8187
+ updated_at?: string;
8188
+ valid_until?: string | null;
8189
+ vat_cents?: number;
8190
+ vat_rate?: number;
8191
+ viewed_at?: string | null;
8192
+ volgnummer?: number | null;
8193
+ werkbon_id?: string | null;
8194
+ work_location_id?: string | null;
8195
+ };
8196
+ Relationships: [{
8197
+ foreignKeyName: "itk_offertes_contact_id_fkey";
8198
+ columns: ["contact_id"];
8199
+ isOneToOne: false;
8200
+ referencedRelation: "itk_contact_persons";
8201
+ referencedColumns: ["id"];
8202
+ }, {
8203
+ foreignKeyName: "itk_offertes_customer_id_fkey";
8204
+ columns: ["customer_id"];
8205
+ isOneToOne: false;
8206
+ referencedRelation: "itk_customers";
8207
+ referencedColumns: ["id"];
8208
+ }, {
8209
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
8210
+ columns: ["follow_up_werkbon_id"];
8211
+ isOneToOne: false;
8212
+ referencedRelation: "werkbonnen";
8213
+ referencedColumns: ["id"];
8214
+ }, {
8215
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8216
+ columns: ["werkbon_id"];
8217
+ isOneToOne: false;
8218
+ referencedRelation: "werkbonnen";
8219
+ referencedColumns: ["id"];
8220
+ }, {
8221
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8222
+ columns: ["work_location_id"];
8223
+ isOneToOne: false;
8224
+ referencedRelation: "itk_work_locations";
8225
+ referencedColumns: ["id"];
8226
+ }];
8227
+ };
7772
8228
  itk_work_locations: {
7773
8229
  Row: {
7774
8230
  city: string | null;
@@ -8669,6 +9125,9 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
8669
9125
  id: string;
8670
9126
  last_error: string | null;
8671
9127
  last_error_at: string | null;
9128
+ last_error_code: string | null;
9129
+ last_gateway_status: number | null;
9130
+ last_response: import("../integrations/supabase/types").Json | null;
8672
9131
  last_sent_hash: string | null;
8673
9132
  locked_by: string | null;
8674
9133
  locked_until: string | null;
@@ -8689,6 +9148,9 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
8689
9148
  id?: string;
8690
9149
  last_error?: string | null;
8691
9150
  last_error_at?: string | null;
9151
+ last_error_code?: string | null;
9152
+ last_gateway_status?: number | null;
9153
+ last_response?: import("../integrations/supabase/types").Json | null;
8692
9154
  last_sent_hash?: string | null;
8693
9155
  locked_by?: string | null;
8694
9156
  locked_until?: string | null;
@@ -8709,6 +9171,9 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
8709
9171
  id?: string;
8710
9172
  last_error?: string | null;
8711
9173
  last_error_at?: string | null;
9174
+ last_error_code?: string | null;
9175
+ last_gateway_status?: number | null;
9176
+ last_response?: import("../integrations/supabase/types").Json | null;
8712
9177
  last_sent_hash?: string | null;
8713
9178
  locked_by?: string | null;
8714
9179
  locked_until?: string | null;
@@ -10142,6 +10607,63 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
10142
10607
  referencedColumns: ["id"];
10143
10608
  }];
10144
10609
  };
10610
+ medewerker_details: {
10611
+ Row: {
10612
+ color: string | null;
10613
+ created_at: string;
10614
+ hours_fri: number | null;
10615
+ hours_mon: number | null;
10616
+ hours_thu: number | null;
10617
+ hours_tue: number | null;
10618
+ hours_wed: number | null;
10619
+ id: string;
10620
+ is_active: boolean;
10621
+ leave_balance_hours: number;
10622
+ persnr: string | null;
10623
+ phone: string | null;
10624
+ profile_id: string;
10625
+ updated_at: string;
10626
+ };
10627
+ Insert: {
10628
+ color?: string | null;
10629
+ created_at?: string;
10630
+ hours_fri?: number | null;
10631
+ hours_mon?: number | null;
10632
+ hours_thu?: number | null;
10633
+ hours_tue?: number | null;
10634
+ hours_wed?: number | null;
10635
+ id?: string;
10636
+ is_active?: boolean;
10637
+ leave_balance_hours?: number;
10638
+ persnr?: string | null;
10639
+ phone?: string | null;
10640
+ profile_id: string;
10641
+ updated_at?: string;
10642
+ };
10643
+ Update: {
10644
+ color?: string | null;
10645
+ created_at?: string;
10646
+ hours_fri?: number | null;
10647
+ hours_mon?: number | null;
10648
+ hours_thu?: number | null;
10649
+ hours_tue?: number | null;
10650
+ hours_wed?: number | null;
10651
+ id?: string;
10652
+ is_active?: boolean;
10653
+ leave_balance_hours?: number;
10654
+ persnr?: string | null;
10655
+ phone?: string | null;
10656
+ profile_id?: string;
10657
+ updated_at?: string;
10658
+ };
10659
+ Relationships: [{
10660
+ foreignKeyName: "medewerker_details_profile_id_fkey";
10661
+ columns: ["profile_id"];
10662
+ isOneToOne: true;
10663
+ referencedRelation: "profiles";
10664
+ referencedColumns: ["id"];
10665
+ }];
10666
+ };
10145
10667
  module_features: {
10146
10668
  Row: {
10147
10669
  created_at: string;
@@ -10205,6 +10727,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
10205
10727
  enforce: boolean;
10206
10728
  is_active: boolean;
10207
10729
  last_seen_at: string;
10730
+ missing_count: number;
10208
10731
  module_id: string;
10209
10732
  name: string;
10210
10733
  shell_id: string | null;
@@ -10215,6 +10738,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
10215
10738
  enforce?: boolean;
10216
10739
  is_active?: boolean;
10217
10740
  last_seen_at?: string;
10741
+ missing_count?: number;
10218
10742
  module_id: string;
10219
10743
  name: string;
10220
10744
  shell_id?: string | null;
@@ -10225,6 +10749,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
10225
10749
  enforce?: boolean;
10226
10750
  is_active?: boolean;
10227
10751
  last_seen_at?: string;
10752
+ missing_count?: number;
10228
10753
  module_id?: string;
10229
10754
  name?: string;
10230
10755
  shell_id?: string | null;
@@ -11224,6 +11749,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
11224
11749
  };
11225
11750
  order_invoice_links: {
11226
11751
  Row: {
11752
+ administration_code: string | null;
11227
11753
  attempts: number;
11228
11754
  created_at: string;
11229
11755
  error_message: string | null;
@@ -11236,6 +11762,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
11236
11762
  updated_at: string;
11237
11763
  };
11238
11764
  Insert: {
11765
+ administration_code?: string | null;
11239
11766
  attempts?: number;
11240
11767
  created_at?: string;
11241
11768
  error_message?: string | null;
@@ -11248,6 +11775,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
11248
11775
  updated_at?: string;
11249
11776
  };
11250
11777
  Update: {
11778
+ administration_code?: string | null;
11251
11779
  attempts?: number;
11252
11780
  created_at?: string;
11253
11781
  error_message?: string | null;
@@ -11435,6 +11963,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
11435
11963
  orders: {
11436
11964
  Row: {
11437
11965
  buffer_id: string | null;
11966
+ cancel_reason: string | null;
11967
+ cancelled_at: string | null;
11438
11968
  created_at: string;
11439
11969
  custom_fields: import("../integrations/supabase/types").Json;
11440
11970
  customer_id: string | null;
@@ -11457,6 +11987,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
11457
11987
  };
11458
11988
  Insert: {
11459
11989
  buffer_id?: string | null;
11990
+ cancel_reason?: string | null;
11991
+ cancelled_at?: string | null;
11460
11992
  created_at?: string;
11461
11993
  custom_fields?: import("../integrations/supabase/types").Json;
11462
11994
  customer_id?: string | null;
@@ -11479,6 +12011,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
11479
12011
  };
11480
12012
  Update: {
11481
12013
  buffer_id?: string | null;
12014
+ cancel_reason?: string | null;
12015
+ cancelled_at?: string | null;
11482
12016
  created_at?: string;
11483
12017
  custom_fields?: import("../integrations/supabase/types").Json;
11484
12018
  customer_id?: string | null;
@@ -12407,6 +12941,27 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
12407
12941
  referencedColumns: ["id"];
12408
12942
  }];
12409
12943
  };
12944
+ pick_sync_state: {
12945
+ Row: {
12946
+ id: boolean;
12947
+ last_cleanup_at: string | null;
12948
+ last_sync_at: string | null;
12949
+ updated_at: string;
12950
+ };
12951
+ Insert: {
12952
+ id?: boolean;
12953
+ last_cleanup_at?: string | null;
12954
+ last_sync_at?: string | null;
12955
+ updated_at?: string;
12956
+ };
12957
+ Update: {
12958
+ id?: boolean;
12959
+ last_cleanup_at?: string | null;
12960
+ last_sync_at?: string | null;
12961
+ updated_at?: string;
12962
+ };
12963
+ Relationships: [];
12964
+ };
12410
12965
  pick_task_document_types: {
12411
12966
  Row: {
12412
12967
  created_at: string;
@@ -12689,6 +13244,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
12689
13244
  gebruiker_id: string | null;
12690
13245
  gebruiker_naam: string;
12691
13246
  gestart_op: string | null;
13247
+ herkomst: string | null;
12692
13248
  id: string;
12693
13249
  idempotentie_sleutel: string | null;
12694
13250
  is_herprint: boolean;
@@ -12718,6 +13274,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
12718
13274
  gebruiker_id?: string | null;
12719
13275
  gebruiker_naam?: string;
12720
13276
  gestart_op?: string | null;
13277
+ herkomst?: string | null;
12721
13278
  id?: string;
12722
13279
  idempotentie_sleutel?: string | null;
12723
13280
  is_herprint?: boolean;
@@ -12747,6 +13304,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
12747
13304
  gebruiker_id?: string | null;
12748
13305
  gebruiker_naam?: string;
12749
13306
  gestart_op?: string | null;
13307
+ herkomst?: string | null;
12750
13308
  id?: string;
12751
13309
  idempotentie_sleutel?: string | null;
12752
13310
  is_herprint?: boolean;
@@ -13541,6 +14099,66 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
13541
14099
  };
13542
14100
  Relationships: [];
13543
14101
  };
14102
+ profile_modules: {
14103
+ Row: {
14104
+ created_at: string;
14105
+ id: string;
14106
+ module_id: string;
14107
+ profile_id: string;
14108
+ };
14109
+ Insert: {
14110
+ created_at?: string;
14111
+ id?: string;
14112
+ module_id: string;
14113
+ profile_id: string;
14114
+ };
14115
+ Update: {
14116
+ created_at?: string;
14117
+ id?: string;
14118
+ module_id?: string;
14119
+ profile_id?: string;
14120
+ };
14121
+ Relationships: [{
14122
+ foreignKeyName: "profile_modules_profile_id_fkey";
14123
+ columns: ["profile_id"];
14124
+ isOneToOne: false;
14125
+ referencedRelation: "profiles_org";
14126
+ referencedColumns: ["id"];
14127
+ }];
14128
+ };
14129
+ profile_roles: {
14130
+ Row: {
14131
+ created_at: string;
14132
+ id: string;
14133
+ profile_id: string;
14134
+ role_id: string;
14135
+ };
14136
+ Insert: {
14137
+ created_at?: string;
14138
+ id?: string;
14139
+ profile_id: string;
14140
+ role_id: string;
14141
+ };
14142
+ Update: {
14143
+ created_at?: string;
14144
+ id?: string;
14145
+ profile_id?: string;
14146
+ role_id?: string;
14147
+ };
14148
+ Relationships: [{
14149
+ foreignKeyName: "profile_roles_profile_id_fkey";
14150
+ columns: ["profile_id"];
14151
+ isOneToOne: false;
14152
+ referencedRelation: "profiles_org";
14153
+ referencedColumns: ["id"];
14154
+ }, {
14155
+ foreignKeyName: "profile_roles_role_id_fkey";
14156
+ columns: ["role_id"];
14157
+ isOneToOne: false;
14158
+ referencedRelation: "roles";
14159
+ referencedColumns: ["id"];
14160
+ }];
14161
+ };
13544
14162
  profiles: {
13545
14163
  Row: {
13546
14164
  address: string | null;
@@ -13586,6 +14204,39 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
13586
14204
  referencedColumns: ["id"];
13587
14205
  }];
13588
14206
  };
14207
+ profiles_org: {
14208
+ Row: {
14209
+ created_at: string;
14210
+ id: string;
14211
+ is_default: boolean;
14212
+ name: string;
14213
+ tenant_id: string | null;
14214
+ updated_at: string;
14215
+ };
14216
+ Insert: {
14217
+ created_at?: string;
14218
+ id?: string;
14219
+ is_default?: boolean;
14220
+ name: string;
14221
+ tenant_id?: string | null;
14222
+ updated_at?: string;
14223
+ };
14224
+ Update: {
14225
+ created_at?: string;
14226
+ id?: string;
14227
+ is_default?: boolean;
14228
+ name?: string;
14229
+ tenant_id?: string | null;
14230
+ updated_at?: string;
14231
+ };
14232
+ Relationships: [{
14233
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14234
+ columns: ["tenant_id"];
14235
+ isOneToOne: false;
14236
+ referencedRelation: "tenants";
14237
+ referencedColumns: ["id"];
14238
+ }];
14239
+ };
13589
14240
  projects: {
13590
14241
  Row: {
13591
14242
  contact_name: string | null;
@@ -14760,6 +15411,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
14760
15411
  type: string;
14761
15412
  updated_at: string;
14762
15413
  vereist_medewerker: boolean;
15414
+ werkplek: string | null;
14763
15415
  };
14764
15416
  Insert: {
14765
15417
  actief?: boolean;
@@ -14773,6 +15425,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
14773
15425
  type?: string;
14774
15426
  updated_at?: string;
14775
15427
  vereist_medewerker?: boolean;
15428
+ werkplek?: string | null;
14776
15429
  };
14777
15430
  Update: {
14778
15431
  actief?: boolean;
@@ -14786,9 +15439,46 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
14786
15439
  type?: string;
14787
15440
  updated_at?: string;
14788
15441
  vereist_medewerker?: boolean;
15442
+ werkplek?: string | null;
14789
15443
  };
14790
15444
  Relationships: [];
14791
15445
  };
15446
+ sick_periods: {
15447
+ Row: {
15448
+ created_at: string;
15449
+ employee_id: string;
15450
+ end_date: string | null;
15451
+ id: string;
15452
+ notes: string | null;
15453
+ start_date: string;
15454
+ updated_at: string;
15455
+ };
15456
+ Insert: {
15457
+ created_at?: string;
15458
+ employee_id: string;
15459
+ end_date?: string | null;
15460
+ id?: string;
15461
+ notes?: string | null;
15462
+ start_date: string;
15463
+ updated_at?: string;
15464
+ };
15465
+ Update: {
15466
+ created_at?: string;
15467
+ employee_id?: string;
15468
+ end_date?: string | null;
15469
+ id?: string;
15470
+ notes?: string | null;
15471
+ start_date?: string;
15472
+ updated_at?: string;
15473
+ };
15474
+ Relationships: [{
15475
+ foreignKeyName: "sick_periods_employee_id_fkey";
15476
+ columns: ["employee_id"];
15477
+ isOneToOne: false;
15478
+ referencedRelation: "profiles";
15479
+ referencedColumns: ["id"];
15480
+ }];
15481
+ };
14792
15482
  sidebar_config: {
14793
15483
  Row: {
14794
15484
  id: string;
@@ -15619,12 +16309,16 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
15619
16309
  company_name: string | null;
15620
16310
  connected_at: string | null;
15621
16311
  created_at: string;
16312
+ disconnected_at: string | null;
15622
16313
  environment: string;
15623
16314
  id: string;
16315
+ initial_sync_completed_at: string | null;
16316
+ initial_sync_started_at: string | null;
15624
16317
  is_active: boolean;
15625
16318
  label: string | null;
15626
16319
  office_code: string | null;
15627
16320
  redirect_uri: string | null;
16321
+ superseded_at: string | null;
15628
16322
  updated_at: string;
15629
16323
  user_id: string;
15630
16324
  };
@@ -15635,12 +16329,16 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
15635
16329
  company_name?: string | null;
15636
16330
  connected_at?: string | null;
15637
16331
  created_at?: string;
16332
+ disconnected_at?: string | null;
15638
16333
  environment: string;
15639
16334
  id?: string;
16335
+ initial_sync_completed_at?: string | null;
16336
+ initial_sync_started_at?: string | null;
15640
16337
  is_active?: boolean;
15641
16338
  label?: string | null;
15642
16339
  office_code?: string | null;
15643
16340
  redirect_uri?: string | null;
16341
+ superseded_at?: string | null;
15644
16342
  updated_at?: string;
15645
16343
  user_id: string;
15646
16344
  };
@@ -15651,12 +16349,16 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
15651
16349
  company_name?: string | null;
15652
16350
  connected_at?: string | null;
15653
16351
  created_at?: string;
16352
+ disconnected_at?: string | null;
15654
16353
  environment?: string;
15655
16354
  id?: string;
16355
+ initial_sync_completed_at?: string | null;
16356
+ initial_sync_started_at?: string | null;
15656
16357
  is_active?: boolean;
15657
16358
  label?: string | null;
15658
16359
  office_code?: string | null;
15659
16360
  redirect_uri?: string | null;
16361
+ superseded_at?: string | null;
15660
16362
  updated_at?: string;
15661
16363
  user_id?: string;
15662
16364
  };
@@ -15716,6 +16418,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
15716
16418
  twinfield_customers: {
15717
16419
  Row: {
15718
16420
  address: string | null;
16421
+ administration_code: string;
15719
16422
  city: string | null;
15720
16423
  country: string | null;
15721
16424
  created_at: string;
@@ -15735,6 +16438,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
15735
16438
  };
15736
16439
  Insert: {
15737
16440
  address?: string | null;
16441
+ administration_code?: string;
15738
16442
  city?: string | null;
15739
16443
  country?: string | null;
15740
16444
  created_at?: string;
@@ -15754,6 +16458,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
15754
16458
  };
15755
16459
  Update: {
15756
16460
  address?: string | null;
16461
+ administration_code?: string;
15757
16462
  city?: string | null;
15758
16463
  country?: string | null;
15759
16464
  created_at?: string;
@@ -15967,7 +16672,9 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
15967
16672
  };
15968
16673
  twinfield_invoice_settings: {
15969
16674
  Row: {
16675
+ administration_code: string | null;
15970
16676
  auto_invoice_enabled: boolean;
16677
+ auto_invoice_start_date: string | null;
15971
16678
  auto_invoice_trigger_statuses: string[];
15972
16679
  created_at: string;
15973
16680
  debtor_gl_account: string;
@@ -15981,15 +16688,19 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
15981
16688
  invoice_enabled_fo: boolean;
15982
16689
  invoice_enabled_ho: boolean;
15983
16690
  invoice_enabled_mo: boolean;
16691
+ needs_review: boolean;
15984
16692
  payment_gl_account: string;
15985
16693
  payment_journal_code: string;
16694
+ settings_confirmed_at: string | null;
15986
16695
  updated_at: string;
15987
16696
  user_id: string;
15988
16697
  vat_code_eu_reverse: string | null;
15989
16698
  vat_code_export: string | null;
15990
16699
  };
15991
16700
  Insert: {
16701
+ administration_code?: string | null;
15992
16702
  auto_invoice_enabled?: boolean;
16703
+ auto_invoice_start_date?: string | null;
15993
16704
  auto_invoice_trigger_statuses?: string[];
15994
16705
  created_at?: string;
15995
16706
  debtor_gl_account?: string;
@@ -16003,15 +16714,19 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
16003
16714
  invoice_enabled_fo?: boolean;
16004
16715
  invoice_enabled_ho?: boolean;
16005
16716
  invoice_enabled_mo?: boolean;
16717
+ needs_review?: boolean;
16006
16718
  payment_gl_account?: string;
16007
16719
  payment_journal_code?: string;
16720
+ settings_confirmed_at?: string | null;
16008
16721
  updated_at?: string;
16009
16722
  user_id: string;
16010
16723
  vat_code_eu_reverse?: string | null;
16011
16724
  vat_code_export?: string | null;
16012
16725
  };
16013
16726
  Update: {
16727
+ administration_code?: string | null;
16014
16728
  auto_invoice_enabled?: boolean;
16729
+ auto_invoice_start_date?: string | null;
16015
16730
  auto_invoice_trigger_statuses?: string[];
16016
16731
  created_at?: string;
16017
16732
  debtor_gl_account?: string;
@@ -16025,8 +16740,10 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
16025
16740
  invoice_enabled_fo?: boolean;
16026
16741
  invoice_enabled_ho?: boolean;
16027
16742
  invoice_enabled_mo?: boolean;
16743
+ needs_review?: boolean;
16028
16744
  payment_gl_account?: string;
16029
16745
  payment_journal_code?: string;
16746
+ settings_confirmed_at?: string | null;
16030
16747
  updated_at?: string;
16031
16748
  user_id?: string;
16032
16749
  vat_code_eu_reverse?: string | null;
@@ -16631,114 +17348,6 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
16631
17348
  };
16632
17349
  Relationships: [];
16633
17350
  };
16634
- uren_facturen: {
16635
- Row: {
16636
- created_at: string;
16637
- created_by: string | null;
16638
- customer_id: string | null;
16639
- customer_name: string | null;
16640
- id: string;
16641
- invoice_number: string | null;
16642
- note: string | null;
16643
- status: string;
16644
- total_excl_cents: number;
16645
- total_incl_cents: number;
16646
- updated_at: string;
16647
- vat_cents: number;
16648
- vat_percentage: number;
16649
- werkbon_id: string | null;
16650
- };
16651
- Insert: {
16652
- created_at?: string;
16653
- created_by?: string | null;
16654
- customer_id?: string | null;
16655
- customer_name?: string | null;
16656
- id?: string;
16657
- invoice_number?: string | null;
16658
- note?: string | null;
16659
- status?: string;
16660
- total_excl_cents?: number;
16661
- total_incl_cents?: number;
16662
- updated_at?: string;
16663
- vat_cents?: number;
16664
- vat_percentage?: number;
16665
- werkbon_id?: string | null;
16666
- };
16667
- Update: {
16668
- created_at?: string;
16669
- created_by?: string | null;
16670
- customer_id?: string | null;
16671
- customer_name?: string | null;
16672
- id?: string;
16673
- invoice_number?: string | null;
16674
- note?: string | null;
16675
- status?: string;
16676
- total_excl_cents?: number;
16677
- total_incl_cents?: number;
16678
- updated_at?: string;
16679
- vat_cents?: number;
16680
- vat_percentage?: number;
16681
- werkbon_id?: string | null;
16682
- };
16683
- Relationships: [{
16684
- foreignKeyName: "uren_facturen_customer_id_fkey";
16685
- columns: ["customer_id"];
16686
- isOneToOne: false;
16687
- referencedRelation: "itk_customers";
16688
- referencedColumns: ["id"];
16689
- }, {
16690
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
16691
- columns: ["werkbon_id"];
16692
- isOneToOne: true;
16693
- referencedRelation: "werkbonnen";
16694
- referencedColumns: ["id"];
16695
- }];
16696
- };
16697
- uren_factuur_regels: {
16698
- Row: {
16699
- created_at: string;
16700
- description: string;
16701
- factuur_id: string;
16702
- id: string;
16703
- kind: string | null;
16704
- quantity: number;
16705
- sort_order: number;
16706
- total_cents: number;
16707
- unit: string;
16708
- unit_price_cents: number;
16709
- };
16710
- Insert: {
16711
- created_at?: string;
16712
- description: string;
16713
- factuur_id: string;
16714
- id?: string;
16715
- kind?: string | null;
16716
- quantity?: number;
16717
- sort_order?: number;
16718
- total_cents?: number;
16719
- unit?: string;
16720
- unit_price_cents?: number;
16721
- };
16722
- Update: {
16723
- created_at?: string;
16724
- description?: string;
16725
- factuur_id?: string;
16726
- id?: string;
16727
- kind?: string | null;
16728
- quantity?: number;
16729
- sort_order?: number;
16730
- total_cents?: number;
16731
- unit?: string;
16732
- unit_price_cents?: number;
16733
- };
16734
- Relationships: [{
16735
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
16736
- columns: ["factuur_id"];
16737
- isOneToOne: false;
16738
- referencedRelation: "uren_facturen";
16739
- referencedColumns: ["id"];
16740
- }];
16741
- };
16742
17351
  uren_offerte_regels: {
16743
17352
  Row: {
16744
17353
  created_at: string;
@@ -18578,6 +19187,114 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
18578
19187
  };
18579
19188
  Relationships: [];
18580
19189
  };
19190
+ uren_facturen: {
19191
+ Row: {
19192
+ created_at: string | null;
19193
+ created_by: string | null;
19194
+ customer_id: string | null;
19195
+ customer_name: string | null;
19196
+ id: string | null;
19197
+ invoice_number: string | null;
19198
+ note: string | null;
19199
+ status: string | null;
19200
+ total_excl_cents: number | null;
19201
+ total_incl_cents: number | null;
19202
+ updated_at: string | null;
19203
+ vat_cents: number | null;
19204
+ vat_percentage: number | null;
19205
+ werkbon_id: string | null;
19206
+ };
19207
+ Insert: {
19208
+ created_at?: string | null;
19209
+ created_by?: string | null;
19210
+ customer_id?: string | null;
19211
+ customer_name?: string | null;
19212
+ id?: string | null;
19213
+ invoice_number?: string | null;
19214
+ note?: string | null;
19215
+ status?: string | null;
19216
+ total_excl_cents?: number | null;
19217
+ total_incl_cents?: number | null;
19218
+ updated_at?: string | null;
19219
+ vat_cents?: number | null;
19220
+ vat_percentage?: number | null;
19221
+ werkbon_id?: never;
19222
+ };
19223
+ Update: {
19224
+ created_at?: string | null;
19225
+ created_by?: string | null;
19226
+ customer_id?: string | null;
19227
+ customer_name?: string | null;
19228
+ id?: string | null;
19229
+ invoice_number?: string | null;
19230
+ note?: string | null;
19231
+ status?: string | null;
19232
+ total_excl_cents?: number | null;
19233
+ total_incl_cents?: number | null;
19234
+ updated_at?: string | null;
19235
+ vat_cents?: number | null;
19236
+ vat_percentage?: number | null;
19237
+ werkbon_id?: never;
19238
+ };
19239
+ Relationships: [{
19240
+ foreignKeyName: "invoices_customer_id_fkey";
19241
+ columns: ["customer_id"];
19242
+ isOneToOne: false;
19243
+ referencedRelation: "itk_customers";
19244
+ referencedColumns: ["id"];
19245
+ }];
19246
+ };
19247
+ uren_factuur_regels: {
19248
+ Row: {
19249
+ created_at: string | null;
19250
+ description: string | null;
19251
+ factuur_id: string | null;
19252
+ id: string | null;
19253
+ kind: string | null;
19254
+ quantity: number | null;
19255
+ sort_order: number | null;
19256
+ total_cents: number | null;
19257
+ unit: string | null;
19258
+ unit_price_cents: number | null;
19259
+ };
19260
+ Insert: {
19261
+ created_at?: string | null;
19262
+ description?: string | null;
19263
+ factuur_id?: string | null;
19264
+ id?: string | null;
19265
+ kind?: string | null;
19266
+ quantity?: number | null;
19267
+ sort_order?: number | null;
19268
+ total_cents?: number | null;
19269
+ unit?: string | null;
19270
+ unit_price_cents?: number | null;
19271
+ };
19272
+ Update: {
19273
+ created_at?: string | null;
19274
+ description?: string | null;
19275
+ factuur_id?: string | null;
19276
+ id?: string | null;
19277
+ kind?: string | null;
19278
+ quantity?: number | null;
19279
+ sort_order?: number | null;
19280
+ total_cents?: number | null;
19281
+ unit?: string | null;
19282
+ unit_price_cents?: number | null;
19283
+ };
19284
+ Relationships: [{
19285
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19286
+ columns: ["factuur_id"];
19287
+ isOneToOne: false;
19288
+ referencedRelation: "invoices";
19289
+ referencedColumns: ["id"];
19290
+ }, {
19291
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19292
+ columns: ["factuur_id"];
19293
+ isOneToOne: false;
19294
+ referencedRelation: "uren_facturen";
19295
+ referencedColumns: ["id"];
19296
+ }];
19297
+ };
18581
19298
  v_external_customers_exact: {
18582
19299
  Row: {
18583
19300
  account_number: string | null;
@@ -19083,6 +19800,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
19083
19800
  gebruiker_id: string | null;
19084
19801
  gebruiker_naam: string;
19085
19802
  gestart_op: string | null;
19803
+ herkomst: string | null;
19086
19804
  id: string;
19087
19805
  idempotentie_sleutel: string | null;
19088
19806
  is_herprint: boolean;
@@ -19203,6 +19921,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
19203
19921
  gebruiker_id: string | null;
19204
19922
  gebruiker_naam: string;
19205
19923
  gestart_op: string | null;
19924
+ herkomst: string | null;
19206
19925
  id: string;
19207
19926
  idempotentie_sleutel: string | null;
19208
19927
  is_herprint: boolean;
@@ -19473,6 +20192,13 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
19473
20192
  };
19474
20193
  Returns: string;
19475
20194
  };
20195
+ employee_day_hours: {
20196
+ Args: {
20197
+ _day: string;
20198
+ _employee_id: string;
20199
+ };
20200
+ Returns: number;
20201
+ };
19476
20202
  enqueue_cart_replan_if_unlocked: {
19477
20203
  Args: {
19478
20204
  p_order_id: string;
@@ -19797,6 +20523,46 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
19797
20523
  Args: never;
19798
20524
  Returns: boolean;
19799
20525
  };
20526
+ invoice_create_from_source: {
20527
+ Args: {
20528
+ _payload?: import("../integrations/supabase/types").Json;
20529
+ _source_id: string;
20530
+ _source_type: string;
20531
+ };
20532
+ Returns: import("../integrations/supabase/types").Json;
20533
+ };
20534
+ invoice_get_billable_lines: {
20535
+ Args: {
20536
+ _invoice_id: string;
20537
+ };
20538
+ Returns: import("../integrations/supabase/types").Json;
20539
+ };
20540
+ invoice_get_for_source: {
20541
+ Args: {
20542
+ _source_id: string;
20543
+ _source_type: string;
20544
+ };
20545
+ Returns: import("../integrations/supabase/types").Json;
20546
+ };
20547
+ invoice_get_summary: {
20548
+ Args: {
20549
+ _invoice_id: string;
20550
+ };
20551
+ Returns: import("../integrations/supabase/types").Json;
20552
+ };
20553
+ invoice_list_sources: {
20554
+ Args: {
20555
+ _limit?: number;
20556
+ _source_type?: string;
20557
+ };
20558
+ Returns: import("../integrations/supabase/types").Json;
20559
+ };
20560
+ invoice_recalc_totals: {
20561
+ Args: {
20562
+ _invoice_id: string;
20563
+ };
20564
+ Returns: import("../integrations/supabase/types").Json;
20565
+ };
19800
20566
  is_authenticated: {
19801
20567
  Args: never;
19802
20568
  Returns: boolean;
@@ -19826,6 +20592,19 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
19826
20592
  Args: never;
19827
20593
  Returns: boolean;
19828
20594
  };
20595
+ itk_offerte_naar_werkbon: {
20596
+ Args: {
20597
+ _offerte_id: string;
20598
+ };
20599
+ Returns: string;
20600
+ };
20601
+ itk_offerte_restant_mandaat: {
20602
+ Args: {
20603
+ _exclude_offerte_id?: string;
20604
+ _werkbon_id: string;
20605
+ };
20606
+ Returns: number;
20607
+ };
19829
20608
  jwt_has_role: {
19830
20609
  Args: {
19831
20610
  _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
@@ -19836,12 +20615,45 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
19836
20615
  Args: never;
19837
20616
  Returns: {
19838
20617
  avatar_url: string;
20618
+ color: string;
19839
20619
  display_name: string;
19840
20620
  email: string;
20621
+ hours_fri: number;
20622
+ hours_mon: number;
20623
+ hours_thu: number;
20624
+ hours_tue: number;
20625
+ hours_wed: number;
19841
20626
  id: string;
20627
+ is_active: boolean;
20628
+ leave_balance_hours: number;
20629
+ persnr: string;
20630
+ phone: string;
19842
20631
  roles: string[];
19843
20632
  }[];
19844
20633
  };
20634
+ list_monteur_absences: {
20635
+ Args: {
20636
+ _from: string;
20637
+ _to: string;
20638
+ };
20639
+ Returns: {
20640
+ absence_date: string;
20641
+ end_time: string;
20642
+ full_day: boolean;
20643
+ kind: string;
20644
+ monteur_id: string;
20645
+ start_time: string;
20646
+ }[];
20647
+ };
20648
+ list_monteurs: {
20649
+ Args: never;
20650
+ Returns: {
20651
+ avatar_url: string;
20652
+ display_name: string;
20653
+ email: string;
20654
+ id: string;
20655
+ }[];
20656
+ };
19845
20657
  list_my_planning_items: {
19846
20658
  Args: {
19847
20659
  _from: string;
@@ -20253,6 +21065,23 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
20253
21065
  };
20254
21066
  Returns: string;
20255
21067
  };
21068
+ logistics_floriday_finish_push_v2: {
21069
+ Args: {
21070
+ _error?: string;
21071
+ _error_code?: string;
21072
+ _fulfillment_order_id?: string;
21073
+ _gateway_status?: number;
21074
+ _id: string;
21075
+ _max_age_hours?: number;
21076
+ _max_attempts?: number;
21077
+ _ok: boolean;
21078
+ _permanent?: boolean;
21079
+ _response?: import("../integrations/supabase/types").Json;
21080
+ _revision: number;
21081
+ _sent_hash?: string;
21082
+ };
21083
+ Returns: string;
21084
+ };
20256
21085
  logistics_floriday_prune_pushes: {
20257
21086
  Args: {
20258
21087
  _days?: number;
@@ -20795,6 +21624,13 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
20795
21624
  isSetofReturn: false;
20796
21625
  };
20797
21626
  };
21627
+ pick_cleanup_maintenance: {
21628
+ Args: {
21629
+ _heartbeat_hours?: number;
21630
+ _log_days?: number;
21631
+ };
21632
+ Returns: import("../integrations/supabase/types").Json;
21633
+ };
20798
21634
  pick_complete_print: {
20799
21635
  Args: {
20800
21636
  _printer_id: string;
@@ -20846,6 +21682,14 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
20846
21682
  Args: never;
20847
21683
  Returns: string;
20848
21684
  };
21685
+ pick_day_counts: {
21686
+ Args: {
21687
+ _pick_day?: string;
21688
+ _screen_id?: string;
21689
+ _station_id?: string;
21690
+ };
21691
+ Returns: import("../integrations/supabase/types").Json;
21692
+ };
20849
21693
  pick_document_layout_data: {
20850
21694
  Args: {
20851
21695
  _layout_id: string;
@@ -20883,6 +21727,14 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
20883
21727
  };
20884
21728
  Returns: undefined;
20885
21729
  };
21730
+ pick_reprint_document: {
21731
+ Args: {
21732
+ _queue_item_id: string;
21733
+ _session_id: string;
21734
+ _throttle_seconds?: number;
21735
+ };
21736
+ Returns: string;
21737
+ };
20886
21738
  pick_reset_print: {
20887
21739
  Args: {
20888
21740
  _queue_item_id: string;
@@ -20948,6 +21800,12 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
20948
21800
  };
20949
21801
  Returns: string;
20950
21802
  };
21803
+ pick_sync_queue_throttled: {
21804
+ Args: {
21805
+ _min_seconds?: number;
21806
+ };
21807
+ Returns: import("../integrations/supabase/types").Json;
21808
+ };
20951
21809
  pickstation_get_orders_raw: {
20952
21810
  Args: never;
20953
21811
  Returns: import("../integrations/supabase/types").Json;
@@ -21009,6 +21867,37 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
21009
21867
  };
21010
21868
  Returns: undefined;
21011
21869
  };
21870
+ quote_create_from_source: {
21871
+ Args: {
21872
+ _payload?: import("../integrations/supabase/types").Json;
21873
+ _source_id: string;
21874
+ _source_type: string;
21875
+ };
21876
+ Returns: string;
21877
+ };
21878
+ quote_get_billable_lines: {
21879
+ Args: {
21880
+ _quotation_id: string;
21881
+ };
21882
+ Returns: import("../integrations/supabase/types").Json;
21883
+ };
21884
+ quote_get_summary: {
21885
+ Args: {
21886
+ _quotation_id: string;
21887
+ };
21888
+ Returns: import("../integrations/supabase/types").Json;
21889
+ };
21890
+ quote_list_packages: {
21891
+ Args: never;
21892
+ Returns: import("../integrations/supabase/types").Json;
21893
+ };
21894
+ quote_list_sources: {
21895
+ Args: {
21896
+ _limit?: number;
21897
+ _source_type?: string;
21898
+ };
21899
+ Returns: import("../integrations/supabase/types").Json;
21900
+ };
21012
21901
  recompute_all_reserved_stock: {
21013
21902
  Args: never;
21014
21903
  Returns: undefined;
@@ -21062,6 +21951,12 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
21062
21951
  };
21063
21952
  Returns: boolean;
21064
21953
  };
21954
+ release_stale_order_invoice_links: {
21955
+ Args: {
21956
+ _minutes?: number;
21957
+ };
21958
+ Returns: number;
21959
+ };
21065
21960
  reorder_customer_price_groups: {
21066
21961
  Args: {
21067
21962
  _ids: string[];
@@ -21544,6 +22439,12 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
21544
22439
  };
21545
22440
  Returns: undefined;
21546
22441
  };
22442
+ sync_sick_time_off: {
22443
+ Args: {
22444
+ _period_id: string;
22445
+ };
22446
+ Returns: number;
22447
+ };
21547
22448
  trade_item_stock_duplicates: {
21548
22449
  Args: never;
21549
22450
  Returns: {
@@ -21574,6 +22475,20 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
21574
22475
  };
21575
22476
  Returns: undefined;
21576
22477
  };
22478
+ twinfield_deactivate_connection: {
22479
+ Args: {
22480
+ p_connection_id: string;
22481
+ p_user_id: string;
22482
+ };
22483
+ Returns: import("../integrations/supabase/types").Json;
22484
+ };
22485
+ twinfield_handle_administration_change: {
22486
+ Args: {
22487
+ _administration_code: string;
22488
+ _user_id: string;
22489
+ };
22490
+ Returns: undefined;
22491
+ };
21577
22492
  twinfield_prune_push_queue: {
21578
22493
  Args: never;
21579
22494
  Returns: number;
@@ -21593,10 +22508,11 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
21593
22508
  p_company_name?: string;
21594
22509
  p_environment: string;
21595
22510
  p_office_code?: string;
22511
+ p_reset_sync?: boolean;
21596
22512
  p_status?: string;
21597
22513
  p_user_id: string;
21598
22514
  };
21599
- Returns: string;
22515
+ Returns: import("../integrations/supabase/types").Json;
21600
22516
  };
21601
22517
  upsert_auto_fulfillment_log: {
21602
22518
  Args: {
@@ -21617,6 +22533,26 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
21617
22533
  Args: never;
21618
22534
  Returns: string;
21619
22535
  };
22536
+ wo_create_from_source: {
22537
+ Args: {
22538
+ _payload?: import("../integrations/supabase/types").Json;
22539
+ _source_id: string;
22540
+ _source_type: string;
22541
+ };
22542
+ Returns: string;
22543
+ };
22544
+ wo_get_billable_lines: {
22545
+ Args: {
22546
+ _work_order_id: string;
22547
+ };
22548
+ Returns: import("../integrations/supabase/types").Json;
22549
+ };
22550
+ wo_get_summary: {
22551
+ Args: {
22552
+ _work_order_id: string;
22553
+ };
22554
+ Returns: import("../integrations/supabase/types").Json;
22555
+ };
21620
22556
  };
21621
22557
  Enums: {
21622
22558
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
@@ -24401,6 +25337,42 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
24401
25337
  };
24402
25338
  Relationships: [];
24403
25339
  };
25340
+ document_bronregels: {
25341
+ Row: {
25342
+ bron: string;
25343
+ created_at: string;
25344
+ documenttype: string;
25345
+ herkomst: string;
25346
+ id: string;
25347
+ layout_id: string | null;
25348
+ updated_at: string;
25349
+ };
25350
+ Insert: {
25351
+ bron?: string;
25352
+ created_at?: string;
25353
+ documenttype: string;
25354
+ herkomst: string;
25355
+ id?: string;
25356
+ layout_id?: string | null;
25357
+ updated_at?: string;
25358
+ };
25359
+ Update: {
25360
+ bron?: string;
25361
+ created_at?: string;
25362
+ documenttype?: string;
25363
+ herkomst?: string;
25364
+ id?: string;
25365
+ layout_id?: string | null;
25366
+ updated_at?: string;
25367
+ };
25368
+ Relationships: [{
25369
+ foreignKeyName: "document_bronregels_layout_id_fkey";
25370
+ columns: ["layout_id"];
25371
+ isOneToOne: false;
25372
+ referencedRelation: "document_layouts";
25373
+ referencedColumns: ["id"];
25374
+ }];
25375
+ };
24404
25376
  document_formaat_printers: {
24405
25377
  Row: {
24406
25378
  created_at: string;
@@ -24678,6 +25650,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
24678
25650
  Row: {
24679
25651
  actief: boolean;
24680
25652
  breedte_mm: number;
25653
+ bron: string;
24681
25654
  config: import("../integrations/supabase/types").Json;
24682
25655
  created_at: string;
24683
25656
  created_by: string | null;
@@ -24695,12 +25668,14 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
24695
25668
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
24696
25669
  page_settings: import("../integrations/supabase/types").Json;
24697
25670
  papierformaat: string;
25671
+ systeem: boolean;
24698
25672
  thumbnail_url: string | null;
24699
25673
  updated_at: string;
24700
25674
  };
24701
25675
  Insert: {
24702
25676
  actief?: boolean;
24703
25677
  breedte_mm?: number;
25678
+ bron?: string;
24704
25679
  config?: import("../integrations/supabase/types").Json;
24705
25680
  created_at?: string;
24706
25681
  created_by?: string | null;
@@ -24718,12 +25693,14 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
24718
25693
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
24719
25694
  page_settings?: import("../integrations/supabase/types").Json;
24720
25695
  papierformaat?: string;
25696
+ systeem?: boolean;
24721
25697
  thumbnail_url?: string | null;
24722
25698
  updated_at?: string;
24723
25699
  };
24724
25700
  Update: {
24725
25701
  actief?: boolean;
24726
25702
  breedte_mm?: number;
25703
+ bron?: string;
24727
25704
  config?: import("../integrations/supabase/types").Json;
24728
25705
  created_at?: string;
24729
25706
  created_by?: string | null;
@@ -24741,11 +25718,48 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
24741
25718
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
24742
25719
  page_settings?: import("../integrations/supabase/types").Json;
24743
25720
  papierformaat?: string;
25721
+ systeem?: boolean;
24744
25722
  thumbnail_url?: string | null;
24745
25723
  updated_at?: string;
24746
25724
  };
24747
25725
  Relationships: [];
24748
25726
  };
25727
+ document_werkplek_printers: {
25728
+ Row: {
25729
+ created_at: string;
25730
+ documenttype: string;
25731
+ id: string;
25732
+ papierformaat: string | null;
25733
+ printer_id: string | null;
25734
+ updated_at: string;
25735
+ werkplek: string;
25736
+ };
25737
+ Insert: {
25738
+ created_at?: string;
25739
+ documenttype: string;
25740
+ id?: string;
25741
+ papierformaat?: string | null;
25742
+ printer_id?: string | null;
25743
+ updated_at?: string;
25744
+ werkplek: string;
25745
+ };
25746
+ Update: {
25747
+ created_at?: string;
25748
+ documenttype?: string;
25749
+ id?: string;
25750
+ papierformaat?: string | null;
25751
+ printer_id?: string | null;
25752
+ updated_at?: string;
25753
+ werkplek?: string;
25754
+ };
25755
+ Relationships: [{
25756
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
25757
+ columns: ["printer_id"];
25758
+ isOneToOne: false;
25759
+ referencedRelation: "printers";
25760
+ referencedColumns: ["id"];
25761
+ }];
25762
+ };
24749
25763
  email_auth_connections: {
24750
25764
  Row: {
24751
25765
  access_token_encrypted: string | null;
@@ -28991,8 +30005,63 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
28991
30005
  };
28992
30006
  Relationships: [];
28993
30007
  };
30008
+ invoice_items: {
30009
+ Row: {
30010
+ created_at: string;
30011
+ description: string;
30012
+ id: string;
30013
+ invoice_id: string;
30014
+ kind: string;
30015
+ quantity: number;
30016
+ sort_order: number;
30017
+ source_line_ref: string | null;
30018
+ total_cents: number;
30019
+ unit: string;
30020
+ unit_price_cents: number;
30021
+ };
30022
+ Insert: {
30023
+ created_at?: string;
30024
+ description?: string;
30025
+ id?: string;
30026
+ invoice_id: string;
30027
+ kind?: string;
30028
+ quantity?: number;
30029
+ sort_order?: number;
30030
+ source_line_ref?: string | null;
30031
+ total_cents?: number;
30032
+ unit?: string;
30033
+ unit_price_cents?: number;
30034
+ };
30035
+ Update: {
30036
+ created_at?: string;
30037
+ description?: string;
30038
+ id?: string;
30039
+ invoice_id?: string;
30040
+ kind?: string;
30041
+ quantity?: number;
30042
+ sort_order?: number;
30043
+ source_line_ref?: string | null;
30044
+ total_cents?: number;
30045
+ unit?: string;
30046
+ unit_price_cents?: number;
30047
+ };
30048
+ Relationships: [{
30049
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30050
+ columns: ["invoice_id"];
30051
+ isOneToOne: false;
30052
+ referencedRelation: "invoices";
30053
+ referencedColumns: ["id"];
30054
+ }, {
30055
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30056
+ columns: ["invoice_id"];
30057
+ isOneToOne: false;
30058
+ referencedRelation: "uren_facturen";
30059
+ referencedColumns: ["id"];
30060
+ }];
30061
+ };
28994
30062
  invoice_post_idempotency: {
28995
30063
  Row: {
30064
+ administration_code: string;
28996
30065
  client_request_id: string;
28997
30066
  completed_at: string | null;
28998
30067
  created_at: string;
@@ -29002,6 +30071,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
29002
30071
  user_id: string;
29003
30072
  };
29004
30073
  Insert: {
30074
+ administration_code?: string;
29005
30075
  client_request_id: string;
29006
30076
  completed_at?: string | null;
29007
30077
  created_at?: string;
@@ -29011,6 +30081,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
29011
30081
  user_id: string;
29012
30082
  };
29013
30083
  Update: {
30084
+ administration_code?: string;
29014
30085
  client_request_id?: string;
29015
30086
  completed_at?: string | null;
29016
30087
  created_at?: string;
@@ -29216,6 +30287,75 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
29216
30287
  };
29217
30288
  Relationships: [];
29218
30289
  };
30290
+ invoices: {
30291
+ Row: {
30292
+ created_at: string;
30293
+ created_by: string | null;
30294
+ customer_id: string | null;
30295
+ customer_name: string | null;
30296
+ due_date: string | null;
30297
+ id: string;
30298
+ invoice_date: string;
30299
+ invoice_number: string | null;
30300
+ note: string | null;
30301
+ source_number: string | null;
30302
+ source_ref: string | null;
30303
+ source_type: string;
30304
+ status: string;
30305
+ subtotal_cents: number;
30306
+ total_cents: number;
30307
+ updated_at: string;
30308
+ vat_cents: number;
30309
+ vat_rate: number;
30310
+ };
30311
+ Insert: {
30312
+ created_at?: string;
30313
+ created_by?: string | null;
30314
+ customer_id?: string | null;
30315
+ customer_name?: string | null;
30316
+ due_date?: string | null;
30317
+ id?: string;
30318
+ invoice_date?: string;
30319
+ invoice_number?: string | null;
30320
+ note?: string | null;
30321
+ source_number?: string | null;
30322
+ source_ref?: string | null;
30323
+ source_type?: string;
30324
+ status?: string;
30325
+ subtotal_cents?: number;
30326
+ total_cents?: number;
30327
+ updated_at?: string;
30328
+ vat_cents?: number;
30329
+ vat_rate?: number;
30330
+ };
30331
+ Update: {
30332
+ created_at?: string;
30333
+ created_by?: string | null;
30334
+ customer_id?: string | null;
30335
+ customer_name?: string | null;
30336
+ due_date?: string | null;
30337
+ id?: string;
30338
+ invoice_date?: string;
30339
+ invoice_number?: string | null;
30340
+ note?: string | null;
30341
+ source_number?: string | null;
30342
+ source_ref?: string | null;
30343
+ source_type?: string;
30344
+ status?: string;
30345
+ subtotal_cents?: number;
30346
+ total_cents?: number;
30347
+ updated_at?: string;
30348
+ vat_cents?: number;
30349
+ vat_rate?: number;
30350
+ };
30351
+ Relationships: [{
30352
+ foreignKeyName: "invoices_customer_id_fkey";
30353
+ columns: ["customer_id"];
30354
+ isOneToOne: false;
30355
+ referencedRelation: "itk_customers";
30356
+ referencedColumns: ["id"];
30357
+ }];
30358
+ };
29219
30359
  itk_contact_persons: {
29220
30360
  Row: {
29221
30361
  created_at: string;
@@ -29411,6 +30551,258 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
29411
30551
  };
29412
30552
  Relationships: [];
29413
30553
  };
30554
+ itk_offerte_events: {
30555
+ Row: {
30556
+ created_at: string;
30557
+ event_type: string;
30558
+ id: string;
30559
+ metadata: import("../integrations/supabase/types").Json;
30560
+ offerte_id: string;
30561
+ omschrijving: string | null;
30562
+ user_id: string | null;
30563
+ };
30564
+ Insert: {
30565
+ created_at?: string;
30566
+ event_type: string;
30567
+ id?: string;
30568
+ metadata?: import("../integrations/supabase/types").Json;
30569
+ offerte_id: string;
30570
+ omschrijving?: string | null;
30571
+ user_id?: string | null;
30572
+ };
30573
+ Update: {
30574
+ created_at?: string;
30575
+ event_type?: string;
30576
+ id?: string;
30577
+ metadata?: import("../integrations/supabase/types").Json;
30578
+ offerte_id?: string;
30579
+ omschrijving?: string | null;
30580
+ user_id?: string | null;
30581
+ };
30582
+ Relationships: [{
30583
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
30584
+ columns: ["offerte_id"];
30585
+ isOneToOne: false;
30586
+ referencedRelation: "itk_offertes";
30587
+ referencedColumns: ["id"];
30588
+ }];
30589
+ };
30590
+ itk_offerte_regels: {
30591
+ Row: {
30592
+ created_at: string;
30593
+ id: string;
30594
+ line_total_cents: number;
30595
+ offerte_id: string;
30596
+ omschrijving: string;
30597
+ package_id: string | null;
30598
+ quantity: number;
30599
+ sort_order: number;
30600
+ source: string;
30601
+ unit_price_cents: number;
30602
+ updated_at: string;
30603
+ };
30604
+ Insert: {
30605
+ created_at?: string;
30606
+ id?: string;
30607
+ line_total_cents?: number;
30608
+ offerte_id: string;
30609
+ omschrijving?: string;
30610
+ package_id?: string | null;
30611
+ quantity?: number;
30612
+ sort_order?: number;
30613
+ source?: string;
30614
+ unit_price_cents?: number;
30615
+ updated_at?: string;
30616
+ };
30617
+ Update: {
30618
+ created_at?: string;
30619
+ id?: string;
30620
+ line_total_cents?: number;
30621
+ offerte_id?: string;
30622
+ omschrijving?: string;
30623
+ package_id?: string | null;
30624
+ quantity?: number;
30625
+ sort_order?: number;
30626
+ source?: string;
30627
+ unit_price_cents?: number;
30628
+ updated_at?: string;
30629
+ };
30630
+ Relationships: [{
30631
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
30632
+ columns: ["offerte_id"];
30633
+ isOneToOne: false;
30634
+ referencedRelation: "itk_offertes";
30635
+ referencedColumns: ["id"];
30636
+ }, {
30637
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
30638
+ columns: ["package_id"];
30639
+ isOneToOne: false;
30640
+ referencedRelation: "werkbon_packages";
30641
+ referencedColumns: ["id"];
30642
+ }];
30643
+ };
30644
+ itk_offerte_settings: {
30645
+ Row: {
30646
+ auto_convert_binnen_mandaat: boolean;
30647
+ created_at: string;
30648
+ default_geldigheid_dagen: number;
30649
+ default_vat_rate: number;
30650
+ id: string;
30651
+ singleton: boolean;
30652
+ updated_at: string;
30653
+ };
30654
+ Insert: {
30655
+ auto_convert_binnen_mandaat?: boolean;
30656
+ created_at?: string;
30657
+ default_geldigheid_dagen?: number;
30658
+ default_vat_rate?: number;
30659
+ id?: string;
30660
+ singleton?: boolean;
30661
+ updated_at?: string;
30662
+ };
30663
+ Update: {
30664
+ auto_convert_binnen_mandaat?: boolean;
30665
+ created_at?: string;
30666
+ default_geldigheid_dagen?: number;
30667
+ default_vat_rate?: number;
30668
+ id?: string;
30669
+ singleton?: boolean;
30670
+ updated_at?: string;
30671
+ };
30672
+ Relationships: [];
30673
+ };
30674
+ itk_offertes: {
30675
+ Row: {
30676
+ ai_generated: boolean;
30677
+ approved_at: string | null;
30678
+ binnen_mandaat: boolean;
30679
+ contact_id: string | null;
30680
+ converted_at: string | null;
30681
+ created_at: string;
30682
+ created_by: string | null;
30683
+ customer_id: string | null;
30684
+ follow_up_werkbon_id: string | null;
30685
+ id: string;
30686
+ jaar: number;
30687
+ mandaat_restant_cents: number;
30688
+ notities: string | null;
30689
+ offerte_number: string | null;
30690
+ omschrijving: string;
30691
+ rejected_at: string | null;
30692
+ sent_at: string | null;
30693
+ source_number: string | null;
30694
+ source_ref: string | null;
30695
+ source_type: string;
30696
+ status: string;
30697
+ subtotal_cents: number;
30698
+ total_cents: number;
30699
+ updated_at: string;
30700
+ valid_until: string | null;
30701
+ vat_cents: number;
30702
+ vat_rate: number;
30703
+ viewed_at: string | null;
30704
+ volgnummer: number | null;
30705
+ werkbon_id: string | null;
30706
+ work_location_id: string | null;
30707
+ };
30708
+ Insert: {
30709
+ ai_generated?: boolean;
30710
+ approved_at?: string | null;
30711
+ binnen_mandaat?: boolean;
30712
+ contact_id?: string | null;
30713
+ converted_at?: string | null;
30714
+ created_at?: string;
30715
+ created_by?: string | null;
30716
+ customer_id?: string | null;
30717
+ follow_up_werkbon_id?: string | null;
30718
+ id?: string;
30719
+ jaar?: number;
30720
+ mandaat_restant_cents?: number;
30721
+ notities?: string | null;
30722
+ offerte_number?: string | null;
30723
+ omschrijving?: string;
30724
+ rejected_at?: string | null;
30725
+ sent_at?: string | null;
30726
+ source_number?: string | null;
30727
+ source_ref?: string | null;
30728
+ source_type?: string;
30729
+ status?: string;
30730
+ subtotal_cents?: number;
30731
+ total_cents?: number;
30732
+ updated_at?: string;
30733
+ valid_until?: string | null;
30734
+ vat_cents?: number;
30735
+ vat_rate?: number;
30736
+ viewed_at?: string | null;
30737
+ volgnummer?: number | null;
30738
+ werkbon_id?: string | null;
30739
+ work_location_id?: string | null;
30740
+ };
30741
+ Update: {
30742
+ ai_generated?: boolean;
30743
+ approved_at?: string | null;
30744
+ binnen_mandaat?: boolean;
30745
+ contact_id?: string | null;
30746
+ converted_at?: string | null;
30747
+ created_at?: string;
30748
+ created_by?: string | null;
30749
+ customer_id?: string | null;
30750
+ follow_up_werkbon_id?: string | null;
30751
+ id?: string;
30752
+ jaar?: number;
30753
+ mandaat_restant_cents?: number;
30754
+ notities?: string | null;
30755
+ offerte_number?: string | null;
30756
+ omschrijving?: string;
30757
+ rejected_at?: string | null;
30758
+ sent_at?: string | null;
30759
+ source_number?: string | null;
30760
+ source_ref?: string | null;
30761
+ source_type?: string;
30762
+ status?: string;
30763
+ subtotal_cents?: number;
30764
+ total_cents?: number;
30765
+ updated_at?: string;
30766
+ valid_until?: string | null;
30767
+ vat_cents?: number;
30768
+ vat_rate?: number;
30769
+ viewed_at?: string | null;
30770
+ volgnummer?: number | null;
30771
+ werkbon_id?: string | null;
30772
+ work_location_id?: string | null;
30773
+ };
30774
+ Relationships: [{
30775
+ foreignKeyName: "itk_offertes_contact_id_fkey";
30776
+ columns: ["contact_id"];
30777
+ isOneToOne: false;
30778
+ referencedRelation: "itk_contact_persons";
30779
+ referencedColumns: ["id"];
30780
+ }, {
30781
+ foreignKeyName: "itk_offertes_customer_id_fkey";
30782
+ columns: ["customer_id"];
30783
+ isOneToOne: false;
30784
+ referencedRelation: "itk_customers";
30785
+ referencedColumns: ["id"];
30786
+ }, {
30787
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
30788
+ columns: ["follow_up_werkbon_id"];
30789
+ isOneToOne: false;
30790
+ referencedRelation: "werkbonnen";
30791
+ referencedColumns: ["id"];
30792
+ }, {
30793
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
30794
+ columns: ["werkbon_id"];
30795
+ isOneToOne: false;
30796
+ referencedRelation: "werkbonnen";
30797
+ referencedColumns: ["id"];
30798
+ }, {
30799
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
30800
+ columns: ["work_location_id"];
30801
+ isOneToOne: false;
30802
+ referencedRelation: "itk_work_locations";
30803
+ referencedColumns: ["id"];
30804
+ }];
30805
+ };
29414
30806
  itk_work_locations: {
29415
30807
  Row: {
29416
30808
  city: string | null;
@@ -30311,6 +31703,9 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
30311
31703
  id: string;
30312
31704
  last_error: string | null;
30313
31705
  last_error_at: string | null;
31706
+ last_error_code: string | null;
31707
+ last_gateway_status: number | null;
31708
+ last_response: import("../integrations/supabase/types").Json | null;
30314
31709
  last_sent_hash: string | null;
30315
31710
  locked_by: string | null;
30316
31711
  locked_until: string | null;
@@ -30331,6 +31726,9 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
30331
31726
  id?: string;
30332
31727
  last_error?: string | null;
30333
31728
  last_error_at?: string | null;
31729
+ last_error_code?: string | null;
31730
+ last_gateway_status?: number | null;
31731
+ last_response?: import("../integrations/supabase/types").Json | null;
30334
31732
  last_sent_hash?: string | null;
30335
31733
  locked_by?: string | null;
30336
31734
  locked_until?: string | null;
@@ -30351,6 +31749,9 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
30351
31749
  id?: string;
30352
31750
  last_error?: string | null;
30353
31751
  last_error_at?: string | null;
31752
+ last_error_code?: string | null;
31753
+ last_gateway_status?: number | null;
31754
+ last_response?: import("../integrations/supabase/types").Json | null;
30354
31755
  last_sent_hash?: string | null;
30355
31756
  locked_by?: string | null;
30356
31757
  locked_until?: string | null;
@@ -31784,6 +33185,63 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
31784
33185
  referencedColumns: ["id"];
31785
33186
  }];
31786
33187
  };
33188
+ medewerker_details: {
33189
+ Row: {
33190
+ color: string | null;
33191
+ created_at: string;
33192
+ hours_fri: number | null;
33193
+ hours_mon: number | null;
33194
+ hours_thu: number | null;
33195
+ hours_tue: number | null;
33196
+ hours_wed: number | null;
33197
+ id: string;
33198
+ is_active: boolean;
33199
+ leave_balance_hours: number;
33200
+ persnr: string | null;
33201
+ phone: string | null;
33202
+ profile_id: string;
33203
+ updated_at: string;
33204
+ };
33205
+ Insert: {
33206
+ color?: string | null;
33207
+ created_at?: string;
33208
+ hours_fri?: number | null;
33209
+ hours_mon?: number | null;
33210
+ hours_thu?: number | null;
33211
+ hours_tue?: number | null;
33212
+ hours_wed?: number | null;
33213
+ id?: string;
33214
+ is_active?: boolean;
33215
+ leave_balance_hours?: number;
33216
+ persnr?: string | null;
33217
+ phone?: string | null;
33218
+ profile_id: string;
33219
+ updated_at?: string;
33220
+ };
33221
+ Update: {
33222
+ color?: string | null;
33223
+ created_at?: string;
33224
+ hours_fri?: number | null;
33225
+ hours_mon?: number | null;
33226
+ hours_thu?: number | null;
33227
+ hours_tue?: number | null;
33228
+ hours_wed?: number | null;
33229
+ id?: string;
33230
+ is_active?: boolean;
33231
+ leave_balance_hours?: number;
33232
+ persnr?: string | null;
33233
+ phone?: string | null;
33234
+ profile_id?: string;
33235
+ updated_at?: string;
33236
+ };
33237
+ Relationships: [{
33238
+ foreignKeyName: "medewerker_details_profile_id_fkey";
33239
+ columns: ["profile_id"];
33240
+ isOneToOne: true;
33241
+ referencedRelation: "profiles";
33242
+ referencedColumns: ["id"];
33243
+ }];
33244
+ };
31787
33245
  module_features: {
31788
33246
  Row: {
31789
33247
  created_at: string;
@@ -31847,6 +33305,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
31847
33305
  enforce: boolean;
31848
33306
  is_active: boolean;
31849
33307
  last_seen_at: string;
33308
+ missing_count: number;
31850
33309
  module_id: string;
31851
33310
  name: string;
31852
33311
  shell_id: string | null;
@@ -31857,6 +33316,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
31857
33316
  enforce?: boolean;
31858
33317
  is_active?: boolean;
31859
33318
  last_seen_at?: string;
33319
+ missing_count?: number;
31860
33320
  module_id: string;
31861
33321
  name: string;
31862
33322
  shell_id?: string | null;
@@ -31867,6 +33327,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
31867
33327
  enforce?: boolean;
31868
33328
  is_active?: boolean;
31869
33329
  last_seen_at?: string;
33330
+ missing_count?: number;
31870
33331
  module_id?: string;
31871
33332
  name?: string;
31872
33333
  shell_id?: string | null;
@@ -32866,6 +34327,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
32866
34327
  };
32867
34328
  order_invoice_links: {
32868
34329
  Row: {
34330
+ administration_code: string | null;
32869
34331
  attempts: number;
32870
34332
  created_at: string;
32871
34333
  error_message: string | null;
@@ -32878,6 +34340,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
32878
34340
  updated_at: string;
32879
34341
  };
32880
34342
  Insert: {
34343
+ administration_code?: string | null;
32881
34344
  attempts?: number;
32882
34345
  created_at?: string;
32883
34346
  error_message?: string | null;
@@ -32890,6 +34353,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
32890
34353
  updated_at?: string;
32891
34354
  };
32892
34355
  Update: {
34356
+ administration_code?: string | null;
32893
34357
  attempts?: number;
32894
34358
  created_at?: string;
32895
34359
  error_message?: string | null;
@@ -33077,6 +34541,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
33077
34541
  orders: {
33078
34542
  Row: {
33079
34543
  buffer_id: string | null;
34544
+ cancel_reason: string | null;
34545
+ cancelled_at: string | null;
33080
34546
  created_at: string;
33081
34547
  custom_fields: import("../integrations/supabase/types").Json;
33082
34548
  customer_id: string | null;
@@ -33099,6 +34565,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
33099
34565
  };
33100
34566
  Insert: {
33101
34567
  buffer_id?: string | null;
34568
+ cancel_reason?: string | null;
34569
+ cancelled_at?: string | null;
33102
34570
  created_at?: string;
33103
34571
  custom_fields?: import("../integrations/supabase/types").Json;
33104
34572
  customer_id?: string | null;
@@ -33121,6 +34589,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
33121
34589
  };
33122
34590
  Update: {
33123
34591
  buffer_id?: string | null;
34592
+ cancel_reason?: string | null;
34593
+ cancelled_at?: string | null;
33124
34594
  created_at?: string;
33125
34595
  custom_fields?: import("../integrations/supabase/types").Json;
33126
34596
  customer_id?: string | null;
@@ -34049,6 +35519,27 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
34049
35519
  referencedColumns: ["id"];
34050
35520
  }];
34051
35521
  };
35522
+ pick_sync_state: {
35523
+ Row: {
35524
+ id: boolean;
35525
+ last_cleanup_at: string | null;
35526
+ last_sync_at: string | null;
35527
+ updated_at: string;
35528
+ };
35529
+ Insert: {
35530
+ id?: boolean;
35531
+ last_cleanup_at?: string | null;
35532
+ last_sync_at?: string | null;
35533
+ updated_at?: string;
35534
+ };
35535
+ Update: {
35536
+ id?: boolean;
35537
+ last_cleanup_at?: string | null;
35538
+ last_sync_at?: string | null;
35539
+ updated_at?: string;
35540
+ };
35541
+ Relationships: [];
35542
+ };
34052
35543
  pick_task_document_types: {
34053
35544
  Row: {
34054
35545
  created_at: string;
@@ -34331,6 +35822,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
34331
35822
  gebruiker_id: string | null;
34332
35823
  gebruiker_naam: string;
34333
35824
  gestart_op: string | null;
35825
+ herkomst: string | null;
34334
35826
  id: string;
34335
35827
  idempotentie_sleutel: string | null;
34336
35828
  is_herprint: boolean;
@@ -34360,6 +35852,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
34360
35852
  gebruiker_id?: string | null;
34361
35853
  gebruiker_naam?: string;
34362
35854
  gestart_op?: string | null;
35855
+ herkomst?: string | null;
34363
35856
  id?: string;
34364
35857
  idempotentie_sleutel?: string | null;
34365
35858
  is_herprint?: boolean;
@@ -34389,6 +35882,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
34389
35882
  gebruiker_id?: string | null;
34390
35883
  gebruiker_naam?: string;
34391
35884
  gestart_op?: string | null;
35885
+ herkomst?: string | null;
34392
35886
  id?: string;
34393
35887
  idempotentie_sleutel?: string | null;
34394
35888
  is_herprint?: boolean;
@@ -35183,6 +36677,66 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
35183
36677
  };
35184
36678
  Relationships: [];
35185
36679
  };
36680
+ profile_modules: {
36681
+ Row: {
36682
+ created_at: string;
36683
+ id: string;
36684
+ module_id: string;
36685
+ profile_id: string;
36686
+ };
36687
+ Insert: {
36688
+ created_at?: string;
36689
+ id?: string;
36690
+ module_id: string;
36691
+ profile_id: string;
36692
+ };
36693
+ Update: {
36694
+ created_at?: string;
36695
+ id?: string;
36696
+ module_id?: string;
36697
+ profile_id?: string;
36698
+ };
36699
+ Relationships: [{
36700
+ foreignKeyName: "profile_modules_profile_id_fkey";
36701
+ columns: ["profile_id"];
36702
+ isOneToOne: false;
36703
+ referencedRelation: "profiles_org";
36704
+ referencedColumns: ["id"];
36705
+ }];
36706
+ };
36707
+ profile_roles: {
36708
+ Row: {
36709
+ created_at: string;
36710
+ id: string;
36711
+ profile_id: string;
36712
+ role_id: string;
36713
+ };
36714
+ Insert: {
36715
+ created_at?: string;
36716
+ id?: string;
36717
+ profile_id: string;
36718
+ role_id: string;
36719
+ };
36720
+ Update: {
36721
+ created_at?: string;
36722
+ id?: string;
36723
+ profile_id?: string;
36724
+ role_id?: string;
36725
+ };
36726
+ Relationships: [{
36727
+ foreignKeyName: "profile_roles_profile_id_fkey";
36728
+ columns: ["profile_id"];
36729
+ isOneToOne: false;
36730
+ referencedRelation: "profiles_org";
36731
+ referencedColumns: ["id"];
36732
+ }, {
36733
+ foreignKeyName: "profile_roles_role_id_fkey";
36734
+ columns: ["role_id"];
36735
+ isOneToOne: false;
36736
+ referencedRelation: "roles";
36737
+ referencedColumns: ["id"];
36738
+ }];
36739
+ };
35186
36740
  profiles: {
35187
36741
  Row: {
35188
36742
  address: string | null;
@@ -35228,6 +36782,39 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
35228
36782
  referencedColumns: ["id"];
35229
36783
  }];
35230
36784
  };
36785
+ profiles_org: {
36786
+ Row: {
36787
+ created_at: string;
36788
+ id: string;
36789
+ is_default: boolean;
36790
+ name: string;
36791
+ tenant_id: string | null;
36792
+ updated_at: string;
36793
+ };
36794
+ Insert: {
36795
+ created_at?: string;
36796
+ id?: string;
36797
+ is_default?: boolean;
36798
+ name: string;
36799
+ tenant_id?: string | null;
36800
+ updated_at?: string;
36801
+ };
36802
+ Update: {
36803
+ created_at?: string;
36804
+ id?: string;
36805
+ is_default?: boolean;
36806
+ name?: string;
36807
+ tenant_id?: string | null;
36808
+ updated_at?: string;
36809
+ };
36810
+ Relationships: [{
36811
+ foreignKeyName: "profiles_org_tenant_id_fkey";
36812
+ columns: ["tenant_id"];
36813
+ isOneToOne: false;
36814
+ referencedRelation: "tenants";
36815
+ referencedColumns: ["id"];
36816
+ }];
36817
+ };
35231
36818
  projects: {
35232
36819
  Row: {
35233
36820
  contact_name: string | null;
@@ -36402,6 +37989,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
36402
37989
  type: string;
36403
37990
  updated_at: string;
36404
37991
  vereist_medewerker: boolean;
37992
+ werkplek: string | null;
36405
37993
  };
36406
37994
  Insert: {
36407
37995
  actief?: boolean;
@@ -36415,6 +38003,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
36415
38003
  type?: string;
36416
38004
  updated_at?: string;
36417
38005
  vereist_medewerker?: boolean;
38006
+ werkplek?: string | null;
36418
38007
  };
36419
38008
  Update: {
36420
38009
  actief?: boolean;
@@ -36428,9 +38017,46 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
36428
38017
  type?: string;
36429
38018
  updated_at?: string;
36430
38019
  vereist_medewerker?: boolean;
38020
+ werkplek?: string | null;
36431
38021
  };
36432
38022
  Relationships: [];
36433
38023
  };
38024
+ sick_periods: {
38025
+ Row: {
38026
+ created_at: string;
38027
+ employee_id: string;
38028
+ end_date: string | null;
38029
+ id: string;
38030
+ notes: string | null;
38031
+ start_date: string;
38032
+ updated_at: string;
38033
+ };
38034
+ Insert: {
38035
+ created_at?: string;
38036
+ employee_id: string;
38037
+ end_date?: string | null;
38038
+ id?: string;
38039
+ notes?: string | null;
38040
+ start_date: string;
38041
+ updated_at?: string;
38042
+ };
38043
+ Update: {
38044
+ created_at?: string;
38045
+ employee_id?: string;
38046
+ end_date?: string | null;
38047
+ id?: string;
38048
+ notes?: string | null;
38049
+ start_date?: string;
38050
+ updated_at?: string;
38051
+ };
38052
+ Relationships: [{
38053
+ foreignKeyName: "sick_periods_employee_id_fkey";
38054
+ columns: ["employee_id"];
38055
+ isOneToOne: false;
38056
+ referencedRelation: "profiles";
38057
+ referencedColumns: ["id"];
38058
+ }];
38059
+ };
36434
38060
  sidebar_config: {
36435
38061
  Row: {
36436
38062
  id: string;
@@ -37261,12 +38887,16 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
37261
38887
  company_name: string | null;
37262
38888
  connected_at: string | null;
37263
38889
  created_at: string;
38890
+ disconnected_at: string | null;
37264
38891
  environment: string;
37265
38892
  id: string;
38893
+ initial_sync_completed_at: string | null;
38894
+ initial_sync_started_at: string | null;
37266
38895
  is_active: boolean;
37267
38896
  label: string | null;
37268
38897
  office_code: string | null;
37269
38898
  redirect_uri: string | null;
38899
+ superseded_at: string | null;
37270
38900
  updated_at: string;
37271
38901
  user_id: string;
37272
38902
  };
@@ -37277,12 +38907,16 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
37277
38907
  company_name?: string | null;
37278
38908
  connected_at?: string | null;
37279
38909
  created_at?: string;
38910
+ disconnected_at?: string | null;
37280
38911
  environment: string;
37281
38912
  id?: string;
38913
+ initial_sync_completed_at?: string | null;
38914
+ initial_sync_started_at?: string | null;
37282
38915
  is_active?: boolean;
37283
38916
  label?: string | null;
37284
38917
  office_code?: string | null;
37285
38918
  redirect_uri?: string | null;
38919
+ superseded_at?: string | null;
37286
38920
  updated_at?: string;
37287
38921
  user_id: string;
37288
38922
  };
@@ -37293,12 +38927,16 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
37293
38927
  company_name?: string | null;
37294
38928
  connected_at?: string | null;
37295
38929
  created_at?: string;
38930
+ disconnected_at?: string | null;
37296
38931
  environment?: string;
37297
38932
  id?: string;
38933
+ initial_sync_completed_at?: string | null;
38934
+ initial_sync_started_at?: string | null;
37298
38935
  is_active?: boolean;
37299
38936
  label?: string | null;
37300
38937
  office_code?: string | null;
37301
38938
  redirect_uri?: string | null;
38939
+ superseded_at?: string | null;
37302
38940
  updated_at?: string;
37303
38941
  user_id?: string;
37304
38942
  };
@@ -37358,6 +38996,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
37358
38996
  twinfield_customers: {
37359
38997
  Row: {
37360
38998
  address: string | null;
38999
+ administration_code: string;
37361
39000
  city: string | null;
37362
39001
  country: string | null;
37363
39002
  created_at: string;
@@ -37377,6 +39016,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
37377
39016
  };
37378
39017
  Insert: {
37379
39018
  address?: string | null;
39019
+ administration_code?: string;
37380
39020
  city?: string | null;
37381
39021
  country?: string | null;
37382
39022
  created_at?: string;
@@ -37396,6 +39036,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
37396
39036
  };
37397
39037
  Update: {
37398
39038
  address?: string | null;
39039
+ administration_code?: string;
37399
39040
  city?: string | null;
37400
39041
  country?: string | null;
37401
39042
  created_at?: string;
@@ -37609,7 +39250,9 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
37609
39250
  };
37610
39251
  twinfield_invoice_settings: {
37611
39252
  Row: {
39253
+ administration_code: string | null;
37612
39254
  auto_invoice_enabled: boolean;
39255
+ auto_invoice_start_date: string | null;
37613
39256
  auto_invoice_trigger_statuses: string[];
37614
39257
  created_at: string;
37615
39258
  debtor_gl_account: string;
@@ -37623,15 +39266,19 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
37623
39266
  invoice_enabled_fo: boolean;
37624
39267
  invoice_enabled_ho: boolean;
37625
39268
  invoice_enabled_mo: boolean;
39269
+ needs_review: boolean;
37626
39270
  payment_gl_account: string;
37627
39271
  payment_journal_code: string;
39272
+ settings_confirmed_at: string | null;
37628
39273
  updated_at: string;
37629
39274
  user_id: string;
37630
39275
  vat_code_eu_reverse: string | null;
37631
39276
  vat_code_export: string | null;
37632
39277
  };
37633
39278
  Insert: {
39279
+ administration_code?: string | null;
37634
39280
  auto_invoice_enabled?: boolean;
39281
+ auto_invoice_start_date?: string | null;
37635
39282
  auto_invoice_trigger_statuses?: string[];
37636
39283
  created_at?: string;
37637
39284
  debtor_gl_account?: string;
@@ -37645,15 +39292,19 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
37645
39292
  invoice_enabled_fo?: boolean;
37646
39293
  invoice_enabled_ho?: boolean;
37647
39294
  invoice_enabled_mo?: boolean;
39295
+ needs_review?: boolean;
37648
39296
  payment_gl_account?: string;
37649
39297
  payment_journal_code?: string;
39298
+ settings_confirmed_at?: string | null;
37650
39299
  updated_at?: string;
37651
39300
  user_id: string;
37652
39301
  vat_code_eu_reverse?: string | null;
37653
39302
  vat_code_export?: string | null;
37654
39303
  };
37655
39304
  Update: {
39305
+ administration_code?: string | null;
37656
39306
  auto_invoice_enabled?: boolean;
39307
+ auto_invoice_start_date?: string | null;
37657
39308
  auto_invoice_trigger_statuses?: string[];
37658
39309
  created_at?: string;
37659
39310
  debtor_gl_account?: string;
@@ -37667,8 +39318,10 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
37667
39318
  invoice_enabled_fo?: boolean;
37668
39319
  invoice_enabled_ho?: boolean;
37669
39320
  invoice_enabled_mo?: boolean;
39321
+ needs_review?: boolean;
37670
39322
  payment_gl_account?: string;
37671
39323
  payment_journal_code?: string;
39324
+ settings_confirmed_at?: string | null;
37672
39325
  updated_at?: string;
37673
39326
  user_id?: string;
37674
39327
  vat_code_eu_reverse?: string | null;
@@ -38273,114 +39926,6 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
38273
39926
  };
38274
39927
  Relationships: [];
38275
39928
  };
38276
- uren_facturen: {
38277
- Row: {
38278
- created_at: string;
38279
- created_by: string | null;
38280
- customer_id: string | null;
38281
- customer_name: string | null;
38282
- id: string;
38283
- invoice_number: string | null;
38284
- note: string | null;
38285
- status: string;
38286
- total_excl_cents: number;
38287
- total_incl_cents: number;
38288
- updated_at: string;
38289
- vat_cents: number;
38290
- vat_percentage: number;
38291
- werkbon_id: string | null;
38292
- };
38293
- Insert: {
38294
- created_at?: string;
38295
- created_by?: string | null;
38296
- customer_id?: string | null;
38297
- customer_name?: string | null;
38298
- id?: string;
38299
- invoice_number?: string | null;
38300
- note?: string | null;
38301
- status?: string;
38302
- total_excl_cents?: number;
38303
- total_incl_cents?: number;
38304
- updated_at?: string;
38305
- vat_cents?: number;
38306
- vat_percentage?: number;
38307
- werkbon_id?: string | null;
38308
- };
38309
- Update: {
38310
- created_at?: string;
38311
- created_by?: string | null;
38312
- customer_id?: string | null;
38313
- customer_name?: string | null;
38314
- id?: string;
38315
- invoice_number?: string | null;
38316
- note?: string | null;
38317
- status?: string;
38318
- total_excl_cents?: number;
38319
- total_incl_cents?: number;
38320
- updated_at?: string;
38321
- vat_cents?: number;
38322
- vat_percentage?: number;
38323
- werkbon_id?: string | null;
38324
- };
38325
- Relationships: [{
38326
- foreignKeyName: "uren_facturen_customer_id_fkey";
38327
- columns: ["customer_id"];
38328
- isOneToOne: false;
38329
- referencedRelation: "itk_customers";
38330
- referencedColumns: ["id"];
38331
- }, {
38332
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
38333
- columns: ["werkbon_id"];
38334
- isOneToOne: true;
38335
- referencedRelation: "werkbonnen";
38336
- referencedColumns: ["id"];
38337
- }];
38338
- };
38339
- uren_factuur_regels: {
38340
- Row: {
38341
- created_at: string;
38342
- description: string;
38343
- factuur_id: string;
38344
- id: string;
38345
- kind: string | null;
38346
- quantity: number;
38347
- sort_order: number;
38348
- total_cents: number;
38349
- unit: string;
38350
- unit_price_cents: number;
38351
- };
38352
- Insert: {
38353
- created_at?: string;
38354
- description: string;
38355
- factuur_id: string;
38356
- id?: string;
38357
- kind?: string | null;
38358
- quantity?: number;
38359
- sort_order?: number;
38360
- total_cents?: number;
38361
- unit?: string;
38362
- unit_price_cents?: number;
38363
- };
38364
- Update: {
38365
- created_at?: string;
38366
- description?: string;
38367
- factuur_id?: string;
38368
- id?: string;
38369
- kind?: string | null;
38370
- quantity?: number;
38371
- sort_order?: number;
38372
- total_cents?: number;
38373
- unit?: string;
38374
- unit_price_cents?: number;
38375
- };
38376
- Relationships: [{
38377
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
38378
- columns: ["factuur_id"];
38379
- isOneToOne: false;
38380
- referencedRelation: "uren_facturen";
38381
- referencedColumns: ["id"];
38382
- }];
38383
- };
38384
39929
  uren_offerte_regels: {
38385
39930
  Row: {
38386
39931
  created_at: string;
@@ -40220,6 +41765,114 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
40220
41765
  };
40221
41766
  Relationships: [];
40222
41767
  };
41768
+ uren_facturen: {
41769
+ Row: {
41770
+ created_at: string | null;
41771
+ created_by: string | null;
41772
+ customer_id: string | null;
41773
+ customer_name: string | null;
41774
+ id: string | null;
41775
+ invoice_number: string | null;
41776
+ note: string | null;
41777
+ status: string | null;
41778
+ total_excl_cents: number | null;
41779
+ total_incl_cents: number | null;
41780
+ updated_at: string | null;
41781
+ vat_cents: number | null;
41782
+ vat_percentage: number | null;
41783
+ werkbon_id: string | null;
41784
+ };
41785
+ Insert: {
41786
+ created_at?: string | null;
41787
+ created_by?: string | null;
41788
+ customer_id?: string | null;
41789
+ customer_name?: string | null;
41790
+ id?: string | null;
41791
+ invoice_number?: string | null;
41792
+ note?: string | null;
41793
+ status?: string | null;
41794
+ total_excl_cents?: number | null;
41795
+ total_incl_cents?: number | null;
41796
+ updated_at?: string | null;
41797
+ vat_cents?: number | null;
41798
+ vat_percentage?: number | null;
41799
+ werkbon_id?: never;
41800
+ };
41801
+ Update: {
41802
+ created_at?: string | null;
41803
+ created_by?: string | null;
41804
+ customer_id?: string | null;
41805
+ customer_name?: string | null;
41806
+ id?: string | null;
41807
+ invoice_number?: string | null;
41808
+ note?: string | null;
41809
+ status?: string | null;
41810
+ total_excl_cents?: number | null;
41811
+ total_incl_cents?: number | null;
41812
+ updated_at?: string | null;
41813
+ vat_cents?: number | null;
41814
+ vat_percentage?: number | null;
41815
+ werkbon_id?: never;
41816
+ };
41817
+ Relationships: [{
41818
+ foreignKeyName: "invoices_customer_id_fkey";
41819
+ columns: ["customer_id"];
41820
+ isOneToOne: false;
41821
+ referencedRelation: "itk_customers";
41822
+ referencedColumns: ["id"];
41823
+ }];
41824
+ };
41825
+ uren_factuur_regels: {
41826
+ Row: {
41827
+ created_at: string | null;
41828
+ description: string | null;
41829
+ factuur_id: string | null;
41830
+ id: string | null;
41831
+ kind: string | null;
41832
+ quantity: number | null;
41833
+ sort_order: number | null;
41834
+ total_cents: number | null;
41835
+ unit: string | null;
41836
+ unit_price_cents: number | null;
41837
+ };
41838
+ Insert: {
41839
+ created_at?: string | null;
41840
+ description?: string | null;
41841
+ factuur_id?: string | null;
41842
+ id?: string | null;
41843
+ kind?: string | null;
41844
+ quantity?: number | null;
41845
+ sort_order?: number | null;
41846
+ total_cents?: number | null;
41847
+ unit?: string | null;
41848
+ unit_price_cents?: number | null;
41849
+ };
41850
+ Update: {
41851
+ created_at?: string | null;
41852
+ description?: string | null;
41853
+ factuur_id?: string | null;
41854
+ id?: string | null;
41855
+ kind?: string | null;
41856
+ quantity?: number | null;
41857
+ sort_order?: number | null;
41858
+ total_cents?: number | null;
41859
+ unit?: string | null;
41860
+ unit_price_cents?: number | null;
41861
+ };
41862
+ Relationships: [{
41863
+ foreignKeyName: "invoice_items_invoice_id_fkey";
41864
+ columns: ["factuur_id"];
41865
+ isOneToOne: false;
41866
+ referencedRelation: "invoices";
41867
+ referencedColumns: ["id"];
41868
+ }, {
41869
+ foreignKeyName: "invoice_items_invoice_id_fkey";
41870
+ columns: ["factuur_id"];
41871
+ isOneToOne: false;
41872
+ referencedRelation: "uren_facturen";
41873
+ referencedColumns: ["id"];
41874
+ }];
41875
+ };
40223
41876
  v_external_customers_exact: {
40224
41877
  Row: {
40225
41878
  account_number: string | null;
@@ -40725,6 +42378,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
40725
42378
  gebruiker_id: string | null;
40726
42379
  gebruiker_naam: string;
40727
42380
  gestart_op: string | null;
42381
+ herkomst: string | null;
40728
42382
  id: string;
40729
42383
  idempotentie_sleutel: string | null;
40730
42384
  is_herprint: boolean;
@@ -40845,6 +42499,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
40845
42499
  gebruiker_id: string | null;
40846
42500
  gebruiker_naam: string;
40847
42501
  gestart_op: string | null;
42502
+ herkomst: string | null;
40848
42503
  id: string;
40849
42504
  idempotentie_sleutel: string | null;
40850
42505
  is_herprint: boolean;
@@ -41115,6 +42770,13 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
41115
42770
  };
41116
42771
  Returns: string;
41117
42772
  };
42773
+ employee_day_hours: {
42774
+ Args: {
42775
+ _day: string;
42776
+ _employee_id: string;
42777
+ };
42778
+ Returns: number;
42779
+ };
41118
42780
  enqueue_cart_replan_if_unlocked: {
41119
42781
  Args: {
41120
42782
  p_order_id: string;
@@ -41439,6 +43101,46 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
41439
43101
  Args: never;
41440
43102
  Returns: boolean;
41441
43103
  };
43104
+ invoice_create_from_source: {
43105
+ Args: {
43106
+ _payload?: import("../integrations/supabase/types").Json;
43107
+ _source_id: string;
43108
+ _source_type: string;
43109
+ };
43110
+ Returns: import("../integrations/supabase/types").Json;
43111
+ };
43112
+ invoice_get_billable_lines: {
43113
+ Args: {
43114
+ _invoice_id: string;
43115
+ };
43116
+ Returns: import("../integrations/supabase/types").Json;
43117
+ };
43118
+ invoice_get_for_source: {
43119
+ Args: {
43120
+ _source_id: string;
43121
+ _source_type: string;
43122
+ };
43123
+ Returns: import("../integrations/supabase/types").Json;
43124
+ };
43125
+ invoice_get_summary: {
43126
+ Args: {
43127
+ _invoice_id: string;
43128
+ };
43129
+ Returns: import("../integrations/supabase/types").Json;
43130
+ };
43131
+ invoice_list_sources: {
43132
+ Args: {
43133
+ _limit?: number;
43134
+ _source_type?: string;
43135
+ };
43136
+ Returns: import("../integrations/supabase/types").Json;
43137
+ };
43138
+ invoice_recalc_totals: {
43139
+ Args: {
43140
+ _invoice_id: string;
43141
+ };
43142
+ Returns: import("../integrations/supabase/types").Json;
43143
+ };
41442
43144
  is_authenticated: {
41443
43145
  Args: never;
41444
43146
  Returns: boolean;
@@ -41468,6 +43170,19 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
41468
43170
  Args: never;
41469
43171
  Returns: boolean;
41470
43172
  };
43173
+ itk_offerte_naar_werkbon: {
43174
+ Args: {
43175
+ _offerte_id: string;
43176
+ };
43177
+ Returns: string;
43178
+ };
43179
+ itk_offerte_restant_mandaat: {
43180
+ Args: {
43181
+ _exclude_offerte_id?: string;
43182
+ _werkbon_id: string;
43183
+ };
43184
+ Returns: number;
43185
+ };
41471
43186
  jwt_has_role: {
41472
43187
  Args: {
41473
43188
  _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
@@ -41478,12 +43193,45 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
41478
43193
  Args: never;
41479
43194
  Returns: {
41480
43195
  avatar_url: string;
43196
+ color: string;
41481
43197
  display_name: string;
41482
43198
  email: string;
43199
+ hours_fri: number;
43200
+ hours_mon: number;
43201
+ hours_thu: number;
43202
+ hours_tue: number;
43203
+ hours_wed: number;
41483
43204
  id: string;
43205
+ is_active: boolean;
43206
+ leave_balance_hours: number;
43207
+ persnr: string;
43208
+ phone: string;
41484
43209
  roles: string[];
41485
43210
  }[];
41486
43211
  };
43212
+ list_monteur_absences: {
43213
+ Args: {
43214
+ _from: string;
43215
+ _to: string;
43216
+ };
43217
+ Returns: {
43218
+ absence_date: string;
43219
+ end_time: string;
43220
+ full_day: boolean;
43221
+ kind: string;
43222
+ monteur_id: string;
43223
+ start_time: string;
43224
+ }[];
43225
+ };
43226
+ list_monteurs: {
43227
+ Args: never;
43228
+ Returns: {
43229
+ avatar_url: string;
43230
+ display_name: string;
43231
+ email: string;
43232
+ id: string;
43233
+ }[];
43234
+ };
41487
43235
  list_my_planning_items: {
41488
43236
  Args: {
41489
43237
  _from: string;
@@ -41895,6 +43643,23 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
41895
43643
  };
41896
43644
  Returns: string;
41897
43645
  };
43646
+ logistics_floriday_finish_push_v2: {
43647
+ Args: {
43648
+ _error?: string;
43649
+ _error_code?: string;
43650
+ _fulfillment_order_id?: string;
43651
+ _gateway_status?: number;
43652
+ _id: string;
43653
+ _max_age_hours?: number;
43654
+ _max_attempts?: number;
43655
+ _ok: boolean;
43656
+ _permanent?: boolean;
43657
+ _response?: import("../integrations/supabase/types").Json;
43658
+ _revision: number;
43659
+ _sent_hash?: string;
43660
+ };
43661
+ Returns: string;
43662
+ };
41898
43663
  logistics_floriday_prune_pushes: {
41899
43664
  Args: {
41900
43665
  _days?: number;
@@ -42437,6 +44202,13 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
42437
44202
  isSetofReturn: false;
42438
44203
  };
42439
44204
  };
44205
+ pick_cleanup_maintenance: {
44206
+ Args: {
44207
+ _heartbeat_hours?: number;
44208
+ _log_days?: number;
44209
+ };
44210
+ Returns: import("../integrations/supabase/types").Json;
44211
+ };
42440
44212
  pick_complete_print: {
42441
44213
  Args: {
42442
44214
  _printer_id: string;
@@ -42488,6 +44260,14 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
42488
44260
  Args: never;
42489
44261
  Returns: string;
42490
44262
  };
44263
+ pick_day_counts: {
44264
+ Args: {
44265
+ _pick_day?: string;
44266
+ _screen_id?: string;
44267
+ _station_id?: string;
44268
+ };
44269
+ Returns: import("../integrations/supabase/types").Json;
44270
+ };
42491
44271
  pick_document_layout_data: {
42492
44272
  Args: {
42493
44273
  _layout_id: string;
@@ -42525,6 +44305,14 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
42525
44305
  };
42526
44306
  Returns: undefined;
42527
44307
  };
44308
+ pick_reprint_document: {
44309
+ Args: {
44310
+ _queue_item_id: string;
44311
+ _session_id: string;
44312
+ _throttle_seconds?: number;
44313
+ };
44314
+ Returns: string;
44315
+ };
42528
44316
  pick_reset_print: {
42529
44317
  Args: {
42530
44318
  _queue_item_id: string;
@@ -42590,6 +44378,12 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
42590
44378
  };
42591
44379
  Returns: string;
42592
44380
  };
44381
+ pick_sync_queue_throttled: {
44382
+ Args: {
44383
+ _min_seconds?: number;
44384
+ };
44385
+ Returns: import("../integrations/supabase/types").Json;
44386
+ };
42593
44387
  pickstation_get_orders_raw: {
42594
44388
  Args: never;
42595
44389
  Returns: import("../integrations/supabase/types").Json;
@@ -42651,6 +44445,37 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
42651
44445
  };
42652
44446
  Returns: undefined;
42653
44447
  };
44448
+ quote_create_from_source: {
44449
+ Args: {
44450
+ _payload?: import("../integrations/supabase/types").Json;
44451
+ _source_id: string;
44452
+ _source_type: string;
44453
+ };
44454
+ Returns: string;
44455
+ };
44456
+ quote_get_billable_lines: {
44457
+ Args: {
44458
+ _quotation_id: string;
44459
+ };
44460
+ Returns: import("../integrations/supabase/types").Json;
44461
+ };
44462
+ quote_get_summary: {
44463
+ Args: {
44464
+ _quotation_id: string;
44465
+ };
44466
+ Returns: import("../integrations/supabase/types").Json;
44467
+ };
44468
+ quote_list_packages: {
44469
+ Args: never;
44470
+ Returns: import("../integrations/supabase/types").Json;
44471
+ };
44472
+ quote_list_sources: {
44473
+ Args: {
44474
+ _limit?: number;
44475
+ _source_type?: string;
44476
+ };
44477
+ Returns: import("../integrations/supabase/types").Json;
44478
+ };
42654
44479
  recompute_all_reserved_stock: {
42655
44480
  Args: never;
42656
44481
  Returns: undefined;
@@ -42704,6 +44529,12 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
42704
44529
  };
42705
44530
  Returns: boolean;
42706
44531
  };
44532
+ release_stale_order_invoice_links: {
44533
+ Args: {
44534
+ _minutes?: number;
44535
+ };
44536
+ Returns: number;
44537
+ };
42707
44538
  reorder_customer_price_groups: {
42708
44539
  Args: {
42709
44540
  _ids: string[];
@@ -43186,6 +45017,12 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
43186
45017
  };
43187
45018
  Returns: undefined;
43188
45019
  };
45020
+ sync_sick_time_off: {
45021
+ Args: {
45022
+ _period_id: string;
45023
+ };
45024
+ Returns: number;
45025
+ };
43189
45026
  trade_item_stock_duplicates: {
43190
45027
  Args: never;
43191
45028
  Returns: {
@@ -43216,6 +45053,20 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
43216
45053
  };
43217
45054
  Returns: undefined;
43218
45055
  };
45056
+ twinfield_deactivate_connection: {
45057
+ Args: {
45058
+ p_connection_id: string;
45059
+ p_user_id: string;
45060
+ };
45061
+ Returns: import("../integrations/supabase/types").Json;
45062
+ };
45063
+ twinfield_handle_administration_change: {
45064
+ Args: {
45065
+ _administration_code: string;
45066
+ _user_id: string;
45067
+ };
45068
+ Returns: undefined;
45069
+ };
43219
45070
  twinfield_prune_push_queue: {
43220
45071
  Args: never;
43221
45072
  Returns: number;
@@ -43235,10 +45086,11 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
43235
45086
  p_company_name?: string;
43236
45087
  p_environment: string;
43237
45088
  p_office_code?: string;
45089
+ p_reset_sync?: boolean;
43238
45090
  p_status?: string;
43239
45091
  p_user_id: string;
43240
45092
  };
43241
- Returns: string;
45093
+ Returns: import("../integrations/supabase/types").Json;
43242
45094
  };
43243
45095
  upsert_auto_fulfillment_log: {
43244
45096
  Args: {
@@ -43259,6 +45111,26 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
43259
45111
  Args: never;
43260
45112
  Returns: string;
43261
45113
  };
45114
+ wo_create_from_source: {
45115
+ Args: {
45116
+ _payload?: import("../integrations/supabase/types").Json;
45117
+ _source_id: string;
45118
+ _source_type: string;
45119
+ };
45120
+ Returns: string;
45121
+ };
45122
+ wo_get_billable_lines: {
45123
+ Args: {
45124
+ _work_order_id: string;
45125
+ };
45126
+ Returns: import("../integrations/supabase/types").Json;
45127
+ };
45128
+ wo_get_summary: {
45129
+ Args: {
45130
+ _work_order_id: string;
45131
+ };
45132
+ Returns: import("../integrations/supabase/types").Json;
45133
+ };
43262
45134
  };
43263
45135
  Enums: {
43264
45136
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
@@ -46076,6 +47948,42 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
46076
47948
  };
46077
47949
  Relationships: [];
46078
47950
  };
47951
+ document_bronregels: {
47952
+ Row: {
47953
+ bron: string;
47954
+ created_at: string;
47955
+ documenttype: string;
47956
+ herkomst: string;
47957
+ id: string;
47958
+ layout_id: string | null;
47959
+ updated_at: string;
47960
+ };
47961
+ Insert: {
47962
+ bron?: string;
47963
+ created_at?: string;
47964
+ documenttype: string;
47965
+ herkomst: string;
47966
+ id?: string;
47967
+ layout_id?: string | null;
47968
+ updated_at?: string;
47969
+ };
47970
+ Update: {
47971
+ bron?: string;
47972
+ created_at?: string;
47973
+ documenttype?: string;
47974
+ herkomst?: string;
47975
+ id?: string;
47976
+ layout_id?: string | null;
47977
+ updated_at?: string;
47978
+ };
47979
+ Relationships: [{
47980
+ foreignKeyName: "document_bronregels_layout_id_fkey";
47981
+ columns: ["layout_id"];
47982
+ isOneToOne: false;
47983
+ referencedRelation: "document_layouts";
47984
+ referencedColumns: ["id"];
47985
+ }];
47986
+ };
46079
47987
  document_formaat_printers: {
46080
47988
  Row: {
46081
47989
  created_at: string;
@@ -46353,6 +48261,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
46353
48261
  Row: {
46354
48262
  actief: boolean;
46355
48263
  breedte_mm: number;
48264
+ bron: string;
46356
48265
  config: import("../integrations/supabase/types").Json;
46357
48266
  created_at: string;
46358
48267
  created_by: string | null;
@@ -46370,12 +48279,14 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
46370
48279
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
46371
48280
  page_settings: import("../integrations/supabase/types").Json;
46372
48281
  papierformaat: string;
48282
+ systeem: boolean;
46373
48283
  thumbnail_url: string | null;
46374
48284
  updated_at: string;
46375
48285
  };
46376
48286
  Insert: {
46377
48287
  actief?: boolean;
46378
48288
  breedte_mm?: number;
48289
+ bron?: string;
46379
48290
  config?: import("../integrations/supabase/types").Json;
46380
48291
  created_at?: string;
46381
48292
  created_by?: string | null;
@@ -46393,12 +48304,14 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
46393
48304
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
46394
48305
  page_settings?: import("../integrations/supabase/types").Json;
46395
48306
  papierformaat?: string;
48307
+ systeem?: boolean;
46396
48308
  thumbnail_url?: string | null;
46397
48309
  updated_at?: string;
46398
48310
  };
46399
48311
  Update: {
46400
48312
  actief?: boolean;
46401
48313
  breedte_mm?: number;
48314
+ bron?: string;
46402
48315
  config?: import("../integrations/supabase/types").Json;
46403
48316
  created_at?: string;
46404
48317
  created_by?: string | null;
@@ -46416,11 +48329,48 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
46416
48329
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
46417
48330
  page_settings?: import("../integrations/supabase/types").Json;
46418
48331
  papierformaat?: string;
48332
+ systeem?: boolean;
46419
48333
  thumbnail_url?: string | null;
46420
48334
  updated_at?: string;
46421
48335
  };
46422
48336
  Relationships: [];
46423
48337
  };
48338
+ document_werkplek_printers: {
48339
+ Row: {
48340
+ created_at: string;
48341
+ documenttype: string;
48342
+ id: string;
48343
+ papierformaat: string | null;
48344
+ printer_id: string | null;
48345
+ updated_at: string;
48346
+ werkplek: string;
48347
+ };
48348
+ Insert: {
48349
+ created_at?: string;
48350
+ documenttype: string;
48351
+ id?: string;
48352
+ papierformaat?: string | null;
48353
+ printer_id?: string | null;
48354
+ updated_at?: string;
48355
+ werkplek: string;
48356
+ };
48357
+ Update: {
48358
+ created_at?: string;
48359
+ documenttype?: string;
48360
+ id?: string;
48361
+ papierformaat?: string | null;
48362
+ printer_id?: string | null;
48363
+ updated_at?: string;
48364
+ werkplek?: string;
48365
+ };
48366
+ Relationships: [{
48367
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
48368
+ columns: ["printer_id"];
48369
+ isOneToOne: false;
48370
+ referencedRelation: "printers";
48371
+ referencedColumns: ["id"];
48372
+ }];
48373
+ };
46424
48374
  email_auth_connections: {
46425
48375
  Row: {
46426
48376
  access_token_encrypted: string | null;
@@ -50666,8 +52616,63 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
50666
52616
  };
50667
52617
  Relationships: [];
50668
52618
  };
52619
+ invoice_items: {
52620
+ Row: {
52621
+ created_at: string;
52622
+ description: string;
52623
+ id: string;
52624
+ invoice_id: string;
52625
+ kind: string;
52626
+ quantity: number;
52627
+ sort_order: number;
52628
+ source_line_ref: string | null;
52629
+ total_cents: number;
52630
+ unit: string;
52631
+ unit_price_cents: number;
52632
+ };
52633
+ Insert: {
52634
+ created_at?: string;
52635
+ description?: string;
52636
+ id?: string;
52637
+ invoice_id: string;
52638
+ kind?: string;
52639
+ quantity?: number;
52640
+ sort_order?: number;
52641
+ source_line_ref?: string | null;
52642
+ total_cents?: number;
52643
+ unit?: string;
52644
+ unit_price_cents?: number;
52645
+ };
52646
+ Update: {
52647
+ created_at?: string;
52648
+ description?: string;
52649
+ id?: string;
52650
+ invoice_id?: string;
52651
+ kind?: string;
52652
+ quantity?: number;
52653
+ sort_order?: number;
52654
+ source_line_ref?: string | null;
52655
+ total_cents?: number;
52656
+ unit?: string;
52657
+ unit_price_cents?: number;
52658
+ };
52659
+ Relationships: [{
52660
+ foreignKeyName: "invoice_items_invoice_id_fkey";
52661
+ columns: ["invoice_id"];
52662
+ isOneToOne: false;
52663
+ referencedRelation: "invoices";
52664
+ referencedColumns: ["id"];
52665
+ }, {
52666
+ foreignKeyName: "invoice_items_invoice_id_fkey";
52667
+ columns: ["invoice_id"];
52668
+ isOneToOne: false;
52669
+ referencedRelation: "uren_facturen";
52670
+ referencedColumns: ["id"];
52671
+ }];
52672
+ };
50669
52673
  invoice_post_idempotency: {
50670
52674
  Row: {
52675
+ administration_code: string;
50671
52676
  client_request_id: string;
50672
52677
  completed_at: string | null;
50673
52678
  created_at: string;
@@ -50677,6 +52682,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
50677
52682
  user_id: string;
50678
52683
  };
50679
52684
  Insert: {
52685
+ administration_code?: string;
50680
52686
  client_request_id: string;
50681
52687
  completed_at?: string | null;
50682
52688
  created_at?: string;
@@ -50686,6 +52692,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
50686
52692
  user_id: string;
50687
52693
  };
50688
52694
  Update: {
52695
+ administration_code?: string;
50689
52696
  client_request_id?: string;
50690
52697
  completed_at?: string | null;
50691
52698
  created_at?: string;
@@ -50891,6 +52898,75 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
50891
52898
  };
50892
52899
  Relationships: [];
50893
52900
  };
52901
+ invoices: {
52902
+ Row: {
52903
+ created_at: string;
52904
+ created_by: string | null;
52905
+ customer_id: string | null;
52906
+ customer_name: string | null;
52907
+ due_date: string | null;
52908
+ id: string;
52909
+ invoice_date: string;
52910
+ invoice_number: string | null;
52911
+ note: string | null;
52912
+ source_number: string | null;
52913
+ source_ref: string | null;
52914
+ source_type: string;
52915
+ status: string;
52916
+ subtotal_cents: number;
52917
+ total_cents: number;
52918
+ updated_at: string;
52919
+ vat_cents: number;
52920
+ vat_rate: number;
52921
+ };
52922
+ Insert: {
52923
+ created_at?: string;
52924
+ created_by?: string | null;
52925
+ customer_id?: string | null;
52926
+ customer_name?: string | null;
52927
+ due_date?: string | null;
52928
+ id?: string;
52929
+ invoice_date?: string;
52930
+ invoice_number?: string | null;
52931
+ note?: string | null;
52932
+ source_number?: string | null;
52933
+ source_ref?: string | null;
52934
+ source_type?: string;
52935
+ status?: string;
52936
+ subtotal_cents?: number;
52937
+ total_cents?: number;
52938
+ updated_at?: string;
52939
+ vat_cents?: number;
52940
+ vat_rate?: number;
52941
+ };
52942
+ Update: {
52943
+ created_at?: string;
52944
+ created_by?: string | null;
52945
+ customer_id?: string | null;
52946
+ customer_name?: string | null;
52947
+ due_date?: string | null;
52948
+ id?: string;
52949
+ invoice_date?: string;
52950
+ invoice_number?: string | null;
52951
+ note?: string | null;
52952
+ source_number?: string | null;
52953
+ source_ref?: string | null;
52954
+ source_type?: string;
52955
+ status?: string;
52956
+ subtotal_cents?: number;
52957
+ total_cents?: number;
52958
+ updated_at?: string;
52959
+ vat_cents?: number;
52960
+ vat_rate?: number;
52961
+ };
52962
+ Relationships: [{
52963
+ foreignKeyName: "invoices_customer_id_fkey";
52964
+ columns: ["customer_id"];
52965
+ isOneToOne: false;
52966
+ referencedRelation: "itk_customers";
52967
+ referencedColumns: ["id"];
52968
+ }];
52969
+ };
50894
52970
  itk_contact_persons: {
50895
52971
  Row: {
50896
52972
  created_at: string;
@@ -51086,6 +53162,258 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
51086
53162
  };
51087
53163
  Relationships: [];
51088
53164
  };
53165
+ itk_offerte_events: {
53166
+ Row: {
53167
+ created_at: string;
53168
+ event_type: string;
53169
+ id: string;
53170
+ metadata: import("../integrations/supabase/types").Json;
53171
+ offerte_id: string;
53172
+ omschrijving: string | null;
53173
+ user_id: string | null;
53174
+ };
53175
+ Insert: {
53176
+ created_at?: string;
53177
+ event_type: string;
53178
+ id?: string;
53179
+ metadata?: import("../integrations/supabase/types").Json;
53180
+ offerte_id: string;
53181
+ omschrijving?: string | null;
53182
+ user_id?: string | null;
53183
+ };
53184
+ Update: {
53185
+ created_at?: string;
53186
+ event_type?: string;
53187
+ id?: string;
53188
+ metadata?: import("../integrations/supabase/types").Json;
53189
+ offerte_id?: string;
53190
+ omschrijving?: string | null;
53191
+ user_id?: string | null;
53192
+ };
53193
+ Relationships: [{
53194
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
53195
+ columns: ["offerte_id"];
53196
+ isOneToOne: false;
53197
+ referencedRelation: "itk_offertes";
53198
+ referencedColumns: ["id"];
53199
+ }];
53200
+ };
53201
+ itk_offerte_regels: {
53202
+ Row: {
53203
+ created_at: string;
53204
+ id: string;
53205
+ line_total_cents: number;
53206
+ offerte_id: string;
53207
+ omschrijving: string;
53208
+ package_id: string | null;
53209
+ quantity: number;
53210
+ sort_order: number;
53211
+ source: string;
53212
+ unit_price_cents: number;
53213
+ updated_at: string;
53214
+ };
53215
+ Insert: {
53216
+ created_at?: string;
53217
+ id?: string;
53218
+ line_total_cents?: number;
53219
+ offerte_id: string;
53220
+ omschrijving?: string;
53221
+ package_id?: string | null;
53222
+ quantity?: number;
53223
+ sort_order?: number;
53224
+ source?: string;
53225
+ unit_price_cents?: number;
53226
+ updated_at?: string;
53227
+ };
53228
+ Update: {
53229
+ created_at?: string;
53230
+ id?: string;
53231
+ line_total_cents?: number;
53232
+ offerte_id?: string;
53233
+ omschrijving?: string;
53234
+ package_id?: string | null;
53235
+ quantity?: number;
53236
+ sort_order?: number;
53237
+ source?: string;
53238
+ unit_price_cents?: number;
53239
+ updated_at?: string;
53240
+ };
53241
+ Relationships: [{
53242
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
53243
+ columns: ["offerte_id"];
53244
+ isOneToOne: false;
53245
+ referencedRelation: "itk_offertes";
53246
+ referencedColumns: ["id"];
53247
+ }, {
53248
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
53249
+ columns: ["package_id"];
53250
+ isOneToOne: false;
53251
+ referencedRelation: "werkbon_packages";
53252
+ referencedColumns: ["id"];
53253
+ }];
53254
+ };
53255
+ itk_offerte_settings: {
53256
+ Row: {
53257
+ auto_convert_binnen_mandaat: boolean;
53258
+ created_at: string;
53259
+ default_geldigheid_dagen: number;
53260
+ default_vat_rate: number;
53261
+ id: string;
53262
+ singleton: boolean;
53263
+ updated_at: string;
53264
+ };
53265
+ Insert: {
53266
+ auto_convert_binnen_mandaat?: boolean;
53267
+ created_at?: string;
53268
+ default_geldigheid_dagen?: number;
53269
+ default_vat_rate?: number;
53270
+ id?: string;
53271
+ singleton?: boolean;
53272
+ updated_at?: string;
53273
+ };
53274
+ Update: {
53275
+ auto_convert_binnen_mandaat?: boolean;
53276
+ created_at?: string;
53277
+ default_geldigheid_dagen?: number;
53278
+ default_vat_rate?: number;
53279
+ id?: string;
53280
+ singleton?: boolean;
53281
+ updated_at?: string;
53282
+ };
53283
+ Relationships: [];
53284
+ };
53285
+ itk_offertes: {
53286
+ Row: {
53287
+ ai_generated: boolean;
53288
+ approved_at: string | null;
53289
+ binnen_mandaat: boolean;
53290
+ contact_id: string | null;
53291
+ converted_at: string | null;
53292
+ created_at: string;
53293
+ created_by: string | null;
53294
+ customer_id: string | null;
53295
+ follow_up_werkbon_id: string | null;
53296
+ id: string;
53297
+ jaar: number;
53298
+ mandaat_restant_cents: number;
53299
+ notities: string | null;
53300
+ offerte_number: string | null;
53301
+ omschrijving: string;
53302
+ rejected_at: string | null;
53303
+ sent_at: string | null;
53304
+ source_number: string | null;
53305
+ source_ref: string | null;
53306
+ source_type: string;
53307
+ status: string;
53308
+ subtotal_cents: number;
53309
+ total_cents: number;
53310
+ updated_at: string;
53311
+ valid_until: string | null;
53312
+ vat_cents: number;
53313
+ vat_rate: number;
53314
+ viewed_at: string | null;
53315
+ volgnummer: number | null;
53316
+ werkbon_id: string | null;
53317
+ work_location_id: string | null;
53318
+ };
53319
+ Insert: {
53320
+ ai_generated?: boolean;
53321
+ approved_at?: string | null;
53322
+ binnen_mandaat?: boolean;
53323
+ contact_id?: string | null;
53324
+ converted_at?: string | null;
53325
+ created_at?: string;
53326
+ created_by?: string | null;
53327
+ customer_id?: string | null;
53328
+ follow_up_werkbon_id?: string | null;
53329
+ id?: string;
53330
+ jaar?: number;
53331
+ mandaat_restant_cents?: number;
53332
+ notities?: string | null;
53333
+ offerte_number?: string | null;
53334
+ omschrijving?: string;
53335
+ rejected_at?: string | null;
53336
+ sent_at?: string | null;
53337
+ source_number?: string | null;
53338
+ source_ref?: string | null;
53339
+ source_type?: string;
53340
+ status?: string;
53341
+ subtotal_cents?: number;
53342
+ total_cents?: number;
53343
+ updated_at?: string;
53344
+ valid_until?: string | null;
53345
+ vat_cents?: number;
53346
+ vat_rate?: number;
53347
+ viewed_at?: string | null;
53348
+ volgnummer?: number | null;
53349
+ werkbon_id?: string | null;
53350
+ work_location_id?: string | null;
53351
+ };
53352
+ Update: {
53353
+ ai_generated?: boolean;
53354
+ approved_at?: string | null;
53355
+ binnen_mandaat?: boolean;
53356
+ contact_id?: string | null;
53357
+ converted_at?: string | null;
53358
+ created_at?: string;
53359
+ created_by?: string | null;
53360
+ customer_id?: string | null;
53361
+ follow_up_werkbon_id?: string | null;
53362
+ id?: string;
53363
+ jaar?: number;
53364
+ mandaat_restant_cents?: number;
53365
+ notities?: string | null;
53366
+ offerte_number?: string | null;
53367
+ omschrijving?: string;
53368
+ rejected_at?: string | null;
53369
+ sent_at?: string | null;
53370
+ source_number?: string | null;
53371
+ source_ref?: string | null;
53372
+ source_type?: string;
53373
+ status?: string;
53374
+ subtotal_cents?: number;
53375
+ total_cents?: number;
53376
+ updated_at?: string;
53377
+ valid_until?: string | null;
53378
+ vat_cents?: number;
53379
+ vat_rate?: number;
53380
+ viewed_at?: string | null;
53381
+ volgnummer?: number | null;
53382
+ werkbon_id?: string | null;
53383
+ work_location_id?: string | null;
53384
+ };
53385
+ Relationships: [{
53386
+ foreignKeyName: "itk_offertes_contact_id_fkey";
53387
+ columns: ["contact_id"];
53388
+ isOneToOne: false;
53389
+ referencedRelation: "itk_contact_persons";
53390
+ referencedColumns: ["id"];
53391
+ }, {
53392
+ foreignKeyName: "itk_offertes_customer_id_fkey";
53393
+ columns: ["customer_id"];
53394
+ isOneToOne: false;
53395
+ referencedRelation: "itk_customers";
53396
+ referencedColumns: ["id"];
53397
+ }, {
53398
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
53399
+ columns: ["follow_up_werkbon_id"];
53400
+ isOneToOne: false;
53401
+ referencedRelation: "werkbonnen";
53402
+ referencedColumns: ["id"];
53403
+ }, {
53404
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
53405
+ columns: ["werkbon_id"];
53406
+ isOneToOne: false;
53407
+ referencedRelation: "werkbonnen";
53408
+ referencedColumns: ["id"];
53409
+ }, {
53410
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
53411
+ columns: ["work_location_id"];
53412
+ isOneToOne: false;
53413
+ referencedRelation: "itk_work_locations";
53414
+ referencedColumns: ["id"];
53415
+ }];
53416
+ };
51089
53417
  itk_work_locations: {
51090
53418
  Row: {
51091
53419
  city: string | null;
@@ -51986,6 +54314,9 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
51986
54314
  id: string;
51987
54315
  last_error: string | null;
51988
54316
  last_error_at: string | null;
54317
+ last_error_code: string | null;
54318
+ last_gateway_status: number | null;
54319
+ last_response: import("../integrations/supabase/types").Json | null;
51989
54320
  last_sent_hash: string | null;
51990
54321
  locked_by: string | null;
51991
54322
  locked_until: string | null;
@@ -52006,6 +54337,9 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
52006
54337
  id?: string;
52007
54338
  last_error?: string | null;
52008
54339
  last_error_at?: string | null;
54340
+ last_error_code?: string | null;
54341
+ last_gateway_status?: number | null;
54342
+ last_response?: import("../integrations/supabase/types").Json | null;
52009
54343
  last_sent_hash?: string | null;
52010
54344
  locked_by?: string | null;
52011
54345
  locked_until?: string | null;
@@ -52026,6 +54360,9 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
52026
54360
  id?: string;
52027
54361
  last_error?: string | null;
52028
54362
  last_error_at?: string | null;
54363
+ last_error_code?: string | null;
54364
+ last_gateway_status?: number | null;
54365
+ last_response?: import("../integrations/supabase/types").Json | null;
52029
54366
  last_sent_hash?: string | null;
52030
54367
  locked_by?: string | null;
52031
54368
  locked_until?: string | null;
@@ -53459,6 +55796,63 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
53459
55796
  referencedColumns: ["id"];
53460
55797
  }];
53461
55798
  };
55799
+ medewerker_details: {
55800
+ Row: {
55801
+ color: string | null;
55802
+ created_at: string;
55803
+ hours_fri: number | null;
55804
+ hours_mon: number | null;
55805
+ hours_thu: number | null;
55806
+ hours_tue: number | null;
55807
+ hours_wed: number | null;
55808
+ id: string;
55809
+ is_active: boolean;
55810
+ leave_balance_hours: number;
55811
+ persnr: string | null;
55812
+ phone: string | null;
55813
+ profile_id: string;
55814
+ updated_at: string;
55815
+ };
55816
+ Insert: {
55817
+ color?: string | null;
55818
+ created_at?: string;
55819
+ hours_fri?: number | null;
55820
+ hours_mon?: number | null;
55821
+ hours_thu?: number | null;
55822
+ hours_tue?: number | null;
55823
+ hours_wed?: number | null;
55824
+ id?: string;
55825
+ is_active?: boolean;
55826
+ leave_balance_hours?: number;
55827
+ persnr?: string | null;
55828
+ phone?: string | null;
55829
+ profile_id: string;
55830
+ updated_at?: string;
55831
+ };
55832
+ Update: {
55833
+ color?: string | null;
55834
+ created_at?: string;
55835
+ hours_fri?: number | null;
55836
+ hours_mon?: number | null;
55837
+ hours_thu?: number | null;
55838
+ hours_tue?: number | null;
55839
+ hours_wed?: number | null;
55840
+ id?: string;
55841
+ is_active?: boolean;
55842
+ leave_balance_hours?: number;
55843
+ persnr?: string | null;
55844
+ phone?: string | null;
55845
+ profile_id?: string;
55846
+ updated_at?: string;
55847
+ };
55848
+ Relationships: [{
55849
+ foreignKeyName: "medewerker_details_profile_id_fkey";
55850
+ columns: ["profile_id"];
55851
+ isOneToOne: true;
55852
+ referencedRelation: "profiles";
55853
+ referencedColumns: ["id"];
55854
+ }];
55855
+ };
53462
55856
  module_features: {
53463
55857
  Row: {
53464
55858
  created_at: string;
@@ -53522,6 +55916,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
53522
55916
  enforce: boolean;
53523
55917
  is_active: boolean;
53524
55918
  last_seen_at: string;
55919
+ missing_count: number;
53525
55920
  module_id: string;
53526
55921
  name: string;
53527
55922
  shell_id: string | null;
@@ -53532,6 +55927,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
53532
55927
  enforce?: boolean;
53533
55928
  is_active?: boolean;
53534
55929
  last_seen_at?: string;
55930
+ missing_count?: number;
53535
55931
  module_id: string;
53536
55932
  name: string;
53537
55933
  shell_id?: string | null;
@@ -53542,6 +55938,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
53542
55938
  enforce?: boolean;
53543
55939
  is_active?: boolean;
53544
55940
  last_seen_at?: string;
55941
+ missing_count?: number;
53545
55942
  module_id?: string;
53546
55943
  name?: string;
53547
55944
  shell_id?: string | null;
@@ -54541,6 +56938,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
54541
56938
  };
54542
56939
  order_invoice_links: {
54543
56940
  Row: {
56941
+ administration_code: string | null;
54544
56942
  attempts: number;
54545
56943
  created_at: string;
54546
56944
  error_message: string | null;
@@ -54553,6 +56951,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
54553
56951
  updated_at: string;
54554
56952
  };
54555
56953
  Insert: {
56954
+ administration_code?: string | null;
54556
56955
  attempts?: number;
54557
56956
  created_at?: string;
54558
56957
  error_message?: string | null;
@@ -54565,6 +56964,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
54565
56964
  updated_at?: string;
54566
56965
  };
54567
56966
  Update: {
56967
+ administration_code?: string | null;
54568
56968
  attempts?: number;
54569
56969
  created_at?: string;
54570
56970
  error_message?: string | null;
@@ -54752,6 +57152,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
54752
57152
  orders: {
54753
57153
  Row: {
54754
57154
  buffer_id: string | null;
57155
+ cancel_reason: string | null;
57156
+ cancelled_at: string | null;
54755
57157
  created_at: string;
54756
57158
  custom_fields: import("../integrations/supabase/types").Json;
54757
57159
  customer_id: string | null;
@@ -54774,6 +57176,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
54774
57176
  };
54775
57177
  Insert: {
54776
57178
  buffer_id?: string | null;
57179
+ cancel_reason?: string | null;
57180
+ cancelled_at?: string | null;
54777
57181
  created_at?: string;
54778
57182
  custom_fields?: import("../integrations/supabase/types").Json;
54779
57183
  customer_id?: string | null;
@@ -54796,6 +57200,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
54796
57200
  };
54797
57201
  Update: {
54798
57202
  buffer_id?: string | null;
57203
+ cancel_reason?: string | null;
57204
+ cancelled_at?: string | null;
54799
57205
  created_at?: string;
54800
57206
  custom_fields?: import("../integrations/supabase/types").Json;
54801
57207
  customer_id?: string | null;
@@ -55724,6 +58130,27 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
55724
58130
  referencedColumns: ["id"];
55725
58131
  }];
55726
58132
  };
58133
+ pick_sync_state: {
58134
+ Row: {
58135
+ id: boolean;
58136
+ last_cleanup_at: string | null;
58137
+ last_sync_at: string | null;
58138
+ updated_at: string;
58139
+ };
58140
+ Insert: {
58141
+ id?: boolean;
58142
+ last_cleanup_at?: string | null;
58143
+ last_sync_at?: string | null;
58144
+ updated_at?: string;
58145
+ };
58146
+ Update: {
58147
+ id?: boolean;
58148
+ last_cleanup_at?: string | null;
58149
+ last_sync_at?: string | null;
58150
+ updated_at?: string;
58151
+ };
58152
+ Relationships: [];
58153
+ };
55727
58154
  pick_task_document_types: {
55728
58155
  Row: {
55729
58156
  created_at: string;
@@ -56006,6 +58433,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
56006
58433
  gebruiker_id: string | null;
56007
58434
  gebruiker_naam: string;
56008
58435
  gestart_op: string | null;
58436
+ herkomst: string | null;
56009
58437
  id: string;
56010
58438
  idempotentie_sleutel: string | null;
56011
58439
  is_herprint: boolean;
@@ -56035,6 +58463,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
56035
58463
  gebruiker_id?: string | null;
56036
58464
  gebruiker_naam?: string;
56037
58465
  gestart_op?: string | null;
58466
+ herkomst?: string | null;
56038
58467
  id?: string;
56039
58468
  idempotentie_sleutel?: string | null;
56040
58469
  is_herprint?: boolean;
@@ -56064,6 +58493,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
56064
58493
  gebruiker_id?: string | null;
56065
58494
  gebruiker_naam?: string;
56066
58495
  gestart_op?: string | null;
58496
+ herkomst?: string | null;
56067
58497
  id?: string;
56068
58498
  idempotentie_sleutel?: string | null;
56069
58499
  is_herprint?: boolean;
@@ -56858,6 +59288,66 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
56858
59288
  };
56859
59289
  Relationships: [];
56860
59290
  };
59291
+ profile_modules: {
59292
+ Row: {
59293
+ created_at: string;
59294
+ id: string;
59295
+ module_id: string;
59296
+ profile_id: string;
59297
+ };
59298
+ Insert: {
59299
+ created_at?: string;
59300
+ id?: string;
59301
+ module_id: string;
59302
+ profile_id: string;
59303
+ };
59304
+ Update: {
59305
+ created_at?: string;
59306
+ id?: string;
59307
+ module_id?: string;
59308
+ profile_id?: string;
59309
+ };
59310
+ Relationships: [{
59311
+ foreignKeyName: "profile_modules_profile_id_fkey";
59312
+ columns: ["profile_id"];
59313
+ isOneToOne: false;
59314
+ referencedRelation: "profiles_org";
59315
+ referencedColumns: ["id"];
59316
+ }];
59317
+ };
59318
+ profile_roles: {
59319
+ Row: {
59320
+ created_at: string;
59321
+ id: string;
59322
+ profile_id: string;
59323
+ role_id: string;
59324
+ };
59325
+ Insert: {
59326
+ created_at?: string;
59327
+ id?: string;
59328
+ profile_id: string;
59329
+ role_id: string;
59330
+ };
59331
+ Update: {
59332
+ created_at?: string;
59333
+ id?: string;
59334
+ profile_id?: string;
59335
+ role_id?: string;
59336
+ };
59337
+ Relationships: [{
59338
+ foreignKeyName: "profile_roles_profile_id_fkey";
59339
+ columns: ["profile_id"];
59340
+ isOneToOne: false;
59341
+ referencedRelation: "profiles_org";
59342
+ referencedColumns: ["id"];
59343
+ }, {
59344
+ foreignKeyName: "profile_roles_role_id_fkey";
59345
+ columns: ["role_id"];
59346
+ isOneToOne: false;
59347
+ referencedRelation: "roles";
59348
+ referencedColumns: ["id"];
59349
+ }];
59350
+ };
56861
59351
  profiles: {
56862
59352
  Row: {
56863
59353
  address: string | null;
@@ -56903,6 +59393,39 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
56903
59393
  referencedColumns: ["id"];
56904
59394
  }];
56905
59395
  };
59396
+ profiles_org: {
59397
+ Row: {
59398
+ created_at: string;
59399
+ id: string;
59400
+ is_default: boolean;
59401
+ name: string;
59402
+ tenant_id: string | null;
59403
+ updated_at: string;
59404
+ };
59405
+ Insert: {
59406
+ created_at?: string;
59407
+ id?: string;
59408
+ is_default?: boolean;
59409
+ name: string;
59410
+ tenant_id?: string | null;
59411
+ updated_at?: string;
59412
+ };
59413
+ Update: {
59414
+ created_at?: string;
59415
+ id?: string;
59416
+ is_default?: boolean;
59417
+ name?: string;
59418
+ tenant_id?: string | null;
59419
+ updated_at?: string;
59420
+ };
59421
+ Relationships: [{
59422
+ foreignKeyName: "profiles_org_tenant_id_fkey";
59423
+ columns: ["tenant_id"];
59424
+ isOneToOne: false;
59425
+ referencedRelation: "tenants";
59426
+ referencedColumns: ["id"];
59427
+ }];
59428
+ };
56906
59429
  projects: {
56907
59430
  Row: {
56908
59431
  contact_name: string | null;
@@ -58077,6 +60600,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
58077
60600
  type: string;
58078
60601
  updated_at: string;
58079
60602
  vereist_medewerker: boolean;
60603
+ werkplek: string | null;
58080
60604
  };
58081
60605
  Insert: {
58082
60606
  actief?: boolean;
@@ -58090,6 +60614,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
58090
60614
  type?: string;
58091
60615
  updated_at?: string;
58092
60616
  vereist_medewerker?: boolean;
60617
+ werkplek?: string | null;
58093
60618
  };
58094
60619
  Update: {
58095
60620
  actief?: boolean;
@@ -58103,9 +60628,46 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
58103
60628
  type?: string;
58104
60629
  updated_at?: string;
58105
60630
  vereist_medewerker?: boolean;
60631
+ werkplek?: string | null;
58106
60632
  };
58107
60633
  Relationships: [];
58108
60634
  };
60635
+ sick_periods: {
60636
+ Row: {
60637
+ created_at: string;
60638
+ employee_id: string;
60639
+ end_date: string | null;
60640
+ id: string;
60641
+ notes: string | null;
60642
+ start_date: string;
60643
+ updated_at: string;
60644
+ };
60645
+ Insert: {
60646
+ created_at?: string;
60647
+ employee_id: string;
60648
+ end_date?: string | null;
60649
+ id?: string;
60650
+ notes?: string | null;
60651
+ start_date: string;
60652
+ updated_at?: string;
60653
+ };
60654
+ Update: {
60655
+ created_at?: string;
60656
+ employee_id?: string;
60657
+ end_date?: string | null;
60658
+ id?: string;
60659
+ notes?: string | null;
60660
+ start_date?: string;
60661
+ updated_at?: string;
60662
+ };
60663
+ Relationships: [{
60664
+ foreignKeyName: "sick_periods_employee_id_fkey";
60665
+ columns: ["employee_id"];
60666
+ isOneToOne: false;
60667
+ referencedRelation: "profiles";
60668
+ referencedColumns: ["id"];
60669
+ }];
60670
+ };
58109
60671
  sidebar_config: {
58110
60672
  Row: {
58111
60673
  id: string;
@@ -58936,12 +61498,16 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
58936
61498
  company_name: string | null;
58937
61499
  connected_at: string | null;
58938
61500
  created_at: string;
61501
+ disconnected_at: string | null;
58939
61502
  environment: string;
58940
61503
  id: string;
61504
+ initial_sync_completed_at: string | null;
61505
+ initial_sync_started_at: string | null;
58941
61506
  is_active: boolean;
58942
61507
  label: string | null;
58943
61508
  office_code: string | null;
58944
61509
  redirect_uri: string | null;
61510
+ superseded_at: string | null;
58945
61511
  updated_at: string;
58946
61512
  user_id: string;
58947
61513
  };
@@ -58952,12 +61518,16 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
58952
61518
  company_name?: string | null;
58953
61519
  connected_at?: string | null;
58954
61520
  created_at?: string;
61521
+ disconnected_at?: string | null;
58955
61522
  environment: string;
58956
61523
  id?: string;
61524
+ initial_sync_completed_at?: string | null;
61525
+ initial_sync_started_at?: string | null;
58957
61526
  is_active?: boolean;
58958
61527
  label?: string | null;
58959
61528
  office_code?: string | null;
58960
61529
  redirect_uri?: string | null;
61530
+ superseded_at?: string | null;
58961
61531
  updated_at?: string;
58962
61532
  user_id: string;
58963
61533
  };
@@ -58968,12 +61538,16 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
58968
61538
  company_name?: string | null;
58969
61539
  connected_at?: string | null;
58970
61540
  created_at?: string;
61541
+ disconnected_at?: string | null;
58971
61542
  environment?: string;
58972
61543
  id?: string;
61544
+ initial_sync_completed_at?: string | null;
61545
+ initial_sync_started_at?: string | null;
58973
61546
  is_active?: boolean;
58974
61547
  label?: string | null;
58975
61548
  office_code?: string | null;
58976
61549
  redirect_uri?: string | null;
61550
+ superseded_at?: string | null;
58977
61551
  updated_at?: string;
58978
61552
  user_id?: string;
58979
61553
  };
@@ -59033,6 +61607,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
59033
61607
  twinfield_customers: {
59034
61608
  Row: {
59035
61609
  address: string | null;
61610
+ administration_code: string;
59036
61611
  city: string | null;
59037
61612
  country: string | null;
59038
61613
  created_at: string;
@@ -59052,6 +61627,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
59052
61627
  };
59053
61628
  Insert: {
59054
61629
  address?: string | null;
61630
+ administration_code?: string;
59055
61631
  city?: string | null;
59056
61632
  country?: string | null;
59057
61633
  created_at?: string;
@@ -59071,6 +61647,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
59071
61647
  };
59072
61648
  Update: {
59073
61649
  address?: string | null;
61650
+ administration_code?: string;
59074
61651
  city?: string | null;
59075
61652
  country?: string | null;
59076
61653
  created_at?: string;
@@ -59284,7 +61861,9 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
59284
61861
  };
59285
61862
  twinfield_invoice_settings: {
59286
61863
  Row: {
61864
+ administration_code: string | null;
59287
61865
  auto_invoice_enabled: boolean;
61866
+ auto_invoice_start_date: string | null;
59288
61867
  auto_invoice_trigger_statuses: string[];
59289
61868
  created_at: string;
59290
61869
  debtor_gl_account: string;
@@ -59298,15 +61877,19 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
59298
61877
  invoice_enabled_fo: boolean;
59299
61878
  invoice_enabled_ho: boolean;
59300
61879
  invoice_enabled_mo: boolean;
61880
+ needs_review: boolean;
59301
61881
  payment_gl_account: string;
59302
61882
  payment_journal_code: string;
61883
+ settings_confirmed_at: string | null;
59303
61884
  updated_at: string;
59304
61885
  user_id: string;
59305
61886
  vat_code_eu_reverse: string | null;
59306
61887
  vat_code_export: string | null;
59307
61888
  };
59308
61889
  Insert: {
61890
+ administration_code?: string | null;
59309
61891
  auto_invoice_enabled?: boolean;
61892
+ auto_invoice_start_date?: string | null;
59310
61893
  auto_invoice_trigger_statuses?: string[];
59311
61894
  created_at?: string;
59312
61895
  debtor_gl_account?: string;
@@ -59320,15 +61903,19 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
59320
61903
  invoice_enabled_fo?: boolean;
59321
61904
  invoice_enabled_ho?: boolean;
59322
61905
  invoice_enabled_mo?: boolean;
61906
+ needs_review?: boolean;
59323
61907
  payment_gl_account?: string;
59324
61908
  payment_journal_code?: string;
61909
+ settings_confirmed_at?: string | null;
59325
61910
  updated_at?: string;
59326
61911
  user_id: string;
59327
61912
  vat_code_eu_reverse?: string | null;
59328
61913
  vat_code_export?: string | null;
59329
61914
  };
59330
61915
  Update: {
61916
+ administration_code?: string | null;
59331
61917
  auto_invoice_enabled?: boolean;
61918
+ auto_invoice_start_date?: string | null;
59332
61919
  auto_invoice_trigger_statuses?: string[];
59333
61920
  created_at?: string;
59334
61921
  debtor_gl_account?: string;
@@ -59342,8 +61929,10 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
59342
61929
  invoice_enabled_fo?: boolean;
59343
61930
  invoice_enabled_ho?: boolean;
59344
61931
  invoice_enabled_mo?: boolean;
61932
+ needs_review?: boolean;
59345
61933
  payment_gl_account?: string;
59346
61934
  payment_journal_code?: string;
61935
+ settings_confirmed_at?: string | null;
59347
61936
  updated_at?: string;
59348
61937
  user_id?: string;
59349
61938
  vat_code_eu_reverse?: string | null;
@@ -59948,114 +62537,6 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
59948
62537
  };
59949
62538
  Relationships: [];
59950
62539
  };
59951
- uren_facturen: {
59952
- Row: {
59953
- created_at: string;
59954
- created_by: string | null;
59955
- customer_id: string | null;
59956
- customer_name: string | null;
59957
- id: string;
59958
- invoice_number: string | null;
59959
- note: string | null;
59960
- status: string;
59961
- total_excl_cents: number;
59962
- total_incl_cents: number;
59963
- updated_at: string;
59964
- vat_cents: number;
59965
- vat_percentage: number;
59966
- werkbon_id: string | null;
59967
- };
59968
- Insert: {
59969
- created_at?: string;
59970
- created_by?: string | null;
59971
- customer_id?: string | null;
59972
- customer_name?: string | null;
59973
- id?: string;
59974
- invoice_number?: string | null;
59975
- note?: string | null;
59976
- status?: string;
59977
- total_excl_cents?: number;
59978
- total_incl_cents?: number;
59979
- updated_at?: string;
59980
- vat_cents?: number;
59981
- vat_percentage?: number;
59982
- werkbon_id?: string | null;
59983
- };
59984
- Update: {
59985
- created_at?: string;
59986
- created_by?: string | null;
59987
- customer_id?: string | null;
59988
- customer_name?: string | null;
59989
- id?: string;
59990
- invoice_number?: string | null;
59991
- note?: string | null;
59992
- status?: string;
59993
- total_excl_cents?: number;
59994
- total_incl_cents?: number;
59995
- updated_at?: string;
59996
- vat_cents?: number;
59997
- vat_percentage?: number;
59998
- werkbon_id?: string | null;
59999
- };
60000
- Relationships: [{
60001
- foreignKeyName: "uren_facturen_customer_id_fkey";
60002
- columns: ["customer_id"];
60003
- isOneToOne: false;
60004
- referencedRelation: "itk_customers";
60005
- referencedColumns: ["id"];
60006
- }, {
60007
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
60008
- columns: ["werkbon_id"];
60009
- isOneToOne: true;
60010
- referencedRelation: "werkbonnen";
60011
- referencedColumns: ["id"];
60012
- }];
60013
- };
60014
- uren_factuur_regels: {
60015
- Row: {
60016
- created_at: string;
60017
- description: string;
60018
- factuur_id: string;
60019
- id: string;
60020
- kind: string | null;
60021
- quantity: number;
60022
- sort_order: number;
60023
- total_cents: number;
60024
- unit: string;
60025
- unit_price_cents: number;
60026
- };
60027
- Insert: {
60028
- created_at?: string;
60029
- description: string;
60030
- factuur_id: string;
60031
- id?: string;
60032
- kind?: string | null;
60033
- quantity?: number;
60034
- sort_order?: number;
60035
- total_cents?: number;
60036
- unit?: string;
60037
- unit_price_cents?: number;
60038
- };
60039
- Update: {
60040
- created_at?: string;
60041
- description?: string;
60042
- factuur_id?: string;
60043
- id?: string;
60044
- kind?: string | null;
60045
- quantity?: number;
60046
- sort_order?: number;
60047
- total_cents?: number;
60048
- unit?: string;
60049
- unit_price_cents?: number;
60050
- };
60051
- Relationships: [{
60052
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
60053
- columns: ["factuur_id"];
60054
- isOneToOne: false;
60055
- referencedRelation: "uren_facturen";
60056
- referencedColumns: ["id"];
60057
- }];
60058
- };
60059
62540
  uren_offerte_regels: {
60060
62541
  Row: {
60061
62542
  created_at: string;
@@ -61895,6 +64376,114 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
61895
64376
  };
61896
64377
  Relationships: [];
61897
64378
  };
64379
+ uren_facturen: {
64380
+ Row: {
64381
+ created_at: string | null;
64382
+ created_by: string | null;
64383
+ customer_id: string | null;
64384
+ customer_name: string | null;
64385
+ id: string | null;
64386
+ invoice_number: string | null;
64387
+ note: string | null;
64388
+ status: string | null;
64389
+ total_excl_cents: number | null;
64390
+ total_incl_cents: number | null;
64391
+ updated_at: string | null;
64392
+ vat_cents: number | null;
64393
+ vat_percentage: number | null;
64394
+ werkbon_id: string | null;
64395
+ };
64396
+ Insert: {
64397
+ created_at?: string | null;
64398
+ created_by?: string | null;
64399
+ customer_id?: string | null;
64400
+ customer_name?: string | null;
64401
+ id?: string | null;
64402
+ invoice_number?: string | null;
64403
+ note?: string | null;
64404
+ status?: string | null;
64405
+ total_excl_cents?: number | null;
64406
+ total_incl_cents?: number | null;
64407
+ updated_at?: string | null;
64408
+ vat_cents?: number | null;
64409
+ vat_percentage?: number | null;
64410
+ werkbon_id?: never;
64411
+ };
64412
+ Update: {
64413
+ created_at?: string | null;
64414
+ created_by?: string | null;
64415
+ customer_id?: string | null;
64416
+ customer_name?: string | null;
64417
+ id?: string | null;
64418
+ invoice_number?: string | null;
64419
+ note?: string | null;
64420
+ status?: string | null;
64421
+ total_excl_cents?: number | null;
64422
+ total_incl_cents?: number | null;
64423
+ updated_at?: string | null;
64424
+ vat_cents?: number | null;
64425
+ vat_percentage?: number | null;
64426
+ werkbon_id?: never;
64427
+ };
64428
+ Relationships: [{
64429
+ foreignKeyName: "invoices_customer_id_fkey";
64430
+ columns: ["customer_id"];
64431
+ isOneToOne: false;
64432
+ referencedRelation: "itk_customers";
64433
+ referencedColumns: ["id"];
64434
+ }];
64435
+ };
64436
+ uren_factuur_regels: {
64437
+ Row: {
64438
+ created_at: string | null;
64439
+ description: string | null;
64440
+ factuur_id: string | null;
64441
+ id: string | null;
64442
+ kind: string | null;
64443
+ quantity: number | null;
64444
+ sort_order: number | null;
64445
+ total_cents: number | null;
64446
+ unit: string | null;
64447
+ unit_price_cents: number | null;
64448
+ };
64449
+ Insert: {
64450
+ created_at?: string | null;
64451
+ description?: string | null;
64452
+ factuur_id?: string | null;
64453
+ id?: string | null;
64454
+ kind?: string | null;
64455
+ quantity?: number | null;
64456
+ sort_order?: number | null;
64457
+ total_cents?: number | null;
64458
+ unit?: string | null;
64459
+ unit_price_cents?: number | null;
64460
+ };
64461
+ Update: {
64462
+ created_at?: string | null;
64463
+ description?: string | null;
64464
+ factuur_id?: string | null;
64465
+ id?: string | null;
64466
+ kind?: string | null;
64467
+ quantity?: number | null;
64468
+ sort_order?: number | null;
64469
+ total_cents?: number | null;
64470
+ unit?: string | null;
64471
+ unit_price_cents?: number | null;
64472
+ };
64473
+ Relationships: [{
64474
+ foreignKeyName: "invoice_items_invoice_id_fkey";
64475
+ columns: ["factuur_id"];
64476
+ isOneToOne: false;
64477
+ referencedRelation: "invoices";
64478
+ referencedColumns: ["id"];
64479
+ }, {
64480
+ foreignKeyName: "invoice_items_invoice_id_fkey";
64481
+ columns: ["factuur_id"];
64482
+ isOneToOne: false;
64483
+ referencedRelation: "uren_facturen";
64484
+ referencedColumns: ["id"];
64485
+ }];
64486
+ };
61898
64487
  v_external_customers_exact: {
61899
64488
  Row: {
61900
64489
  account_number: string | null;
@@ -62400,6 +64989,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
62400
64989
  gebruiker_id: string | null;
62401
64990
  gebruiker_naam: string;
62402
64991
  gestart_op: string | null;
64992
+ herkomst: string | null;
62403
64993
  id: string;
62404
64994
  idempotentie_sleutel: string | null;
62405
64995
  is_herprint: boolean;
@@ -62520,6 +65110,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
62520
65110
  gebruiker_id: string | null;
62521
65111
  gebruiker_naam: string;
62522
65112
  gestart_op: string | null;
65113
+ herkomst: string | null;
62523
65114
  id: string;
62524
65115
  idempotentie_sleutel: string | null;
62525
65116
  is_herprint: boolean;
@@ -62790,6 +65381,13 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
62790
65381
  };
62791
65382
  Returns: string;
62792
65383
  };
65384
+ employee_day_hours: {
65385
+ Args: {
65386
+ _day: string;
65387
+ _employee_id: string;
65388
+ };
65389
+ Returns: number;
65390
+ };
62793
65391
  enqueue_cart_replan_if_unlocked: {
62794
65392
  Args: {
62795
65393
  p_order_id: string;
@@ -63114,6 +65712,46 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
63114
65712
  Args: never;
63115
65713
  Returns: boolean;
63116
65714
  };
65715
+ invoice_create_from_source: {
65716
+ Args: {
65717
+ _payload?: import("../integrations/supabase/types").Json;
65718
+ _source_id: string;
65719
+ _source_type: string;
65720
+ };
65721
+ Returns: import("../integrations/supabase/types").Json;
65722
+ };
65723
+ invoice_get_billable_lines: {
65724
+ Args: {
65725
+ _invoice_id: string;
65726
+ };
65727
+ Returns: import("../integrations/supabase/types").Json;
65728
+ };
65729
+ invoice_get_for_source: {
65730
+ Args: {
65731
+ _source_id: string;
65732
+ _source_type: string;
65733
+ };
65734
+ Returns: import("../integrations/supabase/types").Json;
65735
+ };
65736
+ invoice_get_summary: {
65737
+ Args: {
65738
+ _invoice_id: string;
65739
+ };
65740
+ Returns: import("../integrations/supabase/types").Json;
65741
+ };
65742
+ invoice_list_sources: {
65743
+ Args: {
65744
+ _limit?: number;
65745
+ _source_type?: string;
65746
+ };
65747
+ Returns: import("../integrations/supabase/types").Json;
65748
+ };
65749
+ invoice_recalc_totals: {
65750
+ Args: {
65751
+ _invoice_id: string;
65752
+ };
65753
+ Returns: import("../integrations/supabase/types").Json;
65754
+ };
63117
65755
  is_authenticated: {
63118
65756
  Args: never;
63119
65757
  Returns: boolean;
@@ -63143,6 +65781,19 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
63143
65781
  Args: never;
63144
65782
  Returns: boolean;
63145
65783
  };
65784
+ itk_offerte_naar_werkbon: {
65785
+ Args: {
65786
+ _offerte_id: string;
65787
+ };
65788
+ Returns: string;
65789
+ };
65790
+ itk_offerte_restant_mandaat: {
65791
+ Args: {
65792
+ _exclude_offerte_id?: string;
65793
+ _werkbon_id: string;
65794
+ };
65795
+ Returns: number;
65796
+ };
63146
65797
  jwt_has_role: {
63147
65798
  Args: {
63148
65799
  _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
@@ -63153,12 +65804,45 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
63153
65804
  Args: never;
63154
65805
  Returns: {
63155
65806
  avatar_url: string;
65807
+ color: string;
63156
65808
  display_name: string;
63157
65809
  email: string;
65810
+ hours_fri: number;
65811
+ hours_mon: number;
65812
+ hours_thu: number;
65813
+ hours_tue: number;
65814
+ hours_wed: number;
63158
65815
  id: string;
65816
+ is_active: boolean;
65817
+ leave_balance_hours: number;
65818
+ persnr: string;
65819
+ phone: string;
63159
65820
  roles: string[];
63160
65821
  }[];
63161
65822
  };
65823
+ list_monteur_absences: {
65824
+ Args: {
65825
+ _from: string;
65826
+ _to: string;
65827
+ };
65828
+ Returns: {
65829
+ absence_date: string;
65830
+ end_time: string;
65831
+ full_day: boolean;
65832
+ kind: string;
65833
+ monteur_id: string;
65834
+ start_time: string;
65835
+ }[];
65836
+ };
65837
+ list_monteurs: {
65838
+ Args: never;
65839
+ Returns: {
65840
+ avatar_url: string;
65841
+ display_name: string;
65842
+ email: string;
65843
+ id: string;
65844
+ }[];
65845
+ };
63162
65846
  list_my_planning_items: {
63163
65847
  Args: {
63164
65848
  _from: string;
@@ -63570,6 +66254,23 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
63570
66254
  };
63571
66255
  Returns: string;
63572
66256
  };
66257
+ logistics_floriday_finish_push_v2: {
66258
+ Args: {
66259
+ _error?: string;
66260
+ _error_code?: string;
66261
+ _fulfillment_order_id?: string;
66262
+ _gateway_status?: number;
66263
+ _id: string;
66264
+ _max_age_hours?: number;
66265
+ _max_attempts?: number;
66266
+ _ok: boolean;
66267
+ _permanent?: boolean;
66268
+ _response?: import("../integrations/supabase/types").Json;
66269
+ _revision: number;
66270
+ _sent_hash?: string;
66271
+ };
66272
+ Returns: string;
66273
+ };
63573
66274
  logistics_floriday_prune_pushes: {
63574
66275
  Args: {
63575
66276
  _days?: number;
@@ -64112,6 +66813,13 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
64112
66813
  isSetofReturn: false;
64113
66814
  };
64114
66815
  };
66816
+ pick_cleanup_maintenance: {
66817
+ Args: {
66818
+ _heartbeat_hours?: number;
66819
+ _log_days?: number;
66820
+ };
66821
+ Returns: import("../integrations/supabase/types").Json;
66822
+ };
64115
66823
  pick_complete_print: {
64116
66824
  Args: {
64117
66825
  _printer_id: string;
@@ -64163,6 +66871,14 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
64163
66871
  Args: never;
64164
66872
  Returns: string;
64165
66873
  };
66874
+ pick_day_counts: {
66875
+ Args: {
66876
+ _pick_day?: string;
66877
+ _screen_id?: string;
66878
+ _station_id?: string;
66879
+ };
66880
+ Returns: import("../integrations/supabase/types").Json;
66881
+ };
64166
66882
  pick_document_layout_data: {
64167
66883
  Args: {
64168
66884
  _layout_id: string;
@@ -64200,6 +66916,14 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
64200
66916
  };
64201
66917
  Returns: undefined;
64202
66918
  };
66919
+ pick_reprint_document: {
66920
+ Args: {
66921
+ _queue_item_id: string;
66922
+ _session_id: string;
66923
+ _throttle_seconds?: number;
66924
+ };
66925
+ Returns: string;
66926
+ };
64203
66927
  pick_reset_print: {
64204
66928
  Args: {
64205
66929
  _queue_item_id: string;
@@ -64265,6 +66989,12 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
64265
66989
  };
64266
66990
  Returns: string;
64267
66991
  };
66992
+ pick_sync_queue_throttled: {
66993
+ Args: {
66994
+ _min_seconds?: number;
66995
+ };
66996
+ Returns: import("../integrations/supabase/types").Json;
66997
+ };
64268
66998
  pickstation_get_orders_raw: {
64269
66999
  Args: never;
64270
67000
  Returns: import("../integrations/supabase/types").Json;
@@ -64326,6 +67056,37 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
64326
67056
  };
64327
67057
  Returns: undefined;
64328
67058
  };
67059
+ quote_create_from_source: {
67060
+ Args: {
67061
+ _payload?: import("../integrations/supabase/types").Json;
67062
+ _source_id: string;
67063
+ _source_type: string;
67064
+ };
67065
+ Returns: string;
67066
+ };
67067
+ quote_get_billable_lines: {
67068
+ Args: {
67069
+ _quotation_id: string;
67070
+ };
67071
+ Returns: import("../integrations/supabase/types").Json;
67072
+ };
67073
+ quote_get_summary: {
67074
+ Args: {
67075
+ _quotation_id: string;
67076
+ };
67077
+ Returns: import("../integrations/supabase/types").Json;
67078
+ };
67079
+ quote_list_packages: {
67080
+ Args: never;
67081
+ Returns: import("../integrations/supabase/types").Json;
67082
+ };
67083
+ quote_list_sources: {
67084
+ Args: {
67085
+ _limit?: number;
67086
+ _source_type?: string;
67087
+ };
67088
+ Returns: import("../integrations/supabase/types").Json;
67089
+ };
64329
67090
  recompute_all_reserved_stock: {
64330
67091
  Args: never;
64331
67092
  Returns: undefined;
@@ -64379,6 +67140,12 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
64379
67140
  };
64380
67141
  Returns: boolean;
64381
67142
  };
67143
+ release_stale_order_invoice_links: {
67144
+ Args: {
67145
+ _minutes?: number;
67146
+ };
67147
+ Returns: number;
67148
+ };
64382
67149
  reorder_customer_price_groups: {
64383
67150
  Args: {
64384
67151
  _ids: string[];
@@ -64861,6 +67628,12 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
64861
67628
  };
64862
67629
  Returns: undefined;
64863
67630
  };
67631
+ sync_sick_time_off: {
67632
+ Args: {
67633
+ _period_id: string;
67634
+ };
67635
+ Returns: number;
67636
+ };
64864
67637
  trade_item_stock_duplicates: {
64865
67638
  Args: never;
64866
67639
  Returns: {
@@ -64891,6 +67664,20 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
64891
67664
  };
64892
67665
  Returns: undefined;
64893
67666
  };
67667
+ twinfield_deactivate_connection: {
67668
+ Args: {
67669
+ p_connection_id: string;
67670
+ p_user_id: string;
67671
+ };
67672
+ Returns: import("../integrations/supabase/types").Json;
67673
+ };
67674
+ twinfield_handle_administration_change: {
67675
+ Args: {
67676
+ _administration_code: string;
67677
+ _user_id: string;
67678
+ };
67679
+ Returns: undefined;
67680
+ };
64894
67681
  twinfield_prune_push_queue: {
64895
67682
  Args: never;
64896
67683
  Returns: number;
@@ -64910,10 +67697,11 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
64910
67697
  p_company_name?: string;
64911
67698
  p_environment: string;
64912
67699
  p_office_code?: string;
67700
+ p_reset_sync?: boolean;
64913
67701
  p_status?: string;
64914
67702
  p_user_id: string;
64915
67703
  };
64916
- Returns: string;
67704
+ Returns: import("../integrations/supabase/types").Json;
64917
67705
  };
64918
67706
  upsert_auto_fulfillment_log: {
64919
67707
  Args: {
@@ -64934,6 +67722,26 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
64934
67722
  Args: never;
64935
67723
  Returns: string;
64936
67724
  };
67725
+ wo_create_from_source: {
67726
+ Args: {
67727
+ _payload?: import("../integrations/supabase/types").Json;
67728
+ _source_id: string;
67729
+ _source_type: string;
67730
+ };
67731
+ Returns: string;
67732
+ };
67733
+ wo_get_billable_lines: {
67734
+ Args: {
67735
+ _work_order_id: string;
67736
+ };
67737
+ Returns: import("../integrations/supabase/types").Json;
67738
+ };
67739
+ wo_get_summary: {
67740
+ Args: {
67741
+ _work_order_id: string;
67742
+ };
67743
+ Returns: import("../integrations/supabase/types").Json;
67744
+ };
64937
67745
  };
64938
67746
  Enums: {
64939
67747
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";