@flowselections/floriday-verkoop-module 1.0.45 → 1.0.47

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 (69) hide show
  1. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +3 -1
  2. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
  3. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.js +90 -19
  4. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  5. package/dist-lib/components/verkoop/SalesOrderDetailView.js +1 -1
  6. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts +6 -0
  7. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts.map +1 -0
  8. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.js +26 -0
  9. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  10. package/dist-lib/components/verkoop/VerkoopOrdersPage.js +2 -1
  11. package/dist-lib/integrations/supabase/auth-middleware.d.ts +864 -161
  12. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/client.d.ts +864 -161
  14. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.js +2 -1
  16. package/dist-lib/integrations/supabase/client.server.d.ts +864 -161
  17. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts +6 -0
  19. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts.map +1 -0
  20. package/dist-lib/integrations/supabase/previewAuthStorage.js +92 -0
  21. package/dist-lib/integrations/supabase/types.d.ts +904 -185
  22. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  23. package/dist-lib/lib/cart-lock.functions.d.ts +864 -161
  24. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/cart-planning-settings.functions.d.ts +9577 -1844
  26. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/cart-replan.functions.d.ts +2544 -435
  28. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/create-order.functions.d.ts +14914 -2963
  30. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +2544 -435
  32. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +864 -161
  34. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/floriday-mirror.functions.d.ts +864 -161
  36. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/floriday-mirror.functions.js +39 -10
  38. package/dist-lib/lib/floriday-public.functions.d.ts +6019 -1098
  39. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/floriday-writes.functions.d.ts +4240 -725
  41. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/invoice-timing.functions.d.ts +3392 -580
  43. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/load-carriers.functions.d.ts +864 -161
  45. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/logistics-engine.functions.d.ts +4240 -725
  47. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/logistics-stock.functions.d.ts +1696 -290
  49. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/order-addresses.functions.d.ts +864 -161
  51. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/order-buffers.functions.d.ts +2544 -435
  53. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/order-carrier.functions.d.ts +1696 -290
  55. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/order-pickup.functions.d.ts +1696 -290
  57. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/order-shipments.functions.d.ts +3392 -580
  59. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  60. package/dist-lib/lib/salesorders-list.functions.d.ts +864 -161
  61. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/salesorders.functions.d.ts +4240 -725
  63. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +45850 -0
  65. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -0
  66. package/dist-lib/lib/stock-consumption-alerts.functions.js +50 -0
  67. package/dist-lib/lib/tradeitems.functions.d.ts +864 -161
  68. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  69. package/package.json +2 -1
@@ -709,6 +709,99 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
709
709
  };
710
710
  Relationships: [];
711
711
  };
712
+ artikelen_cache: {
713
+ Row: {
714
+ artikelcode: string;
715
+ bron: string;
716
+ bruto_prijs_cent: number | null;
717
+ created_at: string;
718
+ eenheid: string;
719
+ fabrikant: string | null;
720
+ fetched_at: string;
721
+ gtin: string | null;
722
+ id: string;
723
+ naam: string;
724
+ netto_prijs_cent: number | null;
725
+ omschrijving: string | null;
726
+ raw: import("../integrations/supabase/types").Json;
727
+ updated_at: string;
728
+ valuta: string;
729
+ };
730
+ Insert: {
731
+ artikelcode: string;
732
+ bron?: string;
733
+ bruto_prijs_cent?: number | null;
734
+ created_at?: string;
735
+ eenheid?: string;
736
+ fabrikant?: string | null;
737
+ fetched_at?: string;
738
+ gtin?: string | null;
739
+ id?: string;
740
+ naam: string;
741
+ netto_prijs_cent?: number | null;
742
+ omschrijving?: string | null;
743
+ raw?: import("../integrations/supabase/types").Json;
744
+ updated_at?: string;
745
+ valuta?: string;
746
+ };
747
+ Update: {
748
+ artikelcode?: string;
749
+ bron?: string;
750
+ bruto_prijs_cent?: number | null;
751
+ created_at?: string;
752
+ eenheid?: string;
753
+ fabrikant?: string | null;
754
+ fetched_at?: string;
755
+ gtin?: string | null;
756
+ id?: string;
757
+ naam?: string;
758
+ netto_prijs_cent?: number | null;
759
+ omschrijving?: string | null;
760
+ raw?: import("../integrations/supabase/types").Json;
761
+ updated_at?: string;
762
+ valuta?: string;
763
+ };
764
+ Relationships: [];
765
+ };
766
+ artikelen_veldconfig: {
767
+ Row: {
768
+ bron_pad: string;
769
+ created_at: string;
770
+ id: string;
771
+ label: string;
772
+ sort_order: number;
773
+ type: string;
774
+ updated_at: string;
775
+ veld_key: string;
776
+ zichtbaar_in_detail: boolean;
777
+ zichtbaar_in_lijst: boolean;
778
+ };
779
+ Insert: {
780
+ bron_pad: string;
781
+ created_at?: string;
782
+ id?: string;
783
+ label: string;
784
+ sort_order?: number;
785
+ type?: string;
786
+ updated_at?: string;
787
+ veld_key: string;
788
+ zichtbaar_in_detail?: boolean;
789
+ zichtbaar_in_lijst?: boolean;
790
+ };
791
+ Update: {
792
+ bron_pad?: string;
793
+ created_at?: string;
794
+ id?: string;
795
+ label?: string;
796
+ sort_order?: number;
797
+ type?: string;
798
+ updated_at?: string;
799
+ veld_key?: string;
800
+ zichtbaar_in_detail?: boolean;
801
+ zichtbaar_in_lijst?: boolean;
802
+ };
803
+ Relationships: [];
804
+ };
712
805
  booking_items: {
713
806
  Row: {
714
807
  booking_id: string;
@@ -2794,6 +2887,42 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
2794
2887
  };
2795
2888
  Relationships: [];
2796
2889
  };
2890
+ document_bronregels: {
2891
+ Row: {
2892
+ bron: string;
2893
+ created_at: string;
2894
+ documenttype: string;
2895
+ herkomst: string;
2896
+ id: string;
2897
+ layout_id: string | null;
2898
+ updated_at: string;
2899
+ };
2900
+ Insert: {
2901
+ bron?: string;
2902
+ created_at?: string;
2903
+ documenttype: string;
2904
+ herkomst: string;
2905
+ id?: string;
2906
+ layout_id?: string | null;
2907
+ updated_at?: string;
2908
+ };
2909
+ Update: {
2910
+ bron?: string;
2911
+ created_at?: string;
2912
+ documenttype?: string;
2913
+ herkomst?: string;
2914
+ id?: string;
2915
+ layout_id?: string | null;
2916
+ updated_at?: string;
2917
+ };
2918
+ Relationships: [{
2919
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2920
+ columns: ["layout_id"];
2921
+ isOneToOne: false;
2922
+ referencedRelation: "document_layouts";
2923
+ referencedColumns: ["id"];
2924
+ }];
2925
+ };
2797
2926
  document_formaat_printers: {
2798
2927
  Row: {
2799
2928
  created_at: string;
@@ -3071,6 +3200,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
3071
3200
  Row: {
3072
3201
  actief: boolean;
3073
3202
  breedte_mm: number;
3203
+ bron: string;
3074
3204
  config: import("../integrations/supabase/types").Json;
3075
3205
  created_at: string;
3076
3206
  created_by: string | null;
@@ -3088,12 +3218,14 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
3088
3218
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3089
3219
  page_settings: import("../integrations/supabase/types").Json;
3090
3220
  papierformaat: string;
3221
+ systeem: boolean;
3091
3222
  thumbnail_url: string | null;
3092
3223
  updated_at: string;
3093
3224
  };
3094
3225
  Insert: {
3095
3226
  actief?: boolean;
3096
3227
  breedte_mm?: number;
3228
+ bron?: string;
3097
3229
  config?: import("../integrations/supabase/types").Json;
3098
3230
  created_at?: string;
3099
3231
  created_by?: string | null;
@@ -3111,12 +3243,14 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
3111
3243
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3112
3244
  page_settings?: import("../integrations/supabase/types").Json;
3113
3245
  papierformaat?: string;
3246
+ systeem?: boolean;
3114
3247
  thumbnail_url?: string | null;
3115
3248
  updated_at?: string;
3116
3249
  };
3117
3250
  Update: {
3118
3251
  actief?: boolean;
3119
3252
  breedte_mm?: number;
3253
+ bron?: string;
3120
3254
  config?: import("../integrations/supabase/types").Json;
3121
3255
  created_at?: string;
3122
3256
  created_by?: string | null;
@@ -3134,11 +3268,90 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
3134
3268
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3135
3269
  page_settings?: import("../integrations/supabase/types").Json;
3136
3270
  papierformaat?: string;
3271
+ systeem?: boolean;
3137
3272
  thumbnail_url?: string | null;
3138
3273
  updated_at?: string;
3139
3274
  };
3140
3275
  Relationships: [];
3141
3276
  };
3277
+ document_printplek_printers: {
3278
+ Row: {
3279
+ created_at: string;
3280
+ documenttype: string;
3281
+ id: string;
3282
+ papierformaat: string | null;
3283
+ print_plek_id: string;
3284
+ printer_id: string | null;
3285
+ updated_at: string;
3286
+ };
3287
+ Insert: {
3288
+ created_at?: string;
3289
+ documenttype: string;
3290
+ id?: string;
3291
+ papierformaat?: string | null;
3292
+ print_plek_id: string;
3293
+ printer_id?: string | null;
3294
+ updated_at?: string;
3295
+ };
3296
+ Update: {
3297
+ created_at?: string;
3298
+ documenttype?: string;
3299
+ id?: string;
3300
+ papierformaat?: string | null;
3301
+ print_plek_id?: string;
3302
+ printer_id?: string | null;
3303
+ updated_at?: string;
3304
+ };
3305
+ Relationships: [{
3306
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
3307
+ columns: ["print_plek_id"];
3308
+ isOneToOne: false;
3309
+ referencedRelation: "print_plekken";
3310
+ referencedColumns: ["id"];
3311
+ }, {
3312
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
3313
+ columns: ["printer_id"];
3314
+ isOneToOne: false;
3315
+ referencedRelation: "printers";
3316
+ referencedColumns: ["id"];
3317
+ }];
3318
+ };
3319
+ document_werkplek_printers: {
3320
+ Row: {
3321
+ created_at: string;
3322
+ documenttype: string;
3323
+ id: string;
3324
+ papierformaat: string | null;
3325
+ printer_id: string | null;
3326
+ updated_at: string;
3327
+ werkplek: string;
3328
+ };
3329
+ Insert: {
3330
+ created_at?: string;
3331
+ documenttype: string;
3332
+ id?: string;
3333
+ papierformaat?: string | null;
3334
+ printer_id?: string | null;
3335
+ updated_at?: string;
3336
+ werkplek: string;
3337
+ };
3338
+ Update: {
3339
+ created_at?: string;
3340
+ documenttype?: string;
3341
+ id?: string;
3342
+ papierformaat?: string | null;
3343
+ printer_id?: string | null;
3344
+ updated_at?: string;
3345
+ werkplek?: string;
3346
+ };
3347
+ Relationships: [{
3348
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3349
+ columns: ["printer_id"];
3350
+ isOneToOne: false;
3351
+ referencedRelation: "printers";
3352
+ referencedColumns: ["id"];
3353
+ }];
3354
+ };
3142
3355
  email_auth_connections: {
3143
3356
  Row: {
3144
3357
  access_token_encrypted: string | null;
@@ -5080,42 +5293,6 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
5080
5293
  };
5081
5294
  Relationships: [];
5082
5295
  };
5083
- facturen: {
5084
- Row: {
5085
- bedrag_incl_btw: number;
5086
- created_at: string;
5087
- datum: string;
5088
- factuurnummer: string;
5089
- id: string;
5090
- klantnaam: string;
5091
- status: string;
5092
- updated_at: string;
5093
- user_id: string;
5094
- };
5095
- Insert: {
5096
- bedrag_incl_btw: number;
5097
- created_at?: string;
5098
- datum?: string;
5099
- factuurnummer: string;
5100
- id?: string;
5101
- klantnaam: string;
5102
- status?: string;
5103
- updated_at?: string;
5104
- user_id?: string;
5105
- };
5106
- Update: {
5107
- bedrag_incl_btw?: number;
5108
- created_at?: string;
5109
- datum?: string;
5110
- factuurnummer?: string;
5111
- id?: string;
5112
- klantnaam?: string;
5113
- status?: string;
5114
- updated_at?: string;
5115
- user_id?: string;
5116
- };
5117
- Relationships: [];
5118
- };
5119
5296
  floricode_connection_settings: {
5120
5297
  Row: {
5121
5298
  catalog_key: string | null;
@@ -7420,8 +7597,63 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
7420
7597
  };
7421
7598
  Relationships: [];
7422
7599
  };
7600
+ invoice_items: {
7601
+ Row: {
7602
+ created_at: string;
7603
+ description: string;
7604
+ id: string;
7605
+ invoice_id: string;
7606
+ kind: string;
7607
+ quantity: number;
7608
+ sort_order: number;
7609
+ source_line_ref: string | null;
7610
+ total_cents: number;
7611
+ unit: string;
7612
+ unit_price_cents: number;
7613
+ };
7614
+ Insert: {
7615
+ created_at?: string;
7616
+ description?: string;
7617
+ id?: string;
7618
+ invoice_id: string;
7619
+ kind?: string;
7620
+ quantity?: number;
7621
+ sort_order?: number;
7622
+ source_line_ref?: string | null;
7623
+ total_cents?: number;
7624
+ unit?: string;
7625
+ unit_price_cents?: number;
7626
+ };
7627
+ Update: {
7628
+ created_at?: string;
7629
+ description?: string;
7630
+ id?: string;
7631
+ invoice_id?: string;
7632
+ kind?: string;
7633
+ quantity?: number;
7634
+ sort_order?: number;
7635
+ source_line_ref?: string | null;
7636
+ total_cents?: number;
7637
+ unit?: string;
7638
+ unit_price_cents?: number;
7639
+ };
7640
+ Relationships: [{
7641
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7642
+ columns: ["invoice_id"];
7643
+ isOneToOne: false;
7644
+ referencedRelation: "invoices";
7645
+ referencedColumns: ["id"];
7646
+ }, {
7647
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7648
+ columns: ["invoice_id"];
7649
+ isOneToOne: false;
7650
+ referencedRelation: "uren_facturen";
7651
+ referencedColumns: ["id"];
7652
+ }];
7653
+ };
7423
7654
  invoice_post_idempotency: {
7424
7655
  Row: {
7656
+ administration_code: string;
7425
7657
  client_request_id: string;
7426
7658
  completed_at: string | null;
7427
7659
  created_at: string;
@@ -7431,6 +7663,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
7431
7663
  user_id: string;
7432
7664
  };
7433
7665
  Insert: {
7666
+ administration_code?: string;
7434
7667
  client_request_id: string;
7435
7668
  completed_at?: string | null;
7436
7669
  created_at?: string;
@@ -7440,6 +7673,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
7440
7673
  user_id: string;
7441
7674
  };
7442
7675
  Update: {
7676
+ administration_code?: string;
7443
7677
  client_request_id?: string;
7444
7678
  completed_at?: string | null;
7445
7679
  created_at?: string;
@@ -7645,6 +7879,75 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
7645
7879
  };
7646
7880
  Relationships: [];
7647
7881
  };
7882
+ invoices: {
7883
+ Row: {
7884
+ created_at: string;
7885
+ created_by: string | null;
7886
+ customer_id: string | null;
7887
+ customer_name: string | null;
7888
+ due_date: string | null;
7889
+ id: string;
7890
+ invoice_date: string;
7891
+ invoice_number: string | null;
7892
+ note: string | null;
7893
+ source_number: string | null;
7894
+ source_ref: string | null;
7895
+ source_type: string;
7896
+ status: string;
7897
+ subtotal_cents: number;
7898
+ total_cents: number;
7899
+ updated_at: string;
7900
+ vat_cents: number;
7901
+ vat_rate: number;
7902
+ };
7903
+ Insert: {
7904
+ created_at?: string;
7905
+ created_by?: string | null;
7906
+ customer_id?: string | null;
7907
+ customer_name?: string | null;
7908
+ due_date?: string | null;
7909
+ id?: string;
7910
+ invoice_date?: string;
7911
+ invoice_number?: string | null;
7912
+ note?: string | null;
7913
+ source_number?: string | null;
7914
+ source_ref?: string | null;
7915
+ source_type?: string;
7916
+ status?: string;
7917
+ subtotal_cents?: number;
7918
+ total_cents?: number;
7919
+ updated_at?: string;
7920
+ vat_cents?: number;
7921
+ vat_rate?: number;
7922
+ };
7923
+ Update: {
7924
+ created_at?: string;
7925
+ created_by?: string | null;
7926
+ customer_id?: string | null;
7927
+ customer_name?: string | null;
7928
+ due_date?: string | null;
7929
+ id?: string;
7930
+ invoice_date?: string;
7931
+ invoice_number?: string | null;
7932
+ note?: string | null;
7933
+ source_number?: string | null;
7934
+ source_ref?: string | null;
7935
+ source_type?: string;
7936
+ status?: string;
7937
+ subtotal_cents?: number;
7938
+ total_cents?: number;
7939
+ updated_at?: string;
7940
+ vat_cents?: number;
7941
+ vat_rate?: number;
7942
+ };
7943
+ Relationships: [{
7944
+ foreignKeyName: "invoices_customer_id_fkey";
7945
+ columns: ["customer_id"];
7946
+ isOneToOne: false;
7947
+ referencedRelation: "itk_customers";
7948
+ referencedColumns: ["id"];
7949
+ }];
7950
+ };
7648
7951
  itk_contact_persons: {
7649
7952
  Row: {
7650
7953
  created_at: string;
@@ -8992,6 +9295,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
8992
9295
  id: string;
8993
9296
  last_error: string | null;
8994
9297
  last_error_at: string | null;
9298
+ last_error_code: string | null;
9299
+ last_gateway_status: number | null;
9300
+ last_queued_at: string | null;
9301
+ last_response: import("../integrations/supabase/types").Json | null;
8995
9302
  last_sent_hash: string | null;
8996
9303
  locked_by: string | null;
8997
9304
  locked_until: string | null;
@@ -9012,6 +9319,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
9012
9319
  id?: string;
9013
9320
  last_error?: string | null;
9014
9321
  last_error_at?: string | null;
9322
+ last_error_code?: string | null;
9323
+ last_gateway_status?: number | null;
9324
+ last_queued_at?: string | null;
9325
+ last_response?: import("../integrations/supabase/types").Json | null;
9015
9326
  last_sent_hash?: string | null;
9016
9327
  locked_by?: string | null;
9017
9328
  locked_until?: string | null;
@@ -9032,6 +9343,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
9032
9343
  id?: string;
9033
9344
  last_error?: string | null;
9034
9345
  last_error_at?: string | null;
9346
+ last_error_code?: string | null;
9347
+ last_gateway_status?: number | null;
9348
+ last_queued_at?: string | null;
9349
+ last_response?: import("../integrations/supabase/types").Json | null;
9035
9350
  last_sent_hash?: string | null;
9036
9351
  locked_by?: string | null;
9037
9352
  locked_until?: string | null;
@@ -10585,6 +10900,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10585
10900
  enforce: boolean;
10586
10901
  is_active: boolean;
10587
10902
  last_seen_at: string;
10903
+ missing_count: number;
10588
10904
  module_id: string;
10589
10905
  name: string;
10590
10906
  shell_id: string | null;
@@ -10595,6 +10911,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10595
10911
  enforce?: boolean;
10596
10912
  is_active?: boolean;
10597
10913
  last_seen_at?: string;
10914
+ missing_count?: number;
10598
10915
  module_id: string;
10599
10916
  name: string;
10600
10917
  shell_id?: string | null;
@@ -10605,6 +10922,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10605
10922
  enforce?: boolean;
10606
10923
  is_active?: boolean;
10607
10924
  last_seen_at?: string;
10925
+ missing_count?: number;
10608
10926
  module_id?: string;
10609
10927
  name?: string;
10610
10928
  shell_id?: string | null;
@@ -11604,6 +11922,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
11604
11922
  };
11605
11923
  order_invoice_links: {
11606
11924
  Row: {
11925
+ administration_code: string | null;
11607
11926
  attempts: number;
11608
11927
  created_at: string;
11609
11928
  error_message: string | null;
@@ -11616,6 +11935,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
11616
11935
  updated_at: string;
11617
11936
  };
11618
11937
  Insert: {
11938
+ administration_code?: string | null;
11619
11939
  attempts?: number;
11620
11940
  created_at?: string;
11621
11941
  error_message?: string | null;
@@ -11628,6 +11948,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
11628
11948
  updated_at?: string;
11629
11949
  };
11630
11950
  Update: {
11951
+ administration_code?: string | null;
11631
11952
  attempts?: number;
11632
11953
  created_at?: string;
11633
11954
  error_message?: string | null;
@@ -12793,6 +13114,27 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
12793
13114
  referencedColumns: ["id"];
12794
13115
  }];
12795
13116
  };
13117
+ pick_sync_state: {
13118
+ Row: {
13119
+ id: boolean;
13120
+ last_cleanup_at: string | null;
13121
+ last_sync_at: string | null;
13122
+ updated_at: string;
13123
+ };
13124
+ Insert: {
13125
+ id?: boolean;
13126
+ last_cleanup_at?: string | null;
13127
+ last_sync_at?: string | null;
13128
+ updated_at?: string;
13129
+ };
13130
+ Update: {
13131
+ id?: boolean;
13132
+ last_cleanup_at?: string | null;
13133
+ last_sync_at?: string | null;
13134
+ updated_at?: string;
13135
+ };
13136
+ Relationships: [];
13137
+ };
12796
13138
  pick_task_document_types: {
12797
13139
  Row: {
12798
13140
  created_at: string;
@@ -13075,6 +13417,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13075
13417
  gebruiker_id: string | null;
13076
13418
  gebruiker_naam: string;
13077
13419
  gestart_op: string | null;
13420
+ herkomst: string | null;
13078
13421
  id: string;
13079
13422
  idempotentie_sleutel: string | null;
13080
13423
  is_herprint: boolean;
@@ -13104,6 +13447,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13104
13447
  gebruiker_id?: string | null;
13105
13448
  gebruiker_naam?: string;
13106
13449
  gestart_op?: string | null;
13450
+ herkomst?: string | null;
13107
13451
  id?: string;
13108
13452
  idempotentie_sleutel?: string | null;
13109
13453
  is_herprint?: boolean;
@@ -13133,6 +13477,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13133
13477
  gebruiker_id?: string | null;
13134
13478
  gebruiker_naam?: string;
13135
13479
  gestart_op?: string | null;
13480
+ herkomst?: string | null;
13136
13481
  id?: string;
13137
13482
  idempotentie_sleutel?: string | null;
13138
13483
  is_herprint?: boolean;
@@ -13171,6 +13516,99 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13171
13516
  referencedColumns: ["id"];
13172
13517
  }];
13173
13518
  };
