@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
@@ -673,6 +673,99 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
673
673
  };
674
674
  Relationships: [];
675
675
  };
676
+ artikelen_cache: {
677
+ Row: {
678
+ artikelcode: string;
679
+ bron: string;
680
+ bruto_prijs_cent: number | null;
681
+ created_at: string;
682
+ eenheid: string;
683
+ fabrikant: string | null;
684
+ fetched_at: string;
685
+ gtin: string | null;
686
+ id: string;
687
+ naam: string;
688
+ netto_prijs_cent: number | null;
689
+ omschrijving: string | null;
690
+ raw: import("../integrations/supabase/types").Json;
691
+ updated_at: string;
692
+ valuta: string;
693
+ };
694
+ Insert: {
695
+ artikelcode: string;
696
+ bron?: string;
697
+ bruto_prijs_cent?: number | null;
698
+ created_at?: string;
699
+ eenheid?: string;
700
+ fabrikant?: string | null;
701
+ fetched_at?: string;
702
+ gtin?: string | null;
703
+ id?: string;
704
+ naam: string;
705
+ netto_prijs_cent?: number | null;
706
+ omschrijving?: string | null;
707
+ raw?: import("../integrations/supabase/types").Json;
708
+ updated_at?: string;
709
+ valuta?: string;
710
+ };
711
+ Update: {
712
+ artikelcode?: string;
713
+ bron?: string;
714
+ bruto_prijs_cent?: number | null;
715
+ created_at?: string;
716
+ eenheid?: string;
717
+ fabrikant?: string | null;
718
+ fetched_at?: string;
719
+ gtin?: string | null;
720
+ id?: string;
721
+ naam?: string;
722
+ netto_prijs_cent?: number | null;
723
+ omschrijving?: string | null;
724
+ raw?: import("../integrations/supabase/types").Json;
725
+ updated_at?: string;
726
+ valuta?: string;
727
+ };
728
+ Relationships: [];
729
+ };
730
+ artikelen_veldconfig: {
731
+ Row: {
732
+ bron_pad: string;
733
+ created_at: string;
734
+ id: string;
735
+ label: string;
736
+ sort_order: number;
737
+ type: string;
738
+ updated_at: string;
739
+ veld_key: string;
740
+ zichtbaar_in_detail: boolean;
741
+ zichtbaar_in_lijst: boolean;
742
+ };
743
+ Insert: {
744
+ bron_pad: string;
745
+ created_at?: string;
746
+ id?: string;
747
+ label: string;
748
+ sort_order?: number;
749
+ type?: string;
750
+ updated_at?: string;
751
+ veld_key: string;
752
+ zichtbaar_in_detail?: boolean;
753
+ zichtbaar_in_lijst?: boolean;
754
+ };
755
+ Update: {
756
+ bron_pad?: string;
757
+ created_at?: string;
758
+ id?: string;
759
+ label?: string;
760
+ sort_order?: number;
761
+ type?: string;
762
+ updated_at?: string;
763
+ veld_key?: string;
764
+ zichtbaar_in_detail?: boolean;
765
+ zichtbaar_in_lijst?: boolean;
766
+ };
767
+ Relationships: [];
768
+ };
676
769
  booking_items: {
677
770
  Row: {
678
771
  booking_id: string;
@@ -2758,6 +2851,42 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
2758
2851
  };
2759
2852
  Relationships: [];
2760
2853
  };
2854
+ document_bronregels: {
2855
+ Row: {
2856
+ bron: string;
2857
+ created_at: string;
2858
+ documenttype: string;
2859
+ herkomst: string;
2860
+ id: string;
2861
+ layout_id: string | null;
2862
+ updated_at: string;
2863
+ };
2864
+ Insert: {
2865
+ bron?: string;
2866
+ created_at?: string;
2867
+ documenttype: string;
2868
+ herkomst: string;
2869
+ id?: string;
2870
+ layout_id?: string | null;
2871
+ updated_at?: string;
2872
+ };
2873
+ Update: {
2874
+ bron?: string;
2875
+ created_at?: string;
2876
+ documenttype?: string;
2877
+ herkomst?: string;
2878
+ id?: string;
2879
+ layout_id?: string | null;
2880
+ updated_at?: string;
2881
+ };
2882
+ Relationships: [{
2883
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2884
+ columns: ["layout_id"];
2885
+ isOneToOne: false;
2886
+ referencedRelation: "document_layouts";
2887
+ referencedColumns: ["id"];
2888
+ }];
2889
+ };
2761
2890
  document_formaat_printers: {
2762
2891
  Row: {
2763
2892
  created_at: string;
@@ -3035,6 +3164,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
3035
3164
  Row: {
3036
3165
  actief: boolean;
3037
3166
  breedte_mm: number;
3167
+ bron: string;
3038
3168
  config: import("../integrations/supabase/types").Json;
3039
3169
  created_at: string;
3040
3170
  created_by: string | null;
@@ -3052,12 +3182,14 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
3052
3182
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3053
3183
  page_settings: import("../integrations/supabase/types").Json;
3054
3184
  papierformaat: string;
3185
+ systeem: boolean;
3055
3186
  thumbnail_url: string | null;
3056
3187
  updated_at: string;
3057
3188
  };
3058
3189
  Insert: {
3059
3190
  actief?: boolean;
3060
3191
  breedte_mm?: number;
3192
+ bron?: string;
3061
3193
  config?: import("../integrations/supabase/types").Json;
3062
3194
  created_at?: string;
3063
3195
  created_by?: string | null;
@@ -3075,12 +3207,14 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
3075
3207
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3076
3208
  page_settings?: import("../integrations/supabase/types").Json;
3077
3209
  papierformaat?: string;
3210
+ systeem?: boolean;
3078
3211
  thumbnail_url?: string | null;
3079
3212
  updated_at?: string;
3080
3213
  };
3081
3214
  Update: {
3082
3215
  actief?: boolean;
3083
3216
  breedte_mm?: number;
3217
+ bron?: string;
3084
3218
  config?: import("../integrations/supabase/types").Json;
3085
3219
  created_at?: string;
3086
3220
  created_by?: string | null;
@@ -3098,11 +3232,90 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
3098
3232
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3099
3233
  page_settings?: import("../integrations/supabase/types").Json;
3100
3234
  papierformaat?: string;
3235
+ systeem?: boolean;
3101
3236
  thumbnail_url?: string | null;
3102
3237
  updated_at?: string;
3103
3238
  };
3104
3239
  Relationships: [];
3105
3240
  };
3241
+ document_printplek_printers: {
3242
+ Row: {
3243
+ created_at: string;
3244
+ documenttype: string;
3245
+ id: string;
3246
+ papierformaat: string | null;
3247
+ print_plek_id: string;
3248
+ printer_id: string | null;
3249
+ updated_at: string;
3250
+ };
3251
+ Insert: {
3252
+ created_at?: string;
3253
+ documenttype: string;
3254
+ id?: string;
3255
+ papierformaat?: string | null;
3256
+ print_plek_id: string;
3257
+ printer_id?: string | null;
3258
+ updated_at?: string;
3259
+ };
3260
+ Update: {
3261
+ created_at?: string;
3262
+ documenttype?: string;
3263
+ id?: string;
3264
+ papierformaat?: string | null;
3265
+ print_plek_id?: string;
3266
+ printer_id?: string | null;
3267
+ updated_at?: string;
3268
+ };
3269
+ Relationships: [{
3270
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
3271
+ columns: ["print_plek_id"];
3272
+ isOneToOne: false;
3273
+ referencedRelation: "print_plekken";
3274
+ referencedColumns: ["id"];
3275
+ }, {
3276
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
3277
+ columns: ["printer_id"];
3278
+ isOneToOne: false;
3279
+ referencedRelation: "printers";
3280
+ referencedColumns: ["id"];
3281
+ }];
3282
+ };
3283
+ document_werkplek_printers: {
3284
+ Row: {
3285
+ created_at: string;
3286
+ documenttype: string;
3287
+ id: string;
3288
+ papierformaat: string | null;
3289
+ printer_id: string | null;
3290
+ updated_at: string;
3291
+ werkplek: string;
3292
+ };
3293
+ Insert: {
3294
+ created_at?: string;
3295
+ documenttype: string;
3296
+ id?: string;
3297
+ papierformaat?: string | null;
3298
+ printer_id?: string | null;
3299
+ updated_at?: string;
3300
+ werkplek: string;
3301
+ };
3302
+ Update: {
3303
+ created_at?: string;
3304
+ documenttype?: string;
3305
+ id?: string;
3306
+ papierformaat?: string | null;
3307
+ printer_id?: string | null;
3308
+ updated_at?: string;
3309
+ werkplek?: string;
3310
+ };
3311
+ Relationships: [{
3312
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3313
+ columns: ["printer_id"];
3314
+ isOneToOne: false;
3315
+ referencedRelation: "printers";
3316
+ referencedColumns: ["id"];
3317
+ }];
3318
+ };
3106
3319
  email_auth_connections: {
3107
3320
  Row: {
3108
3321
  access_token_encrypted: string | null;
@@ -5044,42 +5257,6 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
5044
5257
  };
5045
5258
  Relationships: [];
5046
5259
  };
5047
- facturen: {
5048
- Row: {
5049
- bedrag_incl_btw: number;
5050
- created_at: string;
5051
- datum: string;
5052
- factuurnummer: string;
5053
- id: string;
5054
- klantnaam: string;
5055
- status: string;
5056
- updated_at: string;
5057
- user_id: string;
5058
- };
5059
- Insert: {
5060
- bedrag_incl_btw: number;
5061
- created_at?: string;
5062
- datum?: string;
5063
- factuurnummer: string;
5064
- id?: string;
5065
- klantnaam: string;
5066
- status?: string;
5067
- updated_at?: string;
5068
- user_id?: string;
5069
- };
5070
- Update: {
5071
- bedrag_incl_btw?: number;
5072
- created_at?: string;
5073
- datum?: string;
5074
- factuurnummer?: string;
5075
- id?: string;
5076
- klantnaam?: string;
5077
- status?: string;
5078
- updated_at?: string;
5079
- user_id?: string;
5080
- };
5081
- Relationships: [];
5082
- };
5083
5260
  floricode_connection_settings: {
5084
5261
  Row: {
5085
5262
  catalog_key: string | null;
@@ -7384,8 +7561,63 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
7384
7561
  };
7385
7562
  Relationships: [];
7386
7563
  };
7564
+ invoice_items: {
7565
+ Row: {
7566
+ created_at: string;
7567
+ description: string;
7568
+ id: string;
7569
+ invoice_id: string;
7570
+ kind: string;
7571
+ quantity: number;
7572
+ sort_order: number;
7573
+ source_line_ref: string | null;
7574
+ total_cents: number;
7575
+ unit: string;
7576
+ unit_price_cents: number;
7577
+ };
7578
+ Insert: {
7579
+ created_at?: string;
7580
+ description?: string;
7581
+ id?: string;
7582
+ invoice_id: string;
7583
+ kind?: string;
7584
+ quantity?: number;
7585
+ sort_order?: number;
7586
+ source_line_ref?: string | null;
7587
+ total_cents?: number;
7588
+ unit?: string;
7589
+ unit_price_cents?: number;
7590
+ };
7591
+ Update: {
7592
+ created_at?: string;
7593
+ description?: string;
7594
+ id?: string;
7595
+ invoice_id?: string;
7596
+ kind?: string;
7597
+ quantity?: number;
7598
+ sort_order?: number;
7599
+ source_line_ref?: string | null;
7600
+ total_cents?: number;
7601
+ unit?: string;
7602
+ unit_price_cents?: number;
7603
+ };
7604
+ Relationships: [{
7605
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7606
+ columns: ["invoice_id"];
7607
+ isOneToOne: false;
7608
+ referencedRelation: "invoices";
7609
+ referencedColumns: ["id"];
7610
+ }, {
7611
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7612
+ columns: ["invoice_id"];
7613
+ isOneToOne: false;
7614
+ referencedRelation: "uren_facturen";
7615
+ referencedColumns: ["id"];
7616
+ }];
7617
+ };
7387
7618
  invoice_post_idempotency: {
7388
7619
  Row: {
7620
+ administration_code: string;
7389
7621
  client_request_id: string;
7390
7622
  completed_at: string | null;
7391
7623
  created_at: string;
@@ -7395,6 +7627,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
7395
7627
  user_id: string;
7396
7628
  };
7397
7629
  Insert: {
7630
+ administration_code?: string;
7398
7631
  client_request_id: string;
7399
7632
  completed_at?: string | null;
7400
7633
  created_at?: string;
@@ -7404,6 +7637,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
7404
7637
  user_id: string;
7405
7638
  };
7406
7639
  Update: {
7640
+ administration_code?: string;
7407
7641
  client_request_id?: string;
7408
7642
  completed_at?: string | null;
7409
7643
  created_at?: string;
@@ -7609,6 +7843,75 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
7609
7843
  };
7610
7844
  Relationships: [];
7611
7845
  };
7846
+ invoices: {
7847
+ Row: {
7848
+ created_at: string;
7849
+ created_by: string | null;
7850
+ customer_id: string | null;
7851
+ customer_name: string | null;
7852
+ due_date: string | null;
7853
+ id: string;
7854
+ invoice_date: string;
7855
+ invoice_number: string | null;
7856
+ note: string | null;
7857
+ source_number: string | null;
7858
+ source_ref: string | null;
7859
+ source_type: string;
7860
+ status: string;
7861
+ subtotal_cents: number;
7862
+ total_cents: number;
7863
+ updated_at: string;
7864
+ vat_cents: number;
7865
+ vat_rate: number;
7866
+ };
7867
+ Insert: {
7868
+ created_at?: string;
7869
+ created_by?: string | null;
7870
+ customer_id?: string | null;
7871
+ customer_name?: string | null;
7872
+ due_date?: string | null;
7873
+ id?: string;
7874
+ invoice_date?: string;
7875
+ invoice_number?: string | null;
7876
+ note?: string | null;
7877
+ source_number?: string | null;
7878
+ source_ref?: string | null;
7879
+ source_type?: string;
7880
+ status?: string;
7881
+ subtotal_cents?: number;
7882
+ total_cents?: number;
7883
+ updated_at?: string;
7884
+ vat_cents?: number;
7885
+ vat_rate?: number;
7886
+ };
7887
+ Update: {
7888
+ created_at?: string;
7889
+ created_by?: string | null;
7890
+ customer_id?: string | null;
7891
+ customer_name?: string | null;
7892
+ due_date?: string | null;
7893
+ id?: string;
7894
+ invoice_date?: string;
7895
+ invoice_number?: string | null;
7896
+ note?: string | null;
7897
+ source_number?: string | null;
7898
+ source_ref?: string | null;
7899
+ source_type?: string;
7900
+ status?: string;
7901
+ subtotal_cents?: number;
7902
+ total_cents?: number;
7903
+ updated_at?: string;
7904
+ vat_cents?: number;
7905
+ vat_rate?: number;
7906
+ };
7907
+ Relationships: [{
7908
+ foreignKeyName: "invoices_customer_id_fkey";
7909
+ columns: ["customer_id"];
7910
+ isOneToOne: false;
7911
+ referencedRelation: "itk_customers";
7912
+ referencedColumns: ["id"];
7913
+ }];
7914
+ };
7612
7915
  itk_contact_persons: {
7613
7916
  Row: {
7614
7917
  created_at: string;
@@ -8956,6 +9259,10 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
8956
9259
  id: string;
8957
9260
  last_error: string | null;
8958
9261
  last_error_at: string | null;
9262
+ last_error_code: string | null;
9263
+ last_gateway_status: number | null;
9264
+ last_queued_at: string | null;
9265
+ last_response: import("../integrations/supabase/types").Json | null;
8959
9266
  last_sent_hash: string | null;
8960
9267
  locked_by: string | null;
8961
9268
  locked_until: string | null;
@@ -8976,6 +9283,10 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
8976
9283
  id?: string;
8977
9284
  last_error?: string | null;
8978
9285
  last_error_at?: string | null;
9286
+ last_error_code?: string | null;
9287
+ last_gateway_status?: number | null;
9288
+ last_queued_at?: string | null;
9289
+ last_response?: import("../integrations/supabase/types").Json | null;
8979
9290
  last_sent_hash?: string | null;
8980
9291
  locked_by?: string | null;
8981
9292
  locked_until?: string | null;
@@ -8996,6 +9307,10 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
8996
9307
  id?: string;
8997
9308
  last_error?: string | null;
8998
9309
  last_error_at?: string | null;
9310
+ last_error_code?: string | null;
9311
+ last_gateway_status?: number | null;
9312
+ last_queued_at?: string | null;
9313
+ last_response?: import("../integrations/supabase/types").Json | null;
8999
9314
  last_sent_hash?: string | null;
9000
9315
  locked_by?: string | null;
9001
9316
  locked_until?: string | null;
@@ -10549,6 +10864,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
10549
10864
  enforce: boolean;
10550
10865
  is_active: boolean;
10551
10866
  last_seen_at: string;
10867
+ missing_count: number;
10552
10868
  module_id: string;
10553
10869
  name: string;
10554
10870
  shell_id: string | null;
@@ -10559,6 +10875,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
10559
10875
  enforce?: boolean;
10560
10876
  is_active?: boolean;
10561
10877
  last_seen_at?: string;
10878
+ missing_count?: number;
10562
10879
  module_id: string;
10563
10880
  name: string;
10564
10881
  shell_id?: string | null;
@@ -10569,6 +10886,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
10569
10886
  enforce?: boolean;
10570
10887
  is_active?: boolean;
10571
10888
  last_seen_at?: string;
10889
+ missing_count?: number;
10572
10890
  module_id?: string;
10573
10891
  name?: string;
10574
10892
  shell_id?: string | null;
@@ -11568,6 +11886,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
11568
11886
  };
11569
11887
  order_invoice_links: {
11570
11888
  Row: {
11889
+ administration_code: string | null;
11571
11890
  attempts: number;
11572
11891
  created_at: string;
11573
11892
  error_message: string | null;
@@ -11580,6 +11899,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
11580
11899
  updated_at: string;
11581
11900
  };
11582
11901
  Insert: {
11902
+ administration_code?: string | null;
11583
11903
  attempts?: number;
11584
11904
  created_at?: string;
11585
11905
  error_message?: string | null;
@@ -11592,6 +11912,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
11592
11912
  updated_at?: string;
11593
11913
  };
11594
11914
  Update: {
11915
+ administration_code?: string | null;
11595
11916
  attempts?: number;
11596
11917
  created_at?: string;
11597
11918
  error_message?: string | null;
@@ -12757,6 +13078,27 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
12757
13078
  referencedColumns: ["id"];
12758
13079
  }];
12759
13080
  };
13081
+ pick_sync_state: {
13082
+ Row: {
13083
+ id: boolean;
13084
+ last_cleanup_at: string | null;
13085
+ last_sync_at: string | null;
13086
+ updated_at: string;
13087
+ };
13088
+ Insert: {
13089
+ id?: boolean;
13090
+ last_cleanup_at?: string | null;
13091
+ last_sync_at?: string | null;
13092
+ updated_at?: string;
13093
+ };
13094
+ Update: {
13095
+ id?: boolean;
13096
+ last_cleanup_at?: string | null;
13097
+ last_sync_at?: string | null;
13098
+ updated_at?: string;
13099
+ };
13100
+ Relationships: [];
13101
+ };
12760
13102
  pick_task_document_types: {
12761
13103
  Row: {
12762
13104
  created_at: string;
@@ -13039,6 +13381,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13039
13381
  gebruiker_id: string | null;
13040
13382
  gebruiker_naam: string;
13041
13383
  gestart_op: string | null;
13384
+ herkomst: string | null;
13042
13385
  id: string;
13043
13386
  idempotentie_sleutel: string | null;
13044
13387
  is_herprint: boolean;
@@ -13068,6 +13411,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13068
13411
  gebruiker_id?: string | null;
13069
13412
  gebruiker_naam?: string;
13070
13413
  gestart_op?: string | null;
13414
+ herkomst?: string | null;
13071
13415
  id?: string;
13072
13416
  idempotentie_sleutel?: string | null;
13073
13417
  is_herprint?: boolean;
@@ -13097,6 +13441,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13097
13441
  gebruiker_id?: string | null;
13098
13442
  gebruiker_naam?: string;
13099
13443
  gestart_op?: string | null;
13444
+ herkomst?: string | null;
13100
13445
  id?: string;
13101
13446
  idempotentie_sleutel?: string | null;
13102
13447
  is_herprint?: boolean;
@@ -13135,6 +13480,99 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13135
13480
  referencedColumns: ["id"];
13136
13481
  }];
13137
13482
  };
