@flowselections/logistiek-engine 1.0.11 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1134 -189
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.server.d.ts +1134 -189
  4. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/moduleClient.d.ts +1134 -189
  6. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/types.d.ts +1161 -185
  8. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  9. package/dist-lib/lib/floridayDocuments.functions.d.ts +3162 -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 +1134 -189
  15. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/floridayPush.server.d.ts +27 -21
  17. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -1
  18. package/dist-lib/lib/floridayPush.server.js +160 -43
  19. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +5270 -545
  20. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +2108 -218
  22. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1134 -189
  24. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  25. 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;
@@ -17991,6 +18600,9 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
17991
18600
  scheduled_end_time: string | null;
17992
18601
  scheduled_start_time: string | null;
17993
18602
  sequence_number: number;
18603
+ signature_accepted_at: string | null;
18604
+ signature_by_user_id: string | null;
18605
+ signature_name: string | null;
17994
18606
  source_email_meta: import("../integrations/supabase/types").Json | null;
17995
18607
  source_mailbox_message_id: string | null;
17996
18608
  source_pdf_path: string | null;
@@ -18026,6 +18638,9 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
18026
18638
  scheduled_end_time?: string | null;
18027
18639
  scheduled_start_time?: string | null;
18028
18640
  sequence_number: number;
18641
+ signature_accepted_at?: string | null;
18642
+ signature_by_user_id?: string | null;
18643
+ signature_name?: string | null;
18029
18644
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18030
18645
  source_mailbox_message_id?: string | null;
18031
18646
  source_pdf_path?: string | null;
@@ -18061,6 +18676,9 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
18061
18676
  scheduled_end_time?: string | null;
18062
18677
  scheduled_start_time?: string | null;
18063
18678
  sequence_number?: number;
18679
+ signature_accepted_at?: string | null;
18680
+ signature_by_user_id?: string | null;
18681
+ signature_name?: string | null;
18064
18682
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18065
18683
  source_mailbox_message_id?: string | null;
18066
18684
  source_pdf_path?: string | null;
@@ -18577,6 +19195,114 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
18577
19195
  };
18578
19196
  Relationships: [];
18579
19197
  };
19198
+ uren_facturen: {
19199
+ Row: {
19200
+ created_at: string | null;
19201
+ created_by: string | null;
19202
+ customer_id: string | null;
19203
+ customer_name: string | null;
19204
+ id: string | null;
19205
+ invoice_number: string | null;
19206
+ note: string | null;
19207
+ status: string | null;
19208
+ total_excl_cents: number | null;
19209
+ total_incl_cents: number | null;
19210
+ updated_at: string | null;
19211
+ vat_cents: number | null;
19212
+ vat_percentage: number | null;
19213
+ werkbon_id: string | null;
19214
+ };
19215
+ Insert: {
19216
+ created_at?: string | null;
19217
+ created_by?: string | null;
19218
+ customer_id?: string | null;
19219
+ customer_name?: string | null;
19220
+ id?: string | null;
19221
+ invoice_number?: string | null;
19222
+ note?: string | null;
19223
+ status?: string | null;
19224
+ total_excl_cents?: number | null;
19225
+ total_incl_cents?: number | null;
19226
+ updated_at?: string | null;
19227
+ vat_cents?: number | null;
19228
+ vat_percentage?: number | null;
19229
+ werkbon_id?: never;
19230
+ };
19231
+ Update: {
19232
+ created_at?: string | null;
19233
+ created_by?: string | null;
19234
+ customer_id?: string | null;
19235
+ customer_name?: string | null;
19236
+ id?: string | null;
19237
+ invoice_number?: string | null;
19238
+ note?: string | null;
19239
+ status?: string | null;
19240
+ total_excl_cents?: number | null;
19241
+ total_incl_cents?: number | null;
19242
+ updated_at?: string | null;
19243
+ vat_cents?: number | null;
19244
+ vat_percentage?: number | null;
19245
+ werkbon_id?: never;
19246
+ };
19247
+ Relationships: [{
19248
+ foreignKeyName: "invoices_customer_id_fkey";
19249
+ columns: ["customer_id"];
19250
+ isOneToOne: false;
19251
+ referencedRelation: "itk_customers";
19252
+ referencedColumns: ["id"];
19253
+ }];
19254
+ };
19255
+ uren_factuur_regels: {
19256
+ Row: {
19257
+ created_at: string | null;
19258
+ description: string | null;
19259
+ factuur_id: string | null;
19260
+ id: string | null;
19261
+ kind: string | null;
19262
+ quantity: number | null;
19263
+ sort_order: number | null;
19264
+ total_cents: number | null;
19265
+ unit: string | null;
19266
+ unit_price_cents: number | null;
19267
+ };
19268
+ Insert: {
19269
+ created_at?: string | null;
19270
+ description?: string | null;
19271
+ factuur_id?: string | null;
19272
+ id?: string | null;
19273
+ kind?: string | null;
19274
+ quantity?: number | null;
19275
+ sort_order?: number | null;
19276
+ total_cents?: number | null;
19277
+ unit?: string | null;
19278
+ unit_price_cents?: number | null;
19279
+ };
19280
+ Update: {
19281
+ created_at?: string | null;
19282
+ description?: string | null;
19283
+ factuur_id?: string | null;
19284
+ id?: string | null;
19285
+ kind?: string | null;
19286
+ quantity?: number | null;
19287
+ sort_order?: number | null;
19288
+ total_cents?: number | null;
19289
+ unit?: string | null;
19290
+ unit_price_cents?: number | null;
19291
+ };
19292
+ Relationships: [{
19293
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19294
+ columns: ["factuur_id"];
19295
+ isOneToOne: false;
19296
+ referencedRelation: "invoices";
19297
+ referencedColumns: ["id"];
19298
+ }, {
19299
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19300
+ columns: ["factuur_id"];
19301
+ isOneToOne: false;
19302
+ referencedRelation: "uren_facturen";
19303
+ referencedColumns: ["id"];
19304
+ }];
19305
+ };
18580
19306
  v_external_customers_exact: {
18581
19307
  Row: {
18582
19308
  account_number: string | null;
@@ -19082,6 +19808,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19082
19808
  gebruiker_id: string | null;
19083
19809
  gebruiker_naam: string;
19084
19810
  gestart_op: string | null;
19811
+ herkomst: string | null;
19085
19812
  id: string;
19086
19813
  idempotentie_sleutel: string | null;
19087
19814
  is_herprint: boolean;
@@ -19202,6 +19929,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19202
19929
  gebruiker_id: string | null;
19203
19930
  gebruiker_naam: string;
19204
19931
  gestart_op: string | null;
19932
+ herkomst: string | null;
19205
19933
  id: string;
19206
19934
  idempotentie_sleutel: string | null;
19207
19935
  is_herprint: boolean;
@@ -19472,6 +20200,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19472
20200
  };
19473
20201
  Returns: string;
19474
20202
  };
