@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
@@ -2759,6 +2759,42 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
2759
2759
  };
2760
2760
  Relationships: [];
2761
2761
  };
2762
+ document_bronregels: {
2763
+ Row: {
2764
+ bron: string;
2765
+ created_at: string;
2766
+ documenttype: string;
2767
+ herkomst: string;
2768
+ id: string;
2769
+ layout_id: string | null;
2770
+ updated_at: string;
2771
+ };
2772
+ Insert: {
2773
+ bron?: string;
2774
+ created_at?: string;
2775
+ documenttype: string;
2776
+ herkomst: string;
2777
+ id?: string;
2778
+ layout_id?: string | null;
2779
+ updated_at?: string;
2780
+ };
2781
+ Update: {
2782
+ bron?: string;
2783
+ created_at?: string;
2784
+ documenttype?: string;
2785
+ herkomst?: string;
2786
+ id?: string;
2787
+ layout_id?: string | null;
2788
+ updated_at?: string;
2789
+ };
2790
+ Relationships: [{
2791
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2792
+ columns: ["layout_id"];
2793
+ isOneToOne: false;
2794
+ referencedRelation: "document_layouts";
2795
+ referencedColumns: ["id"];
2796
+ }];
2797
+ };
2762
2798
  document_formaat_printers: {
2763
2799
  Row: {
2764
2800
  created_at: string;
@@ -3036,6 +3072,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
3036
3072
  Row: {
3037
3073
  actief: boolean;
3038
3074
  breedte_mm: number;
3075
+ bron: string;
3039
3076
  config: import("../integrations/supabase/types").Json;
3040
3077
  created_at: string;
3041
3078
  created_by: string | null;
@@ -3053,12 +3090,14 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
3053
3090
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3054
3091
  page_settings: import("../integrations/supabase/types").Json;
3055
3092
  papierformaat: string;
3093
+ systeem: boolean;
3056
3094
  thumbnail_url: string | null;
3057
3095
  updated_at: string;
3058
3096
  };
3059
3097
  Insert: {
3060
3098
  actief?: boolean;
3061
3099
  breedte_mm?: number;
3100
+ bron?: string;
3062
3101
  config?: import("../integrations/supabase/types").Json;
3063
3102
  created_at?: string;
3064
3103
  created_by?: string | null;
@@ -3076,12 +3115,14 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
3076
3115
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3077
3116
  page_settings?: import("../integrations/supabase/types").Json;
3078
3117
  papierformaat?: string;
3118
+ systeem?: boolean;
3079
3119
  thumbnail_url?: string | null;
3080
3120
  updated_at?: string;
3081
3121
  };
3082
3122
  Update: {
3083
3123
  actief?: boolean;
3084
3124
  breedte_mm?: number;
3125
+ bron?: string;
3085
3126
  config?: import("../integrations/supabase/types").Json;
3086
3127
  created_at?: string;
3087
3128
  created_by?: string | null;
@@ -3099,11 +3140,48 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
3099
3140
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3100
3141
  page_settings?: import("../integrations/supabase/types").Json;
3101
3142
  papierformaat?: string;
3143
+ systeem?: boolean;
3102
3144
  thumbnail_url?: string | null;
3103
3145
  updated_at?: string;
3104
3146
  };
3105
3147
  Relationships: [];
3106
3148
  };
3149
+ document_werkplek_printers: {
3150
+ Row: {
3151
+ created_at: string;
3152
+ documenttype: string;
3153
+ id: string;
3154
+ papierformaat: string | null;
3155
+ printer_id: string | null;
3156
+ updated_at: string;
3157
+ werkplek: string;
3158
+ };
3159
+ Insert: {
3160
+ created_at?: string;
3161
+ documenttype: string;
3162
+ id?: string;
3163
+ papierformaat?: string | null;
3164
+ printer_id?: string | null;
3165
+ updated_at?: string;
3166
+ werkplek: string;
3167
+ };
3168
+ Update: {
3169
+ created_at?: string;
3170
+ documenttype?: string;
3171
+ id?: string;
3172
+ papierformaat?: string | null;
3173
+ printer_id?: string | null;
3174
+ updated_at?: string;
3175
+ werkplek?: string;
3176
+ };
3177
+ Relationships: [{
3178
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3179
+ columns: ["printer_id"];
3180
+ isOneToOne: false;
3181
+ referencedRelation: "printers";
3182
+ referencedColumns: ["id"];
3183
+ }];
3184
+ };
3107
3185
  email_auth_connections: {
3108
3186
  Row: {
3109
3187
  access_token_encrypted: string | null;
@@ -7349,8 +7427,63 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
7349
7427
  };
7350
7428
  Relationships: [];
7351
7429
  };
7430
+ invoice_items: {
7431
+ Row: {
7432
+ created_at: string;
7433
+ description: string;
7434
+ id: string;
7435
+ invoice_id: string;
7436
+ kind: string;
7437
+ quantity: number;
7438
+ sort_order: number;
7439
+ source_line_ref: string | null;
7440
+ total_cents: number;
7441
+ unit: string;
7442
+ unit_price_cents: number;
7443
+ };
7444
+ Insert: {
7445
+ created_at?: string;
7446
+ description?: string;
7447
+ id?: string;
7448
+ invoice_id: string;
7449
+ kind?: string;
7450
+ quantity?: number;
7451
+ sort_order?: number;
7452
+ source_line_ref?: string | null;
7453
+ total_cents?: number;
7454
+ unit?: string;
7455
+ unit_price_cents?: number;
7456
+ };
7457
+ Update: {
7458
+ created_at?: string;
7459
+ description?: string;
7460
+ id?: string;
7461
+ invoice_id?: string;
7462
+ kind?: string;
7463
+ quantity?: number;
7464
+ sort_order?: number;
7465
+ source_line_ref?: string | null;
7466
+ total_cents?: number;
7467
+ unit?: string;
7468
+ unit_price_cents?: number;
7469
+ };
7470
+ Relationships: [{
7471
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7472
+ columns: ["invoice_id"];
7473
+ isOneToOne: false;
7474
+ referencedRelation: "invoices";
7475
+ referencedColumns: ["id"];
7476
+ }, {
7477
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7478
+ columns: ["invoice_id"];
7479
+ isOneToOne: false;
7480
+ referencedRelation: "uren_facturen";
7481
+ referencedColumns: ["id"];
7482
+ }];
7483
+ };
7352
7484
  invoice_post_idempotency: {
7353
7485
  Row: {
7486
+ administration_code: string;
7354
7487
  client_request_id: string;
7355
7488
  completed_at: string | null;
7356
7489
  created_at: string;
@@ -7360,6 +7493,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
7360
7493
  user_id: string;
7361
7494
  };
7362
7495
  Insert: {
7496
+ administration_code?: string;
7363
7497
  client_request_id: string;
7364
7498
  completed_at?: string | null;
7365
7499
  created_at?: string;
@@ -7369,6 +7503,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
7369
7503
  user_id: string;
7370
7504
  };
7371
7505
  Update: {
7506
+ administration_code?: string;
7372
7507
  client_request_id?: string;
7373
7508
  completed_at?: string | null;
7374
7509
  created_at?: string;
@@ -7574,6 +7709,75 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
7574
7709
  };
7575
7710
  Relationships: [];
7576
7711
  };
7712
+ invoices: {
7713
+ Row: {
7714
+ created_at: string;
7715
+ created_by: string | null;
7716
+ customer_id: string | null;
7717
+ customer_name: string | null;
7718
+ due_date: string | null;
7719
+ id: string;
7720
+ invoice_date: string;
7721
+ invoice_number: string | null;
7722
+ note: string | null;
7723
+ source_number: string | null;
7724
+ source_ref: string | null;
7725
+ source_type: string;
7726
+ status: string;
7727
+ subtotal_cents: number;
7728
+ total_cents: number;
7729
+ updated_at: string;
7730
+ vat_cents: number;
7731
+ vat_rate: number;
7732
+ };
7733
+ Insert: {
7734
+ created_at?: string;
7735
+ created_by?: string | null;
7736
+ customer_id?: string | null;
7737
+ customer_name?: string | null;
7738
+ due_date?: string | null;
7739
+ id?: string;
7740
+ invoice_date?: string;
7741
+ invoice_number?: string | null;
7742
+ note?: string | null;
7743
+ source_number?: string | null;
7744
+ source_ref?: string | null;
7745
+ source_type?: string;
7746
+ status?: string;
7747
+ subtotal_cents?: number;
7748
+ total_cents?: number;
7749
+ updated_at?: string;
7750
+ vat_cents?: number;
7751
+ vat_rate?: number;
7752
+ };
7753
+ Update: {
7754
+ created_at?: string;
7755
+ created_by?: string | null;
7756
+ customer_id?: string | null;
7757
+ customer_name?: string | null;
7758
+ due_date?: string | null;
7759
+ id?: string;
7760
+ invoice_date?: string;
7761
+ invoice_number?: string | null;
7762
+ note?: string | null;
7763
+ source_number?: string | null;
7764
+ source_ref?: string | null;
7765
+ source_type?: string;
7766
+ status?: string;
7767
+ subtotal_cents?: number;
7768
+ total_cents?: number;
7769
+ updated_at?: string;
7770
+ vat_cents?: number;
7771
+ vat_rate?: number;
7772
+ };
7773
+ Relationships: [{
7774
+ foreignKeyName: "invoices_customer_id_fkey";
7775
+ columns: ["customer_id"];
7776
+ isOneToOne: false;
7777
+ referencedRelation: "itk_customers";
7778
+ referencedColumns: ["id"];
7779
+ }];
7780
+ };
7577
7781
  itk_contact_persons: {
7578
7782
  Row: {
7579
7783
  created_at: string;
@@ -7769,108 +7973,360 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
7769
7973
  };
7770
7974
  Relationships: [];
7771
7975
  };
7772
- itk_work_locations: {
7976
+ itk_offerte_events: {
7773
7977
  Row: {
7774
- city: string | null;
7775
7978
  created_at: string;
7776
- customer_id: string;
7979
+ event_type: string;
7777
7980
  id: string;
7778
- instructions: string | null;
7779
- label: string;
7780
- latitude: number | null;
7781
- longitude: number | null;
7782
- postcode: string | null;
7783
- street: string | null;
7784
- updated_at: string;
7981
+ metadata: import("../integrations/supabase/types").Json;
7982
+ offerte_id: string;
7983
+ omschrijving: string | null;
7984
+ user_id: string | null;
7785
7985
  };
7786
7986
  Insert: {
7787
- city?: string | null;
7788
7987
  created_at?: string;
7789
- customer_id: string;
7988
+ event_type: string;
7790
7989
  id?: string;
7791
- instructions?: string | null;
7792
- label: string;
7793
- latitude?: number | null;
7794
- longitude?: number | null;
7795
- postcode?: string | null;
7796
- street?: string | null;
7797
- updated_at?: string;
7990
+ metadata?: import("../integrations/supabase/types").Json;
7991
+ offerte_id: string;
7992
+ omschrijving?: string | null;
7993
+ user_id?: string | null;
7798
7994
  };
7799
7995
  Update: {
7800
- city?: string | null;
7801
7996
  created_at?: string;
7802
- customer_id?: string;
7997
+ event_type?: string;
7803
7998
  id?: string;
7804
- instructions?: string | null;
7805
- label?: string;
7806
- latitude?: number | null;
7807
- longitude?: number | null;
7808
- postcode?: string | null;
7809
- street?: string | null;
7810
- updated_at?: string;
7999
+ metadata?: import("../integrations/supabase/types").Json;
8000
+ offerte_id?: string;
8001
+ omschrijving?: string | null;
8002
+ user_id?: string | null;
7811
8003
  };
7812
8004
  Relationships: [{
7813
- foreignKeyName: "itk_work_locations_customer_id_fkey";
7814
- columns: ["customer_id"];
8005
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8006
+ columns: ["offerte_id"];
7815
8007
  isOneToOne: false;
7816
- referencedRelation: "itk_customers";
8008
+ referencedRelation: "itk_offertes";
7817
8009
  referencedColumns: ["id"];
7818
8010
  }];
7819
8011
  };
7820
- layout_logos: {
8012
+ itk_offerte_regels: {
7821
8013
  Row: {
7822
- bestand_url: string;
7823
- bestandsgrootte: number;
7824
- bestandspad: string | null;
7825
- bestandstype: string;
7826
- breedte: number;
7827
- categorie: string;
7828
8014
  created_at: string;
7829
- hash: string | null;
7830
- hoogte: number;
7831
8015
  id: string;
7832
- is_standaard: boolean;
7833
- naam: string;
8016
+ line_total_cents: number;
8017
+ offerte_id: string;
7834
8018
  omschrijving: string;
7835
- transparant: boolean;
8019
+ package_id: string | null;
8020
+ quantity: number;
8021
+ sort_order: number;
8022
+ source: string;
8023
+ unit_price_cents: number;
7836
8024
  updated_at: string;
7837
8025
  };
7838
8026
  Insert: {
7839
- bestand_url: string;
7840
- bestandsgrootte?: number;
7841
- bestandspad?: string | null;
7842
- bestandstype?: string;
7843
- breedte?: number;
7844
- categorie?: string;
7845
8027
  created_at?: string;
7846
- hash?: string | null;
7847
- hoogte?: number;
7848
8028
  id?: string;
7849
- is_standaard?: boolean;
7850
- naam: string;
8029
+ line_total_cents?: number;
8030
+ offerte_id: string;
7851
8031
  omschrijving?: string;
7852
- transparant?: boolean;
8032
+ package_id?: string | null;
8033
+ quantity?: number;
8034
+ sort_order?: number;
8035
+ source?: string;
8036
+ unit_price_cents?: number;
7853
8037
  updated_at?: string;
7854
8038
  };
7855
8039
  Update: {
7856
- bestand_url?: string;
7857
- bestandsgrootte?: number;
7858
- bestandspad?: string | null;
7859
- bestandstype?: string;
7860
- breedte?: number;
7861
- categorie?: string;
7862
8040
  created_at?: string;
7863
- hash?: string | null;
7864
- hoogte?: number;
7865
8041
  id?: string;
7866
- is_standaard?: boolean;
7867
- naam?: string;
8042
+ line_total_cents?: number;
8043
+ offerte_id?: string;
7868
8044
  omschrijving?: string;
7869
- transparant?: boolean;
7870
- updated_at?: string;
7871
- };
7872
- Relationships: [];
7873
- };
8045
+ package_id?: string | null;
8046
+ quantity?: number;
8047
+ sort_order?: number;
8048
+ source?: string;
8049
+ unit_price_cents?: number;
8050
+ updated_at?: string;
8051
+ };
8052
+ Relationships: [{
8053
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8054
+ columns: ["offerte_id"];
8055
+ isOneToOne: false;
8056
+ referencedRelation: "itk_offertes";
8057
+ referencedColumns: ["id"];
8058
+ }, {
8059
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
8060
+ columns: ["package_id"];
8061
+ isOneToOne: false;
8062
+ referencedRelation: "werkbon_packages";
8063
+ referencedColumns: ["id"];
8064
+ }];
8065
+ };
8066
+ itk_offerte_settings: {
8067
+ Row: {
8068
+ auto_convert_binnen_mandaat: boolean;
8069
+ created_at: string;
8070
+ default_geldigheid_dagen: number;
8071
+ default_vat_rate: number;
8072
+ id: string;
8073
+ singleton: boolean;
8074
+ updated_at: string;
8075
+ };
8076
+ Insert: {
8077
+ auto_convert_binnen_mandaat?: boolean;
8078
+ created_at?: string;
8079
+ default_geldigheid_dagen?: number;
8080
+ default_vat_rate?: number;
8081
+ id?: string;
8082
+ singleton?: boolean;
8083
+ updated_at?: string;
8084
+ };
8085
+ Update: {
8086
+ auto_convert_binnen_mandaat?: boolean;
8087
+ created_at?: string;
8088
+ default_geldigheid_dagen?: number;
8089
+ default_vat_rate?: number;
8090
+ id?: string;
8091
+ singleton?: boolean;
8092
+ updated_at?: string;
8093
+ };
8094
+ Relationships: [];
8095
+ };
8096
+ itk_offertes: {
8097
+ Row: {
8098
+ ai_generated: boolean;
8099
+ approved_at: string | null;
8100
+ binnen_mandaat: boolean;
8101
+ contact_id: string | null;
8102
+ converted_at: string | null;
8103
+ created_at: string;
8104
+ created_by: string | null;
8105
+ customer_id: string | null;
8106
+ follow_up_werkbon_id: string | null;
8107
+ id: string;
8108
+ jaar: number;
8109
+ mandaat_restant_cents: number;
8110
+ notities: string | null;
8111
+ offerte_number: string | null;
8112
+ omschrijving: string;
8113
+ rejected_at: string | null;
8114
+ sent_at: string | null;
8115
+ source_number: string | null;
8116
+ source_ref: string | null;
8117
+ source_type: string;
8118
+ status: string;
8119
+ subtotal_cents: number;
8120
+ total_cents: number;
8121
+ updated_at: string;
8122
+ valid_until: string | null;
8123
+ vat_cents: number;
8124
+ vat_rate: number;
8125
+ viewed_at: string | null;
8126
+ volgnummer: number | null;
8127
+ werkbon_id: string | null;
8128
+ work_location_id: string | null;
8129
+ };
8130
+ Insert: {
8131
+ ai_generated?: boolean;
8132
+ approved_at?: string | null;
8133
+ binnen_mandaat?: boolean;
8134
+ contact_id?: string | null;
8135
+ converted_at?: string | null;
8136
+ created_at?: string;
8137
+ created_by?: string | null;
8138
+ customer_id?: string | null;
8139
+ follow_up_werkbon_id?: string | null;
8140
+ id?: string;
8141
+ jaar?: number;
8142
+ mandaat_restant_cents?: number;
8143
+ notities?: string | null;
8144
+ offerte_number?: string | null;
8145
+ omschrijving?: string;
8146
+ rejected_at?: string | null;
8147
+ sent_at?: string | null;
8148
+ source_number?: string | null;
8149
+ source_ref?: string | null;
8150
+ source_type?: string;
8151
+ status?: string;
8152
+ subtotal_cents?: number;
8153
+ total_cents?: number;
8154
+ updated_at?: string;
8155
+ valid_until?: string | null;
8156
+ vat_cents?: number;
8157
+ vat_rate?: number;
8158
+ viewed_at?: string | null;
8159
+ volgnummer?: number | null;
8160
+ werkbon_id?: string | null;
8161
+ work_location_id?: string | null;
8162
+ };
8163
+ Update: {
8164
+ ai_generated?: boolean;
8165
+ approved_at?: string | null;
8166
+ binnen_mandaat?: boolean;
8167
+ contact_id?: string | null;
8168
+ converted_at?: string | null;
8169
+ created_at?: string;
8170
+ created_by?: string | null;
8171
+ customer_id?: string | null;
8172
+ follow_up_werkbon_id?: string | null;
8173
+ id?: string;
8174
+ jaar?: number;
8175
+ mandaat_restant_cents?: number;
8176
+ notities?: string | null;
8177
+ offerte_number?: string | null;
8178
+ omschrijving?: string;
8179
+ rejected_at?: string | null;
8180
+ sent_at?: string | null;
8181
+ source_number?: string | null;
8182
+ source_ref?: string | null;
8183
+ source_type?: string;
8184
+ status?: string;
8185
+ subtotal_cents?: number;
8186
+ total_cents?: number;
8187
+ updated_at?: string;
8188
+ valid_until?: string | null;
8189
+ vat_cents?: number;
8190
+ vat_rate?: number;
8191
+ viewed_at?: string | null;
8192
+ volgnummer?: number | null;
8193
+ werkbon_id?: string | null;
8194
+ work_location_id?: string | null;
8195
+ };
8196
+ Relationships: [{
8197
+ foreignKeyName: "itk_offertes_contact_id_fkey";
8198
+ columns: ["contact_id"];
8199
+ isOneToOne: false;
8200
+ referencedRelation: "itk_contact_persons";
8201
+ referencedColumns: ["id"];
8202
+ }, {
8203
+ foreignKeyName: "itk_offertes_customer_id_fkey";
8204
+ columns: ["customer_id"];
8205
+ isOneToOne: false;
8206
+ referencedRelation: "itk_customers";
8207
+ referencedColumns: ["id"];
8208
+ }, {
8209
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
8210
+ columns: ["follow_up_werkbon_id"];
8211
+ isOneToOne: false;
8212
+ referencedRelation: "werkbonnen";
8213
+ referencedColumns: ["id"];
8214
+ }, {
8215
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8216
+ columns: ["werkbon_id"];
8217
+ isOneToOne: false;
8218
+ referencedRelation: "werkbonnen";
8219
+ referencedColumns: ["id"];
8220
+ }, {
8221
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8222
+ columns: ["work_location_id"];
8223
+ isOneToOne: false;
8224
+ referencedRelation: "itk_work_locations";
8225
+ referencedColumns: ["id"];
8226
+ }];
8227
+ };
8228
+ itk_work_locations: {
8229
+ Row: {
8230
+ city: string | null;
8231
+ created_at: string;
8232
+ customer_id: string;
8233
+ id: string;
8234
+ instructions: string | null;
8235
+ label: string;
8236
+ latitude: number | null;
8237
+ longitude: number | null;
8238
+ postcode: string | null;
8239
+ street: string | null;
8240
+ updated_at: string;
8241
+ };
8242
+ Insert: {
8243
+ city?: string | null;
8244
+ created_at?: string;
8245
+ customer_id: string;
8246
+ id?: string;
8247
+ instructions?: string | null;
8248
+ label: string;
8249
+ latitude?: number | null;
8250
+ longitude?: number | null;
8251
+ postcode?: string | null;
8252
+ street?: string | null;
8253
+ updated_at?: string;
8254
+ };
8255
+ Update: {
8256
+ city?: string | null;
8257
+ created_at?: string;
8258
+ customer_id?: string;
8259
+ id?: string;
8260
+ instructions?: string | null;
8261
+ label?: string;
8262
+ latitude?: number | null;
8263
+ longitude?: number | null;
8264
+ postcode?: string | null;
8265
+ street?: string | null;
8266
+ updated_at?: string;
8267
+ };
8268
+ Relationships: [{
8269
+ foreignKeyName: "itk_work_locations_customer_id_fkey";
8270
+ columns: ["customer_id"];
8271
+ isOneToOne: false;
8272
+ referencedRelation: "itk_customers";
8273
+ referencedColumns: ["id"];
8274
+ }];
8275
+ };
8276
+ layout_logos: {
8277
+ Row: {
8278
+ bestand_url: string;
8279
+ bestandsgrootte: number;
8280
+ bestandspad: string | null;
8281
+ bestandstype: string;
8282
+ breedte: number;
8283
+ categorie: string;
8284
+ created_at: string;
8285
+ hash: string | null;
8286
+ hoogte: number;
8287
+ id: string;
8288
+ is_standaard: boolean;
8289
+ naam: string;
8290
+ omschrijving: string;
8291
+ transparant: boolean;
8292
+ updated_at: string;
8293
+ };
8294
+ Insert: {
8295
+ bestand_url: string;
8296
+ bestandsgrootte?: number;
8297
+ bestandspad?: string | null;
8298
+ bestandstype?: string;
8299
+ breedte?: number;
8300
+ categorie?: string;
8301
+ created_at?: string;
8302
+ hash?: string | null;
8303
+ hoogte?: number;
8304
+ id?: string;
8305
+ is_standaard?: boolean;
8306
+ naam: string;
8307
+ omschrijving?: string;
8308
+ transparant?: boolean;
8309
+ updated_at?: string;
8310
+ };
8311
+ Update: {
8312
+ bestand_url?: string;
8313
+ bestandsgrootte?: number;
8314
+ bestandspad?: string | null;
8315
+ bestandstype?: string;
8316
+ breedte?: number;
8317
+ categorie?: string;
8318
+ created_at?: string;
8319
+ hash?: string | null;
8320
+ hoogte?: number;
8321
+ id?: string;
8322
+ is_standaard?: boolean;
8323
+ naam?: string;
8324
+ omschrijving?: string;
8325
+ transparant?: boolean;
8326
+ updated_at?: string;
8327
+ };
8328
+ Relationships: [];
8329
+ };
7874
8330
  leave_requests: {
7875
8331
  Row: {
7876
8332
  created_at: string;
@@ -8669,6 +9125,9 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
8669
9125
  id: string;
8670
9126
  last_error: string | null;
8671
9127
  last_error_at: string | null;
9128
+ last_error_code: string | null;
9129
+ last_gateway_status: number | null;
9130
+ last_response: import("../integrations/supabase/types").Json | null;
8672
9131
  last_sent_hash: string | null;
8673
9132
  locked_by: string | null;
8674
9133
  locked_until: string | null;
@@ -8689,6 +9148,9 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
8689
9148
  id?: string;
8690
9149
  last_error?: string | null;
8691
9150
  last_error_at?: string | null;
9151
+ last_error_code?: string | null;
9152
+ last_gateway_status?: number | null;
9153
+ last_response?: import("../integrations/supabase/types").Json | null;
8692
9154
  last_sent_hash?: string | null;
8693
9155
  locked_by?: string | null;
8694
9156
  locked_until?: string | null;
@@ -8709,6 +9171,9 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
8709
9171
  id?: string;
8710
9172
  last_error?: string | null;
8711
9173
  last_error_at?: string | null;
9174
+ last_error_code?: string | null;
9175
+ last_gateway_status?: number | null;
9176
+ last_response?: import("../integrations/supabase/types").Json | null;
8712
9177
  last_sent_hash?: string | null;
8713
9178
  locked_by?: string | null;
8714
9179
  locked_until?: string | null;
@@ -10142,6 +10607,63 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
10142
10607
  referencedColumns: ["id"];
10143
10608
  }];
10144
10609
  };