13483
+ print_plek_computers: {
13484
+ Row: {
13485
+ computer_naam: string;
13486
+ created_at: string;
13487
+ id: string;
13488
+ print_plek_id: string;
13489
+ updated_at: string;
13490
+ };
13491
+ Insert: {
13492
+ computer_naam: string;
13493
+ created_at?: string;
13494
+ id?: string;
13495
+ print_plek_id: string;
13496
+ updated_at?: string;
13497
+ };
13498
+ Update: {
13499
+ computer_naam?: string;
13500
+ created_at?: string;
13501
+ id?: string;
13502
+ print_plek_id?: string;
13503
+ updated_at?: string;
13504
+ };
13505
+ Relationships: [{
13506
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
13507
+ columns: ["print_plek_id"];
13508
+ isOneToOne: false;
13509
+ referencedRelation: "print_plekken";
13510
+ referencedColumns: ["id"];
13511
+ }];
13512
+ };
13513
+ print_plek_koppelingen: {
13514
+ Row: {
13515
+ bron: string;
13516
+ bron_id: string;
13517
+ created_at: string;
13518
+ id: string;
13519
+ label: string | null;
13520
+ print_plek_id: string;
13521
+ updated_at: string;
13522
+ };
13523
+ Insert: {
13524
+ bron: string;
13525
+ bron_id: string;
13526
+ created_at?: string;
13527
+ id?: string;
13528
+ label?: string | null;
13529
+ print_plek_id: string;
13530
+ updated_at?: string;
13531
+ };
13532
+ Update: {
13533
+ bron?: string;
13534
+ bron_id?: string;
13535
+ created_at?: string;
13536
+ id?: string;
13537
+ label?: string | null;
13538
+ print_plek_id?: string;
13539
+ updated_at?: string;
13540
+ };
13541
+ Relationships: [{
13542
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
13543
+ columns: ["print_plek_id"];
13544
+ isOneToOne: false;
13545
+ referencedRelation: "print_plekken";
13546
+ referencedColumns: ["id"];
13547
+ }];
13548
+ };
13549
+ print_plekken: {
13550
+ Row: {
13551
+ actief: boolean;
13552
+ created_at: string;
13553
+ id: string;
13554
+ naam: string;
13555
+ omschrijving: string | null;
13556
+ updated_at: string;
13557
+ };
13558
+ Insert: {
13559
+ actief?: boolean;
13560
+ created_at?: string;
13561
+ id?: string;
13562
+ naam: string;
13563
+ omschrijving?: string | null;
13564
+ updated_at?: string;
13565
+ };
13566
+ Update: {
13567
+ actief?: boolean;
13568
+ created_at?: string;
13569
+ id?: string;
13570
+ naam?: string;
13571
+ omschrijving?: string | null;
13572
+ updated_at?: string;
13573
+ };
13574
+ Relationships: [];
13575
+ };
13138
13576
  print_queue_runners: {
13139
13577
  Row: {
13140
13578
  actief: boolean;
@@ -15289,6 +15727,45 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
15289
15727
  };
15290
15728
  Relationships: [];
15291
15729
  };
15730
+ stock_consumption_alerts: {
15731
+ Row: {
15732
+ alert_type: string;
15733
+ created_at: string;
15734
+ id: string;
15735
+ mutation_log_id: string | null;
15736
+ order_id: string | null;
15737
+ order_item_id: string | null;
15738
+ qty: number;
15739
+ reason: string | null;
15740
+ resolved_at: string | null;
15741
+ updated_at: string;
15742
+ };
15743
+ Insert: {
15744
+ alert_type: string;
15745
+ created_at?: string;
15746
+ id?: string;
15747
+ mutation_log_id?: string | null;
15748
+ order_id?: string | null;
15749
+ order_item_id?: string | null;
15750
+ qty?: number;
15751
+ reason?: string | null;
15752
+ resolved_at?: string | null;
15753
+ updated_at?: string;
15754
+ };
15755
+ Update: {
15756
+ alert_type?: string;
15757
+ created_at?: string;
15758
+ id?: string;
15759
+ mutation_log_id?: string | null;
15760
+ order_id?: string | null;
15761
+ order_item_id?: string | null;
15762
+ qty?: number;
15763
+ reason?: string | null;
15764
+ resolved_at?: string | null;
15765
+ updated_at?: string;
15766
+ };
15767
+ Relationships: [];
15768
+ };
15292
15769
  stock_import_runs: {
15293
15770
  Row: {
15294
15771
  connection_id: string | null;
@@ -16101,12 +16578,16 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
16101
16578
  company_name: string | null;
16102
16579
  connected_at: string | null;
16103
16580
  created_at: string;
16581
+ disconnected_at: string | null;
16104
16582
  environment: string;
16105
16583
  id: string;
16584
+ initial_sync_completed_at: string | null;
16585
+ initial_sync_started_at: string | null;
16106
16586
  is_active: boolean;
16107
16587
  label: string | null;
16108
16588
  office_code: string | null;
16109
16589
  redirect_uri: string | null;
16590
+ superseded_at: string | null;
16110
16591
  updated_at: string;
16111
16592
  user_id: string;
16112
16593
  };
@@ -16117,12 +16598,16 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
16117
16598
  company_name?: string | null;
16118
16599
  connected_at?: string | null;
16119
16600
  created_at?: string;
16601
+ disconnected_at?: string | null;
16120
16602
  environment: string;
16121
16603
  id?: string;
16604
+ initial_sync_completed_at?: string | null;
16605
+ initial_sync_started_at?: string | null;
16122
16606
  is_active?: boolean;
16123
16607
  label?: string | null;
16124
16608
  office_code?: string | null;
16125
16609
  redirect_uri?: string | null;
16610
+ superseded_at?: string | null;
16126
16611
  updated_at?: string;
16127
16612
  user_id: string;
16128
16613
  };
@@ -16133,12 +16618,16 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
16133
16618
  company_name?: string | null;
16134
16619
  connected_at?: string | null;
16135
16620
  created_at?: string;
16621
+ disconnected_at?: string | null;
16136
16622
  environment?: string;
16137
16623
  id?: string;
16624
+ initial_sync_completed_at?: string | null;
16625
+ initial_sync_started_at?: string | null;
16138
16626
  is_active?: boolean;
16139
16627
  label?: string | null;
16140
16628
  office_code?: string | null;
16141
16629
  redirect_uri?: string | null;
16630
+ superseded_at?: string | null;
16142
16631
  updated_at?: string;
16143
16632
  user_id?: string;
16144
16633
  };
@@ -16198,6 +16687,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
16198
16687
  twinfield_customers: {
16199
16688
  Row: {
16200
16689
  address: string | null;
16690
+ administration_code: string;
16201
16691
  city: string | null;
16202
16692
  country: string | null;
16203
16693
  created_at: string;
@@ -16217,6 +16707,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
16217
16707
  };
16218
16708
  Insert: {
16219
16709
  address?: string | null;
16710
+ administration_code?: string;
16220
16711
  city?: string | null;
16221
16712
  country?: string | null;
16222
16713
  created_at?: string;
@@ -16236,6 +16727,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
16236
16727
  };
16237
16728
  Update: {
16238
16729
  address?: string | null;
16730
+ administration_code?: string;
16239
16731
  city?: string | null;
16240
16732
  country?: string | null;
16241
16733
  created_at?: string;
@@ -16449,7 +16941,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
16449
16941
  };
16450
16942
  twinfield_invoice_settings: {
16451
16943
  Row: {
16944
+ administration_code: string | null;
16452
16945
  auto_invoice_enabled: boolean;
16946
+ auto_invoice_start_date: string | null;
16453
16947
  auto_invoice_trigger_statuses: string[];
16454
16948
  created_at: string;
16455
16949
  debtor_gl_account: string;
@@ -16463,15 +16957,19 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
16463
16957
  invoice_enabled_fo: boolean;
16464
16958
  invoice_enabled_ho: boolean;
16465
16959
  invoice_enabled_mo: boolean;
16960
+ needs_review: boolean;
16466
16961
  payment_gl_account: string;
16467
16962
  payment_journal_code: string;
16963
+ settings_confirmed_at: string | null;
16468
16964
  updated_at: string;
16469
16965
  user_id: string;
16470
16966
  vat_code_eu_reverse: string | null;
16471
16967
  vat_code_export: string | null;
16472
16968
  };
16473
16969
  Insert: {
16970
+ administration_code?: string | null;
16474
16971
  auto_invoice_enabled?: boolean;
16972
+ auto_invoice_start_date?: string | null;
16475
16973
  auto_invoice_trigger_statuses?: string[];
16476
16974
  created_at?: string;
16477
16975
  debtor_gl_account?: string;
@@ -16485,15 +16983,19 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
16485
16983
  invoice_enabled_fo?: boolean;
16486
16984
  invoice_enabled_ho?: boolean;
16487
16985
  invoice_enabled_mo?: boolean;
16986
+ needs_review?: boolean;
16488
16987
  payment_gl_account?: string;
16489
16988
  payment_journal_code?: string;
16989
+ settings_confirmed_at?: string | null;
16490
16990
  updated_at?: string;
16491
16991
  user_id: string;
16492
16992
  vat_code_eu_reverse?: string | null;
16493
16993
  vat_code_export?: string | null;
16494
16994
  };
16495
16995
  Update: {
16996
+ administration_code?: string | null;
16496
16997
  auto_invoice_enabled?: boolean;
16998
+ auto_invoice_start_date?: string | null;
16497
16999
  auto_invoice_trigger_statuses?: string[];
16498
17000
  created_at?: string;
16499
17001
  debtor_gl_account?: string;
@@ -16507,8 +17009,10 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
16507
17009
  invoice_enabled_fo?: boolean;
16508
17010
  invoice_enabled_ho?: boolean;
16509
17011
  invoice_enabled_mo?: boolean;
17012
+ needs_review?: boolean;
16510
17013
  payment_gl_account?: string;
16511
17014
  payment_journal_code?: string;
17015
+ settings_confirmed_at?: string | null;
16512
17016
  updated_at?: string;
16513
17017
  user_id?: string;
16514
17018
  vat_code_eu_reverse?: string | null;
@@ -17113,114 +17617,6 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
17113
17617
  };
17114
17618
  Relationships: [];
17115
17619
  };
17116
- uren_facturen: {
17117
- Row: {
17118
- created_at: string;
17119
- created_by: string | null;
17120
- customer_id: string | null;
17121
- customer_name: string | null;
17122
- id: string;
17123
- invoice_number: string | null;
17124
- note: string | null;
17125
- status: string;
17126
- total_excl_cents: number;
17127
- total_incl_cents: number;
17128
- updated_at: string;
17129
- vat_cents: number;
17130
- vat_percentage: number;
17131
- werkbon_id: string | null;
17132
- };
17133
- Insert: {
17134
- created_at?: string;
17135
- created_by?: string | null;
17136
- customer_id?: string | null;
17137
- customer_name?: string | null;
17138
- id?: string;
17139
- invoice_number?: string | null;
17140
- note?: string | null;
17141
- status?: string;
17142
- total_excl_cents?: number;
17143
- total_incl_cents?: number;
17144
- updated_at?: string;
17145
- vat_cents?: number;
17146
- vat_percentage?: number;
17147
- werkbon_id?: string | null;
17148
- };
17149
- Update: {
17150
- created_at?: string;
17151
- created_by?: string | null;
17152
- customer_id?: string | null;
17153
- customer_name?: string | null;
17154
- id?: string;
17155
- invoice_number?: string | null;
17156
- note?: string | null;
17157
- status?: string;
17158
- total_excl_cents?: number;
17159
- total_incl_cents?: number;
17160
- updated_at?: string;
17161
- vat_cents?: number;
17162
- vat_percentage?: number;
17163
- werkbon_id?: string | null;
17164
- };
17165
- Relationships: [{
17166
- foreignKeyName: "uren_facturen_customer_id_fkey";
17167
- columns: ["customer_id"];
17168
- isOneToOne: false;
17169
- referencedRelation: "itk_customers";
17170
- referencedColumns: ["id"];
17171
- }, {
17172
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
17173
- columns: ["werkbon_id"];
17174
- isOneToOne: true;
17175
- referencedRelation: "werkbonnen";
17176
- referencedColumns: ["id"];
17177
- }];
17178
- };
17179
- uren_factuur_regels: {
17180
- Row: {
17181
- created_at: string;
17182
- description: string;
17183
- factuur_id: string;
17184
- id: string;
17185
- kind: string | null;
17186
- quantity: number;
17187
- sort_order: number;
17188
- total_cents: number;
17189
- unit: string;
17190
- unit_price_cents: number;
17191
- };
17192
- Insert: {
17193
- created_at?: string;
17194
- description: string;
17195
- factuur_id: string;
17196
- id?: string;
17197
- kind?: string | null;
17198
- quantity?: number;
17199
- sort_order?: number;
17200
- total_cents?: number;
17201
- unit?: string;
17202
- unit_price_cents?: number;
17203
- };
17204
- Update: {
17205
- created_at?: string;
17206
- description?: string;
17207
- factuur_id?: string;
17208
- id?: string;
17209
- kind?: string | null;
17210
- quantity?: number;
17211
- sort_order?: number;
17212
- total_cents?: number;
17213
- unit?: string;
17214
- unit_price_cents?: number;
17215
- };
17216
- Relationships: [{
17217
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
17218
- columns: ["factuur_id"];
17219
- isOneToOne: false;
17220
- referencedRelation: "uren_facturen";
17221
- referencedColumns: ["id"];
17222
- }];
17223
- };
17224
17620
  uren_offerte_regels: {
17225
17621
  Row: {
17226
17622
  created_at: string;
@@ -18474,6 +18870,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
18474
18870
  scheduled_end_time: string | null;
18475
18871
  scheduled_start_time: string | null;
18476
18872
  sequence_number: number;
18873
+ signature_accepted_at: string | null;
18874
+ signature_by_user_id: string | null;
18875
+ signature_name: string | null;
18477
18876
  source_email_meta: import("../integrations/supabase/types").Json | null;
18478
18877
  source_mailbox_message_id: string | null;
18479
18878
  source_pdf_path: string | null;
@@ -18509,6 +18908,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
18509
18908
  scheduled_end_time?: string | null;
18510
18909
  scheduled_start_time?: string | null;
18511
18910
  sequence_number: number;
18911
+ signature_accepted_at?: string | null;
18912
+ signature_by_user_id?: string | null;
18913
+ signature_name?: string | null;
18512
18914
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18513
18915
  source_mailbox_message_id?: string | null;
18514
18916
  source_pdf_path?: string | null;
@@ -18544,6 +18946,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
18544
18946
  scheduled_end_time?: string | null;
18545
18947
  scheduled_start_time?: string | null;
18546
18948
  sequence_number?: number;
18949
+ signature_accepted_at?: string | null;
18950
+ signature_by_user_id?: string | null;
18951
+ signature_name?: string | null;
18547
18952
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18548
18953
  source_mailbox_message_id?: string | null;
18549
18954
  source_pdf_path?: string | null;
@@ -19060,6 +19465,114 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
19060
19465
  };
19061
19466
  Relationships: [];
19062
19467
  };
19468
+ uren_facturen: {
19469
+ Row: {
19470
+ created_at: string | null;
19471
+ created_by: string | null;
19472
+ customer_id: string | null;
19473
+ customer_name: string | null;
19474
+ id: string | null;
19475
+ invoice_number: string | null;
19476
+ note: string | null;
19477
+ status: string | null;
19478
+ total_excl_cents: number | null;
19479
+ total_incl_cents: number | null;
19480
+ updated_at: string | null;
19481
+ vat_cents: number | null;
19482
+ vat_percentage: number | null;
19483
+ werkbon_id: string | null;
19484
+ };
19485
+ Insert: {
19486
+ created_at?: string | null;
19487
+ created_by?: string | null;
19488
+ customer_id?: string | null;
19489
+ customer_name?: string | null;
19490
+ id?: string | null;
19491
+ invoice_number?: string | null;
19492
+ note?: string | null;
19493
+ status?: string | null;
19494
+ total_excl_cents?: number | null;
19495
+ total_incl_cents?: number | null;
19496
+ updated_at?: string | null;
19497
+ vat_cents?: number | null;
19498
+ vat_percentage?: number | null;
19499
+ werkbon_id?: never;
19500
+ };
19501
+ Update: {
19502
+ created_at?: string | null;
19503
+ created_by?: string | null;
19504
+ customer_id?: string | null;
19505
+ customer_name?: string | null;
19506
+ id?: string | null;
19507
+ invoice_number?: string | null;
19508
+ note?: string | null;
19509
+ status?: string | null;
19510
+ total_excl_cents?: number | null;
19511
+ total_incl_cents?: number | null;
19512
+ updated_at?: string | null;
19513
+ vat_cents?: number | null;
19514
+ vat_percentage?: number | null;
19515
+ werkbon_id?: never;
19516
+ };
19517
+ Relationships: [{
19518
+ foreignKeyName: "invoices_customer_id_fkey";
19519
+ columns: ["customer_id"];
19520
+ isOneToOne: false;
19521
+ referencedRelation: "itk_customers";
19522
+ referencedColumns: ["id"];
19523
+ }];
19524
+ };
19525
+ uren_factuur_regels: {
19526
+ Row: {
19527
+ created_at: string | null;
19528
+ description: string | null;
19529
+ factuur_id: string | null;
19530
+ id: string | null;
19531
+ kind: string | null;
19532
+ quantity: number | null;
19533
+ sort_order: number | null;
19534
+ total_cents: number | null;
19535
+ unit: string | null;
19536
+ unit_price_cents: number | null;
19537
+ };
19538
+ Insert: {
19539
+ created_at?: string | null;
19540
+ description?: string | null;
19541
+ factuur_id?: string | null;
19542
+ id?: string | null;
19543
+ kind?: string | null;
19544
+ quantity?: number | null;
19545
+ sort_order?: number | null;
19546
+ total_cents?: number | null;
19547
+ unit?: string | null;
19548
+ unit_price_cents?: number | null;
19549
+ };
19550
+ Update: {
19551
+ created_at?: string | null;
19552
+ description?: string | null;
19553
+ factuur_id?: string | null;
19554
+ id?: string | null;
19555
+ kind?: string | null;
19556
+ quantity?: number | null;
19557
+ sort_order?: number | null;
19558
+ total_cents?: number | null;
19559
+ unit?: string | null;
19560
+ unit_price_cents?: number | null;
19561
+ };
19562
+ Relationships: [{
19563
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19564
+ columns: ["factuur_id"];
19565
+ isOneToOne: false;
19566
+ referencedRelation: "invoices";
19567
+ referencedColumns: ["id"];
19568
+ }, {
19569
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19570
+ columns: ["factuur_id"];
19571
+ isOneToOne: false;
19572
+ referencedRelation: "uren_facturen";
19573
+ referencedColumns: ["id"];
19574
+ }];
19575
+ };
19063
19576
  v_external_customers_exact: {
19064
19577
  Row: {
19065
19578
  account_number: string | null;
@@ -19565,6 +20078,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
19565
20078
  gebruiker_id: string | null;
19566
20079
  gebruiker_naam: string;
19567
20080
  gestart_op: string | null;
20081
+ herkomst: string | null;
19568
20082
  id: string;
19569
20083
  idempotentie_sleutel: string | null;
19570
20084
  is_herprint: boolean;
@@ -19685,6 +20199,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
19685
20199
  gebruiker_id: string | null;
19686
20200
  gebruiker_naam: string;
19687
20201
  gestart_op: string | null;
20202
+ herkomst: string | null;
19688
20203
  id: string;
19689
20204
  idempotentie_sleutel: string | null;
19690
20205
  is_herprint: boolean;
@@ -20286,6 +20801,46 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20286
20801
  Args: never;
20287
20802
  Returns: boolean;
20288
20803
  };
20804
+ invoice_create_from_source: {
20805
+ Args: {
20806
+ _payload?: import("../integrations/supabase/types").Json;
20807
+ _source_id: string;
20808
+ _source_type: string;
20809
+ };
20810
+ Returns: import("../integrations/supabase/types").Json;
20811
+ };
20812
+ invoice_get_billable_lines: {
20813
+ Args: {
20814
+ _invoice_id: string;
20815
+ };
20816
+ Returns: import("../integrations/supabase/types").Json;
20817
+ };
20818
+ invoice_get_for_source: {
20819
+ Args: {
20820
+ _source_id: string;
20821
+ _source_type: string;
20822
+ };
20823
+ Returns: import("../integrations/supabase/types").Json;
20824
+ };
20825
+ invoice_get_summary: {
20826
+ Args: {
20827
+ _invoice_id: string;
20828
+ };
20829
+ Returns: import("../integrations/supabase/types").Json;
20830
+ };
20831
+ invoice_list_sources: {
20832
+ Args: {
20833
+ _limit?: number;
20834
+ _source_type?: string;
20835
+ };
20836
+ Returns: import("../integrations/supabase/types").Json;
20837
+ };
20838
+ invoice_recalc_totals: {
20839
+ Args: {
20840
+ _invoice_id: string;
20841
+ };
20842
+ Returns: import("../integrations/supabase/types").Json;
20843
+ };
20289
20844
  is_authenticated: {
20290
20845
  Args: never;
20291
20846
  Returns: boolean;
@@ -20354,6 +20909,29 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20354
20909
  roles: string[];
20355
20910
  }[];
20356
20911
  };
20912
+ list_monteur_absences: {
20913
+ Args: {
20914
+ _from: string;
20915
+ _to: string;
20916
+ };
20917
+ Returns: {
20918
+ absence_date: string;
20919
+ end_time: string;
20920
+ full_day: boolean;
20921
+ kind: string;
20922
+ monteur_id: string;
20923
+ start_time: string;
20924
+ }[];
20925
+ };
20926
+ list_monteurs: {
20927
+ Args: never;
20928
+ Returns: {
20929
+ avatar_url: string;
20930
+ display_name: string;
20931
+ email: string;
20932
+ id: string;
20933
+ }[];
20934
+ };
20357
20935
  list_my_planning_items: {
20358
20936
  Args: {
20359
20937
  _from: string;
@@ -20765,6 +21343,41 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20765
21343
  };
20766
21344
  Returns: string;
20767
21345
  };
21346
+ logistics_floriday_finish_push_v2: {
21347
+ Args: {
21348
+ _error?: string;
21349
+ _error_code?: string;
21350
+ _fulfillment_order_id?: string;
21351
+ _gateway_status?: number;
21352
+ _id: string;
21353
+ _max_age_hours?: number;
21354
+ _max_attempts?: number;
21355
+ _ok: boolean;
21356
+ _permanent?: boolean;
21357
+ _response?: import("../integrations/supabase/types").Json;
21358
+ _revision: number;
21359
+ _sent_hash?: string;
21360
+ };
21361
+ Returns: string;
21362
+ };
21363
+ logistics_floriday_finish_push_v3: {
21364
+ Args: {
21365
+ _error?: string;
21366
+ _error_code?: string;
21367
+ _fulfillment_order_id?: string;
21368
+ _gateway_status?: number;
21369
+ _id: string;
21370
+ _max_age_hours?: number;
21371
+ _max_attempts?: number;
21372
+ _outcome: string;
21373
+ _permanent?: boolean;
21374
+ _response?: import("../integrations/supabase/types").Json;
21375
+ _revision: number;
21376
+ _sent_hash?: string;
21377
+ _wait_max_age_hours?: number;
21378
+ };
21379
+ Returns: string;
21380
+ };
20768
21381
  logistics_floriday_prune_pushes: {
20769
21382
  Args: {
20770
21383
  _days?: number;
@@ -21193,6 +21806,12 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21193
21806
  verwijderd: number;
21194
21807
  }[];
21195
21808
  };
21809
+ order_departure_proof: {
21810
+ Args: {
21811
+ p_order_id: string;
21812
+ };
21813
+ Returns: import("../integrations/supabase/types").Json;
21814
+ };
21196
21815
  order_number_prefix: {
21197
21816
  Args: {
21198
21817
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -21307,6 +21926,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21307
21926
  isSetofReturn: false;
21308
21927
  };
21309
21928
  };
21929
+ pick_cleanup_maintenance: {
21930
+ Args: {
21931
+ _heartbeat_hours?: number;
21932
+ _log_days?: number;
21933
+ };
21934
+ Returns: import("../integrations/supabase/types").Json;
21935
+ };
21310
21936
  pick_complete_print: {
21311
21937
  Args: {
21312
21938
  _printer_id: string;
@@ -21358,6 +21984,14 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21358
21984
  Args: never;
21359
21985
  Returns: string;
21360
21986
  };
21987
+ pick_day_counts: {
21988
+ Args: {
21989
+ _pick_day?: string;
21990
+ _screen_id?: string;
21991
+ _station_id?: string;
21992
+ };
21993
+ Returns: import("../integrations/supabase/types").Json;
21994
+ };
21361
21995
  pick_document_layout_data: {
21362
21996
  Args: {
21363
21997
  _layout_id: string;
@@ -21385,6 +22019,14 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21385
22019
  };
21386
22020
  Returns: import("../integrations/supabase/types").Json;
21387
22021
  };
22022
+ pick_print_plekken: {
22023
+ Args: never;
22024
+ Returns: {
22025
+ id: string;
22026
+ naam: string;
22027
+ omschrijving: string;
22028
+ }[];
22029
+ };
21388
22030
  pick_release_expired_locks: {
21389
22031
  Args: never;
21390
22032
  Returns: number;
@@ -21395,6 +22037,14 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21395
22037
  };
21396
22038
  Returns: undefined;
21397
22039
  };
22040
+ pick_reprint_document: {
22041
+ Args: {
22042
+ _queue_item_id: string;
22043
+ _session_id: string;
22044
+ _throttle_seconds?: number;
22045
+ };
22046
+ Returns: string;
22047
+ };
21398
22048
  pick_reset_print: {
21399
22049
  Args: {
21400
22050
  _queue_item_id: string;
@@ -21441,6 +22091,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21441
22091
  isSetofReturn: false;
21442
22092
  };
21443
22093
  };
22094
+ pick_set_station_print_plek: {
22095
+ Args: {
22096
+ _print_plek_id: string;
22097
+ _station_id: string;
22098
+ };
22099
+ Returns: string;
22100
+ };
21444
22101
  pick_station_dashboard: {
21445
22102
  Args: never;
21446
22103
  Returns: {
@@ -21453,6 +22110,25 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21453
22110
  waiting: number;
21454
22111
  }[];
21455
22112
  };
22113
+ pick_station_print_plek: {
22114
+ Args: {
22115
+ _station_id: string;
22116
+ };
22117
+ Returns: {
22118
+ naam: string;
22119
+ omschrijving: string;
22120
+ print_plek_id: string;
22121
+ }[];
22122
+ };
22123
+ pick_station_print_plekken: {
22124
+ Args: never;
22125
+ Returns: {
22126
+ naam: string;
22127
+ omschrijving: string;
22128
+ print_plek_id: string;
22129
+ station_id: string;
22130
+ }[];
22131
+ };
21456
22132
  pick_station_slugify: {
21457
22133
  Args: {
21458
22134
  _id: string;
@@ -21460,6 +22136,12 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21460
22136
  };
21461
22137
  Returns: string;
21462
22138
  };
22139
+ pick_sync_queue_throttled: {
22140
+ Args: {
22141
+ _min_seconds?: number;
22142
+ };
22143
+ Returns: import("../integrations/supabase/types").Json;
22144
+ };
21463
22145
  pickstation_get_orders_raw: {
21464
22146
  Args: never;
21465
22147
  Returns: import("../integrations/supabase/types").Json;
@@ -21605,6 +22287,12 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21605
22287
  };
21606
22288
  Returns: boolean;
21607
22289
  };
