@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
@@ -674,6 +674,99 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
674
674
  };
675
675
  Relationships: [];
676
676
  };
677
+ artikelen_cache: {
678
+ Row: {
679
+ artikelcode: string;
680
+ bron: string;
681
+ bruto_prijs_cent: number | null;
682
+ created_at: string;
683
+ eenheid: string;
684
+ fabrikant: string | null;
685
+ fetched_at: string;
686
+ gtin: string | null;
687
+ id: string;
688
+ naam: string;
689
+ netto_prijs_cent: number | null;
690
+ omschrijving: string | null;
691
+ raw: import("../integrations/supabase/types").Json;
692
+ updated_at: string;
693
+ valuta: string;
694
+ };
695
+ Insert: {
696
+ artikelcode: string;
697
+ bron?: string;
698
+ bruto_prijs_cent?: number | null;
699
+ created_at?: string;
700
+ eenheid?: string;
701
+ fabrikant?: string | null;
702
+ fetched_at?: string;
703
+ gtin?: string | null;
704
+ id?: string;
705
+ naam: string;
706
+ netto_prijs_cent?: number | null;
707
+ omschrijving?: string | null;
708
+ raw?: import("../integrations/supabase/types").Json;
709
+ updated_at?: string;
710
+ valuta?: string;
711
+ };
712
+ Update: {
713
+ artikelcode?: string;
714
+ bron?: string;
715
+ bruto_prijs_cent?: number | null;
716
+ created_at?: string;
717
+ eenheid?: string;
718
+ fabrikant?: string | null;
719
+ fetched_at?: string;
720
+ gtin?: string | null;
721
+ id?: string;
722
+ naam?: string;
723
+ netto_prijs_cent?: number | null;
724
+ omschrijving?: string | null;
725
+ raw?: import("../integrations/supabase/types").Json;
726
+ updated_at?: string;
727
+ valuta?: string;
728
+ };
729
+ Relationships: [];
730
+ };
731
+ artikelen_veldconfig: {
732
+ Row: {
733
+ bron_pad: string;
734
+ created_at: string;
735
+ id: string;
736
+ label: string;
737
+ sort_order: number;
738
+ type: string;
739
+ updated_at: string;
740
+ veld_key: string;
741
+ zichtbaar_in_detail: boolean;
742
+ zichtbaar_in_lijst: boolean;
743
+ };
744
+ Insert: {
745
+ bron_pad: string;
746
+ created_at?: string;
747
+ id?: string;
748
+ label: string;
749
+ sort_order?: number;
750
+ type?: string;
751
+ updated_at?: string;
752
+ veld_key: string;
753
+ zichtbaar_in_detail?: boolean;
754
+ zichtbaar_in_lijst?: boolean;
755
+ };
756
+ Update: {
757
+ bron_pad?: string;
758
+ created_at?: string;
759
+ id?: string;
760
+ label?: string;
761
+ sort_order?: number;
762
+ type?: string;
763
+ updated_at?: string;
764
+ veld_key?: string;
765
+ zichtbaar_in_detail?: boolean;
766
+ zichtbaar_in_lijst?: boolean;
767
+ };
768
+ Relationships: [];
769
+ };
677
770
  booking_items: {
678
771
  Row: {
679
772
  booking_id: string;
@@ -2759,6 +2852,42 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
2759
2852
  };
2760
2853
  Relationships: [];
2761
2854
  };
2855
+ document_bronregels: {
2856
+ Row: {
2857
+ bron: string;
2858
+ created_at: string;
2859
+ documenttype: string;
2860
+ herkomst: string;
2861
+ id: string;
2862
+ layout_id: string | null;
2863
+ updated_at: string;
2864
+ };
2865
+ Insert: {
2866
+ bron?: string;
2867
+ created_at?: string;
2868
+ documenttype: string;
2869
+ herkomst: string;
2870
+ id?: string;
2871
+ layout_id?: string | null;
2872
+ updated_at?: string;
2873
+ };
2874
+ Update: {
2875
+ bron?: string;
2876
+ created_at?: string;
2877
+ documenttype?: string;
2878
+ herkomst?: string;
2879
+ id?: string;
2880
+ layout_id?: string | null;
2881
+ updated_at?: string;
2882
+ };
2883
+ Relationships: [{
2884
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2885
+ columns: ["layout_id"];
2886
+ isOneToOne: false;
2887
+ referencedRelation: "document_layouts";
2888
+ referencedColumns: ["id"];
2889
+ }];
2890
+ };
2762
2891
  document_formaat_printers: {
2763
2892
  Row: {
2764
2893
  created_at: string;
@@ -3036,6 +3165,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
3036
3165
  Row: {
3037
3166
  actief: boolean;
3038
3167
  breedte_mm: number;
3168
+ bron: string;
3039
3169
  config: import("../integrations/supabase/types").Json;
3040
3170
  created_at: string;
3041
3171
  created_by: string | null;
@@ -3053,12 +3183,14 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
3053
3183
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3054
3184
  page_settings: import("../integrations/supabase/types").Json;
3055
3185
  papierformaat: string;
3186
+ systeem: boolean;
3056
3187
  thumbnail_url: string | null;
3057
3188
  updated_at: string;
3058
3189
  };
3059
3190
  Insert: {
3060
3191
  actief?: boolean;
3061
3192
  breedte_mm?: number;
3193
+ bron?: string;
3062
3194
  config?: import("../integrations/supabase/types").Json;
3063
3195
  created_at?: string;
3064
3196
  created_by?: string | null;
@@ -3076,12 +3208,14 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
3076
3208
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3077
3209
  page_settings?: import("../integrations/supabase/types").Json;
3078
3210
  papierformaat?: string;
3211
+ systeem?: boolean;
3079
3212
  thumbnail_url?: string | null;
3080
3213
  updated_at?: string;
3081
3214
  };
3082
3215
  Update: {
3083
3216
  actief?: boolean;
3084
3217
  breedte_mm?: number;
3218
+ bron?: string;
3085
3219
  config?: import("../integrations/supabase/types").Json;
3086
3220
  created_at?: string;
3087
3221
  created_by?: string | null;
@@ -3099,11 +3233,90 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
3099
3233
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3100
3234
  page_settings?: import("../integrations/supabase/types").Json;
3101
3235
  papierformaat?: string;
3236
+ systeem?: boolean;
3102
3237
  thumbnail_url?: string | null;
3103
3238
  updated_at?: string;
3104
3239
  };
3105
3240
  Relationships: [];
3106
3241
  };
3242
+ document_printplek_printers: {
3243
+ Row: {
3244
+ created_at: string;
3245
+ documenttype: string;
3246
+ id: string;
3247
+ papierformaat: string | null;
3248
+ print_plek_id: string;
3249
+ printer_id: string | null;
3250
+ updated_at: string;
3251
+ };
3252
+ Insert: {
3253
+ created_at?: string;
3254
+ documenttype: string;
3255
+ id?: string;
3256
+ papierformaat?: string | null;
3257
+ print_plek_id: string;
3258
+ printer_id?: string | null;
3259
+ updated_at?: string;
3260
+ };
3261
+ Update: {
3262
+ created_at?: string;
3263
+ documenttype?: string;
3264
+ id?: string;
3265
+ papierformaat?: string | null;
3266
+ print_plek_id?: string;
3267
+ printer_id?: string | null;
3268
+ updated_at?: string;
3269
+ };
3270
+ Relationships: [{
3271
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
3272
+ columns: ["print_plek_id"];
3273
+ isOneToOne: false;
3274
+ referencedRelation: "print_plekken";
3275
+ referencedColumns: ["id"];
3276
+ }, {
3277
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
3278
+ columns: ["printer_id"];
3279
+ isOneToOne: false;
3280
+ referencedRelation: "printers";
3281
+ referencedColumns: ["id"];
3282
+ }];
3283
+ };
3284
+ document_werkplek_printers: {
3285
+ Row: {
3286
+ created_at: string;
3287
+ documenttype: string;
3288
+ id: string;
3289
+ papierformaat: string | null;
3290
+ printer_id: string | null;
3291
+ updated_at: string;
3292
+ werkplek: string;
3293
+ };
3294
+ Insert: {
3295
+ created_at?: string;
3296
+ documenttype: string;
3297
+ id?: string;
3298
+ papierformaat?: string | null;
3299
+ printer_id?: string | null;
3300
+ updated_at?: string;
3301
+ werkplek: string;
3302
+ };
3303
+ Update: {
3304
+ created_at?: string;
3305
+ documenttype?: string;
3306
+ id?: string;
3307
+ papierformaat?: string | null;
3308
+ printer_id?: string | null;
3309
+ updated_at?: string;
3310
+ werkplek?: string;
3311
+ };
3312
+ Relationships: [{
3313
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3314
+ columns: ["printer_id"];
3315
+ isOneToOne: false;
3316
+ referencedRelation: "printers";
3317
+ referencedColumns: ["id"];
3318
+ }];
3319
+ };
3107
3320
  email_auth_connections: {
3108
3321
  Row: {
3109
3322
  access_token_encrypted: string | null;
@@ -5045,42 +5258,6 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
5045
5258
  };
5046
5259
  Relationships: [];
5047
5260
  };
5048
- facturen: {
5049
- Row: {
5050
- bedrag_incl_btw: number;
5051
- created_at: string;
5052
- datum: string;
5053
- factuurnummer: string;
5054
- id: string;
5055
- klantnaam: string;
5056
- status: string;
5057
- updated_at: string;
5058
- user_id: string;
5059
- };
5060
- Insert: {
5061
- bedrag_incl_btw: number;
5062
- created_at?: string;
5063
- datum?: string;
5064
- factuurnummer: string;
5065
- id?: string;
5066
- klantnaam: string;
5067
- status?: string;
5068
- updated_at?: string;
5069
- user_id?: string;
5070
- };
5071
- Update: {
5072
- bedrag_incl_btw?: number;
5073
- created_at?: string;
5074
- datum?: string;
5075
- factuurnummer?: string;
5076
- id?: string;
5077
- klantnaam?: string;
5078
- status?: string;
5079
- updated_at?: string;
5080
- user_id?: string;
5081
- };
5082
- Relationships: [];
5083
- };
5084
5261
  floricode_connection_settings: {
5085
5262
  Row: {
5086
5263
  catalog_key: string | null;
@@ -7385,8 +7562,63 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
7385
7562
  };
7386
7563
  Relationships: [];
7387
7564
  };
7565
+ invoice_items: {
7566
+ Row: {
7567
+ created_at: string;
7568
+ description: string;
7569
+ id: string;
7570
+ invoice_id: string;
7571
+ kind: string;
7572
+ quantity: number;
7573
+ sort_order: number;
7574
+ source_line_ref: string | null;
7575
+ total_cents: number;
7576
+ unit: string;
7577
+ unit_price_cents: number;
7578
+ };
7579
+ Insert: {
7580
+ created_at?: string;
7581
+ description?: string;
7582
+ id?: string;
7583
+ invoice_id: string;
7584
+ kind?: string;
7585
+ quantity?: number;
7586
+ sort_order?: number;
7587
+ source_line_ref?: string | null;
7588
+ total_cents?: number;
7589
+ unit?: string;
7590
+ unit_price_cents?: number;
7591
+ };
7592
+ Update: {
7593
+ created_at?: string;
7594
+ description?: string;
7595
+ id?: string;
7596
+ invoice_id?: string;
7597
+ kind?: string;
7598
+ quantity?: number;
7599
+ sort_order?: number;
7600
+ source_line_ref?: string | null;
7601
+ total_cents?: number;
7602
+ unit?: string;
7603
+ unit_price_cents?: number;
7604
+ };
7605
+ Relationships: [{
7606
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7607
+ columns: ["invoice_id"];
7608
+ isOneToOne: false;
7609
+ referencedRelation: "invoices";
7610
+ referencedColumns: ["id"];
7611
+ }, {
7612
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7613
+ columns: ["invoice_id"];
7614
+ isOneToOne: false;
7615
+ referencedRelation: "uren_facturen";
7616
+ referencedColumns: ["id"];
7617
+ }];
7618
+ };
7388
7619
  invoice_post_idempotency: {
7389
7620
  Row: {
7621
+ administration_code: string;
7390
7622
  client_request_id: string;
7391
7623
  completed_at: string | null;
7392
7624
  created_at: string;
@@ -7396,6 +7628,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
7396
7628
  user_id: string;
7397
7629
  };
7398
7630
  Insert: {
7631
+ administration_code?: string;
7399
7632
  client_request_id: string;
7400
7633
  completed_at?: string | null;
7401
7634
  created_at?: string;
@@ -7405,6 +7638,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
7405
7638
  user_id: string;
7406
7639
  };
7407
7640
  Update: {
7641
+ administration_code?: string;
7408
7642
  client_request_id?: string;
7409
7643
  completed_at?: string | null;
7410
7644
  created_at?: string;
@@ -7610,6 +7844,75 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
7610
7844
  };
7611
7845
  Relationships: [];
7612
7846
  };
7847
+ invoices: {
7848
+ Row: {
7849
+ created_at: string;
7850
+ created_by: string | null;
7851
+ customer_id: string | null;
7852
+ customer_name: string | null;
7853
+ due_date: string | null;
7854
+ id: string;
7855
+ invoice_date: string;
7856
+ invoice_number: string | null;
7857
+ note: string | null;
7858
+ source_number: string | null;
7859
+ source_ref: string | null;
7860
+ source_type: string;
7861
+ status: string;
7862
+ subtotal_cents: number;
7863
+ total_cents: number;
7864
+ updated_at: string;
7865
+ vat_cents: number;
7866
+ vat_rate: number;
7867
+ };
7868
+ Insert: {
7869
+ created_at?: string;
7870
+ created_by?: string | null;
7871
+ customer_id?: string | null;
7872
+ customer_name?: string | null;
7873
+ due_date?: string | null;
7874
+ id?: string;
7875
+ invoice_date?: string;
7876
+ invoice_number?: string | null;
7877
+ note?: string | null;
7878
+ source_number?: string | null;
7879
+ source_ref?: string | null;
7880
+ source_type?: string;
7881
+ status?: string;
7882
+ subtotal_cents?: number;
7883
+ total_cents?: number;
7884
+ updated_at?: string;
7885
+ vat_cents?: number;
7886
+ vat_rate?: number;
7887
+ };
7888
+ Update: {
7889
+ created_at?: string;
7890
+ created_by?: string | null;
7891
+ customer_id?: string | null;
7892
+ customer_name?: string | null;
7893
+ due_date?: string | null;
7894
+ id?: string;
7895
+ invoice_date?: string;
7896
+ invoice_number?: string | null;
7897
+ note?: string | null;
7898
+ source_number?: string | null;
7899
+ source_ref?: string | null;
7900
+ source_type?: string;
7901
+ status?: string;
7902
+ subtotal_cents?: number;
7903
+ total_cents?: number;
7904
+ updated_at?: string;
7905
+ vat_cents?: number;
7906
+ vat_rate?: number;
7907
+ };
7908
+ Relationships: [{
7909
+ foreignKeyName: "invoices_customer_id_fkey";
7910
+ columns: ["customer_id"];
7911
+ isOneToOne: false;
7912
+ referencedRelation: "itk_customers";
7913
+ referencedColumns: ["id"];
7914
+ }];
7915
+ };
7613
7916
  itk_contact_persons: {
7614
7917
  Row: {
7615
7918
  created_at: string;
@@ -8957,6 +9260,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
8957
9260
  id: string;
8958
9261
  last_error: string | null;
8959
9262
  last_error_at: string | null;
9263
+ last_error_code: string | null;
9264
+ last_gateway_status: number | null;
9265
+ last_queued_at: string | null;
9266
+ last_response: import("../integrations/supabase/types").Json | null;
8960
9267
  last_sent_hash: string | null;
8961
9268
  locked_by: string | null;
8962
9269
  locked_until: string | null;
@@ -8977,6 +9284,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
8977
9284
  id?: string;
8978
9285
  last_error?: string | null;
8979
9286
  last_error_at?: string | null;
9287
+ last_error_code?: string | null;
9288
+ last_gateway_status?: number | null;
9289
+ last_queued_at?: string | null;
9290
+ last_response?: import("../integrations/supabase/types").Json | null;
8980
9291
  last_sent_hash?: string | null;
8981
9292
  locked_by?: string | null;
8982
9293
  locked_until?: string | null;
@@ -8997,6 +9308,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
8997
9308
  id?: string;
8998
9309
  last_error?: string | null;
8999
9310
  last_error_at?: string | null;
9311
+ last_error_code?: string | null;
9312
+ last_gateway_status?: number | null;
9313
+ last_queued_at?: string | null;
9314
+ last_response?: import("../integrations/supabase/types").Json | null;
9000
9315
  last_sent_hash?: string | null;
9001
9316
  locked_by?: string | null;
9002
9317
  locked_until?: string | null;
@@ -10550,6 +10865,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
10550
10865
  enforce: boolean;
10551
10866
  is_active: boolean;
10552
10867
  last_seen_at: string;
10868
+ missing_count: number;
10553
10869
  module_id: string;
10554
10870
  name: string;
10555
10871
  shell_id: string | null;
@@ -10560,6 +10876,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
10560
10876
  enforce?: boolean;
10561
10877
  is_active?: boolean;
10562
10878
  last_seen_at?: string;
10879
+ missing_count?: number;
10563
10880
  module_id: string;
10564
10881
  name: string;
10565
10882
  shell_id?: string | null;
@@ -10570,6 +10887,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
10570
10887
  enforce?: boolean;
10571
10888
  is_active?: boolean;
10572
10889
  last_seen_at?: string;
10890
+ missing_count?: number;
10573
10891
  module_id?: string;
10574
10892
  name?: string;
10575
10893
  shell_id?: string | null;
@@ -11569,6 +11887,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
11569
11887
  };
11570
11888
  order_invoice_links: {
11571
11889
  Row: {
11890
+ administration_code: string | null;
11572
11891
  attempts: number;
11573
11892
  created_at: string;
11574
11893
  error_message: string | null;
@@ -11581,6 +11900,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
11581
11900
  updated_at: string;
11582
11901
  };
11583
11902
  Insert: {
11903
+ administration_code?: string | null;
11584
11904
  attempts?: number;
11585
11905
  created_at?: string;
11586
11906
  error_message?: string | null;
@@ -11593,6 +11913,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
11593
11913
  updated_at?: string;
11594
11914
  };
11595
11915
  Update: {
11916
+ administration_code?: string | null;
11596
11917
  attempts?: number;
11597
11918
  created_at?: string;
11598
11919
  error_message?: string | null;
@@ -12758,6 +13079,27 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
12758
13079
  referencedColumns: ["id"];
12759
13080
  }];
12760
13081
  };
13082
+ pick_sync_state: {
13083
+ Row: {
13084
+ id: boolean;
13085
+ last_cleanup_at: string | null;
13086
+ last_sync_at: string | null;
13087
+ updated_at: string;
13088
+ };
13089
+ Insert: {
13090
+ id?: boolean;
13091
+ last_cleanup_at?: string | null;
13092
+ last_sync_at?: string | null;
13093
+ updated_at?: string;
13094
+ };
13095
+ Update: {
13096
+ id?: boolean;
13097
+ last_cleanup_at?: string | null;
13098
+ last_sync_at?: string | null;
13099
+ updated_at?: string;
13100
+ };
13101
+ Relationships: [];
13102
+ };
12761
13103
  pick_task_document_types: {
12762
13104
  Row: {
12763
13105
  created_at: string;
@@ -13040,6 +13382,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
13040
13382
  gebruiker_id: string | null;
13041
13383
  gebruiker_naam: string;
13042
13384
  gestart_op: string | null;
13385
+ herkomst: string | null;
13043
13386
  id: string;
13044
13387
  idempotentie_sleutel: string | null;
13045
13388
  is_herprint: boolean;
@@ -13069,6 +13412,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
13069
13412
  gebruiker_id?: string | null;
13070
13413
  gebruiker_naam?: string;
13071
13414
  gestart_op?: string | null;
13415
+ herkomst?: string | null;
13072
13416
  id?: string;
13073
13417
  idempotentie_sleutel?: string | null;
13074
13418
  is_herprint?: boolean;
@@ -13098,6 +13442,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
13098
13442
  gebruiker_id?: string | null;
13099
13443
  gebruiker_naam?: string;
13100
13444
  gestart_op?: string | null;
13445
+ herkomst?: string | null;
13101
13446
  id?: string;
13102
13447
  idempotentie_sleutel?: string | null;
13103
13448
  is_herprint?: boolean;
@@ -13136,6 +13481,99 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
13136
13481
  referencedColumns: ["id"];
13137
13482
  }];
13138
13483
  };