13519
+ print_plek_computers: {
13520
+ Row: {
13521
+ computer_naam: string;
13522
+ created_at: string;
13523
+ id: string;
13524
+ print_plek_id: string;
13525
+ updated_at: string;
13526
+ };
13527
+ Insert: {
13528
+ computer_naam: string;
13529
+ created_at?: string;
13530
+ id?: string;
13531
+ print_plek_id: string;
13532
+ updated_at?: string;
13533
+ };
13534
+ Update: {
13535
+ computer_naam?: string;
13536
+ created_at?: string;
13537
+ id?: string;
13538
+ print_plek_id?: string;
13539
+ updated_at?: string;
13540
+ };
13541
+ Relationships: [{
13542
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
13543
+ columns: ["print_plek_id"];
13544
+ isOneToOne: false;
13545
+ referencedRelation: "print_plekken";
13546
+ referencedColumns: ["id"];
13547
+ }];
13548
+ };
13549
+ print_plek_koppelingen: {
13550
+ Row: {
13551
+ bron: string;
13552
+ bron_id: string;
13553
+ created_at: string;
13554
+ id: string;
13555
+ label: string | null;
13556
+ print_plek_id: string;
13557
+ updated_at: string;
13558
+ };
13559
+ Insert: {
13560
+ bron: string;
13561
+ bron_id: string;
13562
+ created_at?: string;
13563
+ id?: string;
13564
+ label?: string | null;
13565
+ print_plek_id: string;
13566
+ updated_at?: string;
13567
+ };
13568
+ Update: {
13569
+ bron?: string;
13570
+ bron_id?: string;
13571
+ created_at?: string;
13572
+ id?: string;
13573
+ label?: string | null;
13574
+ print_plek_id?: string;
13575
+ updated_at?: string;
13576
+ };
13577
+ Relationships: [{
13578
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
13579
+ columns: ["print_plek_id"];
13580
+ isOneToOne: false;
13581
+ referencedRelation: "print_plekken";
13582
+ referencedColumns: ["id"];
13583
+ }];
13584
+ };
13585
+ print_plekken: {
13586
+ Row: {
13587
+ actief: boolean;
13588
+ created_at: string;
13589
+ id: string;
13590
+ naam: string;
13591
+ omschrijving: string | null;
13592
+ updated_at: string;
13593
+ };
13594
+ Insert: {
13595
+ actief?: boolean;
13596
+ created_at?: string;
13597
+ id?: string;
13598
+ naam: string;
13599
+ omschrijving?: string | null;
13600
+ updated_at?: string;
13601
+ };
13602
+ Update: {
13603
+ actief?: boolean;
13604
+ created_at?: string;
13605
+ id?: string;
13606
+ naam?: string;
13607
+ omschrijving?: string | null;
13608
+ updated_at?: string;
13609
+ };
13610
+ Relationships: [];
13611
+ };
13174
13612
  print_queue_runners: {
13175
13613
  Row: {
13176
13614
  actief: boolean;
@@ -15325,6 +15763,45 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
15325
15763
  };
15326
15764
  Relationships: [];
15327
15765
  };
15766
+ stock_consumption_alerts: {
15767
+ Row: {
15768
+ alert_type: string;
15769
+ created_at: string;
15770
+ id: string;
15771
+ mutation_log_id: string | null;
15772
+ order_id: string | null;
15773
+ order_item_id: string | null;
15774
+ qty: number;
15775
+ reason: string | null;
15776
+ resolved_at: string | null;
15777
+ updated_at: string;
15778
+ };
15779
+ Insert: {
15780
+ alert_type: string;
15781
+ created_at?: string;
15782
+ id?: string;
15783
+ mutation_log_id?: string | null;
15784
+ order_id?: string | null;
15785
+ order_item_id?: string | null;
15786
+ qty?: number;
15787
+ reason?: string | null;
15788
+ resolved_at?: string | null;
15789
+ updated_at?: string;
15790
+ };
15791
+ Update: {
15792
+ alert_type?: string;
15793
+ created_at?: string;
15794
+ id?: string;
15795
+ mutation_log_id?: string | null;
15796
+ order_id?: string | null;
15797
+ order_item_id?: string | null;
15798
+ qty?: number;
15799
+ reason?: string | null;
15800
+ resolved_at?: string | null;
15801
+ updated_at?: string;
15802
+ };
15803
+ Relationships: [];
15804
+ };
15328
15805
  stock_import_runs: {
15329
15806
  Row: {
15330
15807
  connection_id: string | null;
@@ -16137,12 +16614,16 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16137
16614
  company_name: string | null;
16138
16615
  connected_at: string | null;
16139
16616
  created_at: string;
16617
+ disconnected_at: string | null;
16140
16618
  environment: string;
16141
16619
  id: string;
16620
+ initial_sync_completed_at: string | null;
16621
+ initial_sync_started_at: string | null;
16142
16622
  is_active: boolean;
16143
16623
  label: string | null;
16144
16624
  office_code: string | null;
16145
16625
  redirect_uri: string | null;
16626
+ superseded_at: string | null;
16146
16627
  updated_at: string;
16147
16628
  user_id: string;
16148
16629
  };
@@ -16153,12 +16634,16 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16153
16634
  company_name?: string | null;
16154
16635
  connected_at?: string | null;
16155
16636
  created_at?: string;
16637
+ disconnected_at?: string | null;
16156
16638
  environment: string;
16157
16639
  id?: string;
16640
+ initial_sync_completed_at?: string | null;
16641
+ initial_sync_started_at?: string | null;
16158
16642
  is_active?: boolean;
16159
16643
  label?: string | null;
16160
16644
  office_code?: string | null;
16161
16645
  redirect_uri?: string | null;
16646
+ superseded_at?: string | null;
16162
16647
  updated_at?: string;
16163
16648
  user_id: string;
16164
16649
  };
@@ -16169,12 +16654,16 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16169
16654
  company_name?: string | null;
16170
16655
  connected_at?: string | null;
16171
16656
  created_at?: string;
16657
+ disconnected_at?: string | null;
16172
16658
  environment?: string;
16173
16659
  id?: string;
16660
+ initial_sync_completed_at?: string | null;
16661
+ initial_sync_started_at?: string | null;
16174
16662
  is_active?: boolean;
16175
16663
  label?: string | null;
16176
16664
  office_code?: string | null;
16177
16665
  redirect_uri?: string | null;
16666
+ superseded_at?: string | null;
16178
16667
  updated_at?: string;
16179
16668
  user_id?: string;
16180
16669
  };