22290
+ release_stale_order_invoice_links: {
22291
+ Args: {
22292
+ _minutes?: number;
22293
+ };
22294
+ Returns: number;
22295
+ };
21608
22296
  reorder_customer_price_groups: {
21609
22297
  Args: {
21610
22298
  _ids: string[];
@@ -22123,6 +22811,20 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
22123
22811
  };
22124
22812
  Returns: undefined;
22125
22813
  };
22814
+ twinfield_deactivate_connection: {
22815
+ Args: {
22816
+ p_connection_id: string;
22817
+ p_user_id: string;
22818
+ };
22819
+ Returns: import("../integrations/supabase/types").Json;
22820
+ };
22821
+ twinfield_handle_administration_change: {
22822
+ Args: {
22823
+ _administration_code: string;
22824
+ _user_id: string;
22825
+ };
22826
+ Returns: undefined;
22827
+ };
22126
22828
  twinfield_prune_push_queue: {
22127
22829
  Args: never;
22128
22830
  Returns: number;
@@ -22142,10 +22844,11 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
22142
22844
  p_company_name?: string;
22143
22845
  p_environment: string;
22144
22846
  p_office_code?: string;
22847
+ p_reset_sync?: boolean;
22145
22848
  p_status?: string;
22146
22849
  p_user_id: string;
22147
22850
  };
22148
- Returns: string;
22851
+ Returns: import("../integrations/supabase/types").Json;
22149
22852
  };
22150
22853
  upsert_auto_fulfillment_log: {
22151
22854
  Args: {
@@ -22887,6 +23590,99 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
22887
23590
  };
22888
23591
  Relationships: [];
22889
23592
  };
23593
+ artikelen_cache: {
23594
+ Row: {
23595
+ artikelcode: string;
23596
+ bron: string;
23597
+ bruto_prijs_cent: number | null;
23598
+ created_at: string;
23599
+ eenheid: string;
23600
+ fabrikant: string | null;
23601
+ fetched_at: string;
23602
+ gtin: string | null;
23603
+ id: string;
23604
+ naam: string;
23605
+ netto_prijs_cent: number | null;
23606
+ omschrijving: string | null;
23607
+ raw: import("../integrations/supabase/types").Json;
23608
+ updated_at: string;
23609
+ valuta: string;
23610
+ };
23611
+ Insert: {
23612
+ artikelcode: string;
23613
+ bron?: string;
23614
+ bruto_prijs_cent?: number | null;
23615
+ created_at?: string;
23616
+ eenheid?: string;
23617
+ fabrikant?: string | null;
23618
+ fetched_at?: string;
23619
+ gtin?: string | null;
23620
+ id?: string;
23621
+ naam: string;
23622
+ netto_prijs_cent?: number | null;
23623
+ omschrijving?: string | null;
23624
+ raw?: import("../integrations/supabase/types").Json;
23625
+ updated_at?: string;
23626
+ valuta?: string;
23627
+ };
23628
+ Update: {
23629
+ artikelcode?: string;
23630
+ bron?: string;
23631
+ bruto_prijs_cent?: number | null;
23632
+ created_at?: string;
23633
+ eenheid?: string;
23634
+ fabrikant?: string | null;
23635
+ fetched_at?: string;
23636
+ gtin?: string | null;
23637
+ id?: string;
23638
+ naam?: string;
23639
+ netto_prijs_cent?: number | null;
23640
+ omschrijving?: string | null;
23641
+ raw?: import("../integrations/supabase/types").Json;
23642
+ updated_at?: string;
23643
+ valuta?: string;
23644
+ };
23645
+ Relationships: [];
23646
+ };
23647
+ artikelen_veldconfig: {
23648
+ Row: {
23649
+ bron_pad: string;
23650
+ created_at: string;
23651
+ id: string;
23652
+ label: string;
23653
+ sort_order: number;
23654
+ type: string;
23655
+ updated_at: string;
23656
+ veld_key: string;
23657
+ zichtbaar_in_detail: boolean;
23658
+ zichtbaar_in_lijst: boolean;
23659
+ };
23660
+ Insert: {
23661
+ bron_pad: string;
23662
+ created_at?: string;
23663
+ id?: string;
23664
+ label: string;
23665
+ sort_order?: number;
23666
+ type?: string;
23667
+ updated_at?: string;
23668
+ veld_key: string;
23669
+ zichtbaar_in_detail?: boolean;
23670
+ zichtbaar_in_lijst?: boolean;
23671
+ };
23672
+ Update: {
23673
+ bron_pad?: string;
23674
+ created_at?: string;
23675
+ id?: string;
23676
+ label?: string;
23677
+ sort_order?: number;
23678
+ type?: string;
23679
+ updated_at?: string;
23680
+ veld_key?: string;
23681
+ zichtbaar_in_detail?: boolean;
23682
+ zichtbaar_in_lijst?: boolean;
23683
+ };
23684
+ Relationships: [];
23685
+ };
22890
23686
  booking_items: {
22891
23687
  Row: {
22892
23688
  booking_id: string;
@@ -24972,6 +25768,42 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
24972
25768
  };
24973
25769
  Relationships: [];
24974
25770
  };