20203
+ employee_day_hours: {
20204
+ Args: {
20205
+ _day: string;
20206
+ _employee_id: string;
20207
+ };
20208
+ Returns: number;
20209
+ };
19475
20210
  enqueue_cart_replan_if_unlocked: {
19476
20211
  Args: {
19477
20212
  p_order_id: string;
@@ -19796,6 +20531,46 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19796
20531
  Args: never;
19797
20532
  Returns: boolean;
19798
20533
  };
20534
+ invoice_create_from_source: {
20535
+ Args: {
20536
+ _payload?: import("../integrations/supabase/types").Json;
20537
+ _source_id: string;
20538
+ _source_type: string;
20539
+ };
20540
+ Returns: import("../integrations/supabase/types").Json;
20541
+ };
20542
+ invoice_get_billable_lines: {
20543
+ Args: {
20544
+ _invoice_id: string;
20545
+ };
20546
+ Returns: import("../integrations/supabase/types").Json;
20547
+ };
20548
+ invoice_get_for_source: {
20549
+ Args: {
20550
+ _source_id: string;
20551
+ _source_type: string;
20552
+ };
20553
+ Returns: import("../integrations/supabase/types").Json;
20554
+ };
20555
+ invoice_get_summary: {
20556
+ Args: {
20557
+ _invoice_id: string;
20558
+ };
20559
+ Returns: import("../integrations/supabase/types").Json;
20560
+ };
20561
+ invoice_list_sources: {
20562
+ Args: {
20563
+ _limit?: number;
20564
+ _source_type?: string;
20565
+ };
20566
+ Returns: import("../integrations/supabase/types").Json;
20567
+ };
20568
+ invoice_recalc_totals: {
20569
+ Args: {
20570
+ _invoice_id: string;
20571
+ };
20572
+ Returns: import("../integrations/supabase/types").Json;
20573
+ };
19799
20574
  is_authenticated: {
19800
20575
  Args: never;
19801
20576
  Returns: boolean;
@@ -19825,6 +20600,19 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19825
20600
  Args: never;
19826
20601
  Returns: boolean;
19827
20602
  };
20603
+ itk_offerte_naar_werkbon: {
20604
+ Args: {
20605
+ _offerte_id: string;
20606
+ };
20607
+ Returns: string;
20608
+ };
20609
+ itk_offerte_restant_mandaat: {
20610
+ Args: {
20611
+ _exclude_offerte_id?: string;
20612
+ _werkbon_id: string;
20613
+ };
20614
+ Returns: number;
20615
+ };
19828
20616
  jwt_has_role: {
19829
20617
  Args: {
19830
20618
  _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
@@ -19835,12 +20623,45 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19835
20623
  Args: never;
19836
20624
  Returns: {
19837
20625
  avatar_url: string;
20626
+ color: string;
19838
20627
  display_name: string;
19839
20628
  email: string;
20629
+ hours_fri: number;
20630
+ hours_mon: number;
20631
+ hours_thu: number;
20632
+ hours_tue: number;
20633
+ hours_wed: number;
19840
20634
  id: string;
20635
+ is_active: boolean;
20636
+ leave_balance_hours: number;
20637
+ persnr: string;
20638
+ phone: string;
19841
20639
  roles: string[];
19842
20640
  }[];
19843
20641
  };
20642
+ list_monteur_absences: {
20643
+ Args: {
20644
+ _from: string;
20645
+ _to: string;
20646
+ };
20647
+ Returns: {
20648
+ absence_date: string;
20649
+ end_time: string;
20650
+ full_day: boolean;
20651
+ kind: string;
20652
+ monteur_id: string;
20653
+ start_time: string;
20654
+ }[];
20655
+ };
20656
+ list_monteurs: {
20657
+ Args: never;
20658
+ Returns: {
20659
+ avatar_url: string;
20660
+ display_name: string;
20661
+ email: string;
20662
+ id: string;
20663
+ }[];
20664
+ };
19844
20665
  list_my_planning_items: {
19845
20666
  Args: {
19846
20667
  _from: string;
@@ -20252,6 +21073,23 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20252
21073
  };
20253
21074
  Returns: string;
20254
21075
  };
21076
+ logistics_floriday_finish_push_v2: {
21077
+ Args: {
21078
+ _error?: string;
21079
+ _error_code?: string;
21080
+ _fulfillment_order_id?: string;
21081
+ _gateway_status?: number;
21082
+ _id: string;
21083
+ _max_age_hours?: number;
21084
+ _max_attempts?: number;
21085
+ _ok: boolean;
21086
+ _permanent?: boolean;
21087
+ _response?: import("../integrations/supabase/types").Json;
21088
+ _revision: number;
21089
+ _sent_hash?: string;
21090
+ };
21091
+ Returns: string;
21092
+ };
20255
21093
  logistics_floriday_prune_pushes: {
20256
21094
  Args: {
20257
21095
  _days?: number;
@@ -20794,6 +21632,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20794
21632
  isSetofReturn: false;
20795
21633
  };
20796
21634
  };
21635
+ pick_cleanup_maintenance: {
21636
+ Args: {
21637
+ _heartbeat_hours?: number;
21638
+ _log_days?: number;
21639
+ };
21640
+ Returns: import("../integrations/supabase/types").Json;
21641
+ };
20797
21642
  pick_complete_print: {
20798
21643
  Args: {
20799
21644
  _printer_id: string;
@@ -20845,6 +21690,14 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20845
21690
  Args: never;
20846
21691
  Returns: string;
20847
21692
  };
21693
+ pick_day_counts: {
21694
+ Args: {
21695
+ _pick_day?: string;
21696
+ _screen_id?: string;
21697
+ _station_id?: string;
21698
+ };
21699
+ Returns: import("../integrations/supabase/types").Json;
21700
+ };
20848
21701
  pick_document_layout_data: {
20849
21702
  Args: {
20850
21703
  _layout_id: string;
@@ -20882,6 +21735,14 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20882
21735
  };
20883
21736
  Returns: undefined;
20884
21737
  };
21738
+ pick_reprint_document: {
21739
+ Args: {
21740
+ _queue_item_id: string;
21741
+ _session_id: string;
21742
+ _throttle_seconds?: number;
21743
+ };
21744
+ Returns: string;
21745
+ };
20885
21746
  pick_reset_print: {
20886
21747
  Args: {
20887
21748
  _queue_item_id: string;
@@ -20947,6 +21808,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20947
21808
  };
20948
21809
  Returns: string;
20949
21810
  };
21811
+ pick_sync_queue_throttled: {
21812
+ Args: {
21813
+ _min_seconds?: number;
21814
+ };
21815
+ Returns: import("../integrations/supabase/types").Json;
21816
+ };
20950
21817
  pickstation_get_orders_raw: {
20951
21818
  Args: never;
20952
21819
  Returns: import("../integrations/supabase/types").Json;
@@ -21008,6 +21875,37 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21008
21875
  };
21009
21876
  Returns: undefined;
21010
21877
  };
21878
+ quote_create_from_source: {
21879
+ Args: {
21880
+ _payload?: import("../integrations/supabase/types").Json;
21881
+ _source_id: string;
21882
+ _source_type: string;
21883
+ };
21884
+ Returns: string;
21885
+ };
21886
+ quote_get_billable_lines: {
21887
+ Args: {
21888
+ _quotation_id: string;
21889
+ };
21890
+ Returns: import("../integrations/supabase/types").Json;
21891
+ };
21892
+ quote_get_summary: {
21893
+ Args: {
21894
+ _quotation_id: string;
21895
+ };
21896
+ Returns: import("../integrations/supabase/types").Json;
21897
+ };
21898
+ quote_list_packages: {
21899
+ Args: never;
21900
+ Returns: import("../integrations/supabase/types").Json;
21901
+ };
21902
+ quote_list_sources: {
21903
+ Args: {
21904
+ _limit?: number;
21905
+ _source_type?: string;
21906
+ };
21907
+ Returns: import("../integrations/supabase/types").Json;
21908
+ };
21011
21909
  recompute_all_reserved_stock: {
21012
21910
  Args: never;
21013
21911
  Returns: undefined;
@@ -21061,6 +21959,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21061
21959
  };
21062
21960
  Returns: boolean;
21063
21961
  };
21962
+ release_stale_order_invoice_links: {
21963
+ Args: {
21964
+ _minutes?: number;
21965
+ };
21966
+ Returns: number;
21967
+ };
21064
21968
  reorder_customer_price_groups: {
21065
21969
  Args: {
21066
21970
  _ids: string[];
@@ -21543,6 +22447,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21543
22447
  };
21544
22448
  Returns: undefined;
21545
22449
  };
22450
+ sync_sick_time_off: {
22451
+ Args: {
22452
+ _period_id: string;
22453
+ };
22454
+ Returns: number;
22455
+ };
21546
22456
  trade_item_stock_duplicates: {
21547
22457
  Args: never;
21548
22458
  Returns: {
@@ -21573,6 +22483,20 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21573
22483
  };
21574
22484
  Returns: undefined;
21575
22485
  };
22486
+ twinfield_deactivate_connection: {
22487
+ Args: {
22488
+ p_connection_id: string;
22489
+ p_user_id: string;
22490
+ };
22491
+ Returns: import("../integrations/supabase/types").Json;
22492
+ };
22493
+ twinfield_handle_administration_change: {
22494
+ Args: {
22495
+ _administration_code: string;
22496
+ _user_id: string;
22497
+ };
22498
+ Returns: undefined;
22499
+ };
21576
22500
  twinfield_prune_push_queue: {
21577
22501
  Args: never;
21578
22502
  Returns: number;
@@ -21592,10 +22516,11 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21592
22516
  p_company_name?: string;
21593
22517
  p_environment: string;
21594
22518
  p_office_code?: string;
22519
+ p_reset_sync?: boolean;
21595
22520
  p_status?: string;
21596
22521
  p_user_id: string;
21597
22522
  };
21598
- Returns: string;
22523
+ Returns: import("../integrations/supabase/types").Json;
21599
22524
  };
21600
22525
  upsert_auto_fulfillment_log: {
21601
22526
  Args: {
@@ -21616,6 +22541,26 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21616
22541
  Args: never;
21617
22542
  Returns: string;
21618
22543
  };
22544
+ wo_create_from_source: {
22545
+ Args: {
22546
+ _payload?: import("../integrations/supabase/types").Json;
22547
+ _source_id: string;
22548
+ _source_type: string;
22549
+ };
22550
+ Returns: string;
22551
+ };
22552
+ wo_get_billable_lines: {
22553
+ Args: {
22554
+ _work_order_id: string;
22555
+ };
22556
+ Returns: import("../integrations/supabase/types").Json;
22557
+ };
22558
+ wo_get_summary: {
22559
+ Args: {
22560
+ _work_order_id: string;
22561
+ };
22562
+ Returns: import("../integrations/supabase/types").Json;
22563
+ };
21619
22564
  };
21620
22565
  Enums: {
21621
22566
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
@@ -24407,6 +25352,42 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
24407
25352
  };
24408
25353
  Relationships: [];
