@flowselections/logistiek-engine 1.0.11 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1125 -189
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.server.d.ts +1125 -189
  4. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/moduleClient.d.ts +1125 -189
  6. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/types.d.ts +1152 -185
  8. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  9. package/dist-lib/lib/floridayDocuments.functions.d.ts +3135 -327
  10. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  11. package/dist-lib/lib/floridayDocuments.server.d.ts +14 -1
  12. package/dist-lib/lib/floridayDocuments.server.d.ts.map +1 -1
  13. package/dist-lib/lib/floridayDocuments.server.js +1 -1
  14. package/dist-lib/lib/floridayPush.functions.d.ts +1125 -189
  15. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -1
  17. package/dist-lib/lib/floridayPush.server.js +48 -6
  18. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +5225 -545
  19. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +2090 -218
  21. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1125 -189
  23. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  24. package/package.json +1 -1
@@ -2758,6 +2758,42 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
2758
2758
  };
2759
2759
  Relationships: [];
2760
2760
  };
2761
+ document_bronregels: {
2762
+ Row: {
2763
+ bron: string;
2764
+ created_at: string;
2765
+ documenttype: string;
2766
+ herkomst: string;
2767
+ id: string;
2768
+ layout_id: string | null;
2769
+ updated_at: string;
2770
+ };
2771
+ Insert: {
2772
+ bron?: string;
2773
+ created_at?: string;
2774
+ documenttype: string;
2775
+ herkomst: string;
2776
+ id?: string;
2777
+ layout_id?: string | null;
2778
+ updated_at?: string;
2779
+ };
2780
+ Update: {
2781
+ bron?: string;
2782
+ created_at?: string;
2783
+ documenttype?: string;
2784
+ herkomst?: string;
2785
+ id?: string;
2786
+ layout_id?: string | null;
2787
+ updated_at?: string;
2788
+ };
2789
+ Relationships: [{
2790
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2791
+ columns: ["layout_id"];
2792
+ isOneToOne: false;
2793
+ referencedRelation: "document_layouts";
2794
+ referencedColumns: ["id"];
2795
+ }];
2796
+ };
2761
2797
  document_formaat_printers: {
2762
2798
  Row: {
2763
2799
  created_at: string;
@@ -3035,6 +3071,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
3035
3071
  Row: {
3036
3072
  actief: boolean;
3037
3073
  breedte_mm: number;
3074
+ bron: string;
3038
3075
  config: import("../integrations/supabase/types").Json;
3039
3076
  created_at: string;
3040
3077
  created_by: string | null;
@@ -3052,12 +3089,14 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
3052
3089
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3053
3090
  page_settings: import("../integrations/supabase/types").Json;
3054
3091
  papierformaat: string;
3092
+ systeem: boolean;
3055
3093
  thumbnail_url: string | null;
3056
3094
  updated_at: string;
3057
3095
  };
3058
3096
  Insert: {
3059
3097
  actief?: boolean;
3060
3098
  breedte_mm?: number;
3099
+ bron?: string;
3061
3100
  config?: import("../integrations/supabase/types").Json;
3062
3101
  created_at?: string;
3063
3102
  created_by?: string | null;
@@ -3075,12 +3114,14 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
3075
3114
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3076
3115
  page_settings?: import("../integrations/supabase/types").Json;
3077
3116
  papierformaat?: string;
3117
+ systeem?: boolean;
3078
3118
  thumbnail_url?: string | null;
3079
3119
  updated_at?: string;
3080
3120
  };
3081
3121
  Update: {
3082
3122
  actief?: boolean;
3083
3123
  breedte_mm?: number;
3124
+ bron?: string;
3084
3125
  config?: import("../integrations/supabase/types").Json;
3085
3126
  created_at?: string;
3086
3127
  created_by?: string | null;
@@ -3098,11 +3139,48 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
3098
3139
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3099
3140
  page_settings?: import("../integrations/supabase/types").Json;
3100
3141
  papierformaat?: string;
3142
+ systeem?: boolean;
3101
3143
  thumbnail_url?: string | null;
3102
3144
  updated_at?: string;
3103
3145
  };
3104
3146
  Relationships: [];
3105
3147
  };
3148
+ document_werkplek_printers: {
3149
+ Row: {
3150
+ created_at: string;
3151
+ documenttype: string;
3152
+ id: string;
3153
+ papierformaat: string | null;
3154
+ printer_id: string | null;
3155
+ updated_at: string;
3156
+ werkplek: string;
3157
+ };
3158
+ Insert: {
3159
+ created_at?: string;
3160
+ documenttype: string;
3161
+ id?: string;
3162
+ papierformaat?: string | null;
3163
+ printer_id?: string | null;
3164
+ updated_at?: string;
3165
+ werkplek: string;
3166
+ };
3167
+ Update: {
3168
+ created_at?: string;
3169
+ documenttype?: string;
3170
+ id?: string;
3171
+ papierformaat?: string | null;
3172
+ printer_id?: string | null;
3173
+ updated_at?: string;
3174
+ werkplek?: string;
3175
+ };
3176
+ Relationships: [{
3177
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3178
+ columns: ["printer_id"];
3179
+ isOneToOne: false;
3180
+ referencedRelation: "printers";
3181
+ referencedColumns: ["id"];
3182
+ }];
3183
+ };
3106
3184
  email_auth_connections: {
3107
3185
  Row: {
3108
3186
  access_token_encrypted: string | null;
@@ -7348,8 +7426,63 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
7348
7426
  };
7349
7427
  Relationships: [];
7350
7428
  };
7429
+ invoice_items: {
7430
+ Row: {
7431
+ created_at: string;
7432
+ description: string;
7433
+ id: string;
7434
+ invoice_id: string;
7435
+ kind: string;
7436
+ quantity: number;
7437
+ sort_order: number;
7438
+ source_line_ref: string | null;
7439
+ total_cents: number;
7440
+ unit: string;
7441
+ unit_price_cents: number;
7442
+ };
7443
+ Insert: {
7444
+ created_at?: string;
7445
+ description?: string;
7446
+ id?: string;
7447
+ invoice_id: string;
7448
+ kind?: string;
7449
+ quantity?: number;
7450
+ sort_order?: number;
7451
+ source_line_ref?: string | null;
7452
+ total_cents?: number;
7453
+ unit?: string;
7454
+ unit_price_cents?: number;
7455
+ };
7456
+ Update: {
7457
+ created_at?: string;
7458
+ description?: string;
7459
+ id?: string;
7460
+ invoice_id?: string;
7461
+ kind?: string;
7462
+ quantity?: number;
7463
+ sort_order?: number;
7464
+ source_line_ref?: string | null;
7465
+ total_cents?: number;
7466
+ unit?: string;
7467
+ unit_price_cents?: number;
7468
+ };
7469
+ Relationships: [{
7470
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7471
+ columns: ["invoice_id"];
7472
+ isOneToOne: false;
7473
+ referencedRelation: "invoices";
7474
+ referencedColumns: ["id"];
7475
+ }, {
7476
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7477
+ columns: ["invoice_id"];
7478
+ isOneToOne: false;
7479
+ referencedRelation: "uren_facturen";
7480
+ referencedColumns: ["id"];
7481
+ }];
7482
+ };
7351
7483
  invoice_post_idempotency: {
7352
7484
  Row: {
7485
+ administration_code: string;
7353
7486
  client_request_id: string;
7354
7487
  completed_at: string | null;
7355
7488
  created_at: string;
@@ -7359,6 +7492,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
7359
7492
  user_id: string;
7360
7493
  };
7361
7494
  Insert: {
7495
+ administration_code?: string;
7362
7496
  client_request_id: string;
7363
7497
  completed_at?: string | null;
7364
7498
  created_at?: string;
@@ -7368,6 +7502,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
7368
7502
  user_id: string;
7369
7503
  };
7370
7504
  Update: {
7505
+ administration_code?: string;
7371
7506
  client_request_id?: string;
7372
7507
  completed_at?: string | null;
7373
7508
  created_at?: string;
@@ -7573,6 +7708,75 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
7573
7708
  };
7574
7709
  Relationships: [];
7575
7710
  };
7711
+ invoices: {
7712
+ Row: {
7713
+ created_at: string;
7714
+ created_by: string | null;
7715
+ customer_id: string | null;
7716
+ customer_name: string | null;
7717
+ due_date: string | null;
7718
+ id: string;
7719
+ invoice_date: string;
7720
+ invoice_number: string | null;
7721
+ note: string | null;
7722
+ source_number: string | null;
7723
+ source_ref: string | null;
7724
+ source_type: string;
7725
+ status: string;
7726
+ subtotal_cents: number;
7727
+ total_cents: number;
7728
+ updated_at: string;
7729
+ vat_cents: number;
7730
+ vat_rate: number;
7731
+ };
7732
+ Insert: {
7733
+ created_at?: string;
7734
+ created_by?: string | null;
7735
+ customer_id?: string | null;
7736
+ customer_name?: string | null;
7737
+ due_date?: string | null;
7738
+ id?: string;
7739
+ invoice_date?: string;
7740
+ invoice_number?: string | null;
7741
+ note?: string | null;
7742
+ source_number?: string | null;
7743
+ source_ref?: string | null;
7744
+ source_type?: string;
7745
+ status?: string;
7746
+ subtotal_cents?: number;
7747
+ total_cents?: number;
7748
+ updated_at?: string;
7749
+ vat_cents?: number;
7750
+ vat_rate?: number;
7751
+ };
7752
+ Update: {
7753
+ created_at?: string;
7754
+ created_by?: string | null;
7755
+ customer_id?: string | null;
7756
+ customer_name?: string | null;
7757
+ due_date?: string | null;
7758
+ id?: string;
7759
+ invoice_date?: string;
7760
+ invoice_number?: string | null;
7761
+ note?: string | null;
7762
+ source_number?: string | null;
7763
+ source_ref?: string | null;
7764
+ source_type?: string;
7765
+ status?: string;
7766
+ subtotal_cents?: number;
7767
+ total_cents?: number;
7768
+ updated_at?: string;
7769
+ vat_cents?: number;
7770
+ vat_rate?: number;
7771
+ };
7772
+ Relationships: [{
7773
+ foreignKeyName: "invoices_customer_id_fkey";
7774
+ columns: ["customer_id"];
7775
+ isOneToOne: false;
7776
+ referencedRelation: "itk_customers";
7777
+ referencedColumns: ["id"];
7778
+ }];
7779
+ };
7576
7780
  itk_contact_persons: {
7577
7781
  Row: {
7578
7782
  created_at: string;
@@ -7768,6 +7972,258 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
7768
7972
  };
7769
7973
  Relationships: [];
7770
7974
  };
7975
+ itk_offerte_events: {
7976
+ Row: {
7977
+ created_at: string;
7978
+ event_type: string;
7979
+ id: string;
7980
+ metadata: import("../integrations/supabase/types").Json;
7981
+ offerte_id: string;
7982
+ omschrijving: string | null;
7983
+ user_id: string | null;
7984
+ };
7985
+ Insert: {
7986
+ created_at?: string;
7987
+ event_type: string;
7988
+ id?: string;
7989
+ metadata?: import("../integrations/supabase/types").Json;
7990
+ offerte_id: string;
7991
+ omschrijving?: string | null;
7992
+ user_id?: string | null;
7993
+ };
7994
+ Update: {
7995
+ created_at?: string;
7996
+ event_type?: string;
7997
+ id?: string;
7998
+ metadata?: import("../integrations/supabase/types").Json;
7999
+ offerte_id?: string;
8000
+ omschrijving?: string | null;
8001
+ user_id?: string | null;
8002
+ };
8003
+ Relationships: [{
8004
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8005
+ columns: ["offerte_id"];
8006
+ isOneToOne: false;
8007
+ referencedRelation: "itk_offertes";
8008
+ referencedColumns: ["id"];
8009
+ }];
8010
+ };
8011
+ itk_offerte_regels: {
8012
+ Row: {
8013
+ created_at: string;
8014
+ id: string;
8015
+ line_total_cents: number;
8016
+ offerte_id: string;
8017
+ omschrijving: string;
8018
+ package_id: string | null;
8019
+ quantity: number;
8020
+ sort_order: number;
8021
+ source: string;
8022
+ unit_price_cents: number;
8023
+ updated_at: string;
8024
+ };
8025
+ Insert: {
8026
+ created_at?: string;
8027
+ id?: string;
8028
+ line_total_cents?: number;
8029
+ offerte_id: string;
8030
+ omschrijving?: string;
8031
+ package_id?: string | null;
8032
+ quantity?: number;
8033
+ sort_order?: number;
8034
+ source?: string;
8035
+ unit_price_cents?: number;
8036
+ updated_at?: string;
8037
+ };
8038
+ Update: {
8039
+ created_at?: string;
8040
+ id?: string;
8041
+ line_total_cents?: number;
8042
+ offerte_id?: string;
8043
+ omschrijving?: string;
8044
+ package_id?: string | null;
8045
+ quantity?: number;
8046
+ sort_order?: number;
8047
+ source?: string;
8048
+ unit_price_cents?: number;
8049
+ updated_at?: string;
8050
+ };
8051
+ Relationships: [{
8052
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8053
+ columns: ["offerte_id"];
8054
+ isOneToOne: false;
8055
+ referencedRelation: "itk_offertes";
8056
+ referencedColumns: ["id"];
8057
+ }, {
8058
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
8059
+ columns: ["package_id"];
8060
+ isOneToOne: false;
8061
+ referencedRelation: "werkbon_packages";
8062
+ referencedColumns: ["id"];
8063
+ }];
8064
+ };
8065
+ itk_offerte_settings: {
8066
+ Row: {
8067
+ auto_convert_binnen_mandaat: boolean;
8068
+ created_at: string;
8069
+ default_geldigheid_dagen: number;
8070
+ default_vat_rate: number;
8071
+ id: string;
8072
+ singleton: boolean;
8073
+ updated_at: string;
8074
+ };
8075
+ Insert: {
8076
+ auto_convert_binnen_mandaat?: boolean;
8077
+ created_at?: string;
8078
+ default_geldigheid_dagen?: number;
8079
+ default_vat_rate?: number;
8080
+ id?: string;
8081
+ singleton?: boolean;
8082
+ updated_at?: string;
8083
+ };
8084
+ Update: {
8085
+ auto_convert_binnen_mandaat?: boolean;
8086
+ created_at?: string;
8087
+ default_geldigheid_dagen?: number;
8088
+ default_vat_rate?: number;
8089
+ id?: string;
8090
+ singleton?: boolean;
8091
+ updated_at?: string;
8092
+ };
8093
+ Relationships: [];
8094
+ };
8095
+ itk_offertes: {
8096
+ Row: {
8097
+ ai_generated: boolean;
8098
+ approved_at: string | null;
8099
+ binnen_mandaat: boolean;
8100
+ contact_id: string | null;
8101
+ converted_at: string | null;
8102
+ created_at: string;
8103
+ created_by: string | null;
8104
+ customer_id: string | null;
8105
+ follow_up_werkbon_id: string | null;
8106
+ id: string;
8107
+ jaar: number;
8108
+ mandaat_restant_cents: number;
8109
+ notities: string | null;
8110
+ offerte_number: string | null;
8111
+ omschrijving: string;
8112
+ rejected_at: string | null;
8113
+ sent_at: string | null;
8114
+ source_number: string | null;
8115
+ source_ref: string | null;
8116
+ source_type: string;
8117
+ status: string;
8118
+ subtotal_cents: number;
8119
+ total_cents: number;
8120
+ updated_at: string;
8121
+ valid_until: string | null;
8122
+ vat_cents: number;
8123
+ vat_rate: number;
8124
+ viewed_at: string | null;
8125
+ volgnummer: number | null;
8126
+ werkbon_id: string | null;
8127
+ work_location_id: string | null;
8128
+ };
8129
+ Insert: {
8130
+ ai_generated?: boolean;
8131
+ approved_at?: string | null;
8132
+ binnen_mandaat?: boolean;
8133
+ contact_id?: string | null;
8134
+ converted_at?: string | null;
8135
+ created_at?: string;
8136
+ created_by?: string | null;
8137
+ customer_id?: string | null;
8138
+ follow_up_werkbon_id?: string | null;
8139
+ id?: string;
8140
+ jaar?: number;
8141
+ mandaat_restant_cents?: number;
8142
+ notities?: string | null;
8143
+ offerte_number?: string | null;
8144
+ omschrijving?: string;
8145
+ rejected_at?: string | null;
8146
+ sent_at?: string | null;
8147
+ source_number?: string | null;
8148
+ source_ref?: string | null;
8149
+ source_type?: string;
8150
+ status?: string;
8151
+ subtotal_cents?: number;
8152
+ total_cents?: number;
8153
+ updated_at?: string;
8154
+ valid_until?: string | null;
8155
+ vat_cents?: number;
8156
+ vat_rate?: number;
8157
+ viewed_at?: string | null;
8158
+ volgnummer?: number | null;
8159
+ werkbon_id?: string | null;
8160
+ work_location_id?: string | null;
8161
+ };
8162
+ Update: {
8163
+ ai_generated?: boolean;
8164
+ approved_at?: string | null;
8165
+ binnen_mandaat?: boolean;
8166
+ contact_id?: string | null;
8167
+ converted_at?: string | null;
8168
+ created_at?: string;
8169
+ created_by?: string | null;
8170
+ customer_id?: string | null;
8171
+ follow_up_werkbon_id?: string | null;
8172
+ id?: string;
8173
+ jaar?: number;
8174
+ mandaat_restant_cents?: number;
8175
+ notities?: string | null;
8176
+ offerte_number?: string | null;
8177
+ omschrijving?: string;
8178
+ rejected_at?: string | null;
8179
+ sent_at?: string | null;
8180
+ source_number?: string | null;
8181
+ source_ref?: string | null;
8182
+ source_type?: string;
8183
+ status?: string;
8184
+ subtotal_cents?: number;
8185
+ total_cents?: number;
8186
+ updated_at?: string;
8187
+ valid_until?: string | null;
8188
+ vat_cents?: number;
8189
+ vat_rate?: number;
8190
+ viewed_at?: string | null;
8191
+ volgnummer?: number | null;
8192
+ werkbon_id?: string | null;
8193
+ work_location_id?: string | null;
8194
+ };
8195
+ Relationships: [{
8196
+ foreignKeyName: "itk_offertes_contact_id_fkey";
8197
+ columns: ["contact_id"];
8198
+ isOneToOne: false;
8199
+ referencedRelation: "itk_contact_persons";
8200
+ referencedColumns: ["id"];
8201
+ }, {
8202
+ foreignKeyName: "itk_offertes_customer_id_fkey";
8203
+ columns: ["customer_id"];
8204
+ isOneToOne: false;
8205
+ referencedRelation: "itk_customers";
8206
+ referencedColumns: ["id"];
8207
+ }, {
8208
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
8209
+ columns: ["follow_up_werkbon_id"];
8210
+ isOneToOne: false;
8211
+ referencedRelation: "werkbonnen";
8212
+ referencedColumns: ["id"];
8213
+ }, {
8214
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8215
+ columns: ["werkbon_id"];
8216
+ isOneToOne: false;
8217
+ referencedRelation: "werkbonnen";
8218
+ referencedColumns: ["id"];
8219
+ }, {
8220
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8221
+ columns: ["work_location_id"];
8222
+ isOneToOne: false;
8223
+ referencedRelation: "itk_work_locations";
8224
+ referencedColumns: ["id"];
8225
+ }];
8226
+ };
7771
8227
  itk_work_locations: {
7772
8228
  Row: {
7773
8229
  city: string | null;
@@ -8668,6 +9124,9 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
8668
9124
  id: string;
8669
9125
  last_error: string | null;
8670
9126
  last_error_at: string | null;
9127
+ last_error_code: string | null;
9128
+ last_gateway_status: number | null;
9129
+ last_response: import("../integrations/supabase/types").Json | null;
8671
9130
  last_sent_hash: string | null;
8672
9131
  locked_by: string | null;
8673
9132
  locked_until: string | null;
@@ -8688,6 +9147,9 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
8688
9147
  id?: string;
8689
9148
  last_error?: string | null;
8690
9149
  last_error_at?: string | null;
9150
+ last_error_code?: string | null;
9151
+ last_gateway_status?: number | null;
9152
+ last_response?: import("../integrations/supabase/types").Json | null;
8691
9153
  last_sent_hash?: string | null;
8692
9154
  locked_by?: string | null;
8693
9155
  locked_until?: string | null;
@@ -8708,6 +9170,9 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
8708
9170
  id?: string;
8709
9171
  last_error?: string | null;
8710
9172
  last_error_at?: string | null;
9173
+ last_error_code?: string | null;
9174
+ last_gateway_status?: number | null;
9175
+ last_response?: import("../integrations/supabase/types").Json | null;
8711
9176
  last_sent_hash?: string | null;
8712
9177
  locked_by?: string | null;
8713
9178
  locked_until?: string | null;
@@ -10141,6 +10606,63 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
10141
10606
  referencedColumns: ["id"];
10142
10607
  }];
10143
10608
  };