25771
+ document_bronregels: {
25772
+ Row: {
25773
+ bron: string;
25774
+ created_at: string;
25775
+ documenttype: string;
25776
+ herkomst: string;
25777
+ id: string;
25778
+ layout_id: string | null;
25779
+ updated_at: string;
25780
+ };
25781
+ Insert: {
25782
+ bron?: string;
25783
+ created_at?: string;
25784
+ documenttype: string;
25785
+ herkomst: string;
25786
+ id?: string;
25787
+ layout_id?: string | null;
25788
+ updated_at?: string;
25789
+ };
25790
+ Update: {
25791
+ bron?: string;
25792
+ created_at?: string;
25793
+ documenttype?: string;
25794
+ herkomst?: string;
25795
+ id?: string;
25796
+ layout_id?: string | null;
25797
+ updated_at?: string;
25798
+ };
25799
+ Relationships: [{
25800
+ foreignKeyName: "document_bronregels_layout_id_fkey";
25801
+ columns: ["layout_id"];
25802
+ isOneToOne: false;
25803
+ referencedRelation: "document_layouts";
25804
+ referencedColumns: ["id"];
25805
+ }];
25806
+ };
24975
25807
  document_formaat_printers: {
24976
25808
  Row: {
24977
25809
  created_at: string;
@@ -25249,6 +26081,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
25249
26081
  Row: {
25250
26082
  actief: boolean;
25251
26083
  breedte_mm: number;
26084
+ bron: string;
25252
26085
  config: import("../integrations/supabase/types").Json;
25253
26086
  created_at: string;
25254
26087
  created_by: string | null;
@@ -25266,12 +26099,14 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
25266
26099
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25267
26100
  page_settings: import("../integrations/supabase/types").Json;
25268
26101
  papierformaat: string;
26102
+ systeem: boolean;
25269
26103
  thumbnail_url: string | null;
25270
26104
  updated_at: string;
25271
26105
  };
25272
26106
  Insert: {
25273
26107
  actief?: boolean;
25274
26108
  breedte_mm?: number;
26109
+ bron?: string;
25275
26110
  config?: import("../integrations/supabase/types").Json;
25276
26111
  created_at?: string;
25277
26112
  created_by?: string | null;
@@ -25289,12 +26124,14 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
25289
26124
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25290
26125
  page_settings?: import("../integrations/supabase/types").Json;
25291
26126
  papierformaat?: string;
26127
+ systeem?: boolean;
25292
26128
  thumbnail_url?: string | null;
25293
26129
  updated_at?: string;
25294
26130
  };
25295
26131
  Update: {
25296
26132
  actief?: boolean;
25297
26133
  breedte_mm?: number;
26134
+ bron?: string;
25298
26135
  config?: import("../integrations/supabase/types").Json;
25299
26136
  created_at?: string;
25300
26137
  created_by?: string | null;
@@ -25312,11 +26149,90 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
25312
26149
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25313
26150
  page_settings?: import("../integrations/supabase/types").Json;
25314
26151
  papierformaat?: string;
26152
+ systeem?: boolean;
25315
26153
  thumbnail_url?: string | null;
25316
26154
  updated_at?: string;
25317
26155
  };
25318
26156
  Relationships: [];
25319
26157
  };
26158
+ document_printplek_printers: {
26159
+ Row: {
26160
+ created_at: string;
26161
+ documenttype: string;
26162
+ id: string;
26163
+ papierformaat: string | null;
26164
+ print_plek_id: string;
26165
+ printer_id: string | null;
26166
+ updated_at: string;
26167
+ };
26168
+ Insert: {
26169
+ created_at?: string;
26170
+ documenttype: string;
26171
+ id?: string;
26172
+ papierformaat?: string | null;
26173
+ print_plek_id: string;
26174
+ printer_id?: string | null;
26175
+ updated_at?: string;
26176
+ };
26177
+ Update: {
26178
+ created_at?: string;
26179
+ documenttype?: string;
26180
+ id?: string;
26181
+ papierformaat?: string | null;
26182
+ print_plek_id?: string;
26183
+ printer_id?: string | null;
26184
+ updated_at?: string;
26185
+ };
26186
+ Relationships: [{
26187
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
26188
+ columns: ["print_plek_id"];
26189
+ isOneToOne: false;
26190
+ referencedRelation: "print_plekken";
26191
+ referencedColumns: ["id"];
26192
+ }, {
26193
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
26194
+ columns: ["printer_id"];
26195
+ isOneToOne: false;
26196
+ referencedRelation: "printers";
26197
+ referencedColumns: ["id"];
26198
+ }];
26199
+ };
26200
+ document_werkplek_printers: {
26201
+ Row: {
26202
+ created_at: string;
26203
+ documenttype: string;
26204
+ id: string;
26205
+ papierformaat: string | null;
26206
+ printer_id: string | null;
26207
+ updated_at: string;
26208
+ werkplek: string;
26209
+ };
26210
+ Insert: {
26211
+ created_at?: string;
26212
+ documenttype: string;
26213
+ id?: string;
26214
+ papierformaat?: string | null;
26215
+ printer_id?: string | null;
26216
+ updated_at?: string;
26217
+ werkplek: string;
26218
+ };
26219
+ Update: {
26220
+ created_at?: string;
26221
+ documenttype?: string;
26222
+ id?: string;
26223
+ papierformaat?: string | null;
26224
+ printer_id?: string | null;
26225
+ updated_at?: string;
26226
+ werkplek?: string;
26227
+ };
26228
+ Relationships: [{
26229
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
26230
+ columns: ["printer_id"];
26231
+ isOneToOne: false;
26232
+ referencedRelation: "printers";
26233
+ referencedColumns: ["id"];
26234
+ }];
26235
+ };
25320
26236
  email_auth_connections: {
25321
26237
  Row: {
25322
26238
  access_token_encrypted: string | null;
@@ -27258,42 +28174,6 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
27258
28174
  };
27259
28175
  Relationships: [];
27260
28176
  };
27261
- facturen: {
27262
- Row: {
27263
- bedrag_incl_btw: number;
27264
- created_at: string;
27265
- datum: string;
27266
- factuurnummer: string;
27267
- id: string;
27268
- klantnaam: string;
27269
- status: string;
27270
- updated_at: string;
27271
- user_id: string;
27272
- };
27273
- Insert: {
27274
- bedrag_incl_btw: number;
27275
- created_at?: string;
27276
- datum?: string;
27277
- factuurnummer: string;
27278
- id?: string;
27279
- klantnaam: string;
27280
- status?: string;
27281
- updated_at?: string;
27282
- user_id?: string;
27283
- };
27284
- Update: {
27285
- bedrag_incl_btw?: number;
27286
- created_at?: string;
27287
- datum?: string;
27288
- factuurnummer?: string;
27289
- id?: string;
27290
- klantnaam?: string;
27291
- status?: string;
27292
- updated_at?: string;
27293
- user_id?: string;
27294
- };
27295
- Relationships: [];
27296
- };
27297
28177
  floricode_connection_settings: {
27298
28178
  Row: {
27299
28179
  catalog_key: string | null;
@@ -29598,8 +30478,63 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29598
30478
  };
29599
30479
  Relationships: [];
29600
30480
  };
30481
+ invoice_items: {
30482
+ Row: {
30483
+ created_at: string;
30484
+ description: string;
30485
+ id: string;
30486
+ invoice_id: string;
30487
+ kind: string;
30488
+ quantity: number;
30489
+ sort_order: number;
30490
+ source_line_ref: string | null;
30491
+ total_cents: number;
30492
+ unit: string;
30493
+ unit_price_cents: number;
30494
+ };
30495
+ Insert: {
30496
+ created_at?: string;
30497
+ description?: string;
30498
+ id?: string;
30499
+ invoice_id: string;
30500
+ kind?: string;
30501
+ quantity?: number;
30502
+ sort_order?: number;
30503
+ source_line_ref?: string | null;
30504
+ total_cents?: number;
30505
+ unit?: string;
30506
+ unit_price_cents?: number;
30507
+ };
30508
+ Update: {
30509
+ created_at?: string;
30510
+ description?: string;
30511
+ id?: string;
30512
+ invoice_id?: string;
30513
+ kind?: string;
30514
+ quantity?: number;
30515
+ sort_order?: number;
30516
+ source_line_ref?: string | null;
30517
+ total_cents?: number;
30518
+ unit?: string;
30519
+ unit_price_cents?: number;
30520
+ };
30521
+ Relationships: [{
30522
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30523
+ columns: ["invoice_id"];
30524
+ isOneToOne: false;
30525
+ referencedRelation: "invoices";
30526
+ referencedColumns: ["id"];
30527
+ }, {
30528
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30529
+ columns: ["invoice_id"];
30530
+ isOneToOne: false;
30531
+ referencedRelation: "uren_facturen";
30532
+ referencedColumns: ["id"];
30533
+ }];
30534
+ };
29601
30535
  invoice_post_idempotency: {
29602
30536
  Row: {
30537
+ administration_code: string;
29603
30538
  client_request_id: string;
29604
30539
  completed_at: string | null;
29605
30540
  created_at: string;
@@ -29609,6 +30544,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29609
30544
  user_id: string;
29610
30545
  };
29611
30546
  Insert: {
30547
+ administration_code?: string;
29612
30548
  client_request_id: string;
29613
30549
  completed_at?: string | null;
29614
30550
  created_at?: string;
@@ -29618,6 +30554,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29618
30554
  user_id: string;
29619
30555
  };
29620
30556
  Update: {
30557
+ administration_code?: string;
29621
30558
  client_request_id?: string;
29622
30559
  completed_at?: string | null;
29623
30560
  created_at?: string;
@@ -29823,6 +30760,75 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29823
30760
  };
29824
30761
  Relationships: [];
29825
30762
  };
30763
+ invoices: {
30764
+ Row: {
30765
+ created_at: string;
30766
+ created_by: string | null;
30767
+ customer_id: string | null;
30768
+ customer_name: string | null;
30769
+ due_date: string | null;
30770
+ id: string;
30771
+ invoice_date: string;
30772
+ invoice_number: string | null;
30773
+ note: string | null;
30774
+ source_number: string | null;
30775
+ source_ref: string | null;
30776
+ source_type: string;
30777
+ status: string;
30778
+ subtotal_cents: number;
30779
+ total_cents: number;
30780
+ updated_at: string;
30781
+ vat_cents: number;
30782
+ vat_rate: number;
30783
+ };
30784
+ Insert: {
30785
+ created_at?: string;
30786
+ created_by?: string | null;
30787
+ customer_id?: string | null;
30788
+ customer_name?: string | null;
30789
+ due_date?: string | null;
30790
+ id?: string;
30791
+ invoice_date?: string;
30792
+ invoice_number?: string | null;
30793
+ note?: string | null;
30794
+ source_number?: string | null;
30795
+ source_ref?: string | null;
30796
+ source_type?: string;
30797
+ status?: string;
30798
+ subtotal_cents?: number;
30799
+ total_cents?: number;
30800
+ updated_at?: string;
30801
+ vat_cents?: number;
30802
+ vat_rate?: number;
30803
+ };
30804
+ Update: {
30805
+ created_at?: string;
30806
+ created_by?: string | null;
30807
+ customer_id?: string | null;
30808
+ customer_name?: string | null;
30809
+ due_date?: string | null;
30810
+ id?: string;
30811
+ invoice_date?: string;
30812
+ invoice_number?: string | null;
30813
+ note?: string | null;
30814
+ source_number?: string | null;
30815
+ source_ref?: string | null;
30816
+ source_type?: string;
30817
+ status?: string;
30818
+ subtotal_cents?: number;
30819
+ total_cents?: number;
30820
+ updated_at?: string;
30821
+ vat_cents?: number;
30822
+ vat_rate?: number;
30823
+ };
30824
+ Relationships: [{
30825
+ foreignKeyName: "invoices_customer_id_fkey";
30826
+ columns: ["customer_id"];
30827
+ isOneToOne: false;
30828
+ referencedRelation: "itk_customers";
30829
+ referencedColumns: ["id"];
30830
+ }];
30831
+ };
29826
30832
  itk_contact_persons: {
29827
30833
  Row: {
29828
30834
  created_at: string;
@@ -31170,6 +32176,10 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
31170
32176
  id: string;
31171
32177
  last_error: string | null;
31172
32178
  last_error_at: string | null;
32179
+ last_error_code: string | null;
32180
+ last_gateway_status: number | null;
32181
+ last_queued_at: string | null;
32182
+ last_response: import("../integrations/supabase/types").Json | null;
31173
32183
  last_sent_hash: string | null;
31174
32184
  locked_by: string | null;
31175
32185
  locked_until: string | null;
@@ -31190,6 +32200,10 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
31190
32200
  id?: string;
31191
32201
  last_error?: string | null;
31192
32202
  last_error_at?: string | null;
32203
+ last_error_code?: string | null;
32204
+ last_gateway_status?: number | null;
32205
+ last_queued_at?: string | null;
32206
+ last_response?: import("../integrations/supabase/types").Json | null;
31193
32207
  last_sent_hash?: string | null;
31194
32208
  locked_by?: string | null;
31195
32209
  locked_until?: string | null;
@@ -31210,6 +32224,10 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
31210
32224
  id?: string;
31211
32225
  last_error?: string | null;
31212
32226
  last_error_at?: string | null;
32227
+ last_error_code?: string | null;
32228
+ last_gateway_status?: number | null;
32229
+ last_queued_at?: string | null;
32230
+ last_response?: import("../integrations/supabase/types").Json | null;
31213
32231
  last_sent_hash?: string | null;
31214
32232
  locked_by?: string | null;
31215
32233
  locked_until?: string | null;
@@ -32763,6 +33781,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
32763
33781
  enforce: boolean;
32764
33782
  is_active: boolean;
32765
33783
  last_seen_at: string;
33784
+ missing_count: number;
32766
33785
  module_id: string;
32767
33786
  name: string;
32768
33787
  shell_id: string | null;
@@ -32773,6 +33792,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
32773
33792
  enforce?: boolean;
32774
33793
  is_active?: boolean;
32775
33794
  last_seen_at?: string;
33795
+ missing_count?: number;
32776
33796
  module_id: string;
32777
33797
  name: string;
32778
33798
  shell_id?: string | null;
@@ -32783,6 +33803,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
32783
33803
  enforce?: boolean;
32784
33804
  is_active?: boolean;
32785
33805
  last_seen_at?: string;
33806
+ missing_count?: number;
32786
33807
  module_id?: string;
32787
33808
  name?: string;
32788
33809
  shell_id?: string | null;
@@ -33782,6 +34803,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
33782
34803
  };
33783
34804
  order_invoice_links: {
33784
34805
  Row: {
34806
+ administration_code: string | null;
33785
34807
  attempts: number;
33786
34808
  created_at: string;
33787
34809
  error_message: string | null;
@@ -33794,6 +34816,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
33794
34816
  updated_at: string;
33795
34817
  };
33796
34818
  Insert: {
34819
+ administration_code?: string | null;
33797
34820
  attempts?: number;
33798
34821
  created_at?: string;
33799
34822
  error_message?: string | null;
@@ -33806,6 +34829,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
33806
34829
  updated_at?: string;
33807
34830
  };
33808
34831
  Update: {
34832
+ administration_code?: string | null;
33809
34833
  attempts?: number;
33810
34834
  created_at?: string;
33811
34835
  error_message?: string | null;
@@ -34971,6 +35995,27 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
34971
35995
  referencedColumns: ["id"];
34972
35996
  }];
34973
35997
  };
35998
+ pick_sync_state: {
35999
+ Row: {
36000
+ id: boolean;
36001
+ last_cleanup_at: string | null;
36002
+ last_sync_at: string | null;
36003
+ updated_at: string;
36004
+ };
36005
+ Insert: {
36006
+ id?: boolean;
36007
+ last_cleanup_at?: string | null;
36008
+ last_sync_at?: string | null;
36009
+ updated_at?: string;
36010
+ };
36011
+ Update: {
36012
+ id?: boolean;
36013
+ last_cleanup_at?: string | null;
36014
+ last_sync_at?: string | null;
36015
+ updated_at?: string;
36016
+ };
36017
+ Relationships: [];
36018
+ };
34974
36019
  pick_task_document_types: {
34975
36020
  Row: {
34976
36021
  created_at: string;
@@ -35253,6 +36298,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
35253
36298
  gebruiker_id: string | null;
35254
36299
  gebruiker_naam: string;
35255
36300
  gestart_op: string | null;
36301
+ herkomst: string | null;
35256
36302
  id: string;
35257
36303
  idempotentie_sleutel: string | null;
35258
36304
  is_herprint: boolean;
@@ -35282,6 +36328,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
35282
36328
  gebruiker_id?: string | null;
35283
36329
  gebruiker_naam?: string;
35284
36330
  gestart_op?: string | null;
36331
+ herkomst?: string | null;
35285
36332
  id?: string;
35286
36333
  idempotentie_sleutel?: string | null;
35287
36334
  is_herprint?: boolean;
@@ -35311,6 +36358,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
35311
36358
  gebruiker_id?: string | null;
35312
36359
  gebruiker_naam?: string;
35313
36360
  gestart_op?: string | null;
36361
+ herkomst?: string | null;
35314
36362
  id?: string;
35315
36363
  idempotentie_sleutel?: string | null;
35316
36364
  is_herprint?: boolean;
@@ -35349,6 +36397,99 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
35349
36397
  referencedColumns: ["id"];
35350
36398
  }];
35351
36399
  };
36400
+ print_plek_computers: {
36401
+ Row: {
36402
+ computer_naam: string;
36403
+ created_at: string;
36404
+ id: string;
36405
+ print_plek_id: string;
36406
+ updated_at: string;
36407
+ };
36408
+ Insert: {
36409
+ computer_naam: string;
36410
+ created_at?: string;
36411
+ id?: string;
36412
+ print_plek_id: string;
36413
+ updated_at?: string;
36414
+ };
36415
+ Update: {
36416
+ computer_naam?: string;
36417
+ created_at?: string;
36418
+ id?: string;
36419
+ print_plek_id?: string;
36420
+ updated_at?: string;
36421
+ };
36422
+ Relationships: [{
36423
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
36424
+ columns: ["print_plek_id"];
36425
+ isOneToOne: false;
36426
+ referencedRelation: "print_plekken";
36427
+ referencedColumns: ["id"];
36428
+ }];
36429
+ };
36430
+ print_plek_koppelingen: {
36431
+ Row: {
36432
+ bron: string;
36433
+ bron_id: string;
36434
+ created_at: string;
36435
+ id: string;
36436
+ label: string | null;
36437
+ print_plek_id: string;
36438
+ updated_at: string;
36439
+ };
36440
+ Insert: {
36441
+ bron: string;
36442
+ bron_id: string;
36443
+ created_at?: string;
36444
+ id?: string;
36445
+ label?: string | null;
36446
+ print_plek_id: string;
36447
+ updated_at?: string;
36448
+ };
36449
+ Update: {
36450
+ bron?: string;
36451
+ bron_id?: string;
36452
+ created_at?: string;
36453
+ id?: string;
36454
+ label?: string | null;
36455
+ print_plek_id?: string;
36456
+ updated_at?: string;
36457
+ };
36458
+ Relationships: [{
36459
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
36460
+ columns: ["print_plek_id"];
36461
+ isOneToOne: false;
36462
+ referencedRelation: "print_plekken";
36463
+ referencedColumns: ["id"];
36464
+ }];
36465
+ };
36466
+ print_plekken: {
36467
+ Row: {
36468
+ actief: boolean;
36469
+ created_at: string;
36470
+ id: string;
36471
+ naam: string;
36472
+ omschrijving: string | null;
36473
+ updated_at: string;
36474
+ };
36475
+ Insert: {
36476
+ actief?: boolean;
36477
+ created_at?: string;
36478
+ id?: string;
36479
+ naam: string;
36480
+ omschrijving?: string | null;
36481
+ updated_at?: string;
36482
+ };
36483
+ Update: {
36484
+ actief?: boolean;
36485
+ created_at?: string;
36486
+ id?: string;
36487
+ naam?: string;
36488
+ omschrijving?: string | null;
36489
+ updated_at?: string;
36490
+ };
36491
+ Relationships: [];
36492
+ };
35352
36493
  print_queue_runners: {
35353
36494
  Row: {
35354
36495
  actief: boolean;
@@ -37503,6 +38644,45 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
37503
38644
  };
37504
38645
  Relationships: [];
37505
38646
  };
38647
+ stock_consumption_alerts: {
38648
+ Row: {
38649
+ alert_type: string;
38650
+ created_at: string;
38651
+ id: string;
38652
+ mutation_log_id: string | null;
38653
+ order_id: string | null;
38654
+ order_item_id: string | null;
38655
+ qty: number;
38656
+ reason: string | null;
38657
+ resolved_at: string | null;
38658
+ updated_at: string;
38659
+ };
38660
+ Insert: {
38661
+ alert_type: string;
38662
+ created_at?: string;
38663
+ id?: string;
38664
+ mutation_log_id?: string | null;
38665
+ order_id?: string | null;
38666
+ order_item_id?: string | null;
38667
+ qty?: number;
38668
+ reason?: string | null;
38669
+ resolved_at?: string | null;
38670
+ updated_at?: string;
38671
+ };
38672
+ Update: {
38673
+ alert_type?: string;
38674
+ created_at?: string;
38675
+ id?: string;
38676
+ mutation_log_id?: string | null;
38677
+ order_id?: string | null;
38678
+ order_item_id?: string | null;
38679
+ qty?: number;
38680
+ reason?: string | null;
38681
+ resolved_at?: string | null;
38682
+ updated_at?: string;
38683
+ };
38684
+ Relationships: [];
38685
+ };
37506
38686
  stock_import_runs: {
37507
38687
  Row: {
37508
38688
  connection_id: string | null;
@@ -38315,12 +39495,16 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
38315
39495
  company_name: string | null;
38316
39496
  connected_at: string | null;
38317
39497
  created_at: string;
39498
+ disconnected_at: string | null;
38318
39499
  environment: string;
38319
39500
  id: string;
39501
+ initial_sync_completed_at: string | null;
39502
+ initial_sync_started_at: string | null;
38320
39503
  is_active: boolean;
38321
39504
  label: string | null;
38322
39505
  office_code: string | null;
38323
39506
  redirect_uri: string | null;
39507
+ superseded_at: string | null;
38324
39508
  updated_at: string;
38325
39509
  user_id: string;
38326
39510
  };
@@ -38331,12 +39515,16 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
38331
39515
  company_name?: string | null;
38332
39516
  connected_at?: string | null;
38333
39517
  created_at?: string;
39518
+ disconnected_at?: string | null;
38334
39519
  environment: string;
38335
39520
  id?: string;
39521
+ initial_sync_completed_at?: string | null;
39522
+ initial_sync_started_at?: string | null;
38336
39523
  is_active?: boolean;
38337
39524
  label?: string | null;
38338
39525
  office_code?: string | null;
38339
39526
  redirect_uri?: string | null;
39527
+ superseded_at?: string | null;
38340
39528
  updated_at?: string;
38341
39529
  user_id: string;
38342
39530
  };