24409
25354
  };
25355
+ document_bronregels: {
25356
+ Row: {
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
+ Insert: {
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
+ Update: {
25375
+ bron?: string;
25376
+ created_at?: string;
25377
+ documenttype?: string;
25378
+ herkomst?: string;
25379
+ id?: string;
25380
+ layout_id?: string | null;
25381
+ updated_at?: string;
25382
+ };
25383
+ Relationships: [{
25384
+ foreignKeyName: "document_bronregels_layout_id_fkey";
25385
+ columns: ["layout_id"];
25386
+ isOneToOne: false;
25387
+ referencedRelation: "document_layouts";
25388
+ referencedColumns: ["id"];
25389
+ }];
25390
+ };
24410
25391
  document_formaat_printers: {
24411
25392
  Row: {
24412
25393
  created_at: string;
@@ -24684,6 +25665,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
24684
25665
  Row: {
24685
25666
  actief: boolean;
24686
25667
  breedte_mm: number;
25668
+ bron: string;
24687
25669
  config: import("../integrations/supabase/types").Json;
24688
25670
  created_at: string;
24689
25671
  created_by: string | null;
@@ -24701,12 +25683,14 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
24701
25683
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
24702
25684
  page_settings: import("../integrations/supabase/types").Json;
24703
25685
  papierformaat: string;
25686
+ systeem: boolean;
24704
25687
  thumbnail_url: string | null;
24705
25688
  updated_at: string;
24706
25689
  };
24707
25690
  Insert: {
24708
25691
  actief?: boolean;
24709
25692
  breedte_mm?: number;
25693
+ bron?: string;
24710
25694
  config?: import("../integrations/supabase/types").Json;
24711
25695
  created_at?: string;
24712
25696
  created_by?: string | null;
@@ -24724,12 +25708,14 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
24724
25708
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
24725
25709
  page_settings?: import("../integrations/supabase/types").Json;
24726
25710
  papierformaat?: string;
25711
+ systeem?: boolean;
24727
25712
  thumbnail_url?: string | null;
24728
25713
  updated_at?: string;
24729
25714
  };
24730
25715
  Update: {
24731
25716
  actief?: boolean;
24732
25717
  breedte_mm?: number;
25718
+ bron?: string;
24733
25719
  config?: import("../integrations/supabase/types").Json;
24734
25720
  created_at?: string;
24735
25721
  created_by?: string | null;
@@ -24747,11 +25733,48 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
24747
25733
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
24748
25734
  page_settings?: import("../integrations/supabase/types").Json;
24749
25735
  papierformaat?: string;
25736
+ systeem?: boolean;
24750
25737
  thumbnail_url?: string | null;
24751
25738
  updated_at?: string;
24752
25739
  };
24753
25740
  Relationships: [];
24754
25741
  };
25742
+ document_werkplek_printers: {
25743
+ Row: {
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
+ Insert: {
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
+ Update: {
25762
+ created_at?: string;
25763
+ documenttype?: string;
25764
+ id?: string;
25765
+ papierformaat?: string | null;
25766
+ printer_id?: string | null;
25767
+ updated_at?: string;
25768
+ werkplek?: string;
25769
+ };
25770
+ Relationships: [{
25771
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
25772
+ columns: ["printer_id"];
25773
+ isOneToOne: false;
25774
+ referencedRelation: "printers";
25775
+ referencedColumns: ["id"];
25776
+ }];
25777
+ };
24755
25778
  email_auth_connections: {
24756
25779
  Row: {
24757
25780
  access_token_encrypted: string | null;
@@ -28997,8 +30020,63 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
28997
30020
  };
28998
30021
  Relationships: [];
28999
30022
  };
30023
+ invoice_items: {
30024
+ Row: {
30025
+ created_at: string;
30026
+ description: string;
30027
+ id: string;
30028
+ invoice_id: string;
30029
+ kind: string;
30030
+ quantity: number;
30031
+ sort_order: number;
30032
+ source_line_ref: string | null;
30033
+ total_cents: number;
30034
+ unit: string;
30035
+ unit_price_cents: number;
30036
+ };
30037
+ Insert: {
30038
+ created_at?: string;
30039
+ description?: string;
30040
+ id?: string;
30041
+ invoice_id: string;
30042
+ kind?: string;
30043
+ quantity?: number;
30044
+ sort_order?: number;
30045
+ source_line_ref?: string | null;
30046
+ total_cents?: number;
30047
+ unit?: string;
30048
+ unit_price_cents?: number;
30049
+ };
30050
+ Update: {
30051
+ created_at?: string;
30052
+ description?: string;
30053
+ id?: string;
30054
+ invoice_id?: string;
30055
+ kind?: string;
30056
+ quantity?: number;
30057
+ sort_order?: number;
30058
+ source_line_ref?: string | null;
30059
+ total_cents?: number;
30060
+ unit?: string;
30061
+ unit_price_cents?: number;
30062
+ };
30063
+ Relationships: [{
30064
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30065
+ columns: ["invoice_id"];
30066
+ isOneToOne: false;
30067
+ referencedRelation: "invoices";
30068
+ referencedColumns: ["id"];
30069
+ }, {
30070
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30071
+ columns: ["invoice_id"];
30072
+ isOneToOne: false;
30073
+ referencedRelation: "uren_facturen";
30074
+ referencedColumns: ["id"];
30075
+ }];
30076
+ };
29000
30077
  invoice_post_idempotency: {
29001
30078
  Row: {
30079
+ administration_code: string;
29002
30080
  client_request_id: string;
29003
30081
  completed_at: string | null;
29004
30082
  created_at: string;
@@ -29008,6 +30086,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29008
30086
  user_id: string;
29009
30087
  };
29010
30088
  Insert: {
30089
+ administration_code?: string;
29011
30090
  client_request_id: string;
29012
30091
  completed_at?: string | null;
29013
30092
  created_at?: string;
@@ -29017,6 +30096,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29017
30096
  user_id: string;
29018
30097
  };
29019
30098
  Update: {
30099
+ administration_code?: string;
29020
30100
  client_request_id?: string;
29021
30101
  completed_at?: string | null;
29022
30102
  created_at?: string;
@@ -29222,6 +30302,75 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29222
30302
  };
29223
30303
  Relationships: [];
29224
30304
  };
30305
+ invoices: {
30306
+ Row: {
30307
+ created_at: string;
30308
+ created_by: string | null;
30309
+ customer_id: string | null;
30310
+ customer_name: string | null;
30311
+ due_date: string | null;
30312
+ id: string;
30313
+ invoice_date: string;
30314
+ invoice_number: string | null;
30315
+ note: string | null;
30316
+ source_number: string | null;
30317
+ source_ref: string | null;
30318
+ source_type: string;
30319
+ status: string;
30320
+ subtotal_cents: number;
30321
+ total_cents: number;
30322
+ updated_at: string;
30323
+ vat_cents: number;
30324
+ vat_rate: number;
30325
+ };
30326
+ Insert: {
30327
+ created_at?: string;
30328
+ created_by?: string | null;
30329
+ customer_id?: string | null;
30330
+ customer_name?: string | null;
30331
+ due_date?: string | null;
30332
+ id?: string;
30333
+ invoice_date?: string;
30334
+ invoice_number?: string | null;
30335
+ note?: string | null;
30336
+ source_number?: string | null;
30337
+ source_ref?: string | null;
30338
+ source_type?: string;
30339
+ status?: string;
30340
+ subtotal_cents?: number;
30341
+ total_cents?: number;
30342
+ updated_at?: string;
30343
+ vat_cents?: number;
30344
+ vat_rate?: number;
30345
+ };
30346
+ Update: {
30347
+ created_at?: string;
30348
+ created_by?: string | null;
30349
+ customer_id?: string | null;
30350
+ customer_name?: string | null;
30351
+ due_date?: string | null;
30352
+ id?: string;
30353
+ invoice_date?: string;
30354
+ invoice_number?: string | null;
30355
+ note?: string | null;
30356
+ source_number?: string | null;
30357
+ source_ref?: string | null;
30358
+ source_type?: string;
30359
+ status?: string;
30360
+ subtotal_cents?: number;
30361
+ total_cents?: number;
30362
+ updated_at?: string;
30363
+ vat_cents?: number;
30364
+ vat_rate?: number;
30365
+ };
30366
+ Relationships: [{
30367
+ foreignKeyName: "invoices_customer_id_fkey";
30368
+ columns: ["customer_id"];
30369
+ isOneToOne: false;
30370
+ referencedRelation: "itk_customers";
30371
+ referencedColumns: ["id"];
30372
+ }];
30373
+ };
29225
30374
  itk_contact_persons: {
29226
30375
  Row: {
29227
30376
  created_at: string;
@@ -29417,6 +30566,258 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29417
30566
  };
29418
30567
  Relationships: [];
29419
30568
  };
30569
+ itk_offerte_events: {
30570
+ Row: {
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
+ Insert: {
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
+ Update: {
30589
+ created_at?: string;
30590
+ event_type?: string;
30591
+ id?: string;
30592
+ metadata?: import("../integrations/supabase/types").Json;
30593
+ offerte_id?: string;
30594
+ omschrijving?: string | null;
30595
+ user_id?: string | null;
30596
+ };
30597
+ Relationships: [{
30598
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
30599
+ columns: ["offerte_id"];
30600
+ isOneToOne: false;
30601
+ referencedRelation: "itk_offertes";
30602
+ referencedColumns: ["id"];
30603
+ }];
30604
+ };
30605
+ itk_offerte_regels: {
30606
+ Row: {
30607
+ created_at: string;
30608
+ id: string;
30609
+ line_total_cents: number;
30610
+ offerte_id: string;
30611
+ omschrijving: string;
30612
+ package_id: string | null;
30613
+ quantity: number;
30614
+ sort_order: number;
30615
+ source: string;
30616
+ unit_price_cents: number;
30617
+ updated_at: string;
30618
+ };
30619
+ Insert: {
30620
+ created_at?: string;
30621
+ id?: string;
30622
+ line_total_cents?: number;
30623
+ offerte_id: string;
30624
+ omschrijving?: string;
30625
+ package_id?: string | null;
30626
+ quantity?: number;
30627
+ sort_order?: number;
30628
+ source?: string;
30629
+ unit_price_cents?: number;
30630
+ updated_at?: string;
30631
+ };
30632
+ Update: {
30633
+ created_at?: string;
30634
+ id?: string;
30635
+ line_total_cents?: number;
30636
+ offerte_id?: string;
30637
+ omschrijving?: string;
30638
+ package_id?: string | null;
30639
+ quantity?: number;
30640
+ sort_order?: number;
30641
+ source?: string;
30642
+ unit_price_cents?: number;
30643
+ updated_at?: string;
30644
+ };
30645
+ Relationships: [{
30646
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
30647
+ columns: ["offerte_id"];
30648
+ isOneToOne: false;
30649
+ referencedRelation: "itk_offertes";
30650
+ referencedColumns: ["id"];
30651
+ }, {
30652
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
30653
+ columns: ["package_id"];
30654
+ isOneToOne: false;
30655
+ referencedRelation: "werkbon_packages";
30656
+ referencedColumns: ["id"];
30657
+ }];
30658
+ };
30659
+ itk_offerte_settings: {
30660
+ Row: {
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
+ Insert: {
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
+ Update: {
30679
+ auto_convert_binnen_mandaat?: boolean;
30680
+ created_at?: string;
30681
+ default_geldigheid_dagen?: number;
30682
+ default_vat_rate?: number;
30683
+ id?: string;
30684
+ singleton?: boolean;
30685
+ updated_at?: string;
30686
+ };
30687
+ Relationships: [];
30688
+ };
30689
+ itk_offertes: {
30690
+ Row: {
30691
+ ai_generated: boolean;
30692
+ approved_at: string | null;
30693
+ binnen_mandaat: boolean;
30694
+ contact_id: string | null;
30695
+ converted_at: string | null;
30696
+ created_at: string;
30697
+ created_by: string | null;
30698
+ customer_id: string | null;
30699
+ follow_up_werkbon_id: string | null;
30700
+ id: string;
30701
+ jaar: number;
30702
+ mandaat_restant_cents: number;
30703
+ notities: string | null;
30704
+ offerte_number: string | null;
30705
+ omschrijving: string;
30706
+ rejected_at: string | null;
30707
+ sent_at: string | null;
30708
+ source_number: string | null;
30709
+ source_ref: string | null;
30710
+ source_type: string;
30711
+ status: string;
30712
+ subtotal_cents: number;
30713
+ total_cents: number;
30714
+ updated_at: string;
30715
+ valid_until: string | null;
30716
+ vat_cents: number;
30717
+ vat_rate: number;
30718
+ viewed_at: string | null;
30719
+ volgnummer: number | null;
30720
+ werkbon_id: string | null;
30721
+ work_location_id: string | null;
30722
+ };
30723
+ Insert: {
30724
+ ai_generated?: boolean;
30725
+ approved_at?: string | null;
30726
+ binnen_mandaat?: boolean;
30727
+ contact_id?: string | null;
30728
+ converted_at?: string | null;
30729
+ created_at?: string;
30730
+ created_by?: string | null;
30731
+ customer_id?: string | null;
30732
+ follow_up_werkbon_id?: string | null;
30733
+ id?: string;
30734
+ jaar?: number;
30735
+ mandaat_restant_cents?: number;
30736
+ notities?: string | null;
30737
+ offerte_number?: string | null;
30738
+ omschrijving?: string;
30739
+ rejected_at?: string | null;
30740
+ sent_at?: string | null;
30741
+ source_number?: string | null;
30742
+ source_ref?: string | null;
30743
+ source_type?: string;
30744
+ status?: string;
30745
+ subtotal_cents?: number;
30746
+ total_cents?: number;
30747
+ updated_at?: string;
30748
+ valid_until?: string | null;
30749
+ vat_cents?: number;
30750
+ vat_rate?: number;
30751
+ viewed_at?: string | null;
30752
+ volgnummer?: number | null;
30753
+ werkbon_id?: string | null;
30754
+ work_location_id?: string | null;
30755
+ };
30756
+ Update: {
30757
+ ai_generated?: boolean;
30758
+ approved_at?: string | null;
30759
+ binnen_mandaat?: boolean;
30760
+ contact_id?: string | null;
30761
+ converted_at?: string | null;
30762
+ created_at?: string;
30763
+ created_by?: string | null;
30764
+ customer_id?: string | null;
30765
+ follow_up_werkbon_id?: string | null;
30766
+ id?: string;
30767
+ jaar?: number;
30768
+ mandaat_restant_cents?: number;
30769
+ notities?: string | null;
30770
+ offerte_number?: string | null;
30771
+ omschrijving?: string;
30772
+ rejected_at?: string | null;
30773
+ sent_at?: string | null;
30774
+ source_number?: string | null;
30775
+ source_ref?: string | null;
30776
+ source_type?: string;
30777
+ status?: string;
30778
+ subtotal_cents?: number;
30779
+ total_cents?: number;
30780
+ updated_at?: string;
30781
+ valid_until?: string | null;
30782
+ vat_cents?: number;
30783
+ vat_rate?: number;
30784
+ viewed_at?: string | null;
30785
+ volgnummer?: number | null;
30786
+ werkbon_id?: string | null;
30787
+ work_location_id?: string | null;
30788
+ };
30789
+ Relationships: [{
30790
+ foreignKeyName: "itk_offertes_contact_id_fkey";
30791
+ columns: ["contact_id"];
30792
+ isOneToOne: false;
30793
+ referencedRelation: "itk_contact_persons";
30794
+ referencedColumns: ["id"];
30795
+ }, {
30796
+ foreignKeyName: "itk_offertes_customer_id_fkey";
30797
+ columns: ["customer_id"];
30798
+ isOneToOne: false;
30799
+ referencedRelation: "itk_customers";
30800
+ referencedColumns: ["id"];
30801
+ }, {
30802
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
30803
+ columns: ["follow_up_werkbon_id"];
30804
+ isOneToOne: false;
30805
+ referencedRelation: "werkbonnen";
30806
+ referencedColumns: ["id"];
30807
+ }, {
30808
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
30809
+ columns: ["werkbon_id"];
30810
+ isOneToOne: false;
30811
+ referencedRelation: "werkbonnen";
30812
+ referencedColumns: ["id"];
30813
+ }, {
30814
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
30815
+ columns: ["work_location_id"];
30816
+ isOneToOne: false;
30817
+ referencedRelation: "itk_work_locations";
30818
+ referencedColumns: ["id"];
30819
+ }];
30820
+ };
29420
30821
  itk_work_locations: {
29421
30822
  Row: {
29422
30823
  city: string | null;
@@ -30317,6 +31718,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
30317
31718
  id: string;
30318
31719
  last_error: string | null;
30319
31720
  last_error_at: string | null;
31721
+ last_error_code: string | null;
31722
+ last_gateway_status: number | null;
31723
+ last_response: import("../integrations/supabase/types").Json | null;
30320
31724
  last_sent_hash: string | null;
30321
31725
  locked_by: string | null;
30322
31726
  locked_until: string | null;
@@ -30337,6 +31741,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
30337
31741
  id?: string;
30338
31742
  last_error?: string | null;
30339
31743
  last_error_at?: string | null;
31744
+ last_error_code?: string | null;
31745
+ last_gateway_status?: number | null;
31746
+ last_response?: import("../integrations/supabase/types").Json | null;
30340
31747
  last_sent_hash?: string | null;
30341
31748
  locked_by?: string | null;
30342
31749
  locked_until?: string | null;
@@ -30357,6 +31764,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
30357
31764
  id?: string;
30358
31765
  last_error?: string | null;
30359
31766
  last_error_at?: string | null;
31767
+ last_error_code?: string | null;
31768
+ last_gateway_status?: number | null;
31769
+ last_response?: import("../integrations/supabase/types").Json | null;
30360
31770
  last_sent_hash?: string | null;
30361
31771
  locked_by?: string | null;
30362
31772
  locked_until?: string | null;
@@ -31790,6 +33200,63 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
31790
33200
  referencedColumns: ["id"];
31791
33201
  }];
31792
33202
  };
33203
+ medewerker_details: {
33204
+ Row: {
33205
+ color: string | null;
33206
+ created_at: string;
33207
+ hours_fri: number | null;
33208
+ hours_mon: number | null;
33209
+ hours_thu: number | null;
33210
+ hours_tue: number | null;
33211
+ hours_wed: number | null;
33212
+ id: string;
33213
+ is_active: boolean;
33214
+ leave_balance_hours: number;
33215
+ persnr: string | null;
33216
+ phone: string | null;
33217
+ profile_id: string;
33218
+ updated_at: string;
33219
+ };
33220
+ Insert: {
33221
+ color?: string | null;
33222
+ created_at?: string;
33223
+ hours_fri?: number | null;
33224
+ hours_mon?: number | null;
33225
+ hours_thu?: number | null;
33226
+ hours_tue?: number | null;
33227
+ hours_wed?: number | null;
33228
+ id?: string;
33229
+ is_active?: boolean;
33230
+ leave_balance_hours?: number;
33231
+ persnr?: string | null;
33232
+ phone?: string | null;
33233
+ profile_id: string;
33234
+ updated_at?: string;
33235
+ };
33236
+ Update: {
33237
+ color?: string | null;
33238
+ created_at?: string;
33239
+ hours_fri?: number | null;
33240
+ hours_mon?: number | null;
33241
+ hours_thu?: number | null;
33242
+ hours_tue?: number | null;
33243
+ hours_wed?: number | null;
33244
+ id?: string;
33245
+ is_active?: boolean;
33246
+ leave_balance_hours?: number;
33247
+ persnr?: string | null;
33248
+ phone?: string | null;
33249
+ profile_id?: string;
33250
+ updated_at?: string;
33251
+ };
33252
+ Relationships: [{
33253
+ foreignKeyName: "medewerker_details_profile_id_fkey";
33254
+ columns: ["profile_id"];
33255
+ isOneToOne: true;
33256
+ referencedRelation: "profiles";
33257
+ referencedColumns: ["id"];
33258
+ }];
33259
+ };
31793
33260
  module_features: {
31794
33261
  Row: {
31795
33262
  created_at: string;
@@ -31853,6 +33320,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
31853
33320
  enforce: boolean;
31854
33321
  is_active: boolean;
31855
33322
  last_seen_at: string;
33323
+ missing_count: number;
31856
33324
  module_id: string;
31857
33325
  name: string;
31858
33326
  shell_id: string | null;
@@ -31863,6 +33331,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
31863
33331
  enforce?: boolean;
31864
33332
  is_active?: boolean;
31865
33333
  last_seen_at?: string;
33334
+ missing_count?: number;
31866
33335
  module_id: string;
31867
33336
  name: string;
31868
33337
  shell_id?: string | null;
@@ -31873,6 +33342,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
31873
33342
  enforce?: boolean;
31874
33343
  is_active?: boolean;
31875
33344
  last_seen_at?: string;
33345
+ missing_count?: number;
31876
33346
  module_id?: string;
31877
33347
  name?: string;
31878
33348
  shell_id?: string | null;
@@ -32872,6 +34342,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
32872
34342
  };
32873
34343
  order_invoice_links: {
32874
34344
  Row: {
34345
+ administration_code: string | null;
32875
34346
  attempts: number;
32876
34347
  created_at: string;
32877
34348
  error_message: string | null;
@@ -32884,6 +34355,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
32884
34355
  updated_at: string;
32885
34356
  };
32886
34357
  Insert: {
34358
+ administration_code?: string | null;
32887
34359
  attempts?: number;
32888
34360
  created_at?: string;
32889
34361
  error_message?: string | null;
@@ -32896,6 +34368,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
32896
34368
  updated_at?: string;
32897
34369
  };
32898
34370
  Update: {
34371
+ administration_code?: string | null;
32899
34372
  attempts?: number;
32900
34373
  created_at?: string;
32901
34374
  error_message?: string | null;
@@ -33083,6 +34556,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
33083
34556
  orders: {
33084
34557
  Row: {
33085
34558
  buffer_id: string | null;
34559
+ cancel_reason: string | null;
34560
+ cancelled_at: string | null;
33086
34561
  created_at: string;
33087
34562
  custom_fields: import("../integrations/supabase/types").Json;
33088
34563
  customer_id: string | null;
@@ -33105,6 +34580,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
33105
34580
  };
33106
34581
  Insert: {
33107
34582
  buffer_id?: string | null;
34583
+ cancel_reason?: string | null;
34584
+ cancelled_at?: string | null;
33108
34585
  created_at?: string;
33109
34586
  custom_fields?: import("../integrations/supabase/types").Json;
33110
34587
  customer_id?: string | null;
@@ -33127,6 +34604,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
33127
34604
  };
33128
34605
  Update: {
33129
34606
  buffer_id?: string | null;
34607
+ cancel_reason?: string | null;
34608
+ cancelled_at?: string | null;
33130
34609
  created_at?: string;
33131
34610
  custom_fields?: import("../integrations/supabase/types").Json;
33132
34611
  customer_id?: string | null;
@@ -34055,6 +35534,27 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
34055
35534
  referencedColumns: ["id"];
34056
35535
  }];
34057
35536
  };
35537
+ pick_sync_state: {
35538
+ Row: {
35539
+ id: boolean;
35540
+ last_cleanup_at: string | null;
35541
+ last_sync_at: string | null;
35542
+ updated_at: string;
35543
+ };
35544
+ Insert: {
35545
+ id?: boolean;
35546
+ last_cleanup_at?: string | null;
35547
+ last_sync_at?: string | null;
35548
+ updated_at?: string;
35549
+ };
35550
+ Update: {
35551
+ id?: boolean;
35552
+ last_cleanup_at?: string | null;
35553
+ last_sync_at?: string | null;
35554
+ updated_at?: string;
35555
+ };
35556
+ Relationships: [];
35557
+ };
34058
35558
  pick_task_document_types: {
34059
35559
  Row: {
34060
35560
  created_at: string;
@@ -34337,6 +35837,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
34337
35837
  gebruiker_id: string | null;
34338
35838
  gebruiker_naam: string;
34339
35839
  gestart_op: string | null;
35840
+ herkomst: string | null;
34340
35841
  id: string;
34341
35842
  idempotentie_sleutel: string | null;
34342
35843
  is_herprint: boolean;
@@ -34366,6 +35867,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
34366
35867
  gebruiker_id?: string | null;
34367
35868
  gebruiker_naam?: string;
34368
35869
  gestart_op?: string | null;
35870
+ herkomst?: string | null;
34369
35871
  id?: string;
34370
35872
  idempotentie_sleutel?: string | null;
34371
35873
  is_herprint?: boolean;
@@ -34395,6 +35897,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
34395
35897
  gebruiker_id?: string | null;
34396
35898
  gebruiker_naam?: string;
34397
35899
  gestart_op?: string | null;
35900
+ herkomst?: string | null;
34398
35901
  id?: string;
34399
35902
  idempotentie_sleutel?: string | null;
34400
35903
  is_herprint?: boolean;
@@ -35189,6 +36692,66 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
35189
36692
  };
35190
36693
  Relationships: [];
35191
36694
  };
36695
+ profile_modules: {
36696
+ Row: {
36697
+ created_at: string;
36698
+ id: string;
36699
+ module_id: string;
36700
+ profile_id: string;
36701
+ };
36702
+ Insert: {
36703
+ created_at?: string;
36704
+ id?: string;
36705
+ module_id: string;
36706
+ profile_id: string;
36707
+ };
36708
+ Update: {
36709
+ created_at?: string;
36710
+ id?: string;
36711
+ module_id?: string;
36712
+ profile_id?: string;
36713
+ };
36714
+ Relationships: [{
36715
+ foreignKeyName: "profile_modules_profile_id_fkey";
36716
+ columns: ["profile_id"];
36717
+ isOneToOne: false;
36718
+ referencedRelation: "profiles_org";
36719
+ referencedColumns: ["id"];
36720
+ }];
36721
+ };
36722
+ profile_roles: {
36723
+ Row: {
36724
+ created_at: string;
36725
+ id: string;
36726
+ profile_id: string;
36727
+ role_id: string;
36728
+ };
36729
+ Insert: {
36730
+ created_at?: string;
36731
+ id?: string;
36732
+ profile_id: string;
36733
+ role_id: string;
36734
+ };
36735
+ Update: {
36736
+ created_at?: string;
36737
+ id?: string;
36738
+ profile_id?: string;
36739
+ role_id?: string;
36740
+ };
36741
+ Relationships: [{
36742
+ foreignKeyName: "profile_roles_profile_id_fkey";
36743
+ columns: ["profile_id"];
36744
+ isOneToOne: false;
36745
+ referencedRelation: "profiles_org";
36746
+ referencedColumns: ["id"];
36747
+ }, {
36748
+ foreignKeyName: "profile_roles_role_id_fkey";
36749
+ columns: ["role_id"];
36750
+ isOneToOne: false;
36751
+ referencedRelation: "roles";
36752
+ referencedColumns: ["id"];
36753
+ }];
36754
+ };
35192
36755
  profiles: {
35193
36756
  Row: {
35194
36757
  address: string | null;
@@ -35234,6 +36797,39 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
35234
36797
  referencedColumns: ["id"];
35235
36798
  }];
35236
36799
  };
36800
+ profiles_org: {
36801
+ Row: {
36802
+ created_at: string;
36803
+ id: string;
36804
+ is_default: boolean;
36805
+ name: string;
36806
+ tenant_id: string | null;
36807
+ updated_at: string;
36808
+ };
36809
+ Insert: {
36810
+ created_at?: string;
36811
+ id?: string;
36812
+ is_default?: boolean;
36813
+ name: string;
36814
+ tenant_id?: string | null;
36815
+ updated_at?: string;
36816
+ };
36817
+ Update: {
36818
+ created_at?: string;
36819
+ id?: string;
36820
+ is_default?: boolean;
36821
+ name?: string;
36822
+ tenant_id?: string | null;
36823
+ updated_at?: string;
36824
+ };
36825
+ Relationships: [{
36826
+ foreignKeyName: "profiles_org_tenant_id_fkey";
36827
+ columns: ["tenant_id"];
36828
+ isOneToOne: false;
36829
+ referencedRelation: "tenants";
36830
+ referencedColumns: ["id"];
36831
+ }];
36832
+ };
35237
36833
  projects: {
35238
36834
  Row: {
35239
36835
  contact_name: string | null;
@@ -36408,6 +38004,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36408
38004
  type: string;
36409
38005
  updated_at: string;
36410
38006
  vereist_medewerker: boolean;
38007
+ werkplek: string | null;
36411
38008
  };
36412
38009
  Insert: {
36413
38010
  actief?: boolean;
@@ -36421,6 +38018,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36421
38018
  type?: string;
36422
38019
  updated_at?: string;
36423
38020
  vereist_medewerker?: boolean;
38021
+ werkplek?: string | null;
36424
38022
  };
36425
38023
  Update: {
36426
38024
  actief?: boolean;
@@ -36434,9 +38032,46 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36434
38032
  type?: string;
36435
38033
  updated_at?: string;
36436
38034
  vereist_medewerker?: boolean;
38035
+ werkplek?: string | null;
36437
38036
  };
36438
38037
  Relationships: [];
36439
38038
  };
38039
+ sick_periods: {
38040
+ Row: {
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
+ Insert: {
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
+ Update: {
38059
+ created_at?: string;
38060
+ employee_id?: string;
38061
+ end_date?: string | null;
38062
+ id?: string;
38063
+ notes?: string | null;
38064
+ start_date?: string;
38065
+ updated_at?: string;
38066
+ };
38067
+ Relationships: [{
38068
+ foreignKeyName: "sick_periods_employee_id_fkey";
38069
+ columns: ["employee_id"];
38070
+ isOneToOne: false;
38071
+ referencedRelation: "profiles";
38072
+ referencedColumns: ["id"];
38073
+ }];
38074
+ };
36440
38075
  sidebar_config: {
36441
38076
  Row: {
36442
38077
  id: string;
@@ -37267,12 +38902,16 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37267
38902
  company_name: string | null;
37268
38903
  connected_at: string | null;
37269
38904
  created_at: string;
38905
+ disconnected_at: string | null;
37270
38906
  environment: string;
37271
38907
  id: string;
38908
+ initial_sync_completed_at: string | null;
38909
+ initial_sync_started_at: string | null;
37272
38910
  is_active: boolean;
37273
38911
  label: string | null;
37274
38912
  office_code: string | null;
37275
38913
  redirect_uri: string | null;
38914
+ superseded_at: string | null;
37276
38915
  updated_at: string;
37277
38916
  user_id: string;
37278
38917
  };
@@ -37283,12 +38922,16 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37283
38922
  company_name?: string | null;
37284
38923
  connected_at?: string | null;
37285
38924
  created_at?: string;
38925
+ disconnected_at?: string | null;
37286
38926
  environment: string;
37287
38927
  id?: string;
38928
+ initial_sync_completed_at?: string | null;
38929
+ initial_sync_started_at?: string | null;
37288
38930
  is_active?: boolean;
37289
38931
  label?: string | null;
37290
38932
  office_code?: string | null;
37291
38933
  redirect_uri?: string | null;
38934
+ superseded_at?: string | null;
37292
38935
  updated_at?: string;
37293
38936
  user_id: string;
37294
38937
  };
@@ -37299,12 +38942,16 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37299
38942
  company_name?: string | null;
37300
38943
  connected_at?: string | null;
37301
38944
  created_at?: string;
38945
+ disconnected_at?: string | null;
37302
38946
  environment?: string;
37303
38947
  id?: string;
38948
+ initial_sync_completed_at?: string | null;
38949
+ initial_sync_started_at?: string | null;
37304
38950
  is_active?: boolean;
37305
38951
  label?: string | null;
37306
38952
  office_code?: string | null;
37307
38953
  redirect_uri?: string | null;
38954
+ superseded_at?: string | null;
37308
38955
  updated_at?: string;
37309
38956
  user_id?: string;
37310
38957
  };
@@ -37364,6 +39011,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37364
39011
  twinfield_customers: {
37365
39012
  Row: {
37366
39013
  address: string | null;
39014
+ administration_code: string;
37367
39015
  city: string | null;
37368
39016
  country: string | null;
37369
39017
  created_at: string;
@@ -37383,6 +39031,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37383
39031
  };
37384
39032
  Insert: {
37385
39033
  address?: string | null;
39034
+ administration_code?: string;
37386
39035
  city?: string | null;
37387
39036
  country?: string | null;
37388
39037
  created_at?: string;
@@ -37402,6 +39051,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37402
39051
  };
37403
39052
  Update: {
37404
39053
  address?: string | null;
39054
+ administration_code?: string;
37405
39055
  city?: string | null;
37406
39056
  country?: string | null;
37407
39057
  created_at?: string;
@@ -37615,7 +39265,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37615
39265
  };
37616
39266
  twinfield_invoice_settings: {
37617
39267
  Row: {
39268
+ administration_code: string | null;
37618
39269
  auto_invoice_enabled: boolean;
39270
+ auto_invoice_start_date: string | null;
37619
39271
  auto_invoice_trigger_statuses: string[];
37620
39272
  created_at: string;
37621
39273
  debtor_gl_account: string;
@@ -37629,15 +39281,19 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37629
39281
  invoice_enabled_fo: boolean;
37630
39282
  invoice_enabled_ho: boolean;
37631
39283
  invoice_enabled_mo: boolean;
39284
+ needs_review: boolean;
37632
39285
  payment_gl_account: string;
37633
39286
  payment_journal_code: string;
39287
+ settings_confirmed_at: string | null;
37634
39288
  updated_at: string;
37635
39289
  user_id: string;
37636
39290
  vat_code_eu_reverse: string | null;
37637
39291
  vat_code_export: string | null;
37638
39292
  };
37639
39293
  Insert: {
39294
+ administration_code?: string | null;
37640
39295
  auto_invoice_enabled?: boolean;
39296
+ auto_invoice_start_date?: string | null;
37641
39297
  auto_invoice_trigger_statuses?: string[];
37642
39298
  created_at?: string;
37643
39299
  debtor_gl_account?: string;
@@ -37651,15 +39307,19 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37651
39307
  invoice_enabled_fo?: boolean;
37652
39308
  invoice_enabled_ho?: boolean;
37653
39309
  invoice_enabled_mo?: boolean;
39310
+ needs_review?: boolean;
37654
39311
  payment_gl_account?: string;
37655
39312
  payment_journal_code?: string;
39313
+ settings_confirmed_at?: string | null;
37656
39314
  updated_at?: string;
37657
39315
  user_id: string;
37658
39316
  vat_code_eu_reverse?: string | null;
37659
39317
  vat_code_export?: string | null;
37660
39318
  };
37661
39319
  Update: {
39320
+ administration_code?: string | null;
37662
39321
  auto_invoice_enabled?: boolean;
39322
+ auto_invoice_start_date?: string | null;
37663
39323
  auto_invoice_trigger_statuses?: string[];
37664
39324
  created_at?: string;
37665
39325
  debtor_gl_account?: string;
@@ -37673,8 +39333,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37673
39333
  invoice_enabled_fo?: boolean;
37674
39334
  invoice_enabled_ho?: boolean;
37675
39335
  invoice_enabled_mo?: boolean;
39336
+ needs_review?: boolean;
37676
39337
  payment_gl_account?: string;
37677
39338
  payment_journal_code?: string;
39339
+ settings_confirmed_at?: string | null;
37678
39340
  updated_at?: string;
37679
39341
  user_id?: string;
37680
39342
  vat_code_eu_reverse?: string | null;
@@ -38279,114 +39941,6 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
38279
39941
  };
38280
39942
  Relationships: [];
38281
39943
  };
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
39944
  uren_offerte_regels: {
38391
39945
  Row: {
38392
39946
  created_at: string;
@@ -39640,6 +41194,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
39640
41194
  scheduled_end_time: string | null;
39641
41195
  scheduled_start_time: string | null;
39642
41196
  sequence_number: number;
41197
+ signature_accepted_at: string | null;
41198
+ signature_by_user_id: string | null;
41199
+ signature_name: string | null;
39643
41200
  source_email_meta: import("../integrations/supabase/types").Json | null;
39644
41201
  source_mailbox_message_id: string | null;
39645
41202
  source_pdf_path: string | null;
@@ -39675,6 +41232,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
39675
41232
  scheduled_end_time?: string | null;
39676
41233
  scheduled_start_time?: string | null;
39677
41234
  sequence_number: number;
41235
+ signature_accepted_at?: string | null;
41236
+ signature_by_user_id?: string | null;
41237
+ signature_name?: string | null;
39678
41238
  source_email_meta?: import("../integrations/supabase/types").Json | null;
39679
41239
  source_mailbox_message_id?: string | null;
39680
41240
  source_pdf_path?: string | null;
@@ -39710,6 +41270,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
39710
41270
  scheduled_end_time?: string | null;
39711
41271
  scheduled_start_time?: string | null;
39712
41272
  sequence_number?: number;
41273
+ signature_accepted_at?: string | null;
41274
+ signature_by_user_id?: string | null;
41275
+ signature_name?: string | null;
39713
41276
  source_email_meta?: import("../integrations/supabase/types").Json | null;
39714
41277
  source_mailbox_message_id?: string | null;
39715
41278
  source_pdf_path?: string | null;
@@ -40226,6 +41789,114 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
40226
41789
  };
40227
41790
  Relationships: [];
40228
41791
  };
41792
+ uren_facturen: {
41793
+ Row: {
41794
+ created_at: string | null;
41795
+ created_by: string | null;
41796
+ customer_id: string | null;
41797
+ customer_name: string | null;
41798
+ id: string | null;
41799
+ invoice_number: string | null;
41800
+ note: string | null;
41801
+ status: string | null;
41802
+ total_excl_cents: number | null;
41803
+ total_incl_cents: number | null;
41804
+ updated_at: string | null;
41805
+ vat_cents: number | null;
41806
+ vat_percentage: number | null;
41807
+ werkbon_id: string | null;
41808
+ };
41809
+ Insert: {
41810
+ created_at?: string | null;
41811
+ created_by?: string | null;
41812
+ customer_id?: string | null;
41813
+ customer_name?: string | null;
41814
+ id?: string | null;
41815
+ invoice_number?: string | null;
41816
+ note?: string | null;
41817
+ status?: string | null;
41818
+ total_excl_cents?: number | null;
41819
+ total_incl_cents?: number | null;
41820
+ updated_at?: string | null;
41821
+ vat_cents?: number | null;
41822
+ vat_percentage?: number | null;
41823
+ werkbon_id?: never;
41824
+ };
41825
+ Update: {
41826
+ created_at?: string | null;
41827
+ created_by?: string | null;
41828
+ customer_id?: string | null;
41829
+ customer_name?: string | null;
41830
+ id?: string | null;
41831
+ invoice_number?: string | null;
41832
+ note?: string | null;
41833
+ status?: string | null;
41834
+ total_excl_cents?: number | null;
41835
+ total_incl_cents?: number | null;
41836
+ updated_at?: string | null;
41837
+ vat_cents?: number | null;
41838
+ vat_percentage?: number | null;
41839
+ werkbon_id?: never;
41840
+ };
41841
+ Relationships: [{
41842
+ foreignKeyName: "invoices_customer_id_fkey";
41843
+ columns: ["customer_id"];
41844
+ isOneToOne: false;
41845
+ referencedRelation: "itk_customers";
41846
+ referencedColumns: ["id"];
41847
+ }];
41848
+ };
41849
+ uren_factuur_regels: {
41850
+ Row: {
41851
+ created_at: string | null;
41852
+ description: string | null;
41853
+ factuur_id: string | null;
41854
+ id: string | null;
41855
+ kind: string | null;
41856
+ quantity: number | null;
41857
+ sort_order: number | null;
41858
+ total_cents: number | null;
41859
+ unit: string | null;
41860
+ unit_price_cents: number | null;
41861
+ };
41862
+ Insert: {
41863
+ created_at?: string | null;
41864
+ description?: string | null;
41865
+ factuur_id?: string | null;
41866
+ id?: string | null;
41867
+ kind?: string | null;
41868
+ quantity?: number | null;
41869
+ sort_order?: number | null;
41870
+ total_cents?: number | null;
41871
+ unit?: string | null;
41872
+ unit_price_cents?: number | null;
41873
+ };
41874
+ Update: {
41875
+ created_at?: string | null;
41876
+ description?: string | null;
41877
+ factuur_id?: string | null;
41878
+ id?: string | null;
41879
+ kind?: string | null;
41880
+ quantity?: number | null;
41881
+ sort_order?: number | null;
41882
+ total_cents?: number | null;
41883
+ unit?: string | null;
41884
+ unit_price_cents?: number | null;
41885
+ };
41886
+ Relationships: [{
41887
+ foreignKeyName: "invoice_items_invoice_id_fkey";
41888
+ columns: ["factuur_id"];
41889
+ isOneToOne: false;
41890
+ referencedRelation: "invoices";
41891
+ referencedColumns: ["id"];
41892
+ }, {
41893
+ foreignKeyName: "invoice_items_invoice_id_fkey";
41894
+ columns: ["factuur_id"];
41895
+ isOneToOne: false;
41896
+ referencedRelation: "uren_facturen";
41897
+ referencedColumns: ["id"];
41898
+ }];
41899
+ };
40229
41900
  v_external_customers_exact: {
40230
41901
  Row: {
40231
41902
  account_number: string | null;
@@ -40731,6 +42402,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
40731
42402
  gebruiker_id: string | null;
40732
42403
  gebruiker_naam: string;
40733
42404
  gestart_op: string | null;
42405
+ herkomst: string | null;
40734
42406
  id: string;
40735
42407
  idempotentie_sleutel: string | null;
40736
42408
  is_herprint: boolean;
@@ -40851,6 +42523,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
40851
42523
  gebruiker_id: string | null;
40852
42524
  gebruiker_naam: string;
40853
42525
  gestart_op: string | null;
42526
+ herkomst: string | null;
40854
42527
  id: string;
40855
42528
  idempotentie_sleutel: string | null;
40856
42529
  is_herprint: boolean;
@@ -41121,6 +42794,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
41121
42794
  };
41122
42795
  Returns: string;
41123
42796
  };
42797
+ employee_day_hours: {
42798
+ Args: {
42799
+ _day: string;
42800
+ _employee_id: string;
42801
+ };
42802
+ Returns: number;
42803
+ };
41124
42804
  enqueue_cart_replan_if_unlocked: {
41125
42805
  Args: {
41126
42806
  p_order_id: string;
@@ -41445,6 +43125,46 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
41445
43125
  Args: never;
41446
43126
  Returns: boolean;
41447
43127
  };
43128
+ invoice_create_from_source: {
43129
+ Args: {
43130
+ _payload?: import("../integrations/supabase/types").Json;
43131
+ _source_id: string;
43132
+ _source_type: string;
43133
+ };
43134
+ Returns: import("../integrations/supabase/types").Json;
43135
+ };
43136
+ invoice_get_billable_lines: {
43137
+ Args: {
43138
+ _invoice_id: string;
43139
+ };
43140
+ Returns: import("../integrations/supabase/types").Json;
43141
+ };
43142
+ invoice_get_for_source: {
43143
+ Args: {
43144
+ _source_id: string;
43145
+ _source_type: string;
43146
+ };
43147
+ Returns: import("../integrations/supabase/types").Json;
43148
+ };
43149
+ invoice_get_summary: {
43150
+ Args: {
43151
+ _invoice_id: string;
43152
+ };
43153
+ Returns: import("../integrations/supabase/types").Json;
43154
+ };
43155
+ invoice_list_sources: {
43156
+ Args: {
43157
+ _limit?: number;
43158
+ _source_type?: string;
43159
+ };
43160
+ Returns: import("../integrations/supabase/types").Json;
43161
+ };
43162
+ invoice_recalc_totals: {
43163
+ Args: {
43164
+ _invoice_id: string;
43165
+ };
43166
+ Returns: import("../integrations/supabase/types").Json;
43167
+ };
41448
43168
  is_authenticated: {
41449
43169
  Args: never;
41450
43170
  Returns: boolean;
@@ -41474,6 +43194,19 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
41474
43194
  Args: never;
41475
43195
  Returns: boolean;
41476
43196
  };
43197
+ itk_offerte_naar_werkbon: {
43198
+ Args: {
43199
+ _offerte_id: string;
43200
+ };
43201
+ Returns: string;
43202
+ };
43203
+ itk_offerte_restant_mandaat: {
43204
+ Args: {
43205
+ _exclude_offerte_id?: string;
43206
+ _werkbon_id: string;
43207
+ };
43208
+ Returns: number;
43209
+ };
41477
43210
  jwt_has_role: {
41478
43211
  Args: {
41479
43212
  _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
@@ -41484,12 +43217,45 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
41484
43217
  Args: never;
41485
43218
  Returns: {
41486
43219
  avatar_url: string;
43220
+ color: string;
41487
43221
  display_name: string;
41488
43222
  email: string;
43223
+ hours_fri: number;
43224
+ hours_mon: number;
43225
+ hours_thu: number;
43226
+ hours_tue: number;
43227
+ hours_wed: number;
41489
43228
  id: string;
43229
+ is_active: boolean;
43230
+ leave_balance_hours: number;
43231
+ persnr: string;
43232
+ phone: string;
41490
43233
  roles: string[];
41491
43234
  }[];
41492
43235
  };
43236
+ list_monteur_absences: {
43237
+ Args: {
43238
+ _from: string;
43239
+ _to: string;
43240
+ };
43241
+ Returns: {
43242
+ absence_date: string;
43243
+ end_time: string;
43244
+ full_day: boolean;
43245
+ kind: string;
43246
+ monteur_id: string;
43247
+ start_time: string;
43248
+ }[];
43249
+ };
43250
+ list_monteurs: {
43251
+ Args: never;
43252
+ Returns: {
43253
+ avatar_url: string;
43254
+ display_name: string;
43255
+ email: string;
43256
+ id: string;
43257
+ }[];
43258
+ };
41493
43259
  list_my_planning_items: {
41494
43260
  Args: {
41495
43261
  _from: string;
@@ -41901,6 +43667,23 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
41901
43667
  };
41902
43668
  Returns: string;
41903
43669
  };
43670
+ logistics_floriday_finish_push_v2: {
43671
+ Args: {
43672
+ _error?: string;
43673
+ _error_code?: string;
43674
+ _fulfillment_order_id?: string;
43675
+ _gateway_status?: number;
43676
+ _id: string;
43677
+ _max_age_hours?: number;
43678
+ _max_attempts?: number;
43679
+ _ok: boolean;
43680
+ _permanent?: boolean;
43681
+ _response?: import("../integrations/supabase/types").Json;
43682
+ _revision: number;
43683
+ _sent_hash?: string;
43684
+ };
43685
+ Returns: string;
43686
+ };
41904
43687
  logistics_floriday_prune_pushes: {
41905
43688
  Args: {
41906
43689
  _days?: number;
@@ -42443,6 +44226,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
42443
44226
  isSetofReturn: false;
42444
44227
  };
42445
44228
  };
44229
+ pick_cleanup_maintenance: {
44230
+ Args: {
44231
+ _heartbeat_hours?: number;
44232
+ _log_days?: number;
44233
+ };
44234
+ Returns: import("../integrations/supabase/types").Json;
44235
+ };
42446
44236
  pick_complete_print: {
42447
44237
  Args: {
42448
44238
  _printer_id: string;
@@ -42494,6 +44284,14 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
42494
44284
  Args: never;
42495
44285
  Returns: string;
42496
44286
  };
44287
+ pick_day_counts: {
44288
+ Args: {
44289
+ _pick_day?: string;
44290
+ _screen_id?: string;
44291
+ _station_id?: string;
44292
+ };
44293
+ Returns: import("../integrations/supabase/types").Json;
44294
+ };
42497
44295
  pick_document_layout_data: {
42498
44296
  Args: {
42499
44297
  _layout_id: string;
@@ -42531,6 +44329,14 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
42531
44329
  };
42532
44330
  Returns: undefined;
42533
44331
  };
44332
+ pick_reprint_document: {
44333
+ Args: {
44334
+ _queue_item_id: string;
44335
+ _session_id: string;
44336
+ _throttle_seconds?: number;
44337
+ };
44338
+ Returns: string;
44339
+ };
42534
44340
  pick_reset_print: {
42535
44341
  Args: {
42536
44342
  _queue_item_id: string;
@@ -42596,6 +44402,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
42596
44402
  };
42597
44403
  Returns: string;
42598
44404
  };
44405
+ pick_sync_queue_throttled: {
44406
+ Args: {
44407
+ _min_seconds?: number;
44408
+ };
44409
+ Returns: import("../integrations/supabase/types").Json;
44410
+ };
42599
44411
  pickstation_get_orders_raw: {
42600
44412
  Args: never;
42601
44413
  Returns: import("../integrations/supabase/types").Json;
@@ -42657,6 +44469,37 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
42657
44469
  };
42658
44470
  Returns: undefined;
42659
44471
  };
44472
+ quote_create_from_source: {
44473
+ Args: {
44474
+ _payload?: import("../integrations/supabase/types").Json;
44475
+ _source_id: string;
44476
+ _source_type: string;
44477
+ };
44478
+ Returns: string;
44479
+ };
44480
+ quote_get_billable_lines: {
44481
+ Args: {
44482
+ _quotation_id: string;
44483
+ };
44484
+ Returns: import("../integrations/supabase/types").Json;
44485
+ };
44486
+ quote_get_summary: {
44487
+ Args: {
44488
+ _quotation_id: string;
44489
+ };
44490
+ Returns: import("../integrations/supabase/types").Json;
44491
+ };
44492
+ quote_list_packages: {
44493
+ Args: never;
44494
+ Returns: import("../integrations/supabase/types").Json;
44495
+ };
44496
+ quote_list_sources: {
44497
+ Args: {
44498
+ _limit?: number;
44499
+ _source_type?: string;
44500
+ };
44501
+ Returns: import("../integrations/supabase/types").Json;
44502
+ };
42660
44503
  recompute_all_reserved_stock: {
42661
44504
  Args: never;
42662
44505
  Returns: undefined;
@@ -42710,6 +44553,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
42710
44553
  };
42711
44554
  Returns: boolean;
42712
44555
  };
44556
+ release_stale_order_invoice_links: {
44557
+ Args: {
44558
+ _minutes?: number;
44559
+ };
44560
+ Returns: number;
44561
+ };
42713
44562
  reorder_customer_price_groups: {
42714
44563
  Args: {
42715
44564
  _ids: string[];
@@ -43192,6 +45041,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43192
45041
  };
43193
45042
  Returns: undefined;
43194
45043
  };
45044
+ sync_sick_time_off: {
45045
+ Args: {
45046
+ _period_id: string;
45047
+ };
45048
+ Returns: number;
45049
+ };
43195
45050
  trade_item_stock_duplicates: {
43196
45051
  Args: never;
43197
45052
  Returns: {
@@ -43222,6 +45077,20 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43222
45077
  };
43223
45078
  Returns: undefined;
43224
45079
  };
45080
+ twinfield_deactivate_connection: {
45081
+ Args: {
45082
+ p_connection_id: string;
45083
+ p_user_id: string;
45084
+ };
45085
+ Returns: import("../integrations/supabase/types").Json;
45086
+ };
45087
+ twinfield_handle_administration_change: {
45088
+ Args: {
45089
+ _administration_code: string;
45090
+ _user_id: string;
45091
+ };
45092
+ Returns: undefined;
45093
+ };
43225
45094
  twinfield_prune_push_queue: {
43226
45095
  Args: never;
43227
45096
  Returns: number;
@@ -43241,10 +45110,11 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43241
45110
  p_company_name?: string;
43242
45111
  p_environment: string;
43243
45112
  p_office_code?: string;
45113
+ p_reset_sync?: boolean;
43244
45114
  p_status?: string;
43245
45115
  p_user_id: string;
43246
45116
  };
43247
- Returns: string;
45117
+ Returns: import("../integrations/supabase/types").Json;
43248
45118
  };
43249
45119
  upsert_auto_fulfillment_log: {
43250
45120
  Args: {
@@ -43265,6 +45135,26 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43265
45135
  Args: never;
43266
45136
  Returns: string;
43267
45137
  };
45138
+ wo_create_from_source: {
45139
+ Args: {
45140
+ _payload?: import("../integrations/supabase/types").Json;
45141
+ _source_id: string;
45142
+ _source_type: string;
45143
+ };
45144
+ Returns: string;
45145
+ };
45146
+ wo_get_billable_lines: {
45147
+ Args: {
45148
+ _work_order_id: string;
45149
+ };
45150
+ Returns: import("../integrations/supabase/types").Json;
45151
+ };
45152
+ wo_get_summary: {
45153
+ Args: {
45154
+ _work_order_id: string;
45155
+ };
45156
+ Returns: import("../integrations/supabase/types").Json;
45157
+ };
43268
45158
  };
43269
45159
  Enums: {
43270
45160
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";