10610
+ medewerker_details: {
10611
+ Row: {
10612
+ color: string | null;
10613
+ created_at: string;
10614
+ hours_fri: number | null;
10615
+ hours_mon: number | null;
10616
+ hours_thu: number | null;
10617
+ hours_tue: number | null;
10618
+ hours_wed: number | null;
10619
+ id: string;
10620
+ is_active: boolean;
10621
+ leave_balance_hours: number;
10622
+ persnr: string | null;
10623
+ phone: string | null;
10624
+ profile_id: string;
10625
+ updated_at: string;
10626
+ };
10627
+ Insert: {
10628
+ color?: string | null;
10629
+ created_at?: string;
10630
+ hours_fri?: number | null;
10631
+ hours_mon?: number | null;
10632
+ hours_thu?: number | null;
10633
+ hours_tue?: number | null;
10634
+ hours_wed?: number | null;
10635
+ id?: string;
10636
+ is_active?: boolean;
10637
+ leave_balance_hours?: number;
10638
+ persnr?: string | null;
10639
+ phone?: string | null;
10640
+ profile_id: string;
10641
+ updated_at?: string;
10642
+ };
10643
+ Update: {
10644
+ color?: string | null;
10645
+ created_at?: string;
10646
+ hours_fri?: number | null;
10647
+ hours_mon?: number | null;
10648
+ hours_thu?: number | null;
10649
+ hours_tue?: number | null;
10650
+ hours_wed?: number | null;
10651
+ id?: string;
10652
+ is_active?: boolean;
10653
+ leave_balance_hours?: number;
10654
+ persnr?: string | null;
10655
+ phone?: string | null;
10656
+ profile_id?: string;
10657
+ updated_at?: string;
10658
+ };
10659
+ Relationships: [{
10660
+ foreignKeyName: "medewerker_details_profile_id_fkey";
10661
+ columns: ["profile_id"];
10662
+ isOneToOne: true;
10663
+ referencedRelation: "profiles";
10664
+ referencedColumns: ["id"];
10665
+ }];
10666
+ };
10145
10667
  module_features: {
10146
10668
  Row: {
10147
10669
  created_at: string;
@@ -10205,6 +10727,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
10205
10727
  enforce: boolean;
10206
10728
  is_active: boolean;
10207
10729
  last_seen_at: string;
10730
+ missing_count: number;
10208
10731
  module_id: string;
10209
10732
  name: string;
10210
10733
  shell_id: string | null;
@@ -10215,6 +10738,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
10215
10738
  enforce?: boolean;
10216
10739
  is_active?: boolean;
10217
10740
  last_seen_at?: string;
10741
+ missing_count?: number;
10218
10742
  module_id: string;
10219
10743
  name: string;
10220
10744
  shell_id?: string | null;
@@ -10225,6 +10749,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
10225
10749
  enforce?: boolean;
10226
10750
  is_active?: boolean;
10227
10751
  last_seen_at?: string;
10752
+ missing_count?: number;
10228
10753
  module_id?: string;
10229
10754
  name?: string;
10230
10755
  shell_id?: string | null;
@@ -11224,6 +11749,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
11224
11749
  };
11225
11750
  order_invoice_links: {
11226
11751
  Row: {
11752
+ administration_code: string | null;
11227
11753
  attempts: number;
11228
11754
  created_at: string;
11229
11755
  error_message: string | null;
@@ -11236,6 +11762,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
11236
11762
  updated_at: string;
11237
11763
  };
11238
11764
  Insert: {
11765
+ administration_code?: string | null;
11239
11766
  attempts?: number;
11240
11767
  created_at?: string;
11241
11768
  error_message?: string | null;
@@ -11248,6 +11775,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
11248
11775
  updated_at?: string;
11249
11776
  };
11250
11777
  Update: {
11778
+ administration_code?: string | null;
11251
11779
  attempts?: number;
11252
11780
  created_at?: string;
11253
11781
  error_message?: string | null;
@@ -11435,6 +11963,8 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
11435
11963
  orders: {
11436
11964
  Row: {
11437
11965
  buffer_id: string | null;
11966
+ cancel_reason: string | null;
11967
+ cancelled_at: string | null;
11438
11968
  created_at: string;
11439
11969
  custom_fields: import("../integrations/supabase/types").Json;
11440
11970
  customer_id: string | null;
@@ -11457,6 +11987,8 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
11457
11987
  };
11458
11988
  Insert: {
11459
11989
  buffer_id?: string | null;
11990
+ cancel_reason?: string | null;
11991
+ cancelled_at?: string | null;
11460
11992
  created_at?: string;
11461
11993
  custom_fields?: import("../integrations/supabase/types").Json;
11462
11994
  customer_id?: string | null;
@@ -11479,6 +12011,8 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
11479
12011
  };
11480
12012
  Update: {
11481
12013
  buffer_id?: string | null;
12014
+ cancel_reason?: string | null;
12015
+ cancelled_at?: string | null;
11482
12016
  created_at?: string;
11483
12017
  custom_fields?: import("../integrations/supabase/types").Json;
11484
12018
  customer_id?: string | null;
@@ -12407,6 +12941,27 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
12407
12941
  referencedColumns: ["id"];
12408
12942
  }];
12409
12943
  };
12944
+ pick_sync_state: {
12945
+ Row: {
12946
+ id: boolean;
12947
+ last_cleanup_at: string | null;
12948
+ last_sync_at: string | null;
12949
+ updated_at: string;
12950
+ };
12951
+ Insert: {
12952
+ id?: boolean;
12953
+ last_cleanup_at?: string | null;
12954
+ last_sync_at?: string | null;
12955
+ updated_at?: string;
12956
+ };
12957
+ Update: {
12958
+ id?: boolean;
12959
+ last_cleanup_at?: string | null;
12960
+ last_sync_at?: string | null;
12961
+ updated_at?: string;
12962
+ };
12963
+ Relationships: [];
12964
+ };
12410
12965
  pick_task_document_types: {
12411
12966
  Row: {
12412
12967
  created_at: string;
@@ -12689,6 +13244,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
12689
13244
  gebruiker_id: string | null;
12690
13245
  gebruiker_naam: string;
12691
13246
  gestart_op: string | null;
13247
+ herkomst: string | null;
12692
13248
  id: string;
12693
13249
  idempotentie_sleutel: string | null;
12694
13250
  is_herprint: boolean;
@@ -12718,6 +13274,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
12718
13274
  gebruiker_id?: string | null;
12719
13275
  gebruiker_naam?: string;
12720
13276
  gestart_op?: string | null;
13277
+ herkomst?: string | null;
12721
13278
  id?: string;
12722
13279
  idempotentie_sleutel?: string | null;
12723
13280
  is_herprint?: boolean;
@@ -12747,6 +13304,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
12747
13304
  gebruiker_id?: string | null;
12748
13305
  gebruiker_naam?: string;
12749
13306
  gestart_op?: string | null;
13307
+ herkomst?: string | null;
12750
13308
  id?: string;
12751
13309
  idempotentie_sleutel?: string | null;
12752
13310
  is_herprint?: boolean;
@@ -13541,6 +14099,66 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
13541
14099
  };
13542
14100
  Relationships: [];
13543
14101
  };
14102
+ profile_modules: {
14103
+ Row: {
14104
+ created_at: string;
14105
+ id: string;
14106
+ module_id: string;
14107
+ profile_id: string;
14108
+ };
14109
+ Insert: {
14110
+ created_at?: string;
14111
+ id?: string;
14112
+ module_id: string;
14113
+ profile_id: string;
14114
+ };
14115
+ Update: {
14116
+ created_at?: string;
14117
+ id?: string;
14118
+ module_id?: string;
14119
+ profile_id?: string;
14120
+ };
14121
+ Relationships: [{
14122
+ foreignKeyName: "profile_modules_profile_id_fkey";
14123
+ columns: ["profile_id"];
14124
+ isOneToOne: false;
14125
+ referencedRelation: "profiles_org";
14126
+ referencedColumns: ["id"];
14127
+ }];
14128
+ };
14129
+ profile_roles: {
14130
+ Row: {
14131
+ created_at: string;
14132
+ id: string;
14133
+ profile_id: string;
14134
+ role_id: string;
14135
+ };
14136
+ Insert: {
14137
+ created_at?: string;
14138
+ id?: string;
14139
+ profile_id: string;
14140
+ role_id: string;
14141
+ };
14142
+ Update: {
14143
+ created_at?: string;
14144
+ id?: string;
14145
+ profile_id?: string;
14146
+ role_id?: string;
14147
+ };
14148
+ Relationships: [{
14149
+ foreignKeyName: "profile_roles_profile_id_fkey";
14150
+ columns: ["profile_id"];
14151
+ isOneToOne: false;
14152
+ referencedRelation: "profiles_org";
14153
+ referencedColumns: ["id"];
14154
+ }, {
14155
+ foreignKeyName: "profile_roles_role_id_fkey";
14156
+ columns: ["role_id"];
14157
+ isOneToOne: false;
14158
+ referencedRelation: "roles";
14159
+ referencedColumns: ["id"];
14160
+ }];
14161
+ };
13544
14162
  profiles: {
13545
14163
  Row: {
13546
14164
  address: string | null;
@@ -13586,6 +14204,39 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
13586
14204
  referencedColumns: ["id"];
13587
14205
  }];
13588
14206
  };
14207
+ profiles_org: {
14208
+ Row: {
14209
+ created_at: string;
14210
+ id: string;
14211
+ is_default: boolean;
14212
+ name: string;
14213
+ tenant_id: string | null;
14214
+ updated_at: string;
14215
+ };
14216
+ Insert: {
14217
+ created_at?: string;
14218
+ id?: string;
14219
+ is_default?: boolean;
14220
+ name: string;
14221
+ tenant_id?: string | null;
14222
+ updated_at?: string;
14223
+ };
14224
+ Update: {
14225
+ created_at?: string;
14226
+ id?: string;
14227
+ is_default?: boolean;
14228
+ name?: string;
14229
+ tenant_id?: string | null;
14230
+ updated_at?: string;
14231
+ };
14232
+ Relationships: [{
14233
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14234
+ columns: ["tenant_id"];
14235
+ isOneToOne: false;
14236
+ referencedRelation: "tenants";
14237
+ referencedColumns: ["id"];
14238
+ }];
14239
+ };
13589
14240
  projects: {
13590
14241
  Row: {
13591
14242
  contact_name: string | null;
@@ -14760,6 +15411,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
14760
15411
  type: string;
14761
15412
  updated_at: string;
14762
15413
  vereist_medewerker: boolean;
15414
+ werkplek: string | null;
14763
15415
  };
14764
15416
  Insert: {
14765
15417
  actief?: boolean;
@@ -14773,6 +15425,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
14773
15425
  type?: string;
14774
15426
  updated_at?: string;
14775
15427
  vereist_medewerker?: boolean;
15428
+ werkplek?: string | null;
14776
15429
  };
14777
15430
  Update: {
14778
15431
  actief?: boolean;
@@ -14786,9 +15439,46 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
14786
15439
  type?: string;
14787
15440
  updated_at?: string;
14788
15441
  vereist_medewerker?: boolean;
15442
+ werkplek?: string | null;
14789
15443
  };
14790
15444
  Relationships: [];
14791
15445
  };
15446
+ sick_periods: {
15447
+ Row: {
15448
+ created_at: string;
15449
+ employee_id: string;
15450
+ end_date: string | null;
15451
+ id: string;
15452
+ notes: string | null;
15453
+ start_date: string;
15454
+ updated_at: string;
15455
+ };
15456
+ Insert: {
15457
+ created_at?: string;
15458
+ employee_id: string;
15459
+ end_date?: string | null;
15460
+ id?: string;
15461
+ notes?: string | null;
15462
+ start_date: string;
15463
+ updated_at?: string;
15464
+ };
15465
+ Update: {
15466
+ created_at?: string;
15467
+ employee_id?: string;
15468
+ end_date?: string | null;
15469
+ id?: string;
15470
+ notes?: string | null;
15471
+ start_date?: string;
15472
+ updated_at?: string;
15473
+ };
15474
+ Relationships: [{
15475
+ foreignKeyName: "sick_periods_employee_id_fkey";
15476
+ columns: ["employee_id"];
15477
+ isOneToOne: false;
15478
+ referencedRelation: "profiles";
15479
+ referencedColumns: ["id"];
15480
+ }];
15481
+ };
14792
15482
  sidebar_config: {
14793
15483
  Row: {
14794
15484
  id: string;
@@ -15619,12 +16309,16 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
15619
16309
  company_name: string | null;
15620
16310
  connected_at: string | null;
15621
16311
  created_at: string;
16312
+ disconnected_at: string | null;
15622
16313
  environment: string;
15623
16314
  id: string;
16315
+ initial_sync_completed_at: string | null;
16316
+ initial_sync_started_at: string | null;
15624
16317
  is_active: boolean;
15625
16318
  label: string | null;
15626
16319
  office_code: string | null;
15627
16320
  redirect_uri: string | null;
16321
+ superseded_at: string | null;
15628
16322
  updated_at: string;
15629
16323
  user_id: string;
15630
16324
  };
@@ -15635,12 +16329,16 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
15635
16329
  company_name?: string | null;
15636
16330
  connected_at?: string | null;
15637
16331
  created_at?: string;
16332
+ disconnected_at?: string | null;
15638
16333
  environment: string;
15639
16334
  id?: string;
16335
+ initial_sync_completed_at?: string | null;
16336
+ initial_sync_started_at?: string | null;
15640
16337
  is_active?: boolean;
15641
16338
  label?: string | null;
15642
16339
  office_code?: string | null;
15643
16340
  redirect_uri?: string | null;
16341
+ superseded_at?: string | null;
15644
16342
  updated_at?: string;
15645
16343
  user_id: string;
15646
16344
  };
@@ -15651,12 +16349,16 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
15651
16349
  company_name?: string | null;
15652
16350
  connected_at?: string | null;
15653
16351
  created_at?: string;
16352
+ disconnected_at?: string | null;
15654
16353
  environment?: string;
15655
16354
  id?: string;
16355
+ initial_sync_completed_at?: string | null;
16356
+ initial_sync_started_at?: string | null;
15656
16357
  is_active?: boolean;
15657
16358
  label?: string | null;
15658
16359
  office_code?: string | null;
15659
16360
  redirect_uri?: string | null;
16361
+ superseded_at?: string | null;
15660
16362
  updated_at?: string;
15661
16363
  user_id?: string;
15662
16364
  };