@@ -38347,12 +39535,16 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
38347
39535
  company_name?: string | null;
38348
39536
  connected_at?: string | null;
38349
39537
  created_at?: string;
39538
+ disconnected_at?: string | null;
38350
39539
  environment?: string;
38351
39540
  id?: string;
39541
+ initial_sync_completed_at?: string | null;
39542
+ initial_sync_started_at?: string | null;
38352
39543
  is_active?: boolean;
38353
39544
  label?: string | null;
38354
39545
  office_code?: string | null;
38355
39546
  redirect_uri?: string | null;
39547
+ superseded_at?: string | null;
38356
39548
  updated_at?: string;
38357
39549
  user_id?: string;
38358
39550
  };
@@ -38412,6 +39604,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
38412
39604
  twinfield_customers: {
38413
39605
  Row: {
38414
39606
  address: string | null;
39607
+ administration_code: string;
38415
39608
  city: string | null;
38416
39609
  country: string | null;
38417
39610
  created_at: string;
@@ -38431,6 +39624,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
38431
39624
  };
38432
39625
  Insert: {
38433
39626
  address?: string | null;
39627
+ administration_code?: string;
38434
39628
  city?: string | null;
38435
39629
  country?: string | null;
38436
39630
  created_at?: string;
@@ -38450,6 +39644,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
38450
39644
  };
38451
39645
  Update: {
38452
39646
  address?: string | null;
39647
+ administration_code?: string;
38453
39648
  city?: string | null;
38454
39649
  country?: string | null;
38455
39650
  created_at?: string;
@@ -38663,7 +39858,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
38663
39858
  };
38664
39859
  twinfield_invoice_settings: {
38665
39860
  Row: {
39861
+ administration_code: string | null;
38666
39862
  auto_invoice_enabled: boolean;
39863
+ auto_invoice_start_date: string | null;
38667
39864
  auto_invoice_trigger_statuses: string[];
38668
39865
  created_at: string;
38669
39866
  debtor_gl_account: string;
@@ -38677,15 +39874,19 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
38677
39874
  invoice_enabled_fo: boolean;
38678
39875
  invoice_enabled_ho: boolean;
38679
39876
  invoice_enabled_mo: boolean;
39877
+ needs_review: boolean;
38680
39878
  payment_gl_account: string;
38681
39879
  payment_journal_code: string;
39880
+ settings_confirmed_at: string | null;
38682
39881
  updated_at: string;
38683
39882
  user_id: string;
38684
39883
  vat_code_eu_reverse: string | null;
38685
39884
  vat_code_export: string | null;
38686
39885
  };
38687
39886
  Insert: {
39887
+ administration_code?: string | null;
38688
39888
  auto_invoice_enabled?: boolean;
39889
+ auto_invoice_start_date?: string | null;
38689
39890
  auto_invoice_trigger_statuses?: string[];
38690
39891
  created_at?: string;
38691
39892
  debtor_gl_account?: string;
@@ -38699,15 +39900,19 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
38699
39900
  invoice_enabled_fo?: boolean;
38700
39901
  invoice_enabled_ho?: boolean;
38701
39902
  invoice_enabled_mo?: boolean;
39903
+ needs_review?: boolean;
38702
39904
  payment_gl_account?: string;
38703
39905
  payment_journal_code?: string;
39906
+ settings_confirmed_at?: string | null;
38704
39907
  updated_at?: string;
38705
39908
  user_id: string;
38706
39909
  vat_code_eu_reverse?: string | null;
38707
39910
  vat_code_export?: string | null;
38708
39911
  };
38709
39912
  Update: {
39913
+ administration_code?: string | null;
38710
39914
  auto_invoice_enabled?: boolean;
39915
+ auto_invoice_start_date?: string | null;
38711
39916
  auto_invoice_trigger_statuses?: string[];
38712
39917
  created_at?: string;
38713
39918
  debtor_gl_account?: string;
@@ -38721,8 +39926,10 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
38721
39926
  invoice_enabled_fo?: boolean;
38722
39927
  invoice_enabled_ho?: boolean;
38723
39928
  invoice_enabled_mo?: boolean;
39929
+ needs_review?: boolean;
38724
39930
  payment_gl_account?: string;
38725
39931
  payment_journal_code?: string;
39932
+ settings_confirmed_at?: string | null;
38726
39933
  updated_at?: string;
38727
39934
  user_id?: string;
38728
39935
  vat_code_eu_reverse?: string | null;
@@ -39327,114 +40534,6 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
39327
40534
  };
39328
40535
  Relationships: [];
39329
40536
  };
39330
- uren_facturen: {
39331
- Row: {
39332
- created_at: string;
39333
- created_by: string | null;
39334
- customer_id: string | null;
39335
- customer_name: string | null;
39336
- id: string;
39337
- invoice_number: string | null;
39338
- note: string | null;
39339
- status: string;
39340
- total_excl_cents: number;
39341
- total_incl_cents: number;
39342
- updated_at: string;
39343
- vat_cents: number;
39344
- vat_percentage: number;
39345
- werkbon_id: string | null;
39346
- };
39347
- Insert: {
39348
- created_at?: string;
39349
- created_by?: string | null;
39350
- customer_id?: string | null;
39351
- customer_name?: string | null;
39352
- id?: string;
39353
- invoice_number?: string | null;
39354
- note?: string | null;
39355
- status?: string;
39356
- total_excl_cents?: number;
39357
- total_incl_cents?: number;
39358
- updated_at?: string;
39359
- vat_cents?: number;
39360
- vat_percentage?: number;
39361
- werkbon_id?: string | null;
39362
- };
39363
- Update: {
39364
- created_at?: string;
39365
- created_by?: string | null;
39366
- customer_id?: string | null;
39367
- customer_name?: string | null;
39368
- id?: string;
39369
- invoice_number?: string | null;
39370
- note?: string | null;
39371
- status?: string;
39372
- total_excl_cents?: number;
39373
- total_incl_cents?: number;
39374
- updated_at?: string;
39375
- vat_cents?: number;
39376
- vat_percentage?: number;
39377
- werkbon_id?: string | null;
39378
- };
39379
- Relationships: [{
39380
- foreignKeyName: "uren_facturen_customer_id_fkey";
39381
- columns: ["customer_id"];
39382
- isOneToOne: false;
39383
- referencedRelation: "itk_customers";
39384
- referencedColumns: ["id"];
39385
- }, {
39386
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
39387
- columns: ["werkbon_id"];
39388
- isOneToOne: true;
39389
- referencedRelation: "werkbonnen";
39390
- referencedColumns: ["id"];
39391
- }];
39392
- };
39393
- uren_factuur_regels: {
39394
- Row: {
39395
- created_at: string;
39396
- description: string;
39397
- factuur_id: string;
39398
- id: string;
39399
- kind: string | null;
39400
- quantity: number;
39401
- sort_order: number;
39402
- total_cents: number;
39403
- unit: string;
39404
- unit_price_cents: number;
39405
- };
39406
- Insert: {
39407
- created_at?: string;
39408
- description: string;
39409
- factuur_id: string;
39410
- id?: string;
39411
- kind?: string | null;
39412
- quantity?: number;
39413
- sort_order?: number;
39414
- total_cents?: number;
39415
- unit?: string;
39416
- unit_price_cents?: number;
39417
- };
39418
- Update: {
39419
- created_at?: string;
39420
- description?: string;
39421
- factuur_id?: string;
39422
- id?: string;
39423
- kind?: string | null;
39424
- quantity?: number;
39425
- sort_order?: number;
39426
- total_cents?: number;
39427
- unit?: string;
39428
- unit_price_cents?: number;
39429
- };
39430
- Relationships: [{
39431
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
39432
- columns: ["factuur_id"];
39433
- isOneToOne: false;
39434
- referencedRelation: "uren_facturen";
39435
- referencedColumns: ["id"];
39436
- }];
39437
- };
39438
40537
  uren_offerte_regels: {
39439
40538
  Row: {
39440
40539
  created_at: string;
@@ -40688,6 +41787,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
40688
41787
  scheduled_end_time: string | null;
40689
41788
  scheduled_start_time: string | null;
40690
41789
  sequence_number: number;
41790
+ signature_accepted_at: string | null;
41791
+ signature_by_user_id: string | null;
41792
+ signature_name: string | null;
40691
41793
  source_email_meta: import("../integrations/supabase/types").Json | null;
40692
41794
  source_mailbox_message_id: string | null;
40693
41795
  source_pdf_path: string | null;
@@ -40723,6 +41825,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
40723
41825
  scheduled_end_time?: string | null;
40724
41826
  scheduled_start_time?: string | null;
40725
41827
  sequence_number: number;
41828
+ signature_accepted_at?: string | null;
41829
+ signature_by_user_id?: string | null;
41830
+ signature_name?: string | null;
40726
41831
  source_email_meta?: import("../integrations/supabase/types").Json | null;
40727
41832
  source_mailbox_message_id?: string | null;
40728
41833
  source_pdf_path?: string | null;
@@ -40758,6 +41863,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
40758
41863
  scheduled_end_time?: string | null;
40759
41864
  scheduled_start_time?: string | null;
40760
41865
  sequence_number?: number;
41866
+ signature_accepted_at?: string | null;
41867
+ signature_by_user_id?: string | null;
41868
+ signature_name?: string | null;
40761
41869
  source_email_meta?: import("../integrations/supabase/types").Json | null;
40762
41870
  source_mailbox_message_id?: string | null;
40763
41871
  source_pdf_path?: string | null;
@@ -41274,6 +42382,114 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
41274
42382
  };
41275
42383
  Relationships: [];
41276
42384
  };
42385
+ uren_facturen: {
42386
+ Row: {
42387
+ created_at: string | null;
42388
+ created_by: string | null;
42389
+ customer_id: string | null;
42390
+ customer_name: string | null;
42391
+ id: string | null;
42392
+ invoice_number: string | null;
42393
+ note: string | null;
42394
+ status: string | null;
42395
+ total_excl_cents: number | null;
42396
+ total_incl_cents: number | null;
42397
+ updated_at: string | null;
42398
+ vat_cents: number | null;
42399
+ vat_percentage: number | null;
42400
+ werkbon_id: string | null;
42401
+ };
42402
+ Insert: {
42403
+ created_at?: string | null;
42404
+ created_by?: string | null;
42405
+ customer_id?: string | null;
42406
+ customer_name?: string | null;
42407
+ id?: string | null;
42408
+ invoice_number?: string | null;
42409
+ note?: string | null;
42410
+ status?: string | null;
42411
+ total_excl_cents?: number | null;
42412
+ total_incl_cents?: number | null;
42413
+ updated_at?: string | null;
42414
+ vat_cents?: number | null;
42415
+ vat_percentage?: number | null;
42416
+ werkbon_id?: never;
42417
+ };
42418
+ Update: {
42419
+ created_at?: string | null;
42420
+ created_by?: string | null;
42421
+ customer_id?: string | null;
42422
+ customer_name?: string | null;
42423
+ id?: string | null;
42424
+ invoice_number?: string | null;
42425
+ note?: string | null;
42426
+ status?: string | null;
42427
+ total_excl_cents?: number | null;
42428
+ total_incl_cents?: number | null;
42429
+ updated_at?: string | null;
42430
+ vat_cents?: number | null;
42431
+ vat_percentage?: number | null;
42432
+ werkbon_id?: never;
42433
+ };
42434
+ Relationships: [{
42435
+ foreignKeyName: "invoices_customer_id_fkey";
42436
+ columns: ["customer_id"];
42437
+ isOneToOne: false;
42438
+ referencedRelation: "itk_customers";
42439
+ referencedColumns: ["id"];
42440
+ }];
42441
+ };
42442
+ uren_factuur_regels: {
42443
+ Row: {
42444
+ created_at: string | null;
42445
+ description: string | null;
42446
+ factuur_id: string | null;
42447
+ id: string | null;
42448
+ kind: string | null;
42449
+ quantity: number | null;
42450
+ sort_order: number | null;
42451
+ total_cents: number | null;
42452
+ unit: string | null;
42453
+ unit_price_cents: number | null;
42454
+ };
42455
+ Insert: {
42456
+ created_at?: string | null;
42457
+ description?: string | null;
42458
+ factuur_id?: string | null;
42459
+ id?: string | null;
42460
+ kind?: string | null;
42461
+ quantity?: number | null;
42462
+ sort_order?: number | null;
42463
+ total_cents?: number | null;
42464
+ unit?: string | null;
42465
+ unit_price_cents?: number | null;
42466
+ };
42467
+ Update: {
42468
+ created_at?: string | null;
42469
+ description?: string | null;
42470
+ factuur_id?: string | null;
42471
+ id?: string | null;
42472
+ kind?: string | null;
42473
+ quantity?: number | null;
42474
+ sort_order?: number | null;
42475
+ total_cents?: number | null;
42476
+ unit?: string | null;
42477
+ unit_price_cents?: number | null;
42478
+ };
42479
+ Relationships: [{
42480
+ foreignKeyName: "invoice_items_invoice_id_fkey";
42481
+ columns: ["factuur_id"];
42482
+ isOneToOne: false;
42483
+ referencedRelation: "invoices";
42484
+ referencedColumns: ["id"];
42485
+ }, {
42486
+ foreignKeyName: "invoice_items_invoice_id_fkey";
42487
+ columns: ["factuur_id"];
42488
+ isOneToOne: false;
42489
+ referencedRelation: "uren_facturen";
42490
+ referencedColumns: ["id"];
42491
+ }];
42492
+ };
41277
42493
  v_external_customers_exact: {
41278
42494
  Row: {
41279
42495
  account_number: string | null;
@@ -41779,6 +42995,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
41779
42995
  gebruiker_id: string | null;
41780
42996
  gebruiker_naam: string;
41781
42997
  gestart_op: string | null;
42998
+ herkomst: string | null;
41782
42999
  id: string;
41783
43000
  idempotentie_sleutel: string | null;
41784
43001
  is_herprint: boolean;
@@ -41899,6 +43116,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
41899
43116
  gebruiker_id: string | null;
41900
43117
  gebruiker_naam: string;
41901
43118
  gestart_op: string | null;
43119
+ herkomst: string | null;
41902
43120
  id: string;
41903
43121
  idempotentie_sleutel: string | null;
41904
43122
  is_herprint: boolean;
@@ -42500,6 +43718,46 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
42500
43718
  Args: never;
42501
43719
  Returns: boolean;
42502
43720
  };
43721
+ invoice_create_from_source: {
43722
+ Args: {
43723
+ _payload?: import("../integrations/supabase/types").Json;
43724
+ _source_id: string;
43725
+ _source_type: string;
43726
+ };
43727
+ Returns: import("../integrations/supabase/types").Json;
43728
+ };
43729
+ invoice_get_billable_lines: {
43730
+ Args: {
43731
+ _invoice_id: string;
43732
+ };
43733
+ Returns: import("../integrations/supabase/types").Json;
43734
+ };
43735
+ invoice_get_for_source: {
43736
+ Args: {
43737
+ _source_id: string;
43738
+ _source_type: string;
43739
+ };
43740
+ Returns: import("../integrations/supabase/types").Json;
43741
+ };
43742
+ invoice_get_summary: {
43743
+ Args: {
43744
+ _invoice_id: string;
43745
+ };
43746
+ Returns: import("../integrations/supabase/types").Json;
43747
+ };
43748
+ invoice_list_sources: {
43749
+ Args: {
43750
+ _limit?: number;
43751
+ _source_type?: string;
43752
+ };
43753
+ Returns: import("../integrations/supabase/types").Json;
43754
+ };
43755
+ invoice_recalc_totals: {
43756
+ Args: {
43757
+ _invoice_id: string;
43758
+ };
43759
+ Returns: import("../integrations/supabase/types").Json;
43760
+ };
42503
43761
  is_authenticated: {
42504
43762
  Args: never;
42505
43763
  Returns: boolean;
@@ -42568,6 +43826,29 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
42568
43826
  roles: string[];
42569
43827
  }[];
42570
43828
  };
43829
+ list_monteur_absences: {
43830
+ Args: {
43831
+ _from: string;
43832
+ _to: string;
43833
+ };
43834
+ Returns: {
43835
+ absence_date: string;
43836
+ end_time: string;
43837
+ full_day: boolean;
43838
+ kind: string;
43839
+ monteur_id: string;
43840
+ start_time: string;
43841
+ }[];
43842
+ };
43843
+ list_monteurs: {
43844
+ Args: never;
43845
+ Returns: {
43846
+ avatar_url: string;
43847
+ display_name: string;
43848
+ email: string;
43849
+ id: string;
43850
+ }[];
43851
+ };
42571
43852
  list_my_planning_items: {
42572
43853
  Args: {
42573
43854
  _from: string;
@@ -42979,6 +44260,41 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
42979
44260
  };
42980
44261
  Returns: string;
42981
44262
  };
44263
+ logistics_floriday_finish_push_v2: {
44264
+ Args: {
44265
+ _error?: string;
44266
+ _error_code?: string;
44267
+ _fulfillment_order_id?: string;
44268
+ _gateway_status?: number;
44269
+ _id: string;
44270
+ _max_age_hours?: number;
44271
+ _max_attempts?: number;
44272
+ _ok: boolean;
44273
+ _permanent?: boolean;
44274
+ _response?: import("../integrations/supabase/types").Json;
44275
+ _revision: number;
44276
+ _sent_hash?: string;
44277
+ };
44278
+ Returns: string;
44279
+ };
44280
+ logistics_floriday_finish_push_v3: {
44281
+ Args: {
44282
+ _error?: string;
44283
+ _error_code?: string;
44284
+ _fulfillment_order_id?: string;
44285
+ _gateway_status?: number;
44286
+ _id: string;
44287
+ _max_age_hours?: number;
44288
+ _max_attempts?: number;
44289
+ _outcome: string;
44290
+ _permanent?: boolean;
44291
+ _response?: import("../integrations/supabase/types").Json;
44292
+ _revision: number;
44293
+ _sent_hash?: string;
44294
+ _wait_max_age_hours?: number;
44295
+ };
44296
+ Returns: string;
44297
+ };
42982
44298
  logistics_floriday_prune_pushes: {
42983
44299
  Args: {
42984
44300
  _days?: number;
@@ -43407,6 +44723,12 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43407
44723
  verwijderd: number;
43408
44724
  }[];
43409
44725
  };
44726
+ order_departure_proof: {
44727
+ Args: {
44728
+ p_order_id: string;
44729
+ };
44730
+ Returns: import("../integrations/supabase/types").Json;
44731
+ };
43410
44732
  order_number_prefix: {
43411
44733
  Args: {
43412
44734
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -43521,6 +44843,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43521
44843
  isSetofReturn: false;
43522
44844
  };
43523
44845
  };
44846
+ pick_cleanup_maintenance: {
44847
+ Args: {
44848
+ _heartbeat_hours?: number;
44849
+ _log_days?: number;
44850
+ };
44851
+ Returns: import("../integrations/supabase/types").Json;
44852
+ };
43524
44853
  pick_complete_print: {
43525
44854
  Args: {
43526
44855
  _printer_id: string;
@@ -43572,6 +44901,14 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43572
44901
  Args: never;
43573
44902
  Returns: string;
43574
44903
  };
44904
+ pick_day_counts: {
44905
+ Args: {
44906
+ _pick_day?: string;
44907
+ _screen_id?: string;
44908
+ _station_id?: string;
44909
+ };
44910
+ Returns: import("../integrations/supabase/types").Json;
44911
+ };
43575
44912
  pick_document_layout_data: {
43576
44913
  Args: {
43577
44914
  _layout_id: string;
@@ -43599,6 +44936,14 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43599
44936
  };
43600
44937
  Returns: import("../integrations/supabase/types").Json;
43601
44938
  };
44939
+ pick_print_plekken: {
44940
+ Args: never;
44941
+ Returns: {
44942
+ id: string;
44943
+ naam: string;
44944
+ omschrijving: string;
44945
+ }[];
44946
+ };
43602
44947
  pick_release_expired_locks: {
43603
44948
  Args: never;
43604
44949
  Returns: number;
@@ -43609,6 +44954,14 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43609
44954
  };
43610
44955
  Returns: undefined;
43611
44956
  };
44957
+ pick_reprint_document: {
44958
+ Args: {
44959
+ _queue_item_id: string;
44960
+ _session_id: string;
44961
+ _throttle_seconds?: number;
44962
+ };
44963
+ Returns: string;
44964
+ };
43612
44965
  pick_reset_print: {
43613
44966
  Args: {
43614
44967
  _queue_item_id: string;
@@ -43655,6 +45008,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43655
45008
  isSetofReturn: false;
43656
45009
  };
43657
45010
  };
45011
+ pick_set_station_print_plek: {
45012
+ Args: {
45013
+ _print_plek_id: string;
45014
+ _station_id: string;
45015
+ };
45016
+ Returns: string;
45017
+ };
43658
45018
  pick_station_dashboard: {
43659
45019
  Args: never;
43660
45020
  Returns: {
@@ -43667,6 +45027,25 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43667
45027
  waiting: number;
43668
45028
  }[];
43669
45029
  };
45030
+ pick_station_print_plek: {
45031
+ Args: {
45032
+ _station_id: string;
45033
+ };
45034
+ Returns: {
45035
+ naam: string;
45036
+ omschrijving: string;
45037
+ print_plek_id: string;
45038
+ }[];
45039
+ };
45040
+ pick_station_print_plekken: {
45041
+ Args: never;
45042
+ Returns: {
45043
+ naam: string;
45044
+ omschrijving: string;
45045
+ print_plek_id: string;
45046
+ station_id: string;
45047
+ }[];
45048
+ };
43670
45049
  pick_station_slugify: {
43671
45050
  Args: {
43672
45051
  _id: string;
@@ -43674,6 +45053,12 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43674
45053
  };
43675
45054
  Returns: string;
43676
45055
  };
45056
+ pick_sync_queue_throttled: {
45057
+ Args: {
45058
+ _min_seconds?: number;
45059
+ };
45060
+ Returns: import("../integrations/supabase/types").Json;
45061
+ };
43677
45062
  pickstation_get_orders_raw: {
43678
45063
  Args: never;
43679
45064
  Returns: import("../integrations/supabase/types").Json;
@@ -43819,6 +45204,12 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43819
45204
  };
43820
45205
  Returns: boolean;
43821
45206
  };