@@ -16234,6 +16723,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16234
16723
  twinfield_customers: {
16235
16724
  Row: {
16236
16725
  address: string | null;
16726
+ administration_code: string;
16237
16727
  city: string | null;
16238
16728
  country: string | null;
16239
16729
  created_at: string;
@@ -16253,6 +16743,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16253
16743
  };
16254
16744
  Insert: {
16255
16745
  address?: string | null;
16746
+ administration_code?: string;
16256
16747
  city?: string | null;
16257
16748
  country?: string | null;
16258
16749
  created_at?: string;
@@ -16272,6 +16763,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16272
16763
  };
16273
16764
  Update: {
16274
16765
  address?: string | null;
16766
+ administration_code?: string;
16275
16767
  city?: string | null;
16276
16768
  country?: string | null;
16277
16769
  created_at?: string;
@@ -16485,7 +16977,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16485
16977
  };
16486
16978
  twinfield_invoice_settings: {
16487
16979
  Row: {
16980
+ administration_code: string | null;
16488
16981
  auto_invoice_enabled: boolean;
16982
+ auto_invoice_start_date: string | null;
16489
16983
  auto_invoice_trigger_statuses: string[];
16490
16984
  created_at: string;
16491
16985
  debtor_gl_account: string;
@@ -16499,15 +16993,19 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16499
16993
  invoice_enabled_fo: boolean;
16500
16994
  invoice_enabled_ho: boolean;
16501
16995
  invoice_enabled_mo: boolean;
16996
+ needs_review: boolean;
16502
16997
  payment_gl_account: string;
16503
16998
  payment_journal_code: string;
16999
+ settings_confirmed_at: string | null;
16504
17000
  updated_at: string;
16505
17001
  user_id: string;
16506
17002
  vat_code_eu_reverse: string | null;
16507
17003
  vat_code_export: string | null;
16508
17004
  };
16509
17005
  Insert: {
17006
+ administration_code?: string | null;
16510
17007
  auto_invoice_enabled?: boolean;
17008
+ auto_invoice_start_date?: string | null;
16511
17009
  auto_invoice_trigger_statuses?: string[];
16512
17010
  created_at?: string;
16513
17011
  debtor_gl_account?: string;
@@ -16521,15 +17019,19 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16521
17019
  invoice_enabled_fo?: boolean;
16522
17020
  invoice_enabled_ho?: boolean;
16523
17021
  invoice_enabled_mo?: boolean;
17022
+ needs_review?: boolean;
16524
17023
  payment_gl_account?: string;
16525
17024
  payment_journal_code?: string;
17025
+ settings_confirmed_at?: string | null;
16526
17026
  updated_at?: string;
16527
17027
  user_id: string;
16528
17028
  vat_code_eu_reverse?: string | null;
16529
17029
  vat_code_export?: string | null;
16530
17030
  };
16531
17031
  Update: {
17032
+ administration_code?: string | null;
16532
17033
  auto_invoice_enabled?: boolean;
17034
+ auto_invoice_start_date?: string | null;
16533
17035
  auto_invoice_trigger_statuses?: string[];
16534
17036
  created_at?: string;
16535
17037
  debtor_gl_account?: string;
@@ -16543,8 +17045,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16543
17045
  invoice_enabled_fo?: boolean;
16544
17046
  invoice_enabled_ho?: boolean;
16545
17047
  invoice_enabled_mo?: boolean;
17048
+ needs_review?: boolean;
16546
17049
  payment_gl_account?: string;
16547
17050
  payment_journal_code?: string;
17051
+ settings_confirmed_at?: string | null;
16548
17052
  updated_at?: string;
16549
17053
  user_id?: string;
16550
17054
  vat_code_eu_reverse?: string | null;
@@ -17149,114 +17653,6 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
17149
17653
  };
17150
17654
  Relationships: [];
17151
17655
  };
17152
- uren_facturen: {
17153
- Row: {
17154
- created_at: string;
17155
- created_by: string | null;
17156
- customer_id: string | null;
17157
- customer_name: string | null;
17158
- id: string;
17159
- invoice_number: string | null;
17160
- note: string | null;
17161
- status: string;
17162
- total_excl_cents: number;
17163
- total_incl_cents: number;
17164
- updated_at: string;
17165
- vat_cents: number;
17166
- vat_percentage: number;
17167
- werkbon_id: string | null;
17168
- };
17169
- Insert: {
17170
- created_at?: string;
17171
- created_by?: string | null;
17172
- customer_id?: string | null;
17173
- customer_name?: string | null;
17174
- id?: string;
17175
- invoice_number?: string | null;
17176
- note?: string | null;
17177
- status?: string;
17178
- total_excl_cents?: number;
17179
- total_incl_cents?: number;
17180
- updated_at?: string;
17181
- vat_cents?: number;
17182
- vat_percentage?: number;
17183
- werkbon_id?: string | null;
17184
- };
17185
- Update: {
17186
- created_at?: string;
17187
- created_by?: string | null;
17188
- customer_id?: string | null;
17189
- customer_name?: string | null;
17190
- id?: string;
17191
- invoice_number?: string | null;
17192
- note?: string | null;
17193
- status?: string;
17194
- total_excl_cents?: number;
17195
- total_incl_cents?: number;
17196
- updated_at?: string;
17197
- vat_cents?: number;
17198
- vat_percentage?: number;
17199
- werkbon_id?: string | null;
17200
- };
17201
- Relationships: [{
17202
- foreignKeyName: "uren_facturen_customer_id_fkey";
17203
- columns: ["customer_id"];
17204
- isOneToOne: false;
17205
- referencedRelation: "itk_customers";
17206
- referencedColumns: ["id"];
17207
- }, {
17208
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
17209
- columns: ["werkbon_id"];
17210
- isOneToOne: true;
17211
- referencedRelation: "werkbonnen";
17212
- referencedColumns: ["id"];
17213
- }];
17214
- };
17215
- uren_factuur_regels: {
17216
- Row: {
17217
- created_at: string;
17218
- description: string;
17219
- factuur_id: string;
17220
- id: string;
17221
- kind: string | null;
17222
- quantity: number;
17223
- sort_order: number;
17224
- total_cents: number;
17225
- unit: string;
17226
- unit_price_cents: number;
17227
- };
17228
- Insert: {
17229
- created_at?: string;
17230
- description: string;
17231
- factuur_id: string;
17232
- id?: string;
17233
- kind?: string | null;
17234
- quantity?: number;
17235
- sort_order?: number;
17236
- total_cents?: number;
17237
- unit?: string;
17238
- unit_price_cents?: number;
17239
- };
17240
- Update: {
17241
- created_at?: string;
17242
- description?: string;
17243
- factuur_id?: string;
17244
- id?: string;
17245
- kind?: string | null;
17246
- quantity?: number;
17247
- sort_order?: number;
17248
- total_cents?: number;
17249
- unit?: string;
17250
- unit_price_cents?: number;
17251
- };
17252
- Relationships: [{
17253
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
17254
- columns: ["factuur_id"];
17255
- isOneToOne: false;
17256
- referencedRelation: "uren_facturen";
17257
- referencedColumns: ["id"];
17258
- }];
17259
- };
17260
17656
  uren_offerte_regels: {
17261
17657
  Row: {
17262
17658
  created_at: string;
@@ -18510,6 +18906,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18510
18906
  scheduled_end_time: string | null;
18511
18907
  scheduled_start_time: string | null;
18512
18908
  sequence_number: number;
18909
+ signature_accepted_at: string | null;
18910
+ signature_by_user_id: string | null;
18911
+ signature_name: string | null;
18513
18912
  source_email_meta: import("../integrations/supabase/types").Json | null;
18514
18913
  source_mailbox_message_id: string | null;
18515
18914
  source_pdf_path: string | null;
@@ -18545,6 +18944,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18545
18944
  scheduled_end_time?: string | null;
18546
18945
  scheduled_start_time?: string | null;
18547
18946
  sequence_number: number;
18947
+ signature_accepted_at?: string | null;
18948
+ signature_by_user_id?: string | null;
18949
+ signature_name?: string | null;
18548
18950
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18549
18951
  source_mailbox_message_id?: string | null;
18550
18952
  source_pdf_path?: string | null;
@@ -18580,6 +18982,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18580
18982
  scheduled_end_time?: string | null;
18581
18983
  scheduled_start_time?: string | null;
18582
18984
  sequence_number?: number;
18985
+ signature_accepted_at?: string | null;
18986
+ signature_by_user_id?: string | null;
18987
+ signature_name?: string | null;
18583
18988
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18584
18989
  source_mailbox_message_id?: string | null;
18585
18990
  source_pdf_path?: string | null;
@@ -19096,6 +19501,114 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19096
19501
  };
19097
19502
  Relationships: [];
19098
19503
  };
19504
+ uren_facturen: {
19505
+ Row: {
19506
+ created_at: string | null;
19507
+ created_by: string | null;
19508
+ customer_id: string | null;
19509
+ customer_name: string | null;
19510
+ id: string | null;
19511
+ invoice_number: string | null;
19512
+ note: string | null;
19513
+ status: string | null;
19514
+ total_excl_cents: number | null;
19515
+ total_incl_cents: number | null;
19516
+ updated_at: string | null;
19517
+ vat_cents: number | null;
19518
+ vat_percentage: number | null;
19519
+ werkbon_id: string | null;
19520
+ };
19521
+ Insert: {
19522
+ created_at?: string | null;
19523
+ created_by?: string | null;
19524
+ customer_id?: string | null;
19525
+ customer_name?: string | null;
19526
+ id?: string | null;
19527
+ invoice_number?: string | null;
19528
+ note?: string | null;
19529
+ status?: string | null;
19530
+ total_excl_cents?: number | null;
19531
+ total_incl_cents?: number | null;
19532
+ updated_at?: string | null;
19533
+ vat_cents?: number | null;
19534
+ vat_percentage?: number | null;
19535
+ werkbon_id?: never;
19536
+ };
19537
+ Update: {
19538
+ created_at?: string | null;
19539
+ created_by?: string | null;
19540
+ customer_id?: string | null;
19541
+ customer_name?: string | null;
19542
+ id?: string | null;
19543
+ invoice_number?: string | null;
19544
+ note?: string | null;
19545
+ status?: string | null;
19546
+ total_excl_cents?: number | null;
19547
+ total_incl_cents?: number | null;
19548
+ updated_at?: string | null;
19549
+ vat_cents?: number | null;
19550
+ vat_percentage?: number | null;
19551
+ werkbon_id?: never;
19552
+ };
19553
+ Relationships: [{
19554
+ foreignKeyName: "invoices_customer_id_fkey";
19555
+ columns: ["customer_id"];
19556
+ isOneToOne: false;
19557
+ referencedRelation: "itk_customers";
19558
+ referencedColumns: ["id"];
19559
+ }];
19560
+ };
19561
+ uren_factuur_regels: {
19562
+ Row: {
19563
+ created_at: string | null;
19564
+ description: string | null;
19565
+ factuur_id: string | null;
19566
+ id: string | null;
19567
+ kind: string | null;
19568
+ quantity: number | null;
19569
+ sort_order: number | null;
19570
+ total_cents: number | null;
19571
+ unit: string | null;
19572
+ unit_price_cents: number | null;
19573
+ };
19574
+ Insert: {
19575
+ created_at?: string | null;
19576
+ description?: string | null;
19577
+ factuur_id?: string | null;
19578
+ id?: string | null;
19579
+ kind?: string | null;
19580
+ quantity?: number | null;
19581
+ sort_order?: number | null;
19582
+ total_cents?: number | null;
19583
+ unit?: string | null;
19584
+ unit_price_cents?: number | null;
19585
+ };
19586
+ Update: {
19587
+ created_at?: string | null;
19588
+ description?: string | null;
19589
+ factuur_id?: string | null;
19590
+ id?: string | null;
19591
+ kind?: string | null;
19592
+ quantity?: number | null;
19593
+ sort_order?: number | null;
19594
+ total_cents?: number | null;
19595
+ unit?: string | null;
19596
+ unit_price_cents?: number | null;
19597
+ };
19598
+ Relationships: [{
19599
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19600
+ columns: ["factuur_id"];
19601
+ isOneToOne: false;
19602
+ referencedRelation: "invoices";
19603
+ referencedColumns: ["id"];
19604
+ }, {
19605
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19606
+ columns: ["factuur_id"];
19607
+ isOneToOne: false;
19608
+ referencedRelation: "uren_facturen";
19609
+ referencedColumns: ["id"];
19610
+ }];
19611
+ };
19099
19612
  v_external_customers_exact: {
19100
19613
  Row: {
19101
19614
  account_number: string | null;
@@ -19601,6 +20114,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19601
20114
  gebruiker_id: string | null;
19602
20115
  gebruiker_naam: string;
19603
20116
  gestart_op: string | null;
20117
+ herkomst: string | null;
19604
20118
  id: string;
19605
20119
  idempotentie_sleutel: string | null;
19606
20120
  is_herprint: boolean;
@@ -19721,6 +20235,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19721
20235
  gebruiker_id: string | null;
19722
20236
  gebruiker_naam: string;
19723
20237
  gestart_op: string | null;
20238
+ herkomst: string | null;
19724
20239
  id: string;
19725
20240
  idempotentie_sleutel: string | null;
19726
20241
  is_herprint: boolean;
@@ -20322,6 +20837,46 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20322
20837
  Args: never;
20323
20838
  Returns: boolean;
20324
20839
  };
20840
+ invoice_create_from_source: {
20841
+ Args: {
20842
+ _payload?: import("../integrations/supabase/types").Json;
20843
+ _source_id: string;
20844
+ _source_type: string;
20845
+ };
20846
+ Returns: import("../integrations/supabase/types").Json;
20847
+ };
20848
+ invoice_get_billable_lines: {
20849
+ Args: {
20850
+ _invoice_id: string;
20851
+ };
20852
+ Returns: import("../integrations/supabase/types").Json;
20853
+ };
20854
+ invoice_get_for_source: {
20855
+ Args: {
20856
+ _source_id: string;
20857
+ _source_type: string;
20858
+ };
20859
+ Returns: import("../integrations/supabase/types").Json;
20860
+ };
20861
+ invoice_get_summary: {
20862
+ Args: {
20863
+ _invoice_id: string;
20864
+ };
20865
+ Returns: import("../integrations/supabase/types").Json;
20866
+ };
20867
+ invoice_list_sources: {
20868
+ Args: {
20869
+ _limit?: number;
20870
+ _source_type?: string;
20871
+ };
20872
+ Returns: import("../integrations/supabase/types").Json;
20873
+ };
20874
+ invoice_recalc_totals: {
20875
+ Args: {
20876
+ _invoice_id: string;
20877
+ };
20878
+ Returns: import("../integrations/supabase/types").Json;
20879
+ };
20325
20880
  is_authenticated: {
20326
20881
  Args: never;
20327
20882
  Returns: boolean;
@@ -20390,6 +20945,29 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20390
20945
  roles: string[];
20391
20946
  }[];
20392
20947
  };
20948
+ list_monteur_absences: {
20949
+ Args: {
20950
+ _from: string;
20951
+ _to: string;
20952
+ };
20953
+ Returns: {
20954
+ absence_date: string;
20955
+ end_time: string;
20956
+ full_day: boolean;
20957
+ kind: string;
20958
+ monteur_id: string;
20959
+ start_time: string;
20960
+ }[];
20961
+ };
20962
+ list_monteurs: {
20963
+ Args: never;
20964
+ Returns: {
20965
+ avatar_url: string;
20966
+ display_name: string;
20967
+ email: string;
20968
+ id: string;
20969
+ }[];
20970
+ };
20393
20971
  list_my_planning_items: {
20394
20972
  Args: {
20395
20973
  _from: string;
@@ -20801,6 +21379,41 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20801
21379
  };
20802
21380
  Returns: string;
20803
21381
  };
21382
+ logistics_floriday_finish_push_v2: {
21383
+ Args: {
21384
+ _error?: string;
21385
+ _error_code?: string;
21386
+ _fulfillment_order_id?: string;
21387
+ _gateway_status?: number;
21388
+ _id: string;
21389
+ _max_age_hours?: number;
21390
+ _max_attempts?: number;
21391
+ _ok: boolean;
21392
+ _permanent?: boolean;
21393
+ _response?: import("../integrations/supabase/types").Json;
21394
+ _revision: number;
21395
+ _sent_hash?: string;
21396
+ };
21397
+ Returns: string;
21398
+ };
21399
+ logistics_floriday_finish_push_v3: {
21400
+ Args: {
21401
+ _error?: string;
21402
+ _error_code?: string;
21403
+ _fulfillment_order_id?: string;
21404
+ _gateway_status?: number;
21405
+ _id: string;
21406
+ _max_age_hours?: number;
21407
+ _max_attempts?: number;
21408
+ _outcome: string;
21409
+ _permanent?: boolean;
21410
+ _response?: import("../integrations/supabase/types").Json;
21411
+ _revision: number;
21412
+ _sent_hash?: string;
21413
+ _wait_max_age_hours?: number;
21414
+ };
21415
+ Returns: string;
21416
+ };
20804
21417
  logistics_floriday_prune_pushes: {
20805
21418
  Args: {
20806
21419
  _days?: number;
@@ -21229,6 +21842,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21229
21842
  verwijderd: number;
21230
21843
  }[];
21231
21844
  };
21845
+ order_departure_proof: {
21846
+ Args: {
21847
+ p_order_id: string;
21848
+ };
21849
+ Returns: import("../integrations/supabase/types").Json;
21850
+ };
21232
21851
  order_number_prefix: {
21233
21852
  Args: {
21234
21853
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -21343,6 +21962,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21343
21962
  isSetofReturn: false;
21344
21963
  };
21345
21964
  };
21965
+ pick_cleanup_maintenance: {
21966
+ Args: {
21967
+ _heartbeat_hours?: number;
21968
+ _log_days?: number;
21969
+ };
21970
+ Returns: import("../integrations/supabase/types").Json;
21971
+ };
21346
21972
  pick_complete_print: {
21347
21973
  Args: {
21348
21974
  _printer_id: string;
@@ -21394,6 +22020,14 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21394
22020
  Args: never;
21395
22021
  Returns: string;
21396
22022
  };
22023
+ pick_day_counts: {
22024
+ Args: {
22025
+ _pick_day?: string;
22026
+ _screen_id?: string;
22027
+ _station_id?: string;
22028
+ };
22029
+ Returns: import("../integrations/supabase/types").Json;
22030
+ };
21397
22031
  pick_document_layout_data: {
21398
22032
  Args: {
21399
22033
  _layout_id: string;
@@ -21421,6 +22055,14 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21421
22055
  };
21422
22056
  Returns: import("../integrations/supabase/types").Json;
21423
22057
  };
22058
+ pick_print_plekken: {
22059
+ Args: never;
22060
+ Returns: {
22061
+ id: string;
22062
+ naam: string;
22063
+ omschrijving: string;
22064
+ }[];
22065
+ };
21424
22066
  pick_release_expired_locks: {
21425
22067
  Args: never;
21426
22068
  Returns: number;
@@ -21431,6 +22073,14 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21431
22073
  };
21432
22074
  Returns: undefined;
21433
22075
  };
22076
+ pick_reprint_document: {
22077
+ Args: {
22078
+ _queue_item_id: string;
22079
+ _session_id: string;
22080
+ _throttle_seconds?: number;
22081
+ };
22082
+ Returns: string;
22083
+ };
21434
22084
  pick_reset_print: {
21435
22085
  Args: {
21436
22086
  _queue_item_id: string;
@@ -21477,6 +22127,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21477
22127
  isSetofReturn: false;
21478
22128
  };
21479
22129
  };
22130
+ pick_set_station_print_plek: {
22131
+ Args: {
22132
+ _print_plek_id: string;
22133
+ _station_id: string;
22134
+ };
22135
+ Returns: string;
22136
+ };
21480
22137
  pick_station_dashboard: {
21481
22138
  Args: never;
21482
22139
  Returns: {
@@ -21489,6 +22146,25 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21489
22146
  waiting: number;
21490
22147
  }[];
21491
22148
  };
22149
+ pick_station_print_plek: {
22150
+ Args: {
22151
+ _station_id: string;
22152
+ };
22153
+ Returns: {
22154
+ naam: string;
22155
+ omschrijving: string;
22156
+ print_plek_id: string;
22157
+ }[];
22158
+ };
22159
+ pick_station_print_plekken: {
22160
+ Args: never;
22161
+ Returns: {
22162
+ naam: string;
22163
+ omschrijving: string;
22164
+ print_plek_id: string;
22165
+ station_id: string;
22166
+ }[];
22167
+ };
21492
22168
  pick_station_slugify: {
21493
22169
  Args: {
21494
22170
  _id: string;
@@ -21496,6 +22172,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21496
22172
  };
21497
22173
  Returns: string;
21498
22174
  };
22175
+ pick_sync_queue_throttled: {
22176
+ Args: {
22177
+ _min_seconds?: number;
22178
+ };
22179
+ Returns: import("../integrations/supabase/types").Json;
22180
+ };
21499
22181
  pickstation_get_orders_raw: {
21500
22182
  Args: never;
21501
22183
  Returns: import("../integrations/supabase/types").Json;
@@ -21641,6 +22323,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21641
22323
  };
21642
22324
  Returns: boolean;
21643
22325
  };
22326
+ release_stale_order_invoice_links: {
22327
+ Args: {
22328
+ _minutes?: number;
22329
+ };
22330
+ Returns: number;
22331
+ };
21644
22332
  reorder_customer_price_groups: {
21645
22333
  Args: {
21646
22334
  _ids: string[];
@@ -22159,6 +22847,20 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22159
22847
  };
22160
22848
  Returns: undefined;
22161
22849
  };
22850
+ twinfield_deactivate_connection: {
22851
+ Args: {
22852
+ p_connection_id: string;
22853
+ p_user_id: string;
22854
+ };
22855
+ Returns: import("../integrations/supabase/types").Json;
22856
+ };
22857
+ twinfield_handle_administration_change: {
22858
+ Args: {
22859
+ _administration_code: string;
22860
+ _user_id: string;
22861
+ };
22862
+ Returns: undefined;
22863
+ };
22162
22864
  twinfield_prune_push_queue: {
22163
22865
  Args: never;
22164
22866
  Returns: number;
@@ -22178,10 +22880,11 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22178
22880
  p_company_name?: string;
22179
22881
  p_environment: string;
22180
22882
  p_office_code?: string;
22883
+ p_reset_sync?: boolean;
22181
22884
  p_status?: string;
22182
22885
  p_user_id: string;
22183
22886
  };
22184
- Returns: string;
22887
+ Returns: import("../integrations/supabase/types").Json;
22185
22888
  };
22186
22889
  upsert_auto_fulfillment_log: {
22187
22890
  Args: {
@@ -22940,6 +23643,99 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
22940
23643
  };
22941
23644
  Relationships: [];
22942
23645
  };
23646
+ artikelen_cache: {
23647
+ Row: {
23648
+ artikelcode: string;
23649
+ bron: string;
23650
+ bruto_prijs_cent: number | null;
23651
+ created_at: string;
23652
+ eenheid: string;
23653
+ fabrikant: string | null;
23654
+ fetched_at: string;
23655
+ gtin: string | null;
23656
+ id: string;
23657
+ naam: string;
23658
+ netto_prijs_cent: number | null;
23659
+ omschrijving: string | null;
23660
+ raw: import("../integrations/supabase/types").Json;
23661
+ updated_at: string;
23662
+ valuta: string;
23663
+ };
23664
+ Insert: {
23665
+ artikelcode: string;
23666
+ bron?: string;
23667
+ bruto_prijs_cent?: number | null;
23668
+ created_at?: string;
23669
+ eenheid?: string;
23670
+ fabrikant?: string | null;
23671
+ fetched_at?: string;
23672
+ gtin?: string | null;
23673
+ id?: string;
23674
+ naam: string;
23675
+ netto_prijs_cent?: number | null;
23676
+ omschrijving?: string | null;
23677
+ raw?: import("../integrations/supabase/types").Json;
23678
+ updated_at?: string;
23679
+ valuta?: string;
23680
+ };
23681
+ Update: {
23682
+ artikelcode?: string;
23683
+ bron?: string;
23684
+ bruto_prijs_cent?: number | null;
23685
+ created_at?: string;
23686
+ eenheid?: string;
23687
+ fabrikant?: string | null;
23688
+ fetched_at?: string;
23689
+ gtin?: string | null;
23690
+ id?: string;
23691
+ naam?: string;
23692
+ netto_prijs_cent?: number | null;
23693
+ omschrijving?: string | null;
23694
+ raw?: import("../integrations/supabase/types").Json;
23695
+ updated_at?: string;
23696
+ valuta?: string;
23697
+ };
23698
+ Relationships: [];
23699
+ };
23700
+ artikelen_veldconfig: {
23701
+ Row: {
23702
+ bron_pad: string;
23703
+ created_at: string;
23704
+ id: string;
23705
+ label: string;
23706
+ sort_order: number;
23707
+ type: string;
23708
+ updated_at: string;
23709
+ veld_key: string;
23710
+ zichtbaar_in_detail: boolean;
23711
+ zichtbaar_in_lijst: boolean;
23712
+ };
23713
+ Insert: {
23714
+ bron_pad: string;
23715
+ created_at?: string;
23716
+ id?: string;
23717
+ label: string;
23718
+ sort_order?: number;
23719
+ type?: string;
23720
+ updated_at?: string;
23721
+ veld_key: string;
23722
+ zichtbaar_in_detail?: boolean;
23723
+ zichtbaar_in_lijst?: boolean;
23724
+ };
23725
+ Update: {
23726
+ bron_pad?: string;
23727
+ created_at?: string;
23728
+ id?: string;
23729
+ label?: string;
23730
+ sort_order?: number;
23731
+ type?: string;
23732
+ updated_at?: string;
23733
+ veld_key?: string;
23734
+ zichtbaar_in_detail?: boolean;
23735
+ zichtbaar_in_lijst?: boolean;
23736
+ };
23737
+ Relationships: [];
23738
+ };
22943
23739
  booking_items: {
22944
23740
  Row: {
22945
23741
  booking_id: string;
@@ -25025,6 +25821,42 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
25025
25821
  };
25026
25822
  Relationships: [];
25027
25823
  };