10609
+ medewerker_details: {
10610
+ Row: {
10611
+ color: string | null;
10612
+ created_at: string;
10613
+ hours_fri: number | null;
10614
+ hours_mon: number | null;
10615
+ hours_thu: number | null;
10616
+ hours_tue: number | null;
10617
+ hours_wed: number | null;
10618
+ id: string;
10619
+ is_active: boolean;
10620
+ leave_balance_hours: number;
10621
+ persnr: string | null;
10622
+ phone: string | null;
10623
+ profile_id: string;
10624
+ updated_at: string;
10625
+ };
10626
+ Insert: {
10627
+ color?: string | null;
10628
+ created_at?: string;
10629
+ hours_fri?: number | null;
10630
+ hours_mon?: number | null;
10631
+ hours_thu?: number | null;
10632
+ hours_tue?: number | null;
10633
+ hours_wed?: number | null;
10634
+ id?: string;
10635
+ is_active?: boolean;
10636
+ leave_balance_hours?: number;
10637
+ persnr?: string | null;
10638
+ phone?: string | null;
10639
+ profile_id: string;
10640
+ updated_at?: string;
10641
+ };
10642
+ Update: {
10643
+ color?: string | null;
10644
+ created_at?: string;
10645
+ hours_fri?: number | null;
10646
+ hours_mon?: number | null;
10647
+ hours_thu?: number | null;
10648
+ hours_tue?: number | null;
10649
+ hours_wed?: number | null;
10650
+ id?: string;
10651
+ is_active?: boolean;
10652
+ leave_balance_hours?: number;
10653
+ persnr?: string | null;
10654
+ phone?: string | null;
10655
+ profile_id?: string;
10656
+ updated_at?: string;
10657
+ };
10658
+ Relationships: [{
10659
+ foreignKeyName: "medewerker_details_profile_id_fkey";
10660
+ columns: ["profile_id"];
10661
+ isOneToOne: true;
10662
+ referencedRelation: "profiles";
10663
+ referencedColumns: ["id"];
10664
+ }];
10665
+ };
10144
10666
  module_features: {
10145
10667
  Row: {
10146
10668
  created_at: string;
@@ -10204,6 +10726,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
10204
10726
  enforce: boolean;
10205
10727
  is_active: boolean;
10206
10728
  last_seen_at: string;
10729
+ missing_count: number;
10207
10730
  module_id: string;
10208
10731
  name: string;
10209
10732
  shell_id: string | null;
@@ -10214,6 +10737,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
10214
10737
  enforce?: boolean;
10215
10738
  is_active?: boolean;
10216
10739
  last_seen_at?: string;
10740
+ missing_count?: number;
10217
10741
  module_id: string;
10218
10742
  name: string;
10219
10743
  shell_id?: string | null;
@@ -10224,6 +10748,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
10224
10748
  enforce?: boolean;
10225
10749
  is_active?: boolean;
10226
10750
  last_seen_at?: string;
10751
+ missing_count?: number;
10227
10752
  module_id?: string;
10228
10753
  name?: string;
10229
10754
  shell_id?: string | null;
@@ -11223,6 +11748,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
11223
11748
  };
11224
11749
  order_invoice_links: {
11225
11750
  Row: {
11751
+ administration_code: string | null;
11226
11752
  attempts: number;
11227
11753
  created_at: string;
11228
11754
  error_message: string | null;
@@ -11235,6 +11761,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
11235
11761
  updated_at: string;
11236
11762
  };
11237
11763
  Insert: {
11764
+ administration_code?: string | null;
11238
11765
  attempts?: number;
11239
11766
  created_at?: string;
11240
11767
  error_message?: string | null;
@@ -11247,6 +11774,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
11247
11774
  updated_at?: string;
11248
11775
  };
11249
11776
  Update: {
11777
+ administration_code?: string | null;
11250
11778
  attempts?: number;
11251
11779
  created_at?: string;
11252
11780
  error_message?: string | null;
@@ -11434,6 +11962,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
11434
11962
  orders: {
11435
11963
  Row: {
11436
11964
  buffer_id: string | null;
11965
+ cancel_reason: string | null;
11966
+ cancelled_at: string | null;
11437
11967
  created_at: string;
11438
11968
  custom_fields: import("../integrations/supabase/types").Json;
11439
11969
  customer_id: string | null;
@@ -11456,6 +11986,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
11456
11986
  };
11457
11987
  Insert: {
11458
11988
  buffer_id?: string | null;
11989
+ cancel_reason?: string | null;
11990
+ cancelled_at?: string | null;
11459
11991
  created_at?: string;
11460
11992
  custom_fields?: import("../integrations/supabase/types").Json;
11461
11993
  customer_id?: string | null;
@@ -11478,6 +12010,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
11478
12010
  };
11479
12011
  Update: {
11480
12012
  buffer_id?: string | null;
12013
+ cancel_reason?: string | null;
12014
+ cancelled_at?: string | null;
11481
12015
  created_at?: string;
11482
12016
  custom_fields?: import("../integrations/supabase/types").Json;
11483
12017
  customer_id?: string | null;
@@ -12406,6 +12940,27 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
12406
12940
  referencedColumns: ["id"];
12407
12941
  }];
12408
12942
  };
12943
+ pick_sync_state: {
12944
+ Row: {
12945
+ id: boolean;
12946
+ last_cleanup_at: string | null;
12947
+ last_sync_at: string | null;
12948
+ updated_at: string;
12949
+ };
12950
+ Insert: {
12951
+ id?: boolean;
12952
+ last_cleanup_at?: string | null;
12953
+ last_sync_at?: string | null;
12954
+ updated_at?: string;
12955
+ };
12956
+ Update: {
12957
+ id?: boolean;
12958
+ last_cleanup_at?: string | null;
12959
+ last_sync_at?: string | null;
12960
+ updated_at?: string;
12961
+ };
12962
+ Relationships: [];
12963
+ };
12409
12964
  pick_task_document_types: {
12410
12965
  Row: {
12411
12966
  created_at: string;
@@ -12688,6 +13243,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
12688
13243
  gebruiker_id: string | null;
12689
13244
  gebruiker_naam: string;
12690
13245
  gestart_op: string | null;
13246
+ herkomst: string | null;
12691
13247
  id: string;
12692
13248
  idempotentie_sleutel: string | null;
12693
13249
  is_herprint: boolean;
@@ -12717,6 +13273,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
12717
13273
  gebruiker_id?: string | null;
12718
13274
  gebruiker_naam?: string;
12719
13275
  gestart_op?: string | null;
13276
+ herkomst?: string | null;
12720
13277
  id?: string;
12721
13278
  idempotentie_sleutel?: string | null;
12722
13279
  is_herprint?: boolean;
@@ -12746,6 +13303,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
12746
13303
  gebruiker_id?: string | null;
12747
13304
  gebruiker_naam?: string;
12748
13305
  gestart_op?: string | null;
13306
+ herkomst?: string | null;
12749
13307
  id?: string;
12750
13308
  idempotentie_sleutel?: string | null;
12751
13309
  is_herprint?: boolean;
@@ -13540,6 +14098,66 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
13540
14098
  };
13541
14099
  Relationships: [];
13542
14100
  };
14101
+ profile_modules: {
14102
+ Row: {
14103
+ created_at: string;
14104
+ id: string;
14105
+ module_id: string;
14106
+ profile_id: string;
14107
+ };
14108
+ Insert: {
14109
+ created_at?: string;
14110
+ id?: string;
14111
+ module_id: string;
14112
+ profile_id: string;
14113
+ };
14114
+ Update: {
14115
+ created_at?: string;
14116
+ id?: string;
14117
+ module_id?: string;
14118
+ profile_id?: string;
14119
+ };
14120
+ Relationships: [{
14121
+ foreignKeyName: "profile_modules_profile_id_fkey";
14122
+ columns: ["profile_id"];
14123
+ isOneToOne: false;
14124
+ referencedRelation: "profiles_org";
14125
+ referencedColumns: ["id"];
14126
+ }];
14127
+ };
14128
+ profile_roles: {
14129
+ Row: {
14130
+ created_at: string;
14131
+ id: string;
14132
+ profile_id: string;
14133
+ role_id: string;
14134
+ };
14135
+ Insert: {
14136
+ created_at?: string;
14137
+ id?: string;
14138
+ profile_id: string;
14139
+ role_id: string;
14140
+ };
14141
+ Update: {
14142
+ created_at?: string;
14143
+ id?: string;
14144
+ profile_id?: string;
14145
+ role_id?: string;
14146
+ };
14147
+ Relationships: [{
14148
+ foreignKeyName: "profile_roles_profile_id_fkey";
14149
+ columns: ["profile_id"];
14150
+ isOneToOne: false;
14151
+ referencedRelation: "profiles_org";
14152
+ referencedColumns: ["id"];
14153
+ }, {
14154
+ foreignKeyName: "profile_roles_role_id_fkey";
14155
+ columns: ["role_id"];
14156
+ isOneToOne: false;
14157
+ referencedRelation: "roles";
14158
+ referencedColumns: ["id"];
14159
+ }];
14160
+ };
13543
14161
  profiles: {
13544
14162
  Row: {
13545
14163
  address: string | null;
@@ -13585,6 +14203,39 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
13585
14203
  referencedColumns: ["id"];
13586
14204
  }];
13587
14205
  };
14206
+ profiles_org: {
14207
+ Row: {
14208
+ created_at: string;
14209
+ id: string;
14210
+ is_default: boolean;
14211
+ name: string;
14212
+ tenant_id: string | null;
14213
+ updated_at: string;
14214
+ };
14215
+ Insert: {
14216
+ created_at?: string;
14217
+ id?: string;
14218
+ is_default?: boolean;
14219
+ name: string;
14220
+ tenant_id?: string | null;
14221
+ updated_at?: string;
14222
+ };
14223
+ Update: {
14224
+ created_at?: string;
14225
+ id?: string;
14226
+ is_default?: boolean;
14227
+ name?: string;
14228
+ tenant_id?: string | null;
14229
+ updated_at?: string;
14230
+ };
14231
+ Relationships: [{
14232
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14233
+ columns: ["tenant_id"];
14234
+ isOneToOne: false;
14235
+ referencedRelation: "tenants";
14236
+ referencedColumns: ["id"];
14237
+ }];
14238
+ };
13588
14239
  projects: {
13589
14240
  Row: {
13590
14241
  contact_name: string | null;
@@ -14759,6 +15410,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
14759
15410
  type: string;
14760
15411
  updated_at: string;
14761
15412
  vereist_medewerker: boolean;
15413
+ werkplek: string | null;
14762
15414
  };
14763
15415
  Insert: {
14764
15416
  actief?: boolean;
@@ -14772,6 +15424,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
14772
15424
  type?: string;
14773
15425
  updated_at?: string;
14774
15426
  vereist_medewerker?: boolean;
15427
+ werkplek?: string | null;
14775
15428
  };
14776
15429
  Update: {
14777
15430
  actief?: boolean;
@@ -14785,9 +15438,46 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
14785
15438
  type?: string;
14786
15439
  updated_at?: string;
14787
15440
  vereist_medewerker?: boolean;
15441
+ werkplek?: string | null;
14788
15442
  };
14789
15443
  Relationships: [];
14790
15444
  };
15445
+ sick_periods: {
15446
+ Row: {
15447
+ created_at: string;
15448
+ employee_id: string;
15449
+ end_date: string | null;
15450
+ id: string;
15451
+ notes: string | null;
15452
+ start_date: string;
15453
+ updated_at: string;
15454
+ };
15455
+ Insert: {
15456
+ created_at?: string;
15457
+ employee_id: string;
15458
+ end_date?: string | null;
15459
+ id?: string;
15460
+ notes?: string | null;
15461
+ start_date: string;
15462
+ updated_at?: string;
15463
+ };
15464
+ Update: {
15465
+ created_at?: string;
15466
+ employee_id?: string;
15467
+ end_date?: string | null;
15468
+ id?: string;
15469
+ notes?: string | null;
15470
+ start_date?: string;
15471
+ updated_at?: string;
15472
+ };
15473
+ Relationships: [{
15474
+ foreignKeyName: "sick_periods_employee_id_fkey";
15475
+ columns: ["employee_id"];
15476
+ isOneToOne: false;
15477
+ referencedRelation: "profiles";
15478
+ referencedColumns: ["id"];
15479
+ }];
15480
+ };
14791
15481
  sidebar_config: {
14792
15482
  Row: {
14793
15483
  id: string;
@@ -15618,12 +16308,16 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
15618
16308
  company_name: string | null;
15619
16309
  connected_at: string | null;
15620
16310
  created_at: string;
16311
+ disconnected_at: string | null;
15621
16312
  environment: string;
15622
16313
  id: string;
16314
+ initial_sync_completed_at: string | null;
16315
+ initial_sync_started_at: string | null;
15623
16316
  is_active: boolean;
15624
16317
  label: string | null;
15625
16318
  office_code: string | null;
15626
16319
  redirect_uri: string | null;
16320
+ superseded_at: string | null;
15627
16321
  updated_at: string;
15628
16322
  user_id: string;
15629
16323
  };
@@ -15634,12 +16328,16 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
15634
16328
  company_name?: string | null;
15635
16329
  connected_at?: string | null;
15636
16330
  created_at?: string;
16331
+ disconnected_at?: string | null;
15637
16332
  environment: string;
15638
16333
  id?: string;
16334
+ initial_sync_completed_at?: string | null;
16335
+ initial_sync_started_at?: string | null;
15639
16336
  is_active?: boolean;
15640
16337
  label?: string | null;
15641
16338
  office_code?: string | null;
15642
16339
  redirect_uri?: string | null;
16340
+ superseded_at?: string | null;
15643
16341
  updated_at?: string;
15644
16342
  user_id: string;
15645
16343
  };
@@ -15650,12 +16348,16 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
15650
16348
  company_name?: string | null;
15651
16349
  connected_at?: string | null;
15652
16350
  created_at?: string;
16351
+ disconnected_at?: string | null;
15653
16352
  environment?: string;
15654
16353
  id?: string;
16354
+ initial_sync_completed_at?: string | null;
16355
+ initial_sync_started_at?: string | null;
15655
16356
  is_active?: boolean;
15656
16357
  label?: string | null;
15657
16358
  office_code?: string | null;
15658
16359
  redirect_uri?: string | null;
16360
+ superseded_at?: string | null;
15659
16361
  updated_at?: string;
15660
16362
  user_id?: string;
15661
16363
  };