45207
+ release_stale_order_invoice_links: {
45208
+ Args: {
45209
+ _minutes?: number;
45210
+ };
45211
+ Returns: number;
45212
+ };
43822
45213
  reorder_customer_price_groups: {
43823
45214
  Args: {
43824
45215
  _ids: string[];
@@ -44337,6 +45728,20 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44337
45728
  };
44338
45729
  Returns: undefined;
44339
45730
  };
45731
+ twinfield_deactivate_connection: {
45732
+ Args: {
45733
+ p_connection_id: string;
45734
+ p_user_id: string;
45735
+ };
45736
+ Returns: import("../integrations/supabase/types").Json;
45737
+ };
45738
+ twinfield_handle_administration_change: {
45739
+ Args: {
45740
+ _administration_code: string;
45741
+ _user_id: string;
45742
+ };
45743
+ Returns: undefined;
45744
+ };
44340
45745
  twinfield_prune_push_queue: {
44341
45746
  Args: never;
44342
45747
  Returns: number;
@@ -44356,10 +45761,11 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44356
45761
  p_company_name?: string;
44357
45762
  p_environment: string;
44358
45763
  p_office_code?: string;
45764
+ p_reset_sync?: boolean;
44359
45765
  p_status?: string;
44360
45766
  p_user_id: string;
44361
45767
  };
44362
- Returns: string;
45768
+ Returns: import("../integrations/supabase/types").Json;
44363
45769
  };
44364
45770
  upsert_auto_fulfillment_log: {
44365
45771
  Args: {
@@ -45110,6 +46516,99 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
45110
46516
  };
45111
46517
  Relationships: [];
45112
46518
  };
46519
+ artikelen_cache: {
46520
+ Row: {
46521
+ artikelcode: string;
46522
+ bron: string;
46523
+ bruto_prijs_cent: number | null;
46524
+ created_at: string;
46525
+ eenheid: string;
46526
+ fabrikant: string | null;
46527
+ fetched_at: string;
46528
+ gtin: string | null;
46529
+ id: string;
46530
+ naam: string;
46531
+ netto_prijs_cent: number | null;
46532
+ omschrijving: string | null;
46533
+ raw: import("../integrations/supabase/types").Json;
46534
+ updated_at: string;
46535
+ valuta: string;
46536
+ };
46537
+ Insert: {
46538
+ artikelcode: string;
46539
+ bron?: string;
46540
+ bruto_prijs_cent?: number | null;
46541
+ created_at?: string;
46542
+ eenheid?: string;
46543
+ fabrikant?: string | null;
46544
+ fetched_at?: string;
46545
+ gtin?: string | null;
46546
+ id?: string;
46547
+ naam: string;
46548
+ netto_prijs_cent?: number | null;
46549
+ omschrijving?: string | null;
46550
+ raw?: import("../integrations/supabase/types").Json;
46551
+ updated_at?: string;
46552
+ valuta?: string;
46553
+ };
46554
+ Update: {
46555
+ artikelcode?: string;
46556
+ bron?: string;
46557
+ bruto_prijs_cent?: number | null;
46558
+ created_at?: string;
46559
+ eenheid?: string;
46560
+ fabrikant?: string | null;
46561
+ fetched_at?: string;
46562
+ gtin?: string | null;
46563
+ id?: string;
46564
+ naam?: string;
46565
+ netto_prijs_cent?: number | null;
46566
+ omschrijving?: string | null;
46567
+ raw?: import("../integrations/supabase/types").Json;
46568
+ updated_at?: string;
46569
+ valuta?: string;
46570
+ };
46571
+ Relationships: [];
46572
+ };
46573
+ artikelen_veldconfig: {
46574
+ Row: {
46575
+ bron_pad: string;
46576
+ created_at: string;
46577
+ id: string;
46578
+ label: string;
46579
+ sort_order: number;
46580
+ type: string;
46581
+ updated_at: string;
46582
+ veld_key: string;
46583
+ zichtbaar_in_detail: boolean;
46584
+ zichtbaar_in_lijst: boolean;
46585
+ };
46586
+ Insert: {
46587
+ bron_pad: string;
46588
+ created_at?: string;
46589
+ id?: string;
46590
+ label: string;
46591
+ sort_order?: number;
46592
+ type?: string;
46593
+ updated_at?: string;
46594
+ veld_key: string;
46595
+ zichtbaar_in_detail?: boolean;
46596
+ zichtbaar_in_lijst?: boolean;
46597
+ };
46598
+ Update: {
46599
+ bron_pad?: string;
46600
+ created_at?: string;
46601
+ id?: string;
46602
+ label?: string;
46603
+ sort_order?: number;
46604
+ type?: string;
46605
+ updated_at?: string;
46606
+ veld_key?: string;
46607
+ zichtbaar_in_detail?: boolean;
46608
+ zichtbaar_in_lijst?: boolean;
46609
+ };
46610
+ Relationships: [];
46611
+ };
45113
46612
  booking_items: {
45114
46613
  Row: {
45115
46614
  booking_id: string;
@@ -47195,6 +48694,42 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
47195
48694
  };
47196
48695
  Relationships: [];
47197
48696
  };
48697
+ document_bronregels: {
48698
+ Row: {
48699
+ bron: string;
48700
+ created_at: string;
48701
+ documenttype: string;
48702
+ herkomst: string;
48703
+ id: string;
48704
+ layout_id: string | null;
48705
+ updated_at: string;
48706
+ };
48707
+ Insert: {
48708
+ bron?: string;
48709
+ created_at?: string;
48710
+ documenttype: string;
48711
+ herkomst: string;
48712
+ id?: string;
48713
+ layout_id?: string | null;
48714
+ updated_at?: string;
48715
+ };
48716
+ Update: {
48717
+ bron?: string;
48718
+ created_at?: string;
48719
+ documenttype?: string;
48720
+ herkomst?: string;
48721
+ id?: string;
48722
+ layout_id?: string | null;
48723
+ updated_at?: string;
48724
+ };
48725
+ Relationships: [{
48726
+ foreignKeyName: "document_bronregels_layout_id_fkey";
48727
+ columns: ["layout_id"];
48728
+ isOneToOne: false;
48729
+ referencedRelation: "document_layouts";
48730
+ referencedColumns: ["id"];
48731
+ }];
48732
+ };
47198
48733
  document_formaat_printers: {
47199
48734
  Row: {
47200
48735
  created_at: string;
@@ -47472,6 +49007,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
47472
49007
  Row: {
47473
49008
  actief: boolean;
47474
49009
  breedte_mm: number;
49010
+ bron: string;
47475
49011
  config: import("../integrations/supabase/types").Json;
47476
49012
  created_at: string;
47477
49013
  created_by: string | null;
@@ -47489,12 +49025,14 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
47489
49025
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47490
49026
  page_settings: import("../integrations/supabase/types").Json;
47491
49027
  papierformaat: string;
49028
+ systeem: boolean;
47492
49029
  thumbnail_url: string | null;
47493
49030
  updated_at: string;
47494
49031
  };
47495
49032
  Insert: {
47496
49033
  actief?: boolean;
47497
49034
  breedte_mm?: number;
49035
+ bron?: string;
47498
49036
  config?: import("../integrations/supabase/types").Json;
47499
49037
  created_at?: string;
47500
49038
  created_by?: string | null;
@@ -47512,12 +49050,14 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
47512
49050
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47513
49051
  page_settings?: import("../integrations/supabase/types").Json;
47514
49052
  papierformaat?: string;
49053
+ systeem?: boolean;
47515
49054
  thumbnail_url?: string | null;
47516
49055
  updated_at?: string;
47517
49056
  };
47518
49057
  Update: {
47519
49058
  actief?: boolean;
47520
49059
  breedte_mm?: number;
49060
+ bron?: string;
47521
49061
  config?: import("../integrations/supabase/types").Json;
47522
49062
  created_at?: string;
47523
49063
  created_by?: string | null;
@@ -47535,11 +49075,90 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
47535
49075
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47536
49076
  page_settings?: import("../integrations/supabase/types").Json;
47537
49077
  papierformaat?: string;
49078
+ systeem?: boolean;
47538
49079
  thumbnail_url?: string | null;
47539
49080
  updated_at?: string;
47540
49081
  };
47541
49082
  Relationships: [];
47542
49083
  };
49084
+ document_printplek_printers: {
49085
+ Row: {
49086
+ created_at: string;
49087
+ documenttype: string;
49088
+ id: string;
49089
+ papierformaat: string | null;
49090
+ print_plek_id: string;
49091
+ printer_id: string | null;
49092
+ updated_at: string;
49093
+ };
49094
+ Insert: {
49095
+ created_at?: string;
49096
+ documenttype: string;
49097
+ id?: string;
49098
+ papierformaat?: string | null;
49099
+ print_plek_id: string;
49100
+ printer_id?: string | null;
49101
+ updated_at?: string;
49102
+ };
49103
+ Update: {
49104
+ created_at?: string;
49105
+ documenttype?: string;
49106
+ id?: string;
49107
+ papierformaat?: string | null;
49108
+ print_plek_id?: string;
49109
+ printer_id?: string | null;
49110
+ updated_at?: string;
49111
+ };
49112
+ Relationships: [{
49113
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
49114
+ columns: ["print_plek_id"];
49115
+ isOneToOne: false;
49116
+ referencedRelation: "print_plekken";
49117
+ referencedColumns: ["id"];
49118
+ }, {
49119
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
49120
+ columns: ["printer_id"];
49121
+ isOneToOne: false;
49122
+ referencedRelation: "printers";
49123
+ referencedColumns: ["id"];
49124
+ }];
49125
+ };
49126
+ document_werkplek_printers: {
49127
+ Row: {
49128
+ created_at: string;
49129
+ documenttype: string;
49130
+ id: string;
49131
+ papierformaat: string | null;
49132
+ printer_id: string | null;
49133
+ updated_at: string;
49134
+ werkplek: string;
49135
+ };
49136
+ Insert: {
49137
+ created_at?: string;
49138
+ documenttype: string;
49139
+ id?: string;
49140
+ papierformaat?: string | null;
49141
+ printer_id?: string | null;
49142
+ updated_at?: string;
49143
+ werkplek: string;
49144
+ };
49145
+ Update: {
49146
+ created_at?: string;
49147
+ documenttype?: string;
49148
+ id?: string;
49149
+ papierformaat?: string | null;
49150
+ printer_id?: string | null;
49151
+ updated_at?: string;
49152
+ werkplek?: string;
49153
+ };
49154
+ Relationships: [{
49155
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
49156
+ columns: ["printer_id"];
49157
+ isOneToOne: false;
49158
+ referencedRelation: "printers";
49159
+ referencedColumns: ["id"];
49160
+ }];
49161
+ };
47543
49162
  email_auth_connections: {
47544
49163
  Row: {
47545
49164
  access_token_encrypted: string | null;
@@ -49481,42 +51100,6 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
49481
51100
  };
49482
51101
  Relationships: [];
49483
51102
  };
49484
- facturen: {
49485
- Row: {
49486
- bedrag_incl_btw: number;
49487
- created_at: string;
49488
- datum: string;
49489
- factuurnummer: string;
49490
- id: string;
49491
- klantnaam: string;
49492
- status: string;
49493
- updated_at: string;
49494
- user_id: string;
49495
- };
49496
- Insert: {
49497
- bedrag_incl_btw: number;
49498
- created_at?: string;
49499
- datum?: string;
49500
- factuurnummer: string;
49501
- id?: string;
49502
- klantnaam: string;
49503
- status?: string;
49504
- updated_at?: string;
49505
- user_id?: string;
49506
- };
49507
- Update: {
49508
- bedrag_incl_btw?: number;
49509
- created_at?: string;
49510
- datum?: string;
49511
- factuurnummer?: string;
49512
- id?: string;
49513
- klantnaam?: string;
49514
- status?: string;
49515
- updated_at?: string;
49516
- user_id?: string;
49517
- };
49518
- Relationships: [];
49519
- };
49520
51103
  floricode_connection_settings: {
49521
51104
  Row: {
49522
51105
  catalog_key: string | null;
@@ -51821,8 +53404,63 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
51821
53404
  };
51822
53405
  Relationships: [];
51823
53406
  };
53407
+ invoice_items: {
53408
+ Row: {
53409
+ created_at: string;
53410
+ description: string;
53411
+ id: string;
53412
+ invoice_id: string;
53413
+ kind: string;
53414
+ quantity: number;
53415
+ sort_order: number;
53416
+ source_line_ref: string | null;
53417
+ total_cents: number;
53418
+ unit: string;
53419
+ unit_price_cents: number;
53420
+ };
53421
+ Insert: {
53422
+ created_at?: string;
53423
+ description?: string;
53424
+ id?: string;
53425
+ invoice_id: string;
53426
+ kind?: string;
53427
+ quantity?: number;
53428
+ sort_order?: number;
53429
+ source_line_ref?: string | null;
53430
+ total_cents?: number;
53431
+ unit?: string;
53432
+ unit_price_cents?: number;
53433
+ };
53434
+ Update: {
53435
+ created_at?: string;
53436
+ description?: string;
53437
+ id?: string;
53438
+ invoice_id?: string;
53439
+ kind?: string;
53440
+ quantity?: number;
53441
+ sort_order?: number;
53442
+ source_line_ref?: string | null;
53443
+ total_cents?: number;
53444
+ unit?: string;
53445
+ unit_price_cents?: number;
53446
+ };
53447
+ Relationships: [{
53448
+ foreignKeyName: "invoice_items_invoice_id_fkey";
53449
+ columns: ["invoice_id"];
53450
+ isOneToOne: false;
53451
+ referencedRelation: "invoices";
53452
+ referencedColumns: ["id"];
53453
+ }, {
53454
+ foreignKeyName: "invoice_items_invoice_id_fkey";
53455
+ columns: ["invoice_id"];
53456
+ isOneToOne: false;
53457
+ referencedRelation: "uren_facturen";
53458
+ referencedColumns: ["id"];
53459
+ }];
53460
+ };
51824
53461
  invoice_post_idempotency: {
51825
53462
  Row: {
53463
+ administration_code: string;
51826
53464
  client_request_id: string;
51827
53465
  completed_at: string | null;
51828
53466
  created_at: string;
@@ -51832,6 +53470,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
51832
53470
  user_id: string;
51833
53471
  };
51834
53472
  Insert: {
53473
+ administration_code?: string;
51835
53474
  client_request_id: string;
51836
53475
  completed_at?: string | null;
51837
53476
  created_at?: string;
@@ -51841,6 +53480,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
51841
53480
  user_id: string;
51842
53481
  };
51843
53482
  Update: {
53483
+ administration_code?: string;
51844
53484
  client_request_id?: string;
51845
53485
  completed_at?: string | null;
51846
53486
  created_at?: string;
@@ -52046,6 +53686,75 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
52046
53686
  };
52047
53687
  Relationships: [];
52048
53688
  };
53689
+ invoices: {
53690
+ Row: {
53691
+ created_at: string;
53692
+ created_by: string | null;
53693
+ customer_id: string | null;
53694
+ customer_name: string | null;
53695
+ due_date: string | null;
53696
+ id: string;
53697
+ invoice_date: string;
53698
+ invoice_number: string | null;
53699
+ note: string | null;
53700
+ source_number: string | null;
53701
+ source_ref: string | null;
53702
+ source_type: string;
53703
+ status: string;
53704
+ subtotal_cents: number;
53705
+ total_cents: number;
53706
+ updated_at: string;
53707
+ vat_cents: number;
53708
+ vat_rate: number;
53709
+ };
53710
+ Insert: {
53711
+ created_at?: string;
53712
+ created_by?: string | null;
53713
+ customer_id?: string | null;
53714
+ customer_name?: string | null;
53715
+ due_date?: string | null;
53716
+ id?: string;
53717
+ invoice_date?: string;
53718
+ invoice_number?: string | null;
53719
+ note?: string | null;
53720
+ source_number?: string | null;
53721
+ source_ref?: string | null;
53722
+ source_type?: string;
53723
+ status?: string;
53724
+ subtotal_cents?: number;
53725
+ total_cents?: number;
53726
+ updated_at?: string;
53727
+ vat_cents?: number;
53728
+ vat_rate?: number;
53729
+ };
53730
+ Update: {
53731
+ created_at?: string;
53732
+ created_by?: string | null;
53733
+ customer_id?: string | null;
53734
+ customer_name?: string | null;
53735
+ due_date?: string | null;
53736
+ id?: string;
53737
+ invoice_date?: string;
53738
+ invoice_number?: string | null;
53739
+ note?: string | null;
53740
+ source_number?: string | null;
53741
+ source_ref?: string | null;
53742
+ source_type?: string;
53743
+ status?: string;
53744
+ subtotal_cents?: number;
53745
+ total_cents?: number;
53746
+ updated_at?: string;
53747
+ vat_cents?: number;
53748
+ vat_rate?: number;
53749
+ };
53750
+ Relationships: [{
53751
+ foreignKeyName: "invoices_customer_id_fkey";
53752
+ columns: ["customer_id"];
53753
+ isOneToOne: false;
53754
+ referencedRelation: "itk_customers";
53755
+ referencedColumns: ["id"];
53756
+ }];
53757
+ };
52049
53758
  itk_contact_persons: {
52050
53759
  Row: {
52051
53760
  created_at: string;
@@ -53393,6 +55102,10 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53393
55102
  id: string;
53394
55103
  last_error: string | null;
53395
55104
  last_error_at: string | null;
55105
+ last_error_code: string | null;
55106
+ last_gateway_status: number | null;
55107
+ last_queued_at: string | null;
55108
+ last_response: import("../integrations/supabase/types").Json | null;
53396
55109
  last_sent_hash: string | null;
53397
55110
  locked_by: string | null;
53398
55111
  locked_until: string | null;
@@ -53413,6 +55126,10 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53413
55126
  id?: string;
53414
55127
  last_error?: string | null;
53415
55128
  last_error_at?: string | null;
55129
+ last_error_code?: string | null;
55130
+ last_gateway_status?: number | null;
55131
+ last_queued_at?: string | null;
55132
+ last_response?: import("../integrations/supabase/types").Json | null;
53416
55133
  last_sent_hash?: string | null;
53417
55134
  locked_by?: string | null;
53418
55135
  locked_until?: string | null;
@@ -53433,6 +55150,10 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
53433
55150
  id?: string;
53434
55151
  last_error?: string | null;
53435
55152
  last_error_at?: string | null;
55153
+ last_error_code?: string | null;
55154
+ last_gateway_status?: number | null;
55155
+ last_queued_at?: string | null;
55156
+ last_response?: import("../integrations/supabase/types").Json | null;
53436
55157
  last_sent_hash?: string | null;
53437
55158
  locked_by?: string | null;
53438
55159
  locked_until?: string | null;
@@ -54986,6 +56707,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
54986
56707
  enforce: boolean;
54987
56708
  is_active: boolean;
54988
56709
  last_seen_at: string;
56710
+ missing_count: number;
54989
56711
  module_id: string;
54990
56712
  name: string;
54991
56713
  shell_id: string | null;
@@ -54996,6 +56718,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
54996
56718
  enforce?: boolean;
54997
56719
  is_active?: boolean;
54998
56720
  last_seen_at?: string;
56721
+ missing_count?: number;
54999
56722
  module_id: string;
55000
56723
  name: string;
55001
56724
  shell_id?: string | null;
@@ -55006,6 +56729,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
55006
56729
  enforce?: boolean;
55007
56730
  is_active?: boolean;
55008
56731
  last_seen_at?: string;
56732
+ missing_count?: number;
55009
56733
  module_id?: string;
55010
56734
  name?: string;
55011
56735
  shell_id?: string | null;
@@ -56005,6 +57729,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
56005
57729
  };
56006
57730
  order_invoice_links: {
56007
57731
  Row: {
57732
+ administration_code: string | null;
56008
57733
  attempts: number;
56009
57734
  created_at: string;
56010
57735
  error_message: string | null;
@@ -56017,6 +57742,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
56017
57742
  updated_at: string;
56018
57743
  };
56019
57744
  Insert: {
57745
+ administration_code?: string | null;
56020
57746
  attempts?: number;
56021
57747
  created_at?: string;
56022
57748
  error_message?: string | null;
@@ -56029,6 +57755,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
56029
57755
  updated_at?: string;
56030
57756
  };
56031
57757
  Update: {
57758
+ administration_code?: string | null;
56032
57759
  attempts?: number;
56033
57760
  created_at?: string;
56034
57761
  error_message?: string | null;
@@ -57194,6 +58921,27 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
57194
58921
  referencedColumns: ["id"];
57195
58922
  }];
57196
58923
  };
58924
+ pick_sync_state: {
58925
+ Row: {
58926
+ id: boolean;
58927
+ last_cleanup_at: string | null;
58928
+ last_sync_at: string | null;
58929
+ updated_at: string;
58930
+ };
58931
+ Insert: {
58932
+ id?: boolean;
58933
+ last_cleanup_at?: string | null;
58934
+ last_sync_at?: string | null;
58935
+ updated_at?: string;
58936
+ };
58937
+ Update: {
58938
+ id?: boolean;
58939
+ last_cleanup_at?: string | null;
58940
+ last_sync_at?: string | null;
58941
+ updated_at?: string;
58942
+ };
58943
+ Relationships: [];
58944
+ };
57197
58945
  pick_task_document_types: {
57198
58946
  Row: {
57199
58947
  created_at: string;
@@ -57476,6 +59224,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
57476
59224
  gebruiker_id: string | null;
57477
59225
  gebruiker_naam: string;
57478
59226
  gestart_op: string | null;
59227
+ herkomst: string | null;
57479
59228
  id: string;
57480
59229
  idempotentie_sleutel: string | null;
57481
59230
  is_herprint: boolean;
@@ -57505,6 +59254,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
57505
59254
  gebruiker_id?: string | null;
57506
59255
  gebruiker_naam?: string;
57507
59256
  gestart_op?: string | null;
59257
+ herkomst?: string | null;
57508
59258
  id?: string;
57509
59259
  idempotentie_sleutel?: string | null;
57510
59260
  is_herprint?: boolean;
@@ -57534,6 +59284,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
57534
59284
  gebruiker_id?: string | null;
57535
59285
  gebruiker_naam?: string;
57536
59286
  gestart_op?: string | null;
59287
+ herkomst?: string | null;
57537
59288
  id?: string;
57538
59289
  idempotentie_sleutel?: string | null;
57539
59290
  is_herprint?: boolean;
@@ -57572,6 +59323,99 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
57572
59323
  referencedColumns: ["id"];
57573
59324
  }];
57574
59325
  };