13484
+ print_plek_computers: {
13485
+ Row: {
13486
+ computer_naam: string;
13487
+ created_at: string;
13488
+ id: string;
13489
+ print_plek_id: string;
13490
+ updated_at: string;
13491
+ };
13492
+ Insert: {
13493
+ computer_naam: string;
13494
+ created_at?: string;
13495
+ id?: string;
13496
+ print_plek_id: string;
13497
+ updated_at?: string;
13498
+ };
13499
+ Update: {
13500
+ computer_naam?: string;
13501
+ created_at?: string;
13502
+ id?: string;
13503
+ print_plek_id?: string;
13504
+ updated_at?: string;
13505
+ };
13506
+ Relationships: [{
13507
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
13508
+ columns: ["print_plek_id"];
13509
+ isOneToOne: false;
13510
+ referencedRelation: "print_plekken";
13511
+ referencedColumns: ["id"];
13512
+ }];
13513
+ };
13514
+ print_plek_koppelingen: {
13515
+ Row: {
13516
+ bron: string;
13517
+ bron_id: string;
13518
+ created_at: string;
13519
+ id: string;
13520
+ label: string | null;
13521
+ print_plek_id: string;
13522
+ updated_at: string;
13523
+ };
13524
+ Insert: {
13525
+ bron: string;
13526
+ bron_id: string;
13527
+ created_at?: string;
13528
+ id?: string;
13529
+ label?: string | null;
13530
+ print_plek_id: string;
13531
+ updated_at?: string;
13532
+ };
13533
+ Update: {
13534
+ bron?: string;
13535
+ bron_id?: string;
13536
+ created_at?: string;
13537
+ id?: string;
13538
+ label?: string | null;
13539
+ print_plek_id?: string;
13540
+ updated_at?: string;
13541
+ };
13542
+ Relationships: [{
13543
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
13544
+ columns: ["print_plek_id"];
13545
+ isOneToOne: false;
13546
+ referencedRelation: "print_plekken";
13547
+ referencedColumns: ["id"];
13548
+ }];
13549
+ };
13550
+ print_plekken: {
13551
+ Row: {
13552
+ actief: boolean;
13553
+ created_at: string;
13554
+ id: string;
13555
+ naam: string;
13556
+ omschrijving: string | null;
13557
+ updated_at: string;
13558
+ };
13559
+ Insert: {
13560
+ actief?: boolean;
13561
+ created_at?: string;
13562
+ id?: string;
13563
+ naam: string;
13564
+ omschrijving?: string | null;
13565
+ updated_at?: string;
13566
+ };
13567
+ Update: {
13568
+ actief?: boolean;
13569
+ created_at?: string;
13570
+ id?: string;
13571
+ naam?: string;
13572
+ omschrijving?: string | null;
13573
+ updated_at?: string;
13574
+ };
13575
+ Relationships: [];
13576
+ };
13139
13577
  print_queue_runners: {
13140
13578
  Row: {
13141
13579
  actief: boolean;
@@ -15290,6 +15728,45 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
15290
15728
  };
15291
15729
  Relationships: [];
15292
15730
  };
15731
+ stock_consumption_alerts: {
15732
+ Row: {
15733
+ alert_type: string;
15734
+ created_at: string;
15735
+ id: string;
15736
+ mutation_log_id: string | null;
15737
+ order_id: string | null;
15738
+ order_item_id: string | null;
15739
+ qty: number;
15740
+ reason: string | null;
15741
+ resolved_at: string | null;
15742
+ updated_at: string;
15743
+ };
15744
+ Insert: {
15745
+ alert_type: string;
15746
+ created_at?: string;
15747
+ id?: string;
15748
+ mutation_log_id?: string | null;
15749
+ order_id?: string | null;
15750
+ order_item_id?: string | null;
15751
+ qty?: number;
15752
+ reason?: string | null;
15753
+ resolved_at?: string | null;
15754
+ updated_at?: string;
15755
+ };
15756
+ Update: {
15757
+ alert_type?: string;
15758
+ created_at?: string;
15759
+ id?: string;
15760
+ mutation_log_id?: string | null;
15761
+ order_id?: string | null;
15762
+ order_item_id?: string | null;
15763
+ qty?: number;
15764
+ reason?: string | null;
15765
+ resolved_at?: string | null;
15766
+ updated_at?: string;
15767
+ };
15768
+ Relationships: [];
15769
+ };
15293
15770
  stock_import_runs: {
15294
15771
  Row: {
15295
15772
  connection_id: string | null;
@@ -16102,12 +16579,16 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
16102
16579
  company_name: string | null;
16103
16580
  connected_at: string | null;
16104
16581
  created_at: string;
16582
+ disconnected_at: string | null;
16105
16583
  environment: string;
16106
16584
  id: string;
16585
+ initial_sync_completed_at: string | null;
16586
+ initial_sync_started_at: string | null;
16107
16587
  is_active: boolean;
16108
16588
  label: string | null;
16109
16589
  office_code: string | null;
16110
16590
  redirect_uri: string | null;
16591
+ superseded_at: string | null;
16111
16592
  updated_at: string;
16112
16593
  user_id: string;
16113
16594
  };
@@ -16118,12 +16599,16 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
16118
16599
  company_name?: string | null;
16119
16600
  connected_at?: string | null;
16120
16601
  created_at?: string;
16602
+ disconnected_at?: string | null;
16121
16603
  environment: string;
16122
16604
  id?: string;
16605
+ initial_sync_completed_at?: string | null;
16606
+ initial_sync_started_at?: string | null;
16123
16607
  is_active?: boolean;
16124
16608
  label?: string | null;
16125
16609
  office_code?: string | null;
16126
16610
  redirect_uri?: string | null;
16611
+ superseded_at?: string | null;
16127
16612
  updated_at?: string;
16128
16613
  user_id: string;
16129
16614
  };