@@ -15715,6 +16417,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
15715
16417
  twinfield_customers: {
15716
16418
  Row: {
15717
16419
  address: string | null;
16420
+ administration_code: string;
15718
16421
  city: string | null;
15719
16422
  country: string | null;
15720
16423
  created_at: string;
@@ -15734,6 +16437,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
15734
16437
  };
15735
16438
  Insert: {
15736
16439
  address?: string | null;
16440
+ administration_code?: string;
15737
16441
  city?: string | null;
15738
16442
  country?: string | null;
15739
16443
  created_at?: string;
@@ -15753,6 +16457,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
15753
16457
  };
15754
16458
  Update: {
15755
16459
  address?: string | null;
16460
+ administration_code?: string;
15756
16461
  city?: string | null;
15757
16462
  country?: string | null;
15758
16463
  created_at?: string;
@@ -15966,7 +16671,9 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
15966
16671
  };
15967
16672
  twinfield_invoice_settings: {
15968
16673
  Row: {
16674
+ administration_code: string | null;
15969
16675
  auto_invoice_enabled: boolean;
16676
+ auto_invoice_start_date: string | null;
15970
16677
  auto_invoice_trigger_statuses: string[];
15971
16678
  created_at: string;
15972
16679
  debtor_gl_account: string;
@@ -15980,15 +16687,19 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
15980
16687
  invoice_enabled_fo: boolean;
15981
16688
  invoice_enabled_ho: boolean;
15982
16689
  invoice_enabled_mo: boolean;
16690
+ needs_review: boolean;
15983
16691
  payment_gl_account: string;
15984
16692
  payment_journal_code: string;
16693
+ settings_confirmed_at: string | null;
15985
16694
  updated_at: string;
15986
16695
  user_id: string;
15987
16696
  vat_code_eu_reverse: string | null;
15988
16697
  vat_code_export: string | null;
15989
16698
  };
15990
16699
  Insert: {
16700
+ administration_code?: string | null;
15991
16701
  auto_invoice_enabled?: boolean;
16702
+ auto_invoice_start_date?: string | null;
15992
16703
  auto_invoice_trigger_statuses?: string[];
15993
16704
  created_at?: string;
15994
16705
  debtor_gl_account?: string;
@@ -16002,15 +16713,19 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
16002
16713
  invoice_enabled_fo?: boolean;
16003
16714
  invoice_enabled_ho?: boolean;
16004
16715
  invoice_enabled_mo?: boolean;
16716
+ needs_review?: boolean;
16005
16717
  payment_gl_account?: string;
16006
16718
  payment_journal_code?: string;
16719
+ settings_confirmed_at?: string | null;
16007
16720
  updated_at?: string;
16008
16721
  user_id: string;
16009
16722
  vat_code_eu_reverse?: string | null;
16010
16723
  vat_code_export?: string | null;
16011
16724
  };
16012
16725
  Update: {
16726
+ administration_code?: string | null;
16013
16727
  auto_invoice_enabled?: boolean;
16728
+ auto_invoice_start_date?: string | null;
16014
16729
  auto_invoice_trigger_statuses?: string[];
16015
16730
  created_at?: string;
16016
16731
  debtor_gl_account?: string;
@@ -16024,8 +16739,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
16024
16739
  invoice_enabled_fo?: boolean;
16025
16740
  invoice_enabled_ho?: boolean;
16026
16741
  invoice_enabled_mo?: boolean;
16742
+ needs_review?: boolean;
16027
16743
  payment_gl_account?: string;
16028
16744
  payment_journal_code?: string;
16745
+ settings_confirmed_at?: string | null;
16029
16746
  updated_at?: string;
16030
16747
  user_id?: string;
16031
16748
  vat_code_eu_reverse?: string | null;
@@ -16630,114 +17347,6 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
16630
17347
  };
16631
17348
  Relationships: [];
16632
17349
  };
16633
- uren_facturen: {
16634
- Row: {
16635
- created_at: string;
16636
- created_by: string | null;
16637
- customer_id: string | null;
16638
- customer_name: string | null;
16639
- id: string;
16640
- invoice_number: string | null;
16641
- note: string | null;
16642
- status: string;
16643
- total_excl_cents: number;
16644
- total_incl_cents: number;
16645
- updated_at: string;
16646
- vat_cents: number;
16647
- vat_percentage: number;
16648
- werkbon_id: string | null;
16649
- };
16650
- Insert: {
16651
- created_at?: string;
16652
- created_by?: string | null;
16653
- customer_id?: string | null;
16654
- customer_name?: string | null;
16655
- id?: string;
16656
- invoice_number?: string | null;
16657
- note?: string | null;
16658
- status?: string;
16659
- total_excl_cents?: number;
16660
- total_incl_cents?: number;
16661
- updated_at?: string;
16662
- vat_cents?: number;
16663
- vat_percentage?: number;
16664
- werkbon_id?: string | null;
16665
- };
16666
- Update: {
16667
- created_at?: string;
16668
- created_by?: string | null;
16669
- customer_id?: string | null;
16670
- customer_name?: string | null;
16671
- id?: string;
16672
- invoice_number?: string | null;
16673
- note?: string | null;
16674
- status?: string;
16675
- total_excl_cents?: number;
16676
- total_incl_cents?: number;
16677
- updated_at?: string;
16678
- vat_cents?: number;
16679
- vat_percentage?: number;
16680
- werkbon_id?: string | null;
16681
- };
16682
- Relationships: [{
16683
- foreignKeyName: "uren_facturen_customer_id_fkey";
16684
- columns: ["customer_id"];
16685
- isOneToOne: false;
16686
- referencedRelation: "itk_customers";
16687
- referencedColumns: ["id"];
16688
- }, {
16689
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
16690
- columns: ["werkbon_id"];
16691
- isOneToOne: true;
16692
- referencedRelation: "werkbonnen";
16693
- referencedColumns: ["id"];
16694
- }];
16695
- };
16696
- uren_factuur_regels: {
16697
- Row: {
16698
- created_at: string;
16699
- description: string;
16700
- factuur_id: string;
16701
- id: string;
16702
- kind: string | null;
16703
- quantity: number;
16704
- sort_order: number;
16705
- total_cents: number;
16706
- unit: string;
16707
- unit_price_cents: number;
16708
- };
16709
- Insert: {
16710
- created_at?: string;
16711
- description: string;
16712
- factuur_id: string;
16713
- id?: string;
16714
- kind?: string | null;
16715
- quantity?: number;
16716
- sort_order?: number;
16717
- total_cents?: number;
16718
- unit?: string;
16719
- unit_price_cents?: number;
16720
- };
16721
- Update: {
16722
- created_at?: string;
16723
- description?: string;
16724
- factuur_id?: string;
16725
- id?: string;
16726
- kind?: string | null;
16727
- quantity?: number;
16728
- sort_order?: number;
16729
- total_cents?: number;
16730
- unit?: string;
16731
- unit_price_cents?: number;
16732
- };
16733
- Relationships: [{
16734
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
16735
- columns: ["factuur_id"];
16736
- isOneToOne: false;
16737
- referencedRelation: "uren_facturen";
16738
- referencedColumns: ["id"];
16739
- }];
16740
- };
16741
17350
  uren_offerte_regels: {
16742
17351
  Row: {
16743
17352
  created_at: string;
@@ -18577,6 +19186,114 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
18577
19186
  };
18578
19187
  Relationships: [];
18579
19188
  };
19189
+ uren_facturen: {
19190
+ Row: {
19191
+ created_at: string | null;
19192
+ created_by: string | null;
19193
+ customer_id: string | null;
19194
+ customer_name: string | null;
19195
+ id: string | null;
19196
+ invoice_number: string | null;
19197
+ note: string | null;
19198
+ status: string | null;
19199
+ total_excl_cents: number | null;
19200
+ total_incl_cents: number | null;
19201
+ updated_at: string | null;
19202
+ vat_cents: number | null;
19203
+ vat_percentage: number | null;
19204
+ werkbon_id: string | null;
19205
+ };
19206
+ Insert: {
19207
+ created_at?: string | null;
19208
+ created_by?: string | null;
19209
+ customer_id?: string | null;
19210
+ customer_name?: string | null;
19211
+ id?: string | null;
19212
+ invoice_number?: string | null;
19213
+ note?: string | null;
19214
+ status?: string | null;
19215
+ total_excl_cents?: number | null;
19216
+ total_incl_cents?: number | null;
19217
+ updated_at?: string | null;
19218
+ vat_cents?: number | null;
19219
+ vat_percentage?: number | null;
19220
+ werkbon_id?: never;
19221
+ };
19222
+ Update: {
19223
+ created_at?: string | null;
19224
+ created_by?: string | null;
19225
+ customer_id?: string | null;
19226
+ customer_name?: string | null;
19227
+ id?: string | null;
19228
+ invoice_number?: string | null;
19229
+ note?: string | null;
19230
+ status?: string | null;
19231
+ total_excl_cents?: number | null;
19232
+ total_incl_cents?: number | null;
19233
+ updated_at?: string | null;
19234
+ vat_cents?: number | null;
19235
+ vat_percentage?: number | null;
19236
+ werkbon_id?: never;
19237
+ };
19238
+ Relationships: [{
19239
+ foreignKeyName: "invoices_customer_id_fkey";
19240
+ columns: ["customer_id"];
19241
+ isOneToOne: false;
19242
+ referencedRelation: "itk_customers";
19243
+ referencedColumns: ["id"];
19244
+ }];
19245
+ };
19246
+ uren_factuur_regels: {
19247
+ Row: {
19248
+ created_at: string | null;
19249
+ description: string | null;
19250
+ factuur_id: string | null;
19251
+ id: string | null;
19252
+ kind: string | null;
19253
+ quantity: number | null;
19254
+ sort_order: number | null;
19255
+ total_cents: number | null;
19256
+ unit: string | null;
19257
+ unit_price_cents: number | null;
19258
+ };
19259
+ Insert: {
19260
+ created_at?: string | null;
19261
+ description?: string | null;
19262
+ factuur_id?: string | null;
19263
+ id?: string | null;
19264
+ kind?: string | null;
19265
+ quantity?: number | null;
19266
+ sort_order?: number | null;
19267
+ total_cents?: number | null;
19268
+ unit?: string | null;
19269
+ unit_price_cents?: number | null;
19270
+ };
19271
+ Update: {
19272
+ created_at?: string | null;
19273
+ description?: string | null;
19274
+ factuur_id?: string | null;
19275
+ id?: string | null;
19276
+ kind?: string | null;
19277
+ quantity?: number | null;
19278
+ sort_order?: number | null;
19279
+ total_cents?: number | null;
19280
+ unit?: string | null;
19281
+ unit_price_cents?: number | null;
19282
+ };
19283
+ Relationships: [{
19284
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19285
+ columns: ["factuur_id"];
19286
+ isOneToOne: false;
19287
+ referencedRelation: "invoices";
19288
+ referencedColumns: ["id"];
19289
+ }, {
19290
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19291
+ columns: ["factuur_id"];
19292
+ isOneToOne: false;
19293
+ referencedRelation: "uren_facturen";
19294
+ referencedColumns: ["id"];
19295
+ }];
19296
+ };
18580
19297
  v_external_customers_exact: {
18581
19298
  Row: {
18582
19299
  account_number: string | null;
@@ -19082,6 +19799,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19082
19799
  gebruiker_id: string | null;
19083
19800
  gebruiker_naam: string;
19084
19801
  gestart_op: string | null;
19802
+ herkomst: string | null;
19085
19803
  id: string;
19086
19804
  idempotentie_sleutel: string | null;
19087
19805
  is_herprint: boolean;
@@ -19202,6 +19920,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19202
19920
  gebruiker_id: string | null;
19203
19921
  gebruiker_naam: string;
19204
19922
  gestart_op: string | null;
19923
+ herkomst: string | null;
19205
19924
  id: string;
19206
19925
  idempotentie_sleutel: string | null;
19207
19926
  is_herprint: boolean;
@@ -19472,6 +20191,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19472
20191
  };
19473
20192
  Returns: string;
19474
20193
  };
20194
+ employee_day_hours: {
20195
+ Args: {
20196
+ _day: string;
20197
+ _employee_id: string;
20198
+ };
20199
+ Returns: number;
20200
+ };
19475
20201
  enqueue_cart_replan_if_unlocked: {
19476
20202
  Args: {
19477
20203
  p_order_id: string;
@@ -19796,6 +20522,46 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19796
20522
  Args: never;
19797
20523
  Returns: boolean;
19798
20524
  };
20525
+ invoice_create_from_source: {
20526
+ Args: {
20527
+ _payload?: import("../integrations/supabase/types").Json;
20528
+ _source_id: string;
20529
+ _source_type: string;
20530
+ };
20531
+ Returns: import("../integrations/supabase/types").Json;
20532
+ };
20533
+ invoice_get_billable_lines: {
20534
+ Args: {
20535
+ _invoice_id: string;
20536
+ };
20537
+ Returns: import("../integrations/supabase/types").Json;
20538
+ };
20539
+ invoice_get_for_source: {
20540
+ Args: {
20541
+ _source_id: string;
20542
+ _source_type: string;
20543
+ };
20544
+ Returns: import("../integrations/supabase/types").Json;
20545
+ };
20546
+ invoice_get_summary: {
20547
+ Args: {
20548
+ _invoice_id: string;
20549
+ };
20550
+ Returns: import("../integrations/supabase/types").Json;
20551
+ };
20552
+ invoice_list_sources: {
20553
+ Args: {
20554
+ _limit?: number;
20555
+ _source_type?: string;
20556
+ };
20557
+ Returns: import("../integrations/supabase/types").Json;
20558
+ };
20559
+ invoice_recalc_totals: {
20560
+ Args: {
20561
+ _invoice_id: string;
20562
+ };
20563
+ Returns: import("../integrations/supabase/types").Json;
20564
+ };
19799
20565
  is_authenticated: {
19800
20566
  Args: never;
19801
20567
  Returns: boolean;
@@ -19825,6 +20591,19 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19825
20591
  Args: never;
19826
20592
  Returns: boolean;
19827
20593
  };
20594
+ itk_offerte_naar_werkbon: {
20595
+ Args: {
20596
+ _offerte_id: string;
20597
+ };
20598
+ Returns: string;
20599
+ };
20600
+ itk_offerte_restant_mandaat: {
20601
+ Args: {
20602
+ _exclude_offerte_id?: string;
20603
+ _werkbon_id: string;
20604
+ };
20605
+ Returns: number;
20606
+ };
19828
20607
  jwt_has_role: {
19829
20608
  Args: {
19830
20609
  _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
@@ -19835,12 +20614,45 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19835
20614
  Args: never;
19836
20615
  Returns: {
19837
20616
  avatar_url: string;
20617
+ color: string;
19838
20618
  display_name: string;
19839
20619
  email: string;
20620
+ hours_fri: number;
20621
+ hours_mon: number;
20622
+ hours_thu: number;
20623
+ hours_tue: number;
20624
+ hours_wed: number;
19840
20625
  id: string;
20626
+ is_active: boolean;
20627
+ leave_balance_hours: number;
20628
+ persnr: string;
20629
+ phone: string;
19841
20630
  roles: string[];
19842
20631
  }[];
19843
20632
  };
20633
+ list_monteur_absences: {
20634
+ Args: {
20635
+ _from: string;
20636
+ _to: string;
20637
+ };
20638
+ Returns: {
20639
+ absence_date: string;
20640
+ end_time: string;
20641
+ full_day: boolean;
20642
+ kind: string;
20643
+ monteur_id: string;
20644
+ start_time: string;
20645
+ }[];
20646
+ };
20647
+ list_monteurs: {
20648
+ Args: never;
20649
+ Returns: {
20650
+ avatar_url: string;
20651
+ display_name: string;
20652
+ email: string;
20653
+ id: string;
20654
+ }[];
20655
+ };
19844
20656
  list_my_planning_items: {
19845
20657
  Args: {
19846
20658
  _from: string;
@@ -20252,6 +21064,23 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20252
21064
  };
20253
21065
  Returns: string;
20254
21066
  };
21067
+ logistics_floriday_finish_push_v2: {
21068
+ Args: {
21069
+ _error?: string;
21070
+ _error_code?: string;
21071
+ _fulfillment_order_id?: string;
21072
+ _gateway_status?: number;
21073
+ _id: string;
21074
+ _max_age_hours?: number;
21075
+ _max_attempts?: number;
21076
+ _ok: boolean;
21077
+ _permanent?: boolean;
21078
+ _response?: import("../integrations/supabase/types").Json;
21079
+ _revision: number;
21080
+ _sent_hash?: string;
21081
+ };
21082
+ Returns: string;
21083
+ };
20255
21084
  logistics_floriday_prune_pushes: {
20256
21085
  Args: {
20257
21086
  _days?: number;
@@ -20794,6 +21623,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20794
21623
  isSetofReturn: false;
20795
21624
  };
20796
21625
  };
21626
+ pick_cleanup_maintenance: {
21627
+ Args: {
21628
+ _heartbeat_hours?: number;
21629
+ _log_days?: number;
21630
+ };
21631
+ Returns: import("../integrations/supabase/types").Json;
21632
+ };
20797
21633
  pick_complete_print: {
20798
21634
  Args: {
20799
21635
  _printer_id: string;
@@ -20845,6 +21681,14 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20845
21681
  Args: never;
20846
21682
  Returns: string;
20847
21683
  };
21684
+ pick_day_counts: {
21685
+ Args: {
21686
+ _pick_day?: string;
21687
+ _screen_id?: string;
21688
+ _station_id?: string;
21689
+ };
21690
+ Returns: import("../integrations/supabase/types").Json;
21691
+ };
20848
21692
  pick_document_layout_data: {
20849
21693
  Args: {
20850
21694
  _layout_id: string;
@@ -20882,6 +21726,14 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20882
21726
  };
20883
21727
  Returns: undefined;
20884
21728
  };
21729
+ pick_reprint_document: {
21730
+ Args: {
21731
+ _queue_item_id: string;
21732
+ _session_id: string;
21733
+ _throttle_seconds?: number;
21734
+ };
21735
+ Returns: string;
21736
+ };
20885
21737
  pick_reset_print: {
20886
21738
  Args: {
20887
21739
  _queue_item_id: string;
@@ -20947,6 +21799,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20947
21799
  };
20948
21800
  Returns: string;
20949
21801
  };
21802
+ pick_sync_queue_throttled: {
21803
+ Args: {
21804
+ _min_seconds?: number;
21805
+ };
21806
+ Returns: import("../integrations/supabase/types").Json;
21807
+ };
20950
21808
  pickstation_get_orders_raw: {
20951
21809
  Args: never;
20952
21810
  Returns: import("../integrations/supabase/types").Json;
@@ -21008,6 +21866,37 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21008
21866
  };
21009
21867
  Returns: undefined;
21010
21868
  };
21869
+ quote_create_from_source: {
21870
+ Args: {
21871
+ _payload?: import("../integrations/supabase/types").Json;
21872
+ _source_id: string;
21873
+ _source_type: string;
21874
+ };
21875
+ Returns: string;
21876
+ };
21877
+ quote_get_billable_lines: {
21878
+ Args: {
21879
+ _quotation_id: string;
21880
+ };
21881
+ Returns: import("../integrations/supabase/types").Json;
21882
+ };
21883
+ quote_get_summary: {
21884
+ Args: {
21885
+ _quotation_id: string;
21886
+ };
21887
+ Returns: import("../integrations/supabase/types").Json;
21888
+ };
21889
+ quote_list_packages: {
21890
+ Args: never;
21891
+ Returns: import("../integrations/supabase/types").Json;
21892
+ };
21893
+ quote_list_sources: {
21894
+ Args: {
21895
+ _limit?: number;
21896
+ _source_type?: string;
21897
+ };
21898
+ Returns: import("../integrations/supabase/types").Json;
21899
+ };
21011
21900
  recompute_all_reserved_stock: {
21012
21901
  Args: never;
21013
21902
  Returns: undefined;
@@ -21061,6 +21950,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21061
21950
  };
21062
21951
  Returns: boolean;
21063
21952
  };
21953
+ release_stale_order_invoice_links: {
21954
+ Args: {
21955
+ _minutes?: number;
21956
+ };
21957
+ Returns: number;
21958
+ };
21064
21959
  reorder_customer_price_groups: {
21065
21960
  Args: {
21066
21961
  _ids: string[];
@@ -21543,6 +22438,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21543
22438
  };
21544
22439
  Returns: undefined;
21545
22440
  };
22441
+ sync_sick_time_off: {
22442
+ Args: {
22443
+ _period_id: string;
22444
+ };
22445
+ Returns: number;
22446
+ };
21546
22447
  trade_item_stock_duplicates: {
21547
22448
  Args: never;
21548
22449
  Returns: {
@@ -21573,6 +22474,20 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21573
22474
  };
21574
22475
  Returns: undefined;
21575
22476
  };
22477
+ twinfield_deactivate_connection: {
22478
+ Args: {
22479
+ p_connection_id: string;
22480
+ p_user_id: string;
22481
+ };
22482
+ Returns: import("../integrations/supabase/types").Json;
22483
+ };
22484
+ twinfield_handle_administration_change: {
22485
+ Args: {
22486
+ _administration_code: string;
22487
+ _user_id: string;
22488
+ };
22489
+ Returns: undefined;
22490
+ };
21576
22491
  twinfield_prune_push_queue: {
21577
22492
  Args: never;
21578
22493
  Returns: number;
@@ -21592,10 +22507,11 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21592
22507
  p_company_name?: string;
21593
22508
  p_environment: string;
21594
22509
  p_office_code?: string;
22510
+ p_reset_sync?: boolean;
21595
22511
  p_status?: string;
21596
22512
  p_user_id: string;
21597
22513
  };
21598
- Returns: string;
22514
+ Returns: import("../integrations/supabase/types").Json;
21599
22515
  };
21600
22516
  upsert_auto_fulfillment_log: {
21601
22517
  Args: {
@@ -21616,6 +22532,26 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21616
22532
  Args: never;
21617
22533
  Returns: string;
21618
22534
  };
22535
+ wo_create_from_source: {
22536
+ Args: {
22537
+ _payload?: import("../integrations/supabase/types").Json;
22538
+ _source_id: string;
22539
+ _source_type: string;
22540
+ };
22541
+ Returns: string;
22542
+ };
22543
+ wo_get_billable_lines: {
22544
+ Args: {
22545
+ _work_order_id: string;
22546
+ };
22547
+ Returns: import("../integrations/supabase/types").Json;
22548
+ };
22549
+ wo_get_summary: {
22550
+ Args: {
22551
+ _work_order_id: string;
22552
+ };
22553
+ Returns: import("../integrations/supabase/types").Json;
22554
+ };
21619
22555
  };
21620
22556
  Enums: {
21621
22557
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
@@ -24407,6 +25343,42 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
24407
25343
  };
24408
25344
  Relationships: [];
24409
25345
  };