25824
+ document_bronregels: {
25825
+ Row: {
25826
+ bron: string;
25827
+ created_at: string;
25828
+ documenttype: string;
25829
+ herkomst: string;
25830
+ id: string;
25831
+ layout_id: string | null;
25832
+ updated_at: string;
25833
+ };
25834
+ Insert: {
25835
+ bron?: string;
25836
+ created_at?: string;
25837
+ documenttype: string;
25838
+ herkomst: string;
25839
+ id?: string;
25840
+ layout_id?: string | null;
25841
+ updated_at?: string;
25842
+ };
25843
+ Update: {
25844
+ bron?: string;
25845
+ created_at?: string;
25846
+ documenttype?: string;
25847
+ herkomst?: string;
25848
+ id?: string;
25849
+ layout_id?: string | null;
25850
+ updated_at?: string;
25851
+ };
25852
+ Relationships: [{
25853
+ foreignKeyName: "document_bronregels_layout_id_fkey";
25854
+ columns: ["layout_id"];
25855
+ isOneToOne: false;
25856
+ referencedRelation: "document_layouts";
25857
+ referencedColumns: ["id"];
25858
+ }];
25859
+ };
25028
25860
  document_formaat_printers: {
25029
25861
  Row: {
25030
25862
  created_at: string;
@@ -25302,6 +26134,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
25302
26134
  Row: {
25303
26135
  actief: boolean;
25304
26136
  breedte_mm: number;
26137
+ bron: string;
25305
26138
  config: import("../integrations/supabase/types").Json;
25306
26139
  created_at: string;
25307
26140
  created_by: string | null;
@@ -25319,12 +26152,14 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
25319
26152
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25320
26153
  page_settings: import("../integrations/supabase/types").Json;
25321
26154
  papierformaat: string;
26155
+ systeem: boolean;
25322
26156
  thumbnail_url: string | null;
25323
26157
  updated_at: string;
25324
26158
  };
25325
26159
  Insert: {
25326
26160
  actief?: boolean;
25327
26161
  breedte_mm?: number;
26162
+ bron?: string;
25328
26163
  config?: import("../integrations/supabase/types").Json;
25329
26164
  created_at?: string;
25330
26165
  created_by?: string | null;
@@ -25342,12 +26177,14 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
25342
26177
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25343
26178
  page_settings?: import("../integrations/supabase/types").Json;
25344
26179
  papierformaat?: string;
26180
+ systeem?: boolean;
25345
26181
  thumbnail_url?: string | null;
25346
26182
  updated_at?: string;
25347
26183
  };
25348
26184
  Update: {
25349
26185
  actief?: boolean;
25350
26186
  breedte_mm?: number;
26187
+ bron?: string;
25351
26188
  config?: import("../integrations/supabase/types").Json;
25352
26189
  created_at?: string;
25353
26190
  created_by?: string | null;
@@ -25365,11 +26202,90 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
25365
26202
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25366
26203
  page_settings?: import("../integrations/supabase/types").Json;
25367
26204
  papierformaat?: string;
26205
+ systeem?: boolean;
25368
26206
  thumbnail_url?: string | null;
25369
26207
  updated_at?: string;
25370
26208
  };
25371
26209
  Relationships: [];
25372
26210
  };
26211
+ document_printplek_printers: {
26212
+ Row: {
26213
+ created_at: string;
26214
+ documenttype: string;
26215
+ id: string;
26216
+ papierformaat: string | null;
26217
+ print_plek_id: string;
26218
+ printer_id: string | null;
26219
+ updated_at: string;
26220
+ };
26221
+ Insert: {
26222
+ created_at?: string;
26223
+ documenttype: string;
26224
+ id?: string;
26225
+ papierformaat?: string | null;
26226
+ print_plek_id: string;
26227
+ printer_id?: string | null;
26228
+ updated_at?: string;
26229
+ };
26230
+ Update: {
26231
+ created_at?: string;
26232
+ documenttype?: string;
26233
+ id?: string;
26234
+ papierformaat?: string | null;
26235
+ print_plek_id?: string;
26236
+ printer_id?: string | null;
26237
+ updated_at?: string;
26238
+ };
26239
+ Relationships: [{
26240
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
26241
+ columns: ["print_plek_id"];
26242
+ isOneToOne: false;
26243
+ referencedRelation: "print_plekken";
26244
+ referencedColumns: ["id"];
26245
+ }, {
26246
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
26247
+ columns: ["printer_id"];
26248
+ isOneToOne: false;
26249
+ referencedRelation: "printers";
26250
+ referencedColumns: ["id"];
26251
+ }];
26252
+ };
26253
+ document_werkplek_printers: {
26254
+ Row: {
26255
+ created_at: string;
26256
+ documenttype: string;
26257
+ id: string;
26258
+ papierformaat: string | null;
26259
+ printer_id: string | null;
26260
+ updated_at: string;
26261
+ werkplek: string;
26262
+ };
26263
+ Insert: {
26264
+ created_at?: string;
26265
+ documenttype: string;
26266
+ id?: string;
26267
+ papierformaat?: string | null;
26268
+ printer_id?: string | null;
26269
+ updated_at?: string;
26270
+ werkplek: string;
26271
+ };
26272
+ Update: {
26273
+ created_at?: string;
26274
+ documenttype?: string;
26275
+ id?: string;
26276
+ papierformaat?: string | null;
26277
+ printer_id?: string | null;
26278
+ updated_at?: string;
26279
+ werkplek?: string;
26280
+ };
26281
+ Relationships: [{
26282
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
26283
+ columns: ["printer_id"];
26284
+ isOneToOne: false;
26285
+ referencedRelation: "printers";
26286
+ referencedColumns: ["id"];
26287
+ }];
26288
+ };
25373
26289
  email_auth_connections: {
25374
26290
  Row: {
25375
26291
  access_token_encrypted: string | null;
@@ -27311,42 +28227,6 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
27311
28227
  };
27312
28228
  Relationships: [];
27313
28229
  };
27314
- facturen: {
27315
- Row: {
27316
- bedrag_incl_btw: number;
27317
- created_at: string;
27318
- datum: string;
27319
- factuurnummer: string;
27320
- id: string;
27321
- klantnaam: string;
27322
- status: string;
27323
- updated_at: string;
27324
- user_id: string;
27325
- };
27326
- Insert: {
27327
- bedrag_incl_btw: number;
27328
- created_at?: string;
27329
- datum?: string;
27330
- factuurnummer: string;
27331
- id?: string;
27332
- klantnaam: string;
27333
- status?: string;
27334
- updated_at?: string;
27335
- user_id?: string;
27336
- };
27337
- Update: {
27338
- bedrag_incl_btw?: number;
27339
- created_at?: string;
27340
- datum?: string;
27341
- factuurnummer?: string;
27342
- id?: string;
27343
- klantnaam?: string;
27344
- status?: string;
27345
- updated_at?: string;
27346
- user_id?: string;
27347
- };
27348
- Relationships: [];
27349
- };
27350
28230
  floricode_connection_settings: {
27351
28231
  Row: {
27352
28232
  catalog_key: string | null;
@@ -29651,8 +30531,63 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29651
30531
  };
29652
30532
  Relationships: [];
29653
30533
  };
30534
+ invoice_items: {
30535
+ Row: {
30536
+ created_at: string;
30537
+ description: string;
30538
+ id: string;
30539
+ invoice_id: string;
30540
+ kind: string;
30541
+ quantity: number;
30542
+ sort_order: number;
30543
+ source_line_ref: string | null;
30544
+ total_cents: number;
30545
+ unit: string;
30546
+ unit_price_cents: number;
30547
+ };
30548
+ Insert: {
30549
+ created_at?: string;
30550
+ description?: string;
30551
+ id?: string;
30552
+ invoice_id: string;
30553
+ kind?: string;
30554
+ quantity?: number;
30555
+ sort_order?: number;
30556
+ source_line_ref?: string | null;
30557
+ total_cents?: number;
30558
+ unit?: string;
30559
+ unit_price_cents?: number;
30560
+ };
30561
+ Update: {
30562
+ created_at?: string;
30563
+ description?: string;
30564
+ id?: string;
30565
+ invoice_id?: string;
30566
+ kind?: string;
30567
+ quantity?: number;
30568
+ sort_order?: number;
30569
+ source_line_ref?: string | null;
30570
+ total_cents?: number;
30571
+ unit?: string;
30572
+ unit_price_cents?: number;
30573
+ };
30574
+ Relationships: [{
30575
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30576
+ columns: ["invoice_id"];
30577
+ isOneToOne: false;
30578
+ referencedRelation: "invoices";
30579
+ referencedColumns: ["id"];
30580
+ }, {
30581
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30582
+ columns: ["invoice_id"];
30583
+ isOneToOne: false;
30584
+ referencedRelation: "uren_facturen";
30585
+ referencedColumns: ["id"];
30586
+ }];
30587
+ };
29654
30588
  invoice_post_idempotency: {
29655
30589
  Row: {
30590
+ administration_code: string;
29656
30591
  client_request_id: string;
29657
30592
  completed_at: string | null;
29658
30593
  created_at: string;
@@ -29662,6 +30597,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29662
30597
  user_id: string;
29663
30598
  };
29664
30599
  Insert: {
30600
+ administration_code?: string;
29665
30601
  client_request_id: string;
29666
30602
  completed_at?: string | null;
29667
30603
  created_at?: string;
@@ -29671,6 +30607,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29671
30607
  user_id: string;
29672
30608
  };
29673
30609
  Update: {
30610
+ administration_code?: string;
29674
30611
  client_request_id?: string;
29675
30612
  completed_at?: string | null;
29676
30613
  created_at?: string;
@@ -29876,6 +30813,75 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29876
30813
  };
29877
30814
  Relationships: [];
29878
30815
  };
30816
+ invoices: {
30817
+ Row: {
30818
+ created_at: string;
30819
+ created_by: string | null;
30820
+ customer_id: string | null;
30821
+ customer_name: string | null;
30822
+ due_date: string | null;
30823
+ id: string;
30824
+ invoice_date: string;
30825
+ invoice_number: string | null;
30826
+ note: string | null;
30827
+ source_number: string | null;
30828
+ source_ref: string | null;
30829
+ source_type: string;
30830
+ status: string;
30831
+ subtotal_cents: number;
30832
+ total_cents: number;
30833
+ updated_at: string;
30834
+ vat_cents: number;
30835
+ vat_rate: number;
30836
+ };
30837
+ Insert: {
30838
+ created_at?: string;
30839
+ created_by?: string | null;
30840
+ customer_id?: string | null;
30841
+ customer_name?: string | null;
30842
+ due_date?: string | null;
30843
+ id?: string;
30844
+ invoice_date?: string;
30845
+ invoice_number?: string | null;
30846
+ note?: string | null;
30847
+ source_number?: string | null;
30848
+ source_ref?: string | null;
30849
+ source_type?: string;
30850
+ status?: string;
30851
+ subtotal_cents?: number;
30852
+ total_cents?: number;
30853
+ updated_at?: string;
30854
+ vat_cents?: number;
30855
+ vat_rate?: number;
30856
+ };
30857
+ Update: {
30858
+ created_at?: string;
30859
+ created_by?: string | null;
30860
+ customer_id?: string | null;
30861
+ customer_name?: string | null;
30862
+ due_date?: string | null;
30863
+ id?: string;
30864
+ invoice_date?: string;
30865
+ invoice_number?: string | null;
30866
+ note?: string | null;
30867
+ source_number?: string | null;
30868
+ source_ref?: string | null;
30869
+ source_type?: string;
30870
+ status?: string;
30871
+ subtotal_cents?: number;
30872
+ total_cents?: number;
30873
+ updated_at?: string;
30874
+ vat_cents?: number;
30875
+ vat_rate?: number;
30876
+ };
30877
+ Relationships: [{
30878
+ foreignKeyName: "invoices_customer_id_fkey";
30879
+ columns: ["customer_id"];
30880
+ isOneToOne: false;
30881
+ referencedRelation: "itk_customers";
30882
+ referencedColumns: ["id"];
30883
+ }];
30884
+ };
29879
30885
  itk_contact_persons: {
29880
30886
  Row: {
29881
30887
  created_at: string;
@@ -31223,6 +32229,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
31223
32229
  id: string;
31224
32230
  last_error: string | null;
31225
32231
  last_error_at: string | null;
32232
+ last_error_code: string | null;
32233
+ last_gateway_status: number | null;
32234
+ last_queued_at: string | null;
32235
+ last_response: import("../integrations/supabase/types").Json | null;
31226
32236
  last_sent_hash: string | null;
31227
32237
  locked_by: string | null;
31228
32238
  locked_until: string | null;
@@ -31243,6 +32253,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
31243
32253
  id?: string;
31244
32254
  last_error?: string | null;
31245
32255
  last_error_at?: string | null;
32256
+ last_error_code?: string | null;
32257
+ last_gateway_status?: number | null;
32258
+ last_queued_at?: string | null;
32259
+ last_response?: import("../integrations/supabase/types").Json | null;
31246
32260
  last_sent_hash?: string | null;
31247
32261
  locked_by?: string | null;
31248
32262
  locked_until?: string | null;
@@ -31263,6 +32277,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
31263
32277
  id?: string;
31264
32278
  last_error?: string | null;
31265
32279
  last_error_at?: string | null;
32280
+ last_error_code?: string | null;
32281
+ last_gateway_status?: number | null;
32282
+ last_queued_at?: string | null;
32283
+ last_response?: import("../integrations/supabase/types").Json | null;
31266
32284
  last_sent_hash?: string | null;
31267
32285
  locked_by?: string | null;
31268
32286
  locked_until?: string | null;
@@ -32816,6 +33834,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
32816
33834
  enforce: boolean;
32817
33835
  is_active: boolean;
32818
33836
  last_seen_at: string;
33837
+ missing_count: number;
32819
33838
  module_id: string;
32820
33839
  name: string;
32821
33840
  shell_id: string | null;
@@ -32826,6 +33845,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
32826
33845
  enforce?: boolean;
32827
33846
  is_active?: boolean;
32828
33847
  last_seen_at?: string;
33848
+ missing_count?: number;
32829
33849
  module_id: string;
32830
33850
  name: string;
32831
33851
  shell_id?: string | null;
@@ -32836,6 +33856,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
32836
33856
  enforce?: boolean;
32837
33857
  is_active?: boolean;
32838
33858
  last_seen_at?: string;
33859
+ missing_count?: number;
32839
33860
  module_id?: string;
32840
33861
  name?: string;
32841
33862
  shell_id?: string | null;
@@ -33835,6 +34856,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
33835
34856
  };
33836
34857
  order_invoice_links: {
33837
34858
  Row: {
34859
+ administration_code: string | null;
33838
34860
  attempts: number;
33839
34861
  created_at: string;
33840
34862
  error_message: string | null;
@@ -33847,6 +34869,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
33847
34869
  updated_at: string;
33848
34870
  };
33849
34871
  Insert: {
34872
+ administration_code?: string | null;
33850
34873
  attempts?: number;
33851
34874
  created_at?: string;
33852
34875
  error_message?: string | null;
@@ -33859,6 +34882,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
33859
34882
  updated_at?: string;
33860
34883
  };
33861
34884
  Update: {
34885
+ administration_code?: string | null;
33862
34886
  attempts?: number;
33863
34887
  created_at?: string;
33864
34888
  error_message?: string | null;
@@ -35024,6 +36048,27 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
35024
36048
  referencedColumns: ["id"];
35025
36049
  }];
35026
36050
  };
36051
+ pick_sync_state: {
36052
+ Row: {
36053
+ id: boolean;
36054
+ last_cleanup_at: string | null;
36055
+ last_sync_at: string | null;
36056
+ updated_at: string;
36057
+ };
36058
+ Insert: {
36059
+ id?: boolean;
36060
+ last_cleanup_at?: string | null;
36061
+ last_sync_at?: string | null;
36062
+ updated_at?: string;
36063
+ };
36064
+ Update: {
36065
+ id?: boolean;
36066
+ last_cleanup_at?: string | null;
36067
+ last_sync_at?: string | null;
36068
+ updated_at?: string;
36069
+ };
36070
+ Relationships: [];
36071
+ };
35027
36072
  pick_task_document_types: {
35028
36073
  Row: {
35029
36074
  created_at: string;
@@ -35306,6 +36351,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
35306
36351
  gebruiker_id: string | null;
35307
36352
  gebruiker_naam: string;
35308
36353
  gestart_op: string | null;
36354
+ herkomst: string | null;
35309
36355
  id: string;
35310
36356
  idempotentie_sleutel: string | null;
35311
36357
  is_herprint: boolean;
@@ -35335,6 +36381,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
35335
36381
  gebruiker_id?: string | null;
35336
36382
  gebruiker_naam?: string;
35337
36383
  gestart_op?: string | null;
36384
+ herkomst?: string | null;
35338
36385
  id?: string;
35339
36386
  idempotentie_sleutel?: string | null;
35340
36387
  is_herprint?: boolean;
@@ -35364,6 +36411,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
35364
36411
  gebruiker_id?: string | null;
35365
36412
  gebruiker_naam?: string;
35366
36413
  gestart_op?: string | null;
36414
+ herkomst?: string | null;
35367
36415
  id?: string;
35368
36416
  idempotentie_sleutel?: string | null;
35369
36417
  is_herprint?: boolean;
@@ -35402,6 +36450,99 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
35402
36450
  referencedColumns: ["id"];
35403
36451
  }];
35404
36452
  };
36453
+ print_plek_computers: {
36454
+ Row: {
36455
+ computer_naam: string;
36456
+ created_at: string;
36457
+ id: string;
36458
+ print_plek_id: string;
36459
+ updated_at: string;
36460
+ };
36461
+ Insert: {
36462
+ computer_naam: string;
36463
+ created_at?: string;
36464
+ id?: string;
36465
+ print_plek_id: string;
36466
+ updated_at?: string;
36467
+ };
36468
+ Update: {
36469
+ computer_naam?: string;
36470
+ created_at?: string;
36471
+ id?: string;
36472
+ print_plek_id?: string;
36473
+ updated_at?: string;
36474
+ };
36475
+ Relationships: [{
36476
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
36477
+ columns: ["print_plek_id"];
36478
+ isOneToOne: false;
36479
+ referencedRelation: "print_plekken";
36480
+ referencedColumns: ["id"];
36481
+ }];
36482
+ };
36483
+ print_plek_koppelingen: {
36484
+ Row: {
36485
+ bron: string;
36486
+ bron_id: string;
36487
+ created_at: string;
36488
+ id: string;
36489
+ label: string | null;
36490
+ print_plek_id: string;
36491
+ updated_at: string;
36492
+ };
36493
+ Insert: {
36494
+ bron: string;
36495
+ bron_id: string;
36496
+ created_at?: string;
36497
+ id?: string;
36498
+ label?: string | null;
36499
+ print_plek_id: string;
36500
+ updated_at?: string;
36501
+ };
36502
+ Update: {
36503
+ bron?: string;
36504
+ bron_id?: string;
36505
+ created_at?: string;
36506
+ id?: string;
36507
+ label?: string | null;
36508
+ print_plek_id?: string;
36509
+ updated_at?: string;
36510
+ };
36511
+ Relationships: [{
36512
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
36513
+ columns: ["print_plek_id"];
36514
+ isOneToOne: false;
36515
+ referencedRelation: "print_plekken";
36516
+ referencedColumns: ["id"];
36517
+ }];
36518
+ };
36519
+ print_plekken: {
36520
+ Row: {
36521
+ actief: boolean;
36522
+ created_at: string;
36523
+ id: string;
36524
+ naam: string;
36525
+ omschrijving: string | null;
36526
+ updated_at: string;
36527
+ };
36528
+ Insert: {
36529
+ actief?: boolean;
36530
+ created_at?: string;
36531
+ id?: string;
36532
+ naam: string;
36533
+ omschrijving?: string | null;
36534
+ updated_at?: string;
36535
+ };
36536
+ Update: {
36537
+ actief?: boolean;
36538
+ created_at?: string;
36539
+ id?: string;
36540
+ naam?: string;
36541
+ omschrijving?: string | null;
36542
+ updated_at?: string;
36543
+ };
36544
+ Relationships: [];
36545
+ };
35405
36546
  print_queue_runners: {
35406
36547
  Row: {
35407
36548
  actief: boolean;
@@ -37556,6 +38697,45 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37556
38697
  };
37557
38698
  Relationships: [];
37558
38699
  };