@@ -16134,12 +16619,16 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
16134
16619
  company_name?: string | null;
16135
16620
  connected_at?: string | null;
16136
16621
  created_at?: string;
16622
+ disconnected_at?: string | null;
16137
16623
  environment?: string;
16138
16624
  id?: string;
16625
+ initial_sync_completed_at?: string | null;
16626
+ initial_sync_started_at?: string | null;
16139
16627
  is_active?: boolean;
16140
16628
  label?: string | null;
16141
16629
  office_code?: string | null;
16142
16630
  redirect_uri?: string | null;
16631
+ superseded_at?: string | null;
16143
16632
  updated_at?: string;
16144
16633
  user_id?: string;
16145
16634
  };
@@ -16199,6 +16688,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
16199
16688
  twinfield_customers: {
16200
16689
  Row: {
16201
16690
  address: string | null;
16691
+ administration_code: string;
16202
16692
  city: string | null;
16203
16693
  country: string | null;
16204
16694
  created_at: string;
@@ -16218,6 +16708,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
16218
16708
  };
16219
16709
  Insert: {
16220
16710
  address?: string | null;
16711
+ administration_code?: string;
16221
16712
  city?: string | null;
16222
16713
  country?: string | null;
16223
16714
  created_at?: string;
@@ -16237,6 +16728,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
16237
16728
  };
16238
16729
  Update: {
16239
16730
  address?: string | null;
16731
+ administration_code?: string;
16240
16732
  city?: string | null;
16241
16733
  country?: string | null;
16242
16734
  created_at?: string;
@@ -16450,7 +16942,9 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
16450
16942
  };
16451
16943
  twinfield_invoice_settings: {
16452
16944
  Row: {
16945
+ administration_code: string | null;
16453
16946
  auto_invoice_enabled: boolean;
16947
+ auto_invoice_start_date: string | null;
16454
16948
  auto_invoice_trigger_statuses: string[];
16455
16949
  created_at: string;
16456
16950
  debtor_gl_account: string;
@@ -16464,15 +16958,19 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
16464
16958
  invoice_enabled_fo: boolean;
16465
16959
  invoice_enabled_ho: boolean;
16466
16960
  invoice_enabled_mo: boolean;
16961
+ needs_review: boolean;
16467
16962
  payment_gl_account: string;
16468
16963
  payment_journal_code: string;
16964
+ settings_confirmed_at: string | null;
16469
16965
  updated_at: string;
16470
16966
  user_id: string;
16471
16967
  vat_code_eu_reverse: string | null;
16472
16968
  vat_code_export: string | null;
16473
16969
  };
16474
16970
  Insert: {
16971
+ administration_code?: string | null;
16475
16972
  auto_invoice_enabled?: boolean;
16973
+ auto_invoice_start_date?: string | null;
16476
16974
  auto_invoice_trigger_statuses?: string[];
16477
16975
  created_at?: string;
16478
16976
  debtor_gl_account?: string;
@@ -16486,15 +16984,19 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
16486
16984
  invoice_enabled_fo?: boolean;
16487
16985
  invoice_enabled_ho?: boolean;
16488
16986
  invoice_enabled_mo?: boolean;
16987
+ needs_review?: boolean;
16489
16988
  payment_gl_account?: string;
16490
16989
  payment_journal_code?: string;
16990
+ settings_confirmed_at?: string | null;
16491
16991
  updated_at?: string;
16492
16992
  user_id: string;
16493
16993
  vat_code_eu_reverse?: string | null;
16494
16994
  vat_code_export?: string | null;
16495
16995
  };
16496
16996
  Update: {
16997
+ administration_code?: string | null;
16497
16998
  auto_invoice_enabled?: boolean;
16999
+ auto_invoice_start_date?: string | null;
16498
17000
  auto_invoice_trigger_statuses?: string[];
16499
17001
  created_at?: string;
16500
17002
  debtor_gl_account?: string;
@@ -16508,8 +17010,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
16508
17010
  invoice_enabled_fo?: boolean;
16509
17011
  invoice_enabled_ho?: boolean;
16510
17012
  invoice_enabled_mo?: boolean;
17013
+ needs_review?: boolean;
16511
17014
  payment_gl_account?: string;
16512
17015
  payment_journal_code?: string;
17016
+ settings_confirmed_at?: string | null;
16513
17017
  updated_at?: string;
16514
17018
  user_id?: string;
16515
17019
  vat_code_eu_reverse?: string | null;
@@ -17114,114 +17618,6 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
17114
17618
  };
17115
17619
  Relationships: [];
17116
17620
  };
17117
- uren_facturen: {
17118
- Row: {
17119
- created_at: string;
17120
- created_by: string | null;
17121
- customer_id: string | null;
17122
- customer_name: string | null;
17123
- id: string;
17124
- invoice_number: string | null;
17125
- note: string | null;
17126
- status: string;
17127
- total_excl_cents: number;
17128
- total_incl_cents: number;
17129
- updated_at: string;
17130
- vat_cents: number;
17131
- vat_percentage: number;
17132
- werkbon_id: string | null;
17133
- };
17134
- Insert: {
17135
- created_at?: string;
17136
- created_by?: string | null;
17137
- customer_id?: string | null;
17138
- customer_name?: string | null;
17139
- id?: string;
17140
- invoice_number?: string | null;
17141
- note?: string | null;
17142
- status?: string;
17143
- total_excl_cents?: number;
17144
- total_incl_cents?: number;
17145
- updated_at?: string;
17146
- vat_cents?: number;
17147
- vat_percentage?: number;
17148
- werkbon_id?: string | null;
17149
- };
17150
- Update: {
17151
- created_at?: string;
17152
- created_by?: string | null;
17153
- customer_id?: string | null;
17154
- customer_name?: string | null;
17155
- id?: string;
17156
- invoice_number?: string | null;
17157
- note?: string | null;
17158
- status?: string;
17159
- total_excl_cents?: number;
17160
- total_incl_cents?: number;
17161
- updated_at?: string;
17162
- vat_cents?: number;
17163
- vat_percentage?: number;
17164
- werkbon_id?: string | null;
17165
- };
17166
- Relationships: [{
17167
- foreignKeyName: "uren_facturen_customer_id_fkey";
17168
- columns: ["customer_id"];
17169
- isOneToOne: false;
17170
- referencedRelation: "itk_customers";
17171
- referencedColumns: ["id"];
17172
- }, {
17173
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
17174
- columns: ["werkbon_id"];
17175
- isOneToOne: true;
17176
- referencedRelation: "werkbonnen";
17177
- referencedColumns: ["id"];
17178
- }];
17179
- };
17180
- uren_factuur_regels: {
17181
- Row: {
17182
- created_at: string;
17183
- description: string;
17184
- factuur_id: string;
17185
- id: string;
17186
- kind: string | null;
17187
- quantity: number;
17188
- sort_order: number;
17189
- total_cents: number;
17190
- unit: string;
17191
- unit_price_cents: number;
17192
- };
17193
- Insert: {
17194
- created_at?: string;
17195
- description: string;
17196
- factuur_id: string;
17197
- id?: string;
17198
- kind?: string | null;
17199
- quantity?: number;
17200
- sort_order?: number;
17201
- total_cents?: number;
17202
- unit?: string;
17203
- unit_price_cents?: number;
17204
- };
17205
- Update: {
17206
- created_at?: string;
17207
- description?: string;
17208
- factuur_id?: string;
17209
- id?: string;
17210
- kind?: string | null;
17211
- quantity?: number;
17212
- sort_order?: number;
17213
- total_cents?: number;
17214
- unit?: string;
17215
- unit_price_cents?: number;
17216
- };
17217
- Relationships: [{
17218
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
17219
- columns: ["factuur_id"];
17220
- isOneToOne: false;
17221
- referencedRelation: "uren_facturen";
17222
- referencedColumns: ["id"];
17223
- }];
17224
- };
17225
17621
  uren_offerte_regels: {
17226
17622
  Row: {
17227
17623
  created_at: string;
@@ -18475,6 +18871,9 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
18475
18871
  scheduled_end_time: string | null;
18476
18872
  scheduled_start_time: string | null;
18477
18873
  sequence_number: number;
18874
+ signature_accepted_at: string | null;
18875
+ signature_by_user_id: string | null;
18876
+ signature_name: string | null;
18478
18877
  source_email_meta: import("../integrations/supabase/types").Json | null;
18479
18878
  source_mailbox_message_id: string | null;
18480
18879
  source_pdf_path: string | null;
@@ -18510,6 +18909,9 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
18510
18909
  scheduled_end_time?: string | null;
18511
18910
  scheduled_start_time?: string | null;
18512
18911
  sequence_number: number;
18912
+ signature_accepted_at?: string | null;
18913
+ signature_by_user_id?: string | null;
18914
+ signature_name?: string | null;
18513
18915
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18514
18916
  source_mailbox_message_id?: string | null;
18515
18917
  source_pdf_path?: string | null;
@@ -18545,6 +18947,9 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
18545
18947
  scheduled_end_time?: string | null;
18546
18948
  scheduled_start_time?: string | null;
18547
18949
  sequence_number?: number;
18950
+ signature_accepted_at?: string | null;
18951
+ signature_by_user_id?: string | null;
18952
+ signature_name?: string | null;
18548
18953
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18549
18954
  source_mailbox_message_id?: string | null;
18550
18955
  source_pdf_path?: string | null;
@@ -19061,6 +19466,114 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
19061
19466
  };
19062
19467
  Relationships: [];
19063
19468
  };
19469
+ uren_facturen: {
19470
+ Row: {
19471
+ created_at: string | null;
19472
+ created_by: string | null;
19473
+ customer_id: string | null;
19474
+ customer_name: string | null;
19475
+ id: string | null;
19476
+ invoice_number: string | null;
19477
+ note: string | null;
19478
+ status: string | null;
19479
+ total_excl_cents: number | null;
19480
+ total_incl_cents: number | null;
19481
+ updated_at: string | null;
19482
+ vat_cents: number | null;
19483
+ vat_percentage: number | null;
19484
+ werkbon_id: string | null;
19485
+ };
19486
+ Insert: {
19487
+ created_at?: string | null;
19488
+ created_by?: string | null;
19489
+ customer_id?: string | null;
19490
+ customer_name?: string | null;
19491
+ id?: string | null;
19492
+ invoice_number?: string | null;
19493
+ note?: string | null;
19494
+ status?: string | null;
19495
+ total_excl_cents?: number | null;
19496
+ total_incl_cents?: number | null;
19497
+ updated_at?: string | null;
19498
+ vat_cents?: number | null;
19499
+ vat_percentage?: number | null;
19500
+ werkbon_id?: never;
19501
+ };
19502
+ Update: {
19503
+ created_at?: string | null;
19504
+ created_by?: string | null;
19505
+ customer_id?: string | null;
19506
+ customer_name?: string | null;
19507
+ id?: string | null;
19508
+ invoice_number?: string | null;
19509
+ note?: string | null;
19510
+ status?: string | null;
19511
+ total_excl_cents?: number | null;
19512
+ total_incl_cents?: number | null;
19513
+ updated_at?: string | null;
19514
+ vat_cents?: number | null;
19515
+ vat_percentage?: number | null;
19516
+ werkbon_id?: never;
19517
+ };
19518
+ Relationships: [{
19519
+ foreignKeyName: "invoices_customer_id_fkey";
19520
+ columns: ["customer_id"];
19521
+ isOneToOne: false;
19522
+ referencedRelation: "itk_customers";
19523
+ referencedColumns: ["id"];
19524
+ }];
19525
+ };
19526
+ uren_factuur_regels: {
19527
+ Row: {
19528
+ created_at: string | null;
19529
+ description: string | null;
19530
+ factuur_id: string | null;
19531
+ id: string | null;
19532
+ kind: string | null;
19533
+ quantity: number | null;
19534
+ sort_order: number | null;
19535
+ total_cents: number | null;
19536
+ unit: string | null;
19537
+ unit_price_cents: number | null;
19538
+ };
19539
+ Insert: {
19540
+ created_at?: string | null;
19541
+ description?: string | null;
19542
+ factuur_id?: string | null;
19543
+ id?: string | null;
19544
+ kind?: string | null;
19545
+ quantity?: number | null;
19546
+ sort_order?: number | null;
19547
+ total_cents?: number | null;
19548
+ unit?: string | null;
19549
+ unit_price_cents?: number | null;
19550
+ };
19551
+ Update: {
19552
+ created_at?: string | null;
19553
+ description?: string | null;
19554
+ factuur_id?: string | null;
19555
+ id?: string | null;
19556
+ kind?: string | null;
19557
+ quantity?: number | null;
19558
+ sort_order?: number | null;
19559
+ total_cents?: number | null;
19560
+ unit?: string | null;
19561
+ unit_price_cents?: number | null;
19562
+ };
19563
+ Relationships: [{
19564
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19565
+ columns: ["factuur_id"];
19566
+ isOneToOne: false;
19567
+ referencedRelation: "invoices";
19568
+ referencedColumns: ["id"];
19569
+ }, {
19570
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19571
+ columns: ["factuur_id"];
19572
+ isOneToOne: false;
19573
+ referencedRelation: "uren_facturen";
19574
+ referencedColumns: ["id"];
19575
+ }];
19576
+ };
19064
19577
  v_external_customers_exact: {
19065
19578
  Row: {
19066
19579
  account_number: string | null;
@@ -19566,6 +20079,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
19566
20079
  gebruiker_id: string | null;
19567
20080
  gebruiker_naam: string;
19568
20081
  gestart_op: string | null;
20082
+ herkomst: string | null;
19569
20083
  id: string;
19570
20084
  idempotentie_sleutel: string | null;
19571
20085
  is_herprint: boolean;
@@ -19686,6 +20200,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
19686
20200
  gebruiker_id: string | null;
19687
20201
  gebruiker_naam: string;
19688
20202
  gestart_op: string | null;
20203
+ herkomst: string | null;
19689
20204
  id: string;
19690
20205
  idempotentie_sleutel: string | null;
19691
20206
  is_herprint: boolean;
@@ -20287,6 +20802,46 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
20287
20802
  Args: never;
20288
20803
  Returns: boolean;
20289
20804
  };
20805
+ invoice_create_from_source: {
20806
+ Args: {
20807
+ _payload?: import("../integrations/supabase/types").Json;
20808
+ _source_id: string;
20809
+ _source_type: string;
20810
+ };
20811
+ Returns: import("../integrations/supabase/types").Json;
20812
+ };
20813
+ invoice_get_billable_lines: {
20814
+ Args: {
20815
+ _invoice_id: string;
20816
+ };
20817
+ Returns: import("../integrations/supabase/types").Json;
20818
+ };
20819
+ invoice_get_for_source: {
20820
+ Args: {
20821
+ _source_id: string;
20822
+ _source_type: string;
20823
+ };
20824
+ Returns: import("../integrations/supabase/types").Json;
20825
+ };
20826
+ invoice_get_summary: {
20827
+ Args: {
20828
+ _invoice_id: string;
20829
+ };
20830
+ Returns: import("../integrations/supabase/types").Json;
20831
+ };
20832
+ invoice_list_sources: {
20833
+ Args: {
20834
+ _limit?: number;
20835
+ _source_type?: string;
20836
+ };
20837
+ Returns: import("../integrations/supabase/types").Json;
20838
+ };
20839
+ invoice_recalc_totals: {
20840
+ Args: {
20841
+ _invoice_id: string;
20842
+ };
20843
+ Returns: import("../integrations/supabase/types").Json;
20844
+ };
20290
20845
  is_authenticated: {
20291
20846
  Args: never;
20292
20847
  Returns: boolean;
@@ -20355,6 +20910,29 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
20355
20910
  roles: string[];
20356
20911
  }[];
20357
20912
  };
20913
+ list_monteur_absences: {
20914
+ Args: {
20915
+ _from: string;
20916
+ _to: string;
20917
+ };
20918
+ Returns: {
20919
+ absence_date: string;
20920
+ end_time: string;
20921
+ full_day: boolean;
20922
+ kind: string;
20923
+ monteur_id: string;
20924
+ start_time: string;
20925
+ }[];
20926
+ };
20927
+ list_monteurs: {
20928
+ Args: never;
20929
+ Returns: {
20930
+ avatar_url: string;
20931
+ display_name: string;
20932
+ email: string;
20933
+ id: string;
20934
+ }[];
20935
+ };
20358
20936
  list_my_planning_items: {
20359
20937
  Args: {
20360
20938
  _from: string;
@@ -20766,6 +21344,41 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
20766
21344
  };
20767
21345
  Returns: string;
20768
21346
  };
21347
+ logistics_floriday_finish_push_v2: {
21348
+ Args: {
21349
+ _error?: string;
21350
+ _error_code?: string;
21351
+ _fulfillment_order_id?: string;
21352
+ _gateway_status?: number;
21353
+ _id: string;
21354
+ _max_age_hours?: number;
21355
+ _max_attempts?: number;
21356
+ _ok: boolean;
21357
+ _permanent?: boolean;
21358
+ _response?: import("../integrations/supabase/types").Json;
21359
+ _revision: number;
21360
+ _sent_hash?: string;
21361
+ };
21362
+ Returns: string;
21363
+ };
21364
+ logistics_floriday_finish_push_v3: {
21365
+ Args: {
21366
+ _error?: string;
21367
+ _error_code?: string;
21368
+ _fulfillment_order_id?: string;
21369
+ _gateway_status?: number;
21370
+ _id: string;
21371
+ _max_age_hours?: number;
21372
+ _max_attempts?: number;
21373
+ _outcome: string;
21374
+ _permanent?: boolean;
21375
+ _response?: import("../integrations/supabase/types").Json;
21376
+ _revision: number;
21377
+ _sent_hash?: string;
21378
+ _wait_max_age_hours?: number;
21379
+ };
21380
+ Returns: string;
21381
+ };
20769
21382
  logistics_floriday_prune_pushes: {
20770
21383
  Args: {
20771
21384
  _days?: number;
@@ -21194,6 +21807,12 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
21194
21807
  verwijderd: number;
21195
21808
  }[];
21196
21809
  };
21810
+ order_departure_proof: {
21811
+ Args: {
21812
+ p_order_id: string;
21813
+ };
21814
+ Returns: import("../integrations/supabase/types").Json;
21815
+ };
21197
21816
  order_number_prefix: {
21198
21817
  Args: {
21199
21818
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -21308,6 +21927,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
21308
21927
  isSetofReturn: false;
21309
21928
  };
21310
21929
  };
21930
+ pick_cleanup_maintenance: {
21931
+ Args: {
21932
+ _heartbeat_hours?: number;
21933
+ _log_days?: number;
21934
+ };
21935
+ Returns: import("../integrations/supabase/types").Json;
21936
+ };
21311
21937
  pick_complete_print: {
21312
21938
  Args: {
21313
21939
  _printer_id: string;
@@ -21359,6 +21985,14 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
21359
21985
  Args: never;
21360
21986
  Returns: string;
21361
21987
  };
21988
+ pick_day_counts: {
21989
+ Args: {
21990
+ _pick_day?: string;
21991
+ _screen_id?: string;
21992
+ _station_id?: string;
21993
+ };
21994
+ Returns: import("../integrations/supabase/types").Json;
21995
+ };
21362
21996
  pick_document_layout_data: {
21363
21997
  Args: {
21364
21998
  _layout_id: string;
@@ -21386,6 +22020,14 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
21386
22020
  };
21387
22021
  Returns: import("../integrations/supabase/types").Json;
21388
22022
  };
22023
+ pick_print_plekken: {
22024
+ Args: never;
22025
+ Returns: {
22026
+ id: string;
22027
+ naam: string;
22028
+ omschrijving: string;
22029
+ }[];
22030
+ };
21389
22031
  pick_release_expired_locks: {
21390
22032
  Args: never;
21391
22033
  Returns: number;
@@ -21396,6 +22038,14 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
21396
22038
  };
21397
22039
  Returns: undefined;
21398
22040
  };
22041
+ pick_reprint_document: {
22042
+ Args: {
22043
+ _queue_item_id: string;
22044
+ _session_id: string;
22045
+ _throttle_seconds?: number;
22046
+ };
22047
+ Returns: string;
22048
+ };
21399
22049
  pick_reset_print: {
21400
22050
  Args: {
21401
22051
  _queue_item_id: string;
@@ -21442,6 +22092,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
21442
22092
  isSetofReturn: false;
21443
22093
  };
21444
22094
  };
22095
+ pick_set_station_print_plek: {
22096
+ Args: {
22097
+ _print_plek_id: string;
22098
+ _station_id: string;
22099
+ };
22100
+ Returns: string;
22101
+ };
21445
22102
  pick_station_dashboard: {
21446
22103
  Args: never;
21447
22104
  Returns: {
@@ -21454,6 +22111,25 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
21454
22111
  waiting: number;
21455
22112
  }[];
21456
22113
  };
22114
+ pick_station_print_plek: {
22115
+ Args: {
22116
+ _station_id: string;
22117
+ };
22118
+ Returns: {
22119
+ naam: string;
22120
+ omschrijving: string;
22121
+ print_plek_id: string;
22122
+ }[];
22123
+ };
22124
+ pick_station_print_plekken: {
22125
+ Args: never;
22126
+ Returns: {
22127
+ naam: string;
22128
+ omschrijving: string;
22129
+ print_plek_id: string;
22130
+ station_id: string;
22131
+ }[];
22132
+ };
21457
22133
  pick_station_slugify: {
21458
22134
  Args: {
21459
22135
  _id: string;
@@ -21461,6 +22137,12 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
21461
22137
  };
21462
22138
  Returns: string;
21463
22139
  };
22140
+ pick_sync_queue_throttled: {
22141
+ Args: {
22142
+ _min_seconds?: number;
22143
+ };
22144
+ Returns: import("../integrations/supabase/types").Json;
22145
+ };
21464
22146
  pickstation_get_orders_raw: {
21465
22147
  Args: never;
21466
22148
  Returns: import("../integrations/supabase/types").Json;
@@ -21606,6 +22288,12 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
21606
22288
  };
21607
22289
  Returns: boolean;
21608
22290
  };