59326
+ print_plek_computers: {
59327
+ Row: {
59328
+ computer_naam: string;
59329
+ created_at: string;
59330
+ id: string;
59331
+ print_plek_id: string;
59332
+ updated_at: string;
59333
+ };
59334
+ Insert: {
59335
+ computer_naam: string;
59336
+ created_at?: string;
59337
+ id?: string;
59338
+ print_plek_id: string;
59339
+ updated_at?: string;
59340
+ };
59341
+ Update: {
59342
+ computer_naam?: string;
59343
+ created_at?: string;
59344
+ id?: string;
59345
+ print_plek_id?: string;
59346
+ updated_at?: string;
59347
+ };
59348
+ Relationships: [{
59349
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
59350
+ columns: ["print_plek_id"];
59351
+ isOneToOne: false;
59352
+ referencedRelation: "print_plekken";
59353
+ referencedColumns: ["id"];
59354
+ }];
59355
+ };
59356
+ print_plek_koppelingen: {
59357
+ Row: {
59358
+ bron: string;
59359
+ bron_id: string;
59360
+ created_at: string;
59361
+ id: string;
59362
+ label: string | null;
59363
+ print_plek_id: string;
59364
+ updated_at: string;
59365
+ };
59366
+ Insert: {
59367
+ bron: string;
59368
+ bron_id: string;
59369
+ created_at?: string;
59370
+ id?: string;
59371
+ label?: string | null;
59372
+ print_plek_id: string;
59373
+ updated_at?: string;
59374
+ };
59375
+ Update: {
59376
+ bron?: string;
59377
+ bron_id?: string;
59378
+ created_at?: string;
59379
+ id?: string;
59380
+ label?: string | null;
59381
+ print_plek_id?: string;
59382
+ updated_at?: string;
59383
+ };
59384
+ Relationships: [{
59385
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
59386
+ columns: ["print_plek_id"];
59387
+ isOneToOne: false;
59388
+ referencedRelation: "print_plekken";
59389
+ referencedColumns: ["id"];
59390
+ }];
59391
+ };
59392
+ print_plekken: {
59393
+ Row: {
59394
+ actief: boolean;
59395
+ created_at: string;
59396
+ id: string;
59397
+ naam: string;
59398
+ omschrijving: string | null;
59399
+ updated_at: string;
59400
+ };
59401
+ Insert: {
59402
+ actief?: boolean;
59403
+ created_at?: string;
59404
+ id?: string;
59405
+ naam: string;
59406
+ omschrijving?: string | null;
59407
+ updated_at?: string;
59408
+ };
59409
+ Update: {
59410
+ actief?: boolean;
59411
+ created_at?: string;
59412
+ id?: string;
59413
+ naam?: string;
59414
+ omschrijving?: string | null;
59415
+ updated_at?: string;
59416
+ };
59417
+ Relationships: [];
59418
+ };
57575
59419
  print_queue_runners: {
57576
59420
  Row: {
57577
59421
  actief: boolean;
@@ -59726,6 +61570,45 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
59726
61570
  };
59727
61571
  Relationships: [];
59728
61572
  };
61573
+ stock_consumption_alerts: {
61574
+ Row: {
61575
+ alert_type: string;
61576
+ created_at: string;
61577
+ id: string;
61578
+ mutation_log_id: string | null;
61579
+ order_id: string | null;
61580
+ order_item_id: string | null;
61581
+ qty: number;
61582
+ reason: string | null;
61583
+ resolved_at: string | null;
61584
+ updated_at: string;
61585
+ };
61586
+ Insert: {
61587
+ alert_type: string;
61588
+ created_at?: string;
61589
+ id?: string;
61590
+ mutation_log_id?: string | null;
61591
+ order_id?: string | null;
61592
+ order_item_id?: string | null;
61593
+ qty?: number;
61594
+ reason?: string | null;
61595
+ resolved_at?: string | null;
61596
+ updated_at?: string;
61597
+ };
61598
+ Update: {
61599
+ alert_type?: string;
61600
+ created_at?: string;
61601
+ id?: string;
61602
+ mutation_log_id?: string | null;
61603
+ order_id?: string | null;
61604
+ order_item_id?: string | null;
61605
+ qty?: number;
61606
+ reason?: string | null;
61607
+ resolved_at?: string | null;
61608
+ updated_at?: string;
61609
+ };
61610
+ Relationships: [];
61611
+ };
59729
61612
  stock_import_runs: {
59730
61613
  Row: {
59731
61614
  connection_id: string | null;
@@ -60538,12 +62421,16 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60538
62421
  company_name: string | null;
60539
62422
  connected_at: string | null;
60540
62423
  created_at: string;
62424
+ disconnected_at: string | null;
60541
62425
  environment: string;
60542
62426
  id: string;
62427
+ initial_sync_completed_at: string | null;
62428
+ initial_sync_started_at: string | null;
60543
62429
  is_active: boolean;
60544
62430
  label: string | null;
60545
62431
  office_code: string | null;
60546
62432
  redirect_uri: string | null;
62433
+ superseded_at: string | null;
60547
62434
  updated_at: string;
60548
62435
  user_id: string;
60549
62436
  };
@@ -60554,12 +62441,16 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60554
62441
  company_name?: string | null;
60555
62442
  connected_at?: string | null;
60556
62443
  created_at?: string;
62444
+ disconnected_at?: string | null;
60557
62445
  environment: string;
60558
62446
  id?: string;
62447
+ initial_sync_completed_at?: string | null;
62448
+ initial_sync_started_at?: string | null;
60559
62449
  is_active?: boolean;
60560
62450
  label?: string | null;
60561
62451
  office_code?: string | null;
60562
62452
  redirect_uri?: string | null;
62453
+ superseded_at?: string | null;
60563
62454
  updated_at?: string;
60564
62455
  user_id: string;
60565
62456
  };
@@ -60570,12 +62461,16 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60570
62461
  company_name?: string | null;
60571
62462
  connected_at?: string | null;
60572
62463
  created_at?: string;
62464
+ disconnected_at?: string | null;
60573
62465
  environment?: string;
60574
62466
  id?: string;
62467
+ initial_sync_completed_at?: string | null;
62468
+ initial_sync_started_at?: string | null;
60575
62469
  is_active?: boolean;
60576
62470
  label?: string | null;
60577
62471
  office_code?: string | null;
60578
62472
  redirect_uri?: string | null;
62473
+ superseded_at?: string | null;
60579
62474
  updated_at?: string;
60580
62475
  user_id?: string;
60581
62476
  };