25346
+ document_bronregels: {
25347
+ Row: {
25348
+ bron: string;
25349
+ created_at: string;
25350
+ documenttype: string;
25351
+ herkomst: string;
25352
+ id: string;
25353
+ layout_id: string | null;
25354
+ updated_at: string;
25355
+ };
25356
+ Insert: {
25357
+ bron?: string;
25358
+ created_at?: string;
25359
+ documenttype: string;
25360
+ herkomst: string;
25361
+ id?: string;
25362
+ layout_id?: string | null;
25363
+ updated_at?: string;
25364
+ };
25365
+ Update: {
25366
+ bron?: string;
25367
+ created_at?: string;
25368
+ documenttype?: string;
25369
+ herkomst?: string;
25370
+ id?: string;
25371
+ layout_id?: string | null;
25372
+ updated_at?: string;
25373
+ };
25374
+ Relationships: [{
25375
+ foreignKeyName: "document_bronregels_layout_id_fkey";
25376
+ columns: ["layout_id"];
25377
+ isOneToOne: false;
25378
+ referencedRelation: "document_layouts";
25379
+ referencedColumns: ["id"];
25380
+ }];
25381
+ };
24410
25382
  document_formaat_printers: {
24411
25383
  Row: {
24412
25384
  created_at: string;
@@ -24684,6 +25656,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
24684
25656
  Row: {
24685
25657
  actief: boolean;
24686
25658
  breedte_mm: number;
25659
+ bron: string;
24687
25660
  config: import("../integrations/supabase/types").Json;
24688
25661
  created_at: string;
24689
25662
  created_by: string | null;
@@ -24701,12 +25674,14 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
24701
25674
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
24702
25675
  page_settings: import("../integrations/supabase/types").Json;
24703
25676
  papierformaat: string;
25677
+ systeem: boolean;
24704
25678
  thumbnail_url: string | null;
24705
25679
  updated_at: string;
24706
25680
  };
24707
25681
  Insert: {
24708
25682
  actief?: boolean;
24709
25683
  breedte_mm?: number;
25684
+ bron?: string;
24710
25685
  config?: import("../integrations/supabase/types").Json;
24711
25686
  created_at?: string;
24712
25687
  created_by?: string | null;
@@ -24724,12 +25699,14 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
24724
25699
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
24725
25700
  page_settings?: import("../integrations/supabase/types").Json;
24726
25701
  papierformaat?: string;
25702
+ systeem?: boolean;
24727
25703
  thumbnail_url?: string | null;
24728
25704
  updated_at?: string;
24729
25705
  };
24730
25706
  Update: {
24731
25707
  actief?: boolean;
24732
25708
  breedte_mm?: number;
25709
+ bron?: string;
24733
25710
  config?: import("../integrations/supabase/types").Json;
24734
25711
  created_at?: string;
24735
25712
  created_by?: string | null;
@@ -24747,11 +25724,48 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
24747
25724
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
24748
25725
  page_settings?: import("../integrations/supabase/types").Json;
24749
25726
  papierformaat?: string;
25727
+ systeem?: boolean;
24750
25728
  thumbnail_url?: string | null;
24751
25729
  updated_at?: string;
24752
25730
  };
24753
25731
  Relationships: [];
24754
25732
  };
25733
+ document_werkplek_printers: {
25734
+ Row: {
25735
+ created_at: string;
25736
+ documenttype: string;
25737
+ id: string;
25738
+ papierformaat: string | null;
25739
+ printer_id: string | null;
25740
+ updated_at: string;
25741
+ werkplek: string;
25742
+ };
25743
+ Insert: {
25744
+ created_at?: string;
25745
+ documenttype: string;
25746
+ id?: string;
25747
+ papierformaat?: string | null;
25748
+ printer_id?: string | null;
25749
+ updated_at?: string;
25750
+ werkplek: string;
25751
+ };
25752
+ Update: {
25753
+ created_at?: string;
25754
+ documenttype?: string;
25755
+ id?: string;
25756
+ papierformaat?: string | null;
25757
+ printer_id?: string | null;
25758
+ updated_at?: string;
25759
+ werkplek?: string;
25760
+ };
25761
+ Relationships: [{
25762
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
25763
+ columns: ["printer_id"];
25764
+ isOneToOne: false;
25765
+ referencedRelation: "printers";
25766
+ referencedColumns: ["id"];
25767
+ }];
25768
+ };
24755
25769
  email_auth_connections: {
24756
25770
  Row: {
24757
25771
  access_token_encrypted: string | null;
@@ -28997,8 +30011,63 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
28997
30011
  };
28998
30012
  Relationships: [];
28999
30013
  };
30014
+ invoice_items: {
30015
+ Row: {
30016
+ created_at: string;
30017
+ description: string;
30018
+ id: string;
30019
+ invoice_id: string;
30020
+ kind: string;
30021
+ quantity: number;
30022
+ sort_order: number;
30023
+ source_line_ref: string | null;
30024
+ total_cents: number;
30025
+ unit: string;
30026
+ unit_price_cents: number;
30027
+ };
30028
+ Insert: {
30029
+ created_at?: string;
30030
+ description?: string;
30031
+ id?: string;
30032
+ invoice_id: string;
30033
+ kind?: string;
30034
+ quantity?: number;
30035
+ sort_order?: number;
30036
+ source_line_ref?: string | null;
30037
+ total_cents?: number;
30038
+ unit?: string;
30039
+ unit_price_cents?: number;
30040
+ };
30041
+ Update: {
30042
+ created_at?: string;
30043
+ description?: string;
30044
+ id?: string;
30045
+ invoice_id?: string;
30046
+ kind?: string;
30047
+ quantity?: number;
30048
+ sort_order?: number;
30049
+ source_line_ref?: string | null;
30050
+ total_cents?: number;
30051
+ unit?: string;
30052
+ unit_price_cents?: number;
30053
+ };
30054
+ Relationships: [{
30055
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30056
+ columns: ["invoice_id"];
30057
+ isOneToOne: false;
30058
+ referencedRelation: "invoices";
30059
+ referencedColumns: ["id"];
30060
+ }, {
30061
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30062
+ columns: ["invoice_id"];
30063
+ isOneToOne: false;
30064
+ referencedRelation: "uren_facturen";
30065
+ referencedColumns: ["id"];
30066
+ }];
30067
+ };
29000
30068
  invoice_post_idempotency: {
29001
30069
  Row: {
30070
+ administration_code: string;
29002
30071
  client_request_id: string;
29003
30072
  completed_at: string | null;
29004
30073
  created_at: string;
@@ -29008,6 +30077,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29008
30077
  user_id: string;
29009
30078
  };
29010
30079
  Insert: {
30080
+ administration_code?: string;
29011
30081
  client_request_id: string;
29012
30082
  completed_at?: string | null;
29013
30083
  created_at?: string;
@@ -29017,6 +30087,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29017
30087
  user_id: string;
29018
30088
  };
29019
30089
  Update: {
30090
+ administration_code?: string;
29020
30091
  client_request_id?: string;
29021
30092
  completed_at?: string | null;
29022
30093
  created_at?: string;
@@ -29222,6 +30293,75 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29222
30293
  };
29223
30294
  Relationships: [];
29224
30295
  };
30296
+ invoices: {
30297
+ Row: {
30298
+ created_at: string;
30299
+ created_by: string | null;
30300
+ customer_id: string | null;
30301
+ customer_name: string | null;
30302
+ due_date: string | null;
30303
+ id: string;
30304
+ invoice_date: string;
30305
+ invoice_number: string | null;
30306
+ note: string | null;
30307
+ source_number: string | null;
30308
+ source_ref: string | null;
30309
+ source_type: string;
30310
+ status: string;
30311
+ subtotal_cents: number;
30312
+ total_cents: number;
30313
+ updated_at: string;
30314
+ vat_cents: number;
30315
+ vat_rate: number;
30316
+ };
30317
+ Insert: {
30318
+ created_at?: string;
30319
+ created_by?: string | null;
30320
+ customer_id?: string | null;
30321
+ customer_name?: string | null;
30322
+ due_date?: string | null;
30323
+ id?: string;
30324
+ invoice_date?: string;
30325
+ invoice_number?: string | null;
30326
+ note?: string | null;
30327
+ source_number?: string | null;
30328
+ source_ref?: string | null;
30329
+ source_type?: string;
30330
+ status?: string;
30331
+ subtotal_cents?: number;
30332
+ total_cents?: number;
30333
+ updated_at?: string;
30334
+ vat_cents?: number;
30335
+ vat_rate?: number;
30336
+ };
30337
+ Update: {
30338
+ created_at?: string;
30339
+ created_by?: string | null;
30340
+ customer_id?: string | null;
30341
+ customer_name?: string | null;
30342
+ due_date?: string | null;
30343
+ id?: string;
30344
+ invoice_date?: string;
30345
+ invoice_number?: string | null;
30346
+ note?: string | null;
30347
+ source_number?: string | null;
30348
+ source_ref?: string | null;
30349
+ source_type?: string;
30350
+ status?: string;
30351
+ subtotal_cents?: number;
30352
+ total_cents?: number;
30353
+ updated_at?: string;
30354
+ vat_cents?: number;
30355
+ vat_rate?: number;
30356
+ };
30357
+ Relationships: [{
30358
+ foreignKeyName: "invoices_customer_id_fkey";
30359
+ columns: ["customer_id"];
30360
+ isOneToOne: false;
30361
+ referencedRelation: "itk_customers";
30362
+ referencedColumns: ["id"];
30363
+ }];
30364
+ };
29225
30365
  itk_contact_persons: {
29226
30366
  Row: {
29227
30367
  created_at: string;
@@ -29417,6 +30557,258 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29417
30557
  };
29418
30558
  Relationships: [];
29419
30559
  };
30560
+ itk_offerte_events: {
30561
+ Row: {
30562
+ created_at: string;
30563
+ event_type: string;
30564
+ id: string;
30565
+ metadata: import("../integrations/supabase/types").Json;
30566
+ offerte_id: string;
30567
+ omschrijving: string | null;
30568
+ user_id: string | null;
30569
+ };
30570
+ Insert: {
30571
+ created_at?: string;
30572
+ event_type: string;
30573
+ id?: string;
30574
+ metadata?: import("../integrations/supabase/types").Json;
30575
+ offerte_id: string;
30576
+ omschrijving?: string | null;
30577
+ user_id?: string | null;
30578
+ };
30579
+ Update: {
30580
+ created_at?: string;
30581
+ event_type?: string;
30582
+ id?: string;
30583
+ metadata?: import("../integrations/supabase/types").Json;
30584
+ offerte_id?: string;
30585
+ omschrijving?: string | null;
30586
+ user_id?: string | null;
30587
+ };
30588
+ Relationships: [{
30589
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
30590
+ columns: ["offerte_id"];
30591
+ isOneToOne: false;
30592
+ referencedRelation: "itk_offertes";
30593
+ referencedColumns: ["id"];
30594
+ }];
30595
+ };
30596
+ itk_offerte_regels: {
30597
+ Row: {
30598
+ created_at: string;
30599
+ id: string;
30600
+ line_total_cents: number;
30601
+ offerte_id: string;
30602
+ omschrijving: string;
30603
+ package_id: string | null;
30604
+ quantity: number;
30605
+ sort_order: number;
30606
+ source: string;
30607
+ unit_price_cents: number;
30608
+ updated_at: string;
30609
+ };
30610
+ Insert: {
30611
+ created_at?: string;
30612
+ id?: string;
30613
+ line_total_cents?: number;
30614
+ offerte_id: string;
30615
+ omschrijving?: string;
30616
+ package_id?: string | null;
30617
+ quantity?: number;
30618
+ sort_order?: number;
30619
+ source?: string;
30620
+ unit_price_cents?: number;
30621
+ updated_at?: string;
30622
+ };
30623
+ Update: {
30624
+ created_at?: string;
30625
+ id?: string;
30626
+ line_total_cents?: number;
30627
+ offerte_id?: string;
30628
+ omschrijving?: string;
30629
+ package_id?: string | null;
30630
+ quantity?: number;
30631
+ sort_order?: number;
30632
+ source?: string;
30633
+ unit_price_cents?: number;
30634
+ updated_at?: string;
30635
+ };
30636
+ Relationships: [{
30637
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
30638
+ columns: ["offerte_id"];
30639
+ isOneToOne: false;
30640
+ referencedRelation: "itk_offertes";
30641
+ referencedColumns: ["id"];
30642
+ }, {
30643
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
30644
+ columns: ["package_id"];
30645
+ isOneToOne: false;
30646
+ referencedRelation: "werkbon_packages";
30647
+ referencedColumns: ["id"];
30648
+ }];
30649
+ };
30650
+ itk_offerte_settings: {
30651
+ Row: {
30652
+ auto_convert_binnen_mandaat: boolean;
30653
+ created_at: string;
30654
+ default_geldigheid_dagen: number;
30655
+ default_vat_rate: number;
30656
+ id: string;
30657
+ singleton: boolean;
30658
+ updated_at: string;
30659
+ };
30660
+ Insert: {
30661
+ auto_convert_binnen_mandaat?: boolean;
30662
+ created_at?: string;
30663
+ default_geldigheid_dagen?: number;
30664
+ default_vat_rate?: number;
30665
+ id?: string;
30666
+ singleton?: boolean;
30667
+ updated_at?: string;
30668
+ };
30669
+ Update: {
30670
+ auto_convert_binnen_mandaat?: boolean;
30671
+ created_at?: string;
30672
+ default_geldigheid_dagen?: number;
30673
+ default_vat_rate?: number;
30674
+ id?: string;
30675
+ singleton?: boolean;
30676
+ updated_at?: string;
30677
+ };
30678
+ Relationships: [];
30679
+ };
30680
+ itk_offertes: {
30681
+ Row: {
30682
+ ai_generated: boolean;
30683
+ approved_at: string | null;
30684
+ binnen_mandaat: boolean;
30685
+ contact_id: string | null;
30686
+ converted_at: string | null;
30687
+ created_at: string;
30688
+ created_by: string | null;
30689
+ customer_id: string | null;
30690
+ follow_up_werkbon_id: string | null;
30691
+ id: string;
30692
+ jaar: number;
30693
+ mandaat_restant_cents: number;
30694
+ notities: string | null;
30695
+ offerte_number: string | null;
30696
+ omschrijving: string;
30697
+ rejected_at: string | null;
30698
+ sent_at: string | null;
30699
+ source_number: string | null;
30700
+ source_ref: string | null;
30701
+ source_type: string;
30702
+ status: string;
30703
+ subtotal_cents: number;
30704
+ total_cents: number;
30705
+ updated_at: string;
30706
+ valid_until: string | null;
30707
+ vat_cents: number;
30708
+ vat_rate: number;
30709
+ viewed_at: string | null;
30710
+ volgnummer: number | null;
30711
+ werkbon_id: string | null;
30712
+ work_location_id: string | null;
30713
+ };
30714
+ Insert: {
30715
+ ai_generated?: boolean;
30716
+ approved_at?: string | null;
30717
+ binnen_mandaat?: boolean;
30718
+ contact_id?: string | null;
30719
+ converted_at?: string | null;
30720
+ created_at?: string;
30721
+ created_by?: string | null;
30722
+ customer_id?: string | null;
30723
+ follow_up_werkbon_id?: string | null;
30724
+ id?: string;
30725
+ jaar?: number;
30726
+ mandaat_restant_cents?: number;
30727
+ notities?: string | null;
30728
+ offerte_number?: string | null;
30729
+ omschrijving?: string;
30730
+ rejected_at?: string | null;
30731
+ sent_at?: string | null;
30732
+ source_number?: string | null;
30733
+ source_ref?: string | null;
30734
+ source_type?: string;
30735
+ status?: string;
30736
+ subtotal_cents?: number;
30737
+ total_cents?: number;
30738
+ updated_at?: string;
30739
+ valid_until?: string | null;
30740
+ vat_cents?: number;
30741
+ vat_rate?: number;
30742
+ viewed_at?: string | null;
30743
+ volgnummer?: number | null;
30744
+ werkbon_id?: string | null;
30745
+ work_location_id?: string | null;
30746
+ };
30747
+ Update: {
30748
+ ai_generated?: boolean;
30749
+ approved_at?: string | null;
30750
+ binnen_mandaat?: boolean;
30751
+ contact_id?: string | null;
30752
+ converted_at?: string | null;
30753
+ created_at?: string;
30754
+ created_by?: string | null;
30755
+ customer_id?: string | null;
30756
+ follow_up_werkbon_id?: string | null;
30757
+ id?: string;
30758
+ jaar?: number;
30759
+ mandaat_restant_cents?: number;
30760
+ notities?: string | null;
30761
+ offerte_number?: string | null;
30762
+ omschrijving?: string;
30763
+ rejected_at?: string | null;
30764
+ sent_at?: string | null;
30765
+ source_number?: string | null;
30766
+ source_ref?: string | null;
30767
+ source_type?: string;
30768
+ status?: string;
30769
+ subtotal_cents?: number;
30770
+ total_cents?: number;
30771
+ updated_at?: string;
30772
+ valid_until?: string | null;
30773
+ vat_cents?: number;
30774
+ vat_rate?: number;
30775
+ viewed_at?: string | null;
30776
+ volgnummer?: number | null;
30777
+ werkbon_id?: string | null;
30778
+ work_location_id?: string | null;
30779
+ };
30780
+ Relationships: [{
30781
+ foreignKeyName: "itk_offertes_contact_id_fkey";
30782
+ columns: ["contact_id"];
30783
+ isOneToOne: false;
30784
+ referencedRelation: "itk_contact_persons";
30785
+ referencedColumns: ["id"];
30786
+ }, {
30787
+ foreignKeyName: "itk_offertes_customer_id_fkey";
30788
+ columns: ["customer_id"];
30789
+ isOneToOne: false;
30790
+ referencedRelation: "itk_customers";
30791
+ referencedColumns: ["id"];
30792
+ }, {
30793
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
30794
+ columns: ["follow_up_werkbon_id"];
30795
+ isOneToOne: false;
30796
+ referencedRelation: "werkbonnen";
30797
+ referencedColumns: ["id"];
30798
+ }, {
30799
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
30800
+ columns: ["werkbon_id"];
30801
+ isOneToOne: false;
30802
+ referencedRelation: "werkbonnen";
30803
+ referencedColumns: ["id"];
30804
+ }, {
30805
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
30806
+ columns: ["work_location_id"];
30807
+ isOneToOne: false;
30808
+ referencedRelation: "itk_work_locations";
30809
+ referencedColumns: ["id"];
30810
+ }];
30811
+ };
29420
30812
  itk_work_locations: {
29421
30813
  Row: {
29422
30814
  city: string | null;
@@ -30317,6 +31709,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
30317
31709
  id: string;
30318
31710
  last_error: string | null;
30319
31711
  last_error_at: string | null;
31712
+ last_error_code: string | null;
31713
+ last_gateway_status: number | null;
31714
+ last_response: import("../integrations/supabase/types").Json | null;
30320
31715
  last_sent_hash: string | null;
30321
31716
  locked_by: string | null;
30322
31717
  locked_until: string | null;
@@ -30337,6 +31732,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
30337
31732
  id?: string;
30338
31733
  last_error?: string | null;
30339
31734
  last_error_at?: string | null;
31735
+ last_error_code?: string | null;
31736
+ last_gateway_status?: number | null;
31737
+ last_response?: import("../integrations/supabase/types").Json | null;
30340
31738
  last_sent_hash?: string | null;
30341
31739
  locked_by?: string | null;
30342
31740
  locked_until?: string | null;
@@ -30357,6 +31755,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
30357
31755
  id?: string;
30358
31756
  last_error?: string | null;
30359
31757
  last_error_at?: string | null;
31758
+ last_error_code?: string | null;
31759
+ last_gateway_status?: number | null;
31760
+ last_response?: import("../integrations/supabase/types").Json | null;
30360
31761
  last_sent_hash?: string | null;
30361
31762
  locked_by?: string | null;
30362
31763
  locked_until?: string | null;
@@ -31790,6 +33191,63 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
31790
33191
  referencedColumns: ["id"];
31791
33192
  }];
31792
33193
  };