22291
+ release_stale_order_invoice_links: {
22292
+ Args: {
22293
+ _minutes?: number;
22294
+ };
22295
+ Returns: number;
22296
+ };
21609
22297
  reorder_customer_price_groups: {
21610
22298
  Args: {
21611
22299
  _ids: string[];
@@ -22124,6 +22812,20 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
22124
22812
  };
22125
22813
  Returns: undefined;
22126
22814
  };
22815
+ twinfield_deactivate_connection: {
22816
+ Args: {
22817
+ p_connection_id: string;
22818
+ p_user_id: string;
22819
+ };
22820
+ Returns: import("../integrations/supabase/types").Json;
22821
+ };
22822
+ twinfield_handle_administration_change: {
22823
+ Args: {
22824
+ _administration_code: string;
22825
+ _user_id: string;
22826
+ };
22827
+ Returns: undefined;
22828
+ };
22127
22829
  twinfield_prune_push_queue: {
22128
22830
  Args: never;
22129
22831
  Returns: number;
@@ -22143,10 +22845,11 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
22143
22845
  p_company_name?: string;
22144
22846
  p_environment: string;
22145
22847
  p_office_code?: string;
22848
+ p_reset_sync?: boolean;
22146
22849
  p_status?: string;
22147
22850
  p_user_id: string;
22148
22851
  };
22149
- Returns: string;
22852
+ Returns: import("../integrations/supabase/types").Json;
22150
22853
  };
22151
22854
  upsert_auto_fulfillment_log: {
22152
22855
  Args: {
@@ -22892,6 +23595,99 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
22892
23595
  };
22893
23596
  Relationships: [];
22894
23597
  };