38700
+ stock_consumption_alerts: {
38701
+ Row: {
38702
+ alert_type: string;
38703
+ created_at: string;
38704
+ id: string;
38705
+ mutation_log_id: string | null;
38706
+ order_id: string | null;
38707
+ order_item_id: string | null;
38708
+ qty: number;
38709
+ reason: string | null;
38710
+ resolved_at: string | null;
38711
+ updated_at: string;
38712
+ };
38713
+ Insert: {
38714
+ alert_type: string;
38715
+ created_at?: string;
38716
+ id?: string;
38717
+ mutation_log_id?: string | null;
38718
+ order_id?: string | null;
38719
+ order_item_id?: string | null;
38720
+ qty?: number;
38721
+ reason?: string | null;
38722
+ resolved_at?: string | null;
38723
+ updated_at?: string;
38724
+ };
38725
+ Update: {
38726
+ alert_type?: string;
38727
+ created_at?: string;
38728
+ id?: string;
38729
+ mutation_log_id?: string | null;
38730
+ order_id?: string | null;
38731
+ order_item_id?: string | null;
38732
+ qty?: number;
38733
+ reason?: string | null;
38734
+ resolved_at?: string | null;
38735
+ updated_at?: string;
38736
+ };
38737
+ Relationships: [];
38738
+ };
37559
38739
  stock_import_runs: {
37560
38740
  Row: {
37561
38741
  connection_id: string | null;
@@ -38368,12 +39548,16 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38368
39548
  company_name: string | null;
38369
39549
  connected_at: string | null;
38370
39550
  created_at: string;
39551
+ disconnected_at: string | null;
38371
39552
  environment: string;
38372
39553
  id: string;
39554
+ initial_sync_completed_at: string | null;
39555
+ initial_sync_started_at: string | null;
38373
39556
  is_active: boolean;
38374
39557
  label: string | null;
38375
39558
  office_code: string | null;
38376
39559
  redirect_uri: string | null;
39560
+ superseded_at: string | null;
38377
39561
  updated_at: string;
38378
39562
  user_id: string;
38379
39563
  };
@@ -38384,12 +39568,16 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38384
39568
  company_name?: string | null;
38385
39569
  connected_at?: string | null;
38386
39570
  created_at?: string;
39571
+ disconnected_at?: string | null;
38387
39572
  environment: string;
38388
39573
  id?: string;
39574
+ initial_sync_completed_at?: string | null;
39575
+ initial_sync_started_at?: string | null;
38389
39576
  is_active?: boolean;
38390
39577
  label?: string | null;
38391
39578
  office_code?: string | null;
38392
39579
  redirect_uri?: string | null;
39580
+ superseded_at?: string | null;
38393
39581
  updated_at?: string;
38394
39582
  user_id: string;
38395
39583
  };
@@ -38400,12 +39588,16 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38400
39588
  company_name?: string | null;
38401
39589
  connected_at?: string | null;
38402
39590
  created_at?: string;
39591
+ disconnected_at?: string | null;
38403
39592
  environment?: string;
38404
39593
  id?: string;
39594
+ initial_sync_completed_at?: string | null;
39595
+ initial_sync_started_at?: string | null;
38405
39596
  is_active?: boolean;
38406
39597
  label?: string | null;
38407
39598
  office_code?: string | null;
38408
39599
  redirect_uri?: string | null;
39600
+ superseded_at?: string | null;
38409
39601
  updated_at?: string;
38410
39602
  user_id?: string;
38411
39603
  };
@@ -38465,6 +39657,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38465
39657
  twinfield_customers: {
38466
39658
  Row: {
38467
39659
  address: string | null;
39660
+ administration_code: string;
38468
39661
  city: string | null;
38469
39662
  country: string | null;
38470
39663
  created_at: string;
@@ -38484,6 +39677,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38484
39677
  };
38485
39678
  Insert: {
38486
39679
  address?: string | null;
39680
+ administration_code?: string;
38487
39681
  city?: string | null;
38488
39682
  country?: string | null;
38489
39683
  created_at?: string;
@@ -38503,6 +39697,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38503
39697
  };
38504
39698
  Update: {
38505
39699
  address?: string | null;
39700
+ administration_code?: string;
38506
39701
  city?: string | null;
38507
39702
  country?: string | null;
38508
39703
  created_at?: string;
@@ -38716,7 +39911,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38716
39911
  };
38717
39912
  twinfield_invoice_settings: {
38718
39913
  Row: {
39914
+ administration_code: string | null;
38719
39915
  auto_invoice_enabled: boolean;
39916
+ auto_invoice_start_date: string | null;
38720
39917
  auto_invoice_trigger_statuses: string[];
38721
39918
  created_at: string;
38722
39919
  debtor_gl_account: string;
@@ -38730,15 +39927,19 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38730
39927
  invoice_enabled_fo: boolean;
38731
39928
  invoice_enabled_ho: boolean;
38732
39929
  invoice_enabled_mo: boolean;
39930
+ needs_review: boolean;
38733
39931
  payment_gl_account: string;
38734
39932
  payment_journal_code: string;
39933
+ settings_confirmed_at: string | null;
38735
39934
  updated_at: string;
38736
39935
  user_id: string;
38737
39936
  vat_code_eu_reverse: string | null;
38738
39937
  vat_code_export: string | null;
38739
39938
  };
38740
39939
  Insert: {
39940
+ administration_code?: string | null;
38741
39941
  auto_invoice_enabled?: boolean;
39942
+ auto_invoice_start_date?: string | null;
38742
39943
  auto_invoice_trigger_statuses?: string[];
38743
39944
  created_at?: string;
38744
39945
  debtor_gl_account?: string;
@@ -38752,15 +39953,19 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38752
39953
  invoice_enabled_fo?: boolean;
38753
39954
  invoice_enabled_ho?: boolean;
38754
39955
  invoice_enabled_mo?: boolean;
39956
+ needs_review?: boolean;
38755
39957
  payment_gl_account?: string;
38756
39958
  payment_journal_code?: string;
39959
+ settings_confirmed_at?: string | null;
38757
39960
  updated_at?: string;
38758
39961
  user_id: string;
38759
39962
  vat_code_eu_reverse?: string | null;
38760
39963
  vat_code_export?: string | null;
38761
39964
  };
38762
39965
  Update: {
39966
+ administration_code?: string | null;
38763
39967
  auto_invoice_enabled?: boolean;
39968
+ auto_invoice_start_date?: string | null;
38764
39969
  auto_invoice_trigger_statuses?: string[];
38765
39970
  created_at?: string;
38766
39971
  debtor_gl_account?: string;
@@ -38774,8 +39979,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38774
39979
  invoice_enabled_fo?: boolean;
38775
39980
  invoice_enabled_ho?: boolean;
38776
39981
  invoice_enabled_mo?: boolean;
39982
+ needs_review?: boolean;
38777
39983
  payment_gl_account?: string;
38778
39984
  payment_journal_code?: string;
39985
+ settings_confirmed_at?: string | null;
38779
39986
  updated_at?: string;
38780
39987
  user_id?: string;
38781
39988
  vat_code_eu_reverse?: string | null;
@@ -39380,114 +40587,6 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
39380
40587
  };
39381
40588
  Relationships: [];
39382
40589
  };
39383
- uren_facturen: {
39384
- Row: {
39385
- created_at: string;
39386
- created_by: string | null;
39387
- customer_id: string | null;
39388
- customer_name: string | null;
39389
- id: string;
39390
- invoice_number: string | null;
39391
- note: string | null;
39392
- status: string;
39393
- total_excl_cents: number;
39394
- total_incl_cents: number;
39395
- updated_at: string;
39396
- vat_cents: number;
39397
- vat_percentage: number;
39398
- werkbon_id: string | null;
39399
- };
39400
- Insert: {
39401
- created_at?: string;
39402
- created_by?: string | null;
39403
- customer_id?: string | null;
39404
- customer_name?: string | null;
39405
- id?: string;
39406
- invoice_number?: string | null;
39407
- note?: string | null;
39408
- status?: string;
39409
- total_excl_cents?: number;
39410
- total_incl_cents?: number;
39411
- updated_at?: string;
39412
- vat_cents?: number;
39413
- vat_percentage?: number;
39414
- werkbon_id?: string | null;
39415
- };
39416
- Update: {
39417
- created_at?: string;
39418
- created_by?: string | null;
39419
- customer_id?: string | null;
39420
- customer_name?: string | null;
39421
- id?: string;
39422
- invoice_number?: string | null;
39423
- note?: string | null;
39424
- status?: string;
39425
- total_excl_cents?: number;
39426
- total_incl_cents?: number;
39427
- updated_at?: string;
39428
- vat_cents?: number;
39429
- vat_percentage?: number;
39430
- werkbon_id?: string | null;
39431
- };
39432
- Relationships: [{
39433
- foreignKeyName: "uren_facturen_customer_id_fkey";
39434
- columns: ["customer_id"];
39435
- isOneToOne: false;
39436
- referencedRelation: "itk_customers";
39437
- referencedColumns: ["id"];
39438
- }, {
39439
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
39440
- columns: ["werkbon_id"];
39441
- isOneToOne: true;
39442
- referencedRelation: "werkbonnen";
39443
- referencedColumns: ["id"];
39444
- }];
39445
- };
39446
- uren_factuur_regels: {
39447
- Row: {
39448
- created_at: string;
39449
- description: string;
39450
- factuur_id: string;
39451
- id: string;
39452
- kind: string | null;
39453
- quantity: number;
39454
- sort_order: number;
39455
- total_cents: number;
39456
- unit: string;
39457
- unit_price_cents: number;
39458
- };
39459
- Insert: {
39460
- created_at?: string;
39461
- description: string;
39462
- factuur_id: string;
39463
- id?: string;
39464
- kind?: string | null;
39465
- quantity?: number;
39466
- sort_order?: number;
39467
- total_cents?: number;
39468
- unit?: string;
39469
- unit_price_cents?: number;
39470
- };
39471
- Update: {
39472
- created_at?: string;
39473
- description?: string;
39474
- factuur_id?: string;
39475
- id?: string;
39476
- kind?: string | null;
39477
- quantity?: number;
39478
- sort_order?: number;
39479
- total_cents?: number;
39480
- unit?: string;
39481
- unit_price_cents?: number;
39482
- };
39483
- Relationships: [{
39484
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
39485
- columns: ["factuur_id"];
39486
- isOneToOne: false;
39487
- referencedRelation: "uren_facturen";
39488
- referencedColumns: ["id"];
39489
- }];
39490
- };
39491
40590
  uren_offerte_regels: {
39492
40591
  Row: {
39493
40592
  created_at: string;
@@ -40741,6 +41840,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
40741
41840
  scheduled_end_time: string | null;
40742
41841
  scheduled_start_time: string | null;
40743
41842
  sequence_number: number;
41843
+ signature_accepted_at: string | null;
41844
+ signature_by_user_id: string | null;
41845
+ signature_name: string | null;
40744
41846
  source_email_meta: import("../integrations/supabase/types").Json | null;
40745
41847
  source_mailbox_message_id: string | null;
40746
41848
  source_pdf_path: string | null;
@@ -40776,6 +41878,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
40776
41878
  scheduled_end_time?: string | null;
40777
41879
  scheduled_start_time?: string | null;
40778
41880
  sequence_number: number;
41881
+ signature_accepted_at?: string | null;
41882
+ signature_by_user_id?: string | null;
41883
+ signature_name?: string | null;
40779
41884
  source_email_meta?: import("../integrations/supabase/types").Json | null;
40780
41885
  source_mailbox_message_id?: string | null;
40781
41886
  source_pdf_path?: string | null;
@@ -40811,6 +41916,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
40811
41916
  scheduled_end_time?: string | null;
40812
41917
  scheduled_start_time?: string | null;
40813
41918
  sequence_number?: number;
41919
+ signature_accepted_at?: string | null;
41920
+ signature_by_user_id?: string | null;
41921
+ signature_name?: string | null;
40814
41922
  source_email_meta?: import("../integrations/supabase/types").Json | null;
40815
41923
  source_mailbox_message_id?: string | null;
40816
41924
  source_pdf_path?: string | null;
@@ -41327,6 +42435,114 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
41327
42435
  };
41328
42436
  Relationships: [];
41329
42437
  };
42438
+ uren_facturen: {
42439
+ Row: {
42440
+ created_at: string | null;
42441
+ created_by: string | null;
42442
+ customer_id: string | null;
42443
+ customer_name: string | null;
42444
+ id: string | null;
42445
+ invoice_number: string | null;
42446
+ note: string | null;
42447
+ status: string | null;
42448
+ total_excl_cents: number | null;
42449
+ total_incl_cents: number | null;
42450
+ updated_at: string | null;
42451
+ vat_cents: number | null;
42452
+ vat_percentage: number | null;
42453
+ werkbon_id: string | null;
42454
+ };
42455
+ Insert: {
42456
+ created_at?: string | null;
42457
+ created_by?: string | null;
42458
+ customer_id?: string | null;
42459
+ customer_name?: string | null;
42460
+ id?: string | null;
42461
+ invoice_number?: string | null;
42462
+ note?: string | null;
42463
+ status?: string | null;
42464
+ total_excl_cents?: number | null;
42465
+ total_incl_cents?: number | null;
42466
+ updated_at?: string | null;
42467
+ vat_cents?: number | null;
42468
+ vat_percentage?: number | null;
42469
+ werkbon_id?: never;
42470
+ };
42471
+ Update: {
42472
+ created_at?: string | null;
42473
+ created_by?: string | null;
42474
+ customer_id?: string | null;
42475
+ customer_name?: string | null;
42476
+ id?: string | null;
42477
+ invoice_number?: string | null;
42478
+ note?: string | null;
42479
+ status?: string | null;
42480
+ total_excl_cents?: number | null;
42481
+ total_incl_cents?: number | null;
42482
+ updated_at?: string | null;
42483
+ vat_cents?: number | null;
42484
+ vat_percentage?: number | null;
42485
+ werkbon_id?: never;
42486
+ };
42487
+ Relationships: [{
42488
+ foreignKeyName: "invoices_customer_id_fkey";
42489
+ columns: ["customer_id"];
42490
+ isOneToOne: false;
42491
+ referencedRelation: "itk_customers";
42492
+ referencedColumns: ["id"];
42493
+ }];
42494
+ };
42495
+ uren_factuur_regels: {
42496
+ Row: {
42497
+ created_at: string | null;
42498
+ description: string | null;
42499
+ factuur_id: string | null;
42500
+ id: string | null;
42501
+ kind: string | null;
42502
+ quantity: number | null;
42503
+ sort_order: number | null;
42504
+ total_cents: number | null;
42505
+ unit: string | null;
42506
+ unit_price_cents: number | null;
42507
+ };
42508
+ Insert: {
42509
+ created_at?: string | null;
42510
+ description?: string | null;
42511
+ factuur_id?: string | null;
42512
+ id?: string | null;
42513
+ kind?: string | null;
42514
+ quantity?: number | null;
42515
+ sort_order?: number | null;
42516
+ total_cents?: number | null;
42517
+ unit?: string | null;
42518
+ unit_price_cents?: number | null;
42519
+ };
42520
+ Update: {
42521
+ created_at?: string | null;
42522
+ description?: string | null;
42523
+ factuur_id?: string | null;
42524
+ id?: string | null;
42525
+ kind?: string | null;
42526
+ quantity?: number | null;
42527
+ sort_order?: number | null;
42528
+ total_cents?: number | null;
42529
+ unit?: string | null;
42530
+ unit_price_cents?: number | null;
42531
+ };
42532
+ Relationships: [{
42533
+ foreignKeyName: "invoice_items_invoice_id_fkey";
42534
+ columns: ["factuur_id"];
42535
+ isOneToOne: false;
42536
+ referencedRelation: "invoices";
42537
+ referencedColumns: ["id"];
42538
+ }, {
42539
+ foreignKeyName: "invoice_items_invoice_id_fkey";
42540
+ columns: ["factuur_id"];
42541
+ isOneToOne: false;
42542
+ referencedRelation: "uren_facturen";
42543
+ referencedColumns: ["id"];
42544
+ }];
42545
+ };
41330
42546
  v_external_customers_exact: {
41331
42547
  Row: {
41332
42548
  account_number: string | null;
@@ -41832,6 +43048,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
41832
43048
  gebruiker_id: string | null;
41833
43049
  gebruiker_naam: string;
41834
43050
  gestart_op: string | null;
43051
+ herkomst: string | null;
41835
43052
  id: string;
41836
43053
  idempotentie_sleutel: string | null;
41837
43054
  is_herprint: boolean;
@@ -41952,6 +43169,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
41952
43169
  gebruiker_id: string | null;
41953
43170
  gebruiker_naam: string;
41954
43171
  gestart_op: string | null;
43172
+ herkomst: string | null;
41955
43173
  id: string;
41956
43174
  idempotentie_sleutel: string | null;
41957
43175
  is_herprint: boolean;
@@ -42553,6 +43771,46 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
42553
43771
  Args: never;
42554
43772
  Returns: boolean;
42555
43773
  };
43774
+ invoice_create_from_source: {
43775
+ Args: {
43776
+ _payload?: import("../integrations/supabase/types").Json;
43777
+ _source_id: string;
43778
+ _source_type: string;
43779
+ };
43780
+ Returns: import("../integrations/supabase/types").Json;
43781
+ };
43782
+ invoice_get_billable_lines: {
43783
+ Args: {
43784
+ _invoice_id: string;
43785
+ };
43786
+ Returns: import("../integrations/supabase/types").Json;
43787
+ };
43788
+ invoice_get_for_source: {
43789
+ Args: {
43790
+ _source_id: string;
43791
+ _source_type: string;
43792
+ };
43793
+ Returns: import("../integrations/supabase/types").Json;
43794
+ };
43795
+ invoice_get_summary: {
43796
+ Args: {
43797
+ _invoice_id: string;
43798
+ };
43799
+ Returns: import("../integrations/supabase/types").Json;
43800
+ };
43801
+ invoice_list_sources: {
43802
+ Args: {
43803
+ _limit?: number;
43804
+ _source_type?: string;
43805
+ };
43806
+ Returns: import("../integrations/supabase/types").Json;
43807
+ };
43808
+ invoice_recalc_totals: {
43809
+ Args: {
43810
+ _invoice_id: string;
43811
+ };
43812
+ Returns: import("../integrations/supabase/types").Json;
43813
+ };
42556
43814
  is_authenticated: {
42557
43815
  Args: never;
42558
43816
  Returns: boolean;
@@ -42621,6 +43879,29 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
42621
43879
  roles: string[];
42622
43880
  }[];
42623
43881
  };
43882
+ list_monteur_absences: {
43883
+ Args: {
43884
+ _from: string;
43885
+ _to: string;
43886
+ };
43887
+ Returns: {
43888
+ absence_date: string;
43889
+ end_time: string;
43890
+ full_day: boolean;
43891
+ kind: string;
43892
+ monteur_id: string;
43893
+ start_time: string;
43894
+ }[];
43895
+ };
43896
+ list_monteurs: {
43897
+ Args: never;
43898
+ Returns: {
43899
+ avatar_url: string;
43900
+ display_name: string;
43901
+ email: string;
43902
+ id: string;
43903
+ }[];
43904
+ };
42624
43905
  list_my_planning_items: {
42625
43906
  Args: {
42626
43907
  _from: string;
@@ -43032,6 +44313,41 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43032
44313
  };
43033
44314
  Returns: string;
43034
44315
  };
44316
+ logistics_floriday_finish_push_v2: {
44317
+ Args: {
44318
+ _error?: string;
44319
+ _error_code?: string;
44320
+ _fulfillment_order_id?: string;
44321
+ _gateway_status?: number;
44322
+ _id: string;
44323
+ _max_age_hours?: number;
44324
+ _max_attempts?: number;
44325
+ _ok: boolean;
44326
+ _permanent?: boolean;
44327
+ _response?: import("../integrations/supabase/types").Json;
44328
+ _revision: number;
44329
+ _sent_hash?: string;
44330
+ };
44331
+ Returns: string;
44332
+ };
44333
+ logistics_floriday_finish_push_v3: {
44334
+ Args: {
44335
+ _error?: string;
44336
+ _error_code?: string;
44337
+ _fulfillment_order_id?: string;
44338
+ _gateway_status?: number;
44339
+ _id: string;
44340
+ _max_age_hours?: number;
44341
+ _max_attempts?: number;
44342
+ _outcome: string;
44343
+ _permanent?: boolean;
44344
+ _response?: import("../integrations/supabase/types").Json;
44345
+ _revision: number;
44346
+ _sent_hash?: string;
44347
+ _wait_max_age_hours?: number;
44348
+ };
44349
+ Returns: string;
44350
+ };
43035
44351
  logistics_floriday_prune_pushes: {
43036
44352
  Args: {
43037
44353
  _days?: number;
@@ -43460,6 +44776,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43460
44776
  verwijderd: number;
43461
44777
  }[];
43462
44778
  };
44779
+ order_departure_proof: {
44780
+ Args: {
44781
+ p_order_id: string;
44782
+ };
44783
+ Returns: import("../integrations/supabase/types").Json;
44784
+ };
43463
44785
  order_number_prefix: {
43464
44786
  Args: {
43465
44787
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -43574,6 +44896,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43574
44896
  isSetofReturn: false;
43575
44897
  };
43576
44898
  };
44899
+ pick_cleanup_maintenance: {
44900
+ Args: {
44901
+ _heartbeat_hours?: number;
44902
+ _log_days?: number;
44903
+ };
44904
+ Returns: import("../integrations/supabase/types").Json;
44905
+ };
43577
44906
  pick_complete_print: {
43578
44907
  Args: {
43579
44908
  _printer_id: string;
@@ -43625,6 +44954,14 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43625
44954
  Args: never;
43626
44955
  Returns: string;
43627
44956
  };
44957
+ pick_day_counts: {
44958
+ Args: {
44959
+ _pick_day?: string;
44960
+ _screen_id?: string;
44961
+ _station_id?: string;
44962
+ };
44963
+ Returns: import("../integrations/supabase/types").Json;
44964
+ };
43628
44965
  pick_document_layout_data: {
43629
44966
  Args: {
43630
44967
  _layout_id: string;
@@ -43652,6 +44989,14 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43652
44989
  };
43653
44990
  Returns: import("../integrations/supabase/types").Json;
43654
44991
  };
44992
+ pick_print_plekken: {
44993
+ Args: never;
44994
+ Returns: {
44995
+ id: string;
44996
+ naam: string;
44997
+ omschrijving: string;
44998
+ }[];
44999
+ };
43655
45000
  pick_release_expired_locks: {
43656
45001
  Args: never;
43657
45002
  Returns: number;
@@ -43662,6 +45007,14 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43662
45007
  };
43663
45008
  Returns: undefined;
43664
45009
  };
45010
+ pick_reprint_document: {
45011
+ Args: {
45012
+ _queue_item_id: string;
45013
+ _session_id: string;
45014
+ _throttle_seconds?: number;
45015
+ };
45016
+ Returns: string;
45017
+ };
43665
45018
  pick_reset_print: {
43666
45019
  Args: {
43667
45020
  _queue_item_id: string;
@@ -43708,6 +45061,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43708
45061
  isSetofReturn: false;
43709
45062
  };
43710
45063
  };
45064
+ pick_set_station_print_plek: {
45065
+ Args: {
45066
+ _print_plek_id: string;
45067
+ _station_id: string;
45068
+ };
45069
+ Returns: string;
45070
+ };
43711
45071
  pick_station_dashboard: {
43712
45072
  Args: never;
43713
45073
  Returns: {
@@ -43720,6 +45080,25 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43720
45080
  waiting: number;
43721
45081
  }[];
43722
45082
  };
45083
+ pick_station_print_plek: {
45084
+ Args: {
45085
+ _station_id: string;
45086
+ };
45087
+ Returns: {
45088
+ naam: string;
45089
+ omschrijving: string;
45090
+ print_plek_id: string;
45091
+ }[];
45092
+ };
45093
+ pick_station_print_plekken: {
45094
+ Args: never;
45095
+ Returns: {
45096
+ naam: string;
45097
+ omschrijving: string;
45098
+ print_plek_id: string;
45099
+ station_id: string;
45100
+ }[];
45101
+ };
43723
45102
  pick_station_slugify: {
43724
45103
  Args: {
43725
45104
  _id: string;
@@ -43727,6 +45106,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43727
45106
  };
43728
45107
  Returns: string;
43729
45108
  };
45109
+ pick_sync_queue_throttled: {
45110
+ Args: {
45111
+ _min_seconds?: number;
45112
+ };
45113
+ Returns: import("../integrations/supabase/types").Json;
45114
+ };
43730
45115
  pickstation_get_orders_raw: {
43731
45116
  Args: never;
43732
45117
  Returns: import("../integrations/supabase/types").Json;
@@ -43872,6 +45257,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43872
45257
  };
43873
45258
  Returns: boolean;
43874
45259
  };