@@ -15716,6 +16418,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
15716
16418
  twinfield_customers: {
15717
16419
  Row: {
15718
16420
  address: string | null;
16421
+ administration_code: string;
15719
16422
  city: string | null;
15720
16423
  country: string | null;
15721
16424
  created_at: string;
@@ -15735,6 +16438,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
15735
16438
  };
15736
16439
  Insert: {
15737
16440
  address?: string | null;
16441
+ administration_code?: string;
15738
16442
  city?: string | null;
15739
16443
  country?: string | null;
15740
16444
  created_at?: string;
@@ -15754,6 +16458,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
15754
16458
  };
15755
16459
  Update: {
15756
16460
  address?: string | null;
16461
+ administration_code?: string;
15757
16462
  city?: string | null;
15758
16463
  country?: string | null;
15759
16464
  created_at?: string;
@@ -15967,7 +16672,9 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
15967
16672
  };
15968
16673
  twinfield_invoice_settings: {
15969
16674
  Row: {
16675
+ administration_code: string | null;
15970
16676
  auto_invoice_enabled: boolean;
16677
+ auto_invoice_start_date: string | null;
15971
16678
  auto_invoice_trigger_statuses: string[];
15972
16679
  created_at: string;
15973
16680
  debtor_gl_account: string;
@@ -15981,15 +16688,19 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
15981
16688
  invoice_enabled_fo: boolean;
15982
16689
  invoice_enabled_ho: boolean;
15983
16690
  invoice_enabled_mo: boolean;
16691
+ needs_review: boolean;
15984
16692
  payment_gl_account: string;
15985
16693
  payment_journal_code: string;
16694
+ settings_confirmed_at: string | null;
15986
16695
  updated_at: string;
15987
16696
  user_id: string;
15988
16697
  vat_code_eu_reverse: string | null;
15989
16698
  vat_code_export: string | null;
15990
16699
  };
15991
16700
  Insert: {
16701
+ administration_code?: string | null;
15992
16702
  auto_invoice_enabled?: boolean;
16703
+ auto_invoice_start_date?: string | null;
15993
16704
  auto_invoice_trigger_statuses?: string[];
15994
16705
  created_at?: string;
15995
16706
  debtor_gl_account?: string;
@@ -16003,15 +16714,19 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
16003
16714
  invoice_enabled_fo?: boolean;
16004
16715
  invoice_enabled_ho?: boolean;
16005
16716
  invoice_enabled_mo?: boolean;
16717
+ needs_review?: boolean;
16006
16718
  payment_gl_account?: string;
16007
16719
  payment_journal_code?: string;
16720
+ settings_confirmed_at?: string | null;
16008
16721
  updated_at?: string;
16009
16722
  user_id: string;
16010
16723
  vat_code_eu_reverse?: string | null;
16011
16724
  vat_code_export?: string | null;
16012
16725
  };
16013
16726
  Update: {
16727
+ administration_code?: string | null;
16014
16728
  auto_invoice_enabled?: boolean;
16729
+ auto_invoice_start_date?: string | null;
16015
16730
  auto_invoice_trigger_statuses?: string[];
16016
16731
  created_at?: string;
16017
16732
  debtor_gl_account?: string;
@@ -16025,8 +16740,10 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
16025
16740
  invoice_enabled_fo?: boolean;
16026
16741
  invoice_enabled_ho?: boolean;
16027
16742
  invoice_enabled_mo?: boolean;
16743
+ needs_review?: boolean;
16028
16744
  payment_gl_account?: string;
16029
16745
  payment_journal_code?: string;
16746
+ settings_confirmed_at?: string | null;
16030
16747
  updated_at?: string;
16031
16748
  user_id?: string;
16032
16749
  vat_code_eu_reverse?: string | null;
@@ -16614,130 +17331,22 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
16614
17331
  created_by?: string | null;
16615
17332
  file_name?: string | null;
16616
17333
  id?: string;
16617
- monteur_ids?: string[];
16618
- period_end: string;
16619
- period_start: string;
16620
- row_count?: number;
16621
- };
16622
- Update: {
16623
- created_at?: string;
16624
- created_by?: string | null;
16625
- file_name?: string | null;
16626
- id?: string;
16627
- monteur_ids?: string[];
16628
- period_end?: string;
16629
- period_start?: string;
16630
- row_count?: number;
16631
- };
16632
- Relationships: [];
16633
- };
16634
- uren_facturen: {
16635
- Row: {
16636
- created_at: string;
16637
- created_by: string | null;
16638
- customer_id: string | null;
16639
- customer_name: string | null;
16640
- id: string;
16641
- invoice_number: string | null;
16642
- note: string | null;
16643
- status: string;
16644
- total_excl_cents: number;
16645
- total_incl_cents: number;
16646
- updated_at: string;
16647
- vat_cents: number;
16648
- vat_percentage: number;
16649
- werkbon_id: string | null;
16650
- };
16651
- Insert: {
16652
- created_at?: string;
16653
- created_by?: string | null;
16654
- customer_id?: string | null;
16655
- customer_name?: string | null;
16656
- id?: string;
16657
- invoice_number?: string | null;
16658
- note?: string | null;
16659
- status?: string;
16660
- total_excl_cents?: number;
16661
- total_incl_cents?: number;
16662
- updated_at?: string;
16663
- vat_cents?: number;
16664
- vat_percentage?: number;
16665
- werkbon_id?: string | null;
16666
- };
16667
- Update: {
16668
- created_at?: string;
16669
- created_by?: string | null;
16670
- customer_id?: string | null;
16671
- customer_name?: string | null;
16672
- id?: string;
16673
- invoice_number?: string | null;
16674
- note?: string | null;
16675
- status?: string;
16676
- total_excl_cents?: number;
16677
- total_incl_cents?: number;
16678
- updated_at?: string;
16679
- vat_cents?: number;
16680
- vat_percentage?: number;
16681
- werkbon_id?: string | null;
16682
- };
16683
- Relationships: [{
16684
- foreignKeyName: "uren_facturen_customer_id_fkey";
16685
- columns: ["customer_id"];
16686
- isOneToOne: false;
16687
- referencedRelation: "itk_customers";
16688
- referencedColumns: ["id"];
16689
- }, {
16690
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
16691
- columns: ["werkbon_id"];
16692
- isOneToOne: true;
16693
- referencedRelation: "werkbonnen";
16694
- referencedColumns: ["id"];
16695
- }];
16696
- };
16697
- uren_factuur_regels: {
16698
- Row: {
16699
- created_at: string;
16700
- description: string;
16701
- factuur_id: string;
16702
- id: string;
16703
- kind: string | null;
16704
- quantity: number;
16705
- sort_order: number;
16706
- total_cents: number;
16707
- unit: string;
16708
- unit_price_cents: number;
16709
- };
16710
- Insert: {
16711
- created_at?: string;
16712
- description: string;
16713
- factuur_id: string;
16714
- id?: string;
16715
- kind?: string | null;
16716
- quantity?: number;
16717
- sort_order?: number;
16718
- total_cents?: number;
16719
- unit?: string;
16720
- unit_price_cents?: number;
17334
+ monteur_ids?: string[];
17335
+ period_end: string;
17336
+ period_start: string;
17337
+ row_count?: number;
16721
17338
  };
16722
17339
  Update: {
16723
17340
  created_at?: string;
16724
- description?: string;
16725
- factuur_id?: string;
17341
+ created_by?: string | null;
17342
+ file_name?: string | null;
16726
17343
  id?: string;
16727
- kind?: string | null;
16728
- quantity?: number;
16729
- sort_order?: number;
16730
- total_cents?: number;
16731
- unit?: string;
16732
- unit_price_cents?: number;
17344
+ monteur_ids?: string[];
17345
+ period_end?: string;
17346
+ period_start?: string;
17347
+ row_count?: number;
16733
17348
  };
16734
- Relationships: [{
16735
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
16736
- columns: ["factuur_id"];
16737
- isOneToOne: false;
16738
- referencedRelation: "uren_facturen";
16739
- referencedColumns: ["id"];
16740
- }];
17349
+ Relationships: [];
16741
17350
  };
16742
17351
  uren_offerte_regels: {
16743
17352
  Row: {
@@ -17992,6 +18601,9 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
17992
18601
  scheduled_end_time: string | null;
17993
18602
  scheduled_start_time: string | null;
17994
18603
  sequence_number: number;
18604
+ signature_accepted_at: string | null;
18605
+ signature_by_user_id: string | null;
18606
+ signature_name: string | null;
17995
18607
  source_email_meta: import("../integrations/supabase/types").Json | null;
17996
18608
  source_mailbox_message_id: string | null;
17997
18609
  source_pdf_path: string | null;
@@ -18027,6 +18639,9 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
18027
18639
  scheduled_end_time?: string | null;
18028
18640
  scheduled_start_time?: string | null;
18029
18641
  sequence_number: number;
18642
+ signature_accepted_at?: string | null;
18643
+ signature_by_user_id?: string | null;
18644
+ signature_name?: string | null;
18030
18645
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18031
18646
  source_mailbox_message_id?: string | null;
18032
18647
  source_pdf_path?: string | null;
@@ -18062,6 +18677,9 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
18062
18677
  scheduled_end_time?: string | null;
18063
18678
  scheduled_start_time?: string | null;
18064
18679
  sequence_number?: number;
18680
+ signature_accepted_at?: string | null;
18681
+ signature_by_user_id?: string | null;
18682
+ signature_name?: string | null;
18065
18683
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18066
18684
  source_mailbox_message_id?: string | null;
18067
18685
  source_pdf_path?: string | null;
@@ -18578,6 +19196,114 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
18578
19196
  };
18579
19197
  Relationships: [];
18580
19198
  };
19199
+ uren_facturen: {
19200
+ Row: {
19201
+ created_at: string | null;
19202
+ created_by: string | null;
19203
+ customer_id: string | null;
19204
+ customer_name: string | null;
19205
+ id: string | null;
19206
+ invoice_number: string | null;
19207
+ note: string | null;
19208
+ status: string | null;
19209
+ total_excl_cents: number | null;
19210
+ total_incl_cents: number | null;
19211
+ updated_at: string | null;
19212
+ vat_cents: number | null;
19213
+ vat_percentage: number | null;
19214
+ werkbon_id: string | null;
19215
+ };
19216
+ Insert: {
19217
+ created_at?: string | null;
19218
+ created_by?: string | null;
19219
+ customer_id?: string | null;
19220
+ customer_name?: string | null;
19221
+ id?: string | null;
19222
+ invoice_number?: string | null;
19223
+ note?: string | null;
19224
+ status?: string | null;
19225
+ total_excl_cents?: number | null;
19226
+ total_incl_cents?: number | null;
19227
+ updated_at?: string | null;
19228
+ vat_cents?: number | null;
19229
+ vat_percentage?: number | null;
19230
+ werkbon_id?: never;
19231
+ };
19232
+ Update: {
19233
+ created_at?: string | null;
19234
+ created_by?: string | null;
19235
+ customer_id?: string | null;
19236
+ customer_name?: string | null;
19237
+ id?: string | null;
19238
+ invoice_number?: string | null;
19239
+ note?: string | null;
19240
+ status?: string | null;
19241
+ total_excl_cents?: number | null;
19242
+ total_incl_cents?: number | null;
19243
+ updated_at?: string | null;
19244
+ vat_cents?: number | null;
19245
+ vat_percentage?: number | null;
19246
+ werkbon_id?: never;
19247
+ };
19248
+ Relationships: [{
19249
+ foreignKeyName: "invoices_customer_id_fkey";
19250
+ columns: ["customer_id"];
19251
+ isOneToOne: false;
19252
+ referencedRelation: "itk_customers";
19253
+ referencedColumns: ["id"];
19254
+ }];
19255
+ };
19256
+ uren_factuur_regels: {
19257
+ Row: {
19258
+ created_at: string | null;
19259
+ description: string | null;
19260
+ factuur_id: string | null;
19261
+ id: string | null;
19262
+ kind: string | null;
19263
+ quantity: number | null;
19264
+ sort_order: number | null;
19265
+ total_cents: number | null;
19266
+ unit: string | null;
19267
+ unit_price_cents: number | null;
19268
+ };
19269
+ Insert: {
19270
+ created_at?: string | null;
19271
+ description?: string | null;
19272
+ factuur_id?: string | null;
19273
+ id?: string | null;
19274
+ kind?: string | null;
19275
+ quantity?: number | null;
19276
+ sort_order?: number | null;
19277
+ total_cents?: number | null;
19278
+ unit?: string | null;
19279
+ unit_price_cents?: number | null;
19280
+ };
19281
+ Update: {
19282
+ created_at?: string | null;
19283
+ description?: string | null;
19284
+ factuur_id?: string | null;
19285
+ id?: string | null;
19286
+ kind?: string | null;
19287
+ quantity?: number | null;
19288
+ sort_order?: number | null;
19289
+ total_cents?: number | null;
19290
+ unit?: string | null;
19291
+ unit_price_cents?: number | null;
19292
+ };
19293
+ Relationships: [{
19294
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19295
+ columns: ["factuur_id"];
19296
+ isOneToOne: false;
19297
+ referencedRelation: "invoices";
19298
+ referencedColumns: ["id"];
19299
+ }, {
19300
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19301
+ columns: ["factuur_id"];
19302
+ isOneToOne: false;
19303
+ referencedRelation: "uren_facturen";
19304
+ referencedColumns: ["id"];
19305
+ }];
19306
+ };
18581
19307
  v_external_customers_exact: {
18582
19308
  Row: {
18583
19309
  account_number: string | null;
@@ -19083,6 +19809,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
19083
19809
  gebruiker_id: string | null;
19084
19810
  gebruiker_naam: string;
19085
19811
  gestart_op: string | null;
19812
+ herkomst: string | null;
19086
19813
  id: string;
19087
19814
  idempotentie_sleutel: string | null;
19088
19815
  is_herprint: boolean;
@@ -19203,6 +19930,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
19203
19930
  gebruiker_id: string | null;
19204
19931
  gebruiker_naam: string;
19205
19932
  gestart_op: string | null;
19933
+ herkomst: string | null;
19206
19934
  id: string;
19207
19935
  idempotentie_sleutel: string | null;
19208
19936
  is_herprint: boolean;
@@ -19473,6 +20201,13 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
19473
20201
  };
19474
20202
  Returns: string;
19475
20203
  };
20204
+ employee_day_hours: {
20205
+ Args: {
20206
+ _day: string;
20207
+ _employee_id: string;
20208
+ };
20209
+ Returns: number;
20210
+ };
19476
20211
  enqueue_cart_replan_if_unlocked: {
19477
20212
  Args: {
19478
20213
  p_order_id: string;
@@ -19797,6 +20532,46 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
19797
20532
  Args: never;
19798
20533
  Returns: boolean;
19799
20534
  };
20535
+ invoice_create_from_source: {
20536
+ Args: {
20537
+ _payload?: import("../integrations/supabase/types").Json;
20538
+ _source_id: string;
20539
+ _source_type: string;
20540
+ };
20541
+ Returns: import("../integrations/supabase/types").Json;
20542
+ };
20543
+ invoice_get_billable_lines: {
20544
+ Args: {
20545
+ _invoice_id: string;
20546
+ };
20547
+ Returns: import("../integrations/supabase/types").Json;
20548
+ };
20549
+ invoice_get_for_source: {
20550
+ Args: {
20551
+ _source_id: string;
20552
+ _source_type: string;
20553
+ };
20554
+ Returns: import("../integrations/supabase/types").Json;
20555
+ };
20556
+ invoice_get_summary: {
20557
+ Args: {
20558
+ _invoice_id: string;
20559
+ };
20560
+ Returns: import("../integrations/supabase/types").Json;
20561
+ };
20562
+ invoice_list_sources: {
20563
+ Args: {
20564
+ _limit?: number;
20565
+ _source_type?: string;
20566
+ };
20567
+ Returns: import("../integrations/supabase/types").Json;
20568
+ };
20569
+ invoice_recalc_totals: {
20570
+ Args: {
20571
+ _invoice_id: string;
20572
+ };
20573
+ Returns: import("../integrations/supabase/types").Json;
20574
+ };
19800
20575
  is_authenticated: {
19801
20576
  Args: never;
19802
20577
  Returns: boolean;
@@ -19826,6 +20601,19 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
19826
20601
  Args: never;
19827
20602
  Returns: boolean;
19828
20603
  };
20604
+ itk_offerte_naar_werkbon: {
20605
+ Args: {
20606
+ _offerte_id: string;
20607
+ };
20608
+ Returns: string;
20609
+ };
20610
+ itk_offerte_restant_mandaat: {
20611
+ Args: {
20612
+ _exclude_offerte_id?: string;
20613
+ _werkbon_id: string;
20614
+ };
20615
+ Returns: number;
20616
+ };
19829
20617
  jwt_has_role: {
19830
20618
  Args: {
19831
20619
  _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
@@ -19836,12 +20624,45 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
19836
20624
  Args: never;
19837
20625
  Returns: {
19838
20626
  avatar_url: string;
20627
+ color: string;
19839
20628
  display_name: string;
19840
20629
  email: string;
20630
+ hours_fri: number;
20631
+ hours_mon: number;
20632
+ hours_thu: number;
20633
+ hours_tue: number;
20634
+ hours_wed: number;
19841
20635
  id: string;
20636
+ is_active: boolean;
20637
+ leave_balance_hours: number;
20638
+ persnr: string;
20639
+ phone: string;
19842
20640
  roles: string[];
19843
20641
  }[];
19844
20642
  };
20643
+ list_monteur_absences: {
20644
+ Args: {
20645
+ _from: string;
20646
+ _to: string;
20647
+ };
20648
+ Returns: {
20649
+ absence_date: string;
20650
+ end_time: string;
20651
+ full_day: boolean;
20652
+ kind: string;
20653
+ monteur_id: string;
20654
+ start_time: string;
20655
+ }[];
20656
+ };
20657
+ list_monteurs: {
20658
+ Args: never;
20659
+ Returns: {
20660
+ avatar_url: string;
20661
+ display_name: string;
20662
+ email: string;
20663
+ id: string;
20664
+ }[];
20665
+ };
19845
20666
  list_my_planning_items: {
19846
20667
  Args: {
19847
20668
  _from: string;
@@ -20253,6 +21074,23 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
20253
21074
  };
20254
21075
  Returns: string;
20255
21076
  };
21077
+ logistics_floriday_finish_push_v2: {
21078
+ Args: {
21079
+ _error?: string;
21080
+ _error_code?: string;
21081
+ _fulfillment_order_id?: string;
21082
+ _gateway_status?: number;
21083
+ _id: string;
21084
+ _max_age_hours?: number;
21085
+ _max_attempts?: number;
21086
+ _ok: boolean;
21087
+ _permanent?: boolean;
21088
+ _response?: import("../integrations/supabase/types").Json;
21089
+ _revision: number;
21090
+ _sent_hash?: string;
21091
+ };
21092
+ Returns: string;
21093
+ };
20256
21094
  logistics_floriday_prune_pushes: {
20257
21095
  Args: {
20258
21096
  _days?: number;
@@ -20795,6 +21633,13 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
20795
21633
  isSetofReturn: false;
20796
21634
  };
20797
21635
  };
21636
+ pick_cleanup_maintenance: {
21637
+ Args: {
21638
+ _heartbeat_hours?: number;
21639
+ _log_days?: number;
21640
+ };
21641
+ Returns: import("../integrations/supabase/types").Json;
21642
+ };
20798
21643
  pick_complete_print: {
20799
21644
  Args: {
20800
21645
  _printer_id: string;
@@ -20846,6 +21691,14 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
20846
21691
  Args: never;
20847
21692
  Returns: string;
20848
21693
  };
21694
+ pick_day_counts: {
21695
+ Args: {
21696
+ _pick_day?: string;
21697
+ _screen_id?: string;
21698
+ _station_id?: string;
21699
+ };
21700
+ Returns: import("../integrations/supabase/types").Json;
21701
+ };
20849
21702
  pick_document_layout_data: {
20850
21703
  Args: {
20851
21704
  _layout_id: string;
@@ -20883,6 +21736,14 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
20883
21736
  };
20884
21737
  Returns: undefined;
20885
21738
  };
21739
+ pick_reprint_document: {
21740
+ Args: {
21741
+ _queue_item_id: string;
21742
+ _session_id: string;
21743
+ _throttle_seconds?: number;
21744
+ };
21745
+ Returns: string;
21746
+ };
20886
21747
  pick_reset_print: {
20887
21748
  Args: {
20888
21749
  _queue_item_id: string;
@@ -20948,6 +21809,12 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
20948
21809
  };
20949
21810
  Returns: string;
20950
21811
  };
21812
+ pick_sync_queue_throttled: {
21813
+ Args: {
21814
+ _min_seconds?: number;
21815
+ };
21816
+ Returns: import("../integrations/supabase/types").Json;
21817
+ };
20951
21818
  pickstation_get_orders_raw: {
20952
21819
  Args: never;
20953
21820
  Returns: import("../integrations/supabase/types").Json;
@@ -21009,6 +21876,37 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
21009
21876
  };
21010
21877
  Returns: undefined;
21011
21878
  };
21879
+ quote_create_from_source: {
21880
+ Args: {
21881
+ _payload?: import("../integrations/supabase/types").Json;
21882
+ _source_id: string;
21883
+ _source_type: string;
21884
+ };
21885
+ Returns: string;
21886
+ };
21887
+ quote_get_billable_lines: {
21888
+ Args: {
21889
+ _quotation_id: string;
21890
+ };
21891
+ Returns: import("../integrations/supabase/types").Json;
21892
+ };
21893
+ quote_get_summary: {
21894
+ Args: {
21895
+ _quotation_id: string;
21896
+ };
21897
+ Returns: import("../integrations/supabase/types").Json;
21898
+ };
21899
+ quote_list_packages: {
21900
+ Args: never;
21901
+ Returns: import("../integrations/supabase/types").Json;
21902
+ };
21903
+ quote_list_sources: {
21904
+ Args: {
21905
+ _limit?: number;
21906
+ _source_type?: string;
21907
+ };
21908
+ Returns: import("../integrations/supabase/types").Json;
21909
+ };
21012
21910
  recompute_all_reserved_stock: {
21013
21911
  Args: never;
21014
21912
  Returns: undefined;
@@ -21062,6 +21960,12 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
21062
21960
  };
21063
21961
  Returns: boolean;
21064
21962
  };
21963
+ release_stale_order_invoice_links: {
21964
+ Args: {
21965
+ _minutes?: number;
21966
+ };
21967
+ Returns: number;
21968
+ };
21065
21969
  reorder_customer_price_groups: {
21066
21970
  Args: {
21067
21971
  _ids: string[];
@@ -21544,6 +22448,12 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
21544
22448
  };
21545
22449
  Returns: undefined;
21546
22450
  };
22451
+ sync_sick_time_off: {
22452
+ Args: {
22453
+ _period_id: string;
22454
+ };
22455
+ Returns: number;
22456
+ };
21547
22457
  trade_item_stock_duplicates: {
21548
22458
  Args: never;
21549
22459
  Returns: {
@@ -21574,6 +22484,20 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
21574
22484
  };
21575
22485
  Returns: undefined;
21576
22486
  };
22487
+ twinfield_deactivate_connection: {
22488
+ Args: {
22489
+ p_connection_id: string;
22490
+ p_user_id: string;
22491
+ };
22492
+ Returns: import("../integrations/supabase/types").Json;
22493
+ };
22494
+ twinfield_handle_administration_change: {
22495
+ Args: {
22496
+ _administration_code: string;
22497
+ _user_id: string;
22498
+ };
22499
+ Returns: undefined;
22500
+ };
21577
22501
  twinfield_prune_push_queue: {
21578
22502
  Args: never;
21579
22503
  Returns: number;
@@ -21593,10 +22517,11 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
21593
22517
  p_company_name?: string;
21594
22518
  p_environment: string;
21595
22519
  p_office_code?: string;
22520
+ p_reset_sync?: boolean;
21596
22521
  p_status?: string;
21597
22522
  p_user_id: string;
21598
22523
  };
21599
- Returns: string;
22524
+ Returns: import("../integrations/supabase/types").Json;
21600
22525
  };
21601
22526
  upsert_auto_fulfillment_log: {
21602
22527
  Args: {
@@ -21617,6 +22542,26 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
21617
22542
  Args: never;
21618
22543
  Returns: string;
21619
22544
  };
22545
+ wo_create_from_source: {
22546
+ Args: {
22547
+ _payload?: import("../integrations/supabase/types").Json;
22548
+ _source_id: string;
22549
+ _source_type: string;
22550
+ };
22551
+ Returns: string;
22552
+ };
22553
+ wo_get_billable_lines: {
22554
+ Args: {
22555
+ _work_order_id: string;
22556
+ };
22557
+ Returns: import("../integrations/supabase/types").Json;
22558
+ };
22559
+ wo_get_summary: {
22560
+ Args: {
22561
+ _work_order_id: string;
22562
+ };
22563
+ Returns: import("../integrations/supabase/types").Json;
22564
+ };
21620
22565
  };
21621
22566
  Enums: {
21622
22567
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";