23598
+ artikelen_cache: {
23599
+ Row: {
23600
+ artikelcode: string;
23601
+ bron: string;
23602
+ bruto_prijs_cent: number | null;
23603
+ created_at: string;
23604
+ eenheid: string;
23605
+ fabrikant: string | null;
23606
+ fetched_at: string;
23607
+ gtin: string | null;
23608
+ id: string;
23609
+ naam: string;
23610
+ netto_prijs_cent: number | null;
23611
+ omschrijving: string | null;
23612
+ raw: import("../integrations/supabase/types").Json;
23613
+ updated_at: string;
23614
+ valuta: string;
23615
+ };
23616
+ Insert: {
23617
+ artikelcode: string;
23618
+ bron?: string;
23619
+ bruto_prijs_cent?: number | null;
23620
+ created_at?: string;
23621
+ eenheid?: string;
23622
+ fabrikant?: string | null;
23623
+ fetched_at?: string;
23624
+ gtin?: string | null;
23625
+ id?: string;
23626
+ naam: string;
23627
+ netto_prijs_cent?: number | null;
23628
+ omschrijving?: string | null;
23629
+ raw?: import("../integrations/supabase/types").Json;
23630
+ updated_at?: string;
23631
+ valuta?: string;
23632
+ };
23633
+ Update: {
23634
+ artikelcode?: string;
23635
+ bron?: string;
23636
+ bruto_prijs_cent?: number | null;
23637
+ created_at?: string;
23638
+ eenheid?: string;
23639
+ fabrikant?: string | null;
23640
+ fetched_at?: string;
23641
+ gtin?: string | null;
23642
+ id?: string;
23643
+ naam?: string;
23644
+ netto_prijs_cent?: number | null;
23645
+ omschrijving?: string | null;
23646
+ raw?: import("../integrations/supabase/types").Json;
23647
+ updated_at?: string;
23648
+ valuta?: string;
23649
+ };
23650
+ Relationships: [];
23651
+ };
23652
+ artikelen_veldconfig: {
23653
+ Row: {
23654
+ bron_pad: string;
23655
+ created_at: string;
23656
+ id: string;
23657
+ label: string;
23658
+ sort_order: number;
23659
+ type: string;
23660
+ updated_at: string;
23661
+ veld_key: string;
23662
+ zichtbaar_in_detail: boolean;
23663
+ zichtbaar_in_lijst: boolean;
23664
+ };
23665
+ Insert: {
23666
+ bron_pad: string;
23667
+ created_at?: string;
23668
+ id?: string;
23669
+ label: string;
23670
+ sort_order?: number;
23671
+ type?: string;
23672
+ updated_at?: string;
23673
+ veld_key: string;
23674
+ zichtbaar_in_detail?: boolean;
23675
+ zichtbaar_in_lijst?: boolean;
23676
+ };
23677
+ Update: {
23678
+ bron_pad?: string;
23679
+ created_at?: string;
23680
+ id?: string;
23681
+ label?: string;
23682
+ sort_order?: number;
23683
+ type?: string;
23684
+ updated_at?: string;
23685
+ veld_key?: string;
23686
+ zichtbaar_in_detail?: boolean;
23687
+ zichtbaar_in_lijst?: boolean;
23688
+ };
23689
+ Relationships: [];
23690
+ };
22895
23691
  booking_items: {
22896
23692
  Row: {
22897
23693
  booking_id: string;
@@ -24977,6 +25773,42 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
24977
25773
  };
24978
25774
  Relationships: [];
24979
25775
  };
25776
+ document_bronregels: {
25777
+ Row: {
25778
+ bron: string;
25779
+ created_at: string;
25780
+ documenttype: string;
25781
+ herkomst: string;
25782
+ id: string;
25783
+ layout_id: string | null;
25784
+ updated_at: string;
25785
+ };
25786
+ Insert: {
25787
+ bron?: string;
25788
+ created_at?: string;
25789
+ documenttype: string;
25790
+ herkomst: string;
25791
+ id?: string;
25792
+ layout_id?: string | null;
25793
+ updated_at?: string;
25794
+ };
25795
+ Update: {
25796
+ bron?: string;
25797
+ created_at?: string;
25798
+ documenttype?: string;
25799
+ herkomst?: string;
25800
+ id?: string;
25801
+ layout_id?: string | null;
25802
+ updated_at?: string;
25803
+ };
25804
+ Relationships: [{
25805
+ foreignKeyName: "document_bronregels_layout_id_fkey";
25806
+ columns: ["layout_id"];
25807
+ isOneToOne: false;
25808
+ referencedRelation: "document_layouts";
25809
+ referencedColumns: ["id"];
25810
+ }];
25811
+ };
24980
25812
  document_formaat_printers: {
24981
25813
  Row: {
24982
25814
  created_at: string;
@@ -25254,6 +26086,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
25254
26086
  Row: {
25255
26087
  actief: boolean;
25256
26088
  breedte_mm: number;
26089
+ bron: string;
25257
26090
  config: import("../integrations/supabase/types").Json;
25258
26091
  created_at: string;
25259
26092
  created_by: string | null;
@@ -25271,12 +26104,14 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
25271
26104
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25272
26105
  page_settings: import("../integrations/supabase/types").Json;
25273
26106
  papierformaat: string;
26107
+ systeem: boolean;
25274
26108
  thumbnail_url: string | null;
25275
26109
  updated_at: string;
25276
26110
  };
25277
26111
  Insert: {
25278
26112
  actief?: boolean;
25279
26113
  breedte_mm?: number;
26114
+ bron?: string;
25280
26115
  config?: import("../integrations/supabase/types").Json;
25281
26116
  created_at?: string;
25282
26117
  created_by?: string | null;
@@ -25294,12 +26129,14 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
25294
26129
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25295
26130
  page_settings?: import("../integrations/supabase/types").Json;
25296
26131
  papierformaat?: string;
26132
+ systeem?: boolean;
25297
26133
  thumbnail_url?: string | null;
25298
26134
  updated_at?: string;
25299
26135
  };
25300
26136
  Update: {
25301
26137
  actief?: boolean;
25302
26138
  breedte_mm?: number;
26139
+ bron?: string;
25303
26140
  config?: import("../integrations/supabase/types").Json;
25304
26141
  created_at?: string;
25305
26142
  created_by?: string | null;
@@ -25317,11 +26154,90 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
25317
26154
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25318
26155
  page_settings?: import("../integrations/supabase/types").Json;
25319
26156
  papierformaat?: string;
26157
+ systeem?: boolean;
25320
26158
  thumbnail_url?: string | null;
25321
26159
  updated_at?: string;
25322
26160
  };
25323
26161
  Relationships: [];
25324
26162
  };
26163
+ document_printplek_printers: {
26164
+ Row: {
26165
+ created_at: string;
26166
+ documenttype: string;
26167
+ id: string;
26168
+ papierformaat: string | null;
26169
+ print_plek_id: string;
26170
+ printer_id: string | null;
26171
+ updated_at: string;
26172
+ };
26173
+ Insert: {
26174
+ created_at?: string;
26175
+ documenttype: string;
26176
+ id?: string;
26177
+ papierformaat?: string | null;
26178
+ print_plek_id: string;
26179
+ printer_id?: string | null;
26180
+ updated_at?: string;
26181
+ };
26182
+ Update: {
26183
+ created_at?: string;
26184
+ documenttype?: string;
26185
+ id?: string;
26186
+ papierformaat?: string | null;
26187
+ print_plek_id?: string;
26188
+ printer_id?: string | null;
26189
+ updated_at?: string;
26190
+ };
26191
+ Relationships: [{
26192
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
26193
+ columns: ["print_plek_id"];
26194
+ isOneToOne: false;
26195
+ referencedRelation: "print_plekken";
26196
+ referencedColumns: ["id"];
26197
+ }, {
26198
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
26199
+ columns: ["printer_id"];
26200
+ isOneToOne: false;
26201
+ referencedRelation: "printers";
26202
+ referencedColumns: ["id"];
26203
+ }];
26204
+ };
26205
+ document_werkplek_printers: {
26206
+ Row: {
26207
+ created_at: string;
26208
+ documenttype: string;
26209
+ id: string;
26210
+ papierformaat: string | null;
26211
+ printer_id: string | null;
26212
+ updated_at: string;
26213
+ werkplek: string;
26214
+ };
26215
+ Insert: {
26216
+ created_at?: string;
26217
+ documenttype: string;
26218
+ id?: string;
26219
+ papierformaat?: string | null;
26220
+ printer_id?: string | null;
26221
+ updated_at?: string;
26222
+ werkplek: string;
26223
+ };
26224
+ Update: {
26225
+ created_at?: string;
26226
+ documenttype?: string;
26227
+ id?: string;
26228
+ papierformaat?: string | null;
26229
+ printer_id?: string | null;
26230
+ updated_at?: string;
26231
+ werkplek?: string;
26232
+ };
26233
+ Relationships: [{
26234
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
26235
+ columns: ["printer_id"];
26236
+ isOneToOne: false;
26237
+ referencedRelation: "printers";
26238
+ referencedColumns: ["id"];
26239
+ }];
26240
+ };
25325
26241
  email_auth_connections: {
25326
26242
  Row: {
25327
26243
  access_token_encrypted: string | null;
@@ -27263,42 +28179,6 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
27263
28179
  };
27264
28180
  Relationships: [];
27265
28181
  };
27266
- facturen: {
27267
- Row: {
27268
- bedrag_incl_btw: number;
27269
- created_at: string;
27270
- datum: string;
27271
- factuurnummer: string;
27272
- id: string;
27273
- klantnaam: string;
27274
- status: string;
27275
- updated_at: string;
27276
- user_id: string;
27277
- };
27278
- Insert: {
27279
- bedrag_incl_btw: number;
27280
- created_at?: string;
27281
- datum?: string;
27282
- factuurnummer: string;
27283
- id?: string;
27284
- klantnaam: string;
27285
- status?: string;
27286
- updated_at?: string;
27287
- user_id?: string;
27288
- };
27289
- Update: {
27290
- bedrag_incl_btw?: number;
27291
- created_at?: string;
27292
- datum?: string;
27293
- factuurnummer?: string;
27294
- id?: string;
27295
- klantnaam?: string;
27296
- status?: string;
27297
- updated_at?: string;
27298
- user_id?: string;
27299
- };
27300
- Relationships: [];
27301
- };
27302
28182
  floricode_connection_settings: {
27303
28183
  Row: {
27304
28184
  catalog_key: string | null;
@@ -29603,8 +30483,63 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29603
30483
  };
29604
30484
  Relationships: [];
29605
30485
  };
30486
+ invoice_items: {
30487
+ Row: {
30488
+ created_at: string;
30489
+ description: string;
30490
+ id: string;
30491
+ invoice_id: string;
30492
+ kind: string;
30493
+ quantity: number;
30494
+ sort_order: number;
30495
+ source_line_ref: string | null;
30496
+ total_cents: number;
30497
+ unit: string;
30498
+ unit_price_cents: number;
30499
+ };
30500
+ Insert: {
30501
+ created_at?: string;
30502
+ description?: string;
30503
+ id?: string;
30504
+ invoice_id: string;
30505
+ kind?: string;
30506
+ quantity?: number;
30507
+ sort_order?: number;
30508
+ source_line_ref?: string | null;
30509
+ total_cents?: number;
30510
+ unit?: string;
30511
+ unit_price_cents?: number;
30512
+ };
30513
+ Update: {
30514
+ created_at?: string;
30515
+ description?: string;
30516
+ id?: string;
30517
+ invoice_id?: string;
30518
+ kind?: string;
30519
+ quantity?: number;
30520
+ sort_order?: number;
30521
+ source_line_ref?: string | null;
30522
+ total_cents?: number;
30523
+ unit?: string;
30524
+ unit_price_cents?: number;
30525
+ };
30526
+ Relationships: [{
30527
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30528
+ columns: ["invoice_id"];
30529
+ isOneToOne: false;
30530
+ referencedRelation: "invoices";
30531
+ referencedColumns: ["id"];
30532
+ }, {
30533
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30534
+ columns: ["invoice_id"];
30535
+ isOneToOne: false;
30536
+ referencedRelation: "uren_facturen";
30537
+ referencedColumns: ["id"];
30538
+ }];
30539
+ };
29606
30540
  invoice_post_idempotency: {
29607
30541
  Row: {
30542
+ administration_code: string;
29608
30543
  client_request_id: string;
29609
30544
  completed_at: string | null;
29610
30545
  created_at: string;
@@ -29614,6 +30549,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29614
30549
  user_id: string;
29615
30550
  };
29616
30551
  Insert: {
30552
+ administration_code?: string;
29617
30553
  client_request_id: string;
29618
30554
  completed_at?: string | null;
29619
30555
  created_at?: string;
@@ -29623,6 +30559,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29623
30559
  user_id: string;
29624
30560
  };
29625
30561
  Update: {
30562
+ administration_code?: string;
29626
30563
  client_request_id?: string;
29627
30564
  completed_at?: string | null;
29628
30565
  created_at?: string;
@@ -29828,6 +30765,75 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
29828
30765
  };
29829
30766
  Relationships: [];
29830
30767
  };
30768
+ invoices: {
30769
+ Row: {
30770
+ created_at: string;
30771
+ created_by: string | null;
30772
+ customer_id: string | null;
30773
+ customer_name: string | null;
30774
+ due_date: string | null;
30775
+ id: string;
30776
+ invoice_date: string;
30777
+ invoice_number: string | null;
30778
+ note: string | null;
30779
+ source_number: string | null;
30780
+ source_ref: string | null;
30781
+ source_type: string;
30782
+ status: string;
30783
+ subtotal_cents: number;
30784
+ total_cents: number;
30785
+ updated_at: string;
30786
+ vat_cents: number;
30787
+ vat_rate: number;
30788
+ };
30789
+ Insert: {
30790
+ created_at?: string;
30791
+ created_by?: string | null;
30792
+ customer_id?: string | null;
30793
+ customer_name?: string | null;
30794
+ due_date?: string | null;
30795
+ id?: string;
30796
+ invoice_date?: string;
30797
+ invoice_number?: string | null;
30798
+ note?: string | null;
30799
+ source_number?: string | null;
30800
+ source_ref?: string | null;
30801
+ source_type?: string;
30802
+ status?: string;
30803
+ subtotal_cents?: number;
30804
+ total_cents?: number;
30805
+ updated_at?: string;
30806
+ vat_cents?: number;
30807
+ vat_rate?: number;
30808
+ };
30809
+ Update: {
30810
+ created_at?: string;
30811
+ created_by?: string | null;
30812
+ customer_id?: string | null;
30813
+ customer_name?: string | null;
30814
+ due_date?: string | null;
30815
+ id?: string;
30816
+ invoice_date?: string;
30817
+ invoice_number?: string | null;
30818
+ note?: string | null;
30819
+ source_number?: string | null;
30820
+ source_ref?: string | null;
30821
+ source_type?: string;
30822
+ status?: string;
30823
+ subtotal_cents?: number;
30824
+ total_cents?: number;
30825
+ updated_at?: string;
30826
+ vat_cents?: number;
30827
+ vat_rate?: number;
30828
+ };
30829
+ Relationships: [{
30830
+ foreignKeyName: "invoices_customer_id_fkey";
30831
+ columns: ["customer_id"];
30832
+ isOneToOne: false;
30833
+ referencedRelation: "itk_customers";
30834
+ referencedColumns: ["id"];
30835
+ }];
30836
+ };
29831
30837
  itk_contact_persons: {
29832
30838
  Row: {
29833
30839
  created_at: string;
@@ -31175,6 +32181,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
31175
32181
  id: string;
31176
32182
  last_error: string | null;
31177
32183
  last_error_at: string | null;
32184
+ last_error_code: string | null;
32185
+ last_gateway_status: number | null;
32186
+ last_queued_at: string | null;
32187
+ last_response: import("../integrations/supabase/types").Json | null;
31178
32188
  last_sent_hash: string | null;
31179
32189
  locked_by: string | null;
31180
32190
  locked_until: string | null;
@@ -31195,6 +32205,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
31195
32205
  id?: string;
31196
32206
  last_error?: string | null;
31197
32207
  last_error_at?: string | null;
32208
+ last_error_code?: string | null;
32209
+ last_gateway_status?: number | null;
32210
+ last_queued_at?: string | null;
32211
+ last_response?: import("../integrations/supabase/types").Json | null;
31198
32212
  last_sent_hash?: string | null;
31199
32213
  locked_by?: string | null;
31200
32214
  locked_until?: string | null;
@@ -31215,6 +32229,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
31215
32229
  id?: string;
31216
32230
  last_error?: string | null;
31217
32231
  last_error_at?: string | null;
32232
+ last_error_code?: string | null;
32233
+ last_gateway_status?: number | null;
32234
+ last_queued_at?: string | null;
32235
+ last_response?: import("../integrations/supabase/types").Json | null;
31218
32236
  last_sent_hash?: string | null;
31219
32237
  locked_by?: string | null;
31220
32238
  locked_until?: string | null;
@@ -32768,6 +33786,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
32768
33786
  enforce: boolean;
32769
33787
  is_active: boolean;
32770
33788
  last_seen_at: string;
33789
+ missing_count: number;
32771
33790
  module_id: string;
32772
33791
  name: string;
32773
33792
  shell_id: string | null;
@@ -32778,6 +33797,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
32778
33797
  enforce?: boolean;
32779
33798
  is_active?: boolean;
32780
33799
  last_seen_at?: string;
33800
+ missing_count?: number;
32781
33801
  module_id: string;
32782
33802
  name: string;
32783
33803
  shell_id?: string | null;
@@ -32788,6 +33808,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
32788
33808
  enforce?: boolean;
32789
33809
  is_active?: boolean;
32790
33810
  last_seen_at?: string;
33811
+ missing_count?: number;
32791
33812
  module_id?: string;
32792
33813
  name?: string;
32793
33814
  shell_id?: string | null;
@@ -33787,6 +34808,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
33787
34808
  };
33788
34809
  order_invoice_links: {
33789
34810
  Row: {
34811
+ administration_code: string | null;
33790
34812
  attempts: number;
33791
34813
  created_at: string;
33792
34814
  error_message: string | null;
@@ -33799,6 +34821,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
33799
34821
  updated_at: string;
33800
34822
  };
33801
34823
  Insert: {
34824
+ administration_code?: string | null;
33802
34825
  attempts?: number;
33803
34826
  created_at?: string;
33804
34827
  error_message?: string | null;
@@ -33811,6 +34834,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
33811
34834
  updated_at?: string;
33812
34835
  };
33813
34836
  Update: {
34837
+ administration_code?: string | null;
33814
34838
  attempts?: number;
33815
34839
  created_at?: string;
33816
34840
  error_message?: string | null;
@@ -34976,6 +36000,27 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
34976
36000
  referencedColumns: ["id"];
34977
36001
  }];
34978
36002
  };
36003
+ pick_sync_state: {
36004
+ Row: {
36005
+ id: boolean;
36006
+ last_cleanup_at: string | null;
36007
+ last_sync_at: string | null;
36008
+ updated_at: string;
36009
+ };
36010
+ Insert: {
36011
+ id?: boolean;
36012
+ last_cleanup_at?: string | null;
36013
+ last_sync_at?: string | null;
36014
+ updated_at?: string;
36015
+ };
36016
+ Update: {
36017
+ id?: boolean;
36018
+ last_cleanup_at?: string | null;
36019
+ last_sync_at?: string | null;
36020
+ updated_at?: string;
36021
+ };
36022
+ Relationships: [];
36023
+ };
34979
36024
  pick_task_document_types: {
34980
36025
  Row: {
34981
36026
  created_at: string;
@@ -35258,6 +36303,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
35258
36303
  gebruiker_id: string | null;
35259
36304
  gebruiker_naam: string;
35260
36305
  gestart_op: string | null;
36306
+ herkomst: string | null;
35261
36307
  id: string;
35262
36308
  idempotentie_sleutel: string | null;
35263
36309
  is_herprint: boolean;
@@ -35287,6 +36333,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
35287
36333
  gebruiker_id?: string | null;
35288
36334
  gebruiker_naam?: string;
35289
36335
  gestart_op?: string | null;
36336
+ herkomst?: string | null;
35290
36337
  id?: string;
35291
36338
  idempotentie_sleutel?: string | null;
35292
36339
  is_herprint?: boolean;
@@ -35316,6 +36363,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
35316
36363
  gebruiker_id?: string | null;
35317
36364
  gebruiker_naam?: string;
35318
36365
  gestart_op?: string | null;
36366
+ herkomst?: string | null;
35319
36367
  id?: string;
35320
36368
  idempotentie_sleutel?: string | null;
35321
36369
  is_herprint?: boolean;
@@ -35354,6 +36402,99 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
35354
36402
  referencedColumns: ["id"];
35355
36403
  }];
35356
36404
  };