33194
+ medewerker_details: {
33195
+ Row: {
33196
+ color: string | null;
33197
+ created_at: string;
33198
+ hours_fri: number | null;
33199
+ hours_mon: number | null;
33200
+ hours_thu: number | null;
33201
+ hours_tue: number | null;
33202
+ hours_wed: number | null;
33203
+ id: string;
33204
+ is_active: boolean;
33205
+ leave_balance_hours: number;
33206
+ persnr: string | null;
33207
+ phone: string | null;
33208
+ profile_id: string;
33209
+ updated_at: string;
33210
+ };
33211
+ Insert: {
33212
+ color?: string | null;
33213
+ created_at?: string;
33214
+ hours_fri?: number | null;
33215
+ hours_mon?: number | null;
33216
+ hours_thu?: number | null;
33217
+ hours_tue?: number | null;
33218
+ hours_wed?: number | null;
33219
+ id?: string;
33220
+ is_active?: boolean;
33221
+ leave_balance_hours?: number;
33222
+ persnr?: string | null;
33223
+ phone?: string | null;
33224
+ profile_id: string;
33225
+ updated_at?: string;
33226
+ };
33227
+ Update: {
33228
+ color?: string | null;
33229
+ created_at?: string;
33230
+ hours_fri?: number | null;
33231
+ hours_mon?: number | null;
33232
+ hours_thu?: number | null;
33233
+ hours_tue?: number | null;
33234
+ hours_wed?: number | null;
33235
+ id?: string;
33236
+ is_active?: boolean;
33237
+ leave_balance_hours?: number;
33238
+ persnr?: string | null;
33239
+ phone?: string | null;
33240
+ profile_id?: string;
33241
+ updated_at?: string;
33242
+ };
33243
+ Relationships: [{
33244
+ foreignKeyName: "medewerker_details_profile_id_fkey";
33245
+ columns: ["profile_id"];
33246
+ isOneToOne: true;
33247
+ referencedRelation: "profiles";
33248
+ referencedColumns: ["id"];
33249
+ }];
33250
+ };
31793
33251
  module_features: {
31794
33252
  Row: {
31795
33253
  created_at: string;
@@ -31853,6 +33311,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
31853
33311
  enforce: boolean;
31854
33312
  is_active: boolean;
31855
33313
  last_seen_at: string;
33314
+ missing_count: number;
31856
33315
  module_id: string;
31857
33316
  name: string;
31858
33317
  shell_id: string | null;
@@ -31863,6 +33322,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
31863
33322
  enforce?: boolean;
31864
33323
  is_active?: boolean;
31865
33324
  last_seen_at?: string;
33325
+ missing_count?: number;
31866
33326
  module_id: string;
31867
33327
  name: string;
31868
33328
  shell_id?: string | null;
@@ -31873,6 +33333,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
31873
33333
  enforce?: boolean;
31874
33334
  is_active?: boolean;
31875
33335
  last_seen_at?: string;
33336
+ missing_count?: number;
31876
33337
  module_id?: string;
31877
33338
  name?: string;
31878
33339
  shell_id?: string | null;
@@ -32872,6 +34333,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
32872
34333
  };
32873
34334
  order_invoice_links: {
32874
34335
  Row: {
34336
+ administration_code: string | null;
32875
34337
  attempts: number;
32876
34338
  created_at: string;
32877
34339
  error_message: string | null;
@@ -32884,6 +34346,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
32884
34346
  updated_at: string;
32885
34347
  };
32886
34348
  Insert: {
34349
+ administration_code?: string | null;
32887
34350
  attempts?: number;
32888
34351
  created_at?: string;
32889
34352
  error_message?: string | null;
@@ -32896,6 +34359,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
32896
34359
  updated_at?: string;
32897
34360
  };
32898
34361
  Update: {
34362
+ administration_code?: string | null;
32899
34363
  attempts?: number;
32900
34364
  created_at?: string;
32901
34365
  error_message?: string | null;
@@ -33083,6 +34547,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
33083
34547
  orders: {
33084
34548
  Row: {
33085
34549
  buffer_id: string | null;
34550
+ cancel_reason: string | null;
34551
+ cancelled_at: string | null;
33086
34552
  created_at: string;
33087
34553
  custom_fields: import("../integrations/supabase/types").Json;
33088
34554
  customer_id: string | null;
@@ -33105,6 +34571,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
33105
34571
  };
33106
34572
  Insert: {
33107
34573
  buffer_id?: string | null;
34574
+ cancel_reason?: string | null;
34575
+ cancelled_at?: string | null;
33108
34576
  created_at?: string;
33109
34577
  custom_fields?: import("../integrations/supabase/types").Json;
33110
34578
  customer_id?: string | null;
@@ -33127,6 +34595,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
33127
34595
  };
33128
34596
  Update: {
33129
34597
  buffer_id?: string | null;
34598
+ cancel_reason?: string | null;
34599
+ cancelled_at?: string | null;
33130
34600
  created_at?: string;
33131
34601
  custom_fields?: import("../integrations/supabase/types").Json;
33132
34602
  customer_id?: string | null;
@@ -34055,6 +35525,27 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
34055
35525
  referencedColumns: ["id"];
34056
35526
  }];
34057
35527
  };
35528
+ pick_sync_state: {
35529
+ Row: {
35530
+ id: boolean;
35531
+ last_cleanup_at: string | null;
35532
+ last_sync_at: string | null;
35533
+ updated_at: string;
35534
+ };
35535
+ Insert: {
35536
+ id?: boolean;
35537
+ last_cleanup_at?: string | null;
35538
+ last_sync_at?: string | null;
35539
+ updated_at?: string;
35540
+ };
35541
+ Update: {
35542
+ id?: boolean;
35543
+ last_cleanup_at?: string | null;
35544
+ last_sync_at?: string | null;
35545
+ updated_at?: string;
35546
+ };
35547
+ Relationships: [];
35548
+ };
34058
35549
  pick_task_document_types: {
34059
35550
  Row: {
34060
35551
  created_at: string;
@@ -34337,6 +35828,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
34337
35828
  gebruiker_id: string | null;
34338
35829
  gebruiker_naam: string;
34339
35830
  gestart_op: string | null;
35831
+ herkomst: string | null;
34340
35832
  id: string;
34341
35833
  idempotentie_sleutel: string | null;
34342
35834
  is_herprint: boolean;
@@ -34366,6 +35858,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
34366
35858
  gebruiker_id?: string | null;
34367
35859
  gebruiker_naam?: string;
34368
35860
  gestart_op?: string | null;
35861
+ herkomst?: string | null;
34369
35862
  id?: string;
34370
35863
  idempotentie_sleutel?: string | null;
34371
35864
  is_herprint?: boolean;
@@ -34395,6 +35888,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
34395
35888
  gebruiker_id?: string | null;
34396
35889
  gebruiker_naam?: string;
34397
35890
  gestart_op?: string | null;
35891
+ herkomst?: string | null;
34398
35892
  id?: string;
34399
35893
  idempotentie_sleutel?: string | null;
34400
35894
  is_herprint?: boolean;
@@ -35189,6 +36683,66 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
35189
36683
  };
35190
36684
  Relationships: [];
35191
36685
  };
36686
+ profile_modules: {
36687
+ Row: {
36688
+ created_at: string;
36689
+ id: string;
36690
+ module_id: string;
36691
+ profile_id: string;
36692
+ };
36693
+ Insert: {
36694
+ created_at?: string;
36695
+ id?: string;
36696
+ module_id: string;
36697
+ profile_id: string;
36698
+ };
36699
+ Update: {
36700
+ created_at?: string;
36701
+ id?: string;
36702
+ module_id?: string;
36703
+ profile_id?: string;
36704
+ };
36705
+ Relationships: [{
36706
+ foreignKeyName: "profile_modules_profile_id_fkey";
36707
+ columns: ["profile_id"];
36708
+ isOneToOne: false;
36709
+ referencedRelation: "profiles_org";
36710
+ referencedColumns: ["id"];
36711
+ }];
36712
+ };
36713
+ profile_roles: {
36714
+ Row: {
36715
+ created_at: string;
36716
+ id: string;
36717
+ profile_id: string;
36718
+ role_id: string;
36719
+ };
36720
+ Insert: {
36721
+ created_at?: string;
36722
+ id?: string;
36723
+ profile_id: string;
36724
+ role_id: string;
36725
+ };
36726
+ Update: {
36727
+ created_at?: string;
36728
+ id?: string;
36729
+ profile_id?: string;
36730
+ role_id?: string;
36731
+ };
36732
+ Relationships: [{
36733
+ foreignKeyName: "profile_roles_profile_id_fkey";
36734
+ columns: ["profile_id"];
36735
+ isOneToOne: false;
36736
+ referencedRelation: "profiles_org";
36737
+ referencedColumns: ["id"];
36738
+ }, {
36739
+ foreignKeyName: "profile_roles_role_id_fkey";
36740
+ columns: ["role_id"];
36741
+ isOneToOne: false;
36742
+ referencedRelation: "roles";
36743
+ referencedColumns: ["id"];
36744
+ }];
36745
+ };
35192
36746
  profiles: {
35193
36747
  Row: {
35194
36748
  address: string | null;
@@ -35234,6 +36788,39 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
35234
36788
  referencedColumns: ["id"];
35235
36789
  }];
35236
36790
  };
36791
+ profiles_org: {
36792
+ Row: {
36793
+ created_at: string;
36794
+ id: string;
36795
+ is_default: boolean;
36796
+ name: string;
36797
+ tenant_id: string | null;
36798
+ updated_at: string;
36799
+ };
36800
+ Insert: {
36801
+ created_at?: string;
36802
+ id?: string;
36803
+ is_default?: boolean;
36804
+ name: string;
36805
+ tenant_id?: string | null;
36806
+ updated_at?: string;
36807
+ };
36808
+ Update: {
36809
+ created_at?: string;
36810
+ id?: string;
36811
+ is_default?: boolean;
36812
+ name?: string;
36813
+ tenant_id?: string | null;
36814
+ updated_at?: string;
36815
+ };
36816
+ Relationships: [{
36817
+ foreignKeyName: "profiles_org_tenant_id_fkey";
36818
+ columns: ["tenant_id"];
36819
+ isOneToOne: false;
36820
+ referencedRelation: "tenants";
36821
+ referencedColumns: ["id"];
36822
+ }];
36823
+ };
35237
36824
  projects: {
35238
36825
  Row: {
35239
36826
  contact_name: string | null;
@@ -36408,6 +37995,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36408
37995
  type: string;
36409
37996
  updated_at: string;
36410
37997
  vereist_medewerker: boolean;
37998
+ werkplek: string | null;
36411
37999
  };
36412
38000
  Insert: {
36413
38001
  actief?: boolean;
@@ -36421,6 +38009,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36421
38009
  type?: string;
36422
38010
  updated_at?: string;
36423
38011
  vereist_medewerker?: boolean;
38012
+ werkplek?: string | null;
36424
38013
  };
36425
38014
  Update: {
36426
38015
  actief?: boolean;
@@ -36434,9 +38023,46 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36434
38023
  type?: string;
36435
38024
  updated_at?: string;
36436
38025
  vereist_medewerker?: boolean;
38026
+ werkplek?: string | null;
36437
38027
  };
36438
38028
  Relationships: [];
36439
38029
  };
38030
+ sick_periods: {
38031
+ Row: {
38032
+ created_at: string;
38033
+ employee_id: string;
38034
+ end_date: string | null;
38035
+ id: string;
38036
+ notes: string | null;
38037
+ start_date: string;
38038
+ updated_at: string;
38039
+ };
38040
+ Insert: {
38041
+ created_at?: string;
38042
+ employee_id: string;
38043
+ end_date?: string | null;
38044
+ id?: string;
38045
+ notes?: string | null;
38046
+ start_date: string;
38047
+ updated_at?: string;
38048
+ };
38049
+ Update: {
38050
+ created_at?: string;
38051
+ employee_id?: string;
38052
+ end_date?: string | null;
38053
+ id?: string;
38054
+ notes?: string | null;
38055
+ start_date?: string;
38056
+ updated_at?: string;
38057
+ };
38058
+ Relationships: [{
38059
+ foreignKeyName: "sick_periods_employee_id_fkey";
38060
+ columns: ["employee_id"];
38061
+ isOneToOne: false;
38062
+ referencedRelation: "profiles";
38063
+ referencedColumns: ["id"];
38064
+ }];
38065
+ };
36440
38066
  sidebar_config: {
36441
38067
  Row: {
36442
38068
  id: string;
@@ -37267,12 +38893,16 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37267
38893
  company_name: string | null;
37268
38894
  connected_at: string | null;
37269
38895
  created_at: string;
38896
+ disconnected_at: string | null;
37270
38897
  environment: string;
37271
38898
  id: string;
38899
+ initial_sync_completed_at: string | null;
38900
+ initial_sync_started_at: string | null;
37272
38901
  is_active: boolean;
37273
38902
  label: string | null;
37274
38903
  office_code: string | null;
37275
38904
  redirect_uri: string | null;
38905
+ superseded_at: string | null;
37276
38906
  updated_at: string;
37277
38907
  user_id: string;
37278
38908
  };
@@ -37283,12 +38913,16 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37283
38913
  company_name?: string | null;
37284
38914
  connected_at?: string | null;
37285
38915
  created_at?: string;
38916
+ disconnected_at?: string | null;
37286
38917
  environment: string;
37287
38918
  id?: string;
38919
+ initial_sync_completed_at?: string | null;
38920
+ initial_sync_started_at?: string | null;
37288
38921
  is_active?: boolean;
37289
38922
  label?: string | null;
37290
38923
  office_code?: string | null;
37291
38924
  redirect_uri?: string | null;
38925
+ superseded_at?: string | null;
37292
38926
  updated_at?: string;
37293
38927
  user_id: string;
37294
38928
  };
@@ -37299,12 +38933,16 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37299
38933
  company_name?: string | null;
37300
38934
  connected_at?: string | null;
37301
38935
  created_at?: string;
38936
+ disconnected_at?: string | null;
37302
38937
  environment?: string;
37303
38938
  id?: string;
38939
+ initial_sync_completed_at?: string | null;
38940
+ initial_sync_started_at?: string | null;
37304
38941
  is_active?: boolean;
37305
38942
  label?: string | null;
37306
38943
  office_code?: string | null;
37307
38944
  redirect_uri?: string | null;
38945
+ superseded_at?: string | null;
37308
38946
  updated_at?: string;
37309
38947
  user_id?: string;
37310
38948
  };