45260
+ release_stale_order_invoice_links: {
45261
+ Args: {
45262
+ _minutes?: number;
45263
+ };
45264
+ Returns: number;
45265
+ };
43875
45266
  reorder_customer_price_groups: {
43876
45267
  Args: {
43877
45268
  _ids: string[];
@@ -44390,6 +45781,20 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
44390
45781
  };
44391
45782
  Returns: undefined;
44392
45783
  };
45784
+ twinfield_deactivate_connection: {
45785
+ Args: {
45786
+ p_connection_id: string;
45787
+ p_user_id: string;
45788
+ };
45789
+ Returns: import("../integrations/supabase/types").Json;
45790
+ };
45791
+ twinfield_handle_administration_change: {
45792
+ Args: {
45793
+ _administration_code: string;
45794
+ _user_id: string;
45795
+ };
45796
+ Returns: undefined;
45797
+ };
44393
45798
  twinfield_prune_push_queue: {
44394
45799
  Args: never;
44395
45800
  Returns: number;
@@ -44409,10 +45814,11 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
44409
45814
  p_company_name?: string;
44410
45815
  p_environment: string;
44411
45816
  p_office_code?: string;
45817
+ p_reset_sync?: boolean;
44412
45818
  p_status?: string;
44413
45819
  p_user_id: string;
44414
45820
  };
44415
- Returns: string;
45821
+ Returns: import("../integrations/supabase/types").Json;
44416
45822
  };
44417
45823
  upsert_auto_fulfillment_log: {
44418
45824
  Args: {
@@ -45179,6 +46585,99 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
45179
46585
  };
45180
46586
  Relationships: [];
45181
46587
  };
46588
+ artikelen_cache: {
46589
+ Row: {
46590
+ artikelcode: string;
46591
+ bron: string;
46592
+ bruto_prijs_cent: number | null;
46593
+ created_at: string;
46594
+ eenheid: string;
46595
+ fabrikant: string | null;
46596
+ fetched_at: string;
46597
+ gtin: string | null;
46598
+ id: string;
46599
+ naam: string;
46600
+ netto_prijs_cent: number | null;
46601
+ omschrijving: string | null;
46602
+ raw: import("../integrations/supabase/types").Json;
46603
+ updated_at: string;
46604
+ valuta: string;
46605
+ };
46606
+ Insert: {
46607
+ artikelcode: string;
46608
+ bron?: string;
46609
+ bruto_prijs_cent?: number | null;
46610
+ created_at?: string;
46611
+ eenheid?: string;
46612
+ fabrikant?: string | null;
46613
+ fetched_at?: string;
46614
+ gtin?: string | null;
46615
+ id?: string;
46616
+ naam: string;
46617
+ netto_prijs_cent?: number | null;
46618
+ omschrijving?: string | null;
46619
+ raw?: import("../integrations/supabase/types").Json;
46620
+ updated_at?: string;
46621
+ valuta?: string;
46622
+ };
46623
+ Update: {
46624
+ artikelcode?: string;
46625
+ bron?: string;
46626
+ bruto_prijs_cent?: number | null;
46627
+ created_at?: string;
46628
+ eenheid?: string;
46629
+ fabrikant?: string | null;
46630
+ fetched_at?: string;
46631
+ gtin?: string | null;
46632
+ id?: string;
46633
+ naam?: string;
46634
+ netto_prijs_cent?: number | null;
46635
+ omschrijving?: string | null;
46636
+ raw?: import("../integrations/supabase/types").Json;
46637
+ updated_at?: string;
46638
+ valuta?: string;
46639
+ };
46640
+ Relationships: [];
46641
+ };
46642
+ artikelen_veldconfig: {
46643
+ Row: {
46644
+ bron_pad: string;
46645
+ created_at: string;
46646
+ id: string;
46647
+ label: string;
46648
+ sort_order: number;
46649
+ type: string;
46650
+ updated_at: string;
46651
+ veld_key: string;
46652
+ zichtbaar_in_detail: boolean;
46653
+ zichtbaar_in_lijst: boolean;
46654
+ };
46655
+ Insert: {
46656
+ bron_pad: string;
46657
+ created_at?: string;
46658
+ id?: string;
46659
+ label: string;
46660
+ sort_order?: number;
46661
+ type?: string;
46662
+ updated_at?: string;
46663
+ veld_key: string;
46664
+ zichtbaar_in_detail?: boolean;
46665
+ zichtbaar_in_lijst?: boolean;
46666
+ };
46667
+ Update: {
46668
+ bron_pad?: string;
46669
+ created_at?: string;
46670
+ id?: string;
46671
+ label?: string;
46672
+ sort_order?: number;
46673
+ type?: string;
46674
+ updated_at?: string;
46675
+ veld_key?: string;
46676
+ zichtbaar_in_detail?: boolean;
46677
+ zichtbaar_in_lijst?: boolean;
46678
+ };
46679
+ Relationships: [];
46680
+ };
45182
46681
  booking_items: {
45183
46682
  Row: {
45184
46683
  booking_id: string;
@@ -47264,6 +48763,42 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47264
48763
  };
47265
48764
  Relationships: [];
47266
48765
  };