36405
+ print_plek_computers: {
36406
+ Row: {
36407
+ computer_naam: string;
36408
+ created_at: string;
36409
+ id: string;
36410
+ print_plek_id: string;
36411
+ updated_at: string;
36412
+ };
36413
+ Insert: {
36414
+ computer_naam: string;
36415
+ created_at?: string;
36416
+ id?: string;
36417
+ print_plek_id: string;
36418
+ updated_at?: string;
36419
+ };
36420
+ Update: {
36421
+ computer_naam?: string;
36422
+ created_at?: string;
36423
+ id?: string;
36424
+ print_plek_id?: string;
36425
+ updated_at?: string;
36426
+ };
36427
+ Relationships: [{
36428
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
36429
+ columns: ["print_plek_id"];
36430
+ isOneToOne: false;
36431
+ referencedRelation: "print_plekken";
36432
+ referencedColumns: ["id"];
36433
+ }];
36434
+ };
36435
+ print_plek_koppelingen: {
36436
+ Row: {
36437
+ bron: string;
36438
+ bron_id: string;
36439
+ created_at: string;
36440
+ id: string;
36441
+ label: string | null;
36442
+ print_plek_id: string;
36443
+ updated_at: string;
36444
+ };
36445
+ Insert: {
36446
+ bron: string;
36447
+ bron_id: string;
36448
+ created_at?: string;
36449
+ id?: string;
36450
+ label?: string | null;
36451
+ print_plek_id: string;
36452
+ updated_at?: string;
36453
+ };
36454
+ Update: {
36455
+ bron?: string;
36456
+ bron_id?: string;
36457
+ created_at?: string;
36458
+ id?: string;
36459
+ label?: string | null;
36460
+ print_plek_id?: string;
36461
+ updated_at?: string;
36462
+ };
36463
+ Relationships: [{
36464
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
36465
+ columns: ["print_plek_id"];
36466
+ isOneToOne: false;
36467
+ referencedRelation: "print_plekken";
36468
+ referencedColumns: ["id"];
36469
+ }];
36470
+ };
36471
+ print_plekken: {
36472
+ Row: {
36473
+ actief: boolean;
36474
+ created_at: string;
36475
+ id: string;
36476
+ naam: string;
36477
+ omschrijving: string | null;
36478
+ updated_at: string;
36479
+ };
36480
+ Insert: {
36481
+ actief?: boolean;
36482
+ created_at?: string;
36483
+ id?: string;
36484
+ naam: string;
36485
+ omschrijving?: string | null;
36486
+ updated_at?: string;
36487
+ };
36488
+ Update: {
36489
+ actief?: boolean;
36490
+ created_at?: string;
36491
+ id?: string;
36492
+ naam?: string;
36493
+ omschrijving?: string | null;
36494
+ updated_at?: string;
36495
+ };
36496
+ Relationships: [];
36497
+ };
35357
36498
  print_queue_runners: {
35358
36499
  Row: {
35359
36500
  actief: boolean;
@@ -37508,6 +38649,45 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
37508
38649
  };
37509
38650
  Relationships: [];
37510
38651
  };
38652
+ stock_consumption_alerts: {
38653
+ Row: {
38654
+ alert_type: string;
38655
+ created_at: string;
38656
+ id: string;
38657
+ mutation_log_id: string | null;
38658
+ order_id: string | null;
38659
+ order_item_id: string | null;
38660
+ qty: number;
38661
+ reason: string | null;
38662
+ resolved_at: string | null;
38663
+ updated_at: string;
38664
+ };
38665
+ Insert: {
38666
+ alert_type: string;
38667
+ created_at?: string;
38668
+ id?: string;
38669
+ mutation_log_id?: string | null;
38670
+ order_id?: string | null;
38671
+ order_item_id?: string | null;
38672
+ qty?: number;
38673
+ reason?: string | null;
38674
+ resolved_at?: string | null;
38675
+ updated_at?: string;
38676
+ };
38677
+ Update: {
38678
+ alert_type?: string;
38679
+ created_at?: string;
38680
+ id?: string;
38681
+ mutation_log_id?: string | null;
38682
+ order_id?: string | null;
38683
+ order_item_id?: string | null;
38684
+ qty?: number;
38685
+ reason?: string | null;
38686
+ resolved_at?: string | null;
38687
+ updated_at?: string;
38688
+ };
38689
+ Relationships: [];
38690
+ };
37511
38691
  stock_import_runs: {
37512
38692
  Row: {
37513
38693
  connection_id: string | null;
@@ -38320,12 +39500,16 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
38320
39500
  company_name: string | null;
38321
39501
  connected_at: string | null;
38322
39502
  created_at: string;
39503
+ disconnected_at: string | null;
38323
39504
  environment: string;
38324
39505
  id: string;
39506
+ initial_sync_completed_at: string | null;
39507
+ initial_sync_started_at: string | null;
38325
39508
  is_active: boolean;
38326
39509
  label: string | null;
38327
39510
  office_code: string | null;
38328
39511
  redirect_uri: string | null;
39512
+ superseded_at: string | null;
38329
39513
  updated_at: string;
38330
39514
  user_id: string;
38331
39515
  };
@@ -38336,12 +39520,16 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
38336
39520
  company_name?: string | null;
38337
39521
  connected_at?: string | null;
38338
39522
  created_at?: string;
39523
+ disconnected_at?: string | null;
38339
39524
  environment: string;
38340
39525
  id?: string;
39526
+ initial_sync_completed_at?: string | null;
39527
+ initial_sync_started_at?: string | null;
38341
39528
  is_active?: boolean;
38342
39529
  label?: string | null;
38343
39530
  office_code?: string | null;
38344
39531
  redirect_uri?: string | null;
39532
+ superseded_at?: string | null;
38345
39533
  updated_at?: string;
38346
39534
  user_id: string;
38347
39535
  };