@@ -60635,6 +62530,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60635
62530
  twinfield_customers: {
60636
62531
  Row: {
60637
62532
  address: string | null;
62533
+ administration_code: string;
60638
62534
  city: string | null;
60639
62535
  country: string | null;
60640
62536
  created_at: string;
@@ -60654,6 +62550,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60654
62550
  };
60655
62551
  Insert: {
60656
62552
  address?: string | null;
62553
+ administration_code?: string;
60657
62554
  city?: string | null;
60658
62555
  country?: string | null;
60659
62556
  created_at?: string;
@@ -60673,6 +62570,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60673
62570
  };
60674
62571
  Update: {
60675
62572
  address?: string | null;
62573
+ administration_code?: string;
60676
62574
  city?: string | null;
60677
62575
  country?: string | null;
60678
62576
  created_at?: string;
@@ -60886,7 +62784,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60886
62784
  };
60887
62785
  twinfield_invoice_settings: {
60888
62786
  Row: {
62787
+ administration_code: string | null;
60889
62788
  auto_invoice_enabled: boolean;
62789
+ auto_invoice_start_date: string | null;
60890
62790
  auto_invoice_trigger_statuses: string[];
60891
62791
  created_at: string;
60892
62792
  debtor_gl_account: string;
@@ -60900,15 +62800,19 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60900
62800
  invoice_enabled_fo: boolean;
60901
62801
  invoice_enabled_ho: boolean;
60902
62802
  invoice_enabled_mo: boolean;
62803
+ needs_review: boolean;
60903
62804
  payment_gl_account: string;
60904
62805
  payment_journal_code: string;
62806
+ settings_confirmed_at: string | null;
60905
62807
  updated_at: string;
60906
62808
  user_id: string;
60907
62809
  vat_code_eu_reverse: string | null;
60908
62810
  vat_code_export: string | null;
60909
62811
  };
60910
62812
  Insert: {
62813
+ administration_code?: string | null;
60911
62814
  auto_invoice_enabled?: boolean;
62815
+ auto_invoice_start_date?: string | null;
60912
62816
  auto_invoice_trigger_statuses?: string[];
60913
62817
  created_at?: string;
60914
62818
  debtor_gl_account?: string;
@@ -60922,15 +62826,19 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60922
62826
  invoice_enabled_fo?: boolean;
60923
62827
  invoice_enabled_ho?: boolean;
60924
62828
  invoice_enabled_mo?: boolean;
62829
+ needs_review?: boolean;
60925
62830
  payment_gl_account?: string;
60926
62831
  payment_journal_code?: string;
62832
+ settings_confirmed_at?: string | null;
60927
62833
  updated_at?: string;
60928
62834
  user_id: string;
60929
62835
  vat_code_eu_reverse?: string | null;
60930
62836
  vat_code_export?: string | null;
60931
62837
  };
60932
62838
  Update: {
62839
+ administration_code?: string | null;
60933
62840
  auto_invoice_enabled?: boolean;
62841
+ auto_invoice_start_date?: string | null;
60934
62842
  auto_invoice_trigger_statuses?: string[];
60935
62843
  created_at?: string;
60936
62844
  debtor_gl_account?: string;
@@ -60944,8 +62852,10 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60944
62852
  invoice_enabled_fo?: boolean;
60945
62853
  invoice_enabled_ho?: boolean;
60946
62854
  invoice_enabled_mo?: boolean;
62855
+ needs_review?: boolean;
60947
62856
  payment_gl_account?: string;
60948
62857
  payment_journal_code?: string;
62858
+ settings_confirmed_at?: string | null;
60949
62859
  updated_at?: string;
60950
62860
  user_id?: string;
60951
62861
  vat_code_eu_reverse?: string | null;
@@ -61550,114 +63460,6 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
61550
63460
  };
61551
63461
  Relationships: [];
61552
63462
  };
61553
- uren_facturen: {
61554
- Row: {
61555
- created_at: string;
61556
- created_by: string | null;
61557
- customer_id: string | null;
61558
- customer_name: string | null;
61559
- id: string;
61560
- invoice_number: string | null;
61561
- note: string | null;
61562
- status: string;
61563
- total_excl_cents: number;
61564
- total_incl_cents: number;
61565
- updated_at: string;
61566
- vat_cents: number;
61567
- vat_percentage: number;
61568
- werkbon_id: string | null;
61569
- };
61570
- Insert: {
61571
- created_at?: string;
61572
- created_by?: string | null;
61573
- customer_id?: string | null;
61574
- customer_name?: string | null;
61575
- id?: string;
61576
- invoice_number?: string | null;
61577
- note?: string | null;
61578
- status?: string;
61579
- total_excl_cents?: number;
61580
- total_incl_cents?: number;
61581
- updated_at?: string;
61582
- vat_cents?: number;
61583
- vat_percentage?: number;
61584
- werkbon_id?: string | null;
61585
- };
61586
- Update: {
61587
- created_at?: string;
61588
- created_by?: string | null;
61589
- customer_id?: string | null;
61590
- customer_name?: string | null;
61591
- id?: string;
61592
- invoice_number?: string | null;
61593
- note?: string | null;
61594
- status?: string;
61595
- total_excl_cents?: number;
61596
- total_incl_cents?: number;
61597
- updated_at?: string;
61598
- vat_cents?: number;
61599
- vat_percentage?: number;
61600
- werkbon_id?: string | null;
61601
- };
61602
- Relationships: [{
61603
- foreignKeyName: "uren_facturen_customer_id_fkey";
61604
- columns: ["customer_id"];
61605
- isOneToOne: false;
61606
- referencedRelation: "itk_customers";
61607
- referencedColumns: ["id"];
61608
- }, {
61609
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
61610
- columns: ["werkbon_id"];
61611
- isOneToOne: true;
61612
- referencedRelation: "werkbonnen";
61613
- referencedColumns: ["id"];
61614
- }];
61615
- };
61616
- uren_factuur_regels: {
61617
- Row: {
61618
- created_at: string;
61619
- description: string;
61620
- factuur_id: string;
61621
- id: string;
61622
- kind: string | null;
61623
- quantity: number;
61624
- sort_order: number;
61625
- total_cents: number;
61626
- unit: string;
61627
- unit_price_cents: number;
61628
- };
61629
- Insert: {
61630
- created_at?: string;
61631
- description: string;
61632
- factuur_id: string;
61633
- id?: string;
61634
- kind?: string | null;
61635
- quantity?: number;
61636
- sort_order?: number;
61637
- total_cents?: number;
61638
- unit?: string;
61639
- unit_price_cents?: number;
61640
- };
61641
- Update: {
61642
- created_at?: string;
61643
- description?: string;
61644
- factuur_id?: string;
61645
- id?: string;
61646
- kind?: string | null;
61647
- quantity?: number;
61648
- sort_order?: number;
61649
- total_cents?: number;
61650
- unit?: string;
61651
- unit_price_cents?: number;
61652
- };
61653
- Relationships: [{
61654
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
61655
- columns: ["factuur_id"];
61656
- isOneToOne: false;
61657
- referencedRelation: "uren_facturen";
61658
- referencedColumns: ["id"];
61659
- }];
61660
- };
61661
63463
  uren_offerte_regels: {
61662
63464
  Row: {
61663
63465
  created_at: string;
@@ -62911,6 +64713,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
62911
64713
  scheduled_end_time: string | null;
62912
64714
  scheduled_start_time: string | null;
62913
64715
  sequence_number: number;
64716
+ signature_accepted_at: string | null;
64717
+ signature_by_user_id: string | null;
64718
+ signature_name: string | null;
62914
64719
  source_email_meta: import("../integrations/supabase/types").Json | null;
62915
64720
  source_mailbox_message_id: string | null;
62916
64721
  source_pdf_path: string | null;
@@ -62946,6 +64751,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
62946
64751
  scheduled_end_time?: string | null;
62947
64752
  scheduled_start_time?: string | null;
62948
64753
  sequence_number: number;
64754
+ signature_accepted_at?: string | null;
64755
+ signature_by_user_id?: string | null;
64756
+ signature_name?: string | null;
62949
64757
  source_email_meta?: import("../integrations/supabase/types").Json | null;
62950
64758
  source_mailbox_message_id?: string | null;
62951
64759
  source_pdf_path?: string | null;
@@ -62981,6 +64789,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
62981
64789
  scheduled_end_time?: string | null;
62982
64790
  scheduled_start_time?: string | null;
62983
64791
  sequence_number?: number;
64792
+ signature_accepted_at?: string | null;
64793
+ signature_by_user_id?: string | null;
64794
+ signature_name?: string | null;
62984
64795
  source_email_meta?: import("../integrations/supabase/types").Json | null;
62985
64796
  source_mailbox_message_id?: string | null;
62986
64797
  source_pdf_path?: string | null;
@@ -63497,6 +65308,114 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
63497
65308
  };
63498
65309
  Relationships: [];
63499
65310
  };
65311
+ uren_facturen: {
65312
+ Row: {
65313
+ created_at: string | null;
65314
+ created_by: string | null;
65315
+ customer_id: string | null;
65316
+ customer_name: string | null;
65317
+ id: string | null;
65318
+ invoice_number: string | null;
65319
+ note: string | null;
65320
+ status: string | null;
65321
+ total_excl_cents: number | null;
65322
+ total_incl_cents: number | null;
65323
+ updated_at: string | null;
65324
+ vat_cents: number | null;
65325
+ vat_percentage: number | null;
65326
+ werkbon_id: string | null;
65327
+ };
65328
+ Insert: {
65329
+ created_at?: string | null;
65330
+ created_by?: string | null;
65331
+ customer_id?: string | null;
65332
+ customer_name?: string | null;
65333
+ id?: string | null;
65334
+ invoice_number?: string | null;
65335
+ note?: string | null;
65336
+ status?: string | null;
65337
+ total_excl_cents?: number | null;
65338
+ total_incl_cents?: number | null;
65339
+ updated_at?: string | null;
65340
+ vat_cents?: number | null;
65341
+ vat_percentage?: number | null;
65342
+ werkbon_id?: never;
65343
+ };
65344
+ Update: {
65345
+ created_at?: string | null;
65346
+ created_by?: string | null;
65347
+ customer_id?: string | null;
65348
+ customer_name?: string | null;
65349
+ id?: string | null;
65350
+ invoice_number?: string | null;
65351
+ note?: string | null;
65352
+ status?: string | null;
65353
+ total_excl_cents?: number | null;
65354
+ total_incl_cents?: number | null;
65355
+ updated_at?: string | null;
65356
+ vat_cents?: number | null;
65357
+ vat_percentage?: number | null;
65358
+ werkbon_id?: never;
65359
+ };
65360
+ Relationships: [{
65361
+ foreignKeyName: "invoices_customer_id_fkey";
65362
+ columns: ["customer_id"];
65363
+ isOneToOne: false;
65364
+ referencedRelation: "itk_customers";
65365
+ referencedColumns: ["id"];
65366
+ }];
65367
+ };
65368
+ uren_factuur_regels: {
65369
+ Row: {
65370
+ created_at: string | null;
65371
+ description: string | null;
65372
+ factuur_id: string | null;
65373
+ id: string | null;
65374
+ kind: string | null;
65375
+ quantity: number | null;
65376
+ sort_order: number | null;
65377
+ total_cents: number | null;
65378
+ unit: string | null;
65379
+ unit_price_cents: number | null;
65380
+ };
65381
+ Insert: {
65382
+ created_at?: string | null;
65383
+ description?: string | null;
65384
+ factuur_id?: string | null;
65385
+ id?: string | null;
65386
+ kind?: string | null;
65387
+ quantity?: number | null;
65388
+ sort_order?: number | null;
65389
+ total_cents?: number | null;
65390
+ unit?: string | null;
65391
+ unit_price_cents?: number | null;
65392
+ };
65393
+ Update: {
65394
+ created_at?: string | null;
65395
+ description?: string | null;
65396
+ factuur_id?: string | null;
65397
+ id?: string | null;
65398
+ kind?: string | null;
65399
+ quantity?: number | null;
65400
+ sort_order?: number | null;
65401
+ total_cents?: number | null;
65402
+ unit?: string | null;
65403
+ unit_price_cents?: number | null;
65404
+ };
65405
+ Relationships: [{
65406
+ foreignKeyName: "invoice_items_invoice_id_fkey";
65407
+ columns: ["factuur_id"];
65408
+ isOneToOne: false;
65409
+ referencedRelation: "invoices";
65410
+ referencedColumns: ["id"];
65411
+ }, {
65412
+ foreignKeyName: "invoice_items_invoice_id_fkey";
65413
+ columns: ["factuur_id"];
65414
+ isOneToOne: false;
65415
+ referencedRelation: "uren_facturen";
65416
+ referencedColumns: ["id"];
65417
+ }];
65418
+ };
63500
65419
  v_external_customers_exact: {
63501
65420
  Row: {
63502
65421
  account_number: string | null;
@@ -64002,6 +65921,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
64002
65921
  gebruiker_id: string | null;
64003
65922
  gebruiker_naam: string;
64004
65923
  gestart_op: string | null;
65924
+ herkomst: string | null;
64005
65925
  id: string;
64006
65926
  idempotentie_sleutel: string | null;
64007
65927
  is_herprint: boolean;
@@ -64122,6 +66042,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
64122
66042
  gebruiker_id: string | null;
64123
66043
  gebruiker_naam: string;
64124
66044
  gestart_op: string | null;
66045
+ herkomst: string | null;
64125
66046
  id: string;
64126
66047
  idempotentie_sleutel: string | null;
64127
66048
  is_herprint: boolean;
@@ -64723,6 +66644,46 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
64723
66644
  Args: never;
64724
66645
  Returns: boolean;
64725
66646
  };
66647
+ invoice_create_from_source: {
66648
+ Args: {
66649
+ _payload?: import("../integrations/supabase/types").Json;
66650
+ _source_id: string;
66651
+ _source_type: string;
66652
+ };
66653
+ Returns: import("../integrations/supabase/types").Json;
66654
+ };
66655
+ invoice_get_billable_lines: {
66656
+ Args: {
66657
+ _invoice_id: string;
66658
+ };
66659
+ Returns: import("../integrations/supabase/types").Json;
66660
+ };
66661
+ invoice_get_for_source: {
66662
+ Args: {
66663
+ _source_id: string;
66664
+ _source_type: string;
66665
+ };
66666
+ Returns: import("../integrations/supabase/types").Json;
66667
+ };
66668
+ invoice_get_summary: {
66669
+ Args: {
66670
+ _invoice_id: string;
66671
+ };
66672
+ Returns: import("../integrations/supabase/types").Json;
66673
+ };
66674
+ invoice_list_sources: {
66675
+ Args: {
66676
+ _limit?: number;
66677
+ _source_type?: string;
66678
+ };
66679
+ Returns: import("../integrations/supabase/types").Json;
66680
+ };
66681
+ invoice_recalc_totals: {
66682
+ Args: {
66683
+ _invoice_id: string;
66684
+ };
66685
+ Returns: import("../integrations/supabase/types").Json;
66686
+ };
64726
66687
  is_authenticated: {
64727
66688
  Args: never;
64728
66689
  Returns: boolean;
@@ -64791,6 +66752,29 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
64791
66752
  roles: string[];
64792
66753
  }[];
64793
66754
  };
66755
+ list_monteur_absences: {
66756
+ Args: {
66757
+ _from: string;
66758
+ _to: string;
66759
+ };
66760
+ Returns: {
66761
+ absence_date: string;
66762
+ end_time: string;
66763
+ full_day: boolean;
66764
+ kind: string;
66765
+ monteur_id: string;
66766
+ start_time: string;
66767
+ }[];
66768
+ };
66769
+ list_monteurs: {
66770
+ Args: never;
66771
+ Returns: {
66772
+ avatar_url: string;
66773
+ display_name: string;
66774
+ email: string;
66775
+ id: string;
66776
+ }[];
66777
+ };
64794
66778
  list_my_planning_items: {
64795
66779
  Args: {
64796
66780
  _from: string;
@@ -65202,6 +67186,41 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
65202
67186
  };
65203
67187
  Returns: string;
65204
67188
  };
67189
+ logistics_floriday_finish_push_v2: {
67190
+ Args: {
67191
+ _error?: string;
67192
+ _error_code?: string;
67193
+ _fulfillment_order_id?: string;
67194
+ _gateway_status?: number;
67195
+ _id: string;
67196
+ _max_age_hours?: number;
67197
+ _max_attempts?: number;
67198
+ _ok: boolean;
67199
+ _permanent?: boolean;
67200
+ _response?: import("../integrations/supabase/types").Json;
67201
+ _revision: number;
67202
+ _sent_hash?: string;
67203
+ };
67204
+ Returns: string;
67205
+ };
67206
+ logistics_floriday_finish_push_v3: {
67207
+ Args: {
67208
+ _error?: string;
67209
+ _error_code?: string;
67210
+ _fulfillment_order_id?: string;
67211
+ _gateway_status?: number;
67212
+ _id: string;
67213
+ _max_age_hours?: number;
67214
+ _max_attempts?: number;
67215
+ _outcome: string;
67216
+ _permanent?: boolean;
67217
+ _response?: import("../integrations/supabase/types").Json;
67218
+ _revision: number;
67219
+ _sent_hash?: string;
67220
+ _wait_max_age_hours?: number;
67221
+ };
67222
+ Returns: string;
67223
+ };
65205
67224
  logistics_floriday_prune_pushes: {
65206
67225
  Args: {
65207
67226
  _days?: number;
@@ -65630,6 +67649,12 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
65630
67649
  verwijderd: number;
65631
67650
  }[];
65632
67651
  };
67652
+ order_departure_proof: {
67653
+ Args: {
67654
+ p_order_id: string;
67655
+ };
67656
+ Returns: import("../integrations/supabase/types").Json;
67657
+ };
65633
67658
  order_number_prefix: {
65634
67659
  Args: {
65635
67660
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -65744,6 +67769,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
65744
67769
  isSetofReturn: false;
65745
67770
  };
65746
67771
  };
67772
+ pick_cleanup_maintenance: {
67773
+ Args: {
67774
+ _heartbeat_hours?: number;
67775
+ _log_days?: number;
67776
+ };
67777
+ Returns: import("../integrations/supabase/types").Json;
67778
+ };
65747
67779
  pick_complete_print: {
65748
67780
  Args: {
65749
67781
  _printer_id: string;
@@ -65795,6 +67827,14 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
65795
67827
  Args: never;
65796
67828
  Returns: string;
65797
67829
  };
67830
+ pick_day_counts: {
67831
+ Args: {
67832
+ _pick_day?: string;
67833
+ _screen_id?: string;
67834
+ _station_id?: string;
67835
+ };
67836
+ Returns: import("../integrations/supabase/types").Json;
67837
+ };
65798
67838
  pick_document_layout_data: {
65799
67839
  Args: {
65800
67840
  _layout_id: string;
@@ -65822,6 +67862,14 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
65822
67862
  };
65823
67863
  Returns: import("../integrations/supabase/types").Json;
65824
67864
  };
67865
+ pick_print_plekken: {
67866
+ Args: never;
67867
+ Returns: {
67868
+ id: string;
67869
+ naam: string;
67870
+ omschrijving: string;
67871
+ }[];
67872
+ };
65825
67873
  pick_release_expired_locks: {
65826
67874
  Args: never;
65827
67875
  Returns: number;
@@ -65832,6 +67880,14 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
65832
67880
  };
65833
67881
  Returns: undefined;
65834
67882
  };
67883
+ pick_reprint_document: {
67884
+ Args: {
67885
+ _queue_item_id: string;
67886
+ _session_id: string;
67887
+ _throttle_seconds?: number;
67888
+ };
67889
+ Returns: string;
67890
+ };
65835
67891
  pick_reset_print: {
65836
67892
  Args: {
65837
67893
  _queue_item_id: string;
@@ -65878,6 +67934,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
65878
67934
  isSetofReturn: false;
65879
67935
  };
65880
67936
  };
67937
+ pick_set_station_print_plek: {
67938
+ Args: {
67939
+ _print_plek_id: string;
67940
+ _station_id: string;
67941
+ };
67942
+ Returns: string;
67943
+ };
65881
67944
  pick_station_dashboard: {
65882
67945
  Args: never;
65883
67946
  Returns: {
@@ -65890,6 +67953,25 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
65890
67953
  waiting: number;
65891
67954
  }[];
65892
67955
  };
67956
+ pick_station_print_plek: {
67957
+ Args: {
67958
+ _station_id: string;
67959
+ };
67960
+ Returns: {
67961
+ naam: string;
67962
+ omschrijving: string;
67963
+ print_plek_id: string;
67964
+ }[];
67965
+ };
67966
+ pick_station_print_plekken: {
67967
+ Args: never;
67968
+ Returns: {
67969
+ naam: string;
67970
+ omschrijving: string;
67971
+ print_plek_id: string;
67972
+ station_id: string;
67973
+ }[];
67974
+ };
65893
67975
  pick_station_slugify: {
65894
67976
  Args: {
65895
67977
  _id: string;
@@ -65897,6 +67979,12 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
65897
67979
  };
65898
67980
  Returns: string;
65899
67981
  };
67982
+ pick_sync_queue_throttled: {
67983
+ Args: {
67984
+ _min_seconds?: number;
67985
+ };
67986
+ Returns: import("../integrations/supabase/types").Json;
67987
+ };
65900
67988
  pickstation_get_orders_raw: {
65901
67989
  Args: never;
65902
67990
  Returns: import("../integrations/supabase/types").Json;
@@ -66042,6 +68130,12 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
66042
68130
  };
66043
68131
  Returns: boolean;
66044
68132
  };
68133
+ release_stale_order_invoice_links: {
68134
+ Args: {
68135
+ _minutes?: number;
68136
+ };
68137
+ Returns: number;
68138
+ };
66045
68139
  reorder_customer_price_groups: {
66046
68140
  Args: {
66047
68141
  _ids: string[];
@@ -66560,6 +68654,20 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
66560
68654
  };
66561
68655
  Returns: undefined;
66562
68656
  };
68657
+ twinfield_deactivate_connection: {
68658
+ Args: {
68659
+ p_connection_id: string;
68660
+ p_user_id: string;
68661
+ };
68662
+ Returns: import("../integrations/supabase/types").Json;
68663
+ };
68664
+ twinfield_handle_administration_change: {
68665
+ Args: {
68666
+ _administration_code: string;
68667
+ _user_id: string;
68668
+ };
68669
+ Returns: undefined;
68670
+ };
66563
68671
  twinfield_prune_push_queue: {
66564
68672
  Args: never;
66565
68673
  Returns: number;
@@ -66579,10 +68687,11 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
66579
68687
  p_company_name?: string;
66580
68688
  p_environment: string;
66581
68689
  p_office_code?: string;
68690
+ p_reset_sync?: boolean;
66582
68691
  p_status?: string;
66583
68692
  p_user_id: string;
66584
68693
  };
66585
- Returns: string;
68694
+ Returns: import("../integrations/supabase/types").Json;
66586
68695
  };
66587
68696
  upsert_auto_fulfillment_log: {
66588
68697
  Args: {