48766
+ document_bronregels: {
48767
+ Row: {
48768
+ bron: string;
48769
+ created_at: string;
48770
+ documenttype: string;
48771
+ herkomst: string;
48772
+ id: string;
48773
+ layout_id: string | null;
48774
+ updated_at: string;
48775
+ };
48776
+ Insert: {
48777
+ bron?: string;
48778
+ created_at?: string;
48779
+ documenttype: string;
48780
+ herkomst: string;
48781
+ id?: string;
48782
+ layout_id?: string | null;
48783
+ updated_at?: string;
48784
+ };
48785
+ Update: {
48786
+ bron?: string;
48787
+ created_at?: string;
48788
+ documenttype?: string;
48789
+ herkomst?: string;
48790
+ id?: string;
48791
+ layout_id?: string | null;
48792
+ updated_at?: string;
48793
+ };
48794
+ Relationships: [{
48795
+ foreignKeyName: "document_bronregels_layout_id_fkey";
48796
+ columns: ["layout_id"];
48797
+ isOneToOne: false;
48798
+ referencedRelation: "document_layouts";
48799
+ referencedColumns: ["id"];
48800
+ }];
48801
+ };
47267
48802
  document_formaat_printers: {
47268
48803
  Row: {
47269
48804
  created_at: string;
@@ -47541,6 +49076,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47541
49076
  Row: {
47542
49077
  actief: boolean;
47543
49078
  breedte_mm: number;
49079
+ bron: string;
47544
49080
  config: import("../integrations/supabase/types").Json;
47545
49081
  created_at: string;
47546
49082
  created_by: string | null;
@@ -47558,12 +49094,14 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47558
49094
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47559
49095
  page_settings: import("../integrations/supabase/types").Json;
47560
49096
  papierformaat: string;
49097
+ systeem: boolean;
47561
49098
  thumbnail_url: string | null;
47562
49099
  updated_at: string;
47563
49100
  };
47564
49101
  Insert: {
47565
49102
  actief?: boolean;
47566
49103
  breedte_mm?: number;
49104
+ bron?: string;
47567
49105
  config?: import("../integrations/supabase/types").Json;
47568
49106
  created_at?: string;
47569
49107
  created_by?: string | null;
@@ -47581,12 +49119,14 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47581
49119
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47582
49120
  page_settings?: import("../integrations/supabase/types").Json;
47583
49121
  papierformaat?: string;
49122
+ systeem?: boolean;
47584
49123
  thumbnail_url?: string | null;
47585
49124
  updated_at?: string;
47586
49125
  };
47587
49126
  Update: {
47588
49127
  actief?: boolean;
47589
49128
  breedte_mm?: number;
49129
+ bron?: string;
47590
49130
  config?: import("../integrations/supabase/types").Json;
47591
49131
  created_at?: string;
47592
49132
  created_by?: string | null;
@@ -47604,11 +49144,90 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47604
49144
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47605
49145
  page_settings?: import("../integrations/supabase/types").Json;
47606
49146
  papierformaat?: string;
49147
+ systeem?: boolean;
47607
49148
  thumbnail_url?: string | null;
47608
49149
  updated_at?: string;
47609
49150
  };
47610
49151
  Relationships: [];
47611
49152
  };
49153
+ document_printplek_printers: {
49154
+ Row: {
49155
+ created_at: string;
49156
+ documenttype: string;
49157
+ id: string;
49158
+ papierformaat: string | null;
49159
+ print_plek_id: string;
49160
+ printer_id: string | null;
49161
+ updated_at: string;
49162
+ };
49163
+ Insert: {
49164
+ created_at?: string;
49165
+ documenttype: string;
49166
+ id?: string;
49167
+ papierformaat?: string | null;
49168
+ print_plek_id: string;
49169
+ printer_id?: string | null;
49170
+ updated_at?: string;
49171
+ };
49172
+ Update: {
49173
+ created_at?: string;
49174
+ documenttype?: string;
49175
+ id?: string;
49176
+ papierformaat?: string | null;
49177
+ print_plek_id?: string;
49178
+ printer_id?: string | null;
49179
+ updated_at?: string;
49180
+ };
49181
+ Relationships: [{
49182
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
49183
+ columns: ["print_plek_id"];
49184
+ isOneToOne: false;
49185
+ referencedRelation: "print_plekken";
49186
+ referencedColumns: ["id"];
49187
+ }, {
49188
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
49189
+ columns: ["printer_id"];
49190
+ isOneToOne: false;
49191
+ referencedRelation: "printers";
49192
+ referencedColumns: ["id"];
49193
+ }];
49194
+ };
49195
+ document_werkplek_printers: {
49196
+ Row: {
49197
+ created_at: string;
49198
+ documenttype: string;
49199
+ id: string;
49200
+ papierformaat: string | null;
49201
+ printer_id: string | null;
49202
+ updated_at: string;
49203
+ werkplek: string;
49204
+ };
49205
+ Insert: {
49206
+ created_at?: string;
49207
+ documenttype: string;
49208
+ id?: string;
49209
+ papierformaat?: string | null;
49210
+ printer_id?: string | null;
49211
+ updated_at?: string;
49212
+ werkplek: string;
49213
+ };
49214
+ Update: {
49215
+ created_at?: string;
49216
+ documenttype?: string;
49217
+ id?: string;
49218
+ papierformaat?: string | null;
49219
+ printer_id?: string | null;
49220
+ updated_at?: string;
49221
+ werkplek?: string;
49222
+ };
49223
+ Relationships: [{
49224
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
49225
+ columns: ["printer_id"];
49226
+ isOneToOne: false;
49227
+ referencedRelation: "printers";
49228
+ referencedColumns: ["id"];
49229
+ }];
49230
+ };
47612
49231
  email_auth_connections: {
47613
49232
  Row: {
47614
49233
  access_token_encrypted: string | null;
@@ -49550,42 +51169,6 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
49550
51169
  };
49551
51170
  Relationships: [];
49552
51171
  };
49553
- facturen: {
49554
- Row: {
49555
- bedrag_incl_btw: number;
49556
- created_at: string;
49557
- datum: string;
49558
- factuurnummer: string;
49559
- id: string;
49560
- klantnaam: string;
49561
- status: string;
49562
- updated_at: string;
49563
- user_id: string;
49564
- };
49565
- Insert: {
49566
- bedrag_incl_btw: number;
49567
- created_at?: string;
49568
- datum?: string;
49569
- factuurnummer: string;
49570
- id?: string;
49571
- klantnaam: string;
49572
- status?: string;
49573
- updated_at?: string;
49574
- user_id?: string;
49575
- };
49576
- Update: {
49577
- bedrag_incl_btw?: number;
49578
- created_at?: string;
49579
- datum?: string;
49580
- factuurnummer?: string;
49581
- id?: string;
49582
- klantnaam?: string;
49583
- status?: string;
49584
- updated_at?: string;
49585
- user_id?: string;
49586
- };
49587
- Relationships: [];
49588
- };
49589
51172
  floricode_connection_settings: {
49590
51173
  Row: {
49591
51174
  catalog_key: string | null;
@@ -51890,8 +53473,63 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
51890
53473
  };
51891
53474
  Relationships: [];
51892
53475
  };
53476
+ invoice_items: {
53477
+ Row: {
53478
+ created_at: string;
53479
+ description: string;
53480
+ id: string;
53481
+ invoice_id: string;
53482
+ kind: string;
53483
+ quantity: number;
53484
+ sort_order: number;
53485
+ source_line_ref: string | null;
53486
+ total_cents: number;
53487
+ unit: string;
53488
+ unit_price_cents: number;
53489
+ };
53490
+ Insert: {
53491
+ created_at?: string;
53492
+ description?: string;
53493
+ id?: string;
53494
+ invoice_id: string;
53495
+ kind?: string;
53496
+ quantity?: number;
53497
+ sort_order?: number;
53498
+ source_line_ref?: string | null;
53499
+ total_cents?: number;
53500
+ unit?: string;
53501
+ unit_price_cents?: number;
53502
+ };
53503
+ Update: {
53504
+ created_at?: string;
53505
+ description?: string;
53506
+ id?: string;
53507
+ invoice_id?: string;
53508
+ kind?: string;
53509
+ quantity?: number;
53510
+ sort_order?: number;
53511
+ source_line_ref?: string | null;
53512
+ total_cents?: number;
53513
+ unit?: string;
53514
+ unit_price_cents?: number;
53515
+ };
53516
+ Relationships: [{
53517
+ foreignKeyName: "invoice_items_invoice_id_fkey";
53518
+ columns: ["invoice_id"];
53519
+ isOneToOne: false;
53520
+ referencedRelation: "invoices";
53521
+ referencedColumns: ["id"];
53522
+ }, {
53523
+ foreignKeyName: "invoice_items_invoice_id_fkey";
53524
+ columns: ["invoice_id"];
53525
+ isOneToOne: false;
53526
+ referencedRelation: "uren_facturen";
53527
+ referencedColumns: ["id"];
53528
+ }];
53529
+ };
51893
53530
  invoice_post_idempotency: {
51894
53531
  Row: {
53532
+ administration_code: string;
51895
53533
  client_request_id: string;
51896
53534
  completed_at: string | null;
51897
53535
  created_at: string;
@@ -51901,6 +53539,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
51901
53539
  user_id: string;
51902
53540
  };
51903
53541
  Insert: {
53542
+ administration_code?: string;
51904
53543
  client_request_id: string;
51905
53544
  completed_at?: string | null;
51906
53545
  created_at?: string;
@@ -51910,6 +53549,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
51910
53549
  user_id: string;
51911
53550
  };
51912
53551
  Update: {
53552
+ administration_code?: string;
51913
53553
  client_request_id?: string;
51914
53554
  completed_at?: string | null;
51915
53555
  created_at?: string;
@@ -52115,6 +53755,75 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52115
53755
  };
52116
53756
  Relationships: [];
52117
53757
  };
53758
+ invoices: {
53759
+ Row: {
53760
+ created_at: string;
53761
+ created_by: string | null;
53762
+ customer_id: string | null;
53763
+ customer_name: string | null;
53764
+ due_date: string | null;
53765
+ id: string;
53766
+ invoice_date: string;
53767
+ invoice_number: string | null;
53768
+ note: string | null;
53769
+ source_number: string | null;
53770
+ source_ref: string | null;
53771
+ source_type: string;
53772
+ status: string;
53773
+ subtotal_cents: number;
53774
+ total_cents: number;
53775
+ updated_at: string;
53776
+ vat_cents: number;
53777
+ vat_rate: number;
53778
+ };
53779
+ Insert: {
53780
+ created_at?: string;
53781
+ created_by?: string | null;
53782
+ customer_id?: string | null;
53783
+ customer_name?: string | null;
53784
+ due_date?: string | null;
53785
+ id?: string;
53786
+ invoice_date?: string;
53787
+ invoice_number?: string | null;
53788
+ note?: string | null;
53789
+ source_number?: string | null;
53790
+ source_ref?: string | null;
53791
+ source_type?: string;
53792
+ status?: string;
53793
+ subtotal_cents?: number;
53794
+ total_cents?: number;
53795
+ updated_at?: string;
53796
+ vat_cents?: number;
53797
+ vat_rate?: number;
53798
+ };
53799
+ Update: {
53800
+ created_at?: string;
53801
+ created_by?: string | null;
53802
+ customer_id?: string | null;
53803
+ customer_name?: string | null;
53804
+ due_date?: string | null;
53805
+ id?: string;
53806
+ invoice_date?: string;
53807
+ invoice_number?: string | null;
53808
+ note?: string | null;
53809
+ source_number?: string | null;
53810
+ source_ref?: string | null;
53811
+ source_type?: string;
53812
+ status?: string;
53813
+ subtotal_cents?: number;
53814
+ total_cents?: number;
53815
+ updated_at?: string;
53816
+ vat_cents?: number;
53817
+ vat_rate?: number;
53818
+ };
53819
+ Relationships: [{
53820
+ foreignKeyName: "invoices_customer_id_fkey";
53821
+ columns: ["customer_id"];
53822
+ isOneToOne: false;
53823
+ referencedRelation: "itk_customers";
53824
+ referencedColumns: ["id"];
53825
+ }];
53826
+ };
52118
53827
  itk_contact_persons: {
52119
53828
  Row: {
52120
53829
  created_at: string;
@@ -53462,6 +55171,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
53462
55171
  id: string;
53463
55172
  last_error: string | null;
53464
55173
  last_error_at: string | null;
55174
+ last_error_code: string | null;
55175
+ last_gateway_status: number | null;
55176
+ last_queued_at: string | null;
55177
+ last_response: import("../integrations/supabase/types").Json | null;
53465
55178
  last_sent_hash: string | null;
53466
55179
  locked_by: string | null;
53467
55180
  locked_until: string | null;
@@ -53482,6 +55195,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
53482
55195
  id?: string;
53483
55196
  last_error?: string | null;
53484
55197
  last_error_at?: string | null;
55198
+ last_error_code?: string | null;
55199
+ last_gateway_status?: number | null;
55200
+ last_queued_at?: string | null;
55201
+ last_response?: import("../integrations/supabase/types").Json | null;
53485
55202
  last_sent_hash?: string | null;
53486
55203
  locked_by?: string | null;
53487
55204
  locked_until?: string | null;
@@ -53502,6 +55219,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
53502
55219
  id?: string;
53503
55220
  last_error?: string | null;
53504
55221
  last_error_at?: string | null;
55222
+ last_error_code?: string | null;
55223
+ last_gateway_status?: number | null;
55224
+ last_queued_at?: string | null;
55225
+ last_response?: import("../integrations/supabase/types").Json | null;
53505
55226
  last_sent_hash?: string | null;
53506
55227
  locked_by?: string | null;
53507
55228
  locked_until?: string | null;
@@ -55055,6 +56776,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
55055
56776
  enforce: boolean;
55056
56777
  is_active: boolean;
55057
56778
  last_seen_at: string;
56779
+ missing_count: number;
55058
56780
  module_id: string;
55059
56781
  name: string;
55060
56782
  shell_id: string | null;
@@ -55065,6 +56787,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
55065
56787
  enforce?: boolean;
55066
56788
  is_active?: boolean;
55067
56789
  last_seen_at?: string;
56790
+ missing_count?: number;
55068
56791
  module_id: string;
55069
56792
  name: string;
55070
56793
  shell_id?: string | null;
@@ -55075,6 +56798,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
55075
56798
  enforce?: boolean;
55076
56799
  is_active?: boolean;
55077
56800
  last_seen_at?: string;
56801
+ missing_count?: number;
55078
56802
  module_id?: string;
55079
56803
  name?: string;
55080
56804
  shell_id?: string | null;
@@ -56074,6 +57798,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
56074
57798
  };
56075
57799
  order_invoice_links: {
56076
57800
  Row: {
57801
+ administration_code: string | null;
56077
57802
  attempts: number;
56078
57803
  created_at: string;
56079
57804
  error_message: string | null;
@@ -56086,6 +57811,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
56086
57811
  updated_at: string;
56087
57812
  };
56088
57813
  Insert: {
57814
+ administration_code?: string | null;
56089
57815
  attempts?: number;
56090
57816
  created_at?: string;
56091
57817
  error_message?: string | null;
@@ -56098,6 +57824,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
56098
57824
  updated_at?: string;
56099
57825
  };
56100
57826
  Update: {
57827
+ administration_code?: string | null;
56101
57828
  attempts?: number;
56102
57829
  created_at?: string;
56103
57830
  error_message?: string | null;
@@ -57263,6 +58990,27 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57263
58990
  referencedColumns: ["id"];
57264
58991
  }];
57265
58992
  };
58993
+ pick_sync_state: {
58994
+ Row: {
58995
+ id: boolean;
58996
+ last_cleanup_at: string | null;
58997
+ last_sync_at: string | null;
58998
+ updated_at: string;
58999
+ };
59000
+ Insert: {
59001
+ id?: boolean;
59002
+ last_cleanup_at?: string | null;
59003
+ last_sync_at?: string | null;
59004
+ updated_at?: string;
59005
+ };
59006
+ Update: {
59007
+ id?: boolean;
59008
+ last_cleanup_at?: string | null;
59009
+ last_sync_at?: string | null;
59010
+ updated_at?: string;
59011
+ };
59012
+ Relationships: [];
59013
+ };
57266
59014
  pick_task_document_types: {
57267
59015
  Row: {
57268
59016
  created_at: string;
@@ -57545,6 +59293,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57545
59293
  gebruiker_id: string | null;
57546
59294
  gebruiker_naam: string;
57547
59295
  gestart_op: string | null;
59296
+ herkomst: string | null;
57548
59297
  id: string;
57549
59298
  idempotentie_sleutel: string | null;
57550
59299
  is_herprint: boolean;
@@ -57574,6 +59323,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57574
59323
  gebruiker_id?: string | null;
57575
59324
  gebruiker_naam?: string;
57576
59325
  gestart_op?: string | null;
59326
+ herkomst?: string | null;
57577
59327
  id?: string;
57578
59328
  idempotentie_sleutel?: string | null;
57579
59329
  is_herprint?: boolean;
@@ -57603,6 +59353,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57603
59353
  gebruiker_id?: string | null;
57604
59354
  gebruiker_naam?: string;
57605
59355
  gestart_op?: string | null;
59356
+ herkomst?: string | null;
57606
59357
  id?: string;
57607
59358
  idempotentie_sleutel?: string | null;
57608
59359
  is_herprint?: boolean;
@@ -57641,6 +59392,99 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57641
59392
  referencedColumns: ["id"];
57642
59393
  }];
57643
59394
  };
59395
+ print_plek_computers: {
59396
+ Row: {
59397
+ computer_naam: string;
59398
+ created_at: string;
59399
+ id: string;
59400
+ print_plek_id: string;
59401
+ updated_at: string;
59402
+ };
59403
+ Insert: {
59404
+ computer_naam: string;
59405
+ created_at?: string;
59406
+ id?: string;
59407
+ print_plek_id: string;
59408
+ updated_at?: string;
59409
+ };
59410
+ Update: {
59411
+ computer_naam?: string;
59412
+ created_at?: string;
59413
+ id?: string;
59414
+ print_plek_id?: string;
59415
+ updated_at?: string;
59416
+ };
59417
+ Relationships: [{
59418
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
59419
+ columns: ["print_plek_id"];
59420
+ isOneToOne: false;
59421
+ referencedRelation: "print_plekken";
59422
+ referencedColumns: ["id"];
59423
+ }];
59424
+ };
59425
+ print_plek_koppelingen: {
59426
+ Row: {
59427
+ bron: string;
59428
+ bron_id: string;
59429
+ created_at: string;
59430
+ id: string;
59431
+ label: string | null;
59432
+ print_plek_id: string;
59433
+ updated_at: string;
59434
+ };
59435
+ Insert: {
59436
+ bron: string;
59437
+ bron_id: string;
59438
+ created_at?: string;
59439
+ id?: string;
59440
+ label?: string | null;
59441
+ print_plek_id: string;
59442
+ updated_at?: string;
59443
+ };
59444
+ Update: {
59445
+ bron?: string;
59446
+ bron_id?: string;
59447
+ created_at?: string;
59448
+ id?: string;
59449
+ label?: string | null;
59450
+ print_plek_id?: string;
59451
+ updated_at?: string;
59452
+ };
59453
+ Relationships: [{
59454
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
59455
+ columns: ["print_plek_id"];
59456
+ isOneToOne: false;
59457
+ referencedRelation: "print_plekken";
59458
+ referencedColumns: ["id"];
59459
+ }];
59460
+ };
59461
+ print_plekken: {
59462
+ Row: {
59463
+ actief: boolean;
59464
+ created_at: string;
59465
+ id: string;
59466
+ naam: string;
59467
+ omschrijving: string | null;
59468
+ updated_at: string;
59469
+ };
59470
+ Insert: {
59471
+ actief?: boolean;
59472
+ created_at?: string;
59473
+ id?: string;
59474
+ naam: string;
59475
+ omschrijving?: string | null;
59476
+ updated_at?: string;
59477
+ };
59478
+ Update: {
59479
+ actief?: boolean;
59480
+ created_at?: string;
59481
+ id?: string;
59482
+ naam?: string;
59483
+ omschrijving?: string | null;
59484
+ updated_at?: string;
59485
+ };
59486
+ Relationships: [];
59487
+ };
57644
59488
  print_queue_runners: {
57645
59489
  Row: {
57646
59490
  actief: boolean;
@@ -59795,6 +61639,45 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
59795
61639
  };
59796
61640
  Relationships: [];
59797
61641
  };
61642
+ stock_consumption_alerts: {
61643
+ Row: {
61644
+ alert_type: string;
61645
+ created_at: string;
61646
+ id: string;
61647
+ mutation_log_id: string | null;
61648
+ order_id: string | null;
61649
+ order_item_id: string | null;
61650
+ qty: number;
61651
+ reason: string | null;
61652
+ resolved_at: string | null;
61653
+ updated_at: string;
61654
+ };
61655
+ Insert: {
61656
+ alert_type: string;
61657
+ created_at?: string;
61658
+ id?: string;
61659
+ mutation_log_id?: string | null;
61660
+ order_id?: string | null;
61661
+ order_item_id?: string | null;
61662
+ qty?: number;
61663
+ reason?: string | null;
61664
+ resolved_at?: string | null;
61665
+ updated_at?: string;
61666
+ };
61667
+ Update: {
61668
+ alert_type?: string;
61669
+ created_at?: string;
61670
+ id?: string;
61671
+ mutation_log_id?: string | null;
61672
+ order_id?: string | null;
61673
+ order_item_id?: string | null;
61674
+ qty?: number;
61675
+ reason?: string | null;
61676
+ resolved_at?: string | null;
61677
+ updated_at?: string;
61678
+ };
61679
+ Relationships: [];
61680
+ };
59798
61681
  stock_import_runs: {
59799
61682
  Row: {
59800
61683
  connection_id: string | null;
@@ -60607,12 +62490,16 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60607
62490
  company_name: string | null;
60608
62491
  connected_at: string | null;
60609
62492
  created_at: string;
62493
+ disconnected_at: string | null;
60610
62494
  environment: string;
60611
62495
  id: string;
62496
+ initial_sync_completed_at: string | null;
62497
+ initial_sync_started_at: string | null;
60612
62498
  is_active: boolean;
60613
62499
  label: string | null;
60614
62500
  office_code: string | null;
60615
62501
  redirect_uri: string | null;
62502
+ superseded_at: string | null;
60616
62503
  updated_at: string;
60617
62504
  user_id: string;
60618
62505
  };
@@ -60623,12 +62510,16 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60623
62510
  company_name?: string | null;
60624
62511
  connected_at?: string | null;
60625
62512
  created_at?: string;
62513
+ disconnected_at?: string | null;
60626
62514
  environment: string;
60627
62515
  id?: string;
62516
+ initial_sync_completed_at?: string | null;
62517
+ initial_sync_started_at?: string | null;
60628
62518
  is_active?: boolean;
60629
62519
  label?: string | null;
60630
62520
  office_code?: string | null;
60631
62521
  redirect_uri?: string | null;
62522
+ superseded_at?: string | null;
60632
62523
  updated_at?: string;
60633
62524
  user_id: string;
60634
62525
  };
@@ -60639,12 +62530,16 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60639
62530
  company_name?: string | null;
60640
62531
  connected_at?: string | null;
60641
62532
  created_at?: string;
62533
+ disconnected_at?: string | null;
60642
62534
  environment?: string;
60643
62535
  id?: string;
62536
+ initial_sync_completed_at?: string | null;
62537
+ initial_sync_started_at?: string | null;
60644
62538
  is_active?: boolean;
60645
62539
  label?: string | null;
60646
62540
  office_code?: string | null;
60647
62541
  redirect_uri?: string | null;
62542
+ superseded_at?: string | null;
60648
62543
  updated_at?: string;
60649
62544
  user_id?: string;
60650
62545
  };