@@ -38352,12 +39540,16 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
38352
39540
  company_name?: string | null;
38353
39541
  connected_at?: string | null;
38354
39542
  created_at?: string;
39543
+ disconnected_at?: string | null;
38355
39544
  environment?: string;
38356
39545
  id?: string;
39546
+ initial_sync_completed_at?: string | null;
39547
+ initial_sync_started_at?: string | null;
38357
39548
  is_active?: boolean;
38358
39549
  label?: string | null;
38359
39550
  office_code?: string | null;
38360
39551
  redirect_uri?: string | null;
39552
+ superseded_at?: string | null;
38361
39553
  updated_at?: string;
38362
39554
  user_id?: string;
38363
39555
  };
@@ -38417,6 +39609,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
38417
39609
  twinfield_customers: {
38418
39610
  Row: {
38419
39611
  address: string | null;
39612
+ administration_code: string;
38420
39613
  city: string | null;
38421
39614
  country: string | null;
38422
39615
  created_at: string;
@@ -38436,6 +39629,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
38436
39629
  };
38437
39630
  Insert: {
38438
39631
  address?: string | null;
39632
+ administration_code?: string;
38439
39633
  city?: string | null;
38440
39634
  country?: string | null;
38441
39635
  created_at?: string;
@@ -38455,6 +39649,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
38455
39649
  };
38456
39650
  Update: {
38457
39651
  address?: string | null;
39652
+ administration_code?: string;
38458
39653
  city?: string | null;
38459
39654
  country?: string | null;
38460
39655
  created_at?: string;
@@ -38668,7 +39863,9 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
38668
39863
  };
38669
39864
  twinfield_invoice_settings: {
38670
39865
  Row: {
39866
+ administration_code: string | null;
38671
39867
  auto_invoice_enabled: boolean;
39868
+ auto_invoice_start_date: string | null;
38672
39869
  auto_invoice_trigger_statuses: string[];
38673
39870
  created_at: string;
38674
39871
  debtor_gl_account: string;
@@ -38682,15 +39879,19 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
38682
39879
  invoice_enabled_fo: boolean;
38683
39880
  invoice_enabled_ho: boolean;
38684
39881
  invoice_enabled_mo: boolean;
39882
+ needs_review: boolean;
38685
39883
  payment_gl_account: string;
38686
39884
  payment_journal_code: string;
39885
+ settings_confirmed_at: string | null;
38687
39886
  updated_at: string;
38688
39887
  user_id: string;
38689
39888
  vat_code_eu_reverse: string | null;
38690
39889
  vat_code_export: string | null;
38691
39890
  };
38692
39891
  Insert: {
39892
+ administration_code?: string | null;
38693
39893
  auto_invoice_enabled?: boolean;
39894
+ auto_invoice_start_date?: string | null;
38694
39895
  auto_invoice_trigger_statuses?: string[];
38695
39896
  created_at?: string;
38696
39897
  debtor_gl_account?: string;
@@ -38704,15 +39905,19 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
38704
39905
  invoice_enabled_fo?: boolean;
38705
39906
  invoice_enabled_ho?: boolean;
38706
39907
  invoice_enabled_mo?: boolean;
39908
+ needs_review?: boolean;
38707
39909
  payment_gl_account?: string;
38708
39910
  payment_journal_code?: string;
39911
+ settings_confirmed_at?: string | null;
38709
39912
  updated_at?: string;
38710
39913
  user_id: string;
38711
39914
  vat_code_eu_reverse?: string | null;
38712
39915
  vat_code_export?: string | null;
38713
39916
  };
38714
39917
  Update: {
39918
+ administration_code?: string | null;
38715
39919
  auto_invoice_enabled?: boolean;
39920
+ auto_invoice_start_date?: string | null;
38716
39921
  auto_invoice_trigger_statuses?: string[];
38717
39922
  created_at?: string;
38718
39923
  debtor_gl_account?: string;
@@ -38726,8 +39931,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
38726
39931
  invoice_enabled_fo?: boolean;
38727
39932
  invoice_enabled_ho?: boolean;
38728
39933
  invoice_enabled_mo?: boolean;
39934
+ needs_review?: boolean;
38729
39935
  payment_gl_account?: string;
38730
39936
  payment_journal_code?: string;
39937
+ settings_confirmed_at?: string | null;
38731
39938
  updated_at?: string;
38732
39939
  user_id?: string;
38733
39940
  vat_code_eu_reverse?: string | null;
@@ -39332,114 +40539,6 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
39332
40539
  };
39333
40540
  Relationships: [];
39334
40541
  };
39335
- uren_facturen: {
39336
- Row: {
39337
- created_at: string;
39338
- created_by: string | null;
39339
- customer_id: string | null;
39340
- customer_name: string | null;
39341
- id: string;
39342
- invoice_number: string | null;
39343
- note: string | null;
39344
- status: string;
39345
- total_excl_cents: number;
39346
- total_incl_cents: number;
39347
- updated_at: string;
39348
- vat_cents: number;
39349
- vat_percentage: number;
39350
- werkbon_id: string | null;
39351
- };
39352
- Insert: {
39353
- created_at?: string;
39354
- created_by?: string | null;
39355
- customer_id?: string | null;
39356
- customer_name?: string | null;
39357
- id?: string;
39358
- invoice_number?: string | null;
39359
- note?: string | null;
39360
- status?: string;
39361
- total_excl_cents?: number;
39362
- total_incl_cents?: number;
39363
- updated_at?: string;
39364
- vat_cents?: number;
39365
- vat_percentage?: number;
39366
- werkbon_id?: string | null;
39367
- };
39368
- Update: {
39369
- created_at?: string;
39370
- created_by?: string | null;
39371
- customer_id?: string | null;
39372
- customer_name?: string | null;
39373
- id?: string;
39374
- invoice_number?: string | null;
39375
- note?: string | null;
39376
- status?: string;
39377
- total_excl_cents?: number;
39378
- total_incl_cents?: number;
39379
- updated_at?: string;
39380
- vat_cents?: number;
39381
- vat_percentage?: number;
39382
- werkbon_id?: string | null;
39383
- };
39384
- Relationships: [{
39385
- foreignKeyName: "uren_facturen_customer_id_fkey";
39386
- columns: ["customer_id"];
39387
- isOneToOne: false;
39388
- referencedRelation: "itk_customers";
39389
- referencedColumns: ["id"];
39390
- }, {
39391
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
39392
- columns: ["werkbon_id"];
39393
- isOneToOne: true;
39394
- referencedRelation: "werkbonnen";
39395
- referencedColumns: ["id"];
39396
- }];
39397
- };
39398
- uren_factuur_regels: {
39399
- Row: {
39400
- created_at: string;
39401
- description: string;
39402
- factuur_id: string;
39403
- id: string;
39404
- kind: string | null;
39405
- quantity: number;
39406
- sort_order: number;
39407
- total_cents: number;
39408
- unit: string;
39409
- unit_price_cents: number;
39410
- };
39411
- Insert: {
39412
- created_at?: string;
39413
- description: string;
39414
- factuur_id: string;
39415
- id?: string;
39416
- kind?: string | null;
39417
- quantity?: number;
39418
- sort_order?: number;
39419
- total_cents?: number;
39420
- unit?: string;
39421
- unit_price_cents?: number;
39422
- };
39423
- Update: {
39424
- created_at?: string;
39425
- description?: string;
39426
- factuur_id?: string;
39427
- id?: string;
39428
- kind?: string | null;
39429
- quantity?: number;
39430
- sort_order?: number;
39431
- total_cents?: number;
39432
- unit?: string;
39433
- unit_price_cents?: number;
39434
- };
39435
- Relationships: [{
39436
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
39437
- columns: ["factuur_id"];
39438
- isOneToOne: false;
39439
- referencedRelation: "uren_facturen";
39440
- referencedColumns: ["id"];
39441
- }];
39442
- };
39443
40542
  uren_offerte_regels: {
39444
40543
  Row: {
39445
40544
  created_at: string;
@@ -40693,6 +41792,9 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
40693
41792
  scheduled_end_time: string | null;
40694
41793
  scheduled_start_time: string | null;
40695
41794
  sequence_number: number;
41795
+ signature_accepted_at: string | null;
41796
+ signature_by_user_id: string | null;
41797
+ signature_name: string | null;
40696
41798
  source_email_meta: import("../integrations/supabase/types").Json | null;
40697
41799
  source_mailbox_message_id: string | null;
40698
41800
  source_pdf_path: string | null;
@@ -40728,6 +41830,9 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
40728
41830
  scheduled_end_time?: string | null;
40729
41831
  scheduled_start_time?: string | null;
40730
41832
  sequence_number: number;
41833
+ signature_accepted_at?: string | null;
41834
+ signature_by_user_id?: string | null;
41835
+ signature_name?: string | null;
40731
41836
  source_email_meta?: import("../integrations/supabase/types").Json | null;
40732
41837
  source_mailbox_message_id?: string | null;
40733
41838
  source_pdf_path?: string | null;
@@ -40763,6 +41868,9 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
40763
41868
  scheduled_end_time?: string | null;
40764
41869
  scheduled_start_time?: string | null;
40765
41870
  sequence_number?: number;
41871
+ signature_accepted_at?: string | null;
41872
+ signature_by_user_id?: string | null;
41873
+ signature_name?: string | null;
40766
41874
  source_email_meta?: import("../integrations/supabase/types").Json | null;
40767
41875
  source_mailbox_message_id?: string | null;
40768
41876
  source_pdf_path?: string | null;
@@ -41279,6 +42387,114 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
41279
42387
  };
41280
42388
  Relationships: [];
41281
42389
  };
42390
+ uren_facturen: {
42391
+ Row: {
42392
+ created_at: string | null;
42393
+ created_by: string | null;
42394
+ customer_id: string | null;
42395
+ customer_name: string | null;
42396
+ id: string | null;
42397
+ invoice_number: string | null;
42398
+ note: string | null;
42399
+ status: string | null;
42400
+ total_excl_cents: number | null;
42401
+ total_incl_cents: number | null;
42402
+ updated_at: string | null;
42403
+ vat_cents: number | null;
42404
+ vat_percentage: number | null;
42405
+ werkbon_id: string | null;
42406
+ };
42407
+ Insert: {
42408
+ created_at?: string | null;
42409
+ created_by?: string | null;
42410
+ customer_id?: string | null;
42411
+ customer_name?: string | null;
42412
+ id?: string | null;
42413
+ invoice_number?: string | null;
42414
+ note?: string | null;
42415
+ status?: string | null;
42416
+ total_excl_cents?: number | null;
42417
+ total_incl_cents?: number | null;
42418
+ updated_at?: string | null;
42419
+ vat_cents?: number | null;
42420
+ vat_percentage?: number | null;
42421
+ werkbon_id?: never;
42422
+ };
42423
+ Update: {
42424
+ created_at?: string | null;
42425
+ created_by?: string | null;
42426
+ customer_id?: string | null;
42427
+ customer_name?: string | null;
42428
+ id?: string | null;
42429
+ invoice_number?: string | null;
42430
+ note?: string | null;
42431
+ status?: string | null;
42432
+ total_excl_cents?: number | null;
42433
+ total_incl_cents?: number | null;
42434
+ updated_at?: string | null;
42435
+ vat_cents?: number | null;
42436
+ vat_percentage?: number | null;
42437
+ werkbon_id?: never;
42438
+ };
42439
+ Relationships: [{
42440
+ foreignKeyName: "invoices_customer_id_fkey";
42441
+ columns: ["customer_id"];
42442
+ isOneToOne: false;
42443
+ referencedRelation: "itk_customers";
42444
+ referencedColumns: ["id"];
42445
+ }];
42446
+ };
42447
+ uren_factuur_regels: {
42448
+ Row: {
42449
+ created_at: string | null;
42450
+ description: string | null;
42451
+ factuur_id: string | null;
42452
+ id: string | null;
42453
+ kind: string | null;
42454
+ quantity: number | null;
42455
+ sort_order: number | null;
42456
+ total_cents: number | null;
42457
+ unit: string | null;
42458
+ unit_price_cents: number | null;
42459
+ };
42460
+ Insert: {
42461
+ created_at?: string | null;
42462
+ description?: string | null;
42463
+ factuur_id?: string | null;
42464
+ id?: string | null;
42465
+ kind?: string | null;
42466
+ quantity?: number | null;
42467
+ sort_order?: number | null;
42468
+ total_cents?: number | null;
42469
+ unit?: string | null;
42470
+ unit_price_cents?: number | null;
42471
+ };
42472
+ Update: {
42473
+ created_at?: string | null;
42474
+ description?: string | null;
42475
+ factuur_id?: string | null;
42476
+ id?: string | null;
42477
+ kind?: string | null;
42478
+ quantity?: number | null;
42479
+ sort_order?: number | null;
42480
+ total_cents?: number | null;
42481
+ unit?: string | null;
42482
+ unit_price_cents?: number | null;
42483
+ };
42484
+ Relationships: [{
42485
+ foreignKeyName: "invoice_items_invoice_id_fkey";
42486
+ columns: ["factuur_id"];
42487
+ isOneToOne: false;
42488
+ referencedRelation: "invoices";
42489
+ referencedColumns: ["id"];
42490
+ }, {
42491
+ foreignKeyName: "invoice_items_invoice_id_fkey";
42492
+ columns: ["factuur_id"];
42493
+ isOneToOne: false;
42494
+ referencedRelation: "uren_facturen";
42495
+ referencedColumns: ["id"];
42496
+ }];
42497
+ };
41282
42498
  v_external_customers_exact: {
41283
42499
  Row: {
41284
42500
  account_number: string | null;
@@ -41784,6 +43000,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
41784
43000
  gebruiker_id: string | null;
41785
43001
  gebruiker_naam: string;
41786
43002
  gestart_op: string | null;
43003
+ herkomst: string | null;
41787
43004
  id: string;
41788
43005
  idempotentie_sleutel: string | null;
41789
43006
  is_herprint: boolean;
@@ -41904,6 +43121,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
41904
43121
  gebruiker_id: string | null;
41905
43122
  gebruiker_naam: string;
41906
43123
  gestart_op: string | null;
43124
+ herkomst: string | null;
41907
43125
  id: string;
41908
43126
  idempotentie_sleutel: string | null;
41909
43127
  is_herprint: boolean;
@@ -42505,6 +43723,46 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
42505
43723
  Args: never;
42506
43724
  Returns: boolean;
42507
43725
  };
43726
+ invoice_create_from_source: {
43727
+ Args: {
43728
+ _payload?: import("../integrations/supabase/types").Json;
43729
+ _source_id: string;
43730
+ _source_type: string;
43731
+ };
43732
+ Returns: import("../integrations/supabase/types").Json;
43733
+ };
43734
+ invoice_get_billable_lines: {
43735
+ Args: {
43736
+ _invoice_id: string;
43737
+ };
43738
+ Returns: import("../integrations/supabase/types").Json;
43739
+ };
43740
+ invoice_get_for_source: {
43741
+ Args: {
43742
+ _source_id: string;
43743
+ _source_type: string;
43744
+ };
43745
+ Returns: import("../integrations/supabase/types").Json;
43746
+ };
43747
+ invoice_get_summary: {
43748
+ Args: {
43749
+ _invoice_id: string;
43750
+ };
43751
+ Returns: import("../integrations/supabase/types").Json;
43752
+ };
43753
+ invoice_list_sources: {
43754
+ Args: {
43755
+ _limit?: number;
43756
+ _source_type?: string;
43757
+ };
43758
+ Returns: import("../integrations/supabase/types").Json;
43759
+ };
43760
+ invoice_recalc_totals: {
43761
+ Args: {
43762
+ _invoice_id: string;
43763
+ };
43764
+ Returns: import("../integrations/supabase/types").Json;
43765
+ };
42508
43766
  is_authenticated: {
42509
43767
  Args: never;
42510
43768
  Returns: boolean;
@@ -42573,6 +43831,29 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
42573
43831
  roles: string[];
42574
43832
  }[];
42575
43833
  };
43834
+ list_monteur_absences: {
43835
+ Args: {
43836
+ _from: string;
43837
+ _to: string;
43838
+ };
43839
+ Returns: {
43840
+ absence_date: string;
43841
+ end_time: string;
43842
+ full_day: boolean;
43843
+ kind: string;
43844
+ monteur_id: string;
43845
+ start_time: string;
43846
+ }[];
43847
+ };
43848
+ list_monteurs: {
43849
+ Args: never;
43850
+ Returns: {
43851
+ avatar_url: string;
43852
+ display_name: string;
43853
+ email: string;
43854
+ id: string;
43855
+ }[];
43856
+ };
42576
43857
  list_my_planning_items: {
42577
43858
  Args: {
42578
43859
  _from: string;
@@ -42984,6 +44265,41 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
42984
44265
  };
42985
44266
  Returns: string;
42986
44267
  };
44268
+ logistics_floriday_finish_push_v2: {
44269
+ Args: {
44270
+ _error?: string;
44271
+ _error_code?: string;
44272
+ _fulfillment_order_id?: string;
44273
+ _gateway_status?: number;
44274
+ _id: string;
44275
+ _max_age_hours?: number;
44276
+ _max_attempts?: number;
44277
+ _ok: boolean;
44278
+ _permanent?: boolean;
44279
+ _response?: import("../integrations/supabase/types").Json;
44280
+ _revision: number;
44281
+ _sent_hash?: string;
44282
+ };
44283
+ Returns: string;
44284
+ };
44285
+ logistics_floriday_finish_push_v3: {
44286
+ Args: {
44287
+ _error?: string;
44288
+ _error_code?: string;
44289
+ _fulfillment_order_id?: string;
44290
+ _gateway_status?: number;
44291
+ _id: string;
44292
+ _max_age_hours?: number;
44293
+ _max_attempts?: number;
44294
+ _outcome: string;
44295
+ _permanent?: boolean;
44296
+ _response?: import("../integrations/supabase/types").Json;
44297
+ _revision: number;
44298
+ _sent_hash?: string;
44299
+ _wait_max_age_hours?: number;
44300
+ };
44301
+ Returns: string;
44302
+ };
42987
44303
  logistics_floriday_prune_pushes: {
42988
44304
  Args: {
42989
44305
  _days?: number;
@@ -43412,6 +44728,12 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
43412
44728
  verwijderd: number;
43413
44729
  }[];
43414
44730
  };
44731
+ order_departure_proof: {
44732
+ Args: {
44733
+ p_order_id: string;
44734
+ };
44735
+ Returns: import("../integrations/supabase/types").Json;
44736
+ };
43415
44737
  order_number_prefix: {
43416
44738
  Args: {
43417
44739
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -43526,6 +44848,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
43526
44848
  isSetofReturn: false;
43527
44849
  };
43528
44850
  };
44851
+ pick_cleanup_maintenance: {
44852
+ Args: {
44853
+ _heartbeat_hours?: number;
44854
+ _log_days?: number;
44855
+ };
44856
+ Returns: import("../integrations/supabase/types").Json;
44857
+ };
43529
44858
  pick_complete_print: {
43530
44859
  Args: {
43531
44860
  _printer_id: string;
@@ -43577,6 +44906,14 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
43577
44906
  Args: never;
43578
44907
  Returns: string;
43579
44908
  };
44909
+ pick_day_counts: {
44910
+ Args: {
44911
+ _pick_day?: string;
44912
+ _screen_id?: string;
44913
+ _station_id?: string;
44914
+ };
44915
+ Returns: import("../integrations/supabase/types").Json;
44916
+ };
43580
44917
  pick_document_layout_data: {
43581
44918
  Args: {
43582
44919
  _layout_id: string;
@@ -43604,6 +44941,14 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
43604
44941
  };
43605
44942
  Returns: import("../integrations/supabase/types").Json;
43606
44943
  };
44944
+ pick_print_plekken: {
44945
+ Args: never;
44946
+ Returns: {
44947
+ id: string;
44948
+ naam: string;
44949
+ omschrijving: string;
44950
+ }[];
44951
+ };
43607
44952
  pick_release_expired_locks: {
43608
44953
  Args: never;
43609
44954
  Returns: number;
@@ -43614,6 +44959,14 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
43614
44959
  };
43615
44960
  Returns: undefined;
43616
44961
  };
44962
+ pick_reprint_document: {
44963
+ Args: {
44964
+ _queue_item_id: string;
44965
+ _session_id: string;
44966
+ _throttle_seconds?: number;
44967
+ };
44968
+ Returns: string;
44969
+ };
43617
44970
  pick_reset_print: {
43618
44971
  Args: {
43619
44972
  _queue_item_id: string;
@@ -43660,6 +45013,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
43660
45013
  isSetofReturn: false;
43661
45014
  };
43662
45015
  };
45016
+ pick_set_station_print_plek: {
45017
+ Args: {
45018
+ _print_plek_id: string;
45019
+ _station_id: string;
45020
+ };
45021
+ Returns: string;
45022
+ };
43663
45023
  pick_station_dashboard: {
43664
45024
  Args: never;
43665
45025
  Returns: {
@@ -43672,6 +45032,25 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
43672
45032
  waiting: number;
43673
45033
  }[];
43674
45034
  };
45035
+ pick_station_print_plek: {
45036
+ Args: {
45037
+ _station_id: string;
45038
+ };
45039
+ Returns: {
45040
+ naam: string;
45041
+ omschrijving: string;
45042
+ print_plek_id: string;
45043
+ }[];
45044
+ };
45045
+ pick_station_print_plekken: {
45046
+ Args: never;
45047
+ Returns: {
45048
+ naam: string;
45049
+ omschrijving: string;
45050
+ print_plek_id: string;
45051
+ station_id: string;
45052
+ }[];
45053
+ };
43675
45054
  pick_station_slugify: {
43676
45055
  Args: {
43677
45056
  _id: string;
@@ -43679,6 +45058,12 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
43679
45058
  };
43680
45059
  Returns: string;
43681
45060
  };
45061
+ pick_sync_queue_throttled: {
45062
+ Args: {
45063
+ _min_seconds?: number;
45064
+ };
45065
+ Returns: import("../integrations/supabase/types").Json;
45066
+ };
43682
45067
  pickstation_get_orders_raw: {
43683
45068
  Args: never;
43684
45069
  Returns: import("../integrations/supabase/types").Json;
@@ -43824,6 +45209,12 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
43824
45209
  };
43825
45210
  Returns: boolean;
43826
45211
  };