@@ -37364,6 +39002,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37364
39002
  twinfield_customers: {
37365
39003
  Row: {
37366
39004
  address: string | null;
39005
+ administration_code: string;
37367
39006
  city: string | null;
37368
39007
  country: string | null;
37369
39008
  created_at: string;
@@ -37383,6 +39022,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37383
39022
  };
37384
39023
  Insert: {
37385
39024
  address?: string | null;
39025
+ administration_code?: string;
37386
39026
  city?: string | null;
37387
39027
  country?: string | null;
37388
39028
  created_at?: string;
@@ -37402,6 +39042,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37402
39042
  };
37403
39043
  Update: {
37404
39044
  address?: string | null;
39045
+ administration_code?: string;
37405
39046
  city?: string | null;
37406
39047
  country?: string | null;
37407
39048
  created_at?: string;
@@ -37615,7 +39256,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37615
39256
  };
37616
39257
  twinfield_invoice_settings: {
37617
39258
  Row: {
39259
+ administration_code: string | null;
37618
39260
  auto_invoice_enabled: boolean;
39261
+ auto_invoice_start_date: string | null;
37619
39262
  auto_invoice_trigger_statuses: string[];
37620
39263
  created_at: string;
37621
39264
  debtor_gl_account: string;
@@ -37629,15 +39272,19 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37629
39272
  invoice_enabled_fo: boolean;
37630
39273
  invoice_enabled_ho: boolean;
37631
39274
  invoice_enabled_mo: boolean;
39275
+ needs_review: boolean;
37632
39276
  payment_gl_account: string;
37633
39277
  payment_journal_code: string;
39278
+ settings_confirmed_at: string | null;
37634
39279
  updated_at: string;
37635
39280
  user_id: string;
37636
39281
  vat_code_eu_reverse: string | null;
37637
39282
  vat_code_export: string | null;
37638
39283
  };
37639
39284
  Insert: {
39285
+ administration_code?: string | null;
37640
39286
  auto_invoice_enabled?: boolean;
39287
+ auto_invoice_start_date?: string | null;
37641
39288
  auto_invoice_trigger_statuses?: string[];
37642
39289
  created_at?: string;
37643
39290
  debtor_gl_account?: string;
@@ -37651,15 +39298,19 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37651
39298
  invoice_enabled_fo?: boolean;
37652
39299
  invoice_enabled_ho?: boolean;
37653
39300
  invoice_enabled_mo?: boolean;
39301
+ needs_review?: boolean;
37654
39302
  payment_gl_account?: string;
37655
39303
  payment_journal_code?: string;
39304
+ settings_confirmed_at?: string | null;
37656
39305
  updated_at?: string;
37657
39306
  user_id: string;
37658
39307
  vat_code_eu_reverse?: string | null;
37659
39308
  vat_code_export?: string | null;
37660
39309
  };
37661
39310
  Update: {
39311
+ administration_code?: string | null;
37662
39312
  auto_invoice_enabled?: boolean;
39313
+ auto_invoice_start_date?: string | null;
37663
39314
  auto_invoice_trigger_statuses?: string[];
37664
39315
  created_at?: string;
37665
39316
  debtor_gl_account?: string;
@@ -37673,8 +39324,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37673
39324
  invoice_enabled_fo?: boolean;
37674
39325
  invoice_enabled_ho?: boolean;
37675
39326
  invoice_enabled_mo?: boolean;
39327
+ needs_review?: boolean;
37676
39328
  payment_gl_account?: string;
37677
39329
  payment_journal_code?: string;
39330
+ settings_confirmed_at?: string | null;
37678
39331
  updated_at?: string;
37679
39332
  user_id?: string;
37680
39333
  vat_code_eu_reverse?: string | null;
@@ -38279,114 +39932,6 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
38279
39932
  };
38280
39933
  Relationships: [];
38281
39934
  };
38282
- uren_facturen: {
38283
- Row: {
38284
- created_at: string;
38285
- created_by: string | null;
38286
- customer_id: string | null;
38287
- customer_name: string | null;
38288
- id: string;
38289
- invoice_number: string | null;
38290
- note: string | null;
38291
- status: string;
38292
- total_excl_cents: number;
38293
- total_incl_cents: number;
38294
- updated_at: string;
38295
- vat_cents: number;
38296
- vat_percentage: number;
38297
- werkbon_id: string | null;
38298
- };
38299
- Insert: {
38300
- created_at?: string;
38301
- created_by?: string | null;
38302
- customer_id?: string | null;
38303
- customer_name?: string | null;
38304
- id?: string;
38305
- invoice_number?: string | null;
38306
- note?: string | null;
38307
- status?: string;
38308
- total_excl_cents?: number;
38309
- total_incl_cents?: number;
38310
- updated_at?: string;
38311
- vat_cents?: number;
38312
- vat_percentage?: number;
38313
- werkbon_id?: string | null;
38314
- };
38315
- Update: {
38316
- created_at?: string;
38317
- created_by?: string | null;
38318
- customer_id?: string | null;
38319
- customer_name?: string | null;
38320
- id?: string;
38321
- invoice_number?: string | null;
38322
- note?: string | null;
38323
- status?: string;
38324
- total_excl_cents?: number;
38325
- total_incl_cents?: number;
38326
- updated_at?: string;
38327
- vat_cents?: number;
38328
- vat_percentage?: number;
38329
- werkbon_id?: string | null;
38330
- };
38331
- Relationships: [{
38332
- foreignKeyName: "uren_facturen_customer_id_fkey";
38333
- columns: ["customer_id"];
38334
- isOneToOne: false;
38335
- referencedRelation: "itk_customers";
38336
- referencedColumns: ["id"];
38337
- }, {
38338
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
38339
- columns: ["werkbon_id"];
38340
- isOneToOne: true;
38341
- referencedRelation: "werkbonnen";
38342
- referencedColumns: ["id"];
38343
- }];
38344
- };
38345
- uren_factuur_regels: {
38346
- Row: {
38347
- created_at: string;
38348
- description: string;
38349
- factuur_id: string;
38350
- id: string;
38351
- kind: string | null;
38352
- quantity: number;
38353
- sort_order: number;
38354
- total_cents: number;
38355
- unit: string;
38356
- unit_price_cents: number;
38357
- };
38358
- Insert: {
38359
- created_at?: string;
38360
- description: string;
38361
- factuur_id: string;
38362
- id?: string;
38363
- kind?: string | null;
38364
- quantity?: number;
38365
- sort_order?: number;
38366
- total_cents?: number;
38367
- unit?: string;
38368
- unit_price_cents?: number;
38369
- };
38370
- Update: {
38371
- created_at?: string;
38372
- description?: string;
38373
- factuur_id?: string;
38374
- id?: string;
38375
- kind?: string | null;
38376
- quantity?: number;
38377
- sort_order?: number;
38378
- total_cents?: number;
38379
- unit?: string;
38380
- unit_price_cents?: number;
38381
- };
38382
- Relationships: [{
38383
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
38384
- columns: ["factuur_id"];
38385
- isOneToOne: false;
38386
- referencedRelation: "uren_facturen";
38387
- referencedColumns: ["id"];
38388
- }];
38389
- };
38390
39935
  uren_offerte_regels: {
38391
39936
  Row: {
38392
39937
  created_at: string;
@@ -40226,6 +41771,114 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
40226
41771
  };
40227
41772
  Relationships: [];
40228
41773
  };
41774
+ uren_facturen: {
41775
+ Row: {
41776
+ created_at: string | null;
41777
+ created_by: string | null;
41778
+ customer_id: string | null;
41779
+ customer_name: string | null;
41780
+ id: string | null;
41781
+ invoice_number: string | null;
41782
+ note: string | null;
41783
+ status: string | null;
41784
+ total_excl_cents: number | null;
41785
+ total_incl_cents: number | null;
41786
+ updated_at: string | null;
41787
+ vat_cents: number | null;
41788
+ vat_percentage: number | null;
41789
+ werkbon_id: string | null;
41790
+ };
41791
+ Insert: {
41792
+ created_at?: string | null;
41793
+ created_by?: string | null;
41794
+ customer_id?: string | null;
41795
+ customer_name?: string | null;
41796
+ id?: string | null;
41797
+ invoice_number?: string | null;
41798
+ note?: string | null;
41799
+ status?: string | null;
41800
+ total_excl_cents?: number | null;
41801
+ total_incl_cents?: number | null;
41802
+ updated_at?: string | null;
41803
+ vat_cents?: number | null;
41804
+ vat_percentage?: number | null;
41805
+ werkbon_id?: never;
41806
+ };
41807
+ Update: {
41808
+ created_at?: string | null;
41809
+ created_by?: string | null;
41810
+ customer_id?: string | null;
41811
+ customer_name?: string | null;
41812
+ id?: string | null;
41813
+ invoice_number?: string | null;
41814
+ note?: string | null;
41815
+ status?: string | null;
41816
+ total_excl_cents?: number | null;
41817
+ total_incl_cents?: number | null;
41818
+ updated_at?: string | null;
41819
+ vat_cents?: number | null;
41820
+ vat_percentage?: number | null;
41821
+ werkbon_id?: never;
41822
+ };
41823
+ Relationships: [{
41824
+ foreignKeyName: "invoices_customer_id_fkey";
41825
+ columns: ["customer_id"];
41826
+ isOneToOne: false;
41827
+ referencedRelation: "itk_customers";
41828
+ referencedColumns: ["id"];
41829
+ }];
41830
+ };
41831
+ uren_factuur_regels: {
41832
+ Row: {
41833
+ created_at: string | null;
41834
+ description: string | null;
41835
+ factuur_id: string | null;
41836
+ id: string | null;
41837
+ kind: string | null;
41838
+ quantity: number | null;
41839
+ sort_order: number | null;
41840
+ total_cents: number | null;
41841
+ unit: string | null;
41842
+ unit_price_cents: number | null;
41843
+ };
41844
+ Insert: {
41845
+ created_at?: string | null;
41846
+ description?: string | null;
41847
+ factuur_id?: string | null;
41848
+ id?: string | null;
41849
+ kind?: string | null;
41850
+ quantity?: number | null;
41851
+ sort_order?: number | null;
41852
+ total_cents?: number | null;
41853
+ unit?: string | null;
41854
+ unit_price_cents?: number | null;
41855
+ };
41856
+ Update: {
41857
+ created_at?: string | null;
41858
+ description?: string | null;
41859
+ factuur_id?: string | null;
41860
+ id?: string | null;
41861
+ kind?: string | null;
41862
+ quantity?: number | null;
41863
+ sort_order?: number | null;
41864
+ total_cents?: number | null;
41865
+ unit?: string | null;
41866
+ unit_price_cents?: number | null;
41867
+ };
41868
+ Relationships: [{
41869
+ foreignKeyName: "invoice_items_invoice_id_fkey";
41870
+ columns: ["factuur_id"];
41871
+ isOneToOne: false;
41872
+ referencedRelation: "invoices";
41873
+ referencedColumns: ["id"];
41874
+ }, {
41875
+ foreignKeyName: "invoice_items_invoice_id_fkey";
41876
+ columns: ["factuur_id"];
41877
+ isOneToOne: false;
41878
+ referencedRelation: "uren_facturen";
41879
+ referencedColumns: ["id"];
41880
+ }];
41881
+ };
40229
41882
  v_external_customers_exact: {
40230
41883
  Row: {
40231
41884
  account_number: string | null;
@@ -40731,6 +42384,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
40731
42384
  gebruiker_id: string | null;
40732
42385
  gebruiker_naam: string;
40733
42386
  gestart_op: string | null;
42387
+ herkomst: string | null;
40734
42388
  id: string;
40735
42389
  idempotentie_sleutel: string | null;
40736
42390
  is_herprint: boolean;
@@ -40851,6 +42505,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
40851
42505
  gebruiker_id: string | null;
40852
42506
  gebruiker_naam: string;
40853
42507
  gestart_op: string | null;
42508
+ herkomst: string | null;
40854
42509
  id: string;
40855
42510
  idempotentie_sleutel: string | null;
40856
42511
  is_herprint: boolean;
@@ -41121,6 +42776,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
41121
42776
  };
41122
42777
  Returns: string;
41123
42778
  };
42779
+ employee_day_hours: {
42780
+ Args: {
42781
+ _day: string;
42782
+ _employee_id: string;
42783
+ };
42784
+ Returns: number;
42785
+ };
41124
42786
  enqueue_cart_replan_if_unlocked: {
41125
42787
  Args: {
41126
42788
  p_order_id: string;
@@ -41445,6 +43107,46 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
41445
43107
  Args: never;
41446
43108
  Returns: boolean;
41447
43109
  };
43110
+ invoice_create_from_source: {
43111
+ Args: {
43112
+ _payload?: import("../integrations/supabase/types").Json;
43113
+ _source_id: string;
43114
+ _source_type: string;
43115
+ };
43116
+ Returns: import("../integrations/supabase/types").Json;
43117
+ };
43118
+ invoice_get_billable_lines: {
43119
+ Args: {
43120
+ _invoice_id: string;
43121
+ };
43122
+ Returns: import("../integrations/supabase/types").Json;
43123
+ };
43124
+ invoice_get_for_source: {
43125
+ Args: {
43126
+ _source_id: string;
43127
+ _source_type: string;
43128
+ };
43129
+ Returns: import("../integrations/supabase/types").Json;
43130
+ };
43131
+ invoice_get_summary: {
43132
+ Args: {
43133
+ _invoice_id: string;
43134
+ };
43135
+ Returns: import("../integrations/supabase/types").Json;
43136
+ };
43137
+ invoice_list_sources: {
43138
+ Args: {
43139
+ _limit?: number;
43140
+ _source_type?: string;
43141
+ };
43142
+ Returns: import("../integrations/supabase/types").Json;
43143
+ };
43144
+ invoice_recalc_totals: {
43145
+ Args: {
43146
+ _invoice_id: string;
43147
+ };
43148
+ Returns: import("../integrations/supabase/types").Json;
43149
+ };
41448
43150
  is_authenticated: {
41449
43151
  Args: never;
41450
43152
  Returns: boolean;
@@ -41474,6 +43176,19 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
41474
43176
  Args: never;
41475
43177
  Returns: boolean;
41476
43178
  };
43179
+ itk_offerte_naar_werkbon: {
43180
+ Args: {
43181
+ _offerte_id: string;
43182
+ };
43183
+ Returns: string;
43184
+ };
43185
+ itk_offerte_restant_mandaat: {
43186
+ Args: {
43187
+ _exclude_offerte_id?: string;
43188
+ _werkbon_id: string;
43189
+ };
43190
+ Returns: number;
43191
+ };
41477
43192
  jwt_has_role: {
41478
43193
  Args: {
41479
43194
  _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
@@ -41484,12 +43199,45 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
41484
43199
  Args: never;
41485
43200
  Returns: {
41486
43201
  avatar_url: string;
43202
+ color: string;
41487
43203
  display_name: string;
41488
43204
  email: string;
43205
+ hours_fri: number;
43206
+ hours_mon: number;
43207
+ hours_thu: number;
43208
+ hours_tue: number;
43209
+ hours_wed: number;
41489
43210
  id: string;
43211
+ is_active: boolean;
43212
+ leave_balance_hours: number;
43213
+ persnr: string;
43214
+ phone: string;
41490
43215
  roles: string[];
41491
43216
  }[];
41492
43217
  };
43218
+ list_monteur_absences: {
43219
+ Args: {
43220
+ _from: string;
43221
+ _to: string;
43222
+ };
43223
+ Returns: {
43224
+ absence_date: string;
43225
+ end_time: string;
43226
+ full_day: boolean;
43227
+ kind: string;
43228
+ monteur_id: string;
43229
+ start_time: string;
43230
+ }[];
43231
+ };
43232
+ list_monteurs: {
43233
+ Args: never;
43234
+ Returns: {
43235
+ avatar_url: string;
43236
+ display_name: string;
43237
+ email: string;
43238
+ id: string;
43239
+ }[];
43240
+ };
41493
43241
  list_my_planning_items: {
41494
43242
  Args: {
41495
43243
  _from: string;
@@ -41901,6 +43649,23 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
41901
43649
  };
41902
43650
  Returns: string;
41903
43651
  };
43652
+ logistics_floriday_finish_push_v2: {
43653
+ Args: {
43654
+ _error?: string;
43655
+ _error_code?: string;
43656
+ _fulfillment_order_id?: string;
43657
+ _gateway_status?: number;
43658
+ _id: string;
43659
+ _max_age_hours?: number;
43660
+ _max_attempts?: number;
43661
+ _ok: boolean;
43662
+ _permanent?: boolean;
43663
+ _response?: import("../integrations/supabase/types").Json;
43664
+ _revision: number;
43665
+ _sent_hash?: string;
43666
+ };
43667
+ Returns: string;
43668
+ };
41904
43669
  logistics_floriday_prune_pushes: {
41905
43670
  Args: {
41906
43671
  _days?: number;
@@ -42443,6 +44208,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
42443
44208
  isSetofReturn: false;
42444
44209
  };
42445
44210
  };
44211
+ pick_cleanup_maintenance: {
44212
+ Args: {
44213
+ _heartbeat_hours?: number;
44214
+ _log_days?: number;
44215
+ };
44216
+ Returns: import("../integrations/supabase/types").Json;
44217
+ };
42446
44218
  pick_complete_print: {
42447
44219
  Args: {
42448
44220
  _printer_id: string;
@@ -42494,6 +44266,14 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
42494
44266
  Args: never;
42495
44267
  Returns: string;
42496
44268
  };
44269
+ pick_day_counts: {
44270
+ Args: {
44271
+ _pick_day?: string;
44272
+ _screen_id?: string;
44273
+ _station_id?: string;
44274
+ };
44275
+ Returns: import("../integrations/supabase/types").Json;
44276
+ };
42497
44277
  pick_document_layout_data: {
42498
44278
  Args: {
42499
44279
  _layout_id: string;
@@ -42531,6 +44311,14 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
42531
44311
  };
42532
44312
  Returns: undefined;
42533
44313
  };
44314
+ pick_reprint_document: {
44315
+ Args: {
44316
+ _queue_item_id: string;
44317
+ _session_id: string;
44318
+ _throttle_seconds?: number;
44319
+ };
44320
+ Returns: string;
44321
+ };
42534
44322
  pick_reset_print: {
42535
44323
  Args: {
42536
44324
  _queue_item_id: string;
@@ -42596,6 +44384,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
42596
44384
  };
42597
44385
  Returns: string;
42598
44386
  };
44387
+ pick_sync_queue_throttled: {
44388
+ Args: {
44389
+ _min_seconds?: number;
44390
+ };
44391
+ Returns: import("../integrations/supabase/types").Json;
44392
+ };
42599
44393
  pickstation_get_orders_raw: {
42600
44394
  Args: never;
42601
44395
  Returns: import("../integrations/supabase/types").Json;
@@ -42657,6 +44451,37 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
42657
44451
  };
42658
44452
  Returns: undefined;
42659
44453
  };
44454
+ quote_create_from_source: {
44455
+ Args: {
44456
+ _payload?: import("../integrations/supabase/types").Json;
44457
+ _source_id: string;
44458
+ _source_type: string;
44459
+ };
44460
+ Returns: string;
44461
+ };
44462
+ quote_get_billable_lines: {
44463
+ Args: {
44464
+ _quotation_id: string;
44465
+ };
44466
+ Returns: import("../integrations/supabase/types").Json;
44467
+ };
44468
+ quote_get_summary: {
44469
+ Args: {
44470
+ _quotation_id: string;
44471
+ };
44472
+ Returns: import("../integrations/supabase/types").Json;
44473
+ };
44474
+ quote_list_packages: {
44475
+ Args: never;
44476
+ Returns: import("../integrations/supabase/types").Json;
44477
+ };
44478
+ quote_list_sources: {
44479
+ Args: {
44480
+ _limit?: number;
44481
+ _source_type?: string;
44482
+ };
44483
+ Returns: import("../integrations/supabase/types").Json;
44484
+ };
42660
44485
  recompute_all_reserved_stock: {
42661
44486
  Args: never;
42662
44487
  Returns: undefined;
@@ -42710,6 +44535,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
42710
44535
  };
42711
44536
  Returns: boolean;
42712
44537
  };
44538
+ release_stale_order_invoice_links: {
44539
+ Args: {
44540
+ _minutes?: number;
44541
+ };
44542
+ Returns: number;
44543
+ };
42713
44544
  reorder_customer_price_groups: {
42714
44545
  Args: {
42715
44546
  _ids: string[];
@@ -43192,6 +45023,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43192
45023
  };
43193
45024
  Returns: undefined;
43194
45025
  };
45026
+ sync_sick_time_off: {
45027
+ Args: {
45028
+ _period_id: string;
45029
+ };
45030
+ Returns: number;
45031
+ };
43195
45032
  trade_item_stock_duplicates: {
43196
45033
  Args: never;
43197
45034
  Returns: {
@@ -43222,6 +45059,20 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43222
45059
  };
43223
45060
  Returns: undefined;
43224
45061
  };
45062
+ twinfield_deactivate_connection: {
45063
+ Args: {
45064
+ p_connection_id: string;
45065
+ p_user_id: string;
45066
+ };
45067
+ Returns: import("../integrations/supabase/types").Json;
45068
+ };
45069
+ twinfield_handle_administration_change: {
45070
+ Args: {
45071
+ _administration_code: string;
45072
+ _user_id: string;
45073
+ };
45074
+ Returns: undefined;
45075
+ };
43225
45076
  twinfield_prune_push_queue: {
43226
45077
  Args: never;
43227
45078
  Returns: number;
@@ -43241,10 +45092,11 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43241
45092
  p_company_name?: string;
43242
45093
  p_environment: string;
43243
45094
  p_office_code?: string;
45095
+ p_reset_sync?: boolean;
43244
45096
  p_status?: string;
43245
45097
  p_user_id: string;
43246
45098
  };
43247
- Returns: string;
45099
+ Returns: import("../integrations/supabase/types").Json;
43248
45100
  };
43249
45101
  upsert_auto_fulfillment_log: {
43250
45102
  Args: {
@@ -43265,6 +45117,26 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43265
45117
  Args: never;
43266
45118
  Returns: string;
43267
45119
  };
45120
+ wo_create_from_source: {
45121
+ Args: {
45122
+ _payload?: import("../integrations/supabase/types").Json;
45123
+ _source_id: string;
45124
+ _source_type: string;
45125
+ };
45126
+ Returns: string;
45127
+ };
45128
+ wo_get_billable_lines: {
45129
+ Args: {
45130
+ _work_order_id: string;
45131
+ };
45132
+ Returns: import("../integrations/supabase/types").Json;
45133
+ };
45134
+ wo_get_summary: {
45135
+ Args: {
45136
+ _work_order_id: string;
45137
+ };
45138
+ Returns: import("../integrations/supabase/types").Json;
45139
+ };
43268
45140
  };
43269
45141
  Enums: {
43270
45142
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";