@@ -60704,6 +62599,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60704
62599
  twinfield_customers: {
60705
62600
  Row: {
60706
62601
  address: string | null;
62602
+ administration_code: string;
60707
62603
  city: string | null;
60708
62604
  country: string | null;
60709
62605
  created_at: string;
@@ -60723,6 +62619,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60723
62619
  };
60724
62620
  Insert: {
60725
62621
  address?: string | null;
62622
+ administration_code?: string;
60726
62623
  city?: string | null;
60727
62624
  country?: string | null;
60728
62625
  created_at?: string;
@@ -60742,6 +62639,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60742
62639
  };
60743
62640
  Update: {
60744
62641
  address?: string | null;
62642
+ administration_code?: string;
60745
62643
  city?: string | null;
60746
62644
  country?: string | null;
60747
62645
  created_at?: string;
@@ -60955,7 +62853,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60955
62853
  };
60956
62854
  twinfield_invoice_settings: {
60957
62855
  Row: {
62856
+ administration_code: string | null;
60958
62857
  auto_invoice_enabled: boolean;
62858
+ auto_invoice_start_date: string | null;
60959
62859
  auto_invoice_trigger_statuses: string[];
60960
62860
  created_at: string;
60961
62861
  debtor_gl_account: string;
@@ -60969,15 +62869,19 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60969
62869
  invoice_enabled_fo: boolean;
60970
62870
  invoice_enabled_ho: boolean;
60971
62871
  invoice_enabled_mo: boolean;
62872
+ needs_review: boolean;
60972
62873
  payment_gl_account: string;
60973
62874
  payment_journal_code: string;
62875
+ settings_confirmed_at: string | null;
60974
62876
  updated_at: string;
60975
62877
  user_id: string;
60976
62878
  vat_code_eu_reverse: string | null;
60977
62879
  vat_code_export: string | null;
60978
62880
  };
60979
62881
  Insert: {
62882
+ administration_code?: string | null;
60980
62883
  auto_invoice_enabled?: boolean;
62884
+ auto_invoice_start_date?: string | null;
60981
62885
  auto_invoice_trigger_statuses?: string[];
60982
62886
  created_at?: string;
60983
62887
  debtor_gl_account?: string;
@@ -60991,15 +62895,19 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60991
62895
  invoice_enabled_fo?: boolean;
60992
62896
  invoice_enabled_ho?: boolean;
60993
62897
  invoice_enabled_mo?: boolean;
62898
+ needs_review?: boolean;
60994
62899
  payment_gl_account?: string;
60995
62900
  payment_journal_code?: string;
62901
+ settings_confirmed_at?: string | null;
60996
62902
  updated_at?: string;
60997
62903
  user_id: string;
60998
62904
  vat_code_eu_reverse?: string | null;
60999
62905
  vat_code_export?: string | null;
61000
62906
  };
61001
62907
  Update: {
62908
+ administration_code?: string | null;
61002
62909
  auto_invoice_enabled?: boolean;
62910
+ auto_invoice_start_date?: string | null;
61003
62911
  auto_invoice_trigger_statuses?: string[];
61004
62912
  created_at?: string;
61005
62913
  debtor_gl_account?: string;
@@ -61013,8 +62921,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
61013
62921
  invoice_enabled_fo?: boolean;
61014
62922
  invoice_enabled_ho?: boolean;
61015
62923
  invoice_enabled_mo?: boolean;
62924
+ needs_review?: boolean;
61016
62925
  payment_gl_account?: string;
61017
62926
  payment_journal_code?: string;
62927
+ settings_confirmed_at?: string | null;
61018
62928
  updated_at?: string;
61019
62929
  user_id?: string;
61020
62930
  vat_code_eu_reverse?: string | null;
@@ -61619,114 +63529,6 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
61619
63529
  };
61620
63530
  Relationships: [];
61621
63531
  };
61622
- uren_facturen: {
61623
- Row: {
61624
- created_at: string;
61625
- created_by: string | null;
61626
- customer_id: string | null;
61627
- customer_name: string | null;
61628
- id: string;
61629
- invoice_number: string | null;
61630
- note: string | null;
61631
- status: string;
61632
- total_excl_cents: number;
61633
- total_incl_cents: number;
61634
- updated_at: string;
61635
- vat_cents: number;
61636
- vat_percentage: number;
61637
- werkbon_id: string | null;
61638
- };
61639
- Insert: {
61640
- created_at?: string;
61641
- created_by?: string | null;
61642
- customer_id?: string | null;
61643
- customer_name?: string | null;
61644
- id?: string;
61645
- invoice_number?: string | null;
61646
- note?: string | null;
61647
- status?: string;
61648
- total_excl_cents?: number;
61649
- total_incl_cents?: number;
61650
- updated_at?: string;
61651
- vat_cents?: number;
61652
- vat_percentage?: number;
61653
- werkbon_id?: string | null;
61654
- };
61655
- Update: {
61656
- created_at?: string;
61657
- created_by?: string | null;
61658
- customer_id?: string | null;
61659
- customer_name?: string | null;
61660
- id?: string;
61661
- invoice_number?: string | null;
61662
- note?: string | null;
61663
- status?: string;
61664
- total_excl_cents?: number;
61665
- total_incl_cents?: number;
61666
- updated_at?: string;
61667
- vat_cents?: number;
61668
- vat_percentage?: number;
61669
- werkbon_id?: string | null;
61670
- };
61671
- Relationships: [{
61672
- foreignKeyName: "uren_facturen_customer_id_fkey";
61673
- columns: ["customer_id"];
61674
- isOneToOne: false;
61675
- referencedRelation: "itk_customers";
61676
- referencedColumns: ["id"];
61677
- }, {
61678
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
61679
- columns: ["werkbon_id"];
61680
- isOneToOne: true;
61681
- referencedRelation: "werkbonnen";
61682
- referencedColumns: ["id"];
61683
- }];
61684
- };
61685
- uren_factuur_regels: {
61686
- Row: {
61687
- created_at: string;
61688
- description: string;
61689
- factuur_id: string;
61690
- id: string;
61691
- kind: string | null;
61692
- quantity: number;
61693
- sort_order: number;
61694
- total_cents: number;
61695
- unit: string;
61696
- unit_price_cents: number;
61697
- };
61698
- Insert: {
61699
- created_at?: string;
61700
- description: string;
61701
- factuur_id: string;
61702
- id?: string;
61703
- kind?: string | null;
61704
- quantity?: number;
61705
- sort_order?: number;
61706
- total_cents?: number;
61707
- unit?: string;
61708
- unit_price_cents?: number;
61709
- };
61710
- Update: {
61711
- created_at?: string;
61712
- description?: string;
61713
- factuur_id?: string;
61714
- id?: string;
61715
- kind?: string | null;
61716
- quantity?: number;
61717
- sort_order?: number;
61718
- total_cents?: number;
61719
- unit?: string;
61720
- unit_price_cents?: number;
61721
- };
61722
- Relationships: [{
61723
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
61724
- columns: ["factuur_id"];
61725
- isOneToOne: false;
61726
- referencedRelation: "uren_facturen";
61727
- referencedColumns: ["id"];
61728
- }];
61729
- };
61730
63532
  uren_offerte_regels: {
61731
63533
  Row: {
61732
63534
  created_at: string;
@@ -62980,6 +64782,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
62980
64782
  scheduled_end_time: string | null;
62981
64783
  scheduled_start_time: string | null;
62982
64784
  sequence_number: number;
64785
+ signature_accepted_at: string | null;
64786
+ signature_by_user_id: string | null;
64787
+ signature_name: string | null;
62983
64788
  source_email_meta: import("../integrations/supabase/types").Json | null;
62984
64789
  source_mailbox_message_id: string | null;
62985
64790
  source_pdf_path: string | null;
@@ -63015,6 +64820,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
63015
64820
  scheduled_end_time?: string | null;
63016
64821
  scheduled_start_time?: string | null;
63017
64822
  sequence_number: number;
64823
+ signature_accepted_at?: string | null;
64824
+ signature_by_user_id?: string | null;
64825
+ signature_name?: string | null;
63018
64826
  source_email_meta?: import("../integrations/supabase/types").Json | null;
63019
64827
  source_mailbox_message_id?: string | null;
63020
64828
  source_pdf_path?: string | null;
@@ -63050,6 +64858,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
63050
64858
  scheduled_end_time?: string | null;
63051
64859
  scheduled_start_time?: string | null;
63052
64860
  sequence_number?: number;
64861
+ signature_accepted_at?: string | null;
64862
+ signature_by_user_id?: string | null;
64863
+ signature_name?: string | null;
63053
64864
  source_email_meta?: import("../integrations/supabase/types").Json | null;
63054
64865
  source_mailbox_message_id?: string | null;
63055
64866
  source_pdf_path?: string | null;
@@ -63566,6 +65377,114 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
63566
65377
  };
63567
65378
  Relationships: [];
63568
65379
  };
65380
+ uren_facturen: {
65381
+ Row: {
65382
+ created_at: string | null;
65383
+ created_by: string | null;
65384
+ customer_id: string | null;
65385
+ customer_name: string | null;
65386
+ id: string | null;
65387
+ invoice_number: string | null;
65388
+ note: string | null;
65389
+ status: string | null;
65390
+ total_excl_cents: number | null;
65391
+ total_incl_cents: number | null;
65392
+ updated_at: string | null;
65393
+ vat_cents: number | null;
65394
+ vat_percentage: number | null;
65395
+ werkbon_id: string | null;
65396
+ };
65397
+ Insert: {
65398
+ created_at?: string | null;
65399
+ created_by?: string | null;
65400
+ customer_id?: string | null;
65401
+ customer_name?: string | null;
65402
+ id?: string | null;
65403
+ invoice_number?: string | null;
65404
+ note?: string | null;
65405
+ status?: string | null;
65406
+ total_excl_cents?: number | null;
65407
+ total_incl_cents?: number | null;
65408
+ updated_at?: string | null;
65409
+ vat_cents?: number | null;
65410
+ vat_percentage?: number | null;
65411
+ werkbon_id?: never;
65412
+ };
65413
+ Update: {
65414
+ created_at?: string | null;
65415
+ created_by?: string | null;
65416
+ customer_id?: string | null;
65417
+ customer_name?: string | null;
65418
+ id?: string | null;
65419
+ invoice_number?: string | null;
65420
+ note?: string | null;
65421
+ status?: string | null;
65422
+ total_excl_cents?: number | null;
65423
+ total_incl_cents?: number | null;
65424
+ updated_at?: string | null;
65425
+ vat_cents?: number | null;
65426
+ vat_percentage?: number | null;
65427
+ werkbon_id?: never;
65428
+ };
65429
+ Relationships: [{
65430
+ foreignKeyName: "invoices_customer_id_fkey";
65431
+ columns: ["customer_id"];
65432
+ isOneToOne: false;
65433
+ referencedRelation: "itk_customers";
65434
+ referencedColumns: ["id"];
65435
+ }];
65436
+ };
65437
+ uren_factuur_regels: {
65438
+ Row: {
65439
+ created_at: string | null;
65440
+ description: string | null;
65441
+ factuur_id: string | null;
65442
+ id: string | null;
65443
+ kind: string | null;
65444
+ quantity: number | null;
65445
+ sort_order: number | null;
65446
+ total_cents: number | null;
65447
+ unit: string | null;
65448
+ unit_price_cents: number | null;
65449
+ };
65450
+ Insert: {
65451
+ created_at?: string | null;
65452
+ description?: string | null;
65453
+ factuur_id?: string | null;
65454
+ id?: string | null;
65455
+ kind?: string | null;
65456
+ quantity?: number | null;
65457
+ sort_order?: number | null;
65458
+ total_cents?: number | null;
65459
+ unit?: string | null;
65460
+ unit_price_cents?: number | null;
65461
+ };
65462
+ Update: {
65463
+ created_at?: string | null;
65464
+ description?: string | null;
65465
+ factuur_id?: string | null;
65466
+ id?: string | null;
65467
+ kind?: string | null;
65468
+ quantity?: number | null;
65469
+ sort_order?: number | null;
65470
+ total_cents?: number | null;
65471
+ unit?: string | null;
65472
+ unit_price_cents?: number | null;
65473
+ };
65474
+ Relationships: [{
65475
+ foreignKeyName: "invoice_items_invoice_id_fkey";
65476
+ columns: ["factuur_id"];
65477
+ isOneToOne: false;
65478
+ referencedRelation: "invoices";
65479
+ referencedColumns: ["id"];
65480
+ }, {
65481
+ foreignKeyName: "invoice_items_invoice_id_fkey";
65482
+ columns: ["factuur_id"];
65483
+ isOneToOne: false;
65484
+ referencedRelation: "uren_facturen";
65485
+ referencedColumns: ["id"];
65486
+ }];
65487
+ };
63569
65488
  v_external_customers_exact: {
63570
65489
  Row: {
63571
65490
  account_number: string | null;
@@ -64071,6 +65990,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
64071
65990
  gebruiker_id: string | null;
64072
65991
  gebruiker_naam: string;
64073
65992
  gestart_op: string | null;
65993
+ herkomst: string | null;
64074
65994
  id: string;
64075
65995
  idempotentie_sleutel: string | null;
64076
65996
  is_herprint: boolean;
@@ -64191,6 +66111,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
64191
66111
  gebruiker_id: string | null;
64192
66112
  gebruiker_naam: string;
64193
66113
  gestart_op: string | null;
66114
+ herkomst: string | null;
64194
66115
  id: string;
64195
66116
  idempotentie_sleutel: string | null;
64196
66117
  is_herprint: boolean;
@@ -64792,6 +66713,46 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
64792
66713
  Args: never;
64793
66714
  Returns: boolean;
64794
66715
  };
66716
+ invoice_create_from_source: {
66717
+ Args: {
66718
+ _payload?: import("../integrations/supabase/types").Json;
66719
+ _source_id: string;
66720
+ _source_type: string;
66721
+ };
66722
+ Returns: import("../integrations/supabase/types").Json;
66723
+ };
66724
+ invoice_get_billable_lines: {
66725
+ Args: {
66726
+ _invoice_id: string;
66727
+ };
66728
+ Returns: import("../integrations/supabase/types").Json;
66729
+ };
66730
+ invoice_get_for_source: {
66731
+ Args: {
66732
+ _source_id: string;
66733
+ _source_type: string;
66734
+ };
66735
+ Returns: import("../integrations/supabase/types").Json;
66736
+ };
66737
+ invoice_get_summary: {
66738
+ Args: {
66739
+ _invoice_id: string;
66740
+ };
66741
+ Returns: import("../integrations/supabase/types").Json;
66742
+ };
66743
+ invoice_list_sources: {
66744
+ Args: {
66745
+ _limit?: number;
66746
+ _source_type?: string;
66747
+ };
66748
+ Returns: import("../integrations/supabase/types").Json;
66749
+ };
66750
+ invoice_recalc_totals: {
66751
+ Args: {
66752
+ _invoice_id: string;
66753
+ };
66754
+ Returns: import("../integrations/supabase/types").Json;
66755
+ };
64795
66756
  is_authenticated: {
64796
66757
  Args: never;
64797
66758
  Returns: boolean;
@@ -64860,6 +66821,29 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
64860
66821
  roles: string[];
64861
66822
  }[];
64862
66823
  };
66824
+ list_monteur_absences: {
66825
+ Args: {
66826
+ _from: string;
66827
+ _to: string;
66828
+ };
66829
+ Returns: {
66830
+ absence_date: string;
66831
+ end_time: string;
66832
+ full_day: boolean;
66833
+ kind: string;
66834
+ monteur_id: string;
66835
+ start_time: string;
66836
+ }[];
66837
+ };
66838
+ list_monteurs: {
66839
+ Args: never;
66840
+ Returns: {
66841
+ avatar_url: string;
66842
+ display_name: string;
66843
+ email: string;
66844
+ id: string;
66845
+ }[];
66846
+ };
64863
66847
  list_my_planning_items: {
64864
66848
  Args: {
64865
66849
  _from: string;
@@ -65271,6 +67255,41 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65271
67255
  };
65272
67256
  Returns: string;
65273
67257
  };
67258
+ logistics_floriday_finish_push_v2: {
67259
+ Args: {
67260
+ _error?: string;
67261
+ _error_code?: string;
67262
+ _fulfillment_order_id?: string;
67263
+ _gateway_status?: number;
67264
+ _id: string;
67265
+ _max_age_hours?: number;
67266
+ _max_attempts?: number;
67267
+ _ok: boolean;
67268
+ _permanent?: boolean;
67269
+ _response?: import("../integrations/supabase/types").Json;
67270
+ _revision: number;
67271
+ _sent_hash?: string;
67272
+ };
67273
+ Returns: string;
67274
+ };
67275
+ logistics_floriday_finish_push_v3: {
67276
+ Args: {
67277
+ _error?: string;
67278
+ _error_code?: string;
67279
+ _fulfillment_order_id?: string;
67280
+ _gateway_status?: number;
67281
+ _id: string;
67282
+ _max_age_hours?: number;
67283
+ _max_attempts?: number;
67284
+ _outcome: string;
67285
+ _permanent?: boolean;
67286
+ _response?: import("../integrations/supabase/types").Json;
67287
+ _revision: number;
67288
+ _sent_hash?: string;
67289
+ _wait_max_age_hours?: number;
67290
+ };
67291
+ Returns: string;
67292
+ };
65274
67293
  logistics_floriday_prune_pushes: {
65275
67294
  Args: {
65276
67295
  _days?: number;
@@ -65699,6 +67718,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65699
67718
  verwijderd: number;
65700
67719
  }[];
65701
67720
  };
67721
+ order_departure_proof: {
67722
+ Args: {
67723
+ p_order_id: string;
67724
+ };
67725
+ Returns: import("../integrations/supabase/types").Json;
67726
+ };
65702
67727
  order_number_prefix: {
65703
67728
  Args: {
65704
67729
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -65813,6 +67838,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65813
67838
  isSetofReturn: false;
65814
67839
  };
65815
67840
  };
67841
+ pick_cleanup_maintenance: {
67842
+ Args: {
67843
+ _heartbeat_hours?: number;
67844
+ _log_days?: number;
67845
+ };
67846
+ Returns: import("../integrations/supabase/types").Json;
67847
+ };
65816
67848
  pick_complete_print: {
65817
67849
  Args: {
65818
67850
  _printer_id: string;
@@ -65864,6 +67896,14 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65864
67896
  Args: never;
65865
67897
  Returns: string;
65866
67898
  };
67899
+ pick_day_counts: {
67900
+ Args: {
67901
+ _pick_day?: string;
67902
+ _screen_id?: string;
67903
+ _station_id?: string;
67904
+ };
67905
+ Returns: import("../integrations/supabase/types").Json;
67906
+ };
65867
67907
  pick_document_layout_data: {
65868
67908
  Args: {
65869
67909
  _layout_id: string;
@@ -65891,6 +67931,14 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65891
67931
  };
65892
67932
  Returns: import("../integrations/supabase/types").Json;
65893
67933
  };
67934
+ pick_print_plekken: {
67935
+ Args: never;
67936
+ Returns: {
67937
+ id: string;
67938
+ naam: string;
67939
+ omschrijving: string;
67940
+ }[];
67941
+ };
65894
67942
  pick_release_expired_locks: {
65895
67943
  Args: never;
65896
67944
  Returns: number;
@@ -65901,6 +67949,14 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65901
67949
  };
65902
67950
  Returns: undefined;
65903
67951
  };
67952
+ pick_reprint_document: {
67953
+ Args: {
67954
+ _queue_item_id: string;
67955
+ _session_id: string;
67956
+ _throttle_seconds?: number;
67957
+ };
67958
+ Returns: string;
67959
+ };
65904
67960
  pick_reset_print: {
65905
67961
  Args: {
65906
67962
  _queue_item_id: string;
@@ -65947,6 +68003,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65947
68003
  isSetofReturn: false;
65948
68004
  };
65949
68005
  };
68006
+ pick_set_station_print_plek: {
68007
+ Args: {
68008
+ _print_plek_id: string;
68009
+ _station_id: string;
68010
+ };
68011
+ Returns: string;
68012
+ };
65950
68013
  pick_station_dashboard: {
65951
68014
  Args: never;
65952
68015
  Returns: {
@@ -65959,6 +68022,25 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65959
68022
  waiting: number;
65960
68023
  }[];
65961
68024
  };
68025
+ pick_station_print_plek: {
68026
+ Args: {
68027
+ _station_id: string;
68028
+ };
68029
+ Returns: {
68030
+ naam: string;
68031
+ omschrijving: string;
68032
+ print_plek_id: string;
68033
+ }[];
68034
+ };
68035
+ pick_station_print_plekken: {
68036
+ Args: never;
68037
+ Returns: {
68038
+ naam: string;
68039
+ omschrijving: string;
68040
+ print_plek_id: string;
68041
+ station_id: string;
68042
+ }[];
68043
+ };
65962
68044
  pick_station_slugify: {
65963
68045
  Args: {
65964
68046
  _id: string;
@@ -65966,6 +68048,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65966
68048
  };
65967
68049
  Returns: string;
65968
68050
  };
68051
+ pick_sync_queue_throttled: {
68052
+ Args: {
68053
+ _min_seconds?: number;
68054
+ };
68055
+ Returns: import("../integrations/supabase/types").Json;
68056
+ };
65969
68057
  pickstation_get_orders_raw: {
65970
68058
  Args: never;
65971
68059
  Returns: import("../integrations/supabase/types").Json;
@@ -66111,6 +68199,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
66111
68199
  };
66112
68200
  Returns: boolean;
66113
68201
  };
68202
+ release_stale_order_invoice_links: {
68203
+ Args: {
68204
+ _minutes?: number;
68205
+ };
68206
+ Returns: number;
68207
+ };
66114
68208
  reorder_customer_price_groups: {
66115
68209
  Args: {
66116
68210
  _ids: string[];
@@ -66629,6 +68723,20 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
66629
68723
  };
66630
68724
  Returns: undefined;
66631
68725
  };
68726
+ twinfield_deactivate_connection: {
68727
+ Args: {
68728
+ p_connection_id: string;
68729
+ p_user_id: string;
68730
+ };
68731
+ Returns: import("../integrations/supabase/types").Json;
68732
+ };
68733
+ twinfield_handle_administration_change: {
68734
+ Args: {
68735
+ _administration_code: string;
68736
+ _user_id: string;
68737
+ };
68738
+ Returns: undefined;
68739
+ };
66632
68740
  twinfield_prune_push_queue: {
66633
68741
  Args: never;
66634
68742
  Returns: number;
@@ -66648,10 +68756,11 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
66648
68756
  p_company_name?: string;
66649
68757
  p_environment: string;
66650
68758
  p_office_code?: string;
68759
+ p_reset_sync?: boolean;
66651
68760
  p_status?: string;
66652
68761
  p_user_id: string;
66653
68762
  };
66654
- Returns: string;
68763
+ Returns: import("../integrations/supabase/types").Json;
66655
68764
  };
66656
68765
  upsert_auto_fulfillment_log: {
66657
68766
  Args: {