45212
+ release_stale_order_invoice_links: {
45213
+ Args: {
45214
+ _minutes?: number;
45215
+ };
45216
+ Returns: number;
45217
+ };
43827
45218
  reorder_customer_price_groups: {
43828
45219
  Args: {
43829
45220
  _ids: string[];
@@ -44342,6 +45733,20 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
44342
45733
  };
44343
45734
  Returns: undefined;
44344
45735
  };
45736
+ twinfield_deactivate_connection: {
45737
+ Args: {
45738
+ p_connection_id: string;
45739
+ p_user_id: string;
45740
+ };
45741
+ Returns: import("../integrations/supabase/types").Json;
45742
+ };
45743
+ twinfield_handle_administration_change: {
45744
+ Args: {
45745
+ _administration_code: string;
45746
+ _user_id: string;
45747
+ };
45748
+ Returns: undefined;
45749
+ };
44345
45750
  twinfield_prune_push_queue: {
44346
45751
  Args: never;
44347
45752
  Returns: number;
@@ -44361,10 +45766,11 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
44361
45766
  p_company_name?: string;
44362
45767
  p_environment: string;
44363
45768
  p_office_code?: string;
45769
+ p_reset_sync?: boolean;
44364
45770
  p_status?: string;
44365
45771
  p_user_id: string;
44366
45772
  };
44367
- Returns: string;
45773
+ Returns: import("../integrations/supabase/types").Json;
44368
45774
  };
44369
45775
  upsert_auto_fulfillment_log: {
44370
45776
  Args: {